quesoglc-0.7.2/0000777000175000017500000000000011164476311010353 500000000000000quesoglc-0.7.2/INSTALL0000644000175000017500000001073610764574552011342 00000000000000These are the instructions to build QuesoGLC on POSIX platforms. If you want to build QuesoGLC on Windows, see INSTALL.win 1. What do you need in order to build QuesoGLC : ================================================ 1.1 Tools/headers/libraries that are mandatory : ------------------------------------------------ QuesoGLC depends on tools and libraries that are now widely used in the Open Source world, and which might already be installed on your favorite platform. If not, you can get them on Internet and build them on your system. * OpenGL, GLU (www.opengl.org/documentation/implementations.html) QuesoGLC is supposed to provide a character rendering service for OpenGL. Hence you definitely need OpenGL ;-) * FreeType2 (www.freetype.org) This is the core lib that manage fonts files and datas. QuesoGLC heavily uses its functionnalities. * Fontconfig (www.fontconfig.org) Fontconfig is a library for font customization and configuration. It is used by QuesoGLC to automagically detect the fonts that are available on your system. * POSIX threads GLC is designed with core support for multi-threading. However, QuesoGLC only supports POSIX threads. 'pthread' lib and headers are mandatory in order to build QuesoGLC. * GNU Make tool (www.gnu.org/software/make/make.html) QuesoGLC's build process heavily rely on this tool. You must install it first. 1.2 Tools/headers/libraries that are optional : ----------------------------------------------- QuesoGLC can be safely built and used without GLUT. However, some test programs need GLUT in order to display OpenGL graphics : if GLUT is not installed on your system, the examples will not build. Doxygen is a tool to generate the docs, you need it if you want to generate the documentation yourself; otherwise you can get the reference manual of QuesoGLC by either downloading it from SourceForge or browsing it on-line on the QuesoGLC web site (http://quesoglc.sourceforge.net). * Mark Kilgard's GLUT (www.opengl.org/resources/libraries/glut.html) It provides platform independant support for OpenGL. * Doxygen (www.stack.nl/~dimitri/doxygen) A documentation system for several language (including C) that generates the on-line documentation (in HTML) and the off-line reference manual (in Latex/PDF/HTML) of QuesoGLC 2. OK, all those libs and headers are installed on my machine. What shall I do now ? ============================================================== 2.1. Build the library and the examples : ----------------------------------------- Simply type ./configure make make install on the command line to configure, build and install QuesoGLC on your system. Note that the default installation path is "/usr/local". If you want to install QuesoGLC to another location, use the --prefix option of configure : ./configure --prefix=/another/location By default, both the static and the dynamic library are built, but if you only want the static library you can use the --disable-shared option of the configure script : ./configure --disable-shared For more informations about the options of the configure script, just type : ./configure --help 2.2 Build the docs (optional) : ------------------------------- You may also want to build the documentation; QuesoGLC uses Doxygen that does the job nicely. In order to get the docs, go to the docs/ directory and run Doxygen: cd docs doxygen This should build the docs in HTML and Latex/PDF (the later needs latex and pdflatex to be installed on your system). 3. Is that all ? ================ When the library has been successfully built, you might define the environment variable GLC_PATH in order to indicate QuesoGLC where to find fonts. This step is optional since QuesoGLC uses Fontconfig to locate the fonts on your system. You can however add some additional directories to those detected by Fontconfig. GLC_PATH is a colon-separated list of directories similar to the PATH environment variable. Depending on your shell the command is either export GLC_PATH=/usr/lib/X11/fonts/Type1:/path/to/another/font/directory or setenv GLC_PATH /usr/lib/X11/fonts/Type1:/path/to/another/font/directory Note : the path /usr/lib/X11/fonts/Type1 usually leads to Type1 fonts on almost all X-window flavor. 4. Is that really all ? ======================= You should have a look at the README file and at the documentation, especially at the tutorials. You can also get the specifications of GLC from www.opengl.org/documentation/specs/glc/glcspec.ps. You should also try the tests and example programs too. quesoglc-0.7.2/src/0000777000175000017500000000000011164476311011142 500000000000000quesoglc-0.7.2/src/ocontext.c0000644000175000017500000006144411150252642013070 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: ocontext.c 877 2009-02-14 14:23:53Z bcoconni $ */ /** \file * defines the object __GLCcontext which is used to manage the contexts. */ #if defined(__WIN32__) || defined(_MSC_VER) #include #else #include #endif #include #include "internal.h" #include "texture.h" #include FT_MODULE_H __GLCcommonArea __glcCommonArea; #ifdef HAVE_TLS __thread __GLCthreadArea __glcTlsThreadArea; #else __GLCthreadArea* __glcThreadArea = NULL; #endif static GLboolean __glcContextUpdateHashTable(__GLCcontext *This); /* Constructor of the object : it allocates memory and initializes the member * of the new object. */ __GLCcontext* __glcContextCreate(GLint inContext) { __GLCcontext *This = NULL; This = (__GLCcontext*)__glcMalloc(sizeof(__GLCcontext)); if (!This) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } memset(This, 0, sizeof(__GLCcontext)); if (FT_New_Library(&__glcCommonArea.memoryManager, &This->library)) { __glcRaiseError(GLC_RESOURCE_ERROR); __glcFree(This); return NULL; } FT_Add_Default_Modules(This->library); #ifdef GLC_FT_CACHE if (FTC_Manager_New(This->library, 0, 0, 0, __glcFileOpen, NULL, &This->cache)) { __glcRaiseError(GLC_RESOURCE_ERROR); FT_Done_Library(This->library); __glcFree(This); return NULL; } #endif __glcLock(); This->config = FcInitLoadConfigAndFonts(); __glcUnlock(); if (!This->config) { __glcRaiseError(GLC_RESOURCE_ERROR); #ifdef GLC_FT_CACHE FTC_Manager_Done(This->cache); #endif FT_Done_Library(This->library); __glcFree(This); return NULL; } This->node.prev = NULL; This->node.next = NULL; This->node.data = NULL; This->catalogList = __glcArrayCreate(sizeof(GLCchar8*)); if (!This->catalogList) { #ifdef GLC_FT_CACHE FTC_Manager_Done(This->cache); #endif FT_Done_Library(This->library); FcConfigDestroy(This->config); __glcFree(This); return NULL; } This->masterHashTable = __glcArrayCreate(sizeof(GLCchar32)); if (!This->masterHashTable) { __glcArrayDestroy(This->catalogList); #ifdef GLC_FT_CACHE FTC_Manager_Done(This->cache); #endif FT_Done_Library(This->library); FcConfigDestroy(This->config); __glcFree(This); return NULL; } if (!__glcContextUpdateHashTable(This)) { __glcArrayDestroy(This->masterHashTable); __glcArrayDestroy(This->catalogList); #ifdef GLC_FT_CACHE FTC_Manager_Done(This->cache); #endif FT_Done_Library(This->library); FcConfigDestroy(This->config); __glcFree(This); return NULL; } This->currentFontList.head = NULL; This->currentFontList.tail = NULL; This->fontList.head = NULL; This->fontList.tail = NULL; This->genFontList.head = NULL; This->genFontList.tail = NULL; This->isCurrent = GL_FALSE; This->isInGlobalCommand = GL_FALSE; This->id = inContext; This->pendingDelete = GL_FALSE; This->stringState.callback = GLC_NONE; This->stringState.dataPointer = NULL; This->stringState.replacementCode = 0; This->stringState.stringType = GLC_UCS1; This->enableState.autoFont = GL_TRUE; This->enableState.glObjects = GL_TRUE; This->enableState.mipmap = GL_TRUE; This->enableState.hinting = GL_FALSE; This->enableState.extrude = GL_FALSE; This->enableState.kerning = GL_FALSE; This->renderState.resolution = 0.; This->renderState.renderStyle = GLC_BITMAP; This->bitmapMatrixStackDepth = 1; This->bitmapMatrix = This->bitmapMatrixStack; This->bitmapMatrix[0] = 1.; This->bitmapMatrix[1] = 0.; This->bitmapMatrix[2] = 0.; This->bitmapMatrix[3] = 1.; This->attribStackDepth = 0; This->measurementBuffer = __glcArrayCreate(12 * sizeof(GLfloat)); if (!This->measurementBuffer) { __glcArrayDestroy(This->masterHashTable); __glcArrayDestroy(This->catalogList); #ifdef GLC_FT_CACHE FTC_Manager_Done(This->cache); #endif FT_Done_Library(This->library); FcConfigDestroy(This->config); __glcFree(This); return NULL; } This->isInCallbackFunc = GL_FALSE; This->buffer = NULL; This->bufferSize = 0; This->vertexArray = __glcArrayCreate(2 * sizeof(GLfloat)); if (!This->vertexArray) { __glcArrayDestroy(This->measurementBuffer); __glcArrayDestroy(This->masterHashTable); __glcArrayDestroy(This->catalogList); #ifdef GLC_FT_CACHE FTC_Manager_Done(This->cache); #endif FT_Done_Library(This->library); FcConfigDestroy(This->config); __glcFree(This); return NULL; } This->controlPoints = __glcArrayCreate(5 * sizeof(GLfloat)); if (!This->controlPoints) { __glcArrayDestroy(This->vertexArray); __glcArrayDestroy(This->measurementBuffer); __glcArrayDestroy(This->masterHashTable); __glcArrayDestroy(This->catalogList); #ifdef GLC_FT_CACHE FTC_Manager_Done(This->cache); #endif FT_Done_Library(This->library); FcConfigDestroy(This->config); __glcFree(This); return NULL; } This->endContour = __glcArrayCreate(sizeof(int)); if (!This->endContour) { __glcArrayDestroy(This->controlPoints); __glcArrayDestroy(This->vertexArray); __glcArrayDestroy(This->measurementBuffer); __glcArrayDestroy(This->masterHashTable); __glcArrayDestroy(This->catalogList); #ifdef GLC_FT_CACHE FTC_Manager_Done(This->cache); #endif FT_Done_Library(This->library); FcConfigDestroy(This->config); __glcFree(This); return NULL; } This->vertexIndices = __glcArrayCreate(sizeof(GLuint)); if (!This->vertexIndices) { __glcArrayDestroy(This->controlPoints); __glcArrayDestroy(This->vertexArray); __glcArrayDestroy(This->measurementBuffer); __glcArrayDestroy(This->masterHashTable); __glcArrayDestroy(This->endContour); __glcArrayDestroy(This->catalogList); #ifdef GLC_FT_CACHE FTC_Manager_Done(This->cache); #endif FT_Done_Library(This->library); FcConfigDestroy(This->config); __glcFree(This); return NULL; } This->geomBatches = __glcArrayCreate(sizeof(__GLCgeomBatch)); if (!This->geomBatches) { __glcArrayDestroy(This->controlPoints); __glcArrayDestroy(This->vertexArray); __glcArrayDestroy(This->measurementBuffer); __glcArrayDestroy(This->masterHashTable); __glcArrayDestroy(This->endContour); __glcArrayDestroy(This->vertexIndices); __glcArrayDestroy(This->catalogList); #ifdef GLC_FT_CACHE FTC_Manager_Done(This->cache); #endif FT_Done_Library(This->library); FcConfigDestroy(This->config); __glcFree(This); return NULL; } This->texture.id = 0; This->texture.width = 0; This->texture.heigth = 0; This->texture.bufferObjectID = 0; This->atlas.id = 0; This->atlas.width = 0; This->atlas.heigth = 0; This->atlas.bufferObjectID = 0; This->atlasList.head = NULL; This->atlasList.tail = NULL; This->atlasWidth = 0; This->atlasHeight = 0; This->atlasCount = 0; /* The environment variable GLC_PATH is an alternate way to allow QuesoGLC * to access to fonts catalogs/directories. */ /*Check if the GLC_PATH environment variables are exported */ if (getenv("GLC_CATALOG_LIST") || getenv("GLC_PATH")) { GLCchar8 *path = NULL; GLCchar8 *begin = NULL; GLCchar8 *sepPos = NULL; const GLCchar8 *separator = (GLCchar8*)getenv("GLC_LIST_SEPARATOR"); /* Get the list separator */ if (!separator) { #ifdef __WIN32__ /* Windows can not use a colon-separated list since the colon sign is * used after the drive letter. The semicolon is used for the PATH * variable, so we use it for consistency. */ separator = (const GLCchar8*)";"; #else /* POSIX platforms uses colon-separated lists for the paths variables * so we keep with it for consistency. */ separator = (const GLCchar8*)":"; #endif } /* Read the paths of fonts file. * First, try GLC_CATALOG_LIST... */ if (getenv("GLC_CATALOG_LIST")) #ifdef __WIN32__ path = (GLCchar8*)_strdup(getenv("GLC_CATALOG_LIST")); #else path = (GLCchar8*)strdup(getenv("GLC_CATALOG_LIST")); #endif else if (getenv("GLC_PATH")) { /* Try GLC_PATH which uses the same format than PATH */ #ifdef __WIN32__ path = (GLCchar8*)_strdup(getenv("GLC_PATH")); #else path = (GLCchar8*)strdup(getenv("GLC_PATH")); #endif } if (path) { /* Get each path and add the corresponding masters to the current * context */ GLCchar8* duplicated = NULL; begin = path; do { sepPos = __glcFindIndexList(begin, 1, separator); if (*sepPos) *(sepPos++) = 0; #ifdef __WIN32__ duplicated = (GLCchar8*)_strdup((char*)begin); #else duplicated = (GLCchar8*)strdup((char*)begin); #endif if (!duplicated) { __glcRaiseError(GLC_RESOURCE_ERROR); } else { if (!__glcArrayAppend(This->catalogList, &duplicated)) free(duplicated); else if (!FcConfigAppFontAddDir(This->config, (const unsigned char*)begin)) { __glcArrayRemove(This->catalogList, GLC_ARRAY_LENGTH(This->catalogList)); __glcRaiseError(GLC_RESOURCE_ERROR); free(duplicated); } else if (!__glcContextUpdateHashTable(This)) { /* For some reason the update of the master hash table has failed : * the new catalog must then be removed from GLC_CATALOG_LIST. */ __glcContextRemoveCatalog(This, GLC_ARRAY_LENGTH(This->catalogList)); } } begin = sepPos; } while (*sepPos); free(path); } else { /* strdup has failed to allocate memory to duplicate GLC_PATH => ERROR */ __glcRaiseError(GLC_RESOURCE_ERROR); } } return This; } #ifndef GLC_FT_CACHE /* This function is called from FT_List_Finalize() to close all the fonts * of the GLC_CURRENT_FONT_LIST */ static void __glcFontClosure(FT_Memory GLC_UNUSED_ARG(inMemory), void* inData, void* GLC_UNUSED_ARG(inUser)) { __GLCfont *font = (__GLCfont*)inData; assert(font); __glcFontClose(font); } #endif /* This function is called from FT_List_Finalize() to destroy all * remaining fonts */ static void __glcFontDestructor(FT_Memory GLC_UNUSED_ARG(inMemory), void* inData, void* inUser) { __GLCfont *font = (__GLCfont*)inData; __GLCcontext* ctx = (__GLCcontext*)inUser; assert(ctx); assert(font); __glcFontDestroy(font, ctx); } /* Destructor of the object : it first destroys all the GLC objects that have * been created during the life of the context. Then it releases the memory * occupied by the GLC state struct. * It does not destroy GL objects associated with the GLC context since we can * not be sure that the current GL context is the GL context that contains the * GL objects designated by the GLC context that we are destroying. This could * happen if the user calls glcDeleteContext() after the GL context has been * destroyed of after the user has changed the current GL context. */ void __glcContextDestroy(__GLCcontext *This) { int i = 0; assert(This); /* Destroy the list of catalogs */ for (i = 0; i < GLC_ARRAY_LENGTH(This->catalogList); i++) { GLCchar8* string = ((GLCchar8**)GLC_ARRAY_DATA(This->catalogList))[i]; assert(string); free(string); } __glcArrayDestroy(This->catalogList); /* Destroy GLC_CURRENT_FONT_LIST */ #ifdef GLC_FT_CACHE FT_List_Finalize(&This->currentFontList, NULL, &__glcCommonArea.memoryManager, NULL); #else FT_List_Finalize(&This->currentFontList, __glcFontClosure, &__glcCommonArea.memoryManager, NULL); #endif /* Destroy GLC_FONT_LIST */ FT_List_Finalize(&This->fontList, __glcFontDestructor, &__glcCommonArea.memoryManager, This); /* Destroy empty fonts generated by glcGenFontID() */ FT_List_Finalize(&This->genFontList, __glcFontDestructor, &__glcCommonArea.memoryManager, This); if (This->masterHashTable) __glcArrayDestroy(This->masterHashTable); FT_List_Finalize(&This->atlasList, NULL, &__glcCommonArea.memoryManager, NULL); if (This->bufferSize) __glcFree(This->buffer); if (This->measurementBuffer) __glcArrayDestroy(This->measurementBuffer); if (This->vertexArray) __glcArrayDestroy(This->vertexArray); if (This->controlPoints) __glcArrayDestroy(This->controlPoints); if (This->endContour) __glcArrayDestroy(This->endContour); if (This->vertexIndices) __glcArrayDestroy(This->vertexIndices); if (This->geomBatches) __glcArrayDestroy(This->geomBatches); #ifdef GLC_FT_CACHE FTC_Manager_Done(This->cache); #endif FT_Done_Library(This->library); FcConfigDestroy(This->config); __glcFree(This); } /* Return the first font in GLC_CURRENT_FONT_LIST that maps 'inCode'. * If there is no such font, the function returns NULL. * 'inCode' must be given in UCS-4 format. */ static __GLCfont* __glcLookupFont(GLint inCode, FT_List fontList) { FT_ListNode node = NULL; for (node = fontList->head; node; node = node->next) { __GLCfont* font = (__GLCfont*)node->data; /* Check if the character identified by inCode exists in the font */ if (__glcCharMapHasChar(font->charMap, inCode)) return font; } return NULL; } /* Calls the callback function (does various tests to determine if it is * possible) and returns GL_TRUE if it has succeeded or GL_FALSE otherwise. * 'inCode' must be given in UCS-4 format. */ static GLboolean __glcCallCallbackFunc(GLint inCode, __GLCcontext *inContext) { GLCfunc callbackFunc = NULL; GLboolean result = GL_FALSE; GLint aCode = 0; /* Recursivity is not allowed */ if (inContext->isInCallbackFunc) return GL_FALSE; callbackFunc = inContext->stringState.callback; if (!callbackFunc) return GL_FALSE; /* Convert the character code back to the current string type */ aCode = __glcConvertUcs4ToGLint(inContext, inCode); /* Check if the character has been converted */ if (aCode < 0) return GL_FALSE; inContext->isInCallbackFunc = GL_TRUE; /* Call the callback function with the character converted to the current * string type. */ result = (*callbackFunc)(aCode); inContext->isInCallbackFunc = GL_FALSE; return result; } /* Returns the ID of the first font in GLC_CURRENT_FONT_LIST that maps * 'inCode'. If there is no such font and GLC_AUTO_FONT is enabled, the * function attempts to append a new font from GLC_FONT_LIST (or from a master) * to GLC_CURRENT_FONT_LIST. If the attempt fails the function returns zero. * 'inCode' must be given in UCS-4 format. */ __GLCfont* __glcContextGetFont(__GLCcontext *This, GLint inCode) { __GLCfont* font = NULL; /* Look for a font in the current font list */ font = __glcLookupFont(inCode, &This->currentFontList); /* If a font has been found return */ if (font) return font; /* If a callback function is defined for GLC_OP_glcUnmappedCode then call it. * The callback function should return GL_TRUE if it succeeds in appending to * GLC_CURRENT_FONT_LIST the ID of a font that maps 'inCode'. */ if (__glcCallCallbackFunc(inCode, This)) { font = __glcLookupFont(inCode, &This->currentFontList); if (font) return font; } /* If the value of the boolean variable GLC_AUTOFONT is GL_TRUE then search * GLC_FONT_LIST for the first font that maps 'inCode'. If the search * succeeds, then append the font's ID to GLC_CURRENT_FONT_LIST. */ if (This->enableState.autoFont) { __GLCmaster* master = NULL; font = __glcLookupFont(inCode, &This->fontList); if (font) { __glcAppendFont(This, font); return font; } master = __glcMasterMatchCode(This, inCode); if (!master) return NULL; font = __glcNewFontFromMaster(glcGenFontID(), master, This, inCode); __glcMasterDestroy(master); if (font) { /* Add the font to the GLC_CURRENT_FONT_LIST */ __glcAppendFont(This, font); return font; } } return NULL; } /* Sometimes informations may need to be stored temporarily by a thread. * The so-called 'buffer' is created for that purpose. Notice that it is a * component of the GLC state struct hence its lifetime is the same as the * GLC state's lifetime. * __glcCtxQueryBuffer() should be called whenever the buffer is to be used * in order to check if it is big enough to store infos. * Note that the only memory management function used below is 'realloc' which * means that the buffer goes bigger and bigger until it is freed. No function * is provided to reduce its size so it should be freed and re-allocated * manually in case of emergency ;-) */ GLCchar* __glcContextQueryBuffer(__GLCcontext *This, size_t inSize) { GLCchar* buffer; buffer = This->buffer; if (inSize > This->bufferSize) { buffer = (GLCchar*)__glcRealloc(This->buffer, inSize); if (!buffer) { __glcRaiseError(GLC_RESOURCE_ERROR); } else { This->buffer = buffer; This->bufferSize = inSize; } } return buffer; } /* Update the hash table that allows to convert master IDs into FontConfig * patterns. */ static GLboolean __glcContextUpdateHashTable(__GLCcontext *This) { FcPattern* pattern = NULL; FcObjectSet* objectSet = NULL; FcFontSet *fontSet = NULL; int i = 0; __GLCarray *updatedHashTable = NULL; /* Use Fontconfig to get the default font files */ pattern = FcPatternCreate(); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } objectSet = FcObjectSetBuild(FC_FAMILY, FC_FOUNDRY, FC_OUTLINE, FC_SPACING, NULL); if (!objectSet) { __glcRaiseError(GLC_RESOURCE_ERROR); FcPatternDestroy(pattern); return GL_FALSE; } fontSet = FcFontList(This->config, pattern, objectSet); FcPatternDestroy(pattern); FcObjectSetDestroy(objectSet); if (!fontSet) { __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } updatedHashTable = __glcArrayDuplicate(This->masterHashTable); if (!updatedHashTable) { FcFontSetDestroy(fontSet); return GL_FALSE; } /* Parse the font set looking for fonts that are not already registered in the * hash table. */ for (i = 0; i < fontSet->nfont; i++) { GLCchar32 hashValue = 0; int j = 0; int length = GLC_ARRAY_LENGTH(updatedHashTable); GLCchar32* hashTable = (GLCchar32*)GLC_ARRAY_DATA(updatedHashTable); FcBool outline = FcFalse; FcChar8* family = NULL; int fixed = 0; FcChar8* foundry = NULL; FcResult result = FcResultMatch; /* Check whether the glyphs are outlines */ result = FcPatternGetBool(fontSet->fonts[i], FC_OUTLINE, 0, &outline); assert(result != FcResultTypeMismatch); if (!outline) continue; result = FcPatternGetString(fontSet->fonts[i], FC_FAMILY, 0, &family); assert(result != FcResultTypeMismatch); result = FcPatternGetString(fontSet->fonts[i], FC_FOUNDRY, 0, &foundry); assert(result != FcResultTypeMismatch); result = FcPatternGetInteger(fontSet->fonts[i], FC_SPACING, 0, &fixed); assert(result != FcResultTypeMismatch); if (foundry) pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_FOUNDRY, FcTypeString, foundry, FC_SPACING, FcTypeInteger, fixed, NULL); else pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_SPACING, FcTypeInteger, fixed, NULL); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); FcFontSetDestroy(fontSet); __glcArrayDestroy(updatedHashTable); return GL_FALSE; } /* Check if the font is already registered in the hash table */ hashValue = FcPatternHash(pattern); FcPatternDestroy(pattern); for (j = 0; j < length; j++) { if (hashTable[j] == hashValue) break; } /* If the font is already registered then parse the next one */ if (j != length) continue; /* Register the font (i.e. append its hash value to the hash table) */ if (!__glcArrayAppend(updatedHashTable, &hashValue)) { FcFontSetDestroy(fontSet); __glcArrayDestroy(updatedHashTable); return GL_FALSE; } } FcFontSetDestroy(fontSet); __glcArrayDestroy(This->masterHashTable); This->masterHashTable = updatedHashTable; return GL_TRUE; } /* Append a catalog to the context catalog list */ void __glcContextAppendCatalog(__GLCcontext* This, const GLCchar* inCatalog) { #ifdef __WIN32__ GLCchar8* duplicated = (GLCchar8*)_strdup((const char*)inCatalog); #else GLCchar8* duplicated = (GLCchar8*)strdup((const char*)inCatalog); #endif if (!duplicated) { __glcRaiseError(GLC_RESOURCE_ERROR); return; } if (!__glcArrayAppend(This->catalogList, &duplicated)) { free(duplicated); return; } if (!FcConfigAppFontAddDir(This->config, (const unsigned char*)inCatalog)) { __glcArrayRemove(This->catalogList, GLC_ARRAY_LENGTH(This->catalogList)); __glcRaiseError(GLC_RESOURCE_ERROR); free(duplicated); return; } if (!__glcContextUpdateHashTable(This)) { /* For some reason the update of the master hash table has failed : the * new catalog must then be removed from GLC_CATALOG_LIST. */ __glcContextRemoveCatalog(This, GLC_ARRAY_LENGTH(This->catalogList)); return; } } /* Prepend a catalog to the context catalog list */ void __glcContextPrependCatalog(__GLCcontext* This, const GLCchar* inCatalog) { #ifdef __WIN32__ GLCchar8* duplicated = (GLCchar8*)_strdup((const char*)inCatalog); #else GLCchar8* duplicated = (GLCchar8*)strdup((const char*)inCatalog); #endif if (!duplicated) { __glcRaiseError(GLC_RESOURCE_ERROR); return; } if (!__glcArrayInsert(This->catalogList, 0, &duplicated)) { free(duplicated); return; } if (!FcConfigAppFontAddDir(This->config, (const unsigned char*)inCatalog)) { __glcArrayRemove(This->catalogList, 0); __glcRaiseError(GLC_RESOURCE_ERROR); free(duplicated); return; } if (!__glcContextUpdateHashTable(This)) { /* For some reason the update of the master hash table has failed : the * new catalog must then be removed from GLC_CATALOG_LIST. */ __glcContextRemoveCatalog(This, 0); return; } } /* Get the path of the catalog identified by inIndex */ GLCchar8* __glcContextGetCatalogPath(__GLCcontext* This, GLint inIndex) { if (inIndex >= GLC_ARRAY_LENGTH(This->catalogList)) { __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } return ((GLCchar8**)GLC_ARRAY_DATA(This->catalogList))[inIndex]; } /* Remove a catalog from the context catalog list */ void __glcContextRemoveCatalog(__GLCcontext* This, GLint inIndex) { FT_ListNode node = NULL; GLCchar8* catalog = NULL; int i = 0; if (inIndex >= GLC_ARRAY_LENGTH(This->catalogList)) { __glcRaiseError(GLC_PARAMETER_ERROR); return; } FcConfigAppFontClear(This->config); catalog = ((GLCchar8**)GLC_ARRAY_DATA(This->catalogList))[inIndex]; assert(catalog); __glcArrayRemove(This->catalogList, inIndex); free(catalog); for (i = 0; i < GLC_ARRAY_LENGTH(This->catalogList); i++) { catalog = ((GLCchar8**)GLC_ARRAY_DATA(This->catalogList))[i]; assert(catalog); if (!FcConfigAppFontAddDir(This->config, catalog)) { __glcRaiseError(GLC_RESOURCE_ERROR); __glcArrayRemove(This->catalogList, i); free(catalog); if (i > 0) i--; } } /* Re-create the hash table from scratch */ GLC_ARRAY_LENGTH(This->masterHashTable) = 0; __glcContextUpdateHashTable(This); /* Remove from GLC_FONT_LIST the fonts that were defined in the catalog that * has been removed. This task has to be done even if the call to * __glcContextUpdateHashTable() has failed !!! */ for (node = This->fontList.head; node; node = node->next) { __GLCfont* font = (__GLCfont*)(node->data); GLCchar32 hashValue = 0; GLCchar32* hashTable = (GLCchar32*)GLC_ARRAY_DATA(This->masterHashTable); int length = GLC_ARRAY_LENGTH(This->masterHashTable); __GLCmaster* master = __glcMasterCreate(font->parentMasterID, This); if (!master) continue; /* Check if the hash value of the master is in the hash table */ hashValue = GLC_MASTER_HASH_VALUE(master); for (i = 0; i < length; i++) { if (hashValue == hashTable[i]) break; } /* The font is not contained in the hash table => remove it */ if (i == length) glcDeleteFont(font->id); __glcMasterDestroy(master); } } quesoglc-0.7.2/src/oarray.h0000644000175000017500000000345011145551773012533 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: oarray.h 877 2009-02-14 14:23:53Z bcoconni $ */ /** \file * header of the object __GLCarray which is an array which size can grow as * some new elements are added to it. */ #ifndef __glc_oarray_h #define __glc_oarray_h #define GLC_ARRAY_DATA(array) ((array)->data) #define GLC_ARRAY_LENGTH(array) ((array)->length) #define GLC_ARRAY_SIZE(array) (((array)->length) * ((array)->elementSize)) typedef struct __GLCarrayRec __GLCarray; struct __GLCarrayRec { char* data; int allocated; int length; int elementSize; }; __GLCarray* __glcArrayCreate(int inElementSize); void __glcArrayDestroy(__GLCarray* This); __GLCarray* __glcArrayAppend(__GLCarray* This, void* inValue); __GLCarray* __glcArrayInsert(__GLCarray* This, int inRank, void* inValue); void __glcArrayRemove(__GLCarray* This, int inRank); char* __glcArrayInsertCell(__GLCarray* This, int inRank, int inCells); __GLCarray* __glcArrayDuplicate(__GLCarray* This); #endif quesoglc-0.7.2/src/global.c0000644000175000017500000004770211134666026012475 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: global.c 873 2009-01-18 17:51:17Z bcoconni $ */ /** \file * defines the so-called "Global commands" described in chapter 3.4 of the * GLC specs. */ /** \defgroup global Global Commands * Commands to create, manage and destroy GLC contexts. * * Those commands do not use GLC context state variables and can therefore be * executed successfully if the issuing thread has no current GLC context. * * Each GLC context has a nonzero ID of type \b GLint. When a client is linked * with a GLC library, the library maintains a list of IDs that contains one * entry for each of the client's GLC contexts. The list is initially empty. * * Each client thread has a private GLC context ID variable that always * contains either the value zero, indicating that the thread has no current * GLC context, or the ID of the thread's current GLC context. The initial * value is zero. * * When the ID of a GLC context is stored in the GLC context ID variable of a * client thread, the context is said to be current to the thread. It is not * possible for a GLC context to be current simultaneously to multiple * threads. With the exception of the per-thread GLC error code and context ID * variables, all of the GLC state variables that are used during the * execution of a GLC command are stored in the issuing thread's current GLC * context. To make a context current, call glcContext(). * * When a client thread issues a GLC command, the thread's current GLC context * executes the command. * * Note that the results of issuing a GL command when there is no current GL * context are undefined. Because GLC issues GL commands, you must create a GL * context and make it current before calling GLC. * * All other GLC commands raise \b GLC_STATE_ERROR if the issuing thread has * no current GLC context. */ #include "internal.h" #include #ifdef __GNUC__ __attribute__((constructor)) void init(void); __attribute__((destructor)) void fini(void); #else void _init(void); void _fini(void); #endif /* Since the common area can be accessed by any thread, this function should * be called before any access (read or write) to the common area. Otherwise * race conditions can occur. This function must also be used whenever we call * a function which is not reentrant (it is the case for some Fontconfig * entries). * __glcLock/__glcUnlock can be nested : they keep track of the number of * time they have been called and the mutex will be released as soon as * __glcUnlock() will be called as many time as __glcLock() was. */ void __glcLock(void) { __GLCthreadArea *area = NULL; area = GLC_GET_THREAD_AREA(); assert(area); if (!area->lockState) #ifdef __WIN32__ EnterCriticalSection(&__glcCommonArea.section); #else pthread_mutex_lock(&__glcCommonArea.mutex); #endif area->lockState++; } /* Unlock the mutex in order to allow other threads to make accesses to the * common area. * See also the note on nested calls in __glcLock's description. */ void __glcUnlock(void) { __GLCthreadArea *area = NULL; area = GLC_GET_THREAD_AREA(); assert(area); area->lockState--; if (!area->lockState) #ifdef __WIN32__ LeaveCriticalSection(&__glcCommonArea.section); #else pthread_mutex_unlock(&__glcCommonArea.mutex); #endif } #if !defined(HAVE_TLS) && !defined(__WIN32__) /* This function is called each time a pthread is cancelled or exits in order * to free its specific area */ static void __glcFreeThreadArea(void *keyValue) { __GLCthreadArea *area = (__GLCthreadArea*)keyValue; __GLCcontext *ctx = NULL; if (area) { /* Release the context which is current to the thread, if any */ ctx = area->currentContext; if (ctx) ctx->isCurrent = GL_FALSE; free(area); /* DO NOT use __glcFree() !!! */ } } #endif /* !HAVE_TLS && !__WIN32__ */ /* This function is called when QuesoGLC is no longer needed. */ #ifdef __GNUC__ __attribute__((destructor)) void fini(void) #else void _fini(void) #endif { FT_ListNode node = NULL; #if 0 void *key = NULL; #endif __glcLock(); /* destroy remaining contexts */ node = __glcCommonArea.contextList.head; while (node) { FT_ListNode next = node->next; __glcContextDestroy((__GLCcontext*)node); node = next; } #if FC_MINOR > 2 FcFini(); #endif __glcUnlock(); #ifdef __WIN32__ DeleteCriticalSection(&__glcCommonArea.section); #else pthread_mutex_destroy(&__glcCommonArea.mutex); #endif #if 0 /* Destroy the thread local storage */ key = pthread_getspecific(__glcCommonArea.threadKey); if (key) __glcFreeThreadArea(key); pthread_key_delete(__glcCommonArea.threadKey); #endif } /* Routines for memory management of FreeType * The memory manager of our FreeType library class uses the same memory * allocation functions than QuesoGLC */ static void* __glcAllocFunc(FT_Memory GLC_UNUSED_ARG(inMemory), long inSize) { return malloc(inSize); } static void __glcFreeFunc(FT_Memory GLC_UNUSED_ARG(inMemory), void *inBlock) { free(inBlock); } static void* __glcReallocFunc(FT_Memory GLC_UNUSED_ARG(inMemory), long GLC_UNUSED_ARG(inCurSize), long inNewSize, void* inBlock) { return realloc(inBlock, inNewSize); } /* This function is called before any function of QuesoGLC * is used. It reserves memory and initialiazes the library, hence the name. */ #ifdef __GNUC__ __attribute__((constructor)) void init(void) #else void _init(void) #endif { #if !defined(__WIN32__) && !defined(HAVE_TLS) /* A temporary variable is used to store the PTHREAD_ONCE_INIT value because * some platforms (namely Mac OSX) define PTHREAD_ONCE_INIT as a structure * initialization "{.., ..}" which is not allowed to be used by C99 anywhere * but at variables declaration. */ pthread_once_t onceInit = PTHREAD_ONCE_INIT; #endif /* Initialize fontconfig */ if (!FcInit()) goto FatalError; __glcCommonArea.versionMajor = 0; __glcCommonArea.versionMinor = 2; /* Create the thread-local storage for GLC errors */ #ifdef __WIN32__ __glcCommonArea.threadKey = TlsAlloc(); if (__glcCommonArea.threadKey == 0xffffffff) goto FatalError; __glcCommonArea.__glcInitThreadOnce = 0; #elif !defined(HAVE_TLS) if (pthread_key_create(&__glcCommonArea.threadKey, __glcFreeThreadArea)) goto FatalError; /* Now we can initialize our actual once_control variable by copying the value * of the temporary variable onceInit. */ __glcCommonArea.__glcInitThreadOnce = onceInit; #endif __glcCommonArea.memoryManager.user = NULL; __glcCommonArea.memoryManager.alloc = __glcAllocFunc; __glcCommonArea.memoryManager.free = __glcFreeFunc; __glcCommonArea.memoryManager.realloc = __glcReallocFunc; /* Initialize the list of context states */ __glcCommonArea.contextList.head = NULL; __glcCommonArea.contextList.tail = NULL; /* Initialize the mutex for access to the contextList array */ #ifdef __WIN32__ InitializeCriticalSection(&__glcCommonArea.section); #else if (pthread_mutex_init(&__glcCommonArea.mutex, NULL)) goto FatalError; #endif return; FatalError: __glcRaiseError(GLC_RESOURCE_ERROR); /* Is there a better thing to do than that ? */ perror("GLC Fatal Error"); exit(-1); } #if defined __WIN32__ && !defined __GNUC__ BOOL WINAPI DllMain(HANDLE hinstDLL, DWORD dwReason, LPVOID lpvReserved) { switch(dwReason) { case DLL_PROCESS_ATTACH: _init(); return TRUE; case DLL_PROCESS_DETACH: _fini(); return TRUE; } return TRUE; } #endif /* Get the context state corresponding to a given context ID */ static __GLCcontext* __glcGetContext(GLint inContext) { FT_ListNode node = NULL; __glcLock(); for (node = __glcCommonArea.contextList.head; node; node = node->next) if (((__GLCcontext*)node)->id == inContext) break; __glcUnlock(); return (__GLCcontext*)node; } /** \ingroup global * This command checks whether \e inContext is the ID of one of the client's * GLC context and returns \b GLC_TRUE if and only if it is. * \param inContext The context ID to be tested * \return \b GL_TRUE if \e inContext is the ID of a GLC context, * \b GL_FALSE otherwise * \sa glcDeleteContext() * \sa glcGenContext() * \sa glcGetAllContexts() * \sa glcContext() */ GLboolean APIENTRY glcIsContext(GLint inContext) { GLC_INIT_THREAD(); return (__glcGetContext(inContext) ? GL_TRUE : GL_FALSE); } /** \ingroup global * Returns the value of the issuing thread's current GLC context ID variable * \return The context ID of the current thread * \sa glcContext() * \sa glcDeleteContext() * \sa glcGenContext() * \sa glcGetAllContexts() * \sa glcIsContext() */ GLint APIENTRY glcGetCurrentContext(void) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) return 0; else return ctx->id; } /** \ingroup global * Marks for deletion the GLC context identified by \e inContext. If the * marked context is not current to any client thread, the command deletes * the marked context immediatly. Otherwise, the marked context will be * deleted during the execution of the next glcContext() command that causes * it not to be current to any client thread. * * \note glcDeleteContext() does not destroy the GL objects associated with * the context \e inContext. Indeed for performance reasons, GLC does not keep * track of the GL context that contains the GL objects associated with the * the GLC context that is destroyed. Even if GLC would keep track of the GL * context, it could lead GLC to temporarily change the GL context, delete the * GL objects, then restore the correct GL context. In order not to adversely * impact the performance of most of programs, it is the responsability of the * user to call glcDeleteGLObjects() on a GLC context that is intended to be * destroyed. * * The command raises \b GLC_PARAMETER_ERROR if \e inContext is not the ID of * one of the client's GLC contexts. * \param inContext The ID of the context to be deleted * \sa glcGetAllContexts() * \sa glcIsContext() * \sa glcContext() * \sa glcGetCurrentContext() */ void APIENTRY glcDeleteContext(GLint inContext) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Lock the "Common Area" in order to prevent race conditions. Indeed, we * must prevent other threads to make current the context that we are * destroying. */ __glcLock(); /* verify if the context exists */ ctx = __glcGetContext(inContext); if (!ctx) { __glcRaiseError(GLC_PARAMETER_ERROR); __glcUnlock(); return; } if (ctx->isCurrent) /* The context is current to a thread : just mark for deletion */ ctx->pendingDelete = GL_TRUE; else { /* Remove the context from the context list then destroy it */ FT_List_Remove(&__glcCommonArea.contextList, (FT_ListNode)ctx); ctx->isInGlobalCommand = GL_TRUE; __glcContextDestroy(ctx); } __glcUnlock(); } /** \ingroup global * Assigns the value \e inContext to the issuing thread's current GLC context * ID variable. If another context is already current to the thread, no error * is generated but the context is released and the context identified by * \e inContext is made current to the thread. * * Call \e glcContext with \e inContext set to zero to release a thread's * current context. * * When a GLCcontext is made current to a thread, GLC issues the commands * \code * glGetString(GL_VERSION); * glGetString(GL_EXTENSIONS); * \endcode * and stores the returned strings. If there is no GL context current to the * thread, the result of the above GL commands is undefined and so is the * result of glcContext(). * * The command raises \b GLC_PARAMETER_ERROR if \e inContext is not zero * and is not the ID of one of the client's GLC contexts. \n * The command raises \b GLC_STATE_ERROR if \e inContext is the ID of a GLC * context that is current to a thread other than the issuing thread. \n * The command raises \b GLC_STATE_ERROR if the issuing thread is executing * a callback function that has been called from GLC. * \param inContext The ID of the context to be made current * \sa glcGetCurrentContext() * \sa glcDeleteContext() * \sa glcGenContext() * \sa glcGetAllContexts() * \sa glcIsContext() */ void APIENTRY glcContext(GLint inContext) { __GLCcontext *currentContext = NULL; __GLCcontext *ctx = NULL; __GLCthreadArea *area = NULL; GLC_INIT_THREAD(); if (inContext < 0) { __glcRaiseError(GLC_PARAMETER_ERROR); return; } area = GLC_GET_THREAD_AREA(); assert(area); /* Lock the "Common Area" in order to prevent race conditions */ __glcLock(); if (inContext) { /* verify that the context exists */ ctx = __glcGetContext(inContext); if (!ctx) { __glcRaiseError(GLC_PARAMETER_ERROR); __glcUnlock(); return; } /* Get the current context of the issuing thread */ currentContext = area->currentContext; /* Check if the issuing thread is executing a callback * function that has been called from GLC */ if (currentContext) { if (currentContext->isInCallbackFunc) { __glcRaiseError(GLC_STATE_ERROR); __glcUnlock(); return; } } /* Is the context already current to a thread ? */ if (ctx->isCurrent) { /* If the context is current to another thread => ERROR ! */ if (!currentContext) { __glcRaiseError(GLC_STATE_ERROR); } else { if (currentContext->id != inContext) __glcRaiseError(GLC_STATE_ERROR); } /* If we get there, this means that the context 'inContext' * is already current to one thread (whether it is the issuing thread * or not) : there is nothing else to be done. */ __glcUnlock(); return; } /* Release old current context if any */ if (currentContext) currentContext->isCurrent = GL_FALSE; /* Make the context current to the thread */ area->currentContext = ctx; ctx->isCurrent = GL_TRUE; } else { /* inContext is null, the current thread must release its context if any */ /* Gets the current context state */ currentContext = area->currentContext; if (currentContext) { /* Deassociate the context from the issuing thread */ area->currentContext = NULL; /* Release the context */ currentContext->isCurrent = GL_FALSE; } } /* Execute pending deletion if any. Here, the variable name 'currentContext' * is not appropriate any more : 'currentContext' used to be the current * context but it has either been replaced by another one or it has been * released. */ if (currentContext) { if (currentContext->pendingDelete) { FT_List_Remove(&__glcCommonArea.contextList, (FT_ListNode)currentContext); currentContext->isInGlobalCommand = GL_TRUE; __glcContextDestroy(currentContext); } } __glcUnlock(); /* If the issuing thread has released its context then there is no point to * check for OpenGL extensions. */ if (!inContext) return; /* During its initialization, GLEW calls glGetString(GL_VERSION) and * glGetString(GL_EXTENSIONS) so, not only glewInit() allows to determine the * available extensions, but it also allows to be conformant with GLC specs * which require to issue those GL commands. * * Notice however that some OpenGL implementations return a void pointer if * the function glGetString() is called while no GL context is bound to the * current thread. However this behaviour is not required by the GL specs, so * those calls may just fail or lead to weird results or even crash the app * (on Mac OSX). There is nothing that we can do against that : the GLC specs * make it very clear that glGetString() is called by glcContext() and the * QuesoGLC docs tell that the behaviour of GLC is undefined if no GL context * is current while issuing GL commands. */ if (glewInit() != GLEW_OK) __glcRaiseError(GLC_RESOURCE_ERROR); } /** \ingroup global * Generates a new GLC context and returns its ID. * \return The ID of the new context * \sa glcGetAllContexts() * \sa glcIsContext() * \sa glcContext() * \sa glcGetCurrentContext() */ GLint APIENTRY glcGenContext(void) { int newContext = 0; __GLCcontext *ctx = NULL; FT_ListNode node = NULL; GLC_INIT_THREAD(); /* Create a new context */ ctx = __glcContextCreate(0); if (!ctx) return 0; /* Lock the "Common Area" in order to prevent race conditions */ __glcLock(); /* Search for the first context ID that is unused */ if (!__glcCommonArea.contextList.tail) newContext = 1; else newContext = ((__GLCcontext*)__glcCommonArea.contextList.tail)->id + 1; ctx->id = newContext; node = (FT_ListNode)ctx; node->data = ctx; FT_List_Add(&__glcCommonArea.contextList, node); __glcUnlock(); return newContext; } /** \ingroup global * Returns a zero terminated array of GLC context IDs that contains one entry * for each of the client's GLC contexts. GLC uses the ISO C library command * \c malloc to allocate the array. The client should use the ISO C library * command \c free to deallocate the array when it is no longer needed. * \return The pointer to the array of context IDs. * \sa glcContext() * \sa glcDeleteContext() * \sa glcGenContext() * \sa glcGetCurrentContext() * \sa glcIsContext() */ GLint* APIENTRY glcGetAllContexts(void) { int count = 0; GLint* contextArray = NULL; FT_ListNode node = NULL; GLC_INIT_THREAD(); /* Count the number of existing contexts (whether they are current to a * thread or not). */ __glcLock(); for (node = __glcCommonArea.contextList.head, count = 0; node; node = node->next, count++); /* Allocate memory to store the array */ contextArray = (GLint *)__glcMalloc(sizeof(GLint) * (count+1)); if (!contextArray) { __glcRaiseError(GLC_RESOURCE_ERROR); __glcUnlock(); return NULL; } /* Array must be null-terminated */ contextArray[count] = 0; /* Copy the context IDs to the array */ for (node = __glcCommonArea.contextList.tail; node;node = node->prev) contextArray[--count] = ((__GLCcontext*)node)->id; __glcUnlock(); return contextArray; } /** \ingroup global * Retrieves the value of the issuing thread's GLC error code variable, * assigns the value \b GLC_NONE to that variable, and returns the retrieved * value. * \note In contrast to the GL function \c glGetError, \e glcGetError only * returns one error, not a list of errors. * \return An error code from the table below : \n\n *
* * * * * * * * * * * * * * * * * *
Error codes
Name Enumerant
GLC_NONE 0x0000
GLC_PARAMETER_ERROR 0x0040
GLC_RESOURCE_ERROR 0x0041
GLC_STATE_ERROR 0x0042
*
*/ GLCenum APIENTRY glcGetError(void) { GLCenum error = GLC_NONE; __GLCthreadArea * area = NULL; GLC_INIT_THREAD(); area = GLC_GET_THREAD_AREA(); assert(area); error = area->errorState; __glcRaiseError(GLC_NONE); return error; } quesoglc-0.7.2/src/measure.c0000644000175000017500000006431311044721065012666 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: measure.c 816 2008-08-01 23:54:22Z bcoconni $ */ /** \file * defines the so-called "Measurement commands" described in chapter 3.10 of * the GLC specs. */ /** \defgroup measure Measurement commands * Those commands returns metrics (bounding box, baseline) of character or * string layouts. Glyphs coordinates are defined in em units and are * transformed during rendering to produce the desired mapping of the glyph * shape into the GL window coordinate system. Moreover, GLC can return some * metrics for a character and string layouts. The table below lists the * metrics that are available : *
* * * * * * * * * * * * * *
Metrics for character and string layout
Name Enumerant Vector
GLC_BASELINE 0x0030[ xl yl xr yr ]
GLC_BOUNDS 0x0031[ xlb ylb xrb yrb * xrt yrt xlt ylt ]
*
* \n \b GLC_BASELINE is the line segment from the origin of the layout to the * origin of the following layout. \b GLC_BOUNDS is the bounding box of the * layout. * * \image html measure.png "Baseline and bounds" * \image latex measure.eps "Baseline and bounds" width=7cm * \n Each point (x,y) is computed in em coordinates, with the origin * of a layout at (0,0). If the value of the variable * \b GLC_RENDER_STYLE is \b GLC_BITMAP, each point is transformed by the 2x2 * \b GLC_BITMAP_MATRIX. */ #include "internal.h" #include /* Multiply a vector by the GLC_BITMAP_MATRIX */ static void __glcTransformVector(GLfloat* outVec, GLfloat *inMatrix) { GLfloat temp = inMatrix[0] * outVec[0] + inMatrix[2] * outVec[1]; outVec[1] = inMatrix[1] * outVec[0] + inMatrix[3] * outVec[1]; outVec[0] = temp; } /* Retrieve the metrics of a character identified by 'inCode' in a font * identified by 'inFont'. * 'inCode' must be given in UCS-4 format */ static void* __glcGetCharMetric(GLint inCode, GLint inPrevCode, GLboolean inIsRTL, __GLCfont* inFont, __GLCcontext* inContext, void* inData, GLboolean inMultipleChars) { GLfloat* outVec = (GLfloat*)inData; int i = 0; GLfloat xMin = 0., xMax = 0.; GLfloat yMin = 0., yMax = 0.; GLfloat scale_x = GLC_POINT_SIZE; GLfloat scale_y = GLC_POINT_SIZE; GLfloat temp[4]; assert(inFont); if (inMultipleChars && (inContext->renderState.renderStyle == GLC_BITMAP)) { /* If a string (or several characters) is to be measured, it will be easier * to perform the calculations in the glyph coordinate system than in the * screen coordinate system. In order to get the values that already stored * in outVec back in the glyph coordinate system, we must compute the * inverse of the transformation matrix. * Note that the inverse of the transformation exists since we have already * checked that the scale factors are not zero. */ GLfloat* matrix = inContext->bitmapMatrix; GLfloat inverseMatrix[4]; GLfloat norm = 0.; GLfloat determinant = matrix[0] * matrix[3] - matrix[1] * matrix[2]; for (i = 0; i < 4; i++) { if (fabs(matrix[i]) > norm) norm = fabs(matrix[i]); } if (determinant >= norm * GLC_EPSILON) { inverseMatrix[0] = matrix[3] / determinant; inverseMatrix[1] = -matrix[1] / determinant; inverseMatrix[2] = -matrix[2] / determinant; inverseMatrix[3] = matrix[0] / determinant; } else return NULL; /* Transform the values in outVec from the screen coordinate system to the * the glyph coordinate system */ for (i = 0; i < 7; i++) __glcTransformVector(&outVec[2*i], inverseMatrix); } if (!inMultipleChars) { outVec[0] = 0.; outVec[1] = 0.; outVec[2] = 0.; outVec[3] = 0.; } else { outVec[2] += outVec[12]; outVec[3] += outVec[13]; } if (!__glcFontGetBoundingBox(inFont, inCode, temp, inContext, scale_x, scale_y)) return NULL; /* Take into account the advance of the glyphs that have already been * measured. */ xMin = temp[0] + outVec[2]; yMin = temp[1] + outVec[3]; xMax = temp[2] + outVec[2]; yMax = temp[3] + outVec[3]; /* Update the global bounding box */ if (inMultipleChars) { outVec[4] = xMin < outVec[4] ? xMin : outVec[4]; outVec[5] = yMin < outVec[5] ? yMin : outVec[5]; outVec[6] = xMax > outVec[6] ? xMax : outVec[6]; outVec[9] = yMax > outVec[9] ? yMax : outVec[9]; } else { outVec[4] = xMin; outVec[5] = yMin; outVec[6] = xMax; outVec[9] = yMax; } /* Finalize the update of the bounding box coordinates */ outVec[7] = outVec[5]; outVec[8] = outVec[6]; outVec[10] = outVec[4]; outVec[11] = outVec[9]; /* Get the advance of the glyph */ if (!__glcFontGetAdvance(inFont, inCode, temp, inContext, scale_x, scale_y)) return NULL; /* Update the global advance accordingly */ if (inIsRTL) { outVec[2] -= temp[0]; outVec[3] -= temp[1]; } else { outVec[2] += temp[0]; outVec[3] += temp[1]; } outVec[12] = 0.; outVec[13] = 0.; if (inPrevCode && inContext->enableState.kerning) { GLfloat kerning[2]; GLint leftCode = inIsRTL ? inCode : inPrevCode; GLint rightCode = inIsRTL ? inPrevCode : inCode; if (__glcFontGetKerning(inFont, leftCode, rightCode, kerning, inContext, scale_x, scale_y)) { outVec[12] = inIsRTL ? -kerning[0] : kerning[0]; outVec[13] = kerning[1]; } } /* Transforms the values into the screen coordinate system if necessary */ if (inContext->renderState.renderStyle == GLC_BITMAP) { for (i = 0; i < 7; i++) __glcTransformVector(&outVec[2*i], inContext->bitmapMatrix); } return outVec; } /** \ingroup measure * This command is identical to the command glcRenderChar(), except that * instead of rendering the character that \e inCode is mapped to, the command * measures the resulting layout and stores in \e outVec the value of the * metric identified by \e inMetric. If the command does not raise an error, * its return value is \e outVec. * * The command raises \b GLC_PARAMETER_ERROR if \e outVec is NULL. * \param inCode The character to measure. * \param inMetric The metric to measure, either \b GLC_BASELINE or * \b GLC_BOUNDS. * \param outVec A vector in which to store value of \e inMetric for specified * character. * \returns \e outVec if the command succeeds, \b NULL otherwise. * \sa glcGetMaxCharMetric() * \sa glcGetStringCharMetric() * \sa glcMeasureCountedString() * \sa glcMeasureString() */ GLfloat* APIENTRY glcGetCharMetric(GLint inCode, GLCenum inMetric, GLfloat *outVec) { __GLCcontext *ctx = NULL; GLint code = 0; GLfloat vector[14]; __GLCcharacter prevCode = { 0, NULL, NULL, {0.f, 0.f}}; GLC_INIT_THREAD(); assert(outVec); switch(inMetric) { case GLC_BASELINE: case GLC_BOUNDS: break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } /* Verify if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return NULL; } /* Get the character code converted to the UCS-4 format */ code = __glcConvertGLintToUcs4(ctx, inCode); if (code < 0) return NULL; /* Control characters have no metrics */ if (code < 32) { memset(outVec, 0, ((inMetric == GLC_BOUNDS) ? 8 : 4) * sizeof(GLfloat)); return outVec; } /* Call __glcProcessChar that will get a font which maps the code to a glyph * or issue the replacement code or the character sequence \ and call * __glcGetCharMetric() */ memset(vector, 0, 14 * sizeof(GLfloat)); if (__glcProcessChar(ctx, code, &prevCode, GL_FALSE, __glcGetCharMetric, vector)) { switch(inMetric) { case GLC_BASELINE: memcpy(outVec, vector, 4 * sizeof(GLfloat)); return outVec; case GLC_BOUNDS: memcpy(outVec, &vector[4], 8 * sizeof(GLfloat)); return outVec; } } return NULL; } /** \ingroup measure * This command measures the layout that would result from rendering all * mapped characters at the same origin. This contrast with * glcGetStringCharMetric(), which measures characters as part of a string, * that is, influenced by kerning, ligatures, and so on. * * This command evaluates the metrics of every fonts in the * \b GLC_CURRENT_FONT_LIST. Fonts that are not listed in * \b GLC_CURRENT_FONT_LIST are ignored. * * The command stores in \e outVec the value of the metric identified by * \e inMetric. If the command does not raise an error, its return value * is \e outVec. * * The command raises \b GLC_PARAMETER_ERROR if \e outVec is NULL. * \param inMetric The metric to measure, either \b GLC_BASELINE or * \b GLC_BOUNDS. * \param outVec A vector in which to store value of \e inMetric for all * mapped character. * \returns \e outVec if the command succeeds, \b NULL otherwise. * \sa glcGetCharMetric() * \sa glcGetStringCharMetric() * \sa glcMeasureCountedString() * \sa glcMeasureString() */ GLfloat* APIENTRY glcGetMaxCharMetric(GLCenum inMetric, GLfloat *outVec) { __GLCcontext *ctx = NULL; GLfloat advance_x = 0., advance_y = 0., yb = 0., yt = 0., xr = 0., xl = 0.; FT_ListNode node = NULL; GLC_INIT_THREAD(); assert(outVec); /* Check the parameters */ switch(inMetric) { case GLC_BASELINE: case GLC_BOUNDS: break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } /* Verify if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return NULL; } /* For each font in GLC_CURRENT_FONT_LIST find the maximum values of the * advance width of the bounding boxes. */ for (node = ctx->currentFontList.head; node; node = node->next) { GLfloat temp[6]; __GLCfont* font = (__GLCfont*)node->data; if (!__glcFontGetMaxMetric(font, temp, ctx)) return NULL; advance_x = temp[0] > advance_x ? temp[0] : advance_x; advance_y = temp[1] > advance_y ? temp[1] : advance_y; yt = temp[2] > yt ? temp[2] : yt; yb = temp[3] < yb ? temp[3] : yb; xr = temp[4] > xr ? temp[4] : xr; xl = temp[5] < xl ? temp[5] : xl; } /* Update and transform, if necessary, the returned value */ switch(inMetric) { case GLC_BASELINE: outVec[0] = 0.; outVec[1] = 0.; outVec[2] = advance_x; outVec[3] = advance_y; if (ctx->renderState.renderStyle == GLC_BITMAP) __glcTransformVector(&outVec[2], ctx->bitmapMatrix); return outVec; case GLC_BOUNDS: outVec[0] = xl; outVec[1] = yb; outVec[2] = xr; outVec[3] = yb; outVec[4] = xr; outVec[5] = yt; outVec[6] = xl; outVec[7] = yt; if (ctx->renderState.renderStyle == GLC_BITMAP) { int i = 0; for (i = 0; i < 4; i++) __glcTransformVector(&outVec[2*i], ctx->bitmapMatrix); } return outVec; } return NULL; } /** \ingroup measure * This command retrieves a character metric from the GLC measurement buffer * and stores it in \e outVec. To store a string in the measurement buffer, * call glcMeasureCountedString() or glcMeasureString(). * * The character is identified by \e inIndex, and the metric is identified by * \e inMetric. * * The command raises \b GLC_PARAMETER_ERROR if \e inIndex is less than zero * or is greater than or equal to the value of the variable * \b GLC_MEASURED_CHAR_COUNT or \e outVec is NULL. If the command does not * raise an error, its return value is outVec. * \par Example: * The following example first calls glcMeasureString() to store the string * "hello" in the measurement buffer. It then retrieves both the baseline and * the bounding box for the whole string, then for each individual character. * * \code * GLfloat overallBaseline[4]; * GLfloat overallBoundingBox[8]; * * GLfloat charBaslines[5][4]; * GLfloat charBoundingBoxes[5][8]; * * GLint i; * * glcMeasureString(GL_TRUE, "hello"); * * glcGetStringMetric(GLC_BASELINE, overallBaseline); * glcGetStringMetric(GLC_BOUNDS, overallBoundingBox); * * for (i = 0; i < 5; i++) { * glcGetStringCharMetric(i, GLC_BASELINE, charBaselines[i]); * glcGetStringCharMetric(i, GLC_BOUNDS, charBoundingBoxes[i]); * } * \endcode * \note * \e glcGetStringCharMetric is useful if you're interested in the metrics of * a character as it appears in a string, that is, influenced by kerning, * ligatures, and so on. To measure a character as if it started at the * origin, call glcGetCharMetric(). * \param inIndex Specifies which element in the string to measure. * \param inMetric The metric to measure, either \b GLC_BASELINE or * \b GLC_BOUNDS. * \param outVec A vector in which to store value of \e inMetric for the * character identified by \e inIndex. * \returns \e outVec if the command succeeds, \b NULL otherwise. * \sa glcGetCharMetric() * \sa glcGetMaxCharMetric() * \sa glcMeasureCountedString() * \sa glcMeasureString() */ GLfloat* APIENTRY glcGetStringCharMetric(GLint inIndex, GLCenum inMetric, GLfloat *outVec) { __GLCcontext *ctx = NULL; GLfloat (*measurementBuffer)[12] = NULL; GLC_INIT_THREAD(); assert(outVec); /* Check the parameters */ switch(inMetric) { case GLC_BASELINE: case GLC_BOUNDS: break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } /* Verify if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return NULL; } measurementBuffer = (GLfloat(*)[12])GLC_ARRAY_DATA(ctx->measurementBuffer); /* Verify that inIndex is in legal bounds */ if ((inIndex < 0) || (inIndex >= GLC_ARRAY_LENGTH(ctx->measurementBuffer))) { __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } switch(inMetric) { case GLC_BASELINE: memcpy(outVec, &measurementBuffer[inIndex][0], 4*sizeof(GLfloat)); return outVec; case GLC_BOUNDS: memcpy(outVec, &measurementBuffer[inIndex][4], 8*sizeof(GLfloat)); return outVec; } return NULL; } /** \ingroup measure * This command retrieves a string metric from the GLC measurement buffer * and stores it in \e outVec. The metric is identified by \e inMetric. To * store a string from the GLC measurement buffer, call * glcMeasureCountedString() or glcMeasureString(). * * The command raises \b GLC_PARAMETER_ERROR if \e outVec is \b GLC_NONE * * If the command does not raise an error, its return value is \e outVec. * \param inMetric The metric to measure, either \b GLC_BASELINE or * \b GLC_BOUNDS. * \param outVec A vector in which to store value of \e inMetric for the * character identified by \e inIndex. * \returns \e outVec if the command succeeds, \b NULL otherwise. * \sa glcGetCharMetric() * \sa glcGetMaxCharMetric() * \sa glcGetStringCharMetric() * \sa glcMeasureCountedString() * \sa glcMeasureString() */ GLfloat* APIENTRY glcGetStringMetric(GLCenum inMetric, GLfloat *outVec) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); assert(outVec); /* Check the parameters */ switch(inMetric) { case GLC_BASELINE: case GLC_BOUNDS: break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } /* Verify if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return NULL; } /* Copy the values requested by the client in outVec */ switch(inMetric) { case GLC_BASELINE: memcpy(outVec, ctx->measurementStringBuffer, 4*sizeof(GLfloat)); return outVec; case GLC_BOUNDS: memcpy(outVec, &ctx->measurementStringBuffer[4], 8*sizeof(GLfloat)); return outVec; } return NULL; } /* This function perform the actual work of measuring a string * It is called by both glcMeasureString() and glcMeasureCountedString() * The string inString is encoded in UCS4 and is stored in visual order. */ static GLint __glcMeasureCountedString(__GLCcontext *inContext, GLboolean inMeasureChars, GLint inCount, const GLCchar32* inString, GLboolean inIsRTL) { GLint i = 0; GLfloat metrics[14]; const GLCchar32* ptr = NULL; const GLint storeRenderStyle = inContext->renderState.renderStyle; GLfloat xMin = 0., xMax = 0.; GLfloat yMin = 0., yMax = 0.; GLfloat* outVec = inContext->measurementStringBuffer; __GLCcharacter prevCode = { 0, NULL, NULL, {0.f, 0.f}}; GLint shift = 1; if (inContext->renderState.renderStyle == GLC_BITMAP) { /* In order to prevent __glcProcessCharMetric() to transform its results * with the GLC_MATRIX, ctx->renderStyle must not be GLC_BITMAP */ inContext->renderState.renderStyle = 0; } memset(outVec, 0, 12*sizeof(GLfloat)); if (inMeasureChars) GLC_ARRAY_LENGTH(inContext->measurementBuffer) = 0; /* For each character of the string, the measurement are performed and * gathered in the context state */ ptr = inString; if (inIsRTL) { ptr += inCount - 1; shift = -1; } memset(metrics, 0, 14 * sizeof(GLfloat)); for (i = 0; i < inCount; i++) { if (*ptr < 32) { /* Control characters have no metrics. However they must not be skipped * otherwise the characters indices in the string would be modified and * this would make troubles when the user calls glcGetStringCharMetric(). */ memset(metrics, 0, 14 * sizeof(GLfloat)); } else { if (inContext->enableState.glObjects && inContext->renderState.renderStyle) { __GLCfont* font = NULL; __GLCglyph* glyph = NULL; FT_ListNode node = NULL; for (node = inContext->currentFontList.head; node ; node = node->next) { font = (__GLCfont*)node->data; glyph = __glcCharMapGetGlyph(font->charMap, *ptr); metrics[0] = 0.; metrics[1] = 0.; if (!glyph || !glyph->advanceCached) __glcFontGetAdvance(font, *ptr, &metrics[2], inContext, GLC_POINT_SIZE, GLC_POINT_SIZE); else { metrics[2] = glyph->advance[0]; metrics[3] = glyph->advance[1]; } if (!glyph || !glyph->boundingBoxCached) { __glcFontGetBoundingBox(font, *ptr, &metrics[4], inContext, GLC_POINT_SIZE, GLC_POINT_SIZE); metrics[9] = metrics[7]; } else { metrics[4] = glyph->boundingBox[0]; metrics[5] = glyph->boundingBox[1]; metrics[6] = glyph->boundingBox[2]; metrics[9] = glyph->boundingBox[3]; } metrics[7] = metrics[5]; metrics[8] = metrics[6]; metrics[10] = metrics[4]; metrics[11] = metrics[9]; if (inContext->enableState.kerning) { if (prevCode.code && prevCode.font == font) { GLint leftCode = inIsRTL ? *ptr : prevCode.code; GLint rightCode = inIsRTL ? prevCode.code : *ptr; __glcFontGetKerning(font, leftCode, rightCode, &metrics[12], inContext, GLC_POINT_SIZE, GLC_POINT_SIZE); } } prevCode.font = font; prevCode.code = *ptr; break; } if (!node) __glcProcessChar(inContext, *ptr, &prevCode, inIsRTL, __glcGetCharMetric, metrics); } else { __glcProcessChar(inContext, *ptr, &prevCode, inIsRTL, __glcGetCharMetric, metrics); } } ptr += shift; /* If characters are to be measured then store the results */ if (inMeasureChars) { __glcArrayAppend(inContext->measurementBuffer, metrics); if (i) { GLfloat (*measurementBuffer)[12] = (GLfloat(*)[12])GLC_ARRAY_DATA(inContext->measurementBuffer); GLfloat prevCharAdvance = measurementBuffer[i-1][2] + metrics[12]; int j = 0; for (j = 0; j < 6; j++) measurementBuffer[i][2*j] += prevCharAdvance; } } /* Initialize outVec if we are processing the first character of the string */ if (!i) { outVec[0] = metrics[0]; outVec[1] = metrics[1]; outVec[2] = metrics[0]; outVec[3] = metrics[1]; outVec[4] = metrics[4] + metrics[0]; outVec[5] = metrics[5] + metrics[1]; outVec[6] = metrics[6] + metrics[0]; outVec[9] = metrics[9] + metrics[1]; } else { /* Takes the kerning into account */ outVec[2] += metrics[12]; outVec[3] += metrics[13]; } xMin = metrics[4] + outVec[2]; xMax = metrics[6] + outVec[2]; yMin = metrics[5] + outVec[3]; yMax = metrics[9] + outVec[3]; outVec[4] = xMin < outVec[4] ? xMin : outVec[4]; outVec[5] = yMin < outVec[5] ? yMin : outVec[5]; outVec[6] = xMax > outVec[6] ? xMax : outVec[6]; outVec[9] = yMax > outVec[9] ? yMax : outVec[9]; outVec[2] += metrics[2]; outVec[3] += metrics[3]; } outVec[7] = outVec[5]; outVec[8] = outVec[6]; outVec[10] = outVec[4]; outVec[11] = outVec[9]; /* Transform all the data in the screen coordinate system if the rendering * style is GLC_BITMAP. */ if (storeRenderStyle == GLC_BITMAP) { inContext->renderState.renderStyle = storeRenderStyle; for (i = 0; i < 6; i++) __glcTransformVector(&inContext->measurementStringBuffer[2*i], inContext->bitmapMatrix); if (inMeasureChars) { GLfloat (*measurementBuffer)[12] = (GLfloat(*)[12])GLC_ARRAY_DATA(inContext->measurementBuffer); int j = 0; for (i = 0; i < inCount; i++) { for (j = 0; j < 6; j++) __glcTransformVector(&measurementBuffer[i][2*j], inContext->bitmapMatrix); } } } /* Return the number of measured characters */ return inCount; } /** \ingroup measure * This command is identical to the command glcRenderCountedString(), except * that instead of rendering a string, the command measures the resulting * layout and stores the measurement in the GLC measurement buffer. The * string comprises the first \e inCount elements of the array \e inString, * which need not be followed by a zero element. * * If the value \e inMeasureChars is nonzero, the command computes metrics for * each character and for the overall string, and it assigns the value * \e inCount to the variable \b GLC_MEASURED_CHARACTER_COUNT. Otherwise, the * command computes metrics only for the overall string, and it assigns the * value zero to the variable \b GLC_MEASURED_CHARACTER_COUNT. * * If the command does not raise an error, its return value is the value of * the variable \b GLC_MEASURED_CHARACTER_COUNT. * * The command raises \b GLC_PARAMETER_ERROR if \e inCount is less than zero. * \param inMeasureChars Specifies whether to compute metrics only for the * string or for the characters as well. * \param inCount The number of elements to measure, starting at the first * element. * \param inString The string to be measured. * \returns The variable \b GLC_MEASURED_CHARACTER_COUNT if the command * succeeds, zero otherwise. * \sa glcGeti() with argument GLC_MEASURED_CHAR_COUNT * \sa glcGetStringCharMetric() * \sa glcGetStringMetric() */ GLint APIENTRY glcMeasureCountedString(GLboolean inMeasureChars, GLint inCount, const GLCchar* inString) { __GLCcontext *ctx = NULL; GLint count = 0; GLCchar32* UinString = NULL; GLboolean isRightToLeft = GL_FALSE; GLC_INIT_THREAD(); /* Check the parameters */ if (inCount < 0) { __glcRaiseError(GLC_PARAMETER_ERROR); return 0; } /* Verify if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return 0; } /* If inString is NULL then there is no point in continuing */ if (!inString) return 0; UinString = __glcConvertCountedStringToVisualUcs4(ctx, &isRightToLeft, inString, inCount); if (!UinString) return 0; count = __glcMeasureCountedString(ctx, inMeasureChars, inCount, UinString, isRightToLeft); return count; } /** \ingroup measure * This command measures the layout that would result from rendering a string * and stores the measurements in the GLC measurement buffer. This command * is identical to the command glcMeasureCountedString(), except that * \e inString is zero terminated, not counted. * * If the command does not raise an error, its return value is the value of * the variable \b GLC_MEASURED_CHARACTER_COUNT. * \param inMeasureChars Specifies whether to compute metrics only for the * string or for the characters as well. * \param inString The string to be measured. * \returns The variable \b GLC_MEASURED_CHARACTER_COUNT if the command * succeeds, zero otherwise. * \sa glcGeti() with argument GLC_MEASURED_CHAR_COUNT * \sa glcGetStringCharMetric() * \sa glcGetStringMetric() */ GLint APIENTRY glcMeasureString(GLboolean inMeasureChars, const GLCchar* inString) { __GLCcontext *ctx = NULL; GLCchar32* UinString = NULL; GLint count = 0; GLint length = 0; GLboolean isRightToLeft = GL_FALSE; GLC_INIT_THREAD(); /* Verify if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return 0; } /* If inString is NULL then there is no point in continuing */ if (!inString) return 0; UinString = __glcConvertToVisualUcs4(ctx, &isRightToLeft, &length, inString); if (!UinString) return 0; count = __glcMeasureCountedString(ctx, inMeasureChars, length, UinString, isRightToLeft); return count; } quesoglc-0.7.2/src/database.c0000644000175000017500000002542410764574653013012 00000000000000/* This is automagically generated by buildDB.py */ #include "internal.h" const __GLCdataCodeFromName __glcCodeFromNameArray[] = { { 180, "ACUTE ACCENT"}, { 38, "AMPERSAND"}, { 39, "APOSTROPHE"}, { 42, "ASTERISK"}, { 166, "BROKEN BAR"}, { 184, "CEDILLA"}, { 162, "CENT SIGN"}, { 94, "CIRCUMFLEX ACCENT"}, { 58, "COLON"}, { 44, "COMMA"}, { 64, "COMMERCIAL AT"}, { 169, "COPYRIGHT SIGN"}, { 164, "CURRENCY SIGN"}, { 176, "DEGREE SIGN"}, { 168, "DIAERESIS"}, { 56, "DIGIT EIGHT"}, { 53, "DIGIT FIVE"}, { 52, "DIGIT FOUR"}, { 57, "DIGIT NINE"}, { 49, "DIGIT ONE"}, { 55, "DIGIT SEVEN"}, { 54, "DIGIT SIX"}, { 51, "DIGIT THREE"}, { 50, "DIGIT TWO"}, { 48, "DIGIT ZERO"}, { 247, "DIVISION SIGN"}, { 36, "DOLLAR SIGN"}, { 61, "EQUALS SIGN"}, { 33, "EXCLAMATION MARK"}, { 170, "FEMININE ORDINAL INDICATOR"}, { 46, "FULL STOP"}, { 96, "GRAVE ACCENT"}, { 62, "GREATER-THAN SIGN"}, { 45, "HYPHEN-MINUS"}, { 161, "INVERTED EXCLAMATION MARK"}, { 191, "INVERTED QUESTION MARK"}, { 65, "LATIN CAPITAL LETTER A"}, { 193, "LATIN CAPITAL LETTER A WITH ACUTE"}, { 258, "LATIN CAPITAL LETTER A WITH BREVE"}, { 194, "LATIN CAPITAL LETTER A WITH CIRCUMFLEX"}, { 196, "LATIN CAPITAL LETTER A WITH DIAERESIS"}, { 192, "LATIN CAPITAL LETTER A WITH GRAVE"}, { 256, "LATIN CAPITAL LETTER A WITH MACRON"}, { 260, "LATIN CAPITAL LETTER A WITH OGONEK"}, { 197, "LATIN CAPITAL LETTER A WITH RING ABOVE"}, { 195, "LATIN CAPITAL LETTER A WITH TILDE"}, { 198, "LATIN CAPITAL LETTER AE"}, { 66, "LATIN CAPITAL LETTER B"}, { 67, "LATIN CAPITAL LETTER C"}, { 262, "LATIN CAPITAL LETTER C WITH ACUTE"}, { 268, "LATIN CAPITAL LETTER C WITH CARON"}, { 199, "LATIN CAPITAL LETTER C WITH CEDILLA"}, { 264, "LATIN CAPITAL LETTER C WITH CIRCUMFLEX"}, { 266, "LATIN CAPITAL LETTER C WITH DOT ABOVE"}, { 68, "LATIN CAPITAL LETTER D"}, { 270, "LATIN CAPITAL LETTER D WITH CARON"}, { 272, "LATIN CAPITAL LETTER D WITH STROKE"}, { 69, "LATIN CAPITAL LETTER E"}, { 201, "LATIN CAPITAL LETTER E WITH ACUTE"}, { 276, "LATIN CAPITAL LETTER E WITH BREVE"}, { 282, "LATIN CAPITAL LETTER E WITH CARON"}, { 202, "LATIN CAPITAL LETTER E WITH CIRCUMFLEX"}, { 203, "LATIN CAPITAL LETTER E WITH DIAERESIS"}, { 278, "LATIN CAPITAL LETTER E WITH DOT ABOVE"}, { 200, "LATIN CAPITAL LETTER E WITH GRAVE"}, { 274, "LATIN CAPITAL LETTER E WITH MACRON"}, { 280, "LATIN CAPITAL LETTER E WITH OGONEK"}, { 208, "LATIN CAPITAL LETTER ETH"}, { 70, "LATIN CAPITAL LETTER F"}, { 71, "LATIN CAPITAL LETTER G"}, { 286, "LATIN CAPITAL LETTER G WITH BREVE"}, { 290, "LATIN CAPITAL LETTER G WITH CEDILLA"}, { 284, "LATIN CAPITAL LETTER G WITH CIRCUMFLEX"}, { 288, "LATIN CAPITAL LETTER G WITH DOT ABOVE"}, { 72, "LATIN CAPITAL LETTER H"}, { 292, "LATIN CAPITAL LETTER H WITH CIRCUMFLEX"}, { 294, "LATIN CAPITAL LETTER H WITH STROKE"}, { 73, "LATIN CAPITAL LETTER I"}, { 205, "LATIN CAPITAL LETTER I WITH ACUTE"}, { 300, "LATIN CAPITAL LETTER I WITH BREVE"}, { 206, "LATIN CAPITAL LETTER I WITH CIRCUMFLEX"}, { 207, "LATIN CAPITAL LETTER I WITH DIAERESIS"}, { 304, "LATIN CAPITAL LETTER I WITH DOT ABOVE"}, { 204, "LATIN CAPITAL LETTER I WITH GRAVE"}, { 298, "LATIN CAPITAL LETTER I WITH MACRON"}, { 302, "LATIN CAPITAL LETTER I WITH OGONEK"}, { 296, "LATIN CAPITAL LETTER I WITH TILDE"}, { 74, "LATIN CAPITAL LETTER J"}, { 308, "LATIN CAPITAL LETTER J WITH CIRCUMFLEX"}, { 75, "LATIN CAPITAL LETTER K"}, { 310, "LATIN CAPITAL LETTER K WITH CEDILLA"}, { 76, "LATIN CAPITAL LETTER L"}, { 313, "LATIN CAPITAL LETTER L WITH ACUTE"}, { 317, "LATIN CAPITAL LETTER L WITH CARON"}, { 315, "LATIN CAPITAL LETTER L WITH CEDILLA"}, { 319, "LATIN CAPITAL LETTER L WITH MIDDLE DOT"}, { 77, "LATIN CAPITAL LETTER M"}, { 78, "LATIN CAPITAL LETTER N"}, { 209, "LATIN CAPITAL LETTER N WITH TILDE"}, { 79, "LATIN CAPITAL LETTER O"}, { 211, "LATIN CAPITAL LETTER O WITH ACUTE"}, { 212, "LATIN CAPITAL LETTER O WITH CIRCUMFLEX"}, { 214, "LATIN CAPITAL LETTER O WITH DIAERESIS"}, { 210, "LATIN CAPITAL LETTER O WITH GRAVE"}, { 216, "LATIN CAPITAL LETTER O WITH STROKE"}, { 213, "LATIN CAPITAL LETTER O WITH TILDE"}, { 80, "LATIN CAPITAL LETTER P"}, { 81, "LATIN CAPITAL LETTER Q"}, { 82, "LATIN CAPITAL LETTER R"}, { 83, "LATIN CAPITAL LETTER S"}, { 84, "LATIN CAPITAL LETTER T"}, { 222, "LATIN CAPITAL LETTER THORN"}, { 85, "LATIN CAPITAL LETTER U"}, { 218, "LATIN CAPITAL LETTER U WITH ACUTE"}, { 219, "LATIN CAPITAL LETTER U WITH CIRCUMFLEX"}, { 220, "LATIN CAPITAL LETTER U WITH DIAERESIS"}, { 217, "LATIN CAPITAL LETTER U WITH GRAVE"}, { 86, "LATIN CAPITAL LETTER V"}, { 87, "LATIN CAPITAL LETTER W"}, { 88, "LATIN CAPITAL LETTER X"}, { 89, "LATIN CAPITAL LETTER Y"}, { 221, "LATIN CAPITAL LETTER Y WITH ACUTE"}, { 90, "LATIN CAPITAL LETTER Z"}, { 306, "LATIN CAPITAL LIGATURE IJ"}, { 97, "LATIN SMALL LETTER A"}, { 225, "LATIN SMALL LETTER A WITH ACUTE"}, { 259, "LATIN SMALL LETTER A WITH BREVE"}, { 226, "LATIN SMALL LETTER A WITH CIRCUMFLEX"}, { 228, "LATIN SMALL LETTER A WITH DIAERESIS"}, { 224, "LATIN SMALL LETTER A WITH GRAVE"}, { 257, "LATIN SMALL LETTER A WITH MACRON"}, { 261, "LATIN SMALL LETTER A WITH OGONEK"}, { 229, "LATIN SMALL LETTER A WITH RING ABOVE"}, { 227, "LATIN SMALL LETTER A WITH TILDE"}, { 230, "LATIN SMALL LETTER AE"}, { 98, "LATIN SMALL LETTER B"}, { 99, "LATIN SMALL LETTER C"}, { 263, "LATIN SMALL LETTER C WITH ACUTE"}, { 269, "LATIN SMALL LETTER C WITH CARON"}, { 231, "LATIN SMALL LETTER C WITH CEDILLA"}, { 265, "LATIN SMALL LETTER C WITH CIRCUMFLEX"}, { 267, "LATIN SMALL LETTER C WITH DOT ABOVE"}, { 100, "LATIN SMALL LETTER D"}, { 271, "LATIN SMALL LETTER D WITH CARON"}, { 273, "LATIN SMALL LETTER D WITH STROKE"}, { 305, "LATIN SMALL LETTER DOTLESS I"}, { 101, "LATIN SMALL LETTER E"}, { 233, "LATIN SMALL LETTER E WITH ACUTE"}, { 277, "LATIN SMALL LETTER E WITH BREVE"}, { 283, "LATIN SMALL LETTER E WITH CARON"}, { 234, "LATIN SMALL LETTER E WITH CIRCUMFLEX"}, { 235, "LATIN SMALL LETTER E WITH DIAERESIS"}, { 279, "LATIN SMALL LETTER E WITH DOT ABOVE"}, { 232, "LATIN SMALL LETTER E WITH GRAVE"}, { 275, "LATIN SMALL LETTER E WITH MACRON"}, { 281, "LATIN SMALL LETTER E WITH OGONEK"}, { 240, "LATIN SMALL LETTER ETH"}, { 102, "LATIN SMALL LETTER F"}, { 103, "LATIN SMALL LETTER G"}, { 287, "LATIN SMALL LETTER G WITH BREVE"}, { 291, "LATIN SMALL LETTER G WITH CEDILLA"}, { 285, "LATIN SMALL LETTER G WITH CIRCUMFLEX"}, { 289, "LATIN SMALL LETTER G WITH DOT ABOVE"}, { 104, "LATIN SMALL LETTER H"}, { 293, "LATIN SMALL LETTER H WITH CIRCUMFLEX"}, { 295, "LATIN SMALL LETTER H WITH STROKE"}, { 105, "LATIN SMALL LETTER I"}, { 237, "LATIN SMALL LETTER I WITH ACUTE"}, { 301, "LATIN SMALL LETTER I WITH BREVE"}, { 238, "LATIN SMALL LETTER I WITH CIRCUMFLEX"}, { 239, "LATIN SMALL LETTER I WITH DIAERESIS"}, { 236, "LATIN SMALL LETTER I WITH GRAVE"}, { 299, "LATIN SMALL LETTER I WITH MACRON"}, { 303, "LATIN SMALL LETTER I WITH OGONEK"}, { 297, "LATIN SMALL LETTER I WITH TILDE"}, { 106, "LATIN SMALL LETTER J"}, { 309, "LATIN SMALL LETTER J WITH CIRCUMFLEX"}, { 107, "LATIN SMALL LETTER K"}, { 311, "LATIN SMALL LETTER K WITH CEDILLA"}, { 312, "LATIN SMALL LETTER KRA"}, { 108, "LATIN SMALL LETTER L"}, { 314, "LATIN SMALL LETTER L WITH ACUTE"}, { 318, "LATIN SMALL LETTER L WITH CARON"}, { 316, "LATIN SMALL LETTER L WITH CEDILLA"}, { 320, "LATIN SMALL LETTER L WITH MIDDLE DOT"}, { 109, "LATIN SMALL LETTER M"}, { 110, "LATIN SMALL LETTER N"}, { 241, "LATIN SMALL LETTER N WITH TILDE"}, { 111, "LATIN SMALL LETTER O"}, { 243, "LATIN SMALL LETTER O WITH ACUTE"}, { 244, "LATIN SMALL LETTER O WITH CIRCUMFLEX"}, { 246, "LATIN SMALL LETTER O WITH DIAERESIS"}, { 242, "LATIN SMALL LETTER O WITH GRAVE"}, { 248, "LATIN SMALL LETTER O WITH STROKE"}, { 245, "LATIN SMALL LETTER O WITH TILDE"}, { 112, "LATIN SMALL LETTER P"}, { 113, "LATIN SMALL LETTER Q"}, { 114, "LATIN SMALL LETTER R"}, { 115, "LATIN SMALL LETTER S"}, { 223, "LATIN SMALL LETTER SHARP S"}, { 116, "LATIN SMALL LETTER T"}, { 254, "LATIN SMALL LETTER THORN"}, { 117, "LATIN SMALL LETTER U"}, { 250, "LATIN SMALL LETTER U WITH ACUTE"}, { 251, "LATIN SMALL LETTER U WITH CIRCUMFLEX"}, { 252, "LATIN SMALL LETTER U WITH DIAERESIS"}, { 249, "LATIN SMALL LETTER U WITH GRAVE"}, { 118, "LATIN SMALL LETTER V"}, { 119, "LATIN SMALL LETTER W"}, { 120, "LATIN SMALL LETTER X"}, { 121, "LATIN SMALL LETTER Y"}, { 253, "LATIN SMALL LETTER Y WITH ACUTE"}, { 255, "LATIN SMALL LETTER Y WITH DIAERESIS"}, { 122, "LATIN SMALL LETTER Z"}, { 307, "LATIN SMALL LIGATURE IJ"}, { 123, "LEFT CURLY BRACKET"}, { 40, "LEFT PARENTHESIS"}, { 91, "LEFT SQUARE BRACKET"}, { 171, "LEFT-POINTING DOUBLE ANGLE QUOTATION MARK"}, { 60, "LESS-THAN SIGN"}, { 95, "LOW LINE"}, { 175, "MACRON"}, { 186, "MASCULINE ORDINAL INDICATOR"}, { 181, "MICRO SIGN"}, { 183, "MIDDLE DOT"}, { 215, "MULTIPLICATION SIGN"}, { 160, "NO-BREAK SPACE"}, { 172, "NOT SIGN"}, { 35, "NUMBER SIGN"}, { 37, "PERCENT SIGN"}, { 182, "PILCROW SIGN"}, { 43, "PLUS SIGN"}, { 177, "PLUS-MINUS SIGN"}, { 163, "POUND SIGN"}, { 63, "QUESTION MARK"}, { 34, "QUOTATION MARK"}, { 174, "REGISTERED SIGN"}, { 92, "REVERSE SOLIDUS"}, { 125, "RIGHT CURLY BRACKET"}, { 41, "RIGHT PARENTHESIS"}, { 93, "RIGHT SQUARE BRACKET"}, { 187, "RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK"}, { 167, "SECTION SIGN"}, { 59, "SEMICOLON"}, { 173, "SOFT HYPHEN"}, { 47, "SOLIDUS"}, { 32, "SPACE"}, { 185, "SUPERSCRIPT ONE"}, { 179, "SUPERSCRIPT THREE"}, { 178, "SUPERSCRIPT TWO"}, { 126, "TILDE"}, { 124, "VERTICAL LINE"}, { 189, "VULGAR FRACTION ONE HALF"}, { 188, "VULGAR FRACTION ONE QUARTER"}, { 190, "VULGAR FRACTION THREE QUARTERS"}, { 165, "YEN SIGN"}, }; const GLint __glcNameFromCodeArray[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 246, 28, 235, 228, 26, 229, 1, 2, 216, 239, 3, 231, 9, 33, 30, 245, 24, 19, 23, 22, 17, 16, 21, 20, 15, 18, 8, 243, 219, 27, 32, 234, 10, 36, 47, 48, 54, 57, 68, 69, 74, 77, 87, 89, 91, 96, 97, 99, 106, 107, 108, 109, 110, 112, 117, 118, 119, 120, 122, 217, 237, 240, 7, 220, 31, 124, 135, 136, 142, 146, 157, 158, 163, 166, 175, 177, 180, 185, 186, 188, 195, 196, 197, 198, 200, 202, 207, 208, 209, 210, 213, 215, 251, 238, 250, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 226, 34, 6, 233, 12, 255, 4, 242, 14, 11, 29, 218, 227, 244, 236, 221, 13, 232, 249, 248, 0, 223, 230, 224, 5, 247, 222, 241, 253, 252, 254, 35, 41, 37, 39, 45, 40, 44, 46, 51, 64, 58, 61, 62, 83, 78, 80, 81, 67, 98, 103, 100, 101, 105, 102, 225, 104, 116, 113, 114, 115, 121, 111, 199, 129, 125, 127, 133, 128, 132, 134, 139, 153, 147, 150, 151, 171, 167, 169, 170, 156, 187, 192, 189, 190, 194, 191, 25, 193, 206, 203, 204, 205, 211, 201, 212, 42, 130, 38, 126, 43, 131, 49, 137, 52, 140, 53, 141, 50, 138, 55, 143, 56, 144, 65, 154, 59, 148, 63, 152, 66, 155, 60, 149, 72, 161, 70, 159, 73, 162, 71, 160, 75, 164, 76, 165, 86, 174, 84, 172, 79, 168, 85, 173, 82, 145, 123, 214, 88, 176, 90, 178, 179, 92, 181, 94, 183, 93, 182, 95, 184, }; const GLint __glcMaxCode = 320; const GLint __glcCodeFromNameSize = 256; quesoglc-0.7.2/src/context.c0000644000175000017500000012653711076606631012726 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: context.c 841 2008-10-19 10:36:00Z bcoconni $ */ /** \file * defines the so-called "Context commands" described in chapter 3.5 of the GLC * specs. */ /** \defgroup context Context State Commands * Commands to get or modify informations of the context state of the current * thread. * * GLC refers to the current context state whenever it executes a command. * Most of its state is directly available to the user : in order to control * the result of the GLC commands, the user may want to get or modify the * state of the current context. This is precisely the purpose of the context * state commands. * * \note Some GLC commands create, use or delete display lists and/or textures. * The IDs of those display lists and textures are stored in the current GLC * context but the display lists and the textures themselves are managed by * the current \b GL context. In order not to impact the performance of * error-free programs, QuesoGLC does not check if the current GL context is * the same as the context where the display lists and the textures are * actually stored. If the current GL context has changed meanwhile, the result * of commands that refer to the corresponding display lists or textures is * undefined. */ #include #include "internal.h" /** \ingroup context * This command assigns the value \e inFunc to the callback function variable * identified by \e inOpCode which must be chosen in the following table. *
* * * * * * * * * * * * * * *
Callback function variables
NameEnumerantInitial valueType signature
GLC_OP_glcUnmappedCode0x0020GLC_NONEGLboolean (*)(GLint)
*
* * The callback function can access to client data in a thread-safe manner * with glcGetPointer(). * \param inOpcode Type of the callback function * \param inFunc Callback function * \sa glcGetCallbackFunc() * \sa glcGetPointer() * \sa glcDataPointer() * \sa glcRenderChar() */ void APIENTRY glcCallbackFunc(GLCenum inOpcode, GLCfunc inFunc) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check parameters */ if (inOpcode != GLC_OP_glcUnmappedCode) { __glcRaiseError(GLC_PARAMETER_ERROR); return; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } ctx->stringState.callback = inFunc; } /** \ingroup context * This command assigns the value \e inPointer to the variable * \b GLC_DATA_POINTER. It is used for an access to client data from the * callback function assigned to the variable \b GLC_OP_glcUnmappedCode * * \e glcDataPointer provides a way to store, in the GLC context, a pointer to * any data. A GLC callback function can subsequently use the command * glcGetPointer() to obtain access to those data in a thread-safe manner. * \param inPointer The pointer to assign to \b GLC_DATA_POINTER * \sa glcGetPointer() * \sa glcCallbackFunc() */ void APIENTRY glcDataPointer(GLvoid *inPointer) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } ctx->stringState.dataPointer = inPointer; } /** \ingroup context * This command causes GLC to issue a sequence of GL commands to delete all * of the GL objects it owns. * * GLC uses the command \c glDeleteLists to delete all of the GL objects named * in \b GLC_LIST_OBJECT_LIST and uses the command \c glDeleteTextures to * delete all of the GL objects named in \b GLC_TEXTURE_OBJECT_LIST. When an * execution of glcDeleteGLObjects finishes, both of these lists are empty. * \note \c glcDeleteGLObjects deletes only the objects that the current * GLC context owns, not all objects in all contexts. * \note Generally speaking, it is always a good idea to call * \c glcDeleteGLObjects before calling glcDeleteContext(). It is also a good * idea to call \c glcDeleteGLObjects before changing the GL context that is * associated with the current GLC context. * \sa glcGetListi() */ void APIENTRY glcDeleteGLObjects(void) { __GLCcontext *ctx = NULL; FT_ListNode node = NULL; GLC_INIT_THREAD(); /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } /* The GL objects are managed by the __GLCfaceDescriptor object. Hence we * parse the __GLCfaceDescriptor stored in each __GLCfont. */ for(node = ctx->fontList.head; node; node = node->next) __glcFaceDescDestroyGLObjects(((__GLCfont*)(node->data))->faceDesc, ctx); /* Delete the texture used for immediate mode */ if (ctx->texture.id) { glDeleteTextures(1, &ctx->texture.id); ctx->texture.id = 0; ctx->texture.width = 0; ctx->texture.heigth = 0; } /* Delete the pixel buffer object */ if (GLEW_ARB_pixel_buffer_object && ctx->texture.bufferObjectID) { glDeleteBuffersARB(1, &ctx->texture.bufferObjectID); ctx->texture.bufferObjectID = 0; } /* Delete the vertex buffer object */ if (GLEW_ARB_vertex_buffer_object && ctx->atlas.bufferObjectID) { glDeleteBuffersARB(1, &ctx->atlas.bufferObjectID); ctx->atlas.bufferObjectID = 0; } } /* This internal function is used by both glcEnable/glcDisable since they * actually do the same job : put a value into a member of the * __GLCcontext struct. The only difference is the value that it puts. */ static void __glcChangeState(GLCenum inAttrib, GLboolean value) { __GLCcontext *ctx = NULL; /* Check the parameters. */ assert((value == GL_TRUE) || (value == GL_FALSE)); switch(inAttrib) { case GLC_AUTO_FONT: case GLC_GL_OBJECTS: case GLC_MIPMAP: case GLC_HINTING_QSO: /* QuesoGLC Extension */ case GLC_EXTRUDE_QSO: /* QuesoGLC Extension */ case GLC_KERNING_QSO: /* QuesoGLC Extension */ break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } /* Assigns the value to the member identified by inAttrib */ switch(inAttrib) { case GLC_AUTO_FONT: ctx->enableState.autoFont = value; break; case GLC_GL_OBJECTS: ctx->enableState.glObjects = value; break; case GLC_MIPMAP: ctx->enableState.mipmap = value; if (ctx->atlas.id) { GLuint boundTexture = 0; glGetIntegerv(GL_TEXTURE_BINDING_2D, (GLint*)&boundTexture); glBindTexture(GL_TEXTURE_2D, ctx->atlas.id); if (ctx->enableState.mipmap) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); else glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glBindTexture(GL_TEXTURE_2D, boundTexture); } break; case GLC_HINTING_QSO: ctx->enableState.hinting = value; break; case GLC_EXTRUDE_QSO: ctx->enableState.extrude = value; break; case GLC_KERNING_QSO: ctx->enableState.kerning = value; break; } } /** \ingroup context * This command assigns the value \b GL_FALSE to the boolean variable * identified by \e inAttrib. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Boolean variables
Name Enumerant Initial value
GLC_AUTO_FONT 0x0010 GL_TRUE
GLC_GL_OBJECTS 0x0011 GL_TRUE
GLC_MIPMAP 0x0012 GL_TRUE
GLC_HINTING_QSO0x8005GL_FALSE
GLC_EXTRUDE_QSO0x8006GL_FALSE
GLC_KERNING_QSO0x8007GL_FALSE
*
* \param inAttrib A symbolic constant indicating a GLC capability. * \sa glcIsEnabled() * \sa glcEnable() */ void APIENTRY glcDisable(GLCenum inAttrib) { GLC_INIT_THREAD(); __glcChangeState(inAttrib, GL_FALSE); } /** \ingroup context * This command assigns the value \b GL_TRUE to the boolean variable * identified by \e inAttrib which must be chosen in the table above. * * - \b GLC_AUTO_FONT : if enabled, GLC tries to automatically find a font * among the masters to map the character code to be rendered (see also * glcRenderChar()). * - \b GLC_GL_OBJECTS : if enabled, GLC stores characters rendering commands * in GL display lists and textures (if any) in GL texture objects. * - \b GLC_MIPMAP : if enabled, texture objects used by GLC are mipmapped * - \b GLC_HINTING_QSO : if enabled, GLC uses the hinting procedures that are * available for most scalable fonts. It gives better results for characters * that are rendered at small sizes. This attribute is ignored when * \b GLC_GL_OBJECTS is enabled. Hinting may generate visual artifacts such * as "shaking outlines" if the character is animated. This attribute should * be disabled in such cases. * - \b GLC_EXTRUDE_QSO : if enabled and \b GLC_RENDER_STYLE is * \b GLC_TRIANGLE then GLC renders extruded characters with a thickness * equal to 1.0. A call to glScale3*(1., 1., \e thickness ) can be added * before the rendering commands in order to obtain the desired thickness. * - \b GLC_KERNING_QSO : if enabled, GLC uses kerning information when * rendering or measuring a string. Not all fonts have kerning informations. * * \param inAttrib A symbolic constant indicating a GLC attribute. * \sa glcDisable() * \sa glcIsEnabled() */ void APIENTRY glcEnable(GLCenum inAttrib) { GLC_INIT_THREAD(); __glcChangeState(inAttrib, GL_TRUE); } /** \ingroup context * This command returns the value of the callback function variable identified * by \e inOpcode. Currently, \e inOpcode can only have the value * \b GLC_OP_glcUnmappedCode. Its initial value and the type signature are * defined in the table shown in glcCallbackFunc()'s definition. * \param inOpcode The callback function to be retrieved * \return The value of the callback function variable * \sa glcCallbackFunc() */ GLCfunc APIENTRY glcGetCallbackFunc(GLCenum inOpcode) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check the parameters */ if (inOpcode != GLC_OP_glcUnmappedCode) { __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return GLC_NONE; } return ctx->stringState.callback; } /** \ingroup context * This command returns the string at offset \e inIndex from the first element * in the string list identified by \e inAttrib which must be chosen in the * table below : * *
* * * * * * * * * * * * * * *
String lists
NameEnumerantInitial valueElement count variable
GLC_CATALOG_LIST0x0080\GLC_CATALOG_COUNT
*
* * The command raises a \b GLC_PARAMETER_ERROR if \e inIndex is less than zero * or is greater than or equal to the value of the list's element count * variable. * \param inAttrib The string list attribute * \param inIndex The index from which to retrieve an element. * \return The string list element * \sa glcGetListi() */ const GLCchar* APIENTRY glcGetListc(GLCenum inAttrib, GLint inIndex) { __GLCcontext *ctx = NULL; GLCchar8* catalog = NULL; GLCchar* buffer = NULL; size_t length = 0; GLC_INIT_THREAD(); /* Check the parameters */ if (inAttrib != GLC_CATALOG_LIST) { __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } /* NOTE : at this stage we can not verify if inIndex is greater than or equal * to the last element index. In order to perform such a verification we * would need to have the current context state but GLC specs tells that we * should first check the parameters _then_ the current context (section 2.2 * of specs). We are done ! */ if (inIndex < 0) { __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return GLC_NONE; } catalog = __glcContextGetCatalogPath(ctx, inIndex); if (!catalog) return GLC_NONE; /* Three remarks have to be made concerning the following code : * 1. We do not return a pointer that points to the actual location of the * string in order to prevent the user to modify it. Instead QuesoGLC * returns a pointer that points to a copy of the requested data. * 2. File names are not translated from one string format (UCS1, UCS2, ...) * to another because it is not relevant. We make the assumption that * the user gave us the file names in the current coding of his/her OS and * that this coding will not change during the program execution even when * glcStringType() is called. * 3. There are few chances that this code is executed in a critical loop * then there is no need to care about optimization. */ /* Grmmff, is the use of strlen() adequate here ? * What if 'catalog' is encoded in UCS2 format or any other weird format ? */ length = strlen((const char*) catalog) + 1; buffer = __glcContextQueryBuffer(ctx, length * sizeof(char)); if (!buffer) return GLC_NONE; /* GLC_RESOURCE_ERROR has been raised */ strncpy((char*)buffer, (const char*)catalog, length); return buffer; } /** \ingroup context * This command returns the integer at offset \e inIndex from the first * element in the integer list identified by \e inAttrib. * * You can choose from the following integer lists, listed below with their * element count variables : *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Integer lists
NameEnumerantInitial valueElement count variable
GLC_CURRENT_FONT_LIST0x0090\GLC_CURRENT_FONT_COUNT
GLC_FONT_LIST0x0091\GLC_FONT_COUNT
GLC_LIST_OBJECT_LIST0x0092\GLC_LIST_OBJECT_COUNT
GLC_TEXTURE_OBJECT_LIST0x0093\GLC_TEXTURE_OBJECT_COUNT
GLC_BUFFER_OBJECT_LIST_QSO0x800F\GLC_BUFFER_OBJECT_COUNT_QSO
*
* * The command raises a \b GLC_PARAMETER_ERROR if \e inIndex is less than zero * or is greater than or equal to the value of the list's element count * variable. * \param inAttrib The integer list attribute * \param inIndex The index from which to retrieve the element. * \return The element from the integer list. * \sa glcGetListc() */ GLint APIENTRY glcGetListi(GLCenum inAttrib, GLint inIndex) { __GLCcontext *ctx = NULL; FT_ListNode node = NULL; GLC_INIT_THREAD(); /* Check parameters */ switch(inAttrib) { case GLC_CURRENT_FONT_LIST: case GLC_FONT_LIST: case GLC_LIST_OBJECT_LIST: case GLC_TEXTURE_OBJECT_LIST: break; case GLC_BUFFER_OBJECT_LIST_QSO: /* QuesoGLC extension */ /* This parameter is available only if the corresponding GL extensions are * supported by the GL driver. */ if (GLEW_ARB_vertex_buffer_object || GLEW_ARB_pixel_buffer_object) break; else { __glcRaiseError(GLC_PARAMETER_ERROR); return 0; } default: __glcRaiseError(GLC_PARAMETER_ERROR); return 0; } /* NOTE : at this stage we can not verify if inIndex is greater than or equal * to the last element index. In order to perform such a verification we * would need to have the current context states but GLC specs says that we * should first check the parameters _then_ the current context (section 2.2 * of specs). We are done ! */ if (inIndex < 0) { __glcRaiseError(GLC_PARAMETER_ERROR); return 0; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return 0; } /* Perform the final part of verifications (the one which needs * the current context's states) then return the requested value. */ switch(inAttrib) { case GLC_CURRENT_FONT_LIST: for (node = ctx->currentFontList.head; inIndex && node; node = node->next, inIndex--); if (node) return ((__GLCfont*)node->data)->id; else break; case GLC_FONT_LIST: for (node = ctx->fontList.head; inIndex && node; node = node->next, inIndex--); if (node) return ((__GLCfont*)node->data)->id; else break; case GLC_LIST_OBJECT_LIST: /* In order to get the display list name, we have to perform a search * through the list of display lists of every face descriptor. */ for (node = ctx->fontList.head; node; node = node->next) { __GLCfaceDescriptor* faceDesc = (__GLCfaceDescriptor*)(((__GLCfont*)(node->data))->faceDesc); FT_ListNode glyphNode = NULL; for (glyphNode = faceDesc->glyphList.head; glyphNode; glyphNode = glyphNode->next) { __GLCglyph* glyph = (__GLCglyph*)glyphNode; int count = __glcGlyphGetDisplayListCount(glyph); if (inIndex < count) return __glcGlyphGetDisplayList(glyph, inIndex); else inIndex -= count; } } break; case GLC_TEXTURE_OBJECT_LIST: switch(inIndex) { /* QuesoGLC uses at most 2 textures : one for immediate mode rendering and * another one for the texture atlas. That's all. They are virtually * stored in the following order : texture for immediate mode first, then * texture atlas. */ case 0: if (ctx->texture.id) return ctx->texture.id; /* If the texture for immediate mode does not exist, then the first * texture is the texture atlas. * NOTE: if the texture atlas is created first and the texture for * immediate mode is created after then this algorithm leads to a * modification of the order which is not satisfying... */ if (ctx->atlas.id) return ctx->atlas.id; break; case 1: if ((ctx->texture.id) && (ctx->atlas.id)) return ctx->atlas.id; break; default: break; } break; case GLC_BUFFER_OBJECT_LIST_QSO: /* QuesoGLC extension */ switch(inIndex) { /* QuesoGLC uses at most 2 buffer objects : one PBO for immediate mode * rendering and one VBO for the texture atlas. That's all. They are * virtually stored in the following order : PBO for immediate mode first, * then VBO for texture atlas. */ case 0: if (ctx->texture.bufferObjectID) return ctx->texture.bufferObjectID; /* If the PBO for immediate mode does not exist, then the first buffer * object is the VBO for the texture atlas. * NOTE: if the texture atlas is created first and the PBO for * immediate mode is created after then this algorithm leads to a * modification of the order in which buffer objects are reported which * is not satisfying... */ if (ctx->atlas.bufferObjectID) return ctx->atlas.bufferObjectID; break; case 1: if ((ctx->texture.bufferObjectID) && (ctx->atlas.bufferObjectID)) return ctx->atlas.bufferObjectID; break; default: break; } if (ctx->texture.bufferObjectID) inIndex--; if (ctx->atlas.bufferObjectID) inIndex--; for (node = ctx->fontList.head; node; node = node->next) { __GLCfaceDescriptor* faceDesc = (__GLCfaceDescriptor*)(((__GLCfont*)(node->data))->faceDesc); FT_ListNode glyphNode = NULL; for (glyphNode = faceDesc->glyphList.head; glyphNode; glyphNode = glyphNode->next) { __GLCglyph* glyph = (__GLCglyph*)glyphNode; int count = __glcGlyphGetBufferObjectCount(glyph); if (inIndex < count) return __glcGlyphGetBufferObject(glyph, inIndex); else inIndex -= count; } } break; } __glcRaiseError(GLC_PARAMETER_ERROR); return 0; } /** \ingroup context * This command returns the value of the pointer variable identified by * \e inAttrib. *
* * * * * * * * * * *
Pointer variables
Name Enumerant Initial value
GLC_DATA_POINTER0x00A0GLC_NONE
*
* \param inAttrib The pointer category * \return The pointer * \sa glcDataPointer() */ GLvoid* APIENTRY glcGetPointer(GLCenum inAttrib) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check the parameter */ if (inAttrib != GLC_DATA_POINTER) { __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return GLC_NONE; } return ctx->stringState.dataPointer; } /** \ingroup context * This command returns the value of the string constant identified by * \e inAttrib. String constants must be chosen in the table below : *
* * * * * * * * * * * * * * *
String constants
Name Enumerant
GLC_EXTENSIONS 0x00B0
GLC_RELEASE 0x00B1
GLC_VENDOR 0x00B2
*
* \param inAttrib The attribute that identifies the string constant * \return The string constant. * \sa glcGetf() * \sa glcGeti() * \sa glcGetfv() * \sa glcGetPointer() */ const GLCchar* APIENTRY glcGetc(GLCenum inAttrib) { static const char* __glcExtensions1 = "GLC_QSO_attrib_stack"; static const char* __glcExtensions2 = " GLC_QSO_buffer_object"; static const char* __glcExtensions3 = " GLC_QSO_extrude GLC_QSO_hinting" " GLC_QSO_kerning GLC_QSO_matrix_stack GLC_QSO_utf8 GLC_SGI_full_name"; static const GLCchar8* __glcVendor = (const GLCchar8*) "The QuesoGLC Project"; #ifdef HAVE_CONFIG_H static const GLCchar8* __glcRelease = (const GLCchar8*) PACKAGE_VERSION; #else static const GLCchar8* __glcRelease = (const GLCchar8*) QUESOGLC_VERSION; #endif __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check the parameters */ switch(inAttrib) { case GLC_EXTENSIONS: case GLC_RELEASE: case GLC_VENDOR: break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return GLC_NONE; } /* Translate the string to the relevant Unicode format */ switch(inAttrib) { case GLC_EXTENSIONS: { GLCchar8 __glcExtensions[256]; assert((strlen(__glcExtensions1) + strlen(__glcExtensions2) + strlen(__glcExtensions3)) <= 256); /* Build the extensions string depending on the available GL extensions */ strcpy((char*)__glcExtensions, __glcExtensions1); if (GLEW_ARB_vertex_buffer_object || GLEW_ARB_pixel_buffer_object) strcat((char*)__glcExtensions, __glcExtensions2); strcat((char*)__glcExtensions, __glcExtensions3); return __glcConvertFromUtf8ToBuffer(ctx, __glcExtensions, ctx->stringState.stringType); } case GLC_RELEASE: return __glcConvertFromUtf8ToBuffer(ctx, __glcRelease, ctx->stringState.stringType); case GLC_VENDOR: return __glcConvertFromUtf8ToBuffer(ctx, __glcVendor, ctx->stringState.stringType); default: return GLC_NONE; } } /** \ingroup context * This command returns the value of the floating point variable identified * by \e inAttrib. *
* * * * * * * * *
Float point variables
Name Enumerant Initial value
GLC_RESOLUTION 0x00C0 0.0
*
* \param inAttrib The parameter value to be returned. * \return The current value of the floating point variable. * \sa glcGetc() * \sa glcGeti() * \sa glcGetfv() * \sa glcGetPointer() */ GLfloat APIENTRY glcGetf(GLCenum inAttrib) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check the parameter */ if (inAttrib != GLC_RESOLUTION) { __glcRaiseError(GLC_PARAMETER_ERROR); return 0.f; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return 0.f; } return ctx->renderState.resolution; } /** \ingroup context * This command stores into \e outVec the value of the floating point vector * identified by \e inAttrib. If the command does not raise an error, it * returns \e outVec, otherwise it returns a \b NULL value. *
* * * * * * * * *
Floating point vector variables
Name Enumerant Initial value
GLC_BITMAP_MATRIX 0x00D0 [ 1. 0. 0. 1.]
*
* * The command raises \b GLC_PARAMETER_ERROR if \e outVec is NULL. * \param inAttrib The parameter value to be returned * \param outVec Specifies where to store the return value * \return The current value of the floating point vector variable * \sa glcGetf() * \sa glcGeti() * \sa glcGetc() * \sa glcGetPointer() */ GLfloat* APIENTRY glcGetfv(GLCenum inAttrib, GLfloat* outVec) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); assert(outVec); /* Check the parameters */ if (inAttrib != GLC_BITMAP_MATRIX) { __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return NULL; } memcpy(outVec, ctx->bitmapMatrix, 4 * sizeof(GLfloat)); return outVec; } /** \ingroup context * This command returns the value of the integer variable or constant * identified by \e inAttrib. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Integer variables and constants
Name Enumerant Initial value
GLC_CATALOG_COUNT0x00E0\
GLC_CURRENT_FONT_COUNT 0x00E1 0
GLC_FONT_COUNT 0x00E2 0
GLC_LIST_OBJECT_COUNT 0x00E3 0
GLC_MASTER_COUNT0x00E4\
GLC_MEASURED_CHAR_COUNT 0x00E5 0
GLC_RENDER_STYLE0x00E6GLC_BITMAP
GLC_REPLACEMENT_CODE 0x00E7 0
GLC_STRING_TYPE 0x00E8 GLC_UCS1
GLC_TEXTURE_OBJECT_COUNT 0x00E9 0
GLC_VERSION_MAJOR0x00EA\
GLC_VERSION_MINOR0x00EB\
GLC_MATRIX_STACK_DEPTH_QSO 0x8008 0
GLC_MAX_MATRIX_STACK_DEPTH_QSO0x8009\
GLC_ATTRIB_STACK_DEPTH_QSO 0x800C 0
GLC_MAX_ATTRIB_STACK_DEPTH_QSO0x800D\
GLC_BUFFER_OBJECT_COUNT_QSO 0x800E 0
*
* \param inAttrib Attribute for which an integer variable is requested. * \return The value or values of the integer variable. * \sa glcGetc() * \sa glcGetf() * \sa glcGetfv() * \sa glcGetPointer() */ GLint APIENTRY glcGeti(GLCenum inAttrib) { __GLCcontext *ctx = NULL; FT_ListNode node = NULL; GLint count = 0; GLC_INIT_THREAD(); /* Check the parameters */ switch(inAttrib) { case GLC_CATALOG_COUNT: case GLC_CURRENT_FONT_COUNT: case GLC_FONT_COUNT: case GLC_LIST_OBJECT_COUNT: case GLC_MASTER_COUNT: case GLC_MEASURED_CHAR_COUNT: case GLC_RENDER_STYLE: case GLC_REPLACEMENT_CODE: case GLC_STRING_TYPE: case GLC_TEXTURE_OBJECT_COUNT: case GLC_VERSION_MAJOR: case GLC_VERSION_MINOR: case GLC_MATRIX_STACK_DEPTH_QSO: /* QuesoGLC extension */ case GLC_MAX_MATRIX_STACK_DEPTH_QSO: /* QuesoGLC extension */ case GLC_ATTRIB_STACK_DEPTH_QSO: /* QuesoGLC extension */ case GLC_MAX_ATTRIB_STACK_DEPTH_QSO: /* QuesoGLC extension */ break; case GLC_BUFFER_OBJECT_COUNT_QSO: /* QuesoGLC extension */ /* This parameter is available only if the corresponding GL extensions are * supported by the GL driver. */ if (GLEW_ARB_vertex_buffer_object || GLEW_ARB_pixel_buffer_object) break; else { __glcRaiseError(GLC_PARAMETER_ERROR); return 0; } default: __glcRaiseError(GLC_PARAMETER_ERROR); return 0; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return 0; } /* Returns the requested value */ switch(inAttrib) { case GLC_CATALOG_COUNT: return GLC_ARRAY_LENGTH(ctx->catalogList); case GLC_CURRENT_FONT_COUNT: for (node = ctx->currentFontList.head, count = 0; node; node = node->next, count++); return count; case GLC_FONT_COUNT: for (count = 0, node = ctx->fontList.head; node; node = node->next, count++); return count; case GLC_LIST_OBJECT_COUNT: for (node = ctx->fontList.head; node; node = node->next) { __GLCfaceDescriptor* faceDesc = (__GLCfaceDescriptor*)(((__GLCfont*)(node->data))->faceDesc); FT_ListNode glyphNode = NULL; for (glyphNode = faceDesc->glyphList.head; glyphNode; glyphNode = glyphNode->next) { __GLCglyph* glyph = (__GLCglyph*)glyphNode; count += __glcGlyphGetDisplayListCount(glyph); } } return count; case GLC_MASTER_COUNT: return GLC_ARRAY_LENGTH(ctx->masterHashTable); case GLC_MEASURED_CHAR_COUNT: return GLC_ARRAY_LENGTH(ctx->measurementBuffer); case GLC_RENDER_STYLE: return ctx->renderState.renderStyle; case GLC_REPLACEMENT_CODE: /* Return the replacement character converted to the current string type */ return __glcConvertUcs4ToGLint(ctx, ctx->stringState.replacementCode); case GLC_STRING_TYPE: return ctx->stringState.stringType; case GLC_TEXTURE_OBJECT_COUNT: count += (ctx->texture.id ? 1 : 0); count += (ctx->atlas.id ? 1 : 0); return count; case GLC_VERSION_MAJOR: return __glcCommonArea.versionMajor; case GLC_VERSION_MINOR: return __glcCommonArea.versionMinor; case GLC_MATRIX_STACK_DEPTH_QSO: /* QuesoGLC extension */ return ctx->bitmapMatrixStackDepth; case GLC_MAX_MATRIX_STACK_DEPTH_QSO: /* QuesoGLC extension */ return GLC_MAX_MATRIX_STACK_DEPTH; case GLC_ATTRIB_STACK_DEPTH_QSO: /* QuesoGLC extension */ return ctx->attribStackDepth; case GLC_MAX_ATTRIB_STACK_DEPTH_QSO: /* QuesoGLC extension */ return GLC_MAX_ATTRIB_STACK_DEPTH; case GLC_BUFFER_OBJECT_COUNT_QSO: /* QuesoGLC extension */ count += (ctx->texture.bufferObjectID ? 1 : 0); count += (ctx->atlas.bufferObjectID ? 1 : 0); for (node = ctx->fontList.head; node; node = node->next) { __GLCfaceDescriptor* faceDesc = (__GLCfaceDescriptor*)(((__GLCfont*)(node->data))->faceDesc); FT_ListNode glyphNode = NULL; for (glyphNode = faceDesc->glyphList.head; glyphNode; glyphNode = glyphNode->next) { __GLCglyph* glyph = (__GLCglyph*)glyphNode; count += __glcGlyphGetBufferObjectCount(glyph); } } return count; } return 0; } /** \ingroup context * This command returns \b GL_TRUE if the value of the boolean variable * identified by inAttrib is \b GL_TRUE (quoted from the specs ^_^) * * Attributes that can be enabled or disabled are listed on the glcDisable() * description. * \param inAttrib The attribute to be tested * \return The state of the attribute \e inAttrib. * \sa glcEnable() * \sa glcDisable() */ GLboolean APIENTRY glcIsEnabled(GLCenum inAttrib) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check the parameters */ switch(inAttrib) { case GLC_AUTO_FONT: case GLC_GL_OBJECTS: case GLC_MIPMAP: case GLC_HINTING_QSO: /* QuesoGLC Extension */ case GLC_EXTRUDE_QSO: /* QuesoGLC Extension */ case GLC_KERNING_QSO: /* QuesoGLC Extension */ break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return GL_FALSE; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return GL_FALSE; } /* Returns the requested value */ switch(inAttrib) { case GLC_AUTO_FONT: return ctx->enableState.autoFont; case GLC_GL_OBJECTS: return ctx->enableState.glObjects; case GLC_MIPMAP: return ctx->enableState.mipmap; case GLC_HINTING_QSO: return ctx->enableState.hinting; case GLC_EXTRUDE_QSO: return ctx->enableState.extrude; case GLC_KERNING_QSO: return ctx->enableState.kerning; } return GL_FALSE; } /** \ingroup context * This command assigns the value \e inStringType to the variable * \b GLC_STRING_TYPE. The string types are listed in the table * below : *
* * * * * * * * * * * * * * * * * * * *
String types
Name Enumerant Type of characters
GLC_UCS1 0x0110 GLubyte
GLC_UCS2 0x0111 GLushort
GLC_UCS4 0x0112 GLuint
GLC_UTF8_QSO0x8004\
*
* * Every character string used in the GLC API is represented as a * zero-terminated array, unless otherwise specified. The value of the * variable \b GLC_STRING_TYPE determines the interpretation of the array. The * values \b GLC_UCS1, \b GLC_UCS2, \b GLC_UCS4 and \b GLC_UTF8_QSO indicate * how each element of the string should be interpreted. Currently QuesoGLC * supports UCS1, UCS2, UCS4 and UTF-8 formats as defined in the Unicode 4.0.1 * and ISO/IEC 10646:2003 standards. The initial value of \b GLC_STRING_TYPE * is \b GLC_UCS1. * * \note Currently, the string formats UCS2 and UCS4 are interpreted according * to the underlying platform endianess. If the strings are provided in a * different endianess than the platform's, the client must translate the * strings in the correct endianess. * * The value of a character code in a returned string may exceed the range * of the character encoding selected by \b GLC_STRING_TYPE. In this case, * the returned character is converted to a character sequence * \\\, where \\ is the character REVERSE SOLIDUS (U+5C), * \< is the character LESS-THAN SIGN (U+3C), \> is the character * GREATER-THAN SIGN (U+3E), and \e hexcode is the original character code * represented as a sequence of hexadecimal digits. The sequence has no * leading zeros, and alphabetic digits are in upper case. * \param inStringType Value to assign to \b GLC_STRING_TYPE * \sa glcGeti() with argument \b GLC_STRING_TYPE */ void APIENTRY glcStringType(GLCenum inStringType) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check the parameters */ switch(inStringType) { case GLC_UCS1: case GLC_UCS2: case GLC_UCS4: case GLC_UTF8_QSO: /* QuesoGLC Extension */ break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return; } /* Check if the thread has a current context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } ctx->stringState.stringType = inStringType; return; } /** \ingroup context * This command provides a means to save groups of state variables. It takes a * OR of symbolic constants indicating which groups of state variables to push * onto the attribute stack. Each constant refers to a group of state * variables. *
* * * * * * * * * * * * * * * * * * * * *
Group attributes
Group attribute Name Enumerant
enable GLC_ENABLE_BIT_QSO 0x0001
render GLC_RENDER_BIT_QSO 0x0002
string GLC_STRING_BIT_QSO 0x0004
GLC_GL_ATTRIB_BIT_QSO 0x0008
GLC_ALL_ATTRIBS_BIT_QSO 0xFFFF
*
* * The classification of each variable into a group is indicated in the * following table of state variables. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
State variables
Name Type Get command Group attribute
GLC_AUTO_FONTGLbooleanglcIsEnabled()enable
GLC_GL_OBJECTSGLbooleanglcIsEnabled()enable
GLC_MIPMAPGLbooleanglcIsEnabled()enable
GLC_HINTING_QSOGLbooleanglcIsEnabled()enable
GLC_EXTRUDE_QSOGLbooleanglcIsEnabled()enable
GLC_KERNING_QSOGLbooleanglcIsEnabled()enable
GLC_RENDER_STYLEGLintglcGeti()render
GLC_RESOLUTIONGLfloatglcGetf()render
GLC_STRING_TYPEGLintglcGeti()string
GLC_REPLACEMENT_CODEGLintglcGeti()string
GLC_OP_glcUnmappedCodeGLCfuncglcGetCallbackFunc()string
GLC_DATA_POINTERGLvoid*glcGetPointer()string
*
* * The error \b GLC_STACK_OVERFLOW_QSO is generated if glcPushAttribQSO() is * executed while the attribute stack depth is equal to * \b GLC_MAX_ATTRIB_STACK_DEPTH_QSO. * \b GLC_STACK_OVERFLOW_QSO. * \param inMask The list of state variables to be saved * \sa glcPopAttribQSO() * \sa glcGeti() with argument \b GLC_ATTRIB_STACK_DEPTH_QSO * \sa glcGeti() with argument \b GLC_MAX_ATTRIB_STACK_DEPTH_QSO */ void APIENTRY glcPushAttribQSO(GLbitfield inMask) { __GLCcontext *ctx = NULL; __GLCattribStackLevel *level = NULL; GLC_INIT_THREAD(); /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } if (ctx->attribStackDepth >= GLC_MAX_ATTRIB_STACK_DEPTH) { __glcRaiseError(GLC_STACK_OVERFLOW_QSO); return; } level = &ctx->attribStack[ctx->attribStackDepth++]; level->attribBits = 0; if (inMask & GLC_ENABLE_BIT_QSO) { memcpy(&level->enableState, &ctx->enableState, sizeof(__GLCenableState)); level->attribBits |= GLC_ENABLE_BIT_QSO; } if (inMask & GLC_RENDER_BIT_QSO) { memcpy(&level->renderState, &ctx->renderState, sizeof(__GLCrenderState)); level->attribBits |= GLC_RENDER_BIT_QSO; } if (inMask & GLC_STRING_BIT_QSO) { memcpy(&level->stringState, &ctx->stringState, sizeof(__GLCstringState)); level->attribBits |= GLC_STRING_BIT_QSO; } if (inMask & GLC_GL_ATTRIB_BIT_QSO) { __glcSaveGLState(&level->glState, ctx, GL_TRUE); level->attribBits |= GLC_GL_ATTRIB_BIT_QSO; } return; } /** \ingroup context * This command resets the values of those state variables that were saved with * the last corresponding glcPushAttribQSO(). Those not saved remain unchanged. * The error \b GLC_STACK_UNDERFLOW_QSO is generated if glcPopAttrib() is * executed while the attribute stack is empty. * \sa glcPushAttribQSO() * \sa glcGeti() with argument \b GLC_ATTRIB_STACK_DEPTH_QSO * \sa glcGeti() with argument \b GLC_MAX_ATTRIB_STACK_DEPTH_QSO */ void APIENTRY glcPopAttribQSO(void) { __GLCcontext *ctx = NULL; __GLCattribStackLevel *level = NULL; GLbitfield mask; GLC_INIT_THREAD(); /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } if (ctx->attribStackDepth <= 0) { __glcRaiseError(GLC_STACK_UNDERFLOW_QSO); return; } level = &ctx->attribStack[--ctx->attribStackDepth]; mask = level->attribBits; if (mask & GLC_ENABLE_BIT_QSO) memcpy(&ctx->enableState, &level->enableState, sizeof(__GLCenableState)); if (mask & GLC_RENDER_BIT_QSO) memcpy(&ctx->renderState, &level->renderState, sizeof(__GLCrenderState)); if (mask & GLC_STRING_BIT_QSO) memcpy(&ctx->stringState, &level->stringState, sizeof(__GLCstringState)); if (mask & GLC_GL_ATTRIB_BIT_QSO) __glcRestoreGLState(&level->glState, ctx, GL_TRUE); return; } quesoglc-0.7.2/src/oarray.c0000644000175000017500000001336211145551773012531 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: oarray.c 877 2009-02-14 14:23:53Z bcoconni $ */ /** \file * defines the object __GLCarray which is an array which size can grow as some * new elements are added to it. */ /* This object heavily uses the realloc() which means that it must not be * assumed that the data are always stored at the same address. The safer way * to handle that is to *always* assume the address of the data has changed * *every* time a method of __GLCarray is called ; whatever the method is. */ #include "internal.h" #define GLC_ARRAY_BLOCK_SIZE 16 /* Constructor of the object : it allocates memory and initializes the member * of the new object. * The user must give the size of an element of the array. */ __GLCarray* __glcArrayCreate(int inElementSize) { __GLCarray* This = NULL; This = (__GLCarray*)__glcMalloc(sizeof(__GLCarray)); if (!This) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } This->data = (char*)__glcMalloc(GLC_ARRAY_BLOCK_SIZE * inElementSize); if (!This->data) { __glcFree(This); __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } This->allocated = GLC_ARRAY_BLOCK_SIZE; This->length = 0; This->elementSize = inElementSize; return This; } /* Destructor of the object */ void __glcArrayDestroy(__GLCarray* This) { if (This->data) { assert(This->allocated); __glcFree(This->data); } __glcFree(This); } /* Allocate a new block of elements in the array 'This'. The function returns * NULL if it fails and raises an error accordingly. However the original * array is not lost and is kept untouched. */ static __GLCarray* __glcArrayUpdateSize(__GLCarray* This) { char* data = NULL; data = (char*)__glcRealloc(This->data, (This->allocated + GLC_ARRAY_BLOCK_SIZE) * This->elementSize); if (!data) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } This->data = data; This->allocated += GLC_ARRAY_BLOCK_SIZE; return This; } /* Append a value to the array. The function may allocate some more room if * necessary */ __GLCarray* __glcArrayAppend(__GLCarray* This, void* inValue) { /* Update the room if needed */ if (This->length == This->allocated) { if (!__glcArrayUpdateSize(This)) return NULL; } /* Append the new element */ memcpy(This->data + This->length*This->elementSize, inValue, This->elementSize); This->length++; return This; } /* Insert a value in the array at the rank inRank. The function may allocate * some more room if necessary */ __GLCarray* __glcArrayInsert(__GLCarray* This, int inRank, void* inValue) { /* Update the room if needed */ if (This->length == This->allocated) { if (!__glcArrayUpdateSize(This)) return NULL; } /* Insert the new element */ if (This->length > inRank) memmove(This->data + (inRank+1) * This->elementSize, This->data + inRank * This->elementSize, (This->length - inRank) * This->elementSize); memcpy(This->data + inRank*This->elementSize, inValue, This->elementSize); This->length++; return This; } /* Remove an element from the array. For performance reasons, this function * does not release memory. */ void __glcArrayRemove(__GLCarray* This, int inRank) { if (inRank < This->length-1) memmove(This->data + inRank * This->elementSize, This->data + (inRank+1) * This->elementSize, (This->length - inRank - 1) * This->elementSize); This->length--; } /* Insert some room in the array at rank 'inRank' and leave it as is. * The difference between __glcArrayInsertCell() and __glcArrayInsert() is that * __glcArrayInsert() copy a value in the new element array while * __glcArrayInsertCell() does not. Moreover __glcArrayInsertCell() can insert * several cells in a row which is faster than calling __glcArrayInsert() * several times in a row. * This function is used to optimize performance in certain configurations. */ char* __glcArrayInsertCell(__GLCarray* This, int inRank, int inCells) { char* newCell = NULL; assert(inCells < GLC_ARRAY_BLOCK_SIZE); if ((This->length + inCells) > This->allocated) { if (!__glcArrayUpdateSize(This)) return NULL; } newCell = This->data + inRank * This->elementSize; if (This->length > inRank) memmove(newCell + inCells * This->elementSize, newCell, (This->length - inRank) * This->elementSize); This->length += inCells; return newCell; } /* Duplicate an array */ __GLCarray* __glcArrayDuplicate(__GLCarray* This) { __GLCarray* duplicate = NULL; duplicate = (__GLCarray*)__glcMalloc(sizeof(__GLCarray)); if (!duplicate) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } memcpy(duplicate, This, sizeof(__GLCarray)); duplicate->data = (char*)__glcMalloc(This->allocated * This->elementSize); if (!duplicate->data) { __glcFree(duplicate); __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } memcpy(duplicate->data, This->data, This->allocated * This->elementSize); return duplicate; } quesoglc-0.7.2/src/omaster.h0000644000175000017500000000360411022552171012674 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: omaster.h 807 2008-06-07 18:33:28Z bcoconni $ */ /** \file * header of the object __GLCmaster which manage the masters */ #ifndef __glc_omaster_h #define __glc_omaster_h #include #include "ocharmap.h" #define GLC_MASTER_HASH_VALUE(master) FcPatternHash((master)->pattern) struct __GLCmasterRec { FcPattern* pattern; }; __GLCmaster* __glcMasterCreate(GLint inMaster, __GLCcontext* inContext); void __glcMasterDestroy(__GLCmaster* This); GLCchar8* __glcMasterGetFaceName(__GLCmaster* This, __GLCcontext* inContext, GLint inIndex); GLboolean __glcMasterIsFixedPitch(__GLCmaster* This); GLint __glcMasterFaceCount(__GLCmaster* This, __GLCcontext* inContext); const GLCchar8* __glcMasterGetInfo(__GLCmaster* This, __GLCcontext* inContext, GLCenum inAttrib); __GLCmaster* __glcMasterFromFamily(__GLCcontext* inContext, GLCchar8* inFamily); __GLCmaster* __glcMasterMatchCode(__GLCcontext* inContext, GLint inCode); GLint __glcMasterGetID(__GLCmaster* This, __GLCcontext* inContext); #endif quesoglc-0.7.2/src/ocharmap.c0000644000175000017500000004034111045074722013014 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: ocharmap.c 800 2008-06-04 21:47:50Z bcoconni $ */ /** \file * defines the object __GLCcharMap which manage the charmaps of both the fonts * and the masters. One of the purpose of this object is to encapsulate the * FcCharSet structure from Fontconfig and to add it some more functionalities. * It also allows to centralize the character map management for easier * maintenance. */ #include "internal.h" /* Constructor of the object : it allocates memory and initializes the member * of the new object. * The user must give the FcPattern of the font or the master (which may be NULL * in which case the character map will be empty). */ __GLCcharMap* __glcCharMapCreate(__GLCmaster* inMaster, __GLCcontext* inContext) { __GLCcharMap* This = NULL; This = (__GLCcharMap*)__glcMalloc(sizeof(__GLCcharMap)); if (!This) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } This->charSet = FcCharSetCreate(); if (!This->charSet) { __glcRaiseError(GLC_RESOURCE_ERROR); __glcFree(This); return NULL; } if (inMaster) { FcCharSet* charSet = NULL; FcFontSet* fontSet = NULL; int i = 0; FcObjectSet* objectSet = NULL; FcPattern* pattern = FcPatternCreate(); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); FcCharSetDestroy(This->charSet); __glcFree(This); return NULL; } objectSet = FcObjectSetBuild(FC_FAMILY, FC_FOUNDRY, FC_SPACING, FC_OUTLINE, FC_CHARSET, NULL); if (!objectSet) { __glcRaiseError(GLC_RESOURCE_ERROR); FcPatternDestroy(pattern); FcCharSetDestroy(This->charSet); __glcFree(This); return NULL; } fontSet = FcFontList(inContext->config, pattern, objectSet); FcObjectSetDestroy(objectSet); FcPatternDestroy(pattern); if (!fontSet) { __glcRaiseError(GLC_RESOURCE_ERROR); FcCharSetDestroy(This->charSet); __glcFree(This); return NULL; } for (i = 0; i < fontSet->nfont; i++) { FcChar8* family = NULL; int fixed = 0; FcChar8* foundry = NULL; FcBool outline = FcFalse; FcResult result = FcResultMatch; FcBool equal = FcFalse; /* Check whether the glyphs are outlines */ result = FcPatternGetBool(fontSet->fonts[i], FC_OUTLINE, 0, &outline); assert(result != FcResultTypeMismatch); if (!outline) continue; result = FcPatternGetString(fontSet->fonts[i], FC_FAMILY, 0, &family); assert(result != FcResultTypeMismatch); result = FcPatternGetString(fontSet->fonts[i], FC_FOUNDRY, 0, &foundry); assert(result != FcResultTypeMismatch); result = FcPatternGetInteger(fontSet->fonts[i], FC_SPACING, 0, &fixed); assert(result != FcResultTypeMismatch); if (foundry) pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_FOUNDRY, FcTypeString, foundry, FC_SPACING, FcTypeInteger, fixed, NULL); else pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_SPACING, FcTypeInteger, fixed, NULL); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); FcCharSetDestroy(This->charSet); FcFontSetDestroy(fontSet); __glcFree(This); return NULL; } equal = FcPatternEqual(pattern, inMaster->pattern); FcPatternDestroy(pattern); if (equal) { FcCharSet* newCharSet = NULL; result = FcPatternGetCharSet(fontSet->fonts[i], FC_CHARSET, 0, &charSet); assert(result != FcResultTypeMismatch); newCharSet = FcCharSetUnion(This->charSet, charSet); if (!newCharSet) { __glcRaiseError(GLC_RESOURCE_ERROR); FcCharSetDestroy(This->charSet); FcFontSetDestroy(fontSet); __glcFree(This); return NULL; } FcCharSetDestroy(This->charSet); This->charSet = newCharSet; } } FcFontSetDestroy(fontSet); } /* The array 'map' will contain the actual character map */ This->map = __glcArrayCreate(sizeof(__GLCcharMapElement)); if (!This->map) { FcCharSetDestroy(This->charSet); __glcFree(This); return NULL; } return This; } /* Destructor of the object */ void __glcCharMapDestroy(__GLCcharMap* This) { if (This->map) __glcArrayDestroy(This->map); FcCharSetDestroy(This->charSet); __glcFree(This); } /* Add a given character to the character map. Afterwards, the character map * will associate the glyph 'inGlyph' to the Unicode codepoint 'inCode'. */ void __glcCharMapAddChar(__GLCcharMap* This, GLint inCode, __GLCglyph* inGlyph) { __GLCcharMapElement* element = NULL; __GLCcharMapElement* newElement = NULL; int start = 0, middle = 0, end = 0; assert(This->map); assert(GLC_ARRAY_DATA(This->map)); assert(inCode >= 0); /* Characters are stored by ascending order of their mapped code */ element = (__GLCcharMapElement*)GLC_ARRAY_DATA(This->map); end = GLC_ARRAY_LENGTH(This->map) - 1; /* Parse the array by dichotomy to look for the place where to add the new * character. */ while (start <= end) { middle = (start + end) >> 1; /* If the character map already contains the new character then update the * glyph then return. */ if (element[middle].mappedCode == (GLCulong)inCode) { element[middle].glyph = inGlyph; return; } else if (element[middle].mappedCode > (GLCulong)inCode) end = middle - 1; else start = middle + 1; } /* If we have reached the end of the array then updated the rank 'middle' * accordingly. */ if ((end >= 0) && (element[middle].mappedCode < (GLCulong)inCode)) middle++; /* Insert the new character in the character map */ newElement = (__GLCcharMapElement*)__glcArrayInsertCell(This->map, middle, 1); if (!newElement) return; newElement->mappedCode = inCode; newElement->glyph = inGlyph; return; } /* Remove a character from the character map */ void __glcCharMapRemoveChar(__GLCcharMap* This, GLint inCode) { __GLCcharMapElement* element = NULL; int start = 0, middle = 0, end = 0; assert(This->map); assert(GLC_ARRAY_DATA(This->map)); assert(inCode >= 0); /* Characters are stored by ascending order of their mapped code */ element = (__GLCcharMapElement*)GLC_ARRAY_DATA(This->map); end = GLC_ARRAY_LENGTH(This->map) - 1; /* Parse the array by dichotomy to look for the place where to add the new * character. */ while (start <= end) { middle = (start + end) >> 1; /* When the character is found remove it from the array and return */ if (element[middle].mappedCode == (GLCulong)inCode) { __glcArrayRemove(This->map, middle); break; } else if (element[middle].mappedCode > (GLCulong)inCode) end = middle - 1; else start = middle + 1; } } /* Get the Unicode character name of the character which codepoint is inCode. * Note : since the character maps of the fonts can be altered, this function * can return 'LATIN CAPITAL LETTER B' whereas inCode contained 65 (which is * the Unicode code point of 'LATIN CAPITAL LETTER A'). */ const GLCchar8* __glcCharMapGetCharName(__GLCcharMap* This, GLint inCode) { __GLCcharMapElement* element = NULL; int start = 0, middle = 0, end = 0; GLint code = 0; assert(This->map); assert(GLC_ARRAY_DATA(This->map)); assert(inCode >= 0); /* Characters are stored by ascending order of their mapped code */ element = (__GLCcharMapElement*)GLC_ARRAY_DATA(This->map); end = GLC_ARRAY_LENGTH(This->map) - 1; /* Parse the array by dichotomy to look for the Unicode codepoint that the * request character maps to. */ while (start <= end) { middle = (start + end) >> 1; if (element[middle].mappedCode == (GLCulong)inCode) { code = element[middle].glyph->codepoint; break; } else if (element[middle].mappedCode > (GLCulong)inCode) end = middle - 1; else start = middle + 1; } if (!code) { if (FcCharSetHasChar(This->charSet, inCode)) code = inCode; else return NULL; } return __glcNameFromCode(code); } /* Get the glyph corresponding to codepoint 'inCode' */ __GLCglyph* __glcCharMapGetGlyph(__GLCcharMap* This, GLint inCode) { __GLCcharMapElement* element = NULL; int start = 0, middle = 0, end = 0; assert(This->map); assert(GLC_ARRAY_DATA(This->map)); assert(inCode >= 0); /* Characters are stored by ascending order of their mapped code */ element = (__GLCcharMapElement*)GLC_ARRAY_DATA(This->map); end = GLC_ARRAY_LENGTH(This->map) - 1; /* Parse the array by dichotomy to find the glyph of the requested * character. */ while (start <= end) { middle = (start + end) >> 1; if (element[middle].mappedCode == (GLCulong)inCode) /* When the character is found return the corresponding glyph */ return element[middle].glyph; else if (element[middle].mappedCode > (GLCulong)inCode) end = middle - 1; else start = middle + 1; } /* No glyph has been defined yet for the requested character */ return NULL; } /* Check if a character is in the character map */ GLboolean __glcCharMapHasChar(__GLCcharMap* This, GLint inCode) { __GLCcharMapElement* element = NULL; int start = 0, middle = 0, end = 0; assert(This->map); assert(GLC_ARRAY_DATA(This->map)); assert(inCode >= 0); /* Characters are stored by ascending order of their mapped code */ element = (__GLCcharMapElement*)GLC_ARRAY_DATA(This->map); end = GLC_ARRAY_LENGTH(This->map) - 1; /* Parse the array by dichotomy to find the requested character. */ while (start <= end) { middle = (start + end) >> 1; /* The character has been found : return GL_TRUE */ if (element[middle].mappedCode == (GLCulong)inCode) return GL_TRUE; else if (element[middle].mappedCode > (GLCulong)inCode) end = middle - 1; else start = middle + 1; } /* Check if the character identified by inCode exists in the font */ return FcCharSetHasChar(This->charSet, inCode); } /* This function counts the number of bits that are set in c1 * Copied from Keith Packard's fontconfig */ static GLCchar32 __glcCharSetPopCount(GLCchar32 c1) { /* hackmem 169 */ GLCchar32 c2 = (c1 >> 1) & 033333333333; c2 = c1 - c2 - ((c2 >> 1) & 033333333333); return (((c2 + (c2 >> 3)) & 030707070707) % 077); } /* Get the name of the character which is stored at rank 'inIndex' in the * FcCharSet of the face. */ const GLCchar8* __glcCharMapGetCharNameByIndex(__GLCcharMap* This, GLint inIndex) { int i = 0; int j = 0; /* In Fontconfig the map in FcCharSet is organized as an array of integers. * Each integer corresponds to a page of 32 characters (since it uses 32 bits * integer). If a bit is set then character is in the character map otherwise * it is not. * In order not to store pages of 0's, the character map begins at the * character which codepoint is 'base'. * Pages are also gathered in blocks of 'FC_CHARSET_MAP_SIZE' pages in order * to prevent Fontconfig to store heaps of 0's if the character codes are * sparsed. * * The codepoint of a character located at bit 'j' of page 'i' is : * 'base + (i << 5) + j'. */ GLCchar32 map[FC_CHARSET_MAP_SIZE]; GLCchar32 next = 0; GLCchar32 base = FcCharSetFirstPage(This->charSet, map, &next); GLCchar32 count = 0; GLCchar32 value = 0; assert(inIndex >= 0); do { /* Parse the pages in FcCharSet */ for (i = 0; i < FC_CHARSET_MAP_SIZE; i++) { /* Get the number of character located in the current page */ value = __glcCharSetPopCount(map[i]); /* Check if the character we are looking for is in the current page */ if (count + value >= (GLCchar32)inIndex + 1) { for (j = 0; j < 32; j++) { /* Parse the page bit by bit */ if ((map[i] >> j) & 1) count++; /* A character is set at bit j */ /* Check if we have reached the rank inIndex */ if (count == (GLCchar32)inIndex + 1) { /* Get the character name */ return __glcNameFromCode(base + (i << 5) + j); } } } /* Add the number of characters of the current page to the count and * check the next page. */ count += value; } /* The current block is finished, check the next one */ base = FcCharSetNextPage(This->charSet, map, &next); } while (base != FC_CHARSET_DONE); /* The character has not been found */ __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } /* Return the number of characters in the character map */ GLint __glcCharMapGetCount(__GLCcharMap* This) { return FcCharSetCount(This->charSet); } /* Get the maximum mapped code of a character set */ GLint __glcCharMapGetMaxMappedCode(__GLCcharMap* This) { GLCchar32 base = 0; GLCchar32 next = 0; GLCchar32 prev_base = 0; GLCchar32 map[FC_CHARSET_MAP_SIZE]; int i = 0, j = 0; GLCulong maxMappedCode = 0; __GLCcharMapElement* element = NULL; int length = 0; assert(This->map); assert(GLC_ARRAY_DATA(This->map)); /* Look for the last block of pages of the FcCharSet structure */ base = FcCharSetFirstPage(This->charSet, map, &next); assert(base != FC_CHARSET_DONE); do { prev_base = base; base = FcCharSetNextPage(This->charSet, map, &next); } while (base != FC_CHARSET_DONE); /* Parse the pages in descending order to find the last page that contains * one character. */ for (i = FC_CHARSET_MAP_SIZE - 1; i >= 0; i--) if (map[i]) break; /* If the map contains no char then something went wrong... */ assert(i >= 0); /* Parse the bits of the last page in descending order to find the last * character of the page */ for (j = 31; j >= 0; j--) if ((map[i] >> j) & 1) break; /* Calculate the max mapped code */ maxMappedCode = prev_base + (i << 5) + j; /* Check that a code greater than the one found in the FcCharSet is not * stored in the array 'map'. */ element = (__GLCcharMapElement*)GLC_ARRAY_DATA(This->map); length = GLC_ARRAY_LENGTH(This->map); /* Return the greater of the code of both the FcCharSet and the array 'map'*/ if (length) return element[length-1].mappedCode > maxMappedCode ? element[length-1].mappedCode : maxMappedCode; else return maxMappedCode; } /* Get the minimum mapped code of a character set */ GLint __glcCharMapGetMinMappedCode(__GLCcharMap* This) { GLCchar32 base = 0; GLCchar32 next = 0; GLCchar32 map[FC_CHARSET_MAP_SIZE]; int i = 0, j = 0; GLCulong minMappedCode = 0xffffffff; __GLCcharMapElement* element = NULL; int length = 0; assert(This->map); assert(GLC_ARRAY_DATA(This->map)); /* Get the first block of pages of the FcCharSet structure */ base = FcCharSetFirstPage(This->charSet, map, &next); assert(base != FC_CHARSET_DONE); /* Parse the pages in ascending order to find the first page that contains * one character. */ for (i = 0; i < FC_CHARSET_MAP_SIZE; i++) if (map[i]) break; /* If the map contains no char then something went wrong... */ assert(i >= 0); /* Parse the bits of the first page in ascending order to find the first * character of the page */ for (j = 0; j < 32; j++) if ((map[i] >> j) & 1) break; minMappedCode = base + (i << 5) + j; /* Check that a code lower than the one found in the FcCharSet is not * stored in the array 'map'. */ element = (__GLCcharMapElement*)GLC_ARRAY_DATA(This->map); length = GLC_ARRAY_LENGTH(This->map); /* Return the lower of the code of both the FcCharSet and the array 'map'*/ if (length > 0) return element[0].mappedCode < minMappedCode ? element[0].mappedCode : minMappedCode; else return minMappedCode; } quesoglc-0.7.2/src/unicode.c0000644000175000017500000005135411162160035012647 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: unicode.c 886 2009-03-24 00:35:17Z bcoconni $ */ /* This file defines miscellaneous utility routines used for Unicode management */ /** \file * defines the routines used to manipulate Unicode strings and characters */ #include #include "internal.h" /* Find a Unicode name from its code */ const GLCchar8* __glcNameFromCode(GLint code) { GLint position = -1; if ((code < 0) || (code > __glcMaxCode)) { static char buffer[20]; if (code > 0x10ffff) { __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } #ifdef _MSC_VER sprintf_s(buffer, 20, "Character 0x%x", code); #else snprintf(buffer, 20, "Character 0x%x", code); #endif return (const GLCchar8*)buffer; } position = __glcNameFromCodeArray[code]; if (position == -1) { __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } return (const GLCchar8*)__glcCodeFromNameArray[position].name; } /* Find a Unicode code from its name */ GLint __glcCodeFromName(GLCchar8* name) { int start = 0; int end = __glcCodeFromNameSize; int middle = (end + start) / 2; int res = 0; while (end - start > 1) { res = strcmp((const char*)name, __glcCodeFromNameArray[middle].name); if (res > 0) start = middle; else if (res < 0) end = middle; else return __glcCodeFromNameArray[middle].code; middle = (end + start) / 2; } if (strcmp((const char*)name, __glcCodeFromNameArray[start].name) == 0) return __glcCodeFromNameArray[start].code; if (strcmp((const char*)name, __glcCodeFromNameArray[end].name) == 0) return __glcCodeFromNameArray[end].code; __glcRaiseError(GLC_PARAMETER_ERROR); return -1; } /* Convert a character from UCS1 to UTF-8 and return the number of bytes * needed to encode the char. */ static int __glcUcs1ToUtf8(GLCchar8 ucs1, GLCchar8 dest[FC_UTF8_MAX_LEN]) { GLCchar8 *d = dest; if (ucs1 < 0x80) *d++ = ucs1; else { *d++ = ((ucs1 >> 6) & 0x1F) | 0xC0; *d++ = (ucs1 & 0x3F) | 0x80; } return d - dest; } /* Convert a character from UCS2 to UTF-8 and return the number of bytes * needed to encode the char. */ static int __glcUcs2ToUtf8(GLCchar16 ucs2, GLCchar8 dest[FC_UTF8_MAX_LEN]) { GLCchar8 *d = dest; if (ucs2 < 0x80) *d++ = ucs2; else if (ucs2 < 0x800) { *d++ = ((ucs2 >> 6) & 0x1F) | 0xC0; *d++ = (ucs2 & 0x3F) | 0x80; } else { *d++ = ((ucs2 >> 12) & 0x0F) | 0xE0; *d++ = ((ucs2 >> 6) & 0x3F) | 0x80; *d++ = (ucs2 & 0x3F) | 0x80; } return d - dest; } /* Convert a character from UTF-8 to UCS1 and return the number of bytes * needed to encode the character. * According to the GLC specs, when the value of a character code exceed the * range of the character encoding, the returned character is converted * to a character sequence \ where 'hexcode' is the original * character code represented as a sequence of hexadecimal digits */ static int __glcUtf8ToUcs1(const GLCchar8* src_orig, GLCchar8 dst[GLC_OUT_OF_RANGE_LEN], int len, int* dstlen) { GLCchar32 result = 0; int src_shift = FcUtf8ToUcs4(src_orig, &result, len); if (src_shift > 0) { /* src_orig is a well-formed UTF-8 character */ if (result < 0x100) { *dst = result; *dstlen = 1; } else { /* Convert to the string '\' */ #ifdef _MSC_VER *dstlen = sprintf_s((char*)dst, GLC_OUT_OF_RANGE_LEN, "\\<%X>", result); /* sprintf_s returns -1 on any error, and the number of characters * written to the string not including the terminating null otherwise. * Insufficient length of the destination buffer is an error and the * buffer is set to an empty string. */ if (*dstlen < 0) *dstlen = 0; #else *dstlen = snprintf((char*)dst, GLC_OUT_OF_RANGE_LEN, "\\<%X>", result); /* Standard ISO/IEC 9899:1999 (ISO C99) snprintf, which it appears * Microsoft has not implemented for their operating systems. Return * value is length of the string that would have been written into * the destination buffer not including the terminating null had their * been enough space. Truncation has occurred if return value is >= * destination buffer size. */ if (*dstlen >= GLC_OUT_OF_RANGE_LEN) *dstlen = GLC_OUT_OF_RANGE_LEN - 1; #endif } } return src_shift; } /* Convert a character from UTF-8 to UCS1 and return the number of bytes * needed to encode the character. * According to the GLC specs, when the value of a character code exceed the * range of the character encoding, the returned character is converted * to a character sequence \ where 'hexcode' is the original * character code represented as a sequence of hexadecimal digits */ static int __glcUtf8ToUcs2(const GLCchar8* src_orig, GLCchar16 dst[GLC_OUT_OF_RANGE_LEN], int len, int* dstlen) { GLCchar32 result = 0; int src_shift = FcUtf8ToUcs4(src_orig, &result, len); if (src_shift > 0) { /* src_orig is a well-formed UTF-8 character */ if (result < 0x10000) { *dst = result; *dstlen = 1; } else { /* Convert to the string '\' */ int count; char* src = NULL; char buffer[GLC_OUT_OF_RANGE_LEN]; #ifdef _MSC_VER sprintf_s(buffer, GLC_OUT_OF_RANGE_LEN, "\\<%X>", result); #else snprintf(buffer, GLC_OUT_OF_RANGE_LEN, "\\<%X>", result); #endif for (count = 0, src = buffer; *src && count < GLC_OUT_OF_RANGE_LEN; count++, *dst++ = *src++); *dst = 0; /* Terminating '\0' character */ *dstlen = count; } } return src_shift; } /* Convert 'inString' in the UTF-8 format and return a copy of the converted * string. */ GLCchar8* __glcConvertToUtf8(const GLCchar* inString, const GLint inStringType) { GLCchar8 buffer[FC_UTF8_MAX_LEN > 8 ? FC_UTF8_MAX_LEN : 8]; GLCchar8* string = NULL; GLCchar8* ptr = NULL; int len; switch(inStringType) { case GLC_UCS1: { const GLCchar8* ucs1 = NULL; /* Determine the length of the final string */ for (len = 0, ucs1 = (const GLCchar8*)inString; *ucs1; len += __glcUcs1ToUtf8(*ucs1++, buffer)); /* Allocate the room to store the final string */ string = (GLCchar8*)__glcMalloc((len+1)*sizeof(GLCchar8)); if (!string) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } /* Perform the conversion */ for (ucs1 = (const GLCchar8*)inString, ptr = string; *ucs1; ptr += __glcUcs1ToUtf8(*ucs1++, ptr)); *ptr = 0; } break; case GLC_UCS2: { const GLCchar16* ucs2 = NULL; /* Determine the length of the final string */ for (len = 0, ucs2 = (const GLCchar16*)inString; *ucs2; len += __glcUcs2ToUtf8(*ucs2++, buffer)); /* Allocate the room to store the final string */ string = (GLCchar8*)__glcMalloc((len+1)*sizeof(GLCchar8)); if (!string) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } /* Perform the conversion */ for (ucs2 = (const GLCchar16*)inString, ptr = string; *ucs2; ptr += __glcUcs2ToUtf8(*ucs2++, ptr)); *ptr = 0; } break; case GLC_UCS4: { const GLCchar32* ucs4 = NULL; /* Determine the length of the final string */ for (len = 0, ucs4 = (const GLCchar32*)inString; *ucs4; len += FcUcs4ToUtf8(*ucs4++, buffer)); /* Allocate the room to store the final string */ string = (GLCchar8*)__glcMalloc((len+1)*sizeof(GLCchar8)); if (!string) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } /* Perform the conversion */ for (ucs4 = (const GLCchar32*)inString, ptr = string; *ucs4; ptr += FcUcs4ToUtf8(*ucs4++, ptr)); *ptr = 0; } break; case GLC_UTF8_QSO: /* If the string is already encoded in UTF-8 format then all we need to do * is to make a copy of it. */ #ifdef __WIN32__ string = (GLCchar8*)_strdup((const char*)inString); #else string = (GLCchar8*)strdup((const char*)inString); #endif break; default: return NULL; } return string; } /* Convert 'inString' from the UTF-8 format and return a copy of the * converted string in the context buffer. */ GLCchar* __glcConvertFromUtf8ToBuffer(__GLCcontext* This, const GLCchar8* inString, const GLint inStringType) { GLCchar* string = NULL; const GLCchar8* utf8 = NULL; int len_buffer = 0; int len = 0; int shift = 0; assert(inString); switch(inStringType) { case GLC_UCS1: { GLCchar8 buffer[GLC_OUT_OF_RANGE_LEN]; GLCchar8* ucs1 = NULL; /* Determine the length of the final string */ utf8 = inString; while(*utf8) { shift = __glcUtf8ToUcs1(utf8, buffer, strlen((const char*)utf8), &len_buffer); if (shift < 0) { /* There is an ill-formed character in the UTF-8 string, abort */ return NULL; } utf8 += shift; len += len_buffer; } /* Allocate the room to store the final string */ string = (GLCchar*)__glcContextQueryBuffer(This, (len+1)*sizeof(GLCchar8)); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ /* Perform the conversion */ ucs1 = (GLCchar8*)string; utf8 = inString; while(*utf8) { utf8 += __glcUtf8ToUcs1(utf8, ucs1, strlen((const char*)utf8), &len_buffer); ucs1 += len_buffer; } *ucs1 = 0; /* Add the '\0' termination of the string */ } break; case GLC_UCS2: { GLCchar16 buffer[GLC_OUT_OF_RANGE_LEN]; GLCchar16* ucs2 = NULL; /* Determine the length of the final string */ utf8 = inString; while(*utf8) { shift = __glcUtf8ToUcs2(utf8, buffer, strlen((const char*)utf8), &len_buffer); if (shift < 0) { /* There is an ill-formed character in the UTF-8 string, abort */ return NULL; } utf8 += shift; len += len_buffer; } /* Allocate the room to store the final string */ string = (GLCchar*)__glcContextQueryBuffer(This, (len+1)*sizeof(GLCchar16)); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ /* Perform the conversion */ ucs2 = (GLCchar16*)string; utf8 = inString; while(*utf8) { utf8 += __glcUtf8ToUcs2(utf8, ucs2, strlen((const char*)utf8), &len_buffer); ucs2 += len_buffer; } *ucs2 = 0; /* Add the '\0' termination of the string */ } break; case GLC_UCS4: { GLCchar32 buffer = 0; GLCchar32* ucs4 = NULL; /* Determine the length of the final string */ utf8 = inString; while(*utf8) { shift = FcUtf8ToUcs4(utf8, &buffer, strlen((const char*)utf8)); if (shift < 0) { /* There is an ill-formed character in the UTF-8 string, abort */ __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } utf8 += shift; len++; } /* Allocate the room to store the final string */ string = (GLCchar*)__glcContextQueryBuffer(This, (len+1)*sizeof(GLCchar32)); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ /* Perform the conversion */ utf8 = inString; ucs4 = (GLCchar32*)string; while(*utf8) utf8 += FcUtf8ToUcs4(utf8, ucs4++, strlen((const char*)utf8)); *ucs4 = 0; /* Add the '\0' termination of the string */ } break; case GLC_UTF8_QSO: /* If the string is already encoded in UTF-8 format then all we need to do * is to make a copy of it. */ string = (GLCchar*)__glcContextQueryBuffer(This, strlen((const char*)inString)+1); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ strcpy((char*)string, (const char*)inString); break; default: return NULL; } return string; } /* Convert a UCS-4 character code into the current string type. The result is * stored in a GLint. If the code can not be converted to the current string * type a GLC_PARAMETER_ERROR is issued. */ GLint __glcConvertUcs4ToGLint(__GLCcontext *inContext, GLint inCode) { switch(inContext->stringState.stringType) { case GLC_UCS2: /* Check that inCode can be stored in UCS-2 format */ if (inCode <= 65535) break; case GLC_UCS1: /* Check that inCode can be stored in UCS-1 format */ if (inCode <= 255) break; case GLC_UTF8_QSO: /* A Unicode codepoint can be no higher than 0x10ffff * (see Unicode specs) */ if (inCode > 0x10ffff) { __glcRaiseError(GLC_PARAMETER_ERROR); return -1; } else { /* Codepoints lower or equal to 0x10ffff can be encoded on 4 bytes in * UTF-8 format */ GLCchar8 buffer[FC_UTF8_MAX_LEN > 8 ? FC_UTF8_MAX_LEN : 8]; #ifndef NDEBUG int len = FcUcs4ToUtf8((GLCchar32)inCode, buffer); assert((size_t)len <= sizeof(GLint)); #else FcUcs4ToUtf8((GLCchar32)inCode, buffer); #endif return *((GLint*)buffer); } } return inCode; } /* Convert a character encoded in the current string type to the UCS-4 format. * This function is needed since the GLC specs store individual character codes * in GLint which may cause problems for the UTF-8 format. */ GLint __glcConvertGLintToUcs4(__GLCcontext *inContext, GLint inCode) { GLint code = inCode; if (inCode < 0) { __glcRaiseError(GLC_PARAMETER_ERROR); return -1; } switch (inContext->stringState.stringType) { case GLC_UCS1: if (inCode > 0xff) { __glcRaiseError(GLC_PARAMETER_ERROR); return -1; } break; case GLC_UCS2: if (inCode > 0xffff) { __glcRaiseError(GLC_PARAMETER_ERROR); return -1; } break; case GLC_UTF8_QSO: /* Convert the codepoint in UCS4 format and check if it is ill-formed or * not */ if (FcUtf8ToUcs4((GLCchar8*)&inCode, (GLCchar32*)&code, sizeof(GLint)) < 0) { __glcRaiseError(GLC_PARAMETER_ERROR); return -1; } break; } return code; } /* Convert 'inString' (stored in logical order) to UCS4 format and return a * copy of the converted string in visual order. */ GLCchar32* __glcConvertToVisualUcs4(__GLCcontext* inContext, GLboolean *outIsRTL, GLint *outLength, const GLCchar* inString) { GLCchar32* string = NULL; int length = 0; FriBidiCharType base = FRIBIDI_TYPE_ON; GLCchar32* visualString = NULL; assert(inString); switch(inContext->stringState.stringType) { case GLC_UCS1: { const GLCchar8* ucs1 = (const GLCchar8*)inString; GLCchar32* ucs4 = NULL; length = strlen((const char*)ucs1); /* Allocate the room to store the final string */ string = (GLCchar32*)__glcContextQueryBuffer(inContext, 2*(length+1)*sizeof(GLCchar32)); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ for (ucs4 = string; *ucs1; ucs1++, ucs4++) *ucs4 = (GLCchar32)(*ucs1); *ucs4 = 0; /* Add the '\0' termination of the string */ } break; case GLC_UCS2: { const GLCchar16* ucs2 = NULL; GLCchar32* ucs4 = NULL; for (ucs2 = (const GLCchar16*)inString; *ucs2; ucs2++, length++); /* Allocate the room to store the final string */ string = (GLCchar32*)__glcContextQueryBuffer(inContext, 2*(length+1)*sizeof(GLCchar32)); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ for (ucs2 = (const GLCchar16*)inString, ucs4 = string; *ucs2; ucs2++, ucs4++) *ucs4 = (GLCchar32)(*ucs2); *ucs4 = 0; /* Add the '\0' termination of the string */ } break; case GLC_UCS4: { const GLCchar32* ucs4 = NULL; for (ucs4 = (const GLCchar32*)inString; *ucs4; ucs4++, length++); /* Allocate the room to store the final string */ string = (GLCchar32*)__glcContextQueryBuffer(inContext, 2*(length+1)*sizeof(int)); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ memcpy(string, inString, length*sizeof(int)); ((int*)string)[length] = 0; /* Add the '\0' termination of the string */ } break; case GLC_UTF8_QSO: { GLCchar32* ucs4 = NULL; const GLCchar8* utf8 = NULL; GLCchar32 buffer = 0; int shift = 0; /* Determine the length of the final string */ utf8 = (const GLCchar8*)inString; while(*utf8) { shift = FcUtf8ToUcs4(utf8, &buffer, strlen((const char*)utf8)); if (shift < 0) { /* There is an ill-formed character in the UTF-8 string, abort */ return NULL; } utf8 += shift; length++; } /* Allocate the room to store the final string */ string = (GLCchar32*)__glcContextQueryBuffer(inContext, 2*(length+1)*sizeof(GLCchar32)); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ /* Perform the conversion */ utf8 = (const GLCchar8*)inString; ucs4 = (GLCchar32*)string; while(*utf8) utf8 += FcUtf8ToUcs4(utf8, ucs4++, strlen((const char*)utf8)); *ucs4 = 0; /* Add the '\0' termination of the string */ } break; } if (length) { visualString = string + length + 1; if (!fribidi_log2vis(string, length, &base, visualString, NULL, NULL, NULL)) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } *outIsRTL = FRIBIDI_IS_RTL(base) ? GL_TRUE : GL_FALSE; } else visualString = string; *outLength = length; return visualString; } /* Convert 'inCount' characters of 'inString' (stored in logical order) to UCS4 * format and return a copy of the converted string in visual order. */ GLCchar32* __glcConvertCountedStringToVisualUcs4(__GLCcontext* inContext, GLboolean *outIsRTL, const GLCchar* inString, const GLint inCount) { GLCchar32* string = NULL; FriBidiCharType base = FRIBIDI_TYPE_ON; GLCchar32* visualString = NULL; assert(inString); switch(inContext->stringState.stringType) { case GLC_UCS1: { const GLCchar8* ucs1 = (const GLCchar8*)inString; GLCchar32* ucs4 = NULL; GLint i = 0; /* Allocate the room to store the final string */ string = (GLCchar32*)__glcContextQueryBuffer(inContext, 2*(inCount+1)*sizeof(GLCchar32)); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ ucs4 = string; for (i = 0; i < inCount; i++) *(ucs4++) = (GLCchar32)(*(ucs1++)); *ucs4 = 0; /* Add the '\0' termination of the string */ } break; case GLC_UCS2: { const GLCchar16* ucs2 = NULL; GLCchar32* ucs4 = NULL; GLint i = 0; /* Allocate the room to store the final string */ string = (GLCchar32*)__glcContextQueryBuffer(inContext, 2*(inCount+1)*sizeof(GLCchar32)); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ ucs2 = (const GLCchar16*)inString; ucs4 = string; for (i = 0 ; i < inCount; i++) *(ucs4++) = (GLCchar32)(*(ucs2++)); *ucs4 = 0; /* Add the '\0' termination of the string */ } break; case GLC_UCS4: { /* Allocate the room to store the final string */ string = (GLCchar32*)__glcContextQueryBuffer(inContext, 2*(inCount+1)*sizeof(int)); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ memcpy(string, inString, inCount*sizeof(int)); ((int*)string)[inCount] = 0; /* Add the '\0' termination of the string */ } break; case GLC_UTF8_QSO: { GLCchar32* ucs4 = NULL; const GLCchar8* utf8 = NULL; GLint i = 0; /* Allocate the room to store the final string */ string = (GLCchar32*)__glcContextQueryBuffer(inContext, 2*(inCount+1)*sizeof(GLCchar32)); if (!string) return NULL; /* GLC_RESOURCE_ERROR has been raised */ /* Perform the conversion */ utf8 = (const GLCchar8*)inString; ucs4 = (GLCchar32*)string; for (i = 0; i < inCount; i++) utf8 += FcUtf8ToUcs4(utf8, ucs4++, strlen((const char*)utf8)); *ucs4 = 0; /* Add the '\0' termination of the string */ } break; } visualString = string + inCount; if (!fribidi_log2vis(string, inCount, &base, visualString, NULL, NULL, NULL)) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } *outIsRTL = FRIBIDI_IS_RTL(base) ? GL_TRUE : GL_FALSE; return visualString; } quesoglc-0.7.2/src/font.c0000644000175000017500000010163011150245666012173 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: font.c 857 2009-01-17 12:17:31Z bcoconni $ */ /** \file * defines the so-called "Font commands" described in chapter 3.7 of the GLC * specs. */ /** \defgroup font Font commands * Commands to create, manage and destroy fonts. * * A font is a stylistically consistent set of glyphs that can be used to * render some set of characters. Each font has a family name (for example * Palatino) and a state variable that selects one of the faces (for * example Regular, Bold, Italic, BoldItalic) that the font contains. A * typeface is the combination of a family and a face (for example * Palatino Bold). * * A font is an instantiation of a master for a given face. * * Every font has an associated character map. A character map is a table of * entries that maps integer values to the name string that identifies the * characters. The character maps are used by GLC, for instance, to determine * that the character code \e 65 corresponds to \e A. The character map of a * font can be modified by either adding new entries or changing the mapping * of the characters (see glcFontMap()). * * GLC maintains two lists of fonts : \b GLC_FONT_LIST and * \b GLC_CURRENT_FONT_LIST. The former contains every font that have been * created with the commands glcNewFontFromFamily() and glcNewFontFromMaster() * and the later contains the fonts that GLC can use when it renders a * character (notice however that if \b GLC_AUTO_FONT is enabled, GLC may * automatically add new fonts from \b GLC_FONT_LIST to the * \b GLC_CURRENT_FONT_LIST ). Finally, it must be stressed that the order in * which the fonts are stored in the \b GLC_CURRENT_FONT_LIST matters : the * first font of the list should be considered as the main font with which * strings are rendered, while other fonts of this list should be seen as * fallback fonts (i.e. fonts that are used when the first font of * \b GLC_CURRENT_FONT_LIST does not map the character to render). * * Most of the commands in this category have a parameter \e inFont. Unless * otherwise specified, these commands raise \b GLC_PARAMETER_ERROR if * \e inFont is less than zero or is greater than or equal to the value of * the variable \b GLC_FONT_COUNT. */ #include "internal.h" /* Most font commands need to check that : * 1. The current thread owns a context state * 2. The font identifier 'inFont' is legal * This internal function does both checks and returns the pointer to the * __GLCfont object that is identified by 'inFont' if the checks have succeeded * otherwise returns NULL. */ __GLCfont* __glcVerifyFontParameters(GLint inFont) { __GLCcontext *ctx = GLC_GET_CURRENT_CONTEXT(); FT_ListNode node = NULL; __GLCfont *font = NULL; /* Check if the current thread owns a context state */ if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return NULL; } /* Verify if the font identifier is in legal bounds */ for (node = ctx->fontList.head; node; node = node->next) { font = (__GLCfont*)node->data; if (font->id == inFont) break; } if (!node) { __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } /* Returns the __GLCfont object identified by inFont */ return font; } /* Do the actual job of glcAppendFont(). This function can be called as an * internal version of glcAppendFont() where the current GLC context is already * determined and the font ID has been resolved in its corresponding __GLCfont * object. */ void __glcAppendFont(__GLCcontext* inContext, __GLCfont* inFont) { FT_ListNode node = (FT_ListNode)__glcMalloc(sizeof(FT_ListNodeRec)); if (!node) { __glcRaiseError(GLC_RESOURCE_ERROR); return; } #ifndef GLC_FT_CACHE if (!__glcFontOpen(inFont, inContext)) { __glcFree(node); return; } #endif /* Add the font to GLC_CURRENT_FONT_LIST */ node->data = inFont; FT_List_Add(&inContext->currentFontList, node); } /** \ingroup font * This command appends \e inFont to the list \b GLC_CURRENT_FONT_LIST. * * The command raises \b GLC_PARAMETER_ERROR if \e inFont is not an element of * the list \b GLC_FONT_LIST or if \e inFont is an element in the list * \b GLC_CURRENT_FONT_LIST at the beginning of command execution. * \param inFont The ID of the font to append to the list * \b GLC_CURRENT_FONT_LIST * \sa glcGetListc() with argument \b GLC_CURRENT_FONT_LIST * \sa glcGeti() with argument \b GLC_CURRENT_FONT_COUNT * \sa glcFont() * \sa glcNewFontFromFamily() * \sa glcNewFontFromMaster() */ void APIENTRY glcAppendFont(GLint inFont) { __GLCcontext *ctx = NULL; __GLCfont *font = NULL; GLC_INIT_THREAD(); /* Verify that the thread has a current context and that the font identified * by 'inFont' exists. */ font = __glcVerifyFontParameters(inFont); if (!font) return; ctx = GLC_GET_CURRENT_CONTEXT(); /* Check if inFont is already an element of GLC_CURRENT_FONT_LIST */ if (FT_List_Find(&ctx->currentFontList, font)) { __glcRaiseError(GLC_PARAMETER_ERROR); return; } __glcAppendFont(ctx, font); } /* This internal function must be called each time that a command destroys * a font. __glcDeleteFont removes, if necessary, the font identified by * inFont from the list GLC_CURRENT_FONT_LIST and then delete the font. */ static void __glcDeleteFont(__GLCfont* font, __GLCcontext* inContext) { FT_ListNode node = NULL; /* Look for the font into GLC_CURRENT_FONT_LIST */ node = FT_List_Find(&inContext->currentFontList, font); /* If the font has been found, remove it from the list */ if (node) { FT_List_Remove(&inContext->currentFontList, node); #ifndef GLC_FT_CACHE __glcFontClose(font); #endif __glcFree(node); } __glcFontDestroy(font, inContext); } /** \ingroup font * This command deletes the font identified by \e inFont. If \e inFont is an * element in the list \b GLC_CURRENT_FONT_LIST, the command removes that * element from the list. All information about the font is lost, and the * indice \e inFont become unused. * * The command raises \b GLC_PARAMETER_ERROR if \e inFont is not an element of * the list \b GLC_FONT_LIST and if \e inFont has not been generated by * glcGenFontID(). * \param inFont The ID of the font to delete * \sa glcGetListi() with argument \b GLC_FONT_LIST * \sa glcGeti() with argument \b GLC_FONT_COUNT * \sa glcIsFont() * \sa glcGenFontID() * \sa glcNewFontFromFamily() * \sa glcNewFontFromMaster() */ void APIENTRY glcDeleteFont(GLint inFont) { __GLCcontext *ctx = NULL; __GLCfont *font = NULL; FT_ListNode node = NULL; GLC_INIT_THREAD(); ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } /* Search the font to be deleted */ for (node = ctx->fontList.head; node; node = node->next) { font = (__GLCfont*)node->data; if (font->id == inFont) { /* remove the font from the GLC_FONT_LIST then destroy it */ FT_List_Remove(&ctx->fontList, node); break; } } if (!node) { for (node = ctx->genFontList.head; node; node = node->next) { font = (__GLCfont*)node->data; if (font->id == inFont) { /* Remove the font from the empty font list generated by * glcGenFontID(). */ FT_List_Remove(&ctx->genFontList, node); break; } } if (!node) { __glcRaiseError(GLC_PARAMETER_ERROR); return; } } __glcFree(node); __glcDeleteFont(font, ctx); } #ifndef GLC_FT_CACHE /* Function called by FT_List_Finalize * Close the face of a font when GLC_CURRENT_FONT_LIST is deleted */ static void __glcCloseFace(FT_Memory GLC_UNUSED_ARG(inMemory), void* data, void* GLC_UNUSED_ARG(user)) { __GLCfont* font = (__GLCfont*)data; assert(font); __glcFontClose(font); } #endif /** \ingroup font * This command begins by removing all elements from the list * \b GLC_CURRENT_FONT_LIST. If \e inFont is nonzero, the command then appends * \e inFont to the list. Otherwise, the command does not raise an error and * the list remains empty. * * The command raises \b GLC_PARAMETER_ERROR if \e inFont is nonzero and is * not an element of the list \b GLC_FONT_LIST. * \param inFont The ID of a font. * \sa glcGetListc() with argument \b GLC_CURRENT_FONT_LIST * \sa glcGeti() with argument \b GLC_CURRENT_FONT_COUNT * \sa glcAppendFont() */ void APIENTRY glcFont(GLint inFont) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Verify if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } if (inFont) { FT_ListNode node = NULL; __GLCfont *font = __glcVerifyFontParameters(inFont); /* Verify that the thread has a current context and that the font * identified by 'inFont' exists. */ if (!font) { /* No need to raise an error since __glcVerifyFontParameters() already * did it */ return; } /* Check if the font is already in GLC_CURRENT_FONT_LIST */ node = FT_List_Find(&ctx->currentFontList, font); if (node) { /* Remove the font from the list */ FT_List_Remove(&ctx->currentFontList, node); } else { #ifndef GLC_FT_CACHE if (!__glcFontOpen(font, ctx)) return; #endif /* Append the font identified by inFont to GLC_CURRENT_FONT_LIST */ node = ctx->currentFontList.head; if (node) { /* We keep the first node of the current font list in order not to need * to create a new one to store the font identified by 'inFont' */ #ifndef GLC_FT_CACHE __GLCfont* dummyFont = (__GLCfont*)node->data; /* Close the face of the font stored in the first node */ __glcFontClose(dummyFont); #endif /* Remove the first node of the list to prevent it to be deleted by * FT_List_Finalize(). */ FT_List_Remove(&ctx->currentFontList, node); } else { /* The list is empty, create a new node */ node = (FT_ListNode)__glcMalloc(sizeof(FT_ListNodeRec)); if (!node) { #ifndef GLC_FT_CACHE __glcFontClose(font); #endif __glcRaiseError(GLC_RESOURCE_ERROR); return; } } } #ifndef GLC_FT_CACHE /* Close the remaining fonts in GLC_CURRENT_FONT_LIST and empty the list */ FT_List_Finalize(&ctx->currentFontList, __glcCloseFace, &__glcCommonArea.memoryManager, NULL); #else /* Empties GLC_CURRENT_FONT_LIST */ FT_List_Finalize(&ctx->currentFontList, NULL, &__glcCommonArea.memoryManager, NULL); #endif /* Insert the updated node as the first and only node */ node->data = font; FT_List_Add(&ctx->currentFontList, node); } else { /* Empties the list GLC_CURRENT_FONT_LIST */ #ifndef GLC_FT_CACHE FT_List_Finalize(&ctx->currentFontList, __glcCloseFace, &__glcCommonArea.memoryManager, NULL); #else FT_List_Finalize(&ctx->currentFontList, NULL, &__glcCommonArea.memoryManager, NULL); #endif } } /** \ingroup font * This command attempts to set the current face of the font identified by * \e inFont to the face identified by the string \e inFace. Examples for * font faces are strings like "Normal", "Bold" or * "Bold Italic". In contrast to some systems that have a different * font for each face, GLC allows you to have the face be an attribute of * the font. * * If \e inFace is not an element of the font's string list attribute * \b GLC_FACE_LIST, the command leaves the font's current face unchanged and * returns \b GL_FALSE. If the command succeeds, it returns \b GL_TRUE. * * If \e inFont is zero, the command iterates over the * \b GLC_CURRENT_FONT_LIST. For each of the fonts named therein, the command * attempts to set the font's current face to the face in that font that is * identified by \e inFace. In this case, the command returns \b GL_TRUE if * \b GLC_CURRENT_FONT_LIST contains one or more elements and the command * successfully sets the current face of each of the fonts named in the list. * * The command raises \b GLC_PARAMETER_ERROR if \e inFont is not an element in * the list \b GLC_FONT_LIST. * \param inFont The ID of the font to be changed * \param inFace The face for \e inFont * \return \b GL_TRUE if the command succeeded to set the face \e inFace * to the font \e inFont. \b GL_FALSE is returned otherwise. * \sa glcGetFontFace() */ GLboolean APIENTRY glcFontFace(GLint inFont, const GLCchar* inFace) { __GLCcontext *ctx = NULL; GLCchar8* UinFace = NULL; __GLCfont* font = NULL; GLC_INIT_THREAD(); assert(inFace); /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return GL_FALSE; } UinFace = __glcConvertToUtf8(inFace, ctx->stringState.stringType); if (!UinFace) return GL_FALSE; if (inFont) { GLboolean result = GL_FALSE; /* Check if the current thread owns a context state * and if the font identified by inFont exists */ font = __glcVerifyFontParameters(inFont); if (!font) { __glcFree(UinFace); return GL_FALSE; } /* Open the new face */ result = __glcFontFace(font, UinFace, ctx); __glcFree(UinFace); return result; } else { FT_ListNode node = NULL; if (!ctx->currentFontList.head) { __glcFree(UinFace); return GL_FALSE; } /* Check that every font of GLC_CURRENT_FONT_LIST has a face identified * by UinFace. */ for (node = ctx->currentFontList.head; node; node = node->next) { __GLCmaster* master = NULL; __GLCfaceDescriptor* faceDesc = NULL; font = (__GLCfont*)node->data; master = __glcMasterCreate(font->parentMasterID, ctx); assert(master); /* Get the face descriptor of the face identified by the string inFace */ faceDesc = __glcFaceDescCreate(master, UinFace, ctx, 0); __glcMasterDestroy(master); if (!faceDesc) { /* No face identified by UinFace has been found in the font */ __glcFree(UinFace); return GL_FALSE; } __glcFaceDescDestroy(faceDesc, ctx); } /* Set the current face of every font of GLC_CURRENT_FONT_LIST to the face * identified by UinFace. */ for (node = ctx->currentFontList.head; node; node = node->next) __glcFontFace((__GLCfont*)node->data, UinFace, ctx); __glcFree(UinFace); return GL_TRUE; } } /** \ingroup font * This command modifies the character map of the font identified by \e inFont * such that the font maps \e inCode to the character whose name is the string * \e inCharName. If \e inCharName is \b GLC_NONE, \e inCode is removed from * the character map. * * The command raises \b GLC_PARAMETER_ERROR if \e inCharName is not * \b GLC_NONE or an element of the font string's list attribute * \b GLC_CHAR_LIST. * \param inFont The ID of the font * \param inCode The integer ID of a character * \param inCharName The string name of a character * \sa glcGetFontMap() */ void APIENTRY glcFontMap(GLint inFont, GLint inCode, const GLCchar* inCharName) { __GLCfont *font = NULL; GLint code = 0; __GLCcontext* ctx = NULL; GLC_INIT_THREAD(); /* Check if the font parameters are valid */ font = __glcVerifyFontParameters(inFont); if (!font) return; ctx = GLC_GET_CURRENT_CONTEXT(); /* Get the character code converted to the UCS-4 format */ code = __glcConvertGLintToUcs4(ctx, inCode); if (code < 0) return; if (!inCharName) /* Remove the character from the map */ __glcCharMapRemoveChar(font->charMap, code); else { GLCchar8* buffer = NULL; GLCulong mappedCode = 0; __GLCglyph* glyph = NULL; GLint error = 0; /* Convert the character name identified by inCharName into UTF-8 format. * The result is stored into 'buffer'. */ buffer = __glcConvertToUtf8(inCharName, ctx->stringState.stringType); if (!buffer) return; /* Retrieve the Unicode code from its name */ error = __glcCodeFromName(buffer); if (error < 0) { __glcFree(buffer); return; } mappedCode = (GLCulong)error; /* Get the glyph that corresponds to the mapped code */ glyph = __glcFaceDescGetGlyph(font->faceDesc, mappedCode, ctx); if (!glyph) { __glcFree(buffer); return; } /* Add the character and its corresponding glyph to the character map */ __glcCharMapAddChar(font->charMap, inCode, glyph); __glcFree(buffer); } } /** \ingroup font * This command returns a font ID that is not an element of the list * \b GLC_FONT_LIST. This command has also the effect of creating an empty * font for the returned ID so that this ID become used. * \return A new font ID * \sa glcDeleteFont() * \sa glcIsFont() * \sa glcNewFontFromFamily() * \sa glcNewFontFromMaster() */ GLint APIENTRY glcGenFontID(void) { __GLCcontext *ctx = NULL; FT_ListNode node = NULL; __GLCfont* font = NULL; GLint id = 1; GLC_INIT_THREAD(); /* Verify if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return 0; } /* Look for an ID which is not associated to an existing font */ for (id = 1; id <= 0x7fffffff; id++) { /* Check against fonts stored in GLC_FONT_LIST */ for (node = ctx->fontList.head; node; node = node->next) { font = (__GLCfont*)node->data; if (font->id == id) break; } /* A font in GLC_FONT_LIST has already the current ID, check for next ID */ if (node) continue; /* Check against fonts already generated by glcGenFontID() but not yet * associated to a font of GLC_FONT_LIST. */ for (node = ctx->genFontList.head; node; node = node->next) { font = (__GLCfont*)node->data; if (font->id == id) break; } /* If the current ID is not associated then exit*/ if (!node) break; } /* If we have scanned all possible ID values and failed to find one which is * not yet associated (which is very unlikely) then exit with an error. */ if (node) { __glcRaiseError(GLC_RESOURCE_ERROR); return 0; } /* Create an empty font */ node = (FT_ListNode)__glcMalloc(sizeof(FT_ListNodeRec)); if (!node) { __glcRaiseError(GLC_RESOURCE_ERROR); return 0; } /* Create an empty font */ font = __glcFontCreate(id, NULL, ctx, 0); if (!font) { __glcFree(node); return 0; } node->data = font; FT_List_Add(&ctx->genFontList, node); return id; } /** \ingroup font * This command returns the string name of the current face of the font * identified by \e inFont. * \param inFont The font ID * \return The string name of the font \e inFont * \sa glcFontFace() */ const GLCchar* APIENTRY glcGetFontFace(GLint inFont) { __GLCfont *font = NULL; GLC_INIT_THREAD(); font = __glcVerifyFontParameters(inFont); if (font) { GLCchar *buffer = NULL; __GLCcontext *ctx = GLC_GET_CURRENT_CONTEXT(); /* Convert the string name of the face into the current string type */ buffer = __glcConvertFromUtf8ToBuffer(ctx, __glcFaceDescGetStyleName(font->faceDesc), ctx->stringState.stringType); if (!buffer) return GLC_NONE; /* returns the name */ return buffer; } else return GLC_NONE; } /** \ingroup font * This command returns an attribute of the font identified by \e inFont that * is a string from a string list identified by \e inAttrib. The command * returns the string at offset \e inIndex from the first element in \e * inAttrib. For example, if \e inFont has a face list (\c Regular, \c Bold, * \c Italic ) and \e inIndex is \c 2, then the command returns \c Italic if * you query \b GLC_FACE_LIST. * * Every GLC state variable that is a list has an associated integer element * count whose value is the number of elements in the list. * * Below are the string list attributes associated with each GLC master and * font and their element count attributes : *
* * * * * * * * * * * * * * * *
Master/font string list attributes
Name Enumerant Element count attribute
GLC_CHAR_LIST0x0050GLC_CHAR_COUNT
GLC_FACE_LIST0x0051GLC_FACE_COUNT
*
* \n The command raises \b GLC_PARAMETER_ERROR if \e inIndex is less than * zero or is greater than or equal to the value of the list element count * attribute. * \param inFont The font ID * \param inAttrib The string list from which a string is requested * \param inIndex The offset from the first element of the list associated * with \e inAttrib * \return A string attribute of \e inFont identified by \e inAttrib * \sa glcGetMasterListc() * \sa glcGetFontc() * \sa glcGetFonti() */ const GLCchar* APIENTRY glcGetFontListc(GLint inFont, GLCenum inAttrib, GLint inIndex) { __GLCfont* font = NULL; __GLCcontext* ctx = NULL; const GLCchar8* name = NULL; GLC_INIT_THREAD(); /* Check if the font parameters are valid */ font = __glcVerifyFontParameters(inFont); if (!font) return NULL; ctx = GLC_GET_CURRENT_CONTEXT(); switch(inAttrib) { case GLC_FACE_LIST: return glcGetMasterListc(font->parentMasterID, inAttrib, inIndex); case GLC_CHAR_LIST: name = __glcCharMapGetCharNameByIndex(font->charMap, inIndex); if (!name) return NULL; return __glcConvertFromUtf8ToBuffer(ctx, name, ctx->stringState.stringType); default: __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } } /** \ingroup font * This command returns the string name of the character that the font * identified by \e inFont maps \e inCode to. * * To change the map, that is, associate a different name string with the * integer ID of a font, use glcFontMap(). * * If \e inCode cannot be mapped in the font, the command returns \b GLC_NONE. * * The command raises \b GLC_PARAMETER_ERROR if \e inFont is not an element of * the list \b GLC_FONT_LIST * \note Changing the map of a font is possible but changing the map of a * master is not. * \param inFont The integer ID of the font from which to select the character * \param inCode The integer ID of the character in the font map * \return The string name of the character that the font \e inFont maps * \e inCode to. * \sa glcGetMasterMap() * \sa glcFontMap() */ const GLCchar* APIENTRY glcGetFontMap(GLint inFont, GLint inCode) { __GLCfont *font = NULL; __GLCcontext *ctx = NULL; GLint code = 0; const GLCchar8* name = NULL; GLC_INIT_THREAD(); /* Check if the font parameters are valid */ font = __glcVerifyFontParameters(inFont); if (!font) return NULL; ctx = GLC_GET_CURRENT_CONTEXT(); /* Get the character code converted to the UCS-4 format */ code = __glcConvertGLintToUcs4(ctx, inCode); if (code < 0) return NULL; name = __glcCharMapGetCharName(font->charMap, code); if (!name) return NULL; return __glcConvertFromUtf8ToBuffer(ctx, name, ctx->stringState.stringType); } /** \ingroup font * This command returns a string attribute of the font identified by * \e inFont. The table below lists the string attributes that are * associated with each GLC master and font. *
* * * * * * * * * * * * * * * * * * * * *
Master/font string attributes
Name Enumerant
GLC_FAMILY 0x0060
GLC_MASTER_FORMAT 0x0061
GLC_VENDOR 0x0062
GLC_VERSION 0x0063
GLC_FULL_NAME_SGI 0x8002
*
* \param inFont The font for which the attribute is requested * \param inAttrib The requested string attribute * \return The string attribute \e inAttrib of the font \e inFont * \sa glcGetMasterc() * \sa glcGetFonti() * \sa glcGetFontListc() */ const GLCchar* APIENTRY glcGetFontc(GLint inFont, GLCenum inAttrib) { __GLCfont *font = NULL; GLC_INIT_THREAD(); /* Check if the font parameters are valid */ font = __glcVerifyFontParameters(inFont); if (font) /* Those are master attributes so we call the equivalent master function */ return glcGetMasterc(font->parentMasterID, inAttrib); else return GLC_NONE; } /** \ingroup font * This command returns an integer attribute of the font identified by * \e inFont. The attribute is identified by \e inAttrib. The table below * lists the integer attributes that are associated with each GLC master * and font. *
* * * * * * * * * * * * * * * * * * * * *
Master/font integer attributes
Name Enumerant
GLC_CHAR_COUNT 0x0070
GLC_FACE_COUNT 0x0071
GLC_IS_FIXED_PITCH 0x0072
GLC_MAX_MAPPED_CODE 0x0073
GLC_MIN_MAPPED_CODE 0x0074
*
* \param inFont The font for which the attribute is requested. * \param inAttrib The requested integer attribute * \return The value of the specified integer attribute * \sa glcGetMasteri() * \sa glcGetFontc() * \sa glcGetFontListc() */ GLint APIENTRY glcGetFonti(GLint inFont, GLCenum inAttrib) { __GLCfont *font = NULL; GLC_INIT_THREAD(); /* Check if the font parameters are valid */ font = __glcVerifyFontParameters(inFont); if (!font) return 0; switch(inAttrib) { case GLC_CHAR_COUNT: return __glcCharMapGetCount(font->charMap); case GLC_IS_FIXED_PITCH: return __glcFaceDescIsFixedPitch(font->faceDesc); case GLC_MAX_MAPPED_CODE: return __glcCharMapGetMaxMappedCode(font->charMap); case GLC_MIN_MAPPED_CODE: return __glcCharMapGetMinMappedCode(font->charMap); case GLC_FACE_COUNT: return glcGetMasteri(font->parentMasterID, inAttrib); default: __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } } /** \ingroup font * This command returns \b GL_TRUE if \e inFont is the ID of a font. If * \e inFont is not the ID of a font, the command does not raise an error. * \param inFont The element to be tested * \return \b GL_TRUE if \e inFont is the ID of a font, \b GL_FALSE * otherwise. * \sa glcGenFontID() * \sa glcNewFontFromFamily() * \sa glcNewFontFromMaster() */ GLboolean APIENTRY glcIsFont(GLint inFont) { __GLCcontext *ctx = NULL; FT_ListNode node = NULL; GLC_INIT_THREAD(); /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return GL_FALSE; } /* Verify if the font identifier exists */ for (node = ctx->fontList.head; node; node = node->next) { __GLCfont *font = (__GLCfont*)node->data; if (font->id == inFont) return GL_TRUE; } /* If the ID corresponds to an empty font reserved by glcGenFontID() then * return GL_TRUE in order to identify the ID as reserved. */ for (node = ctx->genFontList.head; node; node = node->next) { __GLCfont* font = (__GLCfont*)node->data; if (font->id == inFont) return GL_TRUE; } return GL_FALSE; } /* This internal function deletes the font identified by inFont (if any) and * creates a new font based on the pattern 'inPattern'. The resulting font is * added to the list GLC_FONT_LIST. */ __GLCfont* __glcNewFontFromMaster(GLint inFontID, __GLCmaster* inMaster, __GLCcontext *inContext, GLint inCode) { FT_ListNode node = NULL; __GLCfont* font = NULL; /* Look for the font which ID is inFont in the GLC_FONT_LIST */ for (node = inContext->fontList.head; node; node = node->next) { font = (__GLCfont*)node->data; if (font->id == inFontID) { FT_List_Remove(&inContext->fontList, node); break; } } if (!node) { /* Look if the ID is in the empty fonts generated by glcGenFontID() */ for (node = inContext->genFontList.head; node; node = node->next) { font = (__GLCfont*)node->data; if (font->id == inFontID) { FT_List_Remove(&inContext->genFontList, node); break; } } } if (node) __glcDeleteFont(font, inContext); else { /* Create a new entry for GLC_FONT_LIST */ node = (FT_ListNode)__glcMalloc(sizeof(FT_ListNodeRec)); if (!node) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } } /* Create a new font and add it to the list GLC_FONT_LIST */ font = __glcFontCreate(inFontID, inMaster, inContext, inCode); if (!font) { __glcFree(node); return NULL; } node->data = font; FT_List_Add(&inContext->fontList, node); return font; } /** \ingroup font * This command creates a new font from the master identified by \e inMaster. * The ID of the new font is \e inFont. If the command succeeds, it returns * \e inFont. If \e inFont is the ID of a font at the beginning of command * execution, the command executes the command \c glcDeleteFont(inFont) before * creating the new font. * \param inFont The ID of the new font * \param inMaster The master from which to create the new font * \return The ID of the new font if the command succceeds, \c 0 otherwise. * \sa glcGetListi() with argument \b GLC_FONT_LIST * \sa glcGeti() with argument \b GLC_FONT_COUNT * \sa glcIsFont() * \sa glcGenFontID() * \sa glcNewFontFromFamily() * \sa glcDeleteFont() */ GLint APIENTRY glcNewFontFromMaster(GLint inFont, GLint inMaster) { __GLCcontext *ctx = NULL; __GLCmaster *master = NULL; __GLCfont *font = NULL; GLC_INIT_THREAD(); /* Check if inFont is in legal bounds */ if (inFont < 1) { __glcRaiseError(GLC_PARAMETER_ERROR); return 0; } /* Verify that the thread has a current context and that the master * identified by 'inMaster' exists. */ master = __glcVerifyMasterParameters(inMaster); if (!master) return 0; ctx = GLC_GET_CURRENT_CONTEXT(); /* Create and return the new font */ font = __glcNewFontFromMaster(inFont, master, ctx, 0); __glcMasterDestroy(master); return font->id; } /** \ingroup font * This command performs a sequential search beginning with the first element * of the GLC master list, looking for the first master whose string * attribute \b GLC_FAMILY equals \e inFamily. If there is no such master the * command returns zero. Otherwise, the command creates a new font from the * master. The ID of the new font is \e inFont. * * If the command succeeds, it returns \e inFont. If \e inFont is the ID of a * font at the beginning of command execution, the command executes the * command \c glcDeleteFont(inFont) before creating the new font. * \param inFont The ID of the new font. * \param inFamily The font family, that is, the string that \b GLC_FAMILY * attribute has to match. * \return The ID of the new font if the command succeeds, \c 0 otherwise. * \sa glcGetListi() with argument \b GLC_FONT_LIST * \sa glcGeti() with argument \b GLC_FONT_COUNT * \sa glcIsFont() * \sa glcGenFontID() * \sa glcNewFontFromMaster() * \sa glcDeleteFont() */ GLint APIENTRY glcNewFontFromFamily(GLint inFont, const GLCchar* inFamily) { __GLCcontext *ctx = NULL; GLCchar8* UinFamily = NULL; __GLCmaster* master = NULL; __GLCfont *font = NULL; GLC_INIT_THREAD(); assert(inFamily); /* Check if inFont is in legal bounds */ if (inFont < 1) { __glcRaiseError(GLC_PARAMETER_ERROR); return 0; } /* Verify if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return 0; } /* Convert the family name in UTF-8 encoding */ UinFamily = __glcConvertToUtf8(inFamily, ctx->stringState.stringType); if (!UinFamily) return 0; master = __glcMasterFromFamily(ctx, UinFamily); __glcFree(UinFamily); if (!master) return 0; /* Create and return the new font */ font = __glcNewFontFromMaster(inFont, master, ctx, 0); __glcMasterDestroy(master); return font->id; } quesoglc-0.7.2/src/glew.c0000644000175000017500000021001711021603751012151 00000000000000/* ** The OpenGL Extension Wrangler Library ** Copyright (C) 2002-2008, Milan Ikits ** Copyright (C) 2002-2008, Marcelo E. Magallon ** Copyright (C) 2002, Lev Povalahev ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are met: ** ** * Redistributions of source code must retain the above copyright notice, ** this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright notice, ** this list of conditions and the following disclaimer in the documentation ** and/or other materials provided with the distribution. ** * The name of the author may be used to endorse or promote products ** derived from this software without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF ** THE POSSIBILITY OF SUCH DAMAGE. */ #include #if defined(_WIN32) # include #elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) # include #endif /* * Define glewGetContext and related helper macros. */ #ifdef GLEW_MX # define glewGetContext() ctx # ifdef _WIN32 # define GLEW_CONTEXT_ARG_DEF_INIT GLEWContext* ctx # define GLEW_CONTEXT_ARG_VAR_INIT ctx # define wglewGetContext() ctx # define WGLEW_CONTEXT_ARG_DEF_INIT WGLEWContext* ctx # define WGLEW_CONTEXT_ARG_DEF_LIST WGLEWContext* ctx # else /* _WIN32 */ # define GLEW_CONTEXT_ARG_DEF_INIT void # define GLEW_CONTEXT_ARG_VAR_INIT # define glxewGetContext() ctx # define GLXEW_CONTEXT_ARG_DEF_INIT void # define GLXEW_CONTEXT_ARG_DEF_LIST GLXEWContext* ctx # endif /* _WIN32 */ # define GLEW_CONTEXT_ARG_DEF_LIST GLEWContext* ctx #else /* GLEW_MX */ # define GLEW_CONTEXT_ARG_DEF_INIT void # define GLEW_CONTEXT_ARG_VAR_INIT # define GLEW_CONTEXT_ARG_DEF_LIST void # define WGLEW_CONTEXT_ARG_DEF_INIT void # define WGLEW_CONTEXT_ARG_DEF_LIST void # define GLXEW_CONTEXT_ARG_DEF_INIT void # define GLXEW_CONTEXT_ARG_DEF_LIST void #endif /* GLEW_MX */ #if defined(__APPLE__) #include #include #include void* NSGLGetProcAddress (const GLubyte *name) { static const struct mach_header* image = NULL; NSSymbol symbol; char* symbolName; if (NULL == image) { image = NSAddImage("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", NSADDIMAGE_OPTION_RETURN_ON_ERROR); } /* prepend a '_' for the Unix C symbol mangling convention */ symbolName = malloc(strlen((const char*)name) + 2); strcpy(symbolName+1, (const char*)name); symbolName[0] = '_'; symbol = NULL; /* if (NSIsSymbolNameDefined(symbolName)) symbol = NSLookupAndBindSymbol(symbolName); */ symbol = image ? NSLookupSymbolInImage(image, symbolName, NSLOOKUPSYMBOLINIMAGE_OPTION_BIND | NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR) : NULL; free(symbolName); return symbol ? NSAddressOfSymbol(symbol) : NULL; } #endif /* __APPLE__ */ #if defined(__sgi) || defined (__sun) #include #include #include void* dlGetProcAddress (const GLubyte* name) { static void* h = NULL; static void* gpa; if (h == NULL) { if ((h = dlopen(NULL, RTLD_LAZY | RTLD_LOCAL)) == NULL) return NULL; gpa = dlsym(h, "glXGetProcAddress"); } if (gpa != NULL) return ((void*(*)(const GLubyte*))gpa)(name); else return dlsym(h, (const char*)name); } #endif /* __sgi || __sun */ /* * Define glewGetProcAddress. */ #if defined(_WIN32) # define glewGetProcAddress(name) wglGetProcAddress((LPCSTR)name) #else # if defined(__APPLE__) # define glewGetProcAddress(name) NSGLGetProcAddress(name) # else # if defined(__sgi) || defined(__sun) # define glewGetProcAddress(name) dlGetProcAddress(name) # else /* __linux */ # define glewGetProcAddress(name) (*glXGetProcAddressARB)(name) # endif # endif #endif /* * Define GLboolean const cast. */ #define CONST_CAST(x) (*(GLboolean*)&x) /* * GLEW, just like OpenGL or GLU, does not rely on the standard C library. * These functions implement the functionality required in this file. */ static GLuint _glewStrLen (const GLubyte* s) { GLuint i=0; if (s == NULL) return 0; while (s[i] != '\0') i++; return i; } static GLuint _glewStrCLen (const GLubyte* s, GLubyte c) { GLuint i=0; if (s == NULL) return 0; while (s[i] != '\0' && s[i] != c) i++; return s[i] == c ? i : 0; } static GLboolean _glewStrSame (const GLubyte* a, const GLubyte* b, GLuint n) { GLuint i=0; if(a == NULL || b == NULL) return (a == NULL && b == NULL && n == 0) ? GL_TRUE : GL_FALSE; while (i < n && a[i] != '\0' && b[i] != '\0' && a[i] == b[i]) i++; return i == n ? GL_TRUE : GL_FALSE; } static GLboolean _glewStrSame1 (GLubyte** a, GLuint* na, const GLubyte* b, GLuint nb) { while (*na > 0 && (**a == ' ' || **a == '\n' || **a == '\r' || **a == '\t')) { (*a)++; (*na)--; } if(*na >= nb) { GLuint i=0; while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; if(i == nb) { *a = *a + nb; *na = *na - nb; return GL_TRUE; } } return GL_FALSE; } static GLboolean _glewStrSame2 (GLubyte** a, GLuint* na, const GLubyte* b, GLuint nb) { if(*na >= nb) { GLuint i=0; while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; if(i == nb) { *a = *a + nb; *na = *na - nb; return GL_TRUE; } } return GL_FALSE; } static GLboolean _glewStrSame3 (GLubyte** a, GLuint* na, const GLubyte* b, GLuint nb) { if(*na >= nb) { GLuint i=0; while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++; if (i == nb && (*na == nb || (*a)[i] == ' ' || (*a)[i] == '\n' || (*a)[i] == '\r' || (*a)[i] == '\t')) { *a = *a + nb; *na = *na - nb; return GL_TRUE; } } return GL_FALSE; } #if !defined(_WIN32) || !defined(GLEW_MX) PFNGLCOPYTEXSUBIMAGE3DPROC __glewCopyTexSubImage3D = NULL; PFNGLDRAWRANGEELEMENTSPROC __glewDrawRangeElements = NULL; PFNGLTEXIMAGE3DPROC __glewTexImage3D = NULL; PFNGLTEXSUBIMAGE3DPROC __glewTexSubImage3D = NULL; PFNGLACTIVETEXTUREPROC __glewActiveTexture = NULL; PFNGLCLIENTACTIVETEXTUREPROC __glewClientActiveTexture = NULL; PFNGLCOMPRESSEDTEXIMAGE1DPROC __glewCompressedTexImage1D = NULL; PFNGLCOMPRESSEDTEXIMAGE2DPROC __glewCompressedTexImage2D = NULL; PFNGLCOMPRESSEDTEXIMAGE3DPROC __glewCompressedTexImage3D = NULL; PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC __glewCompressedTexSubImage1D = NULL; PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC __glewCompressedTexSubImage2D = NULL; PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC __glewCompressedTexSubImage3D = NULL; PFNGLGETCOMPRESSEDTEXIMAGEPROC __glewGetCompressedTexImage = NULL; PFNGLLOADTRANSPOSEMATRIXDPROC __glewLoadTransposeMatrixd = NULL; PFNGLLOADTRANSPOSEMATRIXFPROC __glewLoadTransposeMatrixf = NULL; PFNGLMULTTRANSPOSEMATRIXDPROC __glewMultTransposeMatrixd = NULL; PFNGLMULTTRANSPOSEMATRIXFPROC __glewMultTransposeMatrixf = NULL; PFNGLMULTITEXCOORD1DPROC __glewMultiTexCoord1d = NULL; PFNGLMULTITEXCOORD1DVPROC __glewMultiTexCoord1dv = NULL; PFNGLMULTITEXCOORD1FPROC __glewMultiTexCoord1f = NULL; PFNGLMULTITEXCOORD1FVPROC __glewMultiTexCoord1fv = NULL; PFNGLMULTITEXCOORD1IPROC __glewMultiTexCoord1i = NULL; PFNGLMULTITEXCOORD1IVPROC __glewMultiTexCoord1iv = NULL; PFNGLMULTITEXCOORD1SPROC __glewMultiTexCoord1s = NULL; PFNGLMULTITEXCOORD1SVPROC __glewMultiTexCoord1sv = NULL; PFNGLMULTITEXCOORD2DPROC __glewMultiTexCoord2d = NULL; PFNGLMULTITEXCOORD2DVPROC __glewMultiTexCoord2dv = NULL; PFNGLMULTITEXCOORD2FPROC __glewMultiTexCoord2f = NULL; PFNGLMULTITEXCOORD2FVPROC __glewMultiTexCoord2fv = NULL; PFNGLMULTITEXCOORD2IPROC __glewMultiTexCoord2i = NULL; PFNGLMULTITEXCOORD2IVPROC __glewMultiTexCoord2iv = NULL; PFNGLMULTITEXCOORD2SPROC __glewMultiTexCoord2s = NULL; PFNGLMULTITEXCOORD2SVPROC __glewMultiTexCoord2sv = NULL; PFNGLMULTITEXCOORD3DPROC __glewMultiTexCoord3d = NULL; PFNGLMULTITEXCOORD3DVPROC __glewMultiTexCoord3dv = NULL; PFNGLMULTITEXCOORD3FPROC __glewMultiTexCoord3f = NULL; PFNGLMULTITEXCOORD3FVPROC __glewMultiTexCoord3fv = NULL; PFNGLMULTITEXCOORD3IPROC __glewMultiTexCoord3i = NULL; PFNGLMULTITEXCOORD3IVPROC __glewMultiTexCoord3iv = NULL; PFNGLMULTITEXCOORD3SPROC __glewMultiTexCoord3s = NULL; PFNGLMULTITEXCOORD3SVPROC __glewMultiTexCoord3sv = NULL; PFNGLMULTITEXCOORD4DPROC __glewMultiTexCoord4d = NULL; PFNGLMULTITEXCOORD4DVPROC __glewMultiTexCoord4dv = NULL; PFNGLMULTITEXCOORD4FPROC __glewMultiTexCoord4f = NULL; PFNGLMULTITEXCOORD4FVPROC __glewMultiTexCoord4fv = NULL; PFNGLMULTITEXCOORD4IPROC __glewMultiTexCoord4i = NULL; PFNGLMULTITEXCOORD4IVPROC __glewMultiTexCoord4iv = NULL; PFNGLMULTITEXCOORD4SPROC __glewMultiTexCoord4s = NULL; PFNGLMULTITEXCOORD4SVPROC __glewMultiTexCoord4sv = NULL; PFNGLSAMPLECOVERAGEPROC __glewSampleCoverage = NULL; PFNGLBLENDCOLORPROC __glewBlendColor = NULL; PFNGLBLENDEQUATIONPROC __glewBlendEquation = NULL; PFNGLBLENDFUNCSEPARATEPROC __glewBlendFuncSeparate = NULL; PFNGLFOGCOORDPOINTERPROC __glewFogCoordPointer = NULL; PFNGLFOGCOORDDPROC __glewFogCoordd = NULL; PFNGLFOGCOORDDVPROC __glewFogCoorddv = NULL; PFNGLFOGCOORDFPROC __glewFogCoordf = NULL; PFNGLFOGCOORDFVPROC __glewFogCoordfv = NULL; PFNGLMULTIDRAWARRAYSPROC __glewMultiDrawArrays = NULL; PFNGLMULTIDRAWELEMENTSPROC __glewMultiDrawElements = NULL; PFNGLPOINTPARAMETERFPROC __glewPointParameterf = NULL; PFNGLPOINTPARAMETERFVPROC __glewPointParameterfv = NULL; PFNGLPOINTPARAMETERIPROC __glewPointParameteri = NULL; PFNGLPOINTPARAMETERIVPROC __glewPointParameteriv = NULL; PFNGLSECONDARYCOLOR3BPROC __glewSecondaryColor3b = NULL; PFNGLSECONDARYCOLOR3BVPROC __glewSecondaryColor3bv = NULL; PFNGLSECONDARYCOLOR3DPROC __glewSecondaryColor3d = NULL; PFNGLSECONDARYCOLOR3DVPROC __glewSecondaryColor3dv = NULL; PFNGLSECONDARYCOLOR3FPROC __glewSecondaryColor3f = NULL; PFNGLSECONDARYCOLOR3FVPROC __glewSecondaryColor3fv = NULL; PFNGLSECONDARYCOLOR3IPROC __glewSecondaryColor3i = NULL; PFNGLSECONDARYCOLOR3IVPROC __glewSecondaryColor3iv = NULL; PFNGLSECONDARYCOLOR3SPROC __glewSecondaryColor3s = NULL; PFNGLSECONDARYCOLOR3SVPROC __glewSecondaryColor3sv = NULL; PFNGLSECONDARYCOLOR3UBPROC __glewSecondaryColor3ub = NULL; PFNGLSECONDARYCOLOR3UBVPROC __glewSecondaryColor3ubv = NULL; PFNGLSECONDARYCOLOR3UIPROC __glewSecondaryColor3ui = NULL; PFNGLSECONDARYCOLOR3UIVPROC __glewSecondaryColor3uiv = NULL; PFNGLSECONDARYCOLOR3USPROC __glewSecondaryColor3us = NULL; PFNGLSECONDARYCOLOR3USVPROC __glewSecondaryColor3usv = NULL; PFNGLSECONDARYCOLORPOINTERPROC __glewSecondaryColorPointer = NULL; PFNGLWINDOWPOS2DPROC __glewWindowPos2d = NULL; PFNGLWINDOWPOS2DVPROC __glewWindowPos2dv = NULL; PFNGLWINDOWPOS2FPROC __glewWindowPos2f = NULL; PFNGLWINDOWPOS2FVPROC __glewWindowPos2fv = NULL; PFNGLWINDOWPOS2IPROC __glewWindowPos2i = NULL; PFNGLWINDOWPOS2IVPROC __glewWindowPos2iv = NULL; PFNGLWINDOWPOS2SPROC __glewWindowPos2s = NULL; PFNGLWINDOWPOS2SVPROC __glewWindowPos2sv = NULL; PFNGLWINDOWPOS3DPROC __glewWindowPos3d = NULL; PFNGLWINDOWPOS3DVPROC __glewWindowPos3dv = NULL; PFNGLWINDOWPOS3FPROC __glewWindowPos3f = NULL; PFNGLWINDOWPOS3FVPROC __glewWindowPos3fv = NULL; PFNGLWINDOWPOS3IPROC __glewWindowPos3i = NULL; PFNGLWINDOWPOS3IVPROC __glewWindowPos3iv = NULL; PFNGLWINDOWPOS3SPROC __glewWindowPos3s = NULL; PFNGLWINDOWPOS3SVPROC __glewWindowPos3sv = NULL; PFNGLBEGINQUERYPROC __glewBeginQuery = NULL; PFNGLBINDBUFFERPROC __glewBindBuffer = NULL; PFNGLBUFFERDATAPROC __glewBufferData = NULL; PFNGLBUFFERSUBDATAPROC __glewBufferSubData = NULL; PFNGLDELETEBUFFERSPROC __glewDeleteBuffers = NULL; PFNGLDELETEQUERIESPROC __glewDeleteQueries = NULL; PFNGLENDQUERYPROC __glewEndQuery = NULL; PFNGLGENBUFFERSPROC __glewGenBuffers = NULL; PFNGLGENQUERIESPROC __glewGenQueries = NULL; PFNGLGETBUFFERPARAMETERIVPROC __glewGetBufferParameteriv = NULL; PFNGLGETBUFFERPOINTERVPROC __glewGetBufferPointerv = NULL; PFNGLGETBUFFERSUBDATAPROC __glewGetBufferSubData = NULL; PFNGLGETQUERYOBJECTIVPROC __glewGetQueryObjectiv = NULL; PFNGLGETQUERYOBJECTUIVPROC __glewGetQueryObjectuiv = NULL; PFNGLGETQUERYIVPROC __glewGetQueryiv = NULL; PFNGLISBUFFERPROC __glewIsBuffer = NULL; PFNGLISQUERYPROC __glewIsQuery = NULL; PFNGLMAPBUFFERPROC __glewMapBuffer = NULL; PFNGLUNMAPBUFFERPROC __glewUnmapBuffer = NULL; PFNGLATTACHSHADERPROC __glewAttachShader = NULL; PFNGLBINDATTRIBLOCATIONPROC __glewBindAttribLocation = NULL; PFNGLBLENDEQUATIONSEPARATEPROC __glewBlendEquationSeparate = NULL; PFNGLCOMPILESHADERPROC __glewCompileShader = NULL; PFNGLCREATEPROGRAMPROC __glewCreateProgram = NULL; PFNGLCREATESHADERPROC __glewCreateShader = NULL; PFNGLDELETEPROGRAMPROC __glewDeleteProgram = NULL; PFNGLDELETESHADERPROC __glewDeleteShader = NULL; PFNGLDETACHSHADERPROC __glewDetachShader = NULL; PFNGLDISABLEVERTEXATTRIBARRAYPROC __glewDisableVertexAttribArray = NULL; PFNGLDRAWBUFFERSPROC __glewDrawBuffers = NULL; PFNGLENABLEVERTEXATTRIBARRAYPROC __glewEnableVertexAttribArray = NULL; PFNGLGETACTIVEATTRIBPROC __glewGetActiveAttrib = NULL; PFNGLGETACTIVEUNIFORMPROC __glewGetActiveUniform = NULL; PFNGLGETATTACHEDSHADERSPROC __glewGetAttachedShaders = NULL; PFNGLGETATTRIBLOCATIONPROC __glewGetAttribLocation = NULL; PFNGLGETPROGRAMINFOLOGPROC __glewGetProgramInfoLog = NULL; PFNGLGETPROGRAMIVPROC __glewGetProgramiv = NULL; PFNGLGETSHADERINFOLOGPROC __glewGetShaderInfoLog = NULL; PFNGLGETSHADERSOURCEPROC __glewGetShaderSource = NULL; PFNGLGETSHADERIVPROC __glewGetShaderiv = NULL; PFNGLGETUNIFORMLOCATIONPROC __glewGetUniformLocation = NULL; PFNGLGETUNIFORMFVPROC __glewGetUniformfv = NULL; PFNGLGETUNIFORMIVPROC __glewGetUniformiv = NULL; PFNGLGETVERTEXATTRIBPOINTERVPROC __glewGetVertexAttribPointerv = NULL; PFNGLGETVERTEXATTRIBDVPROC __glewGetVertexAttribdv = NULL; PFNGLGETVERTEXATTRIBFVPROC __glewGetVertexAttribfv = NULL; PFNGLGETVERTEXATTRIBIVPROC __glewGetVertexAttribiv = NULL; PFNGLISPROGRAMPROC __glewIsProgram = NULL; PFNGLISSHADERPROC __glewIsShader = NULL; PFNGLLINKPROGRAMPROC __glewLinkProgram = NULL; PFNGLSHADERSOURCEPROC __glewShaderSource = NULL; PFNGLSTENCILFUNCSEPARATEPROC __glewStencilFuncSeparate = NULL; PFNGLSTENCILMASKSEPARATEPROC __glewStencilMaskSeparate = NULL; PFNGLSTENCILOPSEPARATEPROC __glewStencilOpSeparate = NULL; PFNGLUNIFORM1FPROC __glewUniform1f = NULL; PFNGLUNIFORM1FVPROC __glewUniform1fv = NULL; PFNGLUNIFORM1IPROC __glewUniform1i = NULL; PFNGLUNIFORM1IVPROC __glewUniform1iv = NULL; PFNGLUNIFORM2FPROC __glewUniform2f = NULL; PFNGLUNIFORM2FVPROC __glewUniform2fv = NULL; PFNGLUNIFORM2IPROC __glewUniform2i = NULL; PFNGLUNIFORM2IVPROC __glewUniform2iv = NULL; PFNGLUNIFORM3FPROC __glewUniform3f = NULL; PFNGLUNIFORM3FVPROC __glewUniform3fv = NULL; PFNGLUNIFORM3IPROC __glewUniform3i = NULL; PFNGLUNIFORM3IVPROC __glewUniform3iv = NULL; PFNGLUNIFORM4FPROC __glewUniform4f = NULL; PFNGLUNIFORM4FVPROC __glewUniform4fv = NULL; PFNGLUNIFORM4IPROC __glewUniform4i = NULL; PFNGLUNIFORM4IVPROC __glewUniform4iv = NULL; PFNGLUNIFORMMATRIX2FVPROC __glewUniformMatrix2fv = NULL; PFNGLUNIFORMMATRIX3FVPROC __glewUniformMatrix3fv = NULL; PFNGLUNIFORMMATRIX4FVPROC __glewUniformMatrix4fv = NULL; PFNGLUSEPROGRAMPROC __glewUseProgram = NULL; PFNGLVALIDATEPROGRAMPROC __glewValidateProgram = NULL; PFNGLVERTEXATTRIB1DPROC __glewVertexAttrib1d = NULL; PFNGLVERTEXATTRIB1DVPROC __glewVertexAttrib1dv = NULL; PFNGLVERTEXATTRIB1FPROC __glewVertexAttrib1f = NULL; PFNGLVERTEXATTRIB1FVPROC __glewVertexAttrib1fv = NULL; PFNGLVERTEXATTRIB1SPROC __glewVertexAttrib1s = NULL; PFNGLVERTEXATTRIB1SVPROC __glewVertexAttrib1sv = NULL; PFNGLVERTEXATTRIB2DPROC __glewVertexAttrib2d = NULL; PFNGLVERTEXATTRIB2DVPROC __glewVertexAttrib2dv = NULL; PFNGLVERTEXATTRIB2FPROC __glewVertexAttrib2f = NULL; PFNGLVERTEXATTRIB2FVPROC __glewVertexAttrib2fv = NULL; PFNGLVERTEXATTRIB2SPROC __glewVertexAttrib2s = NULL; PFNGLVERTEXATTRIB2SVPROC __glewVertexAttrib2sv = NULL; PFNGLVERTEXATTRIB3DPROC __glewVertexAttrib3d = NULL; PFNGLVERTEXATTRIB3DVPROC __glewVertexAttrib3dv = NULL; PFNGLVERTEXATTRIB3FPROC __glewVertexAttrib3f = NULL; PFNGLVERTEXATTRIB3FVPROC __glewVertexAttrib3fv = NULL; PFNGLVERTEXATTRIB3SPROC __glewVertexAttrib3s = NULL; PFNGLVERTEXATTRIB3SVPROC __glewVertexAttrib3sv = NULL; PFNGLVERTEXATTRIB4NBVPROC __glewVertexAttrib4Nbv = NULL; PFNGLVERTEXATTRIB4NIVPROC __glewVertexAttrib4Niv = NULL; PFNGLVERTEXATTRIB4NSVPROC __glewVertexAttrib4Nsv = NULL; PFNGLVERTEXATTRIB4NUBPROC __glewVertexAttrib4Nub = NULL; PFNGLVERTEXATTRIB4NUBVPROC __glewVertexAttrib4Nubv = NULL; PFNGLVERTEXATTRIB4NUIVPROC __glewVertexAttrib4Nuiv = NULL; PFNGLVERTEXATTRIB4NUSVPROC __glewVertexAttrib4Nusv = NULL; PFNGLVERTEXATTRIB4BVPROC __glewVertexAttrib4bv = NULL; PFNGLVERTEXATTRIB4DPROC __glewVertexAttrib4d = NULL; PFNGLVERTEXATTRIB4DVPROC __glewVertexAttrib4dv = NULL; PFNGLVERTEXATTRIB4FPROC __glewVertexAttrib4f = NULL; PFNGLVERTEXATTRIB4FVPROC __glewVertexAttrib4fv = NULL; PFNGLVERTEXATTRIB4IVPROC __glewVertexAttrib4iv = NULL; PFNGLVERTEXATTRIB4SPROC __glewVertexAttrib4s = NULL; PFNGLVERTEXATTRIB4SVPROC __glewVertexAttrib4sv = NULL; PFNGLVERTEXATTRIB4UBVPROC __glewVertexAttrib4ubv = NULL; PFNGLVERTEXATTRIB4UIVPROC __glewVertexAttrib4uiv = NULL; PFNGLVERTEXATTRIB4USVPROC __glewVertexAttrib4usv = NULL; PFNGLVERTEXATTRIBPOINTERPROC __glewVertexAttribPointer = NULL; PFNGLUNIFORMMATRIX2X3FVPROC __glewUniformMatrix2x3fv = NULL; PFNGLUNIFORMMATRIX2X4FVPROC __glewUniformMatrix2x4fv = NULL; PFNGLUNIFORMMATRIX3X2FVPROC __glewUniformMatrix3x2fv = NULL; PFNGLUNIFORMMATRIX3X4FVPROC __glewUniformMatrix3x4fv = NULL; PFNGLUNIFORMMATRIX4X2FVPROC __glewUniformMatrix4x2fv = NULL; PFNGLUNIFORMMATRIX4X3FVPROC __glewUniformMatrix4x3fv = NULL; PFNGLBINDBUFFERARBPROC __glewBindBufferARB = NULL; PFNGLBUFFERDATAARBPROC __glewBufferDataARB = NULL; PFNGLBUFFERSUBDATAARBPROC __glewBufferSubDataARB = NULL; PFNGLDELETEBUFFERSARBPROC __glewDeleteBuffersARB = NULL; PFNGLGENBUFFERSARBPROC __glewGenBuffersARB = NULL; PFNGLGETBUFFERPARAMETERIVARBPROC __glewGetBufferParameterivARB = NULL; PFNGLGETBUFFERPOINTERVARBPROC __glewGetBufferPointervARB = NULL; PFNGLGETBUFFERSUBDATAARBPROC __glewGetBufferSubDataARB = NULL; PFNGLISBUFFERARBPROC __glewIsBufferARB = NULL; PFNGLMAPBUFFERARBPROC __glewMapBufferARB = NULL; PFNGLUNMAPBUFFERARBPROC __glewUnmapBufferARB = NULL; #endif /* !WIN32 || !GLEW_MX */ #if !defined(GLEW_MX) GLboolean __GLEW_VERSION_1_1 = GL_FALSE; GLboolean __GLEW_VERSION_1_2 = GL_FALSE; GLboolean __GLEW_VERSION_1_3 = GL_FALSE; GLboolean __GLEW_VERSION_1_4 = GL_FALSE; GLboolean __GLEW_VERSION_1_5 = GL_FALSE; GLboolean __GLEW_VERSION_2_0 = GL_FALSE; GLboolean __GLEW_VERSION_2_1 = GL_FALSE; GLboolean __GLEW_ARB_pixel_buffer_object = GL_FALSE; GLboolean __GLEW_ARB_vertex_buffer_object = GL_FALSE; GLboolean __GLEW_SGIS_texture_lod = GL_FALSE; #endif /* !GLEW_MX */ #ifdef GL_VERSION_1_2 static GLboolean _glewInit_GL_VERSION_1_2 (GLEW_CONTEXT_ARG_DEF_INIT) { GLboolean r = GL_FALSE; r = ((glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC)glewGetProcAddress((const GLubyte*)"glCopyTexSubImage3D")) == NULL) || r; r = ((glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC)glewGetProcAddress((const GLubyte*)"glDrawRangeElements")) == NULL) || r; r = ((glTexImage3D = (PFNGLTEXIMAGE3DPROC)glewGetProcAddress((const GLubyte*)"glTexImage3D")) == NULL) || r; r = ((glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC)glewGetProcAddress((const GLubyte*)"glTexSubImage3D")) == NULL) || r; return r; } #endif /* GL_VERSION_1_2 */ #ifdef GL_VERSION_1_3 static GLboolean _glewInit_GL_VERSION_1_3 (GLEW_CONTEXT_ARG_DEF_INIT) { GLboolean r = GL_FALSE; r = ((glActiveTexture = (PFNGLACTIVETEXTUREPROC)glewGetProcAddress((const GLubyte*)"glActiveTexture")) == NULL) || r; r = ((glClientActiveTexture = (PFNGLCLIENTACTIVETEXTUREPROC)glewGetProcAddress((const GLubyte*)"glClientActiveTexture")) == NULL) || r; r = ((glCompressedTexImage1D = (PFNGLCOMPRESSEDTEXIMAGE1DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexImage1D")) == NULL) || r; r = ((glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexImage2D")) == NULL) || r; r = ((glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexImage3D")) == NULL) || r; r = ((glCompressedTexSubImage1D = (PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexSubImage1D")) == NULL) || r; r = ((glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexSubImage2D")) == NULL) || r; r = ((glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexSubImage3D")) == NULL) || r; r = ((glGetCompressedTexImage = (PFNGLGETCOMPRESSEDTEXIMAGEPROC)glewGetProcAddress((const GLubyte*)"glGetCompressedTexImage")) == NULL) || r; r = ((glLoadTransposeMatrixd = (PFNGLLOADTRANSPOSEMATRIXDPROC)glewGetProcAddress((const GLubyte*)"glLoadTransposeMatrixd")) == NULL) || r; r = ((glLoadTransposeMatrixf = (PFNGLLOADTRANSPOSEMATRIXFPROC)glewGetProcAddress((const GLubyte*)"glLoadTransposeMatrixf")) == NULL) || r; r = ((glMultTransposeMatrixd = (PFNGLMULTTRANSPOSEMATRIXDPROC)glewGetProcAddress((const GLubyte*)"glMultTransposeMatrixd")) == NULL) || r; r = ((glMultTransposeMatrixf = (PFNGLMULTTRANSPOSEMATRIXFPROC)glewGetProcAddress((const GLubyte*)"glMultTransposeMatrixf")) == NULL) || r; r = ((glMultiTexCoord1d = (PFNGLMULTITEXCOORD1DPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1d")) == NULL) || r; r = ((glMultiTexCoord1dv = (PFNGLMULTITEXCOORD1DVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1dv")) == NULL) || r; r = ((glMultiTexCoord1f = (PFNGLMULTITEXCOORD1FPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1f")) == NULL) || r; r = ((glMultiTexCoord1fv = (PFNGLMULTITEXCOORD1FVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1fv")) == NULL) || r; r = ((glMultiTexCoord1i = (PFNGLMULTITEXCOORD1IPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1i")) == NULL) || r; r = ((glMultiTexCoord1iv = (PFNGLMULTITEXCOORD1IVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1iv")) == NULL) || r; r = ((glMultiTexCoord1s = (PFNGLMULTITEXCOORD1SPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1s")) == NULL) || r; r = ((glMultiTexCoord1sv = (PFNGLMULTITEXCOORD1SVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1sv")) == NULL) || r; r = ((glMultiTexCoord2d = (PFNGLMULTITEXCOORD2DPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2d")) == NULL) || r; r = ((glMultiTexCoord2dv = (PFNGLMULTITEXCOORD2DVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2dv")) == NULL) || r; r = ((glMultiTexCoord2f = (PFNGLMULTITEXCOORD2FPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2f")) == NULL) || r; r = ((glMultiTexCoord2fv = (PFNGLMULTITEXCOORD2FVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2fv")) == NULL) || r; r = ((glMultiTexCoord2i = (PFNGLMULTITEXCOORD2IPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2i")) == NULL) || r; r = ((glMultiTexCoord2iv = (PFNGLMULTITEXCOORD2IVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2iv")) == NULL) || r; r = ((glMultiTexCoord2s = (PFNGLMULTITEXCOORD2SPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2s")) == NULL) || r; r = ((glMultiTexCoord2sv = (PFNGLMULTITEXCOORD2SVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2sv")) == NULL) || r; r = ((glMultiTexCoord3d = (PFNGLMULTITEXCOORD3DPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3d")) == NULL) || r; r = ((glMultiTexCoord3dv = (PFNGLMULTITEXCOORD3DVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3dv")) == NULL) || r; r = ((glMultiTexCoord3f = (PFNGLMULTITEXCOORD3FPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3f")) == NULL) || r; r = ((glMultiTexCoord3fv = (PFNGLMULTITEXCOORD3FVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3fv")) == NULL) || r; r = ((glMultiTexCoord3i = (PFNGLMULTITEXCOORD3IPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3i")) == NULL) || r; r = ((glMultiTexCoord3iv = (PFNGLMULTITEXCOORD3IVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3iv")) == NULL) || r; r = ((glMultiTexCoord3s = (PFNGLMULTITEXCOORD3SPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3s")) == NULL) || r; r = ((glMultiTexCoord3sv = (PFNGLMULTITEXCOORD3SVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3sv")) == NULL) || r; r = ((glMultiTexCoord4d = (PFNGLMULTITEXCOORD4DPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4d")) == NULL) || r; r = ((glMultiTexCoord4dv = (PFNGLMULTITEXCOORD4DVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4dv")) == NULL) || r; r = ((glMultiTexCoord4f = (PFNGLMULTITEXCOORD4FPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4f")) == NULL) || r; r = ((glMultiTexCoord4fv = (PFNGLMULTITEXCOORD4FVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4fv")) == NULL) || r; r = ((glMultiTexCoord4i = (PFNGLMULTITEXCOORD4IPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4i")) == NULL) || r; r = ((glMultiTexCoord4iv = (PFNGLMULTITEXCOORD4IVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4iv")) == NULL) || r; r = ((glMultiTexCoord4s = (PFNGLMULTITEXCOORD4SPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4s")) == NULL) || r; r = ((glMultiTexCoord4sv = (PFNGLMULTITEXCOORD4SVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4sv")) == NULL) || r; r = ((glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC)glewGetProcAddress((const GLubyte*)"glSampleCoverage")) == NULL) || r; return r; } #endif /* GL_VERSION_1_3 */ #ifdef GL_VERSION_1_4 static GLboolean _glewInit_GL_VERSION_1_4 (GLEW_CONTEXT_ARG_DEF_INIT) { GLboolean r = GL_FALSE; r = ((glBlendColor = (PFNGLBLENDCOLORPROC)glewGetProcAddress((const GLubyte*)"glBlendColor")) == NULL) || r; r = ((glBlendEquation = (PFNGLBLENDEQUATIONPROC)glewGetProcAddress((const GLubyte*)"glBlendEquation")) == NULL) || r; r = ((glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC)glewGetProcAddress((const GLubyte*)"glBlendFuncSeparate")) == NULL) || r; r = ((glFogCoordPointer = (PFNGLFOGCOORDPOINTERPROC)glewGetProcAddress((const GLubyte*)"glFogCoordPointer")) == NULL) || r; r = ((glFogCoordd = (PFNGLFOGCOORDDPROC)glewGetProcAddress((const GLubyte*)"glFogCoordd")) == NULL) || r; r = ((glFogCoorddv = (PFNGLFOGCOORDDVPROC)glewGetProcAddress((const GLubyte*)"glFogCoorddv")) == NULL) || r; r = ((glFogCoordf = (PFNGLFOGCOORDFPROC)glewGetProcAddress((const GLubyte*)"glFogCoordf")) == NULL) || r; r = ((glFogCoordfv = (PFNGLFOGCOORDFVPROC)glewGetProcAddress((const GLubyte*)"glFogCoordfv")) == NULL) || r; r = ((glMultiDrawArrays = (PFNGLMULTIDRAWARRAYSPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawArrays")) == NULL) || r; r = ((glMultiDrawElements = (PFNGLMULTIDRAWELEMENTSPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawElements")) == NULL) || r; r = ((glPointParameterf = (PFNGLPOINTPARAMETERFPROC)glewGetProcAddress((const GLubyte*)"glPointParameterf")) == NULL) || r; r = ((glPointParameterfv = (PFNGLPOINTPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glPointParameterfv")) == NULL) || r; r = ((glPointParameteri = (PFNGLPOINTPARAMETERIPROC)glewGetProcAddress((const GLubyte*)"glPointParameteri")) == NULL) || r; r = ((glPointParameteriv = (PFNGLPOINTPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glPointParameteriv")) == NULL) || r; r = ((glSecondaryColor3b = (PFNGLSECONDARYCOLOR3BPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3b")) == NULL) || r; r = ((glSecondaryColor3bv = (PFNGLSECONDARYCOLOR3BVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3bv")) == NULL) || r; r = ((glSecondaryColor3d = (PFNGLSECONDARYCOLOR3DPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3d")) == NULL) || r; r = ((glSecondaryColor3dv = (PFNGLSECONDARYCOLOR3DVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3dv")) == NULL) || r; r = ((glSecondaryColor3f = (PFNGLSECONDARYCOLOR3FPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3f")) == NULL) || r; r = ((glSecondaryColor3fv = (PFNGLSECONDARYCOLOR3FVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3fv")) == NULL) || r; r = ((glSecondaryColor3i = (PFNGLSECONDARYCOLOR3IPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3i")) == NULL) || r; r = ((glSecondaryColor3iv = (PFNGLSECONDARYCOLOR3IVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3iv")) == NULL) || r; r = ((glSecondaryColor3s = (PFNGLSECONDARYCOLOR3SPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3s")) == NULL) || r; r = ((glSecondaryColor3sv = (PFNGLSECONDARYCOLOR3SVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3sv")) == NULL) || r; r = ((glSecondaryColor3ub = (PFNGLSECONDARYCOLOR3UBPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3ub")) == NULL) || r; r = ((glSecondaryColor3ubv = (PFNGLSECONDARYCOLOR3UBVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3ubv")) == NULL) || r; r = ((glSecondaryColor3ui = (PFNGLSECONDARYCOLOR3UIPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3ui")) == NULL) || r; r = ((glSecondaryColor3uiv = (PFNGLSECONDARYCOLOR3UIVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3uiv")) == NULL) || r; r = ((glSecondaryColor3us = (PFNGLSECONDARYCOLOR3USPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3us")) == NULL) || r; r = ((glSecondaryColor3usv = (PFNGLSECONDARYCOLOR3USVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3usv")) == NULL) || r; r = ((glSecondaryColorPointer = (PFNGLSECONDARYCOLORPOINTERPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColorPointer")) == NULL) || r; r = ((glWindowPos2d = (PFNGLWINDOWPOS2DPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2d")) == NULL) || r; r = ((glWindowPos2dv = (PFNGLWINDOWPOS2DVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2dv")) == NULL) || r; r = ((glWindowPos2f = (PFNGLWINDOWPOS2FPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2f")) == NULL) || r; r = ((glWindowPos2fv = (PFNGLWINDOWPOS2FVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2fv")) == NULL) || r; r = ((glWindowPos2i = (PFNGLWINDOWPOS2IPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2i")) == NULL) || r; r = ((glWindowPos2iv = (PFNGLWINDOWPOS2IVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2iv")) == NULL) || r; r = ((glWindowPos2s = (PFNGLWINDOWPOS2SPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2s")) == NULL) || r; r = ((glWindowPos2sv = (PFNGLWINDOWPOS2SVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2sv")) == NULL) || r; r = ((glWindowPos3d = (PFNGLWINDOWPOS3DPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3d")) == NULL) || r; r = ((glWindowPos3dv = (PFNGLWINDOWPOS3DVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3dv")) == NULL) || r; r = ((glWindowPos3f = (PFNGLWINDOWPOS3FPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3f")) == NULL) || r; r = ((glWindowPos3fv = (PFNGLWINDOWPOS3FVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3fv")) == NULL) || r; r = ((glWindowPos3i = (PFNGLWINDOWPOS3IPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3i")) == NULL) || r; r = ((glWindowPos3iv = (PFNGLWINDOWPOS3IVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3iv")) == NULL) || r; r = ((glWindowPos3s = (PFNGLWINDOWPOS3SPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3s")) == NULL) || r; r = ((glWindowPos3sv = (PFNGLWINDOWPOS3SVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3sv")) == NULL) || r; return r; } #endif /* GL_VERSION_1_4 */ #ifdef GL_VERSION_1_5 static GLboolean _glewInit_GL_VERSION_1_5 (GLEW_CONTEXT_ARG_DEF_INIT) { GLboolean r = GL_FALSE; r = ((glBeginQuery = (PFNGLBEGINQUERYPROC)glewGetProcAddress((const GLubyte*)"glBeginQuery")) == NULL) || r; r = ((glBindBuffer = (PFNGLBINDBUFFERPROC)glewGetProcAddress((const GLubyte*)"glBindBuffer")) == NULL) || r; r = ((glBufferData = (PFNGLBUFFERDATAPROC)glewGetProcAddress((const GLubyte*)"glBufferData")) == NULL) || r; r = ((glBufferSubData = (PFNGLBUFFERSUBDATAPROC)glewGetProcAddress((const GLubyte*)"glBufferSubData")) == NULL) || r; r = ((glDeleteBuffers = (PFNGLDELETEBUFFERSPROC)glewGetProcAddress((const GLubyte*)"glDeleteBuffers")) == NULL) || r; r = ((glDeleteQueries = (PFNGLDELETEQUERIESPROC)glewGetProcAddress((const GLubyte*)"glDeleteQueries")) == NULL) || r; r = ((glEndQuery = (PFNGLENDQUERYPROC)glewGetProcAddress((const GLubyte*)"glEndQuery")) == NULL) || r; r = ((glGenBuffers = (PFNGLGENBUFFERSPROC)glewGetProcAddress((const GLubyte*)"glGenBuffers")) == NULL) || r; r = ((glGenQueries = (PFNGLGENQUERIESPROC)glewGetProcAddress((const GLubyte*)"glGenQueries")) == NULL) || r; r = ((glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetBufferParameteriv")) == NULL) || r; r = ((glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC)glewGetProcAddress((const GLubyte*)"glGetBufferPointerv")) == NULL) || r; r = ((glGetBufferSubData = (PFNGLGETBUFFERSUBDATAPROC)glewGetProcAddress((const GLubyte*)"glGetBufferSubData")) == NULL) || r; r = ((glGetQueryObjectiv = (PFNGLGETQUERYOBJECTIVPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjectiv")) == NULL) || r; r = ((glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjectuiv")) == NULL) || r; r = ((glGetQueryiv = (PFNGLGETQUERYIVPROC)glewGetProcAddress((const GLubyte*)"glGetQueryiv")) == NULL) || r; r = ((glIsBuffer = (PFNGLISBUFFERPROC)glewGetProcAddress((const GLubyte*)"glIsBuffer")) == NULL) || r; r = ((glIsQuery = (PFNGLISQUERYPROC)glewGetProcAddress((const GLubyte*)"glIsQuery")) == NULL) || r; r = ((glMapBuffer = (PFNGLMAPBUFFERPROC)glewGetProcAddress((const GLubyte*)"glMapBuffer")) == NULL) || r; r = ((glUnmapBuffer = (PFNGLUNMAPBUFFERPROC)glewGetProcAddress((const GLubyte*)"glUnmapBuffer")) == NULL) || r; return r; } #endif /* GL_VERSION_1_5 */ #ifdef GL_VERSION_2_0 static GLboolean _glewInit_GL_VERSION_2_0 (GLEW_CONTEXT_ARG_DEF_INIT) { GLboolean r = GL_FALSE; r = ((glAttachShader = (PFNGLATTACHSHADERPROC)glewGetProcAddress((const GLubyte*)"glAttachShader")) == NULL) || r; r = ((glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)glewGetProcAddress((const GLubyte*)"glBindAttribLocation")) == NULL) || r; r = ((glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC)glewGetProcAddress((const GLubyte*)"glBlendEquationSeparate")) == NULL) || r; r = ((glCompileShader = (PFNGLCOMPILESHADERPROC)glewGetProcAddress((const GLubyte*)"glCompileShader")) == NULL) || r; r = ((glCreateProgram = (PFNGLCREATEPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glCreateProgram")) == NULL) || r; r = ((glCreateShader = (PFNGLCREATESHADERPROC)glewGetProcAddress((const GLubyte*)"glCreateShader")) == NULL) || r; r = ((glDeleteProgram = (PFNGLDELETEPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glDeleteProgram")) == NULL) || r; r = ((glDeleteShader = (PFNGLDELETESHADERPROC)glewGetProcAddress((const GLubyte*)"glDeleteShader")) == NULL) || r; r = ((glDetachShader = (PFNGLDETACHSHADERPROC)glewGetProcAddress((const GLubyte*)"glDetachShader")) == NULL) || r; r = ((glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC)glewGetProcAddress((const GLubyte*)"glDisableVertexAttribArray")) == NULL) || r; r = ((glDrawBuffers = (PFNGLDRAWBUFFERSPROC)glewGetProcAddress((const GLubyte*)"glDrawBuffers")) == NULL) || r; r = ((glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC)glewGetProcAddress((const GLubyte*)"glEnableVertexAttribArray")) == NULL) || r; r = ((glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC)glewGetProcAddress((const GLubyte*)"glGetActiveAttrib")) == NULL) || r; r = ((glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC)glewGetProcAddress((const GLubyte*)"glGetActiveUniform")) == NULL) || r; r = ((glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC)glewGetProcAddress((const GLubyte*)"glGetAttachedShaders")) == NULL) || r; r = ((glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC)glewGetProcAddress((const GLubyte*)"glGetAttribLocation")) == NULL) || r; r = ((glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC)glewGetProcAddress((const GLubyte*)"glGetProgramInfoLog")) == NULL) || r; r = ((glGetProgramiv = (PFNGLGETPROGRAMIVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramiv")) == NULL) || r; r = ((glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC)glewGetProcAddress((const GLubyte*)"glGetShaderInfoLog")) == NULL) || r; r = ((glGetShaderSource = (PFNGLGETSHADERSOURCEPROC)glewGetProcAddress((const GLubyte*)"glGetShaderSource")) == NULL) || r; r = ((glGetShaderiv = (PFNGLGETSHADERIVPROC)glewGetProcAddress((const GLubyte*)"glGetShaderiv")) == NULL) || r; r = ((glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC)glewGetProcAddress((const GLubyte*)"glGetUniformLocation")) == NULL) || r; r = ((glGetUniformfv = (PFNGLGETUNIFORMFVPROC)glewGetProcAddress((const GLubyte*)"glGetUniformfv")) == NULL) || r; r = ((glGetUniformiv = (PFNGLGETUNIFORMIVPROC)glewGetProcAddress((const GLubyte*)"glGetUniformiv")) == NULL) || r; r = ((glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribPointerv")) == NULL) || r; r = ((glGetVertexAttribdv = (PFNGLGETVERTEXATTRIBDVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribdv")) == NULL) || r; r = ((glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribfv")) == NULL) || r; r = ((glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribiv")) == NULL) || r; r = ((glIsProgram = (PFNGLISPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glIsProgram")) == NULL) || r; r = ((glIsShader = (PFNGLISSHADERPROC)glewGetProcAddress((const GLubyte*)"glIsShader")) == NULL) || r; r = ((glLinkProgram = (PFNGLLINKPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glLinkProgram")) == NULL) || r; r = ((glShaderSource = (PFNGLSHADERSOURCEPROC)glewGetProcAddress((const GLubyte*)"glShaderSource")) == NULL) || r; r = ((glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC)glewGetProcAddress((const GLubyte*)"glStencilFuncSeparate")) == NULL) || r; r = ((glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC)glewGetProcAddress((const GLubyte*)"glStencilMaskSeparate")) == NULL) || r; r = ((glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC)glewGetProcAddress((const GLubyte*)"glStencilOpSeparate")) == NULL) || r; r = ((glUniform1f = (PFNGLUNIFORM1FPROC)glewGetProcAddress((const GLubyte*)"glUniform1f")) == NULL) || r; r = ((glUniform1fv = (PFNGLUNIFORM1FVPROC)glewGetProcAddress((const GLubyte*)"glUniform1fv")) == NULL) || r; r = ((glUniform1i = (PFNGLUNIFORM1IPROC)glewGetProcAddress((const GLubyte*)"glUniform1i")) == NULL) || r; r = ((glUniform1iv = (PFNGLUNIFORM1IVPROC)glewGetProcAddress((const GLubyte*)"glUniform1iv")) == NULL) || r; r = ((glUniform2f = (PFNGLUNIFORM2FPROC)glewGetProcAddress((const GLubyte*)"glUniform2f")) == NULL) || r; r = ((glUniform2fv = (PFNGLUNIFORM2FVPROC)glewGetProcAddress((const GLubyte*)"glUniform2fv")) == NULL) || r; r = ((glUniform2i = (PFNGLUNIFORM2IPROC)glewGetProcAddress((const GLubyte*)"glUniform2i")) == NULL) || r; r = ((glUniform2iv = (PFNGLUNIFORM2IVPROC)glewGetProcAddress((const GLubyte*)"glUniform2iv")) == NULL) || r; r = ((glUniform3f = (PFNGLUNIFORM3FPROC)glewGetProcAddress((const GLubyte*)"glUniform3f")) == NULL) || r; r = ((glUniform3fv = (PFNGLUNIFORM3FVPROC)glewGetProcAddress((const GLubyte*)"glUniform3fv")) == NULL) || r; r = ((glUniform3i = (PFNGLUNIFORM3IPROC)glewGetProcAddress((const GLubyte*)"glUniform3i")) == NULL) || r; r = ((glUniform3iv = (PFNGLUNIFORM3IVPROC)glewGetProcAddress((const GLubyte*)"glUniform3iv")) == NULL) || r; r = ((glUniform4f = (PFNGLUNIFORM4FPROC)glewGetProcAddress((const GLubyte*)"glUniform4f")) == NULL) || r; r = ((glUniform4fv = (PFNGLUNIFORM4FVPROC)glewGetProcAddress((const GLubyte*)"glUniform4fv")) == NULL) || r; r = ((glUniform4i = (PFNGLUNIFORM4IPROC)glewGetProcAddress((const GLubyte*)"glUniform4i")) == NULL) || r; r = ((glUniform4iv = (PFNGLUNIFORM4IVPROC)glewGetProcAddress((const GLubyte*)"glUniform4iv")) == NULL) || r; r = ((glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix2fv")) == NULL) || r; r = ((glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix3fv")) == NULL) || r; r = ((glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix4fv")) == NULL) || r; r = ((glUseProgram = (PFNGLUSEPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glUseProgram")) == NULL) || r; r = ((glValidateProgram = (PFNGLVALIDATEPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glValidateProgram")) == NULL) || r; r = ((glVertexAttrib1d = (PFNGLVERTEXATTRIB1DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1d")) == NULL) || r; r = ((glVertexAttrib1dv = (PFNGLVERTEXATTRIB1DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1dv")) == NULL) || r; r = ((glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1f")) == NULL) || r; r = ((glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1fv")) == NULL) || r; r = ((glVertexAttrib1s = (PFNGLVERTEXATTRIB1SPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1s")) == NULL) || r; r = ((glVertexAttrib1sv = (PFNGLVERTEXATTRIB1SVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1sv")) == NULL) || r; r = ((glVertexAttrib2d = (PFNGLVERTEXATTRIB2DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2d")) == NULL) || r; r = ((glVertexAttrib2dv = (PFNGLVERTEXATTRIB2DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2dv")) == NULL) || r; r = ((glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2f")) == NULL) || r; r = ((glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2fv")) == NULL) || r; r = ((glVertexAttrib2s = (PFNGLVERTEXATTRIB2SPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2s")) == NULL) || r; r = ((glVertexAttrib2sv = (PFNGLVERTEXATTRIB2SVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2sv")) == NULL) || r; r = ((glVertexAttrib3d = (PFNGLVERTEXATTRIB3DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3d")) == NULL) || r; r = ((glVertexAttrib3dv = (PFNGLVERTEXATTRIB3DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3dv")) == NULL) || r; r = ((glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3f")) == NULL) || r; r = ((glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3fv")) == NULL) || r; r = ((glVertexAttrib3s = (PFNGLVERTEXATTRIB3SPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3s")) == NULL) || r; r = ((glVertexAttrib3sv = (PFNGLVERTEXATTRIB3SVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3sv")) == NULL) || r; r = ((glVertexAttrib4Nbv = (PFNGLVERTEXATTRIB4NBVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nbv")) == NULL) || r; r = ((glVertexAttrib4Niv = (PFNGLVERTEXATTRIB4NIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Niv")) == NULL) || r; r = ((glVertexAttrib4Nsv = (PFNGLVERTEXATTRIB4NSVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nsv")) == NULL) || r; r = ((glVertexAttrib4Nub = (PFNGLVERTEXATTRIB4NUBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nub")) == NULL) || r; r = ((glVertexAttrib4Nubv = (PFNGLVERTEXATTRIB4NUBVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nubv")) == NULL) || r; r = ((glVertexAttrib4Nuiv = (PFNGLVERTEXATTRIB4NUIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nuiv")) == NULL) || r; r = ((glVertexAttrib4Nusv = (PFNGLVERTEXATTRIB4NUSVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nusv")) == NULL) || r; r = ((glVertexAttrib4bv = (PFNGLVERTEXATTRIB4BVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4bv")) == NULL) || r; r = ((glVertexAttrib4d = (PFNGLVERTEXATTRIB4DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4d")) == NULL) || r; r = ((glVertexAttrib4dv = (PFNGLVERTEXATTRIB4DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4dv")) == NULL) || r; r = ((glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4f")) == NULL) || r; r = ((glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4fv")) == NULL) || r; r = ((glVertexAttrib4iv = (PFNGLVERTEXATTRIB4IVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4iv")) == NULL) || r; r = ((glVertexAttrib4s = (PFNGLVERTEXATTRIB4SPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4s")) == NULL) || r; r = ((glVertexAttrib4sv = (PFNGLVERTEXATTRIB4SVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4sv")) == NULL) || r; r = ((glVertexAttrib4ubv = (PFNGLVERTEXATTRIB4UBVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4ubv")) == NULL) || r; r = ((glVertexAttrib4uiv = (PFNGLVERTEXATTRIB4UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4uiv")) == NULL) || r; r = ((glVertexAttrib4usv = (PFNGLVERTEXATTRIB4USVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4usv")) == NULL) || r; r = ((glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribPointer")) == NULL) || r; return r; } #endif /* GL_VERSION_2_0 */ #ifdef GL_VERSION_2_1 static GLboolean _glewInit_GL_VERSION_2_1 (GLEW_CONTEXT_ARG_DEF_INIT) { GLboolean r = GL_FALSE; r = ((glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix2x3fv")) == NULL) || r; r = ((glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix2x4fv")) == NULL) || r; r = ((glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix3x2fv")) == NULL) || r; r = ((glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix3x4fv")) == NULL) || r; r = ((glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix4x2fv")) == NULL) || r; r = ((glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix4x3fv")) == NULL) || r; return r; } #endif /* GL_VERSION_2_1 */ #ifdef GL_ARB_pixel_buffer_object #endif /* GL_ARB_pixel_buffer_object */ #ifdef GL_ARB_vertex_buffer_object static GLboolean _glewInit_GL_ARB_vertex_buffer_object (GLEW_CONTEXT_ARG_DEF_INIT) { GLboolean r = GL_FALSE; r = ((glBindBufferARB = (PFNGLBINDBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"glBindBufferARB")) == NULL) || r; r = ((glBufferDataARB = (PFNGLBUFFERDATAARBPROC)glewGetProcAddress((const GLubyte*)"glBufferDataARB")) == NULL) || r; r = ((glBufferSubDataARB = (PFNGLBUFFERSUBDATAARBPROC)glewGetProcAddress((const GLubyte*)"glBufferSubDataARB")) == NULL) || r; r = ((glDeleteBuffersARB = (PFNGLDELETEBUFFERSARBPROC)glewGetProcAddress((const GLubyte*)"glDeleteBuffersARB")) == NULL) || r; r = ((glGenBuffersARB = (PFNGLGENBUFFERSARBPROC)glewGetProcAddress((const GLubyte*)"glGenBuffersARB")) == NULL) || r; r = ((glGetBufferParameterivARB = (PFNGLGETBUFFERPARAMETERIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetBufferParameterivARB")) == NULL) || r; r = ((glGetBufferPointervARB = (PFNGLGETBUFFERPOINTERVARBPROC)glewGetProcAddress((const GLubyte*)"glGetBufferPointervARB")) == NULL) || r; r = ((glGetBufferSubDataARB = (PFNGLGETBUFFERSUBDATAARBPROC)glewGetProcAddress((const GLubyte*)"glGetBufferSubDataARB")) == NULL) || r; r = ((glIsBufferARB = (PFNGLISBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"glIsBufferARB")) == NULL) || r; r = ((glMapBufferARB = (PFNGLMAPBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"glMapBufferARB")) == NULL) || r; r = ((glUnmapBufferARB = (PFNGLUNMAPBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"glUnmapBufferARB")) == NULL) || r; return r; } #endif /* GL_ARB_vertex_buffer_object */ #ifdef GL_SGIS_texture_lod #endif /* GL_SGIS_texture_lod */ /* ------------------------------------------------------------------------- */ /* * Search for name in the extensions string. Use of strstr() * is not sufficient because extension names can be prefixes of * other extension names. Could use strtok() but the constant * string returned by glGetString might be in read-only memory. */ GLboolean glewGetExtension (const char* name) { GLubyte* p; GLubyte* end; GLuint len = _glewStrLen((const GLubyte*)name); p = (GLubyte*)glGetString(GL_EXTENSIONS); if (0 == p) return GL_FALSE; end = p + _glewStrLen(p); while (p < end) { GLuint n = _glewStrCLen(p, ' '); if (len == n && _glewStrSame((const GLubyte*)name, p, n)) return GL_TRUE; p += n+1; } return GL_FALSE; } /* ------------------------------------------------------------------------- */ #ifndef GLEW_MX static #endif GLenum glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST) { const GLubyte* s; GLuint dot, major, minor; /* query opengl version */ s = glGetString(GL_VERSION); dot = _glewStrCLen(s, '.'); major = dot-1; minor = dot+1; if (dot == 0 || s[minor] == '\0') return GLEW_ERROR_NO_GL_VERSION; if (s[major] == '1' && s[minor] == '0') { return GLEW_ERROR_GL_VERSION_10_ONLY; } else { CONST_CAST(GLEW_VERSION_1_1) = GL_TRUE; if (s[major] >= '2') { CONST_CAST(GLEW_VERSION_1_2) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_3) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_4) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_5) = GL_TRUE; CONST_CAST(GLEW_VERSION_2_0) = GL_TRUE; if (s[minor] >= '1') { CONST_CAST(GLEW_VERSION_2_1) = GL_TRUE; } } else { if (s[minor] >= '5') { CONST_CAST(GLEW_VERSION_1_2) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_3) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_4) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_5) = GL_TRUE; CONST_CAST(GLEW_VERSION_2_0) = GL_FALSE; CONST_CAST(GLEW_VERSION_2_1) = GL_FALSE; } if (s[minor] == '4') { CONST_CAST(GLEW_VERSION_1_2) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_3) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_4) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_5) = GL_FALSE; CONST_CAST(GLEW_VERSION_2_0) = GL_FALSE; CONST_CAST(GLEW_VERSION_2_1) = GL_FALSE; } if (s[minor] == '3') { CONST_CAST(GLEW_VERSION_1_2) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_3) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_4) = GL_FALSE; CONST_CAST(GLEW_VERSION_1_5) = GL_FALSE; CONST_CAST(GLEW_VERSION_2_0) = GL_FALSE; CONST_CAST(GLEW_VERSION_2_1) = GL_FALSE; } if (s[minor] == '2') { CONST_CAST(GLEW_VERSION_1_2) = GL_TRUE; CONST_CAST(GLEW_VERSION_1_3) = GL_FALSE; CONST_CAST(GLEW_VERSION_1_4) = GL_FALSE; CONST_CAST(GLEW_VERSION_1_5) = GL_FALSE; CONST_CAST(GLEW_VERSION_2_0) = GL_FALSE; CONST_CAST(GLEW_VERSION_2_1) = GL_FALSE; } if (s[minor] < '2') { CONST_CAST(GLEW_VERSION_1_2) = GL_FALSE; CONST_CAST(GLEW_VERSION_1_3) = GL_FALSE; CONST_CAST(GLEW_VERSION_1_4) = GL_FALSE; CONST_CAST(GLEW_VERSION_1_5) = GL_FALSE; CONST_CAST(GLEW_VERSION_2_0) = GL_FALSE; CONST_CAST(GLEW_VERSION_2_1) = GL_FALSE; } } } /* initialize extensions */ #ifdef GL_VERSION_1_2 if (glewExperimental || GLEW_VERSION_1_2) CONST_CAST(GLEW_VERSION_1_2) = !_glewInit_GL_VERSION_1_2(GLEW_CONTEXT_ARG_VAR_INIT); #endif /* GL_VERSION_1_2 */ #ifdef GL_VERSION_1_3 if (glewExperimental || GLEW_VERSION_1_3) CONST_CAST(GLEW_VERSION_1_3) = !_glewInit_GL_VERSION_1_3(GLEW_CONTEXT_ARG_VAR_INIT); #endif /* GL_VERSION_1_3 */ #ifdef GL_VERSION_1_4 if (glewExperimental || GLEW_VERSION_1_4) CONST_CAST(GLEW_VERSION_1_4) = !_glewInit_GL_VERSION_1_4(GLEW_CONTEXT_ARG_VAR_INIT); #endif /* GL_VERSION_1_4 */ #ifdef GL_VERSION_1_5 if (glewExperimental || GLEW_VERSION_1_5) CONST_CAST(GLEW_VERSION_1_5) = !_glewInit_GL_VERSION_1_5(GLEW_CONTEXT_ARG_VAR_INIT); #endif /* GL_VERSION_1_5 */ #ifdef GL_VERSION_2_0 if (glewExperimental || GLEW_VERSION_2_0) CONST_CAST(GLEW_VERSION_2_0) = !_glewInit_GL_VERSION_2_0(GLEW_CONTEXT_ARG_VAR_INIT); #endif /* GL_VERSION_2_0 */ #ifdef GL_VERSION_2_1 if (glewExperimental || GLEW_VERSION_2_1) CONST_CAST(GLEW_VERSION_2_1) = !_glewInit_GL_VERSION_2_1(GLEW_CONTEXT_ARG_VAR_INIT); #endif /* GL_VERSION_2_1 */ #if defined(GL_ARB_pixel_buffer_object) && !defined(GLEW_DISABLE_VBOS) CONST_CAST(GLEW_ARB_pixel_buffer_object) = glewGetExtension("GL_ARB_pixel_buffer_object"); #endif /* GL_ARB_pixel_buffer_object */ #if defined(GL_ARB_vertex_buffer_object) && !defined(GLEW_DISABLE_VBOS) CONST_CAST(GLEW_ARB_vertex_buffer_object) = glewGetExtension("GL_ARB_vertex_buffer_object"); if (glewExperimental || GLEW_ARB_vertex_buffer_object) CONST_CAST(GLEW_ARB_vertex_buffer_object) = !_glewInit_GL_ARB_vertex_buffer_object(GLEW_CONTEXT_ARG_VAR_INIT); #endif /* GL_ARB_vertex_buffer_object */ #ifdef GL_SGIS_texture_lod CONST_CAST(GLEW_SGIS_texture_lod) = glewGetExtension("GL_SGIS_texture_lod"); #endif /* GL_SGIS_texture_lod */ #ifdef GLEW_DISABLE_VBOS CONST_CAST(GLEW_ARB_pixel_buffer_object) = 0; CONST_CAST(GLEW_ARB_vertex_buffer_object) = 0; #endif return GLEW_OK; } #if defined(_WIN32) #if !defined(GLEW_MX) PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB = NULL; PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT = NULL; GLboolean __WGLEW_ARB_extensions_string = GL_FALSE; GLboolean __WGLEW_EXT_extensions_string = GL_FALSE; #endif /* !GLEW_MX */ #ifdef WGL_ARB_extensions_string static GLboolean _glewInit_WGL_ARB_extensions_string (WGLEW_CONTEXT_ARG_DEF_INIT) { GLboolean r = GL_FALSE; r = ((wglGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringARB")) == NULL) || r; return r; } #endif /* WGL_ARB_extensions_string */ #ifdef WGL_EXT_extensions_string static GLboolean _glewInit_WGL_EXT_extensions_string (WGLEW_CONTEXT_ARG_DEF_INIT) { GLboolean r = GL_FALSE; r = ((wglGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringEXT")) == NULL) || r; return r; } #endif /* WGL_EXT_extensions_string */ /* ------------------------------------------------------------------------- */ static PFNWGLGETEXTENSIONSSTRINGARBPROC _wglewGetExtensionsStringARB = NULL; static PFNWGLGETEXTENSIONSSTRINGEXTPROC _wglewGetExtensionsStringEXT = NULL; GLboolean wglewGetExtension (const char* name) { GLubyte* p; GLubyte* end; GLuint len = _glewStrLen((const GLubyte*)name); if (_wglewGetExtensionsStringARB == NULL) if (_wglewGetExtensionsStringEXT == NULL) return GL_FALSE; else p = (GLubyte*)_wglewGetExtensionsStringEXT(); else p = (GLubyte*)_wglewGetExtensionsStringARB(wglGetCurrentDC()); if (0 == p) return GL_FALSE; end = p + _glewStrLen(p); while (p < end) { GLuint n = _glewStrCLen(p, ' '); if (len == n && _glewStrSame((const GLubyte*)name, p, n)) return GL_TRUE; p += n+1; } return GL_FALSE; } GLenum wglewContextInit (WGLEW_CONTEXT_ARG_DEF_LIST) { GLboolean crippled; /* find wgl extension string query functions */ _wglewGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringARB"); _wglewGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringEXT"); /* initialize extensions */ crippled = _wglewGetExtensionsStringARB == NULL && _wglewGetExtensionsStringEXT == NULL; #ifdef WGL_ARB_extensions_string CONST_CAST(WGLEW_ARB_extensions_string) = wglewGetExtension("WGL_ARB_extensions_string"); if (glewExperimental || WGLEW_ARB_extensions_string|| crippled) CONST_CAST(WGLEW_ARB_extensions_string)= !_glewInit_WGL_ARB_extensions_string(GLEW_CONTEXT_ARG_VAR_INIT); #endif /* WGL_ARB_extensions_string */ #ifdef WGL_EXT_extensions_string CONST_CAST(WGLEW_EXT_extensions_string) = wglewGetExtension("WGL_EXT_extensions_string"); if (glewExperimental || WGLEW_EXT_extensions_string|| crippled) CONST_CAST(WGLEW_EXT_extensions_string)= !_glewInit_WGL_EXT_extensions_string(GLEW_CONTEXT_ARG_VAR_INIT); #endif /* WGL_EXT_extensions_string */ return GLEW_OK; } #elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) PFNGLXGETCURRENTDISPLAYPROC __glewXGetCurrentDisplay = NULL; PFNGLXCHOOSEFBCONFIGPROC __glewXChooseFBConfig = NULL; PFNGLXCREATENEWCONTEXTPROC __glewXCreateNewContext = NULL; PFNGLXCREATEPBUFFERPROC __glewXCreatePbuffer = NULL; PFNGLXCREATEPIXMAPPROC __glewXCreatePixmap = NULL; PFNGLXCREATEWINDOWPROC __glewXCreateWindow = NULL; PFNGLXDESTROYPBUFFERPROC __glewXDestroyPbuffer = NULL; PFNGLXDESTROYPIXMAPPROC __glewXDestroyPixmap = NULL; PFNGLXDESTROYWINDOWPROC __glewXDestroyWindow = NULL; PFNGLXGETCURRENTREADDRAWABLEPROC __glewXGetCurrentReadDrawable = NULL; PFNGLXGETFBCONFIGATTRIBPROC __glewXGetFBConfigAttrib = NULL; PFNGLXGETFBCONFIGSPROC __glewXGetFBConfigs = NULL; PFNGLXGETSELECTEDEVENTPROC __glewXGetSelectedEvent = NULL; PFNGLXGETVISUALFROMFBCONFIGPROC __glewXGetVisualFromFBConfig = NULL; PFNGLXMAKECONTEXTCURRENTPROC __glewXMakeContextCurrent = NULL; PFNGLXQUERYCONTEXTPROC __glewXQueryContext = NULL; PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable = NULL; PFNGLXSELECTEVENTPROC __glewXSelectEvent = NULL; #if !defined(GLEW_MX) GLboolean __GLXEW_VERSION_1_0 = GL_FALSE; GLboolean __GLXEW_VERSION_1_1 = GL_FALSE; GLboolean __GLXEW_VERSION_1_2 = GL_FALSE; GLboolean __GLXEW_VERSION_1_3 = GL_FALSE; GLboolean __GLXEW_VERSION_1_4 = GL_FALSE; GLboolean __GLXEW_ARB_get_proc_address = GL_FALSE; #endif /* !GLEW_MX */ #ifdef GLX_VERSION_1_2 static GLboolean _glewInit_GLX_VERSION_1_2 (GLXEW_CONTEXT_ARG_DEF_INIT) { GLboolean r = GL_FALSE; r = ((glXGetCurrentDisplay = (PFNGLXGETCURRENTDISPLAYPROC)glewGetProcAddress((const GLubyte*)"glXGetCurrentDisplay")) == NULL) || r; return r; } #endif /* GLX_VERSION_1_2 */ #ifdef GLX_VERSION_1_3 static GLboolean _glewInit_GLX_VERSION_1_3 (GLXEW_CONTEXT_ARG_DEF_INIT) { GLboolean r = GL_FALSE; r = ((glXChooseFBConfig = (PFNGLXCHOOSEFBCONFIGPROC)glewGetProcAddress((const GLubyte*)"glXChooseFBConfig")) == NULL) || r; r = ((glXCreateNewContext = (PFNGLXCREATENEWCONTEXTPROC)glewGetProcAddress((const GLubyte*)"glXCreateNewContext")) == NULL) || r; r = ((glXCreatePbuffer = (PFNGLXCREATEPBUFFERPROC)glewGetProcAddress((const GLubyte*)"glXCreatePbuffer")) == NULL) || r; r = ((glXCreatePixmap = (PFNGLXCREATEPIXMAPPROC)glewGetProcAddress((const GLubyte*)"glXCreatePixmap")) == NULL) || r; r = ((glXCreateWindow = (PFNGLXCREATEWINDOWPROC)glewGetProcAddress((const GLubyte*)"glXCreateWindow")) == NULL) || r; r = ((glXDestroyPbuffer = (PFNGLXDESTROYPBUFFERPROC)glewGetProcAddress((const GLubyte*)"glXDestroyPbuffer")) == NULL) || r; r = ((glXDestroyPixmap = (PFNGLXDESTROYPIXMAPPROC)glewGetProcAddress((const GLubyte*)"glXDestroyPixmap")) == NULL) || r; r = ((glXDestroyWindow = (PFNGLXDESTROYWINDOWPROC)glewGetProcAddress((const GLubyte*)"glXDestroyWindow")) == NULL) || r; r = ((glXGetCurrentReadDrawable = (PFNGLXGETCURRENTREADDRAWABLEPROC)glewGetProcAddress((const GLubyte*)"glXGetCurrentReadDrawable")) == NULL) || r; r = ((glXGetFBConfigAttrib = (PFNGLXGETFBCONFIGATTRIBPROC)glewGetProcAddress((const GLubyte*)"glXGetFBConfigAttrib")) == NULL) || r; r = ((glXGetFBConfigs = (PFNGLXGETFBCONFIGSPROC)glewGetProcAddress((const GLubyte*)"glXGetFBConfigs")) == NULL) || r; r = ((glXGetSelectedEvent = (PFNGLXGETSELECTEDEVENTPROC)glewGetProcAddress((const GLubyte*)"glXGetSelectedEvent")) == NULL) || r; r = ((glXGetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGPROC)glewGetProcAddress((const GLubyte*)"glXGetVisualFromFBConfig")) == NULL) || r; r = ((glXMakeContextCurrent = (PFNGLXMAKECONTEXTCURRENTPROC)glewGetProcAddress((const GLubyte*)"glXMakeContextCurrent")) == NULL) || r; r = ((glXQueryContext = (PFNGLXQUERYCONTEXTPROC)glewGetProcAddress((const GLubyte*)"glXQueryContext")) == NULL) || r; r = ((glXQueryDrawable = (PFNGLXQUERYDRAWABLEPROC)glewGetProcAddress((const GLubyte*)"glXQueryDrawable")) == NULL) || r; r = ((glXSelectEvent = (PFNGLXSELECTEVENTPROC)glewGetProcAddress((const GLubyte*)"glXSelectEvent")) == NULL) || r; return r; } #endif /* GLX_VERSION_1_3 */ #ifdef GLX_VERSION_1_4 #endif /* GLX_VERSION_1_4 */ #ifdef GLX_ARB_get_proc_address #endif /* GLX_ARB_get_proc_address */ /* ------------------------------------------------------------------------ */ GLboolean glxewGetExtension (const char* name) { GLubyte* p; GLubyte* end; GLuint len = _glewStrLen((const GLubyte*)name); /* if (glXQueryExtensionsString == NULL || glXGetCurrentDisplay == NULL) return GL_FALSE; */ /* p = (GLubyte*)glXQueryExtensionsString(glXGetCurrentDisplay(), DefaultScreen(glXGetCurrentDisplay())); */ if (glXGetClientString == NULL || glXGetCurrentDisplay == NULL) return GL_FALSE; p = (GLubyte*)glXGetClientString(glXGetCurrentDisplay(), GLX_EXTENSIONS); if (0 == p) return GL_FALSE; end = p + _glewStrLen(p); while (p < end) { GLuint n = _glewStrCLen(p, ' '); if (len == n && _glewStrSame((const GLubyte*)name, p, n)) return GL_TRUE; p += n+1; } return GL_FALSE; } GLenum glxewContextInit (GLXEW_CONTEXT_ARG_DEF_LIST) { int major, minor; /* initialize core GLX 1.2 */ if (_glewInit_GLX_VERSION_1_2(GLEW_CONTEXT_ARG_VAR_INIT)) return GLEW_ERROR_GLX_VERSION_11_ONLY; /* initialize flags */ CONST_CAST(GLXEW_VERSION_1_0) = GL_TRUE; CONST_CAST(GLXEW_VERSION_1_1) = GL_TRUE; CONST_CAST(GLXEW_VERSION_1_2) = GL_TRUE; CONST_CAST(GLXEW_VERSION_1_3) = GL_TRUE; CONST_CAST(GLXEW_VERSION_1_4) = GL_TRUE; /* query GLX version */ glXQueryVersion(glXGetCurrentDisplay(), &major, &minor); if (major == 1 && minor <= 3) { switch (minor) { case 3: CONST_CAST(GLXEW_VERSION_1_4) = GL_FALSE; break; case 2: CONST_CAST(GLXEW_VERSION_1_4) = GL_FALSE; CONST_CAST(GLXEW_VERSION_1_3) = GL_FALSE; break; default: return GLEW_ERROR_GLX_VERSION_11_ONLY; break; } } /* initialize extensions */ #ifdef GLX_VERSION_1_3 if (glewExperimental || GLXEW_VERSION_1_3) CONST_CAST(GLXEW_VERSION_1_3) = !_glewInit_GLX_VERSION_1_3(GLEW_CONTEXT_ARG_VAR_INIT); #endif /* GLX_VERSION_1_3 */ #ifdef GLX_ARB_get_proc_address CONST_CAST(GLXEW_ARB_get_proc_address) = glxewGetExtension("GLX_ARB_get_proc_address"); #endif /* GLX_ARB_get_proc_address */ return GLEW_OK; } #endif /* !__APPLE__ || GLEW_APPLE_GLX */ /* ------------------------------------------------------------------------ */ const GLubyte* glewGetErrorString (GLenum error) { static const GLubyte* _glewErrorString[] = { (const GLubyte*)"No error", (const GLubyte*)"Missing GL version", (const GLubyte*)"GL 1.1 and up are not supported", (const GLubyte*)"GLX 1.2 and up are not supported", (const GLubyte*)"Unknown error" }; const int max_error = sizeof(_glewErrorString)/sizeof(*_glewErrorString) - 1; return _glewErrorString[(int)error > max_error ? max_error : (int)error]; } const GLubyte* glewGetString (GLenum name) { static const GLubyte* _glewString[] = { (const GLubyte*)NULL, (const GLubyte*)"1.5.0", (const GLubyte*)"1", (const GLubyte*)"5", (const GLubyte*)"0" }; const int max_string = sizeof(_glewString)/sizeof(*_glewString) - 1; return _glewString[(int)name > max_string ? 0 : (int)name]; } /* ------------------------------------------------------------------------ */ GLboolean glewExperimental = GL_FALSE; #if !defined(GLEW_MX) #if defined(_WIN32) extern GLenum wglewContextInit (void); #elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) /* _UNIX */ extern GLenum glxewContextInit (void); #endif /* _WIN32 */ GLenum glewInit () { GLenum r; if ( (r = glewContextInit()) ) return r; #if defined(_WIN32) return wglewContextInit(); #elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) /* _UNIX */ return glxewContextInit(); #else return r; #endif /* _WIN32 */ } #endif /* !GLEW_MX */ #ifdef GLEW_MX GLboolean glewContextIsSupported (GLEWContext* ctx, const char* name) #else GLboolean glewIsSupported (const char* name) #endif { GLubyte* pos = (GLubyte*)name; GLuint len = _glewStrLen(pos); GLboolean ret = GL_TRUE; while (ret && len > 0) { if (_glewStrSame1(&pos, &len, (const GLubyte*)"GL_", 3)) { if (_glewStrSame2(&pos, &len, (const GLubyte*)"VERSION_", 8)) { #ifdef GL_VERSION_1_2 if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_2", 3)) { ret = GLEW_VERSION_1_2; continue; } #endif #ifdef GL_VERSION_1_3 if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_3", 3)) { ret = GLEW_VERSION_1_3; continue; } #endif #ifdef GL_VERSION_1_4 if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_4", 3)) { ret = GLEW_VERSION_1_4; continue; } #endif #ifdef GL_VERSION_1_5 if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_5", 3)) { ret = GLEW_VERSION_1_5; continue; } #endif #ifdef GL_VERSION_2_0 if (_glewStrSame3(&pos, &len, (const GLubyte*)"2_0", 3)) { ret = GLEW_VERSION_2_0; continue; } #endif #ifdef GL_VERSION_2_1 if (_glewStrSame3(&pos, &len, (const GLubyte*)"2_1", 3)) { ret = GLEW_VERSION_2_1; continue; } #endif } if (_glewStrSame2(&pos, &len, (const GLubyte*)"ARB_", 4)) { #ifdef GL_ARB_pixel_buffer_object if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_buffer_object", 19)) { ret = GLEW_ARB_pixel_buffer_object; continue; } #endif #ifdef GL_ARB_vertex_buffer_object if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_buffer_object", 20)) { ret = GLEW_ARB_vertex_buffer_object; continue; } #endif } if (_glewStrSame2(&pos, &len, (const GLubyte*)"SGIS_", 5)) { #ifdef GL_SGIS_texture_lod if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_lod", 11)) { ret = GLEW_SGIS_texture_lod; continue; } #endif } } ret = (len == 0); } return ret; } #if defined(_WIN32) #if defined(GLEW_MX) GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name) #else GLboolean wglewIsSupported (const char* name) #endif { GLubyte* pos = (GLubyte*)name; GLuint len = _glewStrLen(pos); GLboolean ret = GL_TRUE; while (ret && len > 0) { if (_glewStrSame1(&pos, &len, (const GLubyte*)"WGL_", 4)) { if (_glewStrSame2(&pos, &len, (const GLubyte*)"ARB_", 4)) { #ifdef WGL_ARB_extensions_string if (_glewStrSame3(&pos, &len, (const GLubyte*)"extensions_string", 17)) { ret = WGLEW_ARB_extensions_string; continue; } #endif } if (_glewStrSame2(&pos, &len, (const GLubyte*)"EXT_", 4)) { #ifdef WGL_EXT_extensions_string if (_glewStrSame3(&pos, &len, (const GLubyte*)"extensions_string", 17)) { ret = WGLEW_EXT_extensions_string; continue; } #endif } } ret = (len == 0); } return ret; } #elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX) #if defined(GLEW_MX) GLboolean glxewContextIsSupported (GLXEWContext* ctx, const char* name) #else GLboolean glxewIsSupported (const char* name) #endif { GLubyte* pos = (GLubyte*)name; GLuint len = _glewStrLen(pos); GLboolean ret = GL_TRUE; while (ret && len > 0) { if(_glewStrSame1(&pos, &len, (const GLubyte*)"GLX_", 4)) { if (_glewStrSame2(&pos, &len, (const GLubyte*)"VERSION_", 8)) { #ifdef GLX_VERSION_1_2 if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_2", 3)) { ret = GLXEW_VERSION_1_2; continue; } #endif #ifdef GLX_VERSION_1_3 if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_3", 3)) { ret = GLXEW_VERSION_1_3; continue; } #endif #ifdef GLX_VERSION_1_4 if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_4", 3)) { ret = GLXEW_VERSION_1_4; continue; } #endif } if (_glewStrSame2(&pos, &len, (const GLubyte*)"ARB_", 4)) { #ifdef GLX_ARB_get_proc_address if (_glewStrSame3(&pos, &len, (const GLubyte*)"get_proc_address", 16)) { ret = GLXEW_ARB_get_proc_address; continue; } #endif } } ret = (len == 0); } return ret; } #endif /* _WIN32 */ quesoglc-0.7.2/src/transform.c0000644000175000017500000002131110764574550013244 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: transform.c 621 2007-03-31 18:05:49Z bcoconni $ */ /** \file * defines the so-called "Transformation commands" described in chapter 3.9 * of the GLC specs. */ /** \defgroup transform Transformation commands * The GLC transformation commands modify the value of \b GLC_BITMAP_MATRIX. * Glyph coordinates are defined in the em coordinate system. When the value * of \b GLC_RENDER_STYLE is \b GLC_BITMAP, GLC uses the 2x2 * \b GLC_BITMAP_MATRIX to transform layouts from the em coordinate system to * the GL raster coordinate system in which bitmaps are drawn. * * When the value of the variable \b GLC_RENDER_STYLE is not \b GLC_BITMAP, * GLC performs no transformations on glyph coordinates. In this case, GLC * uses em coordinates directly as GL world coordinates when drawing a layout, * and it is the responsibility of the GLC client to issue GL commands that * set up the appropriate GL transformations. * * There is a stack of matrices for \b GLC_BITMAP_MATRIX, the stack depth is * at least 32 (that is, there is a stack of at least 32 matrices). Matrices * can be pushed or popped in the stack with glcPushMatrixQSO() and * glcPopMatrixQSO(). The maximum depth is implementation specific but can be * retrieved by calling glcGeti() with \b GLC_MAX_MATRIX_STACK_DEPTH_QSO. The * number of matrices that are currently stored in the stack can be retrieved * by calling glcGeti() with \b GLC_MATRIX_STACK_DEPTH_QSO. */ #include #include "internal.h" #define GLC_PI 3.1415926535 /** \ingroup transform * This command assigns the value [1 0 0 1] to the floating point vector * variable \b GLC_BITMAP_MATRIX. * \sa glcGetfv() with argument \b GLC_BITMAP_MATRIX * \sa glcLoadMatrix() * \sa glcMultMatrix() * \sa glcRotate() * \sa glcScale() */ void APIENTRY glcLoadIdentity(void) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } ctx->bitmapMatrix[0] = 1.; ctx->bitmapMatrix[1] = 0.; ctx->bitmapMatrix[2] = 0.; ctx->bitmapMatrix[3] = 1.; } /** \ingroup transform * This command assigns the value [inMatrix[0] inMatrix[1] inMatrix[2] * inMatrix[3]] to the floating point vector variable \b GLC_BITMAP_MATRIX. * * \param inMatrix The value to assign to \b GLC_BITMAP_MATRIX * \sa glcGetfv() with argument \b GLC_BITMAP_MATRIX * \sa glcLoadIdentity() * \sa glcMultMatrix() * \sa glcRotate() * \sa glcScale() */ void APIENTRY glcLoadMatrix(const GLfloat *inMatrix) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); assert(inMatrix); /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } memcpy(ctx->bitmapMatrix, inMatrix, 4 * sizeof(GLfloat)); } /** \ingroup transform * This command multiply the floating point vector variable * \b GLC_BITMAP_MATRIX by the incoming matrix \e inMatrix. * * \param inMatrix A pointer to a 2x2 matrix stored in column-major order * as 4 consecutives values. * \sa glcGetfv() with argument \b GLC_BITMAP_MATRIX * \sa glcLoadIdentity() * \sa glcLoadMatrix() * \sa glcRotate() * \sa glcScale() */ void APIENTRY glcMultMatrix(const GLfloat *inMatrix) { __GLCcontext *ctx = NULL; GLfloat tempMatrix[4]; GLC_INIT_THREAD(); assert(inMatrix); /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } memcpy(tempMatrix, ctx->bitmapMatrix, 4 * sizeof(GLfloat)); ctx->bitmapMatrix[0] = tempMatrix[0] * inMatrix[0] + tempMatrix[2] * inMatrix[1]; ctx->bitmapMatrix[1] = tempMatrix[1] * inMatrix[0] + tempMatrix[3] * inMatrix[1]; ctx->bitmapMatrix[2] = tempMatrix[0] * inMatrix[2] + tempMatrix[2] * inMatrix[3]; ctx->bitmapMatrix[3] = tempMatrix[1] * inMatrix[2] + tempMatrix[3] * inMatrix[3]; } /** \ingroup transform * This command assigns the value [a b c d] to the floating point vector * variable \b GLC_BITMAP_MATRIX, where \e inAngle is measured in degrees, * \f$ \theta = inAngle * \pi / 180 \f$ and \n * \f$ \left [ \begin {array}{ll} a & b \\ c & d \\ \end {array} \right ] * = \left [ \begin {array}{ll} GLC\_BITMAP\_MATRIX[0] & GLC\_BITMAP\_MATRIX[2] * \\ GLC\_BITMAP\_MATRIX[1] & GLC\_BITMAP\_MATRIX[3] \\ \end{array} * \right ] * \left [ \begin {array}{ll} cos \theta & sin \theta \\ * -sin \theta & cos\theta \\ \end{array} \right ] * \f$ * \param inAngle The angle of rotation around the Z axis, in degrees. * \sa glcGetfv() with argument \b GLC_BITMAP_MATRIX * \sa glcLoadIdentity() * \sa glcLoadMatrix() * \sa glcMultMatrix() * \sa glcScale() */ void APIENTRY glcRotate(GLfloat inAngle) { GLfloat tempMatrix[4]; GLfloat radian = inAngle * GLC_PI / 180.; GLfloat sine = sin(radian); GLfloat cosine = cos(radian); tempMatrix[0] = cosine; tempMatrix[1] = sine; tempMatrix[2] = -sine; tempMatrix[3] = cosine; glcMultMatrix(tempMatrix); } /** \ingroup transform * This command produces a general scaling along the \b x and \b y * axes, that is, it assigns the value [a b c d] to the floating point * vector variable \b GLC_BITMAP_MATRIX, where \n * \f$ \left [ \begin {array}{ll} a & b \\ c & d \\ \end {array} \right ] * = \left [ \begin {array}{ll} GLC\_BITMAP\_MATRIX[0] & GLC\_BITMAP\_MATRIX[2] * \\ GLC\_BITMAP\_MATRIX[1] & GLC\_BITMAP\_MATRIX[3] \\ \end{array} * \right ] * \left [ \begin {array}{ll} inX & 0 \\ * 0 & inY \\ \end{array} \right ] * \f$ * \param inX The scale factor along the \b x axis * \param inY The scale factor along the \b y axis * \sa glcGetfv() with argument \b GLC_BITMAP_MATRIX * \sa glcLoadIdentity() * \sa glcLoadMatrix() * \sa glcMultMatrix() * \sa glcRotate() */ void APIENTRY glcScale(GLfloat inX, GLfloat inY) { GLfloat tempMatrix[4]; tempMatrix[0] = inX; tempMatrix[1] = 0.; tempMatrix[2] = 0.; tempMatrix[3] = inY; glcMultMatrix(tempMatrix); } /** \ingroup transform * This command pushes the stack down by one, duplicating the current * \b GLC_BITMAP_MATRIX in both the top of the stack and the entry below it. * Pushing a matrix onto a full stack generates the error * \b GLC_STACK_OVERFLOW_QSO. * \sa glcPopMatrixQSO() * \sa glcGeti() with argument \b GLC_MATRIX_STACK_DEPTH_QSO * \sa glcGeti() with argument \b GLC_MAX_MATRIX_STACK_DEPTH_QSO */ void APIENTRY glcPushMatrixQSO(void) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } if (ctx->bitmapMatrixStackDepth >= GLC_MAX_MATRIX_STACK_DEPTH) { __glcRaiseError(GLC_STACK_OVERFLOW_QSO); return; } memcpy(ctx->bitmapMatrix+4, ctx->bitmapMatrix, 4*sizeof(GLfloat)); ctx->bitmapMatrix += 4; ctx->bitmapMatrixStackDepth++; return; } /** \ingroup transform * This command pops the top entry off the stack, replacing the current * \b GLC_BITMAP_MATRIX with the matrix that was the second entry in the * stack. * Popping a matrix off a stack with only one entry generates the error * \b GLC_STACK_OVERFLOW_QSO. * \sa glcPushMatrixQSO() * \sa glcGeti() with argument \b GLC_MATRIX_STACK_DEPTH_QSO * \sa glcGeti() with argument \b GLC_MAX_MATRIX_STACK_DEPTH_QSO */ void APIENTRY glcPopMatrixQSO(void) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } if (ctx->bitmapMatrixStackDepth <= 1) { __glcRaiseError(GLC_STACK_UNDERFLOW_QSO); return; } ctx->bitmapMatrix -= 4; ctx->bitmapMatrixStackDepth--; return; } quesoglc-0.7.2/src/misc.c0000644000175000017500000003676311162160035012163 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: misc.c 887 2009-03-24 01:03:11Z bcoconni $ */ /** \file * defines miscellaneous utility routines used throughout QuesoGLC. */ #include #include "internal.h" #ifdef DEBUGMODE GLCAPI GLuint __glcMemAllocCount = 0; GLCAPI GLuint __glcMemAllocTrigger = 0; GLCAPI GLboolean __glcMemAllocFailOnce = GL_TRUE; #endif /* QuesoGLC own allocation and memory management routines */ void* __glcMalloc(size_t size) { #ifdef DEBUGMODE __glcMemAllocCount++; if (__glcMemAllocFailOnce) { if (__glcMemAllocCount == __glcMemAllocTrigger) return NULL; } else if (__glcMemAllocCount >= __glcMemAllocTrigger) return NULL; #endif return malloc(size); } void __glcFree(void *ptr) { /* Not all implementations of free() accept NULL. Moreover this allows to * detect useless calls. */ assert(ptr); free(ptr); } void* __glcRealloc(void *ptr, size_t size) { #ifdef DEBUGMODE __glcMemAllocCount++; if (__glcMemAllocFailOnce) { if (__glcMemAllocCount == __glcMemAllocTrigger) return NULL; } else if (__glcMemAllocCount >= __glcMemAllocTrigger) return NULL; #endif return realloc(ptr, size); } /* Find a token in a list of tokens separated by 'separator' */ GLCchar8* __glcFindIndexList(GLCchar8* inString, GLuint inIndex, const GLCchar8* inSeparator) { GLuint occurence = 0; GLCchar8* s = inString; const GLCchar8* sep = inSeparator; if (!inIndex) return s; for (; *s != '\0'; s++) { if (*s == *sep) { occurence++; if (occurence == inIndex) break; } } return (GLCchar8 *) s; } #ifndef HAVE_TLS /* Each thread has to store specific informations so they can be retrieved * later. __glcGetThreadArea() returns a struct which contains thread specific * info for GLC. * If the '__GLCthreadArea' of the current thread does not exist, it is created * and initialized. * IMPORTANT NOTE : __glcGetThreadArea() must never use __glcMalloc() and * __glcFree() since those functions could use the exceptContextStack * before it is initialized. */ __GLCthreadArea* __glcGetThreadArea(void) { __GLCthreadArea *area = NULL; #ifdef __WIN32__ area = (__GLCthreadArea*)TlsGetValue(__glcCommonArea.threadKey); #else area = (__GLCthreadArea*)pthread_getspecific(__glcCommonArea.threadKey); #endif if (area) return area; area = (__GLCthreadArea*)malloc(sizeof(__GLCthreadArea)); if (!area) return NULL; area->currentContext = NULL; area->errorState = GLC_NONE; area->lockState = 0; area->exceptionStack.head = NULL; area->exceptionStack.tail = NULL; area->failedTry = GLC_NO_EXC; #ifdef __WIN32__ if (!TlsSetValue(__glcCommonArea.threadKey, (LPVOID)area)) { free(area); return NULL; } #else pthread_setspecific(__glcCommonArea.threadKey, (void*)area); #endif #ifdef __WIN32__ if (__glcCommonArea.threadID == GetCurrentThreadId()) #else if (pthread_equal(__glcCommonArea.threadID, pthread_self())) #endif __glcThreadArea = area; return area; } #endif /* HAVE_TLS */ #ifndef HAVE_TLS /* Raise an error. This function must be called each time the current error * of the issuing thread must be set */ void __glcRaiseError(GLCenum inError) { GLCenum error = GLC_NONE; __GLCthreadArea *area = NULL; area = GLC_GET_THREAD_AREA(); assert(area); /* An error can only be raised if the current error value is GLC_NONE. * However, when inError == GLC_NONE then we must force the current error * value to GLC_NONE whatever its previous value was. */ error = area->errorState; if (!error || !inError) area->errorState = inError; } #endif /* HAVE_TLS */ #ifndef HAVE_TLS /* Get the current context of the issuing thread */ __GLCcontext* __glcGetCurrent(void) { __GLCthreadArea *area = NULL; area = __glcGetThreadArea(); /* Don't use GLC_GET_THREAD_AREA */ assert(area); return area->currentContext; } #endif /* Process the character in order to find a font that maps the code and to * render the corresponding glyph. Replacement code and '' format * are issued if necessary. The previous code is updated accordingly. * 'inCode' must be given in UCS-4 format */ void* __glcProcessChar(__GLCcontext *inContext, GLint inCode, __GLCcharacter* inPrevCode, GLboolean inIsRTL, __glcProcessCharFunc inProcessCharFunc, void* inProcessCharData) { GLint repCode = 0; __GLCfont* font = NULL; void* ret = NULL; if (!inCode) return NULL; /* Get a font that maps inCode */ font = __glcContextGetFont(inContext, inCode); if (font) { /* A font has been found */ if (font != inPrevCode->font) inPrevCode->code = 0; /* The font has changed, kerning must be disabled */ ret = inProcessCharFunc(inCode, inPrevCode->code, inIsRTL, font, inContext, inProcessCharData, GL_FALSE); inPrevCode->code = inCode; inPrevCode->font = font; return ret; } /* __glcCtxGetFont() can not find a font that maps inCode, we then attempt to * produce an alternate rendering. */ /* If the variable GLC_REPLACEMENT_CODE is nonzero, and __glcCtxGetFont() * finds a font that maps the replacement code, we now render the character * that the replacement code is mapped to */ repCode = inContext->stringState.replacementCode; font = __glcContextGetFont(inContext, repCode); if (repCode && font) { if (font != inPrevCode->font) inPrevCode->code = 0; /* The font has changed, kerning must be disabled */ ret = inProcessCharFunc(repCode, inPrevCode->code, inIsRTL, font, inContext, inProcessCharData, GL_FALSE); inPrevCode->code = inCode; inPrevCode->font = font; return ret; } else { /* If we get there, we failed to render both the character that inCode maps * to and the replacement code. Now, we will try to render the character * sequence "\", where '\' is the character REVERSE SOLIDUS * (U+5C), '<' is the character LESS-THAN SIGN (U+3C), '>' is the character * GREATER-THAN SIGN (U+3E), and 'hexcode' is inCode represented as a * sequence of hexadecimal digits. The sequence has no leading zeros, and * alphabetic digits are in upper case. The GLC measurement commands treat * the sequence as a single character. */ char buf[11]; GLint i = 0; GLint n = 0; /* Check if a font maps hexadecimal digits */ #ifdef _MSC_VER n = sprintf_s(buf, 11, "\\<%X>", (int)inCode); if (n < 0) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } #else n = snprintf(buf, 11, "\\<%X>", (int)inCode); #endif for (i = 0; i < n; i++) { if (!__glcContextGetFont(inContext, buf[i])) /* The code is not rendered, the previous code is thus left unchanged */ return NULL; } /* Render the '\' sequence */ for (i = 0; i < n; i++) { GLint pos = inIsRTL ? n-i-1 : i; font = __glcContextGetFont(inContext, buf[pos]); if (font != inPrevCode->font) inPrevCode->code = 0; /*The font has changed, kerning must be disabled*/ ret = inProcessCharFunc(buf[pos], inPrevCode->code, inIsRTL, font, inContext, inProcessCharData, GL_TRUE); inPrevCode->code = buf[pos]; inPrevCode->font = font; } return ret; } } /* Store an 4x4 identity matrix in 'm' */ static void __glcMakeIdentity(GLfloat* m) { m[0+4*0] = 1; m[0+4*1] = 0; m[0+4*2] = 0; m[0+4*3] = 0; m[1+4*0] = 0; m[1+4*1] = 1; m[1+4*2] = 0; m[1+4*3] = 0; m[2+4*0] = 0; m[2+4*1] = 0; m[2+4*2] = 1; m[2+4*3] = 0; m[3+4*0] = 0; m[3+4*1] = 0; m[3+4*2] = 0; m[3+4*3] = 1; } /* Invert a 4x4 matrix stored in inMatrix. The result is stored in outMatrix * It uses the Gauss-Jordan elimination method */ static GLboolean __glcInvertMatrix(GLfloat* inMatrix, GLfloat* outMatrix) { int i, j, k, swap; GLfloat t; GLfloat temp[4][4]; for (i=0; i<4; i++) { for (j=0; j<4; j++) { temp[i][j] = inMatrix[i*4+j]; } } __glcMakeIdentity(outMatrix); for (i = 0; i < 4; i++) { /* Look for largest element in column */ swap = i; for (j = i + 1; j < 4; j++) { if (fabs(temp[j][i]) > fabs(temp[i][i])) { swap = j; } } if (swap != i) { /* Swap rows */ for (k = 0; k < 4; k++) { t = temp[i][k]; temp[i][k] = temp[swap][k]; temp[swap][k] = t; t = outMatrix[i*4+k]; outMatrix[i*4+k] = outMatrix[swap*4+k]; outMatrix[swap*4+k] = t; } } if (fabs(temp[i][i]) < GLC_EPSILON) { /* No non-zero pivot. The matrix is singular, which shouldn't * happen. This means the user gave us a bad matrix. */ return GL_FALSE; } t = temp[i][i]; for (k = 0; k < 4; k++) { temp[i][k] /= t; outMatrix[i*4+k] /= t; } for (j = 0; j < 4; j++) { if (j != i) { t = temp[j][i]; for (k = 0; k < 4; k++) { temp[j][k] -= temp[i][k]*t; outMatrix[j*4+k] -= outMatrix[i*4+k]*t; } } } } return GL_TRUE; } /* Mutiply two 4x4 matrices, the operands are stored in inMatrix1 and inMatrix2 * The result is stored in outMatrix which can be neither inMatrix1 nor * inMatrix2. */ static void __glcMultMatrices(GLfloat* inMatrix1, GLfloat* inMatrix2, GLfloat* outMatrix) { int i, j; for (i = 0; i < 4; i++) { for (j = 0; j < 4; j++) { outMatrix[i*4+j] = inMatrix1[i*4+0]*inMatrix2[0*4+j] + inMatrix1[i*4+1]*inMatrix2[1*4+j] + inMatrix1[i*4+2]*inMatrix2[2*4+j] + inMatrix1[i*4+3]*inMatrix2[3*4+j]; } } } /* Compute an optimal size for the glyph to be rendered on the screen if no * display list is planned to be built. */ void __glcGetScale(__GLCcontext* inContext, GLfloat* outTransformMatrix, GLfloat* outScaleX, GLfloat* outScaleY) { int i = 0; if (inContext->renderState.renderStyle != GLC_BITMAP) { /* Compute the matrix that transforms object space coordinates to viewport * coordinates. If we plan to use object space coordinates, this matrix is * set to identity. */ GLfloat projectionMatrix[16]; GLfloat modelviewMatrix[16]; GLint viewport[4]; glGetIntegerv(GL_VIEWPORT, viewport); glGetFloatv(GL_MODELVIEW_MATRIX, modelviewMatrix); glGetFloatv(GL_PROJECTION_MATRIX, projectionMatrix); __glcMultMatrices(modelviewMatrix, projectionMatrix, outTransformMatrix); if (!inContext->enableState.glObjects && inContext->enableState.hinting) { GLfloat rs[16], m[16]; /* Get the scale factors in each X, Y and Z direction */ GLfloat sx = sqrt(outTransformMatrix[0] * outTransformMatrix[0] +outTransformMatrix[1] * outTransformMatrix[1] +outTransformMatrix[2] * outTransformMatrix[2]); GLfloat sy = sqrt(outTransformMatrix[4] * outTransformMatrix[4] +outTransformMatrix[5] * outTransformMatrix[5] +outTransformMatrix[6] * outTransformMatrix[6]); GLfloat sz = sqrt(outTransformMatrix[8] * outTransformMatrix[8] +outTransformMatrix[9] * outTransformMatrix[9] +outTransformMatrix[10] * outTransformMatrix[10]); GLfloat x = 0., y = 0.; memset(rs, 0, 16 * sizeof(GLfloat)); rs[15] = 1.; for (i = 0; i < 3; i++) { rs[0+4*i] = outTransformMatrix[0+4*i] / sx; rs[1+4*i] = outTransformMatrix[1+4*i] / sy; rs[2+4*i] = outTransformMatrix[2+4*i] / sz; } if (!__glcInvertMatrix(rs, rs)) { *outScaleX = 0.f; *outScaleY = 0.f; return; } __glcMultMatrices(rs, outTransformMatrix, m); x = ((m[0] + m[12])/(m[3] + m[15]) - m[12]/m[15]) * viewport[2] * 0.5; y = ((m[1] + m[13])/(m[3] + m[15]) - m[13]/m[15]) * viewport[3] * 0.5; *outScaleX = sqrt(x*x+y*y); x = ((m[4] + m[12])/(m[7] + m[15]) - m[12]/m[15]) * viewport[2] * 0.5; y = ((m[5] + m[13])/(m[7] + m[15]) - m[13]/m[15]) * viewport[3] * 0.5; *outScaleY = sqrt(x*x+y*y); } else { *outScaleX = GLC_POINT_SIZE; *outScaleY = GLC_POINT_SIZE; } } else { GLfloat determinant = 0., norm = 0.; GLfloat *transform = inContext->bitmapMatrix; /* Compute the norm of the transformation matrix */ for (i = 0; i < 4; i++) { if (fabsf(transform[i]) > norm) norm = fabsf(transform[i]); } determinant = transform[0] * transform[3] - transform[1] * transform[2]; /* If the transformation is degenerated, nothing needs to be rendered */ if (fabsf(determinant) < norm * GLC_EPSILON) { *outScaleX = 0.f; *outScaleY = 0.f; return; } if (inContext->enableState.hinting) { *outScaleX = sqrt(transform[0]*transform[0]+transform[1]*transform[1]); *outScaleY = sqrt(transform[2]*transform[2]+transform[3]*transform[3]); } else { *outScaleX = GLC_POINT_SIZE; *outScaleY = GLC_POINT_SIZE; } } } /* Save the GL State in a structure */ void __glcSaveGLState(__GLCglState* inGLState, __GLCcontext* inContext, GLboolean inAll) { if (inAll || inContext->renderState.renderStyle == GLC_TEXTURE) { inGLState->blend = glIsEnabled(GL_BLEND); glGetIntegerv(GL_BLEND_SRC, &inGLState->blendSrc); glGetIntegerv(GL_BLEND_DST, &inGLState->blendDst); glGetIntegerv(GL_TEXTURE_BINDING_2D, &inGLState->textureID); glGetTexEnviv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, &inGLState->textureEnvMode); if ((!inContext->enableState.glObjects) && GLEW_ARB_pixel_buffer_object) glGetIntegerv(GL_PIXEL_UNPACK_BUFFER_BINDING_ARB, &inGLState->bufferObjectID); } if (inContext->enableState.glObjects && GLEW_ARB_vertex_buffer_object) glGetIntegerv(GL_ARRAY_BUFFER_BINDING_ARB, &inGLState->bufferObjectID); } /* Restore the GL State from a structure */ void __glcRestoreGLState(__GLCglState* inGLState, __GLCcontext* inContext, GLboolean inAll) { if (inAll || inContext->renderState.renderStyle == GLC_TEXTURE) { if (!inGLState->blend) glDisable(GL_BLEND); glBlendFunc(inGLState->blendSrc, inGLState->blendDst); glBindTexture(GL_TEXTURE_2D, inGLState->textureID); glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, inGLState->textureEnvMode); if ((!inContext->enableState.glObjects) && GLEW_ARB_pixel_buffer_object) glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, inGLState->bufferObjectID); } if (inContext->enableState.glObjects && GLEW_ARB_vertex_buffer_object) glBindBufferARB(GL_ARRAY_BUFFER_ARB, inGLState->bufferObjectID); } /* Function for GLEW so that it can get a context */ GLEWAPI GLEWContext* glewGetContext(void) { __GLCcontext* ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return NULL; } return &ctx->glewContext; } /* This function initializes the thread management of QuesoGLC when TLS is not * available. It must be called once (see the macro GLC_INIT_THREAD) */ #ifndef HAVE_TLS void __glcInitThread(void) { #ifdef __WIN32__ __glcCommonArea.threadID = GetCurrentThreadId(); #else __glcCommonArea.threadID = pthread_self(); #endif /* __WIN32__ */ } #endif /* HAVE_TLS */ quesoglc-0.7.2/src/render.c0000644000175000017500000005770611147765052012524 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: render.c 853 2009-01-10 14:02:37Z bcoconni $ */ /** \file * defines the so-called "Rendering commands" described in chapter 3.9 of the * GLC specs. */ /** \defgroup render Rendering commands * These are the commands that render characters to a GL render target. Those * commands gather glyph datas according to the parameters that has been set in * the state machine of GLC, and issue GL commands to render the characters * layout to the GL render target. * * When it renders a character, GLC finds a font that maps the character code * to a character such as LATIN CAPITAL LETTER A, then uses one or more glyphs * from the font to create a graphical layout that represents the character. * Finally, GLC issues a sequence of GL commands to draw the layout. Glyph * coordinates are defined in EM units and are transformed during rendering to * produce the desired mapping of the glyph shape into the GL window coordinate * system. * * If GLC cannot find a font that maps the character code in the list * \b GLC_CURRENT_FONT_LIST, it attemps to produce an alternate rendering. If * the value of the boolean variable \b GLC_AUTO_FONT is set to \b GL_TRUE, GLC * searches for a font that has the character that maps the character code. If * the search succeeds, the font's ID is appended to \b GLC_CURRENT_FONT_LIST * and the character is rendered. * * If there are fonts in the list \b GLC_CURRENT_FONT_LIST, but a match for * the character code cannot be found in any of those fonts, GLC goes through * these steps : * -# If the value of the variable \b GLC_REPLACEMENT_CODE is nonzero, * GLC finds a font that maps the replacement code, and renders the character * that the replacement code is mapped to. * -# If the variable \b GLC_REPLACEMENT_CODE is zero, or if the replacement * code does not result in a match, GLC checks whether a callback function is * defined. If a callback function is defined for \b GLC_OP_glcUnmappedCode, * GLC calls the function. The callback function provides the character code to * the user and allows loading of the appropriate font. After the callback * returns, GLC tries to render the character code again. * -# Otherwise, the command attemps to render the character sequence * \\\, where \\ is the character REVERSE SOLIDUS (U+5C), * \< is the character LESS-THAN SIGN (U+3C), \> is the character GREATER-THAN * SIGN (U+3E), and \e hexcode is the character code represented as a sequence * of hexadecimal digits. The sequence has no leading zeros, and alphabetic * digits are in upper case. The GLC measurement commands treat the sequence * as a single character. * * The rendering commands raise \b GLC_PARAMETER_ERROR if the callback function * defined for \b GLC_OP_glcUnmappedCode is called and the current string type * is \b GLC_UTF8_QSO. * * \note Some rendering commands create and/or use display lists and/or * textures. The IDs of those display lists and textures are stored in the * current GLC context but the display lists and the textures themselves are * managed by the current GL context. In order not to impact the performance of * error-free programs, QuesoGLC does not check if the current GL context is * the same than the one where the display lists and the textures were actually * created. If the current GL context has changed meanwhile, the result of * commands that refer to the corresponding display lists or textures is * undefined. * * As a reminder, the render commands may issue GL commands, hence a GL context * must be bound to the current thread such that the GLC commands produce the * desired result. It is the responsibility of the GLC client to set up the * underlying GL implementation. */ #include "internal.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include #include "texture.h" /* This internal function renders a glyph using the GLC_BITMAP format */ /* TODO : Render Bitmap fonts */ static void __glcRenderCharBitmap(__GLCfont* inFont, __GLCcontext* inContext, GLfloat scale_x, GLfloat scale_y, GLfloat* advance, GLboolean inIsRTL) { GLfloat *transform = inContext->bitmapMatrix; GLint pixWidth = 0, pixHeight = 0; GLubyte* pixBuffer = NULL; GLint pixBoundingBox[4] = {0, 0, 0, 0}; __glcFontGetBitmapSize(inFont, &pixWidth, &pixHeight, scale_x, scale_y, 0, pixBoundingBox, inContext); pixBuffer = (GLubyte *)__glcMalloc(pixWidth * pixHeight); if (!pixBuffer) { __glcRaiseError(GLC_RESOURCE_ERROR); return; } /* render the glyph */ if (!__glcFontGetBitmap(inFont, pixWidth, pixHeight, pixBuffer, inContext)) { __glcFree(pixBuffer); return; } /* Do the actual GL rendering */ glPushClientAttrib(GL_CLIENT_PIXEL_STORE_BIT); glPixelStorei(GL_UNPACK_LSB_FIRST, GL_FALSE); glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0); glPixelStorei(GL_UNPACK_SKIP_ROWS, 0); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); if (inIsRTL) { glBitmap(0, 0, 0, 0, advance[1] * transform[2] - advance[0] * transform[0], advance[1] * transform[3] - advance[0] * transform[1], NULL); glBitmap(pixWidth, pixHeight, -pixBoundingBox[0] >> 6, -pixBoundingBox[1] >> 6, 0., 0., pixBuffer); } else glBitmap(pixWidth, pixHeight, -pixBoundingBox[0] >> 6, -pixBoundingBox[1] >> 6, advance[0] * transform[0] + advance[1] * transform[2], advance[0] * transform[1] + advance[1] * transform[3], pixBuffer); glPopClientAttrib(); __glcFree(pixBuffer); } /* Internal function that is called to do the actual rendering : * 'inCode' must be given in UCS-4 format */ static void* __glcRenderChar(GLint inCode, GLint inPrevCode, GLboolean inIsRTL, __GLCfont* inFont, __GLCcontext* inContext, void* GLC_UNUSED_ARG(inData), GLboolean GLC_UNUSED_ARG(inMultipleChars)) { GLfloat transformMatrix[16]; GLfloat scale_x = GLC_POINT_SIZE; GLfloat scale_y = GLC_POINT_SIZE; __GLCglyph* glyph = NULL; GLfloat sx64 = 0., sy64 = 0.; GLfloat advance[2] = {0., 0.}; assert(inFont); __glcGetScale(inContext, transformMatrix, &scale_x, &scale_y); if ((fabs(scale_x) < GLC_EPSILON) || (fabs(scale_y) < GLC_EPSILON)) return NULL; #ifndef GLC_FT_CACHE if (!__glcFontOpen(inFont, inContext)) return NULL; #endif if (inPrevCode && inContext->enableState.kerning) { GLfloat kerning[2]; GLint leftCode = inIsRTL ? inCode : inPrevCode; GLint rightCode = inIsRTL ? inPrevCode : inCode; if (__glcFontGetKerning(inFont, leftCode, rightCode, kerning, inContext, scale_x, scale_y)) { if (inIsRTL) kerning[0] = -kerning[0]; if (inContext->renderState.renderStyle == GLC_BITMAP) glBitmap(0, 0, 0, 0, kerning[0] * inContext->bitmapMatrix[0] + kerning[1] * inContext->bitmapMatrix[2], kerning[0] * inContext->bitmapMatrix[1] + kerning[1] * inContext->bitmapMatrix[3], NULL); else glTranslatef(kerning[0], kerning[1], 0.f); } } if (!__glcFontGetAdvance(inFont, inCode, advance, inContext, scale_x, scale_y)) { #ifndef GLC_FT_CACHE __glcFontClose(inFont); #endif return NULL; } /* Get and load the glyph which unicode code is identified by inCode */ glyph = __glcFontGetGlyph(inFont, inCode, inContext); if (inContext->enableState.glObjects && !__glcFontPrepareGlyph(inFont, inContext, scale_x, scale_y, glyph->index)) { #ifndef GLC_FT_CACHE __glcFontClose(inFont); #endif return NULL; } sx64 = 64. * scale_x; sy64 = 64. * scale_y; if (inContext->renderState.renderStyle != GLC_BITMAP) { if (inIsRTL) glTranslatef(-advance[0], advance[1], 0.f); /* If the outline contains no point then the glyph represents a space * character and there is no need to continue the process of rendering. */ if (!__glcFontOutlineEmpty(inFont)) { /* Update the advance and return */ if (!inIsRTL) glTranslatef(advance[0], advance[1], 0.f); if (inContext->enableState.glObjects) glyph->isSpacingChar = GL_TRUE; #ifndef GLC_FT_CACHE __glcFontClose(inFont); #endif return NULL; } /* coordinates are given in 26.6 fixed point integer hence we * divide the scale by 2^6 */ if (!inContext->enableState.glObjects) glScalef(1. / sx64, 1. / sy64, 1.f); } /* Call the appropriate function depending on the rendering mode. It first * checks if a display list that draws the desired glyph has already been * defined */ switch(inContext->renderState.renderStyle) { case GLC_BITMAP: __glcRenderCharBitmap(inFont, inContext, scale_x, scale_y, advance, inIsRTL); break; case GLC_TEXTURE: __glcRenderCharTexture(inFont, inContext, scale_x, scale_y, glyph); break; case GLC_LINE: __glcRenderCharScalable(inFont, inContext, transformMatrix, scale_x, scale_y, glyph); break; case GLC_TRIANGLE: __glcRenderCharScalable(inFont, inContext, transformMatrix, scale_x, scale_y, glyph); break; default: __glcRaiseError(GLC_PARAMETER_ERROR); } if (inContext->renderState.renderStyle != GLC_BITMAP) { if (!inContext->enableState.glObjects) glScalef(sx64, sy64, 1.); if (!inIsRTL) glTranslatef(advance[0], advance[1], 0.f); } #ifndef GLC_FT_CACHE __glcFontClose(inFont); #endif return NULL; } /* This internal function is used by both glcRenderString() and * glcRenderCountedString(). The string 'inString' must be sorted in visual * order and stored using UCS4 format. */ static void __glcRenderCountedString(__GLCcontext* inContext, GLCchar32* inString, GLboolean inIsRightToLeft,GLint inCount) { GLint listIndex = 0; GLint i = 0; GLCchar32* ptr = NULL; __GLCglState GLState; __GLCcharacter prevCode = {0, NULL, NULL, {0.f, 0.f}}; GLboolean saveGLObjects = GL_FALSE; GLint shift = 1; __GLCcharacter* chars = NULL; /* Disable the internal management of GL objects when the user is currently * building a display list. */ glGetIntegerv(GL_LIST_INDEX, &listIndex); if (listIndex) { saveGLObjects = inContext->enableState.glObjects; inContext->enableState.glObjects = GL_FALSE; } if (inContext->enableState.glObjects && inContext->renderState.renderStyle != GLC_BITMAP) { chars = (__GLCcharacter*)__glcMalloc(inCount * sizeof(__GLCcharacter)); if (!chars) { __glcRaiseError(GLC_RESOURCE_ERROR); return; } } /* Save the value of the GL parameters */ __glcSaveGLState(&GLState, inContext, GL_FALSE); if (inContext->renderState.renderStyle == GLC_LINE || inContext->renderState.renderStyle == GLC_TRIANGLE) { glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT); glEnableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_TEXTURE_COORD_ARRAY); glDisableClientState(GL_COLOR_ARRAY); glDisableClientState(GL_INDEX_ARRAY); glDisableClientState(GL_NORMAL_ARRAY); glDisableClientState(GL_EDGE_FLAG_ARRAY); } /* Set the texture environment if the render style is GLC_TEXTURE */ if (inContext->renderState.renderStyle == GLC_TEXTURE) { /* Set the new values of the parameters */ glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); if (inContext->enableState.glObjects) { if (inContext->atlas.id) glBindTexture(GL_TEXTURE_2D, inContext->atlas.id); if (GLEW_ARB_vertex_buffer_object) { glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT); if (inContext->atlas.bufferObjectID) { glBindBufferARB(GL_ARRAY_BUFFER_ARB, inContext->atlas.bufferObjectID); glInterleavedArrays(GL_T2F_V3F, 0, NULL); } } } else if (inContext->texture.id) { glBindTexture(GL_TEXTURE_2D, inContext->texture.id); if (GLEW_ARB_pixel_buffer_object && inContext->texture.bufferObjectID) glBindBufferARB(GL_PIXEL_UNPACK_BUFFER, inContext->texture.bufferObjectID); } } /* Render the string */ ptr = inString; if (inIsRightToLeft) { ptr += inCount - 1; shift = -1; } if (inContext->enableState.glObjects && inContext->renderState.renderStyle != GLC_BITMAP) { __GLCfont* font = NULL; __GLCglyph* glyph = NULL; int length = 0; int j = 0; GLuint GLObjectIndex = inContext->renderState.renderStyle - 0x101; FT_ListNode node = NULL; float resolution = (inContext->renderState.resolution < GLC_EPSILON ? 72. : inContext->renderState.resolution) / 72.; if (inContext->renderState.renderStyle == GLC_TRIANGLE && inContext->enableState.extrude) GLObjectIndex++; for (i = 0; i < inCount; i++) { if (*ptr >= 32) { for (node = inContext->currentFontList.head; node ; node = node->next) { font = (__GLCfont*)node->data; glyph = __glcCharMapGetGlyph(font->charMap, *ptr); if (glyph) { if (!glyph->glObject[GLObjectIndex] && !glyph->isSpacingChar) continue; if (!glyph->isSpacingChar && (inContext->renderState.renderStyle == GLC_TEXTURE)) FT_List_Up(&inContext->atlasList, (FT_ListNode)glyph->textureObject); chars[length].glyph = glyph; chars[length].advance[0] = glyph->advance[0]; chars[length].advance[1] = glyph->advance[1]; if (inContext->enableState.kerning) { if (prevCode.code && prevCode.font == font) { GLfloat kerning[2]; GLint leftCode = inIsRightToLeft ? *ptr : prevCode.code; GLint rightCode = inIsRightToLeft ? prevCode.code : *ptr; if (__glcFontGetKerning(font, leftCode, rightCode, kerning, inContext, GLC_POINT_SIZE, GLC_POINT_SIZE)) { if (!length) { if (inIsRightToLeft) glTranslatef(-kerning[0], kerning[1], 0.f); else glTranslatef(kerning[0], kerning[1], 0.f); } else { if (inIsRightToLeft) chars[length - 1].advance[0] -= kerning[0]; else chars[length - 1].advance[0] += kerning[0]; chars[length - 1].advance[1] += kerning[1]; } } } } prevCode.font = font; prevCode.code = *ptr; if (glyph->isSpacingChar) chars[length].code = 32; else chars[length].code = *ptr; length++; break; } } } if(!node || (i == inCount-1)) { glScalef(resolution, resolution, 1.f); for (j = 0; j < length; j++) { if (inIsRightToLeft) glTranslatef(-chars[j].advance[0], chars[j].advance[1], 0.); if (chars[j].code != 32) { glyph = chars[j].glyph; switch(inContext->renderState.renderStyle) { case GLC_TEXTURE: if (GLEW_ARB_vertex_buffer_object) { glNormal3f(0.f, 0.f, 1.f); glDrawArrays(GL_QUADS, glyph->textureObject->position * 4, 4); } else glCallList(glyph->glObject[1]); break; case GLC_LINE: if (GLEW_ARB_vertex_buffer_object && glyph->glObject[0]) { int k = 0; glBindBufferARB(GL_ARRAY_BUFFER_ARB, glyph->glObject[0]); glVertexPointer(2, GL_FLOAT, 0, NULL); glNormal3f(0.f, 0.f, 1.f); for (k = 0; k < glyph->nContour; k++) glDrawArrays(GL_LINE_LOOP, glyph->contours[k], glyph->contours[k+1] - glyph->contours[k]); break; } glCallList(glyph->glObject[0]); break; case GLC_TRIANGLE: glCallList(glyph->glObject[GLObjectIndex]); break; } } if (!inIsRightToLeft) glTranslatef(chars[j].advance[0], chars[j].advance[1], 0.); } if (!node) __glcProcessChar(inContext, *ptr, &prevCode, inIsRightToLeft, __glcRenderChar, NULL); glScalef(1./resolution, 1./resolution, 1.f); length = 0; } ptr += shift; } } else { for (i = 0; i < inCount; i++) { if (*ptr >= 32) __glcProcessChar(inContext, *ptr, &prevCode, inIsRightToLeft, __glcRenderChar, NULL); ptr += shift; } } /* Restore the values of the GL state if needed */ __glcRestoreGLState(&GLState, inContext, GL_FALSE); if (inContext->renderState.renderStyle != GLC_BITMAP) { if (inContext->enableState.glObjects) __glcFree(chars); if (inContext->renderState.renderStyle != GLC_TEXTURE) glPopClientAttrib(); else if (inContext->enableState.glObjects && GLEW_ARB_vertex_buffer_object) glPopClientAttrib(); } if (listIndex) inContext->enableState.glObjects = saveGLObjects; } /** \ingroup render * This command renders the character that \e inCode is mapped to. * \param inCode The character to render * \sa glcRenderString() * \sa glcRenderCountedString() * \sa glcReplacementCode() * \sa glcRenderStyle() * \sa glcCallbackFunc() */ void APIENTRY glcRenderChar(GLint inCode) { __GLCcontext *ctx = NULL; GLint code = 0; GLC_INIT_THREAD(); /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } /* Get the character code converted to the UCS-4 format */ code = __glcConvertGLintToUcs4(ctx, inCode); if (code < 32) return; /* Skip control characters and unknown characters */ __glcRenderCountedString(ctx, (GLCchar32*)&code, GL_FALSE, 1); } /** \ingroup render * This command is identical to the command glcRenderChar(), except that it * renders a string of characters. The string comprises the first \e inCount * elements of the array \e inString, which need not be followed by a zero * element. * * The command raises \b GLC_PARAMETER_ERROR if \e inCount is less than zero. * \param inCount The number of elements in the string to be rendered * \param inString The array of characters from which to render \e inCount * elements. * \sa glcRenderChar() * \sa glcRenderString() */ void APIENTRY glcRenderCountedString(GLint inCount, const GLCchar *inString) { __GLCcontext *ctx = NULL; GLCchar32* UinString = NULL; GLboolean isRightToLeft = GL_FALSE; GLC_INIT_THREAD(); /* Check if inCount is positive */ if (inCount < 0) { __glcRaiseError(GLC_PARAMETER_ERROR); return; } /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } /* If inString is NULL then there is no point in continuing */ if (!inString) return; /* Creates a Unicode string based on the current string type. Basically, * that means that inString is read in the current string format. */ UinString = __glcConvertCountedStringToVisualUcs4(ctx, &isRightToLeft, inString, inCount); if (!UinString) return; __glcRenderCountedString(ctx, UinString, isRightToLeft, inCount); } /** \ingroup render * This command is identical to the command glcRenderCountedString(), except * that \e inString is zero terminated, not counted. * \param inString A zero-terminated string of characters. * \sa glcRenderChar() * \sa glcRenderCountedString() */ void APIENTRY glcRenderString(const GLCchar *inString) { __GLCcontext *ctx = NULL; GLCchar32* UinString = NULL; GLboolean isRightToLeft = GL_FALSE; GLint length = 0; GLC_INIT_THREAD(); /* Check if the current thread owns a context state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } /* If inString is NULL then there is no point in continuing */ if (!inString) return; /* Creates a Unicode string based on the current string type. Basically, * that means that inString is read in the current string format. */ UinString = __glcConvertToVisualUcs4(ctx, &isRightToLeft, &length, inString); if (!UinString) return; __glcRenderCountedString(ctx, UinString, isRightToLeft, length); } /** \ingroup render * This command assigns the value \e inStyle to the variable * \b GLC_RENDER_STYLE. Legal values for \e inStyle are defined in the table * below : *
* * * * * * * * * * * * * * * * * *
Rendering styles
Name Enumerant
GLC_BITMAP 0x0100
GLC_LINE 0x0101
GLC_TEXTURE 0x0102
GLC_TRIANGLE 0x0103
*
* \param inStyle The value to assign to the variable \b GLC_RENDER_STYLE. * \sa glcGeti() with argument \b GLC_RENDER_STYLE */ void APIENTRY glcRenderStyle(GLCenum inStyle) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Check if inStyle has a legal value */ switch(inStyle) { case GLC_BITMAP: case GLC_LINE: case GLC_TEXTURE: case GLC_TRIANGLE: break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return; } /* Check if the current thread owns a current state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } /* Stores the rendering style */ ctx->renderState.renderStyle = inStyle; return; } /** \ingroup render * This command assigns the value \e inCode to the variable * \b GLC_REPLACEMENT_CODE. The replacement code is the code which is used * whenever glcRenderChar() can not find a font that owns a character which * the parameter \e inCode of glcRenderChar() maps to. * \param inCode An integer to assign to \b GLC_REPLACEMENT_CODE. * \sa glcGeti() with argument \b GLC_REPLACEMENT_CODE * \sa glcRenderChar() */ void APIENTRY glcReplacementCode(GLint inCode) { __GLCcontext *ctx = NULL; GLint code = 0; GLC_INIT_THREAD(); /* Check if the current thread owns a current state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } /* Get the replacement character converted to the UCS-4 format */ code = __glcConvertGLintToUcs4(ctx, inCode); if (code < 0) return; /* Stores the replacement code */ ctx->stringState.replacementCode = code; return; } /** \ingroup render * This command assigns the value \e inVal to the variable \b GLC_RESOLUTION. * It is used to compute the size of characters in pixels from the size in * points. * * The resolution is given in \e dpi (dots per inch). If \e inVal is zero, the * resolution defaults to 72 dpi. * * The command raises \b GLC_PARAMETER_ERROR if \e inVal is negative. * \param inVal A floating point number to be used as resolution. * \sa glcGeti() with argument GLC_RESOLUTION */ void APIENTRY glcResolution(GLfloat inVal) { __GLCcontext *ctx = NULL; FT_ListNode node = NULL; GLC_INIT_THREAD(); /* Negative resolutions are illegal */ if (inVal < 0) { __glcRaiseError(GLC_PARAMETER_ERROR); return; } /* Check if the current thread owns a current state */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } /* Stores the resolution */ ctx->renderState.resolution = inVal; /* Force the measurement caches to be updated */ for (node = ctx->fontList.head; node; node = node->next) { __GLCfont* font = (__GLCfont*)node->data; __GLCfaceDescriptor* faceDesc = font->faceDesc; FT_ListNode glyphNode = NULL; for (glyphNode = faceDesc->glyphList.head; glyphNode; glyphNode = glyphNode->next) { __GLCglyph* glyph = (__GLCglyph*)glyphNode->data; glyph->advanceCached = GL_FALSE; glyph->boundingBoxCached = GL_FALSE; } } } quesoglc-0.7.2/src/ofacedesc.c0000644000175000017500000010457411134615032013141 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: ofacedesc.c 870 2009-01-18 12:01:27Z bcoconni $ */ /** \file * defines the object __GLCfaceDescriptor that contains the description of a * face. One of the purpose of this object is to encapsulate the FT_Face * structure from FreeType and to add it some more functionalities. * It also allows to centralize the character map management for easier * maintenance. */ #include #include #include "internal.h" #include FT_GLYPH_H #ifdef GLC_FT_CACHE #include FT_CACHE_H #endif #include FT_OUTLINE_H #include FT_TYPE1_TABLES_H #ifdef FT_XFREE86_H #include FT_XFREE86_H #endif #include FT_BDF_H #ifdef FT_WINFONTS_H #include FT_WINFONTS_H #endif #include FT_SFNT_NAMES_H #include FT_TRUETYPE_IDS_H /* Constructor of the object : it allocates memory and initializes the member * of the new object. * The user must give the name of the face, the character map, if it is a fixed * font or not, the file name and the index of the font in its file. */ __GLCfaceDescriptor* __glcFaceDescCreate(__GLCmaster* inMaster, const GLCchar8* inFace, __GLCcontext* inContext, GLint inCode) { __GLCfaceDescriptor* This = NULL; FcObjectSet* objectSet = NULL; FcFontSet *fontSet = NULL; int i = 0; FcPattern* pattern = FcPatternCreate(); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } objectSet = FcObjectSetBuild(FC_FAMILY, FC_FOUNDRY, FC_STYLE, FC_SPACING, FC_FILE, FC_INDEX, FC_OUTLINE, FC_CHARSET, NULL); if (!objectSet) { __glcRaiseError(GLC_RESOURCE_ERROR); FcPatternDestroy(pattern); return NULL; } fontSet = FcFontList(inContext->config, pattern, objectSet); FcObjectSetDestroy(objectSet); FcPatternDestroy(pattern); if (!fontSet) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } for (i = 0; i < fontSet->nfont; i++) { FcChar8* family = NULL; int fixed = 0; FcChar8* foundry = NULL; FcChar8* style = NULL; FcBool outline = FcFalse; FcCharSet* charSet = NULL; FcResult result = FcResultMatch; FcBool equal = FcFalse; result = FcPatternGetCharSet(fontSet->fonts[i], FC_CHARSET, 0, &charSet); assert(result != FcResultTypeMismatch); if (inCode && !FcCharSetHasChar(charSet, inCode)) continue; /* Check whether the glyphs are outlines */ result = FcPatternGetBool(fontSet->fonts[i], FC_OUTLINE, 0, &outline); assert(result != FcResultTypeMismatch); if (!outline) continue; result = FcPatternGetString(fontSet->fonts[i], FC_FAMILY, 0, &family); assert(result != FcResultTypeMismatch); result = FcPatternGetString(fontSet->fonts[i], FC_FOUNDRY, 0, &foundry); assert(result != FcResultTypeMismatch); result = FcPatternGetInteger(fontSet->fonts[i], FC_SPACING, 0, &fixed); assert(result != FcResultTypeMismatch); if (foundry) pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_FOUNDRY, FcTypeString, foundry, FC_SPACING, FcTypeInteger, fixed, NULL); else pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_SPACING, FcTypeInteger, fixed, NULL); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); FcFontSetDestroy(fontSet); return NULL; } equal = FcPatternEqual(pattern, inMaster->pattern); FcPatternDestroy(pattern); if (equal) { if (inFace) { result = FcPatternGetString(fontSet->fonts[i], FC_STYLE, 0, &style); assert(result != FcResultTypeMismatch); if (strcmp((const char*)style, (const char*)inFace)) continue; } break; } } if (i == fontSet->nfont) { FcFontSetDestroy(fontSet); __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } This = (__GLCfaceDescriptor*)__glcMalloc(sizeof(__GLCfaceDescriptor)); if (!This) { FcFontSetDestroy(fontSet); __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } This->pattern = FcPatternDuplicate(fontSet->fonts[i]); FcFontSetDestroy(fontSet); if (!This->pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); __glcFree(This); return NULL; } This->node.prev = NULL; This->node.next = NULL; This->node.data = NULL; This->face = NULL; #ifndef GLC_FT_CACHE This->faceRefCount = 0; #endif This->glyphList.head = NULL; This->glyphList.tail = NULL; return This; } /* Destructor of the object */ void __glcFaceDescDestroy(__GLCfaceDescriptor* This, __GLCcontext* inContext) { FT_ListNode node = NULL; FT_ListNode next = NULL; #ifndef GLC_FT_CACHE assert(!This->faceRefCount && !This->face); #endif /* Don't use FT_List_Finalize here, since __glcGlyphDestroy also destroys * the node itself. */ node = This->glyphList.head; while (node) { next = node->next; __glcGlyphDestroy((__GLCglyph*)node, inContext); node = next; } #if defined(GLC_FT_CACHE) \ && (FREETYPE_MAJOR > 2 \ || (FREETYPE_MAJOR == 2 \ && (FREETYPE_MINOR > 1 \ || (FREETYPE_MINOR == 1 && FREETYPE_PATCH >= 8)))) /* In order to make sure its ID is removed from the FreeType cache */ FTC_Manager_RemoveFaceID(inContext->cache, (FTC_FaceID)This); #endif FcPatternDestroy(This->pattern); __glcFree(This); } #ifndef GLC_FT_CACHE /* Open a face, select a Unicode charmap. __glcFaceDesc maintains a reference * count for each face so that the face is open only once. */ FT_Face __glcFaceDescOpen(__GLCfaceDescriptor* This, __GLCcontext* inContext) { if (!This->faceRefCount) { GLCchar8 *fileName = NULL; int index = 0; FcResult result = FcResultMatch; /* get the file name */ result = FcPatternGetString(This->pattern, FC_FILE, 0, &fileName); assert(result != FcResultTypeMismatch); /* get the index of the font in font file */ result = FcPatternGetInteger(This->pattern, FC_INDEX, 0, &index); assert(result != FcResultTypeMismatch); if (FT_New_Face(inContext->library, (const char*)fileName, index, &This->face)) { /* Unable to load the face file */ __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } /* select a Unicode charmap */ FT_Select_Charmap(This->face, ft_encoding_unicode); This->faceRefCount = 1; } else This->faceRefCount++; return This->face; } /* Close the face and update the reference counter accordingly */ void __glcFaceDescClose(__GLCfaceDescriptor* This) { assert(This->faceRefCount > 0); This->faceRefCount--; if (!This->faceRefCount) { assert(This->face); FT_Done_Face(This->face); This->face = NULL; } } #else /* GLC_FT_CACHE */ /* Callback function used by the FreeType cache manager to open a given face */ FT_Error __glcFileOpen(FTC_FaceID inFile, FT_Library inLibrary, FT_Pointer GLC_UNUSED_ARG(inData), FT_Face* outFace) { __GLCfaceDescriptor* file = (__GLCfaceDescriptor*)inFile; GLCchar8 *fileName = NULL; int fileIndex = 0; FcResult result = FcResultMatch; FT_Error error; /* get the file name */ result = FcPatternGetString(file->pattern, FC_FILE, 0, &fileName); assert(result != FcResultTypeMismatch); /* get the index of the font in font file */ result = FcPatternGetInteger(file->pattern, FC_INDEX, 0, &fileIndex); assert(result != FcResultTypeMismatch); error = FT_New_Face(inLibrary, (const char*)fileName, fileIndex, outFace); if (error) { __glcRaiseError(GLC_RESOURCE_ERROR); return error; } /* select a Unicode charmap */ FT_Select_Charmap(*outFace, ft_encoding_unicode); return error; } #endif /* GLC_FT_CACHE */ /* Return the glyph which corresponds to codepoint 'inCode' */ __GLCglyph* __glcFaceDescGetGlyph(__GLCfaceDescriptor* This, GLint inCode, __GLCcontext* inContext) { FT_Face face = NULL; __GLCglyph* glyph = NULL; FT_ListNode node = NULL; /* Check if the glyph has already been added to the glyph list */ for (node = This->glyphList.head; node; node = node->next) { glyph = (__GLCglyph*)node; if (glyph->codepoint == (GLCulong)inCode) return glyph; } /* Open the face */ #ifdef GLC_FT_CACHE if (FTC_Manager_LookupFace(inContext->cache, (FTC_FaceID)This, &face)) { #else face = __glcFaceDescOpen(This, inContext); if (!face) { #endif __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } /* Create a new glyph */ #ifdef GLC_FT_CACHE glyph = __glcGlyphCreate(FT_Get_Char_Index(face, inCode), inCode); if (!glyph) return NULL; #else glyph = __glcGlyphCreate(FcFreeTypeCharIndex(face, inCode), inCode); if (!glyph) { __glcFaceDescClose(This); return NULL; } #endif /* Append the new glyph to the list of the glyphes of the face and close the * face. */ FT_List_Add(&This->glyphList, (FT_ListNode)glyph); #ifndef GLC_FT_CACHE __glcFaceDescClose(This); #endif return glyph; } /* Load a glyph of the current font face and stores the corresponding data in * the corresponding face. The size of the glyph is given by inScaleX and * inScaleY. 'inGlyphIndex' contains the index of the glyph in the font file. */ GLboolean __glcFaceDescPrepareGlyph(__GLCfaceDescriptor* This, __GLCcontext* inContext, GLfloat inScaleX, GLfloat inScaleY, GLCulong inGlyphIndex) { FT_Int32 loadFlags = FT_LOAD_NO_BITMAP | FT_LOAD_IGNORE_TRANSFORM; #ifdef GLC_FT_CACHE # if FREETYPE_MAJOR == 2 \ && (FREETYPE_MINOR < 1 \ || (FREETYPE_MINOR == 1 && FREETYPE_PATCH < 8)) FTC_FontRec font; # else FTC_ScalerRec scaler; # endif FT_Size size = NULL; #else FT_Error error; #endif /* If GLC_HINTING_QSO is enabled then perform hinting on the glyph while * loading it. */ if (!inContext->enableState.hinting && !inContext->enableState.glObjects) loadFlags |= FT_LOAD_NO_HINTING; /* Open the face */ #ifdef GLC_FT_CACHE # if FREETYPE_MAJOR == 2 \ && (FREETYPE_MINOR < 1 \ || (FREETYPE_MINOR == 1 && FREETYPE_PATCH < 8)) font.face_id = (FTC_FaceID)This; if (inContext->enableState.glObjects) { font.pix_width = (FT_UShort) inScaleX; font.pix_height = (FT_UShort) inScaleY; } else { font.pix_width = (FT_UShort) (inScaleX * (inContext->renderState.resolution < GLC_EPSILON ? 72. : inContext->renderState.resolution) / 72.); font.pix_height = (FT_UShort) (inScaleY * (inContext->renderState.resolution < GLC_EPSILON ? 72. : inContext->renderState.resolution) / 72.); } if (FTC_Manager_Lookup_Size(inContext->cache, &font, &This->face, &size)) { __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } # else scaler.face_id = (FTC_FaceID)This; scaler.width = (FT_UInt)(inScaleX * 64.); scaler.height = (FT_UInt)(inScaleY * 64.); scaler.pixel = (FT_Int)0; if (inContext->enableState.glObjects) { scaler.x_res = 72; scaler.y_res = 72; } else { scaler.x_res = (FT_UInt)(inContext->renderState.resolution < GLC_EPSILON ? 72 : inContext->renderState.resolution); scaler.y_res = (FT_UInt)(inContext->renderState.resolution < GLC_EPSILON ? 72 : inContext->renderState.resolution); } if (FTC_Manager_LookupSize(inContext->cache, &scaler, &size)) { __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } This->face = size->face; # endif /* FREETYPE_MAJOR */ #else if (!__glcFaceDescOpen(This, inContext)) return GL_FALSE; /* Select the size of the glyph */ if (inContext->enableState.glObjects) { error = FT_Set_Char_Size(This->face, (FT_F26Dot6)(inScaleX * 64.), (FT_F26Dot6)(inScaleY * 64.), 0, 0); } else { error = FT_Set_Char_Size(This->face, (FT_F26Dot6)(inScaleX * 64.), (FT_F26Dot6)(inScaleY * 64.), (FT_UInt)inContext->renderState.resolution, (FT_UInt)inContext->renderState.resolution); } if (error) { __glcFaceDescClose(This); __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } #endif /* Load the glyph */ if (FT_Load_Glyph(This->face, inGlyphIndex, loadFlags)) { __glcRaiseError(GLC_RESOURCE_ERROR); #ifndef GLC_FT_CACHE __glcFaceDescClose(This); #endif return GL_FALSE; } return GL_TRUE; } /* Destroy the GL objects of every glyph of the face */ void __glcFaceDescDestroyGLObjects(__GLCfaceDescriptor* This, __GLCcontext* inContext) { FT_ListNode node = NULL; for (node = This->glyphList.head; node; node = node->next) { __GLCglyph* glyph = (__GLCglyph*)node; __glcGlyphDestroyGLObjects(glyph, inContext); } } /* Get the bounding box of a glyph according to the size given by inScaleX and * inScaleY. The result is returned in outVec. 'inGlyphIndex' contains the * index of the glyph in the font file. */ GLfloat* __glcFaceDescGetBoundingBox(__GLCfaceDescriptor* This, GLCulong inGlyphIndex, GLfloat* outVec, GLfloat inScaleX, GLfloat inScaleY, __GLCcontext* inContext) { FT_BBox boundBox; FT_Glyph glyph; assert(outVec); if (!__glcFaceDescPrepareGlyph(This, inContext, inScaleX, inScaleY, inGlyphIndex)) return NULL; /* Get the bounding box of the glyph */ FT_Get_Glyph(This->face->glyph, &glyph); FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &boundBox); /* Transform the bounding box according to the conversion from FT_F26Dot6 to * GLfloat and the size in points of the glyph. */ outVec[0] = (GLfloat) boundBox.xMin / 64. / inScaleX; outVec[2] = (GLfloat) boundBox.xMax / 64. / inScaleX; outVec[1] = (GLfloat) boundBox.yMin / 64. / inScaleY; outVec[3] = (GLfloat) boundBox.yMax / 64. / inScaleY; FT_Done_Glyph(glyph); #ifndef GLC_FT_CACHE __glcFaceDescClose(This); #endif return outVec; } /* Get the advance of a glyph according to the size given by inScaleX and * inScaleY. The result is returned in outVec. 'inGlyphIndex' contains the * index of the glyph in the font file. */ GLfloat* __glcFaceDescGetAdvance(__GLCfaceDescriptor* This, GLCulong inGlyphIndex, GLfloat* outVec, GLfloat inScaleX, GLfloat inScaleY, __GLCcontext* inContext) { assert(outVec); if (!__glcFaceDescPrepareGlyph(This, inContext, inScaleX, inScaleY, inGlyphIndex)) return NULL; /* Transform the advance according to the conversion from FT_F26Dot6 to * GLfloat. */ outVec[0] = (GLfloat) This->face->glyph->advance.x / 64. / inScaleX; outVec[1] = (GLfloat) This->face->glyph->advance.y / 64. / inScaleY; #ifndef GLC_FT_CACHE __glcFaceDescClose(This); #endif return outVec; } /* Use FreeType to determine in which format the face is stored in its file : * Type1, TrueType, OpenType, ... */ const GLCchar8* __glcFaceDescGetFontFormat(__GLCfaceDescriptor* This, __GLCcontext* inContext, GLCenum inAttrib) { static GLCchar8 unknown[] = "Unknown"; #ifndef FT_XFREE86_H static GLCchar8 masterFormat1[] = "Type 1"; static GLCchar8 masterFormat2[] = "BDF"; # ifdef FT_WINFONTS_H static GLCchar8 masterFormat3[] = "Windows FNT"; # endif /* FT_WINFONTS_H */ static GLCchar8 masterFormat4[] = "TrueType/OpenType"; #endif /* FT_XFREE86_H */ FT_Face face = NULL; PS_FontInfoRec afont_info; const char* acharset_encoding = NULL; const char* acharset_registry = NULL; #ifdef FT_WINFONTS_H FT_WinFNT_HeaderRec aheader; #endif GLCuint count = 0; const GLCchar8* result = NULL; /* Open the face */ #ifdef GLC_FT_CACHE if (FTC_Manager_LookupFace(inContext->cache, (FTC_FaceID)This, &face)) { #else face = __glcFaceDescOpen(This, inContext); if (!face) { #endif __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } #ifdef FT_XFREE86_H if (inAttrib == GLC_MASTER_FORMAT) { /* This function is undocumented until FreeType 2.3.0 where it has been * added to the public API. It can be safely used nonetheless as long as * the existence of FT_XFREE86_H is checked. */ result = (const GLCchar8*)FT_Get_X11_Font_Format(face); # ifndef GLC_FT_CACHE __glcFaceDescClose(This); # endif /* GLC_FT_CACHE */ return result; } #endif /* FT_XFREE86_H */ /* Is it Type 1 ? */ if (!FT_Get_PS_Font_Info(face, &afont_info)) { switch(inAttrib) { #ifndef FT_XFREE86_H case GLC_MASTER_FORMAT: #ifndef GLC_FT_CACHE __glcFaceDescClose(This); #endif return masterFormat1; #endif case GLC_FULL_NAME_SGI: if (afont_info.full_name) result = (GLCchar8*)afont_info.full_name; break; case GLC_VERSION: if (afont_info.version) result = (GLCchar8*)afont_info.version; break; } } /* Is it BDF ? */ else if (!FT_Get_BDF_Charset_ID(face, &acharset_encoding, &acharset_registry)) { switch(inAttrib) { #ifndef FT_XFREE86_H case GLC_MASTER_FORMAT: result = masterFormat2; break; #endif case GLC_FULL_NAME_SGI: result = unknown; break; case GLC_VERSION: result = unknown; break; } } #ifdef FT_WINFONTS_H /* Is it Windows FNT ? */ else if (!FT_Get_WinFNT_Header(face, &aheader)) { switch(inAttrib) { #ifndef FT_XFREE86_H case GLC_MASTER_FORMAT: result = masterFormat3; break; #endif case GLC_FULL_NAME_SGI: result = unknown; break; case GLC_VERSION: result = unknown; break; } } #endif /* Is it TrueType/OpenType ? */ else if ((count = FT_Get_Sfnt_Name_Count(face))) { #if 0 GLCuint i = 0; FT_SfntName aName; #endif switch(inAttrib) { #ifndef FT_XFREE86_H case GLC_MASTER_FORMAT: result = masterFormat4; break; #endif case GLC_FULL_NAME_SGI: result = unknown; break; case GLC_VERSION: result = unknown; break; } /* TODO : decode the SFNT name tables in order to get full name * of the TrueType/OpenType fonts and their version */ #if 0 for (i = 0; i < count; i++) { if (!FT_Get_Sfnt_Name(face, i, &aName)) { if ((aName.name_id != TT_NAME_ID_FULL_NAME) && (aName.name_id != TT_NAME_ID_VERSION_STRING)) continue; switch (aName.platform_id) { case TT_PLATFORM_APPLE_UNICODE: break; case TT_PLATFORM_MICROSOFT: break; } } } #endif } #ifndef GLC_FT_CACHE /* Close the face */ __glcFaceDescClose(This); #endif return result; } /* Get the maximum metrics of a face that is the bounding box that encloses * every glyph of the face, and the maximum advance of the face. */ GLfloat* __glcFaceDescGetMaxMetric(__GLCfaceDescriptor* This, GLfloat* outVec, __GLCcontext* inContext) { FT_Face face = NULL; /* If the resolution of the context is zero then use the default 72 dpi */ GLfloat scale = (inContext->renderState.resolution < GLC_EPSILON ? 72. : inContext->renderState.resolution) / 72.; assert(outVec); #ifdef GLC_FT_CACHE if (FTC_Manager_LookupFace(inContext->cache, (FTC_FaceID)This, &face)) #else face = __glcFaceDescOpen(This, inContext); if (!face) #endif return NULL; scale /= face->units_per_EM; /* Get the values and transform them according to the resolution */ outVec[0] = (GLfloat)face->max_advance_width * scale; outVec[1] = (GLfloat)face->max_advance_height * scale; outVec[2] = (GLfloat)face->bbox.yMax * scale; outVec[3] = (GLfloat)face->bbox.yMin * scale; outVec[4] = (GLfloat)face->bbox.xMax * scale; outVec[5] = (GLfloat)face->bbox.xMin * scale; #ifndef GLC_FT_CACHE __glcFaceDescClose(This); #endif return outVec; } /* Get the kerning information of a pair of glyphes according to the size given * by inScaleX and inScaleY. The result is returned in outVec. */ GLfloat* __glcFaceDescGetKerning(__GLCfaceDescriptor* This, GLCuint inGlyphIndex, GLCuint inPrevGlyphIndex, GLfloat inScaleX, GLfloat inScaleY, GLfloat* outVec, __GLCcontext* inContext) { FT_Vector kerning; FT_Error error; assert(outVec); if (!__glcFaceDescPrepareGlyph(This, inContext, inScaleX, inScaleY, inGlyphIndex)) return NULL; if (!FT_HAS_KERNING(This->face)) { outVec[0] = 0.; outVec[1] = 0.; return outVec; } error = FT_Get_Kerning(This->face, inPrevGlyphIndex, inGlyphIndex, FT_KERNING_DEFAULT, &kerning); #ifndef GLC_FT_CACHE __glcFaceDescClose(This); #endif if (error) return NULL; else { outVec[0] = (GLfloat) kerning.x / 64. / inScaleX; outVec[1] = (GLfloat) kerning.y / 64. / inScaleY; return outVec; } } /* Get the style name of the face descriptor */ GLCchar8* __glcFaceDescGetStyleName(__GLCfaceDescriptor* This) { GLCchar8 *styleName = NULL; FcResult result = FcPatternGetString(This->pattern, FC_STYLE, 0, &styleName); assert(result != FcResultTypeMismatch); return styleName; } /* Determine if the face descriptor has a fixed pitch */ GLboolean __glcFaceDescIsFixedPitch(__GLCfaceDescriptor* This) { int fixed = 0; FcResult result = FcPatternGetInteger(This->pattern, FC_SPACING, 0, &fixed); assert(result != FcResultTypeMismatch); return (fixed != FC_PROPORTIONAL); } /* Callback function that is called by the FreeType function * FT_Outline_Decompose() when parsing an outline. * MoveTo is called when the pen move from one curve to another curve. */ #if ((FREETYPE_MAJOR == 2) && (FREETYPE_MINOR >= 2)) static int __glcMoveTo(const FT_Vector *inVecTo, void* inUserData) #else static int __glcMoveTo(FT_Vector *inVecTo, void* inUserData) #endif { __GLCrendererData *data = (__GLCrendererData *) inUserData; /* We don't need to store the point where the pen is since glyphs are defined * by closed loops (i.e. the first point and the last point are the same) and * the first point will be stored by the next call to lineto/conicto/cubicto. */ if (!__glcArrayAppend(data->endContour, &GLC_ARRAY_LENGTH(data->vertexArray))) return 1; data->vector[0] = (GLfloat) inVecTo->x; data->vector[1] = (GLfloat) inVecTo->y; return 0; } /* Callback function that is called by the FreeType function * FT_Outline_Decompose() when parsing an outline. * LineTo is called when the pen draws a line between two points. */ #if ((FREETYPE_MAJOR == 2) && (FREETYPE_MINOR >= 2)) static int __glcLineTo(const FT_Vector *inVecTo, void* inUserData) #else static int __glcLineTo(FT_Vector *inVecTo, void* inUserData) #endif { __GLCrendererData *data = (__GLCrendererData *) inUserData; if (!__glcArrayAppend(data->vertexArray, data->vector)) return 1; data->vector[0] = (GLfloat) inVecTo->x; data->vector[1] = (GLfloat) inVecTo->y; return 0; } /* Callback function that is called by the FreeType function * FT_Outline_Decompose() when parsing an outline. * ConicTo is called when the pen draws a conic between two points (and with * one control point). */ #if ((FREETYPE_MAJOR == 2) && (FREETYPE_MINOR >= 2)) static int __glcConicTo(const FT_Vector *inVecControl, const FT_Vector *inVecTo, void* inUserData) { #else static int __glcConicTo(FT_Vector *inVecControl, FT_Vector *inVecTo, void* inUserData) { #endif __GLCrendererData *data = (__GLCrendererData *) inUserData; int error = 0; data->vector[2] = (GLfloat)inVecControl->x; data->vector[3] = (GLfloat)inVecControl->y; data->vector[4] = (GLfloat)inVecTo->x; data->vector[5] = (GLfloat)inVecTo->y; error = __glcdeCasteljauConic(inUserData); data->vector[0] = (GLfloat) inVecTo->x; data->vector[1] = (GLfloat) inVecTo->y; return error; } /* Callback functions that is called by the FreeType function * FT_Outline_Decompose() when parsing an outline. * CubicTo is called when the pen draws a cubic between two points (and with * two control points). */ #if ((FREETYPE_MAJOR == 2) && (FREETYPE_MINOR >= 2)) static int __glcCubicTo(const FT_Vector *inVecControl1, const FT_Vector *inVecControl2, const FT_Vector *inVecTo, void* inUserData) { #else static int __glcCubicTo(FT_Vector *inVecControl1, FT_Vector *inVecControl2, FT_Vector *inVecTo, void* inUserData) { #endif __GLCrendererData *data = (__GLCrendererData *) inUserData; int error = 0; data->vector[2] = (GLfloat)inVecControl1->x; data->vector[3] = (GLfloat)inVecControl1->y; data->vector[4] = (GLfloat)inVecControl2->x; data->vector[5] = (GLfloat)inVecControl2->y; data->vector[6] = (GLfloat)inVecTo->x; data->vector[7] = (GLfloat)inVecTo->y; error = __glcdeCasteljauCubic(inUserData); data->vector[0] = (GLfloat) inVecTo->x; data->vector[1] = (GLfloat) inVecTo->y; return error; } /* Decompose the outline of a glyph */ GLboolean __glcFaceDescOutlineDecompose(__GLCfaceDescriptor* This, __GLCrendererData* inData, __GLCcontext* inContext) { FT_Outline *outline = NULL; FT_Outline_Funcs outlineInterface; FT_Face face = NULL; #ifndef GLC_FT_CACHE face = This->face; #else if (FTC_Manager_LookupFace(inContext->cache, (FTC_FaceID)This, &face)) { __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } #endif /* Initialize the data for FreeType to parse the outline */ outline = &face->glyph->outline; outlineInterface.shift = 0; outlineInterface.delta = 0; outlineInterface.move_to = __glcMoveTo; outlineInterface.line_to = __glcLineTo; outlineInterface.conic_to = __glcConicTo; outlineInterface.cubic_to = __glcCubicTo; if (inContext->enableState.glObjects) { /* Distances are computed in object space, so is the tolerance of the * de Casteljau algorithm. */ inData->tolerance *= face->units_per_EM; } /* Parse the outline of the glyph */ if (FT_Outline_Decompose(outline, &outlineInterface, inData)) { __glcRaiseError(GLC_RESOURCE_ERROR); GLC_ARRAY_LENGTH(inData->vertexArray) = 0; GLC_ARRAY_LENGTH(inData->endContour) = 0; GLC_ARRAY_LENGTH(inData->vertexIndices) = 0; GLC_ARRAY_LENGTH(inData->geomBatches) = 0; return GL_FALSE; } return GL_TRUE; } /* Compute the lower power of 2 that is greater than value. It is used to * determine the smaller texture than can contain a glyph. */ static int __glcNextPowerOf2(int value) { int power = 0; for (power = 1; power < value; power <<= 1); return power; } /* Get the size of the bitmap in which the glyph will be rendered */ GLboolean __glcFaceDescGetBitmapSize(__GLCfaceDescriptor* This, GLint* outWidth, GLint *outHeight, GLfloat inScaleX, GLfloat inScaleY, GLint* outPixBoundingBox, int inFactor, __GLCcontext* inContext) { FT_Outline outline; FT_Matrix matrix; FT_BBox boundingBox; FT_Face face = This->face; assert(face); outline = face->glyph->outline; if (inContext->renderState.renderStyle == GLC_BITMAP) { GLfloat *transform = inContext->bitmapMatrix; /* compute glyph dimensions */ matrix.xx = (FT_Fixed)(transform[0] * 65536. / inScaleX); matrix.xy = (FT_Fixed)(transform[2] * 65536. / inScaleY); matrix.yx = (FT_Fixed)(transform[1] * 65536. / inScaleX); matrix.yy = (FT_Fixed)(transform[3] * 65536. / inScaleY); } else { matrix.xy = 0; matrix.yx = 0; if (inContext->enableState.glObjects) { matrix.xx = (FT_Fixed)((GLC_TEXTURE_SIZE << 16) / inScaleX); matrix.yy = (FT_Fixed)((GLC_TEXTURE_SIZE << 16) / inScaleY); } else { matrix.xx = 65536 >> inFactor; matrix.yy = 65536 >> inFactor; } } FT_Outline_Transform(&outline, &matrix); FT_Outline_Get_CBox(&outline, &boundingBox); if (inContext->renderState.renderStyle == GLC_BITMAP) { FT_Pos pitch = 0; outPixBoundingBox[0] = GLC_FLOOR_26_6(boundingBox.xMin); outPixBoundingBox[1] = GLC_FLOOR_26_6(boundingBox.yMin); outPixBoundingBox[2] = GLC_CEIL_26_6(boundingBox.xMax); outPixBoundingBox[3] = GLC_CEIL_26_6(boundingBox.yMax); /* Calculate pitch to upper 8 byte boundary for 1 bit/pixel, i.e. ceil() */ pitch = (outPixBoundingBox[2] - outPixBoundingBox[0] + 511) >> 9; *outWidth = pitch << 3; *outHeight = (outPixBoundingBox[3] - outPixBoundingBox[1]) >> 6; } else { GLint width = 0; GLint height = 0; if (inContext->enableState.glObjects) { GLfloat ratioX = 0.f; GLfloat ratioY = 0.f; GLfloat ratio = 0.f; width = boundingBox.xMax - boundingBox.xMin; height = boundingBox.yMax - boundingBox.yMin; ratioX = width / (64.f * GLC_TEXTURE_SIZE); ratioY = height / (64.f * GLC_TEXTURE_SIZE); ratioX = (ratioX > 1.f) ? ratioX : 1.f; ratioY = (ratioY > 1.f) ? ratioY : 1.f; ratio = ((ratioX > ratioY) ? ratioX : ratioY); *outWidth = GLC_TEXTURE_SIZE; *outHeight = GLC_TEXTURE_SIZE; outline.flags |= FT_OUTLINE_HIGH_PRECISION; if (ratio > 1.f) { outPixBoundingBox[0] = boundingBox.xMin - ((GLint)((GLC_TEXTURE_SIZE << 5) - (width * 0.5f)) * ratio); outPixBoundingBox[1] = boundingBox.yMin - ((GLint)((GLC_TEXTURE_SIZE << 5) - (height * 0.5f)) * ratio); outPixBoundingBox[2] = outPixBoundingBox[0] + ((GLint)((GLC_TEXTURE_SIZE << 6) * ratio)); outPixBoundingBox[3] = outPixBoundingBox[1] + ((GLint)((GLC_TEXTURE_SIZE << 6) * ratio)); matrix.xx = (FT_Fixed)(65536.f / ratio); matrix.yy = matrix.xx; FT_Outline_Transform(&outline, &matrix); FT_Outline_Get_CBox(&outline, &boundingBox); } else { outPixBoundingBox[0] = boundingBox.xMin - ((GLC_TEXTURE_SIZE << 5) - (width >> 1)); outPixBoundingBox[1] = boundingBox.yMin - ((GLC_TEXTURE_SIZE << 5) - (height >> 1)); outPixBoundingBox[2] = outPixBoundingBox[0] + ((GLC_TEXTURE_SIZE - 1) << 6); outPixBoundingBox[3] = outPixBoundingBox[1] + ((GLC_TEXTURE_SIZE - 1) << 6); } } else { width = (GLC_CEIL_26_6(boundingBox.xMax) - GLC_FLOOR_26_6(boundingBox.xMin)) >> 6; height = (GLC_CEIL_26_6(boundingBox.yMax) - GLC_FLOOR_26_6(boundingBox.yMin)) >> 6; *outWidth = __glcNextPowerOf2(width); *outHeight = __glcNextPowerOf2(height); *outWidth = (*outWidth > inContext->texture.width) ? *outWidth : inContext->texture.width; *outHeight = (*outHeight > inContext->texture.heigth) ? *outHeight : inContext->texture.heigth; if (*outWidth - width <= 1) *outWidth <<= 1; if (*outHeight - height <= 1) *outHeight <<= 1; /* If the texture size is too small then give up */ if ((*outWidth < 4) || (*outHeight < 4)) return GL_FALSE; outPixBoundingBox[0] = GLC_FLOOR_26_6(boundingBox.xMin) - (((*outWidth - width) >> 1 ) << 6); outPixBoundingBox[1] = GLC_FLOOR_26_6(boundingBox.yMin) - (((*outHeight - height) >> 1) << 6); outPixBoundingBox[2] = outPixBoundingBox[0] + ((*outWidth - 1) << 6); outPixBoundingBox[3] = outPixBoundingBox[1] + ((*outHeight - 1) << 6); } } return GL_TRUE; } /* Render the glyph in a bitmap */ GLboolean __glcFaceDescGetBitmap(__GLCfaceDescriptor* This, GLint inWidth, GLint inHeight, void* inBuffer, __GLCcontext* inContext) { FT_Outline outline; FT_BBox boundingBox; FT_Bitmap pixmap; FT_Matrix matrix; FT_Pos dx = 0, dy = 0; FT_Face face = This->face; FT_Pos width = 0, height = 0; assert(face); outline = face->glyph->outline; FT_Outline_Get_CBox(&outline, &boundingBox); if ((inContext->renderState.renderStyle == GLC_BITMAP) || (!inContext->enableState.glObjects)) { dx = GLC_FLOOR_26_6(boundingBox.xMin); dy = GLC_FLOOR_26_6(boundingBox.yMin); if (inContext->renderState.renderStyle == GLC_TEXTURE) { width = (GLC_CEIL_26_6(boundingBox.xMax) - dx) >> 6; height = (GLC_CEIL_26_6(boundingBox.yMax) - dy) >> 6; dx -= (((inWidth - width) >> 1) << 6); dy -= (((inHeight - height) >> 1) << 6); } } else { dx = boundingBox.xMin; dy = boundingBox.yMin; width = boundingBox.xMax - dx; height = boundingBox.yMax - dy; dx -= (inWidth << 5) - (width >> 1); dy -= (inHeight << 5) - (height >> 1); } pixmap.width = inWidth; pixmap.rows = inHeight; pixmap.buffer = (unsigned char*)inBuffer; if (inContext->renderState.renderStyle == GLC_BITMAP) { /* Calculate pitch to upper 8 byte boundary for 1 bit/pixel, i.e. ceil() */ pixmap.pitch = -(pixmap.width >> 3); /* Fill the pixmap descriptor and the pixmap buffer */ pixmap.pixel_mode = ft_pixel_mode_mono; /* Monochrome rendering */ } else { /* Flip the picture */ pixmap.pitch = -pixmap.width; /* 8 bits/pixel */ /* Fill the pixmap descriptor and the pixmap buffer */ pixmap.pixel_mode = ft_pixel_mode_grays; /* Anti-aliased rendering */ pixmap.num_grays = 256; } /* fill the pixmap buffer with the background color */ memset(pixmap.buffer, 0, - pixmap.rows * pixmap.pitch); /* translate the outline to match (0,0) with the glyph's lower left * corner */ FT_Outline_Translate(&outline, -dx, -dy); /* render the glyph */ if (FT_Outline_Get_Bitmap(inContext->library, &outline, &pixmap)) { __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } if (inContext->renderState.renderStyle != GLC_BITMAP) { /* Prepare the outline for the next mipmap level : * a. Restore the outline initial position */ FT_Outline_Translate(&outline, dx, dy); /* b. Divide the character size by 2. */ matrix.xx = 32768; /* 0.5 in FT_Fixed type */ matrix.xy = 0; matrix.yx = 0; matrix.yy = 32768; FT_Outline_Transform(&outline, &matrix); } return GL_TRUE; } /* Chek if the outline of the glyph is empty (which means it is a spacing * character). */ GLboolean __glcFaceDescOutlineEmpty(__GLCfaceDescriptor* This) { FT_Outline outline = This->face->glyph->outline; return outline.n_points ? GL_TRUE : GL_FALSE; } /* Get the CharMap of the face descriptor */ __GLCcharMap* __glcFaceDescGetCharMap(__GLCfaceDescriptor* This, __GLCcontext* inContext) { FcResult result = FcResultMatch; FcCharSet* charSet = NULL; FcCharSet* newCharSet = NULL; __GLCcharMap* charMap = __glcCharMapCreate(NULL, inContext); if (!charMap) return NULL; result = FcPatternGetCharSet(This->pattern, FC_CHARSET, 0, &charSet); assert(result != FcResultTypeMismatch); newCharSet = FcCharSetCopy(charSet); if (!newCharSet) { __glcCharMapDestroy(charMap); return NULL; } FcCharSetDestroy(charMap->charSet); charMap->charSet = newCharSet; return charMap; } quesoglc-0.7.2/src/ofont.h0000644000175000017500000001164311076453221012356 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: ofont.h 838 2008-10-18 21:35:03Z bcoconni $ */ /** \file * header of the object __GLCfont which manage the fonts */ #ifndef __glc_ofont_h #define __glc_ofont_h #include "ofacedesc.h" /* It seems that Visual C++ does not recognize the inline keyword !?! */ #ifdef _MSC_VER #define inline #endif struct __GLCfontRec { GLint id; __GLCfaceDescriptor* faceDesc; GLint parentMasterID; __GLCcharMap* charMap; }; __GLCfont* __glcFontCreate(GLint id, __GLCmaster* inMaster, __GLCcontext* inContext, GLint inCode); void __glcFontDestroy(__GLCfont *This, __GLCcontext* inContext); __GLCglyph* __glcFontGetGlyph(__GLCfont *This, GLint inCode, __GLCcontext* inContext); GLfloat* __glcFontGetBoundingBox(__GLCfont *This, GLint inCode, GLfloat* outVec, __GLCcontext* inContext, GLfloat inScaleX, GLfloat inScaleY); GLfloat* __glcFontGetAdvance(__GLCfont *This, GLint inCode, GLfloat* outVec, __GLCcontext* inContext, GLfloat inScaleX, GLfloat inScaleY); GLfloat* __glcFontGetKerning(__GLCfont* This, GLint inCode, GLint inPrevCode, GLfloat* outVec, __GLCcontext* inContext, GLfloat inScaleX, GLfloat inScaleY); #ifndef GLC_FT_CACHE static inline void* __glcFontOpen(__GLCfont* This, __GLCcontext* inContext); static inline void __glcFontClose(__GLCfont* This); #endif GLboolean __glcFontPrepareGlyph(__GLCfont* This, __GLCcontext* inContext, GLfloat inScaleX, GLfloat inScaleY, GLCulong inGlyphIndex); static inline GLboolean __glcFontGetBitmapSize(__GLCfont* This, GLint* outWidth, GLint *outHeight, GLfloat inScaleX, GLfloat inScaleY, int inFactor, GLint* outPixBoundingBox, __GLCcontext* inContext); static inline GLfloat* __glcFontGetMaxMetric(__GLCfont* This, GLfloat* outVec, __GLCcontext* inContext); static inline GLboolean __glcFontOutlineDecompose(__GLCfont* This, __GLCrendererData* inData, __GLCcontext* inContext); static inline GLboolean __glcFontGetBitmap(__GLCfont* This, GLint inWidth, GLint inHeight, void* inBuffer, __GLCcontext* inContext); static inline GLboolean __glcFontOutlineEmpty(__GLCfont* This); /* Inline functions definitions */ #ifndef GLC_FT_CACHE /* Open the font file */ static inline void* __glcFontOpen(__GLCfont* This, __GLCcontext* inContext) { return __glcFaceDescOpen(This->faceDesc, inContext); } /* Close the font file */ static inline void __glcFontClose(__GLCfont* This) { __glcFaceDescClose(This->faceDesc); } #endif /* Get the size of the bitmap in which the glyph will be rendered */ static inline GLboolean __glcFontGetBitmapSize(__GLCfont* This, GLint* outWidth, GLint *outHeight, GLfloat inScaleX, GLfloat inScaleY, int inFactor, GLint* outPixBoundingBox, __GLCcontext* inContext) { return __glcFaceDescGetBitmapSize(This->faceDesc, outWidth, outHeight, inScaleX, inScaleY, outPixBoundingBox, inFactor, inContext); } /* Get the maximum metrics of a face that is the bounding box that encloses * every glyph of the face, and the maximum advance of the face. */ static inline GLfloat* __glcFontGetMaxMetric(__GLCfont* This, GLfloat* outVec, __GLCcontext* inContext) { return __glcFaceDescGetMaxMetric(This->faceDesc, outVec, inContext); } /* Decompose the outline of a glyph */ static inline GLboolean __glcFontOutlineDecompose(__GLCfont* This, __GLCrendererData* inData, __GLCcontext* inContext) { return __glcFaceDescOutlineDecompose(This->faceDesc, inData, inContext); } /* Render the glyph in a bitmap */ static inline GLboolean __glcFontGetBitmap(__GLCfont* This, GLint inWidth, GLint inHeight, void* inBuffer, __GLCcontext* inContext) { return __glcFaceDescGetBitmap(This->faceDesc, inWidth, inHeight, inBuffer, inContext); } /* Chek if the outline of the glyph is empty (which means it is a spacing * character). */ static inline GLboolean __glcFontOutlineEmpty(__GLCfont* This) { return __glcFaceDescOutlineEmpty(This->faceDesc); } #endif /* __glc_ofont_h */ quesoglc-0.7.2/src/oglyph.h0000644000175000017500000000417011021606607012526 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: oglyph.h 800 2008-06-04 21:47:50Z bcoconni $ */ /** \file * header of the object __GLCglyph which caches all the data needed for a given * glyph : display list, texture, bounding box, advance, index in the font * file, etc. */ #ifndef __glc_oglyph_h #define __glc_oglyph_h typedef struct __GLCglyphRec __GLCglyph; typedef struct __GLCatlasElementRec __GLCatlasElement; struct __GLCglyphRec { FT_ListNodeRec node; GLCulong index; GLCulong codepoint; /* GL objects management */ __GLCatlasElement* textureObject; GLuint glObject[4]; GLint nContour; GLint* contours; /* Measurement infos */ GLfloat boundingBox[4]; GLfloat advance[2]; GLboolean advanceCached; GLboolean boundingBoxCached; GLboolean isSpacingChar; }; __GLCglyph* __glcGlyphCreate(GLCulong inIndex, GLCulong inCode); void __glcGlyphDestroy(__GLCglyph* This, __GLCcontext* inContext); void __glcGlyphDestroyTexture(__GLCglyph* This, __GLCcontext* inContext); void __glcGlyphDestroyGLObjects(__GLCglyph* This, __GLCcontext* inContext); int __glcGlyphGetDisplayListCount(__GLCglyph* This); GLuint __glcGlyphGetDisplayList(__GLCglyph* This, int inCount); int __glcGlyphGetBufferObjectCount(__GLCglyph* This); GLuint __glcGlyphGetBufferObject(__GLCglyph* This, int inCount); #endif quesoglc-0.7.2/src/fribidi/0000777000175000017500000000000011164476311012552 500000000000000quesoglc-0.7.2/src/fribidi/fribidi_types.i0000644000175000017500000000200510764574550015502 00000000000000_FRIBIDI_ADD_TYPE(LTR) /* Strong left to right */ _FRIBIDI_ADD_TYPE(RTL) /* Right to left characters */ _FRIBIDI_ADD_TYPE(AL) /* Arabic characters */ _FRIBIDI_ADD_TYPE(LRE) /* Left-To-Right embedding */ _FRIBIDI_ADD_TYPE(RLE) /* Right-To-Left embedding */ _FRIBIDI_ADD_TYPE(LRO) /* Left-To-Right override */ _FRIBIDI_ADD_TYPE(RLO) /* Right-To-Left override */ _FRIBIDI_ADD_TYPE(PDF) /* Pop directional override */ _FRIBIDI_ADD_TYPE(EN) /* European digit */ _FRIBIDI_ADD_TYPE(AN) /* Arabic digit */ _FRIBIDI_ADD_TYPE(ES) /* European number separator */ _FRIBIDI_ADD_TYPE(ET) /* European number terminator */ _FRIBIDI_ADD_TYPE(CS) /* Common Separator */ _FRIBIDI_ADD_TYPE(NSM) /* Non spacing mark */ _FRIBIDI_ADD_TYPE(BN) /* Boundary neutral */ _FRIBIDI_ADD_TYPE(BS) /* Block separator */ _FRIBIDI_ADD_TYPE(SS) /* Segment separator */ _FRIBIDI_ADD_TYPE(WS) /* Whitespace */ _FRIBIDI_ADD_TYPE(ON) /* Other Neutral */ _FRIBIDI_ADD_TYPE(WL) /* Weak left to right */ _FRIBIDI_ADD_TYPE(WR) /* Weak right to left */ quesoglc-0.7.2/src/fribidi/fribidi_mirroring.c0000644000175000017500000000347510764574550016354 00000000000000/* FriBidi - Library of BiDi algorithm * Copyright (C) 1999,2000 Dov Grobgeld, and * Copyright (C) 2001,2002 Behdad Esfahbod. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library, in a file named COPYING; if not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA * * For licensing issues, contact and * . */ #ifdef HAVE_CONFIG_H #include #endif #include #include "fribidi.h" #include "fribidi_tab_mirroring.i" fribidi_boolean fribidi_get_mirror_char ( /* Input */ FriBidiChar ch, /* Output */ FriBidiChar *mirrored_ch) { int pos, step; fribidi_boolean found; pos = step = (nFriBidiMirroredChars / 2) + 1; while (step > 1) { FriBidiChar cmp_ch = FriBidiMirroredChars[pos].ch; step = (step + 1) / 2; if (cmp_ch < ch) { pos += step; if (pos > nFriBidiMirroredChars - 1) pos = nFriBidiMirroredChars - 1; } else if (cmp_ch > ch) { pos -= step; if (pos < 0) pos = 0; } else break; } found = FriBidiMirroredChars[pos].ch == ch; if (mirrored_ch) *mirrored_ch = found ? FriBidiMirroredChars[pos].mirrored_ch : ch; return found; } quesoglc-0.7.2/src/fribidi/fribidi_unicode.h0000644000175000017500000000352310764574550015771 00000000000000/* FriBidi - Library of BiDi algorithm * Copyright (C) 2001,2002,2005 Behdad Esfahbod. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library, in a file named COPYING; if not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA * * For licensing issues, contact . */ #ifndef FRIBIDI_UNICODE_H #define FRIBIDI_UNICODE_H #ifdef HAVE_CONFIG_H #include "qglc_config.h" #endif #include "fribidi_types.h" #ifdef __cplusplus extern "C" { #endif /* Unicode version */ #define FRIBIDI_UNICODE_CHARS (sizeof(FriBidiChar) >= 4 ? 0x110000 : 0x10000) #define FRIBIDI_UNICODE_VERSION "4.1.0" /* UAX#9 Unicode BiDirectional Algorithm */ #define UNI_MAX_BIDI_LEVEL 61 /* BiDirectional marks */ #define UNI_LRM 0x200E #define UNI_RLM 0x200F #define UNI_LRE 0x202A #define UNI_RLE 0x202B #define UNI_PDF 0x202C #define UNI_LRO 0x202D #define UNI_RLO 0x202E /* Line and Paragraph separators */ #define UNI_LS 0x2028 #define UNI_PS 0x2029 /* Joining marks */ #define UNI_ZWNJ 0x200C #define UNI_ZWJ 0x200D /* Hebrew and Arabic */ #define UNI_HEBREW_ALEF 0x05D0 #define UNI_ARABIC_ALEF 0x0627 #define UNI_ARABIC_ZERO 0x0660 #define UNI_FARSI_ZERO 0x06F0 #ifdef __cplusplus } #endif #endif /* FRIBIDI_UNICODE_H */ quesoglc-0.7.2/src/fribidi/fribidi_types.h0000644000175000017500000002621510764574550015512 00000000000000/* FriBidi - Library of BiDi algorithm * Copyright (C) 1999,2000 Dov Grobgeld, and * Copyright (C) 2001,2002 Behdad Esfahbod. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library, in a file named COPYING; if not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA * * For licensing issues, contact and * . */ #ifndef FRIBIDI_TYPES_H #define FRIBIDI_TYPES_H #ifdef HAVE_CONFIG_H #include "qglc_config.h" #endif #if defined(__WIN32__) || defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) #define FRIBIDI_INT8 char #define FRIBIDI_INT16 short #define FRIBIDI_INT32 int #else #define FRIBIDI_INT8 char #if SIZEOF_INT+0 == 2 # define FRIBIDI_INT16 int #elif SIZEOF_SHORT+0 == 2 # define FRIBIDI_INT16 short #else # error cannot determine a 16-bit integer type. check qglc_config.h #endif #if SIZEOF_INT+0 == 4 # define FRIBIDI_INT32 int #elif SIZEOF_LONG+0 == 4 # define FRIBIDI_INT32 long #else # error cannot determine a 32-bit integer type. check qglc_config.h #endif #endif #ifdef __cplusplus extern "C" { #endif typedef int fribidi_boolean; typedef signed FRIBIDI_INT8 fribidi_int8; typedef unsigned FRIBIDI_INT8 fribidi_uint8; typedef signed FRIBIDI_INT16 fribidi_int16; typedef unsigned FRIBIDI_INT16 fribidi_uint16; typedef signed FRIBIDI_INT32 fribidi_int32; typedef unsigned FRIBIDI_INT32 fribidi_uint32; typedef signed int fribidi_int; typedef unsigned int fribidi_uint; typedef fribidi_int8 FriBidiLevel; typedef fribidi_uint32 FriBidiChar; typedef fribidi_int FriBidiStrIndex; typedef fribidi_int32 FriBidiMaskType; typedef FriBidiMaskType FriBidiCharType; char *fribidi_type_name (FriBidiCharType c); /* The following type is used by fribidi_utils */ typedef struct { FriBidiStrIndex length; void *attribute; } FriBidiRunType; /* The following type is used by fribdi_utils */ typedef struct _FriBidiList FriBidiList; struct _FriBidiList { void *data; FriBidiList *next; FriBidiList *prev; }; #ifndef FRIBIDI_MAX_STRING_LENGTH #define FRIBIDI_MAX_STRING_LENGTH (FriBidiStrIndex) \ (sizeof (FriBidiStrIndex) == 2 ? \ 0x7FFE : (sizeof (FriBidiStrIndex) == 1 ? \ 0x7E : 0x7FFFFFFEL)) #endif /* * Define some bit masks, that character types are based on, each one has * only one bit on. */ /* Do not use enum, because 16bit processors do not allow 32bit enum values. */ #define FRIBIDI_MASK_RTL 0x00000001L /* Is right to left */ #define FRIBIDI_MASK_ARABIC 0x00000002L /* Is arabic */ /* Each char can be only one of the three following. */ #define FRIBIDI_MASK_STRONG 0x00000010L /* Is strong */ #define FRIBIDI_MASK_WEAK 0x00000020L /* Is weak */ #define FRIBIDI_MASK_NEUTRAL 0x00000040L /* Is neutral */ #define FRIBIDI_MASK_SENTINEL 0x00000080L /* Is sentinel: SOT, EOT */ /* Sentinels are not valid chars, just identify the start and end of strings. */ /* Each char can be only one of the five following. */ #define FRIBIDI_MASK_LETTER 0x00000100L /* Is letter: L, R, AL */ #define FRIBIDI_MASK_NUMBER 0x00000200L /* Is number: EN, AN */ #define FRIBIDI_MASK_NUMSEPTER 0x00000400L /* Is number separator or terminator: ES, ET, CS */ #define FRIBIDI_MASK_SPACE 0x00000800L /* Is space: BN, BS, SS, WS */ #define FRIBIDI_MASK_EXPLICIT 0x00001000L /* Is expilict mark: LRE, RLE, LRO, RLO, PDF */ /* Can be on only if FRIBIDI_MASK_SPACE is also on. */ #define FRIBIDI_MASK_SEPARATOR 0x00002000L /* Is test separator: BS, SS */ /* Can be on only if FRIBIDI_MASK_EXPLICIT is also on. */ #define FRIBIDI_MASK_OVERRIDE 0x00004000L /* Is explicit override: LRO, RLO */ /* The following must be to make types pairwise different, some of them can be removed but are here because of efficiency (make queries faster). */ #define FRIBIDI_MASK_ES 0x00010000L #define FRIBIDI_MASK_ET 0x00020000L #define FRIBIDI_MASK_CS 0x00040000L #define FRIBIDI_MASK_NSM 0x00080000L #define FRIBIDI_MASK_BN 0x00100000L #define FRIBIDI_MASK_BS 0x00200000L #define FRIBIDI_MASK_SS 0x00400000L #define FRIBIDI_MASK_WS 0x00800000L /* We reserve the sign bit for user's private use: we will never use it, then negative character types will be never assigned. */ /* * Define values for FriBidiCharType */ /* Strong left to right */ #define FRIBIDI_TYPE_LTR ( FRIBIDI_MASK_STRONG + FRIBIDI_MASK_LETTER ) /* Right to left characters */ #define FRIBIDI_TYPE_RTL ( FRIBIDI_MASK_STRONG + FRIBIDI_MASK_LETTER \ + FRIBIDI_MASK_RTL) /* Arabic characters */ #define FRIBIDI_TYPE_AL ( FRIBIDI_MASK_STRONG + FRIBIDI_MASK_LETTER \ + FRIBIDI_MASK_RTL + FRIBIDI_MASK_ARABIC ) /* Left-To-Right embedding */ #define FRIBIDI_TYPE_LRE (FRIBIDI_MASK_STRONG + FRIBIDI_MASK_EXPLICIT) /* Right-To-Left embedding */ #define FRIBIDI_TYPE_RLE ( FRIBIDI_MASK_STRONG + FRIBIDI_MASK_EXPLICIT \ + FRIBIDI_MASK_RTL ) /* Left-To-Right override */ #define FRIBIDI_TYPE_LRO ( FRIBIDI_MASK_STRONG + FRIBIDI_MASK_EXPLICIT \ + FRIBIDI_MASK_OVERRIDE ) /* Right-To-Left override */ #define FRIBIDI_TYPE_RLO ( FRIBIDI_MASK_STRONG + FRIBIDI_MASK_EXPLICIT \ + FRIBIDI_MASK_RTL + FRIBIDI_MASK_OVERRIDE ) /* Pop directional override */ #define FRIBIDI_TYPE_PDF ( FRIBIDI_MASK_WEAK + FRIBIDI_MASK_EXPLICIT ) /* European digit */ #define FRIBIDI_TYPE_EN ( FRIBIDI_MASK_WEAK + FRIBIDI_MASK_NUMBER ) /* Arabic digit */ #define FRIBIDI_TYPE_AN ( FRIBIDI_MASK_WEAK + FRIBIDI_MASK_NUMBER \ + FRIBIDI_MASK_ARABIC ) /* European number separator */ #define FRIBIDI_TYPE_ES ( FRIBIDI_MASK_WEAK + FRIBIDI_MASK_NUMSEPTER \ + FRIBIDI_MASK_ES ) /* European number terminator */ #define FRIBIDI_TYPE_ET ( FRIBIDI_MASK_WEAK + FRIBIDI_MASK_NUMSEPTER \ + FRIBIDI_MASK_ET ) /* Common Separator */ #define FRIBIDI_TYPE_CS ( FRIBIDI_MASK_WEAK + FRIBIDI_MASK_NUMSEPTER \ + FRIBIDI_MASK_CS ) /* Non spacing mark */ #define FRIBIDI_TYPE_NSM ( FRIBIDI_MASK_WEAK + FRIBIDI_MASK_NSM ) /* Boundary neutral */ #define FRIBIDI_TYPE_BN ( FRIBIDI_MASK_WEAK + FRIBIDI_MASK_SPACE \ + FRIBIDI_MASK_BN ) /* Block separator */ #define FRIBIDI_TYPE_BS ( FRIBIDI_MASK_NEUTRAL + FRIBIDI_MASK_SPACE \ + FRIBIDI_MASK_SEPARATOR + FRIBIDI_MASK_BS ) /* Segment separator */ #define FRIBIDI_TYPE_SS ( FRIBIDI_MASK_NEUTRAL + FRIBIDI_MASK_SPACE \ + FRIBIDI_MASK_SEPARATOR + FRIBIDI_MASK_SS ) /* Whitespace */ #define FRIBIDI_TYPE_WS ( FRIBIDI_MASK_NEUTRAL + FRIBIDI_MASK_SPACE \ + FRIBIDI_MASK_WS ) /* Other Neutral */ #define FRIBIDI_TYPE_ON ( FRIBIDI_MASK_NEUTRAL ) /* The following are used to identify the paragraph direction, types L, R, N are not used internally anymore, and recommended to use LTR, RTL and ON instead, didn't removed because of compatability. */ #define FRIBIDI_TYPE_L ( FRIBIDI_TYPE_LTR ) #define FRIBIDI_TYPE_R ( FRIBIDI_TYPE_RTL ) #define FRIBIDI_TYPE_N ( FRIBIDI_TYPE_ON ) /* Weak left to right */ #define FRIBIDI_TYPE_WL ( FRIBIDI_MASK_WEAK ) /* Weak right to left */ #define FRIBIDI_TYPE_WR ( FRIBIDI_MASK_WEAK + FRIBIDI_MASK_RTL ) /* The following are only used internally */ /* Start of text */ #define FRIBIDI_TYPE_SOT ( FRIBIDI_MASK_SENTINEL ) /* End of text */ #define FRIBIDI_TYPE_EOT ( FRIBIDI_MASK_SENTINEL + FRIBIDI_MASK_RTL ) /* * End of define values for FriBidiCharType */ /* * Defining macros for needed queries, It is fully dependent on the * implementation of FriBidiCharType. */ /* Is private-use value? */ #define FRIBIDI_TYPE_PRIVATE(p) ((p) < 0) /* Return the direction of the level number, FRIBIDI_TYPE_LTR for even and FRIBIDI_TYPE_RTL for odds. */ #define FRIBIDI_LEVEL_TO_DIR(lev) (FRIBIDI_TYPE_LTR | (lev & 1)) /* Return the minimum level of the direction, 0 for FRIBIDI_TYPE_LTR and 1 for FRIBIDI_TYPE_RTL and FRIBIDI_TYPE_AL. */ #define FRIBIDI_DIR_TO_LEVEL(dir) ((FriBidiLevel)(dir & 1)) /* Is right to left? */ #define FRIBIDI_IS_RTL(p) ((p) & FRIBIDI_MASK_RTL) /* Is arabic? */ #define FRIBIDI_IS_ARABIC(p) ((p) & FRIBIDI_MASK_ARABIC) /* Is strong? */ #define FRIBIDI_IS_STRONG(p) ((p) & FRIBIDI_MASK_STRONG) /* Is weak? */ #define FRIBIDI_IS_WEAK(p) ((p) & FRIBIDI_MASK_WEAK) /* Is neutral? */ #define FRIBIDI_IS_NEUTRAL(p) ((p) & FRIBIDI_MASK_NEUTRAL) /* Is sentinel? */ #define FRIBIDI_IS_SENTINEL(p) ((p) & FRIBIDI_MASK_SENTINEL) /* Is letter: L, R, AL? */ #define FRIBIDI_IS_LETTER(p) ((p) & FRIBIDI_MASK_LETTER) /* Is number: EN, AN? */ #define FRIBIDI_IS_NUMBER(p) ((p) & FRIBIDI_MASK_NUMBER) /* Is number separator or terminator: ES, ET, CS? */ #define FRIBIDI_IS_NUMBER_SEPARATOR_OR_TERMINATOR(p) \ ((p) & FRIBIDI_MASK_NUMSEPTER) /* Is space: BN, BS, SS, WS? */ #define FRIBIDI_IS_SPACE(p) ((p) & FRIBIDI_MASK_SPACE) /* Is explicit mark: LRE, RLE, LRO, RLO, PDF? */ #define FRIBIDI_IS_EXPLICIT(p) ((p) & FRIBIDI_MASK_EXPLICIT) /* Is test separator: BS, SS? */ #define FRIBIDI_IS_SEPARATOR(p) ((p) & FRIBIDI_MASK_SEPARATOR) /* Is explicit override: LRO, RLO? */ #define FRIBIDI_IS_OVERRIDE(p) ((p) & FRIBIDI_MASK_OVERRIDE) /* Some more: */ /* Is left to right letter: LTR? */ #define FRIBIDI_IS_LTR_LETTER(p) \ ((p) & (FRIBIDI_MASK_LETTER | FRIBIDI_MASK_RTL) == FRIBIDI_MASK_LETTER) /* Is right to left letter: RTL, AL? */ #define FRIBIDI_IS_RTL_LETTER(p) \ ((p) & (FRIBIDI_MASK_LETTER | FRIBIDI_MASK_RTL) \ == (FRIBIDI_MASK_LETTER | FRIBIDI_MASK_RTL)) /* Is ES or CS: ES, CS? */ #define FRIBIDI_IS_ES_OR_CS(p) \ ((p) & (FRIBIDI_MASK_ES | FRIBIDI_MASK_CS)) /* Is explicit or BN: LRE, RLE, LRO, RLO, PDF, BN? */ #define FRIBIDI_IS_EXPLICIT_OR_BN(p) \ ((p) & (FRIBIDI_MASK_EXPLICIT | FRIBIDI_MASK_BN)) /* Is explicit or separator or BN or WS: LRE, RLE, LRO, RLO, PDF, BS, SS, BN, WS? */ #define FRIBIDI_IS_EXPLICIT_OR_SEPARATOR_OR_BN_OR_WS(p) \ ((p) & (FRIBIDI_MASK_EXPLICIT | FRIBIDI_MASK_SEPARATOR \ | FRIBIDI_MASK_BN | FRIBIDI_MASK_WS)) /* Define some conversions. */ /* Change numbers: EN, AN to RTL. */ #define FRIBIDI_CHANGE_NUMBER_TO_RTL(p) \ (FRIBIDI_IS_NUMBER(p) ? FRIBIDI_TYPE_RTL : (p)) /* Override status of an explicit mark: LRO->LTR, RLO->RTL, otherwise->ON. */ #define FRIBIDI_EXPLICIT_TO_OVERRIDE_DIR(p) \ (FRIBIDI_IS_OVERRIDE(p) ? FRIBIDI_LEVEL_TO_DIR(FRIBIDI_DIR_TO_LEVEL(p)) \ : FRIBIDI_TYPE_ON) /* * Define character types that char_type_tables use. * define them to be 0, 1, 2, ... and then in fribidi_char_type.c map them * to FriBidiCharTypes. */ typedef char FriBidiPropCharType; enum FriBidiPropEnum { #define _FRIBIDI_ADD_TYPE(TYPE) FRIBIDI_PROP_TYPE_##TYPE, #include "fribidi_types.i" #undef _FRIBIDI_ADD_TYPE FRIBIDI_TYPES_COUNT /* Number of different character types */ }; /* Map fribidi_prop_types to fribidi_types */ extern const FriBidiCharType fribidi_prop_to_type[]; #ifdef __cplusplus } #endif #endif quesoglc-0.7.2/src/fribidi/fribidi_char_type.c0000644000175000017500000000260110764574550016310 00000000000000/* FriBidi - Library of BiDi algorithm * Copyright (C) 2001,2002 Behdad Esfahbod. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library, in a file named COPYING; if not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA * * For licensing issues, contact . */ #ifdef HAVE_CONFIG_H #include #endif #include "fribidi.h" /*====================================================================== * fribidi_get_type() returns the bidi type of a character. *----------------------------------------------------------------------*/ FriBidiCharType fribidi_get_type_internal (FriBidiChar uch); FriBidiCharType fribidi_get_type (FriBidiChar uch) { return fribidi_get_type_internal (uch); } #include "fribidi_tab_char_type_9.i" quesoglc-0.7.2/src/fribidi/fribidi_types.c0000644000175000017500000000560210764574550015502 00000000000000/* FriBidi - Library of BiDi algorithm * Copyright (C) 2001,2002 Behdad Esfahbod. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library, in a file named COPYING; if not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA * * For licensing issues, contact . */ #ifdef HAVE_CONFIG_H #include #endif #include "fribidi.h" #ifdef DEBUGMODE char fribidi_char_from_type (FriBidiCharType c) { switch (c) { case FRIBIDI_TYPE_LTR: return 'L'; case FRIBIDI_TYPE_RTL: return 'R'; case FRIBIDI_TYPE_AL: return 'A'; case FRIBIDI_TYPE_EN: return '1'; case FRIBIDI_TYPE_AN: return '9'; case FRIBIDI_TYPE_ES: return 'w'; case FRIBIDI_TYPE_ET: return 'w'; case FRIBIDI_TYPE_CS: return 'w'; case FRIBIDI_TYPE_NSM: return '`'; case FRIBIDI_TYPE_BN: return 'b'; case FRIBIDI_TYPE_BS: return 'B'; case FRIBIDI_TYPE_SS: return 'S'; case FRIBIDI_TYPE_WS: return '_'; case FRIBIDI_TYPE_ON: return 'n'; case FRIBIDI_TYPE_LRE: return '+'; case FRIBIDI_TYPE_RLE: return '+'; case FRIBIDI_TYPE_LRO: return '+'; case FRIBIDI_TYPE_RLO: return '+'; case FRIBIDI_TYPE_PDF: return '-'; default: return '?'; } }; #endif char * fribidi_type_name (FriBidiCharType c) { #define _FRIBIDI_CASE(type) case FRIBIDI_TYPE_##type: return #type switch (c) { _FRIBIDI_CASE (LTR); _FRIBIDI_CASE (RTL); _FRIBIDI_CASE (AL); _FRIBIDI_CASE (EN); _FRIBIDI_CASE (AN); _FRIBIDI_CASE (ES); _FRIBIDI_CASE (ET); _FRIBIDI_CASE (CS); _FRIBIDI_CASE (NSM); _FRIBIDI_CASE (BN); _FRIBIDI_CASE (BS); _FRIBIDI_CASE (SS); _FRIBIDI_CASE (WS); _FRIBIDI_CASE (ON); _FRIBIDI_CASE (LRE); _FRIBIDI_CASE (RLE); _FRIBIDI_CASE (LRO); _FRIBIDI_CASE (RLO); _FRIBIDI_CASE (PDF); _FRIBIDI_CASE (SOT); _FRIBIDI_CASE (EOT); default: return "?"; } #undef _FRIBIDI_CASE } /* Map fribidi_prop_types to fribidi_types. */ const FriBidiCharType fribidi_prop_to_type[] = { #define _FRIBIDI_ADD_TYPE(TYPE) FRIBIDI_TYPE_##TYPE, #include "fribidi_types.i" #undef _FRIBIDI_ADD_TYPE }; quesoglc-0.7.2/src/fribidi/fribidi_tab_char_type_9.i0000644000175000017500000043716010764574550017410 00000000000000/* This file was automatically created from UnicodeData.txt version 4.1.0 by fribidi_create_char_types */ #ifndef FRIBIDI_TAB_CHAR_TYPE_9_I #define FRIBIDI_TAB_CHAR_TYPE_9_I #include "fribidi.h" #define LTR FRIBIDI_PROP_TYPE_LTR #define RTL FRIBIDI_PROP_TYPE_RTL #define AL FRIBIDI_PROP_TYPE_AL #define ON FRIBIDI_PROP_TYPE_ON #define BN FRIBIDI_PROP_TYPE_BN #define AN FRIBIDI_PROP_TYPE_AN #define BS FRIBIDI_PROP_TYPE_BS #define CS FRIBIDI_PROP_TYPE_CS #define EN FRIBIDI_PROP_TYPE_EN #define ES FRIBIDI_PROP_TYPE_ES #define ET FRIBIDI_PROP_TYPE_ET #define LRE FRIBIDI_PROP_TYPE_LRE #define LRO FRIBIDI_PROP_TYPE_LRO #define NSM FRIBIDI_PROP_TYPE_NSM #define PDF FRIBIDI_PROP_TYPE_PDF #define RLE FRIBIDI_PROP_TYPE_RLE #define RLO FRIBIDI_PROP_TYPE_RLO #define SS FRIBIDI_PROP_TYPE_SS #define WS FRIBIDI_PROP_TYPE_WS #define PACKTAB_UINT8 fribidi_uint8 #define PACKTAB_UINT16 fribidi_uint16 #define PACKTAB_UINT32 fribidi_uint32 /* Automatically generated by packtab.c version 2 just use FRIBIDI_GET_TYPE(key) assumed sizeof(FriBidiPropCharType) == 1 required memory: 2575 lookups: 9 partition shape: FriBidiPropertyBlock[17][8][4][8][4][2][8][2][2] different table entries: 1 4 10 18 60 126 158 110 57 */ /* *INDENT-OFF* */ static const FriBidiPropCharType FriBidiPropertyBlockLevel8[2*57] = { #define FriBidiPropertyBlockLevel8_0000 0x0 BN, BN, #define FriBidiPropertyBlockLevel8_0008 0x2 BN, SS, #define FriBidiPropertyBlockLevel8_000A 0x4 BS, SS, #define FriBidiPropertyBlockLevel8_000C 0x6 WS, BS, #define FriBidiPropertyBlockLevel8_001C 0x8 BS, BS, #define FriBidiPropertyBlockLevel8_0020 0xA WS, ON, #define FriBidiPropertyBlockLevel8_0022 0xC ON, ET, #define FriBidiPropertyBlockLevel8_0024 0xE ET, ET, #define FriBidiPropertyBlockLevel8_0026 0x10 ON, ON, #define FriBidiPropertyBlockLevel8_002A 0x12 ON, ES, #define FriBidiPropertyBlockLevel8_002C 0x14 CS, ES, #define FriBidiPropertyBlockLevel8_002E 0x16 CS, CS, #define FriBidiPropertyBlockLevel8_0030 0x18 EN, EN, #define FriBidiPropertyBlockLevel8_003A 0x1A CS, ON, #define FriBidiPropertyBlockLevel8_0040 0x1C ON,LTR, #define FriBidiPropertyBlockLevel8_0042 0x1E LTR,LTR, #define FriBidiPropertyBlockLevel8_005A 0x20 LTR, ON, #define FriBidiPropertyBlockLevel8_007E 0x22 ON, BN, #define FriBidiPropertyBlockLevel8_0084 0x24 BN, BS, #define FriBidiPropertyBlockLevel8_00B8 0x26 ON, EN, #define FriBidiPropertyBlockLevel8_0300 0x28 NSM,NSM, #define FriBidiPropertyBlockLevel8_0482 0x2A LTR,NSM, #define FriBidiPropertyBlockLevel8_0486 0x2C NSM,LTR, #define FriBidiPropertyBlockLevel8_0590 0x2E RTL,NSM, #define FriBidiPropertyBlockLevel8_05C2 0x30 NSM,RTL, #define FriBidiPropertyBlockLevel8_05C8 0x32 RTL,RTL, #define FriBidiPropertyBlockLevel8_0600 0x34 AL, AL, #define FriBidiPropertyBlockLevel8_060C 0x36 CS, AL, #define FriBidiPropertyBlockLevel8_064A 0x38 AL,NSM, #define FriBidiPropertyBlockLevel8_065E 0x3A NSM, AL, #define FriBidiPropertyBlockLevel8_0660 0x3C AN, AN, #define FriBidiPropertyBlockLevel8_066A 0x3E ET, AN, #define FriBidiPropertyBlockLevel8_066C 0x40 AN, AL, #define FriBidiPropertyBlockLevel8_06E8 0x42 NSM, ON, #define FriBidiPropertyBlockLevel8_070E 0x44 AL, BN, #define FriBidiPropertyBlockLevel8_0AF0 0x46 LTR, ET, #define FriBidiPropertyBlockLevel8_1680 0x48 WS,LTR, #define FriBidiPropertyBlockLevel8_180A 0x4A ON,NSM, #define FriBidiPropertyBlockLevel8_2000 0x4C WS, WS, #define FriBidiPropertyBlockLevel8_200A 0x4E WS, BN, #define FriBidiPropertyBlockLevel8_200E 0x50 LTR,RTL, #define FriBidiPropertyBlockLevel8_202A 0x52 LRE,RLE, #define FriBidiPropertyBlockLevel8_202C 0x54 PDF,LRO, #define FriBidiPropertyBlockLevel8_202E 0x56 RLO, CS, #define FriBidiPropertyBlockLevel8_2034 0x58 ET, ON, #define FriBidiPropertyBlockLevel8_205E 0x5A ON, WS, #define FriBidiPropertyBlockLevel8_2070 0x5C EN,LTR, #define FriBidiPropertyBlockLevel8_207A 0x5E ES, ES, #define FriBidiPropertyBlockLevel8_212E 0x60 ET,LTR, #define FriBidiPropertyBlockLevel8_2212 0x62 ES, ET, #define FriBidiPropertyBlockLevel8_FB28 0x64 RTL, ES, #define FriBidiPropertyBlockLevel8_FDFC 0x66 AL, ON, #define FriBidiPropertyBlockLevel8_FE52 0x68 CS,LTR, #define FriBidiPropertyBlockLevel8_FE54 0x6A ON, CS, #define FriBidiPropertyBlockLevel8_FFF8 0x6C BN, ON, #define FriBidiPropertyBlockLevel8_1D172 0x6E LTR, BN, #define FriBidiPropertyBlockLevel8_1D17A 0x70 BN,NSM, }; static const PACKTAB_UINT8 FriBidiPropertyBlockLevel7[2*110] = { #define FriBidiPropertyBlockLevel7_0000 0x0 FriBidiPropertyBlockLevel8_0000, /* 0000..0001 */ FriBidiPropertyBlockLevel8_0000, /* 0002..0003 */ #define FriBidiPropertyBlockLevel7_0008 0x2 FriBidiPropertyBlockLevel8_0008, /* 0008..0009 */ FriBidiPropertyBlockLevel8_000A, /* 000A..000B */ #define FriBidiPropertyBlockLevel7_000C 0x4 FriBidiPropertyBlockLevel8_000C, /* 000C..000D */ FriBidiPropertyBlockLevel8_0000, /* 000E..000F */ #define FriBidiPropertyBlockLevel7_001C 0x6 FriBidiPropertyBlockLevel8_001C, /* 001C..001D */ FriBidiPropertyBlockLevel8_000A, /* 001E..001F */ #define FriBidiPropertyBlockLevel7_0020 0x8 FriBidiPropertyBlockLevel8_0020, /* 0020..0021 */ FriBidiPropertyBlockLevel8_0022, /* 0022..0023 */ #define FriBidiPropertyBlockLevel7_0024 0xA FriBidiPropertyBlockLevel8_0024, /* 0024..0025 */ FriBidiPropertyBlockLevel8_0026, /* 0026..0027 */ #define FriBidiPropertyBlockLevel7_0028 0xC FriBidiPropertyBlockLevel8_0026, /* 0028..0029 */ FriBidiPropertyBlockLevel8_002A, /* 002A..002B */ #define FriBidiPropertyBlockLevel7_002C 0xE FriBidiPropertyBlockLevel8_002C, /* 002C..002D */ FriBidiPropertyBlockLevel8_002E, /* 002E..002F */ #define FriBidiPropertyBlockLevel7_0030 0x10 FriBidiPropertyBlockLevel8_0030, /* 0030..0031 */ FriBidiPropertyBlockLevel8_0030, /* 0032..0033 */ #define FriBidiPropertyBlockLevel7_0038 0x12 FriBidiPropertyBlockLevel8_0030, /* 0038..0039 */ FriBidiPropertyBlockLevel8_003A, /* 003A..003B */ #define FriBidiPropertyBlockLevel7_003C 0x14 FriBidiPropertyBlockLevel8_0026, /* 003C..003D */ FriBidiPropertyBlockLevel8_0026, /* 003E..003F */ #define FriBidiPropertyBlockLevel7_0040 0x16 FriBidiPropertyBlockLevel8_0040, /* 0040..0041 */ FriBidiPropertyBlockLevel8_0042, /* 0042..0043 */ #define FriBidiPropertyBlockLevel7_0044 0x18 FriBidiPropertyBlockLevel8_0042, /* 0044..0045 */ FriBidiPropertyBlockLevel8_0042, /* 0046..0047 */ #define FriBidiPropertyBlockLevel7_0058 0x1A FriBidiPropertyBlockLevel8_0042, /* 0058..0059 */ FriBidiPropertyBlockLevel8_005A, /* 005A..005B */ #define FriBidiPropertyBlockLevel7_007C 0x1C FriBidiPropertyBlockLevel8_0026, /* 007C..007D */ FriBidiPropertyBlockLevel8_007E, /* 007E..007F */ #define FriBidiPropertyBlockLevel7_0084 0x1E FriBidiPropertyBlockLevel8_0084, /* 0084..0085 */ FriBidiPropertyBlockLevel8_0000, /* 0086..0087 */ #define FriBidiPropertyBlockLevel7_00A0 0x20 FriBidiPropertyBlockLevel8_003A, /* 00A0..00A1 */ FriBidiPropertyBlockLevel8_0024, /* 00A2..00A3 */ #define FriBidiPropertyBlockLevel7_00A8 0x22 FriBidiPropertyBlockLevel8_0026, /* 00A8..00A9 */ FriBidiPropertyBlockLevel8_005A, /* 00AA..00AB */ #define FriBidiPropertyBlockLevel7_00AC 0x24 FriBidiPropertyBlockLevel8_007E, /* 00AC..00AD */ FriBidiPropertyBlockLevel8_0026, /* 00AE..00AF */ #define FriBidiPropertyBlockLevel7_00B0 0x26 FriBidiPropertyBlockLevel8_0024, /* 00B0..00B1 */ FriBidiPropertyBlockLevel8_0030, /* 00B2..00B3 */ #define FriBidiPropertyBlockLevel7_00B4 0x28 FriBidiPropertyBlockLevel8_0040, /* 00B4..00B5 */ FriBidiPropertyBlockLevel8_0026, /* 00B6..00B7 */ #define FriBidiPropertyBlockLevel7_00B8 0x2A FriBidiPropertyBlockLevel8_00B8, /* 00B8..00B9 */ FriBidiPropertyBlockLevel8_005A, /* 00BA..00BB */ #define FriBidiPropertyBlockLevel7_02B8 0x2C FriBidiPropertyBlockLevel8_005A, /* 02B8..02B9 */ FriBidiPropertyBlockLevel8_0040, /* 02BA..02BB */ #define FriBidiPropertyBlockLevel7_02C0 0x2E FriBidiPropertyBlockLevel8_0042, /* 02C0..02C1 */ FriBidiPropertyBlockLevel8_0026, /* 02C2..02C3 */ #define FriBidiPropertyBlockLevel7_02E4 0x30 FriBidiPropertyBlockLevel8_005A, /* 02E4..02E5 */ FriBidiPropertyBlockLevel8_0026, /* 02E6..02E7 */ #define FriBidiPropertyBlockLevel7_0300 0x32 FriBidiPropertyBlockLevel8_0300, /* 0300..0301 */ FriBidiPropertyBlockLevel8_0300, /* 0302..0303 */ #define FriBidiPropertyBlockLevel7_0374 0x34 FriBidiPropertyBlockLevel8_0026, /* 0374..0375 */ FriBidiPropertyBlockLevel8_0042, /* 0376..0377 */ #define FriBidiPropertyBlockLevel7_037C 0x36 FriBidiPropertyBlockLevel8_0042, /* 037C..037D */ FriBidiPropertyBlockLevel8_0040, /* 037E..037F */ #define FriBidiPropertyBlockLevel7_0480 0x38 FriBidiPropertyBlockLevel8_0042, /* 0480..0481 */ FriBidiPropertyBlockLevel8_0482, /* 0482..0483 */ #define FriBidiPropertyBlockLevel7_0484 0x3A FriBidiPropertyBlockLevel8_0300, /* 0484..0485 */ FriBidiPropertyBlockLevel8_0486, /* 0486..0487 */ #define FriBidiPropertyBlockLevel7_0488 0x3C FriBidiPropertyBlockLevel8_0300, /* 0488..0489 */ FriBidiPropertyBlockLevel8_0042, /* 048A..048B */ #define FriBidiPropertyBlockLevel7_0590 0x3E FriBidiPropertyBlockLevel8_0590, /* 0590..0591 */ FriBidiPropertyBlockLevel8_0300, /* 0592..0593 */ #define FriBidiPropertyBlockLevel7_05B8 0x40 FriBidiPropertyBlockLevel8_0300, /* 05B8..05B9 */ FriBidiPropertyBlockLevel8_0590, /* 05BA..05BB */ #define FriBidiPropertyBlockLevel7_05C0 0x42 FriBidiPropertyBlockLevel8_0590, /* 05C0..05C1 */ FriBidiPropertyBlockLevel8_05C2, /* 05C2..05C3 */ #define FriBidiPropertyBlockLevel7_05C8 0x44 FriBidiPropertyBlockLevel8_05C8, /* 05C8..05C9 */ FriBidiPropertyBlockLevel8_05C8, /* 05CA..05CB */ #define FriBidiPropertyBlockLevel7_0600 0x46 FriBidiPropertyBlockLevel8_0600, /* 0600..0601 */ FriBidiPropertyBlockLevel8_0600, /* 0602..0603 */ #define FriBidiPropertyBlockLevel7_060C 0x48 FriBidiPropertyBlockLevel8_060C, /* 060C..060D */ FriBidiPropertyBlockLevel8_0026, /* 060E..060F */ #define FriBidiPropertyBlockLevel7_0614 0x4A FriBidiPropertyBlockLevel8_0300, /* 0614..0615 */ FriBidiPropertyBlockLevel8_0600, /* 0616..0617 */ #define FriBidiPropertyBlockLevel7_0648 0x4C FriBidiPropertyBlockLevel8_0600, /* 0648..0649 */ FriBidiPropertyBlockLevel8_064A, /* 064A..064B */ #define FriBidiPropertyBlockLevel7_065C 0x4E FriBidiPropertyBlockLevel8_0300, /* 065C..065D */ FriBidiPropertyBlockLevel8_065E, /* 065E..065F */ #define FriBidiPropertyBlockLevel7_0660 0x50 FriBidiPropertyBlockLevel8_0660, /* 0660..0661 */ FriBidiPropertyBlockLevel8_0660, /* 0662..0663 */ #define FriBidiPropertyBlockLevel7_0668 0x52 FriBidiPropertyBlockLevel8_0660, /* 0668..0669 */ FriBidiPropertyBlockLevel8_066A, /* 066A..066B */ #define FriBidiPropertyBlockLevel7_066C 0x54 FriBidiPropertyBlockLevel8_066C, /* 066C..066D */ FriBidiPropertyBlockLevel8_0600, /* 066E..066F */ #define FriBidiPropertyBlockLevel7_0670 0x56 FriBidiPropertyBlockLevel8_065E, /* 0670..0671 */ FriBidiPropertyBlockLevel8_0600, /* 0672..0673 */ #define FriBidiPropertyBlockLevel7_06D4 0x58 FriBidiPropertyBlockLevel8_0600, /* 06D4..06D5 */ FriBidiPropertyBlockLevel8_0300, /* 06D6..06D7 */ #define FriBidiPropertyBlockLevel7_06DC 0x5A FriBidiPropertyBlockLevel8_065E, /* 06DC..06DD */ FriBidiPropertyBlockLevel8_0300, /* 06DE..06DF */ #define FriBidiPropertyBlockLevel7_06E4 0x5C FriBidiPropertyBlockLevel8_065E, /* 06E4..06E5 */ FriBidiPropertyBlockLevel8_064A, /* 06E6..06E7 */ #define FriBidiPropertyBlockLevel7_06E8 0x5E FriBidiPropertyBlockLevel8_06E8, /* 06E8..06E9 */ FriBidiPropertyBlockLevel8_0300, /* 06EA..06EB */ #define FriBidiPropertyBlockLevel7_06F8 0x60 FriBidiPropertyBlockLevel8_0030, /* 06F8..06F9 */ FriBidiPropertyBlockLevel8_0600, /* 06FA..06FB */ #define FriBidiPropertyBlockLevel7_070C 0x62 FriBidiPropertyBlockLevel8_0600, /* 070C..070D */ FriBidiPropertyBlockLevel8_070E, /* 070E..070F */ #define FriBidiPropertyBlockLevel7_0710 0x64 FriBidiPropertyBlockLevel8_064A, /* 0710..0711 */ FriBidiPropertyBlockLevel8_0600, /* 0712..0713 */ #define FriBidiPropertyBlockLevel7_0900 0x66 FriBidiPropertyBlockLevel8_0482, /* 0900..0901 */ FriBidiPropertyBlockLevel8_0486, /* 0902..0903 */ #define FriBidiPropertyBlockLevel7_093C 0x68 FriBidiPropertyBlockLevel8_0486, /* 093C..093D */ FriBidiPropertyBlockLevel8_0042, /* 093E..093F */ #define FriBidiPropertyBlockLevel7_0940 0x6A FriBidiPropertyBlockLevel8_0482, /* 0940..0941 */ FriBidiPropertyBlockLevel8_0300, /* 0942..0943 */ #define FriBidiPropertyBlockLevel7_094C 0x6C FriBidiPropertyBlockLevel8_0482, /* 094C..094D */ FriBidiPropertyBlockLevel8_0042, /* 094E..094F */ #define FriBidiPropertyBlockLevel7_0960 0x6E FriBidiPropertyBlockLevel8_0042, /* 0960..0961 */ FriBidiPropertyBlockLevel8_0300, /* 0962..0963 */ #define FriBidiPropertyBlockLevel7_09F0 0x70 FriBidiPropertyBlockLevel8_0042, /* 09F0..09F1 */ FriBidiPropertyBlockLevel8_0024, /* 09F2..09F3 */ #define FriBidiPropertyBlockLevel7_0A48 0x72 FriBidiPropertyBlockLevel8_0486, /* 0A48..0A49 */ FriBidiPropertyBlockLevel8_0482, /* 0A4A..0A4B */ #define FriBidiPropertyBlockLevel7_0AC4 0x74 FriBidiPropertyBlockLevel8_0300, /* 0AC4..0AC5 */ FriBidiPropertyBlockLevel8_0482, /* 0AC6..0AC7 */ #define FriBidiPropertyBlockLevel7_0AF0 0x76 FriBidiPropertyBlockLevel8_0AF0, /* 0AF0..0AF1 */ FriBidiPropertyBlockLevel8_0042, /* 0AF2..0AF3 */ #define FriBidiPropertyBlockLevel7_0B54 0x78 FriBidiPropertyBlockLevel8_0042, /* 0B54..0B55 */ FriBidiPropertyBlockLevel8_0486, /* 0B56..0B57 */ #define FriBidiPropertyBlockLevel7_0BF8 0x7A FriBidiPropertyBlockLevel8_0022, /* 0BF8..0BF9 */ FriBidiPropertyBlockLevel8_0040, /* 0BFA..0BFB */ #define FriBidiPropertyBlockLevel7_0C48 0x7C FriBidiPropertyBlockLevel8_0486, /* 0C48..0C49 */ FriBidiPropertyBlockLevel8_0300, /* 0C4A..0C4B */ #define FriBidiPropertyBlockLevel7_0DD4 0x7E FriBidiPropertyBlockLevel8_0486, /* 0DD4..0DD5 */ FriBidiPropertyBlockLevel8_0486, /* 0DD6..0DD7 */ #define FriBidiPropertyBlockLevel7_0E3C 0x80 FriBidiPropertyBlockLevel8_0042, /* 0E3C..0E3D */ FriBidiPropertyBlockLevel8_0AF0, /* 0E3E..0E3F */ #define FriBidiPropertyBlockLevel7_0F34 0x82 FriBidiPropertyBlockLevel8_0482, /* 0F34..0F35 */ FriBidiPropertyBlockLevel8_0482, /* 0F36..0F37 */ #define FriBidiPropertyBlockLevel7_0F38 0x84 FriBidiPropertyBlockLevel8_0482, /* 0F38..0F39 */ FriBidiPropertyBlockLevel8_0026, /* 0F3A..0F3B */ #define FriBidiPropertyBlockLevel7_1680 0x86 FriBidiPropertyBlockLevel8_1680, /* 1680..1681 */ FriBidiPropertyBlockLevel8_0042, /* 1682..1683 */ #define FriBidiPropertyBlockLevel7_1808 0x88 FriBidiPropertyBlockLevel8_0026, /* 1808..1809 */ FriBidiPropertyBlockLevel8_180A, /* 180A..180B */ #define FriBidiPropertyBlockLevel7_180C 0x8A FriBidiPropertyBlockLevel8_0300, /* 180C..180D */ FriBidiPropertyBlockLevel8_1680, /* 180E..180F */ #define FriBidiPropertyBlockLevel7_1FBC 0x8C FriBidiPropertyBlockLevel8_005A, /* 1FBC..1FBD */ FriBidiPropertyBlockLevel8_005A, /* 1FBE..1FBF */ #define FriBidiPropertyBlockLevel7_2000 0x8E FriBidiPropertyBlockLevel8_2000, /* 2000..2001 */ FriBidiPropertyBlockLevel8_2000, /* 2002..2003 */ #define FriBidiPropertyBlockLevel7_2008 0x90 FriBidiPropertyBlockLevel8_2000, /* 2008..2009 */ FriBidiPropertyBlockLevel8_200A, /* 200A..200B */ #define FriBidiPropertyBlockLevel7_200C 0x92 FriBidiPropertyBlockLevel8_0000, /* 200C..200D */ FriBidiPropertyBlockLevel8_200E, /* 200E..200F */ #define FriBidiPropertyBlockLevel7_2028 0x94 FriBidiPropertyBlockLevel8_000C, /* 2028..2029 */ FriBidiPropertyBlockLevel8_202A, /* 202A..202B */ #define FriBidiPropertyBlockLevel7_202C 0x96 FriBidiPropertyBlockLevel8_202C, /* 202C..202D */ FriBidiPropertyBlockLevel8_202E, /* 202E..202F */ #define FriBidiPropertyBlockLevel7_2030 0x98 FriBidiPropertyBlockLevel8_0024, /* 2030..2031 */ FriBidiPropertyBlockLevel8_0024, /* 2032..2033 */ #define FriBidiPropertyBlockLevel7_2034 0x9A FriBidiPropertyBlockLevel8_2034, /* 2034..2035 */ FriBidiPropertyBlockLevel8_0026, /* 2036..2037 */ #define FriBidiPropertyBlockLevel7_2044 0x9C FriBidiPropertyBlockLevel8_003A, /* 2044..2045 */ FriBidiPropertyBlockLevel8_0026, /* 2046..2047 */ #define FriBidiPropertyBlockLevel7_205C 0x9E FriBidiPropertyBlockLevel8_0026, /* 205C..205D */ FriBidiPropertyBlockLevel8_205E, /* 205E..205F */ #define FriBidiPropertyBlockLevel7_2070 0xA0 FriBidiPropertyBlockLevel8_2070, /* 2070..2071 */ FriBidiPropertyBlockLevel8_0042, /* 2072..2073 */ #define FriBidiPropertyBlockLevel7_2078 0xA2 FriBidiPropertyBlockLevel8_0030, /* 2078..2079 */ FriBidiPropertyBlockLevel8_207A, /* 207A..207B */ #define FriBidiPropertyBlockLevel7_207C 0xA4 FriBidiPropertyBlockLevel8_0026, /* 207C..207D */ FriBidiPropertyBlockLevel8_0040, /* 207E..207F */ #define FriBidiPropertyBlockLevel7_20B4 0xA6 FriBidiPropertyBlockLevel8_0024, /* 20B4..20B5 */ FriBidiPropertyBlockLevel8_0042, /* 20B6..20B7 */ #define FriBidiPropertyBlockLevel7_2128 0xA8 FriBidiPropertyBlockLevel8_005A, /* 2128..2129 */ FriBidiPropertyBlockLevel8_0042, /* 212A..212B */ #define FriBidiPropertyBlockLevel7_212C 0xAA FriBidiPropertyBlockLevel8_0042, /* 212C..212D */ FriBidiPropertyBlockLevel8_212E, /* 212E..212F */ #define FriBidiPropertyBlockLevel7_2210 0xAC FriBidiPropertyBlockLevel8_0026, /* 2210..2211 */ FriBidiPropertyBlockLevel8_2212, /* 2212..2213 */ #define FriBidiPropertyBlockLevel7_3000 0xAE FriBidiPropertyBlockLevel8_0020, /* 3000..3001 */ FriBidiPropertyBlockLevel8_0026, /* 3002..3003 */ #define FriBidiPropertyBlockLevel7_3098 0xB0 FriBidiPropertyBlockLevel8_0482, /* 3098..3099 */ FriBidiPropertyBlockLevel8_06E8, /* 309A..309B */ #define FriBidiPropertyBlockLevel7_FB1C 0xB2 FriBidiPropertyBlockLevel8_200E, /* FB1C..FB1D */ FriBidiPropertyBlockLevel8_05C2, /* FB1E..FB1F */ #define FriBidiPropertyBlockLevel7_FB28 0xB4 FriBidiPropertyBlockLevel8_FB28, /* FB28..FB29 */ FriBidiPropertyBlockLevel8_05C8, /* FB2A..FB2B */ #define FriBidiPropertyBlockLevel7_FD3C 0xB6 FriBidiPropertyBlockLevel8_0600, /* FD3C..FD3D */ FriBidiPropertyBlockLevel8_0026, /* FD3E..FD3F */ #define FriBidiPropertyBlockLevel7_FDFC 0xB8 FriBidiPropertyBlockLevel8_FDFC, /* FDFC..FDFD */ FriBidiPropertyBlockLevel8_0600, /* FDFE..FDFF */ #define FriBidiPropertyBlockLevel7_FE50 0xBA FriBidiPropertyBlockLevel8_003A, /* FE50..FE51 */ FriBidiPropertyBlockLevel8_FE52, /* FE52..FE53 */ #define FriBidiPropertyBlockLevel7_FE54 0xBC FriBidiPropertyBlockLevel8_FE54, /* FE54..FE55 */ FriBidiPropertyBlockLevel8_0026, /* FE56..FE57 */ #define FriBidiPropertyBlockLevel7_FE5C 0xBE FriBidiPropertyBlockLevel8_0026, /* FE5C..FE5D */ FriBidiPropertyBlockLevel8_0022, /* FE5E..FE5F */ #define FriBidiPropertyBlockLevel7_FE60 0xC0 FriBidiPropertyBlockLevel8_0026, /* FE60..FE61 */ FriBidiPropertyBlockLevel8_207A, /* FE62..FE63 */ #define FriBidiPropertyBlockLevel7_FE68 0xC2 FriBidiPropertyBlockLevel8_0022, /* FE68..FE69 */ FriBidiPropertyBlockLevel8_2034, /* FE6A..FE6B */ #define FriBidiPropertyBlockLevel7_FF00 0xC4 FriBidiPropertyBlockLevel8_005A, /* FF00..FF01 */ FriBidiPropertyBlockLevel8_0022, /* FF02..FF03 */ #define FriBidiPropertyBlockLevel7_FFE4 0xC6 FriBidiPropertyBlockLevel8_0022, /* FFE4..FFE5 */ FriBidiPropertyBlockLevel8_212E, /* FFE6..FFE7 */ #define FriBidiPropertyBlockLevel7_FFF8 0xC8 FriBidiPropertyBlockLevel8_FFF8, /* FFF8..FFF9 */ FriBidiPropertyBlockLevel8_0026, /* FFFA..FFFB */ #define FriBidiPropertyBlockLevel7_FFFC 0xCA FriBidiPropertyBlockLevel8_0026, /* FFFC..FFFD */ FriBidiPropertyBlockLevel8_0000, /* FFFE..FFFF */ #define FriBidiPropertyBlockLevel7_10A38 0xCC FriBidiPropertyBlockLevel8_0300, /* 10A38..10A39 */ FriBidiPropertyBlockLevel8_05C2, /* 10A3A..10A3B */ #define FriBidiPropertyBlockLevel7_10A3C 0xCE FriBidiPropertyBlockLevel8_05C8, /* 10A3C..10A3D */ FriBidiPropertyBlockLevel8_0590, /* 10A3E..10A3F */ #define FriBidiPropertyBlockLevel7_1D170 0xD0 FriBidiPropertyBlockLevel8_0042, /* 1D170..1D171 */ FriBidiPropertyBlockLevel8_1D172, /* 1D172..1D173 */ #define FriBidiPropertyBlockLevel7_1D178 0xD2 FriBidiPropertyBlockLevel8_0000, /* 1D178..1D179 */ FriBidiPropertyBlockLevel8_1D17A, /* 1D17A..1D17B */ #define FriBidiPropertyBlockLevel7_1D240 0xD4 FriBidiPropertyBlockLevel8_0026, /* 1D240..1D241 */ FriBidiPropertyBlockLevel8_0300, /* 1D242..1D243 */ #define FriBidiPropertyBlockLevel7_1D244 0xD6 FriBidiPropertyBlockLevel8_06E8, /* 1D244..1D245 */ FriBidiPropertyBlockLevel8_0042, /* 1D246..1D247 */ #define FriBidiPropertyBlockLevel7_1D7CC 0xD8 FriBidiPropertyBlockLevel8_0042, /* 1D7CC..1D7CD */ FriBidiPropertyBlockLevel8_0030, /* 1D7CE..1D7CF */ #define FriBidiPropertyBlockLevel7_1FFFC 0xDA FriBidiPropertyBlockLevel8_0042, /* 1FFFC..1FFFD */ FriBidiPropertyBlockLevel8_0000, /* 1FFFE..1FFFF */ }; static const PACKTAB_UINT8 FriBidiPropertyBlockLevel6[8*158] = { #define FriBidiPropertyBlockLevel6_0000 0x0 FriBidiPropertyBlockLevel7_0000, /* 0000..0003 */ FriBidiPropertyBlockLevel7_0000, /* 0004..0007 */ FriBidiPropertyBlockLevel7_0008, /* 0008..000B */ FriBidiPropertyBlockLevel7_000C, /* 000C..000F */ FriBidiPropertyBlockLevel7_0000, /* 0010..0013 */ FriBidiPropertyBlockLevel7_0000, /* 0014..0017 */ FriBidiPropertyBlockLevel7_0000, /* 0018..001B */ FriBidiPropertyBlockLevel7_001C, /* 001C..001F */ #define FriBidiPropertyBlockLevel6_0020 0x8 FriBidiPropertyBlockLevel7_0020, /* 0020..0023 */ FriBidiPropertyBlockLevel7_0024, /* 0024..0027 */ FriBidiPropertyBlockLevel7_0028, /* 0028..002B */ FriBidiPropertyBlockLevel7_002C, /* 002C..002F */ FriBidiPropertyBlockLevel7_0030, /* 0030..0033 */ FriBidiPropertyBlockLevel7_0030, /* 0034..0037 */ FriBidiPropertyBlockLevel7_0038, /* 0038..003B */ FriBidiPropertyBlockLevel7_003C, /* 003C..003F */ #define FriBidiPropertyBlockLevel6_0040 0x10 FriBidiPropertyBlockLevel7_0040, /* 0040..0043 */ FriBidiPropertyBlockLevel7_0044, /* 0044..0047 */ FriBidiPropertyBlockLevel7_0044, /* 0048..004B */ FriBidiPropertyBlockLevel7_0044, /* 004C..004F */ FriBidiPropertyBlockLevel7_0044, /* 0050..0053 */ FriBidiPropertyBlockLevel7_0044, /* 0054..0057 */ FriBidiPropertyBlockLevel7_0058, /* 0058..005B */ FriBidiPropertyBlockLevel7_003C, /* 005C..005F */ #define FriBidiPropertyBlockLevel6_0060 0x18 FriBidiPropertyBlockLevel7_0040, /* 0060..0063 */ FriBidiPropertyBlockLevel7_0044, /* 0064..0067 */ FriBidiPropertyBlockLevel7_0044, /* 0068..006B */ FriBidiPropertyBlockLevel7_0044, /* 006C..006F */ FriBidiPropertyBlockLevel7_0044, /* 0070..0073 */ FriBidiPropertyBlockLevel7_0044, /* 0074..0077 */ FriBidiPropertyBlockLevel7_0058, /* 0078..007B */ FriBidiPropertyBlockLevel7_007C, /* 007C..007F */ #define FriBidiPropertyBlockLevel6_0080 0x20 FriBidiPropertyBlockLevel7_0000, /* 0080..0083 */ FriBidiPropertyBlockLevel7_0084, /* 0084..0087 */ FriBidiPropertyBlockLevel7_0000, /* 0088..008B */ FriBidiPropertyBlockLevel7_0000, /* 008C..008F */ FriBidiPropertyBlockLevel7_0000, /* 0090..0093 */ FriBidiPropertyBlockLevel7_0000, /* 0094..0097 */ FriBidiPropertyBlockLevel7_0000, /* 0098..009B */ FriBidiPropertyBlockLevel7_0000, /* 009C..009F */ #define FriBidiPropertyBlockLevel6_00A0 0x28 FriBidiPropertyBlockLevel7_00A0, /* 00A0..00A3 */ FriBidiPropertyBlockLevel7_0024, /* 00A4..00A7 */ FriBidiPropertyBlockLevel7_00A8, /* 00A8..00AB */ FriBidiPropertyBlockLevel7_00AC, /* 00AC..00AF */ FriBidiPropertyBlockLevel7_00B0, /* 00B0..00B3 */ FriBidiPropertyBlockLevel7_00B4, /* 00B4..00B7 */ FriBidiPropertyBlockLevel7_00B8, /* 00B8..00BB */ FriBidiPropertyBlockLevel7_003C, /* 00BC..00BF */ #define FriBidiPropertyBlockLevel6_00C0 0x30 FriBidiPropertyBlockLevel7_0044, /* 00C0..00C3 */ FriBidiPropertyBlockLevel7_0044, /* 00C4..00C7 */ FriBidiPropertyBlockLevel7_0044, /* 00C8..00CB */ FriBidiPropertyBlockLevel7_0044, /* 00CC..00CF */ FriBidiPropertyBlockLevel7_0044, /* 00D0..00D3 */ FriBidiPropertyBlockLevel7_0058, /* 00D4..00D7 */ FriBidiPropertyBlockLevel7_0044, /* 00D8..00DB */ FriBidiPropertyBlockLevel7_0044, /* 00DC..00DF */ #define FriBidiPropertyBlockLevel6_0100 0x38 FriBidiPropertyBlockLevel7_0044, /* 0100..0103 */ FriBidiPropertyBlockLevel7_0044, /* 0104..0107 */ FriBidiPropertyBlockLevel7_0044, /* 0108..010B */ FriBidiPropertyBlockLevel7_0044, /* 010C..010F */ FriBidiPropertyBlockLevel7_0044, /* 0110..0113 */ FriBidiPropertyBlockLevel7_0044, /* 0114..0117 */ FriBidiPropertyBlockLevel7_0044, /* 0118..011B */ FriBidiPropertyBlockLevel7_0044, /* 011C..011F */ #define FriBidiPropertyBlockLevel6_02A0 0x40 FriBidiPropertyBlockLevel7_0044, /* 02A0..02A3 */ FriBidiPropertyBlockLevel7_0044, /* 02A4..02A7 */ FriBidiPropertyBlockLevel7_0044, /* 02A8..02AB */ FriBidiPropertyBlockLevel7_0044, /* 02AC..02AF */ FriBidiPropertyBlockLevel7_0044, /* 02B0..02B3 */ FriBidiPropertyBlockLevel7_0044, /* 02B4..02B7 */ FriBidiPropertyBlockLevel7_02B8, /* 02B8..02BB */ FriBidiPropertyBlockLevel7_0044, /* 02BC..02BF */ #define FriBidiPropertyBlockLevel6_02C0 0x48 FriBidiPropertyBlockLevel7_02C0, /* 02C0..02C3 */ FriBidiPropertyBlockLevel7_003C, /* 02C4..02C7 */ FriBidiPropertyBlockLevel7_003C, /* 02C8..02CB */ FriBidiPropertyBlockLevel7_003C, /* 02CC..02CF */ FriBidiPropertyBlockLevel7_02C0, /* 02D0..02D3 */ FriBidiPropertyBlockLevel7_003C, /* 02D4..02D7 */ FriBidiPropertyBlockLevel7_003C, /* 02D8..02DB */ FriBidiPropertyBlockLevel7_003C, /* 02DC..02DF */ #define FriBidiPropertyBlockLevel6_02E0 0x50 FriBidiPropertyBlockLevel7_0044, /* 02E0..02E3 */ FriBidiPropertyBlockLevel7_02E4, /* 02E4..02E7 */ FriBidiPropertyBlockLevel7_003C, /* 02E8..02EB */ FriBidiPropertyBlockLevel7_00A8, /* 02EC..02EF */ FriBidiPropertyBlockLevel7_003C, /* 02F0..02F3 */ FriBidiPropertyBlockLevel7_003C, /* 02F4..02F7 */ FriBidiPropertyBlockLevel7_003C, /* 02F8..02FB */ FriBidiPropertyBlockLevel7_003C, /* 02FC..02FF */ #define FriBidiPropertyBlockLevel6_0300 0x58 FriBidiPropertyBlockLevel7_0300, /* 0300..0303 */ FriBidiPropertyBlockLevel7_0300, /* 0304..0307 */ FriBidiPropertyBlockLevel7_0300, /* 0308..030B */ FriBidiPropertyBlockLevel7_0300, /* 030C..030F */ FriBidiPropertyBlockLevel7_0300, /* 0310..0313 */ FriBidiPropertyBlockLevel7_0300, /* 0314..0317 */ FriBidiPropertyBlockLevel7_0300, /* 0318..031B */ FriBidiPropertyBlockLevel7_0300, /* 031C..031F */ #define FriBidiPropertyBlockLevel6_0360 0x60 FriBidiPropertyBlockLevel7_0300, /* 0360..0363 */ FriBidiPropertyBlockLevel7_0300, /* 0364..0367 */ FriBidiPropertyBlockLevel7_0300, /* 0368..036B */ FriBidiPropertyBlockLevel7_0300, /* 036C..036F */ FriBidiPropertyBlockLevel7_0044, /* 0370..0373 */ FriBidiPropertyBlockLevel7_0374, /* 0374..0377 */ FriBidiPropertyBlockLevel7_0044, /* 0378..037B */ FriBidiPropertyBlockLevel7_037C, /* 037C..037F */ #define FriBidiPropertyBlockLevel6_0380 0x68 FriBidiPropertyBlockLevel7_0044, /* 0380..0383 */ FriBidiPropertyBlockLevel7_00A8, /* 0384..0387 */ FriBidiPropertyBlockLevel7_0044, /* 0388..038B */ FriBidiPropertyBlockLevel7_0044, /* 038C..038F */ FriBidiPropertyBlockLevel7_0044, /* 0390..0393 */ FriBidiPropertyBlockLevel7_0044, /* 0394..0397 */ FriBidiPropertyBlockLevel7_0044, /* 0398..039B */ FriBidiPropertyBlockLevel7_0044, /* 039C..039F */ #define FriBidiPropertyBlockLevel6_03E0 0x70 FriBidiPropertyBlockLevel7_0044, /* 03E0..03E3 */ FriBidiPropertyBlockLevel7_0044, /* 03E4..03E7 */ FriBidiPropertyBlockLevel7_0044, /* 03E8..03EB */ FriBidiPropertyBlockLevel7_0044, /* 03EC..03EF */ FriBidiPropertyBlockLevel7_0044, /* 03F0..03F3 */ FriBidiPropertyBlockLevel7_037C, /* 03F4..03F7 */ FriBidiPropertyBlockLevel7_0044, /* 03F8..03FB */ FriBidiPropertyBlockLevel7_0044, /* 03FC..03FF */ #define FriBidiPropertyBlockLevel6_0480 0x78 FriBidiPropertyBlockLevel7_0480, /* 0480..0483 */ FriBidiPropertyBlockLevel7_0484, /* 0484..0487 */ FriBidiPropertyBlockLevel7_0488, /* 0488..048B */ FriBidiPropertyBlockLevel7_0044, /* 048C..048F */ FriBidiPropertyBlockLevel7_0044, /* 0490..0493 */ FriBidiPropertyBlockLevel7_0044, /* 0494..0497 */ FriBidiPropertyBlockLevel7_0044, /* 0498..049B */ FriBidiPropertyBlockLevel7_0044, /* 049C..049F */ #define FriBidiPropertyBlockLevel6_0580 0x80 FriBidiPropertyBlockLevel7_0044, /* 0580..0583 */ FriBidiPropertyBlockLevel7_0044, /* 0584..0587 */ FriBidiPropertyBlockLevel7_037C, /* 0588..058B */ FriBidiPropertyBlockLevel7_0044, /* 058C..058F */ FriBidiPropertyBlockLevel7_0590, /* 0590..0593 */ FriBidiPropertyBlockLevel7_0300, /* 0594..0597 */ FriBidiPropertyBlockLevel7_0300, /* 0598..059B */ FriBidiPropertyBlockLevel7_0300, /* 059C..059F */ #define FriBidiPropertyBlockLevel6_05A0 0x88 FriBidiPropertyBlockLevel7_0300, /* 05A0..05A3 */ FriBidiPropertyBlockLevel7_0300, /* 05A4..05A7 */ FriBidiPropertyBlockLevel7_0300, /* 05A8..05AB */ FriBidiPropertyBlockLevel7_0300, /* 05AC..05AF */ FriBidiPropertyBlockLevel7_0300, /* 05B0..05B3 */ FriBidiPropertyBlockLevel7_0300, /* 05B4..05B7 */ FriBidiPropertyBlockLevel7_05B8, /* 05B8..05BB */ FriBidiPropertyBlockLevel7_05B8, /* 05BC..05BF */ #define FriBidiPropertyBlockLevel6_05C0 0x90 FriBidiPropertyBlockLevel7_05C0, /* 05C0..05C3 */ FriBidiPropertyBlockLevel7_05B8, /* 05C4..05C7 */ FriBidiPropertyBlockLevel7_05C8, /* 05C8..05CB */ FriBidiPropertyBlockLevel7_05C8, /* 05CC..05CF */ FriBidiPropertyBlockLevel7_05C8, /* 05D0..05D3 */ FriBidiPropertyBlockLevel7_05C8, /* 05D4..05D7 */ FriBidiPropertyBlockLevel7_05C8, /* 05D8..05DB */ FriBidiPropertyBlockLevel7_05C8, /* 05DC..05DF */ #define FriBidiPropertyBlockLevel6_05E0 0x98 FriBidiPropertyBlockLevel7_05C8, /* 05E0..05E3 */ FriBidiPropertyBlockLevel7_05C8, /* 05E4..05E7 */ FriBidiPropertyBlockLevel7_05C8, /* 05E8..05EB */ FriBidiPropertyBlockLevel7_05C8, /* 05EC..05EF */ FriBidiPropertyBlockLevel7_05C8, /* 05F0..05F3 */ FriBidiPropertyBlockLevel7_05C8, /* 05F4..05F7 */ FriBidiPropertyBlockLevel7_05C8, /* 05F8..05FB */ FriBidiPropertyBlockLevel7_05C8, /* 05FC..05FF */ #define FriBidiPropertyBlockLevel6_0600 0xA0 FriBidiPropertyBlockLevel7_0600, /* 0600..0603 */ FriBidiPropertyBlockLevel7_0600, /* 0604..0607 */ FriBidiPropertyBlockLevel7_0600, /* 0608..060B */ FriBidiPropertyBlockLevel7_060C, /* 060C..060F */ FriBidiPropertyBlockLevel7_0300, /* 0610..0613 */ FriBidiPropertyBlockLevel7_0614, /* 0614..0617 */ FriBidiPropertyBlockLevel7_0600, /* 0618..061B */ FriBidiPropertyBlockLevel7_0600, /* 061C..061F */ #define FriBidiPropertyBlockLevel6_0620 0xA8 FriBidiPropertyBlockLevel7_0600, /* 0620..0623 */ FriBidiPropertyBlockLevel7_0600, /* 0624..0627 */ FriBidiPropertyBlockLevel7_0600, /* 0628..062B */ FriBidiPropertyBlockLevel7_0600, /* 062C..062F */ FriBidiPropertyBlockLevel7_0600, /* 0630..0633 */ FriBidiPropertyBlockLevel7_0600, /* 0634..0637 */ FriBidiPropertyBlockLevel7_0600, /* 0638..063B */ FriBidiPropertyBlockLevel7_0600, /* 063C..063F */ #define FriBidiPropertyBlockLevel6_0640 0xB0 FriBidiPropertyBlockLevel7_0600, /* 0640..0643 */ FriBidiPropertyBlockLevel7_0600, /* 0644..0647 */ FriBidiPropertyBlockLevel7_0648, /* 0648..064B */ FriBidiPropertyBlockLevel7_0300, /* 064C..064F */ FriBidiPropertyBlockLevel7_0300, /* 0650..0653 */ FriBidiPropertyBlockLevel7_0300, /* 0654..0657 */ FriBidiPropertyBlockLevel7_0300, /* 0658..065B */ FriBidiPropertyBlockLevel7_065C, /* 065C..065F */ #define FriBidiPropertyBlockLevel6_0660 0xB8 FriBidiPropertyBlockLevel7_0660, /* 0660..0663 */ FriBidiPropertyBlockLevel7_0660, /* 0664..0667 */ FriBidiPropertyBlockLevel7_0668, /* 0668..066B */ FriBidiPropertyBlockLevel7_066C, /* 066C..066F */ FriBidiPropertyBlockLevel7_0670, /* 0670..0673 */ FriBidiPropertyBlockLevel7_0600, /* 0674..0677 */ FriBidiPropertyBlockLevel7_0600, /* 0678..067B */ FriBidiPropertyBlockLevel7_0600, /* 067C..067F */ #define FriBidiPropertyBlockLevel6_06C0 0xC0 FriBidiPropertyBlockLevel7_0600, /* 06C0..06C3 */ FriBidiPropertyBlockLevel7_0600, /* 06C4..06C7 */ FriBidiPropertyBlockLevel7_0600, /* 06C8..06CB */ FriBidiPropertyBlockLevel7_0600, /* 06CC..06CF */ FriBidiPropertyBlockLevel7_0600, /* 06D0..06D3 */ FriBidiPropertyBlockLevel7_06D4, /* 06D4..06D7 */ FriBidiPropertyBlockLevel7_0300, /* 06D8..06DB */ FriBidiPropertyBlockLevel7_06DC, /* 06DC..06DF */ #define FriBidiPropertyBlockLevel6_06E0 0xC8 FriBidiPropertyBlockLevel7_0300, /* 06E0..06E3 */ FriBidiPropertyBlockLevel7_06E4, /* 06E4..06E7 */ FriBidiPropertyBlockLevel7_06E8, /* 06E8..06EB */ FriBidiPropertyBlockLevel7_0614, /* 06EC..06EF */ FriBidiPropertyBlockLevel7_0030, /* 06F0..06F3 */ FriBidiPropertyBlockLevel7_0030, /* 06F4..06F7 */ FriBidiPropertyBlockLevel7_06F8, /* 06F8..06FB */ FriBidiPropertyBlockLevel7_0600, /* 06FC..06FF */ #define FriBidiPropertyBlockLevel6_0700 0xD0 FriBidiPropertyBlockLevel7_0600, /* 0700..0703 */ FriBidiPropertyBlockLevel7_0600, /* 0704..0707 */ FriBidiPropertyBlockLevel7_0600, /* 0708..070B */ FriBidiPropertyBlockLevel7_070C, /* 070C..070F */ FriBidiPropertyBlockLevel7_0710, /* 0710..0713 */ FriBidiPropertyBlockLevel7_0600, /* 0714..0717 */ FriBidiPropertyBlockLevel7_0600, /* 0718..071B */ FriBidiPropertyBlockLevel7_0600, /* 071C..071F */ #define FriBidiPropertyBlockLevel6_0720 0xD8 FriBidiPropertyBlockLevel7_0600, /* 0720..0723 */ FriBidiPropertyBlockLevel7_0600, /* 0724..0727 */ FriBidiPropertyBlockLevel7_0600, /* 0728..072B */ FriBidiPropertyBlockLevel7_0600, /* 072C..072F */ FriBidiPropertyBlockLevel7_0300, /* 0730..0733 */ FriBidiPropertyBlockLevel7_0300, /* 0734..0737 */ FriBidiPropertyBlockLevel7_0300, /* 0738..073B */ FriBidiPropertyBlockLevel7_0300, /* 073C..073F */ #define FriBidiPropertyBlockLevel6_0740 0xE0 FriBidiPropertyBlockLevel7_0300, /* 0740..0743 */ FriBidiPropertyBlockLevel7_0300, /* 0744..0747 */ FriBidiPropertyBlockLevel7_065C, /* 0748..074B */ FriBidiPropertyBlockLevel7_0600, /* 074C..074F */ FriBidiPropertyBlockLevel7_0600, /* 0750..0753 */ FriBidiPropertyBlockLevel7_0600, /* 0754..0757 */ FriBidiPropertyBlockLevel7_0600, /* 0758..075B */ FriBidiPropertyBlockLevel7_0600, /* 075C..075F */ #define FriBidiPropertyBlockLevel6_07A0 0xE8 FriBidiPropertyBlockLevel7_0600, /* 07A0..07A3 */ FriBidiPropertyBlockLevel7_06D4, /* 07A4..07A7 */ FriBidiPropertyBlockLevel7_0300, /* 07A8..07AB */ FriBidiPropertyBlockLevel7_0300, /* 07AC..07AF */ FriBidiPropertyBlockLevel7_0670, /* 07B0..07B3 */ FriBidiPropertyBlockLevel7_0600, /* 07B4..07B7 */ FriBidiPropertyBlockLevel7_0600, /* 07B8..07BB */ FriBidiPropertyBlockLevel7_0600, /* 07BC..07BF */ #define FriBidiPropertyBlockLevel6_0900 0xF0 FriBidiPropertyBlockLevel7_0900, /* 0900..0903 */ FriBidiPropertyBlockLevel7_0044, /* 0904..0907 */ FriBidiPropertyBlockLevel7_0044, /* 0908..090B */ FriBidiPropertyBlockLevel7_0044, /* 090C..090F */ FriBidiPropertyBlockLevel7_0044, /* 0910..0913 */ FriBidiPropertyBlockLevel7_0044, /* 0914..0917 */ FriBidiPropertyBlockLevel7_0044, /* 0918..091B */ FriBidiPropertyBlockLevel7_0044, /* 091C..091F */ #define FriBidiPropertyBlockLevel6_0920 0xF8 FriBidiPropertyBlockLevel7_0044, /* 0920..0923 */ FriBidiPropertyBlockLevel7_0044, /* 0924..0927 */ FriBidiPropertyBlockLevel7_0044, /* 0928..092B */ FriBidiPropertyBlockLevel7_0044, /* 092C..092F */ FriBidiPropertyBlockLevel7_0044, /* 0930..0933 */ FriBidiPropertyBlockLevel7_0044, /* 0934..0937 */ FriBidiPropertyBlockLevel7_0044, /* 0938..093B */ FriBidiPropertyBlockLevel7_093C, /* 093C..093F */ #define FriBidiPropertyBlockLevel6_0940 0x100 FriBidiPropertyBlockLevel7_0940, /* 0940..0943 */ FriBidiPropertyBlockLevel7_0300, /* 0944..0947 */ FriBidiPropertyBlockLevel7_093C, /* 0948..094B */ FriBidiPropertyBlockLevel7_094C, /* 094C..094F */ FriBidiPropertyBlockLevel7_0940, /* 0950..0953 */ FriBidiPropertyBlockLevel7_093C, /* 0954..0957 */ FriBidiPropertyBlockLevel7_0044, /* 0958..095B */ FriBidiPropertyBlockLevel7_0044, /* 095C..095F */ #define FriBidiPropertyBlockLevel6_0960 0x108 FriBidiPropertyBlockLevel7_0960, /* 0960..0963 */ FriBidiPropertyBlockLevel7_0044, /* 0964..0967 */ FriBidiPropertyBlockLevel7_0044, /* 0968..096B */ FriBidiPropertyBlockLevel7_0044, /* 096C..096F */ FriBidiPropertyBlockLevel7_0044, /* 0970..0973 */ FriBidiPropertyBlockLevel7_0044, /* 0974..0977 */ FriBidiPropertyBlockLevel7_0044, /* 0978..097B */ FriBidiPropertyBlockLevel7_0044, /* 097C..097F */ #define FriBidiPropertyBlockLevel6_0980 0x110 FriBidiPropertyBlockLevel7_094C, /* 0980..0983 */ FriBidiPropertyBlockLevel7_0044, /* 0984..0987 */ FriBidiPropertyBlockLevel7_0044, /* 0988..098B */ FriBidiPropertyBlockLevel7_0044, /* 098C..098F */ FriBidiPropertyBlockLevel7_0044, /* 0990..0993 */ FriBidiPropertyBlockLevel7_0044, /* 0994..0997 */ FriBidiPropertyBlockLevel7_0044, /* 0998..099B */ FriBidiPropertyBlockLevel7_0044, /* 099C..099F */ #define FriBidiPropertyBlockLevel6_09C0 0x118 FriBidiPropertyBlockLevel7_0940, /* 09C0..09C3 */ FriBidiPropertyBlockLevel7_093C, /* 09C4..09C7 */ FriBidiPropertyBlockLevel7_0044, /* 09C8..09CB */ FriBidiPropertyBlockLevel7_094C, /* 09CC..09CF */ FriBidiPropertyBlockLevel7_0044, /* 09D0..09D3 */ FriBidiPropertyBlockLevel7_0044, /* 09D4..09D7 */ FriBidiPropertyBlockLevel7_0044, /* 09D8..09DB */ FriBidiPropertyBlockLevel7_0044, /* 09DC..09DF */ #define FriBidiPropertyBlockLevel6_09E0 0x120 FriBidiPropertyBlockLevel7_0960, /* 09E0..09E3 */ FriBidiPropertyBlockLevel7_0044, /* 09E4..09E7 */ FriBidiPropertyBlockLevel7_0044, /* 09E8..09EB */ FriBidiPropertyBlockLevel7_0044, /* 09EC..09EF */ FriBidiPropertyBlockLevel7_09F0, /* 09F0..09F3 */ FriBidiPropertyBlockLevel7_0044, /* 09F4..09F7 */ FriBidiPropertyBlockLevel7_0044, /* 09F8..09FB */ FriBidiPropertyBlockLevel7_0044, /* 09FC..09FF */ #define FriBidiPropertyBlockLevel6_0A40 0x128 FriBidiPropertyBlockLevel7_0900, /* 0A40..0A43 */ FriBidiPropertyBlockLevel7_0480, /* 0A44..0A47 */ FriBidiPropertyBlockLevel7_0A48, /* 0A48..0A4B */ FriBidiPropertyBlockLevel7_0488, /* 0A4C..0A4F */ FriBidiPropertyBlockLevel7_0044, /* 0A50..0A53 */ FriBidiPropertyBlockLevel7_0044, /* 0A54..0A57 */ FriBidiPropertyBlockLevel7_0044, /* 0A58..0A5B */ FriBidiPropertyBlockLevel7_0044, /* 0A5C..0A5F */ #define FriBidiPropertyBlockLevel6_0A60 0x130 FriBidiPropertyBlockLevel7_0044, /* 0A60..0A63 */ FriBidiPropertyBlockLevel7_0044, /* 0A64..0A67 */ FriBidiPropertyBlockLevel7_0044, /* 0A68..0A6B */ FriBidiPropertyBlockLevel7_0044, /* 0A6C..0A6F */ FriBidiPropertyBlockLevel7_0488, /* 0A70..0A73 */ FriBidiPropertyBlockLevel7_0044, /* 0A74..0A77 */ FriBidiPropertyBlockLevel7_0044, /* 0A78..0A7B */ FriBidiPropertyBlockLevel7_0044, /* 0A7C..0A7F */ #define FriBidiPropertyBlockLevel6_0AC0 0x138 FriBidiPropertyBlockLevel7_0940, /* 0AC0..0AC3 */ FriBidiPropertyBlockLevel7_0AC4, /* 0AC4..0AC7 */ FriBidiPropertyBlockLevel7_093C, /* 0AC8..0ACB */ FriBidiPropertyBlockLevel7_094C, /* 0ACC..0ACF */ FriBidiPropertyBlockLevel7_0044, /* 0AD0..0AD3 */ FriBidiPropertyBlockLevel7_0044, /* 0AD4..0AD7 */ FriBidiPropertyBlockLevel7_0044, /* 0AD8..0ADB */ FriBidiPropertyBlockLevel7_0044, /* 0ADC..0ADF */ #define FriBidiPropertyBlockLevel6_0AE0 0x140 FriBidiPropertyBlockLevel7_0960, /* 0AE0..0AE3 */ FriBidiPropertyBlockLevel7_0044, /* 0AE4..0AE7 */ FriBidiPropertyBlockLevel7_0044, /* 0AE8..0AEB */ FriBidiPropertyBlockLevel7_0044, /* 0AEC..0AEF */ FriBidiPropertyBlockLevel7_0AF0, /* 0AF0..0AF3 */ FriBidiPropertyBlockLevel7_0044, /* 0AF4..0AF7 */ FriBidiPropertyBlockLevel7_0044, /* 0AF8..0AFB */ FriBidiPropertyBlockLevel7_0044, /* 0AFC..0AFF */ #define FriBidiPropertyBlockLevel6_0B20 0x148 FriBidiPropertyBlockLevel7_0044, /* 0B20..0B23 */ FriBidiPropertyBlockLevel7_0044, /* 0B24..0B27 */ FriBidiPropertyBlockLevel7_0044, /* 0B28..0B2B */ FriBidiPropertyBlockLevel7_0044, /* 0B2C..0B2F */ FriBidiPropertyBlockLevel7_0044, /* 0B30..0B33 */ FriBidiPropertyBlockLevel7_0044, /* 0B34..0B37 */ FriBidiPropertyBlockLevel7_0044, /* 0B38..0B3B */ FriBidiPropertyBlockLevel7_0A48, /* 0B3C..0B3F */ #define FriBidiPropertyBlockLevel6_0B40 0x150 FriBidiPropertyBlockLevel7_0940, /* 0B40..0B43 */ FriBidiPropertyBlockLevel7_0044, /* 0B44..0B47 */ FriBidiPropertyBlockLevel7_0044, /* 0B48..0B4B */ FriBidiPropertyBlockLevel7_094C, /* 0B4C..0B4F */ FriBidiPropertyBlockLevel7_0044, /* 0B50..0B53 */ FriBidiPropertyBlockLevel7_0B54, /* 0B54..0B57 */ FriBidiPropertyBlockLevel7_0044, /* 0B58..0B5B */ FriBidiPropertyBlockLevel7_0044, /* 0B5C..0B5F */ #define FriBidiPropertyBlockLevel6_0B80 0x158 FriBidiPropertyBlockLevel7_0B54, /* 0B80..0B83 */ FriBidiPropertyBlockLevel7_0044, /* 0B84..0B87 */ FriBidiPropertyBlockLevel7_0044, /* 0B88..0B8B */ FriBidiPropertyBlockLevel7_0044, /* 0B8C..0B8F */ FriBidiPropertyBlockLevel7_0044, /* 0B90..0B93 */ FriBidiPropertyBlockLevel7_0044, /* 0B94..0B97 */ FriBidiPropertyBlockLevel7_0044, /* 0B98..0B9B */ FriBidiPropertyBlockLevel7_0044, /* 0B9C..0B9F */ #define FriBidiPropertyBlockLevel6_0BC0 0x160 FriBidiPropertyBlockLevel7_093C, /* 0BC0..0BC3 */ FriBidiPropertyBlockLevel7_0044, /* 0BC4..0BC7 */ FriBidiPropertyBlockLevel7_0044, /* 0BC8..0BCB */ FriBidiPropertyBlockLevel7_094C, /* 0BCC..0BCF */ FriBidiPropertyBlockLevel7_0044, /* 0BD0..0BD3 */ FriBidiPropertyBlockLevel7_0044, /* 0BD4..0BD7 */ FriBidiPropertyBlockLevel7_0044, /* 0BD8..0BDB */ FriBidiPropertyBlockLevel7_0044, /* 0BDC..0BDF */ #define FriBidiPropertyBlockLevel6_0BE0 0x168 FriBidiPropertyBlockLevel7_0044, /* 0BE0..0BE3 */ FriBidiPropertyBlockLevel7_0044, /* 0BE4..0BE7 */ FriBidiPropertyBlockLevel7_0044, /* 0BE8..0BEB */ FriBidiPropertyBlockLevel7_0044, /* 0BEC..0BEF */ FriBidiPropertyBlockLevel7_0058, /* 0BF0..0BF3 */ FriBidiPropertyBlockLevel7_003C, /* 0BF4..0BF7 */ FriBidiPropertyBlockLevel7_0BF8, /* 0BF8..0BFB */ FriBidiPropertyBlockLevel7_0044, /* 0BFC..0BFF */ #define FriBidiPropertyBlockLevel6_0C20 0x170 FriBidiPropertyBlockLevel7_0044, /* 0C20..0C23 */ FriBidiPropertyBlockLevel7_0044, /* 0C24..0C27 */ FriBidiPropertyBlockLevel7_0044, /* 0C28..0C2B */ FriBidiPropertyBlockLevel7_0044, /* 0C2C..0C2F */ FriBidiPropertyBlockLevel7_0044, /* 0C30..0C33 */ FriBidiPropertyBlockLevel7_0044, /* 0C34..0C37 */ FriBidiPropertyBlockLevel7_0044, /* 0C38..0C3B */ FriBidiPropertyBlockLevel7_0960, /* 0C3C..0C3F */ #define FriBidiPropertyBlockLevel6_0C40 0x178 FriBidiPropertyBlockLevel7_093C, /* 0C40..0C43 */ FriBidiPropertyBlockLevel7_0960, /* 0C44..0C47 */ FriBidiPropertyBlockLevel7_0C48, /* 0C48..0C4B */ FriBidiPropertyBlockLevel7_0488, /* 0C4C..0C4F */ FriBidiPropertyBlockLevel7_0044, /* 0C50..0C53 */ FriBidiPropertyBlockLevel7_0900, /* 0C54..0C57 */ FriBidiPropertyBlockLevel7_0044, /* 0C58..0C5B */ FriBidiPropertyBlockLevel7_0044, /* 0C5C..0C5F */ #define FriBidiPropertyBlockLevel6_0CC0 0x180 FriBidiPropertyBlockLevel7_0044, /* 0CC0..0CC3 */ FriBidiPropertyBlockLevel7_0044, /* 0CC4..0CC7 */ FriBidiPropertyBlockLevel7_0044, /* 0CC8..0CCB */ FriBidiPropertyBlockLevel7_0488, /* 0CCC..0CCF */ FriBidiPropertyBlockLevel7_0044, /* 0CD0..0CD3 */ FriBidiPropertyBlockLevel7_0044, /* 0CD4..0CD7 */ FriBidiPropertyBlockLevel7_0044, /* 0CD8..0CDB */ FriBidiPropertyBlockLevel7_0044, /* 0CDC..0CDF */ #define FriBidiPropertyBlockLevel6_0D40 0x188 FriBidiPropertyBlockLevel7_0940, /* 0D40..0D43 */ FriBidiPropertyBlockLevel7_0044, /* 0D44..0D47 */ FriBidiPropertyBlockLevel7_0044, /* 0D48..0D4B */ FriBidiPropertyBlockLevel7_094C, /* 0D4C..0D4F */ FriBidiPropertyBlockLevel7_0044, /* 0D50..0D53 */ FriBidiPropertyBlockLevel7_0044, /* 0D54..0D57 */ FriBidiPropertyBlockLevel7_0044, /* 0D58..0D5B */ FriBidiPropertyBlockLevel7_0044, /* 0D5C..0D5F */ #define FriBidiPropertyBlockLevel6_0DC0 0x190 FriBidiPropertyBlockLevel7_0044, /* 0DC0..0DC3 */ FriBidiPropertyBlockLevel7_0044, /* 0DC4..0DC7 */ FriBidiPropertyBlockLevel7_0B54, /* 0DC8..0DCB */ FriBidiPropertyBlockLevel7_0044, /* 0DCC..0DCF */ FriBidiPropertyBlockLevel7_0960, /* 0DD0..0DD3 */ FriBidiPropertyBlockLevel7_0DD4, /* 0DD4..0DD7 */ FriBidiPropertyBlockLevel7_0044, /* 0DD8..0DDB */ FriBidiPropertyBlockLevel7_0044, /* 0DDC..0DDF */ #define FriBidiPropertyBlockLevel6_0E20 0x198 FriBidiPropertyBlockLevel7_0044, /* 0E20..0E23 */ FriBidiPropertyBlockLevel7_0044, /* 0E24..0E27 */ FriBidiPropertyBlockLevel7_0044, /* 0E28..0E2B */ FriBidiPropertyBlockLevel7_0044, /* 0E2C..0E2F */ FriBidiPropertyBlockLevel7_094C, /* 0E30..0E33 */ FriBidiPropertyBlockLevel7_0300, /* 0E34..0E37 */ FriBidiPropertyBlockLevel7_0484, /* 0E38..0E3B */ FriBidiPropertyBlockLevel7_0E3C, /* 0E3C..0E3F */ #define FriBidiPropertyBlockLevel6_0E40 0x1A0 FriBidiPropertyBlockLevel7_0044, /* 0E40..0E43 */ FriBidiPropertyBlockLevel7_0480, /* 0E44..0E47 */ FriBidiPropertyBlockLevel7_0300, /* 0E48..0E4B */ FriBidiPropertyBlockLevel7_0484, /* 0E4C..0E4F */ FriBidiPropertyBlockLevel7_0044, /* 0E50..0E53 */ FriBidiPropertyBlockLevel7_0044, /* 0E54..0E57 */ FriBidiPropertyBlockLevel7_0044, /* 0E58..0E5B */ FriBidiPropertyBlockLevel7_0044, /* 0E5C..0E5F */ #define FriBidiPropertyBlockLevel6_0EA0 0x1A8 FriBidiPropertyBlockLevel7_0044, /* 0EA0..0EA3 */ FriBidiPropertyBlockLevel7_0044, /* 0EA4..0EA7 */ FriBidiPropertyBlockLevel7_0044, /* 0EA8..0EAB */ FriBidiPropertyBlockLevel7_0044, /* 0EAC..0EAF */ FriBidiPropertyBlockLevel7_094C, /* 0EB0..0EB3 */ FriBidiPropertyBlockLevel7_0300, /* 0EB4..0EB7 */ FriBidiPropertyBlockLevel7_0AC4, /* 0EB8..0EBB */ FriBidiPropertyBlockLevel7_093C, /* 0EBC..0EBF */ #define FriBidiPropertyBlockLevel6_0EC0 0x1B0 FriBidiPropertyBlockLevel7_0044, /* 0EC0..0EC3 */ FriBidiPropertyBlockLevel7_0044, /* 0EC4..0EC7 */ FriBidiPropertyBlockLevel7_0300, /* 0EC8..0ECB */ FriBidiPropertyBlockLevel7_0488, /* 0ECC..0ECF */ FriBidiPropertyBlockLevel7_0044, /* 0ED0..0ED3 */ FriBidiPropertyBlockLevel7_0044, /* 0ED4..0ED7 */ FriBidiPropertyBlockLevel7_0044, /* 0ED8..0EDB */ FriBidiPropertyBlockLevel7_0044, /* 0EDC..0EDF */ #define FriBidiPropertyBlockLevel6_0F00 0x1B8 FriBidiPropertyBlockLevel7_0044, /* 0F00..0F03 */ FriBidiPropertyBlockLevel7_0044, /* 0F04..0F07 */ FriBidiPropertyBlockLevel7_0044, /* 0F08..0F0B */ FriBidiPropertyBlockLevel7_0044, /* 0F0C..0F0F */ FriBidiPropertyBlockLevel7_0044, /* 0F10..0F13 */ FriBidiPropertyBlockLevel7_0044, /* 0F14..0F17 */ FriBidiPropertyBlockLevel7_0488, /* 0F18..0F1B */ FriBidiPropertyBlockLevel7_0044, /* 0F1C..0F1F */ #define FriBidiPropertyBlockLevel6_0F20 0x1C0 FriBidiPropertyBlockLevel7_0044, /* 0F20..0F23 */ FriBidiPropertyBlockLevel7_0044, /* 0F24..0F27 */ FriBidiPropertyBlockLevel7_0044, /* 0F28..0F2B */ FriBidiPropertyBlockLevel7_0044, /* 0F2C..0F2F */ FriBidiPropertyBlockLevel7_0044, /* 0F30..0F33 */ FriBidiPropertyBlockLevel7_0F34, /* 0F34..0F37 */ FriBidiPropertyBlockLevel7_0F38, /* 0F38..0F3B */ FriBidiPropertyBlockLevel7_0374, /* 0F3C..0F3F */ #define FriBidiPropertyBlockLevel6_0F60 0x1C8 FriBidiPropertyBlockLevel7_0044, /* 0F60..0F63 */ FriBidiPropertyBlockLevel7_0044, /* 0F64..0F67 */ FriBidiPropertyBlockLevel7_0044, /* 0F68..0F6B */ FriBidiPropertyBlockLevel7_0044, /* 0F6C..0F6F */ FriBidiPropertyBlockLevel7_0940, /* 0F70..0F73 */ FriBidiPropertyBlockLevel7_0300, /* 0F74..0F77 */ FriBidiPropertyBlockLevel7_0300, /* 0F78..0F7B */ FriBidiPropertyBlockLevel7_0484, /* 0F7C..0F7F */ #define FriBidiPropertyBlockLevel6_0F80 0x1D0 FriBidiPropertyBlockLevel7_0300, /* 0F80..0F83 */ FriBidiPropertyBlockLevel7_0C48, /* 0F84..0F87 */ FriBidiPropertyBlockLevel7_0044, /* 0F88..0F8B */ FriBidiPropertyBlockLevel7_0044, /* 0F8C..0F8F */ FriBidiPropertyBlockLevel7_0300, /* 0F90..0F93 */ FriBidiPropertyBlockLevel7_0300, /* 0F94..0F97 */ FriBidiPropertyBlockLevel7_0940, /* 0F98..0F9B */ FriBidiPropertyBlockLevel7_0300, /* 0F9C..0F9F */ #define FriBidiPropertyBlockLevel6_0FA0 0x1D8 FriBidiPropertyBlockLevel7_0300, /* 0FA0..0FA3 */ FriBidiPropertyBlockLevel7_0300, /* 0FA4..0FA7 */ FriBidiPropertyBlockLevel7_0300, /* 0FA8..0FAB */ FriBidiPropertyBlockLevel7_0300, /* 0FAC..0FAF */ FriBidiPropertyBlockLevel7_0300, /* 0FB0..0FB3 */ FriBidiPropertyBlockLevel7_0300, /* 0FB4..0FB7 */ FriBidiPropertyBlockLevel7_0300, /* 0FB8..0FBB */ FriBidiPropertyBlockLevel7_093C, /* 0FBC..0FBF */ #define FriBidiPropertyBlockLevel6_0FC0 0x1E0 FriBidiPropertyBlockLevel7_0044, /* 0FC0..0FC3 */ FriBidiPropertyBlockLevel7_0B54, /* 0FC4..0FC7 */ FriBidiPropertyBlockLevel7_0044, /* 0FC8..0FCB */ FriBidiPropertyBlockLevel7_0044, /* 0FCC..0FCF */ FriBidiPropertyBlockLevel7_0044, /* 0FD0..0FD3 */ FriBidiPropertyBlockLevel7_0044, /* 0FD4..0FD7 */ FriBidiPropertyBlockLevel7_0044, /* 0FD8..0FDB */ FriBidiPropertyBlockLevel7_0044, /* 0FDC..0FDF */ #define FriBidiPropertyBlockLevel6_1020 0x1E8 FriBidiPropertyBlockLevel7_0044, /* 1020..1023 */ FriBidiPropertyBlockLevel7_0044, /* 1024..1027 */ FriBidiPropertyBlockLevel7_0044, /* 1028..102B */ FriBidiPropertyBlockLevel7_0940, /* 102C..102F */ FriBidiPropertyBlockLevel7_0DD4, /* 1030..1033 */ FriBidiPropertyBlockLevel7_0960, /* 1034..1037 */ FriBidiPropertyBlockLevel7_094C, /* 1038..103B */ FriBidiPropertyBlockLevel7_0044, /* 103C..103F */ #define FriBidiPropertyBlockLevel6_1340 0x1F0 FriBidiPropertyBlockLevel7_0044, /* 1340..1343 */ FriBidiPropertyBlockLevel7_0044, /* 1344..1347 */ FriBidiPropertyBlockLevel7_0044, /* 1348..134B */ FriBidiPropertyBlockLevel7_0044, /* 134C..134F */ FriBidiPropertyBlockLevel7_0044, /* 1350..1353 */ FriBidiPropertyBlockLevel7_0044, /* 1354..1357 */ FriBidiPropertyBlockLevel7_0044, /* 1358..135B */ FriBidiPropertyBlockLevel7_0480, /* 135C..135F */ #define FriBidiPropertyBlockLevel6_1380 0x1F8 FriBidiPropertyBlockLevel7_0044, /* 1380..1383 */ FriBidiPropertyBlockLevel7_0044, /* 1384..1387 */ FriBidiPropertyBlockLevel7_0044, /* 1388..138B */ FriBidiPropertyBlockLevel7_0044, /* 138C..138F */ FriBidiPropertyBlockLevel7_003C, /* 1390..1393 */ FriBidiPropertyBlockLevel7_003C, /* 1394..1397 */ FriBidiPropertyBlockLevel7_0374, /* 1398..139B */ FriBidiPropertyBlockLevel7_0044, /* 139C..139F */ #define FriBidiPropertyBlockLevel6_1680 0x200 FriBidiPropertyBlockLevel7_1680, /* 1680..1683 */ FriBidiPropertyBlockLevel7_0044, /* 1684..1687 */ FriBidiPropertyBlockLevel7_0044, /* 1688..168B */ FriBidiPropertyBlockLevel7_0044, /* 168C..168F */ FriBidiPropertyBlockLevel7_0044, /* 1690..1693 */ FriBidiPropertyBlockLevel7_0044, /* 1694..1697 */ FriBidiPropertyBlockLevel7_0058, /* 1698..169B */ FriBidiPropertyBlockLevel7_0040, /* 169C..169F */ #define FriBidiPropertyBlockLevel6_1700 0x208 FriBidiPropertyBlockLevel7_0044, /* 1700..1703 */ FriBidiPropertyBlockLevel7_0044, /* 1704..1707 */ FriBidiPropertyBlockLevel7_0044, /* 1708..170B */ FriBidiPropertyBlockLevel7_0044, /* 170C..170F */ FriBidiPropertyBlockLevel7_0960, /* 1710..1713 */ FriBidiPropertyBlockLevel7_093C, /* 1714..1717 */ FriBidiPropertyBlockLevel7_0044, /* 1718..171B */ FriBidiPropertyBlockLevel7_0044, /* 171C..171F */ #define FriBidiPropertyBlockLevel6_1740 0x210 FriBidiPropertyBlockLevel7_0044, /* 1740..1743 */ FriBidiPropertyBlockLevel7_0044, /* 1744..1747 */ FriBidiPropertyBlockLevel7_0044, /* 1748..174B */ FriBidiPropertyBlockLevel7_0044, /* 174C..174F */ FriBidiPropertyBlockLevel7_0960, /* 1750..1753 */ FriBidiPropertyBlockLevel7_0044, /* 1754..1757 */ FriBidiPropertyBlockLevel7_0044, /* 1758..175B */ FriBidiPropertyBlockLevel7_0044, /* 175C..175F */ #define FriBidiPropertyBlockLevel6_17A0 0x218 FriBidiPropertyBlockLevel7_0044, /* 17A0..17A3 */ FriBidiPropertyBlockLevel7_0044, /* 17A4..17A7 */ FriBidiPropertyBlockLevel7_0044, /* 17A8..17AB */ FriBidiPropertyBlockLevel7_0044, /* 17AC..17AF */ FriBidiPropertyBlockLevel7_0044, /* 17B0..17B3 */ FriBidiPropertyBlockLevel7_0480, /* 17B4..17B7 */ FriBidiPropertyBlockLevel7_0300, /* 17B8..17BB */ FriBidiPropertyBlockLevel7_0488, /* 17BC..17BF */ #define FriBidiPropertyBlockLevel6_17C0 0x220 FriBidiPropertyBlockLevel7_0044, /* 17C0..17C3 */ FriBidiPropertyBlockLevel7_0B54, /* 17C4..17C7 */ FriBidiPropertyBlockLevel7_0940, /* 17C8..17CB */ FriBidiPropertyBlockLevel7_0300, /* 17CC..17CF */ FriBidiPropertyBlockLevel7_0300, /* 17D0..17D3 */ FriBidiPropertyBlockLevel7_0044, /* 17D4..17D7 */ FriBidiPropertyBlockLevel7_0E3C, /* 17D8..17DB */ FriBidiPropertyBlockLevel7_094C, /* 17DC..17DF */ #define FriBidiPropertyBlockLevel6_1800 0x228 FriBidiPropertyBlockLevel7_003C, /* 1800..1803 */ FriBidiPropertyBlockLevel7_003C, /* 1804..1807 */ FriBidiPropertyBlockLevel7_1808, /* 1808..180B */ FriBidiPropertyBlockLevel7_180C, /* 180C..180F */ FriBidiPropertyBlockLevel7_0044, /* 1810..1813 */ FriBidiPropertyBlockLevel7_0044, /* 1814..1817 */ FriBidiPropertyBlockLevel7_0044, /* 1818..181B */ FriBidiPropertyBlockLevel7_0044, /* 181C..181F */ #define FriBidiPropertyBlockLevel6_18A0 0x230 FriBidiPropertyBlockLevel7_0044, /* 18A0..18A3 */ FriBidiPropertyBlockLevel7_0044, /* 18A4..18A7 */ FriBidiPropertyBlockLevel7_094C, /* 18A8..18AB */ FriBidiPropertyBlockLevel7_0044, /* 18AC..18AF */ FriBidiPropertyBlockLevel7_0044, /* 18B0..18B3 */ FriBidiPropertyBlockLevel7_0044, /* 18B4..18B7 */ FriBidiPropertyBlockLevel7_0044, /* 18B8..18BB */ FriBidiPropertyBlockLevel7_0044, /* 18BC..18BF */ #define FriBidiPropertyBlockLevel6_1920 0x238 FriBidiPropertyBlockLevel7_0484, /* 1920..1923 */ FriBidiPropertyBlockLevel7_0480, /* 1924..1927 */ FriBidiPropertyBlockLevel7_0300, /* 1928..192B */ FriBidiPropertyBlockLevel7_0044, /* 192C..192F */ FriBidiPropertyBlockLevel7_0B54, /* 1930..1933 */ FriBidiPropertyBlockLevel7_0044, /* 1934..1937 */ FriBidiPropertyBlockLevel7_0940, /* 1938..193B */ FriBidiPropertyBlockLevel7_0044, /* 193C..193F */ #define FriBidiPropertyBlockLevel6_1940 0x240 FriBidiPropertyBlockLevel7_0040, /* 1940..1943 */ FriBidiPropertyBlockLevel7_0374, /* 1944..1947 */ FriBidiPropertyBlockLevel7_0044, /* 1948..194B */ FriBidiPropertyBlockLevel7_0044, /* 194C..194F */ FriBidiPropertyBlockLevel7_0044, /* 1950..1953 */ FriBidiPropertyBlockLevel7_0044, /* 1954..1957 */ FriBidiPropertyBlockLevel7_0044, /* 1958..195B */ FriBidiPropertyBlockLevel7_0044, /* 195C..195F */ #define FriBidiPropertyBlockLevel6_19C0 0x248 FriBidiPropertyBlockLevel7_0044, /* 19C0..19C3 */ FriBidiPropertyBlockLevel7_0044, /* 19C4..19C7 */ FriBidiPropertyBlockLevel7_0044, /* 19C8..19CB */ FriBidiPropertyBlockLevel7_0044, /* 19CC..19CF */ FriBidiPropertyBlockLevel7_0044, /* 19D0..19D3 */ FriBidiPropertyBlockLevel7_0044, /* 19D4..19D7 */ FriBidiPropertyBlockLevel7_0044, /* 19D8..19DB */ FriBidiPropertyBlockLevel7_02C0, /* 19DC..19DF */ #define FriBidiPropertyBlockLevel6_19E0 0x250 FriBidiPropertyBlockLevel7_003C, /* 19E0..19E3 */ FriBidiPropertyBlockLevel7_003C, /* 19E4..19E7 */ FriBidiPropertyBlockLevel7_003C, /* 19E8..19EB */ FriBidiPropertyBlockLevel7_003C, /* 19EC..19EF */ FriBidiPropertyBlockLevel7_003C, /* 19F0..19F3 */ FriBidiPropertyBlockLevel7_003C, /* 19F4..19F7 */ FriBidiPropertyBlockLevel7_003C, /* 19F8..19FB */ FriBidiPropertyBlockLevel7_003C, /* 19FC..19FF */ #define FriBidiPropertyBlockLevel6_1A00 0x258 FriBidiPropertyBlockLevel7_0044, /* 1A00..1A03 */ FriBidiPropertyBlockLevel7_0044, /* 1A04..1A07 */ FriBidiPropertyBlockLevel7_0044, /* 1A08..1A0B */ FriBidiPropertyBlockLevel7_0044, /* 1A0C..1A0F */ FriBidiPropertyBlockLevel7_0044, /* 1A10..1A13 */ FriBidiPropertyBlockLevel7_0480, /* 1A14..1A17 */ FriBidiPropertyBlockLevel7_093C, /* 1A18..1A1B */ FriBidiPropertyBlockLevel7_0044, /* 1A1C..1A1F */ #define FriBidiPropertyBlockLevel6_1DC0 0x260 FriBidiPropertyBlockLevel7_0300, /* 1DC0..1DC3 */ FriBidiPropertyBlockLevel7_0044, /* 1DC4..1DC7 */ FriBidiPropertyBlockLevel7_0044, /* 1DC8..1DCB */ FriBidiPropertyBlockLevel7_0044, /* 1DCC..1DCF */ FriBidiPropertyBlockLevel7_0044, /* 1DD0..1DD3 */ FriBidiPropertyBlockLevel7_0044, /* 1DD4..1DD7 */ FriBidiPropertyBlockLevel7_0044, /* 1DD8..1DDB */ FriBidiPropertyBlockLevel7_0044, /* 1DDC..1DDF */ #define FriBidiPropertyBlockLevel6_1FA0 0x268 FriBidiPropertyBlockLevel7_0044, /* 1FA0..1FA3 */ FriBidiPropertyBlockLevel7_0044, /* 1FA4..1FA7 */ FriBidiPropertyBlockLevel7_0044, /* 1FA8..1FAB */ FriBidiPropertyBlockLevel7_0044, /* 1FAC..1FAF */ FriBidiPropertyBlockLevel7_0044, /* 1FB0..1FB3 */ FriBidiPropertyBlockLevel7_0044, /* 1FB4..1FB7 */ FriBidiPropertyBlockLevel7_0044, /* 1FB8..1FBB */ FriBidiPropertyBlockLevel7_1FBC, /* 1FBC..1FBF */ #define FriBidiPropertyBlockLevel6_1FC0 0x270 FriBidiPropertyBlockLevel7_0374, /* 1FC0..1FC3 */ FriBidiPropertyBlockLevel7_0044, /* 1FC4..1FC7 */ FriBidiPropertyBlockLevel7_0044, /* 1FC8..1FCB */ FriBidiPropertyBlockLevel7_02E4, /* 1FCC..1FCF */ FriBidiPropertyBlockLevel7_0044, /* 1FD0..1FD3 */ FriBidiPropertyBlockLevel7_0044, /* 1FD4..1FD7 */ FriBidiPropertyBlockLevel7_0044, /* 1FD8..1FDB */ FriBidiPropertyBlockLevel7_02E4, /* 1FDC..1FDF */ #define FriBidiPropertyBlockLevel6_1FE0 0x278 FriBidiPropertyBlockLevel7_0044, /* 1FE0..1FE3 */ FriBidiPropertyBlockLevel7_0044, /* 1FE4..1FE7 */ FriBidiPropertyBlockLevel7_0044, /* 1FE8..1FEB */ FriBidiPropertyBlockLevel7_02E4, /* 1FEC..1FEF */ FriBidiPropertyBlockLevel7_0044, /* 1FF0..1FF3 */ FriBidiPropertyBlockLevel7_0044, /* 1FF4..1FF7 */ FriBidiPropertyBlockLevel7_0044, /* 1FF8..1FFB */ FriBidiPropertyBlockLevel7_02B8, /* 1FFC..1FFF */ #define FriBidiPropertyBlockLevel6_2000 0x280 FriBidiPropertyBlockLevel7_2000, /* 2000..2003 */ FriBidiPropertyBlockLevel7_2000, /* 2004..2007 */ FriBidiPropertyBlockLevel7_2008, /* 2008..200B */ FriBidiPropertyBlockLevel7_200C, /* 200C..200F */ FriBidiPropertyBlockLevel7_003C, /* 2010..2013 */ FriBidiPropertyBlockLevel7_003C, /* 2014..2017 */ FriBidiPropertyBlockLevel7_003C, /* 2018..201B */ FriBidiPropertyBlockLevel7_003C, /* 201C..201F */ #define FriBidiPropertyBlockLevel6_2020 0x288 FriBidiPropertyBlockLevel7_003C, /* 2020..2023 */ FriBidiPropertyBlockLevel7_003C, /* 2024..2027 */ FriBidiPropertyBlockLevel7_2028, /* 2028..202B */ FriBidiPropertyBlockLevel7_202C, /* 202C..202F */ FriBidiPropertyBlockLevel7_2030, /* 2030..2033 */ FriBidiPropertyBlockLevel7_2034, /* 2034..2037 */ FriBidiPropertyBlockLevel7_003C, /* 2038..203B */ FriBidiPropertyBlockLevel7_003C, /* 203C..203F */ #define FriBidiPropertyBlockLevel6_2040 0x290 FriBidiPropertyBlockLevel7_003C, /* 2040..2043 */ FriBidiPropertyBlockLevel7_2044, /* 2044..2047 */ FriBidiPropertyBlockLevel7_003C, /* 2048..204B */ FriBidiPropertyBlockLevel7_003C, /* 204C..204F */ FriBidiPropertyBlockLevel7_003C, /* 2050..2053 */ FriBidiPropertyBlockLevel7_003C, /* 2054..2057 */ FriBidiPropertyBlockLevel7_003C, /* 2058..205B */ FriBidiPropertyBlockLevel7_205C, /* 205C..205F */ #define FriBidiPropertyBlockLevel6_2060 0x298 FriBidiPropertyBlockLevel7_0000, /* 2060..2063 */ FriBidiPropertyBlockLevel7_0000, /* 2064..2067 */ FriBidiPropertyBlockLevel7_0000, /* 2068..206B */ FriBidiPropertyBlockLevel7_0000, /* 206C..206F */ FriBidiPropertyBlockLevel7_2070, /* 2070..2073 */ FriBidiPropertyBlockLevel7_0030, /* 2074..2077 */ FriBidiPropertyBlockLevel7_2078, /* 2078..207B */ FriBidiPropertyBlockLevel7_207C, /* 207C..207F */ #define FriBidiPropertyBlockLevel6_2080 0x2A0 FriBidiPropertyBlockLevel7_0030, /* 2080..2083 */ FriBidiPropertyBlockLevel7_0030, /* 2084..2087 */ FriBidiPropertyBlockLevel7_2078, /* 2088..208B */ FriBidiPropertyBlockLevel7_207C, /* 208C..208F */ FriBidiPropertyBlockLevel7_0044, /* 2090..2093 */ FriBidiPropertyBlockLevel7_0044, /* 2094..2097 */ FriBidiPropertyBlockLevel7_0044, /* 2098..209B */ FriBidiPropertyBlockLevel7_0044, /* 209C..209F */ #define FriBidiPropertyBlockLevel6_20A0 0x2A8 FriBidiPropertyBlockLevel7_2030, /* 20A0..20A3 */ FriBidiPropertyBlockLevel7_2030, /* 20A4..20A7 */ FriBidiPropertyBlockLevel7_2030, /* 20A8..20AB */ FriBidiPropertyBlockLevel7_2030, /* 20AC..20AF */ FriBidiPropertyBlockLevel7_2030, /* 20B0..20B3 */ FriBidiPropertyBlockLevel7_20B4, /* 20B4..20B7 */ FriBidiPropertyBlockLevel7_0044, /* 20B8..20BB */ FriBidiPropertyBlockLevel7_0044, /* 20BC..20BF */ #define FriBidiPropertyBlockLevel6_20C0 0x2B0 FriBidiPropertyBlockLevel7_0044, /* 20C0..20C3 */ FriBidiPropertyBlockLevel7_0044, /* 20C4..20C7 */ FriBidiPropertyBlockLevel7_0044, /* 20C8..20CB */ FriBidiPropertyBlockLevel7_0044, /* 20CC..20CF */ FriBidiPropertyBlockLevel7_0300, /* 20D0..20D3 */ FriBidiPropertyBlockLevel7_0300, /* 20D4..20D7 */ FriBidiPropertyBlockLevel7_0300, /* 20D8..20DB */ FriBidiPropertyBlockLevel7_0300, /* 20DC..20DF */ #define FriBidiPropertyBlockLevel6_20E0 0x2B8 FriBidiPropertyBlockLevel7_0300, /* 20E0..20E3 */ FriBidiPropertyBlockLevel7_0300, /* 20E4..20E7 */ FriBidiPropertyBlockLevel7_0300, /* 20E8..20EB */ FriBidiPropertyBlockLevel7_0044, /* 20EC..20EF */ FriBidiPropertyBlockLevel7_0044, /* 20F0..20F3 */ FriBidiPropertyBlockLevel7_0044, /* 20F4..20F7 */ FriBidiPropertyBlockLevel7_0044, /* 20F8..20FB */ FriBidiPropertyBlockLevel7_0044, /* 20FC..20FF */ #define FriBidiPropertyBlockLevel6_2100 0x2C0 FriBidiPropertyBlockLevel7_00A8, /* 2100..2103 */ FriBidiPropertyBlockLevel7_207C, /* 2104..2107 */ FriBidiPropertyBlockLevel7_0374, /* 2108..210B */ FriBidiPropertyBlockLevel7_0044, /* 210C..210F */ FriBidiPropertyBlockLevel7_0044, /* 2110..2113 */ FriBidiPropertyBlockLevel7_00B4, /* 2114..2117 */ FriBidiPropertyBlockLevel7_0040, /* 2118..211B */ FriBidiPropertyBlockLevel7_02C0, /* 211C..211F */ #define FriBidiPropertyBlockLevel6_2120 0x2C8 FriBidiPropertyBlockLevel7_003C, /* 2120..2123 */ FriBidiPropertyBlockLevel7_1FBC, /* 2124..2127 */ FriBidiPropertyBlockLevel7_2128, /* 2128..212B */ FriBidiPropertyBlockLevel7_212C, /* 212C..212F */ FriBidiPropertyBlockLevel7_037C, /* 2130..2133 */ FriBidiPropertyBlockLevel7_0044, /* 2134..2137 */ FriBidiPropertyBlockLevel7_02C0, /* 2138..213B */ FriBidiPropertyBlockLevel7_0044, /* 213C..213F */ #define FriBidiPropertyBlockLevel6_2140 0x2D0 FriBidiPropertyBlockLevel7_003C, /* 2140..2143 */ FriBidiPropertyBlockLevel7_0040, /* 2144..2147 */ FriBidiPropertyBlockLevel7_02C0, /* 2148..214B */ FriBidiPropertyBlockLevel7_0040, /* 214C..214F */ FriBidiPropertyBlockLevel7_0058, /* 2150..2153 */ FriBidiPropertyBlockLevel7_003C, /* 2154..2157 */ FriBidiPropertyBlockLevel7_003C, /* 2158..215B */ FriBidiPropertyBlockLevel7_003C, /* 215C..215F */ #define FriBidiPropertyBlockLevel6_2180 0x2D8 FriBidiPropertyBlockLevel7_0044, /* 2180..2183 */ FriBidiPropertyBlockLevel7_0044, /* 2184..2187 */ FriBidiPropertyBlockLevel7_0044, /* 2188..218B */ FriBidiPropertyBlockLevel7_0044, /* 218C..218F */ FriBidiPropertyBlockLevel7_003C, /* 2190..2193 */ FriBidiPropertyBlockLevel7_003C, /* 2194..2197 */ FriBidiPropertyBlockLevel7_003C, /* 2198..219B */ FriBidiPropertyBlockLevel7_003C, /* 219C..219F */ #define FriBidiPropertyBlockLevel6_2200 0x2E0 FriBidiPropertyBlockLevel7_003C, /* 2200..2203 */ FriBidiPropertyBlockLevel7_003C, /* 2204..2207 */ FriBidiPropertyBlockLevel7_003C, /* 2208..220B */ FriBidiPropertyBlockLevel7_003C, /* 220C..220F */ FriBidiPropertyBlockLevel7_2210, /* 2210..2213 */ FriBidiPropertyBlockLevel7_003C, /* 2214..2217 */ FriBidiPropertyBlockLevel7_003C, /* 2218..221B */ FriBidiPropertyBlockLevel7_003C, /* 221C..221F */ #define FriBidiPropertyBlockLevel6_2320 0x2E8 FriBidiPropertyBlockLevel7_003C, /* 2320..2323 */ FriBidiPropertyBlockLevel7_003C, /* 2324..2327 */ FriBidiPropertyBlockLevel7_003C, /* 2328..232B */ FriBidiPropertyBlockLevel7_003C, /* 232C..232F */ FriBidiPropertyBlockLevel7_003C, /* 2330..2333 */ FriBidiPropertyBlockLevel7_0374, /* 2334..2337 */ FriBidiPropertyBlockLevel7_0044, /* 2338..233B */ FriBidiPropertyBlockLevel7_0044, /* 233C..233F */ #define FriBidiPropertyBlockLevel6_2360 0x2F0 FriBidiPropertyBlockLevel7_0044, /* 2360..2363 */ FriBidiPropertyBlockLevel7_0044, /* 2364..2367 */ FriBidiPropertyBlockLevel7_0044, /* 2368..236B */ FriBidiPropertyBlockLevel7_0044, /* 236C..236F */ FriBidiPropertyBlockLevel7_0044, /* 2370..2373 */ FriBidiPropertyBlockLevel7_0044, /* 2374..2377 */ FriBidiPropertyBlockLevel7_0058, /* 2378..237B */ FriBidiPropertyBlockLevel7_003C, /* 237C..237F */ #define FriBidiPropertyBlockLevel6_2380 0x2F8 FriBidiPropertyBlockLevel7_003C, /* 2380..2383 */ FriBidiPropertyBlockLevel7_003C, /* 2384..2387 */ FriBidiPropertyBlockLevel7_003C, /* 2388..238B */ FriBidiPropertyBlockLevel7_003C, /* 238C..238F */ FriBidiPropertyBlockLevel7_003C, /* 2390..2393 */ FriBidiPropertyBlockLevel7_00B4, /* 2394..2397 */ FriBidiPropertyBlockLevel7_003C, /* 2398..239B */ FriBidiPropertyBlockLevel7_003C, /* 239C..239F */ #define FriBidiPropertyBlockLevel6_23C0 0x300 FriBidiPropertyBlockLevel7_003C, /* 23C0..23C3 */ FriBidiPropertyBlockLevel7_003C, /* 23C4..23C7 */ FriBidiPropertyBlockLevel7_003C, /* 23C8..23CB */ FriBidiPropertyBlockLevel7_003C, /* 23CC..23CF */ FriBidiPropertyBlockLevel7_003C, /* 23D0..23D3 */ FriBidiPropertyBlockLevel7_003C, /* 23D4..23D7 */ FriBidiPropertyBlockLevel7_003C, /* 23D8..23DB */ FriBidiPropertyBlockLevel7_0044, /* 23DC..23DF */ #define FriBidiPropertyBlockLevel6_2420 0x308 FriBidiPropertyBlockLevel7_003C, /* 2420..2423 */ FriBidiPropertyBlockLevel7_207C, /* 2424..2427 */ FriBidiPropertyBlockLevel7_0044, /* 2428..242B */ FriBidiPropertyBlockLevel7_0044, /* 242C..242F */ FriBidiPropertyBlockLevel7_0044, /* 2430..2433 */ FriBidiPropertyBlockLevel7_0044, /* 2434..2437 */ FriBidiPropertyBlockLevel7_0044, /* 2438..243B */ FriBidiPropertyBlockLevel7_0044, /* 243C..243F */ #define FriBidiPropertyBlockLevel6_2440 0x310 FriBidiPropertyBlockLevel7_003C, /* 2440..2443 */ FriBidiPropertyBlockLevel7_003C, /* 2444..2447 */ FriBidiPropertyBlockLevel7_207C, /* 2448..244B */ FriBidiPropertyBlockLevel7_0044, /* 244C..244F */ FriBidiPropertyBlockLevel7_0044, /* 2450..2453 */ FriBidiPropertyBlockLevel7_0044, /* 2454..2457 */ FriBidiPropertyBlockLevel7_0044, /* 2458..245B */ FriBidiPropertyBlockLevel7_0044, /* 245C..245F */ #define FriBidiPropertyBlockLevel6_2480 0x318 FriBidiPropertyBlockLevel7_003C, /* 2480..2483 */ FriBidiPropertyBlockLevel7_003C, /* 2484..2487 */ FriBidiPropertyBlockLevel7_0030, /* 2488..248B */ FriBidiPropertyBlockLevel7_0030, /* 248C..248F */ FriBidiPropertyBlockLevel7_0030, /* 2490..2493 */ FriBidiPropertyBlockLevel7_0030, /* 2494..2497 */ FriBidiPropertyBlockLevel7_0030, /* 2498..249B */ FriBidiPropertyBlockLevel7_0044, /* 249C..249F */ #define FriBidiPropertyBlockLevel6_24E0 0x320 FriBidiPropertyBlockLevel7_0044, /* 24E0..24E3 */ FriBidiPropertyBlockLevel7_0044, /* 24E4..24E7 */ FriBidiPropertyBlockLevel7_02C0, /* 24E8..24EB */ FriBidiPropertyBlockLevel7_003C, /* 24EC..24EF */ FriBidiPropertyBlockLevel7_003C, /* 24F0..24F3 */ FriBidiPropertyBlockLevel7_003C, /* 24F4..24F7 */ FriBidiPropertyBlockLevel7_003C, /* 24F8..24FB */ FriBidiPropertyBlockLevel7_003C, /* 24FC..24FF */ #define FriBidiPropertyBlockLevel6_2680 0x328 FriBidiPropertyBlockLevel7_003C, /* 2680..2683 */ FriBidiPropertyBlockLevel7_003C, /* 2684..2687 */ FriBidiPropertyBlockLevel7_003C, /* 2688..268B */ FriBidiPropertyBlockLevel7_003C, /* 268C..268F */ FriBidiPropertyBlockLevel7_003C, /* 2690..2693 */ FriBidiPropertyBlockLevel7_003C, /* 2694..2697 */ FriBidiPropertyBlockLevel7_003C, /* 2698..269B */ FriBidiPropertyBlockLevel7_0040, /* 269C..269F */ #define FriBidiPropertyBlockLevel6_26A0 0x330 FriBidiPropertyBlockLevel7_003C, /* 26A0..26A3 */ FriBidiPropertyBlockLevel7_003C, /* 26A4..26A7 */ FriBidiPropertyBlockLevel7_003C, /* 26A8..26AB */ FriBidiPropertyBlockLevel7_02E4, /* 26AC..26AF */ FriBidiPropertyBlockLevel7_0374, /* 26B0..26B3 */ FriBidiPropertyBlockLevel7_0044, /* 26B4..26B7 */ FriBidiPropertyBlockLevel7_0044, /* 26B8..26BB */ FriBidiPropertyBlockLevel7_0044, /* 26BC..26BF */ #define FriBidiPropertyBlockLevel6_2700 0x338 FriBidiPropertyBlockLevel7_02E4, /* 2700..2703 */ FriBidiPropertyBlockLevel7_00B4, /* 2704..2707 */ FriBidiPropertyBlockLevel7_0374, /* 2708..270B */ FriBidiPropertyBlockLevel7_003C, /* 270C..270F */ FriBidiPropertyBlockLevel7_003C, /* 2710..2713 */ FriBidiPropertyBlockLevel7_003C, /* 2714..2717 */ FriBidiPropertyBlockLevel7_003C, /* 2718..271B */ FriBidiPropertyBlockLevel7_003C, /* 271C..271F */ #define FriBidiPropertyBlockLevel6_2720 0x340 FriBidiPropertyBlockLevel7_003C, /* 2720..2723 */ FriBidiPropertyBlockLevel7_003C, /* 2724..2727 */ FriBidiPropertyBlockLevel7_02E4, /* 2728..272B */ FriBidiPropertyBlockLevel7_003C, /* 272C..272F */ FriBidiPropertyBlockLevel7_003C, /* 2730..2733 */ FriBidiPropertyBlockLevel7_003C, /* 2734..2737 */ FriBidiPropertyBlockLevel7_003C, /* 2738..273B */ FriBidiPropertyBlockLevel7_003C, /* 273C..273F */ #define FriBidiPropertyBlockLevel6_2740 0x348 FriBidiPropertyBlockLevel7_003C, /* 2740..2743 */ FriBidiPropertyBlockLevel7_003C, /* 2744..2747 */ FriBidiPropertyBlockLevel7_003C, /* 2748..274B */ FriBidiPropertyBlockLevel7_1FBC, /* 274C..274F */ FriBidiPropertyBlockLevel7_207C, /* 2750..2753 */ FriBidiPropertyBlockLevel7_037C, /* 2754..2757 */ FriBidiPropertyBlockLevel7_003C, /* 2758..275B */ FriBidiPropertyBlockLevel7_207C, /* 275C..275F */ #define FriBidiPropertyBlockLevel6_2760 0x350 FriBidiPropertyBlockLevel7_02E4, /* 2760..2763 */ FriBidiPropertyBlockLevel7_003C, /* 2764..2767 */ FriBidiPropertyBlockLevel7_003C, /* 2768..276B */ FriBidiPropertyBlockLevel7_003C, /* 276C..276F */ FriBidiPropertyBlockLevel7_003C, /* 2770..2773 */ FriBidiPropertyBlockLevel7_003C, /* 2774..2777 */ FriBidiPropertyBlockLevel7_003C, /* 2778..277B */ FriBidiPropertyBlockLevel7_003C, /* 277C..277F */ #define FriBidiPropertyBlockLevel6_2780 0x358 FriBidiPropertyBlockLevel7_003C, /* 2780..2783 */ FriBidiPropertyBlockLevel7_003C, /* 2784..2787 */ FriBidiPropertyBlockLevel7_003C, /* 2788..278B */ FriBidiPropertyBlockLevel7_003C, /* 278C..278F */ FriBidiPropertyBlockLevel7_003C, /* 2790..2793 */ FriBidiPropertyBlockLevel7_0040, /* 2794..2797 */ FriBidiPropertyBlockLevel7_003C, /* 2798..279B */ FriBidiPropertyBlockLevel7_003C, /* 279C..279F */ #define FriBidiPropertyBlockLevel6_27A0 0x360 FriBidiPropertyBlockLevel7_003C, /* 27A0..27A3 */ FriBidiPropertyBlockLevel7_003C, /* 27A4..27A7 */ FriBidiPropertyBlockLevel7_003C, /* 27A8..27AB */ FriBidiPropertyBlockLevel7_003C, /* 27AC..27AF */ FriBidiPropertyBlockLevel7_02E4, /* 27B0..27B3 */ FriBidiPropertyBlockLevel7_003C, /* 27B4..27B7 */ FriBidiPropertyBlockLevel7_003C, /* 27B8..27BB */ FriBidiPropertyBlockLevel7_207C, /* 27BC..27BF */ #define FriBidiPropertyBlockLevel6_27C0 0x368 FriBidiPropertyBlockLevel7_003C, /* 27C0..27C3 */ FriBidiPropertyBlockLevel7_207C, /* 27C4..27C7 */ FriBidiPropertyBlockLevel7_0044, /* 27C8..27CB */ FriBidiPropertyBlockLevel7_0044, /* 27CC..27CF */ FriBidiPropertyBlockLevel7_003C, /* 27D0..27D3 */ FriBidiPropertyBlockLevel7_003C, /* 27D4..27D7 */ FriBidiPropertyBlockLevel7_003C, /* 27D8..27DB */ FriBidiPropertyBlockLevel7_003C, /* 27DC..27DF */ #define FriBidiPropertyBlockLevel6_27E0 0x370 FriBidiPropertyBlockLevel7_003C, /* 27E0..27E3 */ FriBidiPropertyBlockLevel7_003C, /* 27E4..27E7 */ FriBidiPropertyBlockLevel7_003C, /* 27E8..27EB */ FriBidiPropertyBlockLevel7_0044, /* 27EC..27EF */ FriBidiPropertyBlockLevel7_003C, /* 27F0..27F3 */ FriBidiPropertyBlockLevel7_003C, /* 27F4..27F7 */ FriBidiPropertyBlockLevel7_003C, /* 27F8..27FB */ FriBidiPropertyBlockLevel7_003C, /* 27FC..27FF */ #define FriBidiPropertyBlockLevel6_2B00 0x378 FriBidiPropertyBlockLevel7_003C, /* 2B00..2B03 */ FriBidiPropertyBlockLevel7_003C, /* 2B04..2B07 */ FriBidiPropertyBlockLevel7_003C, /* 2B08..2B0B */ FriBidiPropertyBlockLevel7_003C, /* 2B0C..2B0F */ FriBidiPropertyBlockLevel7_003C, /* 2B10..2B13 */ FriBidiPropertyBlockLevel7_0044, /* 2B14..2B17 */ FriBidiPropertyBlockLevel7_0044, /* 2B18..2B1B */ FriBidiPropertyBlockLevel7_0044, /* 2B1C..2B1F */ #define FriBidiPropertyBlockLevel6_2CE0 0x380 FriBidiPropertyBlockLevel7_0044, /* 2CE0..2CE3 */ FriBidiPropertyBlockLevel7_02E4, /* 2CE4..2CE7 */ FriBidiPropertyBlockLevel7_207C, /* 2CE8..2CEB */ FriBidiPropertyBlockLevel7_0044, /* 2CEC..2CEF */ FriBidiPropertyBlockLevel7_0044, /* 2CF0..2CF3 */ FriBidiPropertyBlockLevel7_0044, /* 2CF4..2CF7 */ FriBidiPropertyBlockLevel7_02E4, /* 2CF8..2CFB */ FriBidiPropertyBlockLevel7_003C, /* 2CFC..2CFF */ #define FriBidiPropertyBlockLevel6_2E00 0x388 FriBidiPropertyBlockLevel7_003C, /* 2E00..2E03 */ FriBidiPropertyBlockLevel7_003C, /* 2E04..2E07 */ FriBidiPropertyBlockLevel7_003C, /* 2E08..2E0B */ FriBidiPropertyBlockLevel7_003C, /* 2E0C..2E0F */ FriBidiPropertyBlockLevel7_003C, /* 2E10..2E13 */ FriBidiPropertyBlockLevel7_003C, /* 2E14..2E17 */ FriBidiPropertyBlockLevel7_0044, /* 2E18..2E1B */ FriBidiPropertyBlockLevel7_0374, /* 2E1C..2E1F */ #define FriBidiPropertyBlockLevel6_2E80 0x390 FriBidiPropertyBlockLevel7_003C, /* 2E80..2E83 */ FriBidiPropertyBlockLevel7_003C, /* 2E84..2E87 */ FriBidiPropertyBlockLevel7_003C, /* 2E88..2E8B */ FriBidiPropertyBlockLevel7_003C, /* 2E8C..2E8F */ FriBidiPropertyBlockLevel7_003C, /* 2E90..2E93 */ FriBidiPropertyBlockLevel7_003C, /* 2E94..2E97 */ FriBidiPropertyBlockLevel7_00A8, /* 2E98..2E9B */ FriBidiPropertyBlockLevel7_003C, /* 2E9C..2E9F */ #define FriBidiPropertyBlockLevel6_2FE0 0x398 FriBidiPropertyBlockLevel7_0044, /* 2FE0..2FE3 */ FriBidiPropertyBlockLevel7_0044, /* 2FE4..2FE7 */ FriBidiPropertyBlockLevel7_0044, /* 2FE8..2FEB */ FriBidiPropertyBlockLevel7_0044, /* 2FEC..2FEF */ FriBidiPropertyBlockLevel7_003C, /* 2FF0..2FF3 */ FriBidiPropertyBlockLevel7_003C, /* 2FF4..2FF7 */ FriBidiPropertyBlockLevel7_003C, /* 2FF8..2FFB */ FriBidiPropertyBlockLevel7_0044, /* 2FFC..2FFF */ #define FriBidiPropertyBlockLevel6_3000 0x3A0 FriBidiPropertyBlockLevel7_3000, /* 3000..3003 */ FriBidiPropertyBlockLevel7_0040, /* 3004..3007 */ FriBidiPropertyBlockLevel7_003C, /* 3008..300B */ FriBidiPropertyBlockLevel7_003C, /* 300C..300F */ FriBidiPropertyBlockLevel7_003C, /* 3010..3013 */ FriBidiPropertyBlockLevel7_003C, /* 3014..3017 */ FriBidiPropertyBlockLevel7_003C, /* 3018..301B */ FriBidiPropertyBlockLevel7_003C, /* 301C..301F */ #define FriBidiPropertyBlockLevel6_3020 0x3A8 FriBidiPropertyBlockLevel7_0040, /* 3020..3023 */ FriBidiPropertyBlockLevel7_0044, /* 3024..3027 */ FriBidiPropertyBlockLevel7_0960, /* 3028..302B */ FriBidiPropertyBlockLevel7_0300, /* 302C..302F */ FriBidiPropertyBlockLevel7_0040, /* 3030..3033 */ FriBidiPropertyBlockLevel7_02C0, /* 3034..3037 */ FriBidiPropertyBlockLevel7_0044, /* 3038..303B */ FriBidiPropertyBlockLevel7_02E4, /* 303C..303F */ #define FriBidiPropertyBlockLevel6_3080 0x3B0 FriBidiPropertyBlockLevel7_0044, /* 3080..3083 */ FriBidiPropertyBlockLevel7_0044, /* 3084..3087 */ FriBidiPropertyBlockLevel7_0044, /* 3088..308B */ FriBidiPropertyBlockLevel7_0044, /* 308C..308F */ FriBidiPropertyBlockLevel7_0044, /* 3090..3093 */ FriBidiPropertyBlockLevel7_0044, /* 3094..3097 */ FriBidiPropertyBlockLevel7_3098, /* 3098..309B */ FriBidiPropertyBlockLevel7_0040, /* 309C..309F */ #define FriBidiPropertyBlockLevel6_30A0 0x3B8 FriBidiPropertyBlockLevel7_0040, /* 30A0..30A3 */ FriBidiPropertyBlockLevel7_0044, /* 30A4..30A7 */ FriBidiPropertyBlockLevel7_0044, /* 30A8..30AB */ FriBidiPropertyBlockLevel7_0044, /* 30AC..30AF */ FriBidiPropertyBlockLevel7_0044, /* 30B0..30B3 */ FriBidiPropertyBlockLevel7_0044, /* 30B4..30B7 */ FriBidiPropertyBlockLevel7_0044, /* 30B8..30BB */ FriBidiPropertyBlockLevel7_0044, /* 30BC..30BF */ #define FriBidiPropertyBlockLevel6_30E0 0x3C0 FriBidiPropertyBlockLevel7_0044, /* 30E0..30E3 */ FriBidiPropertyBlockLevel7_0044, /* 30E4..30E7 */ FriBidiPropertyBlockLevel7_0044, /* 30E8..30EB */ FriBidiPropertyBlockLevel7_0044, /* 30EC..30EF */ FriBidiPropertyBlockLevel7_0044, /* 30F0..30F3 */ FriBidiPropertyBlockLevel7_0044, /* 30F4..30F7 */ FriBidiPropertyBlockLevel7_0058, /* 30F8..30FB */ FriBidiPropertyBlockLevel7_0044, /* 30FC..30FF */ #define FriBidiPropertyBlockLevel6_31C0 0x3C8 FriBidiPropertyBlockLevel7_003C, /* 31C0..31C3 */ FriBidiPropertyBlockLevel7_003C, /* 31C4..31C7 */ FriBidiPropertyBlockLevel7_003C, /* 31C8..31CB */ FriBidiPropertyBlockLevel7_003C, /* 31CC..31CF */ FriBidiPropertyBlockLevel7_0044, /* 31D0..31D3 */ FriBidiPropertyBlockLevel7_0044, /* 31D4..31D7 */ FriBidiPropertyBlockLevel7_0044, /* 31D8..31DB */ FriBidiPropertyBlockLevel7_0044, /* 31DC..31DF */ #define FriBidiPropertyBlockLevel6_3200 0x3D0 FriBidiPropertyBlockLevel7_0044, /* 3200..3203 */ FriBidiPropertyBlockLevel7_0044, /* 3204..3207 */ FriBidiPropertyBlockLevel7_0044, /* 3208..320B */ FriBidiPropertyBlockLevel7_0044, /* 320C..320F */ FriBidiPropertyBlockLevel7_0044, /* 3210..3213 */ FriBidiPropertyBlockLevel7_0044, /* 3214..3217 */ FriBidiPropertyBlockLevel7_0044, /* 3218..321B */ FriBidiPropertyBlockLevel7_02B8, /* 321C..321F */ #define FriBidiPropertyBlockLevel6_3260 0x3D8 FriBidiPropertyBlockLevel7_0044, /* 3260..3263 */ FriBidiPropertyBlockLevel7_0044, /* 3264..3267 */ FriBidiPropertyBlockLevel7_0044, /* 3268..326B */ FriBidiPropertyBlockLevel7_0044, /* 326C..326F */ FriBidiPropertyBlockLevel7_0044, /* 3270..3273 */ FriBidiPropertyBlockLevel7_0044, /* 3274..3277 */ FriBidiPropertyBlockLevel7_0044, /* 3278..327B */ FriBidiPropertyBlockLevel7_207C, /* 327C..327F */ #define FriBidiPropertyBlockLevel6_32A0 0x3E0 FriBidiPropertyBlockLevel7_0044, /* 32A0..32A3 */ FriBidiPropertyBlockLevel7_0044, /* 32A4..32A7 */ FriBidiPropertyBlockLevel7_0044, /* 32A8..32AB */ FriBidiPropertyBlockLevel7_0044, /* 32AC..32AF */ FriBidiPropertyBlockLevel7_02E4, /* 32B0..32B3 */ FriBidiPropertyBlockLevel7_003C, /* 32B4..32B7 */ FriBidiPropertyBlockLevel7_003C, /* 32B8..32BB */ FriBidiPropertyBlockLevel7_003C, /* 32BC..32BF */ #define FriBidiPropertyBlockLevel6_32C0 0x3E8 FriBidiPropertyBlockLevel7_0044, /* 32C0..32C3 */ FriBidiPropertyBlockLevel7_0044, /* 32C4..32C7 */ FriBidiPropertyBlockLevel7_0044, /* 32C8..32CB */ FriBidiPropertyBlockLevel7_003C, /* 32CC..32CF */ FriBidiPropertyBlockLevel7_0044, /* 32D0..32D3 */ FriBidiPropertyBlockLevel7_0044, /* 32D4..32D7 */ FriBidiPropertyBlockLevel7_0044, /* 32D8..32DB */ FriBidiPropertyBlockLevel7_0044, /* 32DC..32DF */ #define FriBidiPropertyBlockLevel6_3360 0x3F0 FriBidiPropertyBlockLevel7_0044, /* 3360..3363 */ FriBidiPropertyBlockLevel7_0044, /* 3364..3367 */ FriBidiPropertyBlockLevel7_0044, /* 3368..336B */ FriBidiPropertyBlockLevel7_0044, /* 336C..336F */ FriBidiPropertyBlockLevel7_0044, /* 3370..3373 */ FriBidiPropertyBlockLevel7_0058, /* 3374..3377 */ FriBidiPropertyBlockLevel7_207C, /* 3378..337B */ FriBidiPropertyBlockLevel7_0044, /* 337C..337F */ #define FriBidiPropertyBlockLevel6_33E0 0x3F8 FriBidiPropertyBlockLevel7_0044, /* 33E0..33E3 */ FriBidiPropertyBlockLevel7_0044, /* 33E4..33E7 */ FriBidiPropertyBlockLevel7_0044, /* 33E8..33EB */ FriBidiPropertyBlockLevel7_0044, /* 33EC..33EF */ FriBidiPropertyBlockLevel7_0044, /* 33F0..33F3 */ FriBidiPropertyBlockLevel7_0044, /* 33F4..33F7 */ FriBidiPropertyBlockLevel7_0044, /* 33F8..33FB */ FriBidiPropertyBlockLevel7_0058, /* 33FC..33FF */ #define FriBidiPropertyBlockLevel6_A700 0x400 FriBidiPropertyBlockLevel7_003C, /* A700..A703 */ FriBidiPropertyBlockLevel7_003C, /* A704..A707 */ FriBidiPropertyBlockLevel7_003C, /* A708..A70B */ FriBidiPropertyBlockLevel7_003C, /* A70C..A70F */ FriBidiPropertyBlockLevel7_003C, /* A710..A713 */ FriBidiPropertyBlockLevel7_207C, /* A714..A717 */ FriBidiPropertyBlockLevel7_0044, /* A718..A71B */ FriBidiPropertyBlockLevel7_0044, /* A71C..A71F */ #define FriBidiPropertyBlockLevel6_A800 0x408 FriBidiPropertyBlockLevel7_0B54, /* A800..A803 */ FriBidiPropertyBlockLevel7_0B54, /* A804..A807 */ FriBidiPropertyBlockLevel7_0480, /* A808..A80B */ FriBidiPropertyBlockLevel7_0044, /* A80C..A80F */ FriBidiPropertyBlockLevel7_0044, /* A810..A813 */ FriBidiPropertyBlockLevel7_0044, /* A814..A817 */ FriBidiPropertyBlockLevel7_0044, /* A818..A81B */ FriBidiPropertyBlockLevel7_0044, /* A81C..A81F */ #define FriBidiPropertyBlockLevel6_A820 0x410 FriBidiPropertyBlockLevel7_0044, /* A820..A823 */ FriBidiPropertyBlockLevel7_0900, /* A824..A827 */ FriBidiPropertyBlockLevel7_003C, /* A828..A82B */ FriBidiPropertyBlockLevel7_0044, /* A82C..A82F */ FriBidiPropertyBlockLevel7_0044, /* A830..A833 */ FriBidiPropertyBlockLevel7_0044, /* A834..A837 */ FriBidiPropertyBlockLevel7_0044, /* A838..A83B */ FriBidiPropertyBlockLevel7_0044, /* A83C..A83F */ #define FriBidiPropertyBlockLevel6_FB00 0x418 FriBidiPropertyBlockLevel7_0044, /* FB00..FB03 */ FriBidiPropertyBlockLevel7_0044, /* FB04..FB07 */ FriBidiPropertyBlockLevel7_0044, /* FB08..FB0B */ FriBidiPropertyBlockLevel7_0044, /* FB0C..FB0F */ FriBidiPropertyBlockLevel7_0044, /* FB10..FB13 */ FriBidiPropertyBlockLevel7_0044, /* FB14..FB17 */ FriBidiPropertyBlockLevel7_0044, /* FB18..FB1B */ FriBidiPropertyBlockLevel7_FB1C, /* FB1C..FB1F */ #define FriBidiPropertyBlockLevel6_FB20 0x420 FriBidiPropertyBlockLevel7_05C8, /* FB20..FB23 */ FriBidiPropertyBlockLevel7_05C8, /* FB24..FB27 */ FriBidiPropertyBlockLevel7_FB28, /* FB28..FB2B */ FriBidiPropertyBlockLevel7_05C8, /* FB2C..FB2F */ FriBidiPropertyBlockLevel7_05C8, /* FB30..FB33 */ FriBidiPropertyBlockLevel7_05C8, /* FB34..FB37 */ FriBidiPropertyBlockLevel7_05C8, /* FB38..FB3B */ FriBidiPropertyBlockLevel7_05C8, /* FB3C..FB3F */ #define FriBidiPropertyBlockLevel6_FB40 0x428 FriBidiPropertyBlockLevel7_05C8, /* FB40..FB43 */ FriBidiPropertyBlockLevel7_05C8, /* FB44..FB47 */ FriBidiPropertyBlockLevel7_05C8, /* FB48..FB4B */ FriBidiPropertyBlockLevel7_05C8, /* FB4C..FB4F */ FriBidiPropertyBlockLevel7_0600, /* FB50..FB53 */ FriBidiPropertyBlockLevel7_0600, /* FB54..FB57 */ FriBidiPropertyBlockLevel7_0600, /* FB58..FB5B */ FriBidiPropertyBlockLevel7_0600, /* FB5C..FB5F */ #define FriBidiPropertyBlockLevel6_FD20 0x430 FriBidiPropertyBlockLevel7_0600, /* FD20..FD23 */ FriBidiPropertyBlockLevel7_0600, /* FD24..FD27 */ FriBidiPropertyBlockLevel7_0600, /* FD28..FD2B */ FriBidiPropertyBlockLevel7_0600, /* FD2C..FD2F */ FriBidiPropertyBlockLevel7_0600, /* FD30..FD33 */ FriBidiPropertyBlockLevel7_0600, /* FD34..FD37 */ FriBidiPropertyBlockLevel7_0600, /* FD38..FD3B */ FriBidiPropertyBlockLevel7_FD3C, /* FD3C..FD3F */ #define FriBidiPropertyBlockLevel6_FDC0 0x438 FriBidiPropertyBlockLevel7_0600, /* FDC0..FDC3 */ FriBidiPropertyBlockLevel7_0600, /* FDC4..FDC7 */ FriBidiPropertyBlockLevel7_0600, /* FDC8..FDCB */ FriBidiPropertyBlockLevel7_0600, /* FDCC..FDCF */ FriBidiPropertyBlockLevel7_0000, /* FDD0..FDD3 */ FriBidiPropertyBlockLevel7_0000, /* FDD4..FDD7 */ FriBidiPropertyBlockLevel7_0000, /* FDD8..FDDB */ FriBidiPropertyBlockLevel7_0000, /* FDDC..FDDF */ #define FriBidiPropertyBlockLevel6_FDE0 0x440 FriBidiPropertyBlockLevel7_0000, /* FDE0..FDE3 */ FriBidiPropertyBlockLevel7_0000, /* FDE4..FDE7 */ FriBidiPropertyBlockLevel7_0000, /* FDE8..FDEB */ FriBidiPropertyBlockLevel7_0000, /* FDEC..FDEF */ FriBidiPropertyBlockLevel7_0600, /* FDF0..FDF3 */ FriBidiPropertyBlockLevel7_0600, /* FDF4..FDF7 */ FriBidiPropertyBlockLevel7_0600, /* FDF8..FDFB */ FriBidiPropertyBlockLevel7_FDFC, /* FDFC..FDFF */ #define FriBidiPropertyBlockLevel6_FE00 0x448 FriBidiPropertyBlockLevel7_0300, /* FE00..FE03 */ FriBidiPropertyBlockLevel7_0300, /* FE04..FE07 */ FriBidiPropertyBlockLevel7_0300, /* FE08..FE0B */ FriBidiPropertyBlockLevel7_0300, /* FE0C..FE0F */ FriBidiPropertyBlockLevel7_003C, /* FE10..FE13 */ FriBidiPropertyBlockLevel7_003C, /* FE14..FE17 */ FriBidiPropertyBlockLevel7_0374, /* FE18..FE1B */ FriBidiPropertyBlockLevel7_0044, /* FE1C..FE1F */ #define FriBidiPropertyBlockLevel6_FE20 0x450 FriBidiPropertyBlockLevel7_0300, /* FE20..FE23 */ FriBidiPropertyBlockLevel7_0044, /* FE24..FE27 */ FriBidiPropertyBlockLevel7_0044, /* FE28..FE2B */ FriBidiPropertyBlockLevel7_0044, /* FE2C..FE2F */ FriBidiPropertyBlockLevel7_003C, /* FE30..FE33 */ FriBidiPropertyBlockLevel7_003C, /* FE34..FE37 */ FriBidiPropertyBlockLevel7_003C, /* FE38..FE3B */ FriBidiPropertyBlockLevel7_003C, /* FE3C..FE3F */ #define FriBidiPropertyBlockLevel6_FE40 0x458 FriBidiPropertyBlockLevel7_003C, /* FE40..FE43 */ FriBidiPropertyBlockLevel7_003C, /* FE44..FE47 */ FriBidiPropertyBlockLevel7_003C, /* FE48..FE4B */ FriBidiPropertyBlockLevel7_003C, /* FE4C..FE4F */ FriBidiPropertyBlockLevel7_FE50, /* FE50..FE53 */ FriBidiPropertyBlockLevel7_FE54, /* FE54..FE57 */ FriBidiPropertyBlockLevel7_003C, /* FE58..FE5B */ FriBidiPropertyBlockLevel7_FE5C, /* FE5C..FE5F */ #define FriBidiPropertyBlockLevel6_FE60 0x460 FriBidiPropertyBlockLevel7_FE60, /* FE60..FE63 */ FriBidiPropertyBlockLevel7_207C, /* FE64..FE67 */ FriBidiPropertyBlockLevel7_FE68, /* FE68..FE6B */ FriBidiPropertyBlockLevel7_0044, /* FE6C..FE6F */ FriBidiPropertyBlockLevel7_0600, /* FE70..FE73 */ FriBidiPropertyBlockLevel7_0600, /* FE74..FE77 */ FriBidiPropertyBlockLevel7_0600, /* FE78..FE7B */ FriBidiPropertyBlockLevel7_0600, /* FE7C..FE7F */ #define FriBidiPropertyBlockLevel6_FEE0 0x468 FriBidiPropertyBlockLevel7_0600, /* FEE0..FEE3 */ FriBidiPropertyBlockLevel7_0600, /* FEE4..FEE7 */ FriBidiPropertyBlockLevel7_0600, /* FEE8..FEEB */ FriBidiPropertyBlockLevel7_0600, /* FEEC..FEEF */ FriBidiPropertyBlockLevel7_0600, /* FEF0..FEF3 */ FriBidiPropertyBlockLevel7_0600, /* FEF4..FEF7 */ FriBidiPropertyBlockLevel7_0600, /* FEF8..FEFB */ FriBidiPropertyBlockLevel7_070C, /* FEFC..FEFF */ #define FriBidiPropertyBlockLevel6_FF00 0x470 FriBidiPropertyBlockLevel7_FF00, /* FF00..FF03 */ FriBidiPropertyBlockLevel7_0024, /* FF04..FF07 */ FriBidiPropertyBlockLevel7_0028, /* FF08..FF0B */ FriBidiPropertyBlockLevel7_002C, /* FF0C..FF0F */ FriBidiPropertyBlockLevel7_0030, /* FF10..FF13 */ FriBidiPropertyBlockLevel7_0030, /* FF14..FF17 */ FriBidiPropertyBlockLevel7_0038, /* FF18..FF1B */ FriBidiPropertyBlockLevel7_003C, /* FF1C..FF1F */ #define FriBidiPropertyBlockLevel6_FF60 0x478 FriBidiPropertyBlockLevel7_003C, /* FF60..FF63 */ FriBidiPropertyBlockLevel7_0374, /* FF64..FF67 */ FriBidiPropertyBlockLevel7_0044, /* FF68..FF6B */ FriBidiPropertyBlockLevel7_0044, /* FF6C..FF6F */ FriBidiPropertyBlockLevel7_0044, /* FF70..FF73 */ FriBidiPropertyBlockLevel7_0044, /* FF74..FF77 */ FriBidiPropertyBlockLevel7_0044, /* FF78..FF7B */ FriBidiPropertyBlockLevel7_0044, /* FF7C..FF7F */ #define FriBidiPropertyBlockLevel6_FFE0 0x480 FriBidiPropertyBlockLevel7_0024, /* FFE0..FFE3 */ FriBidiPropertyBlockLevel7_FFE4, /* FFE4..FFE7 */ FriBidiPropertyBlockLevel7_003C, /* FFE8..FFEB */ FriBidiPropertyBlockLevel7_207C, /* FFEC..FFEF */ FriBidiPropertyBlockLevel7_0000, /* FFF0..FFF3 */ FriBidiPropertyBlockLevel7_0000, /* FFF4..FFF7 */ FriBidiPropertyBlockLevel7_FFF8, /* FFF8..FFFB */ FriBidiPropertyBlockLevel7_FFFC, /* FFFC..FFFF */ #define FriBidiPropertyBlockLevel6_10100 0x488 FriBidiPropertyBlockLevel7_2128, /* 10100..10103 */ FriBidiPropertyBlockLevel7_0044, /* 10104..10107 */ FriBidiPropertyBlockLevel7_0044, /* 10108..1010B */ FriBidiPropertyBlockLevel7_0044, /* 1010C..1010F */ FriBidiPropertyBlockLevel7_0044, /* 10110..10113 */ FriBidiPropertyBlockLevel7_0044, /* 10114..10117 */ FriBidiPropertyBlockLevel7_0044, /* 10118..1011B */ FriBidiPropertyBlockLevel7_0044, /* 1011C..1011F */ #define FriBidiPropertyBlockLevel6_103C0 0x490 FriBidiPropertyBlockLevel7_0044, /* 103C0..103C3 */ FriBidiPropertyBlockLevel7_0044, /* 103C4..103C7 */ FriBidiPropertyBlockLevel7_0044, /* 103C8..103CB */ FriBidiPropertyBlockLevel7_0044, /* 103CC..103CF */ FriBidiPropertyBlockLevel7_02E4, /* 103D0..103D3 */ FriBidiPropertyBlockLevel7_0374, /* 103D4..103D7 */ FriBidiPropertyBlockLevel7_0044, /* 103D8..103DB */ FriBidiPropertyBlockLevel7_0044, /* 103DC..103DF */ #define FriBidiPropertyBlockLevel6_10A00 0x498 FriBidiPropertyBlockLevel7_0590, /* 10A00..10A03 */ FriBidiPropertyBlockLevel7_05C0, /* 10A04..10A07 */ FriBidiPropertyBlockLevel7_05C8, /* 10A08..10A0B */ FriBidiPropertyBlockLevel7_0300, /* 10A0C..10A0F */ FriBidiPropertyBlockLevel7_05C8, /* 10A10..10A13 */ FriBidiPropertyBlockLevel7_05C8, /* 10A14..10A17 */ FriBidiPropertyBlockLevel7_05C8, /* 10A18..10A1B */ FriBidiPropertyBlockLevel7_05C8, /* 10A1C..10A1F */ #define FriBidiPropertyBlockLevel6_10A20 0x4A0 FriBidiPropertyBlockLevel7_05C8, /* 10A20..10A23 */ FriBidiPropertyBlockLevel7_05C8, /* 10A24..10A27 */ FriBidiPropertyBlockLevel7_05C8, /* 10A28..10A2B */ FriBidiPropertyBlockLevel7_05C8, /* 10A2C..10A2F */ FriBidiPropertyBlockLevel7_05C8, /* 10A30..10A33 */ FriBidiPropertyBlockLevel7_05C8, /* 10A34..10A37 */ FriBidiPropertyBlockLevel7_10A38, /* 10A38..10A3B */ FriBidiPropertyBlockLevel7_10A3C, /* 10A3C..10A3F */ #define FriBidiPropertyBlockLevel6_1D160 0x4A8 FriBidiPropertyBlockLevel7_0044, /* 1D160..1D163 */ FriBidiPropertyBlockLevel7_0480, /* 1D164..1D167 */ FriBidiPropertyBlockLevel7_0488, /* 1D168..1D16B */ FriBidiPropertyBlockLevel7_0044, /* 1D16C..1D16F */ FriBidiPropertyBlockLevel7_1D170, /* 1D170..1D173 */ FriBidiPropertyBlockLevel7_0000, /* 1D174..1D177 */ FriBidiPropertyBlockLevel7_1D178, /* 1D178..1D17B */ FriBidiPropertyBlockLevel7_0300, /* 1D17C..1D17F */ #define FriBidiPropertyBlockLevel6_1D180 0x4B0 FriBidiPropertyBlockLevel7_0484, /* 1D180..1D183 */ FriBidiPropertyBlockLevel7_0940, /* 1D184..1D187 */ FriBidiPropertyBlockLevel7_0300, /* 1D188..1D18B */ FriBidiPropertyBlockLevel7_0044, /* 1D18C..1D18F */ FriBidiPropertyBlockLevel7_0044, /* 1D190..1D193 */ FriBidiPropertyBlockLevel7_0044, /* 1D194..1D197 */ FriBidiPropertyBlockLevel7_0044, /* 1D198..1D19B */ FriBidiPropertyBlockLevel7_0044, /* 1D19C..1D19F */ #define FriBidiPropertyBlockLevel6_1D1A0 0x4B8 FriBidiPropertyBlockLevel7_0044, /* 1D1A0..1D1A3 */ FriBidiPropertyBlockLevel7_0044, /* 1D1A4..1D1A7 */ FriBidiPropertyBlockLevel7_0960, /* 1D1A8..1D1AB */ FriBidiPropertyBlockLevel7_0488, /* 1D1AC..1D1AF */ FriBidiPropertyBlockLevel7_0044, /* 1D1B0..1D1B3 */ FriBidiPropertyBlockLevel7_0044, /* 1D1B4..1D1B7 */ FriBidiPropertyBlockLevel7_0044, /* 1D1B8..1D1BB */ FriBidiPropertyBlockLevel7_0044, /* 1D1BC..1D1BF */ #define FriBidiPropertyBlockLevel6_1D240 0x4C0 FriBidiPropertyBlockLevel7_1D240, /* 1D240..1D243 */ FriBidiPropertyBlockLevel7_1D244, /* 1D244..1D247 */ FriBidiPropertyBlockLevel7_0044, /* 1D248..1D24B */ FriBidiPropertyBlockLevel7_0044, /* 1D24C..1D24F */ FriBidiPropertyBlockLevel7_0044, /* 1D250..1D253 */ FriBidiPropertyBlockLevel7_0044, /* 1D254..1D257 */ FriBidiPropertyBlockLevel7_0044, /* 1D258..1D25B */ FriBidiPropertyBlockLevel7_0044, /* 1D25C..1D25F */ #define FriBidiPropertyBlockLevel6_1D7C0 0x4C8 FriBidiPropertyBlockLevel7_0044, /* 1D7C0..1D7C3 */ FriBidiPropertyBlockLevel7_0044, /* 1D7C4..1D7C7 */ FriBidiPropertyBlockLevel7_0044, /* 1D7C8..1D7CB */ FriBidiPropertyBlockLevel7_1D7CC, /* 1D7CC..1D7CF */ FriBidiPropertyBlockLevel7_0030, /* 1D7D0..1D7D3 */ FriBidiPropertyBlockLevel7_0030, /* 1D7D4..1D7D7 */ FriBidiPropertyBlockLevel7_0030, /* 1D7D8..1D7DB */ FriBidiPropertyBlockLevel7_0030, /* 1D7DC..1D7DF */ #define FriBidiPropertyBlockLevel6_1D7E0 0x4D0 FriBidiPropertyBlockLevel7_0030, /* 1D7E0..1D7E3 */ FriBidiPropertyBlockLevel7_0030, /* 1D7E4..1D7E7 */ FriBidiPropertyBlockLevel7_0030, /* 1D7E8..1D7EB */ FriBidiPropertyBlockLevel7_0030, /* 1D7EC..1D7EF */ FriBidiPropertyBlockLevel7_0030, /* 1D7F0..1D7F3 */ FriBidiPropertyBlockLevel7_0030, /* 1D7F4..1D7F7 */ FriBidiPropertyBlockLevel7_0030, /* 1D7F8..1D7FB */ FriBidiPropertyBlockLevel7_0030, /* 1D7FC..1D7FF */ #define FriBidiPropertyBlockLevel6_1FFE0 0x4D8 FriBidiPropertyBlockLevel7_0044, /* 1FFE0..1FFE3 */ FriBidiPropertyBlockLevel7_0044, /* 1FFE4..1FFE7 */ FriBidiPropertyBlockLevel7_0044, /* 1FFE8..1FFEB */ FriBidiPropertyBlockLevel7_0044, /* 1FFEC..1FFEF */ FriBidiPropertyBlockLevel7_0044, /* 1FFF0..1FFF3 */ FriBidiPropertyBlockLevel7_0044, /* 1FFF4..1FFF7 */ FriBidiPropertyBlockLevel7_0044, /* 1FFF8..1FFFB */ FriBidiPropertyBlockLevel7_1FFFC, /* 1FFFC..1FFFF */ #define FriBidiPropertyBlockLevel6_E0000 0x4E0 FriBidiPropertyBlockLevel7_0000, /* E0000..E0003 */ FriBidiPropertyBlockLevel7_0000, /* E0004..E0007 */ FriBidiPropertyBlockLevel7_0000, /* E0008..E000B */ FriBidiPropertyBlockLevel7_0000, /* E000C..E000F */ FriBidiPropertyBlockLevel7_0000, /* E0010..E0013 */ FriBidiPropertyBlockLevel7_0000, /* E0014..E0017 */ FriBidiPropertyBlockLevel7_0000, /* E0018..E001B */ FriBidiPropertyBlockLevel7_0000, /* E001C..E001F */ #define FriBidiPropertyBlockLevel6_E01E0 0x4E8 FriBidiPropertyBlockLevel7_0300, /* E01E0..E01E3 */ FriBidiPropertyBlockLevel7_0300, /* E01E4..E01E7 */ FriBidiPropertyBlockLevel7_0300, /* E01E8..E01EB */ FriBidiPropertyBlockLevel7_0300, /* E01EC..E01EF */ FriBidiPropertyBlockLevel7_0000, /* E01F0..E01F3 */ FriBidiPropertyBlockLevel7_0000, /* E01F4..E01F7 */ FriBidiPropertyBlockLevel7_0000, /* E01F8..E01FB */ FriBidiPropertyBlockLevel7_0000, /* E01FC..E01FF */ }; static const PACKTAB_UINT16 FriBidiPropertyBlockLevel5[2*126] = { #define FriBidiPropertyBlockLevel5_0000 0x0 FriBidiPropertyBlockLevel6_0000, /* 0000..001F */ FriBidiPropertyBlockLevel6_0020, /* 0020..003F */ #define FriBidiPropertyBlockLevel5_0040 0x2 FriBidiPropertyBlockLevel6_0040, /* 0040..005F */ FriBidiPropertyBlockLevel6_0060, /* 0060..007F */ #define FriBidiPropertyBlockLevel5_0080 0x4 FriBidiPropertyBlockLevel6_0080, /* 0080..009F */ FriBidiPropertyBlockLevel6_00A0, /* 00A0..00BF */ #define FriBidiPropertyBlockLevel5_00C0 0x6 FriBidiPropertyBlockLevel6_00C0, /* 00C0..00DF */ FriBidiPropertyBlockLevel6_00C0, /* 00E0..00FF */ #define FriBidiPropertyBlockLevel5_0100 0x8 FriBidiPropertyBlockLevel6_0100, /* 0100..011F */ FriBidiPropertyBlockLevel6_0100, /* 0120..013F */ #define FriBidiPropertyBlockLevel5_0280 0xA FriBidiPropertyBlockLevel6_0100, /* 0280..029F */ FriBidiPropertyBlockLevel6_02A0, /* 02A0..02BF */ #define FriBidiPropertyBlockLevel5_02C0 0xC FriBidiPropertyBlockLevel6_02C0, /* 02C0..02DF */ FriBidiPropertyBlockLevel6_02E0, /* 02E0..02FF */ #define FriBidiPropertyBlockLevel5_0300 0xE FriBidiPropertyBlockLevel6_0300, /* 0300..031F */ FriBidiPropertyBlockLevel6_0300, /* 0320..033F */ #define FriBidiPropertyBlockLevel5_0340 0x10 FriBidiPropertyBlockLevel6_0300, /* 0340..035F */ FriBidiPropertyBlockLevel6_0360, /* 0360..037F */ #define FriBidiPropertyBlockLevel5_0380 0x12 FriBidiPropertyBlockLevel6_0380, /* 0380..039F */ FriBidiPropertyBlockLevel6_0100, /* 03A0..03BF */ #define FriBidiPropertyBlockLevel5_03C0 0x14 FriBidiPropertyBlockLevel6_0100, /* 03C0..03DF */ FriBidiPropertyBlockLevel6_03E0, /* 03E0..03FF */ #define FriBidiPropertyBlockLevel5_0480 0x16 FriBidiPropertyBlockLevel6_0480, /* 0480..049F */ FriBidiPropertyBlockLevel6_0100, /* 04A0..04BF */ #define FriBidiPropertyBlockLevel5_0580 0x18 FriBidiPropertyBlockLevel6_0580, /* 0580..059F */ FriBidiPropertyBlockLevel6_05A0, /* 05A0..05BF */ #define FriBidiPropertyBlockLevel5_05C0 0x1A FriBidiPropertyBlockLevel6_05C0, /* 05C0..05DF */ FriBidiPropertyBlockLevel6_05E0, /* 05E0..05FF */ #define FriBidiPropertyBlockLevel5_0600 0x1C FriBidiPropertyBlockLevel6_0600, /* 0600..061F */ FriBidiPropertyBlockLevel6_0620, /* 0620..063F */ #define FriBidiPropertyBlockLevel5_0640 0x1E FriBidiPropertyBlockLevel6_0640, /* 0640..065F */ FriBidiPropertyBlockLevel6_0660, /* 0660..067F */ #define FriBidiPropertyBlockLevel5_0680 0x20 FriBidiPropertyBlockLevel6_0620, /* 0680..069F */ FriBidiPropertyBlockLevel6_0620, /* 06A0..06BF */ #define FriBidiPropertyBlockLevel5_06C0 0x22 FriBidiPropertyBlockLevel6_06C0, /* 06C0..06DF */ FriBidiPropertyBlockLevel6_06E0, /* 06E0..06FF */ #define FriBidiPropertyBlockLevel5_0700 0x24 FriBidiPropertyBlockLevel6_0700, /* 0700..071F */ FriBidiPropertyBlockLevel6_0720, /* 0720..073F */ #define FriBidiPropertyBlockLevel5_0740 0x26 FriBidiPropertyBlockLevel6_0740, /* 0740..075F */ FriBidiPropertyBlockLevel6_0620, /* 0760..077F */ #define FriBidiPropertyBlockLevel5_0780 0x28 FriBidiPropertyBlockLevel6_0620, /* 0780..079F */ FriBidiPropertyBlockLevel6_07A0, /* 07A0..07BF */ #define FriBidiPropertyBlockLevel5_07C0 0x2A FriBidiPropertyBlockLevel6_05E0, /* 07C0..07DF */ FriBidiPropertyBlockLevel6_05E0, /* 07E0..07FF */ #define FriBidiPropertyBlockLevel5_0900 0x2C FriBidiPropertyBlockLevel6_0900, /* 0900..091F */ FriBidiPropertyBlockLevel6_0920, /* 0920..093F */ #define FriBidiPropertyBlockLevel5_0940 0x2E FriBidiPropertyBlockLevel6_0940, /* 0940..095F */ FriBidiPropertyBlockLevel6_0960, /* 0960..097F */ #define FriBidiPropertyBlockLevel5_0980 0x30 FriBidiPropertyBlockLevel6_0980, /* 0980..099F */ FriBidiPropertyBlockLevel6_0920, /* 09A0..09BF */ #define FriBidiPropertyBlockLevel5_09C0 0x32 FriBidiPropertyBlockLevel6_09C0, /* 09C0..09DF */ FriBidiPropertyBlockLevel6_09E0, /* 09E0..09FF */ #define FriBidiPropertyBlockLevel5_0A40 0x34 FriBidiPropertyBlockLevel6_0A40, /* 0A40..0A5F */ FriBidiPropertyBlockLevel6_0A60, /* 0A60..0A7F */ #define FriBidiPropertyBlockLevel5_0AC0 0x36 FriBidiPropertyBlockLevel6_0AC0, /* 0AC0..0ADF */ FriBidiPropertyBlockLevel6_0AE0, /* 0AE0..0AFF */ #define FriBidiPropertyBlockLevel5_0B00 0x38 FriBidiPropertyBlockLevel6_0980, /* 0B00..0B1F */ FriBidiPropertyBlockLevel6_0B20, /* 0B20..0B3F */ #define FriBidiPropertyBlockLevel5_0B40 0x3A FriBidiPropertyBlockLevel6_0B40, /* 0B40..0B5F */ FriBidiPropertyBlockLevel6_0100, /* 0B60..0B7F */ #define FriBidiPropertyBlockLevel5_0B80 0x3C FriBidiPropertyBlockLevel6_0B80, /* 0B80..0B9F */ FriBidiPropertyBlockLevel6_0100, /* 0BA0..0BBF */ #define FriBidiPropertyBlockLevel5_0BC0 0x3E FriBidiPropertyBlockLevel6_0BC0, /* 0BC0..0BDF */ FriBidiPropertyBlockLevel6_0BE0, /* 0BE0..0BFF */ #define FriBidiPropertyBlockLevel5_0C00 0x40 FriBidiPropertyBlockLevel6_0100, /* 0C00..0C1F */ FriBidiPropertyBlockLevel6_0C20, /* 0C20..0C3F */ #define FriBidiPropertyBlockLevel5_0C40 0x42 FriBidiPropertyBlockLevel6_0C40, /* 0C40..0C5F */ FriBidiPropertyBlockLevel6_0100, /* 0C60..0C7F */ #define FriBidiPropertyBlockLevel5_0C80 0x44 FriBidiPropertyBlockLevel6_0100, /* 0C80..0C9F */ FriBidiPropertyBlockLevel6_0920, /* 0CA0..0CBF */ #define FriBidiPropertyBlockLevel5_0CC0 0x46 FriBidiPropertyBlockLevel6_0CC0, /* 0CC0..0CDF */ FriBidiPropertyBlockLevel6_0100, /* 0CE0..0CFF */ #define FriBidiPropertyBlockLevel5_0D40 0x48 FriBidiPropertyBlockLevel6_0D40, /* 0D40..0D5F */ FriBidiPropertyBlockLevel6_0100, /* 0D60..0D7F */ #define FriBidiPropertyBlockLevel5_0DC0 0x4A FriBidiPropertyBlockLevel6_0DC0, /* 0DC0..0DDF */ FriBidiPropertyBlockLevel6_0100, /* 0DE0..0DFF */ #define FriBidiPropertyBlockLevel5_0E00 0x4C FriBidiPropertyBlockLevel6_0100, /* 0E00..0E1F */ FriBidiPropertyBlockLevel6_0E20, /* 0E20..0E3F */ #define FriBidiPropertyBlockLevel5_0E40 0x4E FriBidiPropertyBlockLevel6_0E40, /* 0E40..0E5F */ FriBidiPropertyBlockLevel6_0100, /* 0E60..0E7F */ #define FriBidiPropertyBlockLevel5_0E80 0x50 FriBidiPropertyBlockLevel6_0100, /* 0E80..0E9F */ FriBidiPropertyBlockLevel6_0EA0, /* 0EA0..0EBF */ #define FriBidiPropertyBlockLevel5_0EC0 0x52 FriBidiPropertyBlockLevel6_0EC0, /* 0EC0..0EDF */ FriBidiPropertyBlockLevel6_0100, /* 0EE0..0EFF */ #define FriBidiPropertyBlockLevel5_0F00 0x54 FriBidiPropertyBlockLevel6_0F00, /* 0F00..0F1F */ FriBidiPropertyBlockLevel6_0F20, /* 0F20..0F3F */ #define FriBidiPropertyBlockLevel5_0F40 0x56 FriBidiPropertyBlockLevel6_0100, /* 0F40..0F5F */ FriBidiPropertyBlockLevel6_0F60, /* 0F60..0F7F */ #define FriBidiPropertyBlockLevel5_0F80 0x58 FriBidiPropertyBlockLevel6_0F80, /* 0F80..0F9F */ FriBidiPropertyBlockLevel6_0FA0, /* 0FA0..0FBF */ #define FriBidiPropertyBlockLevel5_0FC0 0x5A FriBidiPropertyBlockLevel6_0FC0, /* 0FC0..0FDF */ FriBidiPropertyBlockLevel6_0100, /* 0FE0..0FFF */ #define FriBidiPropertyBlockLevel5_1000 0x5C FriBidiPropertyBlockLevel6_0100, /* 1000..101F */ FriBidiPropertyBlockLevel6_1020, /* 1020..103F */ #define FriBidiPropertyBlockLevel5_1040 0x5E FriBidiPropertyBlockLevel6_0F00, /* 1040..105F */ FriBidiPropertyBlockLevel6_0100, /* 1060..107F */ #define FriBidiPropertyBlockLevel5_1340 0x60 FriBidiPropertyBlockLevel6_1340, /* 1340..135F */ FriBidiPropertyBlockLevel6_0100, /* 1360..137F */ #define FriBidiPropertyBlockLevel5_1380 0x62 FriBidiPropertyBlockLevel6_1380, /* 1380..139F */ FriBidiPropertyBlockLevel6_0100, /* 13A0..13BF */ #define FriBidiPropertyBlockLevel5_1680 0x64 FriBidiPropertyBlockLevel6_1680, /* 1680..169F */ FriBidiPropertyBlockLevel6_0100, /* 16A0..16BF */ #define FriBidiPropertyBlockLevel5_1700 0x66 FriBidiPropertyBlockLevel6_1700, /* 1700..171F */ FriBidiPropertyBlockLevel6_1700, /* 1720..173F */ #define FriBidiPropertyBlockLevel5_1740 0x68 FriBidiPropertyBlockLevel6_1740, /* 1740..175F */ FriBidiPropertyBlockLevel6_1740, /* 1760..177F */ #define FriBidiPropertyBlockLevel5_1780 0x6A FriBidiPropertyBlockLevel6_0100, /* 1780..179F */ FriBidiPropertyBlockLevel6_17A0, /* 17A0..17BF */ #define FriBidiPropertyBlockLevel5_17C0 0x6C FriBidiPropertyBlockLevel6_17C0, /* 17C0..17DF */ FriBidiPropertyBlockLevel6_1380, /* 17E0..17FF */ #define FriBidiPropertyBlockLevel5_1800 0x6E FriBidiPropertyBlockLevel6_1800, /* 1800..181F */ FriBidiPropertyBlockLevel6_0100, /* 1820..183F */ #define FriBidiPropertyBlockLevel5_1880 0x70 FriBidiPropertyBlockLevel6_0100, /* 1880..189F */ FriBidiPropertyBlockLevel6_18A0, /* 18A0..18BF */ #define FriBidiPropertyBlockLevel5_1900 0x72 FriBidiPropertyBlockLevel6_0100, /* 1900..191F */ FriBidiPropertyBlockLevel6_1920, /* 1920..193F */ #define FriBidiPropertyBlockLevel5_1940 0x74 FriBidiPropertyBlockLevel6_1940, /* 1940..195F */ FriBidiPropertyBlockLevel6_0100, /* 1960..197F */ #define FriBidiPropertyBlockLevel5_19C0 0x76 FriBidiPropertyBlockLevel6_19C0, /* 19C0..19DF */ FriBidiPropertyBlockLevel6_19E0, /* 19E0..19FF */ #define FriBidiPropertyBlockLevel5_1A00 0x78 FriBidiPropertyBlockLevel6_1A00, /* 1A00..1A1F */ FriBidiPropertyBlockLevel6_0100, /* 1A20..1A3F */ #define FriBidiPropertyBlockLevel5_1DC0 0x7A FriBidiPropertyBlockLevel6_1DC0, /* 1DC0..1DDF */ FriBidiPropertyBlockLevel6_0100, /* 1DE0..1DFF */ #define FriBidiPropertyBlockLevel5_1F80 0x7C FriBidiPropertyBlockLevel6_0100, /* 1F80..1F9F */ FriBidiPropertyBlockLevel6_1FA0, /* 1FA0..1FBF */ #define FriBidiPropertyBlockLevel5_1FC0 0x7E FriBidiPropertyBlockLevel6_1FC0, /* 1FC0..1FDF */ FriBidiPropertyBlockLevel6_1FE0, /* 1FE0..1FFF */ #define FriBidiPropertyBlockLevel5_2000 0x80 FriBidiPropertyBlockLevel6_2000, /* 2000..201F */ FriBidiPropertyBlockLevel6_2020, /* 2020..203F */ #define FriBidiPropertyBlockLevel5_2040 0x82 FriBidiPropertyBlockLevel6_2040, /* 2040..205F */ FriBidiPropertyBlockLevel6_2060, /* 2060..207F */ #define FriBidiPropertyBlockLevel5_2080 0x84 FriBidiPropertyBlockLevel6_2080, /* 2080..209F */ FriBidiPropertyBlockLevel6_20A0, /* 20A0..20BF */ #define FriBidiPropertyBlockLevel5_20C0 0x86 FriBidiPropertyBlockLevel6_20C0, /* 20C0..20DF */ FriBidiPropertyBlockLevel6_20E0, /* 20E0..20FF */ #define FriBidiPropertyBlockLevel5_2100 0x88 FriBidiPropertyBlockLevel6_2100, /* 2100..211F */ FriBidiPropertyBlockLevel6_2120, /* 2120..213F */ #define FriBidiPropertyBlockLevel5_2140 0x8A FriBidiPropertyBlockLevel6_2140, /* 2140..215F */ FriBidiPropertyBlockLevel6_0100, /* 2160..217F */ #define FriBidiPropertyBlockLevel5_2180 0x8C FriBidiPropertyBlockLevel6_2180, /* 2180..219F */ FriBidiPropertyBlockLevel6_19E0, /* 21A0..21BF */ #define FriBidiPropertyBlockLevel5_21C0 0x8E FriBidiPropertyBlockLevel6_19E0, /* 21C0..21DF */ FriBidiPropertyBlockLevel6_19E0, /* 21E0..21FF */ #define FriBidiPropertyBlockLevel5_2200 0x90 FriBidiPropertyBlockLevel6_2200, /* 2200..221F */ FriBidiPropertyBlockLevel6_19E0, /* 2220..223F */ #define FriBidiPropertyBlockLevel5_2300 0x92 FriBidiPropertyBlockLevel6_19E0, /* 2300..231F */ FriBidiPropertyBlockLevel6_2320, /* 2320..233F */ #define FriBidiPropertyBlockLevel5_2340 0x94 FriBidiPropertyBlockLevel6_0100, /* 2340..235F */ FriBidiPropertyBlockLevel6_2360, /* 2360..237F */ #define FriBidiPropertyBlockLevel5_2380 0x96 FriBidiPropertyBlockLevel6_2380, /* 2380..239F */ FriBidiPropertyBlockLevel6_19E0, /* 23A0..23BF */ #define FriBidiPropertyBlockLevel5_23C0 0x98 FriBidiPropertyBlockLevel6_23C0, /* 23C0..23DF */ FriBidiPropertyBlockLevel6_0100, /* 23E0..23FF */ #define FriBidiPropertyBlockLevel5_2400 0x9A FriBidiPropertyBlockLevel6_19E0, /* 2400..241F */ FriBidiPropertyBlockLevel6_2420, /* 2420..243F */ #define FriBidiPropertyBlockLevel5_2440 0x9C FriBidiPropertyBlockLevel6_2440, /* 2440..245F */ FriBidiPropertyBlockLevel6_19E0, /* 2460..247F */ #define FriBidiPropertyBlockLevel5_2480 0x9E FriBidiPropertyBlockLevel6_2480, /* 2480..249F */ FriBidiPropertyBlockLevel6_0100, /* 24A0..24BF */ #define FriBidiPropertyBlockLevel5_24C0 0xA0 FriBidiPropertyBlockLevel6_0100, /* 24C0..24DF */ FriBidiPropertyBlockLevel6_24E0, /* 24E0..24FF */ #define FriBidiPropertyBlockLevel5_2680 0xA2 FriBidiPropertyBlockLevel6_2680, /* 2680..269F */ FriBidiPropertyBlockLevel6_26A0, /* 26A0..26BF */ #define FriBidiPropertyBlockLevel5_2700 0xA4 FriBidiPropertyBlockLevel6_2700, /* 2700..271F */ FriBidiPropertyBlockLevel6_2720, /* 2720..273F */ #define FriBidiPropertyBlockLevel5_2740 0xA6 FriBidiPropertyBlockLevel6_2740, /* 2740..275F */ FriBidiPropertyBlockLevel6_2760, /* 2760..277F */ #define FriBidiPropertyBlockLevel5_2780 0xA8 FriBidiPropertyBlockLevel6_2780, /* 2780..279F */ FriBidiPropertyBlockLevel6_27A0, /* 27A0..27BF */ #define FriBidiPropertyBlockLevel5_27C0 0xAA FriBidiPropertyBlockLevel6_27C0, /* 27C0..27DF */ FriBidiPropertyBlockLevel6_27E0, /* 27E0..27FF */ #define FriBidiPropertyBlockLevel5_2B00 0xAC FriBidiPropertyBlockLevel6_2B00, /* 2B00..2B1F */ FriBidiPropertyBlockLevel6_0100, /* 2B20..2B3F */ #define FriBidiPropertyBlockLevel5_2CC0 0xAE FriBidiPropertyBlockLevel6_0100, /* 2CC0..2CDF */ FriBidiPropertyBlockLevel6_2CE0, /* 2CE0..2CFF */ #define FriBidiPropertyBlockLevel5_2E00 0xB0 FriBidiPropertyBlockLevel6_2E00, /* 2E00..2E1F */ FriBidiPropertyBlockLevel6_0100, /* 2E20..2E3F */ #define FriBidiPropertyBlockLevel5_2E80 0xB2 FriBidiPropertyBlockLevel6_2E80, /* 2E80..2E9F */ FriBidiPropertyBlockLevel6_19E0, /* 2EA0..2EBF */ #define FriBidiPropertyBlockLevel5_2EC0 0xB4 FriBidiPropertyBlockLevel6_19E0, /* 2EC0..2EDF */ FriBidiPropertyBlockLevel6_2B00, /* 2EE0..2EFF */ #define FriBidiPropertyBlockLevel5_2FC0 0xB6 FriBidiPropertyBlockLevel6_2320, /* 2FC0..2FDF */ FriBidiPropertyBlockLevel6_2FE0, /* 2FE0..2FFF */ #define FriBidiPropertyBlockLevel5_3000 0xB8 FriBidiPropertyBlockLevel6_3000, /* 3000..301F */ FriBidiPropertyBlockLevel6_3020, /* 3020..303F */ #define FriBidiPropertyBlockLevel5_3080 0xBA FriBidiPropertyBlockLevel6_3080, /* 3080..309F */ FriBidiPropertyBlockLevel6_30A0, /* 30A0..30BF */ #define FriBidiPropertyBlockLevel5_30C0 0xBC FriBidiPropertyBlockLevel6_0100, /* 30C0..30DF */ FriBidiPropertyBlockLevel6_30E0, /* 30E0..30FF */ #define FriBidiPropertyBlockLevel5_31C0 0xBE FriBidiPropertyBlockLevel6_31C0, /* 31C0..31DF */ FriBidiPropertyBlockLevel6_0100, /* 31E0..31FF */ #define FriBidiPropertyBlockLevel5_3200 0xC0 FriBidiPropertyBlockLevel6_3200, /* 3200..321F */ FriBidiPropertyBlockLevel6_0100, /* 3220..323F */ #define FriBidiPropertyBlockLevel5_3240 0xC2 FriBidiPropertyBlockLevel6_2180, /* 3240..325F */ FriBidiPropertyBlockLevel6_3260, /* 3260..327F */ #define FriBidiPropertyBlockLevel5_3280 0xC4 FriBidiPropertyBlockLevel6_0100, /* 3280..329F */ FriBidiPropertyBlockLevel6_32A0, /* 32A0..32BF */ #define FriBidiPropertyBlockLevel5_32C0 0xC6 FriBidiPropertyBlockLevel6_32C0, /* 32C0..32DF */ FriBidiPropertyBlockLevel6_0100, /* 32E0..32FF */ #define FriBidiPropertyBlockLevel5_3340 0xC8 FriBidiPropertyBlockLevel6_0100, /* 3340..335F */ FriBidiPropertyBlockLevel6_3360, /* 3360..337F */ #define FriBidiPropertyBlockLevel5_33C0 0xCA FriBidiPropertyBlockLevel6_19C0, /* 33C0..33DF */ FriBidiPropertyBlockLevel6_33E0, /* 33E0..33FF */ #define FriBidiPropertyBlockLevel5_A4C0 0xCC FriBidiPropertyBlockLevel6_2420, /* A4C0..A4DF */ FriBidiPropertyBlockLevel6_0100, /* A4E0..A4FF */ #define FriBidiPropertyBlockLevel5_A700 0xCE FriBidiPropertyBlockLevel6_A700, /* A700..A71F */ FriBidiPropertyBlockLevel6_0100, /* A720..A73F */ #define FriBidiPropertyBlockLevel5_A800 0xD0 FriBidiPropertyBlockLevel6_A800, /* A800..A81F */ FriBidiPropertyBlockLevel6_A820, /* A820..A83F */ #define FriBidiPropertyBlockLevel5_FB00 0xD2 FriBidiPropertyBlockLevel6_FB00, /* FB00..FB1F */ FriBidiPropertyBlockLevel6_FB20, /* FB20..FB3F */ #define FriBidiPropertyBlockLevel5_FB40 0xD4 FriBidiPropertyBlockLevel6_FB40, /* FB40..FB5F */ FriBidiPropertyBlockLevel6_0620, /* FB60..FB7F */ #define FriBidiPropertyBlockLevel5_FD00 0xD6 FriBidiPropertyBlockLevel6_0620, /* FD00..FD1F */ FriBidiPropertyBlockLevel6_FD20, /* FD20..FD3F */ #define FriBidiPropertyBlockLevel5_FDC0 0xD8 FriBidiPropertyBlockLevel6_FDC0, /* FDC0..FDDF */ FriBidiPropertyBlockLevel6_FDE0, /* FDE0..FDFF */ #define FriBidiPropertyBlockLevel5_FE00 0xDA FriBidiPropertyBlockLevel6_FE00, /* FE00..FE1F */ FriBidiPropertyBlockLevel6_FE20, /* FE20..FE3F */ #define FriBidiPropertyBlockLevel5_FE40 0xDC FriBidiPropertyBlockLevel6_FE40, /* FE40..FE5F */ FriBidiPropertyBlockLevel6_FE60, /* FE60..FE7F */ #define FriBidiPropertyBlockLevel5_FEC0 0xDE FriBidiPropertyBlockLevel6_0620, /* FEC0..FEDF */ FriBidiPropertyBlockLevel6_FEE0, /* FEE0..FEFF */ #define FriBidiPropertyBlockLevel5_FF00 0xE0 FriBidiPropertyBlockLevel6_FF00, /* FF00..FF1F */ FriBidiPropertyBlockLevel6_0040, /* FF20..FF3F */ #define FriBidiPropertyBlockLevel5_FF40 0xE2 FriBidiPropertyBlockLevel6_0040, /* FF40..FF5F */ FriBidiPropertyBlockLevel6_FF60, /* FF60..FF7F */ #define FriBidiPropertyBlockLevel5_FFC0 0xE4 FriBidiPropertyBlockLevel6_0100, /* FFC0..FFDF */ FriBidiPropertyBlockLevel6_FFE0, /* FFE0..FFFF */ #define FriBidiPropertyBlockLevel5_10100 0xE6 FriBidiPropertyBlockLevel6_10100, /* 10100..1011F */ FriBidiPropertyBlockLevel6_0100, /* 10120..1013F */ #define FriBidiPropertyBlockLevel5_10180 0xE8 FriBidiPropertyBlockLevel6_2440, /* 10180..1019F */ FriBidiPropertyBlockLevel6_0100, /* 101A0..101BF */ #define FriBidiPropertyBlockLevel5_103C0 0xEA FriBidiPropertyBlockLevel6_103C0, /* 103C0..103DF */ FriBidiPropertyBlockLevel6_0100, /* 103E0..103FF */ #define FriBidiPropertyBlockLevel5_10A00 0xEC FriBidiPropertyBlockLevel6_10A00, /* 10A00..10A1F */ FriBidiPropertyBlockLevel6_10A20, /* 10A20..10A3F */ #define FriBidiPropertyBlockLevel5_1D140 0xEE FriBidiPropertyBlockLevel6_0100, /* 1D140..1D15F */ FriBidiPropertyBlockLevel6_1D160, /* 1D160..1D17F */ #define FriBidiPropertyBlockLevel5_1D180 0xF0 FriBidiPropertyBlockLevel6_1D180, /* 1D180..1D19F */ FriBidiPropertyBlockLevel6_1D1A0, /* 1D1A0..1D1BF */ #define FriBidiPropertyBlockLevel5_1D240 0xF2 FriBidiPropertyBlockLevel6_1D240, /* 1D240..1D25F */ FriBidiPropertyBlockLevel6_0100, /* 1D260..1D27F */ #define FriBidiPropertyBlockLevel5_1D7C0 0xF4 FriBidiPropertyBlockLevel6_1D7C0, /* 1D7C0..1D7DF */ FriBidiPropertyBlockLevel6_1D7E0, /* 1D7E0..1D7FF */ #define FriBidiPropertyBlockLevel5_1FFC0 0xF6 FriBidiPropertyBlockLevel6_0100, /* 1FFC0..1FFDF */ FriBidiPropertyBlockLevel6_1FFE0, /* 1FFE0..1FFFF */ #define FriBidiPropertyBlockLevel5_E0000 0xF8 FriBidiPropertyBlockLevel6_E0000, /* E0000..E001F */ FriBidiPropertyBlockLevel6_E0000, /* E0020..E003F */ #define FriBidiPropertyBlockLevel5_E01C0 0xFA FriBidiPropertyBlockLevel6_0300, /* E01C0..E01DF */ FriBidiPropertyBlockLevel6_E01E0, /* E01E0..E01FF */ }; static const PACKTAB_UINT8 FriBidiPropertyBlockLevel4[4*60] = { #define FriBidiPropertyBlockLevel4_0000 0x0 FriBidiPropertyBlockLevel5_0000, /* 0000..003F */ FriBidiPropertyBlockLevel5_0040, /* 0040..007F */ FriBidiPropertyBlockLevel5_0080, /* 0080..00BF */ FriBidiPropertyBlockLevel5_00C0, /* 00C0..00FF */ #define FriBidiPropertyBlockLevel4_0100 0x4 FriBidiPropertyBlockLevel5_0100, /* 0100..013F */ FriBidiPropertyBlockLevel5_0100, /* 0140..017F */ FriBidiPropertyBlockLevel5_0100, /* 0180..01BF */ FriBidiPropertyBlockLevel5_0100, /* 01C0..01FF */ #define FriBidiPropertyBlockLevel4_0200 0x8 FriBidiPropertyBlockLevel5_0100, /* 0200..023F */ FriBidiPropertyBlockLevel5_0100, /* 0240..027F */ FriBidiPropertyBlockLevel5_0280, /* 0280..02BF */ FriBidiPropertyBlockLevel5_02C0, /* 02C0..02FF */ #define FriBidiPropertyBlockLevel4_0300 0xC FriBidiPropertyBlockLevel5_0300, /* 0300..033F */ FriBidiPropertyBlockLevel5_0340, /* 0340..037F */ FriBidiPropertyBlockLevel5_0380, /* 0380..03BF */ FriBidiPropertyBlockLevel5_03C0, /* 03C0..03FF */ #define FriBidiPropertyBlockLevel4_0400 0x10 FriBidiPropertyBlockLevel5_0100, /* 0400..043F */ FriBidiPropertyBlockLevel5_0100, /* 0440..047F */ FriBidiPropertyBlockLevel5_0480, /* 0480..04BF */ FriBidiPropertyBlockLevel5_0100, /* 04C0..04FF */ #define FriBidiPropertyBlockLevel4_0500 0x14 FriBidiPropertyBlockLevel5_0100, /* 0500..053F */ FriBidiPropertyBlockLevel5_0100, /* 0540..057F */ FriBidiPropertyBlockLevel5_0580, /* 0580..05BF */ FriBidiPropertyBlockLevel5_05C0, /* 05C0..05FF */ #define FriBidiPropertyBlockLevel4_0600 0x18 FriBidiPropertyBlockLevel5_0600, /* 0600..063F */ FriBidiPropertyBlockLevel5_0640, /* 0640..067F */ FriBidiPropertyBlockLevel5_0680, /* 0680..06BF */ FriBidiPropertyBlockLevel5_06C0, /* 06C0..06FF */ #define FriBidiPropertyBlockLevel4_0700 0x1C FriBidiPropertyBlockLevel5_0700, /* 0700..073F */ FriBidiPropertyBlockLevel5_0740, /* 0740..077F */ FriBidiPropertyBlockLevel5_0780, /* 0780..07BF */ FriBidiPropertyBlockLevel5_07C0, /* 07C0..07FF */ #define FriBidiPropertyBlockLevel4_0800 0x20 FriBidiPropertyBlockLevel5_07C0, /* 0800..083F */ FriBidiPropertyBlockLevel5_07C0, /* 0840..087F */ FriBidiPropertyBlockLevel5_07C0, /* 0880..08BF */ FriBidiPropertyBlockLevel5_07C0, /* 08C0..08FF */ #define FriBidiPropertyBlockLevel4_0900 0x24 FriBidiPropertyBlockLevel5_0900, /* 0900..093F */ FriBidiPropertyBlockLevel5_0940, /* 0940..097F */ FriBidiPropertyBlockLevel5_0980, /* 0980..09BF */ FriBidiPropertyBlockLevel5_09C0, /* 09C0..09FF */ #define FriBidiPropertyBlockLevel4_0A00 0x28 FriBidiPropertyBlockLevel5_0900, /* 0A00..0A3F */ FriBidiPropertyBlockLevel5_0A40, /* 0A40..0A7F */ FriBidiPropertyBlockLevel5_0900, /* 0A80..0ABF */ FriBidiPropertyBlockLevel5_0AC0, /* 0AC0..0AFF */ #define FriBidiPropertyBlockLevel4_0B00 0x2C FriBidiPropertyBlockLevel5_0B00, /* 0B00..0B3F */ FriBidiPropertyBlockLevel5_0B40, /* 0B40..0B7F */ FriBidiPropertyBlockLevel5_0B80, /* 0B80..0BBF */ FriBidiPropertyBlockLevel5_0BC0, /* 0BC0..0BFF */ #define FriBidiPropertyBlockLevel4_0C00 0x30 FriBidiPropertyBlockLevel5_0C00, /* 0C00..0C3F */ FriBidiPropertyBlockLevel5_0C40, /* 0C40..0C7F */ FriBidiPropertyBlockLevel5_0C80, /* 0C80..0CBF */ FriBidiPropertyBlockLevel5_0CC0, /* 0CC0..0CFF */ #define FriBidiPropertyBlockLevel4_0D00 0x34 FriBidiPropertyBlockLevel5_0100, /* 0D00..0D3F */ FriBidiPropertyBlockLevel5_0D40, /* 0D40..0D7F */ FriBidiPropertyBlockLevel5_0100, /* 0D80..0DBF */ FriBidiPropertyBlockLevel5_0DC0, /* 0DC0..0DFF */ #define FriBidiPropertyBlockLevel4_0E00 0x38 FriBidiPropertyBlockLevel5_0E00, /* 0E00..0E3F */ FriBidiPropertyBlockLevel5_0E40, /* 0E40..0E7F */ FriBidiPropertyBlockLevel5_0E80, /* 0E80..0EBF */ FriBidiPropertyBlockLevel5_0EC0, /* 0EC0..0EFF */ #define FriBidiPropertyBlockLevel4_0F00 0x3C FriBidiPropertyBlockLevel5_0F00, /* 0F00..0F3F */ FriBidiPropertyBlockLevel5_0F40, /* 0F40..0F7F */ FriBidiPropertyBlockLevel5_0F80, /* 0F80..0FBF */ FriBidiPropertyBlockLevel5_0FC0, /* 0FC0..0FFF */ #define FriBidiPropertyBlockLevel4_1000 0x40 FriBidiPropertyBlockLevel5_1000, /* 1000..103F */ FriBidiPropertyBlockLevel5_1040, /* 1040..107F */ FriBidiPropertyBlockLevel5_0100, /* 1080..10BF */ FriBidiPropertyBlockLevel5_0100, /* 10C0..10FF */ #define FriBidiPropertyBlockLevel4_1300 0x44 FriBidiPropertyBlockLevel5_0100, /* 1300..133F */ FriBidiPropertyBlockLevel5_1340, /* 1340..137F */ FriBidiPropertyBlockLevel5_1380, /* 1380..13BF */ FriBidiPropertyBlockLevel5_0100, /* 13C0..13FF */ #define FriBidiPropertyBlockLevel4_1600 0x48 FriBidiPropertyBlockLevel5_0100, /* 1600..163F */ FriBidiPropertyBlockLevel5_0100, /* 1640..167F */ FriBidiPropertyBlockLevel5_1680, /* 1680..16BF */ FriBidiPropertyBlockLevel5_0100, /* 16C0..16FF */ #define FriBidiPropertyBlockLevel4_1700 0x4C FriBidiPropertyBlockLevel5_1700, /* 1700..173F */ FriBidiPropertyBlockLevel5_1740, /* 1740..177F */ FriBidiPropertyBlockLevel5_1780, /* 1780..17BF */ FriBidiPropertyBlockLevel5_17C0, /* 17C0..17FF */ #define FriBidiPropertyBlockLevel4_1800 0x50 FriBidiPropertyBlockLevel5_1800, /* 1800..183F */ FriBidiPropertyBlockLevel5_0100, /* 1840..187F */ FriBidiPropertyBlockLevel5_1880, /* 1880..18BF */ FriBidiPropertyBlockLevel5_0100, /* 18C0..18FF */ #define FriBidiPropertyBlockLevel4_1900 0x54 FriBidiPropertyBlockLevel5_1900, /* 1900..193F */ FriBidiPropertyBlockLevel5_1940, /* 1940..197F */ FriBidiPropertyBlockLevel5_0100, /* 1980..19BF */ FriBidiPropertyBlockLevel5_19C0, /* 19C0..19FF */ #define FriBidiPropertyBlockLevel4_1A00 0x58 FriBidiPropertyBlockLevel5_1A00, /* 1A00..1A3F */ FriBidiPropertyBlockLevel5_0100, /* 1A40..1A7F */ FriBidiPropertyBlockLevel5_0100, /* 1A80..1ABF */ FriBidiPropertyBlockLevel5_0100, /* 1AC0..1AFF */ #define FriBidiPropertyBlockLevel4_1D00 0x5C FriBidiPropertyBlockLevel5_0100, /* 1D00..1D3F */ FriBidiPropertyBlockLevel5_0100, /* 1D40..1D7F */ FriBidiPropertyBlockLevel5_0100, /* 1D80..1DBF */ FriBidiPropertyBlockLevel5_1DC0, /* 1DC0..1DFF */ #define FriBidiPropertyBlockLevel4_1F00 0x60 FriBidiPropertyBlockLevel5_0100, /* 1F00..1F3F */ FriBidiPropertyBlockLevel5_0100, /* 1F40..1F7F */ FriBidiPropertyBlockLevel5_1F80, /* 1F80..1FBF */ FriBidiPropertyBlockLevel5_1FC0, /* 1FC0..1FFF */ #define FriBidiPropertyBlockLevel4_2000 0x64 FriBidiPropertyBlockLevel5_2000, /* 2000..203F */ FriBidiPropertyBlockLevel5_2040, /* 2040..207F */ FriBidiPropertyBlockLevel5_2080, /* 2080..20BF */ FriBidiPropertyBlockLevel5_20C0, /* 20C0..20FF */ #define FriBidiPropertyBlockLevel4_2100 0x68 FriBidiPropertyBlockLevel5_2100, /* 2100..213F */ FriBidiPropertyBlockLevel5_2140, /* 2140..217F */ FriBidiPropertyBlockLevel5_2180, /* 2180..21BF */ FriBidiPropertyBlockLevel5_21C0, /* 21C0..21FF */ #define FriBidiPropertyBlockLevel4_2200 0x6C FriBidiPropertyBlockLevel5_2200, /* 2200..223F */ FriBidiPropertyBlockLevel5_21C0, /* 2240..227F */ FriBidiPropertyBlockLevel5_21C0, /* 2280..22BF */ FriBidiPropertyBlockLevel5_21C0, /* 22C0..22FF */ #define FriBidiPropertyBlockLevel4_2300 0x70 FriBidiPropertyBlockLevel5_2300, /* 2300..233F */ FriBidiPropertyBlockLevel5_2340, /* 2340..237F */ FriBidiPropertyBlockLevel5_2380, /* 2380..23BF */ FriBidiPropertyBlockLevel5_23C0, /* 23C0..23FF */ #define FriBidiPropertyBlockLevel4_2400 0x74 FriBidiPropertyBlockLevel5_2400, /* 2400..243F */ FriBidiPropertyBlockLevel5_2440, /* 2440..247F */ FriBidiPropertyBlockLevel5_2480, /* 2480..24BF */ FriBidiPropertyBlockLevel5_24C0, /* 24C0..24FF */ #define FriBidiPropertyBlockLevel4_2500 0x78 FriBidiPropertyBlockLevel5_21C0, /* 2500..253F */ FriBidiPropertyBlockLevel5_21C0, /* 2540..257F */ FriBidiPropertyBlockLevel5_21C0, /* 2580..25BF */ FriBidiPropertyBlockLevel5_21C0, /* 25C0..25FF */ #define FriBidiPropertyBlockLevel4_2600 0x7C FriBidiPropertyBlockLevel5_21C0, /* 2600..263F */ FriBidiPropertyBlockLevel5_21C0, /* 2640..267F */ FriBidiPropertyBlockLevel5_2680, /* 2680..26BF */ FriBidiPropertyBlockLevel5_0100, /* 26C0..26FF */ #define FriBidiPropertyBlockLevel4_2700 0x80 FriBidiPropertyBlockLevel5_2700, /* 2700..273F */ FriBidiPropertyBlockLevel5_2740, /* 2740..277F */ FriBidiPropertyBlockLevel5_2780, /* 2780..27BF */ FriBidiPropertyBlockLevel5_27C0, /* 27C0..27FF */ #define FriBidiPropertyBlockLevel4_2B00 0x84 FriBidiPropertyBlockLevel5_2B00, /* 2B00..2B3F */ FriBidiPropertyBlockLevel5_0100, /* 2B40..2B7F */ FriBidiPropertyBlockLevel5_0100, /* 2B80..2BBF */ FriBidiPropertyBlockLevel5_0100, /* 2BC0..2BFF */ #define FriBidiPropertyBlockLevel4_2C00 0x88 FriBidiPropertyBlockLevel5_0100, /* 2C00..2C3F */ FriBidiPropertyBlockLevel5_0100, /* 2C40..2C7F */ FriBidiPropertyBlockLevel5_0100, /* 2C80..2CBF */ FriBidiPropertyBlockLevel5_2CC0, /* 2CC0..2CFF */ #define FriBidiPropertyBlockLevel4_2E00 0x8C FriBidiPropertyBlockLevel5_2E00, /* 2E00..2E3F */ FriBidiPropertyBlockLevel5_0100, /* 2E40..2E7F */ FriBidiPropertyBlockLevel5_2E80, /* 2E80..2EBF */ FriBidiPropertyBlockLevel5_2EC0, /* 2EC0..2EFF */ #define FriBidiPropertyBlockLevel4_2F00 0x90 FriBidiPropertyBlockLevel5_21C0, /* 2F00..2F3F */ FriBidiPropertyBlockLevel5_21C0, /* 2F40..2F7F */ FriBidiPropertyBlockLevel5_21C0, /* 2F80..2FBF */ FriBidiPropertyBlockLevel5_2FC0, /* 2FC0..2FFF */ #define FriBidiPropertyBlockLevel4_3000 0x94 FriBidiPropertyBlockLevel5_3000, /* 3000..303F */ FriBidiPropertyBlockLevel5_0100, /* 3040..307F */ FriBidiPropertyBlockLevel5_3080, /* 3080..30BF */ FriBidiPropertyBlockLevel5_30C0, /* 30C0..30FF */ #define FriBidiPropertyBlockLevel4_3100 0x98 FriBidiPropertyBlockLevel5_0100, /* 3100..313F */ FriBidiPropertyBlockLevel5_0100, /* 3140..317F */ FriBidiPropertyBlockLevel5_0100, /* 3180..31BF */ FriBidiPropertyBlockLevel5_31C0, /* 31C0..31FF */ #define FriBidiPropertyBlockLevel4_3200 0x9C FriBidiPropertyBlockLevel5_3200, /* 3200..323F */ FriBidiPropertyBlockLevel5_3240, /* 3240..327F */ FriBidiPropertyBlockLevel5_3280, /* 3280..32BF */ FriBidiPropertyBlockLevel5_32C0, /* 32C0..32FF */ #define FriBidiPropertyBlockLevel4_3300 0xA0 FriBidiPropertyBlockLevel5_0100, /* 3300..333F */ FriBidiPropertyBlockLevel5_3340, /* 3340..337F */ FriBidiPropertyBlockLevel5_0100, /* 3380..33BF */ FriBidiPropertyBlockLevel5_33C0, /* 33C0..33FF */ #define FriBidiPropertyBlockLevel4_4D00 0xA4 FriBidiPropertyBlockLevel5_0100, /* 4D00..4D3F */ FriBidiPropertyBlockLevel5_0100, /* 4D40..4D7F */ FriBidiPropertyBlockLevel5_0100, /* 4D80..4DBF */ FriBidiPropertyBlockLevel5_21C0, /* 4DC0..4DFF */ #define FriBidiPropertyBlockLevel4_A400 0xA8 FriBidiPropertyBlockLevel5_0100, /* A400..A43F */ FriBidiPropertyBlockLevel5_0100, /* A440..A47F */ FriBidiPropertyBlockLevel5_2180, /* A480..A4BF */ FriBidiPropertyBlockLevel5_A4C0, /* A4C0..A4FF */ #define FriBidiPropertyBlockLevel4_A700 0xAC FriBidiPropertyBlockLevel5_A700, /* A700..A73F */ FriBidiPropertyBlockLevel5_0100, /* A740..A77F */ FriBidiPropertyBlockLevel5_0100, /* A780..A7BF */ FriBidiPropertyBlockLevel5_0100, /* A7C0..A7FF */ #define FriBidiPropertyBlockLevel4_A800 0xB0 FriBidiPropertyBlockLevel5_A800, /* A800..A83F */ FriBidiPropertyBlockLevel5_0100, /* A840..A87F */ FriBidiPropertyBlockLevel5_0100, /* A880..A8BF */ FriBidiPropertyBlockLevel5_0100, /* A8C0..A8FF */ #define FriBidiPropertyBlockLevel4_FB00 0xB4 FriBidiPropertyBlockLevel5_FB00, /* FB00..FB3F */ FriBidiPropertyBlockLevel5_FB40, /* FB40..FB7F */ FriBidiPropertyBlockLevel5_0680, /* FB80..FBBF */ FriBidiPropertyBlockLevel5_0680, /* FBC0..FBFF */ #define FriBidiPropertyBlockLevel4_FC00 0xB8 FriBidiPropertyBlockLevel5_0680, /* FC00..FC3F */ FriBidiPropertyBlockLevel5_0680, /* FC40..FC7F */ FriBidiPropertyBlockLevel5_0680, /* FC80..FCBF */ FriBidiPropertyBlockLevel5_0680, /* FCC0..FCFF */ #define FriBidiPropertyBlockLevel4_FD00 0xBC FriBidiPropertyBlockLevel5_FD00, /* FD00..FD3F */ FriBidiPropertyBlockLevel5_0680, /* FD40..FD7F */ FriBidiPropertyBlockLevel5_0680, /* FD80..FDBF */ FriBidiPropertyBlockLevel5_FDC0, /* FDC0..FDFF */ #define FriBidiPropertyBlockLevel4_FE00 0xC0 FriBidiPropertyBlockLevel5_FE00, /* FE00..FE3F */ FriBidiPropertyBlockLevel5_FE40, /* FE40..FE7F */ FriBidiPropertyBlockLevel5_0680, /* FE80..FEBF */ FriBidiPropertyBlockLevel5_FEC0, /* FEC0..FEFF */ #define FriBidiPropertyBlockLevel4_FF00 0xC4 FriBidiPropertyBlockLevel5_FF00, /* FF00..FF3F */ FriBidiPropertyBlockLevel5_FF40, /* FF40..FF7F */ FriBidiPropertyBlockLevel5_0100, /* FF80..FFBF */ FriBidiPropertyBlockLevel5_FFC0, /* FFC0..FFFF */ #define FriBidiPropertyBlockLevel4_10100 0xC8 FriBidiPropertyBlockLevel5_10100, /* 10100..1013F */ FriBidiPropertyBlockLevel5_21C0, /* 10140..1017F */ FriBidiPropertyBlockLevel5_10180, /* 10180..101BF */ FriBidiPropertyBlockLevel5_0100, /* 101C0..101FF */ #define FriBidiPropertyBlockLevel4_10300 0xCC FriBidiPropertyBlockLevel5_0100, /* 10300..1033F */ FriBidiPropertyBlockLevel5_0100, /* 10340..1037F */ FriBidiPropertyBlockLevel5_0100, /* 10380..103BF */ FriBidiPropertyBlockLevel5_103C0, /* 103C0..103FF */ #define FriBidiPropertyBlockLevel4_10A00 0xD0 FriBidiPropertyBlockLevel5_10A00, /* 10A00..10A3F */ FriBidiPropertyBlockLevel5_07C0, /* 10A40..10A7F */ FriBidiPropertyBlockLevel5_07C0, /* 10A80..10ABF */ FriBidiPropertyBlockLevel5_07C0, /* 10AC0..10AFF */ #define FriBidiPropertyBlockLevel4_1D100 0xD4 FriBidiPropertyBlockLevel5_0100, /* 1D100..1D13F */ FriBidiPropertyBlockLevel5_1D140, /* 1D140..1D17F */ FriBidiPropertyBlockLevel5_1D180, /* 1D180..1D1BF */ FriBidiPropertyBlockLevel5_0100, /* 1D1C0..1D1FF */ #define FriBidiPropertyBlockLevel4_1D200 0xD8 FriBidiPropertyBlockLevel5_21C0, /* 1D200..1D23F */ FriBidiPropertyBlockLevel5_1D240, /* 1D240..1D27F */ FriBidiPropertyBlockLevel5_0100, /* 1D280..1D2BF */ FriBidiPropertyBlockLevel5_0100, /* 1D2C0..1D2FF */ #define FriBidiPropertyBlockLevel4_1D300 0xDC FriBidiPropertyBlockLevel5_21C0, /* 1D300..1D33F */ FriBidiPropertyBlockLevel5_A700, /* 1D340..1D37F */ FriBidiPropertyBlockLevel5_0100, /* 1D380..1D3BF */ FriBidiPropertyBlockLevel5_0100, /* 1D3C0..1D3FF */ #define FriBidiPropertyBlockLevel4_1D700 0xE0 FriBidiPropertyBlockLevel5_0100, /* 1D700..1D73F */ FriBidiPropertyBlockLevel5_0100, /* 1D740..1D77F */ FriBidiPropertyBlockLevel5_0100, /* 1D780..1D7BF */ FriBidiPropertyBlockLevel5_1D7C0, /* 1D7C0..1D7FF */ #define FriBidiPropertyBlockLevel4_1FF00 0xE4 FriBidiPropertyBlockLevel5_0100, /* 1FF00..1FF3F */ FriBidiPropertyBlockLevel5_0100, /* 1FF40..1FF7F */ FriBidiPropertyBlockLevel5_0100, /* 1FF80..1FFBF */ FriBidiPropertyBlockLevel5_1FFC0, /* 1FFC0..1FFFF */ #define FriBidiPropertyBlockLevel4_E0000 0xE8 FriBidiPropertyBlockLevel5_E0000, /* E0000..E003F */ FriBidiPropertyBlockLevel5_E0000, /* E0040..E007F */ FriBidiPropertyBlockLevel5_E0000, /* E0080..E00BF */ FriBidiPropertyBlockLevel5_E0000, /* E00C0..E00FF */ #define FriBidiPropertyBlockLevel4_E0100 0xEC FriBidiPropertyBlockLevel5_0300, /* E0100..E013F */ FriBidiPropertyBlockLevel5_0300, /* E0140..E017F */ FriBidiPropertyBlockLevel5_0300, /* E0180..E01BF */ FriBidiPropertyBlockLevel5_E01C0, /* E01C0..E01FF */ }; static const PACKTAB_UINT8 FriBidiPropertyBlockLevel3[8*18] = { #define FriBidiPropertyBlockLevel3_0000 0x0 FriBidiPropertyBlockLevel4_0000, /* 0000..00FF */ FriBidiPropertyBlockLevel4_0100, /* 0100..01FF */ FriBidiPropertyBlockLevel4_0200, /* 0200..02FF */ FriBidiPropertyBlockLevel4_0300, /* 0300..03FF */ FriBidiPropertyBlockLevel4_0400, /* 0400..04FF */ FriBidiPropertyBlockLevel4_0500, /* 0500..05FF */ FriBidiPropertyBlockLevel4_0600, /* 0600..06FF */ FriBidiPropertyBlockLevel4_0700, /* 0700..07FF */ #define FriBidiPropertyBlockLevel3_0800 0x8 FriBidiPropertyBlockLevel4_0800, /* 0800..08FF */ FriBidiPropertyBlockLevel4_0900, /* 0900..09FF */ FriBidiPropertyBlockLevel4_0A00, /* 0A00..0AFF */ FriBidiPropertyBlockLevel4_0B00, /* 0B00..0BFF */ FriBidiPropertyBlockLevel4_0C00, /* 0C00..0CFF */ FriBidiPropertyBlockLevel4_0D00, /* 0D00..0DFF */ FriBidiPropertyBlockLevel4_0E00, /* 0E00..0EFF */ FriBidiPropertyBlockLevel4_0F00, /* 0F00..0FFF */ #define FriBidiPropertyBlockLevel3_1000 0x10 FriBidiPropertyBlockLevel4_1000, /* 1000..10FF */ FriBidiPropertyBlockLevel4_0100, /* 1100..11FF */ FriBidiPropertyBlockLevel4_0100, /* 1200..12FF */ FriBidiPropertyBlockLevel4_1300, /* 1300..13FF */ FriBidiPropertyBlockLevel4_0100, /* 1400..14FF */ FriBidiPropertyBlockLevel4_0100, /* 1500..15FF */ FriBidiPropertyBlockLevel4_1600, /* 1600..16FF */ FriBidiPropertyBlockLevel4_1700, /* 1700..17FF */ #define FriBidiPropertyBlockLevel3_1800 0x18 FriBidiPropertyBlockLevel4_1800, /* 1800..18FF */ FriBidiPropertyBlockLevel4_1900, /* 1900..19FF */ FriBidiPropertyBlockLevel4_1A00, /* 1A00..1AFF */ FriBidiPropertyBlockLevel4_0100, /* 1B00..1BFF */ FriBidiPropertyBlockLevel4_0100, /* 1C00..1CFF */ FriBidiPropertyBlockLevel4_1D00, /* 1D00..1DFF */ FriBidiPropertyBlockLevel4_0100, /* 1E00..1EFF */ FriBidiPropertyBlockLevel4_1F00, /* 1F00..1FFF */ #define FriBidiPropertyBlockLevel3_2000 0x20 FriBidiPropertyBlockLevel4_2000, /* 2000..20FF */ FriBidiPropertyBlockLevel4_2100, /* 2100..21FF */ FriBidiPropertyBlockLevel4_2200, /* 2200..22FF */ FriBidiPropertyBlockLevel4_2300, /* 2300..23FF */ FriBidiPropertyBlockLevel4_2400, /* 2400..24FF */ FriBidiPropertyBlockLevel4_2500, /* 2500..25FF */ FriBidiPropertyBlockLevel4_2600, /* 2600..26FF */ FriBidiPropertyBlockLevel4_2700, /* 2700..27FF */ #define FriBidiPropertyBlockLevel3_2800 0x28 FriBidiPropertyBlockLevel4_0100, /* 2800..28FF */ FriBidiPropertyBlockLevel4_2500, /* 2900..29FF */ FriBidiPropertyBlockLevel4_2500, /* 2A00..2AFF */ FriBidiPropertyBlockLevel4_2B00, /* 2B00..2BFF */ FriBidiPropertyBlockLevel4_2C00, /* 2C00..2CFF */ FriBidiPropertyBlockLevel4_0100, /* 2D00..2DFF */ FriBidiPropertyBlockLevel4_2E00, /* 2E00..2EFF */ FriBidiPropertyBlockLevel4_2F00, /* 2F00..2FFF */ #define FriBidiPropertyBlockLevel3_3000 0x30 FriBidiPropertyBlockLevel4_3000, /* 3000..30FF */ FriBidiPropertyBlockLevel4_3100, /* 3100..31FF */ FriBidiPropertyBlockLevel4_3200, /* 3200..32FF */ FriBidiPropertyBlockLevel4_3300, /* 3300..33FF */ FriBidiPropertyBlockLevel4_0100, /* 3400..34FF */ FriBidiPropertyBlockLevel4_0100, /* 3500..35FF */ FriBidiPropertyBlockLevel4_0100, /* 3600..36FF */ FriBidiPropertyBlockLevel4_0100, /* 3700..37FF */ #define FriBidiPropertyBlockLevel3_3800 0x38 FriBidiPropertyBlockLevel4_0100, /* 3800..38FF */ FriBidiPropertyBlockLevel4_0100, /* 3900..39FF */ FriBidiPropertyBlockLevel4_0100, /* 3A00..3AFF */ FriBidiPropertyBlockLevel4_0100, /* 3B00..3BFF */ FriBidiPropertyBlockLevel4_0100, /* 3C00..3CFF */ FriBidiPropertyBlockLevel4_0100, /* 3D00..3DFF */ FriBidiPropertyBlockLevel4_0100, /* 3E00..3EFF */ FriBidiPropertyBlockLevel4_0100, /* 3F00..3FFF */ #define FriBidiPropertyBlockLevel3_4800 0x40 FriBidiPropertyBlockLevel4_0100, /* 4800..48FF */ FriBidiPropertyBlockLevel4_0100, /* 4900..49FF */ FriBidiPropertyBlockLevel4_0100, /* 4A00..4AFF */ FriBidiPropertyBlockLevel4_0100, /* 4B00..4BFF */ FriBidiPropertyBlockLevel4_0100, /* 4C00..4CFF */ FriBidiPropertyBlockLevel4_4D00, /* 4D00..4DFF */ FriBidiPropertyBlockLevel4_0100, /* 4E00..4EFF */ FriBidiPropertyBlockLevel4_0100, /* 4F00..4FFF */ #define FriBidiPropertyBlockLevel3_A000 0x48 FriBidiPropertyBlockLevel4_0100, /* A000..A0FF */ FriBidiPropertyBlockLevel4_0100, /* A100..A1FF */ FriBidiPropertyBlockLevel4_0100, /* A200..A2FF */ FriBidiPropertyBlockLevel4_0100, /* A300..A3FF */ FriBidiPropertyBlockLevel4_A400, /* A400..A4FF */ FriBidiPropertyBlockLevel4_0100, /* A500..A5FF */ FriBidiPropertyBlockLevel4_0100, /* A600..A6FF */ FriBidiPropertyBlockLevel4_A700, /* A700..A7FF */ #define FriBidiPropertyBlockLevel3_A800 0x50 FriBidiPropertyBlockLevel4_A800, /* A800..A8FF */ FriBidiPropertyBlockLevel4_0100, /* A900..A9FF */ FriBidiPropertyBlockLevel4_0100, /* AA00..AAFF */ FriBidiPropertyBlockLevel4_0100, /* AB00..ABFF */ FriBidiPropertyBlockLevel4_0100, /* AC00..ACFF */ FriBidiPropertyBlockLevel4_0100, /* AD00..ADFF */ FriBidiPropertyBlockLevel4_0100, /* AE00..AEFF */ FriBidiPropertyBlockLevel4_0100, /* AF00..AFFF */ #define FriBidiPropertyBlockLevel3_F800 0x58 FriBidiPropertyBlockLevel4_0100, /* F800..F8FF */ FriBidiPropertyBlockLevel4_0100, /* F900..F9FF */ FriBidiPropertyBlockLevel4_0100, /* FA00..FAFF */ FriBidiPropertyBlockLevel4_FB00, /* FB00..FBFF */ FriBidiPropertyBlockLevel4_FC00, /* FC00..FCFF */ FriBidiPropertyBlockLevel4_FD00, /* FD00..FDFF */ FriBidiPropertyBlockLevel4_FE00, /* FE00..FEFF */ FriBidiPropertyBlockLevel4_FF00, /* FF00..FFFF */ #define FriBidiPropertyBlockLevel3_10000 0x60 FriBidiPropertyBlockLevel4_0100, /* 10000..100FF */ FriBidiPropertyBlockLevel4_10100, /* 10100..101FF */ FriBidiPropertyBlockLevel4_0100, /* 10200..102FF */ FriBidiPropertyBlockLevel4_10300, /* 10300..103FF */ FriBidiPropertyBlockLevel4_0100, /* 10400..104FF */ FriBidiPropertyBlockLevel4_0100, /* 10500..105FF */ FriBidiPropertyBlockLevel4_0100, /* 10600..106FF */ FriBidiPropertyBlockLevel4_0100, /* 10700..107FF */ #define FriBidiPropertyBlockLevel3_10800 0x68 FriBidiPropertyBlockLevel4_0800, /* 10800..108FF */ FriBidiPropertyBlockLevel4_0800, /* 10900..109FF */ FriBidiPropertyBlockLevel4_10A00, /* 10A00..10AFF */ FriBidiPropertyBlockLevel4_0800, /* 10B00..10BFF */ FriBidiPropertyBlockLevel4_0800, /* 10C00..10CFF */ FriBidiPropertyBlockLevel4_0800, /* 10D00..10DFF */ FriBidiPropertyBlockLevel4_0800, /* 10E00..10EFF */ FriBidiPropertyBlockLevel4_0800, /* 10F00..10FFF */ #define FriBidiPropertyBlockLevel3_1D000 0x70 FriBidiPropertyBlockLevel4_0100, /* 1D000..1D0FF */ FriBidiPropertyBlockLevel4_1D100, /* 1D100..1D1FF */ FriBidiPropertyBlockLevel4_1D200, /* 1D200..1D2FF */ FriBidiPropertyBlockLevel4_1D300, /* 1D300..1D3FF */ FriBidiPropertyBlockLevel4_0100, /* 1D400..1D4FF */ FriBidiPropertyBlockLevel4_0100, /* 1D500..1D5FF */ FriBidiPropertyBlockLevel4_0100, /* 1D600..1D6FF */ FriBidiPropertyBlockLevel4_1D700, /* 1D700..1D7FF */ #define FriBidiPropertyBlockLevel3_1F800 0x78 FriBidiPropertyBlockLevel4_0100, /* 1F800..1F8FF */ FriBidiPropertyBlockLevel4_0100, /* 1F900..1F9FF */ FriBidiPropertyBlockLevel4_0100, /* 1FA00..1FAFF */ FriBidiPropertyBlockLevel4_0100, /* 1FB00..1FBFF */ FriBidiPropertyBlockLevel4_0100, /* 1FC00..1FCFF */ FriBidiPropertyBlockLevel4_0100, /* 1FD00..1FDFF */ FriBidiPropertyBlockLevel4_0100, /* 1FE00..1FEFF */ FriBidiPropertyBlockLevel4_1FF00, /* 1FF00..1FFFF */ #define FriBidiPropertyBlockLevel3_E0000 0x80 FriBidiPropertyBlockLevel4_E0000, /* E0000..E00FF */ FriBidiPropertyBlockLevel4_E0100, /* E0100..E01FF */ FriBidiPropertyBlockLevel4_E0000, /* E0200..E02FF */ FriBidiPropertyBlockLevel4_E0000, /* E0300..E03FF */ FriBidiPropertyBlockLevel4_E0000, /* E0400..E04FF */ FriBidiPropertyBlockLevel4_E0000, /* E0500..E05FF */ FriBidiPropertyBlockLevel4_E0000, /* E0600..E06FF */ FriBidiPropertyBlockLevel4_E0000, /* E0700..E07FF */ #define FriBidiPropertyBlockLevel3_E0800 0x88 FriBidiPropertyBlockLevel4_E0000, /* E0800..E08FF */ FriBidiPropertyBlockLevel4_E0000, /* E0900..E09FF */ FriBidiPropertyBlockLevel4_E0000, /* E0A00..E0AFF */ FriBidiPropertyBlockLevel4_E0000, /* E0B00..E0BFF */ FriBidiPropertyBlockLevel4_E0000, /* E0C00..E0CFF */ FriBidiPropertyBlockLevel4_E0000, /* E0D00..E0DFF */ FriBidiPropertyBlockLevel4_E0000, /* E0E00..E0EFF */ FriBidiPropertyBlockLevel4_E0000, /* E0F00..E0FFF */ }; static const PACKTAB_UINT8 FriBidiPropertyBlockLevel2[4*10] = { #define FriBidiPropertyBlockLevel2_0000 0x0 FriBidiPropertyBlockLevel3_0000, /* 0000..07FF */ FriBidiPropertyBlockLevel3_0800, /* 0800..0FFF */ FriBidiPropertyBlockLevel3_1000, /* 1000..17FF */ FriBidiPropertyBlockLevel3_1800, /* 1800..1FFF */ #define FriBidiPropertyBlockLevel2_2000 0x4 FriBidiPropertyBlockLevel3_2000, /* 2000..27FF */ FriBidiPropertyBlockLevel3_2800, /* 2800..2FFF */ FriBidiPropertyBlockLevel3_3000, /* 3000..37FF */ FriBidiPropertyBlockLevel3_3800, /* 3800..3FFF */ #define FriBidiPropertyBlockLevel2_4000 0x8 FriBidiPropertyBlockLevel3_3800, /* 4000..47FF */ FriBidiPropertyBlockLevel3_4800, /* 4800..4FFF */ FriBidiPropertyBlockLevel3_3800, /* 5000..57FF */ FriBidiPropertyBlockLevel3_3800, /* 5800..5FFF */ #define FriBidiPropertyBlockLevel2_6000 0xC FriBidiPropertyBlockLevel3_3800, /* 6000..67FF */ FriBidiPropertyBlockLevel3_3800, /* 6800..6FFF */ FriBidiPropertyBlockLevel3_3800, /* 7000..77FF */ FriBidiPropertyBlockLevel3_3800, /* 7800..7FFF */ #define FriBidiPropertyBlockLevel2_A000 0x10 FriBidiPropertyBlockLevel3_A000, /* A000..A7FF */ FriBidiPropertyBlockLevel3_A800, /* A800..AFFF */ FriBidiPropertyBlockLevel3_3800, /* B000..B7FF */ FriBidiPropertyBlockLevel3_3800, /* B800..BFFF */ #define FriBidiPropertyBlockLevel2_E000 0x14 FriBidiPropertyBlockLevel3_3800, /* E000..E7FF */ FriBidiPropertyBlockLevel3_3800, /* E800..EFFF */ FriBidiPropertyBlockLevel3_3800, /* F000..F7FF */ FriBidiPropertyBlockLevel3_F800, /* F800..FFFF */ #define FriBidiPropertyBlockLevel2_10000 0x18 FriBidiPropertyBlockLevel3_10000, /* 10000..107FF */ FriBidiPropertyBlockLevel3_10800, /* 10800..10FFF */ FriBidiPropertyBlockLevel3_3800, /* 11000..117FF */ FriBidiPropertyBlockLevel3_3800, /* 11800..11FFF */ #define FriBidiPropertyBlockLevel2_1C000 0x1C FriBidiPropertyBlockLevel3_3800, /* 1C000..1C7FF */ FriBidiPropertyBlockLevel3_3800, /* 1C800..1CFFF */ FriBidiPropertyBlockLevel3_1D000, /* 1D000..1D7FF */ FriBidiPropertyBlockLevel3_3800, /* 1D800..1DFFF */ #define FriBidiPropertyBlockLevel2_1E000 0x20 FriBidiPropertyBlockLevel3_3800, /* 1E000..1E7FF */ FriBidiPropertyBlockLevel3_3800, /* 1E800..1EFFF */ FriBidiPropertyBlockLevel3_3800, /* 1F000..1F7FF */ FriBidiPropertyBlockLevel3_1F800, /* 1F800..1FFFF */ #define FriBidiPropertyBlockLevel2_E0000 0x24 FriBidiPropertyBlockLevel3_E0000, /* E0000..E07FF */ FriBidiPropertyBlockLevel3_E0800, /* E0800..E0FFF */ FriBidiPropertyBlockLevel3_3800, /* E1000..E17FF */ FriBidiPropertyBlockLevel3_3800, /* E1800..E1FFF */ }; static const PACKTAB_UINT8 FriBidiPropertyBlockLevel1[8*4] = { #define FriBidiPropertyBlockLevel1_0000 0x0 FriBidiPropertyBlockLevel2_0000, /* 0000..1FFF */ FriBidiPropertyBlockLevel2_2000, /* 2000..3FFF */ FriBidiPropertyBlockLevel2_4000, /* 4000..5FFF */ FriBidiPropertyBlockLevel2_6000, /* 6000..7FFF */ FriBidiPropertyBlockLevel2_6000, /* 8000..9FFF */ FriBidiPropertyBlockLevel2_A000, /* A000..BFFF */ FriBidiPropertyBlockLevel2_6000, /* C000..DFFF */ FriBidiPropertyBlockLevel2_E000, /* E000..FFFF */ #define FriBidiPropertyBlockLevel1_10000 0x8 FriBidiPropertyBlockLevel2_10000, /* 10000..11FFF */ FriBidiPropertyBlockLevel2_6000, /* 12000..13FFF */ FriBidiPropertyBlockLevel2_6000, /* 14000..15FFF */ FriBidiPropertyBlockLevel2_6000, /* 16000..17FFF */ FriBidiPropertyBlockLevel2_6000, /* 18000..19FFF */ FriBidiPropertyBlockLevel2_6000, /* 1A000..1BFFF */ FriBidiPropertyBlockLevel2_1C000, /* 1C000..1DFFF */ FriBidiPropertyBlockLevel2_1E000, /* 1E000..1FFFF */ #define FriBidiPropertyBlockLevel1_20000 0x10 FriBidiPropertyBlockLevel2_6000, /* 20000..21FFF */ FriBidiPropertyBlockLevel2_6000, /* 22000..23FFF */ FriBidiPropertyBlockLevel2_6000, /* 24000..25FFF */ FriBidiPropertyBlockLevel2_6000, /* 26000..27FFF */ FriBidiPropertyBlockLevel2_6000, /* 28000..29FFF */ FriBidiPropertyBlockLevel2_6000, /* 2A000..2BFFF */ FriBidiPropertyBlockLevel2_6000, /* 2C000..2DFFF */ FriBidiPropertyBlockLevel2_1E000, /* 2E000..2FFFF */ #define FriBidiPropertyBlockLevel1_E0000 0x18 FriBidiPropertyBlockLevel2_E0000, /* E0000..E1FFF */ FriBidiPropertyBlockLevel2_6000, /* E2000..E3FFF */ FriBidiPropertyBlockLevel2_6000, /* E4000..E5FFF */ FriBidiPropertyBlockLevel2_6000, /* E6000..E7FFF */ FriBidiPropertyBlockLevel2_6000, /* E8000..E9FFF */ FriBidiPropertyBlockLevel2_6000, /* EA000..EBFFF */ FriBidiPropertyBlockLevel2_6000, /* EC000..EDFFF */ FriBidiPropertyBlockLevel2_1E000, /* EE000..EFFFF */ }; static const PACKTAB_UINT8 FriBidiPropertyBlockLevel0[17*1] = { #define FriBidiPropertyBlockLevel0_0000 0x0 FriBidiPropertyBlockLevel1_0000, /* 0000..FFFF */ FriBidiPropertyBlockLevel1_10000, /* 10000..1FFFF */ FriBidiPropertyBlockLevel1_20000, /* 20000..2FFFF */ FriBidiPropertyBlockLevel1_20000, /* 30000..3FFFF */ FriBidiPropertyBlockLevel1_20000, /* 40000..4FFFF */ FriBidiPropertyBlockLevel1_20000, /* 50000..5FFFF */ FriBidiPropertyBlockLevel1_20000, /* 60000..6FFFF */ FriBidiPropertyBlockLevel1_20000, /* 70000..7FFFF */ FriBidiPropertyBlockLevel1_20000, /* 80000..8FFFF */ FriBidiPropertyBlockLevel1_20000, /* 90000..9FFFF */ FriBidiPropertyBlockLevel1_20000, /* A0000..AFFFF */ FriBidiPropertyBlockLevel1_20000, /* B0000..BFFFF */ FriBidiPropertyBlockLevel1_20000, /* C0000..CFFFF */ FriBidiPropertyBlockLevel1_20000, /* D0000..DFFFF */ FriBidiPropertyBlockLevel1_E0000, /* E0000..EFFFF */ FriBidiPropertyBlockLevel1_20000, /* F0000..FFFFF */ FriBidiPropertyBlockLevel1_20000, /* 100000..10FFFF */ }; /* *INDENT-ON* */ #define FRIBIDI_GET_TYPE(x) \ FriBidiPropertyBlockLevel8[(x)%2 + \ FriBidiPropertyBlockLevel7[(x)/2%2 + \ FriBidiPropertyBlockLevel6[(x)/4%8 + \ FriBidiPropertyBlockLevel5[(x)/32%2 + \ FriBidiPropertyBlockLevel4[(x)/64%4 + \ FriBidiPropertyBlockLevel3[(x)/256%8 + \ FriBidiPropertyBlockLevel2[(x)/2048%4 + \ FriBidiPropertyBlockLevel1[(x)/8192%8 + \ FriBidiPropertyBlockLevel0[(x)/65536]]]]]]]]] #undef WS #undef SS #undef RLO #undef RLE #undef PDF #undef NSM #undef LRO #undef LRE #undef ET #undef ES #undef EN #undef CS #undef BS #undef AN #undef BN #undef ON #undef AL #undef RTL #undef LTR /*====================================================================== * fribidi_get_type_internal() returns the bidi type of a character. *----------------------------------------------------------------------*/ FriBidiCharType fribidi_get_type_internal (FriBidiChar uch) { if (uch < 0x110000) return fribidi_prop_to_type[(unsigned char)FRIBIDI_GET_TYPE (uch)]; else return FRIBIDI_TYPE_LTR; /* Non-Unicode chars */ } #endif /* FRIBIDI_TAB_CHAR_TYPE_9_I */ quesoglc-0.7.2/src/fribidi/fribidi.h0000644000175000017500000000451310764574550014263 00000000000000/* FriBidi - Library of BiDi algorithm * Copyright (C) 1999,2000 Dov Grobgeld, and * Copyright (C) 2001,2002 Behdad Esfahbod. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library, in a file named COPYING; if not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA * * For licensing issues, contact and * . */ #ifndef FRIBIDI_H #define FRIBIDI_H #ifndef NULL #define NULL 0 #endif #ifdef HAVE_CONFIG_H #include "qglc_config.h" #endif #include "fribidi_types.h" #ifdef __cplusplus extern "C" { #endif #define FRIBIDI_TRUE 1 #define FRIBIDI_FALSE 0 fribidi_boolean fribidi_log2vis ( /* input */ FriBidiChar *str, FriBidiStrIndex len, FriBidiCharType *pbase_dirs, /* output */ FriBidiChar *visual_str, FriBidiStrIndex *position_L_to_V_list, FriBidiStrIndex *position_V_to_L_list, FriBidiLevel *embedding_level_list); /*====================================================================== * fribidi_get_type() returns bidi type of a character. *----------------------------------------------------------------------*/ FriBidiCharType fribidi_get_type (FriBidiChar uch); /*====================================================================== * fribidi_get_mirror_char() returns the mirrored character, if input * character has a mirror, or the input itself. * if mirrored_ch is NULL, just returns if character has a mirror or not. *----------------------------------------------------------------------*/ fribidi_boolean fribidi_get_mirror_char ( /* Input */ FriBidiChar ch, /* Output */ FriBidiChar *mirrored_ch); #ifdef __cplusplus } #endif #endif /* FRIBIDI_H */ quesoglc-0.7.2/src/fribidi/fribidi_tab_mirroring.i0000644000175000017500000001675710764574550017217 00000000000000/* This file was automatically created from BidiMirroring.txt, version 4.1.0 by fribidi_create_mirroring */ #ifndef FRIBIDI_TAB_MIRRORING_I #define FRIBIDI_TAB_MIRRORING_I #include "fribidi.h" /* Mirrored characters include all the characters in the Unicode list that have been declared as being mirrored and that have a mirrored equivalent. There are lots of characters that are designed as being mirrored but do not have any mirrored glyph, e.g. the sign for there exist. Are these used in Arabic? That is are all the mathematical signs that are assigned to be mirrorable actually mirrored in Arabic? If that is the case, we'll change the below code to include also characters that mirror to themself. It will then be the responsibility of the display engine to actually mirror these. */ /* *INDENT-OFF* */ static const struct { FriBidiChar ch, mirrored_ch; } FriBidiMirroredChars[] = { {0x0028, 0x0029}, {0x0029, 0x0028}, {0x003C, 0x003E}, {0x003E, 0x003C}, {0x005B, 0x005D}, {0x005D, 0x005B}, {0x007B, 0x007D}, {0x007D, 0x007B}, {0x00AB, 0x00BB}, {0x00BB, 0x00AB}, {0x2039, 0x203A}, {0x203A, 0x2039}, {0x2045, 0x2046}, {0x2046, 0x2045}, {0x207D, 0x207E}, {0x207E, 0x207D}, {0x208D, 0x208E}, {0x208E, 0x208D}, {0x2208, 0x220B}, {0x2209, 0x220C}, {0x220A, 0x220D}, {0x220B, 0x2208}, {0x220C, 0x2209}, {0x220D, 0x220A}, {0x2215, 0x29F5}, {0x223C, 0x223D}, {0x223D, 0x223C}, {0x2243, 0x22CD}, {0x2252, 0x2253}, {0x2253, 0x2252}, {0x2254, 0x2255}, {0x2255, 0x2254}, {0x2264, 0x2265}, {0x2265, 0x2264}, {0x2266, 0x2267}, {0x2267, 0x2266}, {0x2268, 0x2269}, {0x2269, 0x2268}, {0x226A, 0x226B}, {0x226B, 0x226A}, {0x226E, 0x226F}, {0x226F, 0x226E}, {0x2270, 0x2271}, {0x2271, 0x2270}, {0x2272, 0x2273}, {0x2273, 0x2272}, {0x2274, 0x2275}, {0x2275, 0x2274}, {0x2276, 0x2277}, {0x2277, 0x2276}, {0x2278, 0x2279}, {0x2279, 0x2278}, {0x227A, 0x227B}, {0x227B, 0x227A}, {0x227C, 0x227D}, {0x227D, 0x227C}, {0x227E, 0x227F}, {0x227F, 0x227E}, {0x2280, 0x2281}, {0x2281, 0x2280}, {0x2282, 0x2283}, {0x2283, 0x2282}, {0x2284, 0x2285}, {0x2285, 0x2284}, {0x2286, 0x2287}, {0x2287, 0x2286}, {0x2288, 0x2289}, {0x2289, 0x2288}, {0x228A, 0x228B}, {0x228B, 0x228A}, {0x228F, 0x2290}, {0x2290, 0x228F}, {0x2291, 0x2292}, {0x2292, 0x2291}, {0x2298, 0x29B8}, {0x22A2, 0x22A3}, {0x22A3, 0x22A2}, {0x22A6, 0x2ADE}, {0x22A8, 0x2AE4}, {0x22A9, 0x2AE3}, {0x22AB, 0x2AE5}, {0x22B0, 0x22B1}, {0x22B1, 0x22B0}, {0x22B2, 0x22B3}, {0x22B3, 0x22B2}, {0x22B4, 0x22B5}, {0x22B5, 0x22B4}, {0x22B6, 0x22B7}, {0x22B7, 0x22B6}, {0x22C9, 0x22CA}, {0x22CA, 0x22C9}, {0x22CB, 0x22CC}, {0x22CC, 0x22CB}, {0x22CD, 0x2243}, {0x22D0, 0x22D1}, {0x22D1, 0x22D0}, {0x22D6, 0x22D7}, {0x22D7, 0x22D6}, {0x22D8, 0x22D9}, {0x22D9, 0x22D8}, {0x22DA, 0x22DB}, {0x22DB, 0x22DA}, {0x22DC, 0x22DD}, {0x22DD, 0x22DC}, {0x22DE, 0x22DF}, {0x22DF, 0x22DE}, {0x22E0, 0x22E1}, {0x22E1, 0x22E0}, {0x22E2, 0x22E3}, {0x22E3, 0x22E2}, {0x22E4, 0x22E5}, {0x22E5, 0x22E4}, {0x22E6, 0x22E7}, {0x22E7, 0x22E6}, {0x22E8, 0x22E9}, {0x22E9, 0x22E8}, {0x22EA, 0x22EB}, {0x22EB, 0x22EA}, {0x22EC, 0x22ED}, {0x22ED, 0x22EC}, {0x22F0, 0x22F1}, {0x22F1, 0x22F0}, {0x22F2, 0x22FA}, {0x22F3, 0x22FB}, {0x22F4, 0x22FC}, {0x22F6, 0x22FD}, {0x22F7, 0x22FE}, {0x22FA, 0x22F2}, {0x22FB, 0x22F3}, {0x22FC, 0x22F4}, {0x22FD, 0x22F6}, {0x22FE, 0x22F7}, {0x2308, 0x2309}, {0x2309, 0x2308}, {0x230A, 0x230B}, {0x230B, 0x230A}, {0x2329, 0x232A}, {0x232A, 0x2329}, {0x2768, 0x2769}, {0x2769, 0x2768}, {0x276A, 0x276B}, {0x276B, 0x276A}, {0x276C, 0x276D}, {0x276D, 0x276C}, {0x276E, 0x276F}, {0x276F, 0x276E}, {0x2770, 0x2771}, {0x2771, 0x2770}, {0x2772, 0x2773}, {0x2773, 0x2772}, {0x2774, 0x2775}, {0x2775, 0x2774}, {0x27C3, 0x27C4}, {0x27C4, 0x27C3}, {0x27C5, 0x27C6}, {0x27C6, 0x27C5}, {0x27D5, 0x27D6}, {0x27D6, 0x27D5}, {0x27DD, 0x27DE}, {0x27DE, 0x27DD}, {0x27E2, 0x27E3}, {0x27E3, 0x27E2}, {0x27E4, 0x27E5}, {0x27E5, 0x27E4}, {0x27E6, 0x27E7}, {0x27E7, 0x27E6}, {0x27E8, 0x27E9}, {0x27E9, 0x27E8}, {0x27EA, 0x27EB}, {0x27EB, 0x27EA}, {0x2983, 0x2984}, {0x2984, 0x2983}, {0x2985, 0x2986}, {0x2986, 0x2985}, {0x2987, 0x2988}, {0x2988, 0x2987}, {0x2989, 0x298A}, {0x298A, 0x2989}, {0x298B, 0x298C}, {0x298C, 0x298B}, {0x298D, 0x2990}, {0x298E, 0x298F}, {0x298F, 0x298E}, {0x2990, 0x298D}, {0x2991, 0x2992}, {0x2992, 0x2991}, {0x2993, 0x2994}, {0x2994, 0x2993}, {0x2995, 0x2996}, {0x2996, 0x2995}, {0x2997, 0x2998}, {0x2998, 0x2997}, {0x29B8, 0x2298}, {0x29C0, 0x29C1}, {0x29C1, 0x29C0}, {0x29C4, 0x29C5}, {0x29C5, 0x29C4}, {0x29CF, 0x29D0}, {0x29D0, 0x29CF}, {0x29D1, 0x29D2}, {0x29D2, 0x29D1}, {0x29D4, 0x29D5}, {0x29D5, 0x29D4}, {0x29D8, 0x29D9}, {0x29D9, 0x29D8}, {0x29DA, 0x29DB}, {0x29DB, 0x29DA}, {0x29F5, 0x2215}, {0x29F8, 0x29F9}, {0x29F9, 0x29F8}, {0x29FC, 0x29FD}, {0x29FD, 0x29FC}, {0x2A2B, 0x2A2C}, {0x2A2C, 0x2A2B}, {0x2A2D, 0x2A2E}, {0x2A2E, 0x2A2D}, {0x2A34, 0x2A35}, {0x2A35, 0x2A34}, {0x2A3C, 0x2A3D}, {0x2A3D, 0x2A3C}, {0x2A64, 0x2A65}, {0x2A65, 0x2A64}, {0x2A79, 0x2A7A}, {0x2A7A, 0x2A79}, {0x2A7D, 0x2A7E}, {0x2A7E, 0x2A7D}, {0x2A7F, 0x2A80}, {0x2A80, 0x2A7F}, {0x2A81, 0x2A82}, {0x2A82, 0x2A81}, {0x2A83, 0x2A84}, {0x2A84, 0x2A83}, {0x2A8B, 0x2A8C}, {0x2A8C, 0x2A8B}, {0x2A91, 0x2A92}, {0x2A92, 0x2A91}, {0x2A93, 0x2A94}, {0x2A94, 0x2A93}, {0x2A95, 0x2A96}, {0x2A96, 0x2A95}, {0x2A97, 0x2A98}, {0x2A98, 0x2A97}, {0x2A99, 0x2A9A}, {0x2A9A, 0x2A99}, {0x2A9B, 0x2A9C}, {0x2A9C, 0x2A9B}, {0x2AA1, 0x2AA2}, {0x2AA2, 0x2AA1}, {0x2AA6, 0x2AA7}, {0x2AA7, 0x2AA6}, {0x2AA8, 0x2AA9}, {0x2AA9, 0x2AA8}, {0x2AAA, 0x2AAB}, {0x2AAB, 0x2AAA}, {0x2AAC, 0x2AAD}, {0x2AAD, 0x2AAC}, {0x2AAF, 0x2AB0}, {0x2AB0, 0x2AAF}, {0x2AB3, 0x2AB4}, {0x2AB4, 0x2AB3}, {0x2ABB, 0x2ABC}, {0x2ABC, 0x2ABB}, {0x2ABD, 0x2ABE}, {0x2ABE, 0x2ABD}, {0x2ABF, 0x2AC0}, {0x2AC0, 0x2ABF}, {0x2AC1, 0x2AC2}, {0x2AC2, 0x2AC1}, {0x2AC3, 0x2AC4}, {0x2AC4, 0x2AC3}, {0x2AC5, 0x2AC6}, {0x2AC6, 0x2AC5}, {0x2ACD, 0x2ACE}, {0x2ACE, 0x2ACD}, {0x2ACF, 0x2AD0}, {0x2AD0, 0x2ACF}, {0x2AD1, 0x2AD2}, {0x2AD2, 0x2AD1}, {0x2AD3, 0x2AD4}, {0x2AD4, 0x2AD3}, {0x2AD5, 0x2AD6}, {0x2AD6, 0x2AD5}, {0x2ADE, 0x22A6}, {0x2AE3, 0x22A9}, {0x2AE4, 0x22A8}, {0x2AE5, 0x22AB}, {0x2AEC, 0x2AED}, {0x2AED, 0x2AEC}, {0x2AF7, 0x2AF8}, {0x2AF8, 0x2AF7}, {0x2AF9, 0x2AFA}, {0x2AFA, 0x2AF9}, {0x2E02, 0x2E03}, {0x2E03, 0x2E02}, {0x2E04, 0x2E05}, {0x2E05, 0x2E04}, {0x2E09, 0x2E0A}, {0x2E0A, 0x2E09}, {0x2E0C, 0x2E0D}, {0x2E0D, 0x2E0C}, {0x2E1C, 0x2E1D}, {0x2E1D, 0x2E1C}, {0x3008, 0x3009}, {0x3009, 0x3008}, {0x300A, 0x300B}, {0x300B, 0x300A}, {0x300C, 0x300D}, {0x300D, 0x300C}, {0x300E, 0x300F}, {0x300F, 0x300E}, {0x3010, 0x3011}, {0x3011, 0x3010}, {0x3014, 0x3015}, {0x3015, 0x3014}, {0x3016, 0x3017}, {0x3017, 0x3016}, {0x3018, 0x3019}, {0x3019, 0x3018}, {0x301A, 0x301B}, {0x301B, 0x301A}, {0xFF08, 0xFF09}, {0xFF09, 0xFF08}, {0xFF1C, 0xFF1E}, {0xFF1E, 0xFF1C}, {0xFF3B, 0xFF3D}, {0xFF3D, 0xFF3B}, {0xFF5B, 0xFF5D}, {0xFF5D, 0xFF5B}, {0xFF5F, 0xFF60}, {0xFF60, 0xFF5F}, {0xFF62, 0xFF63}, {0xFF63, 0xFF62}, } ; /* *INDENT-ON* */ const int nFriBidiMirroredChars = 332; #endif /* FRIBIDI_TAB_MIRRORING_I */ quesoglc-0.7.2/src/fribidi/fribidi.c0000644000175000017500000010415010764574550014254 00000000000000/* FriBidi - Library of BiDi algorithm * Copyright (C) 1999,2000 Dov Grobgeld, and * Copyright (C) 2001,2002 Behdad Esfahbod. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library, in a file named COPYING; if not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA * * For licensing issues, contact and * . */ #include #ifdef HAVE_CONFIG_H #include #endif #include "fribidi.h" #include "fribidi_unicode.h" #ifdef DEBUGMODE #include #endif /* Redefine FRIBIDI_CHUNK_SIZE in config.h to override this. */ #ifndef FRIBIDI_CHUNK_SIZE #ifdef MEM_OPTIMIZED #define FRIBIDI_CHUNK_SIZE 16 #else #define FRIBIDI_CHUNK_SIZE 128 #endif #endif #ifdef DEBUGMODE #define DBG(s) do { if (fribidi_debug) { fprintf(stderr, s); } } while (0) #define DBG2(s, t) do { if (fribidi_debug) { fprintf(stderr, s, t); } } while (0) #else #define DBG(s) #define DBG2(s, t) #endif #ifdef DEBUGMODE char fribidi_char_from_type (FriBidiCharType c); #endif #define MAX(a,b) ((a) > (b) ? (a) : (b)) /*====================================================================== * Typedef for the run-length list. *----------------------------------------------------------------------*/ typedef struct _TypeLink TypeLink; struct _TypeLink { TypeLink *prev; TypeLink *next; FriBidiCharType type; FriBidiStrIndex pos, len; FriBidiLevel level; }; #define FRIBIDI_LEVEL_START -1 #define FRIBIDI_LEVEL_END -1 #define FRIBIDI_LEVEL_REMOVED -2 typedef struct { FriBidiCharType override; /* only L, R and N are valid */ FriBidiLevel level; } LevelInfo; #ifdef DEBUGMODE static fribidi_boolean fribidi_debug = FRIBIDI_FALSE; #endif fribidi_boolean fribidi_set_debug (fribidi_boolean debug) { #ifdef DEBUGMODE fribidi_debug = debug; #else debug = 0; #endif return debug; } static void bidi_string_reverse (FriBidiChar *str, FriBidiStrIndex len) { FriBidiStrIndex i; for (i = 0; i < len / 2; i++) { FriBidiChar tmp = str[i]; str[i] = str[len - 1 - i]; str[len - 1 - i] = tmp; } } static void index_array_reverse (FriBidiStrIndex *arr, FriBidiStrIndex len) { FriBidiStrIndex i; for (i = 0; i < len / 2; i++) { FriBidiStrIndex tmp = arr[i]; arr[i] = arr[len - 1 - i]; arr[len - 1 - i] = tmp; } } static TypeLink * new_type_link (void) { TypeLink *link; link = malloc (sizeof (TypeLink)); link->len = 0; link->pos = 0; link->level = 0; link->next = NULL; link->prev = NULL; return link; } static void free_type_link (TypeLink *link) { free (link); } #define FRIBIDI_ADD_TYPE_LINK(p,q) \ do { \ (p)->len = (q)->pos - (p)->pos; \ (p)->next = (q); \ (q)->prev = (p); \ (p) = (q); \ } while (0) static TypeLink * run_length_encode_types (FriBidiCharType *char_type, FriBidiStrIndex type_len) { TypeLink *list, *last, *link; FriBidiStrIndex i; /* Add the starting link */ list = new_type_link (); list->type = FRIBIDI_TYPE_SOT; list->level = FRIBIDI_LEVEL_START; last = list; /* Sweep over the string_type s */ for (i = 0; i < type_len; i++) if (char_type[i] != last->type) { link = new_type_link (); link->type = char_type[i]; link->pos = i; FRIBIDI_ADD_TYPE_LINK (last, link); } /* Add the ending link */ link = new_type_link (); link->type = FRIBIDI_TYPE_EOT; link->level = FRIBIDI_LEVEL_END; link->pos = type_len; FRIBIDI_ADD_TYPE_LINK (last, link); return list; } /* explicits_list is a list like type_rl_list, that holds the explicit codes that are removed from rl_list, to reinsert them later by calling the override_list. */ static void init_list (TypeLink **start, TypeLink **end) { TypeLink *list; TypeLink *link; /* Add the starting link */ list = new_type_link (); list->type = FRIBIDI_TYPE_SOT; list->level = FRIBIDI_LEVEL_START; list->len = 0; list->pos = 0; /* Add the ending link */ link = new_type_link (); link->type = FRIBIDI_TYPE_EOT; link->level = FRIBIDI_LEVEL_END; link->len = 0; link->pos = 0; list->next = link; link->prev = list; *start = list; *end = link; } /* move an element before another element in a list, the list must have a previous element, used to update explicits_list. assuming that p have both prev and next or none of them, also update the list that p is currently in, if any. */ static void move_element_before (TypeLink *p, TypeLink *list) { if (p->prev) { p->prev->next = p->next; p->next->prev = p->prev; } p->prev = list->prev; list->prev->next = p; p->next = list; list->prev = p; } /* override the rl_list 'base', with the elements in the list 'over', to reinsert the previously-removed explicit codes (at X9) from 'explicits_list' back into 'type_rl_list'. This is used at the end of I2 to restore the explicit marks, and also to reset the character types of characters at L1. it is assumed that the 'pos' of the first element in 'base' list is not more than the 'pos' of the first element of the 'over' list, and the 'pos' of the last element of the 'base' list is not less than the 'pos' of the last element of the 'over' list. these two conditions are always satisfied for the two usages mentioned above. TBD: use some explanatory names instead of p, q, ... */ static void override_list (TypeLink *base, TypeLink *over) { TypeLink *p = base, *q, *r, *s, *t; FriBidiStrIndex pos = 0, pos2; if (!over) return; q = over; while (q) { if (!q->len || q->pos < pos) { t = q; q = q->next; free_type_link (t); continue; } pos = q->pos; while (p->next && p->next->pos <= pos) p = p->next; /* now p is the element that q must be inserted 'in'. */ pos2 = pos + q->len; r = p; while (r->next && r->next->pos < pos2) r = r->next; /* now r is the last element that q affects. */ if (p == r) { /* split p into at most 3 interval, and insert q in the place of the second interval, set r to be the third part. */ /* third part needed? */ if (p->next && p->next->pos == pos2) r = r->next; else { r = new_type_link (); *r = *p; if (r->next) { r->next->prev = r; r->len = r->next->pos - pos2; } else r->len -= pos - p->pos; r->pos = pos2; } /* first part needed? */ if (p->prev && p->pos == pos) { t = p; p = p->prev; free_type_link (t); } else p->len = pos - p->pos; } else { /* cut the end of p. */ p->len = pos - p->pos; /* if all of p is cut, remove it. */ if (!p->len && p->prev) p = p->prev; /* cut the begining of r. */ r->pos = pos2; if (r->next) r->len = r->next->pos - pos2; /* if all of r is cut, remove it. */ if (!r->len && r->next) r = r->next; /* remove the elements between p and r. */ for (s = p->next; s != r;) { t = s; s = s->next; free_type_link (t); } } /* before updating the next and prev links to point to the inserted q, we must remember the next element of q in the 'over' list. */ t = q; q = q->next; p->next = t; t->prev = p; t->next = r; r->prev = t; } } /* Some convenience macros */ #define RL_TYPE(list) ((list)->type) #define RL_LEN(list) ((list)->len) #define RL_POS(list) ((list)->pos) #define RL_LEVEL(list) ((list)->level) static TypeLink * merge_with_prev (TypeLink *second) { TypeLink *first = second->prev; first->next = second->next; first->next->prev = first; RL_LEN (first) += RL_LEN (second); free_type_link (second); return first; } static void compact_list (TypeLink *list) { if (list->next) for (list = list->next; list; list = list->next) if (RL_TYPE (list->prev) == RL_TYPE (list) && RL_LEVEL (list->prev) == RL_LEVEL (list)) list = merge_with_prev (list); } static void compact_neutrals (TypeLink *list) { if (list->next) { for (list = list->next; list; list = list->next) { if (RL_LEVEL (list->prev) == RL_LEVEL (list) && ((RL_TYPE (list->prev) == RL_TYPE (list) || (FRIBIDI_IS_NEUTRAL (RL_TYPE (list->prev)) && FRIBIDI_IS_NEUTRAL (RL_TYPE (list)))))) list = merge_with_prev (list); } } } /*========================================================================= * define macros for push and pop the status in to / out of the stack *-------------------------------------------------------------------------*/ /* There's some little points in pushing and poping into the status stack: 1. when the embedding level is not valid (more than UNI_MAX_BIDI_LEVEL=61), you must reject it, and not to push into the stack, but when you see a PDF, you must find the matching code, and if it was pushed in the stack, pop it, it means you must pop if and only if you have pushed the matching code, the over_pushed var counts the number of rejected codes yet. 2. there's a more confusing point too, when the embedding level is exactly UNI_MAX_BIDI_LEVEL-1=60, an LRO or LRE must be rejected because the new level would be UNI_MAX_BIDI_LEVEL+1=62, that is invalid, but an RLO or RLE must be accepted because the new level is UNI_MAX_BIDI_LEVEL=61, that is valid, so the rejected codes may be not continuous in the logical order, in fact there is at most two continuous intervals of codes, with a RLO or RLE between them. To support this case, the first_interval var counts the number of rejected codes in the first interval, when it is 0, means that there is only one interval yet. */ /* a. If this new level would be valid, then this embedding code is valid. Remember (push) the current embedding level and override status. Reset current level to this new level, and reset the override status to new_override. b. If the new level would not be valid, then this code is invalid. Don't change the current level or override status. */ #define PUSH_STATUS \ do { \ if (new_level <= UNI_MAX_BIDI_LEVEL) \ { \ if (level == UNI_MAX_BIDI_LEVEL - 1) \ first_interval = over_pushed; \ status_stack[stack_size].level = level; \ status_stack[stack_size].override = override; \ stack_size++; \ level = new_level; \ override = new_override; \ } else \ over_pushed++; \ } while (0) /* If there was a valid matching code, restore (pop) the last remembered (pushed) embedding level and directional override. */ #define POP_STATUS \ do { \ if (over_pushed || stack_size) \ { \ if (over_pushed > first_interval) \ over_pushed--; \ else \ { \ if (over_pushed == first_interval) \ first_interval = 0; \ stack_size--; \ level = status_stack[stack_size].level; \ override = status_stack[stack_size].override; \ } \ } \ } while (0) /*========================================================================== * There was no support for sor and eor in the absence of Explicit Embedding * Levels, so define macros, to support them, with as less change as needed. *--------------------------------------------------------------------------*/ /* Return the type of previous char or the sor, if already at the start of a run level. */ #define PREV_TYPE_OR_SOR(pp) \ ( \ RL_LEVEL(pp->prev) == RL_LEVEL(pp) ? \ RL_TYPE(pp->prev) : \ FRIBIDI_LEVEL_TO_DIR(MAX(RL_LEVEL(pp->prev), RL_LEVEL(pp))) \ ) /* Return the type of next char or the eor, if already at the end of a run level. */ #define NEXT_TYPE_OR_EOR(pp) \ ( \ !pp->next ? \ FRIBIDI_LEVEL_TO_DIR(RL_LEVEL(pp)) : \ (RL_LEVEL(pp->next) == RL_LEVEL(pp) ? \ RL_TYPE(pp->next) : \ FRIBIDI_LEVEL_TO_DIR(MAX(RL_LEVEL(pp->next), RL_LEVEL(pp))) \ ) \ ) /* Return the embedding direction of a link. */ #define FRIBIDI_EMBEDDING_DIRECTION(list) \ FRIBIDI_LEVEL_TO_DIR(RL_LEVEL(list)) #ifdef DEBUGMODE /*====================================================================== * For debugging, define some functions for printing the types and the * levels. *----------------------------------------------------------------------*/ static char char_from_level_array[] = { 'e', /* FRIBIDI_LEVEL_REMOVED, internal error, this level shouldn't be viewed. */ '_', /* FRIBIDI_LEVEL_START or _END, indicating start of string and end of string. */ /* 0-9,A-F are the only valid levels in debug mode and before resolving implicits. after that the levels X, Y, Z may be appear too. */ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'X', 'Y', 'Z', /* only must appear after resolving implicits. */ 'o', 'o', 'o' /* overflows, this levels and higher levels show a bug!. */ }; #define fribidi_char_from_level(level) char_from_level_array[(level) + 2] static void print_types_re (TypeLink *pp) { fprintf (stderr, " Run types : "); while (pp) { fprintf (stderr, "%d:l%d(%s)[%d] ", pp->pos, pp->len, fribidi_type_name (pp->type), pp->level); pp = pp->next; } fprintf (stderr, "\n"); } static void print_resolved_levels (TypeLink *pp) { fprintf (stderr, " Res. levels: "); while (pp) { FriBidiStrIndex i; for (i = 0; i < RL_LEN (pp); i++) fprintf (stderr, "%c", fribidi_char_from_level (RL_LEVEL (pp))); pp = pp->next; } fprintf (stderr, "\n"); } static void print_resolved_types (TypeLink *pp) { fprintf (stderr, " Res. types : "); while (pp) { FriBidiStrIndex i; for (i = 0; i < RL_LEN (pp); i++) fprintf (stderr, "%c", fribidi_char_from_type (pp->type)); pp = pp->next; } fprintf (stderr, "\n"); } /* Here, only for test porpuses, we have assumed that a fribidi_string ends with a 0 character */ static void print_bidi_string (FriBidiChar *str) { FriBidiStrIndex i; fprintf (stderr, " Org. types : "); for (i = 0; str[i]; i++) fprintf (stderr, "%c", fribidi_char_from_type (fribidi_get_type (str[i]))); fprintf (stderr, "\n"); } #endif /*====================================================================== * This function should follow the Unicode specification closely! *----------------------------------------------------------------------*/ static void fribidi_analyse_string ( /* input */ FriBidiChar *str, FriBidiStrIndex len, FriBidiCharType *pbase_dir, /* output */ TypeLink **ptype_rl_list, FriBidiLevel *pmax_level) { FriBidiLevel base_level, max_level; FriBidiCharType base_dir; FriBidiStrIndex i; TypeLink *type_rl_list, *explicits_list, *explicits_list_end, *pp; DBG ("Entering fribidi_analyse_string()\n"); /* Determinate character types */ DBG (" Determine character types\n"); { FriBidiCharType *char_type = (FriBidiCharType *) malloc (len * sizeof (FriBidiCharType)); for (i = 0; i < len; i++) char_type[i] = fribidi_get_type (str[i]); /* Run length encode the character types */ type_rl_list = run_length_encode_types (char_type, len); free (char_type); } DBG (" Determine character types, Done\n"); init_list (&explicits_list, &explicits_list_end); /* Find base level */ DBG (" Finding the base level\n"); if (FRIBIDI_IS_STRONG (*pbase_dir)) base_level = FRIBIDI_DIR_TO_LEVEL (*pbase_dir); /* P2. P3. Search for first strong character and use its direction as base direction */ else { /* If no strong base_dir was found, resort to the weak direction that was passed on input. */ base_level = FRIBIDI_DIR_TO_LEVEL (*pbase_dir); base_dir = FRIBIDI_TYPE_ON; for (pp = type_rl_list; pp; pp = pp->next) if (FRIBIDI_IS_LETTER (RL_TYPE (pp))) { base_level = FRIBIDI_DIR_TO_LEVEL (RL_TYPE (pp)); base_dir = FRIBIDI_LEVEL_TO_DIR (base_level); break; } } base_dir = FRIBIDI_LEVEL_TO_DIR (base_level); DBG2 (" Base level : %c\n", fribidi_char_from_level (base_level)); DBG2 (" Base dir : %c\n", fribidi_char_from_type (base_dir)); DBG (" Finding the base level, Done\n"); #ifdef DEBUGMODE if (fribidi_debug) { print_types_re (type_rl_list); } #endif /* Explicit Levels and Directions */ DBG ("Explicit Levels and Directions\n"); { /* X1. Begin by setting the current embedding level to the paragraph embedding level. Set the directional override status to neutral. Process each character iteratively, applying rules X2 through X9. Only embedding levels from 0 to 61 are valid in this phase. */ FriBidiLevel level, new_level; FriBidiCharType override, new_override; FriBidiStrIndex i; int stack_size, over_pushed, first_interval; LevelInfo *status_stack; TypeLink temp_link; level = base_level; override = FRIBIDI_TYPE_ON; /* stack */ stack_size = 0; over_pushed = 0; first_interval = 0; status_stack = (LevelInfo *) malloc (sizeof (LevelInfo) * (UNI_MAX_BIDI_LEVEL + 2)); for (pp = type_rl_list->next; pp->next; pp = pp->next) { FriBidiCharType this_type = RL_TYPE (pp); if (FRIBIDI_IS_EXPLICIT_OR_BN (this_type)) { if (FRIBIDI_IS_STRONG (this_type)) { /* LRE, RLE, LRO, RLO */ /* 1. Explicit Embeddings */ /* X2. With each RLE, compute the least greater odd embedding level. */ /* X3. With each LRE, compute the least greater even embedding level. */ /* 2. Explicit Overrides */ /* X4. With each RLO, compute the least greater odd embedding level. */ /* X5. With each LRO, compute the least greater even embedding level. */ new_override = FRIBIDI_EXPLICIT_TO_OVERRIDE_DIR (this_type); for (i = 0; i < RL_LEN (pp); i++) { new_level = ((level + FRIBIDI_DIR_TO_LEVEL (this_type) + 2) & ~1) - FRIBIDI_DIR_TO_LEVEL (this_type); PUSH_STATUS; } } else if (this_type == FRIBIDI_TYPE_PDF) { /* 3. Terminating Embeddings and overrides */ /* X7. With each PDF, determine the matching embedding or override code. */ for (i = 0; i < RL_LEN (pp); i++) POP_STATUS; } /* X9. Remove all RLE, LRE, RLO, LRO, PDF, and BN codes. */ /* Remove element and add it to explicits_list */ temp_link.next = pp->next; pp->level = FRIBIDI_LEVEL_REMOVED; move_element_before (pp, explicits_list_end); pp = &temp_link; } else { /* X6. For all typed besides RLE, LRE, RLO, LRO, and PDF: a. Set the level of the current character to the current embedding level. b. Whenever the directional override status is not neutral, reset the current character type to the directional override status. */ RL_LEVEL (pp) = level; if (!FRIBIDI_IS_NEUTRAL (override)) RL_TYPE (pp) = override; } /* X8. All explicit directional embeddings and overrides are completely terminated at the end of each paragraph. Paragraph separators are not included in the embedding. */ /* This function is running on a single paragraph, so we can do X8 after all the input is processed. */ } /* Implementing X8. It has no effect on a single paragraph! */ level = base_level; override = FRIBIDI_TYPE_ON; stack_size = 0; over_pushed = 0; free (status_stack); } /* X10. The remaining rules are applied to each run of characters at the same level. For each run, determine the start-of-level-run (sor) and end-of-level-run (eor) type, either L or R. This depends on the higher of the two levels on either side of the boundary (at the start or end of the paragraph, the level of the 'other' run is the base embedding level). If the higher level is odd, the type is R, otherwise it is L. */ /* Resolving Implicit Levels can be done out of X10 loop, so only change of Resolving Weak Types and Resolving Neutral Types is needed. */ compact_list (type_rl_list); #ifdef DEBUGMODE if (fribidi_debug) { print_types_re (type_rl_list); print_bidi_string (str); print_resolved_levels (type_rl_list); print_resolved_types (type_rl_list); } #endif /* 4. Resolving weak types */ DBG ("Resolving weak types\n"); { FriBidiCharType last_strong, prev_type_org; fribidi_boolean w4; last_strong = base_dir; for (pp = type_rl_list->next; pp->next; pp = pp->next) { FriBidiCharType prev_type, this_type, next_type; prev_type = PREV_TYPE_OR_SOR (pp); this_type = RL_TYPE (pp); next_type = NEXT_TYPE_OR_EOR (pp); if (FRIBIDI_IS_STRONG (prev_type)) last_strong = prev_type; /* W1. NSM Examine each non-spacing mark (NSM) in the level run, and change the type of the NSM to the type of the previous character. If the NSM is at the start of the level run, it will get the type of sor. */ /* Implementation note: it is important that if the previous character is not sor, then we should merge this run with the previous, because of rules like W5, that we assume all of a sequence of adjacent ETs are in one TypeLink. */ if (this_type == FRIBIDI_TYPE_NSM) { if (RL_LEVEL (pp->prev) == RL_LEVEL (pp)) pp = merge_with_prev (pp); else RL_TYPE (pp) = prev_type; continue; /* As we know the next condition cannot be true. */ } /* W2: European numbers. */ if (this_type == FRIBIDI_TYPE_EN && last_strong == FRIBIDI_TYPE_AL) { RL_TYPE (pp) = FRIBIDI_TYPE_AN; /* Resolving dependency of loops for rules W1 and W2, so we can merge them in one loop. */ if (next_type == FRIBIDI_TYPE_NSM) RL_TYPE (pp->next) = FRIBIDI_TYPE_AN; } } last_strong = base_dir; /* Resolving dependency of loops for rules W4 and W5, W5 may want to prevent W4 to take effect in the next turn, do this through "w4". */ w4 = FRIBIDI_TRUE; /* Resolving dependency of loops for rules W4 and W5 with W7, W7 may change an EN to L but it sets the prev_type_org if needed, so W4 and W5 in next turn can still do their works. */ prev_type_org = FRIBIDI_TYPE_ON; for (pp = type_rl_list->next; pp->next; pp = pp->next) { FriBidiCharType prev_type, this_type, next_type; prev_type = PREV_TYPE_OR_SOR (pp); this_type = RL_TYPE (pp); next_type = NEXT_TYPE_OR_EOR (pp); if (FRIBIDI_IS_STRONG (prev_type)) last_strong = prev_type; /* W3: Change ALs to R. */ if (this_type == FRIBIDI_TYPE_AL) { RL_TYPE (pp) = FRIBIDI_TYPE_RTL; w4 = FRIBIDI_TRUE; prev_type_org = FRIBIDI_TYPE_ON; continue; } /* W4. A single european separator changes to a european number. A single common separator between two numbers of the same type changes to that type. */ if (w4 && RL_LEN (pp) == 1 && FRIBIDI_IS_ES_OR_CS (this_type) && FRIBIDI_IS_NUMBER (prev_type_org) && prev_type_org == next_type && (prev_type_org == FRIBIDI_TYPE_EN || this_type == FRIBIDI_TYPE_CS)) { RL_TYPE (pp) = prev_type; this_type = RL_TYPE (pp); } w4 = FRIBIDI_TRUE; /* W5. A sequence of European terminators adjacent to European numbers changes to All European numbers. */ if (this_type == FRIBIDI_TYPE_ET && (prev_type_org == FRIBIDI_TYPE_EN || next_type == FRIBIDI_TYPE_EN)) { RL_TYPE (pp) = FRIBIDI_TYPE_EN; w4 = FRIBIDI_FALSE; this_type = RL_TYPE (pp); } /* W6. Otherwise change separators and terminators to other neutral. */ if (FRIBIDI_IS_NUMBER_SEPARATOR_OR_TERMINATOR (this_type)) RL_TYPE (pp) = FRIBIDI_TYPE_ON; /* W7. Change european numbers to L. */ if (this_type == FRIBIDI_TYPE_EN && last_strong == FRIBIDI_TYPE_LTR) { RL_TYPE (pp) = FRIBIDI_TYPE_LTR; prev_type_org = (RL_LEVEL (pp) == RL_LEVEL (pp->next) ? FRIBIDI_TYPE_EN : FRIBIDI_TYPE_ON); } else prev_type_org = PREV_TYPE_OR_SOR (pp->next); } } compact_neutrals (type_rl_list); #ifdef DEBUGMODE if (fribidi_debug) { print_resolved_levels (type_rl_list); print_resolved_types (type_rl_list); } #endif /* 5. Resolving Neutral Types */ DBG ("Resolving neutral types\n"); { /* N1. and N2. For each neutral, resolve it. */ for (pp = type_rl_list->next; pp->next; pp = pp->next) { FriBidiCharType prev_type, this_type, next_type; /* "European and arabic numbers are treated as though they were R" FRIBIDI_CHANGE_NUMBER_TO_RTL does this. */ this_type = FRIBIDI_CHANGE_NUMBER_TO_RTL (RL_TYPE (pp)); prev_type = FRIBIDI_CHANGE_NUMBER_TO_RTL (PREV_TYPE_OR_SOR (pp)); next_type = FRIBIDI_CHANGE_NUMBER_TO_RTL (NEXT_TYPE_OR_EOR (pp)); if (FRIBIDI_IS_NEUTRAL (this_type)) RL_TYPE (pp) = (prev_type == next_type) ? /* N1. */ prev_type : /* N2. */ FRIBIDI_EMBEDDING_DIRECTION (pp); } } compact_list (type_rl_list); #ifdef DEBUGMODE if (fribidi_debug) { print_resolved_levels (type_rl_list); print_resolved_types (type_rl_list); } #endif /* 6. Resolving implicit levels */ DBG ("Resolving implicit levels\n"); { max_level = base_level; for (pp = type_rl_list->next; pp->next; pp = pp->next) { FriBidiCharType this_type; int level; this_type = RL_TYPE (pp); level = RL_LEVEL (pp); /* I1. Even */ /* I2. Odd */ if (FRIBIDI_IS_NUMBER (this_type)) RL_LEVEL (pp) = (level + 2) & ~1; else RL_LEVEL (pp) = (level ^ FRIBIDI_DIR_TO_LEVEL (this_type)) + (level & 1); if (RL_LEVEL (pp) > max_level) max_level = RL_LEVEL (pp); } } compact_list (type_rl_list); #ifdef DEBUGMODE if (fribidi_debug) { print_bidi_string (str); print_resolved_levels (type_rl_list); print_resolved_types (type_rl_list); } #endif /* Reinsert the explicit codes & bn's that already removed, from the explicits_list to type_rl_list. */ DBG ("Reinserting explicit codes\n"); { TypeLink *p; override_list (type_rl_list, explicits_list); p = type_rl_list->next; if (p->level < 0) p->level = base_level; for (; p->next; p = p->next) if (p->level < 0) p->level = p->prev->level; } #ifdef DEBUGMODE if (fribidi_debug) { print_types_re (type_rl_list); print_resolved_levels (type_rl_list); print_resolved_types (type_rl_list); } #endif DBG ("Reset the embedding levels\n"); { int j, k, state, pos; TypeLink *p, *q, *list, *list_end; /* L1. Reset the embedding levels of some chars. */ init_list (&list, &list_end); q = list_end; state = 1; pos = len - 1; for (j = len - 1; j >= -1; j--) { /* if state is on at the very first of string, do this too. */ if (j >= 0) k = fribidi_get_type (str[j]); else k = FRIBIDI_TYPE_ON; if (!state && FRIBIDI_IS_SEPARATOR (k)) { state = 1; pos = j; } else if (state && !FRIBIDI_IS_EXPLICIT_OR_SEPARATOR_OR_BN_OR_WS (k)) { state = 0; p = new_type_link (); p->prev = p->next = NULL; p->pos = j + 1; p->len = pos - j; p->type = base_dir; p->level = base_level; move_element_before (p, q); q = p; } } override_list (type_rl_list, list); } #ifdef DEBUGMODE if (fribidi_debug) { print_types_re (type_rl_list); print_resolved_levels (type_rl_list); print_resolved_types (type_rl_list); } #endif *ptype_rl_list = type_rl_list; *pmax_level = max_level; *pbase_dir = base_dir; DBG ("Leaving fribidi_analyse_string()\n"); return; } /*====================================================================== * Frees up the rl_list, must be called after each call to * fribidi_analyse_string(), after the list is not needed anymore. *----------------------------------------------------------------------*/ static void free_rl_list (TypeLink *type_rl_list) { TypeLink *pp; DBG ("Entering free_rl_list()\n"); if (!type_rl_list) { DBG ("Leaving free_rl_list()\n"); return; } pp = type_rl_list; while (pp) { TypeLink *p; p = pp; pp = pp->next; free_type_link (p); }; DBG ("Leaving free_rl_list()\n"); return; } static fribidi_boolean mirroring = FRIBIDI_TRUE; static fribidi_boolean reorder_nsm = FRIBIDI_FALSE; /*====================================================================== * Here starts the exposed front end functions. *----------------------------------------------------------------------*/ /*====================================================================== * fribidi_log2vis() calls the function_analyse_string() and then * does reordering and fills in the output strings. *----------------------------------------------------------------------*/ fribidi_boolean fribidi_log2vis ( /* input */ FriBidiChar *str, FriBidiStrIndex len, FriBidiCharType *pbase_dir, /* output */ FriBidiChar *visual_str, FriBidiStrIndex *position_L_to_V_list, FriBidiStrIndex *position_V_to_L_list, FriBidiLevel *embedding_level_list) { TypeLink *type_rl_list, *pp = NULL; FriBidiLevel max_level; fribidi_boolean private_V_to_L = FRIBIDI_FALSE; DBG ("Entering fribidi_log2vis()\n"); if (len == 0) { DBG ("Leaving fribidi_log2vis()\n"); return FRIBIDI_TRUE; } /* If l2v is to be calculated we must have v2l as well. If it is not given by the caller, we have to make a private instance of it. */ if (position_L_to_V_list && !position_V_to_L_list) { private_V_to_L = FRIBIDI_TRUE; position_V_to_L_list = (FriBidiStrIndex *) malloc (sizeof (FriBidiStrIndex) * len); } if (len > FRIBIDI_MAX_STRING_LENGTH && position_V_to_L_list) { #ifdef DEBUGMODE fprintf (stderr, "cannot handle strings > %ld characters\n", (long) FRIBIDI_MAX_STRING_LENGTH); #endif return FRIBIDI_FALSE; } fribidi_analyse_string (str, len, pbase_dir, /* output */ &type_rl_list, &max_level); /* 7. Reordering resolved levels */ DBG ("Reordering resolved levels\n"); { FriBidiLevel level_idx; FriBidiStrIndex i; /* Set up the ordering array to sorted order */ if (position_V_to_L_list) { DBG (" Initialize position_V_to_L_list\n"); for (i = 0; i < len; i++) position_V_to_L_list[i] = i; DBG (" Initialize position_V_to_L_list, Done\n"); } /* Copy the logical string to the visual */ if (visual_str) { DBG (" Initialize visual_str\n"); for (i = 0; i < len; i++) visual_str[i] = str[i]; visual_str[len] = 0; DBG (" Initialize visual_str, Done\n"); } /* Assign the embedding level array */ if (embedding_level_list) { DBG (" Fill the embedding levels array\n"); for (pp = type_rl_list->next; pp->next; pp = pp->next) { FriBidiStrIndex i, pos, len; FriBidiLevel level; pos = pp->pos; len = pp->len; level = pp->level; for (i = 0; i < len; i++) embedding_level_list[pos + i] = level; } DBG (" Fill the embedding levels array, Done\n"); } /* Reorder both the outstring and the order array */ if (visual_str || position_V_to_L_list) { if (mirroring && visual_str) { /* L4. Mirror all characters that are in odd levels and have mirrors. */ DBG (" Mirroring\n"); for (pp = type_rl_list->next; pp->next; pp = pp->next) { if (pp->level & 1) { FriBidiStrIndex i; for (i = RL_POS (pp); i < RL_POS (pp) + RL_LEN (pp); i++) { FriBidiChar mirrored_ch; if (fribidi_get_mirror_char (visual_str[i], &mirrored_ch)) visual_str[i] = mirrored_ch; } } } DBG (" Mirroring, Done\n"); } if (reorder_nsm) { /* L3. Reorder NSMs. */ DBG (" Reordering NSM sequences\n"); /* We apply this rule before L2, so go backward in odd levels. */ for (pp = type_rl_list->next; pp->next; pp = pp->next) { if (pp->level & 1) { FriBidiStrIndex i, seq_end = 0; fribidi_boolean is_nsm_seq; is_nsm_seq = FRIBIDI_FALSE; for (i = RL_POS (pp) + RL_LEN (pp) - 1; i >= RL_POS (pp); i--) { FriBidiCharType this_type; this_type = fribidi_get_type (str[i]); if (is_nsm_seq && this_type != FRIBIDI_TYPE_NSM) { if (visual_str) { bidi_string_reverse (visual_str + i, seq_end - i + 1); } if (position_V_to_L_list) { index_array_reverse (position_V_to_L_list + i, seq_end - i + 1); } is_nsm_seq = 0; } else if (!is_nsm_seq && this_type == FRIBIDI_TYPE_NSM) { seq_end = i; is_nsm_seq = 1; } } if (is_nsm_seq) { DBG ("Warning: NSMs at the beggining of run level.\n"); } } } DBG (" Reordering NSM sequences, Done\n"); } /* L2. Reorder. */ DBG (" Reordering\n"); for (level_idx = max_level; level_idx > 0; level_idx--) { for (pp = type_rl_list->next; pp->next; pp = pp->next) { if (RL_LEVEL (pp) >= level_idx) { /* Find all stretches that are >= level_idx */ FriBidiStrIndex len = RL_LEN (pp), pos = RL_POS (pp); TypeLink *pp1 = pp->next; while (pp1->next && RL_LEVEL (pp1) >= level_idx) { len += RL_LEN (pp1); pp1 = pp1->next; } pp = pp1->prev; if (visual_str) bidi_string_reverse (visual_str + pos, len); if (position_V_to_L_list) index_array_reverse (position_V_to_L_list + pos, len); } } } DBG (" Reordering, Done\n"); } /* Convert the v2l list to l2v */ if (position_L_to_V_list) { DBG (" Converting v2l list to l2v\n"); for (i = 0; i < len; i++) position_L_to_V_list[position_V_to_L_list[i]] = i; DBG (" Converting v2l list to l2v, Done\n"); } } DBG ("Reordering resolved levels, Done\n"); if (private_V_to_L) free (position_V_to_L_list); free_rl_list (type_rl_list); DBG ("Leaving fribidi_log2vis()\n"); return FRIBIDI_TRUE; } quesoglc-0.7.2/src/scalable.c0000644000175000017500000005771311021606607013000 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: scalable.c 800 2008-06-04 21:47:50Z bcoconni $ */ /** \file * defines the routines used to render characters with lines and triangles. */ #include "internal.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include #define GLC_MAX_ITER 50 /* Transform the object coordinates in the array 'inCoord' in screen * coordinates. The function updates 'inCoord' according to : * inCoord[0..1] contains the 2D glyph coordinates in the object space * inCoord[2..4] contains the 2D homogeneous coordinates in observer space */ static void __glcComputePixelCoordinates(GLfloat* inCoord, __GLCrendererData* inData) { GLfloat x = inCoord[0] * inData->transformMatrix[0] + inCoord[1] * inData->transformMatrix[4] + inData->transformMatrix[12]; GLfloat y = inCoord[0] * inData->transformMatrix[1] + inCoord[1] * inData->transformMatrix[5] + inData->transformMatrix[13]; GLfloat w = inCoord[0] * inData->transformMatrix[3] + inCoord[1] * inData->transformMatrix[7] + inData->transformMatrix[15]; GLfloat norm = x * x + y * y; /* If w is very small compared to x, y and z this probably means that the * transformation matrix is ill-conditioned (i.e. its determinant is * numerically null) */ if (w * w < norm * GLC_EPSILON * GLC_EPSILON) { /* Ugly hack to handle the singularity of w */ w = sqrt(norm) * GLC_EPSILON; } inCoord[2] = x; inCoord[3] = y; inCoord[4] = w; } /* __glcdeCasteljauConic : * renders conic Bezier curves using the de Casteljau subdivision algorithm * * This function creates a piecewise linear curve which is close enough * to the real Bezier curve. The piecewise linear curve is built so that * the chordal distance is lower than a tolerance value. * The chordal distance is taken to be the perpendicular distance from each * control point to the chord. This may not always be correct, but, in the small * lengths which are being considered, this is good enough. * A second simplifying assumption is that when too large a chordal distance is * encountered, the chord is split at the parametric midpoint, rather than * guessing the exact location of the best chord. This could lead to slightly * sub-optimal lines, but it provides a fast method for choosing the * subdivision point. This guess can be refined by lengthening the lines. */ int __glcdeCasteljauConic(void *inUserData) { __GLCrendererData *data = (__GLCrendererData *) inUserData; GLfloat* vector = data->vector; GLfloat(*controlPoint)[5] = NULL; GLint nArc = 1, arc = 0, rank = 0; int iter = 0; GLfloat* cp = (GLfloat*)__glcArrayInsertCell(data->controlPoints, GLC_ARRAY_LENGTH(data->controlPoints), 3); if (!cp) { GLC_ARRAY_LENGTH(data->controlPoints) = 0; return 1; } /* Append the control points to the vertex array */ memcpy(cp, vector, 2 * sizeof(GLfloat)); __glcComputePixelCoordinates(cp, data); /* Append the first vertex of the curve to the vertex array */ rank = GLC_ARRAY_LENGTH(data->vertexArray); if (!__glcArrayAppend(data->vertexArray, cp)) { GLC_ARRAY_LENGTH(data->controlPoints) = 0; return 1; } /* Build the array of the control points */ for (iter = 0; iter < 2; iter++) { cp += 5; vector += 2; memcpy(cp, vector, 2 * sizeof(GLfloat)); __glcComputePixelCoordinates(cp, data); } /* controlPoint[] must be computed there because * GLC_ARRAY_DATA(data->controlPoints) may have been modified by a realloc() * in __glcArrayInsert(). */ controlPoint = (GLfloat(*)[5])GLC_ARRAY_DATA(data->controlPoints); /* Here the de Casteljau algorithm begins */ for (iter = 0; (iter < GLC_MAX_ITER) && (arc != nArc); iter++) { GLfloat ax = controlPoint[0][2]; GLfloat ay = controlPoint[0][3]; GLfloat aw = controlPoint[0][4]; GLfloat abx = controlPoint[2][2]*aw - ax*controlPoint[2][4]; GLfloat aby = controlPoint[2][3]*aw - ay*controlPoint[2][4]; /* For the middle control point, compute its chordal distance that is its * distance from the segment AB */ GLfloat mw = controlPoint[1][4]; GLfloat s = ((controlPoint[1][2]*aw - ax*mw) * aby - (controlPoint[1][3]*aw - ay*mw) * abx) / (aw * mw); GLfloat dmax = s * s; if (dmax < data->tolerance * (abx * abx + aby *aby)) { arc++; /* Process the next arc */ controlPoint = ((GLfloat(*)[5])GLC_ARRAY_DATA(data->controlPoints))+2*arc; /* Update the place where new vertices will be inserted in the vertex * array */ rank++; } else { /* Split an arc into two smaller arcs (this is the actual de Casteljau * algorithm) */ GLfloat *p1, *p2; GLfloat *pm = (GLfloat*)__glcArrayInsertCell(data->controlPoints, 2*arc+1, 2); if (!pm) { GLC_ARRAY_LENGTH(data->controlPoints) = 0; return 1; } /* controlPoint[] must be updated there because * data->controlPoints->data may have been modified by a realloc() in * __glcArrayInsert() */ controlPoint = ((GLfloat(*)[5])GLC_ARRAY_DATA(data->controlPoints))+2*arc; p1 = controlPoint[0]; p2 = controlPoint[3]; pm = controlPoint[1]; pm[0] = 0.5*(p1[0]+p2[0]); pm[1] = 0.5*(p1[1]+p2[1]); pm[2] = 0.5*(p1[2]+p2[2]); pm[3] = 0.5*(p1[3]+p2[3]); pm[4] = 0.5*(p1[4]+p2[4]); p1 = controlPoint[3]; p2 = controlPoint[4]; pm = controlPoint[3]; pm[0] = 0.5*(p1[0]+p2[0]); pm[1] = 0.5*(p1[1]+p2[1]); pm[2] = 0.5*(p1[2]+p2[2]); pm[3] = 0.5*(p1[3]+p2[3]); pm[4] = 0.5*(p1[4]+p2[4]); p1 = controlPoint[1]; p2 = controlPoint[3]; pm = controlPoint[2]; pm[0] = 0.5*(p1[0]+p2[0]); pm[1] = 0.5*(p1[1]+p2[1]); pm[2] = 0.5*(p1[2]+p2[2]); pm[3] = 0.5*(p1[3]+p2[3]); pm[4] = 0.5*(p1[4]+p2[4]); /* The point in pm[] is a point located on the Bezier curve : it must be * added to the vertex array */ if (!__glcArrayInsert(data->vertexArray, rank+1, pm)) { GLC_ARRAY_LENGTH(data->controlPoints) = 0; return 1; } nArc++; /* A new arc has been defined */ } } /* The array of control points must be emptied in order to be ready for the * next call to the de Casteljau routine */ GLC_ARRAY_LENGTH(data->controlPoints) = 0; return 0; } /* __glcdeCasteljauCubic : * renders cubic Bezier curves using the de Casteljau subdivision algorithm * * See also remarks about __glcdeCasteljauConic. */ int __glcdeCasteljauCubic(void *inUserData) { __GLCrendererData *data = (__GLCrendererData *) inUserData; GLfloat* vector = data->vector; GLfloat(*controlPoint)[5] = NULL; GLint nArc = 1, arc = 0, rank = 0; int iter = 0; GLfloat* cp = (GLfloat*)__glcArrayInsertCell(data->controlPoints, GLC_ARRAY_LENGTH(data->controlPoints), 4); if (!cp) { GLC_ARRAY_LENGTH(data->controlPoints) = 0; return 1; } /* Append the control points to the vertex array */ memcpy(cp, vector, 2 * sizeof(GLfloat)); __glcComputePixelCoordinates(cp, data); /* Append the first vertex of the curve to the vertex array */ rank = GLC_ARRAY_LENGTH(data->vertexArray); if (!__glcArrayAppend(data->vertexArray, cp)) { GLC_ARRAY_LENGTH(data->controlPoints) = 0; return 1; } /* Build the array of the control points */ for (iter = 0; iter < 3; iter++) { cp += 5; vector += 2; memcpy(cp, vector, 2 * sizeof(GLfloat)); __glcComputePixelCoordinates(cp, data); } /* controlPoint[] must be computed there because data->controlPoints->data * may have been modified by a realloc() in __glcArrayInsert() */ controlPoint = (GLfloat(*)[5])GLC_ARRAY_DATA(data->controlPoints); /* Here the de Casteljau algorithm begins */ for (iter = 0; (iter < GLC_MAX_ITER) && (arc != nArc); iter++) { GLfloat ax = controlPoint[0][2]; GLfloat ay = controlPoint[0][3]; GLfloat aw = controlPoint[0][4]; GLfloat abx = controlPoint[3][2]*aw - ax*controlPoint[3][4]; GLfloat aby = controlPoint[3][3]*aw - ay*controlPoint[3][4]; /* For the middle control point, compute its chordal distance that is its * distance from the segment AB */ GLfloat mw = controlPoint[1][4]; GLfloat s = ((controlPoint[1][2]*aw - ax*mw) * aby - (controlPoint[1][3]*aw - ay*mw) * abx) / (aw * mw); GLfloat dmax = s * s; GLfloat d; mw = controlPoint[2][4]; s = ((controlPoint[2][2]*aw - ax*mw) * aby - (controlPoint[2][3]*aw - ay*mw) * abx) / (aw * mw); d = s * s; dmax = d > dmax ? d : dmax; if (dmax < data->tolerance * (abx * abx + aby *aby)) { arc++; /* Process the next arc */ controlPoint = ((GLfloat(*)[5])GLC_ARRAY_DATA(data->controlPoints))+3*arc; /* Update the place where new vertices will be inserted in the vertex * array */ rank++; } else { /* Split an arc into two smaller arcs (this is the actual de Casteljau * algorithm) */ GLfloat *p1, *p2, *p3; GLfloat *pm = (GLfloat*)__glcArrayInsertCell(data->controlPoints, 3*arc+1, 3); if (!pm) { GLC_ARRAY_LENGTH(data->controlPoints) = 0; return 1; } /* controlPoint[] must be updated there because * data->controlPoints->data may have been modified by a realloc() in * __glcArrayInsert() */ controlPoint = ((GLfloat(*)[5])GLC_ARRAY_DATA(data->controlPoints))+3*arc; p1 = controlPoint[0]; p2 = controlPoint[4]; pm = controlPoint[1]; pm[0] = 0.5*(p1[0]+p2[0]); pm[1] = 0.5*(p1[1]+p2[1]); pm[2] = 0.5*(p1[2]+p2[2]); pm[3] = 0.5*(p1[3]+p2[3]); pm[4] = 0.5*(p1[4]+p2[4]); p3 = controlPoint[5]; pm = controlPoint[2]; pm[0] = 0.25*(p1[0]+2*p2[0]+p3[0]); pm[1] = 0.25*(p1[1]+2*p2[1]+p3[1]); pm[2] = 0.25*(p1[2]+2*p2[2]+p3[2]); pm[3] = 0.25*(p1[3]+2*p2[3]+p3[3]); pm[4] = 0.25*(p1[4]+2*p2[4]+p3[4]); p1 = controlPoint[6]; p2 = controlPoint[5]; pm = controlPoint[5]; pm[0] = 0.5*(p1[0]+p2[0]); pm[1] = 0.5*(p1[1]+p2[1]); pm[2] = 0.5*(p1[2]+p2[2]); pm[3] = 0.5*(p1[3]+p2[3]); pm[4] = 0.5*(p1[4]+p2[4]); p1 = controlPoint[4]; p2 = controlPoint[5]; p3 = controlPoint[6]; pm = controlPoint[4]; pm[0] = 0.25*(p1[0]+4*p2[0]-p3[0]); pm[1] = 0.25*(p1[1]+4*p2[1]-p3[1]); pm[2] = 0.25*(p1[2]+4*p2[2]-p3[2]); pm[3] = 0.25*(p1[3]+4*p2[3]-p3[3]); pm[4] = 0.25*(p1[4]+4*p2[4]-p3[4]); p1 = controlPoint[2]; p2 = controlPoint[4]; pm = controlPoint[3]; pm[0] = 0.5*(p1[0]+p2[0]); pm[1] = 0.5*(p1[1]+p2[1]); pm[2] = 0.5*(p1[2]+p2[2]); pm[3] = 0.5*(p1[3]+p2[3]); pm[4] = 0.5*(p1[4]+p2[4]); /* The point in pm[] is a point located on the Bezier curve : it must be * added to the vertex array */ if (!__glcArrayInsert(data->vertexArray, rank+1, pm)) { GLC_ARRAY_LENGTH(data->controlPoints) = 0; return 1; } nArc++; /* A new arc has been defined */ } } /* The array of control points must be emptied in order to be ready for the * next call to the de Casteljau routine */ GLC_ARRAY_LENGTH(data->controlPoints) = 0; return 0; } /* Callback function that is called by the GLU when it is tesselating a * polygon. */ static void CALLBACK __glcCombineCallback(GLdouble coords[3], void* GLC_UNUSED_ARG(vertex_data[4]), GLfloat GLC_UNUSED_ARG(weight[4]), void** outData, void* inUserData) { __GLCrendererData *data = (__GLCrendererData*)inUserData; GLfloat vertex[2]; /* Evil hack for 32/64 bits compatibility */ union { void* ptr; GLuint i; } uintInPtr; /* Compute the new vertex and append it to the vertex array */ vertex[0] = (GLfloat)coords[0]; vertex[1] = (GLfloat)coords[1]; if (!__glcArrayAppend(data->vertexArray, vertex)) return; /* Returns the index of the new vertex in the vertex array */ uintInPtr.i = GLC_ARRAY_LENGTH(data->vertexArray)-1; *outData = uintInPtr.ptr; } /* Callback function that is called by the GLU when it is rendering the * tesselated polygon. This function is needed to convert the indices of the * vertex array into the coordinates of the vertex. */ static void CALLBACK __glcVertexCallback(void* vertex_data, void* inUserData) { __GLCrendererData *data = (__GLCrendererData*)inUserData; __GLCgeomBatch *geomBatch = ((__GLCgeomBatch*)GLC_ARRAY_DATA(data->geomBatches)); /* Evil hack for 32/64 bits compatibility */ union { void* ptr; GLuint i; } uintInPtr; geomBatch += GLC_ARRAY_LENGTH(data->geomBatches) - 1; uintInPtr.ptr = vertex_data; geomBatch->start = (uintInPtr.i < geomBatch->start) ? uintInPtr.i : geomBatch->start; geomBatch->end = (uintInPtr.i > geomBatch->end) ? uintInPtr.i : geomBatch->end; if (!__glcArrayAppend(data->vertexIndices, &uintInPtr.i)) return; geomBatch->length++; } static void CALLBACK __glcBeginCallback(GLenum mode, void* inUserData) { __GLCrendererData *data = (__GLCrendererData*)inUserData; __GLCgeomBatch geomBatch; geomBatch.mode = mode; geomBatch.length = 0; geomBatch.start = 0xffffffff; geomBatch.end = 0; __glcArrayAppend(data->geomBatches, &geomBatch); } /* Callback function that is called by the GLU whenever an error occur during * the tesselation of the polygon. */ static void CALLBACK __glcCallbackError(GLenum GLC_UNUSED_ARG(inErrorCode)) { __glcRaiseError(GLC_RESOURCE_ERROR); } /* Function called by __glcRenderChar() and that performs the actual rendering * for the GLC_LINE and the GLC_TRIANGLE types. It transforms the outlines of * the glyph in polygon contour. If the rendering type is GLC_LINE then the * contour is rendered as is and if the rendering type is GLC_TRIANGLE then the * contour defines a polygon that is tesselated in triangles by the GLU library * before being rendered. */ void __glcRenderCharScalable(__GLCfont* inFont, __GLCcontext* inContext, GLfloat* inTransformMatrix, GLfloat scale_x, GLfloat scale_y, __GLCglyph* inGlyph) { __GLCrendererData rendererData; GLfloat identityMatrix[16] = {1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1., 0., 0., 0., 0., 1.}; GLfloat sx64 = 64. * scale_x; GLfloat sy64 = 64. * scale_y; int objectIndex = 0; rendererData.vertexArray = inContext->vertexArray; rendererData.controlPoints = inContext->controlPoints; rendererData.endContour = inContext->endContour; rendererData.vertexIndices = inContext->vertexIndices; rendererData.geomBatches = inContext->geomBatches; /* If no display list is planned to be built then compute distances in pixels * otherwise use the object space. */ if (!inContext->enableState.glObjects) { GLint viewport[4]; glGetIntegerv(GL_VIEWPORT, viewport); rendererData.halfWidth = viewport[2] * 0.5; rendererData.halfHeight = viewport[3] * 0.5; rendererData.transformMatrix = inTransformMatrix; rendererData.transformMatrix[0] *= rendererData.halfWidth / sx64; rendererData.transformMatrix[4] *= rendererData.halfWidth / sy64; rendererData.transformMatrix[12] *= rendererData.halfWidth; rendererData.transformMatrix[1] *= rendererData.halfHeight / sx64; rendererData.transformMatrix[5] *= rendererData.halfHeight / sy64; rendererData.transformMatrix[13] *= rendererData.halfHeight; rendererData.transformMatrix[2] /= sx64; rendererData.transformMatrix[3] /= sx64; rendererData.transformMatrix[6] /= sy64; rendererData.transformMatrix[7] /= sy64; #if 0 rendererData.tolerance = .25; /* Half pixel tolerance */ #else rendererData.tolerance = 1.; /* Pixel tolerance */ #endif } else { /* Distances are computed in object space, so is the tolerance of the * de Casteljau algorithm. */ rendererData.tolerance = 0.005 * sqrt(scale_x*scale_x + scale_y*scale_y) / sx64 / sy64; rendererData.halfWidth = 0.5; rendererData.halfHeight = 0.5; rendererData.transformMatrix = identityMatrix; rendererData.transformMatrix[0] /= sx64; rendererData.transformMatrix[5] /= sy64; } /* Parse the outline of the glyph */ if (!__glcFontOutlineDecompose(inFont, &rendererData, inContext)) return; if (!__glcArrayAppend(rendererData.endContour, &GLC_ARRAY_LENGTH(rendererData.vertexArray))) goto reset; switch(inContext->renderState.renderStyle) { case GLC_LINE: objectIndex = 0; break; case GLC_TRIANGLE: objectIndex = inContext->enableState.extrude ? 3 : 2; break; } /* Prepare the display list compilation if needed */ if (inContext->enableState.glObjects) { if (GLEW_ARB_vertex_buffer_object && (inContext->renderState.renderStyle == GLC_LINE)) { glGenBuffersARB(1, &inGlyph->glObject[0]); if (!inGlyph->glObject[0]) { __glcRaiseError(GLC_RESOURCE_ERROR); goto reset; } glBindBufferARB(GL_ARRAY_BUFFER_ARB, inGlyph->glObject[0]); } else { inGlyph->glObject[objectIndex] = glGenLists(1); if (!inGlyph->glObject[objectIndex]) { __glcRaiseError(GLC_RESOURCE_ERROR); goto reset; } glNewList(inGlyph->glObject[objectIndex], GL_COMPILE); glScalef(1./sx64, 1./sy64, 1.); } } if (inContext->renderState.renderStyle == GLC_TRIANGLE) { /* Tesselate the polygon defined by the contour returned by * __glcFontOutlineDecompose(). */ GLUtesselator *tess = gluNewTess(); GLuint j = 0; int i = 0; GLuint* endContour = (GLuint*)GLC_ARRAY_DATA(rendererData.endContour); GLfloat (*vertexArray)[2] = (GLfloat(*)[2])GLC_ARRAY_DATA(rendererData.vertexArray); GLdouble coords[3] = {0., 0., 0.}; GLuint *vertexIndices = NULL; __GLCgeomBatch *geomBatch = NULL; /* Initialize the GLU tesselator */ gluTessProperty(tess, GLU_TESS_WINDING_RULE, GLU_TESS_WINDING_ODD); gluTessProperty(tess, GLU_TESS_BOUNDARY_ONLY, GL_FALSE); gluTessCallback(tess, GLU_TESS_ERROR, (void (CALLBACK *) (GLenum))__glcCallbackError); gluTessCallback(tess, GLU_TESS_VERTEX_DATA, (void (CALLBACK *) (void*, void*))__glcVertexCallback); gluTessCallback(tess, GLU_TESS_COMBINE_DATA, (void (CALLBACK *) (GLdouble[3], void*[4], GLfloat[4], void**, void*)) __glcCombineCallback); gluTessCallback(tess, GLU_TESS_BEGIN_DATA, (void (CALLBACK *) (GLenum, void*))__glcBeginCallback); gluTessNormal(tess, 0., 0., 1.); /* Define the polygon geometry */ gluTessBeginPolygon(tess, &rendererData); for (i = 0; i < GLC_ARRAY_LENGTH(rendererData.endContour)-1; i++) { /* Evil hack for 32/64 bits compatibility */ union { void* ptr; GLuint i; } uintInPtr; gluTessBeginContour(tess); for (j = endContour[i]; j < endContour[i+1]; j++) { coords[0] = (GLdouble)vertexArray[j][0]; coords[1] = (GLdouble)vertexArray[j][1]; uintInPtr.i = j; gluTessVertex(tess, coords, uintInPtr.ptr); } gluTessEndContour(tess); } /* Close the polygon and run the tesselation */ gluTessEndPolygon(tess); /* Free memory */ gluDeleteTess(tess); glVertexPointer(2, GL_FLOAT, 0, GLC_ARRAY_DATA(rendererData.vertexArray)); glNormal3f(0.f, 0.f, 1.f); vertexIndices = (GLuint*)GLC_ARRAY_DATA(rendererData.vertexIndices); geomBatch = (__GLCgeomBatch*)GLC_ARRAY_DATA(rendererData.geomBatches); for (i = 0; i < GLC_ARRAY_LENGTH(rendererData.geomBatches); i++) { glDrawRangeElements(geomBatch[i].mode, geomBatch[i].start, geomBatch[i].end, geomBatch[i].length, GL_UNSIGNED_INT, (void*)vertexIndices); vertexIndices += geomBatch[i].length; } /* For extruded glyphes : render the other side and close the contours */ if (inContext->enableState.extrude) { GLfloat ax = 0.f, bx = 0.f, ay = 0.f, by = 0.f; GLfloat nx = 0.f, ny = 0.f, n0x = 0.f, n0y = 0.f, length = 0.f; glTranslatef(0.0f, 0.0f, -1.0f); glNormal3f(0.f, 0.f, -1.f); vertexIndices = (GLuint*)GLC_ARRAY_DATA(rendererData.vertexIndices); for (i = 0; i < GLC_ARRAY_LENGTH(rendererData.geomBatches); i++) { glDrawRangeElements(geomBatch[i].mode, geomBatch[i].start, geomBatch[i].end, geomBatch[i].length, GL_UNSIGNED_INT, (void*)vertexIndices); vertexIndices += geomBatch[i].length; } glTranslatef(0.0f, 0.0f, 1.0f); for (i = 0; i < GLC_ARRAY_LENGTH(rendererData.endContour)-1; i++) { glBegin(GL_TRIANGLE_STRIP); for (j = endContour[i]; j < endContour[i+1]; j++) { if (j == endContour[i]) { ax = vertexArray[endContour[i+1]-1][0]; ay = vertexArray[endContour[i+1]-1][1]; bx = vertexArray[j+1][0]; by = vertexArray[j+1][1]; n0x = ay - by; n0y = bx - ax; } else if (j == (endContour[i+1] - 1)) { ax = vertexArray[j-1][0]; ay = vertexArray[j-1][1]; bx = vertexArray[endContour[i]][0]; by = vertexArray[endContour[i]][1]; } else { ax = vertexArray[j-1][0]; ay = vertexArray[j-1][1]; bx = vertexArray[j+1][0]; by = vertexArray[j+1][1]; } nx = ay - by; ny = bx - ax; length = sqrt(nx*nx + ny*ny); glNormal3f(nx/length, ny/length, 0.f); glVertex2fv(vertexArray[j]); glVertex3f(vertexArray[j][0], vertexArray[j][1], -1.f); } length = sqrt(n0x*n0x + n0y*n0y); glNormal3f(n0x/length, n0y/length, 0.f); glVertex2fv(vertexArray[endContour[i]]); glVertex3f(vertexArray[endContour[i]][0], vertexArray[endContour[i]][1], -1.f); glEnd(); } } } else { /* For GLC_LINE, there is no need to tesselate. The vertices are contained * in an array so we use the OpenGL function glDrawArrays(). */ int i = 0; int* endContour = (int*)GLC_ARRAY_DATA(rendererData.endContour); glNormal3f(0.f, 0.f, 1.f); if (inContext->enableState.glObjects && GLEW_ARB_vertex_buffer_object) { GLfloat (*vertexArray)[2] = (GLfloat(*)[2])GLC_ARRAY_DATA(rendererData.vertexArray); inGlyph->nContour = GLC_ARRAY_LENGTH(rendererData.endContour) - 1; inGlyph->contours = (GLint*)__glcMalloc(GLC_ARRAY_SIZE(rendererData.endContour)); if (!inGlyph->contours) { __glcRaiseError(GLC_RESOURCE_ERROR); goto reset; } memcpy(inGlyph->contours, GLC_ARRAY_DATA(rendererData.endContour), GLC_ARRAY_SIZE(rendererData.endContour)); for (i = 0; i < GLC_ARRAY_LENGTH(rendererData.vertexArray); i++) { vertexArray[i][0] /= sx64; vertexArray[i][1] /= sy64; } glBufferDataARB(GL_ARRAY_BUFFER_ARB, GLC_ARRAY_SIZE(rendererData.vertexArray), GLC_ARRAY_DATA(rendererData.vertexArray), GL_STATIC_DRAW_ARB); glVertexPointer(2, GL_FLOAT, 0, NULL); } else glVertexPointer(2, GL_FLOAT, 0, GLC_ARRAY_DATA(rendererData.vertexArray)); for (i = 0; i < GLC_ARRAY_LENGTH(rendererData.endContour)-1; i++) glDrawArrays(GL_LINE_LOOP, endContour[i], endContour[i+1]-endContour[i]); } if (inContext->enableState.glObjects) { if (!GLEW_ARB_vertex_buffer_object || (inContext->renderState.renderStyle != GLC_LINE)) { glScalef(sx64, sy64, 1.); glEndList(); glCallList(inGlyph->glObject[objectIndex]); } } reset: GLC_ARRAY_LENGTH(inContext->vertexArray) = 0; GLC_ARRAY_LENGTH(inContext->endContour) = 0; GLC_ARRAY_LENGTH(inContext->vertexIndices) = 0; GLC_ARRAY_LENGTH(inContext->geomBatches) = 0; } quesoglc-0.7.2/src/ofacedesc.h0000644000175000017500000000756111076453221013151 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: ofacedesc.h 838 2008-10-18 21:35:03Z bcoconni $ */ /** \file * header of the object __GLCfaceDescriptor that contains the description of a * face. */ #ifndef __glc_ofacedesc_h #define __glc_ofacedesc_h #include "omaster.h" typedef struct __GLCrendererDataRec __GLCrendererData; typedef struct __GLCfaceDescriptorRec __GLCfaceDescriptor; struct __GLCfaceDescriptorRec { FT_ListNodeRec node; FcPattern* pattern; FT_Face face; #ifndef GLC_FT_CACHE int faceRefCount; #endif FT_ListRec glyphList; }; __GLCfaceDescriptor* __glcFaceDescCreate(__GLCmaster* inMaster, const GLCchar8* inFace, __GLCcontext* inContext, GLint inCode); void __glcFaceDescDestroy(__GLCfaceDescriptor* This, __GLCcontext* inContext); #ifndef GLC_FT_CACHE FT_Face __glcFaceDescOpen(__GLCfaceDescriptor* This, __GLCcontext* inContext); void __glcFaceDescClose(__GLCfaceDescriptor* This); #endif __GLCglyph* __glcFaceDescGetGlyph(__GLCfaceDescriptor* This, GLint inCode, __GLCcontext* inContext); void __glcFaceDescDestroyGLObjects(__GLCfaceDescriptor* This, __GLCcontext* inContext); GLboolean __glcFaceDescPrepareGlyph(__GLCfaceDescriptor* This, __GLCcontext* inContext, GLfloat inScaleX, GLfloat inScaleY, GLCulong inGlyphIndex); GLfloat* __glcFaceDescGetBoundingBox(__GLCfaceDescriptor* This, GLCulong inGlyphIndex, GLfloat* outVec, GLfloat inScaleX, GLfloat inScaleY, __GLCcontext* inContext); GLfloat* __glcFaceDescGetAdvance(__GLCfaceDescriptor* This, GLCulong inGlyphIndex, GLfloat* outVec, GLfloat inScaleX, GLfloat inScaleY, __GLCcontext* inContext); const GLCchar8* __glcFaceDescGetFontFormat(__GLCfaceDescriptor* This, __GLCcontext* inContext, GLCenum inAttrib); GLfloat* __glcFaceDescGetMaxMetric(__GLCfaceDescriptor* This, GLfloat* outVec, __GLCcontext* inContext); GLfloat* __glcFaceDescGetKerning(__GLCfaceDescriptor* This, GLCuint inGlyphIndex, GLCuint inPrevGlyphIndex, GLfloat inScaleX, GLfloat inScaleY, GLfloat* outVec, __GLCcontext* inContext); GLCchar8* __glcFaceDescGetStyleName(__GLCfaceDescriptor* This); GLboolean __glcFaceDescIsFixedPitch(__GLCfaceDescriptor* This); GLboolean __glcFaceDescOutlineDecompose(__GLCfaceDescriptor* This, __GLCrendererData* inData, __GLCcontext* inContext); GLboolean __glcFaceDescGetBitmapSize(__GLCfaceDescriptor* This, GLint* outWidth, GLint *outHeight, GLfloat inScaleX, GLfloat inScaleY, GLint* outPixBoundingBox, int inFactor, __GLCcontext* inContext); GLboolean __glcFaceDescGetBitmap(__GLCfaceDescriptor* This, GLint inWidth, GLint inHeight, void* inBuffer, __GLCcontext* inContext); GLboolean __glcFaceDescOutlineEmpty(__GLCfaceDescriptor* This); __GLCcharMap* __glcFaceDescGetCharMap(__GLCfaceDescriptor* This, __GLCcontext* inContext); #endif /* __glc_ofacedesc_h */ quesoglc-0.7.2/src/oglyph.c0000644000175000017500000001263511103322355012522 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: oglyph.c 849 2008-11-02 13:02:23Z bcoconni $ */ /* Defines the methods of an object that is intended to managed glyphs */ /** \file * defines the object __GLCglyph which caches all the data needed for a given * glyph : display list, texture, bounding box, advance, index in the font * file, etc. */ #include "internal.h" #include "texture.h" /* Constructor of the object : it allocates memory and initializes the member * of the new object. * The user must give the index of the glyph in the font file and its Unicode * codepoint. */ __GLCglyph* __glcGlyphCreate(GLCulong inIndex, GLCulong inCode) { __GLCglyph* This = NULL; This = (__GLCglyph*)__glcMalloc(sizeof(__GLCglyph)); if (!This) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } This->node.prev = NULL; This->node.next = NULL; This->node.data = This; This->index = inIndex; This->codepoint = inCode; This->isSpacingChar = GL_FALSE; This->textureObject = NULL; This->nContour = 0; This->contours = NULL; /* A display list for each rendering mode (except GLC_BITMAP) may be built */ memset(This->glObject, 0, 4 * sizeof(GLuint)); memset(This->boundingBox, 0, 4 * sizeof(GLfloat)); memset(This->advance, 0, 2 * sizeof(GLfloat)); This->advanceCached = GL_FALSE; This->boundingBoxCached = GL_FALSE; return This; } /* Destructor of the object */ void __glcGlyphDestroy(__GLCglyph* This, __GLCcontext* inContext) { __glcGlyphDestroyGLObjects(This, inContext); __glcFree(This); } /* Remove all GL objects related to the texture of the glyph */ void __glcGlyphDestroyTexture(__GLCglyph* This, __GLCcontext* inContext) { if (!inContext->isInGlobalCommand && !GLEW_ARB_vertex_buffer_object) glDeleteLists(This->glObject[1], 1); This->glObject[1] = 0; This->textureObject = NULL; } /* This function destroys the display lists and the texture objects that * are associated with a glyph. */ void __glcGlyphDestroyGLObjects(__GLCglyph* This, __GLCcontext* inContext) { if (This->glObject[1]) { __glcReleaseAtlasElement(This->textureObject, inContext); __glcGlyphDestroyTexture(This, inContext); } if (!inContext->isInGlobalCommand) { if (This->glObject[0]) { if (GLEW_ARB_vertex_buffer_object) { glDeleteBuffersARB(1, &This->glObject[0]); if (This->contours) __glcFree(This->contours); This->nContour = 0; This->contours = NULL; } else glDeleteLists(This->glObject[0], 1); } if (This->glObject[2]) glDeleteLists(This->glObject[2], 1); if (This->glObject[3]) glDeleteLists(This->glObject[3], 1); memset(This->glObject, 0, 4 * sizeof(GLuint)); } } /* Returns the number of display that has been built for a glyph */ int __glcGlyphGetDisplayListCount(__GLCglyph* This) { int i = 0; int count = 0; for (i = GLEW_ARB_vertex_buffer_object ? 2 : 0; i < 4; i++) { if (This->glObject[i]) count++; } return count; } /* Returns the ID of the inCount-th display list that has been built for a * glyph. */ GLuint __glcGlyphGetDisplayList(__GLCglyph* This, int inCount) { int i = 0; assert(inCount >= 0); assert(inCount < __glcGlyphGetDisplayListCount(This)); for (i = GLEW_ARB_vertex_buffer_object ? 2 : 0; i < 4; i++) { GLuint displayList = This->glObject[i]; if (displayList) { if (!inCount) return displayList; inCount--; } } /* The program is not supposed to reach the end of the function. * The following return is there to prevent the compiler to issue * a warning about 'control reaching the end of a non-void function'. */ return 0xdeadbeef; } /* Returns the number of buffer objects that has been built for a glyph */ int __glcGlyphGetBufferObjectCount(__GLCglyph* This) { int i = 0; int count = 0; assert(GLEW_ARB_vertex_buffer_object); for (i = 0; i < 1; i++) { if (This->glObject[i]) count++; } return count; } /* Returns the ID of the inCount-th buffer object that has been built for a * glyph. */ GLuint __glcGlyphGetBufferObject(__GLCglyph* This, int inCount) { int i = 0; assert(GLEW_ARB_vertex_buffer_object); assert(inCount >= 0); assert(inCount < __glcGlyphGetBufferObjectCount(This)); for (i = 0; i < 1; i++) { GLuint bufferObject = This->glObject[i]; if (bufferObject) { if (!inCount) return bufferObject; inCount--; } } /* The program is not supposed to reach the end of the function. * The following return is there to prevent the compiler to issue * a warning about 'control reaching the end of a non-void function'. */ return 0xdeadbeef; } quesoglc-0.7.2/src/ocharmap.h0000644000175000017500000000422411021606607013016 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: ocharmap.h 800 2008-06-04 21:47:50Z bcoconni $ */ /** \file * header of the object __GLCcharMap which manage the charmaps of both the fonts * and the masters. */ #ifndef __glc_ocharmap_h #define __glc_ocharmap_h #include "ocontext.h" #include "oglyph.h" typedef struct __GLCcharMapElementRec __GLCcharMapElement; typedef struct __GLCcharMapRec __GLCcharMap; typedef struct __GLCmasterRec __GLCmaster; struct __GLCcharMapElementRec { GLCulong mappedCode; __GLCglyph* glyph; }; struct __GLCcharMapRec { FcCharSet* charSet; __GLCarray* map; }; __GLCcharMap* __glcCharMapCreate(__GLCmaster* inMaster, __GLCcontext* inContext); void __glcCharMapDestroy(__GLCcharMap* This); void __glcCharMapAddChar(__GLCcharMap* This, GLint inCode, __GLCglyph* inGlyph); void __glcCharMapRemoveChar(__GLCcharMap* This, GLint inCode); const GLCchar8* __glcCharMapGetCharName(__GLCcharMap* This, GLint inCode); __GLCglyph* __glcCharMapGetGlyph(__GLCcharMap* This, GLint inCode); GLboolean __glcCharMapHasChar(__GLCcharMap* This, GLint inCode); const GLCchar8* __glcCharMapGetCharNameByIndex(__GLCcharMap* This, GLint inIndex); GLint __glcCharMapGetCount(__GLCcharMap* This); GLint __glcCharMapGetMaxMappedCode(__GLCcharMap* This); GLint __glcCharMapGetMinMappedCode(__GLCcharMap* This); #endif quesoglc-0.7.2/src/except.c0000644000175000017500000001332510764574550012527 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: except.c 621 2007-03-31 18:05:49Z bcoconni $ */ /** \file * defines the functions needed for cleanup stack exception handling (CSEH) * which concept is described in details at * http://www.freetype.org/david/reliable-c.html */ #include "internal.h" #include "except.h" #include #include #include FT_FREETYPE_H #include FT_LIST_H /* Unhandled exceptions (when area->exceptionStack.tail == NULL) * still need to be implemented. Such situations can occur if an exception * is thrown out of a try/catch block. */ typedef struct __GLCcleanupStackNodeRec __GLCcleanupStackNode; typedef struct __GLCexceptContextRec __GLCexceptContext; struct __GLCcleanupStackNodeRec { FT_ListNodeRec node; void (*destructor) (void *); void *data; }; struct __GLCexceptContextRec { FT_ListNodeRec node; __glcException exception; FT_ListRec cleanupStack; jmp_buf env; }; /* Create a context for exception handling */ jmp_buf* __glcExceptionCreateContext(void) { __GLCthreadArea *area = NULL; __GLCexceptContext *xContext = NULL; area = GLC_GET_THREAD_AREA(); assert(area); xContext = (__GLCexceptContext*)malloc(sizeof(__GLCexceptContext)); if (!xContext) { area->failedTry = GLC_MEMORY_EXC; return NULL; } xContext->exception = GLC_NO_EXC; xContext->cleanupStack.head = NULL; xContext->cleanupStack.tail = NULL; FT_List_Add(&area->exceptionStack, (FT_ListNode)xContext); return &xContext->env; } /* Destroy the last context for exception handling */ void __glcExceptionReleaseContext(void) { __GLCthreadArea *area = NULL; __GLCexceptContext *xContext = NULL; area = GLC_GET_THREAD_AREA(); assert(area); xContext = (__GLCexceptContext*)area->exceptionStack.tail; assert(xContext); /* The cleanup stack must be empty */ assert(!xContext->cleanupStack.head); assert(!xContext->cleanupStack.tail); FT_List_Remove(&area->exceptionStack, (FT_ListNode)xContext); free(xContext); } /* Keep track of data to be destroyed in case of */ void __glcExceptionPush(void (*destructor)(void*), void *data) { __GLCthreadArea *area = NULL; __GLCexceptContext *xContext = NULL; __GLCcleanupStackNode *stackNode = NULL; area = GLC_GET_THREAD_AREA(); assert(area); xContext = (__GLCexceptContext*)area->exceptionStack.tail; assert(xContext); stackNode = (__GLCcleanupStackNode*) malloc(sizeof(__GLCcleanupStackNode)); if (!stackNode) { destructor(data); THROW(GLC_MEMORY_EXC); } stackNode->destructor = destructor; stackNode->data = data; FT_List_Add(&xContext->cleanupStack, (FT_ListNode)stackNode); } /* Remove the last entry of the cleanup stack, eventually destroying the * corresponding data if destroy != 0 */ void __glcExceptionPop(int destroy) { __GLCthreadArea *area = NULL; __GLCexceptContext *xContext = NULL; __GLCcleanupStackNode *stackNode = NULL; area = GLC_GET_THREAD_AREA(); assert(area); xContext = (__GLCexceptContext*)area->exceptionStack.tail; assert(xContext); stackNode = (__GLCcleanupStackNode*)xContext->cleanupStack.tail; assert(stackNode); if (destroy) { assert(stackNode->destructor); assert(stackNode->data); stackNode->destructor(stackNode->data); } FT_List_Remove(&xContext->cleanupStack, (FT_ListNode)stackNode); free(stackNode); } /* Empty the cleanup stack and destroy the corresponding data if * destroy != 0 */ void __glcExceptionUnwind(int destroy) { __GLCthreadArea *area = NULL; __GLCexceptContext *xContext = NULL; FT_ListNode next = NULL; __GLCcleanupStackNode *stackNode = NULL; area = GLC_GET_THREAD_AREA(); assert(area); xContext = (__GLCexceptContext*)area->exceptionStack.tail; assert(xContext); stackNode = (__GLCcleanupStackNode*)xContext->cleanupStack.head; while (stackNode) { next = stackNode->node.next; if (destroy) { assert(stackNode->destructor); assert(stackNode->data); stackNode->destructor(stackNode->data); } free(stackNode); stackNode = (__GLCcleanupStackNode*)next; } xContext->cleanupStack.head = NULL; xContext->cleanupStack.tail = NULL; } /* Throw an exception */ jmp_buf* __glcExceptionThrow(__glcException exception) { __GLCthreadArea *area = NULL; __GLCexceptContext *xContext = NULL; area = GLC_GET_THREAD_AREA(); assert(area); xContext = (__GLCexceptContext*)area->exceptionStack.tail; assert(xContext); xContext->exception = exception; return &xContext->env; } /* Rethrow an exception that has already been catched */ __glcException __glcExceptionCatch(void) { __GLCthreadArea *area = NULL; __GLCexceptContext *xContext = NULL; area = GLC_GET_THREAD_AREA(); assert(area); if (area->failedTry) { __glcException exc = area->failedTry; area->failedTry = GLC_NO_EXC; return exc; } xContext = (__GLCexceptContext*)area->exceptionStack.tail; assert(xContext); return xContext->exception; } quesoglc-0.7.2/src/omaster.c0000644000175000017500000004155511047365571012713 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: omaster.c 824 2008-08-09 19:09:36Z bcoconni $ */ /** \file * defines the object __GLCmaster which manage the masters */ #include "internal.h" #include /* Constructor of the object : it allocates memory and initializes the member * of the new object. */ __GLCmaster* __glcMasterCreate(GLint inMaster, __GLCcontext* inContext) { __GLCmaster* This = NULL; GLCchar32 hashValue = ((GLCchar32*)GLC_ARRAY_DATA(inContext->masterHashTable))[inMaster]; FcObjectSet* objectSet = NULL; FcFontSet *fontSet = NULL; FcPattern *pattern = NULL; int i = 0; /* Use Fontconfig to get the default font files */ pattern = FcPatternCreate(); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } objectSet = FcObjectSetBuild(FC_FAMILY, FC_FOUNDRY, FC_OUTLINE, FC_SPACING, NULL); if (!objectSet) { __glcRaiseError(GLC_RESOURCE_ERROR); FcPatternDestroy(pattern); return NULL; } fontSet = FcFontList(inContext->config, pattern, objectSet); FcObjectSetDestroy(objectSet); FcPatternDestroy(pattern); if (!fontSet) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } /* Parse the font set looking for a font with an outline and which hash value * matches the hash value of the master we are looking for. */ for (i = 0; i < fontSet->nfont; i++) { FcBool outline = FcFalse; FcResult result = FcResultMatch; FcChar8* family = NULL; int fixed = 0; FcChar8* foundry = NULL; result = FcPatternGetBool(fontSet->fonts[i], FC_OUTLINE, 0, &outline); assert(result != FcResultTypeMismatch); if (!outline) continue; result = FcPatternGetString(fontSet->fonts[i], FC_FAMILY, 0, &family); assert(result != FcResultTypeMismatch); result = FcPatternGetString(fontSet->fonts[i], FC_FOUNDRY, 0, &foundry); assert(result != FcResultTypeMismatch); result = FcPatternGetInteger(fontSet->fonts[i], FC_SPACING, 0, &fixed); assert(result != FcResultTypeMismatch); if (foundry) pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_FOUNDRY, FcTypeString, foundry, FC_SPACING, FcTypeInteger, fixed, NULL); else pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_SPACING, FcTypeInteger, fixed, NULL); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); FcFontSetDestroy(fontSet); return NULL; } if (hashValue == FcPatternHash(pattern)) break; FcPatternDestroy(pattern); } assert(i < fontSet->nfont); FcFontSetDestroy(fontSet); This = (__GLCmaster*)__glcMalloc(sizeof(__GLCmaster)); if (!This) { __glcRaiseError(GLC_RESOURCE_ERROR); FcPatternDestroy(pattern); return NULL; } /* Duplicate the pattern of the found font (otherwise it will be deleted with * the font set). */ This->pattern = pattern; return This; } /* Destructor of the object */ void __glcMasterDestroy(__GLCmaster* This) { FcPatternDestroy(This->pattern); __glcFree(This); } /* Get the style name of the face identified by inIndex */ GLCchar8* __glcMasterGetFaceName(__GLCmaster* This, __GLCcontext* inContext, GLint inIndex) { FcObjectSet* objectSet = NULL; FcFontSet *fontSet = NULL; FcResult result = FcResultMatch; GLCchar8* string = NULL; GLCchar8* faceName; int i = 0; FcPattern* pattern = FcPatternCreate(); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } objectSet = FcObjectSetBuild(FC_FAMILY, FC_FOUNDRY, FC_SPACING, FC_OUTLINE, FC_STYLE, NULL); if (!objectSet) { __glcRaiseError(GLC_RESOURCE_ERROR); FcPatternDestroy(pattern); return NULL; } fontSet = FcFontList(inContext->config, pattern, objectSet); FcObjectSetDestroy(objectSet); FcPatternDestroy(pattern); if (!fontSet) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } for (i = 0; i < fontSet->nfont; i++) { FcChar8* family = NULL; int fixed = 0; FcChar8* foundry = NULL; FcBool outline = FcFalse; FcBool equal = FcFalse; /* Check whether the glyphs are outlines */ result = FcPatternGetBool(fontSet->fonts[i], FC_OUTLINE, 0, &outline); assert(result != FcResultTypeMismatch); if (!outline) continue; result = FcPatternGetString(fontSet->fonts[i], FC_FAMILY, 0, &family); assert(result != FcResultTypeMismatch); result = FcPatternGetString(fontSet->fonts[i], FC_FOUNDRY, 0, &foundry); assert(result != FcResultTypeMismatch); result = FcPatternGetInteger(fontSet->fonts[i], FC_SPACING, 0, &fixed); assert(result != FcResultTypeMismatch); if (foundry) pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_FOUNDRY, FcTypeString, foundry, FC_SPACING, FcTypeInteger, fixed, NULL); else pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_SPACING, FcTypeInteger, fixed, NULL); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); FcFontSetDestroy(fontSet); return NULL; } equal = FcPatternEqual(pattern, This->pattern); FcPatternDestroy(pattern); if (equal) { if (inIndex) inIndex--; else break; } } if (i == fontSet->nfont) { __glcRaiseError(GLC_PARAMETER_ERROR); FcFontSetDestroy(fontSet); return NULL; } result = FcPatternGetString(fontSet->fonts[i], FC_STYLE, 0, &string); assert(result != FcResultTypeMismatch); #ifdef __WIN32__ faceName = (GLCchar8*)_strdup((const char*)string); #else faceName = (GLCchar8*)strdup((const char*)string); #endif FcFontSetDestroy(fontSet); if (!faceName) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } return faceName; } /* Is this a fixed font ? */ GLboolean __glcMasterIsFixedPitch(__GLCmaster* This) { FcResult result = FcResultMatch; int fixed = 0; result = FcPatternGetInteger(This->pattern, FC_SPACING, 0, &fixed); assert(result != FcResultTypeMismatch); return fixed ? GL_TRUE: GL_FALSE; } /* Get the face coutn of the master */ GLint __glcMasterFaceCount(__GLCmaster* This, __GLCcontext* inContext) { FcObjectSet* objectSet = NULL; FcFontSet *fontSet = NULL; GLint count = 0; int i = 0; FcPattern* pattern = FcPatternCreate(); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); return 0; } objectSet = FcObjectSetBuild(FC_FAMILY, FC_FOUNDRY, FC_SPACING, FC_OUTLINE, FC_STYLE, NULL); if (!objectSet) { __glcRaiseError(GLC_RESOURCE_ERROR); FcPatternDestroy(pattern); return 0; } fontSet = FcFontList(inContext->config, pattern, objectSet); FcObjectSetDestroy(objectSet); FcPatternDestroy(pattern); if (!fontSet) { __glcRaiseError(GLC_RESOURCE_ERROR); return 0; } for (i = 0; i < fontSet->nfont; i++) { FcChar8* family = NULL; int fixed = 0; FcChar8* foundry = NULL; FcBool outline = FcFalse; FcResult result = FcResultMatch; FcBool equal = FcFalse; /* Check whether the glyphs are outlines */ result = FcPatternGetBool(fontSet->fonts[i], FC_OUTLINE, 0, &outline); assert(result != FcResultTypeMismatch); if (!outline) continue; result = FcPatternGetString(fontSet->fonts[i], FC_FAMILY, 0, &family); assert(result != FcResultTypeMismatch); result = FcPatternGetString(fontSet->fonts[i], FC_FOUNDRY, 0, &foundry); assert(result != FcResultTypeMismatch); result = FcPatternGetInteger(fontSet->fonts[i], FC_SPACING, 0, &fixed); assert(result != FcResultTypeMismatch); if (foundry) pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_FOUNDRY, FcTypeString, foundry, FC_SPACING, FcTypeInteger, fixed, NULL); else pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_SPACING, FcTypeInteger, fixed, NULL); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); FcFontSetDestroy(fontSet); return 0; } equal = FcPatternEqual(pattern, This->pattern); FcPatternDestroy(pattern); if (equal) count++; } FcFontSetDestroy(fontSet); return count; } /* This subroutine is called whenever the user wants to access to informations * that have not been loaded from the font files yet. In order to reduce disk * accesses, informations such as the master format, full name or version are * read "just in time" i.e. only when the user requests them. */ const GLCchar8* __glcMasterGetInfo(__GLCmaster* This, __GLCcontext* inContext, GLCenum inAttrib) { __GLCfaceDescriptor* faceDesc = NULL; FcResult result = FcResultMatch; GLCchar8 *string = NULL; const GLCchar8* info = NULL; const GLCchar8 *buffer = NULL; /* Get the Unicode string which corresponds to the requested attribute */ switch(inAttrib) { case GLC_FAMILY: result = FcPatternGetString(This->pattern, FC_FAMILY, 0, &string); assert(result != FcResultTypeMismatch); return string; case GLC_VENDOR: result = FcPatternGetString(This->pattern, FC_FOUNDRY, 0, &string); assert(result != FcResultTypeMismatch); return string; case GLC_VERSION: case GLC_FULL_NAME_SGI: case GLC_MASTER_FORMAT: faceDesc = __glcFaceDescCreate(This, NULL, inContext, 0); if (!faceDesc) return NULL; #ifndef GLC_FT_CACHE if (!__glcFaceDescOpen(faceDesc, inContext)) { __glcFaceDescDestroy(faceDesc, inContext); return NULL; } #endif info = __glcFaceDescGetFontFormat(faceDesc, inContext, inAttrib); if (info) { /* Convert the string and store it in the context buffer */ buffer = (const GLCchar8*)__glcConvertFromUtf8ToBuffer(inContext, info, inContext->stringState.stringType); } else __glcRaiseError(GLC_RESOURCE_ERROR); if (faceDesc) { #ifndef GLC_FT_CACHE __glcFaceDescClose(faceDesc); #endif __glcFaceDescDestroy(faceDesc, inContext); } return buffer; } /* The program is not supposed to reach the end of the function. * The following return is there to prevent the compiler to issue * a warning about 'control reaching the end of a non-void function'. */ return (const GLCchar8*)""; } /* Create a master on the basis of the family name */ __GLCmaster* __glcMasterFromFamily(__GLCcontext* inContext, GLCchar8* inFamily) { FcObjectSet* objectSet = NULL; FcFontSet *fontSet = NULL; int i = 0; FcPattern* pattern = FcPatternCreate(); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } objectSet = FcObjectSetBuild(FC_FAMILY, FC_FOUNDRY, FC_OUTLINE, FC_SPACING, NULL); if (!objectSet) { __glcRaiseError(GLC_RESOURCE_ERROR); FcPatternDestroy(pattern); return NULL; } fontSet = FcFontList(inContext->config, pattern, objectSet); FcObjectSetDestroy(objectSet); FcPatternDestroy(pattern); if (!fontSet) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } for (i = 0; i < fontSet->nfont; i++) { FcBool outline = FcFalse; FcResult result = FcResultMatch; FcChar8* family = NULL; int fixed = 0; FcChar8* foundry = NULL; result = FcPatternGetBool(fontSet->fonts[i], FC_OUTLINE, 0, &outline); assert(result != FcResultTypeMismatch); if (!outline) continue; result = FcPatternGetString(fontSet->fonts[i], FC_FAMILY, 0, &family); assert(result != FcResultTypeMismatch); if (strcmp((const char*)family, (const char*)inFamily)) continue; result = FcPatternGetString(fontSet->fonts[i], FC_FOUNDRY, 0, &foundry); assert(result != FcResultTypeMismatch); result = FcPatternGetInteger(fontSet->fonts[i], FC_SPACING, 0, &fixed); assert(result != FcResultTypeMismatch); if (foundry) pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_FOUNDRY, FcTypeString, foundry, FC_SPACING, FcTypeInteger, fixed, NULL); else pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_SPACING, FcTypeInteger, fixed, NULL); if (pattern) { __GLCmaster* This = (__GLCmaster*)__glcMalloc(sizeof(__GLCmaster)); if (!This) { __glcRaiseError(GLC_RESOURCE_ERROR); FcFontSetDestroy(fontSet); return NULL; } This->pattern = pattern; FcFontSetDestroy(fontSet); return This; } } __glcRaiseError(GLC_RESOURCE_ERROR); FcFontSetDestroy(fontSet); return NULL; } /* Create a master which contains at least a font which math the character * identified by inCode. */ __GLCmaster* __glcMasterMatchCode(__GLCcontext* inContext, GLint inCode) { __GLCmaster* This = NULL; FcPattern* pattern = NULL; FcFontSet* fontSet = NULL; FcFontSet* fontSet2 = NULL; FcObjectSet* objectSet = NULL; FcResult result = FcResultMatch; int f = 0; FcChar8* family = NULL; int fixed = 0; FcChar8* foundry = NULL; FcCharSet* charSet = FcCharSetCreate(); if (!charSet) return NULL; if (!FcCharSetAddChar(charSet, inCode)) { FcCharSetDestroy(charSet); return NULL; } pattern = FcPatternBuild(NULL, FC_CHARSET, FcTypeCharSet, charSet, FC_OUTLINE, FcTypeBool, FcTrue, NULL); FcCharSetDestroy(charSet); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } if (!FcConfigSubstitute(inContext->config, pattern, FcMatchPattern)) { __glcRaiseError(GLC_RESOURCE_ERROR); FcPatternDestroy(pattern); return NULL; } FcDefaultSubstitute(pattern); fontSet = FcFontSort(inContext->config, pattern, FcFalse, NULL, &result); FcPatternDestroy(pattern); if ((!fontSet) || (result == FcResultTypeMismatch)) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } for (f = 0; f < fontSet->nfont; f++) { FcBool outline = FcFalse; result = FcPatternGetBool(fontSet->fonts[f], FC_OUTLINE, 0, &outline); assert(result != FcResultTypeMismatch); result = FcPatternGetCharSet(fontSet->fonts[f], FC_CHARSET, 0, &charSet); assert(result != FcResultTypeMismatch); if (outline && FcCharSetHasChar(charSet, inCode)) break; } if (f == fontSet->nfont) { FcFontSetDestroy(fontSet); return NULL; } /* Ugly hack to extract a subset of the pattern fontSet->fonts[f] * (otherwise the hash value will not match any value of the hash table). */ objectSet = FcObjectSetBuild(FC_FAMILY, FC_FOUNDRY, FC_OUTLINE, FC_SPACING, NULL); if (!objectSet) { __glcRaiseError(GLC_RESOURCE_ERROR); FcFontSetDestroy(fontSet); return NULL; } fontSet2 = FcFontList(inContext->config, fontSet->fonts[f], objectSet); FcObjectSetDestroy(objectSet); if (!fontSet2) { __glcRaiseError(GLC_RESOURCE_ERROR); FcFontSetDestroy(fontSet); return NULL; } assert(fontSet2->nfont); This = (__GLCmaster*)__glcMalloc(sizeof(__GLCmaster)); if (!This) { __glcRaiseError(GLC_RESOURCE_ERROR); FcFontSetDestroy(fontSet); FcFontSetDestroy(fontSet2); return NULL; } /* Duplicate the pattern of the found font (otherwise it will be deleted with * the font set). */ result = FcPatternGetString(fontSet2->fonts[0], FC_FAMILY, 0, &family); assert(result != FcResultTypeMismatch); result = FcPatternGetString(fontSet2->fonts[0], FC_FOUNDRY, 0, &foundry); assert(result != FcResultTypeMismatch); result = FcPatternGetInteger(fontSet2->fonts[0], FC_SPACING, 0, &fixed); assert(result != FcResultTypeMismatch); if (foundry) pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_FOUNDRY, FcTypeString, foundry, FC_SPACING, FcTypeInteger, fixed, NULL); else pattern = FcPatternBuild(NULL, FC_FAMILY, FcTypeString, family, FC_SPACING, FcTypeInteger, fixed, NULL); FcFontSetDestroy(fontSet2); FcFontSetDestroy(fontSet); if (!pattern) { __glcRaiseError(GLC_RESOURCE_ERROR); __glcFree(This); return NULL; } This->pattern = pattern; return This; } GLint __glcMasterGetID(__GLCmaster* This, __GLCcontext* inContext) { GLCchar32 hashValue = GLC_MASTER_HASH_VALUE(This); GLint i = 0; GLCchar32* hashTable = (GLCchar32*)GLC_ARRAY_DATA(inContext->masterHashTable); for (i = 0; i < GLC_ARRAY_LENGTH(inContext->masterHashTable); i++) { if (hashValue == hashTable[i]) break; } assert(i < GLC_ARRAY_LENGTH(inContext->masterHashTable)); return i; } quesoglc-0.7.2/src/except.h0000644000175000017500000000457510764574550012543 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: except.h 554 2007-02-18 16:51:23Z bcoconni $ */ /** \file * header of the functions needed for cleanup stack exception handling (CSEH) */ #ifndef __glc_except_h #define __glc_except_h #include #ifdef __cpluplus extern "C" { #endif typedef unsigned int __glcException; #define GLC_NO_EXC (__glcException)0 #define GLC_MEMORY_EXC (__glcException)1 jmp_buf* __glcExceptionCreateContext(void); void __glcExceptionReleaseContext(void); void __glcExceptionPush(void (*destructor)(void*), void *data); void __glcExceptionPop(int destroy); void __glcExceptionUnwind(int destroy); jmp_buf* __glcExceptionThrow(__glcException exception); __glcException __glcExceptionCatch(void); #define TRY \ do { \ jmp_buf* __glcEnv = __glcExceptionCreateContext(); \ if (__glcEnv && (setjmp(*__glcEnv) == 0)) { #define CATCH(__e__) \ __glcExceptionUnwind(0); \ } \ else { \ __e__ = __glcExceptionCatch(); #define END_CATCH \ } \ __glcExceptionReleaseContext(); \ } while (0); #define THROW(__e__) \ do { \ jmp_buf* __glcEnv; \ __glcExceptionUnwind(1); \ __glcEnv = __glcExceptionThrow(__e__); \ longjmp(*__glcEnv, 1); \ } while (0); #define RETHROW(__e__) \ do { \ jmp_buf* __glcEnv; \ __glcExceptionReleaseContext(); \ __glcExceptionUnwind(1); \ __glcEnv = __glcExceptionThrow(__e__); \ longjmp(*__glcEnv, 1); \ } while (0); #define RETURN(__value__) \ do { \ __glcExceptionUnwind(0); \ __glcExceptionReleaseContext(); \ return __value__; \ } while(0); #ifdef __cplusplus } #endif #endif quesoglc-0.7.2/src/ofont.c0000644000175000017500000002203611103321557012344 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: ofont.c 848 2008-11-02 12:56:00Z bcoconni $ */ /* Defines the methods of an object that is intended to managed fonts */ /** \file * defines the object __GLCfont which manage the fonts */ #include #include "internal.h" /* Constructor of the object : it allocates memory and initializes the member * of the new object. * The user must give the master 'inParent' which the font will instantiate. */ __GLCfont* __glcFontCreate(GLint inID, __GLCmaster* inMaster, __GLCcontext* inContext, GLint inCode) { __GLCfont *This = NULL; assert(inContext); This = (__GLCfont*)__glcMalloc(sizeof(__GLCfont)); if (!This) { __glcRaiseError(GLC_RESOURCE_ERROR); return NULL; } if (inMaster) { /* At font creation, the default face is the first one. * glcFontFace() can change the face. */ This->faceDesc = __glcFaceDescCreate(inMaster, NULL, inContext, inCode); if (!This->faceDesc) { __glcFree(This); return NULL; } This->charMap = __glcFaceDescGetCharMap(This->faceDesc, inContext); if (!This->charMap) { __glcFaceDescDestroy(This->faceDesc, inContext); __glcFree(This); return NULL; } This->parentMasterID = __glcMasterGetID(inMaster, inContext); } else { /* Creates an empty font (used by glcGenFontID() to reserve font IDs) */ This->faceDesc = NULL; This->charMap = NULL; This->parentMasterID = 0; } This->id = inID; return This; } /* Destructor of the object */ void __glcFontDestroy(__GLCfont *This, __GLCcontext* inContext) { if (This->charMap) __glcCharMapDestroy(This->charMap); if (This->faceDesc) __glcFaceDescDestroy(This->faceDesc, inContext); __glcFree(This); } /* Extract from the font the glyph which corresponds to the character code * 'inCode'. */ __GLCglyph* __glcFontGetGlyph(__GLCfont *This, GLint inCode, __GLCcontext* inContext) { /* Try to get the glyph from the character map */ __GLCglyph* glyph = __glcCharMapGetGlyph(This->charMap, inCode); if (!glyph) { /* If it fails, we must extract the glyph from the face */ glyph = __glcFaceDescGetGlyph(This->faceDesc, inCode, inContext); if (!glyph) return NULL; /* Update the character map so that the glyph will be cached */ __glcCharMapAddChar(This->charMap, inCode, glyph); } return glyph; } /* Get the bounding box of a glyph according to the size given by inScaleX and * inScaleY. The result is returned in outVec. 'inCode' contains the character * code for which the bounding box is requested. */ GLfloat* __glcFontGetBoundingBox(__GLCfont *This, GLint inCode, GLfloat* outVec, __GLCcontext* inContext, GLfloat inScaleX, GLfloat inScaleY) { /* Get the glyph from the font */ __GLCglyph* glyph = __glcFontGetGlyph(This, inCode, inContext); assert(outVec); if (!glyph) return NULL; /* If the bounding box of the glyph is cached then copy it to outVec and * return. */ if (glyph->boundingBoxCached && inContext->enableState.glObjects) { memcpy(outVec, glyph->boundingBox, 4 * sizeof(GLfloat)); return outVec; } /* Otherwise, we must extract the bounding box from the face file */ if (!__glcFaceDescGetBoundingBox(This->faceDesc, glyph->index, outVec, inScaleX, inScaleY, inContext)) return NULL; /* Special case for glyphes which have no bounding box (i.e. spaces) */ if ((fabs(outVec[0] - outVec[2]) < GLC_EPSILON) || (fabs(outVec[1] - outVec[3]) < GLC_EPSILON)) { GLfloat advance[2] = {0.f, 0.f}; if (__glcFontGetAdvance(This, inCode, advance, inContext, inScaleX, inScaleY)) { if (fabs(outVec[0] - outVec[2]) < GLC_EPSILON) outVec[2] += advance[0]; if (fabs(outVec[1] - outVec[3]) < GLC_EPSILON) outVec[3] += advance[1]; } } /* Copy the result to outVec and return */ if (inContext->enableState.glObjects) { memcpy(glyph->boundingBox, outVec, 4 * sizeof(GLfloat)); glyph->boundingBoxCached = GL_TRUE; } return outVec; } /* Get the advance of a glyph according to the size given by inScaleX and * inScaleY. The result is returned in outVec. 'inCode' contains the character * code for which the advance is requested. */ GLfloat* __glcFontGetAdvance(__GLCfont* This, GLint inCode, GLfloat* outVec, __GLCcontext* inContext, GLfloat inScaleX, GLfloat inScaleY) { /* Get the glyph from the font */ __GLCglyph* glyph = __glcFontGetGlyph(This, inCode, inContext); assert(outVec); if (!glyph) return NULL; /* If the advance of the glyph is cached then copy it to outVec and * return. */ if (glyph->advanceCached && inContext->enableState.glObjects) { memcpy(outVec, glyph->advance, 2 * sizeof(GLfloat)); return outVec; } /* Otherwise, we must extract the advance from the face file */ if (!__glcFaceDescGetAdvance(This->faceDesc, glyph->index, outVec, inScaleX, inScaleY, inContext)) return NULL; /* Copy the result to outVec and return */ if (inContext->enableState.glObjects) { memcpy(glyph->advance, outVec, 2 * sizeof(GLfloat)); glyph->advanceCached = GL_TRUE; } return outVec; } /* Get the kerning information of a pair of glyph according to the size given by * inScaleX and inScaleY. The result is returned in outVec. 'inCode' contains * the current character code and 'inPrevCode' the character code of the * previously displayed character. */ GLfloat* __glcFontGetKerning(__GLCfont* This, GLint inCode, GLint inPrevCode, GLfloat* outVec, __GLCcontext* inContext, GLfloat inScaleX, GLfloat inScaleY) { __GLCglyph* glyph = __glcFontGetGlyph(This, inCode, inContext); __GLCglyph* prevGlyph = __glcFontGetGlyph(This, inPrevCode, inContext); if (!glyph || !prevGlyph) return NULL; return __glcFaceDescGetKerning(This->faceDesc, glyph->index, prevGlyph->index, inScaleX, inScaleY, outVec, inContext); } /* This internal function tries to open the face file which name is identified * by 'inFace'. If it succeeds, it closes the previous face and stores the new * face attributes in the __GLCfont object "inFont". Otherwise, it leaves the * font unchanged. GL_TRUE or GL_FALSE are returned to indicate if the function * succeeded or not. */ GLboolean __glcFontFace(__GLCfont* This, const GLCchar8* inFace, __GLCcontext *inContext) { __GLCfaceDescriptor *faceDesc = NULL; __GLCmaster *master = NULL; __GLCcharMap* newCharMap = NULL; /* TODO : Verify if the font has already the required face activated */ master = __glcMasterCreate(This->parentMasterID, inContext); if (!master) return GL_FALSE; /* Get the face descriptor of the face identified by the string inFace */ faceDesc = __glcFaceDescCreate(master, inFace, inContext, 0); if (!faceDesc) { __glcMasterDestroy(master); return GL_FALSE; } newCharMap = __glcFaceDescGetCharMap(faceDesc, inContext); if (!newCharMap) { __glcFaceDescDestroy(faceDesc, inContext); __glcMasterDestroy(master); return GL_FALSE; } __glcMasterDestroy(master); #ifndef GLC_FT_CACHE /* If the font belongs to GLC_CURRENT_FONT_LIST then open the font file */ if (FT_List_Find(&inContext->currentFontList, This)) { /* Open the new face */ if (!__glcFaceDescOpen(faceDesc, inContext)) { __glcFaceDescDestroy(faceDesc, inContext); __glcCharMapDestroy(newCharMap); return GL_FALSE; } /* Close the current face */ __glcFontClose(This); } #endif /* Destroy the current charmap */ if (This->charMap) __glcCharMapDestroy(This->charMap); This->charMap = newCharMap; __glcFaceDescDestroy(This->faceDesc, inContext); This->faceDesc = faceDesc; return GL_TRUE; } /* Load a glyph of the current font face and stores the corresponding data in * the corresponding face. The size of the glyph is given by inScaleX and * inScaleY. 'inGlyphIndex' contains the index of the glyph in the font file. */ GLboolean __glcFontPrepareGlyph(__GLCfont* This, __GLCcontext* inContext, GLfloat inScaleX, GLfloat inScaleY, GLCulong inGlyphIndex) { GLboolean result = __glcFaceDescPrepareGlyph(This->faceDesc, inContext, inScaleX, inScaleY, inGlyphIndex); #ifndef GLC_FT_CACHE __glcFaceDescClose(This->faceDesc); #endif return result; } quesoglc-0.7.2/src/texture.c0000644000175000017500000005044711150301026012715 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: texture.c 879 2009-02-22 16:49:24Z bcoconni $ */ /** \file * defines the routines used to render characters with textures. */ #include "internal.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include "texture.h" /* This function is called when a glyph is destroyed, the atlas element is then * released. */ void __glcReleaseAtlasElement(__GLCatlasElement* This, __GLCcontext* inContext) { FT_ListNode node = (FT_ListNode)This; /* Put the atlas element at the tail of the list so that its position is used * as soon as possible. */ FT_List_Remove(&inContext->atlasList, node); FT_List_Add(&inContext->atlasList, node); This->glyph = NULL; /* The glyph will be destroyed so clear the pointer */ } /* This function gets some room in the texture atlas for a new glyph 'inGlyph'. * Eventually it creates the texture atlas, if it does not exist yet. */ static GLboolean __glcTextureAtlasGetPosition(__GLCcontext* inContext, __GLCglyph* inGlyph) { __GLCatlasElement* atlasNode = NULL; /* Test if the atlas already exists. If not, create it. */ if (!inContext->atlas.id) { int size = 1024; /* Initial try with a 1024x1024 texture */ int i = 0; GLint format = 0; GLint level = 0; void * buffer = NULL; /* Not all gfx card are able to use 1024x1024 textures (especially old ones * like 3dfx's). Moreover, the texture memory may be scarce when our texture * will be created, so we try several texture sizes : first 1024x1024 then * if it fails, we try 512x512 then 256x256. All gfx cards support 256x256 * textures so if it fails with this texture size, that is because we ran * out of texture memory. In such a case, there is nothing we can do, so the * routine aborts with GLC_RESOURCE_ERROR raised. */ for (i = 0; i < 3; i++) { glTexImage2D(GL_PROXY_TEXTURE_2D, 0, GL_ALPHA8, size, size, 0, GL_ALPHA, GL_UNSIGNED_BYTE, NULL); glGetTexLevelParameteriv(GL_PROXY_TEXTURE_2D, 0, GL_TEXTURE_COMPONENTS, &format); if (format) break; size >>= 1; } /* Out of texture memory : abortion */ if (i == 3) { __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } buffer = __glcMalloc(size * size); if (!buffer) { __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } memset(buffer, 0, size * size); /* Create the texture atlas structure. The texture is divided in small * square areas of GLC_TEXTURE_SIZE x GLC_TEXTURE_SIZE, each of which will * contain a different glyph. * TODO: Allow the user to change GLC_TEXTURE_SIZE rather than using a fixed * value. */ glGenTextures(1, &inContext->atlas.id); inContext->atlas.width = size; inContext->atlas.heigth = size; inContext->atlasWidth = size / GLC_TEXTURE_SIZE; inContext->atlasHeight = size / GLC_TEXTURE_SIZE; inContext->atlasCount = 0; glBindTexture(GL_TEXTURE_2D, inContext->atlas.id); glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA8, size, size, 0, GL_ALPHA, GL_UNSIGNED_BYTE, buffer); /* Create the mipmap structure of the texture atlas, no matter if GLC_MIPMAP * is enabled or not. */ while (size > 1) { size >>= 1; level++; glTexImage2D(GL_TEXTURE_2D, level, GL_ALPHA8, size, size, 0, GL_ALPHA, GL_UNSIGNED_BYTE, buffer); } /* Use trilinear filtering if GLC_MIPMAP is enabled. * Otherwise use bilinear filtering. */ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); /* The intent of this code is to work around an ugly bug of the Intel GMA * 965 (or X3000) drivers on Linux. On those crappy drivers a 2nd call to * glTexSubImage2D() completely clears the texture removing by the way the * first character stored in the texture... * This workaround displays a dummy character in order to deceive the * stupid drivers. Note that I tried to reduce the code to the minimum : it * seems that if any line below is removed, the workaround no longer works * around the f***ing bug. */ size = GLC_TEXTURE_SIZE; glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, size, size, GL_ALPHA, GL_UNSIGNED_BYTE, buffer); level = 0; while (size > 2) { size >>= 1; level++; glTexSubImage2D(GL_TEXTURE_2D, level, 0, 0, size, size, GL_ALPHA, GL_UNSIGNED_BYTE, buffer); } if (GLEW_VERSION_1_2 || GLEW_SGIS_texture_lod) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, level - 1); glBegin(GL_QUADS); glNormal3f(0.f, 0.f, 1.f); glTexCoord2f(0.f, 0.f); glVertex2f(0.f, 0.f); glTexCoord2f(0.f, 1.f); glVertex2f(0.f, .5f); glTexCoord2f(1.f, 1.f); glVertex2f(.5f, .5f); glTexCoord2f(1.f, 0.f); glVertex2f(.5f, 0.f); glEnd(); /* End of the workaround for the crappy open source drivers for Intel chips */ __glcFree(buffer); if (inContext->enableState.mipmap) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); else glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); } /* At this stage, we want to get a free area in the texture atlas in order to * store a new glyph. Two situations may occur : the atlas is full or not */ if (inContext->atlasCount == inContext->atlasWidth * inContext->atlasHeight) { /* The texture atlas is full. We must release an area to re-use it. * We get the glyph that has not been used for a long time (that is the * tail element of atlasList). */ atlasNode = (__GLCatlasElement*)inContext->atlasList.tail; assert(atlasNode); if (atlasNode->glyph) { /* Release the texture area of the glyph */ __glcGlyphDestroyTexture(atlasNode->glyph, inContext); } /* Put the texture area at the head of the list otherwise we will use the * same texture element over and over again each time that we need to * release a texture area. */ FT_List_Up(&inContext->atlasList, (FT_ListNode)atlasNode); } else { /* The texture atlas is not full. We create a new texture area and we store * its definition in atlas list. */ atlasNode = (__GLCatlasElement*)__glcMalloc(sizeof(__GLCatlasElement)); if (!atlasNode) { __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } atlasNode->node.data = atlasNode; atlasNode->position = inContext->atlasCount++; FT_List_Insert(&inContext->atlasList, (FT_ListNode)atlasNode); } /* Update the texture element */ atlasNode->glyph = inGlyph; inGlyph->textureObject = atlasNode; if (GLEW_ARB_vertex_buffer_object) { /* Create a VBO, if none exists yet */ if (!inContext->atlas.bufferObjectID) { glGenBuffersARB(1, &inContext->atlas.bufferObjectID); if (!inContext->atlas.bufferObjectID) { __glcRaiseError(GLC_RESOURCE_ERROR); /* Even though we failed to create a VBO ID, the rendering of the glyph * can be processed without VBO, so we return GL_TRUE. */ return GL_TRUE; } } /* Bind the buffer and define/update its size */ glBindBufferARB(GL_ARRAY_BUFFER_ARB, inContext->atlas.bufferObjectID); } return GL_TRUE; } /* For immediate rendering mode (that is when GLC_GL_OBJECTS is disabled), this * function returns a texture that will store the glyph that is intended to be * rendered. If the texture does not exist yet, it is created. */ static GLboolean __glcTextureGetImmediate(__GLCcontext* inContext, GLsizei inWidth, GLsizei inHeight) { GLint format = 0; /* Check if a texture exists to store the glyph */ if (inContext->texture.id) { /* Check if the texture size is large enough to store the glyph */ if ((inWidth > inContext->texture.width) || (inHeight > inContext->texture.heigth)) { /* The texture is not large enough so we destroy the current texture */ glDeleteTextures(1, &inContext->texture.id); inWidth = (inWidth > inContext->texture.width) ? inWidth : inContext->texture.width; inHeight = (inHeight > inContext->texture.heigth) ? inHeight : inContext->texture.heigth; inContext->texture.id = 0; inContext->texture.width = 0; inContext->texture.heigth = 0; } else { /* The texture is large enough, it is already bound to the current * GL context. */ return GL_TRUE; } } if (GLEW_ARB_pixel_buffer_object) glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, 0); /* Check if a new texture can be created */ glTexImage2D(GL_PROXY_TEXTURE_2D, 0, GL_ALPHA8, inWidth, inHeight, 0, GL_ALPHA, GL_UNSIGNED_BYTE, NULL); glGetTexLevelParameteriv(GL_PROXY_TEXTURE_2D, 0, GL_TEXTURE_COMPONENTS, &format); /* TODO: If the texture creation fails, try with a smaller size */ if (!format) { __glcRaiseError(GLC_RESOURCE_ERROR); return GL_FALSE; } /* Create a texture object and make it current */ glGenTextures(1, &inContext->texture.id); glBindTexture(GL_TEXTURE_2D, inContext->texture.id); glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA8, inWidth, inHeight, 0, GL_ALPHA, GL_UNSIGNED_BYTE, NULL); /* For immediate mode rendering, always use bilinear filtering even if * GLC_MIPMAP is enabled : we have determined the size of the glyph when it * will be rendered on the screen and the texture size has been defined * accordingly. Hence the mipmap levels would not be used, so there is no * point in spending time to compute them. */ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP); inContext->texture.width = inWidth; inContext->texture.heigth = inHeight; if (GLEW_ARB_pixel_buffer_object) { /* Create a PBO, if none exists yet */ if (!inContext->texture.bufferObjectID) { glGenBuffersARB(1, &inContext->texture.bufferObjectID); if (!inContext->texture.bufferObjectID) { __glcRaiseError(GLC_RESOURCE_ERROR); /* Even though we failed to create a PBO ID, the rendering of the glyph * can be processed without PBO, so we return GL_TRUE. */ return GL_TRUE; } } /* Bind the buffer and define/update its size */ glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, inContext->texture.bufferObjectID); glBufferDataARB(GL_PIXEL_UNPACK_BUFFER_ARB, inWidth * inHeight, NULL, GL_STREAM_DRAW_ARB); } return GL_TRUE; } /* Internal function that renders glyph in textures : * 'inCode' must be given in UCS-4 format */ void __glcRenderCharTexture(__GLCfont* inFont, __GLCcontext* inContext, GLfloat scale_x, GLfloat scale_y, __GLCglyph* inGlyph) { GLint level = 0; GLint texX = 0, texY = 0; GLint pixWidth = 0, pixHeight = 0; void* pixBuffer = NULL; GLint pixBoundingBox[4] = {0, 0, 0, 0}; int minSize = (GLEW_VERSION_1_2 || GLEW_SGIS_texture_lod) ? 2 : 1; GLfloat texWidth = 0.f, texHeight = 0.f; if (inContext->enableState.glObjects) { __GLCatlasElement* atlasNode = NULL; if (!__glcTextureAtlasGetPosition(inContext, inGlyph)) return; /* Compute the size of the pixmap where the glyph will be rendered */ atlasNode = inGlyph->textureObject; __glcFaceDescGetBitmapSize(inFont->faceDesc, &pixWidth, &pixHeight, scale_x, scale_y, pixBoundingBox, 0, inContext); texWidth = inContext->atlas.width; texHeight = inContext->atlas.heigth; texY = (atlasNode->position / inContext->atlasWidth); texX = (atlasNode->position - texY*inContext->atlasWidth)*GLC_TEXTURE_SIZE; texY *= GLC_TEXTURE_SIZE; } else { int factor = 0; /* Try several texture size until we are able to create one */ do { if (!__glcFaceDescGetBitmapSize(inFont->faceDesc, &pixWidth, &pixHeight, scale_x, scale_y, pixBoundingBox, factor, inContext)) return; factor = 1; } while (!__glcTextureGetImmediate(inContext, pixWidth, pixHeight)); texWidth = inContext->texture.width; texHeight = inContext->texture.heigth; texX = 0; texY = 0; } if (!inContext->texture.bufferObjectID || inContext->enableState.glObjects) { pixBuffer = (GLubyte *)__glcMalloc(pixWidth * pixHeight); if (!pixBuffer) { __glcRaiseError(GLC_RESOURCE_ERROR); return; } } /* Create the texture */ glPushClientAttrib(GL_CLIENT_PIXEL_STORE_BIT); glPixelStorei(GL_UNPACK_LSB_FIRST, GL_FALSE); glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0); glPixelStorei(GL_UNPACK_SKIP_ROWS, 0); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); /* Iterate on the powers of 2 in order to build the mipmap */ do { if (GLEW_ARB_pixel_buffer_object && !inContext->enableState.glObjects) { pixBuffer = (GLubyte *)glMapBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, GL_WRITE_ONLY_ARB); if (!pixBuffer) { __glcRaiseError(GLC_RESOURCE_ERROR); return; } } /* render the glyph */ if (!__glcFaceDescGetBitmap(inFont->faceDesc, pixWidth, pixHeight, pixBuffer, inContext)) { glPopClientAttrib(); if (GLEW_ARB_pixel_buffer_object && !inContext->enableState.glObjects) glUnmapBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB); else __glcFree(pixBuffer); return; } if (GLEW_ARB_pixel_buffer_object && !inContext->enableState.glObjects) { glUnmapBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB); pixBuffer = NULL; } glTexSubImage2D(GL_TEXTURE_2D, level, texX >> level, texY >> level, pixWidth, pixHeight, GL_ALPHA, GL_UNSIGNED_BYTE, pixBuffer); /* A mipmap is built only if a display list is currently building * otherwise it adds useless computations */ if (!(inContext->enableState.mipmap && inContext->enableState.glObjects)) break; level++; /* Next level of mipmap */ pixWidth >>= 1; pixHeight >>= 1; } while ((pixWidth > minSize) && (pixHeight > minSize)); /* Finish to build the mipmap if necessary */ if (inContext->enableState.mipmap && inContext->enableState.glObjects) { if (GLEW_VERSION_1_2 || GLEW_SGIS_texture_lod) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, level - 1); else { /* The OpenGL driver does not support the extension GL_EXT_texture_lod * We must finish the pixmap until the mipmap level is 1x1. * Here the smaller mipmap levels will be transparent, no glyph will be * rendered. * TODO: Use gluScaleImage() to render the last levels. * Here we do not take the GL_ARB_pixel_buffer_object into account * because there are few chances that a gfx card that supports PBO, does * not support texture levels. */ assert(!GLEW_ARB_pixel_buffer_object); memset(pixBuffer, 0, pixWidth * pixHeight); while ((pixWidth > 0) || (pixHeight > 0)) { glTexSubImage2D(GL_TEXTURE_2D, level, texX >> level, texY >> level, pixWidth ? pixWidth : 1, pixHeight ? pixHeight : 1, GL_ALPHA, GL_UNSIGNED_BYTE, pixBuffer); level++; pixWidth >>= 1; pixHeight >>= 1; } } } glPopClientAttrib(); if (pixBuffer) __glcFree(pixBuffer); /* Add the new texture to the texture list and the new display list * to the list of display lists */ if (inContext->enableState.glObjects) { if (GLEW_ARB_vertex_buffer_object) { GLfloat* buffer = NULL; GLfloat* data = NULL; __GLCatlasElement* atlasNode = inGlyph->textureObject; buffer = (GLfloat*)__glcMalloc(inContext->atlasWidth * inContext->atlasHeight * 20 * sizeof(GLfloat)); if (!buffer) { __glcRaiseError(GLC_RESOURCE_ERROR); return; } /* The display list ID is used as a flag to declare that the VBO has been * initialized and can be used. */ inGlyph->glObject[1] = 0xffffffff; /* Here we do not use the GL command glBufferSubData() since it seems to * be buggy on some GL drivers (the DRI Intel specifically). * Instead, we use a workaround: the current values of the VBO are stored * in memory and new values are appended to them. Then, the content of * the resulting array replaces all the values previously stored in the * VBO. */ if (inContext->atlasCount > 1) { data = (GLfloat*)glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_READ_ONLY); if (!data) { __glcRaiseError(GLC_RESOURCE_ERROR); __glcFree(buffer); return; } memcpy(buffer, data, inContext->atlasCount * 20 * sizeof(GLfloat)); glUnmapBufferARB(GL_ARRAY_BUFFER_ARB); } data = buffer + atlasNode->position * 20; data[0] = texX / texWidth; data[1] = texY / texHeight; data[2] = pixBoundingBox[0] / 64. / GLC_TEXTURE_SIZE; data[3] = pixBoundingBox[1] / 64. / GLC_TEXTURE_SIZE; data[4] = 0.f; data[5] = (texX + GLC_TEXTURE_SIZE - 1) / texWidth; data[6] = data[1]; data[7] = pixBoundingBox[2] / 64. / GLC_TEXTURE_SIZE; data[8] = data[3]; data[9] = 0.f; data[10] = data[5]; data[11] = (texY + GLC_TEXTURE_SIZE - 1) / texHeight; data[12] = data[7]; data[13] = pixBoundingBox[3] / 64. / GLC_TEXTURE_SIZE; data[14] = 0.f; data[15] = data[0]; data[16] = data[11]; data[17] = data[2]; data[18] = data[13]; data[19] = 0.f; /* Size of the buffer data is equal to the number of glyphes than can be * stored in the texture times 20 GLfloat (4 vertices made of 3D * coordinates plus 2D texture coordinates : 4 * (3 + 2) = 20) */ glBufferDataARB(GL_ARRAY_BUFFER_ARB, inContext->atlasWidth * inContext->atlasHeight * 20 * sizeof(GLfloat), buffer, GL_STATIC_DRAW_ARB); __glcFree(buffer); /* Do the actual GL rendering */ glInterleavedArrays(GL_T2F_V3F, 0, NULL); glNormal3f(0.f, 0.f, 1.f); glDrawArrays(GL_QUADS, atlasNode->position * 4, 4); return; } else { inGlyph->glObject[1] = glGenLists(1); if (!inGlyph->glObject[1]) { __glcRaiseError(GLC_RESOURCE_ERROR); return; } /* Create the display list */ glNewList(inGlyph->glObject[1], GL_COMPILE); glScalef(1. / (64. * scale_x), 1. / (64. * scale_y) , 1.); /* Modify the bouding box dimensions to compensate the glScalef() */ pixBoundingBox[0] *= scale_x / GLC_TEXTURE_SIZE; pixBoundingBox[1] *= scale_y / GLC_TEXTURE_SIZE; pixBoundingBox[2] *= scale_x / GLC_TEXTURE_SIZE; pixBoundingBox[3] *= scale_y / GLC_TEXTURE_SIZE; pixWidth = GLC_TEXTURE_SIZE; pixHeight = GLC_TEXTURE_SIZE; } } /* Do the actual GL rendering */ glBegin(GL_QUADS); glNormal3f(0.f, 0.f, 1.f); glTexCoord2f(texX / texWidth, texY / texHeight); glVertex2iv(pixBoundingBox); glTexCoord2f((texX + pixWidth - 1) / texWidth, texY / texHeight); glVertex2i(pixBoundingBox[2], pixBoundingBox[1]); glTexCoord2f((texX + pixWidth - 1) / texWidth, (texY + pixHeight - 1) / texHeight); glVertex2iv(pixBoundingBox + 2); glTexCoord2f(texX / texWidth, (texY + pixHeight - 1) / texHeight); glVertex2i(pixBoundingBox[0], pixBoundingBox[3]); glEnd(); if (inContext->enableState.glObjects) { /* Finish display list creation */ glScalef(64. * scale_x, 64. * scale_y, 1.); glEndList(); glCallList(inGlyph->glObject[1]); } } quesoglc-0.7.2/src/ocontext.h0000644000175000017500000001434611134620220013065 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: ocontext.h 800 2008-06-04 21:47:50Z bcoconni $ */ /** \file * header of the object __GLCcontext which is used to manage the contexts. */ #ifndef __glc_ocontext_h #define __glc_ocontext_h #ifndef __WIN32__ #include #else #include #endif #include #include FT_FREETYPE_H #ifdef GLC_FT_CACHE #include FT_CACHE_H #endif #include FT_LIST_H #include "oarray.h" #include "except.h" #define GLC_MAX_MATRIX_STACK_DEPTH 32 #define GLC_MAX_ATTRIB_STACK_DEPTH 16 typedef struct __GLCcontextRec __GLCcontext; typedef struct __GLCtextureRec __GLCtexture; typedef struct __GLCenableStateRec __GLCenableState; typedef struct __GLCrenderStateRec __GLCrenderState; typedef struct __GLCstringStateRec __GLCstringState; typedef struct __GLCglStateRec __GLCglState; typedef struct __GLCattribStackLevelRec __GLCattribStackLevel; typedef struct __GLCthreadAreaRec __GLCthreadArea; typedef struct __GLCcommonAreaRec __GLCcommonArea; typedef struct __GLCfontRec __GLCfont; struct __GLCtextureRec { GLuint id; GLsizei width; GLsizei heigth; GLuint bufferObjectID; }; struct __GLCenableStateRec { GLboolean autoFont; /* GLC_AUTO_FONT */ GLboolean glObjects; /* GLC_GLOBJECTS */ GLboolean mipmap; /* GLC_MIPMAP */ GLboolean hinting; /* GLC_HINTING_QSO */ GLboolean extrude; /* GLC_EXTRUDE_QSO */ GLboolean kerning; /* GLC_KERNING_QSO */ }; struct __GLCrenderStateRec { GLfloat resolution; /* GLC_RESOLUTION */ GLint renderStyle; /* GLC_RENDER_STYLE */ }; struct __GLCstringStateRec { GLint replacementCode; /* GLC_REPLACEMENT_CODE */ GLint stringType; /* GLC_STRING_TYPE */ GLCfunc callback; /* Callback function GLC_OP_glcUnmappedCode */ GLvoid* dataPointer; /* GLC_DATA_POINTER */ }; struct __GLCglStateRec { GLint textureID; GLint textureEnvMode; GLint bufferObjectID; GLboolean blend; GLint blendSrc; GLint blendDst; }; struct __GLCattribStackLevelRec { GLbitfield attribBits; __GLCrenderState renderState; __GLCstringState stringState; __GLCglState glState; __GLCenableState enableState; }; struct __GLCcontextRec { FT_ListNodeRec node; GLCchar *buffer; size_t bufferSize; FT_Library library; #ifdef GLC_FT_CACHE FTC_Manager cache; #endif FcConfig *config; GLint id; /* Context ID */ GLboolean isInGlobalCommand; /* Is in a global command ? */ GLboolean pendingDelete; /* Is there a pending deletion ? */ __GLCenableState enableState; __GLCrenderState renderState; __GLCstringState stringState; FT_ListRec currentFontList; /* GLC_CURRENT_FONT_LIST */ FT_ListRec fontList; /* GLC_FONT_LIST */ FT_ListRec genFontList; /* Fonts generated by glcGenFontID() */ __GLCarray* masterHashTable; __GLCarray* catalogList; /* GLC_CATALOG_LIST */ __GLCarray* measurementBuffer; GLfloat measurementStringBuffer[12]; __GLCarray* vertexArray; /* Array of vertices */ __GLCarray* controlPoints; /* Array of control points */ __GLCarray* endContour; /* Array of contour limits */ __GLCarray* vertexIndices; /* Array of vertex indices */ __GLCarray* geomBatches; /* Array of geometric batches */ GLEWContext glewContext; /* GLEW context for OpenGL extensions */ __GLCtexture texture; /* Texture for immediate mode rendering */ __GLCtexture atlas; FT_ListRec atlasList; int atlasWidth; int atlasHeight; int atlasCount; GLfloat* bitmapMatrix; /* GLC_BITMAP_MATRIX */ GLfloat bitmapMatrixStack[4*GLC_MAX_MATRIX_STACK_DEPTH]; GLint bitmapMatrixStackDepth; __GLCattribStackLevel attribStack[GLC_MAX_ATTRIB_STACK_DEPTH]; GLint attribStackDepth; GLboolean isCurrent; GLboolean isInCallbackFunc; /* Is a callback function executing ? */ }; struct __GLCthreadAreaRec { __GLCcontext* currentContext; GLCenum errorState; GLint lockState; FT_ListRec exceptionStack; __glcException failedTry; }; struct __GLCcommonAreaRec { GLint versionMajor; /* GLC_VERSION_MAJOR */ GLint versionMinor; /* GLC_VERSION_MINOR */ FT_ListRec contextList; #ifndef __WIN32__ pthread_mutex_t mutex; /* For concurrent accesses to the common area */ #ifndef HAVE_TLS pthread_key_t threadKey; pthread_t threadID; pthread_once_t __glcInitThreadOnce; #endif /* HAVE_TLS */ #else /* __WIN32__ */ CRITICAL_SECTION section; DWORD threadKey; DWORD threadID; LONG __glcInitThreadOnce; #endif /* Evil hack : we use the FT_MemoryRec_ structure definition which is * supposed not to be exported by FreeType headers. So this definition may * fail if the guys of FreeType decide not to expose FT_MemoryRec_ anymore. * However, this has not happened yet so we still rely on FT_MemoryRec_ ... */ struct FT_MemoryRec_ memoryManager; }; extern __GLCcommonArea __glcCommonArea; #ifdef HAVE_TLS extern __thread __GLCthreadArea __glcTlsThreadArea __attribute__((tls_model("initial-exec"))); #else extern __GLCthreadArea* __glcThreadArea; #endif __GLCcontext* __glcContextCreate(GLint inContext); void __glcContextDestroy(__GLCcontext *This); __GLCfont* __glcContextGetFont(__GLCcontext *This, GLint code); GLCchar* __glcContextQueryBuffer(__GLCcontext *This, size_t inSize); void __glcContextAppendCatalog(__GLCcontext* This, const GLCchar* inCatalog); void __glcContextPrependCatalog(__GLCcontext* This, const GLCchar* inCatalog); void __glcContextRemoveCatalog(__GLCcontext* This, GLint inIndex); GLCchar8* __glcContextGetCatalogPath(__GLCcontext* This, GLint inIndex); #endif /* __glc_ocontext_h */ quesoglc-0.7.2/src/master.c0000644000175000017500000004247411022552171012520 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: master.c 807 2008-06-07 18:33:28Z bcoconni $ */ /** \file * defines the so-called "Master commands" described in chapter 3.6 of the GLC * specs. */ /** \defgroup master Master Commands * Commands to create, manage and destroy masters. * * A master is a representation of a font that is stored outside QuesoGLC in a * standard format such as TrueType or Type1. * * Every master has an associated character map. A character map is a table of * entries that maps integer values to the name string that identifies the * characters. Unlike fonts character maps, the character map of a master can * not be modified. * * QuesoGLC maps the font files into master objects that are visible through * the GLC API. A group of font files from a single typeface family will be * mapped into a single GLC master object that has multiple faces. For * example, the files \c Courier.pfa, \c Courier-Bold.pfa, * \c Courier-BoldOblique.pfa, and \c Courier-Oblique.pfa are visible through * the GLC API as a single master with \c GLC_VENDOR="Adobe", * \c GLC_FAMILY="Courier", \c GLC_MASTER_FORMAT="Type1", \c GLC_FACE_COUNT=4 * and \c GLC_FACE_LIST=("Regular", "Bold", "Bold Oblique", "Oblique") * * Some GLC commands have a parameter \e inMaster. This parameter is an offset * from the the first element in the GLC master list. The command raises * \b GLC_PARAMETER_ERROR if \e inMaster is less than zero or is greater than * or equal to the value of the variable \b GLC_MASTER_COUNT. */ #if defined(__WIN32__) || defined(_MSC_VER) #include #else #include #endif #include #include #include "internal.h" /* Most master commands need to check that : * 1. The current thread owns a context state * 2. The master identifier 'inMaster' is legal * This internal function does both checks and returns the pointer to the * __glcMaster object that is identified by 'inMaster'. */ __GLCmaster* __glcVerifyMasterParameters(GLint inMaster) { __GLCcontext *ctx = GLC_GET_CURRENT_CONTEXT(); /* Check if the current thread owns a context state */ if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return NULL; } /* Verify if the master identifier is in legal bounds */ if (inMaster >= GLC_ARRAY_LENGTH(ctx->masterHashTable)) { __glcRaiseError(GLC_PARAMETER_ERROR); return NULL; } return __glcMasterCreate(inMaster, ctx); } /** \ingroup master * This command returns a string from a string list that is an attribute of * the master identified by \e inMaster. The string list is identified by * \e inAttrib. The command returns the string at offset \e inIndex from the * first element in this string list. Below are the string list attributes * associated with each GLC master and font and their element count * attributes : *
* * * * * * * * * * * * * * * *
Master/font string list attributes
Name Enumerant Element count attribute
GLC_CHAR_LIST0x0050GLC_CHAR_COUNT
GLC_FACE_LIST0x0051GLC_FACE_COUNT
*
* \n The command raises \b GLC_PARAMETER_ERROR if \e inIndex is less than * zero or is greater than or equal to the value of the list element count * attribute. * \param inMaster Master from which an attribute is needed. * \param inAttrib String list that contains the desired attribute. * \param inIndex Offset from the first element of the list associated with * \e inAttrib. * \return The string at offset \e inIndex from the first element of the * string list identified by \e inAttrib. * \sa glcGetMasterMap() * \sa glcGetMasterc() * \sa glcGetMasteri() */ const GLCchar* APIENTRY glcGetMasterListc(GLint inMaster, GLCenum inAttrib, GLint inIndex) { __GLCcontext *ctx = NULL; __GLCmaster *master = NULL; __GLCcharMap *charMap = NULL; const GLCchar8* string = NULL; GLCchar8* faceName = NULL; GLCchar* element = NULL; GLC_INIT_THREAD(); /* Check some parameter. * NOTE : the verification of some parameters needs to get the current * context state but since we are supposed to check parameters * _before_ the context state, we are done ! */ switch(inAttrib) { case GLC_CHAR_LIST: case GLC_FACE_LIST: break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } /* Verify if inIndex is in legal bounds */ if (inIndex < 0) { __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } /* Verify that the thread has a current context and that the master * identified by 'inMaster' exists. */ master = __glcVerifyMasterParameters(inMaster); if (!master) return GLC_NONE; ctx = GLC_GET_CURRENT_CONTEXT(); /* return the requested attribute */ switch(inAttrib) { case GLC_CHAR_LIST: charMap = __glcCharMapCreate(master, ctx); if (!charMap) { __glcMasterDestroy(master); return GLC_NONE; } string = __glcCharMapGetCharNameByIndex(charMap, inIndex); if (!string) { __glcMasterDestroy(master); __glcCharMapDestroy(charMap); return GLC_NONE; } break; case GLC_FACE_LIST: /* Get the face name */ faceName = __glcMasterGetFaceName(master, ctx, inIndex); string = (const GLCchar8*)faceName; break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } /* Convert it from UTF-8 to the current string type and return */ element = __glcConvertFromUtf8ToBuffer(ctx, string, ctx->stringState.stringType); __glcMasterDestroy(master); if (charMap) __glcCharMapDestroy(charMap); else free(faceName); return element; } /** \ingroup master * This command returns the string name of the character that the master * identified by \e inMaster maps \e inCode to. * * Every master has associated with it a master map, which is a table of * entries that map integer values to the name string that identifies the * character. * * Every character code used in QuesoGLC is an element of the Unicode * Character Database (UCD) defined by the standards ISO/IEC 10646:2003 and * Unicode 4.0.1 (unless otherwise specified). A Unicode code point is denoted * as \e U+hexcode, where \e hexcode is a sequence of hexadecimal digits. Each * Unicode code point corresponds to a character that has a unique name * string. For example, the code \e U+41 corresponds to the character * LATIN CAPITAL LETTER A. * * If the master does not map \e inCode, the command returns \b GLC_NONE. * \note While you cannot change the map of a master, you can change the map * of a font using glcFontMap(). * \param inMaster The integer ID of the master from which to select the * character. * \param inCode The integer ID of character in the master map. * \return The string name of the character that \e inCode is mapped to. * \sa glcGetMasterListc() * \sa glcGetMasterc() * \sa glcGetMasteri() */ const GLCchar* APIENTRY glcGetMasterMap(GLint inMaster, GLint inCode) { __GLCmaster *master = NULL; GLC_INIT_THREAD(); master = __glcVerifyMasterParameters(inMaster); if (master) { __GLCcontext *ctx = GLC_GET_CURRENT_CONTEXT(); __GLCcharMap* charMap = NULL; GLCchar* result = NULL; GLint code = 0; const GLCchar8* name = NULL; charMap = __glcCharMapCreate(master, ctx); __glcMasterDestroy(master); if (!charMap) return NULL; /* Get the character code converted to the UCS-4 format */ code = __glcConvertGLintToUcs4(ctx, inCode); if (code < 0) { __glcCharMapDestroy(charMap); return NULL; } name = __glcCharMapGetCharName(charMap, code); __glcCharMapDestroy(charMap); if (!name) return NULL; result = __glcConvertFromUtf8ToBuffer(ctx, name, ctx->stringState.stringType); return result; } else return NULL; } /** \ingroup master * This command returns a string attribute of the master identified by * \e inMaster. The table below lists the string attributes that are * associated with each GLC master and font. *
* * * * * * * * * * * * * * * * * * * * *
Master/font string attributes
Name Enumerant
GLC_FAMILY 0x0060
GLC_MASTER_FORMAT 0x0061
GLC_VENDOR 0x0062
GLC_VERSION 0x0063
GLC_FULL_NAME_SGI 0x8002
*
* \param inMaster The master for which an attribute value is needed. * \param inAttrib The attribute for which the value is needed. * \return The value that is associated with the attribute \e inAttrib. * \sa glcGetMasteri() * \sa glcGetMasterMap() * \sa glcGetMasterListc() */ const GLCchar* APIENTRY glcGetMasterc(GLint inMaster, GLCenum inAttrib) { __GLCcontext *ctx = NULL; const GLCchar *buffer = NULL; __GLCmaster* master = NULL; GLC_INIT_THREAD(); /* Check parameter inAttrib */ switch(inAttrib) { case GLC_FAMILY: case GLC_MASTER_FORMAT: case GLC_VENDOR: case GLC_VERSION: case GLC_FULL_NAME_SGI: break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } /* Verify that the thread has a current context and that the master * identified by 'inMaster' exists. */ master = __glcVerifyMasterParameters(inMaster); if (!master) return GLC_NONE; ctx = GLC_GET_CURRENT_CONTEXT(); buffer = __glcMasterGetInfo(master, ctx, inAttrib); __glcMasterDestroy(master); return buffer; } /** \ingroup master * This command returns an integer attribute of the master identified by * \e inMaster. The attribute is identified by \e inAttrib. The table below * lists the integer attributes that are associated with each GLC master * and font. *
* * * * * * * * * * * * * * * * * * * * *
Master/font integer attributes
Name Enumerant
GLC_CHAR_COUNT 0x0070
GLC_FACE_COUNT 0x0071
GLC_IS_FIXED_PITCH 0x0072
GLC_MAX_MAPPED_CODE 0x0073
GLC_MIN_MAPPED_CODE 0x0074
*
* \n If the requested master attribute is \b GLC_IS_FIXED_PITCH then the * command returns \b GL_TRUE if and only if each face of the master * identified by \e inMaster has a fixed pitch. * \param inMaster The master for which an attribute value is needed. * \param inAttrib The attribute for which the value is needed. * \return The value of the attribute \e inAttrib of the master identified * by \e inMaster. * \sa glcGetMasterc() * \sa glcGetMasterMap() * \sa glcGetMasterListc() */ GLint APIENTRY glcGetMasteri(GLint inMaster, GLCenum inAttrib) { GLint count = 0; __GLCmaster *master = NULL; __GLCcharMap* charMap = NULL; __GLCcontext* ctx = NULL; GLC_INIT_THREAD(); /* Check parameter inAttrib */ switch(inAttrib) { case GLC_CHAR_COUNT: case GLC_FACE_COUNT: case GLC_IS_FIXED_PITCH: case GLC_MAX_MAPPED_CODE: case GLC_MIN_MAPPED_CODE: break; default: __glcRaiseError(GLC_PARAMETER_ERROR); return GLC_NONE; } /* Verify that the thread has a current context and that the master * identified by 'inMaster' exists. */ ctx = GLC_GET_CURRENT_CONTEXT(); master = __glcVerifyMasterParameters(inMaster); if (!master) return GLC_NONE; if (inAttrib == GLC_IS_FIXED_PITCH) { /* Is this a fixed font ? */ GLboolean fixed = __glcMasterIsFixedPitch(master); __glcMasterDestroy(master); return fixed; } if (inAttrib != GLC_FACE_COUNT) { charMap = __glcCharMapCreate(master, ctx); if (!charMap) { __glcMasterDestroy(master); return GLC_NONE; } } /* return the requested attribute */ switch(inAttrib) { case GLC_CHAR_COUNT: count = __glcCharMapGetCount(charMap); break; case GLC_FACE_COUNT: count = __glcMasterFaceCount(master, ctx); break; case GLC_MAX_MAPPED_CODE: count = __glcCharMapGetMaxMappedCode(charMap); break; case GLC_MIN_MAPPED_CODE: count = __glcCharMapGetMinMappedCode(charMap); break; } if (charMap) __glcCharMapDestroy(charMap); __glcMasterDestroy(master); return count; } /* Common subroutine to add a catalog to the current context. It is called * either by glcAppendCatalog() or by glcPrependCatalog(). */ static void __glcAddCatalog(const GLCchar* inCatalog, GLboolean inAppend) { __GLCcontext *ctx = NULL; struct stat dirStat; GLC_INIT_THREAD(); /* If inCatalog is NULL then there is no point in continuing */ if (!inCatalog) return; /* Check that 'inCatalog' points to a directory that can be read */ #ifdef __WIN32__ if (_access((const char*)inCatalog, 0)) { #else if (access((const char *)inCatalog, R_OK) < 0) { #endif /* May be something more explicit should be done */ __glcRaiseError(GLC_PARAMETER_ERROR); return; } /* Check that 'inCatalog' is a directory */ if (stat((const char *)inCatalog, &dirStat) < 0) { __glcRaiseError(GLC_PARAMETER_ERROR); return; } #ifdef __WIN32__ if (!(dirStat.st_mode & _S_IFDIR)) { #else if (!S_ISDIR(dirStat.st_mode)) { #endif __glcRaiseError(GLC_PARAMETER_ERROR); return; } /* Verify that the thread owns a context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } if (inAppend) __glcContextAppendCatalog(ctx, inCatalog); else __glcContextPrependCatalog(ctx, inCatalog); } /** \ingroup master * This command appends the string \e inCatalog to the list * \b GLC_CATALOG_LIST. * * The catalog is represented as a zero-terminated string. The interpretation * of this string is specified by the value that has been set using * glcStringType(). * * A catalog is a path to a list of masters. A master is a representation of a * font that is stored outside QuesoGLC in a standard format such as TrueType * or Type1. * * A catalog defines the list of masters that can be instantiated (that is, be * used as fonts) in a GLC context. * * A font is a styllistically consistent set of glyphs that can be used to * render some set of characters. Each font has a family name (for example * Palatino) and a state variable that selects one of the faces (for example * regular, bold, italic, bold italic) that the font contains. A typeface is * the combination of a family and a face (for example Palatino Bold). * \param inCatalog The catalog to append to the list \b GLC_CATALOG_LIST * \sa glcGetList() with argument \b GLC_CATALOG_LIST * \sa glcGeti() with argument \b GLC_CATALOG_COUNT * \sa glcPrependCatalog() * \sa glcRemoveCatalog() */ void APIENTRY glcAppendCatalog(const GLCchar* inCatalog) { __glcAddCatalog(inCatalog, GL_TRUE); } /** \ingroup master * This command prepends the string \e inCatalog to the list * \b GLC_CATALOG_LIST * \param inCatalog The catalog to prepend to the list \b GLC_CATALOG_LIST * \sa glcAppendCatalog() * \sa glcRemoveCatalog() */ void APIENTRY glcPrependCatalog(const GLCchar* inCatalog) { __glcAddCatalog(inCatalog, GL_FALSE); } /** \ingroup master * This command removes a string from the list \b GLC_CATALOG_LIST. It removes * the string at offset \e inIndex from the first element in the list. The * command raises \b GLC_PARAMETER_ERROR if \e inIndex is less than zero or is * greater than or equal to the value of the variable \b GLC_CATALOG_COUNT. * * QuesoGLC also destroys the masters that are defined in the corresponding * catalog. * \param inIndex The string to remove from the catalog list * \b GLC_CATALOG_LIST * \sa glcAppendCatalog() * \sa glcPrependCatalog() */ void APIENTRY glcRemoveCatalog(GLint inIndex) { __GLCcontext *ctx = NULL; GLC_INIT_THREAD(); /* Verify that the thread owns a context */ ctx = GLC_GET_CURRENT_CONTEXT(); if (!ctx) { __glcRaiseError(GLC_STATE_ERROR); return; } /* Verify that the parameter inIndex is in legal bounds */ if (inIndex < 0) { __glcRaiseError(GLC_PARAMETER_ERROR); return; } __glcContextRemoveCatalog(ctx, inIndex); } quesoglc-0.7.2/src/texture.h0000644000175000017500000000261211103322355012717 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: texture.h 849 2008-11-02 13:02:23Z bcoconni $ */ /** \file * header of the routines used to render characters with textures. */ #ifndef __glc_texture_h #define __glc_texture_h #include "ofont.h" struct __GLCatlasElementRec { FT_ListNodeRec node; int position; __GLCglyph* glyph; }; void __glcReleaseAtlasElement(__GLCatlasElement* This, __GLCcontext* inContext); void __glcRenderCharTexture(__GLCfont* inFont, __GLCcontext* inContext, GLfloat scale_x, GLfloat scale_y, __GLCglyph* inGlyph); #endif quesoglc-0.7.2/aclocal.m40000644000175000017500000010246311164476133012137 00000000000000# generated automatically by aclocal 1.10.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(AC_AUTOCONF_VERSION, [2.61],, [m4_warning([this file was generated for autoconf 2.61. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.10' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.10.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.10.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 13 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.60])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_PROG_CC_C_O # -------------- # Like AC_PROG_CC_C_O, but changed for automake. AC_DEFUN([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC_C_O])dnl AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi dnl Make sure AC_PROG_CC is never called again, or it will override our dnl setting of CC. m4_define([AC_PROG_CC], [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([build/m4/acx_pthread.m4]) m4_include([build/m4/ax_check_fontconfig.m4]) m4_include([build/m4/ax_check_freetype2.m4]) m4_include([build/m4/ax_check_fribidi.m4]) m4_include([build/m4/ax_check_gl.m4]) m4_include([build/m4/ax_check_glew.m4]) m4_include([build/m4/ax_check_glu.m4]) m4_include([build/m4/ax_check_glut.m4]) m4_include([build/m4/ax_check_tls.m4]) m4_include([build/m4/ax_lang_compiler_ms.m4]) m4_include([build/m4/libtool.m4]) m4_include([build/m4/ltoptions.m4]) m4_include([build/m4/ltsugar.m4]) m4_include([build/m4/ltversion.m4]) m4_include([build/m4/lt~obsolete.m4]) m4_include([build/m4/pkg.m4]) quesoglc-0.7.2/Makefile.am0000644000175000017500000000423711164475622012335 00000000000000SUBDIRS = include build @EXECUTABLES@ ACLOCAL_AMFLAGS = -I build/m4 EXTRA_DIST = ChangeLog \ INSTALL \ INSTALL.win \ COPYING \ makefile.mgw \ database/buildDB.py \ $(DOCS) \ $(VCPROJS) VCPROJS = QuesoGLC.sln \ build/QuesoGLC.vcproj \ tests/test1.vcproj \ tests/test4.vcproj \ tests/test5.vcproj \ tests/test6.vcproj \ tests/test7.vcproj \ tests/test8.vcproj \ tests/test9.1.vcproj \ tests/test9.2.vcproj \ tests/test9.3.vcproj \ tests/test9.4.vcproj \ tests/test9.5.vcproj \ tests/test9.6.vcproj \ tests/test9.7.vcproj \ tests/test9.8.vcproj \ tests/test10.vcproj \ tests/test11.1.vcproj \ tests/test11.2.vcproj \ tests/test11.3.vcproj \ tests/test11.4.vcproj \ tests/test11.5.vcproj \ tests/test11.6.vcproj \ tests/test11.7.vcproj \ tests/test12.vcproj \ tests/testcontex.vcproj \ tests/testfont.vcproj \ tests/testmaster.vcproj \ tests/testrender.vcproj \ examples/tutorial.vcproj \ examples/tutorial2.vcproj DOCS = docs/body_comparison.eps \ docs/body_comparison.png \ docs/Doxyfile \ docs/glclogo.png \ docs/Image1.eps \ docs/Image1.png \ docs/Image2.eps \ docs/Image2.png \ docs/Image3.eps \ docs/Image3.png \ docs/Image4.eps \ docs/Image4.png \ docs/mainpage.dox \ docs/measure.eps \ docs/measure.png \ docs/qfooter.html \ docs/qheader.html \ docs/quesoglc.css \ docs/screenshot.eps \ docs/screenshot.png \ docs/title.png \ docs/tutorial2.eps \ docs/tutorial2.png \ docs/tutorial2_wrong.eps \ docs/tutorial2_wrong.png \ docs/tutorial.eps \ docs/tutorial.png pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = quesoglc.pc dist-hook: mkdir -p -- $(distdir)/build/m4 .PHONY: doc doc: $(DOCS) cd docs && doxygen && cd .. quesoglc-0.7.2/THANKS0000644000175000017500000000073411021606761011202 00000000000000Thanks to : * Pablo Barbáchano for fixing the install process and providing a patch to allow QuesoGLC to be linked with FreeType 2.2.x * Brandon Casey for many bug fixes * Thomas Zimmermann for fixing the string measurement commands and improving the autotools building scripts * Matt Turner for demonstrating that QuesoGLC could be compiled under Windows with a few changes * Giel van Schijndel and Dennis Schridde for providing the pkg-config files and reporting many bugsquesoglc-0.7.2/examples/0000777000175000017500000000000011164476312012172 500000000000000quesoglc-0.7.2/examples/Makefile.am0000644000175000017500000000104611164475701014144 00000000000000 ## Process this file with automake to produce Makefile.in. noinst_PROGRAMS = tutorial \ tutorial2 AM_CFLAGS = @PTHREAD_CFLAGS@ \ @FREETYPE2_CFLAGS@ \ @FONTCONFIG_CFLAGS@ \ @GLUT_CFLAGS@ \ @FRIBIDI_CFLAGS@ LDADD = $(top_builddir)/build/libGLC.la \ @GLUT_LIBS@ \ @FONTCONFIG_LIBS@ \ @FREETYPE2_LIBS@ \ @PTHREAD_LIBS@ \ @FRIBIDI_LIBS@ tutorial_SOURCES = tutorial.c tutorial2_SOURCES = tutorial2.c clean-generic: rm -f *.gcno *.gcda *.gcov quesoglc-0.7.2/examples/tutorial.vcproj0000644000175000017500000000721411162160036015171 00000000000000 quesoglc-0.7.2/examples/tutorial2.c0000644000175000017500000000622710764574552014220 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002-2005, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: tutorial2.c 641 2007-10-26 21:32:18Z bcoconni $ */ #include "GL/glc.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include void reshape(int width, int height) { glClearColor(0., 0., 0., 0.); glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0., width, 0., height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glFlush(); } void keyboard(unsigned char key, int x, int y) { switch(key) { case 27: /* Escape Key */ exit(0); default: break; } } void display(void) { int i = 0; GLfloat baseline[4] = {0.f, 0.f, 0.f, 0.f}; GLfloat bbox[8] = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f}; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glColor3f(1.f, 0.f, 0.f); glRasterPos2f(50.f, 50.f); glcRenderString("Hello world!"); /* Render "H" and its bounding box */ glColor3f(0.f, 1.f, 1.f); glTranslatef(50.f, 50.f, 0.f); glcGetCharMetric('H', GLC_BOUNDS, bbox); glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); /* Translate the model view matrix of the width of "H" */ glcGetCharMetric('H', GLC_BASELINE, baseline); glTranslatef(baseline[2] - baseline[0], baseline[3] - baseline[1], 0.f); /* Render the bouding box of "ello" */ glcMeasureString(GL_FALSE, "ello"); glcGetStringMetric(GLC_BOUNDS, bbox); glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); glLoadIdentity(); glFlush(); } int main(int argc, char **argv) { GLint ctx = 0; GLint myFont = 0; glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(640, 230); glutCreateWindow("Tutorial 2"); glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keyboard); /* Set up and initialize GLC */ ctx = glcGenContext(); glcContext(ctx); glcAppendCatalog("/usr/lib/X11/fonts/Type1"); /* Create a font "Palatino Bold" */ myFont = glcGenFontID(); #ifdef __WIN32__ glcNewFontFromFamily(myFont, "Palatino Linotype"); #else glcNewFontFromFamily(myFont, "Palatino"); #endif glcFontFace(myFont, "Bold"); glcFont(myFont); /* Render the text at a size of 100 points */ glcScale(100.f, 100.f); glcRotate(10.f); glutMainLoop(); return 0; } quesoglc-0.7.2/examples/Makefile.in0000644000175000017500000003632211164476137014166 00000000000000# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = tutorial$(EXEEXT) tutorial2$(EXEEXT) subdir = examples DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/build/m4/acx_pthread.m4 \ $(top_srcdir)/build/m4/ax_check_fontconfig.m4 \ $(top_srcdir)/build/m4/ax_check_freetype2.m4 \ $(top_srcdir)/build/m4/ax_check_fribidi.m4 \ $(top_srcdir)/build/m4/ax_check_gl.m4 \ $(top_srcdir)/build/m4/ax_check_glew.m4 \ $(top_srcdir)/build/m4/ax_check_glu.m4 \ $(top_srcdir)/build/m4/ax_check_glut.m4 \ $(top_srcdir)/build/m4/ax_check_tls.m4 \ $(top_srcdir)/build/m4/ax_lang_compiler_ms.m4 \ $(top_srcdir)/build/m4/libtool.m4 \ $(top_srcdir)/build/m4/ltoptions.m4 \ $(top_srcdir)/build/m4/ltsugar.m4 \ $(top_srcdir)/build/m4/ltversion.m4 \ $(top_srcdir)/build/m4/lt~obsolete.m4 \ $(top_srcdir)/build/m4/pkg.m4 $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/include/qglc_config.h CONFIG_CLEAN_FILES = PROGRAMS = $(noinst_PROGRAMS) am_tutorial_OBJECTS = tutorial.$(OBJEXT) tutorial_OBJECTS = $(am_tutorial_OBJECTS) tutorial_LDADD = $(LDADD) tutorial_DEPENDENCIES = $(top_builddir)/build/libGLC.la am_tutorial2_OBJECTS = tutorial2.$(OBJEXT) tutorial2_OBJECTS = $(am_tutorial2_OBJECTS) tutorial2_LDADD = $(LDADD) tutorial2_DEPENDENCIES = $(top_builddir)/build/libGLC.la DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include depcomp = $(SHELL) $(top_srcdir)/build/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(tutorial_SOURCES) $(tutorial2_SOURCES) DIST_SOURCES = $(tutorial_SOURCES) $(tutorial2_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEBUG_TESTS = @DEBUG_TESTS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXECUTABLES = @EXECUTABLES@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ FREETYPE2_CFLAGS = @FREETYPE2_CFLAGS@ FREETYPE2_LIBS = @FREETYPE2_LIBS@ FREETYPE_CONFIG = @FREETYPE_CONFIG@ FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ FRIBIDI_LIBS = @FRIBIDI_LIBS@ FRIBIDI_OBJ = @FRIBIDI_OBJ@ GLEW_CFLAGS = @GLEW_CFLAGS@ GLEW_OBJ = @GLEW_OBJ@ GLUT_CFLAGS = @GLUT_CFLAGS@ GLUT_LIBS = @GLUT_LIBS@ GLU_CFLAGS = @GLU_CFLAGS@ GLU_LIBS = @GLU_LIBS@ GL_CFLAGS = @GL_CFLAGS@ GL_LIBS = @GL_LIBS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG_INCLUDE = @PKGCONFIG_INCLUDE@ PKGCONFIG_LIBS_PRIVATE = @PKGCONFIG_LIBS_PRIVATE@ PKGCONFIG_REQUIREMENTS = @PKGCONFIG_REQUIREMENTS@ PKG_CONFIG = @PKG_CONFIG@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTS_WITH_GLUT = @TESTS_WITH_GLUT@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CFLAGS = @PTHREAD_CFLAGS@ \ @FREETYPE2_CFLAGS@ \ @FONTCONFIG_CFLAGS@ \ @GLUT_CFLAGS@ \ @FRIBIDI_CFLAGS@ LDADD = $(top_builddir)/build/libGLC.la \ @GLUT_LIBS@ \ @FONTCONFIG_LIBS@ \ @FREETYPE2_LIBS@ \ @PTHREAD_LIBS@ \ @FRIBIDI_LIBS@ tutorial_SOURCES = tutorial.c tutorial2_SOURCES = tutorial2.c all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign examples/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done tutorial$(EXEEXT): $(tutorial_OBJECTS) $(tutorial_DEPENDENCIES) @rm -f tutorial$(EXEEXT) $(LINK) $(tutorial_OBJECTS) $(tutorial_LDADD) $(LIBS) tutorial2$(EXEEXT): $(tutorial2_OBJECTS) $(tutorial2_DEPENDENCIES) @rm -f tutorial2$(EXEEXT) $(LINK) $(tutorial2_OBJECTS) $(tutorial2_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tutorial.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tutorial2.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am clean-generic: rm -f *.gcno *.gcda *.gcov # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: quesoglc-0.7.2/examples/tutorial.c0000644000175000017500000000463110764574552014133 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002-2005, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: tutorial.c 458 2006-09-01 22:24:14Z bcoconni $ */ #include "GL/glc.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include void reshape(int width, int height) { glClearColor(0., 0., 0., 0.); glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0., width, 0., height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glFlush(); } void keyboard(unsigned char key, int x, int y) { switch(key) { case 27: /* Escape Key */ exit(0); default: break; } } void display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); /* Render "Hello world!" */ glColor3f(1.f, 0.f, 0.f); glRasterPos2f(50.f, 50.f); glcRenderString("Hello world!"); glFlush(); } int main(int argc, char **argv) { GLint ctx = 0; GLint myFont = 0; glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(640, 180); glutCreateWindow("Tutorial"); glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keyboard); /* Set up and initialize GLC */ ctx = glcGenContext(); glcContext(ctx); glcAppendCatalog("/usr/lib/X11/fonts/Type1"); /* Create a font "Palatino Bold" */ myFont = glcGenFontID(); #ifdef __WIN32__ glcNewFontFromFamily(myFont, "Palatino Linotype"); #else glcNewFontFromFamily(myFont, "Palatino"); #endif glcFontFace(myFont, "Bold"); glcFont(myFont); /* Render the text at a size of 100 points */ glcScale(100.f, 100.f); glutMainLoop(); return 0; } quesoglc-0.7.2/examples/tutorial2.vcproj0000644000175000017500000000721611162160036015255 00000000000000 quesoglc-0.7.2/Makefile.in0000644000175000017500000005765611164476137012365 00000000000000# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/quesoglc.pc.in \ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL \ THANKS ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/build/m4/acx_pthread.m4 \ $(top_srcdir)/build/m4/ax_check_fontconfig.m4 \ $(top_srcdir)/build/m4/ax_check_freetype2.m4 \ $(top_srcdir)/build/m4/ax_check_fribidi.m4 \ $(top_srcdir)/build/m4/ax_check_gl.m4 \ $(top_srcdir)/build/m4/ax_check_glew.m4 \ $(top_srcdir)/build/m4/ax_check_glu.m4 \ $(top_srcdir)/build/m4/ax_check_glut.m4 \ $(top_srcdir)/build/m4/ax_check_tls.m4 \ $(top_srcdir)/build/m4/ax_lang_compiler_ms.m4 \ $(top_srcdir)/build/m4/libtool.m4 \ $(top_srcdir)/build/m4/ltoptions.m4 \ $(top_srcdir)/build/m4/ltsugar.m4 \ $(top_srcdir)/build/m4/ltversion.m4 \ $(top_srcdir)/build/m4/lt~obsolete.m4 \ $(top_srcdir)/build/m4/pkg.m4 $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/include/qglc_config.h CONFIG_CLEAN_FILES = quesoglc.pc SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(pkgconfigdir)" pkgconfigDATA_INSTALL = $(INSTALL_DATA) DATA = $(pkgconfig_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEBUG_TESTS = @DEBUG_TESTS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXECUTABLES = @EXECUTABLES@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ FREETYPE2_CFLAGS = @FREETYPE2_CFLAGS@ FREETYPE2_LIBS = @FREETYPE2_LIBS@ FREETYPE_CONFIG = @FREETYPE_CONFIG@ FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ FRIBIDI_LIBS = @FRIBIDI_LIBS@ FRIBIDI_OBJ = @FRIBIDI_OBJ@ GLEW_CFLAGS = @GLEW_CFLAGS@ GLEW_OBJ = @GLEW_OBJ@ GLUT_CFLAGS = @GLUT_CFLAGS@ GLUT_LIBS = @GLUT_LIBS@ GLU_CFLAGS = @GLU_CFLAGS@ GLU_LIBS = @GLU_LIBS@ GL_CFLAGS = @GL_CFLAGS@ GL_LIBS = @GL_LIBS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG_INCLUDE = @PKGCONFIG_INCLUDE@ PKGCONFIG_LIBS_PRIVATE = @PKGCONFIG_LIBS_PRIVATE@ PKGCONFIG_REQUIREMENTS = @PKGCONFIG_REQUIREMENTS@ PKG_CONFIG = @PKG_CONFIG@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTS_WITH_GLUT = @TESTS_WITH_GLUT@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = include build @EXECUTABLES@ ACLOCAL_AMFLAGS = -I build/m4 EXTRA_DIST = ChangeLog \ INSTALL \ INSTALL.win \ COPYING \ makefile.mgw \ database/buildDB.py \ $(DOCS) \ $(VCPROJS) VCPROJS = QuesoGLC.sln \ build/QuesoGLC.vcproj \ tests/test1.vcproj \ tests/test4.vcproj \ tests/test5.vcproj \ tests/test6.vcproj \ tests/test7.vcproj \ tests/test8.vcproj \ tests/test9.1.vcproj \ tests/test9.2.vcproj \ tests/test9.3.vcproj \ tests/test9.4.vcproj \ tests/test9.5.vcproj \ tests/test9.6.vcproj \ tests/test9.7.vcproj \ tests/test9.8.vcproj \ tests/test10.vcproj \ tests/test11.1.vcproj \ tests/test11.2.vcproj \ tests/test11.3.vcproj \ tests/test11.4.vcproj \ tests/test11.5.vcproj \ tests/test11.6.vcproj \ tests/test11.7.vcproj \ tests/test12.vcproj \ tests/testcontex.vcproj \ tests/testfont.vcproj \ tests/testmaster.vcproj \ tests/testrender.vcproj \ examples/tutorial.vcproj \ examples/tutorial2.vcproj DOCS = docs/body_comparison.eps \ docs/body_comparison.png \ docs/Doxyfile \ docs/glclogo.png \ docs/Image1.eps \ docs/Image1.png \ docs/Image2.eps \ docs/Image2.png \ docs/Image3.eps \ docs/Image3.png \ docs/Image4.eps \ docs/Image4.png \ docs/mainpage.dox \ docs/measure.eps \ docs/measure.png \ docs/qfooter.html \ docs/qheader.html \ docs/quesoglc.css \ docs/screenshot.eps \ docs/screenshot.png \ docs/title.png \ docs/tutorial2.eps \ docs/tutorial2.png \ docs/tutorial2_wrong.eps \ docs/tutorial2_wrong.png \ docs/tutorial.eps \ docs/tutorial.png pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = quesoglc.pc all: all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ cd $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) quesoglc.pc: $(top_builddir)/config.status $(srcdir)/quesoglc.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" @list='$(pkgconfig_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \ $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \ rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d $(distdir) || mkdir $(distdir) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pkgconfigdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-pkgconfigDATA install-dvi: install-dvi-recursive install-exec-am: install-html: install-html-recursive install-info: install-info-recursive install-man: install-pdf: install-pdf-recursive install-ps: install-ps-recursive installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-pkgconfigDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-zip \ distcheck distclean distclean-generic distclean-libtool \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-pkgconfigDATA install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-pkgconfigDATA dist-hook: mkdir -p -- $(distdir)/build/m4 .PHONY: doc doc: $(DOCS) cd docs && doxygen && cd .. # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: quesoglc-0.7.2/COPYING0000644000175000017500000005750510764574552011351 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS quesoglc-0.7.2/docs/0000777000175000017500000000000011164476310011302 500000000000000quesoglc-0.7.2/docs/screenshot.eps0000644000175000017500000005030010764574551014115 00000000000000%!PS-Adobe-3.0 EPSF-3.0 %%Title: glclogo example by Gerard Lanois %%Creator: GL2PS 1.3.1, (C) 1999-2006 Christophe Geuzaine (geuz@geuz.org) %%For: QuesoGLC %%CreationDate: Sat Sep 2 17:10:22 2006 %%LanguageLevel: 3 %%DocumentData: Clean7Bit %%Pages: 1 %%BoundingBox: 0 0 800 300 %%EndComments %%BeginProlog /gl2psdict 64 dict def gl2psdict begin 0 setlinecap 0 setlinejoin /tryPS3shading true def % set to false to force subdivision /rThreshold 0.064 def % red component subdivision threshold /gThreshold 0.034 def % green component subdivision threshold /bThreshold 0.1 def % blue component subdivision threshold /BD { bind def } bind def /C { setrgbcolor } BD /G { 0.082 mul exch 0.6094 mul add exch 0.3086 mul add neg 1.0 add setgray } BD /W { setlinewidth } BD /FC { findfont exch /SH exch def SH scalefont setfont } BD /SW { dup stringwidth pop } BD /S { FC moveto show } BD /SBC{ FC moveto SW -2 div 0 rmoveto show } BD /SBR{ FC moveto SW neg 0 rmoveto show } BD /SCL{ FC moveto 0 SH -2 div rmoveto show } BD /SCC{ FC moveto SW -2 div SH -2 div rmoveto show } BD /SCR{ FC moveto SW neg SH -2 div rmoveto show } BD /STL{ FC moveto 0 SH neg rmoveto show } BD /STC{ FC moveto SW -2 div SH neg rmoveto show } BD /STR{ FC moveto SW neg SH neg rmoveto show } BD /FCT { FC translate 0 0 } BD /SR { gsave FCT moveto rotate show grestore } BD /SBCR{ gsave FCT moveto rotate SW -2 div 0 rmoveto show grestore } BD /SBRR{ gsave FCT moveto rotate SW neg 0 rmoveto show grestore } BD /SCLR{ gsave FCT moveto rotate 0 SH -2 div rmoveto show grestore} BD /SCCR{ gsave FCT moveto rotate SW -2 div SH -2 div rmoveto show grestore} BD /SCRR{ gsave FCT moveto rotate SW neg SH -2 div rmoveto show grestore} BD /STLR{ gsave FCT moveto rotate 0 SH neg rmoveto show grestore } BD /STCR{ gsave FCT moveto rotate SW -2 div SH neg rmoveto show grestore } BD /STRR{ gsave FCT moveto rotate SW neg SH neg rmoveto show grestore } BD /P { newpath 0.0 360.0 arc closepath fill } BD /LS { newpath moveto } BD /L { lineto } BD /LE { lineto stroke } BD /T { newpath moveto lineto lineto closepath fill } BD /STshfill { /b1 exch def /g1 exch def /r1 exch def /y1 exch def /x1 exch def /b2 exch def /g2 exch def /r2 exch def /y2 exch def /x2 exch def /b3 exch def /g3 exch def /r3 exch def /y3 exch def /x3 exch def gsave << /ShadingType 4 /ColorSpace [/DeviceRGB] /DataSource [ 0 x1 y1 r1 g1 b1 0 x2 y2 r2 g2 b2 0 x3 y3 r3 g3 b3 ] >> shfill grestore } BD /Tm { 3 -1 roll 8 -1 roll 13 -1 roll add add 3 div 3 -1 roll 7 -1 roll 11 -1 roll add add 3 div 3 -1 roll 6 -1 roll 9 -1 roll add add 3 div C T } BD /STsplit { 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 5 copy 5 copy 25 15 roll 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 5 copy 5 copy 35 5 roll 25 5 roll 15 5 roll 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 5 copy 5 copy 40 5 roll 25 5 roll 15 5 roll 25 5 roll STnoshfill STnoshfill STnoshfill STnoshfill } BD /STnoshfill { 2 index 8 index sub abs rThreshold gt { STsplit } { 1 index 7 index sub abs gThreshold gt { STsplit } { dup 6 index sub abs bThreshold gt { STsplit } { 2 index 13 index sub abs rThreshold gt { STsplit } { 1 index 12 index sub abs gThreshold gt { STsplit } { dup 11 index sub abs bThreshold gt { STsplit } { 7 index 13 index sub abs rThreshold gt { STsplit } { 6 index 12 index sub abs gThreshold gt { STsplit } { 5 index 11 index sub abs bThreshold gt { STsplit } { Tm } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } BD tryPS3shading { /shfill where { /ST { STshfill } BD } { /ST { STnoshfill } BD } ifelse } { /ST { STnoshfill } BD } ifelse end %%EndProlog %%BeginSetup /DeviceRGB setcolorspace gl2psdict begin %%EndSetup %%Page: 1 1 %%BeginPageSetup %%EndPageSetup mark gsave 1.0 1.0 scale 0 0 0 C newpath 0 0 moveto 800 0 lineto 800 300 lineto 0 300 lineto closepath fill 1 0 0 C 133.776 154.962 123.423 176.122 114.025 214.957 T 133.776 154.962 114.025 214.957 162.112 98.8853 T 162.112 98.8853 114.025 214.957 127.477 211.125 T 162.112 98.8853 127.477 211.125 168.906 111.099 T 168.906 111.099 127.477 211.125 139.97 204.592 T 168.906 111.099 139.97 204.592 173.054 124.474 T 173.054 124.474 139.97 204.592 151.159 195.369 T 173.054 124.474 151.159 195.369 174.419 138.743 T 174.419 138.743 151.159 195.369 160.698 183.464 T 174.419 138.743 160.698 183.464 172.86 153.636 T 172.86 153.636 160.698 183.464 168.24 168.887 T 101.858 200.625 93.2168 204.742 99.9624 216.079 T 101.858 200.625 99.9624 216.079 109.799 194.129 T 109.799 194.129 99.9624 216.079 114.025 214.957 T 109.799 194.129 114.025 214.957 117 185.785 T 117 185.785 114.025 214.957 123.423 176.122 T 73.9893 203.715 65.2983 198.427 71.3867 210.156 T 73.9893 203.715 71.3867 210.156 83.9141 205.948 T 83.9141 205.948 71.3867 210.156 85.6343 214.482 T 83.9141 205.948 85.6343 214.482 93.2168 204.742 T 93.2168 204.742 85.6343 214.482 99.9624 216.079 T 46.7168 194.566 58.1328 203.371 56.0884 182.133 T 56.0884 182.133 58.1328 203.371 59.4448 191.097 T 59.4448 191.097 58.1328 203.371 65.2983 198.427 T 65.2983 198.427 58.1328 203.371 71.3867 210.156 T 37.3804 183.99 46.7168 194.566 57.5977 149.526 T 57.5977 149.526 46.7168 194.566 55.5049 160.939 T 55.5049 160.939 46.7168 194.566 54.8887 171.944 T 54.8887 171.944 46.7168 194.566 56.0884 182.133 T 30.3662 171.889 37.3804 183.99 83.4092 67.0869 T 83.4092 67.0869 37.3804 183.99 72.3975 110.452 T 72.3975 110.452 37.3804 183.99 64.8481 127.114 T 64.8481 127.114 37.3804 183.99 57.5977 149.526 T 133.776 154.962 162.112 98.8853 139.92 137.732 T 139.92 137.732 162.112 98.8853 142.676 126.818 T 142.676 126.818 162.112 98.8853 144.265 115.34 T 144.265 115.34 162.112 98.8853 152.812 88.1011 T 143.973 104.026 144.265 115.34 152.812 88.1011 T 143.973 104.026 152.812 88.1011 141.083 93.603 T 141.083 93.603 152.812 88.1011 141.144 79.0156 T 141.083 93.603 141.144 79.0156 134.878 84.7979 T 134.878 84.7979 141.144 79.0156 130.31 81.2295 T 118.561 76.4824 124.645 78.3379 127.247 71.897 T 127.247 71.897 124.645 78.3379 141.144 79.0156 T 141.144 79.0156 124.645 78.3379 130.31 81.2295 T 102.216 77.9004 112.796 75.876 112.298 67.3613 T 112.298 67.3613 112.796 75.876 127.247 71.897 T 127.247 71.897 112.796 75.876 118.561 76.4824 T 84.8271 91.3257 92.8965 83.3901 97.5908 65.7905 T 97.5908 65.7905 92.8965 83.3901 112.298 67.3613 T 112.298 67.3613 92.8965 83.3901 102.216 77.9004 T 84.8271 91.3257 97.5908 65.7905 77.9971 100.687 T 77.9971 100.687 97.5908 65.7905 72.3975 110.452 T 72.3975 110.452 97.5908 65.7905 83.4092 67.0869 T 37.6538 99.0098 30.3848 113.19 25.6836 128.915 T 37.6538 99.0098 25.6836 128.915 46.8765 87.2124 T 46.8765 87.2124 25.6836 128.915 24.2754 144.104 T 46.8765 87.2124 24.2754 144.104 57.7666 77.8945 T 57.7666 77.8945 24.2754 144.104 25.917 158.512 T 57.7666 77.8945 25.917 158.512 70.0396 71.1538 T 70.0396 71.1538 25.917 158.512 30.3662 171.889 T 70.0396 71.1538 30.3662 171.889 83.4092 67.0869 T 0 1 0 C 215.44 161.358 221.744 159.153 227.186 150.738 T 215.44 161.358 227.186 150.738 209.561 165.895 T 209.561 165.895 227.186 150.738 213.968 154.985 T 209.561 165.895 213.968 154.985 186.59 222.748 T 186.59 222.748 213.968 154.985 225.06 127.533 T 186.59 222.748 225.06 127.533 186.21 222.594 T 186.21 222.594 225.06 127.533 160.854 208.506 T 186.21 222.594 160.854 208.506 181.015 235.453 T 181.015 235.453 160.854 208.506 158.553 213.101 T 181.015 235.453 158.553 213.101 155.698 215.817 T 155.698 215.817 151.635 216.687 181.015 235.453 T 181.015 235.453 151.635 216.687 143.818 220.424 T 143.818 220.424 151.635 216.687 145.709 215.742 T 259.295 168.14 226.04 249.474 233.447 246.946 T 259.295 168.14 233.447 246.946 262.643 175.933 T 262.643 175.933 233.447 246.946 240.685 242.628 T 262.643 175.933 240.685 242.628 264.453 184.855 T 264.453 184.855 240.685 242.628 247.516 236.36 T 264.453 184.855 247.516 236.36 264.559 194.8 T 264.559 194.8 247.516 236.36 253.701 227.982 T 264.559 194.8 253.701 227.982 262.797 205.662 T 262.797 205.662 253.701 227.982 259.003 217.334 T 211.665 249.802 218.699 250.373 226.127 214.621 T 226.127 214.621 218.699 250.373 231.661 202.001 T 231.661 202.001 218.699 250.373 254.573 161.583 T 254.573 161.583 218.699 250.373 259.295 168.14 T 259.295 168.14 218.699 250.373 226.04 249.474 T 205.173 247.922 211.665 249.802 211.104 233.252 T 211.104 233.252 211.665 249.802 215.404 230.33 T 215.404 230.33 211.665 249.802 219.329 226.008 T 219.329 226.008 211.665 249.802 226.127 214.621 T 190.451 213.193 209.561 165.895 186.59 222.748 T 190.451 213.193 186.59 222.748 190.449 217.013 T 190.449 217.013 186.59 222.748 187.604 229.067 T 190.449 217.013 187.604 229.067 192.177 223.018 T 192.177 223.018 187.604 229.067 190.31 235.883 T 192.177 223.018 190.31 235.883 195.752 229.172 T 195.752 229.172 190.31 235.883 195.802 242.426 T 195.752 229.172 195.802 242.426 201.291 233.443 T 201.291 233.443 195.802 242.426 205.173 247.922 T 201.291 233.443 205.173 247.922 206.406 234.411 T 206.406 234.411 205.173 247.922 211.104 233.252 T 238.153 179.364 235.407 191.755 248.643 156.367 T 248.643 156.367 235.407 191.755 254.573 161.583 T 254.573 161.583 235.407 191.755 231.661 202.001 T 227.186 150.738 221.744 159.153 229.36 160.07 T 227.186 150.738 229.36 160.07 234.034 150.588 T 234.034 150.588 229.36 160.07 234.225 163.277 T 234.034 150.588 234.225 163.277 241.667 152.601 T 241.667 152.601 234.225 163.277 237.078 167.81 T 241.667 152.601 237.078 167.81 248.643 156.367 T 248.643 156.367 237.078 167.81 238.269 173.296 T 248.643 156.367 238.269 173.296 238.153 179.364 T 247.325 116.152 248.977 112.063 240.794 114.368 T 240.794 114.368 248.977 112.063 235.033 114.832 T 235.033 114.832 248.977 112.063 200.273 110.938 T 200.273 110.938 248.977 112.063 201.821 105.829 T 201.821 105.829 248.977 112.063 201.46 101.979 T 201.46 101.979 248.977 112.063 198.925 98.6865 T 198.925 98.6865 248.977 112.063 193.949 95.25 T 193.949 95.25 248.977 112.063 195.831 90.5913 T 225.06 127.533 229.852 118.8 160.854 208.506 T 160.854 208.506 229.852 118.8 200.273 110.938 T 200.273 110.938 229.852 118.8 235.033 114.832 T 0 0 1 C 313.217 160.927 309.271 167.272 311.936 175.659 T 313.217 160.927 311.936 175.659 315.745 149.311 T 315.745 149.311 311.936 175.659 321.658 172.197 T 315.745 149.311 321.658 172.197 317.175 137.445 T 317.175 137.445 321.658 172.197 343.594 131.959 T 317.175 137.445 343.594 131.959 290.859 127.345 T 291.253 162.958 288.846 152.516 290.98 174.512 T 291.253 162.958 290.98 174.512 295.584 168.113 T 295.584 168.113 290.98 174.512 299.659 176.184 T 295.584 168.113 299.659 176.184 301.069 169.771 T 301.069 169.771 299.659 176.184 311.936 175.659 T 301.069 169.771 311.936 175.659 305.827 169.291 T 305.827 169.291 311.936 175.659 309.271 167.272 T 276.144 166.211 283.09 171.15 284.637 79.0381 T 284.637 79.0381 283.09 171.15 292.144 75.8564 T 292.144 75.8564 283.09 171.15 289.135 134.992 T 289.135 134.992 283.09 171.15 288.846 152.516 T 288.846 152.516 283.09 171.15 290.98 174.512 T 276.144 166.211 284.637 79.0381 277.728 83.9048 T 276.144 166.211 277.728 83.9048 270.296 159.806 T 270.296 159.806 277.728 83.9048 271.663 90.5342 T 270.296 159.806 271.663 90.5342 265.704 152.048 T 265.704 152.048 271.663 90.5342 266.69 99.0034 T 265.704 152.048 266.69 99.0034 262.521 143.048 T 262.521 143.048 266.69 99.0034 263.056 109.391 T 262.521 143.048 263.056 109.391 260.904 132.92 T 260.904 132.92 263.056 109.391 261.008 121.774 T 341.164 144.056 343.594 131.959 338.58 151.728 T 338.58 151.728 343.594 131.959 334.672 159.478 T 334.672 159.478 343.594 131.959 329.135 166.552 T 329.135 166.552 343.594 131.959 321.658 172.197 T 293.448 113.856 298.495 101.586 300 74.2817 T 293.448 113.856 300 74.2817 290.859 127.345 T 290.859 127.345 300 74.2817 289.135 134.992 T 290.859 127.345 289.135 134.992 317.175 137.445 T 341.806 106.507 347.094 104.011 338.663 90.8838 T 341.806 106.507 338.663 90.8838 333.904 96.9385 T 333.904 96.9385 338.663 90.8838 329.65 81.9565 T 333.904 96.9385 329.65 81.9565 327.605 92.665 T 327.605 92.665 329.65 81.9565 319.385 90.4185 T 329.65 81.9565 319.576 76.6128 319.385 90.4185 T 319.385 90.4185 319.576 76.6128 312.545 90.7793 T 312.545 90.7793 319.576 76.6128 306.855 92.9634 T 306.855 92.9634 319.576 76.6128 307.96 74.2368 T 306.855 92.9634 307.96 74.2368 302.207 96.667 T 302.207 96.667 307.96 74.2368 298.495 101.586 T 298.495 101.586 307.96 74.2368 300 74.2817 T 289.135 134.992 300 74.2817 292.144 75.8564 T 1 0 0 C 354.44 171.057 338.458 230.707 386.185 171.255 T 386.185 171.255 338.458 230.707 384.017 174.445 T 384.017 174.445 338.458 230.707 382.803 178.019 T 382.803 178.019 338.458 230.707 365.865 240.439 T 365.865 240.439 338.458 230.707 361.951 255.048 T 361.951 255.048 338.458 230.707 336.436 236.105 T 323.199 244.665 361.951 255.048 329.906 240.055 T 329.906 240.055 361.951 255.048 333.734 239.024 T 333.734 239.024 361.951 255.048 336.436 236.105 T 379.655 260.271 390.494 265.297 385.731 248.925 T 385.731 248.925 390.494 265.297 388.829 248.315 T 388.829 248.315 390.494 265.297 393.34 244.746 T 393.34 244.746 390.494 265.297 396.085 239.562 T 396.085 239.562 390.494 265.297 397.633 234.593 T 397.633 234.593 390.494 265.297 442.227 185.943 T 442.227 185.943 390.494 265.297 440.162 189.306 T 440.162 189.306 390.494 265.297 399.81 266.366 T 368.293 232.172 365.865 240.439 366.262 240.545 T 368.293 232.172 366.262 240.545 369.082 235.182 T 369.082 235.182 366.262 240.545 368.277 246.132 T 369.082 235.182 368.277 246.132 371.906 240.18 T 371.906 240.18 368.277 246.132 372.495 253.295 T 371.906 240.18 372.495 253.295 376.345 245.242 T 376.345 245.242 372.495 253.295 379.655 260.271 T 376.345 245.242 379.655 260.271 381.979 248.445 T 381.979 248.445 379.655 260.271 385.731 248.925 T 422.589 251.427 425.345 243.982 438.986 193.073 T 422.589 251.427 438.986 193.073 418.948 257.146 T 418.948 257.146 438.986 193.073 440.162 189.306 T 418.948 257.146 440.162 189.306 414.636 261.32 T 414.636 261.32 440.162 189.306 409.866 264.128 T 452.014 184.17 453.321 179.292 445.929 183.92 T 445.929 183.92 453.321 179.292 442.227 185.943 T 442.227 185.943 453.321 179.292 410.783 185.517 T 410.783 185.517 453.321 179.292 411.55 180.471 T 411.55 180.471 453.321 179.292 410.779 176.532 T 410.779 176.532 453.321 179.292 408.401 173.555 T 408.401 173.555 453.321 179.292 404.349 171.398 T 404.349 171.398 453.321 179.292 405.656 166.521 T 395.831 169.116 397.138 164.238 389.918 169.222 T 389.918 169.222 397.138 164.238 386.185 171.255 T 386.185 171.255 397.138 164.238 354.44 171.057 T 354.44 171.057 397.138 164.238 355.367 164.992 T 355.367 164.992 397.138 164.238 354.292 161.078 T 354.292 161.078 397.138 164.238 351.418 158.394 T 351.418 158.394 397.138 164.238 346.952 156.019 T 346.952 156.019 397.138 164.238 348.259 151.141 T 442.227 185.943 410.783 185.517 397.633 234.593 T 440.162 189.306 399.81 266.366 409.866 264.128 T 365.865 240.439 368.293 232.172 382.803 178.019 T 323.199 244.665 329.906 240.055 324.506 239.787 T 1 1 0 C 584.647 192.58 579.965 190.194 562.337 236.366 T 562.337 236.366 579.965 190.194 557.29 233.794 T 557.29 233.794 579.965 190.194 557.263 226.146 T 557.263 226.146 579.965 190.194 555.928 223.119 T 555.928 223.119 579.965 190.194 566.857 199.682 T 550.881 207.106 542.334 209.294 547.008 219.516 T 550.881 207.106 547.008 219.516 566.857 199.682 T 566.857 199.682 547.008 219.516 553.066 220.795 T 566.857 199.682 553.066 220.795 555.928 223.119 T 525.156 209.119 516.938 206.156 525.067 216.288 T 525.156 209.119 525.067 216.288 533.691 210.065 T 533.691 210.065 525.067 216.288 537.16 218.474 T 533.691 210.065 537.16 218.474 542.334 209.294 T 542.334 209.294 537.16 218.474 547.008 219.516 T 502.6 192.621 499.507 183.803 498.53 202.842 T 502.6 192.621 498.53 202.842 508.314 200.144 T 508.314 200.144 498.53 202.842 512.276 211.578 T 508.314 200.144 512.276 211.578 516.938 206.156 T 516.938 206.156 512.276 211.578 525.067 216.288 T 500.021 163.153 503.049 151.755 487.587 192.307 T 500.021 163.153 487.587 192.307 498.744 173.909 T 498.744 173.909 487.587 192.307 498.53 202.842 T 498.744 173.909 498.53 202.842 499.507 183.803 T 474.075 167.22 479.439 180.317 533.275 70.2822 T 533.275 70.2822 479.439 180.317 548.266 69.7163 T 548.266 69.7163 479.439 180.317 521.55 113.302 T 521.55 113.302 479.439 180.317 513.198 127.894 T 513.198 127.894 479.439 180.317 503.049 151.755 T 503.049 151.755 479.439 180.317 487.587 192.307 T 554.727 137.977 618.909 170.679 565.85 136.902 T 565.85 136.902 618.909 170.679 572.583 138.243 T 572.583 138.243 618.909 170.679 577.971 136.243 T 577.971 136.243 618.909 170.679 582.67 129.831 T 582.67 129.831 618.909 170.679 610.595 156.337 T 610.595 156.337 618.909 170.679 614.435 161.139 T 614.435 161.139 618.909 170.679 621.295 165.997 T 613.956 140.593 626.071 116.816 618.969 107.539 T 613.956 140.593 618.969 107.539 610.27 150.014 T 610.27 150.014 618.969 107.539 607.722 97.1597 T 610.27 150.014 607.722 97.1597 582.67 129.831 T 582.67 129.831 607.722 97.1597 592.679 110.188 T 594.775 104.283 592.679 110.188 607.722 97.1597 T 594.775 104.283 607.722 97.1597 594.147 98.5254 T 594.147 98.5254 607.722 97.1597 594.502 87.2744 T 594.147 98.5254 594.502 87.2744 589.667 92.7085 T 589.667 92.7085 594.502 87.2744 580.201 86.6255 T 594.502 87.2744 581.482 79.4814 580.201 86.6255 T 580.201 86.6255 581.482 79.4814 573.692 83.9722 T 573.692 83.9722 581.482 79.4814 567.442 82.6777 T 567.442 82.6777 581.482 79.4814 564.383 72.6416 T 567.442 82.6777 564.383 72.6416 555.758 83.5991 T 555.758 83.5991 564.383 72.6416 545.239 88.2559 T 545.239 88.2559 564.383 72.6416 535.972 95.5142 T 535.972 95.5142 564.383 72.6416 548.266 69.7163 T 521.55 113.302 528.046 104.241 548.266 69.7163 T 548.266 69.7163 528.046 104.241 535.972 95.5142 T 487.461 98.9849 480.266 110.653 474.591 124.729 T 487.461 98.9849 474.591 124.729 496.504 88.6899 T 496.504 88.6899 474.591 124.729 471.661 139.08 T 496.504 88.6899 471.661 139.08 507.25 80.1924 T 507.25 80.1924 471.661 139.08 471.486 153.358 T 507.25 80.1924 471.486 153.358 519.556 73.915 T 519.556 73.915 471.486 153.358 474.075 167.22 T 519.556 73.915 474.075 167.22 533.275 70.2822 T 554.727 137.977 565.85 136.902 557.112 133.294 T 582.67 129.831 610.595 156.337 610.27 150.014 T 1 0 1 C 644.892 221.34 718.003 216.228 651.263 214.974 T 651.263 214.974 718.003 216.228 656.882 212.729 T 656.882 212.729 718.003 216.228 660.562 208.132 T 660.562 208.132 718.003 216.228 661.488 199.956 T 661.488 199.956 718.003 216.228 701.338 209.145 T 701.338 209.145 718.003 216.228 708.088 210.96 T 708.088 210.96 718.003 216.228 717.637 210.986 T 756.074 71.2539 643.19 85.563 648.973 87.2168 T 756.074 71.2539 648.973 87.2168 697.217 82.3159 T 697.217 82.3159 648.973 87.2168 652.708 91.1436 T 697.217 82.3159 652.708 91.1436 691.583 84.3916 T 691.583 84.3916 652.708 91.1436 654.397 98.562 T 691.583 84.3916 654.397 98.562 688.715 88.1719 T 688.715 88.1719 654.397 98.562 661.488 199.956 T 688.715 88.1719 661.488 199.956 688.202 94.3223 T 688.202 94.3223 661.488 199.956 695.115 193.185 T 695.115 193.185 661.488 199.956 697.107 203.799 T 697.107 203.799 661.488 199.956 698.925 207.022 T 698.925 207.022 661.488 199.956 701.338 209.145 T 767.967 118.219 756.074 71.2539 761.906 118.643 T 761.906 118.643 756.074 71.2539 752.857 102.789 T 752.857 102.789 756.074 71.2539 747.601 96.1284 T 747.601 96.1284 756.074 71.2539 741.591 90.5054 T 741.591 90.5054 756.074 71.2539 734.627 86.0645 T 734.627 86.0645 756.074 71.2539 726.511 82.9507 T 726.511 82.9507 756.074 71.2539 717.043 81.3076 T 717.043 81.3076 756.074 71.2539 706.023 81.2808 T 706.023 81.2808 756.074 71.2539 697.217 82.3159 T 634.989 79.7212 635.356 84.9634 756.074 71.2539 T 756.074 71.2539 635.356 84.9634 643.19 85.563 T 644.892 221.34 651.263 214.974 644.526 216.098 T grestore showpage cleartomark %%PageTrailer %%Trailer end %%EOF quesoglc-0.7.2/docs/qfooter.html0000644000175000017500000000074210764574551013601 00000000000000
Generated on $datetime for $projectname by doxygen $doxygenversion written by Dimitri van Heesch © 1997-2005 quesoglc-0.7.2/docs/measure.png0000644000175000017500000003024110766745704013402 00000000000000‰PNG  IHDRDÞE`yWbKGDÿÿÿ ½§“ pHYs  šœ IDATxÚíy\ŽYÿÇ?Eû¢Å’¥I)!*k“a²ä±dûÙÆ˜ÁÁ3hŒežñŒYx˜ñˈ™ F¤T"j"cŸ&¥mJ…¢;ww÷÷÷‡GZﺺ»ï«ïûõº_/®å\ßsÎ÷|:ç{]ç ""0 Ã0Ðä"`†aAd†aAd˜Æ¢°°éééÍ2ï‰W®\aAdÈÎÎF`` Ú´iÓ,󯫫‹M›6¡¼¼œ‘aš»Nš4 6l€‘‘Q³, ØØØàÈ‘#,ˆ<Äh>à æUŠŠŠàãュK—¢Y—…‡‡vîÜÉ‚ÈCŒæ3¬`þaΜ9044„ŸŸ_³/;;;ÄÄÄ ¸¸˜‘‡ÍcXÁüÐÐP„„„àƒ>€††F³/ Èd2$&&² ò£y +˜ÿõW¯^ Œ3¦Òùääd¬_¿}úôžžbbbOž<ÁäÉ“¡««‹àà`¥ÚƒE‹¡K—.066FnnnŹŒŒ ˜˜˜  A# ¸yó& "1šÇ°‚yNll,nܸQ£FAGG§ÒùÎ;ã£>BPPJKK±wï^Èd2øûû#??#FŒ@çΕjó°aðuëVŒ=ÅÅÅØµkWÅ9SSS899!$$¤Þé—••îÝ»§¶å”Êo¿ýFèàÁƒÔ\yòä  èèhbÔ— Ú»woו””ŽŽuëÖ‚‚‚j½^äçç“¶¶6988¼r\*•’‡‡G½ÓÍÊÊ"4kÖ,µ¬SM%‹¯Z 1kx¡îà æ9ñññ!šÐÓÓƒ››RRRÓ¦MkrÛÍÍÍ1|øp$%%UØiii7n\½ÓÍÈȵ§*UÕmˆÑXà µV0€ôôtÃÚÚºN¾ýû÷WûG¯8ŒY³fÕ;Íääd@ëÖ­Ykã—_~x{{WÛsÒÐЀ··7tttµk×" ‘‘‘8räÜÝÝ•Z@X³f ´µµ±ÿþŠã†††ˆŠŠ‚«««Âi>|Ȫ¢ÆÁÖÖ¶ÖÞÐËo]OŸ>­2öûøøÎ;ÈÊÊ‚¾¾>LLLêæåË—ööö,ˆbb=¼P÷aó߯£©‰:Ôx añâŘ0aôôôpòäI•±ßÚÚ–––¸víà›o¾Á‚ ”æ q}Ñ#fAéCÈá…º+˜ç˜™™ÁØØ¸Æk¾øâ `úôé4h’’’––†¼¼<ìÛ·¯Á6"##ë=ÛËÝÝ·oßFll,ºvíZk~j"77W®\Á!CðÆo° Šyˆ!äðB݇ÌÿzXšš•›ÐöíÛ1`ÀôêÕ /^Ć ^^^\½¼¼àééÙ`Ž= oooôë×OŸ>Uøþþýûƒˆð¯ý ÿ÷ÿ× [: Tß^?1”?¼P÷aógggÄP…á…†Ìs<==+âÁ/3cÆ H¥R„„„T|b;vDNNîܹƒ~ýúUº///666 ÍÞêÚµ+>ÿüsØÛÛ×)õ:………øì³ÏàääTí5u±+,, iiiøá‡Ô:6®TAlê!†* /Ä0¬`ž3räHܽ{·â3ª†Yš©+%%% êl[5‘——‡ˆˆ,_¾¼AvI$,_¾ÁÁÁèÞ½»zWª2¿Ÿ;w.;¶ÒñÝ»w“––ùûû“D"©8ž™™IdeeE/^¬t_BBQNNNžŸššJæææ€nß¾­°ýÑÑѤ¥¥EW¯^­ò|möÈårêÕ« 8är9Oõ .¤ØØXAÒ²··§¨¨(""ÚµkõîÝ›’’’ÈÕÕ•–,YRéz™LFË–-£´´4…Ÿ%•Jé½÷Þ£‡6Ø®yóæQpp°(êS©‚xàÀêÛ·¯`é;vŒœœœ*þ_^^N¡¡¡5Þ³cDz··§òòr…ŸB6l¨·=Ç'JNNf% ÙÙÙ´jÕª§“™™IúúúTZZJDD)))äèèHÛ·o§¤¤¤jÿ+¶mÛ¨U«V´nÝ:Z´heff6Ø®+VÔÚæxê^ 1òóó1yò䊗M1¼¨ÉQ +˜ Ú·oeË–58èèh :´b×™3g •Jñüööö5ÆøêJ‡`dd„ÔÔT|òÉ'•^êÔÇ®O?ýT­_¢4i ÑÈÈ“&MBBB‚ éEEEÁÛÛR©‡BDDJJJpýúõJ×–——ãã?Æ–-[v®²²2|öÙgøâ‹/jÒêì¹ví>øà¬^½o¿ý6«ˆÈhÈÌŽ×}çáááð÷÷‡™™™`vúùù!##»w©© vU5—cˆ*0ÄÈÎÎ&333’Éd‚Ø©èð¢&{¾þúkQ +a‘ËåÔ¾}{ºyó&ÅÅÅ‘T*%cccJIIa»ÄWÓäðKU«^ªÈd2¼ù曈Uø^SSSܾ}[ЕšëBii)\]]qãÆ •¯#~©Â=DFX³fM½Äx¾=ª²Åtuuñã?*¼× ð 2Õ‰7Ö[”Þyç&³½OŸ>ììlv†Q¬ÔkmÃ×QöÖ­µ¡¡¡Ù³g š&ñ°™aA3„T*mp:;vT¹¼Mž<-[¶4Íß~û†aA+{öì$víÚ©\ÞÌÍÍáãã#hš±±±ºÂÈ4·nÝBbbbƒÓiÑ¢…ʼa~¡¿”J¥ˆ‹‹cçaXÅÆÉ“'IGWWWeó8zôhÁöByÁùóçÙyD±qúôiAÒÑÖÖVÙ<š™™ÁÃÃCÐ4…èU3,ˆŒ !“ÉpöìÙf‘W___AÓ»~ý:;Â(&®]»†¢¢"AÒâ-uc2|øpAÓËÊʪ×~Ô "£¢$%% –Ö³gÏT:¯ÎÎÎ0554Í;wî°1,ˆbáÖ­[‚¿:Ó¥QTSSð8bVV;ÂȂX5¥¥¥*_wwwAÓ{ðà;Â(²îaU¨t~]]]MïñãÇìD ¢XºAçåå©t~]\\Mg«0,ˆ"Bè·¤ª>„455E§NK¯!kG2,ˆŒŠQ\\,hz¹¹¹*ŸgU[¢ŒaAdT¡‡|BÇ$ƒîÝ» ––*ÏÎaXÑÒÒ4½ÔÔT•ϳµµµ`i©òüm†‘Qf'ˆ–––‚¥ÕªU+v"†Q,½\WJJŠJœ íÛ·,-333v"†Q,´mÛVÐôŠŠŠpûöíf“ç:°1,ˆb¡1V¸¾xñ¢JçÙÄÄD%‡ß "ÓÄù‚á.\ha333´nÝšˆaA ±K^ll¬JçY¨7ëü=#Â(2zöì)xš×¯_GNNŽèË®_¿~ì@ ¢˜èß¿?45…¯¾ððp•ͳP+ò 0€ˆaAÆÆÆprr<Ý'N¨lž…šãééÉİ Š‘#G žæñãÇUvi,!æ[»ººò †QŒŒ7Nð4Ÿ={†•ÌovvvƒÓ?~<;Â(FœÑ£GÁÓݳgJæ7%%¥aή©‰€€v†QŒhhh`Á‚‚§{þüy\¾|Yåò{ãÆÝ?jÔ(tìØ‘‡aA+Ó¦Mk”˜Ø_|¡rymèó~ø!; Â(fŒŒŒ°råJÁÓýå—_––¦2ù,((ÀÕ«Wë}ÿСCß¹aAdT ÀÆÆFÐ4åry£m}‰ˆˆhÐý›7o†††; Â(vôôôðŸÿüGðt:„sçΩDƒƒƒë}ï;ï¼Ã³S˜:¡ADÄÅ B¢¡úVÉ;#;w jO¯^½˜˜Ø¤KîgddÀÆÆ2™Lá{---qíÚ5˜ššªL=1ÜCd”ÀW_}%øì•ëׯãã?nò|ÕG 555±oß>ÁÅá"£=DàùfQnnn‚¡¡˜˜ 2¤Iz‡Ý»w‡D"QøÞ/¿üK—.UÉzb¸‡È(œ|}}‘ŸŸ¯´|ìÛ·‡Rø¾ &`Û¶müV™á!ss2¿Ì¥K—0bÄAEÌÁÁèÔ©S£–Ã… àéé©ð 7'NÄO?ý„–-[ªM=1ÜCd”@ß¾}qáÂAç;'%%ÁÃÃ7oÞl4»¯\¹___…ÅpáÂ…Ø¿£‹!ÂȨ)666ˆ‡¿¿¿`iÞ»wýúõÃöíÛï%;v ƒFaaaÝXS[·nÅÖ­[Ñ¢E ®t¦þ£R4V•ÈårÚ¾};éêêÁ~žžžtéÒ¥Û—ŸŸOsçÎUøùmÛ¶¥¨¨(ÑÔÓ´p QÄ1Īøë¯¿0gÎÄÇÇ šîøñãñÎ;ïÀÓÓS¡^Ú½{÷ðÃ?`ëÖ­(**Rè™>>>øñÇÝÀžcˆÍ¼ý± 6/AžÏSþî»ï°zõj…E¨6Ú·o·Þz ýû÷‡‹‹ ,,,`jj ]]]<}úyyy¸uëþøãDEE!..Náü¶jÕ ›7oÆÜ¹s›ìM2 " "#²†–——‡U«Va×®]jÓ¸g̘7¢ÙÔ£<ø¥J3¦mÛ¶øþûïqùòåFÙŸEH|}}ñÇ`÷îÝM.† ÷™fÐ󈋋ÃÈ‘#Uf“©–-[Âßß~ø!\\\¸ž˜Æ÷9.ÊË˱{÷n•CL›6 3gÎäÞ Ã‚È(—²²2LŸ>¬ñºN:A"‘   @ÐçkiiÁÍÍ >>>ðó󃃃O»cXåSZZЉ'âØ±cÕ^3nÜ8,]ºîîîÐÐÐ@aa!RSS‘žžŽÜÜ\ܽ{™™™ÈÉÉA~~>=z„ââb”––B.—´µµadd„Ö­[ÃÒÒ]ºtA=àââèééqe0MÇU­B”›zòä üüüpúôé*Ï»ººâÛo¿åÕ¦›¸žåÁo™›)>ÄðáëÖ-[bãÆˆg1dxÈ̈›û÷ïÃÇÇׯ_¯t·†››ÂȈ›;wî`øðáU.öÚ£G„‡‡7úÒ^ ÂÈ497oÞ„··7rrr*ëÝ»7¢¢¢`ffÆÅ4[8†ØL8þ<\¥:88 22’ÅaAä"?¿þú+¼¼¼ððáÃJçÚµk‡ððp˜››sA1,ˆ\âfÇŽøÇ?þgÏžU®|MM„„„ÀÒÒ’ ŠaXÅ aݺu˜?~ÅÇѯ³zõj 4ˆ ‹aþ ˜­j"пü1>ûì³jÏwëÖ ×¯_‡ŽŽzÖÃ=D¦‘ùä“OjCX¿~=‹!ÃpQÜ=ÿûßXºti×¼ñÆHOOç ™¸‡ÈpQ¼:tµ^7fÌC†aA/W¯^ÅÔ©SëÔkrŸf†aAdTŠâââj?­© ‰DÂ…Æ0,ˆâdÙ²eHMM­óõ?ÿü3Ç¿†Q|\ºt ßÿ½B÷üþûïX¶lYµß'2 "£–¬\¹²^½½-[¶ÀËË —/_æBd˜ÿŸݨZ…(ð9GRR’ /H<<<0iÒ$Œ9ÖÖÖ\ ×ÂÈ(¡¡­Zµ Ÿþ¹ Ï·´´DÿþýÑ«W/ØÙÙ¡K—.°²²‚™™oüĂȂȨnCswwÇï¿ÿ®»´µµÑ®];˜››ÃÔÔFFF000€‘‘ úéêꪽ¸² ² 2*ÖÐLMMñèÑ#µË£¦¦¦Â"ZÕÏÌÌ æææ000PºÀ² ² 2*ÔÐd2´´´¸ÀþÛ{µ²²B·nÝ`kk‹Þ½{ÃÝÝ]ºti4¡dAdAdTH‰:::(++ãB«†6mÚÀÛÛcÆŒŒŒŒXD±™­¬¬pïÞ=.´: ««‹‰'âÝwß…««kƒ{Ž,ˆâ¤Æï ‘žž.šÌJ$\¹rE4ù2d{p)--Åž={0`À¸»»#::š©» fgg#00mÚ´U/aÓ¦M(//E~¦NÊ\àåå///ܺu‹ „©Y³³³1iÒ$lذAи‹* GmllpäÈQägøðáðòòb/®'§OŸ†““6lØ š?’ŒÀ‚XTT,]º¢Ë°‡‡vîÜ)ß·ooÕž={†>ú¾¾¾(,,äy ±…Ì^¦ºðÙ+‚HD˜3g áçç'Ê‚°³³CLL Š‹‹E‘ DDDà7ÞàÜN:…¾}ûŠVEŒ!³—©.|öŠ †††"$$|ðh§iYXX@&“!11Q4y²··Ç… пnÉ àï¿ÿÆ!Cpûöíf/†b ™½>ºª2|FÿE.—“££#™˜˜Pii)½Î_ýEëÖ­#ÒÕÕ¥Ó§OQqq1Mš4‰ttthÿþýÔXœ>}š.\H666dddD÷ï߯8wïÞ=jÕªM™2¥Ötd2 ­[·’*òR•(LYY­]»–´´´ÿêù³²²¢ÜÜÜF«'UæñãÇÔ³gO:rä‰ãÇÓðáÃ_­×ÿ8sæ  ©S§Vy³D"!¹\NG%4sæL*++#òòò¢1cÆP\\\£f@.—ÓâÅ‹ ­_¿¾âxqq1 <˜´´´jMC"‘  ¾àÆôæ›o²¸5à7hÐ zöìY³D¹\N&L \.½ Þ¾}›Z¶lIEEE•qÁ‚€öîÝ[c"%%%¤££Cݺu£   Z¯šüü|ÒÖÖ&‡WŽK¥Ròðð¨õþ¬¬,@³fÍ­ ¾pî£G’­­- \=}ôQ³Äß~ûÐÁƒ©9ðäÉ@ÑÑÑÇ*bˆñññoakBOOnnnHIIL›6M©csss >III6@ZZÆWëý11£¡¡???$%%áÇäuëÁ¦M›põêÕf‘W"ÂêÕ«abb‚1cÆT:ŸœœŒõë×£OŸ>ÐÓÓCLL àÉ“'˜}ºI*ÏÇÇpîÜ9@VVôõõabbRë½/–Ì···o6 »¤¤óçÏlj'*ûç?ÿ‰½{÷béÒ¥xë­·`eeÅ Á¾Äùóç-ú|þòË/ooïj{Sðöö†ŽŽâãã±víZ 22GŽ»»»RF>kÖ¬¶¶6öïß_qÜÐÐQQQpuu­sZ/¾;}øðaå·Ìššš4zôèZãR , ={öžž^¥8ž2±´´$[[[""Z±b=~ü¸N÷õîÝ›ÐÝ»wEC|Arr29::V#›2eJ•Ás‰DBIIIFÛ¶m£•+WR@@ :”ºuëF†††Í*–8lØ0ÑÇ ¥¥¥ÕzíСC 5™½#GŽ$tëÖ­W¾„ùòË/ëœFBB Ù³gW~©Òºuk ¨1M›6ч~HDDÞÞÞ€nß¾M¹¹¹ ¿\‘ËåtêÔ©:U@ULœ8‘444èìÙ³ôý÷ß×éžû÷ï2dH­¢Ä?þ‰ù÷:ÆÆÆdll\§·ËŸ~ú) 'N4™ nß¾½ÒçskÖ¬¡‡Ö9Ý»wZ±bEű–/zŠÖÖÖÐÔ¬<µyûöíØ³gJJJЭ[7üüóÏ///œ:u £F‚––Nž<©P×÷èÑ£7nÌÌÌpïÞ=(tÿþýñóÏ?ã_ÿúWç&:tXk€¹)_†4ôùÏž=C`` ¾ûî»*ÏwèЉ‰‰èСƒÒóWVV†ââb”””àéÓ§H$(--Eii)¤R)ÊÊÊ “Éðß?Ö(//‡\.Gyy9d2Yŵ‰ÅÅÅxüø1?~ŒÂÂBÜ¿¹¹¹ÈÉÉL&ÔîO?ýAAA‚Ö“*QTT„>}ú(2óõõmò°Ù¢E‹ ›Õ>{¡ŒsçÎ¥±cÇV©¢ZZZäïïO‰¤âxff&YXX••]¼x±Ê‘åääT©Î©©©dnn^ÑËT”èèhÒÒÒ¢«W¯VÛ~ùùr¹œzõêETéo¬:»ÿ>¹¹¹UÛ3ÐÖÖ®²¾ÄDYY¥§§Sdd$}õÕW4sæLêÙ³gƒzTnnn¢2«[Ȭ!a³šÂgµzàÀêÛ·¯`Æ;vŒœœœj¼fÇŽdooOååå §B6l¨óó?N”œœ¬ÒŽÙ†våʲ´´¬±aÿðÃÔ\ÉËË£àà`;v,éèè($ˆ-Z´xõ^‘ ¢²CfM6«-|VQ«EEEÔ¦M’J¥‚ðÂ… iùòåÕžúô)ùùùUÛë‰ÜÜ\š3gNBúòóKJJÈÁÁ~ûí7•wÌú6´_ý•ôõõklÔóæÍ#æâøñÇ“‘‘QE1&&F´‚د_?š6mZ¥ãÛ¶m£þýû“££#?žd2mÞ¼™9::Rff¦ÂÏ<|ø0 333zòä‰Â÷oÙ²…ÐèÑ£+ìª+ß~û- cÇŽU-ˆ/D$66V¶··§¨¨¨*ÏÉd2Z¶lY½þmФz5IDAT2H¥Rzï½÷j ž¾x¾\.§yóæQpp°Z8¦¢ M.—ÓºuëjmÌýúõ«rŽzs'++‹F]'Aܱc‡hQèY]hì°YMm¦ºðÙ+µšM«V­jpáfff’¾¾¾` pÛ¶mÔªU+Z·n-Z´¨Ö¿F/?ÿ믿¦ÐÐPµqLEšL&£Y³fÕÚë=,i”——WÌ‘¯é÷òüw± ¢Ð!³ºÒ˜a³ê¨)|V©Vym]{öì!___Á íèÑ£Ô©S'š1c*ô|uëÕµ¡={öŒüýýëÔ³Q—ÞqS‹âرck,Ç™3gŠV…™Õ…Æ›UEmá³F©ÕiÓ¦ÑW_}Õd•ÛÔÏolA|úô)ùøøÔI «Š 1U“MÕ–åøñãE+ˆDÂ…ÌvíÚE½{÷¦¤¤$ruu¥%K–T9ºiì°YUvÔ>¼Vår9µoßžnÞ¼ÙèË©âó[=zD¬“¶nÝšòóóYé`öìÙÕ–çˆ#D-ˆB…ÌRRRÈÑÑ‘¶oßNIIIõ꾎¢a³ªìX±bE­á3Ákµ´´”LLLhëÖ­5®'×X4õóS% <¸ÎoE•½4›x±VU????Q "‘0!³;wR÷îÝ©  @0» ›UeG]Âg-…þ‚\GGçÕÉÒJ¦©Ÿß˜+¯L:±±±uºÞÙÙ™·)­NNNÕž344}þ™éQáááð÷÷‡™™™`vùùù)¼ÏÓëvTµŠÏëhrP}ˆ‹/Ư¿þZç{‚‚‚xÕšzPÓ¦JíÚµãªÃǪ̂¨(̘1C-í`AT¶lÙRí¼äêæ*‹u×Ħ„Ù­„„tîܶ¶¶ji ¢ŠóÇ`åÊ• Ýãïï_åBLíäååU{ÎÎÎŽ ¨ „k×®©­ÜjT˜§OŸbÊ”) ¯Ü2tèP.¼zrÿþýjÏõéÓ‡ Hä° ª0¯ìSWzôèÁ…WO~ÿý÷*÷êÕ ¦¦¦\@,ˆLSpýúuìØ±£^÷rð¿þT·-FS­ûǰ 2>ùä“zß«èb»Ìs ªÝ?eâĉ\@,ˆLSpåÊ•:¯^%%%\ˆõ`ÇŽH$U—kú>‘aAd‘¯¿þºA÷×ô¦”©š¢¢"|óÍ7Už[¸p!ÓÉ‚È4aaa ºÿÅžLÝùç?ÿYåfKKKL›6 ˆ‘i*ÚˈˆàBT€˜˜lÛ¶­ÊsŸ|òI¦|1â@ã¿ÕU©†fzzzÈÈÈ€¹¹9h-¤¤¤ÀÍÍ­bÓò—éÓ§.^¼XåGîbÛuá¢h‘H$زe D-äääÀ××·J1lÙ²%víÚÅ3~X1°yóf•˜B¥ªÜºu îîîHKK«òügŸ}Æo–yÈ̈aÈü[[[ÄÇÇ£uëÖ\°/qöìYŒ?Užë­·pâĉ{‡â" "£B ­  +W®Ä?üÐlËjðàÁX¶lFŽ©ôï$YYlh‰‰‰X½z5N:Õ,ÊGOO“&M‚ štX̂ȂȨpC‹ÅÚµk%ÊrquuÅôéÓPïév,ˆ b3Ä$%%á»ï¾ÃÞ½{ñäɵ. GGGŒ?*·N! " "£F íÉ“' Å®´! A[[5jüüüÐ¥KÑ×ÂÈ(¹¡=|ø§N©S§‰ŒŒ •È«ŽŽúöí xzzbРAÐ××o¶õİ 2JnhD„ÔÔT$$$ 11‰‰‰¸víJKK5_†††ppp€³³3œœœàââ‚Þ½{CGG‡ë‰aAdT§¡•——###©©©HMMEzz:òòò——‡ÜÜ\ ´´¥¥¥xöì¤R)Z´hmmmhiiÁÐаb333tèÐ;vD§NеkWØÚÚÂÂÂBTÓçXY%54F=à¦#>Zrp#cæ9<—™a†‘aFE±°°ééé;$ ®\¹Âž("Ø·Õ×Ï›D³³³(Ørîꌮ®.6mÚ„òòrn5"€}[½ý\³)fÒ¤IذaŒŒŒš½£hhhÀÆÆGŽáV#1dßVo?Wª ÁÇÇK—.………{ÉñððÀÎ;¹ Ôömqø¹Ò¾C$"Lœ8ˆçïí^"-- vvv(,,äž…¾-?WZ144!!!øàƒØa^ÃÂÂ2™ ‰‰‰\jû¶xü\)‚HDX½z5LLL0f̘Jç“““±~ýzôéÓzzzˆ‰‰ð|Å–É“'CWWÁÁÁMR@111X´hºtécccäææVœËÈÈ€‰‰ ô ]]]Péý—ñù¶²ü[­üœ”À™3gM:µÊó‰„är9=z”ÐÌ™3©¬¬Œ|||ÈËˋƌCqqqÔTÈårZ¼x1 õë×W/..¦Áƒ“––VƒÒ—H$€‰Q/ÔÝ·•áßêäçJÄ Ú»woו””ŽŽuëÖ‚‚‚j½^™äçç“¶¶6988¼r\*•’‡‡GƒÒÎÊÊ"4kÖ,V5C ¾ÝØþ­N~®”!s|||Å[¦šÐÓÓƒ››RRRÓ¦MS™ž´¹¹9†ޤ¤¤ û^ŠÇ× ´_¬OÈñ'õC ¾ÝØþ­N~®ALOO‡±±1¬­­k½vذa€þýû«\a5 ^q,88³fÍjPºÉÉÉ€Ö­[³Â¨bñíÆôouòs¥bQQlmmkýËðò¨Ó§O«\aùøøÎ;ÈÊÊ‚¾¾~ƒ7=º|ù2ÀÞÞžFÍ‹o7¦«“Ÿ+E555Ñ¡C‡ZßÖ-^¼&L€žžNž<©r…emm KKK\»v ðÍ7ß`Á‚ N÷…¾èA0êƒX|»1ý[ü\)‚hffccã¯ùâ‹/```€éÓ§cРAHJJBZZòòò°oß>Ál!"DFFÖ{ò½»»;nß¾ØØXtíÚµÖ|ÕFnn.®\¹‚!C†à7Þ`…Q3TÉ·UÑ¿ÕÎÏ•ñæ¦_¿~4mÚ´JÇ·mÛFýû÷'GGG?~<Éd2""Ú¼y3 ;;;rtt¤ÌÌÌjÓ~ðàÅÇÇSFFFl9|ø0 333zòä‰ÂyÙ²e  Ñ£GWØÛÛ¾ýö[@ÇŽãW¶jHcú¶ªû·ý\)‚8wî\;vl¥ã»wï&---ò÷÷'‰DRq<33“,,,ÈÊÊŠ.^¼X龄„222¢œœº~ý:éééQJJJlIMM%sss@·oßV8/ÑÑѤ¥¥EW¯^­ò¼"¶ÉårêÕ« 8är9«‹"´o¿Žªùw}lT'?WŠ 8p€úöí+XzÇŽ#'''""JKK#KKK… zÇŽdooOååå ?;$$„6lØ ˆmÇ'JNNfeQS„öí×Q5ÿ®êäçJ‰!Ž9wïÞl³ôÈÈÈŠ7b>|x¿m*))AXX8MMŲŸ——‡ˆˆ,_¾¼Á¶I$,_¾ÁÁÁèÞ½;ãÔ¡}ûuTÍ¿µQíü\YÊ»páBŠ$-{{{ŠŠŠ"""???Ú¹s'‘““?¾Ú¿Œ2™Œ–-[Fiii ?S*•Ò{ï½G>l°mr¹œæÍ›GÁÁÁÜÅBùö®]»¨wïÞ”””D®®®´dÉ•óoElTG?Wš fggÓªU«œNff&éëëSii)I¥R266¦-[¶PYY€:Ç[jcÛ¶mÔªU+Z·n-Z´¨Öx]mûúë¯)44”•D$åÛ)))äèèHÛ·o§¤¤$ºté’Jù·¢6ª£ŸC™«í¯O]سgùúúÑÙ³gÉØØ˜¤6ªU±¡H¥RH$DGGcþüù°¶¶ÆŸþ‰¼¼<Ü¿aaaÐ××gÛµ#!!;w†­­mÅ1Uó!u°±¡(mO†aUG“‹€a†‘a†‘a¦*þOQ¿~œoù{IEND®B`‚quesoglc-0.7.2/docs/body_comparison.png0000644000175000017500000000464310766745704015137 00000000000000‰PNG  IHDRD(_%öPLTEmmUmmª’’U’’ª¶¶ª¶¶ÿÿÿÿ7 ^IDATxÚí\ –ã( ý†» ÃhŽÇb‹·”óºzªžÛ ‹Ðü[/S"0y˜p °M—8ÞBøã\-~"ýüpTJá¦J_ãUÿ)Ò!i…øMSrÈ”ð…Þý6BH½G È# A¸€²Þx°FØÀ‘1-„bð> ÚÞäÚ,ŸÜF …:ª¿O(ß刊M þ¤kæ¼n’y#“&ê°ÊðÔš†º9—&Sjbº‰¨' ¥vVîç£V¯ô¹ÓŽ™÷„ã·ÊÑæèoä ÎÈÓ餽i÷ñ°ï8âÈ'ÝbWæbÖàLG+Pç9³'ŠU£Ý»ÀÕdúh.”5èg}U#€Ö.h¦›•ÆxQ;Ööæ‹;ó“ø'éV…»éõM :36aŠæô ’V®¸Å+iL…#wÙňÖÕAé=¹ ¦ÑCîRsj.4ä‡ÓÂþpþìÙÿ7r´!úC¤ýÖv桟tö|ç;å^½ÃßnV¤|Nëš½«iR8>MpÚ“"ñ|!!kŒLkHÆ’DCa$Ûº;~ ö1Ña“b?eȃIKVÉ@™à­•y¼{^;—â=ƒŽªuèWÉÜ#¢>r8ï xCèC øÙÌŸ &b.˜•;O2ÜIpˆ—Qˆ§áŠŽ•‘DDô':LÓ•x/âÞp¥ZêdˆØA„{ù· º+·ÄWµé£Ù`ªÒ=Š_²HÛ¢mˆ6D¢ цhC´!ÚåDŒE¶Š/ùó瓾 ÂXú5áÌÁí+êìý"cÍTãiòàewwª[.£“Ú=r)Œ7Ö§XXwäei“C¦” ð]|&a3ƒôCÆ?®‡ˆ½Ä°ŽÉ¥®¤LvZï,3qéÃ×J1Ù£AŒBÊÒçº`Ò¼&d‘ 2E–\½ÉP¶|CŸ<(éïr’SÀœÓ@¿bÙ–J8M†”]I®tÖ¢¬T É·§D x K›æ º6-‹‚Ö´m:y²Ln,†×Õw1'MÎ&Iöa‘®7@”Ða`]H7`x Ņ̃MßUê<í1T»T7}åsˆˆ+*3D”4ç"ªSºäNNÅ©ÛÒ?ù¿L´”Q*r˜3P:¿tGeNRt,y¸« }¿I§­yq›Ûq£N]ò3Í6^-µåÕ57©rN{X2ŠŽ<3îrbÝÞƒÂG™Çk]”óÐÔQÓÐéQ élÔ5¼¡òZîðØ^µ¹›ÿºŸR³'éÞ6ú÷ý {æc~î´ÒÏHß v²!Úmˆ6D¢]¶í²Ë¢]¶í²…h—ÿ³A•Çôš¤|dG×Ü[c|s‘ñ¨ƒ\Þ4#y3ò¬ êo!šb¼3,‚±ð”î7èDäk…«™”{Db †{ãëÂï#|,Dmm +pŒ{~ÙÄ…ŒøUŽœ¶™ƒô°˜ôâî¬Mª|RÞƒÝQÒ ¬¸é!н&«Kñ)Tø*C”¾›R1_0•MdàׄGs©jbÝB÷˜¾¬‹p} O¤â+B¼4huØÓøÚ¶Þ­Fåo”‡¨AмDb±˜û#ü.[m/ýƒs‹fdäXD ÒU UVÇ"l¡²-}눿՘Q=fÑæHsw2æŒ'€ÞöÑ¿J½¤v,;‹‡vïM/Úa w¼fûPUg>¢Y¾VFãBˆZÕ8Ûݹçâߊò³úÇÆ#ôR/&"5/…ûf‹œX½YS`è@Óû~üÕƒÅN´« ‹«Ç¯rÂcUxà*Ä ìòdŹ&òpêb’»,|N©úK!R ©À{4Ém§£\ü• £tÑq¢]¸µ“¢+üö¯²7<àÄ)ÂtŽ£~ DþkBä_"Î3:Œ sÞ.D°%¹%÷Õ1: bJSW&ðp¹?ÓÈÇÚ0>Qö¬%g–ƒäš¦Í,6±]^ Qri\½ ˆt®¼íœ:-D‹œ0¹4dÚŒ-…蜭ÆþÐl¿ñq¸#èUMôV¤üJ€U¿¶æšÐs/ùu&[®ßf€q úÇbT´½üÜI~=e7בÉ_–1Æ—â]þÉÆ]vÙB´Ë¢]¶í²…h—]•G/ƒNÊ‚é(IEND®B`‚quesoglc-0.7.2/docs/Doxyfile0000644000175000017500000010234610764633523012740 00000000000000# QuesoGLC # A free implementation of the OpenGL Character Renderer (GLC) # Copyright (c) 2002, 2004-2008, Bertrand Coconnier # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # $Id: Doxyfile 755 2008-03-09 01:03:13Z bcoconni $ # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # General configuration options #--------------------------------------------------------------------------- # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = QuesoGLC # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = Version 0.7.1 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Brazilian, Chinese, Croatian, Czech, Danish, Dutch, Finnish, French, # German, Hungarian, Italian, Japanese, Korean, Norwegian, Polish, # Portuguese, Romanian, Russian, Slovak, Slovene, Spanish and Swedish. OUTPUT_LANGUAGE = English # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = NO # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = YES # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these class will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = YES # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = NO # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = NO # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = NO # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. It is allowed to use relative paths in the argument list. STRIP_FROM_PATH = # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a class diagram (in Html and LaTeX) for classes with base or # super classes. Setting the tag to NO turns the diagrams off. CLASS_DIAGRAMS = YES # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower case letters. If set to YES upper case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # users are adviced to set this option to NO. CASE_SENSE_NAMES = YES # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful is your file systems # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like the Qt-style comments (thus requiring an # explict @brief command for a brief description. JAVADOC_AUTOBRIEF = YES # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # reimplements. INHERIT_DOCS = YES # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = NO # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = YES # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 4 # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or define consist of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and defines in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources # only. Doxygen will then generate output that is more tailored for C. # For instance some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = YES # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = NO # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. WARN_FORMAT = # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = ../include \ ../src \ . # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. FILE_PATTERNS = *.c \ *.h \ *.dox # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = NO # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. EXCLUDE_PATTERNS = # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = . # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. INPUT_FILTER = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse. FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = NO # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. HTML_HEADER = qheader.html # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = qfooter.html # The HTML_STYLESHEET tag can be used to specify a user defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet HTML_STYLESHEET = quesoglc.css # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = NO # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compressed HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the Html help documentation and to the tree view. TOC_EXPAND = YES # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = YES # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 1 # If the GENERATE_TREEVIEW tag is set to YES, a side panel will be # generated containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript and frames is required (for instance Netscape 4.0+ # or Internet explorer 4.0+). GENERATE_TREEVIEW = NO # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = YES # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = NO # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = YES # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimised for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load stylesheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assigments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_XML = NO #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = YES # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_PREDEFINED tags. EXPAND_ONLY_PREDEF = YES # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. PREDEFINED = APIENTRY # If the MACRO_EXPANSION and EXPAND_PREDEF_ONLY tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all function-like macros that are alone # on a line and do not end with a semicolon. Such function macros are typically # used for boiler-plate code, and will confuse the parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::addtions related to external references #--------------------------------------------------------------------------- # The TAGFILES tag can be used to specify one or more tagfiles. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = NO # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found on the path. DOT_PATH = # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_WIDTH = 1024 # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_HEIGHT = 1024 # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermedate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::addtions related to the search engine #--------------------------------------------------------------------------- # The SEARCHENGINE tag specifies whether or not a search engine should be # used. If set to NO the values of all tags below this one will be ignored. SEARCHENGINE = NO # The CGI_NAME tag should be the name of the CGI script that # starts the search engine (doxysearch) with the correct parameters. # A script with this name will be generated by doxygen. CGI_NAME = # The CGI_URL tag should be the absolute URL to the directory where the # cgi binaries are located. See the documentation of your http daemon for # details. CGI_URL = # The DOC_URL tag should be the absolute URL to the directory where the # documentation is located. If left blank the absolute path to the # documentation, with file:// prepended to it, will be used. DOC_URL = # The DOC_ABSPATH tag should be the absolute path to the directory where the # documentation is located. If left blank the directory on the local machine # will be used. DOC_ABSPATH = # The BIN_ABSPATH tag must point to the directory where the doxysearch binary # is installed. BIN_ABSPATH = # The EXT_DOC_PATHS tag can be used to specify one or more paths to # documentation generated for other projects. This allows doxysearch to search # the documentation for these projects as well. EXT_DOC_PATHS = quesoglc-0.7.2/docs/tutorial.eps0000644000175000017500000004641310764574551013615 00000000000000%!PS-Adobe-3.0 EPSF-3.0 %%Title: Tutorial %%Creator: GL2PS 1.3.1, (C) 1999-2006 Christophe Geuzaine (geuz@geuz.org) %%For: QuesoGLC %%CreationDate: Sat Sep 2 17:39:32 2006 %%LanguageLevel: 3 %%DocumentData: Clean7Bit %%Pages: 1 %%BoundingBox: 0 0 640 180 %%EndComments %%BeginProlog /gl2psdict 64 dict def gl2psdict begin 0 setlinecap 0 setlinejoin /tryPS3shading true def % set to false to force subdivision /rThreshold 0.064 def % red component subdivision threshold /gThreshold 0.034 def % green component subdivision threshold /bThreshold 0.1 def % blue component subdivision threshold /BD { bind def } bind def /C { setrgbcolor } BD /G { 0.082 mul exch 0.6094 mul add exch 0.3086 mul add neg 1.0 add setgray } BD /W { setlinewidth } BD /FC { findfont exch /SH exch def SH scalefont setfont } BD /SW { dup stringwidth pop } BD /S { FC moveto show } BD /SBC{ FC moveto SW -2 div 0 rmoveto show } BD /SBR{ FC moveto SW neg 0 rmoveto show } BD /SCL{ FC moveto 0 SH -2 div rmoveto show } BD /SCC{ FC moveto SW -2 div SH -2 div rmoveto show } BD /SCR{ FC moveto SW neg SH -2 div rmoveto show } BD /STL{ FC moveto 0 SH neg rmoveto show } BD /STC{ FC moveto SW -2 div SH neg rmoveto show } BD /STR{ FC moveto SW neg SH neg rmoveto show } BD /FCT { FC translate 0 0 } BD /SR { gsave FCT moveto rotate show grestore } BD /SBCR{ gsave FCT moveto rotate SW -2 div 0 rmoveto show grestore } BD /SBRR{ gsave FCT moveto rotate SW neg 0 rmoveto show grestore } BD /SCLR{ gsave FCT moveto rotate 0 SH -2 div rmoveto show grestore} BD /SCCR{ gsave FCT moveto rotate SW -2 div SH -2 div rmoveto show grestore} BD /SCRR{ gsave FCT moveto rotate SW neg SH -2 div rmoveto show grestore} BD /STLR{ gsave FCT moveto rotate 0 SH neg rmoveto show grestore } BD /STCR{ gsave FCT moveto rotate SW -2 div SH neg rmoveto show grestore } BD /STRR{ gsave FCT moveto rotate SW neg SH neg rmoveto show grestore } BD /P { newpath 0.0 360.0 arc closepath fill } BD /LS { newpath moveto } BD /L { lineto } BD /LE { lineto stroke } BD /T { newpath moveto lineto lineto closepath fill } BD /STshfill { /b1 exch def /g1 exch def /r1 exch def /y1 exch def /x1 exch def /b2 exch def /g2 exch def /r2 exch def /y2 exch def /x2 exch def /b3 exch def /g3 exch def /r3 exch def /y3 exch def /x3 exch def gsave << /ShadingType 4 /ColorSpace [/DeviceRGB] /DataSource [ 0 x1 y1 r1 g1 b1 0 x2 y2 r2 g2 b2 0 x3 y3 r3 g3 b3 ] >> shfill grestore } BD /Tm { 3 -1 roll 8 -1 roll 13 -1 roll add add 3 div 3 -1 roll 7 -1 roll 11 -1 roll add add 3 div 3 -1 roll 6 -1 roll 9 -1 roll add add 3 div C T } BD /STsplit { 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 5 copy 5 copy 25 15 roll 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 5 copy 5 copy 35 5 roll 25 5 roll 15 5 roll 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 5 copy 5 copy 40 5 roll 25 5 roll 15 5 roll 25 5 roll STnoshfill STnoshfill STnoshfill STnoshfill } BD /STnoshfill { 2 index 8 index sub abs rThreshold gt { STsplit } { 1 index 7 index sub abs gThreshold gt { STsplit } { dup 6 index sub abs bThreshold gt { STsplit } { 2 index 13 index sub abs rThreshold gt { STsplit } { 1 index 12 index sub abs gThreshold gt { STsplit } { dup 11 index sub abs bThreshold gt { STsplit } { 7 index 13 index sub abs rThreshold gt { STsplit } { 6 index 12 index sub abs gThreshold gt { STsplit } { 5 index 11 index sub abs bThreshold gt { STsplit } { Tm } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } BD tryPS3shading { /shfill where { /ST { STshfill } BD } { /ST { STnoshfill } BD } ifelse } { /ST { STnoshfill } BD } ifelse end %%EndProlog %%BeginSetup /DeviceRGB setcolorspace gl2psdict begin %%EndSetup %%Page: 1 1 %%BeginPageSetup %%EndPageSetup mark gsave 1.0 1.0 scale 0 0 0 C newpath 0 0 moveto 640 0 lineto 640 180 lineto 0 180 lineto closepath fill 1 0 0 C 76.1963 104.297 76.1963 63.501 69.2017 117.798 T 76.1963 104.297 69.2017 117.798 76.9043 112.402 T 76.9043 112.402 69.2017 117.798 84.7046 118.103 T 76.9043 112.402 84.7046 118.103 81.0059 113.794 T 81.0059 113.794 84.7046 118.103 84.7046 114.099 T 106.299 112.402 102.197 113.794 114.099 117.798 T 106.299 112.402 114.099 117.798 106.995 104.297 T 106.995 104.297 114.099 117.798 114.099 50 T 106.995 104.297 114.099 50 106.995 88.501 T 106.995 88.501 114.099 50 106.995 82.4951 T 106.995 88.501 106.995 82.4951 98.9014 88.3057 T 98.9014 88.3057 106.995 82.4951 98.9014 82.7026 T 98.9014 88.3057 98.9014 82.7026 84.3018 88.3057 T 84.3018 88.3057 98.9014 82.7026 84.3018 82.7026 T 84.3018 88.3057 84.3018 82.7026 76.1963 88.501 T 76.1963 88.501 84.3018 82.7026 76.1963 82.4951 T 76.1963 88.501 76.1963 82.4951 76.1963 104.297 T 76.1963 104.297 76.1963 82.4951 76.1963 63.501 T 121.106 104.297 121.106 63.501 114.099 117.798 T 121.106 104.297 114.099 117.798 121.802 112.402 T 121.802 112.402 114.099 117.798 129.602 118.103 T 121.802 112.402 129.602 118.103 125.903 113.794 T 125.903 113.794 129.602 118.103 129.602 114.099 T 114.099 50 114.099 117.798 121.802 55.3955 T 114.099 50 121.802 55.3955 129.602 49.6948 T 129.602 49.6948 121.802 55.3955 125.903 54.0039 T 129.602 49.6948 125.903 54.0039 129.602 53.6987 T 98.4985 114.099 98.4985 118.103 102.197 113.794 T 102.197 113.794 98.4985 118.103 114.099 117.798 T 106.995 82.4951 114.099 50 106.995 63.501 T 106.995 63.501 114.099 50 106.299 55.3955 T 106.299 55.3955 114.099 50 102.197 54.0039 T 102.197 54.0039 114.099 50 98.4985 53.6987 T 98.4985 53.6987 114.099 50 98.4985 49.6948 T 62.0972 104.297 61.4014 112.402 69.2017 117.798 T 62.0972 104.297 69.2017 117.798 69.2017 50 T 69.2017 50 69.2017 117.798 76.9043 55.3955 T 69.2017 50 76.9043 55.3955 84.7046 49.6948 T 84.7046 49.6948 76.9043 55.3955 81.0059 54.0039 T 84.7046 49.6948 81.0059 54.0039 84.7046 53.6987 T 61.4014 112.402 57.2998 113.794 69.2017 117.798 T 69.2017 117.798 57.2998 113.794 53.6011 118.103 T 53.6011 118.103 57.2998 113.794 53.6011 114.099 T 62.0972 104.297 69.2017 50 62.0972 63.501 T 62.0972 63.501 69.2017 50 61.4014 55.3955 T 61.4014 55.3955 69.2017 50 57.2998 54.0039 T 57.2998 54.0039 69.2017 50 53.6011 53.6987 T 53.6011 53.6987 69.2017 50 53.6011 49.6948 T 76.9043 55.3955 69.2017 117.798 76.1963 63.501 T 121.802 55.3955 114.099 117.798 121.106 63.501 T 159.9 97.0947 167.629 95.9907 162.904 90.1606 T 162.904 90.1606 167.629 95.9907 165.376 86.7632 T 165.376 86.7632 167.629 95.9907 166.699 77.6001 T 166.699 77.6001 167.629 95.9907 179.407 74.3042 T 179.407 74.3042 167.629 95.9907 173.814 92.6851 T 151.697 94.7998 159.9 97.0947 152.025 88.0767 T 152.025 88.0767 159.9 97.0947 154.707 90.6533 T 154.707 90.6533 159.9 97.0947 158.496 91.5039 T 158.496 91.5039 159.9 97.0947 162.904 90.1606 T 152.025 88.0767 149.902 77.6001 151.697 94.7998 T 151.697 94.7998 149.902 77.6001 146.997 92.0044 T 146.997 92.0044 149.902 77.6001 150.498 49.9019 T 150.498 49.9019 149.902 77.6001 150.5 72.3022 T 150.5 72.3022 149.902 77.6001 158.301 77.2949 T 173.814 92.6851 177.919 87.1865 179.407 74.3042 T 179.407 74.3042 177.919 87.1865 179.407 79.5044 T 179.407 74.3042 163.599 72.3022 166.699 77.6001 T 166.699 77.6001 163.599 72.3022 158.301 77.2949 T 158.301 77.2949 163.599 72.3022 150.5 72.3022 T 150.498 49.9019 143.378 54.4907 146.997 92.0044 T 146.997 92.0044 143.378 54.4907 141.97 87.8271 T 141.97 87.8271 143.378 54.4907 139.099 82.9009 T 139.099 82.9009 143.378 54.4907 138.995 61.7598 T 177.197 58.8989 178.406 57.3975 176.196 52.6001 T 177.197 58.8989 176.196 52.6001 171.838 56.4331 T 171.838 56.4331 176.196 52.6001 168.164 49.2524 T 171.838 56.4331 168.164 49.2524 166.406 55.3955 T 166.406 55.3955 168.164 49.2524 160.205 48.3032 T 166.406 55.3955 160.205 48.3032 159.533 56.6724 T 159.533 56.6724 160.205 48.3032 154.553 60.2095 T 150.5 72.3022 151.523 65.5664 150.498 49.9019 T 150.498 49.9019 151.523 65.5664 160.205 48.3032 T 160.205 48.3032 151.523 65.5664 154.553 60.2095 T 139.099 82.9009 138.995 61.7598 137.5 71.3989 T 209.399 53.6011 212.903 53.4058 212.903 49.6948 T 209.399 53.6011 212.903 49.6948 206.201 55.2979 T 206.201 55.2979 212.903 49.6948 199.402 50 T 206.201 55.2979 199.402 50 205.798 59.9976 T 205.798 59.9976 199.402 50 205.005 121.997 T 205.798 59.9976 205.005 121.997 205.798 121.399 T 205.005 121.997 199.402 50 197.803 119.8 T 197.803 119.8 199.402 50 193.604 106.799 T 193.604 106.799 199.402 50 193.604 59.9976 T 193.604 59.9976 199.402 50 193.201 55.2979 T 193.201 55.2979 199.402 50 190.002 53.6011 T 190.002 53.6011 199.402 50 186.499 53.4058 T 186.499 53.4058 199.402 50 186.499 49.6948 T 185.706 117.7 197.803 119.8 191.003 113.794 T 191.003 113.794 197.803 119.8 193.201 112.361 T 193.201 112.361 197.803 119.8 193.604 106.799 T 185.706 117.7 191.003 113.794 185.706 114.099 T 242.7 53.6011 246.204 53.4058 246.204 49.6948 T 242.7 53.6011 246.204 49.6948 239.502 55.2979 T 239.502 55.2979 246.204 49.6948 232.703 50 T 239.502 55.2979 232.703 50 239.099 59.9976 T 239.099 59.9976 232.703 50 238.306 121.997 T 239.099 59.9976 238.306 121.997 239.099 121.399 T 238.306 121.997 232.703 50 231.104 119.8 T 231.104 119.8 232.703 50 226.904 106.799 T 226.904 106.799 232.703 50 226.904 59.9976 T 226.904 59.9976 232.703 50 226.501 55.2979 T 226.501 55.2979 232.703 50 223.303 53.6011 T 223.303 53.6011 232.703 50 219.8 53.4058 T 219.8 53.4058 232.703 50 219.8 49.6948 T 219.006 117.7 231.104 119.8 224.304 113.794 T 224.304 113.794 231.104 119.8 226.501 112.361 T 226.501 112.361 231.104 119.8 226.904 106.799 T 219.006 117.7 224.304 113.794 219.006 114.099 T 278.406 97.0947 288.482 95.5347 280.939 91.6094 T 280.939 91.6094 288.482 95.5347 283.53 89.7354 T 283.53 89.7354 288.482 95.5347 286.651 83.5737 T 286.651 83.5737 288.482 95.5347 288 69.6045 T 288 69.6045 288.482 95.5347 295.178 54.9668 T 295.178 54.9668 288.482 95.5347 295.738 90.9854 T 268.979 86.2227 267.505 74.9023 267.826 95.4316 T 268.979 86.2227 267.826 95.4316 271.975 90.563 T 271.975 90.563 267.826 95.4316 278.406 97.0947 T 271.975 90.563 278.406 97.0947 277.502 92.2974 T 277.502 92.2974 278.406 97.0947 280.939 91.6094 T 255.24 62.769 253.906 72.4976 255.484 82.8813 T 255.24 62.769 255.484 82.8813 259.329 55.1133 T 259.329 55.1133 255.484 82.8813 260.155 90.6099 T 259.329 55.1133 260.155 90.6099 266.307 50.1011 T 266.307 50.1011 260.155 90.6099 267.826 95.4316 T 266.307 50.1011 267.826 95.4316 267.505 74.9023 T 301.599 73.7061 299.981 62.9443 300.126 83.6436 T 300.126 83.6436 299.981 62.9443 295.738 90.9854 T 295.738 90.9854 299.981 62.9443 295.178 54.9668 T 295.178 54.9668 287.262 50.0083 288 69.6045 T 288 69.6045 287.262 50.0083 286.552 58.9492 T 286.552 58.9492 287.262 50.0083 283.7 54.7783 T 283.7 54.7783 287.262 50.0083 278.503 53.1006 T 278.503 53.1006 287.262 50.0083 276.306 48.3032 T 266.307 50.1011 267.505 74.9023 269.141 61.2642 T 266.307 50.1011 269.141 61.2642 276.306 48.3032 T 276.306 48.3032 269.141 61.2642 272.438 55.4805 T 276.306 48.3032 272.438 55.4805 278.503 53.1006 T 358.508 65.4053 364.111 77.6001 362.903 62.5977 T 358.508 65.4053 362.903 62.5977 358.301 65.4053 T 358.301 65.4053 362.903 62.5977 357.8 49.6948 T 358.301 65.4053 357.8 49.6948 352.502 87.8052 T 352.502 87.8052 357.8 49.6948 349.902 49.6948 T 352.502 87.8052 349.902 49.6948 352.307 90.1001 T 352.307 90.1001 349.902 49.6948 345.41 95.6055 T 352.307 90.1001 345.41 95.6055 354.211 91.8945 T 354.211 91.8945 345.41 95.6055 358.911 95.8984 T 354.211 91.8945 358.911 95.8984 358.911 92.1021 T 331.799 95.8984 345.41 95.6055 335.107 91.8945 T 335.107 91.8945 345.41 95.6055 337.607 91.0127 T 337.607 91.0127 345.41 95.6055 339.209 88.0981 T 339.209 88.0981 345.41 95.6055 349.902 49.6948 T 398.477 91.3589 396.509 91.8945 402.405 95.6055 T 398.477 91.3589 402.405 95.6055 399.402 89.6973 T 399.402 89.6973 402.405 95.6055 405.505 87.1948 T 399.402 89.6973 405.505 87.1948 399.109 87.9028 T 399.109 87.9028 405.505 87.1948 396.301 61.2061 T 399.109 87.9028 396.301 61.2061 395.508 76.5991 T 395.508 76.5991 396.301 61.2061 392.81 49.6948 T 395.508 76.5991 392.81 49.6948 391.602 65.4053 T 391.602 65.4053 392.81 49.6948 384.705 49.6948 T 391.602 65.4053 384.705 49.6948 377.808 97.0947 T 377.808 97.0947 384.705 49.6948 372.803 97.0947 T 392.31 92.1021 392.31 95.8984 396.509 91.8945 T 396.509 91.8945 392.31 95.8984 402.405 95.6055 T 402.405 95.6055 412.5 95.8984 407.155 90.6343 T 407.155 90.6343 412.5 95.8984 409.106 91.8945 T 409.106 91.8945 412.5 95.8984 412.5 92.1021 T 384.705 49.6948 371.509 80.3955 372.803 97.0947 T 372.803 97.0947 371.509 80.3955 364.111 77.6001 T 364.111 77.6001 371.509 80.3955 362.903 62.5977 T 405.505 87.1948 402.405 95.6055 407.155 90.6343 T 331.799 95.8984 335.107 91.8945 331.799 92.1021 T 442.31 97.0947 452.386 95.5347 444.843 91.6094 T 444.843 91.6094 452.386 95.5347 447.434 89.7354 T 447.434 89.7354 452.386 95.5347 450.556 83.5737 T 450.556 83.5737 452.386 95.5347 451.904 69.6045 T 451.904 69.6045 452.386 95.5347 459.082 54.9668 T 459.082 54.9668 452.386 95.5347 459.642 90.9854 T 432.883 86.2227 431.409 74.9023 431.73 95.4316 T 432.883 86.2227 431.73 95.4316 435.879 90.563 T 435.879 90.563 431.73 95.4316 442.31 97.0947 T 435.879 90.563 442.31 97.0947 441.406 92.2974 T 441.406 92.2974 442.31 97.0947 444.843 91.6094 T 419.144 62.769 417.81 72.4976 419.388 82.8813 T 419.144 62.769 419.388 82.8813 423.233 55.1133 T 423.233 55.1133 419.388 82.8813 424.059 90.6099 T 423.233 55.1133 424.059 90.6099 430.211 50.1011 T 430.211 50.1011 424.059 90.6099 431.73 95.4316 T 430.211 50.1011 431.73 95.4316 431.409 74.9023 T 465.503 73.7061 463.886 62.9443 464.03 83.6436 T 464.03 83.6436 463.886 62.9443 459.642 90.9854 T 459.642 90.9854 463.886 62.9443 459.082 54.9668 T 459.082 54.9668 451.166 50.0083 451.904 69.6045 T 451.904 69.6045 451.166 50.0083 450.456 58.9492 T 450.456 58.9492 451.166 50.0083 447.604 54.7783 T 447.604 54.7783 451.166 50.0083 442.407 53.1006 T 442.407 53.1006 451.166 50.0083 440.21 48.3032 T 430.211 50.1011 431.409 74.9023 433.044 61.2642 T 430.211 50.1011 433.044 61.2642 440.21 48.3032 T 440.21 48.3032 433.044 61.2642 436.342 55.4805 T 440.21 48.3032 436.342 55.4805 442.407 53.1006 T 508.313 96.4966 507.812 83.606 505.408 82.605 T 508.313 96.4966 505.408 82.605 504.004 97.0947 T 504.004 97.0947 505.408 82.605 502.986 85.3027 T 504.004 97.0947 502.986 85.3027 500.096 95.6084 T 500.096 95.6084 502.986 85.3027 499.512 86.2061 T 500.096 95.6084 499.512 86.2061 496.106 91.7969 T 496.106 91.7969 499.512 86.2061 494.146 84.0547 T 496.106 91.7969 494.146 84.0547 491.711 86.9995 T 491.711 86.9995 494.146 84.0547 491.711 79.7974 T 491.711 86.9995 491.711 79.7974 491.711 96.4966 T 491.711 96.4966 491.711 79.7974 491.711 59.9976 T 491.711 96.4966 491.711 59.9976 490.71 97.0947 T 490.71 97.0947 491.711 59.9976 485.315 50 T 490.71 97.0947 485.315 50 483.704 94.8975 T 483.704 94.8975 485.315 50 479.504 81.897 T 483.704 94.8975 479.504 81.897 479.106 87.4604 T 485.315 50 491.711 59.9976 492.114 55.2979 T 485.315 50 492.114 55.2979 500.415 49.6948 T 500.415 49.6948 492.114 55.2979 496.509 53.6011 T 500.415 49.6948 496.509 53.6011 500.415 53.4058 T 479.504 81.897 485.315 50 479.504 59.9976 T 479.504 59.9976 485.315 50 479.114 55.2979 T 479.114 55.2979 485.315 50 475.903 53.6011 T 475.903 53.6011 485.315 50 472.412 53.4058 T 472.412 53.4058 485.315 50 472.412 49.6948 T 479.106 87.4604 476.904 88.9038 483.704 94.8975 T 483.704 94.8975 476.904 88.9038 472.412 92.7979 T 472.412 92.7979 476.904 88.9038 472.412 89.1968 T 534.412 53.6011 537.915 53.4058 537.915 49.6948 T 534.412 53.6011 537.915 49.6948 531.213 55.2979 T 531.213 55.2979 537.915 49.6948 524.414 50 T 531.213 55.2979 524.414 50 530.811 59.9976 T 530.811 59.9976 524.414 50 530.017 121.997 T 530.811 59.9976 530.017 121.997 530.811 121.399 T 530.017 121.997 524.414 50 522.815 119.8 T 522.815 119.8 524.414 50 518.616 106.799 T 518.616 106.799 524.414 50 518.616 59.9976 T 518.616 59.9976 524.414 50 518.213 55.2979 T 518.213 55.2979 524.414 50 515.015 53.6011 T 515.015 53.6011 524.414 50 511.511 53.4058 T 511.511 53.4058 524.414 50 511.511 49.6948 T 510.718 117.7 522.815 119.8 516.016 113.794 T 516.016 113.794 522.815 119.8 518.213 112.361 T 518.213 112.361 522.815 119.8 518.616 106.799 T 510.718 117.7 516.016 113.794 510.718 114.099 T 596.008 53.6011 599.316 53.4058 599.316 49.6948 T 596.008 53.6011 599.316 49.6948 592.81 55.2979 T 592.81 55.2979 599.316 49.6948 588.208 50 T 592.81 55.2979 588.208 50 592.419 59.9976 T 592.419 59.9976 588.208 50 591.614 121.997 T 592.419 59.9976 591.614 121.997 592.419 121.399 T 591.614 121.997 588.208 50 584.412 119.8 T 584.412 119.8 588.208 50 580.212 106.799 T 580.212 106.799 588.208 50 580.212 94.6045 T 580.212 94.6045 588.208 50 580.212 84.3994 T 580.212 84.3994 588.208 50 580.212 66.0034 T 580.212 66.0034 588.208 50 580.212 57.9956 T 580.212 57.9956 588.208 50 580.212 49.6948 T 580.212 66.0034 580.212 57.9956 579.264 62.5278 T 579.264 62.5278 580.212 57.9956 576.823 59.9517 T 576.823 59.9517 580.212 57.9956 569.91 57.8003 T 569.91 57.8003 580.212 57.9956 569.812 49.4995 T 560.86 63.7236 564.4 59.4873 564.319 48.3032 T 564.319 48.3032 564.4 59.4873 569.812 49.4995 T 569.812 49.4995 564.4 59.4873 569.91 57.8003 T 554.211 89.7949 561.414 94.4946 558.411 74.9023 T 554.211 89.7949 558.411 74.9023 556.319 50.2241 T 556.319 50.2241 558.411 74.9023 558.97 69.2739 T 556.319 50.2241 558.97 69.2739 564.319 48.3032 T 564.319 48.3032 558.97 69.2739 560.86 63.7236 T 569.116 90.6982 563.561 89.3271 570.02 97.0947 T 569.116 90.6982 570.02 97.0947 575.374 88.8994 T 575.374 88.8994 570.02 97.0947 578.21 95.3979 T 575.374 88.8994 578.21 95.3979 580.212 84.3994 T 580.212 84.3994 578.21 95.3979 580.212 94.6045 T 558.411 74.9023 561.414 94.4946 560.312 85.7256 T 560.312 85.7256 561.414 94.4946 563.561 89.3271 T 563.561 89.3271 561.414 94.4946 570.02 97.0947 T 556.319 50.2241 550.525 55.2749 554.211 89.7949 T 554.211 89.7949 550.525 55.2749 550.412 86.5581 T 550.412 86.5581 550.525 55.2749 547.801 82.4751 T 547.801 82.4751 550.525 55.2749 547.001 62.3882 T 572.314 117.7 584.412 119.8 577.612 113.794 T 577.612 113.794 584.412 119.8 579.814 112.361 T 579.814 112.361 584.412 119.8 580.212 106.799 T 572.314 117.7 577.612 113.794 572.314 114.099 T 547.801 82.4751 547.001 62.3882 545.813 70.4956 T 580.212 57.9956 580.212 49.6948 579.712 50.5005 T 611.371 51.0254 609.009 56.3965 611.371 61.9751 T 611.371 51.0254 611.371 61.9751 616.809 48.8037 T 616.809 48.8037 611.371 61.9751 616.809 64.4043 T 616.809 48.8037 616.809 64.4043 622.284 51.1763 T 622.284 51.1763 616.809 64.4043 622.247 62.0161 T 622.284 51.1763 622.247 62.0161 624.609 56.3965 T 609.509 114.404 619.507 118.799 609.912 106.494 T 609.912 106.494 619.507 118.799 614.612 70.7031 T 614.612 70.7031 619.507 118.799 615.112 69.8975 T 615.112 69.8975 619.507 118.799 618.909 71.9971 T 618.909 71.9971 619.507 118.799 623.914 109.204 T 623.914 109.204 619.507 118.799 624.609 118.799 T grestore showpage cleartomark %%PageTrailer %%Trailer end %%EOF quesoglc-0.7.2/docs/Image3.png0000644000175000017500000000571410766745704013055 00000000000000‰PNG  IHDR„ýñ.¢»PLTEõþô ðþæ IDATxÚíZ]lGŸÙÝ»[_.¾½óµ½“;;N°BÎ%­üäÎŽ cKN•J)*Ò96UBrú‚Unœã+uݤ8Oµ’5AHyñ€ÄÆ ¡¼Ph…xÚ ¢ž®ðr§[æcwoöcÖ{´‘Êȹ½Ùßüfþ3ÿùÏ\ðÅzæáˆXmöÄ|Iáåñ<"K«ñ$yЕ¨Y3ÿ5{@§5B6¿ùKÂx£‚?Ç–ÖÈëÃGW$²p…Š —Yë5öhÐÕ²:-67S!„YH2eú—YÐì¨HT>Q üP´7†ž[½¢ù[æñ?äÔTËœ©ˆÈr)°7w}Ÿq"~NCDÆ‘±¡K§ïpœcrÓâÀ¢Â›À4ƒdƒrÔ=ˆD”ƒ`Âe„ÞW$es¡XÚ¹Ses°‚bŒ(ùçØ áE† Q×ƽ0„ˆìEÒ 2NÔ Œ àù4A9P§´AK€pÀ@Ôs²`iaOrØ3ŽBSóÙ­9É?,ÞGL#Ic§¡ rÇ’ìçiÝmt‰$/Ê‘]4`‚4@X½)ï8{ Á!rŽÄh 7f"H,jÑѦÞÀH½ޙƦwYk€Xo’fY‘µ&»C°‘”xý”ÔéM«Š<øá²Þ‰²$`:E)z„ B„™H¦ˆjäÝ%ÐÛãB¿NOeA«†\q•‹WÉýXÓ¹ÃÄKÝ‘ &±¤ÜI â}Ž÷aéPOã×øOV`GÉÊÀ«¸·ñO€ªà£ìµØO'—r/|W»ãCæW¦cÃcC>'Ó&îˆõœ+úìEÅ»&ìQÆ|©‹25½¡nþìÂÀŽi®á¬Lê¸˺Ié+A9VŒØz,ˆ³7?ø“?I†42tžU$@çÒ0¤¼˜y¶„@A§aˆ¸7sB©‹Bä€IO#G6ö6þúï|忝6îO^ç8 Ó‰sHÉ~C ¦n!P}|CÎá[ÚòÆh‚4ñPvo.6€‘…Î]êm7‚óŽÄC€—£’à‘&ù¹Ié\o!äl$qæá:§ ƒ2mszƒ`cfÉl3äòï>täÛ±-ÆÁçáЖƒ¤>˜z4†\=´«ÂÏgÝá\»=~9A4{r¯É«Âÿº‰’ó¡`¤ÁV'@ ÁH3@ L§Mp.-Ð F€‰Y4Ÿ×¼H™é»Uò}Ëzs7_ö †5‚òä‘@·96ã‘YÈ`M÷ÌÔF°‘yÖÍAŠB¤ß¯¼šˆCˆ4œ:Ò;¢Y'rÅøÉGJ#÷»ÍG* qHÂä òpȺÕÉa^öö– '~¼½^ ð ¶ö,÷|hëÏÇÈ:!Ø·Á<ÞÛÁëøÙëï-i6–i“Ë/¢„Øáb GQØð ð5rÖ­7‰Cº‘؉$Að*ëÞÞ¤šc!6Âv eý±7¢8«å–½cĨ]wîm0ç€ë/©;Ô×ù}¡ÙÉuã“9Á.£duûø½Ï¶;Ä»ÙBÇtÛÑ9Ÿ¿lzwœð’üçEÐþ¢ ‹ûÖÆËÊ‹9ôøòÿ^ÈD{ʼn¾Û:—ƬoñX´1à¶mH‰d$Âðß&.½H¿Ý¸˜íÆQþ×^MÓl‡ð•¸T]~†]C÷ ’¸Ÿ“«ÞòŽ–T.=ÏFËlO¹jŠÍ8mý0æ.~û¥¿ÐØä•Ö;óé4?»Ö˜C»ÀÞÂÚ,Z8ºÓJ z©v9_Õ3çæz¿8w!fGFªt6Ÿ€2˵û©~9Î]“ˆùÚ3¥‘÷ÁÀú]#?Š—¡ßw­ê¹Î¨•^=\š½P)êwÏ?]НeR! vKo¥ºœ€7š£µÞÄv#‚Z+µPØ#•lúJ´c©ÐÔˆ—ÁN!÷zLªÑT4ÆÑߨ'|m5šTg/;Wj´1ÈQK•œ¸1øDtYàêÄøHD—ecĶný}¼+©võµµèctW¬1ºÐ e¨¾3óNRUD)€ˆ!ó©ð#£s-PDŸÃZ¥âÝê#• gøøƒÙýµJ7Re³ó²Áó`¿J"À{1î;7¸<¥2èñˆ\&ó?Zá7ùYõûƒiÑlIU.*UA@ȵå&=µ‘:Î%ÀA÷ÀŒIêϬ„k³½Œ1(#ø¢™1Ò&=wÁ(·éÝ! …¾P$ƨ“QÚÔÃL+R3â0ƒX+»éÒ¼Œ¾TÿôÚ}X!clzBIЃ¬uɨù®ØG†¦¿}ðD„ñ4äS¥³Ï}5ŸôI5¸°¹½'«9†L…¨Ü{óÙ+·çU£zâ¥e×K•Jæ·çÔùª¼ºýtuãÏØÿJn²¢3–,}¸Æ È‚@ƒÇFËÍ”t½ ÐŒÈh€ÈvE½©;†I5hDgÔCÎ †N|táQ8lÚ :ƒLšæ£3ÈbAv©eµÂ N-”Q0»ì²Z!ˆ=%Œ‘¦C<ËT c”™‹8 xrrê=Æh9±µ’³Ë×VɆ‡¡ %Ïd¤*†úûüò\h„Ó= ,W>ÜýŒx>Ü?>F¸Îe'©íŽaváQNbÒ²¢SFÊ><2äóAK,Ê ÿï®)d¤[Ì£XiÙÉ` £l ‹!ƒìgØ©•¤ÙÿË“IkYÈ(P»ŸÅm½! ‘ÊžGÙª±¬/tæp‰®®}ÝTF®3OCel¹4èÜÓ‹ÊHÛ¦{nG©jŒQ¶¯G£nI›;ÏÜb´l#Û¡IÃ>"Œ¨R1+"ª #Þ7—zÅ’Š ’nƒPF楩[§¬µ¢W·³ B¥ÚWº¨}`éÃvÁð1†f«ÃWìèc‘]cÐÌ2çäÞNL´B‰›As_W¦_AìÕ X.©H~3ý‘ÍŽ7uvƒ„u"rÏÜ ™þ»3aç¨Oï>쟻|Ö~”p¦¼¸ã‰…¿©À™þõ™®Î8¥H§T)Ô´vbD: ËÝŸÏtÍèíš‘zôRý3ïžQZ×c»îî½ãkïç£HeÄî:q{µÚÅ=›«oíÑŒ.ÆxâêÛ_Î^Yï‚ñ¸ËH¶Yº!œIEND®B`‚quesoglc-0.7.2/docs/body_comparison.eps0000644000175000017500000004015110764574551015132 00000000000000%!PS-Adobe-3.0 EPSF-3.0 %%Creator: GIMP PostScript file plugin V 1,17 by Peter Kirchgessner %%Title: body_comparison.eps %%CreationDate: Sat Sep 2 20:02:14 2006 %%DocumentData: Clean7Bit %%LanguageLevel: 2 %%Pages: 1 %%BoundingBox: 14 14 595 55 %%EndComments %%BeginProlog % Use own dictionary to avoid conflicts 10 dict begin %%EndProlog %%Page: 1 1 % Translate for offset 14.173228346456694 14.173228346456694 translate % Translate to begin of first scanline 0 39.999782785772467 translate 579.99685039370081 -39.999782785772467 scale % Image geometry 580 40 8 % Transformation matrix [ 580 0 0 40 0 0 ] % Strings to hold RGB-samples per scanline /rstr 580 string def /gstr 580 string def /bstr 580 string def {currentfile /ASCII85Decode filter /RunLengthDecode filter rstr readstring pop} {currentfile /ASCII85Decode filter /RunLengthDecode filter gstr readstring pop} {currentfile /ASCII85Decode filter /RunLengthDecode filter bstr readstring pop} true 3 %%BeginData: 15452 ASCII Bytes colorimage JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> ZMt!7D#io%!Oe0^rrHu"h#@Cl[\a$(!:'UaP5>4X!;- ZMt!7D#io%!Oe0^rrHu"h#@Cl[\a$(!:'UaP5>4X!;- ZMt!+<<2@b!NK/jrrH-"h#@CTWhoaq!:'RbW`AoqrW)TjrrDThrrE*!!EH.Ns+UK'~> mf2q[dJs1Gm/I0N!4Mq#!<<*!D;>-m[K)Jfs8N)brrTV/[ep()P5YF]P4ekT!:g*h!<<'#[K*ae s+^Q(~> mf2q[dJs1Gm/I0N!4Mq#!<<*!D;>-m[K)Jfs8N)brrTV/[ep()P5YF]P4ekT!:g*h!<<'#[K*ae s+^Q(~> mf2q[dJs1Gm/I0f!36(l!<<*! mJd6r!!)rs!k)qGd/X+GmJd3M!<3!!!,_`8rrE*!!k)qGfDbo\!0X8[rrDBb!H""rrrd0=D#eG5 s8N)us8Qr4s8;r[rr<&;rr<&Trr<&\s*t~> mJd6r!!)rs!k)qGd/X+GmJd3M!<3!!!,_`8rrE*!!k)qGfDbo\!0X8[rrDBb!H""rrrd0=D#eG5 s8N)us8Qr4s8;r[rr<&;rr<&Trr<&\s*t~> mJd6f!!)rss/H&!d/X+GmJd3e!<3!!!36%urrE*!s/H&!fDboP!32ssrrDBb!EH/rrrc=%WW6&Z s8N)us8Q)qs8;r[rr<&;rr<&Trr<&\s*t~> m/R(cqu6]*!7:cG!:Kjg[K*c8rrE,.rr;uurr3#-!7q/O[K*b7s8N)crrS>`[eg%(!!<0#!9=+Z !<3!"[K)Jcrr<&]rr<&ps8;rtrr<&Jrr<&Trr<&\s*t~> m/R(cqu6]*!7:cG!:Kjg[K*c8rrE,.rr;uurr3#-!7q/O[K*b7s8N)crrS>`[eg%(!!<0#!9=+Z !<3!"[K)Jcrr<&]rr<&ps8;rtrr<&Jrr<&Trr<&\s*t~> m/R(cqu6\s!7:cG!:KjgWW9'urrE,"rr;uurr3#!!7q/OWW9&ts8N)crrT2#Wqubq!!<0#!9=+Z !<3!"WW9&orr<&]rr<&ps8;rtrr<&Jrr<&Trr<&\s*t~> m/R(caT)8?mf*<)P5YC\P5YF\!<)otP1BR5D3F)^"d3^&!,[ntrrR$;D>jJ=D#eGQs0ceC!!&2[ s8N'+s,m?^P5kQ!!!$m7s8N'%s(q`9D>aG6!<)p$P&11!D3FVm! m/R(caT)8?mf*<)P5YC\P5YF\!<)otP1BR5D3F)^"d3^&!,[ntrrR$;D>jJ=D#eGQs0ceC!!&2[ s8N'+s,m?^P5kQ!!!$m7s8N'%s(q`9D>aG6!<)p$P&11!D3FVm! m/R(caT)8?mf*;fWr;qtWr;tt!<)otWn%+MW`A6^"fbQ&!*-&trrQ1#Wr;r%<<-&!s/N*t!!'%s s8N'+s/H&!WrN*!!!$$ts8N'%s&B%!cm! m/R(cr;Q`srr;oss8W#ts8N(9rW!mS[f?B9D#jU!!!$lEs,m?^D79JQOoYN!!!&2\s8N)rrr?p8 !!'J(rrTV/P5,(W!;lct[ZUXirslJS!<82^!,]1EOoPK![f-4+D>jM8[f-4/D#eF]!<)p!OoVrT rr?p5!!$m7s8N')P5kQF!!*'!D>F54P5YF\!!&2\!!/7"r;Zh7rr;uu!0[9\!,_]7rrE&u!,_T5 !,_N2!k&)lqYpb:!4Mp9!,_]7rr<7?!!$m9!!*#u!,_Q4!0[<\rrE#t!g3PlV#LDpkPkM^qYpNq qYpNqXoAA$k5Tr~> m/R(cr;Q`srr;oss8W#ts8N(9rW!mS[f?B9D#jU!!!$lEs,m?^D79JQOoYN!!!&2\s8N)rrr?p8 !!'J(rrTV/P5,(W!;lct[ZUXirslJS!<82^!,]1EOoPK![f-4+D>jM8[f-4/D#eF]!<)p!OoVrT rr?p5!!$m7s8N')P5kQF!!*'!D>F54P5YF\!!&2\!!/7"r;Zh7rr;uu!0[9\!,_]7rrE&u!,_T5 !,_N2!k&)lqYpb:!4Mp9!,_]7rr<7?!!$m9!!*#u!,_Q4!0[<\rrE#t!g3PlV#LDpkPkM^qYpNq qYpNqXoAA$k5Tr~> m/R(cr;Q`srr;oss8W#ts8N(!rW!m;WrN+!<<3'!!!$$!s/H&! m/R(crVlo,!<)p1OoVrjs0_ojs8S5^[f;KjP5kR]!">%!s,m?^P.(CR!0[B]!!SPc[K$<9rr;uu r;QtaD79J-!4Me)!g3Plq#C?oqu?Wqrr;rt$^.suOoPKF[f;KjP5bIkD3D@-OoVrjs,rQF[ZUXh rrTV/P3W&R[K(0Qs8TNj!0[?]%(6-9[^H/9[f?@-!0[?]!g3N`rVult$Z3?POoPK![f;Kj!<3#t !!Th2[K$;jrr;uus8ND6!,]1Es0e'jP55+ZD#h$ArrTV/!<3#u!!'J,s8N'"D79HDrrE&urr<%^ rr3%_!!)utrrE#t!k&)GkPtG[r;Z]qrr;osr;ZZprVuis#6+Z's8N'!rr;rts8W#tp\t3np](-k p\t3nqYpNqq>UEpqu?Qor;Z`rrVuisrVuiss8W&ur;Z]qp](-kqu?Wqs8W&uq#: m/R(crVlo,!<)p1OoVrjs0_ojs8S5^[f;KjP5kR]!">%!s,m?^P.(CR!0[B]!!SPc[K$<9rr;uu r;QtaD79J-!4Me)!g3Plq#C?oqu?Wqrr;rt$^.suOoPKF[f;KjP5bIkD3D@-OoVrjs,rQF[ZUXh rrTV/P3W&R[K(0Qs8TNj!0[?]%(6-9[^H/9[f?@-!0[?]!g3N`rVult$Z3?POoPK![f;Kj!<3#t !!Th2[K$;jrr;uus8ND6!,]1Es0e'jP55+ZD#h$ArrTV/!<3#u!!'J,s8N'"D79HDrrE&urr<%^ rr3%_!!)utrrE#t!k&)GkPtG[r;Z]qrr;osr;ZZprVuis#6+Z's8N'!rr;rts8W#tp\t3np](-k p\t3nqYpNqq>UEpqu?Qor;Z`rrVuisrVuiss8W&ur;Z]qp](-kqu?Wqs8W&uq#: m/R(crVlnu!<)p1WW9(!s/H(!s8Q(!WrK(!UEpqu?Qor;Z`rrVuisrVuiss8W&ur;Z]qp](-kqu?Wqs8W&uq#: m/Qk]r;Zcss8N+:[f6:-D#jS8rrE&urrE#trrE#trrE*!rrE&u!g3P#rr;uurVlq^!4Mn,!<@!6 rrHs:p](6nqZ$QqrVultrVultrVults8N.`!4Mn,"9<<=rrE&u!O`",rrTV/P3W&KD#h$CrrTV/ D>jJ m/Qk]r;Zcss8N+:[f6:-D#jS8rrE&urrE#trrE#trrE*!rrE&u!g3P#rr;uurVlq^!4Mn,!<@!6 rrHs:p](6nqZ$QqrVultrVultrVults8N.`!4Mn,"9<<=rrE&u!O`",rrTV/P3W&KD#h$CrrTV/ D>jJ m/Qk]r;Zcss8N+"WrE#!WW<%urrE&urrE#trrE#trrE*!rrE&u!ic6#rr;uurVlr!!36%u!J%rrE#t!!)ut!ic7#lMgoc!36"t!ic7# rVm&$!33%!WqZPn!<)rt!!'%us8N'!WrE%u!<3#u!!'%urrT2#WrE%u!<<'#<<0&trrT2#WqlYr WW9'rrrT2#WrE#"WW9'us8N'!Wr;tt!;HNn!<)rt!<)p!WW6&_rr<&srr<&rrr<&srr<&ss8N)s rr<&ss8N*!s8N*!rr<&trrN3#!<)ot!;QQo!;QQo!;uis!;QQo!;c]q!;$3j!;uis!;lcr!;lcr !;lct!<3&urr<&qrr<&orr<&srr<&qrrN3#!<2uu!;ZWp!9aB4~> m/R(crVlo,!;uj"[K(/]P5>4YP5bO]s8N)ts8N)ts8N*!s8N)urrTV/!<3#u!<)otD>F80s8N)n s8N)qs8N)ts8N)ts8N)ts8N*!rr?p4!<<'#!,]1?s8N)as7ZNkrr\Da!,_W5s0_rFP5YI[s8N)t s8N)ts8N)us8N)ss8N)us8N*!s7ZNhs8N)qs7cTns8N)ss8N)srr]]mD3FkurVultr;Zcsl2L_` qYpNqqu6Wrrr2ruo`"mkr;Q`srr2rurr2rurVultqu6Wrq>UEpq>UEpqYpNqq>UEpqYpNqo`"mk qYpNqr;Q`squ6Wrqu?Zrp&>!lq>UEpqYpNqqu?Zro`"mkkPp&~> m/R(crVlo,!;uj"[K(/]P5>4YP5bO]s8N)ts8N)ts8N*!s8N)urrTV/!<3#u!<)otD>F80s8N)n s8N)qs8N)ts8N)ts8N)ts8N*!rr?p4!<<'#!,]1?s8N)as7ZNkrr\Da!,_W5s0_rFP5YI[s8N)t s8N)ts8N)us8N)ss8N)us8N*!s7ZNhs8N)qs7cTns8N)ss8N)srr]]mD3FkurVultr;Zcsl2L_` qYpNqqu6Wrrr2ruo`"mkr;Q`srr2rurr2rurVultqu6Wrq>UEpq>UEpqYpNqq>UEpqYpNqo`"mk qYpNqr;Q`squ6Wrqu?Zrp&>!lq>UEpqYpNqqu?Zro`"mkkPp&~> m/R(crVlnu!;uj"WW6%!Wqu_tW`9$!rr;uurVultrVults8W*!rr3&"!!*#urrE#t!*/jqqu?Zr p](6nqZ$QqrVultrVultrVults8N(!q>gQq!WZ6#q>^HplMpSYr;Qk!!!'%rs8T)"^HpqZ$ m/R(cr;Q`squ6_\!0[6Z"h"DJ[K$=,s8N)ts8N)ts8N*!s8N)ts8N)us8N)ts8N)ls8N)ns8N)q s8N)ts8N)ts8N)ts8N*!s8N)prr?p8!!&2Zs8N)as7ZNkrr\Da!4Mh*!,_Q4rVultrVultrVult rr;uur;Zcsrr;uus8Vfnq>^Hpqu6Z)p](H*s8N'!r;ZcsrVlk7q>gKorrDusrrD<`!!)lq!!)lq !W`6#q>^9kr;Q`srr2rurr2rurVlitq>UEpqYpNqq>UEpqYpNqq>UEpqYpNqo`"mkqYpNqr;Q`s qu6Wrqu6Wro`"mkq>UEpqYpNqqu6WroD\djkPp&~> m/R(cr;Q`squ6_\!0[6Z"h"DJ[K$=,s8N)ts8N)ts8N*!s8N)ts8N)us8N)ts8N)ls8N)ns8N)q s8N)ts8N)ts8N)ts8N*!s8N)prr?p8!!&2Zs8N)as7ZNkrr\Da!4Mh*!,_Q4rVultrVultrVult rr;uur;Zcsrr;uus8Vfnq>^Hpqu6Z)p](H*s8N'!r;ZcsrVlk7q>gKorrDusrrD<`!!)lq!!)lq !W`6#q>^9kr;Q`srr2rurr2rurVlitq>UEpqYpNqq>UEpqYpNqq>UEpqYpNqo`"mkqYpNqr;Q`s qu6Wrqu6Wro`"mkq>UEpqYpNqqu6WroD\djkPp&~> m/R(cr;Q`squ6_t!35qr"f_R&WW3%us8N)ts8N)ts8N*!s8N)ts8N)us8N)ts8N)ls8N)ns8N)q s8N)ts8N)ts8N)ts8N*!s8N)prr?'u!!$$rs8N)as7ZNkrr]8$!35ts!35kqrVultrVultrVult rr;uur;Zcsrr;uus8Vfnq>^Hpqu6Yrp](Gss8N'!r;ZcsrVlktq>gKorrDusrrD<`!!)lq!!)lq !W`6#q>^9kr;Q`srr2rurr2rurVlitq>UEpqYpNqq>UEpqYpNqq>UEpqYpNqo`"mkqYpNqr;Q`s qu6Wrqu6Wro`"mkq>UEpqYpNqqu6WroD\djkPp&~> m/R(cp&>,W!!&2\rs#n3D?'V9!<3#u!<)rt!<)rt!<<*!!<)rt!<3#u!<)rt!!'J$s8N)ns8N)q s8N)ts8N)ts8N)ts8N*!s8N'![eg")[Vc!D!,_Z6rrD?arrD`l!4Mh+rVm.?!!$l![^H/9rVult rVultrVultrr;uur;Zcsrr;uus8W*!nc/Uhqu6_\!4Mh*#.=Mps8N'!r;Zcsrr37@!!$l![^H/9 rVultr;Zcsl2UMYq>UEpq>UEpqu6Wrr;Q`srr2rurr2rurVlitq>UEpqYpNqq>^3iq>UEpqYpNq o`"mkqYpNqr;Q`squ6Wrqu6Wro`"mkq>^3iqu6WroD\djkPp&~> m/R(cp&>,W!!&2\rs#n3D?'V9!<3#u!<)rt!<)rt!<<*!!<)rt!<3#u!<)rt!!'J$s8N)ns8N)q s8N)ts8N)ts8N)ts8N*!s8N'![eg")[Vc!D!,_Z6rrD?arrD`l!4Mh+rVm.?!!$l![^H/9rVult rVultrVultrr;uur;Zcsrr;uus8W*!nc/Uhqu6_\!4Mh*#.=Mps8N'!r;Zcsrr37@!!$l![^H/9 rVultr;Zcsl2UMYq>UEpq>UEpqu6Wrr;Q`srr2rurr2rurVlitq>UEpqYpNqq>^3iq>UEpqYpNq o`"mkqYpNqr;Q`squ6Wrqu6Wro`"mkq>^3iqu6WroD\djkPp&~> m/R(cp&>,o!!'%trs#J'WrN)!!<3#u!<)rt!<)rt!<<*!!<)rt!<3#u!<)rt!!'%ms8N)ns8N)q s8N)ts8N)ts8N)ts8N*!s8N'!WqubqWr;tuWr2ns!:'Ua!;6?lWr2qrrrZ7$!*0#urrE#trrE#t rrE#trrE&urrDusrrE&urrE*!rrDThrrDrr!ic7#r;Qu$!36)!!!)rsrrE&u"'#=$ m/R(cqYpl1D?'XEP5fA![f6=,!<3#u!<3#u!<)rt!<)rt!<<*!!<)ou!0[?]rrE#trr<%^rVlk\ qu6_\!4M\&rrDoqrrE#trrE#trrE#trrE*!rr<%^rVlk\r;Qh]!!)rs! m/R(cqYpl1D?'XEP5fA![f6=,!<3#u!<3#u!<)rt!<)rt!<<*!!<)ou!0[?]rrE#trr<%^rVlk\ qu6_\!4M\&rrDoqrrE#trrE#trrE#trrE*!rr<%^rVlk\r;Qh]!!)rs! m/R(cqZ$Sqs8N8& m/R(cqYpZuP5htRrr31c!4Mq-!!*#urrE&urrE#trrE#trrE*!rrE&u!g3PHrr;uurVm+c!!&2^ s,q6rrrS>`[eTn&!;c`q!<)rt!<)rt!<)rt!<<',OoPKFs8S7!s8N)-rr2rurVlr-!,_$$$'G8g P5kQj[K(1Drst7m!<<(^!4Mq-!!&2^s-!?]rVultrVultrVultrr;rt"h+H>!!&2]s8N*!rs=hg !0[B^[^H0Qq>UM5!4Mk+!k&)GqYp_^!4Mn-!;uls!<3#u!!ADas-!?]rVultrVlr-!,_!#!!)Wj !!*#u!!)rs!!)lq!!)rs!!*#u!!*#u!!)utrrDrr!!)ip!!)ip!!)Qh!!)ip!!)lq!!)ut!!)lq !!)rs!!)or!!)or!!)Zk!!)ip!!)Wj!!)Wj!!)3^J,~> m/R(cqYpZuP5htRrr31c!4Mq-!!*#urrE&urrE#trrE#trrE*!rrE&u!g3PHrr;uurVm+c!!&2^ s,q6rrrS>`[eTn&!;c`q!<)rt!<)rt!<)rt!<<',OoPKFs8S7!s8N)-rr2rurVlr-!,_$$$'G8g P5kQj[K(1Drst7m!<<(^!4Mq-!!&2^s-!?]rVultrVultrVultrr;rt"h+H>!!&2]s8N*!rs=hg !0[B^[^H0Qq>UM5!4Mk+!k&)GqYp_^!4Mn-!;uls!<3#u!!ADas-!?]rVultrVlr-!,_!#!!)Wj !!*#u!!)rs!!)lq!!)rs!!*#u!!*#u!!)utrrDrr!!)ip!!)ip!!)Qh!!)ip!!)lq!!)ut!!)lq !!)rs!!)or!!)or!!)Zk!!)ip!!)Wj!!)Wj!!)3^J,~> m/R(cqYpZuWrK)!rr32&!36)!!!*#urrE&urrE#trrE#trrE*!rrE&u!ic7#rr;uurVm,&!!'&! s/K)rrrT2#WqcVo!;c`q!<)rt!<)rt!<)rt!<<',WW3%!s8T*!s8N)!rr2rurVlr!!35>a$*!t* WrN+!WW6&ursu+0!<<(!!36)!!!'&!s/Q%urVultrVultrVultrr;rt"fhU&!!'%us8N*!rs>\* !36)!Wi?&!q>ULr!36"t!ic6#qYp_!!36&!!;uls!<3#u!!B8$s/Q%urVultrVlr!!35;`!!)Wj !!*#u!!)rs!!)lq!!)rs!!*#u!!*#u!!)utrrDrr!!)ip!!)ip!!)Qh!!)ip!!)lq!!)ut!!)lq !!)rs!!)or!!)or!!)Zk!!)ip!!)Wj!!)Wj!!)3^J,~> mJd9s!!'J+rs#op!4K<9[f6:Q[K)K!s,mAFs0_n-[fMP55.g[f?B9!!&2^s0_n-s8S8X!!'J,s8N)ts8N)ts8N)us8N'! D>aG7P5YF\!<2uuP55.Y[e]q)[K*c7rrR$;[eg"-[K)Kj!!)rsrrE&u!0[-X!4Mn,rrE#t#Ef(q s8Qp9P3r8L!;lcr!;uis!;uis!<)ot!;ulr!;uis!<2uu!<2uu!<)p!!<3&trr<&orr<&orr<&r rr<&prr<&orr<&srr<&rrr<&srr<&rrr<&ss8N)rrr<&krr<&orr<&rrr<&rrr<&jrr<&^s*t~> mJd9s!!'J+rs#op!4K<9[f6:Q[K)K!s,mAFs0_n-[fMP55.g[f?B9!!&2^s0_n-s8S8X!!'J,s8N)ts8N)ts8N)us8N'! D>aG7P5YF\!<2uuP55.Y[e]q)[K*c7rrR$;[eg"-[K)Kj!!)rsrrE&u!0[-X!4Mn,rrE#t#Ef(q s8Qp9P3r8L!;lcr!;uis!;uis!<)ot!;ulr!;uis!<2uu!<2uu!<)p!!<3&trr<&orr<&orr<&r rr<&prr<&orr<&srr<&rrr<&srr<&rrr<&ss8N)rrr<&krr<&orr<&rrr<&rrr<&jrr<&^s*t~> mJd9g!!'%ts8T)%!33%!WrE#EWW9'!s&B'!s/H&!WrK(!!36)!WW3%!s8T)!!36&!!*0'!!36%u "0)>$Wr;qt mf2t\!L!K^!<3#s!"&\6!!&2^D#h$Er;cltr;cltr;['%!!&/^!0[<\r;ccq"Hi`bD799?s-!6Y qZ-Tpr;cltr;cltr;cltr;cis"Hi`bD79HD"9>ln!,_Z6s-!B]!g3N`mJd3qP5YF^D79HDrW)os "d/kKs8S8]!!JIn[K)Kis8N)ts8N)ts8N)us8N'%s,m?^P5P@[!<)ou[Z^Ui!H#:>rrE+_rVult q#C?o!ri6#r;ZcsrVlk\rW!(a[^H1!rr;uurVln]!<3!"D#aS&s8)fps8;rss8;rss82lss8Duu s82iss8Duus8E#urrN3#s8;rps7cTks8)fjrr<&os82lms82lms82iss8E#us7u`ns7cTks8)fo s7u`jrr<&]s*t~> mf2t\!L!K^!<3#s!"&\6!!&2^D#h$Er;cltr;cltr;['%!!&/^!0[<\r;ccq"Hi`bD799?s-!6Y qZ-Tpr;cltr;cltr;cltr;cis"Hi`bD79HD"9>ln!,_Z6s-!B]!g3N`mJd3qP5YF^D79HDrW)os "d/kKs8S8]!!JIn[K)Kis8N)ts8N)ts8N)us8N'%s,m?^P5P@[!<)ou[Z^Ui!H#:>rrE+_rVult q#C?o!ri6#r;ZcsrVlk\rW!(a[^H1!rr;uurVln]!<3!"D#aS&s8)fps8;rss8;rss82lss8Duu s82iss8Duus8E#urrN3#s8;rps7cTks8)fjrr<&os82lms82lms82iss8E#us7u`ns7cTks8)fo s7u`jrr<&]s*t~> mf2t\!NQ2!!<3#s!"&\*!!'&!WW9(!r;cltr;cltr;['%!!'#!!36"tr;ccq"KDG%lp!NK/r s8)fps8;rts8;rts8;rts8;rsrrf>%!*-&urr`>%<<-%srrK-"rr3%"!!)Ed!NK0!!!-*"rr;rt rVm&$!36)!Wr;u$%!!'%ss8N)trrK-"rVut!WqZMo!36"t rrDiorr<-#!!)rsrrE#t!36"u"BDJ%!*0$urrE#t!NH/!rrQ1#!:9a_!<)rr!<3#s!<3#r!<<)u !!*&s!!*&u!!*&u!<<'#!<<)t!;lfk!;lfn!;HKn!;QTl!;ZZm!;ZZm!!*&u!<<)q!;ull!;lfn !;uln!;QQo!9X<3~> ]`8!3j8T1h!4KrJ!k&*;r;Q`s])Vd1i;WkA!4L>U!k&*;r;Q`s])Ma1f)G^MSc8Zik5Tr~> ]`8!3j8T1h!4KrJ!k&*;r;Q`s])Vd1i;WkA!4L>U!k&*;r;Q`s])Ma1f)G^MSc8Zik5Tr~> ]`8!3j8T1\!34*>!ic7#r;Q`s])Vd1i;WkY!34KI!ic7#r;Q`s])Ma1f)G^MSc8Zik5Tr~> ]`8!3ir9(C!4KuK! ]`8!3ir9(C!4KuK! ]`8!3ir9([!34-?! ^&J2C!!'IerrTV/[`e[P[K)KgrrJ:k\c;[0hu ^&J2C!!'IerrTV/[`e[P[K)KgrrJ:k\c;[0hu ^&J27!!'%YrrT2#WltDDWW9'ss8T+0s8N)VrrT2#Wmq%MWW9'ts8T+0rr<&Lrr<%krr<&\s*t~> ^&S$2iVrqeD9Mq[P.%XqrrCpU!Kq ^&S$2iVrqeD9Mq[P.%XqrrCpU!Kq ^&S$2iW&qXbPqTCWj2U(!8d_VW`@RKs/NI+quD JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> JcC<$JcC<$^&NT~> %%EndData showpage %%Trailer end %%EOF quesoglc-0.7.2/docs/Image3.eps0000644000175000017500000012233210764574551013052 00000000000000%!PS-Adobe-3.0 EPSF-3.0 %%Creator: GIMP PostScript file plugin V 1,17 by Peter Kirchgessner %%Title: Image3.eps %%CreationDate: Sat Sep 2 20:03:01 2006 %%DocumentData: Clean7Bit %%LanguageLevel: 2 %%Pages: 1 %%BoundingBox: 14 14 403 268 %%EndComments %%BeginProlog % Use own dictionary to avoid conflicts 10 dict begin %%EndProlog %%Page: 1 1 % Translate for offset 14.173228346456694 14.173228346456694 translate % Translate to begin of first scanline 0 252.99999999999997 translate 387.99999999999994 -252.99999999999997 scale % Image geometry 388 253 8 % Transformation matrix [ 388 0 0 253 0 0 ] % Strings to hold RGB-samples per scanline /rstr 388 string def /gstr 388 string def /bstr 388 string def {currentfile /ASCII85Decode filter /RunLengthDecode filter rstr readstring pop} {currentfile /ASCII85Decode filter /RunLengthDecode filter gstr readstring pop} {currentfile /ASCII85Decode filter /RunLengthDecode filter bstr readstring pop} true 3 %%BeginData: 41171 ASCII Bytes colorimage Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> SFugdqXsdm_Y*j5qXsdmJb?eNJ,~> SGrHeqYpEn_Z'K6qYpEnJc SFlaeqXj^n_Y!d6qXj^nJb6_LJ,~> Re?[dqXsjor:L$q`:a-9qXsjoJb?_LJ,~> Rf< Re6UeqXjdpr:Bsr`:X':qXjdpJb6YJJ,~> Re?[dqt1!roa(Kg!!pO9rs8Mp!XSH)Jb?_LJ,~> Rf< Re6Ueqt'psoEtNg!"-[:rsJYq!XeQ,Jb6YJJ,~> Re?[dqt1!roa&;)rs8Mp!XSH)Jb?_LJ,~> Rf< Re6Ueqt'psoEr>)rsJYq!XeQ,Jb6YJJ,~> Re?XcrUg3toa&8(rWrJq!XSH)Jb?\KJ,~> Rf<9drVciurW'Y2rW)or!W`3"Jc<=]J,~> Re6RdrU^-uoEr;(rX/Vr!XeQ,Jb6VIJ,~> VtL&qqt0pprq-@!p%8Uip&>9uoa(Nhrs8Vsrs8Ytrs7 VuH\rqu-Qqrr*!"rr)osrr2s!rW)orrrE&trrE)urrCaOrrDrq!!*#t!s&?"!<2ut!!3'!qu6Qp s8N#uqu-QqfDbdMjo58[Rf7g~> VtBurqt'jqrq$:"o^iLio`#7!oEtQhrsJbtrsJeursIHOrsJYq!"/_t!t+\m$NB\t$3Bc+qt0jp s7H VtC)soa(QirWrMr!snSm#laK!#kdirrq-X)oa(6`#k\Jr#k\JVo`>El#laMr#laK!#kdirrq-@! p%8Ugo`tiroa(6`#k\K&p&56Zp%o$po`,9rp&,0Zp&,0ep&,0hp&,00omd~> Vu?_trW)rsrW)rs!s&?"!<2s"!<2rtrr*9*rW)rs!<)ut!<)uOrW3*!!<2us!<2s"!<2rtrr*!" rr)oqrWiN'rW)rs!<)utrr)o[rqc]qrVursrqui[rquifrquiirqui1rdX~> Vt:#toEtTirX/Ys!t+\m$NBZ"$M V=aorp%8Ufob[u-oa(6`#RL+r#kdiroa(6`#k\Jr#k\JSo`GKmoa(Hf$4-=t#kdir#kdirrUg:! p%8RrrUg6up%8UPp&><0omd~> V>^Psrr)oprYPY7rW)rs!!*#t!<2rtrW)rs!<)ut!<)uLrW<0"rW)ip$3:))!<2rt!<2rtrVcp" rr)ltrVcm!rr)oZrr2uqrr)oprVurZrVurerr2ukrr2u1rdX~> V=Xiso^iLfoG@r-oEt6_$4?Ft$M V"O`nqXk$up%8U`oa(Qi!!rPr!!rPrrs8Yt!!q-Jrs8Jo"pjnp#kdirrq-6srq-6srq-6sqt9sp jn8WZq=Xanr:U'qjn8WZnFcbdp@\FkhY$mSht;L~> V#LAoqYg[!rr)osrW)rs!!)us!!)usrrE)u!!(RKrrDop"p"Z%!<2rtrr)ltrr)ltrr)ltqu6Tq jo58[q>UBor;Q]rjo58[nG`CepAY'lhZ!NThu8-~> V"FZoqXat!o^iL_oEtTi!"/\s!"/\srsJeu!".9KrsJVp"q("p$M V"F]nqXjgorq- V#C>oqYgHprr)s!rW)or!!*#t!!)usrrE)u!!(OJ!!)lp!!*#t!W`3"rVccsrr*$#rr)ltqu-Qq jo58[q#16nqu6Tqjo58[nG`Cep\t-ln,<:enc&Oghu8-~> V"=WoqXaaprq$7!oEtQh!"/_t!"/\srsJeu!".6J!"/Sp!"/_t!XeQ,rU^'srq$=#o^iItqt'jq jn/Q[q"+Onqt0mqjn/Q[nFZ\ep[nFln+6Senauhght2F~> V=alqoa(Hf!!rSsrWrJq!!rSs"UOc,p%8Uio`>El#hS_N#k\K#o`,9sp&56qoa(osoa(6`#RL)/ rUg3toa'aRrs8Al!!rJprs7`Zrs8,erWr;l!snQ*#k7Ne#gN$m~> V>^MrrW)ip!!*#trW)or!!*#t"T\N%rr)osrW3*!!8%2O!<)uqrVurtrr)orrWrT(rW)rs!!)uu rVciurW)-\rrDfm!!)oqrrD0[rrDQfrW)`m!s&<#!:^!f!6tLn~> V=XfroEtKf!"/_trX/Vr!"/_t"Ual/o^iLioE#Bl$J4nO$M4]&oDf6to_o3roEblsoEt6_$4?D4 rU^-uoEsdRrsJMm!"/VqrsIl[rsJ8frX/Gm!t+Z-$Lm]f$I/3n~> WV$N&p%8U`oa(3rrq69srUg-rrUg-rrq- WW!/'rr)osrW)otrr2otrVccsrVccsrr)s!rW)rs"T\Q$!<)uPrWiN'rW)rs!<)utrr2usrVurs rVurtrXT#.!<)rurW)rs!<2rtrW)6_rrDQfrrD0[rrDQf!s&<#!;ZTr!<)runG`Ffbl3+~> WUpH'o^iL_oEt3trq-3trU^'srU^'srq$7!oEtTi"Uano$M4\ZoEYfroEt6_$M4])o`#9soDf6s oDf6toFD<$$M4Z4oEt6_$M WV-5rrUp0r!;63ps7HF!p%A4g!qcg)rq-6srq69sg%G=MrUp0r!;63ps7HF!p%A4g#PA?.p%8U` p&56qp&><_p&> WW)ksrVlfs!<2iqs8E'"rr2fq!r`0"rr)ltrr2otg&CsNrVlfs!<2iqs8E'"rr2fq#Q=]'rr)os rr)orrr2u`rr2ufrr2usrr2usrr2utrr2uurquiprr2utrr)okrW<0"!!)io!s&<#!;ZWn!<)oo !<2ut!<2ut!<)os!;ZWn!;lco!!3'!p&9I~> WV$/srUg*s!;--qs7?@"o^r%g!qZg,rq$0trq-3tg%>7NrUg*s!;--qs7?@"o^r%g#P8?1o^iL_ o_o3ro`#9`o`#9fo`#9so`#9so`#9to`#9uo_f-po`#9to_o3koE,Hm$4?V$!t+Z-$Mj>n$N9Vo $NB\t$NB\t$N9Vs$Mj>n$N'Jo$3Bc+p%3b~> Jb>K)rs8)drs8Ytr Jc;,;rrDNerrE)ur;cfqrr<&ur;Zlt!<2ut!<)os!<<$$!<2rt!;HHq!<2rt!;l`u!<2rt!;lcq !<<&u!;uir!<2ur!<<&t!<<&s!;lcq!<2rt!<)os!<<&t!;6>A~> Jb5E'rsJ5ersJeur Jb>K)rs8Gnq?[,ors8Pqrs8Pq!!rSsrWrJqrs8Sr!snSm#laMs#l+&m#laMs#lO>s#kdli#lOAq #laMs#lXGq#lXGq#R'f+o`tj&p&56pp&> Jc;,;rrDloq>gQprrDurrrDur!!*#trW)orrrE#s!s&?"!<2ut!;QNn!<2ut!;uft!<2us!;uir !<2ut!<)or!<)or!!N9$rVurtrr)oqrr2utrr2usrr2utrVurjrdX~> Jb5E'rsJSoq?m8prsJ\rrsJ\r!"/_trX/VrrsJ_s!t+\m$NB\t$Ma5n$NB\t$N0Mt$M Jb>K)rs8AlrWrJqrs8Pqrs8Pq!XSJlrWrGprs8Vsrs/Yu#laMs#l!ul#laMs#lXDr#laMs#lOAq #lXGr#lXGr#lOAq#QaT(qXsjor:U'qrUp0rrUp0rrq-6so_!_~> Jc;,;rrDfmrW)orrrDurrrDur!W`6!rW)lqrrE&trr<*!!<2ut!;HHm!<2ut!<)ls!<2ut!;uir !<)os!<)os!;uir!!3'!qYpKpr;Q]rrVlfsrVlfsrr)lto_s@~> Jb5E'rsJMmrX/VrrsJ\rrsJ\r!XeSlrX/SqrsJbtrsAf!$NB\t$MX/m$NB\t$N9Ss$NB\t$N0Pr $N9Vs$N9Vs$N0Pr$3Bc+qXjdpr:L!rrUg*srUg*srq$0to^mY~> Jb>K)rs8>krs8Srrs8PqrWrMr!!rSsrs8Mprs8VsrWrJqrs8Al!!rSsrs8Sr!!rSsrs8Pqrs8Vs rs8Pqrs8PqrWr>mrs8Pqrs8>krs8/fJ,~> Jc;,;rrDclrrE#srrDurrW)rs!!*#trrDrqrrE&trW)orrrDfm!!*#trrE#s!!*#trrDurrrE&t rrDurrrDurrW)cnrrDurrrDclrrDTgJ,~> Jb5E'rsJJlrsJ_srsJ\rrX/Ys!"/_trsJYqrsJbtrX/VrrsJMm!"/_trsJ_s!"/_trsJ\rrsJbt rsJ\rrsJ\rrX/JnrsJ\rrsJJlrsJ;gJ,~> Jb>K)rs8Alrs8Pqrs8PqrWrPs!!rPrrs8Pqrs8Srrs8Pqrs8Al!!rSsrs8Vs!!rPrrs8Srrs8Yt rWrDors8Pqrs8Dmrs8Srrs8;jrWr)fJ,~> Jc;,;rrDfmrrDurrrDurrW)ut!!)usrrDurrrE#srrDurrrDfm!!*#trrE&t!!)usrrE#srrE)u rW)iprrDurrrDinrrE#srrD`krW)NgJ,~> Jb5E'rsJMmrsJ\rrsJ\rrX/\t!"/\srsJ\rrsJ_srsJ\rrsJMm!"/_trsJbt!"/\srsJ_srsJeu rX/PprsJ\rrsJPnrsJ_srsJGkrX/5gJ,~> Jb>K)rs8Alrs8Srrs8Jors8Yt!!rSsrs8Mprs8VsrWrJqrs8Al!!rPrrs8Yt!!rPrrs8Pqrmrs8Pqrs88irWr,gJ,~> Jc;,;rrDfmrrE#srrDoprrE)u!!*#trrDrqrrE&trW)orrrDfm!!)usrrE)u!!)usrrDurr;cZm rrDurrW)cnrrDurrrD]jrW)QhJ,~> Jb5E'rsJMmrsJ_srsJVprsJeu!"/_trsJYqrsJbtrX/VrrsJMm!"/\srsJeu!"/\srsJ\rr Jb?kP!!q Jc Jb6eN!".HPrsJPnrsJ_srsJVprsAf!$N9Vs$N0Pr$N9Vs$N0Pr$MX/m$N9Vs$3Bc+r:L!rr:L!r p[nImr:L!rq"4Rnr:L!rq"+OnrUg*soCRP~> PP"n]Yk7u%g%G@NqXsjor:U'q!VH`rp&>9uoa(Nhrs8Pqrs8Srrs8Pqrs/Yu#l4,n#lOAq#lF;p #lOAq#lO>q#lXGr#QaT(rq69sq"=Xm!VH`tp&> PPtO^Yl4V&g&D!OqYpKpr;Q]r!WE)srr2s!rW)orrrDurrrE#srrDurrr<*!!;ZTo!;uir!;lcq !;uir!;ufr!<)os!!3'!rr2otq#:9n!WE)urr2urrVurtrVursrr2uirdX~> POnh^Yk.o&g%>:OqXjdpr:L!r!V?`so`#7!oEtQhrsJ\rrsJ_srsJ\rrsAf!$Mj;o$N0Pr$N'Jq $N0Pr$N0Mr$N9Vs$3Bc+rq-3tq"4Rn!V?`uo`#9roDf6toDf6so`#9ioRH~> PP"n]Yk7u%f_,7Mqt9sprUp0r!VH`qp&56qp&56rp&56qp&>9uoa(Bdrs8Pqrs8PqrWrDo rs8Vs!!rPrrs/Yu#laMs#l+)m#QaT(rUp-qrq-6srq66rrq-6so(@M~> PPtO^Yl4V&f`(mNqu6TqrVlfs!WE)rrr)orrr)osrr)orrr2urrr2s!rW)cnrrDurrrDurrW)ip rrE&t!!)usrr<*!!<2ut!;QQn!!3'!rVlcrrr)ltrr2lsrr)lto)=.~> POnh^Yk.o&f_#1Nqt0mqrUg*s!V?`ro_o3ro_o3so_o3ro`#9ro`#7!oEtEdrsJ\rrsJ\rrX/Pp rsJbt!"/\srsAf!$NB\t$Ma8n$3Bc+rUg'rrq$0trq-0srq$0to(7G~> PP"n]L%Y6Ir:U$pqXsjor:Tmlqt9spr:U$pqXsalrUg-rrUp!mrUp'or:U$prUp0rq"=Ulqt9jm rUg0sp&,0domd~> PPtO^L&UlJr;QZqqYpKpr;QNmqu6Tqr;QZqqYpBmrVccsrVlWnrVl]pr;QZqrVlfsq#:6mqu6Kn rVcftrquierdX~> POnh^L%P0Jr:KsqqXjdpr:Kgmqt0mqr:KsqqXj[mrU^'srUfpnrUg!pr:KsqrUg*sq"4Omqt0dn rU^*to_f-eoRH~> Jb=Tes7H?tqt9spM"Q8~> Jc:6"s8Duuqu6TqM#Mo~> Jb4Ncs7?9uqt0mqM"H2~> Jb=Te!VH`pp&>;Romd~> Jc:6"!WE)qrr2tSrdX~> Jb4Nc!V?`qo`#8SoRH~> Jb?kP!!pI7!!rGors4DQJ,~> Jc Jb6eN!"-U8!"/SprsFPRJ,~> PP"n]Yk7u%h"?4(mg/UZJ,~> PPtO^Yl4V&h#;j)mf<%[J,~> POnh^Yk.o&h"6.)mgAa[J,~> ZM"5'jRiKYJbA[.rWrAnqZr&OJ,~> ZMsk(jSf,ZJc><@rW)foqZ)KPJ,~> ZLn/(jR`EZJb8U,rX/Moq[/2PJ,~> Zh=8&Jb=Tech2e~> Zi9n'Jc:6"ci/F~> Zh42'Jb4Ncch)_~> Zh=8&Jb=Tech2e~> Zi9n'Jc:6"ci/F~> Zh42'Jb4Ncch)_~> [.X;%Pk>"^Jb?bMJ,~> [/Tq&Pl:X_Jc [.O5&Pk4q_Jb6\KJ,~> [Is>$kOef\Yk7u%Jb?bMJ,~> [Jot%kPbG]Yl4V&Jc [Ij8%kO\`]Yk.o&Jb6\KJ,~> [Is>$kOef\f(K"JqXsjokOef\Jb?bMJ,~> [Jot%kPbG]f)GXKqYpKpkPbG]Jc [Ij8%kO\`]f(AqKqXjdpkO\`]Jb6\KJ,~> [e9V*"8)p*p&56\o`,9Ro`,9no`,9no`,8KoqV21~> [f67+"9&9#rr)o]rVurSrVurorVurorVuqLrhKIC~> [e0P+"7up-o_o3]oDf6SoDf6ooDf6ooDf5LoV;&/~> \+T\*"8)p*p&,07o`,9oo`,9ro`,9so`,8KoqM,0~> \,Q=+"9&9#rqui8rVurprVursrVurtrVuqLrhBCB~> \+KV+"7up-o_f-8oDf6poDf6soDf6toDf5LoV1u.~> \+T_+s7QBts7Q?s]_)71rq69srq-6sJb>c1J,~> \,Q@,s8N#us8Mut]`%m2rr2otrr)ltJc;DCJ,~> \+KY,s7H \Foh,rq69srq66r^%D@2rq-6srUg-rk4J][Jb?bMJ,~> \GlI-rr2otrr2ls^&A!3rr)ltrVccsk5G>\Jc \Ffb-rq-3trq-0s^%;:3rq$0trU^'sk4AW\Jb6\KJ,~> \Foh,rq69srq66rlLb,_lh18`!qcg)rq-6srq69sr:U$ps7Q9q"n`/oo`tifo`,8KotL*L~> \GlI-rr2otrr2lslM^b`li-na!r`0"rr)ltrr2otr;QZqs8Mor"o\N$rVur_rVuqLrkAA^~> \Ffb-rq-3trq-0slLY&`lh(2a!qZg,rq$0trq-3tr:Ksqs7H3r"nW/ooEkrioDf5LoY0sJ~> ZM"5'jRiKYm.CMfoa(6`#laK##kdiroa(Qirs8Yt!!rSs!!rPr":4Z+oa'gT!!n/K^@d!~> ZMsk(jSf,Zm/@.grW)rs!<2s$!<2rtrW)rsrrE)u!!*#t!!)us"9AE$rW)3^!!%TL^A`W~> ZLn/(jR`EZm.:GgoEt6_$NBZ$$M ZM"5'jRiKYlLb5bp%8Uio`PQn#k\K%o`,9so`,9so`,9so`YWo#kdirJb>l4J,~> ZMsk(jSf,ZlM^kcrr)osrWE6#!<)usrVurtrVurtrVurtrWN<$!<2rtJc;MFJ,~> ZLn/(jR`EZlLY/co^iLioE5Nn$M4](oDf6toDf6toDf6toE>To$M ZM"5'bk2/Gp%8U`oa(Nh!!rSs!!rSs!!rPr!!rSsrs8Vs!!n/KV=f?~> ZMsk(bl.eHrr)osrW)or!!*#t!!*#t!!)us!!*#trrE&t!!%TLV>bu~> ZLn/(bk))Ho^iL_oEtQh!"/_t!"/_t!"/\s!"/_trsJbt!"+;LV=]9~> ZM"5'c1M8Hp%8U`oa(Nh!!rSsrs8Vs!!rSs!!rPr!!rSs!!qf]!!n/K^@d!~> ZMsk(c2InIrr)osrW)or!!*#trrE&t!!*#t!!)us!!*#t!!)6^!!%TL^A`W~> ZLn/(c1D2Io^iL_oEtQh!"/_trsJbt!"/_t!"/\s!"/_t!".r^!"+;L^@Zp~> ZM"5'jRiKYlh(Deo`tir#lO?"#k\Jr#kdlh#ljQ##k\Jr#lXDr#jCp]#_DZ_omd~> ZMsk(jSf,Zli%%frVurt!;ug#!<)ut!<2ur!<<$$!<)ut!<)ls!9jC^!.k-`rdX~> ZLn/(jR`EZlgt>foEkrt$N0N#$M4\t$M ZM"5'jRiKYm.CMfoa(3r#lO?3#k\Jroa(3ro`tiroa(3rp%8U`oa(3rkk+o]Jb?bMJ,~> ZMsk(jSf,Zm/@.grW)ot!;ug4!<)utrW)otrVurtrW)otrr)osrW)otkl(P^Jc ZLn/(jR`EZm.:GgoEt3t$N0N4$M4\toEt3toEkrtoEt3to^iL_oEt3tkk"i^Jb6\KJ,~> ZM"5'jRiKYm.LAa!VH`pp&>;KoqV21~> ZMsk(jSf,Zm/I"b!WE)qrr2utrr2uurVurtrr2uurVurtrr2tLrhKIC~> ZLn/(jR`EZm.C;b!V?`qo`#9to`#9uoDf6to`#9uoDf6to`#8LoV;&/~> ZM"5'Jb=TecLl\~> ZMsk(Jc:6"cMi=~> ZLn/(Jb4NccLcV~> ZM"5'Jb=TecLl\~> ZMsk(Jc:6"cMi=~> ZLn/(Jb4NccLcV~> ZM"5'P4\e\Jb?bMJ,~> ZMsk(P5YF]Jc ZLn/(P4S_]Jb6\KJ,~> ZM"5'jRiKYYk7u%Jb?bMJ,~> ZMsk(jSf,ZYl4V&Jc ZLn/(jR`EZYk.o&Jb6\KJ,~> ZM"5'jRiKYqt9sp_"I^5qt0ppJb?bMJ,~> ZMsk(jSf,Zqu6Tq_#F?6qu-QqJc ZLn/(jR`EZqt0mq_"@X6qt'jqJb6\KJ,~> ZM"5'jRiKYr:L$q]_)71Jb?PGJ,~> ZMsk(jSf,Zr;HZr]`%m2Jc<1YJ,~> ZLn/(jR`EZr:Bsr]^u12Jb6JEJ,~> ZM"5'i:[*U](Q(/Jb?VIJ,~> ZMsk(i;W`V])M^0Jc<7[J,~> ZLn/(i:R$V](H"0Jb6PGJ,~> ZM"5'iUm0V[e0V+Jb?YJJ,~> ZMsk(iVifW[f-7,Jc<:\J,~> ZLn/(iUd*W[e'P,Jb6SHJ,~> ZM"5'j7WEX[.XD(Jb?bMJ,~> ZMsk(j8T&Y[/U%)Jc ZLn/(j7N?Y[.O>)Jb6\KJ,~> ZM"5'jRoY]Jb?bMJ,~> ZMsk(jSl:^Jc ZLn/(jRfS^Jb6\KJ,~> ZM"5'jRrKX[.XG)Jb?_LJ,~> ZMsk(jSo,Y[/U(*Jc<@^J,~> ZLn/(jRiEY[.OA*Jb6YJJ,~> ZM"5'iUm0V[e0V+Jb?YJJ,~> ZMsk(iVifW[f-7,Jc<:\J,~> ZLn/(iUd*W[e'P,Jb6SHJ,~> ZM"5'i:[*U](Q(/Jb?VIJ,~> ZMsk(i;W`V])M^0Jc<7[J,~> ZLn/(i:R$V](H"0Jb6PGJ,~> ZM"5'hXpjS]_)71r:L$qJb?bMJ,~> ZMsk(hYmKT]`%m2r;HZrJc ZLn/(hXgdT]^u12r:BsrJb6\KJ,~> ZM"5'jRiKYqt9sp_"I^5qt0ppJbAO*r ZMsk(jSf,Zqu6Tq_#F?6qu-QqJc>0 ZLn/(jR`EZqt0mq_"@X6qt'jqJb8I(r ZM"5'jRiKYYk7u%JbAI(rs8Jors7EQJ,~> ZMsk(jSf,ZYl4V&Jc>*:rrDoprrCjRJ,~> ZLn/(jR`EZYk.o&Jb8C&rsJVprsIQRJ,~> ZM"5'jRiKYJb>Q+rs8Mp!XSH)h"?0~> ZMsk(jSf,ZJc;2=rrDrq!W`3"h#;g~> ZLn/(jR`EZJb5K)rsJYq!XeQ,h"6*~> ZM"5'Jb=Terq69sqt1!roa'@GJ,~> ZMsk(Jc:6"rr2otqu-WsrW(aQJ,~> ZLn/(Jb4Ncrq-3tqt'psoEsCGJ,~> ZM"5'Jb=Terq66rrUg3toa'=FJ,~> ZMsk(Jc:6"rr2lsrVciurW(^PJ,~> ZLn/(Jb4Ncrq-0srU^-uoEs@FJ,~> ZM"5'P4\e\JbAg2!!rSs!!rPr!snSm#laMs#QaT(qt9pos7QBtqt0ppn+D2~> ZMsk(P5YF]Jc>HD!!*#t!!)us!s&?"!<2ut!!3'!qu6Qps8N#uqu-Qqn,@h~> ZLn/(P4S_]Jb8a0!"/_t!"/\s!t+\m$NB\t$3Bc+qt0jps7H ZM"5'jRiKYYk7u%JbAj3"UOc,p%8Uho`GKmoa(Qi!snSm#lO?$#kdirp%8U`#laMr#k.G:~> ZMsk(jSf,ZYl4V&Jc>KE"T\N%rr)orrW<0"rW)rs!s&?"!;ug%!<2rtrr)os!<2us!:To;~> ZLn/(jR`EZYk.o&Jb8d1"Ual/o^iLhoE,HmoEtTi!t+\m$N0N%$M ZM"5'jRiKYYk7u%JbAd1!snSm#lXE'#kdirp%8Rrp%8Uho`PQno`tj%o`GKmoa'pWJ,~> ZMsk(jSf,ZYl4V&Jc>EC!s&?"!<)m(!<2rtrr)ltrr)orrWE6#rVursrW<0"rW) ZLn/(jR`EZYk.o&Jb8^/!t+\m$N9T($M ZM"5'jRoS[rq66rrq69srq66rrq66rs7Q?srq66rrq69srq66rrq66rs7Q?srq66rrq69srq66r rq66rs7Q?srq66rrq69srq66rrq66rs7Q?srq66rrq69srq66rqXjmqoa(Kg"pjnp#kdirrq-6s rq-6srq-6sqt9splh,c~> ZMsk(jSl4\rr2lsrr2otrr2lsrr2lss8Mutrr2lsrr2otrr2lsrr2lss8Mutrr2lsrr2otrr2ls rr2lss8Mutrr2lsrr2otrr2lsrr2lss8Mutrr2lsrr2otrr2lsqYgNrrW)lq"p"Z%!<2rtrr)lt rr)ltrr)ltqu6Tqli)D~> ZLn/(jRfM\rq-0srq-3trq-0srq-0ss7H9trq-0srq-3trq-0srq-0ss7H9trq-0srq-3trq-0s rq-0ss7H9trq-0srq-3trq-0srq-0ss7H9trq-0srq-3trq-0sqXagroEtNg"q("p$M ZM"5'jRiKYi:ZaKh=UaRo(DtfU\+Tmkk+u_oa(Nh!!rSs!XSH)rUg-rrq-C"p%8Rrqt0pplLfZ~> ZMsk(jSf,Zi;WBLh>RBSo)AUgU](5nkl(V`rW)or!!*#t!W`3"rVccsrr*$#rr)ltqu-QqlMc;~> ZLn/(jR`EZi:Q[Lh=L[So(;ngU\"Nnkk"o`oEtQh!"/_t!XeQ,rU^'srq$=#o^iItqt'jqlL]T~> ZM"5'jRiKYjn7sGiUm0Vo(DtfV"O]ml1P&^r:L$qrq66rrUgI&p%8U`o`tir#lXDt#k\Jhomd~> ZMsk(jSf,Zjo4THiVifWo)AUgV#L>nl2L\_r;HZrrr2lsrVd*'rr)osrVurt!<)lu!<)uardX~> ZLn/(jR`EZjn.mHiUd*Wo(;ngV"FWnl1Fu_r:Bsrrq-0srU^C'o^iL_oEkrt$N9Su$M4\koRH~> ZM"5'jRiKYkk4'DjRiKYoCW4loa(3rV=jfnl1P&^rUp0rrUg-rrUg-rrq-d-oa(3r#k\Jroa(6` #k\Jjomd~> ZMsk(jSf,Zkl0]EjSf,ZoDSjmrW)otV>gGol2L\_rVlfsrVccsrVccsrr*E.rW)ot!<)utrW)rs !<)ucrdX~> ZLn/(jR`EZkk+!EjR`EZoCN.moEt3tV=a`ol1Fu_rUg*srU^'srU^'srq$^.oEt3t$M4\toEt6_ $M4\moRH~> ZM"5'jRiKYlLj-Bk4J][o^rCop%8U`oa%Jg":4Z+oa'jU!!rSsq[!5p!XSJlr!3Q##RL+r#kdli #lXGr#jq;8~> ZMsk(jSf,ZlMfcCk5G>\o_o$prr)osrW&kq"9AE$rW)6_!!*#tqZ-Zq!W`6!qu@!$!!*#t!<2us !<)os!:Bc9~> ZLn/(jR`EZlLa'Ck4AW\o^i=po^iL_oEqMg":Fc.oEsmU!"/_tq[3Aq!XeSlr!E]$$4?Ft$M ZM"5'jRiKYm.KuVqXsCbkk+o]o^rCop%8U`oa%Mh"pjnp#kdirm.LAaan:/~> ZMsk(jSf,Zm/HVWqYp$ckl(P^o_o$prr)osrW&nr"p"Z%!<2rtm/I"bao6e~> ZLn/(jR`EZm.BoWqXj=ckk"i^o^i=po^iL_oEqPh"q("p$M ZM"5'jRiKYmIg/Yo_%e]lLb,_p%8:jrq-6srq-6sWV$H$p%8U`oa'pW!!p[=J,~> ZMsk(jSf,ZmJceZo`"F^lM^b`p&4pkrr)ltrr)ltWW!)%rr)osrW)J,~> ZLn/(jR`EZmI^)Zo^q_^lLY&`p%/4krq$0trq$0tWUpB%o^iL_oEssW!"-g>J,~> ZM"5'jRiKYme-8Znb(cF!VH`lo`,9ro`,9ro`,8uo`,9so`,9so`,9co`,9 ZMsk(jSf,Zmf)n[nc%DG!WE)mrVursrVursrVur!rVurtrVurtrVurdrVur=rdX~> ZLn/(jR`EZme$2[nat]G!V?`moDf6soDf6soDf6!oDf6toDf6toDf6doDf6=oRH~> ZM"5'jRiKYnFcJ\me,EBp@SCkrUg-rrUg-rXRuQ!rUg-rrUg-rnFZbe`q=i~> ZMsk(jSf,ZnG`+]mf)&CpAP$lrVccsrVccsXSr2"rVccsrVccsnGWCf`r:J~> ZLn/(jR`EZnFZD]me#?Cp@J=lrU^'srU^'sXRlK"rU^'srU^'snFQ\f`q4c~> ZM"5'jRiKYnb)S]m.K6AnaukfVtC#qrUg-rrUg-r[.Sq~> ZMsk(jSf,Znc&4^m/GlBnbrLgVu?YrrVccsrVccs[/PR~> ZLn/(jR`EZnauM^m.B0BnalegVt9rrrU^'srU^'s[.Jk~> ZM"5'jRiKYo(D\^lLj'@naukfU@eKlYP!D~> ZMsk(jSf,Zo)A=_lMf]AnbrLgUAb,mYPs%~> ZLn/(jR`EZo(;V_lLa!AnalegU@\EmYOm>~> ZM"5'jRiKYoC_b^lLj'@naukfU@eKlYP!D~> ZMsk(jSf,ZoD\C_lMf]AnbrLgUAb,mYPs%~> ZLn/(jR`EZoCV\_lLa!AnalegU@\EmYOm>~> ZM"5'jRiKYo_%k_kk3m?naukfU@eKlYP!D~> ZMsk(jSf,Zo`"L`kl0N@nbrLgUAb,mYPs%~> ZLn/(jR`EZo^qe`kk*g@nalegU@\EmYOm>~> ZM"5'jRiKYo_%k_kOmg?naukfU@eKlYP!D~> ZMsk(jSf,Zo`"L`kPjH@nbrLgUAb,mYPs%~> ZLn/(jR`EZo^qe`kOda@nalegU@\EmYOm>~> ZM"5'jRiKYp%@t`k4Rd@!VH`go`,8lo`,9$omd~> ZMsk(jSf,Zp&=Uak5OEA!WE)hrVuqmrVur%rdX~> ZLn/(jR`EZp%7nak4I^A!V?`hoDf5moDf6%oRH~> ZM"5'jRiKYp@\%`jn83No(;tgnaukfU@eKlYP!D~> ZMsk(jSf,ZpAX[ajo4iOo)8UhnbrLgUAb,mYPs%~> ZLn/(jR`EZp@Rtajn/-Oo(2nhnalegU@\EmYOm>~> p@\CjeFi_FrUp'oqt9spjRiKYp@\(ajRr*Mo(;tgnaukfU@eKlYP!D~> pAY$keGf@GrVl]pqu6TqjSf,ZpAX^bjSn`No)8UhnbrLgUAb,mYPs%~> p@S=keF`YGrUg!pqt0mqjR`EZp@S"bjRi$No(2nhnalegU@\EmYOm>~> o^r1ik4J][me$Pcq=O^nq=XanjRiKYp\".aj7W!LoCW(hnaukfU@eKlYP!D~> o_ngjk5G>\mf!1dq>L?oq>UBojSf,Zp\sdbj8SWMoDS^inbrLgUAb,mYPs%~> o^i+jk4AW\mdpJdq=FXoq=O[ojR`EZp[n(bj7MpMoCN"inalegU@\EmYOm>~> p%8:jjn/TZmI^Gbqt0ppq"=XmjRiKYp\".aj7W!LoCW(hnaukfqXsgneb/kHr:U!ojn/TZYP!D~> p&4pkjo,5[mJ[(cqu-Qqq#:9njSf,Zp\sdbj8SWMoDS^inbrLgqYpHoec,LIr;QWpjo,5[YPs%~> p%/4kjn&N[mIUAcqt'jqq"4RnjR`EZp[n(bj7MpMoCN"inalegqXjaoeb&eIr:Kppjn&N[YOm>~> p%8:jd.IAErUp0rp\"OlmIgJbqXjgoq"=4aj7VsKo^r1inaukfq"4Umk4J][n+?Ydq=O^njRiKY YP!D~> p&4pkd/F"FrVlfsp\t0mmJd+cqYgHpq#9jbj8STLo_ngjnbrLgq#16nk5G>\n,<:eq>L?ojSf,Z YPs%~> p%/4kd.@;FrUg*sp[nImmI^DcqXaapq"4.bj7MmLo^i+jnalegq"+Onk4AW\n+6Seq=FXojR`EZ YOm>~> p%8:jch.AGp%8U`p&><`o`,9po`,9mp%&IKp%&I]o`,9fo`,9no`,9Zo`,9do`,9pp&> p&4pkci+"Hrr)ojrr2uarVurqrVurnrpp-Lrpp-^rVurgrVurorVur[rVurerVurqrr2uYrVur% rdX~> p%/4kch%;Ho^iL`o`#9aoDf6qoDf6no^`FLo^`F^oDf6goDf6ooDf6[oDf6eoDf6qo`#9YoDf6% oRH~> p@SOop%8RrrUp0rr:U$prq-L%p%8Rro`tj&p&>El#k[fi#jV*_#lXDr#l+)b #iYII#kdij#k@Qf#l4,n#gr;F#lXDr#iYFV#d pAP0prr)ltrVlfsr;QZqrr*-&rr)ltrVurtrr2uurr2utrr2uorW3*!!;-9j!:'R`!<)ls!;QQc !9*qJ!;6 p@JIpo^iItrUg*sr:Ksqrq$F&o^iItoEks)o`#9uo`#9to`#9ooE#Bl$M p@\Cj!VH`to`>El#lXE;#kdirp%8Rroa(3r#k\Jroa(3roa(3rp%8U`o`tj"o`,9hp&><]o`,9s o`,9np%&IJp$rC]o`,9fo`,9no`,9Fo`,9so`,9Uo`,9$omd~> pAY$k!WE)urW3*!!<)m p@S=k!V?`uoE#Bl$N9T<$M p\"Olrq-I$p%8U`oa(Qi*XMH3#RL)/o`tiroa(3rp%8U`#k\Jr#kdir#kdirqXsjooC`+hkOni\ !VH`op%&IJp$rC]o`,9fo`,9oo`PQno`tj%p&> p\t0mrr**%rr)osrW)rs*WZ3=!!)uurVurtrW)otrr)os!<)ut!<2rt!<2rtqYpKpoD\aikPkJ] !WE)prpp-Krpg'^rVurgrVurprWE6#rVursrr2urrr)osrW`H&rVurt!!*#trrE)urrE&trrDop !W`3"hu3TUYPs%~> p[nImrq$C%o^iL_oEtTi*X_Q3$4?D4oEkrtoEt3to^iL_$M4\t$M~> p[nLlrq69ss7HF!oa(Qi!!rSs!!rPr!!rMq!!rPrrs8Yt#71"q#kdir#lF8s#kdiro_%/Kq=X=b iUu^Hp@SCknaukfqXsgn!VH`to`>El#lXE;#kdirp%8Rroa(3r#k\Jroa(3roa(3rp%8U`o`tj$ p&> p\k-mrr2ots8E'"rW)rs!!*#t!!)us!!)rr!!)usrrE)u#6=c&!<2rt!;l`t!<2rto`!eLq>Tsc iVr?IpAP$lnbrLgqYpHo!WE)urW3*!!<)m p[eFmrq-3ts7?@"oEtTi!"/_t!"/\s!"/Yr!"/\srsJeu#7C+q$M p[nLlrq-<\p&>9u oa(Bdo*F:Ind+s^!!r,f!!rJprs8Vs"pjnp#kdirrq.< p\k-mrr)s!rr2lsrVcp"rr)ltrr2otrVccsrVlfss8Duurr*!"rr)oprVursrVurkrr2u]rr2s! rW)cno)R_Jnc8C_!!)Qg!!)oqrrE&t"p"Z%!<2rtrr*r=rr)ltrW)ot!<2rtrW)rs!<)ut!<)ut rVurtrW)ip!!(jS!!'5%J,~> p[eFmrq$7!o^r+irU^4"o^iItrq-3trU^'srUg*ss7?9urq$:"o^iLfoDf6soDf6ko`#9]o`#7! oEtEdo*XFJnd>*_!"/8g!"/VqrsJbt"q("p$M q"4Umrq-6srq-6sr:L@%p%8Rroa(6`#lO?!#k\Jroa(Qi"pjl-p%8Rrqt0ppr:L$qp%A=jkk+o] rq-6sqXsCbi:ZXHp@SCknaukfqt0pprq69ss7HF!oa(Qi!!rSs!!rPr!!rMq!!rPrrs8Yt#71"q #kdir#lF8p#i5.R#d q#16nrr)ltrr)ltr;I!&rr)ltrW)rs!;ug"!<)utrW)rs"p"W&rr)ltqu-Qqr;HZrp&=skkl(P^ rr)ltqYp$ci;W9IpAP$lnbrLgqu-Qqrr2ots8E'"rW)rs!!*#t!!)us!!)rr!!)usrrE)u#6=c& !<2rt!;l`q!8[VS!3cBP~> q"+Onrq$0trq$0tr:C:&o^iItoEt6_$N0N"$M4\toEtTi"q'u0o^iItqt'jqr:Bsrp%87kkk"i^ rq$0tqXj=ci:QRIp@J=lnalegqt'jqrq-3ts7?@"oEtTi!"/_t!"/\s!"/Yr!"/\srsJeu#7C+q $M q"4^pp%8Uhoa_?$oa(6`#k\Jr#RL+r#RLD%!XSH)rq-O&p%8U`#kdirqt9spqXjgop@\FklLk/_ rUg-rqXsCbi:ZXHp@SCknaukfqt0pprq- q#1?qrr)orrXT#.rW)rs!<)ut!!*#t!!)us!W`3"rr*0'rr)os!<2rtqu6TqqYgHppAY'llMge` rVccsqYp$ci;W9IpAP$lnbrLgqu-Qqrr)s!rr2lsrVcp"rr)ltrr2otrVccsrVlfss8Duurr*!" rr)oorVurSrVur%rdX~> q"+Xqo^iLhoFD<$oEt6_$M4\t$4?Ft$4?b(!XeQ,rq$I'o^iL_$M q"=Ulr:U$prq69ss7H?trq-6sr:U'qrq-6srq69srq-6srUp'orUp'oq"=Xmlh(5`qt0ppqXsCb i:ZXHp@SCknaukfr:L$qrq-6srq-6sr:L@%p%8Rroa(6`#lO?!#k\Jroa(Qi"pjl-p%8Rrq=O^n h=UaRYP!D~> q#:6mr;QZqrr2ots8Duurr)ltr;Q]rrr)ltrr2otrr)ltrVl]prVl]pq#:9nli$kaqu-QqqYp$c i;W9IpAP$lnbrLgr;HZrrr)ltrr)ltr;I!&rr)ltrW)rs!;ug"!<)utrW)rs"p"W&rr)ltq>L?o h>RBSYPs%~> q"4Omr:Ksqrq-3ts7?9urq$0tr:L!rrq$0trq-3trq$0trUg!prUg!pq"4Rnlgt/aqt'jqqXj=c i:QRIp@J=lnalegr:Bsrrq$0trq$0tr:C:&o^iItoEt6_$N0N"$M4\toEtTi"q'u0o^iItq=FXo h=L[SYOm>~> cLq/Bkk4r]mIgJbqXjgoqXsCbi:ZXHp@SCknaukfr:L-tp%8Uhoa_?$oa(6`#k\Jr#RL+r#RLD% !XSH)rq-O&p%8U`#kdirq"4Umh":XQYP!D~> cMmeCkl1S^mJd+cqYgHpqYp$ci;W9IpAP$lnbrLgr;Hcurr)orrXT#.rW)rs!<)ut!!*#t!!)us !W`3"rr*0'rr)os!<2rtq#16nh#79RYPs%~> cLh)Ckk+l^mI^DcqXaapqXj=ci:QRIp@J=lnalegr:C'uo^iLhoFD<$oEt6_$M4\t$4?Ft$4?b( !XeQ,rq$I'o^iL_$M~> d.RDErq69slLk/_jRiKYqXsCbi:ZXHp@SCknaukfr:U$pr:U$prq69ss7H?trq-6sr:U'qrq-6s rq69srq-6sqXsalhXpjSYP!D~> d/O%Frr2otlMge`jSf,ZqYp$ci;W9IpAP$lnbrLgr;QZqr;QZqrr2ots8Duurr)ltr;Q]rrr)lt rr2otrr)ltqYpBmhYmKTYPs%~> d.I>Frq-3tlLb)`jR`EZqXj=ci:QRIp@J=lnalegr:Ksqr:Ksqrq-3ts7?9urq$0tr:L!rrq$0t rq-3trq$0tqXj[mhXgdTYOm>~> dIdJFqt0pplLk/_jRiKYqXsCbi:ZXHp@SCknaukfde3SFeF`eIYP!D~> dJa+Gqu-QqlMge`jSf,ZqYp$ci;W9IpAP$lnbrLgdf04GeG]FJYPs%~> dI[DGqt'jqlLb)`jR`EZqXj=ci:QRIp@J=lnalegde*MGeFW_JYOm>~> dImMFrUp0rlLk/_jRiKYqXsCbi:ZXHp@SCknaukfeFihIrq69sf(B"KYP!D~> dJj.GrVlfslMge`jSf,ZqYp$ci;W9IpAP$lnbrLgeGfIJrr2otf)>XLYPs%~> dIdGGrUg*slLb)`jR`EZqXj=ci:QRIp@J=lnalegeF`bJrq-3tf(8qLYOm>~> ch72Al1P&^jRiKYqXs@aiUuaIp@SCknaukfeb&nJqt0ppf(B"KYP!D~> ci3hBl2L\_jSf,ZqYp!biVrBJpAP$lnbrLgec#OKqu-Qqf)>XLYPs%~> ch.,Bl1Fu_jR`EZqXj:biUl[Jp@J=lnalegearhKqt'jqf(8qLYOm>~> ZM"5'jRiKYqXs@aiUuaIp@SCknaukfeb/qJrUp0rf(B"KYP!D~> ZMsk(jSf,ZqYp!biVrBJpAP$lnbrLgec,RKrVlfsf)>XLYPs%~> ZLn/(jR`EZqXj:biUl[Jp@J=lnalegeb&kKrUg*sf(8qLYOm>~> ZM"5'jRiKYq=X:aiUuaIp@SCknaukfe+NVEeb&nJYP!D~> ZMsk(jSf,Zq>TpbiVrBJpAP$lnbrLge,K7Fec#OKYPs%~> ZLn/(jR`EZq=O4biUl[Jp@J=lnalege+EPFearhKYOm>~> ZM"5'jRiKYq=X:aiUuaIp@SCknaukfU@eKlYP!D~> ZMsk(jSf,Zq>TpbiVrBJpAP$lnbrLgUAb,mYPs%~> ZLn/(jR`EZq=O4biUl[Jp@J=lnalegU@\EmYOm>~> ZM"5'jRiKYq=X:aiUudJp%8:jnaukfU@eKlYP!D~> ZMsk(jSf,Zq>TpbiVrEKp&4pknbrLgUAb,mYPs%~> ZLn/(jR`EZq=O4biUl^Kp%/4knalegU@\EmYOm>~> ZM"5'jRiKYq=X7`iq;mKp%8:jnaukfU@eKlYP!D~> ZMsk(jSf,Zq>Tmair8NLp&4pknbrLgUAb,mYPs%~> ZLn/(jR`EZq=O1aiq2gLp%/4knalegU@\EmYOm>~> ZM"5'jRiKYq"=1`iq;mKp%8:jnaukfU@eKlYP!D~> ZMsk(jSf,Zq#9gair8NLp&4pknbrLgUAb,mYPs%~> ZLn/(jR`EZq"4+aiq2gLp%/4knalegU@\EmYOm>~> ZM"5'jRiKYq"=1`iq;pLo^r1inaukfU@eKlYP!D~> ZMsk(jSf,Zq#9gair8QMo_ngjnbrLgUAb,mYPs%~> ZLn/(jR`EZq"4+aiq2jMo^i+jnalegU@\EmYOm>~> ZM"5'jRiKYq"=._jRr*Mo^r1inaukfU@eKlYP!D~> ZMsk(jSf,Zq#9d`jSn`No_ngjnbrLgUAb,mYPs%~> ZLn/(jR`EZq"4(`jRi$No^i+jnalegU@\EmYOm>~> ZM"5'jRiKYp\"(_jRr-NoCW(hnaukfU@eKlYP!D~> ZMsk(jSf,Zp\s^`jSncOoDS^inbrLgUAb,mYPs%~> ZLn/(jR`EZp[n"`jRi'OoCN"inalegU@\EmYOm>~> ZM"5'jRiKYp\"(_jRr-NoCW(hnaukfU@eKlYP!D~> ZMsk(jSf,Zp\s^`jSncOoDS^inbrLgUAb,mYPs%~> ZLn/(jR`EZp[n"`jRi'OoCN"inalegU@\EmYOm>~> ZM"5'jRiKYp@[t^k4S?Po(;tgnaukfU@eKlYP!D~> ZMsk(jSf,ZpAXU_k5OuQo)8UhnbrLgUAb,mYPs%~> ZLn/(jR`EZp@Rn_k4J9Qo(2nhnalegU@\EmYOm>~> ZM"5'jRiKYp%@n^k4S?Po(;tgnaukfU@eKlYP!D~> ZMsk(jSf,Zp&=O_k5OuQo)8UhnbrLgUAb,mYPs%~> ZLn/(jR`EZp%7h_k4J9Qo(2nhnalegU@\EmYOm>~> ZM"5'jRiKYp%@k]kk4QRnaukfnaukfU@eKlYP!D~> ZMsk(jSf,Zp&=L^kl12SnbrLgnbrLgUAb,mYPs%~> ZLn/(jR`EZp%7e^kk+KSnalegnalegU@\EmYOm>~> ZM"5'jRiKYo_%b\l1O]TnFZbenaukfU@eKlYP!D~> ZMsk(jSf,Zo`"C]l2L>UnGWCfnbrLgUAb,mYPs%~> ZLn/(jR`EZo^q\]l1FWUnFQ\fnalegU@\EmYOm>~> ZM"5'jRiKYoC_\\lLjfUn+?YdnaukfU@eKlYP!D~> ZMsk(jSf,ZoD\=]lMgGVn,<:enbrLgUAb,mYPs%~> ZLn/(jR`EZoCVV]lLa`Vn+6SenalegU@\EmYOm>~> ZM"5'jRiKYo(DS[m.L#Wme$PcnaukfU@eKlYP!D~> ZMsk(jSf,Zo)A4\m/HYXmf!1dnbrLgUAb,mYPs%~> ZLn/(jR`EZo(;M\m.BrXmdpJdnalegU@\EmYOm>~> ZM"5'jRiKYnb)JZme-5YmI^GbnaukfU@eKlYP!D~> ZMsk(jSf,Znc&+[mf)kZmJ[(cnbrLgUAb,mYPs%~> ZLn/(jR`EZnauD[me$/ZmIUAcnalegU@\EmYOm>~> ZM"5'jRiKYnFc>Xnb)P\m.C>anaukfbOtl@lLk/_oCW(hYP!D~> ZMsk(jSf,ZnG_tYnc&1]m/?tbnbrLgbPqMAlMge`oDS^iYPs%~> ZLn/(jR`EZnFZ8YnauJ]m.:8bnalegbOkfAlLb)`oCN"iYOm>~> ZM"5'jRiKYn+H5Wo_%h^lh(5`naukfb4P`?o^r1ip[nLloCW(hYP!D~> ZMsk(jSf,Zn,DkXo`"I_li$kanbrLgb5MA@o_ngjp\k-moDS^iYPs%~> ZLn/(jR`EZn+?/Xo^qb_lgt/analegb4GZ@o^i+jp[eFmoCN"iYOm>~> ZM"5'jRiKYmIfuTq=X@cl1G#^naukfbOki@oCW(hq"4Umq=O^nqt0ppYP!D~> ZMsk(jSf,ZmJcVUq>U!dl2CY_nbrLgbPhJAoDS^iq#16nq>L?oqu-QqYPs%~> ZLn/(jR`EZmI]oUq=O:dl1=r_nalegbObcAoCN"iq"+Onq=FXoqt'jqYOm>~> ZM"5'jRiKYlh00AkOef\naukfbOki@l1G#^qXsjoqt0ppYP!D~> ZMsk(jSf,Zli,fBkPbG]nbrLgbPhJAl2CY_qYpKpqu-QqYPs%~> ZLn/(jR`EZlh'*BkO\`]nalegbObcAl1=r_qXjdpqt'jqYOm>~> ZM"5'jRiKYm.K ZMsk(jSf,Zm/GrDjo,5[nbrLgbPhJAl2CY_qYgHpqYgHpYPs%~> ZLn/(jR`EZm.B6Djn&N[nalegbObcAl1=r_qXaapqXaapYOm>~> ZM"5'jRiKYmIg>^!;5U_iq39Wnaukfbk2)Ep%8RrrUp0rrq69srq69srUg@#p%8Rrp%A4gr:L$q YP!D~> ZMsk(jSf,ZmJct_!<26`ir/oXnbrLgbl._Frr)ltrVlfsrr2otrr2otrVd!$rr)ltrr2fqr;HZr YPs%~> ZLn/(jR`EZmI^8_!;,O`iq*3Xnalegbk)#Fo^iItrUg*srq-3trq-3trU^:$o^iIto^r%gr:Bsr YOm>~> ZM"5'jRiKYme-G_qXsFchXpjSnaukfbk2)Eoa(3rrq.!3oa(6`#k\Jroa(6`#RL+r#k\Jr#laJs #l4,n#d ZMsk(jSf,Zmf*(`qYp'dhYmKTnbrLgbl._FrW)otrr*W4rW)rs!<)utrW)rs!!*#t!<)ut!<2rt !;ZTo!3cBP~> ZLn/(jR`EZme$A`qXj@dhXgdTnalegbk)#FoEt3trq$p4oEt6_$M4\toEt6_$4?Ft$M4\t$NBYt $Mj;o$Es)P~> ZM"5'jRiKYn+HP`aRoN=naukfc1N+`oa(6`#kdirp%8U`#k\Jro`tiroa(6`#k\Jroa(Qi!!rDn !!oe$J,~> ZMsk(jSf,Zn,E1aaSl/>nbrLgc2JaarW)rs!<2rtrr)os!<)utrVurtrW)rs!<)utrW)rs!!)io !!'5%J,~> ZLn/(jR`EZn+?JaaRfH>nalegc1E%aoEt6_$M ZM"5'jRiKYnFcYaa7TE ZMsk(jSf,ZnG`:ba8Q&=nbrLgc2R_Crr*'$rr)os!<)m)!<2rtrr)ltrr)ltrr)ltrr)ltq>L?o YPs%~> ZLn/(jR`EZnFZSba7K?=nalegc1M#Crq$@$o^iL_$N9T)$M~> ZM"5'jRiKYo(Dhb`q9<;naukfc1M&Brq- ZMsk(jSf,Zo)AIc`r5r ZLn/(jR`EZo(;bc`q06 ZM"5'jRiKYoC_qc`Us3:naukfcLh/CrUg6up%8Ufo`b]p#kdir#laJs#lXDr#laJu#k\K"o`,9$ omd~> ZMsk(jSf,ZoD\Rd`Voi;nbrLgcMdeDrVcm!rr)oprWWB%!<2rt!<2rt!<)ls!<2s!!<)uprVur% rdX~> ZLn/(jR`EZoCVkd`Uj-;nalegcL_)DrU^1!o^iLfoEGZp$M ZM"5'jRiKYo_&%d`:X*9naukfcLhhVp%8U`#kdirp%8U`oa(3rp%8Ugoa1utoa(3rp%8U`#l4,n #d ZMsk(jSf,Zo`"[e`;T`:nbrLgcMeIWrr)os!<2rtrr)osrW)otrr)oqrX&Z)rW)otrr)os!;ZTo !3cBP~> ZLn/(jR`EZo^qte`:O$:nalegcL_bWo^iL_$M ZM"5'jRiKYp%A+d`:X*9naukfch.8Drq69srq66rrq69srq-6srUg-rrq69srq69sq"4UmYP!D~> ZMsk(jSf,Zp&=ae`;T`:nbrLgci*nErr2otrr2lsrr2otrr)ltrVccsrr2otrr2otq#16nYPs%~> ZLn/(jR`EZp%8%e`:O$:nalegch%2Erq-3trq-0srq-3trq$0trU^'srq-3trq-3tq"+OnYOm>~> ZM"5'jRiKYp@\4e_t=!8naukf]Cl./lh(5`YP!D~> ZMsk(jSf,ZpAXjf_u9W9nbrLg]Dhd0li$kaYPs%~> ZLn/(jR`EZp@S.f_t3p9naleg]Cc(0lgt/aYOm>~> ZM"5'jRiKYp@\4e_t=!8naukf^%MC2rq69smI^GbYP!D~> ZMsk(jSf,ZpAXjf_u9W9nbrLg^&J$3rr2otmJ[(cYPs%~> ZLn/(jR`EZp@S.f_t3p9naleg^%D=3rq-3tmIUAcYOm>~> ZM"5'jRiKYp\":e_t=!8naukf^@_I3qt0ppmI^GbYP!D~> ZMsk(jSf,Zp\spf_u9W9nbrLg^A\*4qu-QqmJ[(cYPs%~> ZLn/(jR`EZp[n4f_t3p9naleg^@VC4qt'jqmIUAcYOm>~> ZM"5'jRiKYq"=@e_t=!8naukf^@hL3rUp0rmI^GbYP!D~> ZMsk(jSf,Zq#:!f_u9W9nbrLg^Ae-4rVlfsmJ[(cYPs%~> ZLn/(jR`EZq"4:f_t3p9naleg^@_F4rUg*smIUAcYOm>~> ZM"5'jRiKYq"==d`:X*9naukf]_21.m.C>aYP!D~> ZMsk(jSf,Zq#9se`;T`:nbrLg]`.g/m/?tbYPs%~> ZLn/(jR`EZq"47e`:O$:naleg]_)+/m.:8bYOm>~> ZM"5'jRiKYq=X@c`Us3:naukfU@eKlYP!D~> ZMsk(jSf,Zq>U!d`Voi;nbrLgUAb,mYPs%~> ZLn/(jR`EZq=O:d`Uj-;nalegU@\EmYOm>~> ZM"5'jRiKYq=X7`aRoN=naukfU@eKlYP!D~> ZMsk(jSf,Zq>TmaaSl/>nbrLgUAb,mYPs%~> ZLn/(jR`EZq=O1aaRfH>nalegU@\EmYOm>~> ZM"5'jRiKYqXrGGiUm0VnaukfU@eKlYP!D~> ZMsk(jSf,ZqYo(HiVifWnbrLgUAb,mYPs%~> ZLn/(jR`EZqXiAHiUd*WnalegU@\EmYOm>~> ZM"5'jRiKYqXql7naukfnaukfU@eKlYP!D~> ZMsk(jSf,ZqYnM8nbrLgnbrLgUAb,mYPs%~> ZLn/(jR`EZqXhf8nalegnalegU@\EmYOm>~> ZM"5'jRiKYqXq`3p%8:jnaukfU@eKlYP!D~> ZMsk(jSf,ZqYnA4p&4pknbrLgUAb,mYPs%~> ZLn/(jR`EZqXhZ4p%/4knalegU@\EmYOm>~> ZM"5'jRiKYqXqZ1p[nLlnaukfU@eKlYP!D~> ZMsk(jSf,ZqYn;2p\k-mnbrLgUAb,mYPs%~> ZLn/(jR`EZqXhT2p[eFmnalegU@\EmYOm>~> ZM"5'jRiKYqXqT/q=O^nnaukfU@eKlYP!D~> ZMsk(jSf,ZqYn50q>L?onbrLgUAb,mYPs%~> ZLn/(jR`EZqXhN0q=FXonalegU@\EmYOm>~> ZM"5'jRiKYq=VK.qXjgonaukfU@eKlYP!D~> ZMsk(jSf,Zq>S,/qYgHpnbrLgUAb,mYPs%~> ZLn/(jR`EZq=ME/qXaapnalegU@\EmYOm>~> ZM"5'jRiKYq";B-qt0ppnaukfkOni\kOni\g@YFOYP!D~> ZMsk(jSf,Zq#8#.qu-QqnbrLgkPkJ]kPkJ]gAV'PYPs%~> ZLn/(jR`EZq"2<.qt'jqnalegkOec]kOec]g@P@PYOm>~> ZM"2&jn/TZq";?,r:L$qnaukfl1OoZl1Ou\h":XQYP!D~> ZMsh'jo,5[q#7u-r;HZrnbrLgl2LP[l2LV]h#79RYPs%~> ZLn,'jn&N[q"29-r:Bsrnalegl1Fi[l1Fo]h"1RRYOm>~> Zh=2$kOef\p[u6+rUg-rnaukflLjrYlLk&\h=UaRYP!D~> Zi9h%kPbG]p\ql,rVccsnbrLglMgSZlMg\]h>RBSYPs%~> Zh4,%kO\`]p[l0,rU^'snaleglLalZlLau]h=L[SYOm>~> [.X5#kk+o]p%?'*rq-6snaukflh0uXl1Or[ht6sTYP!D~> [/Tk$kl(P^p&;]+rr)ltnbrLgli-VYl2LS\hu3TUYPs%~> [.O/$kk"i^p%6!+rq$0tnaleglh'oYl1Fl\ht-mUYOm>~> [Is8"l1G#^o_#s)s7H?tnaukfm.L&Xkk4iZi:R'UYP!D~> [Jon#l2CY_o_uT*s8DuunbrLgm/H\Ykl1J[i;N]VYPs%~> [Ij2#l1=r_o^om*s7?9unalegm.BuYkk+c[i:I!VYOm>~> [e9>"l1G#^o(Bg)s7H?tnaukfm.L#WkOn`Yiq39WYP!D~> [f5t#l2CY_o)?H*s8DuunbrLgm/HYXkPkAZir/oXYPs%~> [e08#l1=r_o(9a*s7?9unalegm.BrXkOeZZiq*3XYOm>~> a7XuhW!MGV!!oe$J,~> a8UViVuYlW!!'5%J,~> a7OoiW!_SW!",q%J,~> a7XuhW!MGV!!oe$J,~> a8UViVuYlW!!'5%J,~> a7OoiW!_SW!",q%J,~> \+TA!lLb,_o(Dndf_+Y \,Q""lM^b`o)AOef`(:=!WE)Srq$3QrqlcVrVur%rdX~> \+K;"lLY&`o(;hef_"S=!V?`So^iLQo_]'VoDf6%oRH~> \+TA!lLb,_oC`"ed.Qu9g\(4Fkk4iZiUm0VYP!D~> \,Q""lM^b`oD\Xfd/NV:g]$jGkl1J[iVifWYPs%~> \+K;"lLY&`oCVqfd.Ho:g[t.Gkk+c[iUd*WYOm>~> [e9;!lLb,_o_&+fbk:Z8g\(7Gkk4iZi:R'UYP!D~> [f5q"lM^b`o`"agbl7;9g]$mHkl1J[i;N]VYPs%~> [e05"lLY&`o^r%gbk1T9g[t1Hkk+c[i:I!VYOm>~> [e9>"l1G#^p%A1fbOtT8g@b1GlLk&\hXpjSYP!D~> [f5t#l2CY_p&=ggbPq59gA^gHlMg\]hYmKTYPs%~> [e08#l1=r_p%8+gbOkN9g@Y+HlLau]hXgdTYOm>~> [Is8"l1G#^p@\:gan>E7g%G.HlLk&\h=UaRYP!D~> [Jon#l2CY_pAXphao;&8g&CdIlMg\]h>RBSYPs%~> [Ij2#l1=r_p@S4han5?8g%>(IlLau]h=L[SYOm>~> [.X5#kk+o]p\"Cha7]66eF`eIkk4o\g[tOPYP!D~> [/Tk$kl(P^p\t$ia8Yl7eG]FJkl1P]g\q0QYPs%~> [.O/$kk"i^p[n=ia7T07eFW_Jkk+i]g[kIQYOm>~> ](Q(/qt9spjRiKYq"=Ih`qB06eF`eI^\%R4YP!D~> ])M^0qu6TqjSf,Zq#:*i`r>f7eG]FJ^]"35YPs%~> ](H"0qt0mqjR`EZq"4Ci`q9*7eFW_J^[qL5YOm>~> ZM"5'jRiKYq=XRi`V''5eF`eI^\%R4YP!D~> ZMsk(jSf,Zq>U3j`W#]6eG]FJ^]"35YPs%~> ZLn/(jR`EZq=OLj`Us!6eFW_J^[qL5YOm>~> ^%D@2p\"OljRiKYqXsXi`V''5OnA\[YP!D~> ^&A!3p\t0mjSf,ZqYp9j`W#]6Oo>=\YPs%~> ^%;:3p[nImjR`EZqXjRj`Us!6On8V\YOm>~> ^@_I3p@\FkjRiKYqXs[j`:`s4OnA\[YP!D~> ^A\*4pAY'ljSf,ZqYp=\YPs%~> ^@VC4p@S@ljR`EZqXjUk`:Wm5On8V\YOm>~> ZM"5'jRiKYqt9aj`:a$6!VH_\o`,9$omd~> ZMsk(jSf,Zqu6Bk`;]Z7!WE(]rVur%rdX~> ZLn/(jR`EZqt0[k`:Ws7!V?_]oDf6%oRH~> _tF$8o(E"gjRiKYr:Tgj`:a$6!VH`Jo`,94o`,9$omd~> _uBZ9o)AXhjSf,Zr;QHk`;]Z7!WE)KrVur5rVur%rdX~> _t ZM"5'jRiKYr:Tjk`:a!5!VH`Jo`,94o`,9$omd~> ZMsk(jSf,Zr;QKl`;]W6!WE)KrVur5rVur%rdX~> ZLn/(jR`EZr:Kdl`:Wp6!V?`KoDf65oDf6%oRH~> `q9<;me-ScjRiKYrUopk`:a!5!VH_\o`,9$omd~> `r5r `q06 aS#Q=mIgJbjRiKYrq6!k`:a$6s7H?tOnA\[YP!D~> aSu2>mJd+cjSf,Zrr2Wl`;]Z7s8DuuOo>=\YPs%~> aRoK>mI^DcjR`EZrq,pl`:Ws7s7?9uOn8V\YOm>~> ZM"5'jRiKYrq6!k`V'*6s7H?tOnA\[YP!D~> ZMsk(jSf,Zrr2Wl`W#`7s8DuuOo>=\YPs%~> ZLn/(jR`EZrq,pl`Us$7s7?9uOn8V\YOm>~> ZM"5'jRiQ[p%@t`a7]<8rq-6seF`eI^\%R4YP!D~> ZMsk(jSf2\rr2Qja8Yr9rr)lteG]FJ^]"35YPs%~> ZLn/(jR`K\o^qe`a7T69rq$0teFW_J^[qL5YOm>~> ZM"5'jRiQ[p%@t`aS#B8rq-6seF`eI^\%R4YP!D~> ZMsk(jSf2\rr2QjaSu#9rr)lteG]FJ^]"35YPs%~> ZLn/(jR`K\o^qe`aRo<9rq$0teFW_J^[qL5YOm>~> ZM"5'jRiQ[p%@q_an>N:rUg-reF`eI^\%R4YP!D~> ZMsk(jSf2\rr2Niao;/;rVccseG]FJ^]"35YPs%~> ZLn/(jR`K\o^qb_an5H;rU^'seFW_J^[qL5YOm>~> ZM"5'jRiNZp$rC3p%o$mo`,8[o`,9$omd~> ZMsk(jSf/[rpg'4rqc]nrVuq\rVur%rdX~> ZLn/(jR`H[o^W@4o_T!noDf5\oDf6%oRH~> f(B"Kp[nLll1P&^jRiNZp$i=5p%\mko`,8[o`,9$omd~> f)>XLp\k-ml2L\_jSf/[rp^!6rqQQlrVuq\rVur%rdX~> f(8qLp[eFml1Fu_jR`H[o^N:6o_AjloDf5\oDf6%oRH~> f(B"Kp[nLll1P&^jRiNZp$`76p%\mjo`,8[o`,9$omd~> f)>XLp\k-ml2L\_jSf/[rpTp7rqQQkrVuq\rVur%rdX~> f(8qLp[eFml1Fu_jR`H[o^E47o_AjkoDf5\oDf6%oRH~> ZM"5'jRiNZp$N+7p%\mio`,9Io`,94o`,9$omd~> ZMsk(jSf/[rpBd8rqQQjrVurJrVur5rVur%rdX~> ZLn/(jR`H[o^3(8o_AjjoDf6JoDf65oDf6%oRH~> ZM"5'jRiQ[p%@\XfCenEq=O^neF`eI^\%R4YP!D~> ZMsk(jSf2\rr29bfDbOFq>L?oeG]FJ^]"35YPs%~> ZLn/(jR`K\o^qMXfC\hFq=FXoeFW_J^[qL5YOm>~> jRrNYrUgC$p%8Rro`tj&p&>Elp$)h=p%A[do`,9Io`,94o`,9$ omd~> jSo/ZrVd$%rr)ltrVurtrr2usrr2utrr2uurr2ugrr2uZrW3*!rosL>rq6?erVurJrVur5rVur% rdX~> jRiHZrU^=%o^iItoEks)o`#9so`#9to`#9uo`#9go`#9ZoE#Blo]ce>o_&XeoDf6JoDf65oDf6% oRH~> jn0f'p%8U`o`tir#k\H/oa(6`#kdir#k\Jr#kdiroa(3roa(*\rs7]Y!!rSskQp5AoEb3a!!n_[ !!oe$J,~> jo-G(rr)osrVurt!<)rurW)rs!<2rt!<)ut!<2rtrW)otrW)KfrrD-Z!!*#tkQ'ZBoDnXb!!&/\ !!'5%J,~> jn'`(o^iL_oEkrt$M4Z4oEt6_$M k4J][rq.< k5G>\rr*r=rW)ot!<2rtrW)rs!!*#t!<)ut!<2rtrW)otrW)HerrD-Z!!*#ti;iBHmf<(\!!&/\ !!'5%J,~> k4AW\rq%6=oEt3t$M kOni\rq-6srq-6sr:L:#p%8U`o`tj&o`,9rp&> kPkJ]rr)ltrr)ltr;Hp$rr)osrVurtrVursrr2uurVurfrr2uZrVursrkJO,rVurJrVur5rVur% rdX~> kOec]rq$0trq$0tr:C4$o^iL_oEks)oDf6so`#9uoDf6fo`#9ZoDf6soY:h,oDf6JoDf65oDf6% oRH~> kOef\rq69ss7QBtrUg-rrq-@!p%8Uio`,9rp&> kPbG]rr2ots8N#urVccsrr*!"rr)osrVursrr2uurVurerr2uZrVurrrkea-rVurJrVur5rVur% rdX~> kO\`]rq-3ts7H kOef\rq-6srq-6sr:L7"oa(6`#RLD%"UOc,p%8Uio`>El#k@Tf#itXY#l=56#kIWg#h8MI#fQB9 #lXDr#lXDr#j1gY#l=5m#i>6)~> kPbG]rr)ltrr)ltr;Hm#rW)rs!!)us"T\N%rr)osrW3*!!:g'g!9F+Z!;c]7!:p*h!7^uJ!6"j: !<)ls!<)ls!9X:Z!;c]n!8d^*~> kO\`]rq$0trq$0tr:C1#oEt6_$4?b("Ual/o^iLioE#Bl$M!cg$KUgZ$MsD7$M*fh$In\J$H2Q: $N9Ss$N9Ss$Kh!Z$MsDn$JtE*~> kOeo_p%8Uip&> kPbP`rr)osrr2usrWN<$!<2rtr;H`trW)rs"T\Q$!<)ufrr2uZrVurorl>*0rVuqarVursrVurs rVurZrr2uprr2urrVurXrdX~> kO\i`o^iLio`#9soE>To$M k4S`[rUg-rr:U'qrq-6sr:U'qrq-6srq69sn+H\djRiKYp[u`9n+?YdQ1Y+_rq-6srq-6sj7WEX qt1!roa(Kg!!qTWJ,~> k5PA\rVccsr;Q]rrr)ltr;Q]rrr)ltrr2otn,E=ejSf,Zp\rA:n,<:eQ2Ua`rr)ltrr)ltj8T&Y qu-WsrW)lq!!)$XJ,~> k4JZ\rU^'sr:L!rrq$0tr:L!rrq$0trq-3tn+?VejR`EZp[lZ:n+6SeQ1P%`rq$0trq$0tj7N?Y qt'psoEtNg!".`XJ,~> eb/nIiV!3VjRiKYp@Z`;mI^GbPk>4dp%8U`oa'RMrs8Mp!XSH)h"?0~> ec,OJiVriWjSf,ZpAWA eb&hJiUm-WjR`EZp@QZ fCf.Lrq69sj7WEXjRiKYo_$Z=lh(5`eF`eI_Y"*=p%8U`oa'RMrWrJq!XSH)g\$'~> fDbdMrr2otj8T&YjSf,Zo`!;>li$kaeG]FJ_Ys`>rr)osrW(sWrW)or!W`3"g\u^~> fC](Mrq-3tj7N?YjR`EZo^pT>lgt/aeFW_J_Xn$>o^iL_oEsUMrX/Vr!XeQ,g[p!~> f_#4Mqt0ppj7WEXjRiKYnb(N?l1G#^eF`eI_=[p:oa(3rlh(5`rq-6srUg6up%8Uip&>9uoa(Nh rs8Vsrs8Ytrs7o_J,~> f_tjNqu-Qqj8T&YjSf,Znc%/@l2CY_eG]FJ_>XQ;rW)otli$karr)ltrVcm!rr)osrr2s!rW)or rrE&trrE)urrD?`J,~> f^o.Nqt'jqj7N?YjR`EZnatH@l1=r_eFW_J_=Rj;oEt3tlgt/arq$0trU^1!o^iLio`#7!oEtQh rsJbtrsJeursJ&`J,~> f_,7MrUp0rj7WEXjRiKYme,EBk4J][eF`eI_"I[4lh(Deoa(6`#lXDu#kdirrq-@!p%8Uioa;&u #kdiroa(3roa'jUJ,~> f`(mNrVlfsj8T&YjSf,Zmf)&Ck5G>\eG]FJ_#F<5li%%frW)rs!<)m!!<2rtrr*!"rr)osrX/`* !<2rtrW)otrW)6_J,~> f_#1NrUg*sj7N?YjR`EZme#?Ck4AW\eFW_J_"@U5lgt>foEt6_$N9T!$M f(JqHiq< f)GRIir8rXjSf,Zli,uGir/oXP5bF\l2Cbbrr)orrYPY7rW)rs!!*#t!<2rtrW)rs!<)ut!<)u_ rdX~> f(AkIiq36XjR`EZlh'9Giq*3XP4\_\l1>&bo^iLhoG@r-oEt6_$4?Ft$M ZM"5'jRiKYjn8-Lh":XQOnA\[kk+u_oa(Kg"pjnp#kdirrq-6srUg-rrUp0rs7H?tl1KQ~> ZMsk(jSf,Zjo4cMh#79ROo>=\kl(V`rW)lq"p"Z%!<2rtrr)ltrVccsrVlfss8Duul2H2~> ZLn/(jR`EZjn/'Mh"1RROn8V\kk"o`oEtNg"q("p$M ZM"5'jRoPZrq66rrq69srq66rrq66rs7Q?srq66rrq69srq66rrq66rs7Q?srq66rrq69srq66r rq66rs7Q?srq66rrq69srq66rrq66rs7Q?srq66rrq69srq69sqXjmqoa(Nh!!rSs!XSH)rUg-r rq-6srUp0rs7H?tkk0H~> ZMsk(jSl1[rr2lsrr2otrr2lsrr2lss8Mutrr2lsrr2otrr2lsrr2lss8Mutrr2lsrr2otrr2ls rr2lss8Mutrr2lsrr2otrr2lsrr2lss8Mutrr2lsrr2otrr2otqYgNrrW)or!!*#t!W`3"rVccs rr)ltrVlfss8Duukl-)~> ZLn/(jRfJ[rq-0srq-3trq-0srq-0ss7H9trq-0srq-3trq-0srq-0ss7H9trq-0srq-3trq-0s rq-0ss7H9trq-0srq-3trq-0srq-0ss7H9trq-0srq-3trq-3tqXagroEtQh!"/_t!XeQ,rU^'s rq$0trUg*ss7?9ukk'B~> ZM"5'JbA*s!!oFors8Pq!!rSsrWrJq!!rSs"UOc,p%8Uio`>El#jV)5~> ZMsk(Jc=a0!!&kprrDur!!*#trW)or!!*#t"T\N%rr)osrW3*!!:'Q6~> ZLn/(Jb8$q!",RprsJ\r!"/_trX/Vr!"/_t"Ual/o^iLioE#Bl$L786~> ZM"5'JbA*s!!oFors8Srrs8Sr!!rPr!!rSs!XSH)rq-F#p%8U`#jM#4~> ZMsk(Jc=a0!!&kprrE#srrE#s!!)us!!*#t!W`3"rr*'$rr)os!9sK5~> ZLn/(Jb8$q!",RprsJ_srsJ_s!"/\s!"/_t!XeQ,rq$@$o^iL_$L.25~> ZM"5'Jb=fk!!rSsq[!5p!XSJlr!3As#RLG&!!rSsrs7i]J,~> ZMsk(Jc:H(!!*#tqZ-Zq!W`6!qu?ft!!*#t!!*#trrD9^J,~> ZLn/(Jb4`i!"/_tq[3Aq!XeSlr!EMt$4?e)!"/_trsIu^J,~> ZM"5'Jb=ilrs6a>J,~> ZMsk(Jc:K)rrC1?J,~> ZLn/(Jb4cjrsHm?J,~> ZM"5'Jb=il!!p[=J,~> ZMsk(Jc:K)!!(+>J,~> ZLn/(Jb4cj!"-g>J,~> ZM"5'JbA*s!!oLq!!pX ZMsk(Jc=a0!!&qr!!((=J,~> ZLn/(Jb8$q!",Xr!"-d=J,~> ZM"5'JbA*s!!oOr!!pU;J,~> ZMsk(Jc=a0!!&ts!!(% ZLn/(Jb8$q!",[s!"-a ZM"5'JbA*s!!n/Km.Gl~> ZMsk(Jc=a0!!%TLm/DM~> ZLn/(Jb8$q!"+;Lm.>f~> ZM"5'Jb=TecLl\~> ZMsk(Jc:6"cMi=~> ZLn/(Jb4NccLcV~> ZM"5'JbAC&rs42Kjn4-~> ZMsk(Jc>$8rr@WLjo0c~> ZLn/(Jb8=$rsF>Ljn+'~> ZM"5'JbA=$!!n/Kk4O6~> ZMsk(Jc=s6!!%TLk5Kl~> ZLn/(Jb87"!"+;Lk4F0~> ZM"5'JbA:#rs8Vs!!n/Km.Gl~> ZMsk(Jc=p5rrE&t!!%TLm/DM~> ZLn/(Jb84!rsJbt!"+;Lm.>f~> ZM"5'JbA4!!snSm#_D[8omd~> ZMsk(Jc=j3!s&?"!.k.9rdX~> ZLn/(Jb8-t!t+\m$A%j9oRH~> ZM"5'JbA0urWn)Jm.Gl~> ZMsk(Jc=g2rW%NKm/DM~> ZLn/(Jb8*srX+5Km.>f~> ZLrbSi ZMoCTi;eH.m/DM~> ZLi\Tif~> ZM"5'JbA0urs42Klh,c~> ZMsk(Jc=g2rr@WLli)D~> ZLn/(Jb8*srsF>Llh#]~> ZM"5'JbA4!!snSm#_D[8omd~> ZMsk(Jc=j3!s&?"!.k.9rdX~> ZLn/(Jb8-t!t+\m$A%j9oRH~> ZM"5'JbA:#rs8Vs!!n/Km.Gl~> ZMsk(Jc=p5rrE&t!!%TLm/DM~> ZLn/(Jb84!rsJbt!"+;Lm.>f~> ZM"5'JbA=$!!rMq!!n/Km.Gl~> ZMsk(Jc=s6!!)rr!!%TLm/DM~> ZLn/(Jb87"!"/Yr!"+;Lm.>f~> ZM"5'JbAC&rs42Kjn4-~> ZMsk(Jc>$8rr@WLjo0c~> ZLn/(Jb8=$rsF>Ljn+'~> ZM"5'Jb=TecLl\~> ZMsk(Jc:6"cMi=~> ZLn/(Jb4NccLcV~> ZM"5'Jb=TecLl\~> ZMsk(Jc:6"cMi=~> ZLn/(Jb4NccLcV~> ZM"5'JbA*s!!n/Km.Gl~> ZMsk(Jc=a0!!%TLm/DM~> ZLn/(Jb8$q!"+;Lm.>f~> ZM"5'JbA*s!!n/Km.Gl~> ZMsk(Jc=a0!!%TLm/DM~> ZLn/(Jb8$q!"+;Lm.>f~> ZM"5'_=dd5VtC#qJbAC&J,~> ZMsk(_>aE6Vu?YrJc>$8J,~> ZLn/(_=[^6Vt9rrJb8=$J,~> ZM"5'^\%R4Jb>/uJ,~> ZMsk(^]"35Jc:f2J,~> ZLn/(^[qL5Jb5)sJ,~> ZM"5'_"@[5Jb>,tJ,~> ZMsk(_#=<6Jc:c1J,~> ZLn/(_"7U6Jb5&rJ,~> ZM"5'_"@[5Jb>,tJ,~> ZMsk(_#=<6Jc:c1J,~> ZLn/(_"7U6Jb5&rJ,~> JbAL)!!oIp!!n/Km.Gl~> Jc>-;!!&nq!!%TLm/DM~> Jb8F'!",Uq!"+;Lm.>f~> JbAm4rWrGprWrMr!!rSs!!rPrrWrMrrs8Ytrs8Srrs8Vsrs6^=!!n/Km.Gl~> Jc>NFrW)lqrW)rs!!*#t!!)usrW)rsrrE)urrE#srrE&trrC.>!!%TLm/DM~> Jb8g2rX/SqrX/Ys!"/_t!"/\srX/YsrsJeursJ_srsJbtrsHj>!"+;Lm.>f~> JbAp5!snSm#laMs#ljPu#ke0&rq-6srq-[*p%8U`oa(3roa(3rrq-L%oa(6`#k\ISos47@~> Jc>QG!s&?"!<2ut!<<$!!<2rtrr)ltrr*<+rr)osrW)otrW)otrr*-&rW)rs!<)tLrj)NR~> Jb8j3!t+\m$NB\t$NK`!$M=<)rq$0trq$U+o^iL_oEt3toEt3trq$F&oEt6_$M4[VoWn+>~> JbAs6":4\n#RLG&!!rSs":4Z+oa(Qi%g_k$#kdir#k\Jr#k\Jr#laJs#lXDu#kdirJb?>AJ,~> Jc>TH"9AH#!!*#t!!*#t"9AE$rW)rs%flV.!<2rt!<)ut!<)ut!<2rt!<)m!!<2rtJc;tSJ,~> Jb8m4":Fen$4?e)!"/_t":Fc.oEtTi%gqt$$M JbB!7!!rSs!!rSs!!rSs!!rPr"pjnp#kdirrq-6srUp0rs7H?trq-6srUg3toa$-AZ1WV~> Jc>WI!!*#t!!*#t!!*#t!!)us"p"Z%!<2rtrr)ltrVlfss8Duurr)ltrVciurW%NKZ2T7~> Jb8p5!"/_t!"/_t!"/_t!"/\s"q("p$M JbB!7#RL+r#RL+r#RLG&!!rSs!!rSs#71"q#kdir#laMs#ljPt#laJs#lXGq#fcN;#_D[8omd~> Jc>WI#QXl'!!*#t!!*#t!!*#t!!*#t#6=c&!<2rt!<2ut!<<#u!<2rt!<)or!65! Jb8p5#R^4r$4?Ft$4?e)!"/_t!"/_t#7C+q$M JbB$8$4-=t#RL)/oa(6`r Jc>ZJ$3:))!!)uurW)rsr;cls%flV.!<2rtrr)ltrW)rs!<2s(!<)ut!<2rtrW'n9!!%TLm/DM~> Jb8s6$4?Ft$4?D4oEt6_rf~> JbB$8'+"7:o`tiroa(3ro`tiroa(3r#laK##k\Jr#RLG&&.%t%#k\Jroa(3rp%8U`oa&V2!!n/K m.Gl~> Jc>ZJ'*/"3rVurtrW)otrVurtrW)ot!<2s$!<)ut!!*#t&-2_/!<)utrW)otrr)osrW(" Jb8s6'+4@=oEkrtoEt3toEkrtoEt3t$NBZ$$M4\t$4?e)&.8(%$M4\toEt3to^iL_oErY2!"+;L m.>f~> JbB$8rs8Yt!!rSsrs8Yt!!rSsrs8Pqrs8Yt!!rSs!!rSsrs8Vsrs8VsrWn)JYk Jc>ZJrrE)u!!*#trrE)u!!*#trrDurrrE)u!!*#t!!*#trrE&trrE&trW%NKYl9.~> Jb8s6rsJeu!"/_trsJeu!"/_trsJ\rrsJeu!"/_t!"/_trsJbtrsJbtrX+5KYk3G~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> Jb=TeJbB!7J,~> Jc:6"Jc>WIJ,~> Jb4NcJb8p5J,~> %%EndData showpage %%Trailer end %%EOF quesoglc-0.7.2/docs/qheader.html0000644000175000017500000000353210764574551013533 00000000000000 $title
Tutorials
Documentation
quesoglc-0.7.2/docs/Image2.eps0000644000175000017500000004210410764574551013047 00000000000000%!PS-Adobe-3.0 EPSF-3.0 %%Creator: GIMP PostScript file plugin V 1,17 by Peter Kirchgessner %%Title: Image2.eps %%CreationDate: Sat Sep 2 20:02:42 2006 %%DocumentData: Clean7Bit %%LanguageLevel: 2 %%Pages: 1 %%BoundingBox: 14 14 177 290 %%EndComments %%BeginProlog % Use own dictionary to avoid conflicts 10 dict begin %%EndProlog %%Page: 1 1 % Translate for offset 14.173228346456694 14.173228346456694 translate % Translate to begin of first scanline 0 275 translate 162 -275 scale % Image geometry 162 275 8 % Transformation matrix [ 162 0 0 275 0 0 ] % Strings to hold RGB-samples per scanline /rstr 162 string def /gstr 162 string def /bstr 162 string def {currentfile /ASCII85Decode filter /RunLengthDecode filter rstr readstring pop} {currentfile /ASCII85Decode filter /RunLengthDecode filter gstr readstring pop} {currentfile /ASCII85Decode filter /RunLengthDecode filter bstr readstring pop} true 3 %%BeginData: 16490 ASCII Bytes colorimage Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$e+N_Hj7Rp~> YQ"P%e,K@Ij8OQ~> YOqi%e+EYIj7Ij~> YP%o$e+NYFjn4-~> YQ"P%e,K:Gjo0c~> YOqi%e+ESGjn+'~> YP%o$e+NVEk4O6~> YQ"P%e,K7Fk5Kl~> YOqi%e+EPFk4F0~> YP%o$dImDCkk0H~> YQ"P%dJj%Dkl-)~> YOqi%dId>Dkk'B~> Yk@o"de3MDl1KQ~> Yl=P#df0.El2H2~> Yk7i#de*GEl1BK~> Yk@o"d.R;Blh,c~> Yl=P#d/NqCli)D~> Yk7i#d.I5Clh#]~> bOqk@m.Gl~> bPnLAm/DM~> bOheAm.>f~> me-Pbs7Q mf*1cs8Mrss8Mutrr2lsrr2otrr2lsrr/ksm/DM~> me$Jcs7H6ss7H9trq-0srq-3trq-0srq*/sm.>f~> l1G#^an>Q;ch72Am.Gl~> l2CY_ao;2 l1=r_an5Kf~> l1G#^aS#Q=ch72AlLfZ~> l2CY_aSu2>ci3hBlMc;~> l1=r_aRoK>ch.,BlL]T~> l1G#^aS#Q=d.R;Bl1KQ~> l2CY_aSu2>d/NqCl2H2~> l1=r_aRoK>d.I5Cl1BK~> l1G#^aS#Q=de3MDkOj?~> l2CY_aSu2>df0.EkPfu~> l1=r_aRoK>de*GEkOa9~> l1G#^aS#Q=e+NVEk4O6~> l2CY_aSu2>e,K7Fk5Kl~> l1=r_aRoK>e+EPFk4F0~> l1G#^aS#Q=e+N\GjRn$~> l2CY_aSu2>e,K=HjSjZ~> l1=r_aRoK>e+EVHjRds~> l1G#^aS#Q=Zh8h~> l2CY_aSu2>Zi5I~> l1=r_aRoK>Zh/b~> l1G#^aS#Q=Zh8h~> l2CY_aSu2>Zi5I~> l1=r_aRoK>Zh/b~> l1G#^aS#N<[.Sq~> l2CY_aSu/=[/PR~> l1=r_aRoH=[.Jk~> l1G#^an>T<[.Sq~> l2CY_ao;5=[/PR~> l1=r_an5N=[.Jk~> l1G#^an>Q;[Io%~> l2CY_ao;2<[Jk[~> l1=r_an5K<[Iet~> l1G#^b4YW;[Io%~> l2CY_b5V8<[Jk[~> l1=r_b4PQ<[Iet~> l1G#^b4YT:[e5.~> l2CY_b5V5;[f1d~> l1=r_b4PN;[e,(~> l1G#^bOtZ:[e5.~> l2CY_bPq;;[f1d~> l1=r_bOkT;[e,(~> l1G#^bOtZ:[e5.~> l2CY_bPq;;[f1d~> l1=r_bOkT;[e,(~> l1G#^bOtW9\+P7~> l2CY_bPq8:\,Lm~> l1=r_bOkQ:\+G1~> l1G#^bk:r@!;63p\+P7~> l2CY_bl7SA!<2iq\,Lm~> l1=r_bk1lA!;--q\+G1~> l1G#^bk:r@!;60o\Fk@~> l2CY_bl7SA!<2fp\Gh!~> l1=r_bk1lA!;-*p\Fb:~> l1G#^c1V&As7Q3o\Fk@~> l2CY_c2R\Bs8Mip\Gh!~> l1=r_c1LuBs7H-p\Fb:~> l1G#^c1V&As7Q3o\Fk@~> l2CY_c2R\Bs8Mip\Gh!~> l1=r_c1LuBs7H-p\Fb:~> l1G#^cLq/Brq6'm\b1I~> l2CY_cMmeCrr2]n\c.*~> l1=r_cLh)Crq-!n\b(C~> l1G#^cLq/Brq6'm\b1I~> l2CY_cMmeCrr2]n\c.*~> l1=r_cLh)Crq-!n\b(C~> l1G#^ch78CrUopk](LR~> l2CY_ci3nDrVlQl])I3~> l1=r_ch.2DrUfjl](CL~> l1G#^ch78CrUp0r!;63p](LR~> l2CY_ci3nDrVlfs!<2iq])I3~> l1=r_ch.2DrUg*s!;--q](CL~> l1G#^d.R>CrUp0r!;63p](LR~> l2CY_d/NtDrVlfs!<2iq])I3~> l1=r_d.I8DrUg*s!;--q](CL~> l1G#^d.RADr:U'q!;60o]Cg[~> l2CY_d/O"Er;Q]r!<2fp]Dd<~> l1=r_d.I;Er:L!r!;-*p]C^U~> l1G#^d.RADr:U'qs7Q6p]Cg[~> l2CY_d/O"Er;Q]rs8Mlq]Dd<~> l1=r_d.I;Er:L!rs7H0q]C^U~> l1G#^dImJEqt9sps7Q3o]_-d~> l2CY_dJj+Fqu6Tqs8Mip]`*E~> l1=r_dIdDFqt0mqs7H-p]_$^~> l1G#^dImJEqt9sprq6-o]_-d~> l2CY_dJj+Fqu6Tqrr2cp]`*E~> l1=r_dIdDFqt0mqrq-'p]_$^~> l1G#^de3SFqXsjorq6*n^%Hm~> l2CY_df04GqYpKprr2`o^&EN~> l1=r_de*MGqXjdprq-$o^%?g~> l1G#^de3SFqXsjorUp$n^%Hm~> l2CY_df04GqYpKprVlZo^&EN~> l1=r_de*MGqXjdprUfso^%?g~> l1G#^e+N\Gq=XanrUp$n^%Hm~> l2CY_e,K=Hq>UBorVlZo^&EN~> l1=r_e+EVHq=O[orUfso^%?g~> l1G#^e+N\Gq=XanrUp!m^@d!~> l2CY_e,K=Hq>UBorVlWn^A`W~> l1=r_e+EVHq=O[orUfpn^@Zp~> l1G#^eFibGq=Xanr:Tpm^@d!~> l2CY_eGfCHq>UBor;QQn^A`W~> l1=r_eF`\Hq=O[or:Kjn^@Zp~> l1G#^eFieHq"=Xmr:Tml^\**~> l2CY_eGfFIq#:9nr;QNm^]&`~> l1=r_eF`_Iq"4Rnr:Kgm^\!$~> l1G#^eb/kHq"=Xmqt9gl^\**~> l2CY_ec,LIq#:9nqu6Hm^]&`~> l1=r_eb&eIq"4Rnqt0am^\!$~> l1G#^eb/nIp\"Olqt9gl^\**~> l2CY_ec,OJp\t0mqu6Hm^]&`~> l1=r_eb&hJp[nImqt0am^\!$~> l1G#^eb/#0_"E3~> l2CY_ec+Y1_#Ai~> l1=r_eb%r1_"<-~> l1G#^f(J)0_"E3~> l2CY_f)F_1_#Ai~> l1=r_f(A#1_"<-~> l1G#^f(K"Jp@\FkqXs[j_=`<~> l2CY_f)GXKpAY'lqYp\r~> l1=r_f(AqKp@S@lqXjUk_=W6~> l1G#^fCf+Kp%A=jq=XUj_=`<~> l2CY_fDbaLp&=skq>U6k_>\r~> l1=r_fC]%Lp%87kq=OOk_=W6~> l1G#^fCf+Kp%A=jq=XUj_=`<~> l2CY_fDbaLp&=skq>U6k_>\r~> l1=r_fC]%Lp%87kq=OOk_=W6~> l1G#^f_,4Lo_&4iq=XRi_Y&E~> l2CY_f`(jMo`"jjq>U3j_Z#&~> l1=r_f_#.Mo^r.jq=OLj_Xr?~> l1G#^f_,4Lo_&4iq"=Li_Y&E~> l2CY_f`(jMo`"jjq#:-j_Z#&~> l1=r_f_#.Mo^r.jq"4Fj_Xr?~> l1G#^g%G:Lo_&4iq"=Ih_tAN~> l2CY_g&CpMo`"jjq#:*i_u>/~> l1=r_g%>4Mo^r.jq"4Ci_t8H~> l1G#^g%G=MoC`+hp\"Ch_tAN~> l2CY_g&CsNoD\aip\t$i_u>/~> l1=r_g%>7NoCW%ip[n=i_t8H~> l1G#^g%G=MoC`+hp\"@g`:\W~> l2CY_g&CsNoD\aip\t!h`;Y8~> l1=r_g%>7NoCW%ip[n:h`:SQ~> l1G#^g@bFNo(E"gp\"@g`:\W~> l2CY_gA_'Oo)AXhp\t!h`;Y8~> l1=r_g@Y@Oo(;qhp[n:h`:SQ~> l1G#^g@bFNo(E"gp@\7f`V"`~> l2CY_gA_'Oo)AXhpAXmg`VtA~> l1=r_g@Y@Oo(;qhp@S1g`UnZ~> l1G#^g\(LNo(E"gp@\7f`V"`~> l2CY_g]%-Oo)AXhpAXmg`VtA~> l1=r_g[tFOo(;qhp@S1g`UnZ~> l1G#^h"CRNo(E"gp@\4e`q=i~> l2CY_h#@3Oo)AXhpAXjf`r:J~> l1=r_h":LOo(;qhp@S.f`q4c~> me$PcrUg-rrUg-riV!*So(E"gp@\1da7Xr~> mf!1drVccsrVccsiVr`To)AXhpAXgea8US~> mdpJdrU^'srU^'siUm$To(;qhp@S+ea7Ol~> me$PcrUg-rrq-6siq<'Po_&4iq"=:caRt&~> mf!1drVccsrr)ltir8]Qo`"jjq#9pdaSp\~> mdpJdrU^'srq$0tiq3!Qo^r.jq"44daRju~> mI^Gbrq-6srq-6sjRr*Mp\"Olqt9C`bOpA~> mJ[(crr)ltrr)ltjSn`Np\t0mqu6$abPm"~> mIUAcrq$0trq$0tjRi$Np[nImqt0=abOg;~> m.CPgp%8U`oa&b6rs5t(J,~> m/@1hrr)osrW(.@rrBD)J,~> m.:Jho^iL_oEre6rsH+)J,~> lh(Adoa(3rb4Yc?Zh8h~> li%"erW)otb5VD@Zi5I~> lgt;eoEt3tb4P]@Zh/b~> lh(>co`tiHp&#*&omd~> li$tdrVurArqlc'rdX~> lgt8doEkrKo_]''oRH~> lLk,^bOtc=[.Sq~> lMgb_bPqD>[/PR~> lLb&_bOk]>[.Jk~> me-Pbs7Q mf*1cs8Mrss8Mutrr2ls"TAE#!!*#trW)rsrW)utrW)rsrW)rsrrE&trW)utquF,'J,~> me$Jcs7H6ss7H9trq-0s"S<&n$4?e)rX/YsrX/\trX/YsrX/YsrsJbtrX/\tr!Kh'J,~> g%>=Ng@b@L[.Sq~> g&:sOgA_!M[/PR~> g%57Og@Y:M[.Jk~> g%>=Ng@b@L[.Sq~> g&:sOgA_!M[/PR~> g%57Og@Y:M[.Jk~> g%>=Nf_,7MZh8h~> g&:sOf`(mNZi5I~> g%57Of_#1NZh/b~> g%>=Nf_,7MZh8h~> g&:sOf`(mNZi5I~> g%57Of_#1NZh/b~> g%>=Nf_,7MZh8h~> g&:sOf`(mNZi5I~> g%57Of_#1NZh/b~> g%>=Nf_,7MZh8h~> g&:sOf`(mNZi5I~> g%57Of_#1NZh/b~> g%>=Nht?sSrUp0rZh8h~> g&:sOhu g%57Oht6mTrUg*sZh/b~> g%>=NiV!*SrUp0rZh8h~> g&:sOiVr`TrVlfsZi5I~> g%57OiUm$TrUg*sZh/b~> g%>=Nj7W6SrUp0rZh8h~> g&:sOj8SlTrVlfsZi5I~> g%57Oj7N0TrUg*sZh/b~> g%>=Nk4SHSrUp0rZh8h~> g&:sOk5P)TrVlfsZi5I~> g%57Ok4JBTrUg*sZh/b~> g%>=NkOni\!;6-nrUp0rZh8h~> g&:sOkPkJ]!<2corVlfsZi5I~> g%57OkOec]!;-'orUg*sZh/b~> g%>=Nj7W6SrUp0rZh8h~> g&:sOj8SlTrVlfsZi5I~> g%57Oj7N0TrUg*sZh/b~> g%>=Niq<0SrUp0rZh8h~> g&:sOir8fTrVlfsZi5I~> g%57Oiq3*TrUg*sZh/b~> g%>=Niq<0SrUp0rZh8h~> g&:sOir8fTrVlfsZi5I~> g%57Oiq3*TrUg*sZh/b~> g%>=Niq<0SrUp0rZh8h~> g&:sOir8fTrVlfsZi5I~> g%57Oiq3*TrUg*sZh/b~> g%>=Niq<0SrUp0rZh8h~> g&:sOir8fTrVlfsZi5I~> g%57Oiq3*TrUg*sZh/b~> g%>=Niq<0SrUp0rZh8h~> g&:sOir8fTrVlfsZi5I~> g%57Oiq3*TrUg*sZh/b~> g%>=Niq<0SrUp0rZh8h~> g&:sOir8fTrVlfsZi5I~> g%57Oiq3*TrUg*sZh/b~> g%>=Niq<0SrUp0rZh8h~> g&:sOir8fTrVlfsZi5I~> g%57Oiq3*TrUg*sZh/b~> g%>=Niq<0SrUp0rZh8h~> g&:sOir8fTrVlfsZi5I~> g%57Oiq3*TrUg*sZh/b~> g%>=Niq<0SrUp0rZh8h~> g&:sOir8fTrVlfsZi5I~> g%57Oiq3*TrUg*sZh/b~> g%>=Niq<0SrUp0rZh8h~> g&:sOir8fTrVlfsZi5I~> g%57Oiq3*TrUg*sZh/b~> g%>=Niq<0SrUp0r!;66q\b1I~> g&:sOir8fTrVlfs!<2lr\c.*~> g%57Oiq3*TrUg*s!;-0r\b(C~> g%>=Niq<0SrUoji]_-d~> g&:sOir8fTrVlKj]`*E~> g%57Oiq3*TrUfdj]_$^~> g%>=Niq<0Srq5mh^%Hm~> g&:sOir8fTrr2Ni^&EN~> g%57Oiq3*Trq,gi^%?g~> g%>=Niq<0Ss7Ppg^@d!~> g&:sOir8fTs8MQh^A`W~> g%57Oiq3*Ts7Gjh^@Zp~> g%>=Niq<0Ss7Pmf^\**~> g&:sOir8fTs8MNg^]&`~> g%57Oiq3*Ts7Ggg^\!$~> g%>=Niq<0S!;66qrq6$l^\**~> g&:sOir8fT!<2lrrr2Zm^]&`~> g%57Oiq3*T!;-0rrq,sm^\!$~> g%>=Niq<'P!qcg)r:Tjk_"E3~> g&:sOir8]Q!r`0"r;QKl_#Ai~> g%57Oiq3!Q!qZg,r:Kdl_"<-~> g%>=Niq<-Rrq69sqt9aj_=`<~> g&:sOir8cSrr2otqu6Bk_>\r~> g%57Oiq3'Srq-3tqt0[k_=W6~> g%>=Niq<0SrUp0rqXs[j_=`<~> g&:sOir8fTrVlfsqYp\r~> g%57Oiq3*TrUg*sqXjUk_=W6~> g%>=Niq<0SrUp0rqXs[j_=`<~> g&:sOir8fTrVlfsqYp\r~> g%57Oiq3*TrUg*sqXjUk_=W6~> g%>=Niq<0SrUp0rq=XUj_=`<~> g&:sOir8fTrVlfsq>U6k_>\r~> g%57Oiq3*TrUg*sq=OOk_=W6~> g%>=Niq<0SrUp0rq=XRi_Y&E~> g&:sOir8fTrVlfsq>U3j_Z#&~> g%57Oiq3*TrUg*sq=OLj_Xr?~> g%>=Niq<0SrUp0rq=XRi_Y&E~> g&:sOir8fTrVlfsq>U3j_Z#&~> g%57Oiq3*TrUg*sq=OLj_Xr?~> g%>=Niq<0SrUp0rq"=Li_Y&E~> g&:sOir8fTrVlfsq#:-j_Z#&~> g%57Oiq3*TrUg*sq"4Fj_Xr?~> g%>=Niq<0SrUp0rq"=Li_Y&E~> g&:sOir8fTrVlfsq#:-j_Z#&~> g%57Oiq3*TrUg*sq"4Fj_Xr?~> g%>=Niq<0SrUp0rq"=Li_Y&E~> g&:sOir8fTrVlfsq#:-j_Z#&~> g%57Oiq3*TrUg*sq"4Fj_Xr?~> g%>=Niq<0SrUp0rq"=Li_Y&E~> g&:sOir8fTrVlfsq#:-j_Z#&~> g%57Oiq3*TrUg*sq"4Fj_Xr?~> g%>=Niq<0SrUp0rq"=Li_Y&E~> g&:sOir8fTrVlfsq#:-j_Z#&~> g%57Oiq3*TrUg*sq"4Fj_Xr?~> g%>=Niq<0SrUp0rq"=Li_Y&E~> g&:sOir8fTrVlfsq#:-j_Z#&~> g%57Oiq3*TrUg*sq"4Fj_Xr?~> g%>=Niq<0SrUp0rq"=Li_Y&E~> g&:sOir8fTrVlfsq#:-j_Z#&~> g%57Oiq3*TrUg*sq"4Fj_Xr?~> g%>=Niq<0SrUp0rq"=Li_Y&E~> g&:sOir8fTrVlfsq#:-j_Z#&~> g%57Oiq3*TrUg*sq"4Fj_Xr?~> g%>=Niq<0SrUp0rq"=Oj_=`<~> g&:sOir8fTrVlfsq#:0k_>\r~> g%57Oiq3*TrUg*sq"4Ik_=W6~> g%>=Niq<0SrUp0rq"=Oj_=`<~> g&:sOir8fTrVlfsq#:0k_>\r~> g%57Oiq3*TrUg*sq"4Ik_=W6~> g%>=Niq<0SrUp0rq=XUj_=`<~> g&:sOir8fTrVlfsq>U6k_>\r~> g%57Oiq3*TrUg*sq=OOk_=W6~> g%>=Niq<0SrUp0rq=XXk_"E3~> g&:sOir8fTrVlfsq>U9l_#Ai~> g%57Oiq3*TrUg*sq=ORl_"<-~> g%>=Niq<0SrUp0rq=XXk_"E3~> g&:sOir8fTrVlfsq>U9l_#Ai~> g%57Oiq3*TrUg*sq=ORl_"<-~> g%>=Niq<0SrUp0rq=X[l^\**~> g&:sOir8fTrVlfsq>U g%57Oiq3*TrUg*sq=OUm^\!$~> g%>=Niq<0SrUp0rqXsdm^@d!~> g&:sOir8fTrVlfsqYpEn^A`W~> g%57Oiq3*TrUg*sqXj^n^@Zp~> g%>=Niq<0SrUp0rqt9jm^@d!~> g&:sOir8fTrVlfsqu6Kn^A`W~> g%57Oiq3*TrUg*sqt0dn^@Zp~> g%>=Niq<-Rrq69sqt9mn^%Hm~> g&:sOir8cSrr2otqu6No^&EN~> g%57Oiq3'Srq-3tqt0go^%?g~> g%>=Niq<'P!qcg)r:U$p]Cg[~> g&:sOir8]Q!r`0"r;QZq]Dd<~> g%57Oiq3!Q!qZg,r:Ksq]C^U~> g%>=Ni:ZgMrq63q](LR~> g&:sOi;WHNrr2ir])I3~> g%57Oi:QaNrq--r](CL~> g%>=NhY$LH\Fk@~> g&:sOhZ!-I\Gh!~> g%57OhXpFI\Fb:~> g%>=Ng\(@J[e5.~> g&:sOg]%!K[f1d~> g%57Og[t:K[e,(~> g%>=Nf_,7MZh8h~> g&:sOf`(mNZi5I~> g%57Of_#1NZh/b~> g%>=Nf_,7MZh8h~> g&:sOf`(mNZi5I~> g%57Of_#1NZh/b~> hXpjSrUg-rrUg-rh=^dRZh8h~> hYmKTrVccsrVccsh>[ESZi5I~> hXgdTrU^'srU^'sh=U^SZh/b~> hXpjSrUg-rrUg-rh=^dRZh8h~> hYmKTrVccsrVccsh>[ESZi5I~> hXgdTrU^'srU^'sh=U^SZh/b~> h=UaRrq-6srq-6sh"C[QZh8h~> h>RBSrr)ltrr)lth#@ h=L[Srq$0trq$0th":URZh/b~> h":jWp%8U`oa'=Frs5t(J,~> h#7KXrr)osrW(^PrrBD)J,~> h"1dXo^iL_oEs@FrsH+)J,~> h":jWp%8U`oa'=Frs5t(J,~> h#7KXrr)osrW(^PrrBD)J,~> h"1dXo^iL_oEs@FrsH+)J,~> g[t[Toa(3rg@bIOZh8h~> g\q g[kUUoEt3tg@YCPZh/b~> g@bFNg\(IM[.Sq~> gA_'Og]%*N[/PR~> g@Y@Og[tCN[.Jk~> g@bFNg\(IM[.Sq~> gA_'Og]%*N[/PR~> g@Y@Og[tCN[.Jk~> g%>=Ng@b@L[.Sq~> g&:sOgA_!M[/PR~> g%57Og@Y:M[.Jk~> me-Pbrq66rs7Q?srq66rrq69srq66rrq66rs7Q?srq66rrq69srq66rs7Q9q[.Sq~> mf*1crr2lss8Mutrr2lsrr2otrr2lsrr2lss8Mutrr2lsrr2otrr2lss8Mor[/PR~> me$Jcrq-0ss7H9trq-0srq-3trq-0srq-0ss7H9trq-0srq-3trq-0ss7H3r[.Jk~> kOef\bk:l>[.Sq~> kPbG]bl7M?[/PR~> kO\`]bk1f?[.Jk~> kOef\b4Yc?Zh8h~> kPbG]b5VD@Zi5I~> kO\`]b4P]@Zh/b~> kOef\b4Yc?Zh8h~> kPbG]b5VD@Zi5I~> kO\`]b4P]@Zh/b~> kOef\b4Yc?Zh8h~> kPbG]b5VD@Zi5I~> kO\`]b4P]@Zh/b~> kOef\b4Yc?Zh8h~> kPbG]b5VD@Zi5I~> kO\`]b4P]@Zh/b~> kOef\b4Yc?Zh8h~> kPbG]b5VD@Zi5I~> kO\`]b4P]@Zh/b~> kOef\b4Yc?Zh8h~> kPbG]b5VD@Zi5I~> kO\`]b4P]@Zh/b~> kOef\b4Yc?Zh8h~> kPbG]b5VD@Zi5I~> kO\`]b4P]@Zh/b~> kOef\c1Ul kPbG]c2RM=rVccs]Dd<~> kO\`]c1Lf=rU^'s]C^U~> kOef\ch6i7]Cg[~> kPbG]ci3J8]Dd<~> kO\`]ch-c8]C^U~> kOef\d.R>Cs7QBt!;60o]Cg[~> kPbG]d/NtDs8N#u!<2fp]Dd<~> kO\`]d.I8Ds7H kOef\dImJErUp0rrq60p]Cg[~> kPbG]dJj+FrVlfsrr2fq]Dd<~> kO\`]dIdDFrUg*srq-*q]C^U~> kOef\de3SFr:U'qrUp*p]Cg[~> kPbG]df04Gr;Q]rrVl`q]Dd<~> kO\`]de*MGr:L!rrUg$q]C^U~> kOef\de3SFr:U'qr:U$p]Cg[~> kPbG]df04Gr;Q]rr;QZq]Dd<~> kO\`]de*MGr:L!rr:Ksq]C^U~> kOef\e+NYFr:U'qr:U$p]Cg[~> kPbG]e,K:Gr;Q]rr;QZq]Dd<~> kO\`]e+ESGr:L!rr:Ksq]C^U~> kOef\e+NYFr:U'qqt9sp]Cg[~> kPbG]e,K:Gr;Q]rqu6Tq]Dd<~> kO\`]e+ESGr:L!rqt0mq]C^U~> kOef\e+NYFr:U'qqt9sp]Cg[~> kPbG]e,K:Gr;Q]rqu6Tq]Dd<~> kO\`]e+ESGr:L!rqt0mq]C^U~> kOef\e+NVErUp0rqXjgo]Cg[~> kPbG]e,K7FrVlfsqYgHp]Dd<~> kO\`]e+EPFrUg*sqXaap]C^U~> kOef\e+NSDrq69sqXjgo]Cg[~> kPbG]e,K4Err2otqYgHp]Dd<~> kO\`]e+EMErq-3tqXaap]C^U~> kOef\e+NPCs7QBtZh8h~> kPbG]e,K1Ds8N#uZi5I~> kO\`]e+EJDs7H kOef\de3>?Zh8h~> kPbG]df/t@Zi5I~> kO\`]de*8@Zh/b~> kOef\de3>?Zh8h~> kPbG]df/t@Zi5I~> kO\`]de*8@Zh/b~> kOef\dIm2=[Io%~> kPbG]dJih>[Jk[~> kO\`]dId,>[Iet~> kOef\d.R&;\+P7~> kPbG]d/N\<\,Lm~> kO\`]d.Hu<\+G1~> kOef\ch6r:\Fk@~> kPbG]ci3S;\Gh!~> kO\`]ch-l;\Fb:~> kOef\c1U`8](LR~> kPbG]c2RA9])I3~> kO\`]c1LZ9](CL~> kOef\bOtQ7]Cg[~> kPbG]bPq28]Dd<~> kO\`]bOkK8]C^U~> kOef\b4YH6]_-d~> kPbG]b5V)7]`*E~> kO\`]b4PB7]_$^~> kOef\b4YH6]_-d~> kPbG]b5V)7]`*E~> kO\`]b4PB7]_$^~> kOef\b4Yc?s7Q0n^%Hm~> kPbG]b5VD@s8Mfo^&EN~> kO\`]b4P]@s7H*o^%?g~> kOef\b4Yc?rq6*n^%Hm~> kPbG]b5VD@rr2`o^&EN~> kO\`]b4P]@rq-$o^%?g~> kOef\e+E\Hq=XanrUp$n^%Hm~> kPbG]e,B=Iq>UBorVlZo^&EN~> kO\`]e+ kOef\e+E\Hq=Xanr:Tsn^%Hm~> kPbG]e,B=Iq>UBor;QTo^&EN~> kO\`]e+ kOef\e+N_HqXsjor:Tsn^%Hm~> kPbG]e,K@IqYpKpr;QTo^&EN~> kO\`]e+EYIqXjdpr:Kmo^%?g~> kOef\e+N_HqXsjor:Tsn^%Hm~> kPbG]e,K@IqYpKpr;QTo^&EN~> kO\`]e+EYIqXjdpr:Kmo^%?g~> kOef\e+N\Gqt9spr:U!o]_-d~> kPbG]e,K=Hqu6Tqr;QWp]`*E~> kO\`]e+EVHqt0mqr:Kpp]_$^~> kOef\e+N\Gqt9spr:U!o]_-d~> kPbG]e,K=Hqu6Tqr;QWp]`*E~> kO\`]e+EVHqt0mqr:Kpp]_$^~> kOef\e+NYFr:U'qrUp*p]Cg[~> kPbG]e,K:Gr;Q]rrVl`q]Dd<~> kO\`]e+ESGr:L!rrUg$q]C^U~> kOef\e+NSDrq69srUp*p]Cg[~> kPbG]e,K4Err2otrVl`q]Dd<~> kO\`]e+EMErq-3trUg$q]C^U~> kOef\e+NMB"SE$+p%A4g](LR~> kPbG]e,K.C"TAB$rr2fq])I3~> kO\`]e+EGC"S<$.o^r%g](CL~> kOef\e+N5:\Fk@~> kPbG]e,Jk;\Gh!~> kO\`]e+E/;\Fb:~> m.C>arUg-rrUg-rf_#4MrUopk[e5.~> m/?tbrVccsrVccsf_tjNrVlQl[f1d~> m.:8brU^'srU^'sf^o.NrUfjl[e,(~> m.C>arUg-rrq-6scLq2CZh8h~> m/?tbrVccsrr)ltcMmhDZi5I~> m.:8brU^'srq$0tcLh,DZh/b~> lh(5`rq-6srq-6scLq2CZh8h~> li$karr)ltrr)ltcMmhDZi5I~> lgt/arq$0trq$0tcLh,DZh/b~> lLb>ep%8U`oa&h8rs5t(J,~> lM^tfrr)osrW(4BrrBD)J,~> lLY8fo^iL_oErk8rsH+)J,~> l1G/boa(3rbk:uAZh8h~> l2CecrW)otbl7VBZi5I~> l1>)coEt3tbk1oBZh/b~> l1G,ao`tiHp&><(omd~> l2CbbrVurArr2u)rdX~> l1>&boEkrKo`#9)oRH~> kk4o\c1Uu?[.Sq~> kl1P]c2RV@[/PR~> kk+i]c1Lo@[.Jk~> kOef\bk:l>[.Sq~> kPbG]bl7M?[/PR~> kO\`]bk1f?[.Jk~> me-Pbrq66rs7Q?srq66rrq69srq66rrq66rs7Q?srq66rrq69srq66rs7Q9q[.Sq~> mf*1crr2lss8Mutrr2lsrr2otrr2lsrr2lss8Mutrr2lsrr2otrr2lss8Mor[/PR~> me$Jcrq-0ss7H9trq-0srq-3trq-0srq-0ss7H9trq-0srq-3trq-0ss7H3r[.Jk~> Z1\##[.Sq~> Z2XY$[/PR~> Z1Rr$[.Jk~> Z1\##[.Sq~> Z2XY$[/PR~> Z1Rr$[.Jk~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> YP%o$Zh8h~> YQ"P%Zi5I~> YOqi%Zh/b~> [IsP*rUp0rrUp0r\b1I~> [Jp1+rVlfsrVlfs\c.*~> [IjJ+rUg*srUg*s\b(C~> [IsM)rq69srq66r\b1I~> [Jp.*rr2otrr2ls\c.*~> [IjG*rq-3trq-0s\b(C~> [IsM)rq69srq66r\b1I~> [Jp.*rr2otrr2ls\c.*~> [IjG*rq-3trq-0s\b(C~> [.XD(s7QBts7Q?s\Fk@~> [/U%)s8N#us8Mut\Gh!~> [.O>)s7H [.XA'"8)p*p&,0+omd~> [/U"("9&9#rqui,rdX~> [.O;("7up-o_f-,oRH~> Zh=;'"8)p*p&56+omd~> Zi9q("9&9#rr)o,rdX~> Zh45("7up-o_o3,oRH~> ZM"#![e5.~> ZMsY"[f1d~> ZLmr"[e,(~> ZM"#![e5.~> ZMsY"[f1d~> ZLmr"[e,(~> Z1[u"[Io%~> Z2XV#[Jk[~> Z1Ro#[Iet~> Yk@r#[.Sq~> Yl=S$[/PR~> Yk7l$[.Jk~> Yk@r#[.Sq~> Yl=S$[/PR~> Yk7l$[.Jk~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> Jb@pnJ,~> Jc=R+J,~> Jb7jlJ,~> %%EndData showpage %%Trailer end %%EOF quesoglc-0.7.2/docs/mainpage.dox0000644000175000017500000015654410764574551013545 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: mainpage.dox 730 2008-02-10 12:24:33Z bcoconni $ */ /** \file mainpage.dox * General documentation : this file contains documentation used to introduce * the source documentation. It also serves for the web site. */ /** \mainpage QuesoGLC \section whatisglc What is GLC ? The OpenGL Character Renderer (GLC) is a state machine that provides OpenGL programs with character rendering services via an application programming interface (API). \image html screenshot.png "The glclogo example by Gerard Lanois rendered with QuesoGLC" \image latex screenshot.eps "The glclogo example by Gerard Lanois rendered with QuesoGLC" width=10cm The character rendering services provided by GLC has some significant advantages over platform specific interface such as GLX or WGL : -# The GLC API is platform independent. Since most nontrivial GL applications render characters, GLC is an important step toward the goal of truly portable GL applications. -# The GLC is simpler to use. Only two lines of GLC commands are required to prepare for rendering characters. -# GLC provides more ways to exploit the rendering power of OpenGL. For example, a glyph can be drawn as a bitmap, a set of lines, a set of triangles, or a textured rectangle. -# GLC provides better support for glyph transformations. For example, GLC supports rotated text, which is unavailable in GLX. -# GLC provides better support for the large coded character set defined by the standards ISO/IEC 10646:2003 and Unicode 4.0.1 GLC is a library that has been designed by SGI and that was only available on SGI workstations under IRIX 6.2 and later. The draft of the GLC specifications can be downloaded here. As far as I know, SGI dropped the development of GLC and the draft of its specifications has not evolved since late 1996. \section whatisqglc What is QuesoGLC ? QuesoGLC is a free (as in free speech) implementation of the OpenGL Character Renderer (GLC). QuesoGLC is based on the FreeType library, provides Unicode support and is designed to be easily ported to any platform that supports both FreeType and the OpenGL API. QuesoGLC is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. QuesoGLC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. Its development platform is Linux. \section requirements Requirements QuesoGLC is written in ANSI C and should compile with any C compiler that is compliant with ANSI C standards. QuesoGLC has been successfully compiled and used under Linux, Windows and Mac OSX. OpenGL, FreeType 2 and Fontconfig are the only external dependencies. So far, Fontconfig is mandatory in order to build and run the QuesoGLC library. However, it is expected that the Fontconfig dependency will be removed in the future for Windows and Mac OSX platforms. \section qusers QuesoGLC users QuesoGLC users are : -# Yogur an add-on to the OpenGL Character renderer. It provides additional GLC measurement metrics, convertion between string encodings and generic selection of font properties. -# GlGuiA a set of packages for Ada 2006 that can be used to create Graphical User Interfaces, relaying (almost) only on OpenGL. Hence should be rather platform-independant. -# NavIt a modular touch screen friendly car navigation system with GPS tracking, realtime routing engine and support for various vector map formats. There's a GTK+ and a SDL user interface and also a GL accelerated 3D view. -# The Warzone Resurrection Project which aims to make Warzone 2100 one of the top free software games available. Warzone 2100 was one of the first 3D RTS games ever. It was released commercially by Pumpkin Studios in 1999, and released in 2004 under the GPL. If you know other projects that use QuesoGLC please let me know. \n */ /** \page tutorial First Steps \section general General description GLC is a library that provides font services for OpenGL applications. When using GLC, there is no need for you to look for font directories, manage the font files, load and interpret glyphs data, tesselate polygons, antialias characters and issue GL commands to render text, since GLC takes care of that for you. Although GLC is very easy to use, there are a few steps to follow in order to be ready to render text in your OpenGL application. This tutorial will guide you through the basic commands of GLC and will expose you a few concepts that GLC relies on. \warning Since GLC uses OpenGL, a GL context must be bound to the current thread before any GLC command can be issued. This task must be done by the GLC client (i.e. the application that uses GLC). GLC does not verify if this has been done. If you try to issue GLC commands while no GL context is current, the result of the commands is undefined. \section setupcontext Setting up a GLC context Just like OpenGL, GLC relies on the concept of context. A context is an entity that stores the state machine of GLC, that is, an entity that stores the font that is currently used, the type of rendering, the string encoding and so on. \subsection ctxcreation Context creation Unlike OpenGL, the GLC context commands are machine independant. The commands to create, manage and bind a context to the current thread are the same for every platform that supports GLC. The first step to use GLC is to create a context which is simply done by the code below : \code GLint ctx; ctx = glcGenContext(); \endcode When glcGenContext() is executed, the variable \c ctx contains the ID of the context that has been created. This ID is unique and must be used each time a GLC command needs to identify a context. \subsection ctxbind Context binding You can create just as many contexts as you want, but one and only one context can be used at a given time. Therefore, you must tell GLC which context you plan to use, even if you have created only one context. This operation is said to "make a context current" or to "bind a context to the current thread". This is achieved by calling glcContext() : \code glcContext(ctx); \endcode At this stage, whenever a GLC command is issued, the context \c ctx will execute the command. You can change the current GLC context at any time by re-issuing a glcContext() command with a new context ID and if you want to release the current context without making a new context current, you just need to call \c glcContext(0); \note If your application is multi-threaded, you can bind a different context to each thread. However a context can only be bound to one thread at a time. \section fontdir Adding font directories GLC grabs font files from directories that are called "catalogs" in the GLC specifications. Depending on the implementation, a GLC context may or may not have default directories where to look for font files and may or may not provide some default fonts. QuesoGLC uses the Fontconfig library to automagically find the fonts that are available on your system. Moreover, the environment variable \c GLC_PATH can be used to set up some more default fonts. You may however want GLC to search for fonts in additional directories, especially if your application comes with its own fonts. This can be achieved with the command glcAppendCatalog() : \code // For many Unixes (included Linux), /usr/lib/X11/fonts/Type1/ is a standard // directory where X windows stores fonts in Adobe's Type1 format. glcAppendCatalog("/usr/lib/X11/fonts/Type1/"); \endcode You can call glcAppendCatalog() as much as needed, to add several directories to the catalog list of GLC. \note GLC internally manages a list of catalogs (that is, of directories) where it will look for directories that contains the font files. You can inspect this list with the command glcGetListc() as in the following code : \code GLint count, i; // Get the number of entries in the catalog list count = glcGeti(GLC_CATALOG_COUNT); // Print the path to the catalogs for (i = 0; i \< count; i++) printf("%s\n", glcGetListc(GLC_CATALOG_LIST, i)); \endcode \section choosefont Choosing a font Now, you may want to choose the font that will be used to render your text. In GLC, fonts are managed in a very similar way than contexts are : fonts are identified by a unique integer ID, and they need to be made current to the context before they are used. Hence, we need first to get an identifier which is not used by another font : \code GLint myFont; myFont = glcGenFontID(); \endcode The font ID \c myFont is unique and will be used thereafter to designate our font. Each font has a \e family name (e.g. Palatino, Courier, Helvetica, ...) and a state variable that select one of the \e faces (e.g. Regular, Italic, Bold, Bold Italic, ...) that the font contains. In our example, we want to use "Palatino Bold" to render the text. This is done with the following code : \code glcNewFontFromFamily(myFont, "Palatino"); // Select the family of my font glcFontFace(myFont, "Bold"); // Select the face of my font \endcode At this stage, a new font "Palatino Bold" which is identified by \c myFont has been created in the current GLC context. We now want GLC to use \c myFont to render the text : \code glcFont(myFont); \endcode \section rendertext Rendering the text We have now reached the final step : we are now able to render some text. First, we need to tell OpenGL (yes, OpenGL not GLC !!!) where the characters will be rendered. Indeed, when the glcRenderString() command will be executed, GLC will issue some GL commands but nothing will be displayed if we do not tell OpenGL where to render the string. By default, QuesoGLC renders fonts at a size of 1 point. If we want our text to be readable, we must scale it : \code // Render the text at a size of 100 points glcScale(100.f, 100.f); \endcode If we decide to render text in bitmap mode (which is the default render style of GLC), we need to give the raster position and (why not ?) the color of the text to OpenGL : \code glColor3f(1.f, 0.f, 0.f); glRasterPos2f(50.f, 50.f); \endcode Now, our text will be rendered at coordinates (50, 50) in red color. It is time now to render the famous "Hello world!" string : \code glcRenderString("Hello world!"); \endcode That's it ! With a few lines of code, GLC allows to render some text in an OpenGL window. \image html tutorial.png \image latex tutorial.eps "'Hello world!' example" width=10cm \n As a reminder, the complete code is given below : \code GLint ctx, myFont; // Set up and initialize GLC ctx = glcGenContext(); glcContext(ctx); glcAppendCatalog("/usr/lib/X11/fonts/Type1/"); // Create a font "Palatino Bold" myFont = glcGenFontID(); glcNewFontFromFamily(myFont, "Palatino"); glcFontFace(myFont, "Bold"); glcFont(myFont); // Render the text at a size of 100 points glcScale(100.f, 100.f); // Render "Hello world!" glColor3f(1.f, 0.f, 0.f); glRasterPos2f(50.f, 50.f); glcRenderString("Hello world!"); \endcode Most of the code above is executed once in a program : the GLC setup and the font creation are done at the beginning of the program, only the rendering part of the code (that is 3 lines !) may be located in the main loop of the application. \note If the rendering style of the text is not \b GLC_BITMAP, then you should use \c glTranslate() and \c glScale() instead of \c glRasterPos() and glcScale(). \section whatmore What more ? This is a basic tutorial which has shown you the basic steps to render some text with GLC. However, for the sake of clarity, no error has been checked in the example above. In GLC some functions returns a value and this value must be checked in order to verify that no error has occured. Nevertheless, the prefered way in GLC to check errors is to use glcGetError(). If you want to change the code above in order to fit it to your needs, the first place to look at is the reference documentation which is provided with QuesoGLC. GLC also provides a nice set of functions (all of them beginning with \c glcGet* ) to introspect a context and see, for instance, which fonts are available. The \ref measure have not been used in the example above but you may use them to get some basic metrics of a string in order to precisely locate it on the screen (see the \ref tutorial2 for instance). The \ref transform can be used with \b GLC_BITMAP rendering to obtain fancy effects (rotation and scaling) which are not available in GLX. Finally, you can have a look at the tests and examples of QuesoGLC to learn how to use some GLC commands and which are their effect. */ /** \page tutorial2 Measurement tutorial \section preamble Preamble In this tutorial we will see how to use the \ref measure of GLC and what they are intended for. It is assumed that you have a basic knowledge of the GLC API (the \ref tutorial tutorial is a good place to start with) and that you have read the \ref glyph so that you know what a bounding box and a baseline are. Basically, in order to display some text an application have to go through the following stages : -# The text layout determines where and how the text must be layed out : this task can be as simple as computing the location of the word "Score" so that it appears in the upper left corner of the screen or as complex as laying out a complete document with titles, fonts, styles, paragraphs and chapters; just like word processors do. -# The text rendering draws the text that has been layed out in the previous stage : the application determines which glyphs of which fonts it should use in order to obtain the desired result, eventually converts data into graphic primitives, and finally sends the required commands to the output device which can be either a screen or a printer. The GLC API only covers the later stage and provides no layout services : it has no concept of sentence, line break or paragraph. GLC only manipulates \e strings that it views as a succession of characters that has to be rendered on the screen in a row. So in order to be able to handle complex text layout the client application has to decompose text in several strings that can be rendered by GLC. This can be done by rendering engines like Pango or ICU. For instance, when a sentence is larger than the width of the output device, it has to be broken into two or more lines before being rendered so that it can be read. In order to determine where to put the line break(s), the layout engine needs to know the width of the output device as well as the size of the characters used to render the text (actually it also needs to understand the exact structure of the sentence to prevent the line break to take place in the middle of a word or between a word and a comma for example). This is where \ref measure take place. General layout management is far beyond the scope of this tutorial but you can find some more informations at the Unicode web site. Another application of the bounding boxes is the visibility test. For example, one can get the bouding box of a letter or a string, tranform it into the screen coordinates and test the result against the viewport. If the bounding box is located out of the viewport then there is no need to render the string. Such a test may help to speed up a program. \section baseelements Base elements In this tutorial we will see how to render the string Hello world! with a bounding box around the capital letter \e "H" and another bounding box around the 4 last letters of the word "Hello" as shown in the image below. \image html tutorial2.png "Figure 1 - The result of the tutorial" \image latex tutorial2.eps "The result of the tutorial" width=10cm The code presented in the \ref tutorial tutorial is the starting point of the current example. Notice however that it has been slightly changed : a call to the function glcRotate() has been added in order to rotate the text of 10 degrees counterclockwise. The call to glcAppendCatalog() has also been commented out : it is not needed if Fontconfig has been carefully installed (which is the case on most of the recent Linux distributions). \code GLint ctx, myFont; // Set up and initialize GLC ctx = glcGenContext(); glcContext(ctx); //glcAppendCatalog("/usr/lib/X11/fonts/Type1"); // Create a font "Palatino Bold" myFont = glcGenFontID(); glcNewFontFromFamily(myFont, "Palatino"); glcFontFace(myFont, "Bold"); glcFont(myFont); // Render the text at a size of 100 points glcScale(100.f, 100.f); glcRotate(10.f); // Rotate the text of 10 degrees counterclockwise // Render "Hello world!" glColor3f(1.f, 0.f, 0.f); glRasterPos2f(50.f, 50.f); glcRenderString("Hello world!"); \endcode \section hbbox Drawing the bounding box of a single letter GLC defines the geometry of a bounding box by the coordinates [ xlb ylb xrb yrb xrt yrt xlt ylt ] of its corners. Each point is given in 2D coordinates : \e z is always assumed to be \e 0 and \e w to be \e 1. They are object coordinates which means that they are affected by both the \b GL_MODELVIEW and the \b GL_PROJECTION transformations. Moreover if the value of the variable \b GLC_RENDER_STYLE is \b GLC_BITMAP then each point is transformed by the 2x2 \b GLC_BITMAP_MATRIX. \image html measure.png "Figure 2 - Metrics coordinates" \image latex measure.eps "Metrics coordinates" width=7cm Since there are 4 corners, we need to define an array of 8 floating point numbers which will contain the (x, y) coordinates of the bounding box. \code GLfloat bbox[8] = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f}; \endcode The bounding box of the letter \e "H" is stored in the \e bbox array by calling glcGetCharMetric() : \code glcGetCharMetric('H', GLC_BOUNDS, bbox); \endcode GLC assumes that the origin of the layout is \e (0,0) but in our example the string "Hello world!" has been rendered from the coordinates \e (50,50) so we need to translate the bounding box before it is rendered : \code // Translate the bbox to the origin of the layout glTranslatef(50.f, 50.f, 0.f); // Render the bounding box glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); \endcode \note We do not need to rotate the bounding box of 10 degrees since it has already been done by GLC. If we were using a \b GLC_RENDER_STYLE that were not \b GLC_BITMAP, we would need to add a call to glRotatef(0., 0., 1., 10.); \section ellobbox Drawing the bounding box of a string We now want to draw the bounding box of the 4 last letters of the word \e Hello. Although this can be achieved by computing the bounding box of the bounding boxes of each character, this would be rather tedious, so GLC provides a function that does the work for us : glcMeasureString(). Actually, glcMeasureString() is designed to measure the whole string metrics and can also store on demand the metrics of each character of the string. Here we only want the \e "ello" string metrics so we set the first parameter of glcMeasureString() to \b GL_FALSE : \code glcMeasureString(GL_FALSE, "ello"); \endcode At this stage, the metrics are computed and stored in the GLC state machine so we now have to call glcGetStringMetric() to get the bounding box of the string : \code glcGetStringMetric(GLC_BOUNDS, bbox); \endcode If we would render the bounding box now, it would be drawn at the wrong location since we do not have taken the advance of the character \e "H" into account : \image html tutorial2_wrong.png "Figure 3 - The bounding box of 'ello' is misplaced" \image latex tutorial2_wrong.eps "The bounding box of 'ello' is misplaced" width=10cm Hence we need first to translate the bounding box of the advance of the character \e "H". Since the advance of a character is equal to the length of its \e baseline, the translation must be equal to the vector \f$ \left ( \begin {array}{ll} x_r-x_l \\ y_r-y_l \\ \end{array} \right ) \f$ according to the notations of the Figure 2. \note It must be stressed that this formula assumes that the string is rendered in left-to-right order. If you intend to render strings in right-to-left order you must use the opposite of the vector defined above. An array of 4 floating point numbers must be used in order to store the coordinates [ xl yl xr yr ] of the baseline : \code GLfloat baseline[4] = {0.f, 0.f, 0.f, 0.f}; \endcode Then the baseline of \e "H" is obtained by calling glcGetCharMetric() with the second parameter set to \b GLC_BASELINE. The advance of the character is then computed and added to the \b GL_MODELVIEW matrix : \code // Get the baseline of the character "H" glcGetCharMetric('H', GLC_BASELINE, baseline); // Translate the bounding box of the advance of "H" glTranslatef(baseline[2] - baseline[0], baseline[3] - baseline[1], 0.f); \endcode Afterwards the bounding box of \e "ello" is rendered at the right place : \code // Render the bounding box glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); \endcode \section conclusion Conclusion In this tutorial, the basic concepts of character metrics available in GLC have been presented. Although the chosen example is somewhat artificial since there are few chances that you need to display the bounding boxes of a character or a string, it illustrates how the character metrics are handled by GLC and how they should be manipulated. Character metrics are primarily intended for layout management, although this topic is far beyond the scope of this tutorial, the concepts exposed here are sufficient to handle basic cases like processing the location of a centered string on the screen. Finally, a program that display the bounding boxes of a character and a string has been elaborated in this tutorial. Its listing is shown hereafter (the commands that bind a GL context to the current thread are not included) : \code GLint ctx, myFont, i; GLfloat bbox[8] = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f}; GLfloat baseline[4] = {0.f, 0.f, 0.f, 0.f}; // Set up and initialize GLC ctx = glcGenContext(); glcContext(ctx); //glcAppendCatalog("/usr/lib/X11/fonts/Type1"); // Create a font "Palatino Bold" myFont = glcGenFontID(); glcNewFontFromFamily(myFont, "Palatino"); glcFontFace(myFont, "Bold"); glcFont(myFont); // Render the text at a size of 100 points glcScale(100.f, 100.f); glcRotate(10.f); // Rotate the text of 10 degrees counterclockwise // Render "Hello world!" glColor3f(1.f, 0.f, 0.f); glRasterPos2f(50.f, 50.f); glcRenderString("Hello world!"); glColor3f(0.f, 1.f, 1.f); // Render the bounding box of "H" glcGetCharMetric('H', GLC_BOUNDS, bbox); // Translate the bbox to the origin of the layout glTranslatef(50.f, 50.f, 0.f); // Render the bounding box glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); // Translate the origin in order to take the width of "H" into account // Get the baseline of the character "H" glcGetCharMetric('H', GLC_BASELINE, baseline); // Translate the bounding box of the advance of "H" glTranslatef(baseline[2] - baseline[0], baseline[3] - baseline[1], 0.f); // Render the bounding box of "ello" glcMeasureString(GL_FALSE, "ello"); glcGetStringMetric(GLC_BOUNDS, bbox); // Render the bounding box glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); \endcode */ /** \page overview Documentation overview \section preamble Preamble The documentation of QuesoGLC is based on the GLC specs. Therefore, the principles, functions, and generally speaking the API described hereafter apply to every implementation of GLC. If you are new to GLC, may be you should begin with the \ref tutorial tutorial ? \section theoverview Overview A GLC \e client is a program that uses OpenGL (henceforth, "GL") and GLC. A GLC \e library is a subroutine library that implements GLC. Like the GL Utilities (GLU), GLC is implemented on the client side of the GL client-server connection and performs all of its rendering by issuing GL commands. A GLC \e context is an instantiation of GLC. When a client thread issues a GLC command, the thread's \e current GLC context executes the command. A client can render a character by issuing the command glcRenderChar(). GLC finds a \e font that \e maps the character code to a character such as LATIN CAPITAL LETTER A, then uses one or more glyphs from the font to create a graphical \e layout that represents the character. Finally, GLC issues a sequence of GL commands to draw the layout. Glyph coordinates are defined in \e em \e units and are transformed during rendering to produce the desired mapping of the glyph state into the GL window coordinate system. In addition to commands for rendering, the GLC API includes measurement commands that return certain \e metrics (e.g. bounding box) for a layout. Since the focus of GLC is on \e rendering and not \e modeling, the GLC API does not provide access to glyph shape data. A font is a stylistically consistent set of glyphs that can be used to render some set of characters. Each font has a \e family name (e.g. Palatino) and a state variable that selects one of the \e faces (e.g. Regular, Italic, Bold, Bold Italic) that the font contains. A \e typeface is the combination of a family and a face (e.g. Palatino Bold). A font is an instantiation of a \e master, which is a representation of the font that is stored outside of GLC in a standard format such as \e TrueType or \e Type1. A \e catalog is a named list of masters, which may be implemented as a file system directory containing master files. A list of catalog names defines the list of masters that can be instantiated in a GLC context. Before issuing a GLC rendering command a client must issue GL commands directly to establish a GL state such that the GL commands issued by GLC produce the desired result. For example, before issuing a glcRenderChar() command a client may issue \c glColor() and \c glRasterPos() commands to establish the color and origin of the resulting layout. */ /**\page glyph Glyph Conventions \section preamble Preamble This document discusses in great details the definition of various concepts related to digital typography, as well as the core conventions used within QuesoGLC library to manage font and glyph data. It also explains the ways typographic information, like glyph metrics, kerning distances, etc.. is to be managed and used. It relates to the layout and display of text strings, either in a conventional (i.e. Roman) layout, or with right-to-left or vertical ones. Some aspects like rotation and transformation are explained too. It is a \e must-read for all developers who need to understand digital typography, especially if you want to use the QuesoGLC library in your projects. This document is largely inspired of the FreeType documentation which has been slightly modified in order to give valuable informations to QuesoGLC users. For instance, parts dealing with outline and bitmap management has been removed since this does not concern the GLC library. The original document FreeType Glyph Conventions is copyright 1998-2000 David Turner and copyright 2000 The FreeType Development Team. \section basic Basic Typographic Concepts \subsection format Font files, format and information A font is a collection of various character images that can be used to display or print text. The images in a single font share some common properties, including look, style, serifs, etc. Typographically speaking, one has to distinguish between a font family and its multiple font faces, which usually differ in style though come from the same template. For example, "Palatino Regular" and "Palatino Italic" are two distinct \e faces from the same famous \e family, called "Palatino" itself. The single term \e font is nearly always used in ambiguous ways to refer to either a given family or given face, depending on the context. For example, most users of word-processors use "font" to describe a font family (e.g. "Courier", "Palatino", etc.); however most of these families are implemented through several data files depending on the file format: for TrueType, this is usually one per face (i.e. \c arial.ttf for "Arial Regular", \c ariali.ttf for "Arial Italic", etc.). The file is also called a "font" but really contains a font face. A digital font is thus a data file that may contain one or more font faces. For each of these, it contains character images, character metrics, as well as other kind of information important to the layout of text and the processing of specific character encodings. In some awkward formats, like Adobe's Type 1, a single font face is described through several files (i.e. one contains the character images, another one the character metrics). We will ignore this implementation issue in most parts of this document and consider digital fonts as single files, though QuesoGLC is able to support multiple-files fonts correctly. As a convenience, a font file containing more than one face is called a font collection. This case is rather rare but can be seen in many Asian fonts, which contain images for two or more representation forms of a given scripts (usually for horizontal and vertical layout). \subsection character Character images and mappings The character images are called \e glyphs. A single character can have several distinct images, i.e. several glyphs, depending on script, usage or context. Several characters can also take a single glyph (good examples are Roman ligatures like "fi" and "fl" which can be represented by a single glyph). The relationships between characters and glyphs can be very complex, but won't be discussed in this document. Moreover, some formats use more or less awkward schemes to store and access glyphs. For the sake of clarity, we only retain the following notions when working with QuesoGLC : - A font file contains a set of glyphs; each one can be stored as a bitmap, a vector representation or any other scheme (most scalable formats use a combination of mathematical representation and control data/programs). These glyphs can be stored in any order in the font file, and is typically accessed through a simple glyph index. - The font file contains one or more tables, called a \e character \e map (or charmap in short), which is used to convert character codes for a given encoding (e.g. ASCII, Unicode, DBCS, Big5, etc..) into glyph indices relative to the font file. A single font face may contain several charmaps. For example, most TrueType fonts contain an Apple-specific charmap as well as a Unicode charmap, which makes them usable on both Mac and Windows platforms. \subsection metrics Character and font metrics Each glyph image is associated with various metrics which are used to describe how must be placed and managed when rendering text. These are described in more details in \ref glyphmetrics, they relate to glyph placement, cursor advances as well as text layout. They are extremely important to compute the flow of text when rendering a string of text. Each scalable format also contains some global metrics, expressed in notional units, to describe some properties of all glyphs in the same face. Examples for global metrics are the maximum glyph bounding box, the ascender, descender and text height for the font. Though these metrics also exist for non-scalable formats, they only apply for a set of given character dimensions and resolutions, and are usually expressed in pixels then. \section outlines Glyph outlines This section describes the way scalable representations of glyph images, called \e outlines, are used by QuesoGLC as well as client applications. \subsection resolution Pixels, points and device resolutions Though it is a very common assumption when dealing with computer graphics programs, the physical dimensions of a given pixel (be it for screens or printers) are not squared. Often, the output device, be it a screen or printer, exhibits varying resolutions in both horizontal and vertical direction, and this must be taken care of when rendering text. It is thus common to define a device's characteristics through two numbers expressed in dpi (dots per inch). For example, a printer with a resolution of 300x600 dpi has 300 pixels per inch in the horizontal direction, and 600 in the vertical one. The resolution of a typical computer monitor varies with its size (15" and 17" monitors don't have the same pixel sizes at 640x480), and of course the graphics mode resolution. As a consequence, the size of text is usually given in \e points, rather than device-specific pixels. Points are a simple \e physical unit, where 1 point = 1/72th of an inch, in digital typography. As an example, most Roman books are printed with a body text whose size is somewhere between 10 and 14 points. It is thus possible to compute the size of text in pixels from the size in points with the following formula:
pixel_size = point_size * resolution / 72
The resolution is expressed in \e dpi. Since horizontal and vertical resolutions may differ, a single point size usually defines a different text width and height in pixels. Unlike what is often thought, the "size of text in pixels" is not directly related to the real dimensions of characters when they are displayed or printed. The relationship between these two concepts is a bit more complex and relate to some design choices made by the font designer. This is described in more detail in the next sub-section (see the explanations on the EM square). \subsection vectorial Vectorial representation The source format of outlines is a collection of closed paths called \e contours. Each contour delimits an outer or inner \e region of the glyph, and can be made of either line segments or Bezier arcs. The arcs are defined through control points, and can be either second-order (these are \e conic Beziers) or third-order (\e cubic Beziers) polynomials, depending on the font format. Note that conic Beziers are usually called \e quadratic Beziers in the literature. Hence, each point of the outline has an associated flag indicating its type (normal or control point). And scaling the points will scale the whole outline. Each glyph's original outline points are located on a grid of indivisible units. The points are usually stored in a font file as 16-bit integer grid coordinates, with the grid origin's being at (0,0); they thus range from -16384 to 16383. (Even though point coordinates can be floats in other formats such as Type 1, we will restrict our analysis to integer values for simplicity). The grid is always oriented like the traditional mathematical two-dimensional plane, i.e., the X axis from the left to the right, and the Y axis from bottom to top. In creating the glyph outlines, a type designer uses an imaginary square called the EM square. Typically, the EM square can be thought of as a tablet on which the characters are drawn. The square's size, i.e., the number of grid units on its sides, is very important for two reasons: - It is the reference used to scale the outlines to a given text dimension. For example, a size of 12pt at 300x300 dpi corresponds to 12*300/72 = 50 pixels. This is the size the EM square would appear on the output device if it was rendered directly. In other words, scaling from grid units to pixels uses the formula:
pixel_size = point_size * resolution / 72
pixel_coord = grid_coord * pixel_size / EM_size
- The greater the EM size is, the larger resolution the designer can use when digitizing outlines. For example, in the extreme example of an EM size of 4 units, there are only 25 point positions available within the EM square which is clearly not enough. Typical TrueType fonts use an EM size of 2048 units; Type 1 PostScript fonts have a fixed EM size of 1000 grid units but point coordinates can be expressed as floating values. Note that glyphs can freely extend beyond the EM square if the font designer wants so. The EM is used as a convenience, and is a valuable convenience from traditional typography. Grid units are very often called font units or EM units. As said before, pixel_size computed in the above formula does not relate directly to the size of characters on the screen. It simply is the size of the EM square if it was to be displayed. Each font designer is free to place its glyphs as it pleases him within the square. This explains why the letters of the following text have not the same height, even though they are displayed at the same point size with distinct fonts: \image html body_comparison.png \image latex body_comparison.eps "Body comparison" width=9cm As one can see, the glyphs of the Courier family are smaller than those of Times New Roman, which themselves are slightly smaller than those of Arial, even though everything is displayed or printed at a size of 16 points. This only reflects design choices. \subsection hinting Hinting and Bitmap rendering The outline as stored in a font file is called the "master" outline, as its points coordinates are expressed in font units. Before it can be converted into a bitmap, it must be scaled to a given size/resolution. This is done through a very simple transformation, but always creates undesirable artifacts, e.g. stems of different widths or heights in letters like "E" or "H". As a consequence, proper glyph rendering needs the scaled points to be aligned along the target device pixel grid, through an operation called grid-fitting (often called \e hinting). One of its main purposes is to ensure that important widths and heights are respected throughout the whole font (for example, it is very often desirable that the "I" and the "T" have their central vertical line of the same pixel width), as well as to manage features like stems and overshoots, which can cause problems at small pixel sizes. \section glyphmetrics Glyph metrics \subsection basline_pens_layouts Baseline, pens and layouts The baseline is an imaginary line that is used to "guide" glyphs when rendering text. It can be horizontal (e.g. Roman, Cyrillic, Arabic, etc.) or vertical (e.g. Chinese, Japanese, Korean, etc). Moreover, to render text, a virtual point, located on the baseline, called the pen position or \e origin, is used to locate glyphs. Each layout uses a different convention for glyph placement: - With horizontal layout, glyphs simply "rest" on the baseline. Text is rendered by incrementing the pen position, either to the right or to the left.\n\n The distance between two successive pen positions is glyph-specific and is called the advance width. Note that its value is \e always positive, even for right-to-left oriented alphabets, like Arabic. This introduces some differences in the way text is rendered.\n\n The pen position is always placed on the baseline. \image html Image1.png \image latex Image1.eps "Glyph positioning" width=9cm - With a vertical layout, glyphs are centered around the baseline: \image html Image2.png \image latex Image2.eps "Vertical layout" width=3cm \subsection typographic Typographic metrics and bounding boxes A various number of face metrics are defined for all glyphs in a given font. - \e Ascent \n\n The distance from the baseline to the highest/upper grid coordinate used to place an outline point. It is a positive value, due to the grid's orientation with the Y axis upwards. - \e Descent \n\n The distance from the baseline to the lowest grid coordinate used to place an outline point. This is a negative value, due to the grid's orientation. - \e Linegap \n\n The distance that must be placed between two lines of text. The baseline-to-baseline distance should be computed as: \n\n
ascent - descent + linegap
\n if you use the typographic values. Other, simpler metrics are: - The glyph's bounding box, also called \e bbox \n\n This is an imaginary box that encloses all glyphs from the font, usually as tightly as possible. It is represented by four fields, namely \p xMin, \p yMin, \p xMax, and \p yMax, that can be computed for any outline. Their values can be in font units (if measured in the original outline) or in fractional/integer pixel units (when measured on scaled outlines).\n\n Note that if it wasn't for grid-fitting, you wouldn't need to know a box's complete values, but only its dimensions to know how big is a glyph outline/bitmap. However, correct rendering of hinted glyphs needs the preservation of important grid alignment on each glyph translation/placement on the baseline. - Internal leading \n\n This concept comes directly from the world of traditional typography. It represents the amount of space within the \e leading which is reserved for glyph features that lay outside of the EM square (like accentuation). It usually can be computed as: \n\n
internal leading = ascent - descent - EM_size
- External leading \n\n This is another name for the line gap. \subsection bearings Bearings and advances Each glyph has also distances called \e bearings and \e advances. Their definition is constant, but their values depend on the layout, as the same glyph can be used to render text either horizontally or vertically: - Left side bearing or \e bearingX \n\n The horizontal distance from the current pen position to the glyph's left bbox edge. It is positive for horizontal layouts, and in most cases negative for vertical ones. - Top side bearing or \e bearingY \n\n The vertical distance from the baseline to the top of the glyph's bbox. It is usually positive for horizontal layouts, and negative for vertical ones. - Advance width or \e advanceX \n\n The horizontal distance the pen position must be incremented (for left-to-right writing) or decremented (for right-to-left writing) by after each glyph is rendered when processing text. It is always positive for horizontal layouts, and null for vertical ones. - Advance height or \e advanceY \n\n The vertical distance the pen position must be decremented by after each glyph is rendered. It is always null for horizontal layouts, and positive for vertical layouts. - Glyph width \n\n The glyph's horizontal extent. For unscaled font coordinates, it is bbox.xMax-bbox.xMin. For scaled glyphs, its computation requests specific care, described in the grid-fitting chapter below. - Glyph height \n\n The glyph's vertical extent. For unscaled font coordinates, it is bbox.yMax-bbox.yMin. For scaled glyphs, its computation requests specific care, described in the grid-fitting chapter below. - Right side bearing \n\n Only used for horizontal layouts to describe the distance from the bbox's right edge to the advance width. It is in most cases a non-negative number: \n\n
advance_width - left_side_bearing - (xMax-xMin)
Here is a picture giving all the details for horizontal metrics: \image html Image3.png \image latex Image3.eps "Horizontal metrics" width=7cm And here is another one for the vertical metrics: \image html Image4.png \image latex Image4.eps "Vertical metrics" width=5cm \subsection gridfitting_effect The effects of grid-fitting Because hinting aligns the glyph's control points to the pixel grid, this process slightly modifies the dimensions of character images in ways that differ from simple scaling. For example, the image of the lowercase "m" letter sometimes fits a square in the master grid. However, to make it readable at small pixel sizes, hinting tends to enlarge its scaled outline in order to keep its three legs distinctly visible, resulting in a larger character bitmap. The glyph metrics are also influenced by the grid-fitting process: - The image's width and height are altered. Even if this is only by one pixel, it can make a big difference at small pixel sizes. - The image's bounding box is modified, thus modifying the bearings. - The advances must be updated. For example, the advance width must be incremented if the hinted bitmap is larger than the scaled one, to reflect the augmented glyph width. This has some implications: - Because of hinting, simply scaling the font ascent or descent might not give correct results. A possible solution is to keep the ceiling of the scaled ascent, and floor of the scaled descent. - There is no easy way to get the hinted glyph and advance widths of a range of glyphs, as hinting works differently on each outline. The only solution is to hint each glyph separately and record the returned values. Some formats, like TrueType, even include a table of pre-computed values for a small set of common character pixel sizes. - Hinting depends on the final character width and height in pixels, which means that it is highly resolution-dependent. This property makes correct WYSIWYG layouts difficult to implement. Performing 2D transformations on glyph outlines is very easy with FreeType. However, when using translation on a hinted outlines, one should aways take care of exclusively using integer pixel distances. Otherwise, the translation will simply ruin the hinter's work, resulting in a very low quality bitmaps! \subsection text_width_bbox Text widths and bounding box As seen before, the "origin" of a given glyph corresponds to the position of the pen on the baseline. It is not necessarily located on one of the glyph's bounding box corners, unlike many typical bitmapped font formats. In some cases, the origin can be out of the bounding box, in others, it can be within it, depending on the shape of the given glyph. Likewise, the glyph's "advance width" is the increment to apply to the pen position during layout, and is not related to the glyph's "width", which really is the glyph's bounding width. The same conventions apply to strings of text. This means that: - The bounding box of a given string of text doesn't necessarily contain the text cursor, nor is the latter located on one of its corners. - The string's advance width isn't related to its bounding box dimensions. Especially if it contains beginning and terminal spaces or tabs. - Finally, additional processing like kerning creates strings of text whose dimensions are not directly related to the simple juxtaposition of individual glyph metrics. For example, the advance width of "VA" isn't the sum of the advances of "V" and "A" taken separately. */ /**\page machinedef Machine definition \section datatypes Data types GLC uses GL data types and defines additional types, which are listed in the table below :
GLC data types
Type Definition
GLCchar Character code array element
GLCenum 32 bits enumerant
GLCfunc Callback function pointer
\section errors Errors Like OpenGL, GLC detects only a subset of those conditions that could be considered errors. This is because in many cases error checking would adversely impact the performance of an error-free program. The command glcGetError() is used to obtain error information. Each client thread has a private GLC error code variable of type \b GLCenum. The initial value of this variable is \b GLC_NONE. If a GLC command raises an error, and the value of this variable is \b GLC_NONE, the command stores the error's code in the variable. Hence, after an error has been detected, no new error code is recorded until glcGetError() is called. If a GLC command raises an error, the command will have no effect except the possible storing of the error's code. If the generating command returns a value, it returns zero. If the generating command modifies values through a pointer argument, no change is made to these values. GLC error semantics apply only to GLC errors and not to GL errors or system errors (e.g. memory access errors) that occur during GLC command execution. If GL errors occur during the execution of a GLC command, they are left unchanged to the user. GLC errors and GL errors are orthogonal, that is no GLC error depends on the occurence of a GL error. Especially, the GL_OUT_OF_MEMORY error may occur during the execution of a GLC command while no GLC_RESOURCE_ERROR may be raised. Every GLC command execution begins with a test to determine if the command parameters are valid. If this test fails, the command raises \b GLC_PARAMETER_ERROR. Otherwise, GLC performs a test to determine if its state is such that the command is valid. If this test fails, the command raises \b GLC_STATE_ERROR. Otherwise, command execution proceeds. If at any point during command execution a needed resource (e.g. memory) is unavailable, the command raises \b GLC_RESOURCE_ERROR. Finally, if memory is exhausted during the execution of a command, QuesoGLC tries to recover from such a critical error, but the result is undefined. \section contexts Contexts A GLC \e context is an instantiation of GLC. When a client thread issues a GLC command, the thread's \e current GLC context executes the command. Each GLC context has a nonzero ID of type \b GLint. When a client is linked with a GLC library, the library maintains a list of IDs that contains one entry for each of the client's GLC contexts. This list is initially empty. Each client thread has a private GLC context ID variable that always contains either the value zero, indicating that the thread has no current GLC context, or the ID of the thread's current GLC context. The initial value of this variable is zero. When the ID of a GLC context is stored in the GLC context ID variable of a client thread, the context is said to be current to the thread. It is not possible for a GLC context to be current simultaneously to multiple threads. With the exception of the per-thread GLC error code and context ID variables, all of the GLC state variables that are used during execution of a GLC command are stored in the issuing thread's current GLC context. Each GLC command belongs to one of the following categories : Global, Context, Master, Font, Transformation, Rendering and Measurement. Global commands do not use GLC context state variables and can therefore be executed successfully if the issuing thread has no current GLC context. All other GLC commands raise \b GLC_STATE_ERROR if the issuing thread has no current GLC context. This document identifies explicitly the situations in which GLC may issue GL commands. In some GL implementations, the execution behavior of a GL command is defined only if the GL client has previously created a GL context and made it current to the issuing thread. It is the responsability of the GLC client to set up the underlying GL implementation such that whenever GLC issues a GL command, the execution behavior of that command is defined. The behavior of GLC depends on the extension set and version of the underlying GL implementation. When a GLC context is made current to a thread, GLC issues the commands \code glGetString(GL_VERSION); glGetString(GL_EXTENSIONS); \endcode and stores the returned strings. \section charcodes Character codes Except where otherwise specified, every character code in GLC is an element of the Unicode Character Database (UCD) defined by the standards Unicode 4.0.1 and ISO/IEC 10646:2003. A Unicode code point is denoted as U+hexcode, where \e hexcode is a sequence of hexadecimal digits. Each Unicode code point corresponds to a character that has a unique name string. For example, the code U+41 corresponds to the character LATIN CAPITAL LETTER A. \section strings Strings Except where otherwise specified, every character string used in the GLC API is represented as a zero terminated array of Unicode code point values. The type of these values is declared statically as \b GLCchar, but the actual type of these values is determined dynamically by the value of the variable \b GLC_STRING_TYPE. The values \b GLC_UCS1, \b GLC_UCS2, \b GLC_UCS4 and \b GLC_UTF8 specify how GLC should interpret the character codes and that each value is of type \b GLubyte, \b GLushort, \b GLuint, or \b GLushort, respectively. The initial value of \b GLC_STRING_TYPE is \b GLC_UCS1. Some GLC commands return strings. The return value of these commands is a pointer to a string return buffer in the issuing thread's current GLC context. This pointer is valid until the next GLC command is issued. The pointer may be used as a parameter to the next GLC command. The client must copy the returned string to a client provided buffer if the value of the string will be needed after the next GLC command is issued. The value of a character code in a returned string may exceed the range of the character encoding selected by \b GLC_STRING_TYPE. In this case, the returned character is converted to a character sequence \e \\\, where \ is the character REVERSE SOLIDUS (U+5C), < is the character LESS-THAN SIGN (U+3C), > is the character GREATER-THAN SIGN (U+3E), and \e hexcode is the original character code represented as a sequence of hexadecimal digits. The sequence has no leading zeros, and alphabetic digits are in upper case. \section constants Constants GLC defines a set of implementation specific constants. The integer constants \b GLC_VERSION_MAJOR and \b GLC_VERSION_MINOR identify the version of GLC that the implementation supports. These constants correspond to a version A.B of the GLC specification. If a new version breaks compatibility, the major version number \e A will be incremented by one. Otherwise, the minor version number \e B will be incremented by one. The string constant \b GLC_VENDOR identifies the vendor of the implementation. The string constant \b GLC_EXTENSIONS lists in alphabetical order the names of the GLC extensions that are supported by the implementation. One space (U+20) separates each pair of adjacent names. Example: "GLC_EXT_kern GLC_SGI_ligature". The string constant \b GLC_RELEASE identifies the vendor specific software release that contains the implementation. */ quesoglc-0.7.2/docs/screenshot.png0000644000175000017500000001743210766745704014125 00000000000000‰PNG  IHDR–ð‘ÞebKGDÿÿÿ ½§“ pHYs  ÒÝ~ütIMEÕ780ɧIDATxœí-x#G¶†ßÜgA_”¾( JEE‹F‹FA-/ŠÅ‹b¶JÅ‚V‹FAÑ";hd ÙAV5È$3™Õ%ÍÈšV«»ªº«eŸWÏ÷Ø3V×_KuºþÎùP‚ BNþËwA„íD ˆ ‚`„AÁ1 ‚ ‚b@A#Ä€‚ FˆAŒ"‚ !DA0B ˆ ‚`„AÁ1 ‚ ‚b@A#Ä€‚ FˆAŒ"‚ !DA0âO¾ ¾im >jóß® ð+p œ–^:A¨. !m…Hì_óÎXdáø¹/’ lb@„Gø=Ò0¥üÃIia{"<Bàgôt• Î/€Gé ¶!DØz ܲ~j)NÈ7]•…Sà/ŽÓ„mA ˆ°•4ÑFãñüg¼œÿ¾JD1ÆcÁ·ÀAAi B•"lÚ8´/ÑÓQIü7z$² ^Ëv ü/z·– <$dï6 W|kè}¥×Üí%ï!!w F”ñº6p´ôï=Š5 oϰSp>‚P5dREš@=?±~»Ð9w(l±Q xwãñüw~D ÐMw1O{•×èõ’ñüï à‰až >FÛvAxH(QTC£¸D½f(zót|×%§† ¦ ”]¬¤»ú÷+P» ‚„rD Î,òÞ­@[ŠD%Ë{¶BtÇ?ÃÌp$’ƒyº¾ë–QG¸1 Õ@5þÿ€dñ¬Ô¥a¾Ò‰î›Ä–OÚÀð Éó,&À?KÌçJæØqzmôaÁe¾öÙ<ËwƒÞUeBâvz B‘5_ÄÀw%äów`PB>ÔÐþbý ‰^þÌ0½_Ðë(‹Zߣ›;çÀçyoAs ‚S¼ƒœ:¸™®Êúz^:çTˆÝzÄBCÃüwKÎO$ÚFɤô\Æ8áomàwSVYù7Ú{àQ®,®¿þŒÙÎ(Ó¼¯Ñ»±á! k .‰Ðs%èÓk«F¢Îfãñø½€²}Íû çøÅõßc¾­öøÍàºÅŸ;„ª Ä‹QÅz]#BOÀ¯ž,Û#ÙxüŽž<ÿ”w=ÐèÇç_–ó[×»m~K"7ÀÐ2oÓÅ}WÎï#-ûü ›ñ>¶•ª¡Ø'ýÜÆ«•÷¯nÕ¡è¢6äÕF1MÉ'Ïë’­Ú‚‘-bæ ï–A¾ ÔqÚ­jêtPgg(¥PQä¿<"gò^€íRÅ!ÙÏmÔç×Å+ÿ?›§•5ßîŒH¯í˜C#Ì:ò–e¾6ÆkÓy“‡&¥Þi8ô_‘3y/@õ¢Gäï¬ûó4ÎWþ× Mƒü“^3¶êÄú>f$v÷±aÞ­ ´[•´l@”B5þË$r"郞Z(†ØŸ¢;ëåבE™úeY~mÑ(¤Y'~ê ï=ü*ÐnUÒª9²ùˆª$猪{˜6Ö½†K¿_a÷ôâf*k†"ª@{gÔfyh™oÝ0ßó ´Y•´j@dr?$»°V¹E»©;LóéÒï?bç²ÕÆ×Æ2ùg{ä¥áu-Ë|ǘݮÏY³ä¡Ñj%ÿ—Y ¡ä a1Ÿ¹EoÕuáóûxd™Æ-ð?l…ø]à_×¹8?9äî3@Vþ†ýVâm'àäškü²ýùÏp~^n™6ѣǗ|É5×ÜrËÞ¼ý}ñsÂäí¿o毇ˆ$jh‡F´S¤å€6•¿âî@}XÑ–-éå"´ȼŒÑÑmèÏ ®ÛÂÃÿNi6áÙ³õÆà—_ Ó)¯LY1â1s_·l\^óú­qY¼’ Ð6#$ tpmS#bâÕ/ct¸>þÃÖ„Òcæ`ñSìÂÍšº5™Ìó¾ÏDÑ]=z¤ †¿'_|£QaEÌM-Z|Â'„%LD. ÉòˆgÙÈ TÚÐx_ˆÙ*Ù8BŒ+T–åE}ßmšQ}Ì´]zæU Ý\)ŠôÀ8F¢®®’ÇóêäÄÝÖ) P;ì¨!C5c梺¹Õ¤é½ÖikF ÿ„uôábÚþf.ÐO|·”VÔÔ×·‹ù”U.±Bñ:¾kÅé =ÆäÅÅ «v'–—̯ÝFÂPO/=}ª§¡²Ž(L¨Ú($‰ˆˆCi”ìèS>};-VE¼[±U5чÀ ^‘ çÔ!z£ˆ2î`þÄßt\–=‹²,^[r&$Ìù9XèÊAÞü·Ñ½{«… PÓiyÙU…,+"r:™1S=zªEKEDóÏy¨""© x¯wм@ Ú z˜‡MÓ ¬‹…[zêÇä5pÜ~!öápýÞÿ<:5ü Ø>HŸ=ßm–Eµšžšº¼,Ïh¬ªÕòßYÔ§ï¤Ê&ªAÃ{}läm +@oHê`¿¹)7è£=°Ûxw€>/’—[tÀ—»þLçWüÛs/c¶Ãú[ô-³a{sà/è]×U$ Û…~X?Eõæ L&0k]/ÍGÑ»Ÿ|n2µ;g4ÒSYUg‡~ægëtþÆßnÃÈ ”j±P]P¸iäÑ =â©™Ö%Âü‰ßÄVš\øÈòðôb¢–áý9È;6Ì{¿í–¤FõêUòãñtŠê÷QÍœS®A€j·õhf<¾Ÿ£-ëÑÇ)§ÞëáHåd”Õp\£§)FsM6¼ßV Cbäòâ³Îú¢€6–eñÚçŠ>=ä¶ ?c£ ´Û6 P½j6{¿gQ;;ú=.òª×óMùoŸÍŸ{²Ï¾÷z8R±l2Sôby›õxˆ^Ä4õŒšEgÌ“Wi1}ߢ, í8ÒÏ0·|zÈÝv÷îNrg>›i£âÊp$igu~¾¹wítü·Sš\*oÍͩ⯣;f• +ô.©¼Oþuôy“/ò&MAíä­§ébºë˜«ï±ñé!÷È0ï¶ç6 ½³*©7›LòOUÙ¨ÓI7$U…´i[Ð{=©˜„»¬ïäûØ?‘…˜ïÈÙ¤gyÊr€Y‡]DLŽ‘aYï_m|zÈÝ5̻籽‚õâErOÖï;êHÓþ~ò4šRÕ…téZ)Sïup(· è))• z*Êe~kò²ÕGG6Oþ{Žo¦©1Sl•kwØ>÷îžÚ)Íxû3oÛ³Ž:=}¿lU…ì²ke@ÆŒ½×Á¡Ü%Ö`ý9ŽÅ ãÛè駤|m”ÙˆaÖi»^L·qm²EqÒAÐ3¹§¹§(dj¼ê%·Q­_¼žLüe%FÚyB>—¨˜ØÊ€Œy¯ƒC¹I¨Íú)«"ÇB <›Ž»å°"Ã2ÌŠ½7E¨kx?ûòæ}Rbû¤«+ýwß÷pU‹ÑÈùyµ§°zô¬ È¡÷:8”}"iÆCQ^xÏÆ†r˜ê$KþUYLŸ”aTÎýq©šá½¼t·é:ˆB0ã³G•f<”Ò»¡|ß¿mÖ€•0ð^W²ŽHØF;¸ Öüý5å¾;G;¯sM‹ uø·aâOÑÞ!]aœgä0ÿ’¸F ÏK„ý¡û±Åµ_£ý_^¢]Ä+ì£&.pxøî„ø*¯_Ãёà  5Ë/l•]³çÅÊ€l2 ã2•ðnü½€t¿cÃÝÆåj×âÚUL ȱÃüKÄ´Ø-Ë|'–×/E/46 u6[ü¸²?îϤøìºFû 7ÁÆ•-7˜ 02¼®e™oJ€½\Ü ƒTÚŒh–étà›oÖÿýöúÛê[¾BD–ñü$^n<~¡„ØkØÃþIq•°Ÿö†aÂîCóŽ®b+b¢'a:ù’ÍŸÝ4l"°þü:ËÇèÛ>°HoAÁóçéïyùò®#DÁ·Ûú…[Cî…“¬®$ZžxZË™W©Û1/ñ»˜>Ì‘g‡KÖÈðšnçsæ3A/œw°?ƒ²NA ãilZ½cÿ÷ë>Èf]¡T‹–÷:8T¾ ºdÿò½Û$‹Š8hx’–§O*ÛÎ<@1Í‘_a¤BÑ\u µBòŠ ïáYÎ|è˜2›Ò¢Ï¨ìR^8Ûýýl=W·[Nyî³BBk²í1@V”ýÍ5²¢ªJ €b‚T5×åis2=¶¬o+G^ÎF¡‚Ž‚XÁ¡‚‹ Mw9ßžÒÆÅ.ÿ–Å=|N¶QAÚ–ázD¾Ÿö™(PA=rà6¸J¯º""k²ˆãqœ#í;j(x•Òc};J(ºJOSå16WÊd42ΞA&•å9ÁV;;ùz®‡0©×µÛúÙ utT@›³ce<&L¼·‘cm~SÞч¢zÌc9¬Sª‡Õ=Ì ˆB;ZÜäL®C¾]_FÆ#Pp ÖOUws6m7sùL]š,k†ÞÍ£×1|OKeÕÙY¾Þ«Ì˜e«VÓ®éW26nó±uåþ È€ü_JNë\«aPMZ;UC/TÛ¾f(^ wwuç?äß.›´Y àEJõÇó÷dI«›³i[™Ò5ÝewŽŽÑ‘ ³Êj·ó÷^÷q½VKÏ[T„EñÄûžÒßbæ pà¿b‰rw/-?ÓÅt—¯)›G2‰ÚdÝG–ùM ®©QíñìvQæ(¤hñÌþ~qi‡ÙæÖò†7ŽJRþTt­¢3°äø—ƒt2=Wœ¿Ÿdð n·Ž½%ÀýÓ}„žØ —~¯ÍõæÓeuì¶ ¾þú¦4étôVÜÆÊóÉí-¼| £ÜÜèmÉ_9Ú²þõ×Ðë³­×րܷ髉DZ¸;hWuçuç–õ›äÉÏædz!‡Àòú§RJ‡¤•Žÿ1P:ªà…ÊvÑFw>DE‘Å)¶é7©œ£‘ö"&øgk4²ôu¨p=«¢rêýóS€’ÿÐÂÝ7?ö_ÉTõ,ë—+|o€vthòêQÿ®«Ûl©‰‚s¥O¹ôìÏË×VÚЙE,¼oZçH0¯Ž‹-ç`ðÎpd1V­–›z)UŒ[q垨ä?D¸ëR/U@Ëú òæÙÇÌ€L1Œ&˜¦®«Û¼¢©ÒFáTiÿW¥G-»JûÛj)í®½æýþo›NOÝu´®.-+Šò§oâ¦>IEŒBÄo¢ÖÿQ9TÃE×*´¬[î¨uÌ ˆB•rZÿ¼Ñ•Ò±@Jb¥PGi½‘ÊdJd¢Å“½ ‡þ볬ZÍÝËõ(ÄÖ€ôé{o_×JÝ…õ:í9)í@µ7èµmSÆ&˜îþ§áuk1]Ðî{@ŒÞËv„>r?Áþ ¡Æ¹Ã}OŸB¹KÏ–ëkø÷¿Ý¤ÇnÒY`{ð¾má… Ûx]îwyBµ7aN,®5j'Ó0u ÞÒ›…€ŽÇ kç~bIÇuGkKëÝY¶|õ•[ãh» ëÆÊ‡\5I5 §3*Õ/ Ãë~ÇЀ 1÷Iø°Æb@|qêò‹‰îhW·Úúäæ~üÑMZ=SB ˆyŸT2rœ™óÙ‡L ¯3>šaãS¾Žž9r‚é㬅OqÁŠ›øÃÔ9çž=s›ž-½ž›QÈ“'îŒã‡|huýƒ3 §¸Í®SÝ“é¦Ý¨ÕÙ>›§£¢—!¬1­y…Y ®¶ZÕp²¸Àå(Ä•¬û6©S§E‹ˆÈªn©«ìCÜîÆ:®ÀÎ$5 ê’ëüÇ:0ß‘¥Ð¡l“¶öÖÐ;¶†kþþVá­¼ô~ϲj5w;±º¼ô_¯e…¡ýáÂÉ$ùàbîö¦fÝÄ‘÷6]( PW\½-Û{¦i¥¿a·DªW WU7¨Ç¾‹¼w°3 ÅŠC1:fú«•¿ïl*ǹ᭔3>5º7"ûûþ뵬86¯Ëlæ.„oDt¯ ÈwÊV§nšVúP3ÜApU­œu˜¡ÏXç  @¯Š#ÍMå82¼•±÷ûöÕn»7 Ó©›'vW²…t:îÊÑ¢eݼ¾Ûr¡:u5cö¶\×\§µÑ¯ëøá ½“—ìMÚ9ßcØõ-·À/.Zâ5ð-ð)zËïÆ];¦Ûz¾2¼NpÁñ±{§aÿrá]Ô¦k!ßGGîÊa ¤Jë1ñúŒ,·Km´2îG!¹Oo¬Sfуyþ³•ôΕL]e“Ë`S¾H ^¼H.Ë`à~§Uš’¦òh¿ðuÂdí°³¶LŽv†å¿¨†û©¬)ŽæåÔ¦h„Ç8Þ²»ÐÏ£u ”ÞYe{K¯”Ž™ÞRéCéü¡Ò#˜Õtdê*Âpý» íî–SZ-ÙxÌfåo1vq ÝÁTQnµiß90¸*GÓjfšøŽÚ¤“’8u™RžÂŒèT§hUÞFëÔr|kg NVôB%ŒUu+ÐÛ¥¢Èáa±§Õ»ÝäõœÓS?[‹Óžâ³ÊÂ×”‘bâTã¡Pj‡yYÜhÜ‘ç%6r?¥Î nº®o­â ´Ãv*ŠŠ[TWJïŠrO½^Gœ$ç×ë•;eµ¬!Cë&+k $ È¼å¸æÆ—]i°©ž—ÐÐqJþºñX¨ëúÖæP\úo·bˆRzáÞ¶cCÔÁAr,ôñÕjùkCÛè •± «AC½âU¦òŒ»Ê×>‘cŠ1"E¬‰h7*IyÎУ*_ÖjªëúÖnÐLáfh-B‘¬§¸Muu¥·úÖjùÊÖlêÅð$Ã1›¹1N& U‡Ž“‘ÇBW\©ÐhcÉfꀃSVËêÓw•¿›J¸vu¢Ð»½\‘Ô«5y©¦›ùj¨©Ì]äÑX‰¯+÷ CÝQiD:9Ñ»­WhÃEzŠjwW—åâb}Ãayk ªGO ¨CÕ+^åêˆóèŒ3WÓF PMšªO_M™æ.KÇ;w7£‹ûÝYWèRV_ ô”Õº² )«lŠÕû[l]h¦´;Ùª[¤Ö-NWEççzTRj›8š¢Ê£NT—®ªSWAŽÏ|ºÚaGÅĉ>­òÈÕhèƒù/Îh‡@ä2Qt|ö<š#tÔ×o 1`ãïèÐâ½>?"`x‚½Sþkà'tlßkË´„,4ðü¹»8á.øã88€án]ÆÐÎ@LÌw|Wn¦+ÜpØ1·kˆ‡„Ô©[»”_ð;¿Óp’Ú¹ÝY]'ŒŽàý+Ú œ£crܺk«ÍyÞÍ5iˆápÅ:àH ø(Ãûß cœÏŽ`Í—F(–nö÷á³Ïü•áåKèõÜÆíÈKHø6&xÑüñwñÿ˯øÈYGî‹ù‘=öœ¤UˆYÐAwÔŸ•ANþ@?;‹á(‚=þlðn¼7™ÿ¼A eTNG’GÊÉïæ~úI6NMã˜U€ˆˆ€à­Ñ©Í_‹ß— Rò!aâÊ4ºÏÆ-·|ÌÇÎ"$–b@”iH~C4†¼{a3ͦV«¥×J>ù$ßõ¯_Ãù¹6£‘þ]°#i”³ld£žå×'¼ã~ã7šk'÷óSªYmôÌùcÜÄG¿^¢ Æ12Y"®ˆ"mHj5-бÓoæ±××ú÷ñXÇh¿qóp+8by”sà 縳è^ È* ´1i£Ãù>äýÝS¯Ñ#Šeç’Ï­ ByT€l"@R&žË!‚ ¼c+ ˆ ‚P=þËwA„íD ˆ ‚`„AÁ1 ‚ ‚b@A#Ä€‚ FˆAŒ"‚ !DA0B ˆ ‚`„AÁ1 ‚ ‚b@A#Ä€‚ FˆAŒ"‚ !DA0B ˆ ‚`„AÁ1 ‚ ‚b@A#Ä€‚ FˆAŒ"‚ !DA0B ˆ ‚`„AÁ1 ‚ ‚b@A#Ä€‚ FˆAŒøPpý‘:d0™IEND®B`‚quesoglc-0.7.2/docs/Image1.eps0000644000175000017500000011105710764574551013052 00000000000000%!PS-Adobe-3.0 EPSF-3.0 %%Creator: GIMP PostScript file plugin V 1,17 by Peter Kirchgessner %%Title: Image1.eps %%CreationDate: Sat Sep 2 19:53:26 2006 %%DocumentData: Clean7Bit %%LanguageLevel: 2 %%Pages: 1 %%BoundingBox: 14 14 473 194 %%EndComments %%BeginProlog % Use own dictionary to avoid conflicts 10 dict begin %%EndProlog %%Page: 1 1 % Translate for offset 14.173228346456694 14.173228346456694 translate % Translate to begin of first scanline 0 178.99753808066569 translate 457.99370078740156 -178.99753808066569 scale % Image geometry 458 179 8 % Transformation matrix [ 458 0 0 179 0 0 ] % Strings to hold RGB-samples per scanline /rstr 458 string def /gstr 458 string def /bstr 458 string def {currentfile /ASCII85Decode filter /RunLengthDecode filter rstr readstring pop} {currentfile /ASCII85Decode filter /RunLengthDecode filter gstr readstring pop} {currentfile /ASCII85Decode filter /RunLengthDecode filter bstr readstring pop} true 3 %%BeginData: 36392 ASCII Bytes colorimage Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> h":XQl1G#^JbAR+!!qo`!!qKT!!p@4!!q-J!!rAm!!q]Z!!qi^!!r,fJ,~> h#79Rl2CY_Jc>3=!!)?a!!(pU!!'e5!!(RK!!)fn!!)-[!!)9_!!)QgJ,~> h"1RRl1=r_Jb8L)!"/&a!".WU!"-L5!".9K!"/Mn!".i[!".u_!"/8gJ,~> kk4fYrq63qlh15_f(B"Kp%8:jkk+o]`qB<:mIgGaiq<6Uqt0ppdIdJFq=X^mkOef\o^r4jp&56o p&,0[p&,0^p&56eomd~> kl1GZrr2irli-k`f)>XLp&4pkkl(P^`r>r;mJd(bir8lVqu-QqdJa+Gq>U?nkPbG]o_njkrr)op rqui\rqui_rr)ofrdX~> kk+`Zrq--rlh(/`f(8qLp%/4kkk"i^`q96;mI^Abiq30Vqt'jqdI[DGq=OXnkO\`]o^i.ko_o3p o_f-\o_f-_o_o3foRH~> lh15_rUp-qrUg-rkk+o]f(B"KrUp0rqt0ppkk+o]b4Yc?rUg-rlh(5`i:R'UqXjgodIdJFrUp0r rUg-rkOef\o^r1irq-6sq=O^njn/TZkk+o]nb%D~> li-k`rVlcrrVccskl(P^f)>XLrVlfsqu-Qqkl(P^b5VD@rVccsli$kai;N]VqYgHpdJa+GrVlfs rVccskPbG]o_ngjrr)ltq>L?ojo,5[kl(P^nc"%~> lh(/`rUg'rrU^'skk"i^f(8qLrUg*sqt'jqkk"i^b4P]@rU^'slgt/ai:I!VqXaapdI[DGrUg*s rU^'skO\`]o^i+jrq$0tq=FXojn&N[kk"i^naq>~> m.C>aq=O^nr:L$qkk+o]dIdJFW:^,rr:L$qlh(5`i:R'U`:X*9r:L$qeb&nJq=O^njn/TZkk+o] nb%D~> m/?tbq>L?or;HZrkl(P^dJa+GW;Zbsr;HZrli$kai;N]V`;T`:r;HZrec#OKq>L?ojo,5[kl(P^ nc"%~> m.:8bq=FXor:Bsrkk"i^dI[DGW:U&sr:Bsrlgt/ai:I!V`:O$:r:BsrearhKq=FXojn&N[kk"i^ naq>~> mI^Gbq"4Umr:L$ql1G#^d.IAEW:^,rrUg-rlLb,_i:R'U`:X*9rUg-reF`eIq=O^njn/TZl1G#^ nF_;~> mJ[(cq#16nr;HZrl2CY_d/F"FW;ZbsrVccslM^b`i;N]V`;T`:rVccseG]FJq>L?ojo,5[l2CY_ nG[q~> mIUAcq"+Onr:Bsrl1=r_d.@;FW:U&srU^'slLY&`i:I!V`:O$:rU^'seFW_Jq=FXojn&N[l1=r_ nFV5~> mI^Gbo(;tgl1G#^d.IAEW:^,rrUg-rlh(5`ht6sT`:X*9rUg-reb&nJq"4Umjn/TZl1G#^nF_;~> mJ[(co)8Uhl2CY_d/F"FW;ZbsrVccsli$kahu3TU`;T`:rVccsec#OKq#16njo,5[l2CY_nG[q~> mIUAco(2nhl1=r_d.@;FW:U&srU^'slgt/aht-mU`:O$:rU^'searhKq"+Onjn&N[l1=r_nFV5~> me$Pcnaukfrq69sr:U'qs7QBts7Q?srq-6srUp0rq=Xans7Q?sr:U$pr:U!orUp0rrq60prq69s r:U$prq66rrUp0rrUp0rs7Q?srUp0rrUp*pp%A:irq66rrUp0rq=XXks7H?trUp0rr:U$pq=Odp p%A:ir:U!orUp*pr:U$prUg-rr:U'qs7Q?srUp0rr:U$pp%A7hrq69ss7QBtrq69srq60ps7H?t rUp0rq=X[ls7QBtrq69srUp*prUp0rrq- mf!1dnbrLgrr2otr;Q]rs8N#us8Mutrr)ltrVlfsq>UBos8Mutr;QZqr;QWprVlfsrr2fqrr2ot r;QZqrr2lsrVlfsrVlfss8MutrVlfsrVl`qp&=pjrr2lsrVlfsq>U9ls8DuurVlfsr;QZqq>LEq rr2lsr;QWprVl`qr;QZqrVccsr;Q]rs8MutrVlfsr;QZqp&=mirr2ots8N#urr2otrr2fqs8Duu rVlfsq>U mdpJdnalegrq-3tr:L!rs7H me$Pcnb!%kp%8U`#lO?&#k\H/oa(3rp%8Uio`b]po`tir#lF;p#R9r-oa(6`#lXE!#kdir#laJs #laJs#laJu#k\K$o`,9ro`>El#lXE,#kdir#k\Jroa(6`#RL)/rq-^+oa(3rp%8U`o`tir#laJs #laMr#l+''#kdir#k\Jroa(6`#RL)/p[nLlrUg@#p%8Rroa(Qirs8Yt!!rDnrWrPs!!rSsrs8Yt !!rPr!!rSs!!rSsrs8Yt!!rPr!!rPr%1)V4oa(6`#kdir#k\K&p&> mf!1dnbr[lrr)os!;ug'!<)rurW)otrr)osrWWB%rVurt!;lcq!!`E&rW)rs!<)m"!<2rt!<2rt !<2rt!<2s!!<)urrVursrW3*!!<)m-!<2rt!<)utrW)rs!!)uurr*?,rW)otrr)osrVurt!<2rt !<2us!;QO(!<2rt!<)utrW)rs!!)uup\k-mrVd!$rr)ltrW)rsrrE)u!!)iorW)ut!!*#trrE)u !!)us!!*#t!!*#trrE)u!!)us!!)us%06A-rW)rs!<2rt!<)utrr2uurVurlrW<0"rW)or!!)us "T\Q$!<)urrVursrWWB%rVurt!;cZs!<2rtrVcs#rr)os!<2rt!<2rt!<2s!!<)utrr)otrVurs rVursrr2uurVurorVurtrr)orrWN<$rW)otr;I$'rVurt!<)utrW)rs"p"Z%!!)uupATR~> mdpJdnaltlo^iL_$N0N'$M4Z4oEt3to^iLioEGZpoEkrt$N'Jq$3p,0oEt6_$N9T"$MTooEt3tr:C='oEkrt$M4\toEtTi"q("p$4?D4p@Nk~> me$Pco(;tgr:L$qr:L$qrq66rrq-6srq66rrq-6sq=X^mrq-6srq-6srUg6up%8Uho`,9qo`,9r o`,9oo`,9so`,9ro`,9so`GKmoa(Qi!!rMq!!rSs!snSm#laK!#kdirr:L$qq"4UmrUg-rrq-@! p%8Uio`,9mo`,9qp&56ro`GKmoa(Nh!!rDnrs8Vs!!rSs!!rSs!!rSs!!rPr!snSm#lXDr#laJs #l=2o#laK!#kdirrq-@!p%8Uho`,9io`,9qo`,9ro`,9ro`,9ro`,9qp&56ro`,9mo`,9qo`,9r o`GKmoa(Nh!!rMq!!rSsrs8Vs!!rSs!!rPr!!rPr!!rGo!!rMq!!rPr!!rMq!!rMq!!rSsrWrMr !!rSsrWrMr!!r;kJ,~> mf!1do)8Uhr;HZrr;HZrrr2lsrr)ltrr2lsrr)ltq>U?nrr)ltrr)ltrVcm!rr)orrVurrrVurs rVurprVurtrVursrVurtrW<0"rW)rs!!)rr!!*#t!s&?"!<2s"!<2rtr;HZrq#16nrVccsrr*!" rr)osrVurnrVurrrr)osrW<0"rW)or!!)iorrE&t!!*#t!!*#t!!*#t!!)us!s&?"!<)ls!<2rt !;cZp!<2s"!<2rtrr*!"rr)orrVurjrVurrrVursrVursrVursrVurrrr)osrVurnrVurrrVurs rW<0"rW)or!!)rr!!*#trrE&t!!*#t!!)us!!)us!!)lp!!)rr!!)us!!)rr!!)rr!!*#trW)rs !!*#trW)rs!!)`lJ,~> mdpJdo(2nhr:Bsrr:Bsrrq-0srq$0trq-0srq$0tq=OXnrq$0trq$0trU^1!o^iLhoDf6roDf6s oDf6poDf6toDf6soDf6toE,HmoEtTi!"/Yr!"/_t!t+\m$NBZ"$M me$Pcq=XXks7H?tr:L$qr:L$qrq69srUg:!p%8RrrUg-rq"=XmrUg6up%8Ugo`PQno`tj!o`,9q o`,9po`,9so`,9qo`,9so`>El#laJs#lO>q#lXDt#k\K&o`,9so`,9qo`,9no`,9qo`,9so`>El #laJs#l!ul#lXGr#lXDu#kdirrq69sq"4UmrUg-rrq-6srq-6srq69sr:L$qrq69srUg-rqt0pp rUg3toa(Qi!snSm#laMs#kR]h#lXGr#lXDr#laJs#lO>q#lXGr#lXDr#l!ul#lO>q#laJs#laMs #l4,n#lXDr#lXDr#laJs#laJs#laMs#l4,n#lO>q#lXDr#lO>q#lO>q#laMs#lXE!#kdir#lXDr #kdk@~> mf!1dq>U9ls8Duur;HZrr;HZrrr2otrVcp"rr)ltrVccsq#:9nrVcm!rr)oqrWE6#rVurorVurr rVurqrVurtrVurrrVurtrW3*!!<2rt!;ufr!<)lu!<)utrVurtrVurrrVurorVurrrVurtrW3*! !<2rt!;HHm!<)os!<)m!!<2rtrr2otq#16nrVccsrr)ltrr)ltrr2otr;HZrrr2otrVccsqu-Qq rVciurW)rs!s&?"!<2ut!;$0i!<)os!<)ls!<2rt!;ufr!<)os!<)ls!;HHm!;ufr!<2rt!<2ut !;ZTo!<)ls!<)ls!<2rt!<2rt!<2ut!;ZTo!;ufr!<)ls!;ufr!;ufr!<2ut!<)m"!<2rt!<)ls !;6>A~> mdpJdq=ORls7?9ur:Bsrr:Bsrrq-3trU^4"o^iItrU^'sq"4RnrU^1!o^iLgoE5NnoEks$oDf6r oDf6qoDf6toDf6roDf6toE#Bl$NBYt$N0Mr$N9Su$M4])oDf6toDf6roDf6ooDf6roDf6toE#Bl $NBYt$MX/m$N9Vs$N9T!$M me$Pcp[nLlrUg-rr:L$qrUp0rrq-6sr:L0up%8RrrUg-rq"4Umr:L-tp%8Ugo`,9sp&,0oo`,9q o`,9po`,9so`,9qo`,9sp&>Elp&,0jo`,9qo`GKmoa(Qirs8Srro!!rSs!!rMq!!rSs!!rSs r mf!1dp\k-mrVccsr;HZrrVlfsrr)ltr;Hg!rr)ltrVccsq#16nr;Hcurr)oqrVurtrquiprVurr rVurqrVurtrVurrrVurtrr2usrVurrrVursrr2usrVurtrVurrrVurorVurrrVurtrr2usrVurm rVursrr2usrW3*!rquikrVurrrW<0"rW)rsrrE#sr;clsr;c`o!!)oq!!)usrrE#s!W`6!r;cEf !!)rr!!)us!!)us!!)rr!!)usrrE#s!!)fn!!)rr!!)us!!)usr;ccp!!*#t!!)rr!!*#t!!*#t r;cTk!!)rr!!)us!!)rr!!)usrrE&t!!)rr"9AH#!!)us!!)]kJ,~> mdpJdp[eFmrU^'sr:BsrrUg*srq$0tr:C+!o^iItrU^'sq"+Onr:C'uo^iLgoDf6to_f-poDf6r oDf6qoDf6toDf6roDf6to`#9soDf6roDf6so`#9soDf6toDf6roDf6ooDf6roDf6to`#9soDf6m oDf6so`#9soE#Blo_f-koDf6roE,HmoEtTirsJ_sr me-Scq"4UmrUg-rr:L$qrq69srUg-rrUg-rrq-6sr:L$qq"4UmrUg-rrq-6srUg-rq=O^nrUg-r r:L$qqt0pprq-6srUg-rrUg-rr:L$qr:L$qrUg-rr:L$qrq69srq-6sq"4UmrUg-rrUg-rr:L$q p[nLlrUg-rr:L-tp%8U_o`,9ro`,9so`,9so`,9mo`>El#l+&m#lF8p#lXDr#lO>t#kdirn+?Yd rUp0rrUg-rrUg-rr:L$qrUg-rr:L$qq"4Umr:L$qrUg-rq=O^nrUg-rrq-6srUg-rrUg-rrq-6s o_&4irq-6sr:L$qr:L$qrq69srUg-rrUg-rrq-6sr:L$qp% mf*4dq#16nrVccsr;HZrrr2otrVccsrVccsrr)ltr;HZrq#16nrVccsrr)ltrVccsq>L?orVccs r;HZrqu-Qqrr)ltrVccsrVccsr;HZrr;HZrrVccsr;HZrrr2otrr)ltq#16nrVccsrVccsr;HZr p\k-mrVccsr;Hcurr)oirVursrVurtrVurtrVurnrW3*!!;QNn!;l`q!<)ls!;ufu!<2rtn,<:e rVlfsrVccsrVccsr;HZrrVccsr;HZrq#16nr;HZrrVccsq>L?orVccsrr)ltrVccsrVccsrr)lt o`"jjrr)ltr;HZrr;HZrrr2otrVccsrVccsrr)ltr;HZrp&9I~> me$Mdq"+OnrU^'sr:Bsrrq-3trU^'srU^'srq$0tr:Bsrq"+OnrU^'srq$0trU^'sq=FXorU^'s r:Bsrqt'jqrq$0trU^'srU^'sr:Bsrr:BsrrU^'sr:Bsrrq-3trq$0tq"+OnrU^'srU^'sr:Bsr p[eFmrU^'sr:C'uo^iL_oDf6soDf6toDf6toDf6noE#Bl$Ma5n$N'Gq$N9Ss$N0Mu$M mI^Gbq"4UmrUg-rr:L4!p%8U`#lXDr#lXDr#laJs#lO>q#l+&m#lXDr#laJs#lXDu#kdirr:L$q rUg-rrUg-rqXjgorq-6srUg-rrUg-rr:L$qr:L$qrUg-rr:L$qrUp*pp[nLlrUg-rrUg-rr:L$q q"4Umr:L$qr:L-tp%8U_o`,9ro`,9so`PQno`tj&o`,9qo`>El#l+&m#lF8p#lXDr#lO>t#kdir n+?Ydrq-q#lXDr#laJs#lXDr #lXDr#laJs#kR`f#lF8p#lO?!#kdiroa(Nh!!rPr!!rSs!!rMq!!r8jJ,~> mJ[(cq#16nrVccsr;Hj"rr)os!<)ls!<)ls!<2rt!;ufr!;QNn!<)ls!<2rt!<)m!!<2rtr;HZr rVccsrVccsqYgHprr)ltrVccsrVccsr;HZrr;HZrrVccsr;HZrrVl`qp\k-mrVccsrVccsr;HZr q#16nr;HZrr;Hcurr)oirVursrVurtrWE6#rVurtrVurrrW3*!!;QNn!;l`q!<)ls!;ufu!<2rt n,<:err)s!rW)rs!!)rr!!)us!!)rr!!)rr!!)fn!!)us!!)rr!s&?"!;ufr!<)ls!<2rt!<)ls !<)ls!<2rt!;$3g!;l`q!;ug"!<2rtrW)or!!)us!!*#t!!)rr!!)]kJ,~> mIUAcq"+OnrU^'sr:C."o^iL_$N9Ss$N9Ss$NBYt$N0Mr$Ma5n$N9Ss$NBYt$N9T!$M m.LAaqXjgorq-6sqt1*uoa(6`#laJs#lXDr#laJs#lO>t#kdirqt0pprUg-rrUp0rs7H?trq-6s rUg-rrUg-rr:L-tp%8Uio`,9rp&>t#kdirrq-6sp%A=j s7H?trUg-rr:L-tp%8Ueo`YWooa(3rr:L0up%8Rrrq69sq=O^nrq-6srUgF%oa(3roa(3rrUg6u p%8Uip&>t#kdirqXjgorq-6sr:L$qrq-6srUg-rrUg-rrUg-rrq-6srUg-rrUg-rrq69sp[nLlqXjgo qt1*uoa(6`#laJs#lXDr#laJs#lO>t#kdirp[s%~> m/I"bqYgHprr)ltqu-a!rW)rs!<2rt!<)ls!<2rt!;ufu!<2rtqu-QqrVccsrVlfss8Duurr)lt rVccsrVccsr;Hcurr)osrVursrr2uurVursrVurrrWWB%rW)rs!<)ls!;ufu!<2rtrr)ltp&=sk s8DuurVccsr;Hcurr)oorWN<$rW)otr;Hg!rr)ltrr2otq>L?orr)ltrVd'&rW)otrW)otrVcm! rr)osrr2utrVurqrVursrVurrrWE6#rVurtrr2utrr2uorVurtrWN<$!<2rtr;HZrr;Hj"rr)os !;ufu!<2rtqYgHprr)ltr;HZrrr)ltrVccsrVccsrVccsrr)ltrVccsrVccsrr2otp\k-mqYgHp qu-a!rW)rs!<2rt!<)ls!<2rt!;ufu!<2rtp\o[~> m.C;bqXaaprq$0tqt(%!oEt6_$NBYt$N9Ss$NBYt$N0Mu$MTooEt3tr:C+!o^iItrq-3tq=FXorq$0trU^@&oEt3toEt3trU^1! o^iLio`#9toDf6qoDf6soDf6roE5NnoEks)o`#9to`#9ooDf6toE>To$M lh1&ZrUp-qrUp0rs7H?trUp'orUg-rr:U$pqXsalqt9porUp'or:U$prq66rrUp-qrq66rr:L$q r:U$prq66rs7H?tr:U$prUp0rp%A:ir:L$qr:U$pq=X^ms7H?tr:U$ps7Q?sp@\Cjr:U'qs7QBt s7Q9qrUp-qr:U$prUp-qs7H?tr:U$ps7Q?sr:L$qp\"Lkrq69sqt9porq66rs7H?tr:U$pq"=Ul qt9po!;66qr:U$prq66rr:U$prq66rp%A=jqt9porUp0rs7H?trUp'orUg-rr:U$pp@Wq~> li-\[rVlcrrVlfss8DuurVl]prVccsr;QZqqYpBmqu6QprVl]pr;QZqrr2lsrVlcrrr2lsr;HZr r;QZqrr2lss8Duur;QZqrVlfsp&=pjr;HZrr;QZqq>U?ns8Duur;QZqs8MutpAY$kr;Q]rs8N#u s8MorrVlcrr;QZqrVlcrs8Duur;QZqs8Mutr;HZrp\t-lrr2otqu6Qprr2lss8Duur;QZqq#:6m qu6Qp!<2lrr;QZqrr2lsr;QZqrr2lsp&=skqu6QprVlfss8DuurVl]prVccsr;QZqpATR~> lh'u[rUg'rrUg*ss7?9urUg!prU^'sr:KsqqXj[mqt0jprUg!pr:Ksqrq-0srUg'rrq-0sr:Bsr r:Ksqrq-0ss7?9ur:KsqrUg*sp%84jr:Bsrr:Ksqq=OXns7?9ur:Ksqs7H9tp@S=kr:L!rs7H eF`eIrUg-rl1G#^Y4_`!Jb9*;#RHXer eG]FJrVccsl2CY_Y5\A"Jc5`M!!&5^r;cBe!!)us!!)-[J,~> eFW_JrU^'sl1=r_Y4VZ"Jb0$9$4 eF`eIrUg-rl1G#^YOql$rUg-rJb9!KPP"n]rUg-ro(;tgrUg-rjn4-~> eG]FJrVccsl2CY_YPnM%rVccsJc5WLPPtO^rVccso)8UhrVccsjo0c~> eFW_JrU^'sl1=r_YOhf%rU^'sJb/pLPOnh^rU^'so(2nhrU^'sjn+'~> eb&nJr:L$ql1G#^Yk7u%qt0ppKCo3MPP"n]qt0ppo^r1ir:L$qjn4-~> ec#OKr;HZrl2CY_Yl4V&qu-QqKDkiNPPtO^qu-Qqo_ngjr;HZrjo0c~> earhKr:Bsrl1=r_Yk.o&qt'jqKCf-NPOnh^qt'jqo^i+jr:Bsrjn+'~> g@YFOrUg-rr:L$ql1G#^Yk7u%qt0ppJb>9#!!rJp!!rDn!!rPr!!rMq!!q]ZJ,~> gAV'PrVccsr;HZrl2CY_Yl4V&qu-QqJc:o5!!)oq!!)io!!)us!!)rr!!)-[J,~> g@P@PrU^'sr:Bsrl1=r_Yk.o&qt'jqJb53!!"/Vq!"/Po!"/\s!"/Yr!".i[J,~> g@bIOs7H?tr:L$ql1G#^YP%o$rUg-rJb>6"rs8Sr!!rAmrs8Yt!!rMq!!qZYJ,~> gA_*Ps8Duur;HZrl2CY_YQ"P%rVccsJc:l4rrE#s!!)fnrrE)u!!)rr!!)*ZJ,~> g@YCPs7?9ur:Bsrl1=r_YOqi%rU^'sJb5/ursJ_s!"/MnrsJeu!"/Yr!".fZJ,~> g%G=Mqt0ppl1G#^Y4_\uJb>/ur!<#hrWrDo!!qZYJ,~> g&CsNqu-Qql2CY_Y5\>!Jc:f2quHHirW)ip!!)*ZJ,~> g%>7Nqt'jql1=r_Y4VW!Jb5)sr!N/irX/Pp!".fZJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb?,;rs7r`rs5q'rs8Al!!n2LJ,~> Jc;bMrrDBarrBA(rrDfm!!%WMJ,~> Jb6&9rsJ)arsH((rsJMm!"+>MJ,~> JbAR+!!r/g!!pmCrs7r`rs64/!!rGors8DmrWn,KJ,~> Jc>3=!!)Th!!(=DrrDBarrBY0!!)lprrDinrW%QLJ,~> Jb8L)!"/;h!".$DrsJ)arsH@0!"/SprsJPnrX+8LJ,~> JbAR+!!r/g!!pjB!!ql_!!p1/!!rDn!!rMqrs8Sr!!n2LJ,~> Jc>3=!!)Th!!(:C!!)<`!!'V0!!)io!!)rrrrE#s!!%WMJ,~> Jb8L)!"/;h!".!C!"/#`!"-=0!"/Po!"/YrrsJ_s!"+>MJ,~> Jb?,;!!ql_!!ok&!!rMq!!rMq!!n2LJ,~> Jc;bM!!)<`!!';'!!)rr!!)rr!!%WMJ,~> Jb6&9!"/#`!"-"'!"/Yr!"/Yr!"+>MJ,~> Jb?,;!!ql_!!ok&!!rMq!!rPr!!n/KJ,~> Jc;bM!!)<`!!';'!!)rr!!)us!!%TLJ,~> Jb6&9!"/#`!"-"'!"/Yr!"/\s!"+;LJ,~> Jb?,;!!ql_!!ok&!!rMq!!rPr!!n/KJ,~> Jc;bM!!)<`!!';'!!)rr!!)us!!%TLJ,~> Jb6&9!"/#`!"-"'!"/Yr!"/\s!"+;LJ,~> KD#3LrUp0rs7QBtrq69srUp*pqt9sps7Q?srUp0rrUp*pp\"Ijs7Q?srUp0rr:U!op@\@ir:U!o rUp*ps7QBtrUp*ps7Q?srUp0rqt9porUp-qqXsdmrq69ss7QBtrq69sr:U!orUp'os7H?trUp0r rUp*pO7e#~> KDtiMrVlfss8N#urr2otrVl`qqu6Tqs8MutrVlfsrVl`qp\t*ks8MutrVlfsr;QWppAY!jr;QWp rVl`qs8N#urVl`qs8MutrVlfsqu6QprVlcrqYpEnrr2ots8N#urr2otr;QWprVl]ps8DuurVlfs rVl`qO8aY~> KCo-MrUg*ss7H K_5ZXp%8Rrp%8U`#ke0&s7HF!oa(Qi!!rSsrWrMr%1)V4oa(6`#kdir#k\K&o`,9so`,9np&> K`2;Yrr)ltrr)os!<2rts8E'"rW)rs!!*#trW)rs%06A-rW)rs!<2rt!<)utrVurtrVurorr2uu rX8f+rW)rs!<2rt!<)usrVurtrVurnrr2uurVurrrVurtrVurtrW<0"rW)or'*/%2!!*#t!<2rt rr)osrVurt!<)os!<<$'!<2rt!<2rtqu-Ztrr)orrVursrWN<$rW)otrVccsrr)ltqu-QqrVd!$ rr)ltrW)rs!!*#t!!&)ZJ,~> K_,TYo^iIto^iL_$M=<)s7?@"oEtTi!"/_trX/Ys%1;_7oEt6_$MTooEt3trU^'srq$0tqt'jqrU^:$ o^iItoEtTi!"/_t!"+eZJ,~> L%PEOrUg-rrUg3toa(Hf!snSm#lO>q#lF8p#laK!#kdirrq-@!p%8Uho`,9no`,9so`,9ro`GKm oa(Qi!!rSs!!rPr!!rAm!!rSs!!rPr!!rPr!!rMq!!rMq!snSm#laJs#lXDu#kdirrq-6srq-6s rUg3toa(Nh!!rDn!!rMq!!rPr!!rPr!!rSs!!rPr!!rMq!!rMqrWrMr!snSm#lXDr#`nY/~> L&M&PrVccsrVciurW)ip!s&?"!;ufr!;l`q!<2s"!<2rtrr*!"rr)orrVurorVurtrVursrW<0" rW)rs!!*#t!!)us!!)fn!!*#t!!)us!!)us!!)rr!!)rr!s&?"!<2rt!<)m!!<2rtrr)ltrr)lt rVciurW)or!!)io!!)rr!!)us!!)us!!*#t!!)us!!)rr!!)rrrW)rs!s&?"!<)ls!0@,0~> L%G?PrU^'srU^-uoEtKf!t+\m$N0Mr$N'Gq$NBZ"$M L@kNPr:L$qrUp0rqt0pprq-6sr:L$qr:L$qrUg3toa(Qi!!rSsrs8;j!!rSs!!rPr!XSH)rq-6s rUg-rrUg-rq"4Umrq-6srUg-rrUg-rr:L$qr:L-tp%8Uio`,9ro`>El#laJs#laJs#lF8p#laMs #l+&m#lXGr#lXDr#laJs#lXDr#lXDr#lO>q#lXGr#lXDr#laMs#`JA+~> LAh/Qr;HZrrVlfsqu-Qqrr)ltr;HZrr;HZrrVciurW)rs!!*#trrD`k!!*#t!!)us!W`3"rr)lt rVccsrVccsq#16nrr)ltrVccsrVccsr;HZrr;Hcurr)osrVursrW3*!!<2rt!<2rt!;l`q!<2ut !;QNn!<)os!<)ls!<2rt!<)ls!<)ls!;ufr!<)os!<)ls!<2ut!/pi,~> L@bHQr:BsrrUg*sqt'jqrq$0tr:Bsrr:BsrrU^-uoEtTi!"/_trsJGk!"/_t!"/\s!XeQ,rq$0t rU^'srU^'sq"+Onrq$0trU^'srU^'sr:Bsrr:C'uo^iLioDf6soE#Bl$NBYt$NBYt$N'Gq$NB\t $Ma5n$N9Vs$N9Ss$NBYt$N9Ss$N9Ss$N0Mr$N9Vs$N9Ss$NB\t$B+P,~> L@kNPr:L$qrq69sqXjgorq-6sr:L$qr:L$qrUp0rrUg-rrUp*pq=O^nrq69srUp0rrUg-rrq-6s rUp0rq=O^nrq69srq-6srUp0rrUg-rr:L-tp%8Uip&> LAh/Qr;HZrrr2otqYgHprr)ltr;HZrr;HZrrVlfsrVccsrVl`qq>L?orr2otrVlfsrVccsrr)lt rVlfsq>L?orr2otrr)ltrVlfsrVccsr;Hcurr)osrr2usrr2usrVurtrVurqrquikrVurrrVurs rVursrVurtrVursrr2urrVursrr2usrVursrquhWrdX~> L@bHQr:Bsrrq-3tqXaaprq$0tr:Bsrr:BsrrUg*srU^'srUg$qq=FXorq-3trUg*srU^'srq$0t rUg*sq=FXorq-3trq$0trUg*srU^'sr:C'uo^iLio`#9so`#9soDf6toDf6qo_f-koDf6roDf6s oDf6soDf6toDf6so`#9roDf6so`#9soDf6so_f,WoRH~> L@kNPrUg-rrUg-rq=O^nrq69srq-6sqt0pprUg-rr:L$qq=O^nqXjgorq-6sr:L$qr:L$qrq-6s rq69sq"4Umrq-6srUg-rrq69sr:L$qr:L-tp%8Uio`,9qo`,9qo`,9so`,9po`,9io`,9rp&> LAh/QrVccsrVccsq>L?orr2otrr)ltqu-QqrVccsr;HZrq>L?oqYgHprr)ltr;HZrr;HZrrr)lt rr2otq#16nrr)ltrVccsrr2otr;HZrr;Hcurr)osrVurrrVurrrVurtrVurqrVurjrVursrr2us rVursrVurtrVurtrr2uqrVursrVurrrVurorVuqZrdX~> L@bHQrU^'srU^'sq=FXorq-3trq$0tqt'jqrU^'sr:Bsrq=FXoqXaaprq$0tr:Bsrr:Bsrrq$0t rq-3tq"+Onrq$0trU^'srq-3tr:Bsrr:C'uo^iLioDf6roDf6roDf6toDf6qoDf6joDf6so`#9s oDf6soDf6toDf6to`#9qoDf6soDf6roDf6ooDf5ZoRH~> L@kNPrUg-rrUg-rq=O^nrUp*pqXjgorUg-rr:L-tp%8Ugo`,9oo`PQno`tj$o`,9qo`,9so`YWo oa(3rq"4aqp%8RrrUg="p%8U`#lO>q#lXDr#laK"#kdir#lO>q#lO>q#laJs#lF8p#k[ci#laJu #k\K&o`,9qo`,9so`YWooa(3rr:L$qr:L$qr:L-tp%8Ugo`,8Yomd~> LAh/QrVccsrVccsq>L?orVl`qqYgHprVccsr;Hcurr)oqrVurprWE6#rVurrrVurrrVurtrWN<$ rW)otq#1Brrr)ltrVcs#rr)os!;ufr!<)ls!<2s#!<2rt!;ufr!;ufr!<2rt!;l`q!;-6j!<2s! !<)utrVurrrVurtrWN<$rW)otr;HZrr;HZrr;Hcurr)oqrVuqZrdX~> L@bHQrU^'srU^'sq=FXorUg$qqXaaprU^'sr:C'uo^iLgoDf6poE5NnoEks'oDf6roDf6toE>To oEt3tq"+[ro^iItrU^7#o^iL_$N0Mr$N9Ss$NBZ#$MTooEt3tr:Bsrr:Bsrr:C'uo^iLgoDf5ZoRH~> L@tQPs7H?tr:L$qqXjgoqt0ppq=O^nrUg-rr:L0up%8RrrUg-rq=P%"oa(3roa(6`#lO?(#kdir oa(6`#k\Jr#l=3*#k\Jr#k\Jroa(6`#k\Jr#laJs#laJs#lXE&#k\Jr#k\Jroa(Kg"UOeo#k\K# o`,9sp&> LAq2Qs8Duur;HZrqYgHpqu-Qqq>L?orVccsr;Hg!rr)ltrVccsq>L[#rW)otrW)rs!;ug)!<2rt rW)rs!<)ut!;c[+!<)ut!<)utrW)rs!<)ut!<2rt!<2rt!<)m'!<)ut!<)utrW)lq"T\Q$!<)uq rVurtrr2uorVurtrWN<$!<2rtr;HZrrVd$%rr)os!<)utrWN<$rW)otr;Hg!rr)ltrVccsNrFP~> L@kKQs7?9ur:BsrqXaapqt'jqq=FXorU^'sr:C+!o^iItrU^'sq=Ft#oEt3toEt6_$N0N)$MTo$MTooEt3tr:C+!o^iItrU^'sNq@i~> L%YENr:L$qq=X^mrUp0rqXsgns7H?tr:U$p!;66qq"=Xms7QBtrq-6sr:U$ps7Q?ss7QBtq=Xan s7QBtrq66rs7QBtr:U$pr:U'qs7QBtrq-6sr:U$prq60ps7Q?sp@\Cjrq69sqt9pos7Q?ss7QBt rUp-qs7H?tr:U$p!;66qNV.f~> L&V⩔HZrq>U?nrVlfsqYpHos8Duur;QZq!<2lrq#:9ns8N#urr)ltr;QZqs8Muts8N#uq>UBo s8N#urr2lss8N#ur;QZqr;Q]rs8N#urr)ltr;QZqrr2fqs8MutpAY$krr2otqu6Qps8Muts8N#u rVlcrs8Duur;QZq!<2lrNW+G~> L%P?Or:Bsrq=OXnrUg*sqXjaos7?9ur:Ksq!;-0rq"4Rns7H JbAI(r Jc>*:r;_EJJc Jb8C&r JbAL)!!rPr!!n/KJb@@^J,~> Jc>-;!!)us!!%TLJc=!pJ,~> Jb8F'!"/\s!"+;LJb7:\J,~> JbAO*!!rJp!!n/KJb@C_J,~> Jc>0 Jb8I(!"/Vq!"+;LJb7=]J,~> JbAO*!!rJp!!n/KJb@C_J,~> Jc>0 Jb8I(!"/Vq!"+;LJb7=]J,~> JbAO*rs8Sr!!n/KJb@@^J,~> Jc>0 Jb8I(rsJ_s!"+;LJb7:\J,~> JbAL)r!7lHJb@=]J,~> Jc>-;quD Jb8F'r!J#IJb77[J,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> MtR&TJb=TeYk MuN\UJc:6"Yl9.~> MtHuUJb4NcYk3G~> NV32TJb=TeYk NW/hUJc:6"Yl9.~> NV*,UJb4NcYk3G~> \+Tb,g\(CKJb=TeYk \,QC-g]%$LJc:6"Yl9.~> \+K\-g[t=LJb4NcYk3G~> \+Tb,hY$UKJb=TeYk \,QC-hZ!6LJc:6"Yl9.~> \+K\-hXpOLJb4NcYk3G~> \Foh,i:ZaKJb=TeYk \GlI-i;WBLJc:6"Yl9.~> \Ffb-i:Q[LJb4NcYk3G~> \Foe+iq< \GlF,ir8rXs8McnJc:6"Yl9.~> \Ff_,iq36Xs7H'nJb4NcYk3G~> \b5k+h=^RLJb=TeYk \c2L,h>[3MJc:6"Yl9.~> \b,e,h=ULMJb4NcYk3G~> \b5h*h=^UMJb=TeYk \c2I+h>[6NJc:6"Yl9.~> \b,b+h=UONJb4NcYk3G~> ](Pn*h=^UMJb=TeYk ])MO+h>[6NJc:6"Yl9.~> ](Gh+h=UONJb4NcYk3G~> ](Pk)hY$^NZLn2'JbAp5!!nAQJ,~> ])ML*hZ!?OZMjh(Jc>QG!!%fRJ,~> ](Ge*hXpXOZLe,(Jb8j3!"+MRJ,~> ](Pk)hY$^NZh=>(JbAs6rs4DQJ,~> ])ML*hZ!?OZi9t)Jc>THrr@iRJ,~> ](Ge*hXpXOZh48)Jb8m4rsFPRJ,~> ]Ckq)hY$^NZh=>(JbAs6rs4DQJ,~> ]DhR*hZ!?OZi9t)Jc>THrr@iRJ,~> ]Cbk*hXpXOZh48)Jb8m4rsFPRJ,~> ]Ckn(ht?gO[.XD(JbB!7rWn;PJ,~> ]DhO)huWIrW%`QJ,~> ]Cbh)ht6aP[.O>)Jb8p5rX+GQJ,~> ]_1t(ht?gO[.XD(JbB!7rWn;PJ,~> ]`.U)huWIrW%`QJ,~> ]_(n)ht6aP[.O>)Jb8p5rX+GQJ,~> ]_1q'i:ZpP[IsJ(JbB$8r ]`.R(i;WQQ[Jp+)Jc>ZJr;_WPJ,~> ]_(k(i:QjQ[IjD)Jb8s6rPJ,~> ^%M"'i:ZpP[IsJ(JbB$8r ^&IX(i;WQQ[Jp+)Jc>ZJr;_WPJ,~> ^%Cq(i:QjQ[IjD)Jb8s6rPJ,~> ^%M=0!;6-ni:ZpP[e9P(JbB'9r!8)NJ,~> ^&Is1!<2coi;WQQ[f61)Jc>]KquDNOJ,~> ^%D71!;-'oi:QjQ[e0J)Jb9!7r!J5OJ,~> ^@hC0!;6*miV!$Q\+TV(Jb9$9qZquMJ,~> ^Ae$1!<2`niVrZR\,Q7)Jc5ZKqZ)ENJ,~> ^@_=1!;-$niUlsR\+KP)Jb/s7q[/,NJ,~> ^@hF1rq6'miV!$Q\Fo\(JbAjFL\6/~> ^Ae'2rr2]niVrZR\Gl=)Jc>KGL]2f~> ^@_@2rq-!niUlsR\FfV)Jb8dGL\-)~> ^@hF1rq6$liq<-R\b5b(K(\pFL\6/~> ^Ae'2rr2Zmir8cS\c2C)K)YQGL]2f~> ^@_@2rq,smiq3'S\b,\)K(SjGL\-)~> ^\.O2rUopkiq<-R](Ph(KD#!FL\6/~> ^]+03rVlQlir8cS])MI)KDtWGL]2f~> ^\%I3rUfjliq3'S](Gb)KCnpGL\-)~> ^\.O2r:Tjkiq<-Rq"=Ihk4SNUqXjgop@\.clh15_q=XXkn+HD\i:ZmOn+HD\L\6/~> ^]+03r;QKlir8cSq#:*ik5P/VqYgHppAXddli-k`q>U9ln,E%]i;WNPn,E%]L]2f~> ^\%I3r:Kdliq3'Sq"4Cik4JHVqXaapp@S(dlh(/`q=ORln+?>]i:QgPn+?>]L\-)~> _"IU2r:Tgjj7W6SqXsLelh0lUrq69sq" _#F63r;QHkj8SlTqYp-fli-MVrr2otq#9U[pAXsiqu6BkoD\7[k5OrPo`"1WOT'b~> _"@O3r:Kakj7N0TqXjFflh'fVrq-3tq"3n[p@S7iqt0[koCVP[k4J6Po^qJWOS"&~> _"IX3qXsXij7W6Sr:TUdme,rQqXs+Zq"=Ihr:Tdip@[hZl1OKNq" _#F94qYp9jj8SlTr;Q6emf)SRqYoa[q#:*ir;QEjpAXI[l2L,Oq#9OYOT'b~> _"@R4qXjRjj7N0Tr:KOeme#lRqXj%[q"4Cir:K^jp@Rb[l1FEOq"3hYOS"&~> _=d^3qXsUhjRr?TrUoUbnb)bbqt9^iqXs+Zqt9[hrUoghq"=Liqt9^im.L5]qt9^iq=X"YOS+,~> _>a?4qYp6ijSnuUrVl6cnc&Ccqu6?jqYoa[qu6TXZOT'b~> _=[X4qXjOijRi9UrUfOcnau\cqt0XjqXj%[qt0UirUfaiq"4Fjqt0Xjm.C/^qt0Xjq=NqZOS"&~> _=da4q"=FgjRr?Trq5XaoC`"ep@\:goC_qco_%k_rq5mhq=XUjq"=Fgme-J`p\"=foC_qcL\6/~> _>aB5q#:'hjSnuUrr29boD\XfpAXphoD\Rdo`"L`rr2Niq>U6kq#:'hmf*+ap\ssgoD\RdL]2f~> _=[[5q"4@hjRi9Urq,RboCVqfp@S4hoCVkdo^qe`rq,giq=OOkq"4@hme$Dap[n7goCVkdL\-)~> _Y*g4q"=Cfjn8HUs7P[`o_&.go_&+foC_qcp%A=js7Q-mrq5mhqXs^kp@\4enFc\bp@\1do_&%d L\6/~> _Z'H5q#:$gjo5)Vs8M _Y!a5q"4=gjn/BVs7GUao^r(ho^r%goCVkdp%87ks7H'nrq,giqXjXlp@S.fnFZVcp@S+eo^qte L\-)~> _Y*j5p\":ejn8HU!;66qqt9Ufp%A7ho(DqeoC_qcnFcS_s7Q?ss7Q-mqt9glo_&%dnb)eco_&"c o_&%dL\6/~> _Z'K6p\spfjo5)V!<2lrqu66gp&=mio)ARfoD\RdnG`4`s8Muts8Mcnqu6Hmo`"[enc&Fdo`"Xd o`"[eL]2f~> _Y!d6p[n4fjn/BV!;-0rqt0Ogp%81io(;kfoCVkdnFZM`s7H9ts7H'nqt0amo^qtenau_do^qqd o^qteL\-)~> _tEp5p@\4ejn8 _uBQ6pAXjfjo4rRp\sjdpAY!jo)ARfoD\Rdn,E.`!<2rtrVlTmqu6Hmo`"XdoD\Ueo`"Ucp&=df L]2f~> _t _tEs6p%A(ck4SHSo_%qaq"=Ojnb)keoC_qcn+HM_!qcg)qXsalqt9dkoC_qcoC`"eoC_kap%A.e L\6/~> _uBT7p&=^dk5P)To`"Rbq#:0knc&LfoD\Rdn,E.`!r`0"qYpBmqu6EloD\RdoD\XfoD\Lbp&=df L]2f~> _t _tEs6o_&"ck4SNUnb)Y_q"=Ojnb)keoC_qcn+HG]q"=UlqXs[joC_qco_&(eo(Deap%A.eL\6/~> _uBT7o`"Xdk5P/Vnc&:`q#:0knc&LfoD\Rdn,E(^q#:6mqYp _t `:a'7oC_kakOnZWn+HJ^q"=OjnFceeoC_qcn+HG]me-D^oC_qcp%A1fnb)\`p%A.eL\6/~> `;]]8oD\LbkPk;Xn,E+_q#:0knG`FfoD\Rdn,E(^mf*%_oD\Rdp&=ggnc&=ap&=dfL]2f~> `:X!8oCVebkOeTXn+?D_q"4IknFZ_foCVkdn+?A^me$>_oCVkdp%8+gnauVap%8(fL\-)~> `:a'7oC_kakOnZWn+HG]q=XUjnb)nfoC_qcn+HJ^mIg;]oC_qcp%A1fnFcYao_&%dL\6/~> `;]]8oD\LbkPk;Xn,E(^q>U6knc&OgoD\Rdn,E+_mJcq^oD\Rdp&=ggnG`:bo`"[eL]2f~> `:X!8oCVebkOeTXn+?A^q=OOknauhgoCVkdn+?D_mI^5^oCVkdp%8+gnFZSbo^qteL\-)~> `V'-7o(DeakOnZWme-A]q=XRinaukfoC_qcn+HJ^mIg;]oC_qcp%A1fn+HVboC_qcL\6/~> `W#c8o)AFbkPk;Xmf*"^q>U3jnbrLgoD\Rdn,E+_mJcq^oD\Rdp&=ggn,E7coD\RdL]2f~> `Us'8o(;_bkOeTXme$;^q=OLjnalegoCVkdn+?D_mI^5^oCVkdp%8+gn+?PcoCVkdL\-)~> `V'08nb)Y_kk4cXme-A]q=XOho(;tgoC_qcn+HM_lh1/]o(Dhbp@\:gh"CLLL\6/~> `W#f9nc&:`kl1DYmf*"^q>U0io)8UhoD\Rdn,E.`li-e^o)AIcpAXphh#@-ML]2f~> `Us*9nauS`kk+]Yme$;^q=OIio(2nhoCVkdn+?G`lh()^o(;bcp@S4hh":FML\-)~> `qB68nFcS_kk4cXmIg8\qXsUhjRr?Tn+HM_lLk,^nb)_ap@\:gh"CLLL\6/~> `r>l9nG`4`kl1DYmJcn]qYp6ijSnuUn,E.`lMgb_nc&@bpAXphh#@-ML]2f~> `q909nFZM`kk+]YmI^2]qXjOijRi9Un+?G`lLb&_nauYbp@S4hh":FML\-)~> `qB99n+HG]l1OlYmIg8\q=XIfk4SQVn+HM_f_,%Gp@\:gh"CLLL\6/~> `r>o:n,E(^l2LMZmJcn]q>U*gk5P2Wn,E.`f`([HpAXphh#@-ML]2f~> `q93:n+?A^l1FfZmI^2]q=OCgk4JKWn+?G`f_"tHp@S4hh":FML\-)~> a7]?9me-A]l1OlYmIg8\q=XCdkk4cXn+HM_g\(7Gp\"@gh"CLLL\6/~> a8Yu:mf*"^l2LMZmJcn]q>U$ekl1DYn,E.`g]$mHp\t!hh#@-ML]2f~> a7T9:me$;^l1FfZmI^2]q=O=ekk+]Yn+?G`g[t1Hp[n:hh":FML\-)~> a7]B:mIg5[lLjuZm.L2\q"=7blLjuZn+HM_hY$IGp\"@gh"CLLL\6/~> a8Z#;mJck\lMgV[m/Hh]q#9mclMgV[n,E.`hZ!*Hp\t!hh#@-ML]2f~> a7T<;mI^/\lLao[m.C,]q"41clLao[n+?G`hXpCHp[n:hh":FML\-)~> a7]B:mIg5[lLjuZm.L2\p\"+`m.L2\n+HM_i:ZmO!;60op\"@gh"CLLL\6/~> a8Z#;mJck\lMgV[m/Hh]p\saam/Hh]n,E.`i;WNP!<2fpp\t!hh#@-ML]2f~> a7T<;mI^/\lLao[m.C,]p[n%am.C,]n+?G`i:QgP!;-*pp[n:hh":FML\-)~> aS"ErlLjuZm.L2\p@[t^me-D^n+HM_iq<-RrUp!mp\"@gh"CLLL\6/~> aSt&slMgV[m/Hh]pAXU_mf*%_n,E.`ir8cSrVlWnp\t!hh#@-ML]2f~> aRn?slLao[m.C,]p@Rn_me$>_n+?G`iq3'SrUfpnp[n:hh":FML\-)~> aS"Bqlh1)[m.L2\o_%b\nFcV`n+HM_jRr?Tqt9dkp\"@gh"CLLL\6/~> aSt#rli-_\m/Hh]o`"C]nG`7an,E.`jSnuUqu6Elp\t!hh#@-ML]2f~> aRn an=Hqlh1)[m.L2\oC_Y[nb)_an+HM_k4STWq"=Ihp\"@gh"CLLL\6/~> ao:)rli-_\m/Hh]oD\:\nc&@bn,E.`k5P5Xq#:*ip\t!hh#@-ML]2f~> an4Brlh(#\m.C,]oCVS\nauYbn+?G`k4JNXq"4Cip[n:hh":FML\-)~> an>T ao;5=l2LGXm/Hh]m/Hh]nc&+[o)AIcn,E.`kl1DYp\t!hp\t!hh#@-ML]2f~> an5N=l1F`Xm.C,]m.C,]nauD[o(;bcn+?G`kk+]Yp[n:hp[n:hh":FML\-)~> b4YZ b5V;=l2LGXm/Hh]m/Hh]n,DqZoD\Rdn,E.`l2LP[p&=dfp\ssgh>[6NL]2f~> b4PT=l1F`Xm.C,]m.C,]n+?5ZoCVkdn+?G`l1Fi[p%8(fp[n7gh=UONL\-)~> b4Y]=kOnWVm.L2\m.L2\mIg,Xo_&%dn+HM_lLk#[o_&%dp\"=fh=^UML\6/~> b5V>>kPk8Wm/Hh]m/Hh]mJcbYo`"[en,E.`lMgY\o`"[ep\ssgh>[6NL]2f~> b4PW>kOeQWm.C,]m.C,]mI^&Yo^qten+?G`lLar\o^qtep[n7gh=UONL\-)~> bOtc=kOnTUmIg;]m.L5]lLjiVp%A.en+HM_lh1,\oC_qcp\"=fh=^UML\6/~> bPqD>kPk5VmJcq^m/Hk^lMgJWp&=dfn,E.`li-b]oD\Rdp\ssgh>[6NL]2f~> bOk]>kOeNVmI^5^m.C/^lLacWp%8(fn+?G`lh(&]oCVkdp[n7gh=UONL\-)~> bOtf>jn8ETmIg;]m.L5]l1OcVp%A.en+HM_m.L5]o(Dhbp\":el1G#^p\"@gL\6/~> bPqG?jo5&UmJcq^m/Hk^l2LDWp&=dfn,E.`m/Hk^o)AIcp\spfl2CY_p\t!hL]2f~> bOk`?jn/?UmI^5^m.C/^l1F]Wp%8(fn+?G`m.C/^o(;bcp[n4fl1=r_p[n:hL\-)~> bk:l>jn8BSme-D^m.L5]kOnTUp@\7fn+HM_mIg;]o(Dhbp@\4elLk/_p\"@gL\6/~> bl7M?jo5#Tmf*%_m/Hk^kPk5VpAXmgn,E.`mJcq^o)AIcpAXjflMge`p\t!hL]2f~> bk1f?jn/_m.C/^kOeNVp@S1gn+?G`mI^5^o(;bcp@S.flLb)`p[n:hL\-)~> bk:o?j7W3Rme-D^mIg;]k4SNUp@\7fn+HM_mIg>^nb)_ap@\4elLk/_p\"@gL\6/~> bl7P@j8SiSmf*%_mJcq^k5P/VpAXmgn,E.`mJct_nc&@bpAXjflMge`p\t!hL]2f~> bk1i@j7N-Sme$>_mI^5^k4JHVp@S1gn+?G`mI^8_nauYbp@S.flLb)`p[n:hL\-)~> bk:o?j7W0Qn+HM_mIg>^q"4Umn+HJ^p@\7fn+HM_me-D^nb)_ap@\1dm.LAap@\7fL\6/~> bl7P@j8SfRn,E.`mJct_q#16nn,E+_pAXmgn,E.`mf*%_nc&@bpAXgem/I"bpAXmgL]2f~> bk1i@j7N*Rn+?G`mI^8_q"+Onn+?D_p@S1gn+?G`me$>_nauYbp@S+em.C;bp@S1gL\-)~> c1V#@iq<'Pn+HM_mIg>^q"4Umme-D^p@\7fn+HM_me-D^nb)_ap@\.cmIgJbp@\7fL\6/~> c2RYAir8]Qn,E.`mJct_q#16nmf*%_pAXmgn,E.`mf*%_nc&@bpAXddmJd+cpAXmgL]2f~> c1LrAiq3!Qn+?G`mI^8_q"+Onme$>_p@S1gn+?G`me$>_nauYbp@S(dmI^Dcp@S1gL\-)~> c1V#@iV!!Pn+HM_mIgA_p\"Oln+HM_p@\7fn+HM_me-D^nb)_ap%A(cme-Pbp@\7fL\6/~> c2RYAiVrWQn,E.`mJd"`p\t0mn,E.`pAXmgn,E.`mf*%_nc&@bp&=^dmf*1cpAXmgL]2f~> c1LrAiUlpQn+?G`mI^;`p[nImn+?G`p@S1gn+?G`me$>_nauYbp%8"dme$Jcp@S1gL\-)~> cLq)@iUusOnFcV`me-G_p\"Oln+HM_p@\7fn+HM_me-D^nb)_ap%A%bnFcbdp%A.eL\6/~> cMm_AiVrTPnG`7amf*(`p\t0mn,E.`pAXmgn,E.`mf*%_nc&@bp&=[cnG`Cep&=dfL]2f~> cLh#AiUlmPnFZPame$A`p[nImn+?G`p@S1gn+?G`me$>_nauYbp%7tcnFZ\ep%8(fL\-)~> cLq,Ai:ZjNnFcV`me-J`p@\CjnFcV`p@\7fn+HM_me-A]o(Dhbo_%qao(Dqep%A.eL\6/~> cMmbBi;WKOnG`7amf*+apAY$knG`7apAXmgn,E.`mf*"^o)AIco`"Rbo)ARfp&=dfL]2f~> cLh&Bi:QdOnFZPame$Dap@S=knFZPap@S1gn+?G`me$;^o(;bco^qkbo(;kfp%8(fL\-)~> ch72Aht?aMnb)_an+HSap%A:inFcYap%A.en+HM_me-A]oC_nbo_%k_p%A7ho_&%dL\6/~> ci3hBhu ch.,Bht6[NnauYbn+?Mbp%84jnFZSbp%8(fn+?G`me$;^oCVhco^qe`p%81io^qteL\-)~> ch72Aht?aMnb)_anFcYap%A7hnb)bbp%A+dq=XanqXs[jme->\p@\.cqt0ppqXsIdqXs[jo_&"c q=XanP4a>~> ci3hBhuUBoqYpUBoP5]t~> ch.,Bht6[NnauYbnFZSbp%81inau\cp%8%eq=O[oqXjUkme$8]p@S(dqt'jqqXjCeqXjUko^qqd q=O[oP4X8~> d.R8Aht?^Lo(Deanb)eco_&+foC_qcp%A+dqXsjoq=XRimIg5[q"==dr:U'qq=WqWoC_nbqXsjo n+H\dV=f?~> d/NnBhuU3jmJck\q#9ser;Q]rq>TRXoD\OcqYpKp n,E=eV>bu~> d.I2Bht6XMo(;_bnau_do^r%goCVkdp%8%eqXjdpq=OLjmI^/\q"47er:L!rq=NkXoCVhcqXjdp n+?VeV=]9~> d.R8Aht?^Lo(Db`oC`"eoC_tdo_&(eoC_nbrUp*pq=XOhme-;[r:Tpm!;6-nrq66rq=WtXnb)\` rUp*pmI^GbVY,H~> d/NnBhuU0imf)q\r;QQn!<2corr2lsq>TUYnc&=a rVl`qmJ[(cVZ))~> d.I2Bht6XMo(;\aoCVqfoCVneo^r"foCVhcrUg$qq=OIime$5\r:Kjn!;-'orq-0sq=NnYnauVa rUg$qmIUAcVY#B~> dIm>Aht?[Ko(D__p\"Cho(Deap\"Cho(DPZq=XLgmIfoRrq5mhp\!hXnFc>Xlh18`W:bZ~> dJitBhu<U-hmJcPSrr2Nip\sIYnG_tYli-naW;_;~> dId8Bht6ULo(;Y`p[n=io(;_bp[n=io(;J[q=OFhmI]iSrq,gip[mbYnFZ8Ylh(2aW:YT~> i:ZsQq=XLgiUugKqt9glrq5pir:Tpmq=XRis7Q*lqt9dkqt9glrUoO`rq6!kp\"Chrq5adrUogh !;63pqt9@_q=XUjrUoafkk+o]WV(c~> i;WTRq>U-hiVrHLqu6Hmrr2Qjr;QQnq>U3js8M`mqu6Elqu6HmrVl0arr2Wlp\t$irr2BerVlHi !<2iqqu6!`q>U6krVlBgkl(P^WW%D~> i:QmRq=OFhiUlaLqt0amrq,jjr:Kjnq=OLjs7H$mqt0^lqt0amrUfIarq,plp[n=irq,[erUfai !;--qqt0:`q=OOkrUf[gkk"i^WUt]~> i:ZsQqt9Rejn8'Jrq6-or:TF_q"=Ihs7P[`qXs^kr:T^g!;63p!;5siq"=LirUoafqXsRgs7Q6p qXs=`q"=Lir:T^gk4S`[X7^u~> i;WTRqu63fjo4]Krr2cpr;Q'`q#:*is8M i:QmRqt0Lfjn/!Krq-'pr:K@`q"4Cis7GUaqXjXlr:KXh!;--q!;,mjq"4FjrUf[gqXjLhs7H0q qXj7aq"4Fjr:KXhk4JZ\X7Uo~> nb%G=JI%bOXS%)~> nc"(>JH22?XT!_~> naqA>JI7nSXRq#~> i:ZsQ^%M7.p@\1doC_qcs7H?tq=XOhp%A1fq=XUjrUp$nlLk#[q=XUjo_&.gqt9glp@\4eoC_td q=XUjj7WEXX7^u~> i;WTR^&Im/pAXgeoD\Rds8Duuq>U0ip&=ggq>U6krVlZolMgY\q>U6ko`"dhqu6HmpAXjfoD\Ue q>U6kj8T&YX8[V~> i:QmR^%D1/p@S+eoCVkds7?9uq=OIip%8+gq=OOkrUfsolLar\q=OOko^r(hqt0amp@S.foCVne q=OOkj7N?YX7Uo~> i:ZsQ^%M7.ht?gOiq<0Sn+HP`lLk#[h"COMi:ZsQf(B"KWV(c~> i;WTR^&Im/huXLWW%D~> i:QmR^%D1/ht6aPiq3*Tn+?JalLar\h":INi:QmRf(8qLWUt]~> i:ZsQ^%M7.ht?gOiq<0Sn+HP`lLk#[h"COMi:ZsQf_,7MW:bZ~> i;WTR^&Im/hu i:QmR^%D1/ht6aPiq3*Tn+?JalLar\h":INi:QmRf_#1NW:YT~> Pk>"^Zh4;(lLb,_JbA7"!!oIpJ,~> Pl:X_Zi0q)lM^b`Jc=m4!!&nqJ,~> Pk4q_Zh+5)lLY&`Jb80u!",UqJ,~> hXpjSJb=lm!!q?P!!q9Nrs5IoJ,~> hYmKTJc:N*!!(dQ!!(^OrrAnpJ,~> hXgdTJb4fk!".KQ!".EOrsGUpJ,~> hXpjSOS&SZJbAp5!!q?P!!n/Kqt5I~> hYmKTOT#4[Jc>QG!!(dQ!!%TLqu2*~> hXgdTORrM[Jb8j3!".KQ!"+;Lqt,C~> hXpjSOS&SZVtC#qf(B"Kg[tOPJbAp5J,~> hYmKTOT#4[Vu?Yrf)>XLg\q0QJc>QGJ,~> hXgdTORrM[Vt9rrf(8qLg[kIQJb8j3J,~> Pk>"^g@YFOg[tOPlLb,_k4J][Jb>u7J,~> Pl:X_gAV'Pg\q0QlM^b`k5G>\Jc;VIJ,~> Pk4q_g@P@Pg[kIQlLY&`k4AW\Jb5o5J,~> Pk>"^Zh4;(lLb,_k4J][Jb>u7J,~> Pl:X_Zi0q)lM^b`k5G>\Jc;VIJ,~> Pk4q_Zh+5)lLY&`k4AW\Jb5o5J,~> Pk>"^Zh4;(lLb,_SFumfJbAX-J,~> Pl:X_Zi0q)lM^b`SGrNgJc>9?J,~> Pk4q_Zh+5)lLY&`SFlggJb8R+J,~> hXpjSJb?_Lrs6sD!!qTW!!rJp!!n/Kqt5I~> hYmKTJc<@^rrCCE!!)$X!!)oq!!%TLqu2*~> hXgdTJb6YJrsI*E!".`X!"/Vq!"+;Lqt,C~> hXpjSOS&SZXn;Z"d.IAEiV!3VrUg-rJbAp5J,~> hYmKTOT#4[Xo8;#d/F"FiVriWrVccsJc>QGJ,~> hXgdTORrM[Xn2T#d.@;FiUm-WrU^'sJb8j3J,~> SFumfe+E\HjRrNYbOtl@rq-6sZh4;(JbAd1J,~> SGrNge,B=IjSo/ZbPqMArr)ltZi0q)Jc>ECJ,~> SFlgge+ Re6Xdr:L$q](Q(/r:L$qlLb,_l1G,ap%8Trp&>;Kp%e92~> Rf39er;HZr])M^0r;HZrlM^b`l2Cbbrr)o'rr2tLrqZPD~> Re-Rer:Bsr](H"0r:BsrlLY&`l1>&bo^iKro`#8Lo_J-0~> RJ$Rcrq-6s\Fok-rq-6slLb,_kk4r]eb.W%JbAm4J,~> RK!3drr)lt\GlL.rr)ltlM^b`kl1S^ec+8&Jc>NFJ,~> RIpLdrq$0t\Ffe.rq$0tlLY&`kk+l^eb%Q&Jb8g2J,~> hXpjS]Cc.0Zh=>(kk4!Bf(B"KhY$mS!VH_Lp&"E4~> hYmKT]D_d1Zi9t)kl0WCf)>XLhZ!NT!WE(Mrql\F~> hXgdT]CZ(1Zh48)kk*pCf(8qLhXpgT!V?_Mo_\92~> hXpjS](Q(/g%F&)ch7;Deb&nJht6sTrq-6sJbAp5J,~> hYmKT])M^0g&B\*ci3qEec#OKhu3TUrr)ltJc>QGJ,~> hXgdT](H"0g% hY";_g@YFOhY$mSch.AGp%8UAo`,9Vp&> hYsq`gAV'PhZ!NTci+"Hrr)oKrVurWrr2usrVuqLrql\F~> hXn5`g@P@PhXpgTch%;Ho^iLAoDf6Wo`#9soDf5Lo_\92~> QM(4_g@YFOht6sTrq-6slLb,_lh18`rq-6s[e0V+JbA[.J,~> QN$j`gAV'Phu3TUrr)ltlM^b`li-narr)lt[f-7,Jc><@J,~> QLt.`g@P@Pht-mUrq$0tlLY&`lh(2arq$0t[e'P,Jb8U,J,~> Qh:Fdp%8U$p&>;Kp%.j,~> Qi7'err)o.rr2usrVur`rVurbrVurrrVur.rr2tLrq$,>~> Qh1@eo^iL$o`#9soDf6`oDf6boDf6roDf6.o`#8Lo^h^*~> RJ$Rcrq-6s](H%/qt0pplLb,_me-ScJb>`0J,~> RK!3drr)lt])D[0qu-QqlM^b`mf*4dJc;ABJ,~> RIpLdrq$0t](>t0qt'jqlLY&`me$MdJb5Z.J,~> hXpjS^@_I3[e9Y+Re6Xdg[tOPJbAp5J,~> hYmKT^A\*4[f6:,Rf39eg\q0QJc>QGJ,~> hXgdT^@VC4[e0S,Re-Reg[kIQJb8j3J,~> hXpjS_"I^5e+E\HJbAp5!!q?P!!n/Kqt5I~> hYmKT_#F?6e,B=IJc>QG!!(dQ!!%TLqu2*~> hXgdT_"@X6e+ hXpjSOS&SZVtC#qht@!TqXjgog[tOPJbAp5J,~> hYmKTOT#4[Vu?YrhuQGJ,~> hXgdTORrM[Vt9rrht6pUqXaapg[kIQJb8j3J,~> Pk>"^g@YFOg[tOPlLb,_k4J][h=UaRJb@:\J,~> Pl:X_gAV'Pg\q0QlM^b`k5G>\h>RBSJc Pk4q_g@P@Pg[kIQlLY&`k4AW\h=L[SJb74ZJ,~> Pk>"^iV!3Veb&nJoC`+hqXjgok4J][h"C[QJb@@^J,~> Pl:X_iVriWec#OKoD\aiqYgHpk5G>\h#@ Pk4q_iUm-WearhKoCW%iqXaapk4AW\h":URJb7:\J,~> hXpjS\Ffh-ht6sTf(B"Knaukfqt0pp^@_I3rq-6sg[tOPJbAp5J,~> hYmKT\GcI.hu3TUf)>XLnbrLgqu-Qq^A\*4rr)ltg\q0QJc>QGJ,~> hXgdT\F]b.ht-mUf(8qLnalegqt'jq^@VC4rq$0tg[kIQJb8j3J,~> hXpjSPkG%^s7H?tan>Z>\Fok-!VH`Qo`,8Kp&"E4~> hYmKTPlC[_s8Duuao;;?\GlL.!WE)RrVuqLrql\F~> hXgdTPk=t_s7?9uan5T?\Ffe.!V?`RoDf5Lo_\92~> hXpjSP4\k^oa&V2!!qTWe-Oh%!!n/Kqt5I~> hYmKTP5YL_rW(" hXgdTP4Se_oErY2!".`Xe-at&!"+;Lqt,C~> Pk>"^g\(RPg[tOPmIgJb!VH`\o`,9Np&>;Kp!WM`~> Pl:X_g]%3Qg\q0QmJd+c!WE)]rVurOrr2tLrmLdr~> Pk4q_g[tLQg[kIQmI^Dc!V?`]oDf6Oo`#8Lo[ Q1`]6h=]q:k4J][g@YFOJb@C_J,~> Q2]>7h>ZR;k5G>\gAV'PJc=$qJ,~> Q1WW7h=Tk;k4AW\g@P@PJb7=]J,~> Pk>"^g\(RPg[tOPmIgJb!VH`6p&>;Kp!<;]~> Pl:X_g]%3Qg\q0QmJd+c!WE)7rr2tLrm1Ro~> Pk4q_g[tLQg[kIQmI^Dc!V?`7o`#8Lo[!/[~> hXpjSP4\e\`Us3:^%D@2qt0ppg[tOPJbAp5J,~> hYmKTP5YF]`Voi;^&A!3qu-Qqg\q0QJc>QGJ,~> hXgdTP4S_]`Uj-;^%;:3qt'jqg[kIQJb8j3J,~> hXpjSPkG%^s7H?tan>Z>^@hL3qXjgog[tOPJbAp5J,~> hYmKTPlC[_s8Duuao;;?^Ae-4qYgHpg\q0QJc>QGJ,~> hXgdTPk=t_s7?9uan5T?^@_F4qXaapg[kIQJb8j3J,~> hXpjSQ1Y+_rUg-rb4P`?ht6sTf(B"Kg[tOPJbAp5J,~> hYmKTQ2Ua`rVccsb5MA@hu3TUf)>XLg\q0QJc>QGJ,~> hXgdTQ1P%`rU^'sb4GZ@ht-mUf(8qLg[kIQJb8j3J,~> Pk>"^iV!3Vr:L$qg[tOPoC`+hqXjgok4J][Jb>u7J,~> Pl:X_iVriWr;HZrg\q0QoD\aiqYgHpk5G>\Jc;VIJ,~> Pk4q_iUm-Wr:Bsrg[kIQoCW%iqXaapk4AW\Jb5o5J,~> Pk>"^Zh4;(lLb,_k4J][Jb>u7J,~> Pl:X_Zi0q)lM^b`k5G>\Jc;VIJ,~> Pk4q_Zh+5)lLY&`k4AW\Jb5o5J,~> Pk>"^Zh4;(lLb,_Jb=upJ,~> Pl:X_Zi0q)lM^b`Jc:W-J,~> Pk4q_Zh+5)lLY&`Jb4onJ,~> hXpjSJb=lm!!q?P!!n/Kqt5I~> hYmKTJc:N*!!(dQ!!%TLqu2*~> hXgdTJb4fk!".KQ!"+;Lqt,C~> JbAC&!!n/KJb@:\J,~> Jc>$8!!%TLJc Jb8=$!"+;LJb74ZJ,~> Jb>/u!!n/KW:bZ~> Jc:f2!!%TLW;_;~> Jb5)s!"+;LW:YT~> Pk>"^Jb=TeV=f?~> Pl:X_Jc:6"V>bu~> Pk4q_Jb4NcV=]9~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> Jb=TeJb?MFJ,~> Jc:6"Jc<.XJ,~> Jb4NcJb6GDJ,~> %%EndData showpage %%Trailer end %%EOF quesoglc-0.7.2/docs/Image2.png0000644000175000017500000000205610766745704013050 00000000000000‰PNG  IHDR¢øÚªPLTEõþô ðþæãIDATxÚí˜?ÓH‡Çvˆ#d9U¤‹ ‡8 (ÐDDÇjãeö¶¤X¡tw R$š‘vŠ+¸íG ¤EW\‰;Z>‚%øFפÈÅçxœÌÏö/ÚåÏ‚Vw#ÍÌ£'“™wƯï ±¡ü„¢•ö­nZShí§µ‘Öç"óµe òú[Zïçu¤?ݼ.‹„¾[Z¨+Ž-×ÒXÖc¡8JkyÝN«‡±y¿üþèób)•t[Olë¥lQ×£»u¨¬SÙFºž^Mº[ºë)-u×øòï­ÊݵuçêÎ:>fûd[k|rç×$‰r.~ªCïd­Ÿµ7²ö|Ö>ÌÚYû‡Z·Öóô¼êd­«Z=çm5ºUЂÿ™îÂ.´^Ö^‡¶Ÿµ¬õ³ö<|ºUšádçÖóùŒœ> Û½UàAyÆ4„¼äذ53ìL × {{†ÛC×µæî®á`'\sDš¯ 7ÎM äs`ØÞö7ñcàxOÆ¡á Œã‡fgÆã,ðj/5¸F%v ×ïvq Î3Þ3\»ß}”ó9XË+åIôuò͹oØzW|Ò~—œ}K¸^Ùýûô§7IZæ0¦ <Øü!Ï 9õ¶'†ëÀµ©aï~žnïq–CÃ~æ‡Ê¤Õ®á8Ü1S†-µ“oìÎ’×3Ï<Ÿvé|Âã¯Wø"ð`ÿKÎÖ_Ãù4gåïž Î÷ žG31;·;Îó p{óµ?íž²>@<Ÿ5ˆÓC¾ ûva]7Ú°GH+k ÈÿÆgŒÁnÆ¢ø>½z›d¿)_xV§Íöc8·}þœÁgQ!þ3]äÿöXIívÉN+÷³“¬ËêÍNnâ’•Å]MÑxsÛ§vJí‚Y‹Zç ³î@ëBb;ƒˆØ­[ÌöoÆÄŽ{3b#9¯Z+”‹ªu”<¬ZWÈAÕ6ÓK¦*¶#d3¬Ø~j£ŠéÆ;Ò™Ul$¤5/[giqËÿºˆæ,C«±|°Ãb‚éÒùûÅë·ý÷Y9ÍUuìÊÊ“Û)³Í9³µâÛÁŒÙdAì?b²”ìùj—¨-fÉʺ§ey Ü*f/Òo;ø[~–lÈÖïÌê¼.[û%³VHrýÙ‹Éõ.}z~-ë&1±³}9&v"%±SÙ"öÆ0ˆ™m&ÌZIÄöVº/r{sNl ™É)±c9¡;f§søg!²Zö/T±[Ì(û2½¯¨Ó'"ÏÁÆþÞw<ÉÞŒý³î_ŠØê=_ùÆ”ÉYxÅþÜ_C)öxIEND®B`‚quesoglc-0.7.2/docs/measure.eps0000644000175000017500000005605410764574551013415 00000000000000%!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: 0 0 300 250 %%Pages: 0 %%Creator: Sun Microsystems, Inc. %%Title: none %%CreationDate: none %%LanguageLevel: 2 %%EndComments %%BeginProlog %%BeginResource: SDRes /b4_inc_state save def /dict_count countdictstack def /op_count count 1 sub def userdict begin 0 setgray 0 setlinecap 1 setlinewidth 0 setlinejoin 10 setmiterlimit[] 0 setdash newpath /languagelevel where {pop languagelevel 1 ne {false setstrokeadjust false setoverprint} if} if /bdef {bind def} bind def /c {setgray} bdef /l {neg lineto} bdef /rl {neg rlineto} bdef /lc {setlinecap} bdef /lj {setlinejoin} bdef /lw {setlinewidth} bdef /ml {setmiterlimit} bdef /ld {setdash} bdef /m {neg moveto} bdef /ct {6 2 roll neg 6 2 roll neg 6 2 roll neg curveto} bdef /r {rotate} bdef /t {neg translate} bdef /s {scale} bdef /sw {show} bdef /gs {gsave} bdef /gr {grestore} bdef /f {findfont dup length dict begin {1 index /FID ne {def} {pop pop} ifelse} forall /Encoding ISOLatin1Encoding def currentdict end /NFont exch definefont pop /NFont findfont} bdef /p {closepath} bdef /sf {scalefont setfont} bdef /ef {eofill}bdef /pc {closepath stroke}bdef /ps {stroke}bdef /pum {matrix currentmatrix}bdef /pom {setmatrix}bdef /bs {/aString exch def /nXOfs exch def /nWidth exch def currentpoint nXOfs 0 rmoveto pum nWidth aString stringwidth pop div 1 scale aString show pom moveto} bdef %%EndResource %%EndProlog %%BeginSetup %%EndSetup %%Page: 1 1 %%BeginPageSetup %%EndPageSetup pum 0.02834 0.02834 s 0 -21172 t /tm matrix currentmatrix def gs tm setmatrix -635 -635 t 1 1 s 635 635 m 20323 635 l 20323 29035 l 635 29035 l 635 635 l eoclip newpath gs pum 4197 18170 t 0.000 c 3316 -2737 m 3316 -3012 l 2773 -3012 l 2631 -3012 2526 -3034 2384 -3083 ct 2229 -3139 l 2039 -3210 1848 -3245 1665 -3245 ct 1009 -3245 486 -2737 486 -2095 ct 486 -1651 677 -1382 1143 -1150 ct 1009 -1023 882 -903 839 -867 ct 606 -663 515 -522 515 -381 ct 515 -232 599 -148 889 -7 ct 388 359 197 592 197 853 ct 197 1227 747 1538 1418 1538 ct 1947 1538 2497 1354 2864 1058 ct 3132 839 3252 613 3252 345 ct 3252 -91 2921 -388 2399 -409 ct 1488 -451 l 1114 -465 938 -529 938 -642 ct 938 -783 1171 -1030 1361 -1086 ct 1425 -1079 1474 -1072 1495 -1072 ct 1629 -1058 1721 -1051 1764 -1051 ct 2025 -1051 2307 -1157 2526 -1347 ct 2758 -1545 2864 -1792 2864 -2145 ct 2864 -2349 2829 -2511 2730 -2737 ct p 1037 14 m 1270 63 1834 105 2180 105 ct 2822 105 3055 197 3055 451 ct 3055 860 2518 1136 1721 1136 ct 1100 1136 691 931 691 620 ct 691 458 l 740 366 l p 1072 -2384 m 1072 -2801 1270 -3048 1594 -3048 ct 1813 -3048 1996 -2928 2109 -2716 ct 2236 -2469 2321 -2145 2321 -1869 ct 2321 -1474 2116 -1227 1792 -1227 ct 1368 -1227 1072 -1686 1072 -2363 ct p ef pom gr 0 lw 1 lj 0.000 c 3456 18223 m 8880 18229 l ps 5936 19705 m 4382 19705 l 4382 14916 l 7491 14916 l 7491 19705 l 5936 19705 l pc gs pum 1471 18309 t 112 123 m 86 52 78 7 78 -60 ct 78 -144 98 -246 131 -324 ct 153 -380 176 -413 222 -461 ct 213 -472 l 121 -389 85 -342 55 -268 ct 37 -224 29 -180 29 -127 ct 29 -72 38 -19 53 28 ct 63 59 74 81 99 127 ct p ef 520 -78 m 515 -72 511 -67 505 -59 ct 489 -38 480 -31 472 -31 ct 462 -31 455 -40 450 -60 ct 449 -65 448 -69 448 -72 ct 430 -143 422 -175 422 -186 ct 453 -240 479 -271 491 -271 ct 496 -271 501 -269 508 -266 ct 517 -261 522 -259 527 -259 ct 542 -259 552 -270 552 -285 ct 552 -300 540 -311 523 -311 ct 492 -311 465 -285 417 -210 ct 409 -249 l 399 -297 391 -311 372 -311 ct 357 -311 333 -304 289 -290 ct 282 -288 l 285 -277 l 311 -283 318 -285 324 -285 ct 342 -285 346 -278 356 -236 ct 376 -149 l 318 -67 l 304 -45 290 -33 282 -33 ct 278 -33 271 -35 264 -39 ct 255 -44 247 -46 241 -46 ct 229 -46 218 -36 218 -21 ct 218 -3 233 7 253 7 ct 275 7 283 1 318 -41 ct 337 -64 352 -83 382 -124 ct 403 -39 l 412 -3 421 7 444 7 ct 471 7 489 -9 530 -72 ct p ef pom pum 2021 18541 t 93 -50 m 89 -45 85 -41 82 -36 ct 69 -19 61 -13 53 -13 ct 49 -13 47 -15 47 -20 ct 47 -23 49 -28 51 -36 ct 51 -37 51 -39 52 -40 ct 114 -277 l 112 -279 l 87 -274 72 -271 48 -268 ct 48 -261 l 67 -261 76 -258 76 -252 ct 76 -251 75 -248 74 -244 ct 18 -29 l 17 -24 16 -20 16 -18 ct 16 -3 23 4 36 4 ct 57 4 71 -7 98 -46 ct p ef pom pum 2135 18309 t 181 91 m 240 57 273 18 273 -21 ct 273 -49 255 -71 232 -71 ct 211 -71 196 -57 196 -38 ct 196 -26 200 -18 214 -6 ct 224 3 228 9 228 16 ct 228 35 211 54 176 79 ct p ef 543 -282 m 552 -284 557 -285 565 -285 ct 605 -285 616 -267 648 -146 ct 660 -100 677 -17 677 -5 ct 677 5 673 16 662 29 ct 641 58 626 76 619 85 ct 604 100 595 106 586 106 ct 582 106 577 104 569 98 ct 559 90 551 86 543 86 ct 529 86 517 98 517 114 ct 517 132 532 145 552 145 ct 597 145 689 39 765 -100 ct 813 -187 833 -237 833 -272 ct 833 -293 816 -311 794 -311 ct 778 -311 767 -300 767 -285 ct 767 -274 773 -266 787 -257 ct 800 -249 805 -243 805 -233 ct 805 -205 779 -150 719 -50 ct 705 -132 l 694 -194 655 -311 644 -311 ct 641 -311 l 641 -310 638 -310 635 -310 ct 629 -309 603 -305 566 -298 ct 562 -297 553 -295 543 -294 ct p ef pom pum 2982 18541 t 93 -50 m 89 -45 85 -41 82 -36 ct 69 -19 61 -13 53 -13 ct 49 -13 47 -15 47 -20 ct 47 -23 49 -28 51 -36 ct 51 -37 51 -39 52 -40 ct 114 -277 l 112 -279 l 87 -274 72 -271 48 -268 ct 48 -261 l 67 -261 76 -258 76 -252 ct 76 -251 75 -248 74 -244 ct 18 -29 l 17 -24 16 -20 16 -18 ct 16 -3 23 4 36 4 ct 57 4 71 -7 98 -46 ct p ef pom pum 3096 18309 t 20 127 m 108 50 144 5 175 -71 ct 195 -117 204 -162 204 -214 ct 204 -254 198 -300 188 -342 ct 176 -390 165 -415 134 -472 ct 120 -468 l 144 -411 155 -354 155 -283 ct 155 -194 131 -79 96 -4 ct 75 41 54 71 11 116 ct p ef pom gr gs pum 8986 18389 t 112 123 m 86 52 78 7 78 -60 ct 78 -144 98 -246 131 -324 ct 153 -380 176 -413 222 -461 ct 213 -472 l 121 -389 85 -342 55 -268 ct 37 -224 29 -180 29 -127 ct 29 -72 38 -19 53 28 ct 63 59 74 81 99 127 ct p ef 520 -78 m 515 -72 511 -67 505 -59 ct 489 -38 480 -31 472 -31 ct 462 -31 455 -40 450 -60 ct 449 -65 448 -69 448 -72 ct 430 -143 422 -175 422 -186 ct 453 -240 479 -271 491 -271 ct 496 -271 501 -269 508 -266 ct 517 -261 522 -259 527 -259 ct 542 -259 552 -270 552 -285 ct 552 -300 540 -311 523 -311 ct 492 -311 465 -285 417 -210 ct 409 -249 l 399 -297 391 -311 372 -311 ct 357 -311 333 -304 289 -290 ct 282 -288 l 285 -277 l 311 -283 318 -285 324 -285 ct 342 -285 346 -278 356 -236 ct 376 -149 l 318 -67 l 304 -45 290 -33 282 -33 ct 278 -33 271 -35 264 -39 ct 255 -44 247 -46 241 -46 ct 229 -46 218 -36 218 -21 ct 218 -3 233 7 253 7 ct 275 7 283 1 318 -41 ct 337 -64 352 -83 382 -124 ct 403 -39 l 412 -3 421 7 444 7 ct 471 7 489 -9 530 -72 ct p ef pom pum 9536 18621 t 49 0 m 70 -69 77 -87 96 -118 ct 110 -141 121 -153 128 -153 ct 130 -153 132 -152 134 -148 ct 138 -141 141 -139 149 -139 ct 161 -139 168 -146 168 -159 ct 168 -171 160 -180 149 -180 ct 139 -180 128 -174 118 -163 ct 101 -146 85 -121 78 -105 ct 72 -90 l 94 -179 l 93 -180 l 63 -175 59 -174 29 -169 ct 29 -162 l 39 -164 40 -164 43 -164 ct 52 -164 58 -160 58 -152 ct 58 -147 58 -147 51 -119 ct 18 0 l p ef pom pum 9697 18389 t 181 91 m 240 57 273 18 273 -21 ct 273 -49 255 -71 232 -71 ct 211 -71 196 -57 196 -38 ct 196 -26 200 -18 214 -6 ct 224 3 228 9 228 16 ct 228 35 211 54 176 79 ct p ef 543 -282 m 552 -284 557 -285 565 -285 ct 605 -285 616 -267 648 -146 ct 660 -100 677 -17 677 -5 ct 677 5 673 16 662 29 ct 641 58 626 76 619 85 ct 604 100 595 106 586 106 ct 582 106 577 104 569 98 ct 559 90 551 86 543 86 ct 529 86 517 98 517 114 ct 517 132 532 145 552 145 ct 597 145 689 39 765 -100 ct 813 -187 833 -237 833 -272 ct 833 -293 816 -311 794 -311 ct 778 -311 767 -300 767 -285 ct 767 -274 773 -266 787 -257 ct 800 -249 805 -243 805 -233 ct 805 -205 779 -150 719 -50 ct 705 -132 l 694 -194 655 -311 644 -311 ct 641 -311 l 641 -310 638 -310 635 -310 ct 629 -309 603 -305 566 -298 ct 562 -297 553 -295 543 -294 ct p ef pom pum 10544 18621 t 49 0 m 70 -69 77 -87 96 -118 ct 110 -141 121 -153 128 -153 ct 130 -153 132 -152 134 -148 ct 138 -141 141 -139 149 -139 ct 161 -139 168 -146 168 -159 ct 168 -171 160 -180 149 -180 ct 139 -180 128 -174 118 -163 ct 101 -146 85 -121 78 -105 ct 72 -90 l 94 -179 l 93 -180 l 63 -175 59 -174 29 -169 ct 29 -162 l 39 -164 40 -164 43 -164 ct 52 -164 58 -160 58 -152 ct 58 -147 58 -147 51 -119 ct 18 0 l p ef pom pum 10705 18389 t 20 127 m 108 50 144 5 175 -71 ct 195 -117 204 -162 204 -214 ct 204 -254 198 -300 188 -342 ct 176 -390 165 -415 134 -472 ct 120 -468 l 144 -411 155 -354 155 -283 ct 155 -194 131 -79 96 -4 ct 75 41 54 71 11 116 ct p ef pom gr gs pum 2212 14764 t 112 123 m 86 52 78 7 78 -60 ct 78 -144 98 -246 131 -324 ct 153 -380 176 -413 222 -461 ct 213 -472 l 121 -389 85 -342 55 -268 ct 37 -224 29 -180 29 -127 ct 29 -72 38 -19 53 28 ct 63 59 74 81 99 127 ct p ef 520 -78 m 515 -72 511 -67 505 -59 ct 489 -38 480 -31 472 -31 ct 462 -31 455 -40 450 -60 ct 449 -65 448 -69 448 -72 ct 430 -143 422 -175 422 -186 ct 453 -240 479 -271 491 -271 ct 496 -271 501 -269 508 -266 ct 517 -261 522 -259 527 -259 ct 542 -259 552 -270 552 -285 ct 552 -300 540 -311 523 -311 ct 492 -311 465 -285 417 -210 ct 409 -249 l 399 -297 391 -311 372 -311 ct 357 -311 333 -304 289 -290 ct 282 -288 l 285 -277 l 311 -283 318 -285 324 -285 ct 342 -285 346 -278 356 -236 ct 376 -149 l 318 -67 l 304 -45 290 -33 282 -33 ct 278 -33 271 -35 264 -39 ct 255 -44 247 -46 241 -46 ct 229 -46 218 -36 218 -21 ct 218 -3 233 7 253 7 ct 275 7 283 1 318 -41 ct 337 -64 352 -83 382 -124 ct 403 -39 l 412 -3 421 7 444 7 ct 471 7 489 -9 530 -72 ct p ef pom pum 2762 14996 t 93 -50 m 89 -45 85 -41 82 -36 ct 69 -19 61 -13 53 -13 ct 49 -13 47 -15 47 -20 ct 47 -23 49 -28 51 -36 ct 51 -37 51 -39 52 -40 ct 114 -277 l 112 -279 l 87 -274 72 -271 48 -268 ct 48 -261 l 67 -261 76 -258 76 -252 ct 76 -251 75 -248 74 -244 ct 18 -29 l 17 -24 16 -20 16 -18 ct 16 -3 23 4 36 4 ct 57 4 71 -7 98 -46 ct p ef 235 -175 m 202 -175 l 213 -217 l 214 -218 214 -218 214 -219 ct 214 -222 212 -223 210 -223 ct 208 -223 207 -222 204 -219 ct 188 -198 163 -178 150 -174 ct 140 -171 137 -168 137 -164 ct 137 -164 137 -163 137 -161 ct 167 -161 l 138 -49 l 137 -45 137 -44 136 -40 ct 132 -28 129 -14 129 -11 ct 129 -2 137 4 148 4 ct 167 4 181 -6 206 -44 ct 201 -47 l 181 -22 174 -15 168 -15 ct 164 -15 162 -18 162 -23 ct 162 -24 162 -24 162 -25 ct 198 -161 l 233 -161 l p ef pom pum 2991 14764 t 181 91 m 240 57 273 18 273 -21 ct 273 -49 255 -71 232 -71 ct 211 -71 196 -57 196 -38 ct 196 -26 200 -18 214 -6 ct 224 3 228 9 228 16 ct 228 35 211 54 176 79 ct p ef 543 -282 m 552 -284 557 -285 565 -285 ct 605 -285 616 -267 648 -146 ct 660 -100 677 -17 677 -5 ct 677 5 673 16 662 29 ct 641 58 626 76 619 85 ct 604 100 595 106 586 106 ct 582 106 577 104 569 98 ct 559 90 551 86 543 86 ct 529 86 517 98 517 114 ct 517 132 532 145 552 145 ct 597 145 689 39 765 -100 ct 813 -187 833 -237 833 -272 ct 833 -293 816 -311 794 -311 ct 778 -311 767 -300 767 -285 ct 767 -274 773 -266 787 -257 ct 800 -249 805 -243 805 -233 ct 805 -205 779 -150 719 -50 ct 705 -132 l 694 -194 655 -311 644 -311 ct 641 -311 l 641 -310 638 -310 635 -310 ct 629 -309 603 -305 566 -298 ct 562 -297 553 -295 543 -294 ct p ef pom pum 3838 14996 t 93 -50 m 89 -45 85 -41 82 -36 ct 69 -19 61 -13 53 -13 ct 49 -13 47 -15 47 -20 ct 47 -23 49 -28 51 -36 ct 51 -37 51 -39 52 -40 ct 114 -277 l 112 -279 l 87 -274 72 -271 48 -268 ct 48 -261 l 67 -261 76 -258 76 -252 ct 76 -251 75 -248 74 -244 ct 18 -29 l 17 -24 16 -20 16 -18 ct 16 -3 23 4 36 4 ct 57 4 71 -7 98 -46 ct p ef 235 -175 m 202 -175 l 213 -217 l 214 -218 214 -218 214 -219 ct 214 -222 212 -223 210 -223 ct 208 -223 207 -222 204 -219 ct 188 -198 163 -178 150 -174 ct 140 -171 137 -168 137 -164 ct 137 -164 137 -163 137 -161 ct 167 -161 l 138 -49 l 137 -45 137 -44 136 -40 ct 132 -28 129 -14 129 -11 ct 129 -2 137 4 148 4 ct 167 4 181 -6 206 -44 ct 201 -47 l 181 -22 174 -15 168 -15 ct 164 -15 162 -18 162 -23 ct 162 -24 162 -24 162 -25 ct 198 -161 l 233 -161 l p ef pom pum 4067 14764 t 20 127 m 108 50 144 5 175 -71 ct 195 -117 204 -162 204 -214 ct 204 -254 198 -300 188 -342 ct 176 -390 165 -415 134 -472 ct 120 -468 l 144 -411 155 -354 155 -283 ct 155 -194 131 -79 96 -4 ct 75 41 54 71 11 116 ct p ef pom gr gs pum 7504 14685 t 112 123 m 86 52 78 7 78 -60 ct 78 -144 98 -246 131 -324 ct 153 -380 176 -413 222 -461 ct 213 -472 l 121 -389 85 -342 55 -268 ct 37 -224 29 -180 29 -127 ct 29 -72 38 -19 53 28 ct 63 59 74 81 99 127 ct p ef 520 -78 m 515 -72 511 -67 505 -59 ct 489 -38 480 -31 472 -31 ct 462 -31 455 -40 450 -60 ct 449 -65 448 -69 448 -72 ct 430 -143 422 -175 422 -186 ct 453 -240 479 -271 491 -271 ct 496 -271 501 -269 508 -266 ct 517 -261 522 -259 527 -259 ct 542 -259 552 -270 552 -285 ct 552 -300 540 -311 523 -311 ct 492 -311 465 -285 417 -210 ct 409 -249 l 399 -297 391 -311 372 -311 ct 357 -311 333 -304 289 -290 ct 282 -288 l 285 -277 l 311 -283 318 -285 324 -285 ct 342 -285 346 -278 356 -236 ct 376 -149 l 318 -67 l 304 -45 290 -33 282 -33 ct 278 -33 271 -35 264 -39 ct 255 -44 247 -46 241 -46 ct 229 -46 218 -36 218 -21 ct 218 -3 233 7 253 7 ct 275 7 283 1 318 -41 ct 337 -64 352 -83 382 -124 ct 403 -39 l 412 -3 421 7 444 7 ct 471 7 489 -9 530 -72 ct p ef pom pum 8054 14917 t 93 -50 m 89 -45 85 -41 82 -36 ct 69 -19 61 -13 53 -13 ct 49 -13 47 -15 47 -20 ct 47 -23 49 -28 51 -36 ct 51 -37 51 -39 52 -40 ct 114 -277 l 112 -279 l 87 -274 72 -271 48 -268 ct 48 -261 l 67 -261 76 -258 76 -252 ct 76 -251 75 -248 74 -244 ct 18 -29 l 17 -24 16 -20 16 -18 ct 16 -3 23 4 36 4 ct 57 4 71 -7 98 -46 ct p ef 163 0 m 184 -69 191 -87 210 -118 ct 224 -141 235 -153 242 -153 ct 244 -153 246 -152 248 -148 ct 252 -141 255 -139 263 -139 ct 275 -139 282 -146 282 -159 ct 282 -171 274 -180 263 -180 ct 253 -180 242 -174 232 -163 ct 215 -146 199 -121 192 -105 ct 186 -90 l 208 -179 l 207 -180 l 177 -175 173 -174 143 -169 ct 143 -162 l 153 -164 154 -164 157 -164 ct 166 -164 172 -160 172 -152 ct 172 -147 172 -147 165 -119 ct 132 0 l p ef pom pum 8329 14685 t 181 91 m 240 57 273 18 273 -21 ct 273 -49 255 -71 232 -71 ct 211 -71 196 -57 196 -38 ct 196 -26 200 -18 214 -6 ct 224 3 228 9 228 16 ct 228 35 211 54 176 79 ct p ef 543 -282 m 552 -284 557 -285 565 -285 ct 605 -285 616 -267 648 -146 ct 660 -100 677 -17 677 -5 ct 677 5 673 16 662 29 ct 641 58 626 76 619 85 ct 604 100 595 106 586 106 ct 582 106 577 104 569 98 ct 559 90 551 86 543 86 ct 529 86 517 98 517 114 ct 517 132 532 145 552 145 ct 597 145 689 39 765 -100 ct 813 -187 833 -237 833 -272 ct 833 -293 816 -311 794 -311 ct 778 -311 767 -300 767 -285 ct 767 -274 773 -266 787 -257 ct 800 -249 805 -243 805 -233 ct 805 -205 779 -150 719 -50 ct 705 -132 l 694 -194 655 -311 644 -311 ct 641 -311 l 641 -310 638 -310 635 -310 ct 629 -309 603 -305 566 -298 ct 562 -297 553 -295 543 -294 ct p ef pom pum 9176 14917 t 93 -50 m 89 -45 85 -41 82 -36 ct 69 -19 61 -13 53 -13 ct 49 -13 47 -15 47 -20 ct 47 -23 49 -28 51 -36 ct 51 -37 51 -39 52 -40 ct 114 -277 l 112 -279 l 87 -274 72 -271 48 -268 ct 48 -261 l 67 -261 76 -258 76 -252 ct 76 -251 75 -248 74 -244 ct 18 -29 l 17 -24 16 -20 16 -18 ct 16 -3 23 4 36 4 ct 57 4 71 -7 98 -46 ct p ef 163 0 m 184 -69 191 -87 210 -118 ct 224 -141 235 -153 242 -153 ct 244 -153 246 -152 248 -148 ct 252 -141 255 -139 263 -139 ct 275 -139 282 -146 282 -159 ct 282 -171 274 -180 263 -180 ct 253 -180 242 -174 232 -163 ct 215 -146 199 -121 192 -105 ct 186 -90 l 208 -179 l 207 -180 l 177 -175 173 -174 143 -169 ct 143 -162 l 153 -164 154 -164 157 -164 ct 166 -164 172 -160 172 -152 ct 172 -147 172 -147 165 -119 ct 132 0 l p ef pom pum 9451 14685 t 20 127 m 108 50 144 5 175 -71 ct 195 -117 204 -162 204 -214 ct 204 -254 198 -300 188 -342 ct 176 -390 165 -415 134 -472 ct 120 -468 l 144 -411 155 -354 155 -283 ct 155 -194 131 -79 96 -4 ct 75 41 54 71 11 116 ct p ef pom gr gs pum 2001 20320 t 112 123 m 86 52 78 7 78 -60 ct 78 -144 98 -246 131 -324 ct 153 -380 176 -413 222 -461 ct 213 -472 l 121 -389 85 -342 55 -268 ct 37 -224 29 -180 29 -127 ct 29 -72 38 -19 53 28 ct 63 59 74 81 99 127 ct p ef 520 -78 m 515 -72 511 -67 505 -59 ct 489 -38 480 -31 472 -31 ct 462 -31 455 -40 450 -60 ct 449 -65 448 -69 448 -72 ct 430 -143 422 -175 422 -186 ct 453 -240 479 -271 491 -271 ct 496 -271 501 -269 508 -266 ct 517 -261 522 -259 527 -259 ct 542 -259 552 -270 552 -285 ct 552 -300 540 -311 523 -311 ct 492 -311 465 -285 417 -210 ct 409 -249 l 399 -297 391 -311 372 -311 ct 357 -311 333 -304 289 -290 ct 282 -288 l 285 -277 l 311 -283 318 -285 324 -285 ct 342 -285 346 -278 356 -236 ct 376 -149 l 318 -67 l 304 -45 290 -33 282 -33 ct 278 -33 271 -35 264 -39 ct 255 -44 247 -46 241 -46 ct 229 -46 218 -36 218 -21 ct 218 -3 233 7 253 7 ct 275 7 283 1 318 -41 ct 337 -64 352 -83 382 -124 ct 403 -39 l 412 -3 421 7 444 7 ct 471 7 489 -9 530 -72 ct p ef pom pum 2551 20552 t 93 -50 m 89 -45 85 -41 82 -36 ct 69 -19 61 -13 53 -13 ct 49 -13 47 -15 47 -20 ct 47 -23 49 -28 51 -36 ct 51 -37 51 -39 52 -40 ct 114 -277 l 112 -279 l 87 -274 72 -271 48 -268 ct 48 -261 l 67 -261 76 -258 76 -252 ct 76 -251 75 -248 74 -244 ct 18 -29 l 17 -24 16 -20 16 -18 ct 16 -3 23 4 36 4 ct 57 4 71 -7 98 -46 ct p ef 158 -262 m 183 -262 185 -260 185 -251 ct 185 -248 184 -243 181 -234 ct 181 -231 180 -228 179 -226 ct 179 -223 l 123 -18 l 123 -17 l 123 -7 154 4 177 4 ct 239 4 307 -67 307 -131 ct 307 -159 287 -180 260 -180 ct 231 -180 210 -163 181 -118 ct 223 -277 l 221 -279 l 201 -275 186 -273 158 -269 ct p 244 -160 m 261 -160 272 -146 272 -125 ct 272 -98 251 -54 227 -29 ct 212 -13 194 -4 177 -4 ct 164 -4 158 -9 158 -18 ct 158 -43 170 -83 188 -113 ct 206 -144 l 224 -160 l p ef pom pum 2873 20320 t 181 91 m 240 57 273 18 273 -21 ct 273 -49 255 -71 232 -71 ct 211 -71 196 -57 196 -38 ct 196 -26 200 -18 214 -6 ct 224 3 228 9 228 16 ct 228 35 211 54 176 79 ct p ef 543 -282 m 552 -284 557 -285 565 -285 ct 605 -285 616 -267 648 -146 ct 660 -100 677 -17 677 -5 ct 677 5 673 16 662 29 ct 641 58 626 76 619 85 ct 604 100 595 106 586 106 ct 582 106 577 104 569 98 ct 559 90 551 86 543 86 ct 529 86 517 98 517 114 ct 517 132 532 145 552 145 ct 597 145 689 39 765 -100 ct 813 -187 833 -237 833 -272 ct 833 -293 816 -311 794 -311 ct 778 -311 767 -300 767 -285 ct 767 -274 773 -266 787 -257 ct 800 -249 805 -243 805 -233 ct 805 -205 779 -150 719 -50 ct 705 -132 l 694 -194 655 -311 644 -311 ct 641 -311 l 641 -310 638 -310 635 -310 ct 629 -309 603 -305 566 -298 ct 562 -297 553 -295 543 -294 ct p ef pom pum 3720 20552 t 93 -50 m 89 -45 85 -41 82 -36 ct 69 -19 61 -13 53 -13 ct 49 -13 47 -15 47 -20 ct 47 -23 49 -28 51 -36 ct 51 -37 51 -39 52 -40 ct 114 -277 l 112 -279 l 87 -274 72 -271 48 -268 ct 48 -261 l 67 -261 76 -258 76 -252 ct 76 -251 75 -248 74 -244 ct 18 -29 l 17 -24 16 -20 16 -18 ct 16 -3 23 4 36 4 ct 57 4 71 -7 98 -46 ct p ef 158 -262 m 183 -262 185 -260 185 -251 ct 185 -248 184 -243 181 -234 ct 181 -231 180 -228 179 -226 ct 179 -223 l 123 -18 l 123 -17 l 123 -7 154 4 177 4 ct 239 4 307 -67 307 -131 ct 307 -159 287 -180 260 -180 ct 231 -180 210 -163 181 -118 ct 223 -277 l 221 -279 l 201 -275 186 -273 158 -269 ct p 244 -160 m 261 -160 272 -146 272 -125 ct 272 -98 251 -54 227 -29 ct 212 -13 194 -4 177 -4 ct 164 -4 158 -9 158 -18 ct 158 -43 170 -83 188 -113 ct 206 -144 l 224 -160 l p ef pom pum 4042 20320 t 20 127 m 108 50 144 5 175 -71 ct 195 -117 204 -162 204 -214 ct 204 -254 198 -300 188 -342 ct 176 -390 165 -415 134 -472 ct 120 -468 l 144 -411 155 -354 155 -283 ct 155 -194 131 -79 96 -4 ct 75 41 54 71 11 116 ct p ef pom gr gs pum 7504 20294 t 112 123 m 86 52 78 7 78 -60 ct 78 -144 98 -246 131 -324 ct 153 -380 176 -413 222 -461 ct 213 -472 l 121 -389 85 -342 55 -268 ct 37 -224 29 -180 29 -127 ct 29 -72 38 -19 53 28 ct 63 59 74 81 99 127 ct p ef 520 -78 m 515 -72 511 -67 505 -59 ct 489 -38 480 -31 472 -31 ct 462 -31 455 -40 450 -60 ct 449 -65 448 -69 448 -72 ct 430 -143 422 -175 422 -186 ct 453 -240 479 -271 491 -271 ct 496 -271 501 -269 508 -266 ct 517 -261 522 -259 527 -259 ct 542 -259 552 -270 552 -285 ct 552 -300 540 -311 523 -311 ct 492 -311 465 -285 417 -210 ct 409 -249 l 399 -297 391 -311 372 -311 ct 357 -311 333 -304 289 -290 ct 282 -288 l 285 -277 l 311 -283 318 -285 324 -285 ct 342 -285 346 -278 356 -236 ct 376 -149 l 318 -67 l 304 -45 290 -33 282 -33 ct 278 -33 271 -35 264 -39 ct 255 -44 247 -46 241 -46 ct 229 -46 218 -36 218 -21 ct 218 -3 233 7 253 7 ct 275 7 283 1 318 -41 ct 337 -64 352 -83 382 -124 ct 403 -39 l 412 -3 421 7 444 7 ct 471 7 489 -9 530 -72 ct p ef pom pum 8054 20526 t 49 0 m 70 -69 77 -87 96 -118 ct 110 -141 121 -153 128 -153 ct 130 -153 132 -152 134 -148 ct 138 -141 141 -139 149 -139 ct 161 -139 168 -146 168 -159 ct 168 -171 160 -180 149 -180 ct 139 -180 128 -174 118 -163 ct 101 -146 85 -121 78 -105 ct 72 -90 l 94 -179 l 93 -180 l 63 -175 59 -174 29 -169 ct 29 -162 l 39 -164 40 -164 43 -164 ct 52 -164 58 -160 58 -152 ct 58 -147 58 -147 51 -119 ct 18 0 l p ef 205 -262 m 230 -262 232 -260 232 -251 ct 232 -248 231 -243 228 -234 ct 228 -231 227 -228 226 -226 ct 226 -223 l 170 -18 l 170 -17 l 170 -7 201 4 224 4 ct 286 4 354 -67 354 -131 ct 354 -159 334 -180 307 -180 ct 278 -180 257 -163 228 -118 ct 270 -277 l 268 -279 l 248 -275 233 -273 205 -269 ct p 291 -160 m 308 -160 319 -146 319 -125 ct 319 -98 298 -54 274 -29 ct 259 -13 241 -4 224 -4 ct 211 -4 205 -9 205 -18 ct 205 -43 217 -83 235 -113 ct 253 -144 l 271 -160 l p ef pom pum 8422 20294 t 181 91 m 240 57 273 18 273 -21 ct 273 -49 255 -71 232 -71 ct 211 -71 196 -57 196 -38 ct 196 -26 200 -18 214 -6 ct 224 3 228 9 228 16 ct 228 35 211 54 176 79 ct p ef 543 -282 m 552 -284 557 -285 565 -285 ct 605 -285 616 -267 648 -146 ct 660 -100 677 -17 677 -5 ct 677 5 673 16 662 29 ct 641 58 626 76 619 85 ct 604 100 595 106 586 106 ct 582 106 577 104 569 98 ct 559 90 551 86 543 86 ct 529 86 517 98 517 114 ct 517 132 532 145 552 145 ct 597 145 689 39 765 -100 ct 813 -187 833 -237 833 -272 ct 833 -293 816 -311 794 -311 ct 778 -311 767 -300 767 -285 ct 767 -274 773 -266 787 -257 ct 800 -249 805 -243 805 -233 ct 805 -205 779 -150 719 -50 ct 705 -132 l 694 -194 655 -311 644 -311 ct 641 -311 l 641 -310 638 -310 635 -310 ct 629 -309 603 -305 566 -298 ct 562 -297 553 -295 543 -294 ct p ef pom pum 9269 20526 t 49 0 m 70 -69 77 -87 96 -118 ct 110 -141 121 -153 128 -153 ct 130 -153 132 -152 134 -148 ct 138 -141 141 -139 149 -139 ct 161 -139 168 -146 168 -159 ct 168 -171 160 -180 149 -180 ct 139 -180 128 -174 118 -163 ct 101 -146 85 -121 78 -105 ct 72 -90 l 94 -179 l 93 -180 l 63 -175 59 -174 29 -169 ct 29 -162 l 39 -164 40 -164 43 -164 ct 52 -164 58 -160 58 -152 ct 58 -147 58 -147 51 -119 ct 18 0 l p ef 205 -262 m 230 -262 232 -260 232 -251 ct 232 -248 231 -243 228 -234 ct 228 -231 227 -228 226 -226 ct 226 -223 l 170 -18 l 170 -17 l 170 -7 201 4 224 4 ct 286 4 354 -67 354 -131 ct 354 -159 334 -180 307 -180 ct 278 -180 257 -163 228 -118 ct 270 -277 l 268 -279 l 248 -275 233 -273 205 -269 ct p 291 -160 m 308 -160 319 -146 319 -125 ct 319 -98 298 -54 274 -29 ct 259 -13 241 -4 224 -4 ct 211 -4 205 -9 205 -18 ct 205 -43 217 -83 235 -113 ct 253 -144 l 271 -160 l p ef pom pum 9637 20294 t 20 127 m 108 50 144 5 175 -71 ct 195 -117 204 -162 204 -214 ct 204 -254 198 -300 188 -342 ct 176 -390 165 -415 134 -472 ct 120 -468 l 144 -411 155 -354 155 -283 ct 155 -194 131 -79 96 -4 ct 75 41 54 71 11 116 ct p ef pom gr gr 0 28401 t pom count op_count sub {pop} repeat countdictstack dict_count sub {end} repeat b4_inc_state restore %%PageTrailer %%Trailer %%EOF quesoglc-0.7.2/docs/Image1.png0000644000175000017500000000555610766745704013057 00000000000000‰PNG  IHDRʳDþ´PLTEõþô ðþæ #IDATxÚíZ_lÛÆ¿#i‘rX“²2‘’í@@iºÍÅŒˆRÜ@NÛÁ ún/v`i·¥ñ,JVmï:¥é¯-6-о­/6`À¨hZ,ë`6¬Ì2`o ‹>Tsßñ$R¢¤8݆.;(Ò}üñw÷ÝwßÝ}÷9õ,*Âa†£Ð4H â< E0RDŒÝJ›õ*+î«(ñÞÇ× ¤òjjñý$6›?G~q,¹˜²ŸD©ÅÃv…z!wõ‡G¹ É­¶½'HézVR^eFU8±ÜgíïiO|}+„Ÿó*×;ökøÓÛ©$—.-’'89[Ómh)ŽpÇÓÔ×¼aõëW饇]W¶žV:L².ßWÝ㾿\àýKdµC.‚¬wøÃö}Æ??9bÎ7=Y8Ïí<-¾íâ˜ç÷sõŠ´Ñ!kuj¿æÊÔ/ut¡%Gx©XÇ-œY‚÷ËžLó_ì×]™§ùWHkɉígÖ?ZwdŪgf÷ïKoë#jð»{Ç«WØE_¸²_Ÿc4ÇSEÄAm¼Ã©7s7Þ½|öuý/÷äo,žÕÿøëË_Yfž$³Š©œú.Rf.*M?ZžB SÝ@ž!Ûqüláøþ}íÑjùòè¹Øã¿x}øVåØ÷ÿ;tÙžr5°å»ó ~þcÄÓ]~ËÎå_=ùãü› ËÉ.´œEͨ“#3p~E»ÛKß™' ]æÂ¡¢}(r¶¡EvQ©{“òuÍA½ÎYzFGÅ"šG ´‰V­Ë>´n ‹®ëEùÊ&«ÍÍû¸¸l¢UvGS‹ôkÏÑúò1Jk&*Ò;Ð<­ÑºÁûPt*â› @5$Ôu¿V¬ÕÔ(i½Dy'(kÊÒ ¢•ÀXE¬#ЀbÖ?³4ZqQ½ñ¡ÄêE–ÖŒâqMÞ)5Ù­vœr¾äO¯4¾amfJ7ß¿ù™lÞ2Û¾P°‡ FfQÛ ÎIß]´~ÁGB#ªÇS„FYÊ´eé”rQJëX‰õºˆ>ŠÝBWÎLø2à.„;pDÃ{÷rQ|ÁkfNuªös‘ØÙÛ§jHLÁ«œgYŒ:w†TÝh'úíÜÖï¯Âžþü…Ôz¾üó6Þ8ÁyˆÄÆêâ÷rL«“h ‹ ó­bV·F«yÌÙèI4£ZT¨SÔiê%ñaœ˜FO½•çÈá F¾šK-âÊø¸:ú†˜ÇOB¤³ôJZ:EÎ…“g¯O¼4}¤LI§ïÿÍÄ>åÒ¡Ù|mjªâ¨ÌôÚFUÊõV¦—Ç8ÝÚ§1H`a–ÿƒÓe«–äú¡ý¹ÝK‰úÉwj#³=4ûBbtßRejè©ŒÄ”ŠæòÁÓ‡Q–òpÛ©Ö’L F4#IŠÑò·Þ{%Ÿ:-Þß½õ7œÖ­ýW–KŸ³™AØ GyDõAÇœ-<¤Ä(=ÑL¥{¢éžhIsÐBϳû».j¶£„Z@óYoÀé<Ùá`>ßDÖukó ½‹d³dÐg,\Ö òï6”.úZÆëúA†Fzýås¬¶<ïGËZÖ º‡£ÔÒ0Cv©VÓe=€ÂP 4DV#¨$øcÕ¡Ô?ÞD€’æ!¢Xï…âzÓF/Qâ 8µKÅ·‚(á  Pv=ˆJ*Àxµ1º”6=@ƒá¿/JëØAË@e@5DÐyºlúÑ4U€HÆCÁ¿®P—rPVkò>Ô QP„ÆFqS‹ [¥†ÀQ>T_…ÐI/mjò§à¬Ùöè[}&7.ZÏen×ß¿õ±lüÃhoå$½ÂÒzq~ì€wÊà7õJbÕ1d@Œ4Fžà>aµÚq t_&Ô¡ƒ 5IuqòQÝ»<òGÝåëD_Z eàdÀV»âzGçÞY‚Q·s®§ÎÊ ñ*¨÷«e ªWíÜù-¢¹ÚõAPÝf¶¹j»ß-+½û~Žîöšõÿr”µy/ÏInFžÇ°ÎCZwVª:GÖæˆìýØñj†â1€*ž ”Št\Ÿâ“ó„”…_Vs1^¼D­RqX+ÊA.¹Ä\[ÊÁ/ƒb ±”RÉ Žq,Ï*·µ£â3Û‘3ÛsGÅóŸjcéo<È®¶lbï® j{¦û"¹<½§qÚw®Ìž¨;K¹'jýØí!ÍÝܳÂx×O fP÷N4è§vÙš ¥:jSY­;¯–ñ.ù©‚Öô»¬gtµË`¥Pê|Æð‚3Œ­PêªlÚT ~2»iÖ²tV·ÀzdÒJ»pÇ u—†@|"³ií"ÜM¨ÖŽ¥Ëeè5Jz&”ŠM–4Ÿ¹oÀ=Ò„þ#¥ë–¾†À2\ëÃÇJ´Mm`PTC„Šä2zÉZC R8U·Ý ºÈÉAªÉ‚{ j"¶î×–caÙtX¤f ›Šˆî£°àLS0! T¬'Á Í¾ó [{I·©lƒÝuû·Ay"Lâ@ $Þ¢²–Áö§–,Ëò¨æ¶E- ƒ¨À´ýȦÊps©¬1ˆJ2`Ä*¶Lš3±~T”%îD¨ÐŠÜô¨ÍTÞ¢w[T¨:TÚžœ& HB©š³¬ÈäÙ¨* ¨»$L,…{˜Ê¡êMú¨¤Í¡Ô¸»º‰7icT¢0ƒC©öÁX²§$CT3éiBm¢’¡–šÐ{IëW]³©ñ¨U$èàðòMÜŸ¶ØÛŸe­îè=nÉkÎÆc5äŸY¬!¿ßŒ5ÙÚ͘ô'–%Xk°Û fÆê¾5[wP=ÕµW Ù~l×]³?Κ±á总:Ó™yéjwU áw&pýáži}¹½f†+–yUXi)<à‚Ú÷—ˆÓ+ÓVXЫҙ̇SÆ9+lÍ?èM•½o¶vü•цU¸ý°hGaEÖL¸#9:伆»éUÚ%h·'És ºoÀï“Îã¤sC;"ïŽïœçˆËC;b'ÝÂw`&&`¦»]9wÊÿ÷³îò/‹Œ|Ôì16ûIEND®B`‚quesoglc-0.7.2/docs/tutorial2_wrong.png0000644000175000017500000002022710766745704015105 00000000000000‰PNG  IHDRŒid¶[ IDATxœíÝ[l׿ñ¯ª/¢H‘²hQÔÅ–”X–l9q,{Ök;’’x2Žgì’Å<åa0Àdöe³³‹y æÁ3˜‡‹ÌË> HX;Xo&“‹by|KßbÅ–Ë–eI–%Q¤$²›ì®Ú‡î¦šì[uu]ΩúÿJd³ûÔ©Kw}<§Î)ç¿ÿZïþç?ø óþü/þÜYÿ˜ãû7³á‘#G|Izú駬FqìØ1MMMiÛ¶mÚµk—\וãtìg€@üqIÒñãÇW…sîü9IÒ׿öuÿ©§žJ§fÍ÷}Õj5½üò˪T*Ú¹s§öíÛ§b±¨B¡võ€¥¾ô¥/é‡ÿôCGjƯíëþ÷¿ÿý´ë…!9Ž#Çqäyž$Éó<½þúëZZZÒm·Ý¶]×M¹¦Ø§V«iaaA7nÜP¥ZÑòò²\×U¹\Öøø¸¦&§4>>ªgÏ–²Ÿxâ ýðŸ~è[,-- ]!˜gÿþýò}_'OžÔÙ³gµoß>íØ±S6lH»jXciiQsWçtýúuÕëuù¾/9RÝ«kiiIÕjU7nÜÐæ©[´yóf‹ÅÁ…Z\¶søðaÿ»ßýnàŠÀ¾ïëܹsº|ù²¦§§uðàAMNN¦]-Œæû¾æççuåÊU—«’#yuOËËË«¬T*©\.¯öàMnšÔÌÌŒÊår&ËþÊW¾¢¢$­¬Ô‚mEXeÛ¶YmÔùóçõâ‹/éÐæÍ›Ó®ÆZ¸¶ K—.©îÕå8Ž®_¿®¥Ê’6ŽmT±X”ïûZ\\ÔÕ«W599©M›6éÚõkòåkffF¥bïðekÙ’±V«Õª¤áúÒËå£vS4>1®Ûwß®÷ß_ÇŸ=®|P[·nM»Z§º\ÕüüU9®#yÒÜÕ9MŒOèÎ;ïÔÄø„\×UÝ«keyE?º¨3gÎheeE333ªT*š_XЖ[¶tÍ=¶–ÝR”¤zmp`¬×ëúé/ŽËwK7ü†‚¯‡|@7nøÜ‡zhàs^xá…Ϲçž{$Io¼ñÆà ¡U¿ uæ5{îØ¯©MÛPRÁuT[®h~î#½÷Þy-{k§ÃlŸi®ãh×κpá‚^zñEÝwß}Ú±cG¨²È"ß÷µtcQRcPéüü¼f¶Îèî»îV¹\–ïûò}uÀé-·Ü¢ÉÉIqÏ=’ã¬NÝø_rœæÏÍ븮þß,5ç ääÉ“«ß·cûc’ôÙÏ~¶±²ÇŽu}¬õ½$>|xõûÖó7oߣ½»¶kjbL®>¦RÑ•·²¬kW/éí·~¯ë5oM½û­ÿï^ý•>œ»±ú³[Ú¢£Ÿþ”JS{T«YóÜQ£$ÍĮ̀X,ê•W^ÖÁƒ÷h×®]#— €íêõºŠ…bc4ñâ’öîÝ«z­®••9räëæ9Øu\Õj5ù¾¯ñ㚘˜ÐÜÜœöìÙ#G7§»Tv½^輻ã8«­‚£”½²²¢zÝÓSO=¥'¾ü„$ééÿÛ¸1K¥R Tv»¡£çyò|_Žn†Ïó于|ß“ëºòÔhktˆõ¯«ù¾ŠŽ£ ¾§ž¯âÆ=ÏmVC^½¾¦ùrÍÓLÉÕí]ýþZs‡L6^ïÕ.w,k¹Ö½Î­çœmŒüþÕ±Õ……Šœâf}ùKG»Ö»ßú;îF¸ÿAíß9%ß«êÔË/éwg¯v}nT±ÝØØ˜æççuúw´ÿÀÈËÀ¾AÍq-//kyyyµ‹¶½—µP(¬^gØÊ;®ãªX,6B¤£Ž®Ý^e{~cbíne·„-[’žû·çäûÒÃ4gmyþ½ðü‹zäÓ*»]ày[·–ñÕÜ@­Æ½›‰«ß·žãyžê^=ð<ë­Ý饚î/é¡?¸GïÍ­hûÇïèxîåO[K®¹ÿ^ÍU½öÚkzõÄ}þS;uðèQm>û¡–ý’¶ßÞ¸vï‰W;–իΫ˩yš-´ÿ®š^ô4Ý6MMв$é3}N·Ž$I7>úPÎæ:¸yçj½ãæû¾Æ'ÆõÞ™÷4==­-ÓÓ±/ÓÔj5Ü¢ å‚6MnÒââ¢&&&$_zöÙg»¾æègŽ6nÁçÕµcû U›wV R¶#G/<ß}ê=×u­…!ËV³WøÈÑO¯ÎnsäÈ=ó̳*—ËêÝ®(©ÑT9€ßìâ4~htk¶ÿì:’üF{ëqÇ‘çùÊïfýëN<óM=üIÍÌîÕ¾Í×ôÞïžÓô}GÖ<÷¥_¿©Gîý¸¶ìÚ£[›Aö•W^ÕÕ·_бÚݺçŽÝÚqû^¹ò´xí²N¼}B'Þ]¸ìõ¿tüU=ôµuûíÚ¸¸ ·_û¥¶üûǺ¾¶ßú·Â¢$mšÝ­}m3ݼòÊ«=_-G7ŽëÍ·ÞÒ¡û©L×4 gªÕåÆ Ù‰qݶë6½õÖ[ºeó-’£Õ[é­Wp ºvíš9Ú»w¯ÇQµ²ÜqÞïUöçý\×rÇ‘ïù:ûÁÙÐeË‘ýÃÎò?ÿGÊ÷ü@õ^S§Ã‡ûù—ÿeÐvl8¥mÛfV¯k­Ôúÿ[ߟ>}Zwܱ/ÐÄÝH—ïûºxñ¢8 Ûn»=íê¸ññqÍÎÎÈq:uJ/^Ôž={´¡¼aM7±ã6æf<{ö¬®]»¦C÷ÒŽ;tõê¼._¾Üuì‚­eKÒŸýÙŸ6Zƒ^7;;Û[ZE4Êjü°k×m*•J±\{‡èMMMéÝwßÕÖ™­*—ieäËâÒ¢®iëÖ[uàÀ¹®«3gÎhÓ¦Mššœ’ã:ªÕjZ\\ÔÜÜœ$éS÷~J»víÒR¥¢……­ô˜áÄÖ²[† ŒSSSž·ÑårY•JEç>8§Ý{ö¦]åyu]º|ErMo¹Ewßu·¶ÞºUçΟÓüÂ|Ûó<íØ±C»oß­ÉÉI---éËézó}Y*»¥E ƒ$GšØ4¡óÎkûöí*•{ß"€,ªÕ<]¼xQÕJEÓ·NkffF333º±xC^½q“’b±Ø˜ìº^×ÜÜœ._¹¢¥¥ÞSÒØ^¶´ÚÂè¹È×-hll£._¹¢mÛ¸×4 <¯®ËWætíú MMNjbb\cccÚ8V’çyª./ëÚå+ZXXЋ}§£ÉJÙEI$F¬Qp]]¾tI33ÛÒ® ©©V«ú¨ZÕG—(»Ù% ¬Õq+H[][ßy÷÷iÔ†9Íq@î|ññ/wu9ÐD`@_FôE`@_E©ó¾Ð@Ks”4 èŽÀ€¾Œè‹À€¾Š’T(Ò® E #ú"0 /º¤Ð A~ó›n›B`ˆ‘?ø)Æ+JÒ/ŽýRò}Éq$ßS±\L»^‘koI´ðe!,J’+Iwî»C_üâãšžžV­VK»N‘ò•lxKzyqcx4Ȭ4‚[ÐåÙ(é{™“F³)‹À2aØÀæ+ºë³%#°˜ AÍ„:ÄÀ¬’‡€f½kÓA`@_F`5Gá¯DÑbiÓ-þÂâFr.ÊÑÂqëWOGtYÇ…Fr*kw#‘ì ¾¶!03Ý‚bÖ‚#¢E` '²Ø¢hЬ·lr #GHĨha £hQ †m4€ ñEPL«{8ËÝÒtI`¹<‡C$ƒF,uK"Á½°T–»@m•Õ}B` cF¹UÐ ×0`1n• ›n˜Z@æ¤þ²< Œ`-’è†À[:€ Ëb÷(’G`P´­}Y êF`¥A·AÌZhKÓêã jý³åZ@[ÑÂÖ0)|E}ûÃ$e©…“À@ÆÙ\lŠYD`F!(š‡ÀŒ‘vXŒzù6¶îvC`FH;,¢7FI€Ô ‹A[êñ …tH2xõ[–£áºu‡}~L«OFrÀÔÐ2(,†ebp´¤"®°G9yG`‰K",†Gw|Úë4*#–teÓ%]oÛÚ % €Ò‡¾¢[Q†F²haÀpýB–M­Œ6ÕkHAÐ.å(C­wé²yûHÐ0×f©Eζu±­¾qãF0l!°À$´0£0£™³MXSºƒM©Ç°ŒÄÀæioÚeaLfK€$0‘0ó#®n˜€6Ìkl (y`Ó¾àFFU+­yù`SPl!0¬—ÆdЄ»ì‹câr[V‰¢ËÖÄ@Ÿ#¶sXF€ñ¢>É·Ê318v³¾ž„$À0R¡(ªàØþú¨­ô«SëwIÇ$»fóÒ Üoß™¸þŒ’'é´0ËsÚ¾Ö?>ª e8ëþº|ÄcÐñfb 2`Œ4ç.4å$MøË¶an iÊ1)Ñ% 0DTs Žr’ª;4ìà Â_ƒIÝÒQÖŤ8,Z© z"íÖæ9QÔvJ+ˆ†=®L9ia ¥× ,ì‰x˜°8ŒQ¦P1©…Ël“|#0ºJr”ò iRºâÚþ¦´ØÙ†.iÀš{ 'u±}Ë ðõ–䶉»õ9ëLØFÈ©(Ãá° ª.q¿~”mCX5íצ‰.iÀta¨¯Ç+’Õg£Í¡Ï„÷-Œ@ÊL›k ö {üŒr²m² 'ܼKó˜á3vtF`~ø¡nA‘5¤Áéò…›x_ޔ涰½;Ùö÷]Ò@PÝ¡ã4w‚˜òá…l Ûm×ë5£LIƒð’¾4Ŷý<̽¿Ý«yØõNë²!S‚&X¯W«á¡°k±#½̆ë`Ó|Ø޲(ª}Ö`¤nï±aÞwî¿Iïg#ò+¦`ر˜HKƒ­ÖqŽ*Ž›I'±¤ŒÒ‚kÒ¾3AšÛ$®Á3q„FÓÞgFäCîäöG£|sr‚ȯ û>ÎI‰M;Ñ&0é}Ñ^—¸ÎCQ#0"[¶ŽúbGÙ¾/?â–I˜ÏÔ? ½Ñâg†¤÷ƒÉï“ëÖŽÀ;…ìNŽã*ê“3'{ó0€›¢úŒJ;¼G±ü<}Va¾^£“‡)"¢ªt“§Œ¬3õ8 S/þð°#¥£U¸Í;#Ìà ”´ÿzM»N\'δN6£ŽÛN |‰^ÜÛfØýE0ìÀˆäÅ<:Ù´Ñwœ,%Y8¡òž4K\\9V³p<'…ÀˆxEÐh1‘—d]Ó°E”Ažc>zFD#¡9 ;Cy£Œ”޲•”¼tôÛîiüaÕ$Ç6O¶×?‹âÚ'Q´6r¬ÄƒÀˆá¤ {¡k 6 ðà yÅ‹ÀˆÞêNŽƒiN¶Ù`ó~$´Úņ‘Ò½n“§.‡Å1k#Œk5V¿ZÚ|‚G¶˜ØL¨C^eõ³(‹ë„îŒyby0„™0²vt%yâOëdÜk¹iî˨ÃnV\Xl B`Ì*‹»“ÓF+Loa'nǶÝ(a‡ã;¼¬n7Â"‚ 0ÚŽVCsdt¤t#Ñ%3Ö-¬°Í¤}šV=hÙ3C–&¨G2Œ¶ †fÊ Ê”z‘D=³Óà´ýoËñ„pâöÌsˆ°Œ&¢;)J:„˜Òê6¬¸[ƒ”·®iëlša¶7ZŒiгÕЉ!¥ÙZE@D=uM{¹£âý‡AŒIH:Jòוíôª èZF9Êl &\˘T+cÞG(§=B`0H’]qy 0^ZTÄݺÎÔ5È¢lƺ“óz wQµ2Ž F é½ÊŒ‹©TÄQ.gØ,;1áîd+ƒ¡…#xÓdÊHé(OŠi´æä©kÚyÚæÃ¾?‚Nˆ>*>e‘5vÆö07êÉyÈë Gíªˆk.;ô–§“hVØÖ-×1fÓ6cÔíä6“&òl`w`”ÂŦ­åDÆR¾\±^Áضã,ŠúFÑ ;»ã ®?&»V¥l /£ˆã°lÛîiÕ—30˜Ý±%cÓÖØö!Äɶné°Òpb¢Qïvyú³;06ƒbœ-†|˜ä[^ ¢eÒ}&ÕeqÖ›÷40<7í ˜,“*­n|Ä+â휅=–É÷“%FÙöiî7§íˤ²€<²»…‘ðÓÁÄ1“&°5¥µÅ”z >ìãh 3W¥iŸ@Ø3Ìö“Mý󡼋ò=`ûgJ;>€äe"0:}FJgåÒ&Qmó s«!Ll9·Q–B#€deþFN2ÉñÏɈ\väíý˜·õ]™Œ£ ¨÷¶Js_„^6רÂ@„XaóÈÒ¼Q-ÇÖfÑ“¸;:7ëÀlöÆs0æíÃ1É“|e9]¾â\ž-òv\b8Lb`Ì0ÓOA¦¶èµ̇†<1ñXT'Þ£Úeb”´¤þ÷”F䢚-̨MFÌÑà} (Z14&ÍÍR×´é¢ÞÖy )y]oÙ@` ³Á$äÀ—8¶‡ 'RSFJgöxÀ†c²,‘/Òš1ìvNzÿäíxò¹Î¦æR 0I6#r) ­m€ ²38I²)"{[Ã`ÿG§ß{š‘ÉL•QÒ°÷¹Ež Ø$[-Œ1É{ˆÉûú·da;ØRl¬ó Y\'ÙF`Ì3îuœŒŒŒ”æH€üÊN`d¤t‡<œàGYGSއ¼fŸ¥]W@×0(A¯®c4wÙ€|Ê^`´è#Ø(©ÐhÇ»ò!{Ñ@6øënó¶±YZ-¹A—IX³ ÚªBê- ÷$ݺÖøbPë÷(¡1ÎVFs¶ …ÀRf‚a A&Îmu˜°õšI®%¶qÞZ¯ìŒ’–b)í·}Ù"éºÆ±<§í+«ÒZ·Q—äýô=“åý ¶£…Ñ@½Nœ6ÕQ’E+먯g€Ù² »V¬Ók™D—­éÛ Òêšg߀² ĉ‘m`ºÖþI*8r<€=Œ³ò$ÃÀ+·C@¦Œ”ŽkàKœ­Y>. ˲Ü·7ª"'¿l°u¤tœÚm®Od/0ÆÌÆ“Ÿ S°`°0ÁµÛ¾m•Õ>&ekFÀb¶ü1ÈãòxR§U©SÔÇA+€=Œh0XhX„ .Ú¶swÊÃ]qÉËf`Œù6"¼õæxè¶MƒÀ¨Fé¯ÿ Ùô‚H…p“õÁ/Iñ,o?€²ÙÂØq« l qï…(Ê7áHéÖbhãþd-ŒHD\-~ÛÿaËçÊôG` !ëݬ½Œ:dÔÛmÔºDmàºe°ÅFÜÃ=¥×‹"4šû®C¯`˜±‰äù‘ÝÀ˜à=¥mEX‹b›…½u]¿å-kØú‡j5$2&»1ÃÒºQ-}ÝbVRëº;™pÈìÆ ÞS:«Œ‡C:d?0"i·r¶ åèN cH™)=ÄÀ—´CcàíO«!#Év`dàK‡¨ƒnZÛ¯ë: ˆE¶#ÑŠc‰Þ&îd“À˜Á/&¶ŒÆQ'‡VCR—Àˆ5úuKÚe¶µ‘`€¹Œ#°yàKÜ­“ë·Kûòº†C‚!Æ"0¢ƒï8P7jˆk †kJ"`•ìÆŒŽ”6ª¾t'iÙŒgPìyáš Ð @Þä'0Z8R:ñpؾ}|Ÿp$å)0ÆÄô/G·ÿ¾ý{‚!h"0fÄPÁ°ýg‚!€Àn­Œk¦‘ Yn¯Á8º“×O0!å#0)=ª~¥‡î¶öý;$(Ñtt'ƒå+0š0Ršîd`™|ÆuR™Óîd`™ÜƨC"£“@Öå'0F0ð…ÑÉ ò‡@w2ÀM¹ ŒŽïËo;º“Ë]`”Ú‚"ÝÉå+0®¿Ž‘îd€ò%‚!ÀÜ´+³Ð}Ð}Ð}Ð}Ð}Ð}Ð}Ð}Ð}Ð}Ð}Ð}Ð}Ð}Ð}Ð}Ð}%ééÿDÒOV¼ûî;ÓªRôôÒ̆7%é?í×<øÚo_K®V0Æú\øä“O6c¥RI¥B0K·\H`Àªž±Z­&^˜§[.$0`}õ Œ+++‰Wæé– »F§à$S#¥g`¬Õjk,JÉÔFYŸ ¥f`,‹‰Wæé– ‹’T*­mQ¬yÉÙ·>J½c•ÀG=ㆠÖ<¸T]Ò·ÿæÛÉÔ ÆXŸ %Éñ}_GŽñ¿ño„.ø—Ï<«¿úï5Jݱ¿ýÛ¿ÓáG ýúï}ï{:~ü¸³zUc·4˜ãhéÆRø× ržç–ñ$Õüf—ôñãÇ#GŽøßüæ7CVír£j¤kll,Ôë¾óïèýýÆõÉËRIDATu¤f`”n†FIúÖ·¾5T®ëêì¹³¡*€xŒmØ0t`|òÉ'%5²aë1Ç÷ýŽ'¶‚#òeÛø çÿ·?Ñš§ñæÝÿþ?ç1q¿uq”ŸIEND®B`‚quesoglc-0.7.2/docs/tutorial2_wrong.eps0000644000175000017500000004743010764574551015113 00000000000000%!PS-Adobe-3.0 EPSF-3.0 %%Title: Tutorial2 %%Creator: GL2PS 1.3.1, (C) 1999-2006 Christophe Geuzaine (geuz@geuz.org) %%For: QuesoGLC %%CreationDate: Sat Sep 2 19:14:42 2006 %%LanguageLevel: 3 %%DocumentData: Clean7Bit %%Pages: 1 %%BoundingBox: 0 0 640 230 %%EndComments %%BeginProlog /gl2psdict 64 dict def gl2psdict begin 0 setlinecap 0 setlinejoin /tryPS3shading true def % set to false to force subdivision /rThreshold 0.064 def % red component subdivision threshold /gThreshold 0.034 def % green component subdivision threshold /bThreshold 0.1 def % blue component subdivision threshold /BD { bind def } bind def /C { setrgbcolor } BD /G { 0.082 mul exch 0.6094 mul add exch 0.3086 mul add neg 1.0 add setgray } BD /W { setlinewidth } BD /FC { findfont exch /SH exch def SH scalefont setfont } BD /SW { dup stringwidth pop } BD /S { FC moveto show } BD /SBC{ FC moveto SW -2 div 0 rmoveto show } BD /SBR{ FC moveto SW neg 0 rmoveto show } BD /SCL{ FC moveto 0 SH -2 div rmoveto show } BD /SCC{ FC moveto SW -2 div SH -2 div rmoveto show } BD /SCR{ FC moveto SW neg SH -2 div rmoveto show } BD /STL{ FC moveto 0 SH neg rmoveto show } BD /STC{ FC moveto SW -2 div SH neg rmoveto show } BD /STR{ FC moveto SW neg SH neg rmoveto show } BD /FCT { FC translate 0 0 } BD /SR { gsave FCT moveto rotate show grestore } BD /SBCR{ gsave FCT moveto rotate SW -2 div 0 rmoveto show grestore } BD /SBRR{ gsave FCT moveto rotate SW neg 0 rmoveto show grestore } BD /SCLR{ gsave FCT moveto rotate 0 SH -2 div rmoveto show grestore} BD /SCCR{ gsave FCT moveto rotate SW -2 div SH -2 div rmoveto show grestore} BD /SCRR{ gsave FCT moveto rotate SW neg SH -2 div rmoveto show grestore} BD /STLR{ gsave FCT moveto rotate 0 SH neg rmoveto show grestore } BD /STCR{ gsave FCT moveto rotate SW -2 div SH neg rmoveto show grestore } BD /STRR{ gsave FCT moveto rotate SW neg SH neg rmoveto show grestore } BD /P { newpath 0.0 360.0 arc closepath fill } BD /LS { newpath moveto } BD /L { lineto } BD /LE { lineto stroke } BD /T { newpath moveto lineto lineto closepath fill } BD /STshfill { /b1 exch def /g1 exch def /r1 exch def /y1 exch def /x1 exch def /b2 exch def /g2 exch def /r2 exch def /y2 exch def /x2 exch def /b3 exch def /g3 exch def /r3 exch def /y3 exch def /x3 exch def gsave << /ShadingType 4 /ColorSpace [/DeviceRGB] /DataSource [ 0 x1 y1 r1 g1 b1 0 x2 y2 r2 g2 b2 0 x3 y3 r3 g3 b3 ] >> shfill grestore } BD /Tm { 3 -1 roll 8 -1 roll 13 -1 roll add add 3 div 3 -1 roll 7 -1 roll 11 -1 roll add add 3 div 3 -1 roll 6 -1 roll 9 -1 roll add add 3 div C T } BD /STsplit { 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 5 copy 5 copy 25 15 roll 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 5 copy 5 copy 35 5 roll 25 5 roll 15 5 roll 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 5 copy 5 copy 40 5 roll 25 5 roll 15 5 roll 25 5 roll STnoshfill STnoshfill STnoshfill STnoshfill } BD /STnoshfill { 2 index 8 index sub abs rThreshold gt { STsplit } { 1 index 7 index sub abs gThreshold gt { STsplit } { dup 6 index sub abs bThreshold gt { STsplit } { 2 index 13 index sub abs rThreshold gt { STsplit } { 1 index 12 index sub abs gThreshold gt { STsplit } { dup 11 index sub abs bThreshold gt { STsplit } { 7 index 13 index sub abs rThreshold gt { STsplit } { 6 index 12 index sub abs gThreshold gt { STsplit } { 5 index 11 index sub abs bThreshold gt { STsplit } { Tm } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } BD tryPS3shading { /shfill where { /ST { STshfill } BD } { /ST { STnoshfill } BD } ifelse } { /ST { STnoshfill } BD } ifelse end %%EndProlog %%BeginSetup /DeviceRGB setcolorspace gl2psdict begin %%EndSetup %%Page: 1 1 %%BeginPageSetup %%EndPageSetup mark gsave 1.0 1.0 scale 0 0 0 C newpath 0 0 moveto 640 0 lineto 640 230 lineto 0 230 lineto closepath fill 1 0 0 C 66.3696 108.021 73.4541 67.8447 57.1367 120.102 T 66.3696 108.021 57.1367 120.102 65.6597 116.126 T 65.6597 116.126 57.1367 120.102 72.3516 123.095 T 65.6597 116.126 72.3516 123.095 69.457 118.209 T 69.457 118.209 72.3516 123.095 73.0469 119.152 T 94.6074 121.23 90.3267 121.889 101.353 127.898 T 94.6074 121.23 101.353 127.898 96.7002 113.369 T 96.7002 113.369 101.353 127.898 113.125 61.1309 T 96.7002 113.369 113.125 61.1309 99.4434 97.813 T 99.4434 97.813 113.125 61.1309 100.486 91.8984 T 99.4434 97.813 100.486 91.8984 91.5068 96.2153 T 91.5068 96.2153 100.486 91.8984 92.4795 90.6973 T 91.5068 96.2153 92.4795 90.6973 77.1289 93.6802 T 77.1289 93.6802 92.4795 90.6973 78.1021 88.1621 T 77.1289 93.6802 78.1021 88.1621 69.1128 92.4648 T 69.1128 92.4648 78.1021 88.1621 70.1558 86.5503 T 69.1128 92.4648 70.1558 86.5503 66.3696 108.021 T 66.3696 108.021 70.1558 86.5503 73.4541 67.8447 T 110.597 115.819 117.681 75.6431 101.353 127.898 T 110.597 115.819 101.353 127.898 109.875 123.922 T 109.875 123.922 101.353 127.898 116.567 130.891 T 109.875 123.922 116.567 130.891 113.672 126.005 T 113.672 126.005 116.567 130.891 117.262 126.948 T 113.125 61.1309 101.353 127.898 119.774 67.7817 T 113.125 61.1309 119.774 67.7817 128.446 63.522 T 128.446 63.522 119.774 67.7817 124.055 67.1235 T 128.446 63.522 124.055 67.1235 127.75 67.4653 T 86.6309 121.547 85.9355 125.49 90.3267 121.889 T 90.3267 121.889 85.9355 125.49 101.353 127.898 T 100.486 91.8984 113.125 61.1309 103.784 73.1929 T 103.784 73.1929 113.125 61.1309 104.507 65.0898 T 104.507 65.0898 113.125 61.1309 100.709 63.0068 T 100.709 63.0068 113.125 61.1309 97.1196 62.0645 T 97.1196 62.0645 113.125 61.1309 97.8149 58.1211 T 52.4849 105.573 50.3921 113.434 57.1367 120.102 T 52.4849 105.573 57.1367 120.102 68.9102 53.3345 T 68.9102 53.3345 57.1367 120.102 75.5586 59.9854 T 68.9102 53.3345 75.5586 59.9854 84.2305 55.7261 T 84.2305 55.7261 75.5586 59.9854 79.8394 59.3271 T 84.2305 55.7261 79.8394 59.3271 83.5352 59.6689 T 50.3921 113.434 46.1113 114.092 57.1367 120.102 T 57.1367 120.102 46.1113 114.092 41.7202 117.694 T 41.7202 117.694 46.1113 114.092 42.4155 113.75 T 52.4849 105.573 68.9102 53.3345 59.5688 65.3965 T 59.5688 65.3965 68.9102 53.3345 60.291 57.2935 T 60.291 57.2935 68.9102 53.3345 56.4937 55.2104 T 56.4937 55.2104 68.9102 53.3345 52.9043 54.2681 T 52.9043 54.2681 68.9102 53.3345 53.5996 50.3247 T 75.5586 59.9854 57.1367 120.102 73.4541 67.8447 T 119.774 67.7817 101.353 127.898 117.681 75.6431 T 150.052 115.463 157.856 115.718 154.215 109.156 T 154.215 109.156 157.856 115.718 157.24 106.239 T 157.24 106.239 157.856 115.718 160.134 97.4453 T 160.134 97.4453 157.856 115.718 173.22 96.4062 T 173.22 96.4062 157.856 115.718 164.521 113.537 T 142.373 111.779 150.052 115.463 143.863 105.215 T 143.863 105.215 150.052 115.463 146.057 108.218 T 146.057 108.218 150.052 115.463 149.641 109.713 T 149.641 109.713 150.052 115.463 154.215 109.156 T 143.863 105.215 143.592 94.5288 142.373 111.779 T 142.373 111.779 143.592 94.5288 138.229 108.209 T 138.229 108.209 143.592 94.5288 148.988 67.3545 T 148.988 67.3545 143.592 94.5288 145.101 89.415 T 145.101 89.415 143.592 94.5288 151.916 95.6865 T 164.521 113.537 169.519 108.834 173.22 96.4062 T 173.22 96.4062 169.519 108.834 172.317 101.527 T 173.22 96.4062 158 91.6895 160.134 97.4453 T 160.134 97.4453 158 91.6895 151.916 95.6865 T 151.916 95.6865 158 91.6895 145.101 89.415 T 148.988 67.3545 141.179 70.6372 138.229 108.209 T 138.229 108.209 141.179 70.6372 134.004 103.223 T 134.004 103.223 141.179 70.6372 132.032 97.873 T 132.032 97.873 141.179 70.6372 135.601 77.0347 T 173.72 80.8511 175.17 79.5825 173.828 74.4741 T 173.72 80.8511 173.828 74.4741 168.87 77.4922 T 168.87 77.4922 173.828 74.4741 166.499 69.7827 T 168.87 77.4922 166.499 69.7827 163.701 75.5273 T 163.701 75.5273 166.499 69.7827 158.826 67.4658 T 163.701 75.5273 158.826 67.4658 156.71 75.5913 T 156.71 75.5913 158.826 67.4658 151.192 78.21 T 145.101 89.415 147.278 82.9595 148.988 67.3545 T 148.988 67.3545 147.278 82.9595 158.826 67.4658 T 158.826 67.4658 147.278 82.9595 151.192 78.21 T 132.032 97.873 135.601 77.0347 132.455 86.2681 T 206.353 81.2256 209.836 81.6416 210.481 77.9873 T 206.353 81.2256 210.481 77.9873 202.908 82.3413 T 202.908 82.3413 210.481 77.9873 197.132 75.9434 T 202.908 82.3413 197.132 75.9434 201.695 86.8999 T 201.695 86.8999 197.132 75.9434 190.148 147.82 T 201.695 86.8999 190.148 147.82 191.033 147.368 T 190.148 147.82 197.132 75.9434 183.437 144.405 T 183.437 144.405 197.132 75.9434 181.559 130.873 T 181.559 130.873 197.132 75.9434 189.686 84.7822 T 189.686 84.7822 197.132 75.9434 190.105 80.084 T 190.105 80.084 197.132 75.9434 187.25 77.8574 T 187.25 77.8574 197.132 75.9434 183.834 77.0566 T 183.834 77.0566 197.132 75.9434 184.479 73.4023 T 171.888 140.237 183.437 144.405 177.784 137.31 T 177.784 137.31 183.437 144.405 180.196 136.28 T 180.196 136.28 183.437 144.405 181.559 130.873 T 171.888 140.237 177.784 137.31 172.513 136.69 T 239.147 87.0083 242.631 87.4243 243.276 83.77 T 239.147 87.0083 243.276 83.77 235.703 88.124 T 235.703 88.124 243.276 83.77 229.927 81.7261 T 235.703 88.124 229.927 81.7261 234.49 92.6826 T 234.49 92.6826 229.927 81.7261 222.943 153.602 T 234.49 92.6826 222.943 153.602 223.828 153.151 T 222.943 153.602 229.927 81.7261 216.231 150.188 T 216.231 150.188 229.927 81.7261 214.354 136.655 T 214.354 136.655 229.927 81.7261 222.48 90.5649 T 222.48 90.5649 229.927 81.7261 222.9 85.8667 T 222.9 85.8667 229.927 81.7261 220.045 83.6401 T 220.045 83.6401 229.927 81.7261 216.629 82.8394 T 216.629 82.8394 229.927 81.7261 217.273 79.1851 T 204.683 146.02 216.231 150.188 210.579 143.092 T 210.579 143.092 216.231 150.188 212.991 142.063 T 212.991 142.063 216.231 150.188 214.354 136.655 T 204.683 146.02 210.579 143.092 205.308 142.473 T 266.758 136.042 276.953 136.255 270.206 131.079 T 270.206 131.079 276.953 136.255 273.083 129.684 T 273.083 129.684 276.953 136.255 277.226 124.158 T 277.226 124.158 276.953 136.255 280.98 110.635 T 280.98 110.635 276.953 136.255 290.591 97.4658 T 290.591 97.4658 276.953 136.255 284.888 133.035 T 259.362 123.698 259.876 112.293 256.628 132.566 T 259.362 123.698 256.628 132.566 261.559 128.492 T 261.559 128.492 256.628 132.566 266.758 136.042 T 261.559 128.492 266.758 136.042 266.701 131.16 T 266.701 131.16 266.758 136.042 270.206 131.079 T 249.904 98.2148 246.902 107.563 246.652 118.063 T 249.904 98.2148 246.652 118.063 255.261 91.3853 T 255.261 91.3853 246.652 118.063 249.91 126.486 T 255.261 91.3853 249.91 126.486 263.003 87.6606 T 263.003 87.6606 249.91 126.486 256.628 132.566 T 263.003 87.6606 256.628 132.566 259.876 112.293 T 293.66 117.036 293.936 106.156 290.484 126.566 T 290.484 126.566 293.936 106.156 284.888 133.035 T 284.888 133.035 293.936 106.156 290.591 97.4658 T 290.591 97.4658 283.656 91.208 280.98 110.635 T 280.98 110.635 283.656 91.208 281.405 99.8901 T 281.405 99.8901 283.656 91.208 279.32 95.2871 T 279.32 95.2871 283.656 91.208 274.494 92.7329 T 274.494 92.7329 283.656 91.208 273.163 87.6265 T 263.003 87.6606 259.876 112.293 263.855 99.1465 T 263.003 87.6606 263.855 99.1465 273.163 87.6265 T 273.163 87.6265 263.855 99.1465 268.107 94.0234 T 273.163 87.6265 268.107 94.0234 274.494 92.7329 T 351.146 118.743 354.546 131.726 355.961 116.741 T 351.146 118.743 355.961 116.741 350.942 118.707 T 350.942 118.707 355.961 116.741 353.177 103.148 T 350.942 118.707 353.177 103.148 341.342 139.76 T 341.342 139.76 353.177 103.148 345.399 101.777 T 341.342 139.76 345.399 101.777 340.751 141.986 T 340.751 141.986 345.399 101.777 333.003 146.21 T 340.751 141.986 333.003 146.21 342.315 144.084 T 342.315 144.084 333.003 146.21 346.248 148.843 T 342.315 144.084 346.248 148.843 346.907 145.104 T 319.548 144.135 333.003 146.21 323.501 140.767 T 323.501 140.767 333.003 146.21 326.116 140.332 T 326.116 140.332 333.003 146.21 328.2 137.74 T 328.2 137.74 333.003 146.21 345.399 101.777 T 386.001 151.243 383.97 151.429 389.132 156.107 T 386.001 151.243 389.132 156.107 387.2 149.767 T 387.2 149.767 389.132 156.107 393.646 148.363 T 387.2 149.767 393.646 148.363 387.223 147.949 T 387.223 147.949 393.646 148.363 389.094 121.17 T 387.223 147.949 389.094 121.17 385.64 136.192 T 385.64 136.192 389.094 121.17 387.655 109.228 T 385.64 136.192 387.655 109.228 383.737 124.49 T 383.737 124.49 387.655 109.228 379.673 107.82 T 383.737 124.49 379.673 107.82 364.649 153.302 T 364.649 153.302 379.673 107.82 359.721 152.433 T 379.798 150.904 379.139 154.643 383.97 151.429 T 383.97 151.429 379.139 154.643 389.132 156.107 T 389.132 156.107 399.022 158.148 394.673 152.036 T 394.673 152.036 399.022 158.148 396.376 153.616 T 396.376 153.616 399.022 158.148 399.682 154.41 T 379.673 107.82 361.346 135.763 359.721 152.433 T 359.721 152.433 361.346 135.763 354.546 131.726 T 354.546 131.726 361.346 135.763 355.961 116.741 T 393.646 148.363 389.132 156.107 394.673 152.036 T 319.548 144.135 323.501 140.767 320.207 140.396 T 428.171 164.503 438.366 164.716 431.62 159.541 T 431.62 159.541 438.366 164.716 434.497 158.146 T 434.497 158.146 438.366 164.716 438.64 152.62 T 438.64 152.62 438.366 164.716 442.394 139.097 T 442.394 139.097 438.366 164.716 452.005 125.928 T 452.005 125.928 438.366 164.716 446.302 161.496 T 420.776 152.159 421.29 140.755 418.042 161.028 T 420.776 152.159 418.042 161.028 422.973 156.954 T 422.973 156.954 418.042 161.028 428.171 164.503 T 422.973 156.954 428.171 164.503 428.115 159.622 T 428.115 159.622 428.171 164.503 431.62 159.541 T 411.318 126.676 408.315 136.025 408.066 146.525 T 411.318 126.676 408.066 146.525 416.675 119.847 T 416.675 119.847 408.066 146.525 411.324 154.947 T 416.675 119.847 411.324 154.947 424.417 116.122 T 424.417 116.122 411.324 154.947 418.042 161.028 T 424.417 116.122 418.042 161.028 421.29 140.755 T 455.074 145.497 455.35 134.618 451.898 155.028 T 451.898 155.028 455.35 134.618 446.302 161.496 T 446.302 161.496 455.35 134.618 452.005 125.928 T 452.005 125.928 445.07 119.67 442.394 139.097 T 442.394 139.097 445.07 119.67 442.818 128.352 T 442.818 128.352 445.07 119.67 440.734 123.749 T 440.734 123.749 445.07 119.67 435.907 121.194 T 435.907 121.194 445.07 119.67 434.577 116.088 T 424.417 116.122 421.29 140.755 425.269 127.608 T 424.417 116.122 425.269 127.608 434.577 116.088 T 434.577 116.088 425.269 127.608 429.521 122.485 T 434.577 116.088 429.521 122.485 435.907 121.194 T 493.276 175.375 495.021 162.594 492.827 161.19 T 493.276 175.375 492.827 161.19 488.929 175.216 T 488.929 175.216 492.827 161.19 489.974 163.427 T 488.929 175.216 489.974 163.427 485.338 173.074 T 485.338 173.074 489.974 163.427 486.396 163.713 T 485.338 173.074 486.396 163.713 482.071 168.627 T 482.071 168.627 486.396 163.713 481.486 160.663 T 482.071 168.627 481.486 160.663 478.576 163.14 T 478.576 163.14 481.486 160.663 479.827 156.047 T 478.576 163.14 479.827 156.047 476.927 172.493 T 476.927 172.493 479.827 156.047 483.265 136.548 T 476.927 172.493 483.265 136.548 475.837 172.908 T 475.837 172.908 483.265 136.548 478.702 125.592 T 475.837 172.908 478.702 125.592 469.318 169.527 T 469.318 169.527 478.702 125.592 467.44 155.995 T 469.318 169.527 467.44 155.995 466.082 161.405 T 478.702 125.592 483.265 136.548 484.478 131.99 T 478.702 125.592 484.478 131.99 493.625 127.913 T 493.625 127.913 484.478 131.99 489.1 131.082 T 493.625 127.913 489.1 131.082 492.981 131.568 T 467.44 155.995 478.702 125.592 471.243 134.428 T 471.243 134.428 478.702 125.592 471.675 129.732 T 471.675 129.732 478.702 125.592 468.808 127.504 T 468.808 127.504 478.702 125.592 465.403 126.705 T 465.403 126.705 478.702 125.592 466.048 123.051 T 466.082 161.405 463.663 162.444 469.318 169.527 T 469.318 169.527 463.663 162.444 458.563 165.499 T 458.563 165.499 463.663 162.444 459.188 161.952 T 526.427 137.664 529.911 138.08 530.556 134.425 T 526.427 137.664 530.556 134.425 522.983 138.779 T 522.983 138.779 530.556 134.425 517.207 132.381 T 522.983 138.779 517.207 132.381 521.77 143.337 T 521.77 143.337 517.207 132.381 510.222 204.257 T 521.77 143.337 510.222 204.257 511.107 203.806 T 510.222 204.257 517.207 132.381 503.511 200.843 T 503.511 200.843 517.207 132.381 501.633 187.311 T 501.633 187.311 517.207 132.381 509.76 141.22 T 509.76 141.22 517.207 132.381 510.18 136.521 T 510.18 136.521 517.207 132.381 507.325 134.295 T 507.325 134.295 517.207 132.381 503.908 133.495 T 503.908 133.495 517.207 132.381 504.553 129.84 T 491.962 196.674 503.511 200.843 497.858 193.748 T 497.858 193.748 503.511 200.843 500.271 192.718 T 500.271 192.718 503.511 200.843 501.633 187.311 T 491.962 196.674 497.858 193.748 492.588 193.128 T 587.088 148.36 590.38 148.742 591.024 145.087 T 587.088 148.36 591.024 145.087 583.644 149.475 T 583.644 149.475 591.024 145.087 580.031 143.459 T 583.644 149.475 580.031 143.459 582.443 154.036 T 582.443 154.036 580.031 143.459 570.883 214.954 T 582.443 154.036 570.883 214.954 571.781 214.504 T 570.883 214.954 580.031 143.459 564.172 211.539 T 564.172 211.539 580.031 143.459 562.294 198.007 T 562.294 198.007 580.031 143.459 564.412 185.997 T 564.412 185.997 580.031 143.459 566.184 175.947 T 566.184 175.947 580.031 143.459 569.378 157.831 T 569.378 157.831 580.031 143.459 570.769 149.944 T 570.769 149.944 580.031 143.459 572.21 141.77 T 569.378 157.831 570.769 149.944 569.047 154.243 T 569.047 154.243 570.769 149.944 567.092 151.283 T 567.092 151.283 570.769 149.944 560.657 147.963 T 560.657 147.963 570.769 149.944 562.002 139.771 T 550.715 152.225 554.938 148.667 556.8 137.64 T 556.8 137.64 554.938 148.667 562.002 139.771 T 562.002 139.771 554.938 148.667 560.657 147.963 T 539.641 176.746 545.917 182.625 546.362 162.809 T 539.641 176.746 546.362 162.809 548.588 138.142 T 548.588 138.142 546.362 162.809 547.891 157.363 T 548.588 138.142 547.891 157.363 556.8 137.64 T 556.8 137.64 547.891 157.363 550.715 152.225 T 554.163 180.224 548.929 177.908 553.941 186.68 T 554.163 180.224 553.941 186.68 560.638 179.539 T 560.638 179.539 553.941 186.68 562.303 186.431 T 560.638 179.539 562.303 186.431 566.184 175.947 T 566.184 175.947 562.303 186.431 564.412 185.997 T 546.362 162.809 545.917 182.625 546.355 173.797 T 546.355 173.797 545.917 182.625 548.929 177.908 T 548.929 177.908 545.917 182.625 553.941 186.68 T 548.588 138.142 542.005 142.11 539.641 176.746 T 539.641 176.746 542.005 142.11 536.461 172.898 T 536.461 172.898 542.005 142.11 534.599 168.424 T 534.599 168.424 542.005 142.11 537.3 148.503 T 552.624 207.371 564.172 211.539 558.519 204.444 T 558.519 204.444 564.172 211.539 560.936 203.415 T 560.936 203.415 564.172 211.539 562.294 198.007 T 552.624 207.371 558.519 204.444 553.249 203.824 T 534.599 168.424 537.3 148.503 534.722 156.281 T 570.769 149.944 572.21 141.77 571.578 142.477 T 602.664 148.491 599.405 153.37 600.763 159.274 T 602.664 148.491 600.763 159.274 608.406 147.247 T 608.406 147.247 600.763 159.274 605.697 162.611 T 608.406 147.247 605.697 162.611 613.385 150.535 T 613.385 150.535 605.697 162.611 611.467 161.204 T 613.385 150.535 611.467 161.204 614.769 156.079 T 589.825 210.583 598.908 216.647 591.596 202.864 T 591.596 202.864 598.908 216.647 602.439 168.433 T 602.439 168.433 598.908 216.647 603.072 167.726 T 603.072 167.726 598.908 216.647 606.446 170.453 T 606.446 170.453 598.908 216.647 604.914 207.964 T 604.914 207.964 598.908 216.647 603.933 217.534 T 1 W 0 1 1 C 53.5996 50.3247 LS 128.446 63.522 L 116.567 130.891 L 41.7202 117.694 L 53.5996 50.3247 LE 54.4302 49.0581 LS 216.036 77.5537 L 203.239 150.128 L 41.6333 121.632 L 54.4302 49.0581 LE grestore showpage cleartomark %%PageTrailer %%Trailer end %%EOF quesoglc-0.7.2/docs/quesoglc.css0000644000175000017500000002035410764574551013571 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: quesoglc.css 632 2007-10-20 17:23:54Z bcoconni $ */ A {font-size: 12px;} TD, CAPTION { font-size: 14px;} A:link, a:visited { text-decoration : none; color : #314e96; } A:hover { text-decoration: none; color : #fe7405; } BODY { background-color: #ffffff; margin-top: 10px; font-family: Verdana, Arial, sans-serif; /*font-size: 14px;*/ } HR { height: 1px; border: solid #fe7405 0px; border-top-width: 1px;} /* QuesoGLC */ TABLE.qmenu { text-decoration: none; width: 160px; margin-top: 0px; padding-left: 2px; padding-right: 2px; background: #f5f5f5; border: 1px #cccccc solid; } TABLE.qsubmenu { border: 0px #cccccc solid; background: #f5f5f5; } TD.qtitle { text-decoration: none; text-align: center; color: #fe7405; padding-bottom: 4px; padding-left: 0px; padding-top: 0px; padding-right: 0px; margin: 0px; font-size: 14px; } TD.qglobal { padding: 0px; margin: 0px; } TD.qitem a { text-decoration: none; display: block; background: #ffffff; color: #314e96; margin: 0px; padding: 4px; padding-left: 10px; border: 1px #cccccc solid; font-size: 12px; } TD.qitem a:hover { text-decoration: none; display: block; color: #fe7405; border: 1px #cccccc solid; text-decoration: none; } TABLE.qicons { border: 0px; background: #ffffff; padding-top: 20px; } TD.qicons { padding-bottom: 10px; padding-top: 0px; padding-left: 0px; padding-right: 0px; text-align: center; } TD.qmain { border: 0px #cccccc solid; background: #ffffff; padding: 4px; font-size: 14px; } UL.qmenu LI UL{ display:none; } UL.qmenu LI:hover>UL{ display:block; } UL.qmenu{ float:left; } UL.qmenu, UL.qmenu UL{ list-style:none; width: 100%; padding:0px; margin:0px; margin-bottom:2px; } UL.qmenu UL{ position:absolute; top:-1px; left:152px; border: 1px #cccccc solid; background: #fbfbfb; } UL.qmenu LI.mainmenu{ text-decoration: none; /* display: block; */ background: #ffffff; color: #314e96; margin: 2px; margin-left: 1px; margin-right: 1px; padding: 2px; border: 1px #cccccc solid; font-size: 12px; position:relative; } UL.qmenu A{ text-decoration: none; display: block; color: #314e96; padding: 2px; padding-left: 10px; font-size: 12px; } UL.qmenu A:hover{ color: #fe7405; } /* Doxygen */ A.anchor, A.anchor:hover { text-align: center; color: #000000; font-size: 20px; } H1 { text-align: center; color: #000000; } H1 A.anchor, H1 A.anchor:hover { font-size: 28px; } H3 A.anchor, H3 A.anchor:hover { font-size: 16px; } A.el { font-size: 14px; } A.code { font-size: 14px; } P, DL { font-size: 14px; } H2 { text-decoration: none; border: 1px #cccccc solid; padding: 4px; background: #f5f5f5; color: #555555; font-size: 20px; } TABLE.mdTable { border: 1px solid #e8e0d8; background-color: #fff4e0; color: #555555; font-size: 14px; width: 100%; } TD.mdRow { padding: 8px 20px; color: #555555; font-size: 14px; } TD.md { background-color: #fff4e0; font-weight: bold; color: #555555; font-size: 14px; } TD.mdname1 { background-color: #fff4e0; font-weight: bold; color: #A03030; } TD.mdname { background-color: #fff4e0; font-weight: bold; color: #A03030; width: 600px; font-size: 14px; } DIV.fragment { width: 80%; border: 1px solid #f0f0d0; background-color: #ffffe8; padding-left: 3%; margin: 4px; margin-left: 10%; } SPAN.keyword { color: #008000 } SPAN.keywordtype { color: #604020 } SPAN.keywordflow { color: #e08000 } SPAN.comment { color: #800000 } SPAN.preprocessor { color: #806020 } SPAN.stringliteral { color: #008020 } SPAN.charliteral { color: #008080 } CAPTION { font-weight: bold } /* Style for detailed member documentation Doxygen 1.4.7 */ .memtemplate { font-size: 80%; color: #606060; font-weight: normal; } .memnav { background-color: #e8eef2; border: 1px solid #84b0c7; text-align: center; margin: 2px; margin-right: 15px; padding: 2px; } .memitem { padding: 4px; background-color: #eef3f5; border-width: 1px; border-style: solid; border-color: #dedeee; -moz-border-radius: 8px 8px 8px 8px; } .memname { white-space: nowrap; font-weight: bold; } .memdoc{ padding-left: 10px; } .memproto { background-color: #d5e1e8; width: 100%; border-width: 1px; border-style: solid; border-color: #84b0c7; font-weight: bold; -moz-border-radius: 8px 8px 8px 8px; } .paramkey { text-align: right; } .paramtype { white-space: nowrap; } TD.paramname { color: #602020; font-style: italic; } /* End Styling for detailed member documentation for Doxygen 1.4.7 */ /* RedBlog */ INPUT:hover, SELECT:hover { border: 1px #c67000 solid; } TEXTAREA, SELECT, INPUT { background-color: #ffffff; color: #314e96; font-family: Verdana, Arial, sans-serif; font-size: 12px; font-weight: normal; border: 1px #314e96 solid; } UL.ng_list { margin: 20px; padding: 0px; } LI.ng_list_item { list-style-type: disc; /*color: #fe7405;*/ } .menuitem { border: 1px #cccccc solid; background-color: #ffffff; padding: 0px; text-align: left; } A.menuitem { border: 0px; /*font-size: 12px; font-weight: bold;*/ } TD.menuitem A { background-color: #ffffff; display: block; margin: 0; padding: 4px; padding-left: 10px; } TD.menuitem A:hover { background-color: #ffffff; color: #fe7405; } A.menuitem2:link, A.menuitem2:visited { border-top: 1px solid #fe7405; border-bottom: 1px solid #fe7405; } A.menuitem2:hover { border-top: 1px solid #317c76; border-bottom: 1px solid #317c76; } A.title2 { font-size: 15px; font-weight: bold; } .backg { background-color:#ffffff; } .panel { background-color: #f8f8f8; border: 0px #003366 solid; width: 100px; } .panel2 { background-color: #e6ebf7; border: solid #555599 2px; } .small_text {font-family: Verdana, Arial, sans-serif; font-size: 11px; color: #555555;} A.small_text {font-family: Verdana, Arial, sans-serif; font-size: 11px;} .module { border: 1px solid #cccccc; background-color: #ffffff; } .module2 { border: 1px solid #cccccc; background-color: #f8f8f8;} .menu { border: 1px solid #cccccc; background-color: #ffffff; } .redblog { font-size: 32px; color: #555555; } .title2 { font-size: 13px; color : #fe7405; font-weight: bold;} .title { font-size: 15px; color : #fe7405; text-indent : 10px; background-color: #f5f5f5; } .mark { background-color: #fafafa ; border: 1px #667799 solid; } /* currently used for calendar */ .mark2 { background-color: #e6ebf7; border: solid #555599 1px; } /* currently used for posts */ .mark3 { border: solid 1px #cccccc; padding: 2px; } .mark4 { background-color: #fafafa ; border: 0px #667799 solid; padding: 4px; } /* used for ...*/ .mark5 { background-color:#617ec6; border: 0px #667799 solid; color: white; } .search { background-color: #ffffff; border: 0px #003366 solid; } .search_result { background-color: #fe9425; } input.search { background-color: #ffffff; color: #fe7405; font-family: Verdana, Arial, sans-serif; font-size: 12px; font-weight: normal; border: 1px #fe7405 solid; } .light { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #555555;} .gen { font-size: 12px;} .gen2 { background-color: #fefefe; font-size: 11px; color: #555555; font-weight: bold; } TR.gen2 TD { font-size: 11px; } .gen3 { font-size: 11px; color: #555555; font-weight: normal; } .text_form { background-color: #f6f6f6; } .top_right { background: url("images/ad.jpg") no-repeat; width: 20px; height: 20px; } .top_left { background: url("images/as.jpg") no-repeat; width: 20px; height: 20px; } .bottom_left { background: url("images/bs.jpg") no-repeat; width: 20px; height: 20px; } .bottom_right { background: url("images/bd.jpg") no-repeat; width: 20px; height: 20px; } quesoglc-0.7.2/docs/Image4.png0000644000175000017500000000473610766745704013061 00000000000000‰PNG  IHDR&†w˜¢PLTEõþô ðþæ “IDATxÚíZ_lGŸÙ[ß®ÍÆ·>Lu ®o}> 7M¤ )•Lo¸Â.2ÆH€x¸¸ 5ê‹K„° Ím#!BùGÞLãViÕªBBk5¢äQà¡âaKûWž.Òõ–™ÙÝÙÙ™¹ÝMRBŒäÕÜo3óÍ÷}ó}3³€-§Ù#€+,ú¢?À‚‚½‹Ÿ•–üi¸„~Š`£gÕÃH‰´2ÍøÙ0 ;è-æ+AÏœ áà´< L™$O•°M‚ƒËo}îä¡Ý__v%ëòžÆe3u`kK’ŠÙº¾WÛkl,RN÷Åï¼É÷ÙÿÅöAWÄt OØ„šõ½E{de²# Rß+óP;qJ’¢15¨ŽÔFÊW6ykZˆípa‰µ½VóBrz¦¡-¿‡ä(&_K•ðL Ï3óÄ$ »q¸ˆxú=t$ùˆj2â™lÛn„Âú0ù; ƒ)Q.ãy«ÏÚ®þjðm¥5·ýæ¢%ŽQ„zˆ¡£dˆAÚVw#™‹à¢IÉZ!ö„Zÿ9Qȡݛ—Í(‡¢9iÔ›Cû{þ jÛô]{ì=[§?Ñ…ÊN„a[+°7‹’å)äÈÚa1‚£š +¹VæÀp®=›Ûã°æ¿“‹r¼(ŸÃ{ A]Qh/p†ÇÐ^ Ïc°?Óã10˜í ±yÇL`mŸøF‡Å<_ÀÕݯ±ãºÛú»ÃÊç`ìüÈ ;›À -WÀ=¡ÒÖ±8]al*¡{”§ùy Ìt°÷%Ø^§û€×© ;ï ¾[@óhóý‘=MGX‰Ã¦$ؼ;M1V•M ÖCØCÖGØg06QÖÃLPÀ{¤Ç0V¾qn':$"Œèjbÿ—Ã= ‚÷Mo^íK#¬g•x=ã½ÔY‰=F[BS,¢{6¾à`¢´5ƒÐ¥˜ú ‡´^"^-^w…˜Ýz8ˆÁ–AÀc1[ï ¶â3‡)’\1´-ÈÕ¶´]c³r˜·Ž0<Ø¿I6€¯ÝtXžp {’qWrYhI1IžÎݶ’ÜOªu„éÉ]—ÚÂy0)°²m[(W%Æ>z Ö¡š<Ãþ@9û*xà`¢­þUð õ—ïñgå®d¯²þ_î¥8d‡æØ©¤ÐŽe\Íœ8¿ý³knƵc±¾ýê‹_´2Îêç?Z9V³·ÒY££4^X-*9æYpr$¢%œÚ¥v;—jÉBýôî_Éd6—;_¦ 3bÕ¬—&¿?ŒåD¬ÊBçpe˜ä~|x?hz´õ’jµäf²ª¤‰v«ÝG¬&>Ť±übU}'•C–›Áê"VÉ÷RY…»`ih_œÆÒþ¬^Vá®X^†Vû¹X¢U7ÃÚ+ÝÚØi°µ3<¹ò¯~ n¿›ÁB“4p^Hg!Án7ä¥íâÏÉrV5Ș…&j[rÖ™¹¯‡ÁGuÛ–ËÕ bz¹ð…'ßpä«Ö£¬cå­w䬦KY‹õ±õ ùˆm‡²–Þ¨l=5ÄÚ1Ë&Ÿåþå1¬be˜GûÁ‰ ¿3p.Ö ÃWÃr6ÝWÃòv†åN*+ºý ÝW‰…ª¬j‡´ôè{&`ÁTì‡9­ªÕ^þßÂz.…ÿO…°Ø9ò{Iµ±X­òWתŽXx?fyù͉ V(½ÛQY?PÿÓba`Ĭæe©·—/t6,?XC~ì_c¿ýÝǶŸ\JŒH¢¨öS½çÏ (¢¤ÇèȽœŒH¸ý54ÿ)¯íp ¾(²Œ1=öÕ|×Àød¿JÁGH´ƒi ¬Õr}õÆ‘7ªñÎù© 5Y^œ¹(ÙY%Y•Ù­Õ9–e¬‰;ßjIOP¼VÉÑáYÒ‡ŸaR÷«ùúúFl&^Θò¾È†²F-ùÅBòð3âHG,D{ßTé¡ïå9óùn–‘¦¦»?¬/½¸B>PÙÁiEZZõÎ1«pa@œV¤eç³úî ¼íúõà´"+ãÿçs7ÛŽ€újf™þ_¼ÙûIPi&…IEND®B`‚quesoglc-0.7.2/docs/title.png0000644000175000017500000002017110766745704013063 00000000000000‰PNG  IHDR —£»w¯bKGDÿÿÿ ½§“ pHYs  ÒÝ~ü IDATxœíMr£HÇ©Ž™Y#¯gƒ³Ò Œê:böƒë¸O ù¨úRõ À¾ò À7ß@³xQ94™ùøLÈÄï·ª°]"Ie¾ÿûÈ/·ÛÍ"‚ ˆ±ùeîAË„† ‚P A¡‚ B $0A„H`‚ %ÀAJ !‚ ”@CA(† ‚P A¡‚ B $0A„þ6w‚ ¦#Ïó,Ë®×ëÇÇÇõz-ŠÂ²¬··7öY–­×ëù¸(Œ˜$Iò<O’IJ¬<Ï?>>àW¶mçy¾Z­fm AhDY–iš–e ¦fõWKZÅu]øÇv»]­V®ë®V«Ýn7Mk•’çy’$oooišÖ^Ÿ½u•… L’$ ¦0ʲ|çÿŒu|é÷÷÷Ãûá‹Î÷Á$Iòúú ƒƒýÐu]èÇqÖë5¨N†ˆÀäy¾Ùl˜ Õ°m{½^û¾ÿøøH*EÊõz…™’e™LEzà8Îv»}xxØívf™ÝËåòçŸ&IÂOü0 ƒ à_¼ØÇÇǩڨ„²,™å¬i ¨SæàWˆç±ÝnÁêö: L’$üñÇ?ª? ‚ ‚ÍfÓûc¯×ëóósíc«Ø¶ýòò2ä1% *¯¯¯///ÕŸƒ*¬×kpÂ,˺»»ƒ ‘ üãíí-Ïó4M….-ã8Ahî‡åyþôô„Ló4M9Ç˲M­ ÏóÀ?h|k¯¯¯—ËE8$lÛÞï÷ÝìðMŠ¢8¶m×^)Š¢¢(ÆzJ–e¸˜‘¦éXÏ"¤i?S‚ ˆã¸ÇEq>ŸùÏ”áû~–e£¿×p¢(Â[¾ÈÙDZïûµ7µm; ÃÞ–3˲0 eÝØþõ˜¢(„/†¡¢'Yß9Ž3¢žÄXÀœêʈæþ|>{ž‡›iÀ÷}­f ËöȈ¢hî6ŽLEŽãðÖ¬7•YæêÀÇÞÌ#{ÏóT»Hˆ³ãyžÒGD'â8æ¾ëºê,fc ÏÐ'&ÀÁÜ “(Š„áæ¨EFQxß"®Æœs>Ÿ…}t>Ÿ§i¢1“µ „vÄqœ~©°®œÏgĬ0tˆ 𦺮;wGCf6=ÏSPòY¸6Ã`‘I¢ã8çvƒ õ—Vá?ñÙJˈٖEј1sgÊ& ‰TlÛ^Æ\–…•¶mOãp4j ßÏ3ŒÌט%¥‹ Mu ‚@ˆãX8&ƒ ˜ËPâ–Å÷ýYZÅÀëÓ_ÕÈÞQuàRÏ•ñáÁÔ#‹fÌ"‰²e8>„)È\TÇqf/u 3oŠ ¯í/ÀM̲Œ¯äÏÕóHo »z:A*E³çpeAÌáp˜·aÄçAæ¢êS–åÊæõà Þì¹»á îï\>‡l  ‡ÁDS…>"Ì#û0@ ýIÓT6;´ZlÇvÕ˜·~DZÌþÎh‚ÇB5λ•BÄÈ"Å)v ÑA]n’™蹡ŒX 2P‡´ïŠÍåË„1yF€ä{tبǷMf'• ŒþêÈm­\HbI FÄuÝÙˆŒZ>yF I{@Š.—ôeÔ¼"d•‡ZAÔE7ÿB6Xuk'± ©1û¢,œê:í8¾4YÃà¯%F ŒZfém…ƒ¬7Ч§²Ö.i‹¡ ˆë­áÔ¨Q5.3æÇ¥Éæ:…ˆºh“UÛ‰[HUƒTõµê©*B‡ˆ†ä<ýÕ` ž+]ƒMmÛž¥IÃÁÕE‡ÌXÖ6¼Ò¡D`puÑ­§²2ÌÜí"–²›Äu¹ý4.3Ù‡Àaè¶J³Ôåös 4Êù/²·Âãã£ì†‰?~h{™Ä"o‰ ôa¿ßËî)ñ}ÿr¹LÜžü÷¿ÿå¹yžÿþ]ø+ß÷M¼…óz½n·[ä·ÚÚÌæËÙFW6ĹÐ|E–,3>w»ˆ%°ŒØåVIOÍÕ¤'5ôôAbK×Õ l 4®!y” ÕKýwÅË6mÍÝ.Âx›¨g¦É\ç æX ë‹¶9Œ69Ò1­'ÒYFܰBC¨©ê›xÐ/,ßškû‹l牵}¤Vmé­—p`q›Œ£YO¼³L™E$0Ä¸à—øê™Á Ãp®-ÒÈÁ0Ú:ûˆÁÔ˜»i1:kz8Z®ÖG`sýð2Æ.¡xz]Ÿ3’M12ƈdM-3ãZ_n’¼P{ò<¿¿¿—ý¶( mרñ|ùò¥öÏó’$™¥1„¹”eyww'û­ã8yžOÙž°Z­>>>øŸ‡ax<§oOo’$ùúõ«ì·Q5¯ý5‡öÁ ÷1œÏgƒÔEmŽ!z€›———ÉZ² N§“P],˯³Ô<Ïuñ}Iêb ˜§§'ÙžJ×u÷ûýÀÏŸ¤GBöû½lRX–EÑz½ž²=¦S–å·oß„¿Š¢È,)½Ø¶}:¦lÌ ɯáYfã£Â×YR>”˜|Ù˜Y%IM@®Ì™»iÝÀƒ­EššA³°Û~„‹ çnaøýð–9ëõõ9×Ò¬cÇpwÜDƒÙ†þ)2$9fÛ¶Ye7 ,ËÚOdË" BR´Q’œž§§'áÏÍ:v¬,Kdl8Žc¢ÁlCOÉóüùùYö[ãŽíÞÞÞj?1h³ƒ¸\–eyž·€’äÄ çZše‘Ÿžžd‹,Ë’ºz ²ÔÁó|w–e}÷UÖëuÍíÑ9Äçd³Ùð0ã|>SøÒ™±m;Ïsƒ’¼aaضÍgæ—DŸ™*¾ïª.–eÕžO' "I’ãñ¸Z­ÅÖÇãQ—e¬×ŸYø_åÄéÍñxD§Ëk»® ÀWa·4™Á/!Óù4S¢ q×:ª8þ Yædú¤˜Ù¹–f݄ϰf½³À/®Œ^iÇ/Q'»`4üŠaEç–"7ì™>)fD¶¬¥ÉȶÊObaº ÌR×7 Ír”~n«Iñ/&^÷¢2;£ù!ö5ð±ñI#LY zÌ⺮L>=Ï‹¢HÑW);Ò¬”5^}1ë]ÒV`M!¦ r­¢ØÛÎVïÇÕ- Ãжíª]ÚÇQrÜY–ÉÜ7Vž=+Ö~>Ú½‚‡/óV Ò4u% ¹~Âq¥ï%³ËÆ­¸Á«/s·nRZ½-.Ȧï©YŠÞÑXͨµ1¦pÀªÒõ$išÚ¶íº.ïrò&rx$:Ùäq³ö»®[3|*^­ >#fw/yAf<ÏcÁJ5|A^j‚‹âevÙ¬ ¾÷å“,c´üi³–vÔ¨YŠÞ¾’pr6þ/¦IЦ|q2{Ç[á!$Ë2æ;ŽÃøXf·(Šj<-œ±ªFóý  ‡Ã”£½®#ñêÛJdš=»ZwßËaV%i8­v¦äšeÔvÉõ3CBŸ¥Q«ªš¤¢Á"ó³f…‡¤:!áæû~-¹š!}[£š‡´äél^`F4úKÝž¼×eEYÊqvµî b-Ëá4 Ì‚ VµÕ;|ú³¸=å{µß£…E£7vµôÞ£(rñp!õßïÃEQÔú{¼µøô*x@oV>§ âz«ö»e+&ŒK(-ì’ßá4O¼çÇj3ªŸi©Fפ± SŸ³óY– L°TóoîÙðÇ· yz ÄE5®]ECL`å…6niò =7Èè±Ñ›æ‰‡¬–1îNìÕ²|ïè•ïŸÆ‰!ô×F¦.VSÒ¼6úP)ÕûÕy-lŒ›ù’Ø(ÝëyÞ?ÿùOÙthÓ0mAª­¼,r2±3‘Í‚&¾ŽÇqÚ/ìjd:ÀV© ëÞþ;ß-W¨ÙçqU]ðÑ\Ë ösØãú¶·¼º´qøïe¸ÀÀ€ùÏþƒÌˆ˜‘ÉV–ó²‰þ>ž3.Žiûš\ÔXðþÊê°î½ÒšŸ5^¡¿6Êtj¿Ëº¶«©Ÿ¸²m›½Û ~ƶ|?núlA9’Ósƒmf _dk£U/ZS²Î{å}æ·µŸõ ƒ/ÜàÙ¨ZùÞ‰>auªÑX ýµáÓ©êâF¡¦pý]5I}›Ü€ÐliïøfÈ ‡—õ}_ðbn=R¶Zuø"[·f¨9Fª 8ö´:ÛŒ뀬÷7·SÖý,¬pn4ö»P°‡OãªfàÑXõ/mÛî-lÕŽ g³( ^‰ÛGÌ|­µ÷"lÈBPˆ¬³2w: Y Õዬ$nh6I֖ɾ8PM¿[]ò oŽh²¡^Æí¯V¾·q祢ф 5i¸aªzø§UC®'ƒU­¿Š,?ð:}SÂ0±GFV¯ù¾}…˜dn WV—V¾ÈÂAC+»ˆN›»5ŠQù|µYÞý•ÕaÝÛ2 çF£ý†/Ýÿš§/kC–elˆØ¶=<`¯½Å¸Þ±í$Ãlª×e]ç9(wÕ‘’ÍËX§É«~#ÙÒd¥U²Ãôôjƒ¤“/Õ 0ÈŒ2´Â_ÖOM®Òh¼„š4|äUm±P/Ó4e­…ó.>àße,{$\˜×I†«GÔæFûA Ù°ª…¬2qÉÓ }#Õî£Ìß7ÔªÜÐ0&.X` < øs LÕËèÝ~á´lÔªšÔHm–µ. ÏóXpãûþ¸£œïQÖP e¸“±cŸÀ¾‘ZÏ7ö‹öjaR€1ÑEV¹ªÃ—Å,Mf Õ„¹›ÖÞÖuýƸ53Uã5ÄAãGR£må¿§Qv)˖̉¹A‡Ñ½'øLᣇû=v­ÖG²V ¬iC†ÂÑ W±Y’ÕÂ\ÔëI²¼œq&¥ŠL`ÌUMÞjõÈ„÷˜¾Íž 6†,O†ö|ÃMR-çû¯ýkà¶hÇBw~`]˜ÅîdìØ2 ÞTñ·ÔÀ-µ[R<Ï“Éä’\T¤ô¢º "[šlhM—!ëOCwGÕ–õþ‚>‹À°5ðZ‹«›xM>—øY:Á*&xö a–£÷« “c]½?ø–‚Ý}ɾG™ oi”%”ŒsQñóäU$áÎsy3dýi¢pòêÒ;Ÿß™r¿çÍ3ñÕ…—Š6î^­G±G¼:ü3qø%U²:m¿D‡0cÓ)çÆW_ÆE6̲ øq&ªÃÙ˜11ÇXCÖ¥ÆÕªyub6 ’¨í÷¼é©ºÆÇ1_xht÷xoq¸ùãÃÕ{’à‰üS„ãGc„v§«ƒk¬ÎÜË&‚A;`pu™à]„¥;³Z†¬KÍ^]¬a+>úÓû‘SÒþtáFx©hãîõ¸G¹GK”DQÝÊ^C¶W®«ˆ åN3$Jéﲉ`ŠiTÕá‹°Æf\‚Q†¬W Ú %T—f³ÿa—]ÓçóÖÎòÖnØm“ï s±‡Çà| ¾Ñݫͨ±Í|KFùX!0æYè‚t*l 7¾tµ;01”ÚzÙD0bíS£º´ÏCù"Ù_Y¯ÎÝ®¶¨P—Ûãú's–eQ!I6®ëŽ2ÖY9qx7õ¨¾ð‰¬QÌo)ÔDѨ./x¤T¾tŠÉ@ÈUÈ!«G*}è(TÇŒl±µêðEhPza˜;t8Uu9ŸÏ²HBi–Uø-T»jƒ¡Ããv»¥iÊûˆcióû˲d|£( °ª‚´œð°rT¶”3Ø °Â׌1„=€ÿ—±.$æùûßÿ^ûdy!síÄ쵺/6ƃöOpºì°)ÕÏK?²“³…®´"<2`aêr“—«çnW¼qsgĬo«÷—Yÿêß„ahÛv½'û†ÇéqÕÀÓ‚ù¬Ò4ÔâͱVyýþûï|ÿŒžgàW$7Â'^Úü/Ùž»ö_Œ™iö²ÉÊ<ºL]×….•…/JkWüØXžºÜäÃCç"Ÿ{`Ce,ZMaÖúé6Æqì8N†Ã[†”"ۘѢ(@ F<J8'ñ7å•r@¶?nø'óOéj²ùSÑÚü/aLÐ>—£eÊ=zŠ.‹6j_¥°N 4|ýjQNO=VGC…£ÖÖ< ‡¦çyžçõËbÉsÕ8“áêŽ!—h á îÚ÷¾å&ª0¿1üÃ6æú™€¯,T-äTuƒlÝ,HuU3‡Ó`Ì'Ǭ.7Éiu„*´±Š¾š¶æI\«pßzÄ10y‚ = å¿ dBBa¼6©†—XÎJh‘~8{¼iï/´Ú¤–놌(芉{¿kL§„ùC|&]æ#ªkLí–* C½qIÝnã=æq‹.5:˜'aŠFQqU¦1üNº¢(‚ ¸äL?bðäïû5/føêOè ¦Â>øù·Ÿcîßÿþ÷ -»Ú˜™CÝæYC"­ðAŒ&çhEÁ$„×'Ûï°HöÖfQWÑG]>,˜,QV]cÚÄËf +ü"Dí@6àdB€ir…³jF—[ÞBN©1:H Ð 0ìŒ~bËÎ(·Ø.Û‹gM’—à¨}CaVc©Záº_ !s%´¤È­½È ³Ø»T¿#ÞJöÈËÃé:Úï|föTÃÁµÆ«Ö˜jÔÒfSód×G²Œ+4ŒéÄ2ÇHTlâ'—ê¼KQ‡Ã×éY¤À†©‹lÚÈ’-¶m‡a8d²±›ña¡ÚâðC„ÍLÈlÖ–ÇÔ*i]§1[${/Ùbq†ïûÕ\³ïûÕ¹ÍË¿0Ò^cXÍ©‡w&+éÕZÇi» ‰¯º)Ê•Åq Ó&WËÞz$ãžk™e™Ð¨™…¢õÂc¾F7÷5’á8ÎèçÓwE*0àµ)®€ÌÈF˜çyPRk|OÈ·AÀl"œ=#ü’€ .“œÞ”Ôä¶“ÀÀk6ú8HÎI¤ ]@ÃÌNëíËÛ Â0„ÕçÂ~ÖZFbÄâvÕ|{ž×©+dîH4#KmU é5÷EË€Á× À¸<]Çæ 6J5JS¯Â“`Ùz&|#A©}òÀ#»Æ«ZwuKÓ4ÅH¶~^ýR…ï Фjï˼]Õ#ãÆÉ§mÛ¾ïËZkg{Ë ²Ñòïe§.òÀ²éÆ”mIñ}¿êÀ˜>ŸÏ`ú­Á–q «õ©¸´!Žãêàïtä+ÿQÌv8Žs8z|Žp&ö« 6^ºáº.DÏL9z_Á.ÓZ˜,ð¿À9èÝÉã S´l™™Ð–odCn²G§iŠè\W@œÎç³¶ß—Û_¿–e¹ÙlʲÌó|µZÒ £p¹\~ûí7á¯Â0<·GÆjµúøø€û¾¹\dY–åÓÓÓ÷ï߇ÃÓÓÓT Ä(Ë2I’×××4Mó¹AÄ옚"6›ìx8 MÓ±Nf„=ž#~ A )FRЃ#˲¾ÿŽÿçy£¤¡O§Óï¿ÿE© ¡²äXE¤.„˜-0›Íßóññ· y ,Ñ ‚àññqÈçĈœN'arÌu]¨„&˜"„ÇcTqçz½öóé@]ð›]bbò<¿¿¿þJé}‚è„Ù <;¶Êûû{¿8†Ô…ÐÙ¶ÊÃá@êBèÃf³Ù WÅ 1í7Ç”e¹ÛíH] yzz®mq]—ŽL&´b )2@v F0 Ã0ÄÓel_4© ¡×ëu»Ý EÉ1B7–Á—Ë¥ÍI—ÏÏÏwww|4“$Éãããjµu9¤.„V”eéyžðWQ‘ºº±œhÇ0lÛ^¯×µ„ƒmÛ///´"™Ð 8ÿ9…Ú„ž,'‚.—Ëù|nÿ÷5u ‚ ÏsRB7ŽÇ£P]Ç¡#“ =YZ”eùøøØ)”±,ËuÝãñHl‚”^èt B[–Á«Õêr¹dYÖòþ1×uã8¾^¯¤.„†à¥RB[–ÁÔ¸\.¯¯¯išV³aŽãÜßß?<<ì÷{ªŽ:#;s/JŽ:ó)† ÌE¶n… û„þ,3EFËàx< Õ… û„PCš"»yÈÙz1%$0¡#—Ëå·ß~ãNêB Ah²(™n# ‚j0¡ø–R H`B#hC%±$H`B’$!u!– AhÁétúúõ«ðW¤.„¡ÀÄüGÙŠä,ËH]CùÛÜ ˆO r0«çy—Ë…ªú„¹ÀÄläyîyÞûû;ÿ«Ãá@÷¦CCó ÛJI÷Ý‹j015eYîv;¡ºÐ}wÄ’ !ˆI9NwwwüÝ”p)Ñét¢¢ ±H`b"’$Ùl6üj1Û¶£(¢ûîˆåA5‚PÎõz}~~æ—ŠÙ¶}<giA¨†"‚hÅår)˲Ó)Ëòt:­×ëív[SÇq¢(‚5Ê£6“ 4‚NS&ˆfʲ¼»»³,Ëqœív»^¯,˺¿¿¯Ý·$IY–oooI’ï9ö}? C*㟂hÅétúóÏ?ùâ|lÛÞív¿þúë~¿½a¡-$0Ñ$I^__ó<ϲ¬,K~›¤ëºÖÏàæááa»ÝÒÂ0âsBCA(ŠüA„H`‚ %ÀAJ !‚ ”@CA(† ‚P‰ÕÏ IDAT A¡„ÿXÆEá´7ÖIEND®B`‚quesoglc-0.7.2/docs/glclogo.png0000644000175000017500000004543410766745704013401 00000000000000‰PNG  IHDR,K4àV IDATxœíÝ_×}'ú/fÀáðÿ‘”DJä!#É’íkK–¯ã$²y†^'޽•Ô½[É}œ¦žînÝÍcjïÖnM“7•ï}ÊKÞv0O©dsË®ÝZ—í]g–bÙ±ÿ‘d[²L2EÒ%þŸÿîÃAz0À è>º¿Šâès€fηçœ.µÛmôúÌg>³ý‹DDDDDDz饗J½_+_¿q}ó/ú'Ú€¯}ík»E. ‚ĉ'pêÔ)LLL TÚö¾"""""J,,œüÝù»ÍféÚõkTXùÊW¾b¨käŠv» üèG?ÂÊÊ Nž<‰'žxår“““¦»GDDDD9ðÅ/~q3´”®]¿†?ý“?mÿÍßüé~‘åJ¥J¥Z­ ÕjáÕW_Åòò2{ì±Íà211a¸§DDDDnÛØØÀÝ»wñàÁ¬¬®`mm ˜ššÂÞ½{qðÀAìÝ»w¤™.®ûK_úþî¿ü]©~ayy9q‡ˆžzê)´Ûm¼ù書zõ*žxâ <úèIìÞ½Ût׈ˆˆˆœ´¼¼„[·oáþýûh6›ל7›M,//cuu<À¡ƒ‡qèÐ!”Ëå!GtûØ¥^x¡ý×ý×±;BÔO»ÝƵk×ðþûïãèÑ£øð‡?Œ˜î‘3Úí6îܹƒ>ø«k«ÔŒ–µµµÍ°k×.LMMmÎh9°ÿŽ?Ž©©©\ûþèP€õõï6zåÊ,-- ½o»ÝƉ'pâÄ ®k('Æôô\¿~ßûÞ?áùçŸÇ¡C‡Lw‹ˆˆˆÈ wïÝÅÍ›7Ñl5Q*•pÿþ},¯,cÏô”Ëe´Ûm,--áöíÛ8pàöïß{÷ï¡6Ž?Ž]åÁƒW @–æðÀ²¾¾ŽþðøÜç>·ãýÚí6îÞ½‹×^ ÁGpìØ1®i(½ûöâñÓã׿þ5^zù%|êSŸÂ±cÇLw‹ˆˆˆÈj«k«¸sç6J% ܺ} ûöîÓO>‰}{÷abbÍVëkëx÷½wñöÛoc}}ÇÇÊÊ îܽ‹#‡ô]âê±Cehn ,Í ”Ëe|ò“ŸÜòõèu\Z­Z­®^½ŠR©„o|ýëxá…púôé¡Ç•Ê{qêñÇðБؽ«ŒvsK÷ïà7×ÞÆÍ»k±“¾ }ø$N;‚}{¦Q.O ÝÜÀêÊ2îݹ+o«ÝÖ>ýéO>øÉðæòð×5éýuêwž8&J%œ:y7nÜÀ?}ï{xöÙgñ裦Ü;"""¢|h·ÛX~ f1•J%ܹsÇÇ3O?ƒ©©)´Ûm´ÛíÍ >ŒàÍ_¾‰Û·oãØ±cX[]ÅêÊʶuÄ6»Ù.Ç>v”ª°Ä,hµZ›ƒØÞ Òn·7 ÐÆýû÷°´´„k×®áäÉ“C¥ÉøØ³Åòš+wñî(Oı#ÇpàðCØóó¢öþJ¬c¥ª4…§>þNìß´7pûƒ°¼¶‰òö8ˆ'âÍ+ooyH»¹ëuõþ:ŒXB?ü0nܸþçÆ'>ñ<~øá”zFDDD”XßXÇ®]»°´´„é=ÓxêɧP*•°²²}ì;99‰Gy«+«xëÊ[8Ò<‚]å]XYYÁ®]S±ŽýÕ¯~µïX/¬t<÷Üs#»T*áoÿöoñÇüÇ[î,þü«ÿý‹Õï¨Ø¥Ùln“hhi·[h6[h·[hµÔß}Ÿýìgqÿþ4›ÍØñcOH…•ÕwñÝïýëvŽž{;}>õ4®¼ü4Û€”pûõ·ñ8îÝ…Õûà—¯ý¬67yôÔ9ˆScÿž)´›k¸só7xë—5,5Õ±»Çù%ZgÇá}»±±|o½öÞ]Rý>ü” +­æ}üôŸ~„Û‘ãÀîG·=Çv‚ç=ìþ‡9qêÜ7 ´°²t7®Öиq§{§Ò$N?õ<~â&šËxçÊÏpúiU »ùýÄkÖã+ìÓ˜Ž?Žr¹ŒÿøGøð‡?‚S§N}L"""¢áYLNÇ©rõ•&ž<{°tó66Z-lÜ}8òÊ{OâTùuÔWºÁç~íûøÑ›·1}lä'Âäî“ØØøàà¤Ú4`彥Ͷ?<óyœÞÝÝíë_ÿú–ç’Ö”°'Ÿ8®žgýŸðƒ7n®®ü~ûìâIl4~xâÔ¾Í×ãÇ¿º‹É©÷ñù ßrì¸ÇJ[©TÂþýûÑjµðË_¾‰ééi9r$“¶ˆˆˆˆ\3QšÄÄ.UIÙµk—šÙÔŒ àK@»ÕÆÚúVVÔÅK¥v•w¡T*arrS»¦Ðœh¢ÙlÅ:v«ÕÂúÚzßc7[M”PùØ¡ fð­ÿù-´Ú-|êSŸÂ­[·b÷;J-ºßá¡f3 (m¬¯7#••îT0dÚèNZ­v¬ãÀ½f‡Ë%”÷O¢y»û˜‰rwkÜ»ë[ŸÐòeŒ–ol~í`Iõ÷HYý'Çþž¶—J[޳tõ>šÍÖ¨ÐP*•7ÿýN³…Ãå L.£yKÍ#|ïí°÷œ>µwóõ‰j7ã?ïî´óÂþÀÝ«ËÀÙ˜(ÝüÚ¡Îý–¯/u^ë>¾åØqµÙ§”*,áB«}ûö£Ý¾_üâxö¹çxqI""""Så2Ê»&Uxh·±ºººeÊV8Ëi½3i×®]€‰É‰Í*ÌÔÔ6šX_Z‰uìV«…•Õ•¾Çž(MŒuìз¿ým´Zm ÝÆ+ßyŸþOÇîwT'°lŸÃÖK]ô¥Õ™ó¶Y·ÒЬcé—f³;E,ÎñàÍ›+øÔ#{qðCO`òía-\Ãòä3€Vó.®ýø>|ê£8ðö+¸½ÖÂ;?ïØ ,[Ÿc»Õnà ƒîÿþF ÇwM`Ï#ÓhÞR}ž~tZõyãýÍÇÜÚPd÷±Îë±û‘mÇŽ{¬ÍÇ¥X¢¦§§qçÎÔ®\ÁSúPêÇ'"""rM*(”J%¬­­ammmsŠTtýøäääæ:“pqüDiårY…˜¶M­tìV[]ر߱C£¾óßA» üÎïªòÝW¾‹ï¾ò=üîïýN¬cGžËFS…€V»…æú–êÊÖµ,­Í K«ÝF³ÕŒu|¸öýïãö>ƒÃÓ§ð¹™Ý¸úî]ìÚw=|@ µ¾‚•žiS‡žú4ž~Ó'ÔÖÉÍÕxóþ Z~òÆ{øÜGÆ©ßþ,J¿¾†•Öö<‚ãGâ«_ýÊÖ¼¹æ&"U†°ß×ô\?:ƒG÷Åg>7®¿‹¥Õ ì>phÛ}CÇ>ñÛx!~\ý!¾ÿÖ½Ï}Ðýüú |þÙ“8øÄïàÝýk¬`§?¸ñúO6Û}µvçŸ<ŒCOÏîy{~|Ûs‹{¬,µÛmìÝ··8zô(Ž=šy›DDDD6ÛØØÀäD“S“Ø¿?–––°oß>  ¼üòË}óÙóŸÅýû÷Ñl6ñè#brr«+ËÇ9v %|÷•ïö=öÄÄÄfµd”c«âI Ÿùì>ó™ÏàÛß~SSS±úUÔ´­aÔ´/U‰ØXßèP¶ü½´[hw¦‘ÅÑZ{ÿðõÏ|ôi<öÈ1œ9ûZkøà7¿Æ¯Þx÷–¶=æÝW~ŠòG>Œc{'ðàÖuüø»ßÇF§½[oü#^Þø(ž9÷9-0ÑnâÁý»xû—¯oë“êÑ/oÞ§ußùæ7 >ô4Ä©GpüÑÇ19¬¯.ãæ«øÍõw¶oסÈÅËïOîø: ºÿ_}Aó|ä·NãÄcg0–îÞDã­Ÿágõ»›÷ïÕoãµ]¿§?“'Æ•×ÿÇ?!7ŸG’ce¯„={öâo¼çž}SœFDDD¶ºº¦6HÚ·=öÞxã >t(aàØ''&qïÞ=”J%!P*•°º²¶m¼9èØ3fú·T*¡Ýjãê;WG>6JÀ…Ïm?þ¿øü´[íXýŽ*âLýi·„ÛoDÖ­l )ÑŠKçñŽßÑZ½…×ø ^yÿ¥xå[oü÷o½Šo½:ðßÿþïÿ¿-_»ó þþï·ß¯Ý\Aíg?Fíg;÷§÷xÃĹÿÍÚÏPÒðÄd¿øÁËøEgÝ|yï9<Õù·ß¬57¿qŽ¥Ãžéi¼ûî»øÍonà±Çþ"""¢œj¸ÿöíÛ‹Gy÷îÞÃÕw®âÌ™3øÃ?üÃ-Ó´JêÚ,W¯^ŃðܳÏáÀ¸}û–– ÝgÚÖ cïžÚÝ÷Øï\Çø±£Ê@¼µ ÝEôáüÞ ²5´ÝªLk!"ËöøŽØýÐó¸ðÑ6Þ¾vë¥)œü­ß¬~ð®,¯y´D½^DZãÇ05Å* ×ÒòîÞ½‡‡:Š=ý!LLNàí·ßÆþýûqðÀA”&JØØØÀÒÒnݺøøÇ>Ž“'ObyewïÞÅú€j]=v(a`iaié><¸¿yÁ™pÁ}÷Â’ÝBKKP*M2°h°¾ô–&Îâ·žyåR+K÷P¯×ðÓWß²öõ™ššÂÊÊ ®½s §ÏÓÝ!"""2¦Õjâæû  àè‘ÃxúCOãØCÇpíú5ܹ{'r¿}äQœ>}û÷ïÇòò2Þ}ï&î?ؾtÂõc‡J/¼ðBûÿú·ÿvè766ðo|‡Äúz¸è^-މî¦þÞîlm¶†O<ÿ<Ξ=;ôøTLͦº2êsÏ>‡]SS¦»CDDDdÔÄÄ<ˆ#G`ïuñò¥å%´š-LL¨µ¦¦¦Ðl6q÷î]|pë–—o ìú±ÿÍ¿þ?à ËðNLN–ñÅ/~)V‡{Yz‚Ÿ,011‰éé=xÿƒpâÄæ»CDDDdT«ÕÄûܽûpðÀìÝ»ÓÓÓ˜Þ;V«…Õµ5ܽw÷îÝÃK;nœ—cÇ_tO”‘ɉ ¼ó&Ž?1üÎDDDD°ººŠ÷VWyl„kXR=$Qrm®E""""¢>úVX®Ôe¢/Tp5¾ïˆˆˆˆ í¿ð/·}­ ““Û/HóþýȾGDDDDDDþâ/ÿ¿øùëøƒ?øÀÿüÖ?ú_:“ˆˆˆˆˆÈ ,DDDDDd-"""""² Y« ¥RÉt?ˆˆˆˆˆˆ¶)ÀÄ -DDDDDdVXˆˆˆˆˆÈZ¬°‘µ:Žœ4Ý"""""¢mXa!"""""k1°‘µ8%Œˆˆˆˆˆ¬ÅÀBDDDDDÖb`!"""""k1°‘µÊ°¸XÐ0 …É] 0DDDDDdÞ<ñÄ9|á _À‘£G°¾¾nºODDDDDD:…ˆˆˆˆˆÈF ,DDDDDd-"""""² Y‹…ˆˆˆˆˆ¬ÅÀBDDDDDÖb`!"""""k1°‘µXˆˆˆˆˆÈZ ,DDDDDd-"""""² Y‹…ˆˆˆˆˆ¬ÅÀBDDDDDÖb`!"""""k1°‘µXˆˆˆˆˆÈZ ,DDDDDd­²é‘ýDçç{þ.{î[ï¹-tþ$"" õ%Ìvþ 'zîïC– €FçO""¢¸Xˆˆh“0‡ä!%ÎqýÎÿϸ HñøDD”_\ÃBDDÔxH7¬ô¶±}:Q/"¢æa&<ÈN»óšÛ%""·pJQAùPkT„ÙnlVtfÌvƒˆˆ,ÅÀBDT0ª²!Ìvc   Z£=!""ÛpJQHØV¢¸®…ˆˆz1°„»ÃJˆ¡…ˆˆ¢Xˆˆ,& Öx„;x‰ãCm'ì .Ä'"¢×°YDtnƒ.Ø(‘ü‹>Ü +€zÞ¨°FDDÅÆÀBDd˜Dw·.㾕Çöá^X ÍB=×Àl7ˆˆÈ0""Í$¶VQ’˜EüªƒwÃJhÀYÓ ""£Xˆˆ2& ‚ÉyôŸæ5Êñê1îãzXÔóð;7""*&"¢” ì¼e\†àý Ú5ejjXÝl7ˆˆÈ¢¬ tGŽç4ÐyÕÁQXNHt+(RC[Ãþ}6ã>èæU"¢¢b`!J‹D÷´:°5¨Ätn `±œÄèëPÆu~È¿§±%pÀ™Ž“–90° Ñ8$Ò÷#;7¿ó÷ €*Tˆ©§p|™@ºëPÆ%Ñ÷,ÉûÖ@7'êš/Q3PÏÛôšÉ·t&""÷1°%%‘Ýâ„^º[BÕ\GlIÄßnX7‰íE ùT°ËPo©Ú÷YìÜ|˜Ý&Y‚o"¢"â•î‰âòйyЊ]@Íõ©WÓÓćz©¥Ñ^ô×/˜øˆÿ¶\p*|ìVúµ1“àþiÊÛº""Ї…hjD7;F® .š¦;°Ñów‰xú0¨xHT¢˜ -¾¡v‰ˆÈ¢A$ºAEíIªo‹°#HåP`ºCxþË/¨DP3uc•…ˆ¨xXˆz ¨Ó¸‹°3¨ô’èNU£T¦;0„ìü)0|ç°ËH퉟òñâpãcIDDéa`!ŠPÓÛ!BÂå…áw1& );Û³+¡‹w'Ò@›DDdw # ùp3¨DI¨ù>3°¿<àˆÝ0PGwwiõr›¼V‰èܼî“eXÔ®]>ô¾Ü-Œˆ¨HXˆ€|„•¨E0´¤¤‚Çg¡ÐÿYC_úñ1x:XÖa%Ú‡4.V×°éoDD”/œF$‘¯°âº-Â}lÛêwúÞÖMí„8󑈨HX¨ØôžÖM‚¡E“æBK¯ôïà¥{­§¹=""2‡…ŠK ‹Ô%Z4 `fz/él]œD ¹=¡¹=""2‡…Ü'üräÅ+! ®RÖ¤b¸ýC}ÐÝ&¯ÇBDT ,ä.‰î…ç¾@±ÂJhÜVTÌL‹Ò=-LjnˆˆÌ``!·¨jJ¸ ÜC7xHÄ !ÑÇŒª  5:¬Žy,ÁQž¦®Ý@ÿT°¨ºæö¤æöˆˆÈ rƒÀÖjŠp?/ÆqF™KÒ€…¾àºáð;–:· 0{Š;Ž<îˆf™Ô[F·Š6£t5N #"*²›RjˆW6—1ŽÕ€ )¢Óþ…½bÎÁÞÊ‹ákPÑÜ^æ/»£;¨ mQ~xžº‘;XÈ>Ý`°S5eo‡‹[]h@]uo£m{\ƒê÷ ÌœjFB+ÊŒîjƒÎ+Íï$ÐÜž§¹=r—çµ0?¯nD䲇‡dÕ”A͉{ÌTÐ˜Ãø ‚N›6V[æÀE*jµ!ÐÜžÐܹ'T„è~Ý÷ uˆˆc`!³Æ«¦ô#ÑãÅxlVÒ^¹,agháYÆLšÛó4·×î·9×±Ð0½A%4Çõ|DÎ``!3<¤SMÙéøQÀù!É*¬Dû`[h°c”›Sæö¤æöú1QYÛ£|©TL÷€ˆâ``!}º—àN«š2H8meV¢ý°-´ð,cf*šÛ–Éu©hnOjnòcv¶õ…ˆìÂÀBÙ“èVSæ ït¨×Ó‡\†¾ X\ÔÔN\¬²d¨ˆÕ†ºæö¤æö(_¸–…È~ ,” n5ÅÔÅ £“Ûw:õ\…Þ*C ö]«…U–ÌT4·çin¯ŸŠæö¸Ž…ÆÁ* ‘ýX(]fª)ƒú"°sXjÀLÅÇ]Û Ø1ÒÍ¡@s{Bs{ƒèžù(4·GùÂ* ‘ÝXh|æ«)ƒøØy$ãCßT°^ž¡va•%æöl©6šÛó4·GùÂ* ‘ÝXhtÝ-‰MWS™ÅàµýsW¢ص_€“̈î‹HJÍíõSÄçLnc•…È^ ,4º:Ü8­9蔳 ëHl[€Ï*K&êšÛ“šÛëGwáÒ–ÒÈ.RÆ¿/«,Döb`¡ñè>š–*ÌM‹²q¾oºùSÔjCQŸ7Ù#iÕ„U";•Mw€w öLšO¢bº>T¥êŒÙnlšCKÊŠZm¨knOBÿÚ²—”Àù„†ÙYZêõ :”3s²|½ó_¨Ææß{ÿh ,4žð²Ö¶ ¶ãhÀ®À¨À²hº¢s«íEî,@o¶÷`þm¾½³ ™µ)$0??Úc}ð¼;“cr„ºfo€ "§¢A§÷ߨØXh|>Ôâû¨º^[N÷†Óè#€š¦fËkå#¿”ÐX„ƶÑ}>Chj‡ì&¥ +£®Ga•%žQ ˆÎI³SЀjdüa`¡ñU F aH©cû˜³Pó5fa~P^1Üþ \1݉žªNî álù(^e‰ÌR…4ª#¬²ØgÔ l 0½Á't8}Í^ ,”È¿×:·y¨ŒÉÐl{'5èŸ74ˆ§…¥ÌDµAÀü·0€Þ·´KÑ]£þšfgJ‚tKfŒZ Š˜Öé¬êd…ô“0ZlUà´° T wM‡„ùÁ{ÛgŒf‰?VòAˆîíÌ™­×µõðÜËN¢ô0œÏÙ'°·ªWu\Â%TŒÿÎ2CBúui±¾ìÙÄ@˜î@þÔ5·'a>°Å¬,Q|°hÍ…ÇÈ ,)èžÍ<­El¿û¶Çö’1Û Ð½ŒGó1Ö¨@¦tNq°ÿ’غ¯¸7G~©  ÷[+4¶µÝ—ÈÁ G„»t…A%o¸–%]\Â%ÌYñKng 4 @ÕÍŠI4lÍ`¦ïãÎã|á¦ÀeeLjL'an` ±5Üp,ÀT pîÁîǦ-Ž%ì~­hnÏ–Ì x•¥¼ ×£ä1¤ôb•%]>|«ä7ÐÀ%\ÂüÚð J+Héã–H¨é 5‹P¿…¹îl#¡~Q/hwþœƒÅóº ´iC¦bºÂtòG÷[^jn¯Ÿ">ç< ×¥„‹å‹V®eÉ‚oé)…,`3Cà éÅÀƒ€ %ÑàÁqœÄÖ3ËúVtó ´™D3›ô¦;?uÍíIÍíõSÓÜ^¾®ažçuÍ{^~Ö§$ÁÃÒeã5J.ã2CÝå —`x™BýL°}FúwQë% ·ŸC5还¢ è OBc[y#„ª¤ŒSUh4€z½{ ÃÈb?é IDATÂéýgϪ pæŒúó¼Áòײ¤«‚Š5‹ï}ø¬¬XŒÝ 2‹bþ‚“è^xþ .¨€‹ïû1½øžsk2@ï·ÕƒùeQºOž»°ƒ¹Âu*£Lûj4Ô€~a!y0$¼ÀdÔÙ³jW²p‡²3šÒ?w ˧*ª¬®X®ÐSºk;æP̰%ÐÝLÀ3Ñß@›¶Ì•ÙIÅt( æö¤æöú +KºmåÝ =& +Õ*ðâ‹ÀÌLw½K–j5uÊp=͹sÀ¥K*0ekYò‡aÅ~… , *;0\¸ø~»æß Ãíçîjƒ-…²@s{žæö\åûÝõq5ÀåË*,Dw3! 0:‹”É^'²_UûOdJªPE ½ Ò€p,@M£ê½-Àüs\Ýà"u5ZÑÕP«,à Ãíç‰jƒÐØÞ æö¤æö\.ªŸ›‹_U ƒŠêq¦BÊ ýÂKÚXeÉ*ª\»â€BñƒJÀ‹.(¡»^Ûë»÷æuîSê<æE¸`4î(@ÿ %`ÿ¨ÆDå)Jn?§*šÛ“šÛë§¢¹=[*K¶B êkµd;_U«jÚ—+ö0¼”JéV]ÂM È}uíÍÓ(rXÆ *aH9‡îÅ"G™–»ˆîµOf`~ì9ªEŒöü«èh¤‡g Í$jÐ?‡ˆ2W×ÜžÔÜÞ E¬,ÙDÊnU%®°ª"¥}•¸ÂªË‹/¦\\ m´3®_qCn‹‡ÑƒÊTUD¢;%*-TßÎAMs„z]E–øY|¶ˆ«˜î¥­¢¹=[f?V4·çinÏVaU%é¢zת*Ä; \Xe!Ò'wE@wG¹šûTð}%¡ÕÏÜ›.&¡a]‹‰2”g Í$*¦;@YÐ]8šÛë'ÐÜžÐÜž¢kU’p½ª²“4‚K^Bœ)‚Og`ýµ ÈY`èVU’h TLüLŽNsÉ(¯ul•¬¼[N?ïÄÔ|º¡v ÐÜž§¹½~Íí¹ðÑÎRV’TU µ`½ò0¸,Œðó•U–ñØXÈ ¹ ,>F›ªt¹óNP¡Å¥j‹ŒªQÌ,¾÷4·™T`¨Ýº¡v @w•šÛ¤¨Ï[·QÂJ¸X«*;ñ<5õ-iµ¥¡.¯¸±;œ,jМt­JjŠm?g¨çáÒGHh#ƒŸöcÚLÂ¥7Å¢{LhË®YuÍíIÍíÙ`ÔÊJ¥’Q‡É«-¬²eÏéÀ"0ú°hÚñjDjm‹KRßú¸’æÁb²}ñ}ÁÎxE« ºŸsѦ…VffŠWYé'iµ…U–ÑœÁ£ísKcw8X|¨±›Hø¸0¬¸ðóxîMK=´pñýv¬²äN]s{Rs{ýèþ,`÷¹ˆ4…×WIV†•^Iª-¬²ŒÆôw8XÔ@~”“.…•P÷¦ˆ¥ZLìýlû©Ø  mHQ« ºŸ·§¹=|´³ý—/3¬ ·ÚÂÀB”§‹€ {#<ÖŰ%QÐÐRß÷ª›î¥M÷Û\hlk'æöæ`Gu)+ã„NiÚÙNÕ–FCm,¥æNÑØXaq‡3E`ô ºVB -~IHh3.Ýo—æ$:,ÐÜž§¹½~Lü<Ëë¸|Ô°²°À°’D´Ú!ÔÖÈ”Œ´à-‹;œ,ã]]}DCKeìn$góâ{ݧãmX ¹=©¹½~LP%ÌœÉÒ¨a¥Ñ.™˜v븰Ú B¤õE`ü°’·“GnôNåõçâû­‚œ¶U`Ííu{c@ýLªÁîx\£†•ð±\·BD.°:°ŒV0³f[ÏtHa ißH›“n]c[.•ô§{‹ÐØÞ ¡vÔ.5¨ŸOá­u]©6ìÿ9ëy£‡•F¨ò³M™Þ! Nþ-6k‹ÀxaP¿ózò(€Z—ã ‰1§ ˜˜;Ø;b 4µÓ@~?DªhnÏÓÜžº?Ÿ$¶þΑšû’„ã­= VWÈ,K¿àœae`?¬f–>èÀ­Ð2öz?•n$cËþ¯½‚œµCô¿ÜBs{ý¦;°[?þ€º}Òë¬ô>žˆÈÖtÂJvÿ"LK·BËX³¬*)u" ;Fu¦TLw XÍíÙ< ·…0Ý>|8?Æ"¤jUUXˆŠŒÓÁÜbU`H'¬Åg0³&}c~oL¬eñ ´i þ<×N÷²¡¹½^žáö‡‘¦;ÐCÊñ·!fu…l`z[cniì«‹‡t~y6P¬À¨×Ε±å,ƘHf6/¾ÏR\¿b@ ¹=Os{½„áö{U¡~Ì\pvý.IcÝFƒ…ˆÜcM`ñ‘޸ЕjCÚ<ÓH`äïu fv­ò ´¹¡¡Š†6hÝ?¿¤æö¢Ìo¯Ü€zÍ_„ (êãîf“q×­œ FDn²"°øH÷$v%Åc¹$€;Û8KŒ‘*iõ"Û&û‹Œ_Ä2¥%t’ÏÃ\•Ã3Ôn* \€zîº[ÛjÜu+!VWˆN s‹ñÀ"nXÉÓUíGáÃËfŒ<³¡’b'â’°oîJ–|Ó(6ÝUOs{@ú'ªvR…:™s@ êã<®¥É¸[G±ÂB¶8o¸¾ÊÀâ㥒òñ‚”ç"ßt¨ŒúÀ¢/¾›ÕãÍíé. úÈ6¬„Ó¼Âu(²Ó¦+%J`ÑÅŽ¥Èh`ñ‘þüåzÊÇsQà¢éNÄ4òü¢/¾÷2<¶Ÿá±);…IMíÌ#ýRÝi^çÐæeã:”¤|üu+!^Ùžˆ\U6Õ°@6gõ\Ù)+k¨_ئ´Æ1‡Î(‡‹ïu?Aæ«Ù=o'«+rÀ×€3èÿëpå”F ê[qFc›‹PÓ¥²  >ç^ŠÇ wóªÃÍÊIR³¶­Ÿ#Jé- àœ§ ,>²™ÕâúÙ´4]pÅt'b[ôè,s0? —ÛÏðØc覵ðÿåˆÇªC½ãê°õ2³è/ê-"ý ÑJ¤(ªPß­…”ŽçßO÷x\¿BD®2X²–ßeìü#Ž+Ð_BPsb¤†¶1‰ô¶T¶Î˜’)3J{Xñ ‚Š7Âc°}2QœŽûPÁåÅÚŒCtú"3:~¶×G[£cÝhoò%Ëê àÎÙwlPP ÍÎòûLù¤-°LìœÔH'k0ŸÆÂ‚7Æ1$Ò™15ˆÖ°"Ð-‰„m@-°ñ0^gç‘í~ÍÙ…‘ÉQ“  ·ÎÞ\ÆëÉ8u—çµZ¼i_®TYˆ’È<°è;K(4µã2ÆõÃŒø½ Òìň$º{ÁÖ ‚‡·Ãý¶î ›Õô2@ÿ4‡9ÂcÃT•Öè-€‹¡ÅKýˆñ…×C ·öÀ톳–uu…Ü•ùùxïj¸äÀ™Éó†ëÇJ"ó+Ýˬˆàô„8.Áþ5EFXsSé<èLª]@÷IÌC½9ë‘û¢u70ñ’×ÒP¡%«ý©æfbö¡÷3ZEwcîàeFV[“›² 7Ð}5ê`åÄ4!€óN8s—0û% *€ +33ªC”W™N “à4-[ULw`ˆ‘wÛ>ßM§* + d?TÏr®„Ä8Ÿ,UˆËjëpšס؇SÁ(éÔ¯ÐåËêþ.…vã”0÷dX¼,Nc `ÿuY¼QäÂ"¬U¡H8V=߸² -³HZØzÍ´ô®C‘à:[±òQ\£•F8wÎÍ)`6rO¦ÅÆ-9©«bºCÈQ¤×§DƒŠÖ…éìP·#1?þ‹ï#½Má¢Wª)¡P¸&Å~º‹Žig”£€SÀ¨˜2 ,8Ìvè¿@|#¯4¨ÀÌ›:¥­»ÂÓè´+a`t*NXÉb¡ý †6üX÷šÃxè¢Û Kt§y‘[t VsÌ’R]Geqq´©€ +TT™ݤ6]W1Ý!Ĩ¬¤×‡Ø<¨SÚº×,Ì*¼DG«¢Ó®Ò95QIáId=!2^Í$ÉÛcÐ:Nór›îÁÀbF4¨Œó=§¹Ì†)a\ÃâžL‹§ƒ¹Â7Ý!¼Qè§×‡ØzKBÑðrjéÄ8ãäjç½Ç0ÆCº×JÑIG{ÞÐ{Cþ½÷[.Á€’7 ,ù–VPÔû H¡S†ÙXÈ=™lk,³8¨ÅíºîìÝ xcd{7ûèßáEl«sê {;(ê°tïYôÞ5&¶ý»~Ã*G½Ï¼ ‹¿å” Ý‚ëXôR-ˆOëû[­º¹Àž(-™/‹ƒÆÀŸÃ£Y€½E`Œ ‚V ?°ÄMXµÎÍh…d>Ò[¥VOé8IÚP? +ïîY^…¥xθЭ@½®¿Ý"H;¨„*•tg’é KÃêÕ»4H¦»„‘j°{‹c1êè_|/P€RŸ‡t“`â±’Ðñ®~*À§y•”f®ÁâyúÛÌ»4§~õSµù—tB¦KÝÈI2W&Åd¥ClÛeÓÈJÅ@›ž6µH¿WOùxqÚÈù‚Æ`ê‚‘¼Pez„P[gTB®/´'WêE¤}À„¤áö]U1ÝÈqì§Ó‡DtOCÓÊGúŸò åãÙÖ®ÐÔ¹ÆÔøÙ\ÿŒÒ# *µ+VD:ä.°Ðèr{xOÌ7ÐfæòµR,ÐÔG‡ÔŸÉ𬲌†Ae|g``áV·4vSêE¦}@ÇÚwY`ºY©h3—cT‰ü’бÈI ¯¥Ádhà`;ÓA%Oß/ÓkXÈM¹«°äéü¯nÓ@Œ{€fß{šÛÌ\{əޭ¥®©OS;Dñp{ãxL•¯ŸCE—»ÀBã¹dº}ˆ4RIã ImfF"›Ow=ƒc&hjGjj‡(S;”¹Â– šå÷+-Ü%ÌM©³3Ït–Ûu,¾6g‘£ï™î€ãx:›ìcÃ@Ü6¶•(Ûú3 iÁÉ7å²Â"MwÀa5˜Ÿ¤Ó+µ¡ž‰4æh3u9]”½©±-² g˹[X—€ï«í‰m ü~Q‘¥XdšÏeާbºY11ß-¿`<ÓÈP]c[Rc[d;‹vôähP™›³ûõà÷‹Š,—Wº°£ÒãªÜN 3Q>ÈÁx?©kÛê‰DzÙZMÈšKA%Ê÷M÷`<6ìÖàÏ}'å²Âä`ŒhP @Õt'zˆ´ä§u ¤6S#‘ïø¯óòÑRc[DñÌe±ùŸÅ\ *!×§…ÙXjZîSZrYaò=ÄÒ¡bº=DZª¤u rµøžFgÖ$DÛ¡ÊâzP‰*Â÷‹¨Wn‹ã'!Œ«˜î@–¸ø>™ññmXq¦«ž(4µC”Lž¯ñ‘§ *ZU,Mœæ®Ü€0ƕ۵,\|Ÿ€4Ýœ¦;@´ëÓŒÉ[P án•Åô¶ÆÜÒØ] ,4P`º©žáâûò4I@ýTPߌ¹Î­­¹DöquÜç©ë¨ŒTªUukX~"žU*š²édIšî€ã*æMw¢#õ%r>ô?¹Y86×NÀþ¶Œüÿù_þ¿iv Rææ€JÅt/ÆãyÉCJ£°°Ôë*èDù¾á œêæú®aDqå:°Ø0;ÞuU˜3YaPþÀ"¡ÆÿuÍíŽLj3Úîù>_ï½Kµ–% wdDI‚EµÚ (‹‹Ãëûêu9oú—a¹9–¤8%Ì]¹ž8: Ç"éd‰‹ï‡šÚY„š–Õ†ª¥-Fn~çæ¡;KhêW¤é dc%!®8÷j¸pA³ùùáa%JJõxÛ¸XÎ>ÊÀâ®Ü‡þZ!0ÝdX0±øÞ©7¤ÌY;º4 ê‚U¨T|©s»3o:²‘• )ÝÞ1ìÒ€W4¨$ )½l -.‡L¢$r=% èN©í…»Ó@†ß»ð ™ºOøxpl- m˜ øú#!*¤F8cÙ¾žgg˜Š£wZXµªBÌ8!¥_i/ \ËBEj…%Hó`)òLwÀq¦O(Y¼’åÁÈé¢nTyªrÀ9¥ÎMFn~ä¾F”ŒÁ`vÖí-€/]RëSο¢ÒO ®ä˜âJ•Åô–ÆX;R¥ar_aÔøÐ7Ý ‡0¿ð>3pñ}nD£uݘU²S½nºýù¾»Ûë¨4„¯MÕ1VY(ïR ,AšK‘LJã`véEæÛá_‚þ'è):–~S±è~šëÈ`Ók"-l ,³³jðkkÿlàûjá¾-¸cå]î݇|ÓpX`¸ý̇£&v s¢„¯ëôaÝiXІ5h*Ö<ºÓ°VÈ]¶-àŽrµÂ¢K¥bßÅ%X†kh¿j4¥%õÀbëÏ_.©ï«–vÃÅ÷ºùÚLDhj§ ®¡"ê½H¡M\Ya’mÁöï™ kXj<Éå¬ÂTX.¾G`ºY«h“)ºC˜î‘16WYlÛ†U"}R,AÚL‘4ÝJ,ÐÕPEWCLÑ›¤éaó:ÛÏØÛÀ¶©süžQ^*°Ì‚çrG¡]^HÒ aºDFØXž±&ì«’Ùú=3=%¬jí¢Š£Pà m—4 ùýdbñ½ß”X¨¨l¼KÔÜœÛ×eÑÁ¶€ÀïåQ&kX,›Ò¹Oh&0Ц¯»AS‹ïçÁñ:§„QAÙXûä¶a•…({™–JM‘oº‹‘ŸÿBÿÅ+cÑùÈí¥I‰†²máv¯ÙYuÕx̶€0;Ë* åK&¥žÅASÄÍ™F£søZ…¡+lTL4 U`ð µ=P]s{Bs{Dv¨TL÷`8.æÞ«,Ã7|b*°~Ñí¤ dž¨kl«¢±­mL,¾T•Ej»¯ºæö¤æöˆì°`bý\BRÚ·#–ml ¬²PždvË+ܬ²Œ ®±-£'ªLaѸ=ÐÜžÐÜ‘j57B «,;³­ÊÒh¥’é^+æ"ÿÉÈ6(guà ì^à.;·Àh/¨cÓÁB5¨Ðb*Õ.˜ÁxoN 5þ¯ŒÓݧ„æöˆìꌸ̈́PUÛ* 6ñ}`qÑt/ÏSaØ‚Ÿïœ¶3>f |J0Ÿ|3«°8p²ˆÓ 4µSÑÔÎŽÃí/"Ùîa*¤ÌC®¤ïK÷o:.¼§âra À*Ë0¶TY._¶k: & †[®_“Y`©ÁiaÂt'h+>˜{P¤y¨r¥Œü›Dw¡þ"º!ÅÃÖ7µ7n't~7„ƶˆìsÉÔú¹„\ W¦˜®@]¾Ì`IÉTv8U¼Ó¿é”Y`,9S>„gºÚ0>,ªbºÔ^Ü‹ÚÛ"ºU¹ÃcÇžbŒ{€„<ÍíÙÃ…u,·9Æd•¥Ñ` ¤d¡¡ _C±¹ð¦à¬éN$ÁO$W­fÇt¢8xg&ª,03cϺ•(ns ËváBûAhXóºeX\˜X6H.°Ì/Ù"\|ïšT¿ÏAU_ÆúåŒßŸD85ŒŠÌ•³ãR²Ê²U›Ù“ÛVSfнîŠV&¶ÏÈç)Ý‹êp. fúZIq=KYM saÙiØBûMëW¥û«,n«<ñLw g¯úUSŒžE«h3o# [ãùY8¶ç4iîM s-dé’ö”-ÃÊœ1Ú¾MS›L¶qTa+,€a`œ]>HÚ?n¬]ho’ñjÊ ¾¡v+†ÚM›íµDë'C’až§gÑvZææ¸ž%k.†€kXl·ºbÛú@s`©Àþ* àF°ÒM Ý gýBû(©¡ «ª)ƒ˜8Ý; =߀,ùØVª}¾F´ç™îA2œ–F¸pÁͰBvHR]±-¬š àÆ < ‘Ò&S>Ï-C¥¶¡¶$ö`Q5eÀP».ÿ†ö±½ÿ /Ð@N3qÂqp«ãíÆÝ ¼‚½«¯« ÕÛ¦7™à'8ÏÀ5äqág¯ËC¤,ÈåÄBû(/åã…Õ‹«)ýT µ+á@šëÃGÿw:ã:%£ó„iÒÝÁuΟý±aXqy'0ó)ƒÂ :ÿÎÑÎÅmƒ‹Z<˜¡Bù²zÍòVl˜fë üį¿­¯•±ÀÀ*‹à§1Ì™°"0|Ü9HÝjÊr<6õ ·/1Ú7(+TvÚ}ùÙ¢™LqíÚ,¡"†!’ïèÕh¸»mñNl,EäÃO´n%dãúÀ``ܨ²j("MwÂã ™µ/ÑwÆ­¦„/„ÃíK ^'¢»óØùS©`”×®Í*Rh wJK²v%\¯’·°²°#(s¹ê›1즫It§~Õ? q*¥/Ô×Ey-IÃJ£¼ø¢ªªä5¬ˆÎ&iKãQÙG1° Qçj‡‘(ÎÔ0Ñל†•æ…¾š2H ö„@ŠymtËñXê›”0ÉÇp¦¾Hr=´¸Z%Ä󒇕™`~œ_´àt0}Æ +€½ëW lº! UmIózYX„ˆ†û‘5£õœ +€êlÝ7`ê›| Ž=Ý*PïÛ>¹ºÕ–:†W9ªPÜHç´„“ŸrLZ\¼ÞÉü¼ÚAËÕÐB=—$U£<.¬„Epý¸aÅÖõ+€EPĶG[Æ ËIDATéNÄ0‡|Ñ×ì8=L«tþ\Àxå¥Âña÷ü8ý[|,ÀÑO9ÆåÐ"%Ðn«þéÞ$çû*t%©ª\¼èæ÷jT¦§ƒÀyëN¨¥Ë‡?òš•(Û§ÎY1%,Ê…“-vÏÆ5Îss6¬*°H0¬$ÀO®.ÎlâM9À%‡g..ºUqB­9™›‹V A-¬ä=,˜–VX€Šåë-­ ,ÜúHä3´øm*X¸ÝÙ°Bc àÆ'7k +d†ï«A±«|ßþÁ¼ªŸµZò]Àòt!ȸ<ã×ìÊ/‘jXìßMͺÀ¨¡ ׯ’ÈWhñ1ÚP+œÆaZÑ(vhaX!³¤t;´„SÄlÜE,\TŸ¤ÔhçιU=J˨×ÉJžÖÒHH,b1Õ××öõ+€¥PËe]ø¹+‘Ðâc´¡Öe8> ŒR ˜¡…a…ìàzhT0˜ŸOVÅÈŠ”Éû^±>œ:V4Òª°’ó˜{'°~l_¿XXì.P)n‡ɇZá0îòKÛ(Nhix +d“<„ÏSƒý¤;p¥AˆnûI¯³°ß+ÖNSÊb@=.×§§yð°ˆÅÌž‡íëWË à^¥EšíF"j}ù(a…SÀhgòZÂOwi ûH©.Jèºp*–Žk·H©R”’Tx àÂ…nÐ)аš²ˆEÔP³¶²2‹Y'§……×V™Ç|¦!Ðöõ+€eÛ÷Àk´ÈÎÍ…ë´H¨a–Hø¸ËP›ièç1,pêfû§7©*ÔE3ùI {…ƒoßÎ;þ”²(*UAªTÆ;¦ê˜çÏwÿ?©FCUUòZQé䇻~ HHë*);YÄ"f0cõÕÜîk«+d¹°~p °„$F_g¡›í—ô1ZUea„ÇQÑÕ >½üg³]I? ä– Pñ p?´„Í/ÌËÈhxxXéÔæá+ªmK+OIÛNýÀX,õ׿¾¬GyÄs8cŒæææôæ[oêNÝ©¡¡¡®¹ïîó÷Þ+Išyë5]Xª¿Ìšg3=½=ºuÿ­úøã5qfB÷ÝwŸ†††Zj”– š½)+aI®4ssF½=½:|ø°z{z•H$与ŠËE]¹zE—.]R±XÔðð°òù¼fçæ´k箚÷Fµí²”$9vý ãØ¶R©”î] @eÕïqt]W®ëjrrR–eéwÏ>«“'OjÿþýuÛ¿ÿþûësöìÙºÃHÒ]wÝ%Iš{ïïºTp§ÓÓÓ’¤Åü²ÛÝҸƶ×,çZï¿lD²´wlLÓÓÓ:÷ÒK:~ü¸FGG›j ”c´´XºŠjY–fgg5<4¬cG)“ÉÈ#cLå!Õ;wª¿¿_çß;¯›7ojhhHË…‚ ùü†g ÂÔ¶cR ·]­ÔÃØ@`´m[®ëV‚Îú hŒ©FÉhaa^¹\NSSS«ÛþÔÔTåÿåáóW¦u£*˜5R§$õõõI’ Æixœz’.\¸ÐôøÆ±×ÔÒl`,Û½{·¦§§õÊ+¯èî»ïÑîÝ»[j€8³m[E»¨t:­\.§ìö¬n?|»,ËR>Ÿß0|2™ÔèžQò]¸xA»œ]J§ÒÊçóJ§3 µý›ßü¦f(÷ô8q¢é¶-ËÒ¯ýk}ó›ß\3üé?ý¾õOÿØPÝÕŒŽãT‚auh4Æ•ã¸2Æ•ë–~¼E§NÒ¢§±ÐvþüùÊÿËqá£÷u~±¸f¸/}éK’¤kÿû‚Þ\,*Ý{—ú|é²ìéÓ§+¿—¤[î¾_'WþúôiIÒŽ=tpï ôf•«|n^Ó“è£éÙ Ó¸ùÖ{2÷kGÏ6}rîŒnýÂÉ5ÓÞ>rHw¸EÛ³Û”LZrŠÍݸª÷Ï_Ô¢³v0ë–C«Q’†‡‡•J¥ôÚk¯êŽ;îÔÞ½{[n€8rG©dJŽ[zšøàÁƒrGE»(K–ŒVÏÛ +!Û¶eŒQOOz{{533£ÈÒê+òêµí8¯‚Z–UÉZ­´]´‹rWO?ý´žøú’¤gþ»ôÅ,ù|¾¡¶«m¹‡±¿&(J¥@çØŽ Ëò…R0³åW.é:¶³1xmÒ¶ëºúÚ£_«ÙöÿðGÍÎÍ6ݶ‘ÑW¿öýîwÏé·ÿõ[I¥ìqê‹§4==ÝXÝU¶KÿœªèʧòÿR/£³.[ Œë/ãÖúUÕ“gÛ¶Þ~ûíJ`œ{ÿ½½°ô–$ÍxN/¿{S’4™H_¸­_ÇËþèå5ÓÈM½ª—Þ¸RùùȺiÏœYïjpGŸ2)Gs7–µct»Ò·É¶?hx^ZaY–úúú亮Þ{ï¼²Ù¬víÚåûtèf +©DºÔ“˜N§KWVªeIÆ5Z..+Ÿ/½ Û²,¥SiY–¥d2©L:#'áÈq܆Úv]WÅåbͶב%«é¶Ë~øËúÃïÿ ׸ºï¾û433ÓpÝÕJ½x Pæ8å€hT,:U=‹«—¢KAÒhõҵ亦¡ök1Îæã–—¬úõúa×?˜*=­›\¨|>7¹$ÝÖ¯DjpÃøóܨ9ýr»{OœÒñ±¾ ¿·™ºµøÕÃX¾‰µ··OÆ,èwÞÑñ'x¹7[I¥”J'KáÍ …5—ŒËWY‹ÅRGT:–$%’‰J/d&“‘íØ*æò µíº®ò…|ͶV¢¥¶Ëžþy¹®‘ŒÑ‹yQ÷?pÃuW[ ŒõŸ$.½ôÑ]¹ænWÝ·èVÝǸgõu#í×bÜ×÷mc”²,%3¥šÒÃÙ55J’‘dIÒºñ¯Û®†Ó mß“•3Súf›ìhi|×¾¾aZn±öýåºîí•$ͼþ‚^øè†²»ÐWîZSËfóâW`¬–Íf5;;«.^ÔíGŽÔH*e‡tºÔë¶¼¼¬åååÊ%Úêç7’Édå>ÃòÃ) +¡T*U ‘–6\Úݬm×”^¬]«í²fÛ–¤¿¼ð#=ð`)$ž}ñ¬Î¾ø’|è†Ú®Öð{mÇ.¥aãÊvŠkz×ÞËèVz]cä¸NCí×b{ø.9:Ô“Ò®ÏÝ¥Û?^ÔÃkj”¤ëEWCé„ïþ¬î¼–“‘ôúë¯ëµ·¦õÕãc8ô€>¿ícå•Õþ[KãO¿õ· Óª5ýêÏoØ®v§“ê;øië¿U£û7ÔR¯-?cÔÓÛ£.}¤ÁÁAí¬?mÛJ&RJf’êëëS.—Soo¯d¤3gÎÔçÔOU¾‚otϨ’ɤ +߬ÒHÛ–,}±ö+‰D¥·°™¶K‡–ÆO=$«Ô¦ññq=ÿüe2™†ê®–’J—ë)]v–\Ç‘]´kÄ5?»’qeV.c7£ÔæÚqß:óªv>ðÝÒ7¢c7tá•ëú̽C•%éÜËïèÁÏ~J£úôÊ—¡¼öÚß4ûþYvŽéÎOï×ȾJÈUnîš>ºð¶Þþp®¡éW~î…7ôнǴ«·ÆtM?wMw?4²¦–zmùÏÒöí=zçÝwuâø e¸4 @]…ÂréÙÞíÛ·Oï¾û®vîØ)YÚô H’‰¤æççeY–<(˲TÈ/o8ßoÖö—þrÍv-Ë’q&?™lºmYÒÃllÿ+_}XÆ5 Õ½¦¦“'Ošï}ïûõ–£lÛÖ /œÑ~ð}-..TÝ·¸6$V÷8ž={Nù|AG«Û>ücŒÑ•+WtäÈíÛwkÐå ===Ú½{XVÂÒ{çßÓ•«WtàÀmËl[s™ØJ”ÞÍ899©ùùy8~B£££ºysVׯ_¯ùüCTÛ–¤ï|ç_K=ŒÜO·úKù˜õAqmh”V{%Ûq¿¼ èÃ?ÔÐð2z¨'·”ÓÜܼn¹ePGŽQ"™Ð¥K—Ô××§þY K¶m+—ËiffF’ô¹Ï~NcccZÊç577§â&oD‰jÛe[ Œ®r¹-..T^8Y~àeõÅÞ«7ˆær‹²¬$1™LFù|^SŸLiÿƒA—@è¹®£k×oÈHܵSGÕÐ-Cšº<¥Ù¹Ùªá\îÕþýûÕ××§¥¥%]¹zM +_Ñ×Mm—•£Œ2š_XÐ/~ñŸ*˽¬<•\õ”tég³òh÷²î¾çž†Ú‡Ï,©·¯W—§/kÏž=Jg6ÿºPbÛ®®^½ªåBA»wihhHCCCÊ-åä:®‰Ò“Å™LFŽãhffF7ff´´´ù+i¢Þ¶Téa¬?`2™Òã?ÑP£ëÑÁŒD"©lv»®ß¸¡‘¾k€F¸®£ë7f4¿°¨þ~õôlW6›U¶'+×uUX^ÖÜü‚æç絸˜ó|M·´’D¢ëbÉDBׯ]ÓððHÐ¥)…BAW ÚVå’4ºYõ G¶ªfãÅߢ´Ñ¬SЀxìë>KIR2¹ñ…”?þ÷·¿"„Æ“?yRïüý-=ú裒¤ßÿá’¤Ú¯.Và‰ÀOFxJI’eYA×€JIR"AG#j£‡žèa€§•w'ƒ®!E#<à‰KÒðD`€'#<à)%IúÓŸ%¹*}µ´«dš €’„$:ô)=öØcÚ5¸KÅb1èš"¼OžŒðD`€'#<à‰ÀOFx"0ÀžŒðD`€'#<à‰ÀOFx"0ÀžŒðD`€'#<à‰ÀOFx"0ÀžŒðD`€'#<à‰ÀOFx"0ÀžŒðD`€'#<à‰ÀOFx"0ÀžŒð” º ÊLÕÿ­× ÞâtŠÓ¼V#0 2õi»0Ô ÞâvŠÛün&v1ȿտD¢Tk· Ã" 5ˆ·¸‡Â8¿µj â»ÀHá8(„¡ñÇãPTæ9luB l!± @aŠeFÄ’×ýÚqÃP€x‹ãq¨Ö<5¯QZƱ Œõnmuåùy#j»wä¸?زKÁïÄa¨@¼Åé8ļFmÙòâîˆj5ì@£ŒðD`€'#@DuKžŒðD`€'#<:,jïC&0À ‚ì•$0ÀžŒðD`€'#<¥w1¦‚.0 ¥*®YÕ¢¼N·:¯ÍjvÕªÏ϶ZщõÞÛbõ<5RïfË óê‡zÛ@—CÐ5ˆ­зz°Dûµ$ÖÏzõG§Âl˜tã¶Øì<Åqý—meÞ9§låÇÁŒ=Xí:!•Ûe¶‡Q÷-ÛnÛý¾qÒʼÇy¹mÑÎ{·êSU‚cóârâ‹ú¶ØŽúã²î׋ë|Àˆ¶êÄÎLhl¿ Êa^¯µêjeuj>›Y¦› Ô½ÇQÜÛ]sCSç9hF´M'wè0‡‹(óûáfî]ÊzµìI¬ÓÓ®7¿A÷ÊÅe[ŒcpŠã<‡¾ktgŽË=ª¶²ü]îÍ„ª(­× Cc#¢´<ËØk û¶æ·VÿhëòŠÂqC"0Âg~…Åò0Q? ÇA³—8·úD#ëusa;Ùµ®Âº-ú} ƒãGç–êßEmù…áøG`ôYÔ6B?ù«‡ó2 J—9¡Ñ?~,ËN?x&~,?Žmk×¹e+mƒozAâКv\þó{Ü0‹Ú«X¬۷Ű¼L=ÌÚý/ŽŒðE;wjvh”uë‰2¨'Û!.ûk·n‹aÒî°è×øqA`DËÂxà cMQЩ?Û@çuêuYŠû¶hmò/Ê‚xêÞŒ"…?V±,‚ôò¯ £‚‚^®¨‡^|ÖÉ4 ;Uj€?X—þ‰Êþ~OÓ¯¶ØëkæõAQ ^ºqžÂŠFâ€ßB•ÿ¢²-6óZŸ¨Ì[\·ë(¬#€È‰ëI¥žfN:Íô„bËí–0I`€ˆ cH ËI @{Ñ´0ž´ÐÖ¥ÿ:ÑÛWkzž®ßÂT €U<ô‚Žâd´&È}h³iÓ»?p~7z âÖ¶¨÷2#´‰ß=o„:A!0¢ktÓ· ¾¶ ýÜÖ½¦Íåh ½Â¾/q#B-ì;Ð)ÍIz$h Ó9ÀˆŽ ÓÆD];ö§ ¾q@øqIÚÈðÕlOa»¿ª` ´Go­"0@È4Ãv2к0Å2#„X«÷!òŠ~ 0@›…µÇ \ŽF˜ñÇMçDN\ÂJaqcâ²-F4K]݃“^øø¹¯4»~ƒ¬l‹@8ñZˆºU³ïí–WAyÍ{æFt½ŒÝ!¨õ†g3‚®;èé·Û"¢®Þ6†ó&ÃÆµ8ù…_ÖQ'jÃ|"ZZ=§yNjtÚAŸ7 Œh v :Ø_v­l£Íª(„Åf‡÷ ú¯%´®Óë0Î'ÎóÞ¶EH¥í`+=vœ‡G`DËZý‹Ðï–@ó‚8 Æi}E=dt²~¶Åøòëë4ן_Ì&Ÿ%j=¢F„B«;ðúƒ@qÑ©eõ°Õ ?ç½›—#Û"jiäüÂ:­À_øµ³må¯?¯aÙù›×Ée×è žõOl‹ñÕí½ÙQÄ{á›fß¡µz ƒ³ÕuYv+Þ¸ž ýÞO:UCPëmíÄ:m=Œ1Õ®Vv¾0ÔÐ ÚõM>[¹ý€uÉ2ØãªÝËœuº5ô0Vñ#Duêóa®5 =(­Cía¨Ajn]úU;óöŠÚ~ÚÛbØ—êk×vêçmTͶÕì¼ulŒ]`ìÄà×÷¯F©ÖZã‡ý5z:Û«®0ÔPOÖ%â!ªÛb§ßÅc¡?×{;Ž-A|çzbÑ9å¥ÝønÛ)Èué¯FO€aYa©Cb[Œ+?Ö{×éVÃpó@`DÛUoà~äøów»vœ¬YÁ‰Úeéjl‹ñµË¸ˆÊFtT+á1è«Ö¯‹¨ü…%,§Æ°-ÆÏVÏ#QXÏ^…¥þØư,øFD©Öf=AO_ G ~è–ù褰,³°Ôá—0ÎOkªöú¼tÛKíÃPÃfx­<à‰ÀOFx"0ÀžŒðD`€'#<à‰ÀOFx"0ÀžŒðD`€'#<à‰ÀOFx"0ÀžŒðD`€'#<à‰ÀOFx"0ÀžŒðD`€'#<à‰ÀOFxJIÒ3Ï>'é¹Ê‡ÇŽªè™gŸ[Ɇ«R’ô/ÿü­5¾þæë« ¡±>>õÔS¥À˜Ïç)áR+P±i`, /áS+PA`€§Mc±Xìx1ŸZ¹°f`´’Vg*@¨lmÛ^óa:™îLE•õ¹PZ Œ©TªãÅ |jå”$¥Ók{mwc²@÷[Ÿ ¥ÍcÀG›ÆmÛ¶­ùp©°¤'òdgª@h¬Ï…’dc4>>n¾ýío7ÝðŸŸ?£ýÛZ© >ûéOÿC'¼¿éñùË_jbbªÜÕX+M6̲´´¸Ôüøð뺭e¼)Iš˜˜°ÆÇÇÍw¿ûݦ*Ôø¢j+›Í65ÞÏ~ö3MLLXÒJ`”VC£$ýð‡?ÜRƒ‰DB“S“M€öÈnÛ¶åÀøÔSOIR%,J+÷0®WŽˆ—ê XöÿéÎè ½>IEND®B`‚quesoglc-0.7.2/docs/tutorial2.png0000644000175000017500000002021010766745704013661 00000000000000‰PNG  IHDRŒid¶[ IDATxœíÝ[l׿ñ¯ª/¢H‘²hRÔÅ–”X–l9q,{Æc;’’x2Î$ì’}ÌÃb^3ûÌ.X`äÁ3OyÉsž‚d0p0ƒõf2¹È–Ç·ñ-VlɶlY–hÝ(RÙMvWíC³[M²/ÕÕu9§êÿdKÍêS§.Ýõñœ:§ß÷µÞÑ£G7¾€Ì;qℳþµ¢$]˜½ Iúö·¾íKÒ3Ï<“hÅÞñãÇ511¡íÛ·k÷îÝr]W޳á8Òl8üÙ?ÿ¬(ß÷uaö‚¾ý­oûO?ýtzµC(¾ï«V«éÕW_U¥RÑ®]»´ÿ~‹E …´«,õµ¯}­ß÷uôèQÿ'?ùIÚõ€Ç‘ã8òúH'ž?¡‡~XSSSiW ãT—«šŸ¿&Çu$Oš»6§±Ñ1Ý}÷Ý“뺪{u­,¯è⥋:{ö¬VVV4==­J¥¢ù…m»m[ÇÜckÙMEIª×úÆz½®_ýö„|·xÇo*øzôᇴyóæ¾Ë>òÈ#}—y饗ú.sß}÷I’Þzë­þ@³~Aê0È{öÞu@[Æ4²©¤‚먶\ÑüÜ%}øá-{k§Ãì4gf®ãh÷®]šÕ+/¿¬x@;wî UYäû¾–n.Jj *ŸŸ×ôÔ´î½ç^•Ëeù¾/ß÷[No»í6ëÔéSºv횦¦¦´\­ªZ©l7`RÙu¿¸ìvƱV«©æå¶Èi¶2:«í·þ³&^¾ò‘–*•JýCæùóç[ßµk׆ֳׂyŸ^eƒq%y­º„)·×{vNOªV¹¡¹KsZñ]mšÒí3{4>RÓ+o®Ýþ°±iffF³³³úÃþ |H333C•@VÔj5­ÔVT*•´¸´¨‘Í#:pà€ÇQ¥RÙ°|¡PÐÎ;U­Võî{ïj[}›J¥’*•ŠJ¥r ²þóŸw¼¶7³Ôá‡.Ûqýô§?Õ7¿ùÍ5Ëÿíèoþë Tïv£ïû:|èSúÌ}÷IŽÓš ºñÉqVÿ½š`×ÕÿûÅ/¤Õyû9uêTëïÍÀØþš$}ñ‹_llìñã_kþ]’Ž9Òú{sù­;öjßîš‘+O•Åëš=wFÎÎo(ïÕw?Ö={f4R.êijÇ7Ô©PÞ¥Ï~f·FGGT*ºòV–uýÚe½ûÎ{ºQóÖÔ»×öÿéõß铹›­»¥m:öùÏ©4±WµÚÙ5Ë%izzZÅbQ¯½öªºO»wïºLlW¯×U,£‰—´oß>Õku­¬¬È‘#_·®Á®ãªV«É÷}nÕØØ˜æææ´wï^9º5Ý]¿²ëõú†z8ŽÓj¦ì••Õëžž~úi=ùõ'%IÏü߯ƒY*•J ²Û =Ï“çûrt+¼xž'×uäûž\ו§F[£ãyò=Oõz=tk_·÷uz½V«éìÙ³Ú³g$éìÙ³k~6¶û³:|ÏŒ|¯¢‹³çµ¢¢¦vl×§î9¬QÿE½ùñÍ5å=ðéÛõÉ…YÍ7«Ö6(¨µîÒˆœ•E]ž½ªºïhdˤ¦§wëþò =÷»m‡$}|i~Í¿ «S&úµkÞE`”­°žçé|Sžçp|•Ëe­ÔVäû¾FFFT©TÖE©è굺ªËUU«ÕF0«ÕUYíÒ­×êƒW—²=ÏÓ_y¢cÙ¿ùõo4¿0ºl_¾þê‰/ëßÿý—ú·ý7Iqì Ç4ûÉl°z·(0® ,¾/­6™¶ýu Ïó]Ù Æ“'O¶ãÉ“'×üüîýÓ’¤S/ü§ÎÜX‘$•Þÿ”þòÈAMï¿[µ¿fù÷_zA§–»®»vým½sv§¶MŒ©Tpµ¸pYÚ¶G¥ñO©V;h;Ö+ŽMëþ?ÿŒ$éã·þa·úZŽãhË–-ò¯î­æ}§ë²ëÿ=Yl4ÝY¨ª¾š{ë H:(·8¹aùÓ×*­å:•{çCÇtÿŽÑ ?wÜrߺtrûž{õàgö©ì8ºôîïõƺO)ºÆæ¯cc[äû7ôöÛoëÇ™Ü[åbQÅR¡Þ|_ÕjuM—±·Úkº²²Úè´:>Ã-¸­VÈr¹¬Z½¦•ÅJ ²=ÏS¥ZéX¶ë¸C•ÝôÜsÏÉó|É÷õâ /ê‘G \ïv«qcúzëÊïûr\§5òF¾Z•uZ-¾êõÎ}ôA¬_Í÷Utmò=Ýô|7ïݰìj5äÕëk‘¯ÔZÆ×êj6îÝjLlý½¹Œçyª{õÀó<®·þ}g–jº{´¤Gþì>}8·¢Ÿ¾kòWV‘³u—mÝÕªwÜ|ß×èØ¨><û¡&''µmr2öu`šZ­¦‚[T¡\Жñ-Z\\ÔØØ˜äKÏ?ÿ|Ç÷û±Æ#ø¼ºvîØ©B¡ êê“U‚”íÈÑK/vžzÏuÝFkaȲµÚ+|ôØç[³Û=zTÏ=÷¼Êår z·+Jj4Uöá¯vqÿhtk¶ÿÛu$ùþöæëŽ#Ïó•ßÉú÷|îšxô³šžÙ§ý[¯ëÃ?½ ÉŽ®Yö•ß¿­Çîÿ´¶íÞ«ÛWƒìk¯½®kᄂãµ{uß]{´óÎ}råiñú|÷¤N~°ÐwÝë_åÄëzäÏijÇÚ¼¸ wßxVÛþ≎ïíµýͰ(I[föhÛL7¯½öz×÷EËÑæÍ£zûwtøÃ*Ó5 È™ju¹1HvlTwì¾Cï¼óŽnÛz›ä¨õ(½õ nAׯ_—#Gûöí“ã8ªV–7\÷»•ý¥Ç¿Ô±\Çqä{¾Î}|.tÙr¤Çÿrcù_þ«Çå{~ z¯©Ó‘#Gü¿û»ÿÑo?®8­íÛ§[÷À57jýÿ›?sæŒîºk ‰»‘.ß÷uñâEøàMMO©\¦•/‹K‹ZX¸®©©ÛuðàA¹®«³gÏjË–-šŸã:ªÕjZ\\ÔÜÜœ$és÷N»wïÖR¥¢……­t™áÄÖ²› Œ–[Àh‡r¹¬J¥¢óŸ×ž½ûÒ®‰ò¼º._¹*9Ž&·Ý¦{ï¹WS·Oéü…óš_˜o[ÎÓÎ;µçÎ=×ÒÒ’>¹xI7VÑ—¥²›Q:Hr¤±-cº0{A;vìP©ÜýAdQ­æéâÅ‹ªV*š¼}RÓÓÓšžžÖÍÅ›òꇔ‹ÅÆd×õºææætåêU--uŸ’Æö²¥V c e‘®[ÐÈÈf]¹zUÛ·ó¬i@þx^]W®Îéú›š×ØØ¨FFF´y¤$ÏóT]^Öõ+Wµ°° ›7{NG“•²‹’HŒX£àººrù²¦§·§]RS­Vu©Zե˔½Ú% ¬µáQ ·:¶0¾ÿÁ{iÔ†9Ãy@î|õ¯¿¾áµ¢$¹®³áÿð¿þ!þÀßÿÁ÷õöŸÞÒW¾òIÒ¯~ýIRç©Ë€UFôD`@OFôT”6>hZ%MC#:#0 '#z"0 §¢$ …´ëCÑ€žŒè‰.iôD`H¿ú››B`ˆ‘ßã%é·ÇŸ•|_rÉ÷T,Ó®@äÚÃ[-|Y‹’äJÒÝûïÒW¿úךœœT­VK»N‘ò•lxKz}qcx4Ȭ4‚[ÐõÙ(é{™“F³)ŠÀ2aÐÀæ+ºû³%#°˜ AÍ„:ÄÀ¬’‡€f½kÓA`@OF`5Gá¯DÑbiÓ#þÂâFr.ÊÑÂqëUOGtYÇ…Fr*kO#‘ì ¾¶!03‚bÖ‚#¢E` '²Ø¢hЬ·lr#GHİha £hQ †}Ô€ ñEPL«{8ËÝÒtI`¹<‡C$ƒF,uK"ÁݰT–»@m•ÕcB` c†yTÐ ÷0`1• ›˜Z@æ¤þ²< Œ …ItB`H‰-À@†e±{É#0(ÚÖ¾¬u#°R¿Ç f-´¥‰iu€ñúµþÙr/ ­hak˜¾¢~üa’²ÔÂI` ãl .6Å,"0£ÍC`ÆH;,F½~;!0#¤Ñ£¤@êú…Å -u„ÎxÐÂ6H2xõZ—£Áºu]> ¦Õ' #9`jhéÃ218ÚŒÀRWXŒ£œ¼#0€Ä%Ê£;>ímËô{†²é’®·íaÍŒ’Ài„C_ч­¨FC#Y´0`¸^!˦VF›êеŒ¤ h—r”!‹Ö»tÙ¼ÿ Œ$h{³Ô"gÛ¶ØV߸q# 4€X`ZˆQ˜ÑÌY ‹&l)ÝÁ¦ÔcPFb`ó´7í²° &³%@ˆH˜ù×/&  ò[JØt,¸‡€!EÕ Gk^>Ø›ŒÒ㯻<:6~ÂiLM¸Ë¾8&.·@üÖæö€Øm`(ºlM |âçˆý@´:?Z1¤¨/òÍòl93×דЃ¤„¤ÕB¡(ªàØþþ¨­ôªSógIÇ$»fóÒ ÜëØ™¸ýF½ ‘‚¤[Є”nËGÑí´.Íu…©;­”éé·ïM ÍF·¤Ùì8õDs-ÍcÊE:ªà 3 úXHSŽ/È#Z a ¨æ&tFöàñ l0%¼KÑÖÅæV]#eCX"è…4È™;ìý}&…D/­îxÛÏG#ŒNFBº]øÂžmQ†ÅõËÛ~‘6 û$ߌ€mh5DB’¥ÜOg7)]qí›»…ÓD`L•Ç`ÈÀ—ÔØÔE7Fw—ä¾ ».B{ƒ ûÀ˜€îd¤ ʰ0èÙÕ— ïO£kš°jnQÀ$©G«!_Hè'ê{‡ÅùŠ$DõÝhsx7á³F`â0@w²Í_b0CØ ê0-`Ã\ÀÒ8çiíK_šƒ8öÃ#0Ãâ>ÃN洛iètÎq½…Ïå-iî‹°ë6å\¶ý—#TD÷Úü…s ÓÊØíuÎÕä%Èl;΃<ý¤ß³šÝî´Â²)¿¬õblÓ—rª)š -ai~l GYÕ1¦Œa»¶×¿ÏÝ ÛoÒç™ÀˆüJhÚ.P6žqŽ*Ž›I±¤¤qŸhV¥¹Oâ<Gh4ísF`D>téNn5Ê'ˆü zì㜔ش `“>íu‰ë:5#²%`«aN‰ùcê1'4vG‹Ÿ’>&L®[;#ì²;9Ž/¨¨ËäbopKTßQi‡÷(ÖŸ§ïj#ÌÁèä8¿”ÒþÒCtâ>OÂâ‘jùÂHéhEnóŽÀsÄ0%íß^Ó®ƒµR)×…Ó¶yëšïÅZ |‰^ÜûfÐãE0ìŽÀˆäÅ<:9­§Hôú dE.¨|&Í×/×AÎÕ,œÏI!0"^MvÝw5‘—d]Ó°E”Ažs>zFD#¡9 7¬6†òLø¢1¥yÔk¿§ñ‹IT“Û|>Ù^ÿ,Šë˜DÑÚȹ#“R0솮%Ø€À &Lpä3/#ºK¨;9¦ 8!؆`à#m>Ž„V»Ø0RºÛcòÔáõ°8gÍA`DCÂa·ŸÙzG¶˜ØL¨C^eõ»(‹Û„ÎŒ0®véwÁÈÚ™•ä…?­‹q·õ¦y,£»Y pa±/ÐX‡V˜îÂN ÝŽ};¼aÂçwxYÝo„Eá¦] y¯ŒbÊñÛþDYžÍlŸ Û„ í‘®¨?×RãØ6ÿ {haDæ™ÒõdJ=‚H¢žQߟNÛÿm9ŸN­ÁÌsˆ°ha°FÒ!¤çú nýŽ»•1ÈrI?Ÿ:m6ÖÙ4a•×éò‡Ƭ²xÔ3Ò‘æÅ˜ûêQO]Ó^î°øü¡£íº´¾øë¡ch+ ÌÕä¸Ãœe6†Æ°ÝÂQnkR`ò>B9íâQ²ís3m0†fà$Éi²1¼„ôbd ;azžö{ÝöM”¡Ñô gó9bú¾z!0š¨C86úŽÓheÌi ´±ECŠÿâeX\¿|^Bc­Œ6ž«ƒJû3™ô#çâÜVÛ>3°1Mq·¶áËÄ i_$ÛÅ£Àppy é¶Ô7ŽÏº Ûl"0&!Á`(ñ…‚þ’­‘…c n—Hâ^Æ ·£fL]ƒ,"0F­Ïèä¸/Ô|Á Ÿ$»âò`0¸´ZÜãn]t»8ÏacXÝFÜ  >Qµ2 † éÝÊŒ‹©¿TÄQ.WØŒÀØO–‚a¿®= ºþ’dJ W”õH£5Ǥû6ó"Oû|ÐÏGÜ¢GY`cÓ€÷ÛU×\vè.OѬ0%´×9fÓ>cØýä1“&òlÏÀÁ´5Ã\ÈøBÊ7‚koýŽ#ÛvžEQß(ºót–íÀ˜ðèdÀdi†ÛÂË0⸇0,Ûö{ZõåŠô—À˜±iklû’âd[·tXi 81ѰO »>½ÙWƒbœ-†|™ä[^ ¢eÒ/}&ÕeqÖ›Ï4087í ‹°8 æ½`aŽTdáˆdòód‰aö}šÇÍiûcRY@Ùݸú|dîI¼ÅÄ1“&°5¥µÅ”z >ãh 2W¥iß@Ø3Ìö‹M7ýó¥52>Rº“(·Ôöï”vù9sd"02§¡Y¢ÚçAæVC>˜Ørn£,…FɲþÆ~¸È$ÇW<#.pÙ‘·ÏcÞ¶@ve>0#·A%ÄÀ—¸÷UšÇ"·ç2‰ cE<:©@Õzl½`¦\ ËÃ3ñ|3±NÌf` ~òöå˜äE>Ⱥœâ\Ÿ-òv^b0œLb`Ì0Ó/A¦¶è¶ ̇†P,'ÔÄs½_øŒh—‰QÒH^T󠅵ɈY |ŽE #f¤¹öµ1Ù+ê}×’×í Æ>2LB>"0ŽýaÃ…Ô”óÀ”z$͆s²,‘/¤5bØýœôñÉÛù ås›M3È­`’lFäRZÛ!X:ðlF`4œ)‚Ës¾qü£Óë3ÍÈd¦b”4ŒÁsn‘'C6¡…1€¼‡˜¼oSöƒ!ÅÆ:÷“ÅmmÆ< 9RéJëˆp&@~e'02Rzƒ<\à‡ÙFS·¼䘥]W@Cvc†øëþä ÁlÆœ´~@¢ô’".w°QRfä—01ÃîØ7éHkDzÐuÀ,Æ€‚¶ªd-ùŽ#Ç÷å;Ã_³ðLâ¤Z×’0LhŒs?deÿ@–CÊL0lÞ A lŠsßD&lûÑ„à:hâ|´$ ^ÙôóHi¢$]×8Öç´ýɪ´¶mØõù<ýÌdùø€íha4P· §MAuX„‡äDÑÊ:ìûûoFD@ªŒ)3=16Òêšïxì;…Ão™ ŽÀ˜.wìÓ5ORÁÑéÖjH8ã#f奮ÏÀ—0#¥­Ü™0àDНQ·6 À~Ù ŒFýFuAär— ¶Ž”ŽSû¹=УüèN€LÊ^`Œ™—>SZÄÐ[˜àÚéØ6ˈê˜w ´@¾-bSK!59±žë‚aë˜  WŒ€!Rÿe€îd@Æå±å,oÛDÔçA¢a‘îdÀ€Œhˆa¤tÃõ âz*έ ÑÈf`Lp¤´-o½%9à$ªó®o8$"’ÍÀˆÈ…YªaÂß á”VC@ÚŒ–±±e4îÐEù&ìS‚!ÀTF$"®Ðè·ý˜VÐ¤Ñ ° 1„¬w³vbàK;“FÇ>à¤ãJi5؉Àˆ[ VÚÝDZ 8Ù°‚! [²)½)-£a]×ëX-k¨'Ð ÈìÆ K;èFµþõetŠYIm'ÝÉtG`„1Œ‡C6 0"”´[9Û…Žrt'1$SîŒ\¿{?Û~žvh ¼ÿi5`(ÙŒ |Ù ê ›Öþë¸ Cb‘íÀˆD4ãXÁ±ýèN 1FK™Ø2GZ H1‡zuKÛe¶µ‘`€¹ŒC°yàKÜ­“ë÷Kûú:†C‚!Æ"0bõ™ÑAFJ÷.èV0\³$á«d?0ft¤´Qõ¥;€LË~`̘8ƒb×û»i.O0 ÓŒK<ü‰äqH¦|aô11#† .Ætje\3LÈr» ÆaZ¤|Æ ÓÀ ¡×ý†¡»­}¿óû‡ AùŒ¦£;ŒÀ˜4º“€erS™Óp,“«ÀG@$€¬ËO`\}>²?Dct2È£üÆÐjpK®#Á ¿ÜÆ5!‘`ÐW¾#``nÚ€ÙŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè‰À€žŒè©(IÏüâ—’~ÙzñÞ{ïN«>HÑ3¿øåj6¼¥(Iÿí[³æÅ7þøFrµ€1Öç§žzª+•J*€Y:åB#ZºÆjµšxe`žN¹À€#zêWVV¯ ÌÓ)v ŒNÁI¦F0J×ÀX«ÕÖ¼X*”’©Œ²>J«±X,&^˜§S.,JR©´¶E±æmL–Ⱦõ¹Pê«F€<ê7mÚ´æÅ¥ê’¾ÿƒï'S+c}.”$Ç÷}=zÔÿÎw¾ºàgŸ{^ÿ?ÿ~˜º bÿøÿ¤#=úý?þñuâÄ §uWc§4˜ãhéæRø÷ ržç —ñ$9ŽÓè’>qâ„sôèQÿ»ßýnèªT €tŒŒ„zßøC=û›q6?¤V c34JÒ÷¾÷½ tl€CIDAT]WçΟ UÄcdÓ¦ãSO=%©‘ ¯½÷=MþAãÆõšÁùrâĉÖ#ÿ^ýßêÿùWý"/sæb«ÂIEND®B`‚quesoglc-0.7.2/docs/tutorial2.eps0000644000175000017500000004743010764574551013677 00000000000000%!PS-Adobe-3.0 EPSF-3.0 %%Title: Tutorial2 %%Creator: GL2PS 1.3.1, (C) 1999-2006 Christophe Geuzaine (geuz@geuz.org) %%For: QuesoGLC %%CreationDate: Sat Sep 2 19:13:30 2006 %%LanguageLevel: 3 %%DocumentData: Clean7Bit %%Pages: 1 %%BoundingBox: 0 0 640 230 %%EndComments %%BeginProlog /gl2psdict 64 dict def gl2psdict begin 0 setlinecap 0 setlinejoin /tryPS3shading true def % set to false to force subdivision /rThreshold 0.064 def % red component subdivision threshold /gThreshold 0.034 def % green component subdivision threshold /bThreshold 0.1 def % blue component subdivision threshold /BD { bind def } bind def /C { setrgbcolor } BD /G { 0.082 mul exch 0.6094 mul add exch 0.3086 mul add neg 1.0 add setgray } BD /W { setlinewidth } BD /FC { findfont exch /SH exch def SH scalefont setfont } BD /SW { dup stringwidth pop } BD /S { FC moveto show } BD /SBC{ FC moveto SW -2 div 0 rmoveto show } BD /SBR{ FC moveto SW neg 0 rmoveto show } BD /SCL{ FC moveto 0 SH -2 div rmoveto show } BD /SCC{ FC moveto SW -2 div SH -2 div rmoveto show } BD /SCR{ FC moveto SW neg SH -2 div rmoveto show } BD /STL{ FC moveto 0 SH neg rmoveto show } BD /STC{ FC moveto SW -2 div SH neg rmoveto show } BD /STR{ FC moveto SW neg SH neg rmoveto show } BD /FCT { FC translate 0 0 } BD /SR { gsave FCT moveto rotate show grestore } BD /SBCR{ gsave FCT moveto rotate SW -2 div 0 rmoveto show grestore } BD /SBRR{ gsave FCT moveto rotate SW neg 0 rmoveto show grestore } BD /SCLR{ gsave FCT moveto rotate 0 SH -2 div rmoveto show grestore} BD /SCCR{ gsave FCT moveto rotate SW -2 div SH -2 div rmoveto show grestore} BD /SCRR{ gsave FCT moveto rotate SW neg SH -2 div rmoveto show grestore} BD /STLR{ gsave FCT moveto rotate 0 SH neg rmoveto show grestore } BD /STCR{ gsave FCT moveto rotate SW -2 div SH neg rmoveto show grestore } BD /STRR{ gsave FCT moveto rotate SW neg SH neg rmoveto show grestore } BD /P { newpath 0.0 360.0 arc closepath fill } BD /LS { newpath moveto } BD /L { lineto } BD /LE { lineto stroke } BD /T { newpath moveto lineto lineto closepath fill } BD /STshfill { /b1 exch def /g1 exch def /r1 exch def /y1 exch def /x1 exch def /b2 exch def /g2 exch def /r2 exch def /y2 exch def /x2 exch def /b3 exch def /g3 exch def /r3 exch def /y3 exch def /x3 exch def gsave << /ShadingType 4 /ColorSpace [/DeviceRGB] /DataSource [ 0 x1 y1 r1 g1 b1 0 x2 y2 r2 g2 b2 0 x3 y3 r3 g3 b3 ] >> shfill grestore } BD /Tm { 3 -1 roll 8 -1 roll 13 -1 roll add add 3 div 3 -1 roll 7 -1 roll 11 -1 roll add add 3 div 3 -1 roll 6 -1 roll 9 -1 roll add add 3 div C T } BD /STsplit { 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 4 index 15 index add 0.5 mul 5 copy 5 copy 25 15 roll 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 9 index 30 index add 0.5 mul 5 copy 5 copy 35 5 roll 25 5 roll 15 5 roll 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 4 index 10 index add 0.5 mul 5 copy 5 copy 40 5 roll 25 5 roll 15 5 roll 25 5 roll STnoshfill STnoshfill STnoshfill STnoshfill } BD /STnoshfill { 2 index 8 index sub abs rThreshold gt { STsplit } { 1 index 7 index sub abs gThreshold gt { STsplit } { dup 6 index sub abs bThreshold gt { STsplit } { 2 index 13 index sub abs rThreshold gt { STsplit } { 1 index 12 index sub abs gThreshold gt { STsplit } { dup 11 index sub abs bThreshold gt { STsplit } { 7 index 13 index sub abs rThreshold gt { STsplit } { 6 index 12 index sub abs gThreshold gt { STsplit } { 5 index 11 index sub abs bThreshold gt { STsplit } { Tm } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } ifelse } BD tryPS3shading { /shfill where { /ST { STshfill } BD } { /ST { STnoshfill } BD } ifelse } { /ST { STnoshfill } BD } ifelse end %%EndProlog %%BeginSetup /DeviceRGB setcolorspace gl2psdict begin %%EndSetup %%Page: 1 1 %%BeginPageSetup %%EndPageSetup mark gsave 1.0 1.0 scale 0 0 0 C newpath 0 0 moveto 640 0 lineto 640 230 lineto 0 230 lineto closepath fill 1 0 0 C 66.3696 108.021 73.4541 67.8447 57.1367 120.102 T 66.3696 108.021 57.1367 120.102 65.6597 116.126 T 65.6597 116.126 57.1367 120.102 72.3516 123.095 T 65.6597 116.126 72.3516 123.095 69.457 118.209 T 69.457 118.209 72.3516 123.095 73.0469 119.152 T 94.6074 121.23 90.3267 121.889 101.353 127.898 T 94.6074 121.23 101.353 127.898 96.7002 113.369 T 96.7002 113.369 101.353 127.898 113.125 61.1309 T 96.7002 113.369 113.125 61.1309 99.4434 97.813 T 99.4434 97.813 113.125 61.1309 100.486 91.8984 T 99.4434 97.813 100.486 91.8984 91.5068 96.2153 T 91.5068 96.2153 100.486 91.8984 92.4795 90.6973 T 91.5068 96.2153 92.4795 90.6973 77.1289 93.6802 T 77.1289 93.6802 92.4795 90.6973 78.1021 88.1621 T 77.1289 93.6802 78.1021 88.1621 69.1128 92.4648 T 69.1128 92.4648 78.1021 88.1621 70.1558 86.5503 T 69.1128 92.4648 70.1558 86.5503 66.3696 108.021 T 66.3696 108.021 70.1558 86.5503 73.4541 67.8447 T 110.597 115.819 117.681 75.6431 101.353 127.898 T 110.597 115.819 101.353 127.898 109.875 123.922 T 109.875 123.922 101.353 127.898 116.567 130.891 T 109.875 123.922 116.567 130.891 113.672 126.005 T 113.672 126.005 116.567 130.891 117.262 126.948 T 113.125 61.1309 101.353 127.898 119.774 67.7817 T 113.125 61.1309 119.774 67.7817 128.446 63.522 T 128.446 63.522 119.774 67.7817 124.055 67.1235 T 128.446 63.522 124.055 67.1235 127.75 67.4653 T 86.6309 121.547 85.9355 125.49 90.3267 121.889 T 90.3267 121.889 85.9355 125.49 101.353 127.898 T 100.486 91.8984 113.125 61.1309 103.784 73.1929 T 103.784 73.1929 113.125 61.1309 104.507 65.0898 T 104.507 65.0898 113.125 61.1309 100.709 63.0068 T 100.709 63.0068 113.125 61.1309 97.1196 62.0645 T 97.1196 62.0645 113.125 61.1309 97.8149 58.1211 T 52.4849 105.573 50.3921 113.434 57.1367 120.102 T 52.4849 105.573 57.1367 120.102 68.9102 53.3345 T 68.9102 53.3345 57.1367 120.102 75.5586 59.9854 T 68.9102 53.3345 75.5586 59.9854 84.2305 55.7261 T 84.2305 55.7261 75.5586 59.9854 79.8394 59.3271 T 84.2305 55.7261 79.8394 59.3271 83.5352 59.6689 T 50.3921 113.434 46.1113 114.092 57.1367 120.102 T 57.1367 120.102 46.1113 114.092 41.7202 117.694 T 41.7202 117.694 46.1113 114.092 42.4155 113.75 T 52.4849 105.573 68.9102 53.3345 59.5688 65.3965 T 59.5688 65.3965 68.9102 53.3345 60.291 57.2935 T 60.291 57.2935 68.9102 53.3345 56.4937 55.2104 T 56.4937 55.2104 68.9102 53.3345 52.9043 54.2681 T 52.9043 54.2681 68.9102 53.3345 53.5996 50.3247 T 75.5586 59.9854 57.1367 120.102 73.4541 67.8447 T 119.774 67.7817 101.353 127.898 117.681 75.6431 T 150.052 115.463 157.856 115.718 154.215 109.156 T 154.215 109.156 157.856 115.718 157.24 106.239 T 157.24 106.239 157.856 115.718 160.134 97.4453 T 160.134 97.4453 157.856 115.718 173.22 96.4062 T 173.22 96.4062 157.856 115.718 164.521 113.537 T 142.373 111.779 150.052 115.463 143.863 105.215 T 143.863 105.215 150.052 115.463 146.057 108.218 T 146.057 108.218 150.052 115.463 149.641 109.713 T 149.641 109.713 150.052 115.463 154.215 109.156 T 143.863 105.215 143.592 94.5288 142.373 111.779 T 142.373 111.779 143.592 94.5288 138.229 108.209 T 138.229 108.209 143.592 94.5288 148.988 67.3545 T 148.988 67.3545 143.592 94.5288 145.101 89.415 T 145.101 89.415 143.592 94.5288 151.916 95.6865 T 164.521 113.537 169.519 108.834 173.22 96.4062 T 173.22 96.4062 169.519 108.834 172.317 101.527 T 173.22 96.4062 158 91.6895 160.134 97.4453 T 160.134 97.4453 158 91.6895 151.916 95.6865 T 151.916 95.6865 158 91.6895 145.101 89.415 T 148.988 67.3545 141.179 70.6372 138.229 108.209 T 138.229 108.209 141.179 70.6372 134.004 103.223 T 134.004 103.223 141.179 70.6372 132.032 97.873 T 132.032 97.873 141.179 70.6372 135.601 77.0347 T 173.72 80.8511 175.17 79.5825 173.828 74.4741 T 173.72 80.8511 173.828 74.4741 168.87 77.4922 T 168.87 77.4922 173.828 74.4741 166.499 69.7827 T 168.87 77.4922 166.499 69.7827 163.701 75.5273 T 163.701 75.5273 166.499 69.7827 158.826 67.4658 T 163.701 75.5273 158.826 67.4658 156.71 75.5913 T 156.71 75.5913 158.826 67.4658 151.192 78.21 T 145.101 89.415 147.278 82.9595 148.988 67.3545 T 148.988 67.3545 147.278 82.9595 158.826 67.4658 T 158.826 67.4658 147.278 82.9595 151.192 78.21 T 132.032 97.873 135.601 77.0347 132.455 86.2681 T 206.353 81.2256 209.836 81.6416 210.481 77.9873 T 206.353 81.2256 210.481 77.9873 202.908 82.3413 T 202.908 82.3413 210.481 77.9873 197.132 75.9434 T 202.908 82.3413 197.132 75.9434 201.695 86.8999 T 201.695 86.8999 197.132 75.9434 190.148 147.82 T 201.695 86.8999 190.148 147.82 191.033 147.368 T 190.148 147.82 197.132 75.9434 183.437 144.405 T 183.437 144.405 197.132 75.9434 181.559 130.873 T 181.559 130.873 197.132 75.9434 189.686 84.7822 T 189.686 84.7822 197.132 75.9434 190.105 80.084 T 190.105 80.084 197.132 75.9434 187.25 77.8574 T 187.25 77.8574 197.132 75.9434 183.834 77.0566 T 183.834 77.0566 197.132 75.9434 184.479 73.4023 T 171.888 140.237 183.437 144.405 177.784 137.31 T 177.784 137.31 183.437 144.405 180.196 136.28 T 180.196 136.28 183.437 144.405 181.559 130.873 T 171.888 140.237 177.784 137.31 172.513 136.69 T 239.147 87.0083 242.631 87.4243 243.276 83.77 T 239.147 87.0083 243.276 83.77 235.703 88.124 T 235.703 88.124 243.276 83.77 229.927 81.7261 T 235.703 88.124 229.927 81.7261 234.49 92.6826 T 234.49 92.6826 229.927 81.7261 222.943 153.602 T 234.49 92.6826 222.943 153.602 223.828 153.151 T 222.943 153.602 229.927 81.7261 216.231 150.188 T 216.231 150.188 229.927 81.7261 214.354 136.655 T 214.354 136.655 229.927 81.7261 222.48 90.5649 T 222.48 90.5649 229.927 81.7261 222.9 85.8667 T 222.9 85.8667 229.927 81.7261 220.045 83.6401 T 220.045 83.6401 229.927 81.7261 216.629 82.8394 T 216.629 82.8394 229.927 81.7261 217.273 79.1851 T 204.683 146.02 216.231 150.188 210.579 143.092 T 210.579 143.092 216.231 150.188 212.991 142.063 T 212.991 142.063 216.231 150.188 214.354 136.655 T 204.683 146.02 210.579 143.092 205.308 142.473 T 266.758 136.042 276.953 136.255 270.206 131.079 T 270.206 131.079 276.953 136.255 273.083 129.684 T 273.083 129.684 276.953 136.255 277.226 124.158 T 277.226 124.158 276.953 136.255 280.98 110.635 T 280.98 110.635 276.953 136.255 290.591 97.4658 T 290.591 97.4658 276.953 136.255 284.888 133.035 T 259.362 123.698 259.876 112.293 256.628 132.566 T 259.362 123.698 256.628 132.566 261.559 128.492 T 261.559 128.492 256.628 132.566 266.758 136.042 T 261.559 128.492 266.758 136.042 266.701 131.16 T 266.701 131.16 266.758 136.042 270.206 131.079 T 249.904 98.2148 246.902 107.563 246.652 118.063 T 249.904 98.2148 246.652 118.063 255.261 91.3853 T 255.261 91.3853 246.652 118.063 249.91 126.486 T 255.261 91.3853 249.91 126.486 263.003 87.6606 T 263.003 87.6606 249.91 126.486 256.628 132.566 T 263.003 87.6606 256.628 132.566 259.876 112.293 T 293.66 117.036 293.936 106.156 290.484 126.566 T 290.484 126.566 293.936 106.156 284.888 133.035 T 284.888 133.035 293.936 106.156 290.591 97.4658 T 290.591 97.4658 283.656 91.208 280.98 110.635 T 280.98 110.635 283.656 91.208 281.405 99.8901 T 281.405 99.8901 283.656 91.208 279.32 95.2871 T 279.32 95.2871 283.656 91.208 274.494 92.7329 T 274.494 92.7329 283.656 91.208 273.163 87.6265 T 263.003 87.6606 259.876 112.293 263.855 99.1465 T 263.003 87.6606 263.855 99.1465 273.163 87.6265 T 273.163 87.6265 263.855 99.1465 268.107 94.0234 T 273.163 87.6265 268.107 94.0234 274.494 92.7329 T 351.146 118.743 354.546 131.726 355.961 116.741 T 351.146 118.743 355.961 116.741 350.942 118.707 T 350.942 118.707 355.961 116.741 353.177 103.148 T 350.942 118.707 353.177 103.148 341.342 139.76 T 341.342 139.76 353.177 103.148 345.399 101.777 T 341.342 139.76 345.399 101.777 340.751 141.986 T 340.751 141.986 345.399 101.777 333.003 146.21 T 340.751 141.986 333.003 146.21 342.315 144.084 T 342.315 144.084 333.003 146.21 346.248 148.843 T 342.315 144.084 346.248 148.843 346.907 145.104 T 319.548 144.135 333.003 146.21 323.501 140.767 T 323.501 140.767 333.003 146.21 326.116 140.332 T 326.116 140.332 333.003 146.21 328.2 137.74 T 328.2 137.74 333.003 146.21 345.399 101.777 T 386.001 151.243 383.97 151.429 389.132 156.107 T 386.001 151.243 389.132 156.107 387.2 149.767 T 387.2 149.767 389.132 156.107 393.646 148.363 T 387.2 149.767 393.646 148.363 387.223 147.949 T 387.223 147.949 393.646 148.363 389.094 121.17 T 387.223 147.949 389.094 121.17 385.64 136.192 T 385.64 136.192 389.094 121.17 387.655 109.228 T 385.64 136.192 387.655 109.228 383.737 124.49 T 383.737 124.49 387.655 109.228 379.673 107.82 T 383.737 124.49 379.673 107.82 364.649 153.302 T 364.649 153.302 379.673 107.82 359.721 152.433 T 379.798 150.904 379.139 154.643 383.97 151.429 T 383.97 151.429 379.139 154.643 389.132 156.107 T 389.132 156.107 399.022 158.148 394.673 152.036 T 394.673 152.036 399.022 158.148 396.376 153.616 T 396.376 153.616 399.022 158.148 399.682 154.41 T 379.673 107.82 361.346 135.763 359.721 152.433 T 359.721 152.433 361.346 135.763 354.546 131.726 T 354.546 131.726 361.346 135.763 355.961 116.741 T 393.646 148.363 389.132 156.107 394.673 152.036 T 319.548 144.135 323.501 140.767 320.207 140.396 T 428.171 164.503 438.366 164.716 431.62 159.541 T 431.62 159.541 438.366 164.716 434.497 158.146 T 434.497 158.146 438.366 164.716 438.64 152.62 T 438.64 152.62 438.366 164.716 442.394 139.097 T 442.394 139.097 438.366 164.716 452.005 125.928 T 452.005 125.928 438.366 164.716 446.302 161.496 T 420.776 152.159 421.29 140.755 418.042 161.028 T 420.776 152.159 418.042 161.028 422.973 156.954 T 422.973 156.954 418.042 161.028 428.171 164.503 T 422.973 156.954 428.171 164.503 428.115 159.622 T 428.115 159.622 428.171 164.503 431.62 159.541 T 411.318 126.676 408.315 136.025 408.066 146.525 T 411.318 126.676 408.066 146.525 416.675 119.847 T 416.675 119.847 408.066 146.525 411.324 154.947 T 416.675 119.847 411.324 154.947 424.417 116.122 T 424.417 116.122 411.324 154.947 418.042 161.028 T 424.417 116.122 418.042 161.028 421.29 140.755 T 455.074 145.497 455.35 134.618 451.898 155.028 T 451.898 155.028 455.35 134.618 446.302 161.496 T 446.302 161.496 455.35 134.618 452.005 125.928 T 452.005 125.928 445.07 119.67 442.394 139.097 T 442.394 139.097 445.07 119.67 442.818 128.352 T 442.818 128.352 445.07 119.67 440.734 123.749 T 440.734 123.749 445.07 119.67 435.907 121.194 T 435.907 121.194 445.07 119.67 434.577 116.088 T 424.417 116.122 421.29 140.755 425.269 127.608 T 424.417 116.122 425.269 127.608 434.577 116.088 T 434.577 116.088 425.269 127.608 429.521 122.485 T 434.577 116.088 429.521 122.485 435.907 121.194 T 493.276 175.375 495.021 162.594 492.827 161.19 T 493.276 175.375 492.827 161.19 488.929 175.216 T 488.929 175.216 492.827 161.19 489.974 163.427 T 488.929 175.216 489.974 163.427 485.338 173.074 T 485.338 173.074 489.974 163.427 486.396 163.713 T 485.338 173.074 486.396 163.713 482.071 168.627 T 482.071 168.627 486.396 163.713 481.486 160.663 T 482.071 168.627 481.486 160.663 478.576 163.14 T 478.576 163.14 481.486 160.663 479.827 156.047 T 478.576 163.14 479.827 156.047 476.927 172.493 T 476.927 172.493 479.827 156.047 483.265 136.548 T 476.927 172.493 483.265 136.548 475.837 172.908 T 475.837 172.908 483.265 136.548 478.702 125.592 T 475.837 172.908 478.702 125.592 469.318 169.527 T 469.318 169.527 478.702 125.592 467.44 155.995 T 469.318 169.527 467.44 155.995 466.082 161.405 T 478.702 125.592 483.265 136.548 484.478 131.99 T 478.702 125.592 484.478 131.99 493.625 127.913 T 493.625 127.913 484.478 131.99 489.1 131.082 T 493.625 127.913 489.1 131.082 492.981 131.568 T 467.44 155.995 478.702 125.592 471.243 134.428 T 471.243 134.428 478.702 125.592 471.675 129.732 T 471.675 129.732 478.702 125.592 468.808 127.504 T 468.808 127.504 478.702 125.592 465.403 126.705 T 465.403 126.705 478.702 125.592 466.048 123.051 T 466.082 161.405 463.663 162.444 469.318 169.527 T 469.318 169.527 463.663 162.444 458.563 165.499 T 458.563 165.499 463.663 162.444 459.188 161.952 T 526.427 137.664 529.911 138.08 530.556 134.425 T 526.427 137.664 530.556 134.425 522.983 138.779 T 522.983 138.779 530.556 134.425 517.207 132.381 T 522.983 138.779 517.207 132.381 521.77 143.337 T 521.77 143.337 517.207 132.381 510.222 204.257 T 521.77 143.337 510.222 204.257 511.107 203.806 T 510.222 204.257 517.207 132.381 503.511 200.843 T 503.511 200.843 517.207 132.381 501.633 187.311 T 501.633 187.311 517.207 132.381 509.76 141.22 T 509.76 141.22 517.207 132.381 510.18 136.521 T 510.18 136.521 517.207 132.381 507.325 134.295 T 507.325 134.295 517.207 132.381 503.908 133.495 T 503.908 133.495 517.207 132.381 504.553 129.84 T 491.962 196.674 503.511 200.843 497.858 193.748 T 497.858 193.748 503.511 200.843 500.271 192.718 T 500.271 192.718 503.511 200.843 501.633 187.311 T 491.962 196.674 497.858 193.748 492.588 193.128 T 587.088 148.36 590.38 148.742 591.024 145.087 T 587.088 148.36 591.024 145.087 583.644 149.475 T 583.644 149.475 591.024 145.087 580.031 143.459 T 583.644 149.475 580.031 143.459 582.443 154.036 T 582.443 154.036 580.031 143.459 570.883 214.954 T 582.443 154.036 570.883 214.954 571.781 214.504 T 570.883 214.954 580.031 143.459 564.172 211.539 T 564.172 211.539 580.031 143.459 562.294 198.007 T 562.294 198.007 580.031 143.459 564.412 185.997 T 564.412 185.997 580.031 143.459 566.184 175.947 T 566.184 175.947 580.031 143.459 569.378 157.831 T 569.378 157.831 580.031 143.459 570.769 149.944 T 570.769 149.944 580.031 143.459 572.21 141.77 T 569.378 157.831 570.769 149.944 569.047 154.243 T 569.047 154.243 570.769 149.944 567.092 151.283 T 567.092 151.283 570.769 149.944 560.657 147.963 T 560.657 147.963 570.769 149.944 562.002 139.771 T 550.715 152.225 554.938 148.667 556.8 137.64 T 556.8 137.64 554.938 148.667 562.002 139.771 T 562.002 139.771 554.938 148.667 560.657 147.963 T 539.641 176.746 545.917 182.625 546.362 162.809 T 539.641 176.746 546.362 162.809 548.588 138.142 T 548.588 138.142 546.362 162.809 547.891 157.363 T 548.588 138.142 547.891 157.363 556.8 137.64 T 556.8 137.64 547.891 157.363 550.715 152.225 T 554.163 180.224 548.929 177.908 553.941 186.68 T 554.163 180.224 553.941 186.68 560.638 179.539 T 560.638 179.539 553.941 186.68 562.303 186.431 T 560.638 179.539 562.303 186.431 566.184 175.947 T 566.184 175.947 562.303 186.431 564.412 185.997 T 546.362 162.809 545.917 182.625 546.355 173.797 T 546.355 173.797 545.917 182.625 548.929 177.908 T 548.929 177.908 545.917 182.625 553.941 186.68 T 548.588 138.142 542.005 142.11 539.641 176.746 T 539.641 176.746 542.005 142.11 536.461 172.898 T 536.461 172.898 542.005 142.11 534.599 168.424 T 534.599 168.424 542.005 142.11 537.3 148.503 T 552.624 207.371 564.172 211.539 558.519 204.444 T 558.519 204.444 564.172 211.539 560.936 203.415 T 560.936 203.415 564.172 211.539 562.294 198.007 T 552.624 207.371 558.519 204.444 553.249 203.824 T 534.599 168.424 537.3 148.503 534.722 156.281 T 570.769 149.944 572.21 141.77 571.578 142.477 T 602.664 148.491 599.405 153.37 600.763 159.274 T 602.664 148.491 600.763 159.274 608.406 147.247 T 608.406 147.247 600.763 159.274 605.697 162.611 T 608.406 147.247 605.697 162.611 613.385 150.535 T 613.385 150.535 605.697 162.611 611.467 161.204 T 613.385 150.535 611.467 161.204 614.769 156.079 T 589.825 210.583 598.908 216.647 591.596 202.864 T 591.596 202.864 598.908 216.647 602.439 168.433 T 602.439 168.433 598.908 216.647 603.072 167.726 T 603.072 167.726 598.908 216.647 606.446 170.453 T 606.446 170.453 598.908 216.647 604.914 207.964 T 604.914 207.964 598.908 216.647 603.933 217.534 T 1 W 0 1 1 C 53.5996 50.3247 LS 128.446 63.522 L 116.567 130.891 L 41.7202 117.694 L 53.5996 50.3247 LE 136.465 63.5234 LS 298.071 92.0186 L 285.274 164.593 L 123.668 136.098 L 136.465 63.5234 LE grestore showpage cleartomark %%PageTrailer %%Trailer end %%EOF quesoglc-0.7.2/docs/Image4.eps0000644000175000017500000011156010764574551013054 00000000000000%!PS-Adobe-3.0 EPSF-3.0 %%Creator: GIMP PostScript file plugin V 1,17 by Peter Kirchgessner %%Title: Image4.eps %%CreationDate: Sat Sep 2 20:03:19 2006 %%DocumentData: Clean7Bit %%LanguageLevel: 2 %%Pages: 1 %%BoundingBox: 14 14 309 293 %%EndComments %%BeginProlog % Use own dictionary to avoid conflicts 10 dict begin %%EndProlog %%Page: 1 1 % Translate for offset 14.173228346456694 14.173228346456694 translate % Translate to begin of first scanline 0 278 translate 294.00000000000006 -278 scale % Image geometry 294 278 8 % Transformation matrix [ 294 0 0 278 0 0 ] % Strings to hold RGB-samples per scanline /rstr 294 string def /gstr 294 string def /bstr 294 string def {currentfile /ASCII85Decode filter /RunLengthDecode filter rstr readstring pop} {currentfile /ASCII85Decode filter /RunLengthDecode filter gstr readstring pop} {currentfile /ASCII85Decode filter /RunLengthDecode filter bstr readstring pop} true 3 %%BeginData: 36743 ASCII Bytes colorimage Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> ]Cl./eFi_FrUp'oJb@pnJ,~> ]Dhd0eGf@GrVl]pJc=R+J,~> ]Cc(0eF`YGrUg!pJb7jlJ,~> \b,q.k4J][me$Pcq=O^nJb@jlJ,~> \c)R/k5G>\mf!1dq>L?oJc=L)J,~> \b#k/k4AW\mdpJdq=FXoJb7djJ,~> ](H%/jn/TZmI^Gbqt0ppJb@gkJ,~> ])D[0jo,5[mJ[(cqu-QqJc=I(J,~> ](>t0jn&N[mIUAcqt'jqJb7aiJ,~> ](H%/d.IAErUp0rJb@djJ,~> ])D[0d/F"FrVlfsJc=F'J,~> ](>t0d.@;FrUg*sJb7^hJ,~> ](H%/ch.AGp%8TAp"B"g~> ])D[0ci+"Hrr)nKrn7:$~> ](>t0ch%;Ho^iKAo\&ke~> ]Cc:4p%8RrrUp0rr:U$prq-L%p%8Rro`tj&p&>El#_D[$omd~> ]D_p5rr)ltrVlfsr;QZqrr*-&rr)ltrVurtrr2uurr2utrr2uorW3*!!.k.%rdX~> ]CZ45o^iItrUg*sr:Ksqrq$F&o^iItoEks)o`#9uo`#9to`#9ooE#Bl$A%j%oRH~> ]Cl./!VH`to`>El#lXE;#kdirp%8Rroa(3r#k\Jroa(3roa(3rp%8U`o`tj"o`,8Kp"/ke~> ]Dhd0!WE)urW3*!!<)m ]Cc(0!V?`uoE#Bl$N9T<$M ]_2:1rq-I$p%8U`oa(Qi*XMH3#RL)/o`tiroa(3rp%8U`#k\Jr#kdir#kdirqXsjoJb@XfJ,~> ]`.p2rr**%rr)osrW)rs*WZ3=!!)uurVurtrW)otrr)os!<)ut!<2rt!<2rtqYpKpJc=:#J,~> ]_)42rq$C%o^iL_oEtTi*X_Q3$4?D4oEkrtoEt3to^iL_$M4\t$M ]_)71rq69ss7HF!oa(Qi!!rSs!!rPr!!rMq!!rPrrs8Yt#71"q#kdir#lF8s#kdirJb@[gJ,~> ]`%m2rr2ots8E'"rW)rs!!*#t!!)us!!)rr!!)usrrE)u#6=c&!<2rt!;l`t!<2rtJc==$J,~> ]^u12rq-3ts7?@"oEtTi!"/_t!"/\s!"/Yr!"/\srsJeu#7C+q$M ]_)71rq- ]`%m2rr)s!rr2lsrVcp"rr)ltrr2otrVccsrVlfss8Duurr*!"rr)oprVursrVuqLrn7:$~> ]^u12rq$7!o^r+irU^4"o^iItrq-3trU^'srUg*ss7?9urq$:"o^iLfoDf6soDf5Lo\&ke~> ^%D@2rq-6srq-6sr:L@%p%8Rroa(6`#lO?!#k\Jroa(Qi"pjl-p%8Rrqt0ppr:L$qJb@^hJ,~> ^&A!3rr)ltrr)ltr;I!&rr)ltrW)rs!;ug"!<)utrW)rs"p"W&rr)ltqu-Qqr;HZrJc=@%J,~> ^%;:3rq$0trq$0tr:C:&o^iItoEt6_$N0N"$M4\toEtTi"q'u0o^iItqt'jqr:BsrJb7XfJ,~> ^%DI5p%8Uhoa_?$oa(6`#k\Jr#RL+r#RLD%!XSH)rq-O&p%8U`#kdirqt9spqXjgoJb@aiJ,~> ^&A*6rr)orrXT#.rW)rs!<)ut!!*#t!!)us!W`3"rr*0'rr)os!<2rtqu6TqqYgHpJc=C&J,~> ^%;C6o^iLhoFD<$oEt6_$M4\t$4?Ft$4?b(!XeQ,rq$I'o^iL_$M ^%M@1r:U$prq69ss7H?trq-6sr:U'qrq-6srq69srq-6srUp'orUp'oJb@gkJ,~> ^&J!2r;QZqrr2ots8Duurr)ltr;Q]rrr)ltrr2otrr)ltrVl]prVl]pJc=I(J,~> ^%D:2r:Ksqrq-3ts7?9urq$0tr:L!rrq$0trq-3trq$0trUg!prUg!pJb7aiJ,~> PP+n\Jb@7[J,~> PQ(O]Jc PP"h]Jb71YJ,~> Q1b._rq69san5W>p[nLlP4a>~> Q2^d`rr2otao28?p\k-mP5]t~> Q1Y(`rq-3tan,Q?p[eFmP4X8~> QLt4`qt0ppan5W>p[nLlP4a>~> QMpjaqu-Qqao28?p\k-mP5]t~> QLk.aqt'jqan,Q?p[eFmP4X8~> QM(7`rUp0rJb@=]J,~> QN$marVlfsJc QLt1arUg*sJb77[J,~> PkFq[s7QBtJb@F`J,~> PlCR\s8N#uJc='rJ,~> Pk=k\s7H NV3;Wg@bIOrUgC$p%8Rro`tj&p&>;domd~> NW/qXgA_*PrVd$%rr)ltrVurtrr2usrr2utrr2uurr2terdX~> NV*5Xg@YCPrU^=%o^iItoEks)o`#9so`#9to`#9uo`#8eoRH~> NV3;Wg[u`rp%8U`o`tir#k\H/oa(6`#kdir#k\Jr#kdiroa(3roa%#ZJ,~> NW/qXg\rAsrr)osrVurt!<)rurW)rs!<2rt!<)ut!<2rtrW)otrW&DdJ,~> NV*5Xg[lZso^iL_oEkrt$M4Z4oEt6_$M [.OD)g\(RPh":XQrq.< [/L%*g]%3Qh#79Rrr*r=rW)ot!<2rtrW)rs!!*#t!<)ut!<2rtrW)otrW&AcJ,~> [.F>*g[tLQh"1RRrq%6=oEt3t$M NV3;Wh=^dRrq-6srq-6sr:L:#p%8U`o`tj&o`,9rp&> NW/qXh>[ESrr)ltrr)ltr;Hp$rr)osrVurtrVursrr2uurVuqdrdX~> NV*5Xh=U^Srq$0trq$0tr:C4$o^iL_oEks)oDf6so`#9uoDf5doRH~> XnD]"j7WEXh=UaRrq69ss7QBtrUg-rrq-@!p%8Uio`,9rp&> XoA>#j8T&Yh>RBSrr2ots8N#urVccsrr*!"rr)osrVursrr2uurVuqcrdX~> Xn;W#j7N?Yh=L[Srq-3ts7H [.OD)r:L$qiV!3Vh=UaRrq-6srq-6sr:L7"oa(6`#RLD%"UOc,p%8Uio`>El#b(F:~> [/L%*r;HZriVriWh>RBSrr)ltrr)ltr;Hm#rW)rs!!)us"T\N%rr)osrW3*!!1Nn;~> [.F>*r:BsriUm-Wh=L[Srq$0trq$0tr:C1#oEt6_$4?b("Ual/o^iLioE#Bl$C^U;~> [.OD)rq69si:[*Uh=UjUp%8Uip&> [/L%*rr2oti;W`Vh>RKVrr)osrr2usrWN<$!<2rtr;H`trW)rs"T\Q$!<)tdrdX~> [.F>*rq-3ti:R$Vh=LdVo^iLio`#9soE>To$M [.OM,p%8UIp&>;bomd~> [/L.-rr)oSrr2uRrr2usrVurrrr2utrVurrrr2utrVurtrr2tcrdX~> [.FG-o^iLIo`#9Ro`#9soDf6ro`#9toDf6ro`#9toDf6to`#8coRH~> Zh=>(h=^dRbOti?MY2K~> Zi9t)h>[ESbPqJ@MZ/,~> Zh48)h=U^SbOkc@MY)E~> [.W&Wc1V)Brq69sN:h]~> [/S\Xc2R_Crr2otN;e>~> [.MuXc1M#Crq-3tN:_W~> Zh=>(h=^dRcLh/Cqt0ppN:h]~> Zi9t)h>[EScMdeDqu-QqN;e>~> Zh48)h=U^ScL_)Dqt'jqN:_W~> [.OM,p%8UIp&>;Vomd~> [/L.-rr)oSrr2uDrr2usrr2tWrdX~> [.FG-o^iLIo`#9Do`#9so`#8WoRH~> [.OD)rq69si:[*Ubk:l>MtMT~> [/L%*rr2oti;W`Vbl7M?MuJ5~> [.F>*rq-3ti:R$Vbk1f?MtDN~> [.OD)r:L$qiV!3Vj7WEXJbAR+J,~> [/L%*r;HZriVriWj8T&YJc>3=J,~> [.F>*r:BsriUm-Wj7N?YJb8L)J,~> XnD]"j7WEXJb@F`J,~> XoA>#j8T&YJc='rJ,~> Xn;W#j7N?YJb7@^J,~> NV3;WkOni\JbAF'J,~> NW/qXkPkJ]Jc>'9J,~> NV*5XkOec]Jb8@%J,~> NV3;Wkk+o]JbA@%J,~> NW/qXkl(P^Jc>!7J,~> NV*5Xkk"i^Jb8:#J,~> [.OD)g\(RPlh(5`JbA7"J,~> [/L%*g]%3Qli$kaJc=m4J,~> [.F>*g[tLQlgt/aJb80uJ,~> [.OD)g\(RPm.C>aJbA4!J,~> [/L%*g]%3Qm/?tbJc=j3J,~> [.F>*g[tLQm.:8bJb8-tJ,~> NV3;WJb@F`J,~> NW/qXJc='rJ,~> NV*5XJb7@^J,~> NV3;Wnb)nfJbA'rJ,~> NW/qXnc&OgJc=^/J,~> NV*5XnauhgJb8!pJ,~> NV3;WJb@F`J,~> NW/qXJc='rJ,~> NV*5XJb7@^J,~> [.OD)g\(RPp%A=jJbB!7rs7`ZJ,~> [/L%*g]%3Qp&=skJc>WIrrD0[J,~> [.F>*g[tLQp%87kJb8p5rsIl[J,~> [.OD)h"CXPp@SCkJbAp5r [/L%*h#@9QpAP$lJc>QGr;c$[J,~> [.F>*h":RQp@J=lJb8j3r [.OD)hY$aOqXjgoJbAg2r!;NZJ,~> [/L%*hZ!BPqYgHpJc>HDquGs[J,~> [.F>*hXp[PqXaapJb8a0r!MZ[J,~> OnJMUr:L$qJbA^/r!;T\J,~> OoG.Vr;HZrJc>?AquH$]J,~> OnAGVr:BsrJb8X-r!M`]J,~> P4ePTJbAL)r!;W]J,~> P5b1UJc>-;quH'^J,~> P4\JUJb8F'r!Mc^J,~> PP+SSJbAI(r!;]_J,~> PQ(4TJc>*:quH-`J,~> PP"MTJb8C&r!Mi`J,~> [.OD)iUujLJbAF'r!;``J,~> [/L%*iVrKMJc>'9quH0aJ,~> [.F>*iUldMJb8@%r!MlaJ,~> p% p&9LBJH5NHmf%_~> p%3eBJI;5\mdu#~> p% p&9LBJH5NHmf%_~> p%3eBJI;5\mdu#~> PkFYSVtC#qn+?Ydh=^[Om.Gl~> PlC:TVu?Yrn,<:eh>[ Pk=STVt9rrn+6Seh=UUPm.>f~> PP+SSVtC#qn+?YdhY$dPlh,c~> PQ(4TVu?Yrn,<:ehZ!EQli)D~> PP"MTVt9rrn+6SehXp^Qlh#]~> [.OD)iUumMVY'opn+?Ydi:[!Rl1KQ~> [/L%*iVrNNVZ$Pqn,<:ei;WWSl2H2~> [.F>*iUlgNVXsiqn+6Sei:QpSl1BK~> [.OD)i:ZgMVY'opn+?YdiV!*Skk0H~> [/L%*i;WHNVZ$Pqn,<:eiVr`Tkl-)~> [.F>*i:QaNVXsiqn+6SeiUm$Tkk'B~> [.OD)ht?dNV=afon+?YdiV!0Uk4O6~> [/L%*hu^Gpn,<:eiVrfVk5Kl~> [.F>*ht6^OV=X`pn+6SeiUm*Vk4F0~> NV3;WU\+Tmn+?Yd_tAN~> NW/qXU](5nn,<:e_u>/~> NV*5XU\"Nnn+6Se_t8H~> NV3;WjRrKXeb/kHr:U!or:L$qn+?Yd_tAN~> NW/qXjSo,Yec,LIr;QWpr;HZrn,<:e_u>/~> NV*5XjRiEYeb&eIr:Kppr:Bsrn+6Se_t8H~> NV3;Wiq39Wk4J][n+?Ydq=O^nqt0ppn+?Yd_tAN~> NW/qXir/oXk5G>\n,<:eq>L?oqu-Qqn,<:e_u>/~> NV*5Xiq*3Xk4AW\n+6Seq=FXoqt'jqn+6Se_t8H~> [.OD)g\(RPj7NBXjn/TZn+?Ydqt9spqXjgon+?Yd_tAN~> [/L%*g]%3Qj8K#Yjo,5[n,<:equ6TqqYgHpn,<:e_u>/~> [.F>*g[tLQj7E [.OD)g\(RPj7NBXdIdJFrUg-rq"4Umn+?Yd_tAN~> [/L%*g]%3Qj8K#YdJa+GrVccsq#16nn,<:e_u>/~> [.F>*g[tLQj7E [.OD)g\(RPj7NBXdIdJFrq-6sp[nLln+?Yd_tAN~> [/L%*g]%3Qj8K#YdJa+Grr)ltp\k-mn,<:e_u>/~> [.F>*g[tLQj7E NV3;WjRiW]p%8RrrUp0rr:U$prq-L%p%8Rro`tj&p&>El#kmok#k.Ed#fH=c~> NW/qXjSf8^rr)ltrVlfsr;QZqrr*-&rr)ltrVurtrr2uurr2utrr2uprW3*!!;?Bl!:Tme!5ned~> NV*5XjR`Q^o^iItrUg*sr:Ksqrq$F&o^iItoEks)o`#9uo`#9to`#9poE#Bl$MO)l$LdTe$H)Ld~> NV3;WjRrKX!VH`to`>El#lXE;#kdirp%8Rroa(3r#k\Jroa(3roa(3rp%8U`o`tj$p&> NW/qXjSo,Y!WE)urW3*!!<)m NV*5XjRiEY!V?`uoE#Bl$N9T<$M NV3;Wjn8WZrq-I$p%8U`oa(Qi*XMH3#RL)/o`tiroa(3rp%8U`#k\Jr#kdir#kdirqt0ppo^r1i n+?Yd_tAN~> NW/qXjo58[rr**%rr)osrW)rs*WZ3=!!)uurVurtrW)otrr)os!<)ut!<2rt!<2rtqu-Qqo_ngj n,<:e_u>/~> NV*5Xjn/Q[rq$C%o^iL_oEtTi*X_Q3$4?D4oEkrtoEt3to^iL_$M4\t$M [.OD)g\(RPjn/TZrq69ss7HF!oa(Qi!!rSs!!rPr!!rMq!!rPrrs8Yt#71"q#kdir#lF8p#k[ci #k.Ed#fH=c~> [/L%*g]%3Qjo,5[rr2ots8E'"rW)rs!!*#t!!)us!!)rr!!)usrrE)u#6=c&!<2rt!;l`q!;-6j !:Tme!5ned~> [.F>*g[tLQjn&N[rq-3ts7?@"oEtTi!"/_t!"/\s!"/Yr!"/\srsJeu#7C+q$M [.OD)g\(RPjn/TZrq- [/L%*g]%3Qjo,5[rr)s!rr2lsrVcp"rr)ltrr2otrVccsrVlfss8Duurr*!"rr)oorVurjrVure rVur9rdX~> [.F>*g[tLQjn&N[rq$7!o^r+irU^4"o^iItrq-3trU^'srUg*ss7?9urq$:"o^iLeoDf6joDf6e oDf69oRH~> NV3;Wk4J][rq-6srq-6sr:L@%p%8Rroa(6`#lO?!#k\Jroa(Qi"pjl-p%8Rrq=O^no^r1in+?Yd _tAN~> NW/qXk5G>\rr)ltrr)ltr;I!&rr)ltrW)rs!;ug"!<)utrW)rs"p"W&rr)ltq>L?oo_ngjn,<:e _u>/~> NV*5Xk4AW\rq$0trq$0tr:C:&o^iItoEt6_$N0N"$M4\toEtTi"q'u0o^iItq=FXoo^i+jn+6Se _t8H~> NV3;Wk4Jf^p%8Uhoa_?$oa(6`#k\Jr#RL+r#RLD%!XSH)rq-O&p%8U`#kdirq"4UmoCW(hn+?Yd _tAN~> NW/qXk5GG_rr)orrXT#.rW)rs!<)ut!!*#t!!)us!W`3"rr*0'rr)os!<2rtq#16noDS^in,<:e _u>/~> NV*5Xk4A`_o^iLhoFD<$oEt6_$M4\t$4?Ft$4?b(!XeQ,rq$I'o^iL_$M NV3;Wk4S]Zr:U$prq69ss7H?trq-6sr:U'qrq-6srq69srq-6sqXsalp%8:jn+?Yd_tAN~> NW/qXk5P>[r;QZqrr2ots8Duurr)ltr;Q]rrr)ltrr2otrr)ltqYpBmp&4pkn,<:e_u>/~> NV*5Xk4JW[r:Ksqrq-3ts7?9urq$0tr:L!rrq$0trq-3trq$0tqXj[mp%/4kn+6Se_t8H~> [.OD)g\(RP]_270nFZberUg-rrUg-ro^r1i_tAN~> [/L%*g]%3Q]`.m1nGWCfrVccsrVccso_ngj_u>/~> [.F>*g[tLQ]_)11nFQ\frU^'srU^'so^i+j_t8H~> [.OD)g\(RP^@hL3rq69so(;tgrUg-rrUg-ro^r1i_tAN~> [/L%*g]%3Q^Ae-4rr2oto)8UhrVccsrVccso_ngj_u>/~> [.F>*g[tLQ^@_F4rq-3to(2nhrU^'srU^'so^i+j_t8H~> lLk)]qXsdmg@YFOg\(RP^\%R4qt0ppnaukfrq-6srq-6soCW(h_tAN~> lMg_^qYpEngAV'Pg]%3Q^]"35qu-QqnbrLgrr)ltrr)ltoDS^i_u>/~> lLb#^qXj^ng@P@Pg[tLQ^[qL5qt'jqnalegrq$0trq$0toCN"i_t8H~> kk4r]qXsjoZ1\,&^\.U4rUp0rnFZtkp%8U`oa(-]!!pL8J,~> kl1S^qYpKpZ2Xb'^]+65rVlfsnGWUlrr)osrW)Ng!!'q9J,~> kk+l^qXjdpZ1S&'^\%O5rUg*snFQnlo^iL_oEt0]!"-X9J,~> kk4r]qt1!roa%hqrs6=2r!;ca"pjnp#kdiro(;tg_tAN~> kl1S^qu-WsrW'5&rrBb3quH3b"p"Z%!<2rto)8Uh_u>/~> kk+l^qt'psoEqkqrsHI3r!Mob"q("p$M kk4r]qt1!roa%hqrs5Io":4Z+oa(*\!!pL8J,~> kl1S^qu-WsrW'5&rrAnp"9AE$rW)Kf!!'q9J,~> kk+l^qt'psoEqkqrsGUp":Fc.oEt-\!"-X9J,~> kk4o\rUg3toa'1B!!q?Prs5FnrWr#d!!pL8J,~> kl1P]rVciurW(RL!!(dQrrAkorW)He!!'q9J,~> kk+i]rU^-uoEs4B!".KQrsGRorX//e!"-X9J,~> o(;tgrq-6srUg6up%8Uip&>9uoa(HfrWrPsrs8Mp!!qo`!!q?Prs5FnrWr#d!!pL8J,~> o)8Uhrr)ltrVcm!rr)osrr2s!rW)iprW)utrrDrq!!)?a!!(dQrrAkorW)He!!'q9J,~> o(2nhrq$0trU^1!o^iLio`#7!oEtKfrX/\trsJYq!"/&a!".KQrsGRorX//e!"-X9J,~> oCW7moa(6`#lXDu#kdirrq-@!p%8Ugo`tiroa(6`#k\K&p&56rp&56rp&>:!oa(6i#laMr#l4,n#fH=c~> oDSmnrW)rs!<)m!!<2rtrr*!"rr)oqrWiN'rW)rs!<)utrr)osrr)osrr2utrr)osri6%urr)ot rr)osrr)osrr2utrr)osrr)otrr)osrr)osrr2s"rW)rs!<2us!;ZTo!5ned~> oCN1noEt6_$N9T!$Muo_o3t o_o3so_o3so`#9to_o3so_o3to_o3so_o3so`#7"oEt6i$NB\s$Mj;o$H)Ld~> nautip%8Uhoa1utoa(6`#RL+r#lXE!#kdir#lXDu#kdirkk+o]i:ZaKh=UaRnb)kec1M&B_tAN~> nbrUjrr)orrX&Z)rW)rs!!*#t!<)m"!<2rt!<)m!!<2rtkl(P^i;WBLh>RBSnc&Lfc2I\C_u>/~> nalnjo^iLhoEkrtoEt6_$4?Ft$N9T"$M nauqhoa(Kg"pjnp#kdirrq-6srq-6srq-6sqt9spkOef\jn7sGiUm0Vnb)kec1M&B_tAN~> nbrRirW)lq"p"Z%!<2rtrr)ltrr)ltrr)ltqu6TqkPbG]jo4THiVifWnc&Lfc2I\C_u>/~> nalkioEtNg"q("p$M nauqhoa(Nh!!rSs!XSH)rUg-rrq-C"p%8Rrqt0ppk4J][kk4'DjRiKYo(<+koa(3rcLh/C_tAN~> nbrRirW)or!!*#t!W`3"rVccsrr*$#rr)ltqu-Qqk5G>\kl0]EjSf,Zo)8alrW)otcMdeD_u>/~> nalkioEtQh!"/_t!XeQ,rU^'srq$=#o^iItqt'jqk4AW\kk+!EjR`EZo(3%loEt3tcL_)D_t8H~> nb)nfr:L$qrq66rrUgI&p%8U`o`tir#lXDt#k\Jdo`,9_p#68>o`,9ho`b]poa(6`#g`/D#fH=c~> nc&Ogr;HZrrr2lsrVd*'rr)osrVurt!<)lu!<)u]rVur`ro*q?rVurirWWB%rW)rs!71WE!5ned~> nauhgr:Bsrrq-0srU^C'o^iL_oEkrt$N9Su$M4\goDf6`o\p5?oDf6ioEGZpoEt6_$IA>E$H)Ld~> nb)nfrUp0rrUg-rrUg-rrq-d-oa(3r#k\Jroa(6`#k\Jfo`,9ap%/Ogp&>9tp$rCPo`,9ho`b]p oa(6`#g`/D#fH=c~> nc&OgrVlfsrVccsrVccsrr*E.rW)ot!<)utrW)rs!<)u_rVurbrq$3hrr2rurpg'QrVurirWWB% rW)rs!71WE!5ned~> nauhgrUg*srU^'srU^'srq$^.oEt3t$M4\toEt6_$M4\ioDf6bo^iLho`#6uo^W@QoDf6ioEGZp oEt6_$IA>E$H)Ld~> naukfrq6-os7HF!p%A4g#PA?.p%8U`p&56qp&><^o`,9bp%A[fp&> nbrLgrr2cps8E'"rr2fq#Q=]'rr)osrr)orrr2u_rVurcrq6?grr2usrpp-TrVurjrVurtrVurt rVurFrVur9rdX~> nalegrq-'ps7?@"o^r%g#P8?1o^iL_o_o3ro`#9_oDf6co_&Xgo`#9so^`FToDf6joDf6toDf6t oDf6FoDf69oRH~> o(E"g`Us3:me-8Zq=Xanqt8hP!VH`ko`,9ro`,9ro`,9Fo`,98omd~> o)AXh`Voi;mf)n[q>UBoqu5IQ!WE)lrVursrVursrVurGrVur9rdX~> o(;qh`Uj-;me$2[q=O[oqt/bQ!V?`loDf6soDf6soDf6GoDf69oRH~> o(;tg`:X*9nFcJ\p\"OlqXr\Np%8:jrUg-rrUg-rdIdJF_tAN~> o)8Uh`;T`:nG`+]p\t0mqYo=Op&4pkrVccsrVccsdJa+G_u>/~> o(2nh`:O$:nFZD]p[nImqXiVOp%/4krU^'srU^'sdI[DG_t8H~> oCW(h_t=!8nb)S]p@\Fkq=WVNnFZbebk1rA_tAN~> oDS^i_u9W9nc&4^pAY'lq>T7OnGWCfbl.SB_u>/~> oCN"i_t3p9nauM^p@S@lq=NPOnFQ\fbk(lB_t8H~> o^r1i_Y!m7o(D\^p%A=jq" o_ngj_YsN8o)A=_p&=skq#91OnGWCfbl.SB_u>/~> o^i+j_Xmg8o(;V_p%87kq"3JOnFQ\fbk(lB_t8H~> [.OD)oC_b^p%A=jq" [/L%*oD\C_p&=skq#91OnGWCfbl.SB_u>/~> [.F>*oCV\_p%87kq"3JOnFQ\fbk(lB_t8H~> [.OD)o_%k_o_&4ip\!JNnFZbebk1rA_tAN~> [/L%*o`"L`o`"jjp\s+OnGWCfbl.SB_u>/~> [.F>*o^qe`o^r.jp[mDOnFQ\fbk(lB_t8H~> [.OD)o_%k_o_&4ip@[DNnFZbebk1rA_tAN~> [/L%*o`"L`o`"jjpAX%OnGWCfbl.SB_u>/~> [.F>*o^qe`o^r.jp@R>OnFQ\fbk(lB_t8H~> [.OD)p%@t`oC`+hp@[JP!VH`fo`,9Ao`,98omd~> [/L%*p&=UaoD\aipAX+Q!WE)grVurBrVur9rdX~> [.F>*p%7naoCW%ip@RDQ!V?`goDf6BoDf69oRH~> [.OD)p@\%`oC`+hp%@n^o(;tgnFZbebk1rA_tAN~> [/L%*pAX[aoD\aip&=O_o)8UhnGWCfbl.SB_u>/~> [.F>*p@RtaoCW%ip%7h_o(2nhnFQ\fbk(lB_t8H~> [.OD)p@\(ao(E"gp%@n^o(;tgnFZbebk1rA_tAN~> [/L%*pAX^bo)AXhp&=O_o)8UhnGWCfbl.SB_u>/~> [.F>*p@S"bo(;qhp%7h_o(2nhnFQ\fbk(lB_t8H~> [.OD)p\".ao(E"go_%e]oCW(hnFZbebk1rA_tAN~> [/L%*p\sdbo)AXho`"F^oDS^inGWCfbl.SB_u>/~> [.F>*p[n(bo(;qho^q_^oCN"inFQ\fbk(lB_t8H~> [.OD)p\".ao(E"go_%e]oCW(hnFZbebk1rA_tAN~> [/L%*p\sdbo)AXho`"F^oDS^inGWCfbl.SB_u>/~> [.F>*p[n(bo(;qho^q_^oCN"inFQ\fbk(lB_t8H~> [.OD)q"=4ao(E"go_%b\o^r1inFZbebk1rA_tAN~> [/L%*q#9jbo)AXho`"C]o_ngjnGWCfbl.SB_u>/~> [.F>*q"4.bo(;qho^q\]o^i+jnFQ\fbk(lB_t8H~> [.OD)q"=4ao(E"goC_\\o^r1inFZbebk1rA_tAN~> [/L%*q#9jbo)AXhoD\=]o_ngjnGWCfbl.SB_u>/~> [.F>*q"4.bo(;qhoCVV]o^i+jnFQ\fbk(lB_t8H~> [.OD)q"=7bnb)nfoC_Y[p%8:jnFZbebk1rA_tAN~> [/L%*q#9mcnc&OgoD\:\p&4pknGWCfbl.SB_u>/~> [.F>*q"41cnauhgoCVS\p%/4knFQ\fbk(lB_t8H~> [.OD)q=X=bnb)nfoC_Y[p%8:jnFZbebk1rA_tAN~> [/L%*q>Tscnc&OgoD\:\p&4pknGWCfbl.SB_u>/~> [.F>*q=O7cnauhgoCVS\p%/4knFQ\fbk(lB_t8H~> [.OD)q=X=bnb)nfoC_Y[p%8:jnFZbebk1rA_tAN~> [/L%*q>Tscnc&OgoD\:\p&4pknGWCfbl.SB_u>/~> [.F>*q=O7cnauhgoCVS\p%/4knFQ\fbk(lB_t8H~> [.OD)q=X=bnb)nfoC_VZp@SCknFZbebk1rA_tAN~> [/L%*q>Tscnc&OgoD\7[pAP$lnGWCfbl.SB_u>/~> [.F>*q=O7cnauhgoCVP[p@J=lnFQ\fbk(lB_t8H~> [.OD)q=X=bnb)nfo(DPZp@SCknFZbebk1rA_tAN~> [/L%*q>Tscnc&Ogo)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*q=O7cnauhgo(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)qXsCbnb)nfo(DPZp@SCknFZbebk1rA_tAN~> [/L%*qYp$cnc&Ogo)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*qXj=cnauhgo(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)qXsCbnb)nfo(DPZp@SCknFZbebk1rA_tAN~> [/L%*qYp$cnc&Ogo)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*qXj=cnauhgo(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)qXsCbnb)nfo(DPZp@SCknFZbebk1rA_tAN~> [/L%*qYp$cnc&Ogo)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*qXj=cnauhgo(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)qXsCbnb)nfo(DPZp@SCknFZbebk1rA_tAN~> [/L%*qYp$cnc&Ogo)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*qXj=cnauhgo(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)qXsCbnb)nfo(DPZp@SCknFZbebk1rA_tAN~> [/L%*qYp$cnc&Ogo)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*qXj=cnauhgo(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)qXsCbnb)nfo(DPZp@SCknFZbebk1rA_tAN~> [/L%*qYp$cnc&Ogo)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*qXj=cnauhgo(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)qXsCbnb)nfo(DPZp@SCknFZbebk1rA_tAN~> [/L%*qYp$cnc&Ogo)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*qXj=cnauhgo(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)qXs@ao(E"go(DPZp@SCknFZbebk1rA_tAN~> [/L%*qYp!bo)AXho)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*qXj:bo(;qho(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)qXs@ao(E"go(DPZp@SCknFZbebk1rA_tAN~> [/L%*qYp!bo)AXho)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*qXj:bo(;qho(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)q=X:ao(E"go(DPZp@SCknFZbebk1rA_tAN~> [/L%*q>Tpbo)AXho)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*q=O4bo(;qho(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)q=X:ao(E"go(DPZp@SCknFZbebk1rA_tAN~> [/L%*q>Tpbo)AXho)A1[pAP$lnGWCfbl.SB_u>/~> [.F>*q=O4bo(;qho(;J[p@J=lnFQ\fbk(lB_t8H~> [.OD)q=X:ao(E"go(DS[p%8:jnFZbebk1rA_tAN~> [/L%*q>Tpbo)AXho)A4\p&4pknGWCfbl.SB_u>/~> [.F>*q=O4bo(;qho(;M\p%/4knFQ\fbk(lB_t8H~> [.OD)q=X7`oC`+ho(DS[p%8:jnFZbebk1rA_tAN~> [/L%*q>TmaoD\aio)A4\p&4pknGWCfbl.SB_u>/~> [.F>*q=O1aoCW%io(;M\p%/4knFQ\fbk(lB_t8H~> [.OD)q"=1`oC`+ho(DS[p%8:jnFZbebk1rA_tAN~> [/L%*q#9gaoD\aio)A4\p&4pknGWCfbl.SB_u>/~> [.F>*q"4+aoCW%io(;M\p%/4knFQ\fbk(lB_t8H~> [.OD)q"=1`oC`+ho(DV\o^r1inFZbebk1rA_tAN~> [/L%*q#9gaoD\aio)A7]o_ngjnGWCfbl.SB_u>/~> [.F>*q"4+aoCW%io(;P]o^i+jnFQ\fbk(lB_t8H~> [.OD)q"=._o_&4ioC_\\o^r1inFZbebk1rA_tAN~> [/L%*q#9d`o`"jjoD\=]o_ngjnGWCfbl.SB_u>/~> [.F>*q"4(`o^r.joCVV]o^i+jnFQ\fbk(lB_t8H~> [.OD)p\"(_o_&4ioC__]oCW(hnFZbebk1rA_tAN~> [/L%*p\s^`o`"jjoD\@^oDS^inGWCfbl.SB_u>/~> [.F>*p[n"`o^r.joCVY^oCN"inFQ\fbk(lB_t8H~> [.OD)p\"(_o_&4ioC__]oCW(hnFZbebk1rA_tAN~> [/L%*p\s^`o`"jjoD\@^oDS^inGWCfbl.SB_u>/~> [.F>*p[n"`o^r.joCVY^oCN"inFQ\fbk(lB_t8H~> [.OD)p@[t^p%A=jo_%h^o(;tgnFZbebk1rA_tAN~> [/L%*pAXU_p&=sko`"I_o)8UhnGWCfbl.SB_u>/~> [.F>*p@Rn_p%87ko^qb_o(2nhnFQ\fbk(lB_t8H~> [.OD)p%@n^p%A=jo_%h^o(;tgnFZbebk1rA_tAN~> [/L%*p&=O_p&=sko`"I_o)8UhnGWCfbl.SB_u>/~> [.F>*p%7h_p%87ko^qb_o(2nhnFQ\fbk(lB_t8H~> [.OD)p%@k]p@\Fkp%@q_naukfnFZbebk1rA_tAN~> [/L%*p&=L^pAY'lp&=R`nbrLgnGWCfbl.SB_u>/~> [.F>*p%7e^p@S@lp%7k`nalegnFQ\fbk(lB_t8H~> [.OD)o_%b\p\"Olp%@t`nFZbenFZbebk1rA_tAN~> [/L%*o`"C]p\t0mp&=UanGWCfnGWCfbl.SB_u>/~> [.F>*o^q\]p[nImp%7nanFQ\fnFQ\fbk(lB_t8H~> [.OD)oC_\\p\"Olp@\(an+?YdnFZbebk1rA_tAN~> [/L%*oD\=]p\t0mpAX^bn,<:enGWCfbl.SB_u>/~> [.F>*oCVV]p[nImp@S"bn+6SenFQ\fbk(lB_t8H~> [.OD)o(DS[q"=Xmp\"1bme$PcnFZbebk1rA_tAN~> [/L%*o)A4\q#:9np\sgcmf!1dnGWCfbl.SB_u>/~> [.F>*o(;M\q"4Rnp[n+cmdpJdnFQ\fbk(lB_t8H~> [.OD)nb)JZq=Xanq"=:cmI^GbnFZbebk1rA_tAN~> [/L%*nc&+[q>UBoq#9pdmJ[(cnGWCfbl.SB_u>/~> [.F>*nauD[q=O[oq"44dmIUAcnFQ\fbk(lB_t8H~> [.OD)nFc>Xqt9spq=XCdm.C>anFZbebk1rA_tAN~> [/L%*nG_tYqu6Tqq>U$em/?tbnGWCfbl.SB_u>/~> [.F>*nFZ8Yqt0mqq=O=em.:8bnFQ\fbk(lB_t8H~> [.OD)n+H5Wr:U'qqt9Relh(5`nFZbebk1rA_tAN~> [/L%*n,DkXr;Q]rqu63fli$kanGWCfbl.SB_u>/~> [.F>*n+?/Xr:L!rqt0Lflgt/anFQ\fbk(lB_t8H~> [.OD)mIfuTs7QBtrUodgl1G#^nFZbeqt9splLk/_mI^Gb_tAN~> [/L%*mJcVUs8N#urVlEhl2CY_nGWCfqu6TqlMge`mJ[(c_u>/~> [.F>*mI]oUs7H [.OD)lh00AkOef\nFZbeqXjgoo^r1ip[nLlmI^Gb_tAN~> [/L%*li,fBkPbG]nGWCfqYgHpo_ngjp\k-mmJ[(c_u>/~> [.F>*lh'*BkO\`]nFQ\fqXaapo^i+jp[eFmmIUAc_t8H~> [.OD)m.K [/L%*m/GrDjo,5[nGWCfqu-QqoDS^iq#16nq>L?op&4pk_u>/~> [.F>*m.B6Djn&N[nFQ\fqt'jqoCN"iq"+Onq=FXop%/4k_t8H~> [.OD)mIg>^!;5U_iq39WnFZbeqt0ppl1G#^qXsjop%8:j_tAN~> [/L%*mJct_!<26`ir/oXnGWCfqu-Qql2CY_qYpKpp&4pk_u>/~> [.F>*mI^8_!;,O`iq*3XnFQ\fqt'jql1=r_qXjdpp%/4k_t8H~> [.OD)me-G_qXsFchXpjSnFZbeqt0ppl1G#^qXjgoo^r1i_tAN~> [/L%*mf*(`qYp'dhYmKTnGWCfqu-Qql2CY_qYgHpo_ngj_u>/~> [.F>*me$A`qXj@dhXgdTnFQ\fqt'jql1=r_qXaapo^i+j_t8H~> [.OD)n+HP`oC`+hf_#4MnFZber:L0up%8RrrUp0rrq69srq69srUg@#p%8Rrp%A4gp@SCk_tAN~> [/L%*n,E1aoD\aif_tjNnGWCfr;Hg!rr)ltrVlfsrr2otrr2otrVd!$rr)ltrr2fqpAP$l_u>/~> [.F>*n+?JaoCW%if^o.NnFQ\fr:C+!o^iItrUg*srq-3trq-3trU^:$o^iIto^r%gp@J=l_t8H~> [.OD)nFcYao(E"gf_#4MnFZber:L0uoa(3rrq.!3oa(6`#k\Jroa(6`#RL+r#k\Jr#laJs#kR]h #fH=c~> [/L%*nG`:bo)AXhf_tjNnGWCfr;Hg!rW)otrr*W4rW)rs!<)utrW)rs!!*#t!<)ut!<2rt!;$0i !5ned~> [.F>*nFZSbo(;qhf^o.NnFQ\fr:C+!oEt3trq$p4oEt6_$M4\toEt6_$4?Ft$M4\t$NBYt$M3li $H)Ld~> [.OD)o(Dhbnb)nff_#4MnFZberUh3;oa(6`#kdirp%8U`#k\Jro`tiroa(6`#k\Jroa(Qi!!r2h !!pL8J,~> [/L%*o)AIcnc&Ogf_tjNnGWCfrVdi [.F>*o(;bcnauhgf^o.NnFQ\frU_-i !"-X9J,~> [.OD)oC_qcnFceef_#4MnFZberUp0rrq-F#p%8U`#lXE(#kdirp%8Rrp%8Rrrq-6srq-6soCW(h _tAN~> [/L%*oD\RdnG`Fff_tjNnGWCfrVlfsrr*'$rr)os!<)m)!<2rtrr)ltrr)ltrr)ltrr)ltoDS^i _u>/~> [.F>*oCVkdnFZ_ff^o.NnFQ\frUg*srq$@$o^iL_$N9T)$M [.OD)o_&%dn+H\df_#4MnFZberUg-rrq- [/L%*o`"[en,E=ef_tjNnGWCfrVccsrr)s!rr2lsrVccsrr*!"rr)osrVurtrVurtrVurhrVur9 rdX~> [.F>*o^qten+?Vef^o.NnFQ\frU^'srq$7!o^r+irU^'srq$:"o^iLioDf6toDf6toDf6hoDf69 oRH~> [.OD)p%A+dn+H\df_#4MnFZberq-6srUg6up%8Ufo`b]p#kdir#laJs#lXDr#laJu#k\Jqo`,98 omd~> [/L%*p&=aen,E=ef_tjNnGWCfrr)ltrVcm!rr)oprWWB%!<2rt!<2rt!<)ls!<2s!!<)ujrVur9 rdX~> [.F>*p%8%en+?Vef^o.NnFQ\frq$0trU^1!o^iLfoEGZp$M [.OD)p@\4eme-Scf_#4MnFZberq-p1p%8U`#kdirp%8U`oa(3rp%8Ugoa1utoa(3rp%8U`#kR]h #fH=c~> [/L%*pAXjfmf*4df_tjNnGWCfrr*Q2rr)os!<2rtrr)osrW)otrr)oqrX&Z)rW)otrr)os!;$0i !5ned~> [.F>*p@S.fme$Mdf^o.NnFQ\frq$j2o^iL_$M [.OD)p@\4eme-Scf_#4MnFZkhp%8Uip&> [/L%*pAXjfmf*4df_tjNnGWLirr)osrr2utrr)osrr2utrVursrVurtrr2utrr2uhrVur9rdX~> [.F>*p@S.fme$Mdf^o.NnFQeio^iLio`#9to_o3so`#9toDf6soDf6to`#9to`#9hoDf69oRH~> [.OD)p\":eme-Scf_#4MnFZbelh15_jn/TZ_tAN~> [/L%*p\spfmf*4df_tjNnGWCfli-k`jo,5[_u>/~> [.F>*p[n4fme$Mdf^o.NnFQ\flh(/`jn&N[_t8H~> [.OD)q"=@eme-Scf_#4MnFZbemIgJbrq69skOef\_tAN~> [/L%*q#:!fmf*4df_tjNnGWCfmJd+crr2otkPbG]_u>/~> [.F>*q"4:fme$Mdf^o.NnFQ\fmI^Dcrq-3tkO\`]_t8H~> [.OD)q"==dn+H\df_#4MnFZbeme$Pcqt0ppkOef\_tAN~> [/L%*q#9sen,E=ef_tjNnGWCfmf!1dqu-QqkPbG]_u>/~> [.F>*q"47en+?Vef^o.NnFQ\fmdpJdqt'jqkO\`]_t8H~> [.OD)q=X@cnFceef_#4MnFZbeme-ScrUp0rkOef\_tAN~> [/L%*q>U!dnG`Fff_tjNnGWCfmf*4drVlfskPbG]_u>/~> [.F>*q=O:dnFZ_ff^o.NnFQ\fme$MdrUg*skO\`]_t8H~> [.OD)q=X7`oC`+hf_#4MnFZbem.L8^k4J][_tAN~> [/L%*q>TmaoD\aif_tjNnGWCfm/Hn_k5G>\_u>/~> [.F>*q=O1aoCW%if^o.NnFQ\fm.C2_k4AW\_t8H~> [.OD)qXrGGiUm0VnFZbebk1rA_tAN~> [/L%*qYo(HiVifWnGWCfbl.SB_u>/~> [.F>*qXiAHiUd*WnFQ\fbk(lB_t8H~> [.OD)qXql7naukfnFZbebk1rA_tAN~> [/L%*qYnM8nbrLgnGWCfbl.SB_u>/~> [.F>*qXhf8nalegnFQ\fbk(lB_t8H~> [.OD)qXq`3p%8:jnFZbebk1rA_tAN~> [/L%*qYnA4p&4pknGWCfbl.SB_u>/~> [.F>*qXhZ4p%/4knFQ\fbk(lB_t8H~> [.OD)qXqZ1p[nLlnFZbebk1rA_tAN~> [/L%*qYn;2p\k-mnGWCfbl.SB_u>/~> [.F>*qXhT2p[eFmnFQ\fbk(lB_t8H~> [.OD)qXqT/q=O^nnFZbebk1rA_tAN~> [/L%*qYn50q>L?onGWCfbl.SB_u>/~> [.F>*qXhN0q=FXonFQ\fbk(lB_t8H~> [.OD)q=VK.qXjgonFZbebk1rA_tAN~> [/L%*q>S,/qYgHpnGWCfbl.SB_u>/~> [.F>*q=ME/qXaapnFQ\fbk(lB_t8H~> [.OD)q";B-qt0ppnFZbebk1rA_tAN~> [/L%*q#8#.qu-QqnGWCfbl.SB_u>/~> [.F>*q"2<.qt'jqnFQ\fbk(lB_t8H~> [.OD)q";?,r:L$qnFZbebk1rA_tAN~> [/L%*q#7u-r;HZrnGWCfbl.SB_u>/~> [.F>*q"29-r:BsrnFQ\fbk(lB_t8H~> [.OD)p[u6+rUg-rnFZbebk1rA_tAN~> [/L%*p\ql,rVccsnGWCfbl.SB_u>/~> [.F>*p[l0,rU^'snFQ\fbk(lB_t8H~> [.OD)p%?'*rq-6snFZbebk1rA_tAN~> [/L%*p&;]+rr)ltnGWCfbl.SB_u>/~> [.F>*p%6!+rq$0tnFQ\fbk(lB_t8H~> [.OD)o_#s)s7H?tnFZbebk1rA_tAN~> [/L%*o_uT*s8DuunGWCfbl.SB_u>/~> [.F>*o^om*s7?9unFQ\fbk(lB_t8H~> [.OD)o(Bg)s7H?tnFZbebk1rA_tAN~> [/L%*o)?H*s8DuunGWCfbl.SB_u>/~> [.F>*o(9a*s7?9unFQ\fbk(lB_t8H~> [.OD)nb'^(!VH`fo`,9Ao`,98omd~> [/L%*nc$?)!WE)grVurBrVur9rdX~> [.F>*nasX)!V?`goDf6BoDf69oRH~> [.OD)o(Dkcp[ul=!VH`fo`,9Ao`,98omd~> [/L%*o)ALdp\rM>!WE)grVurBrVur9rdX~> [.F>*o(;edp[lf>!V?`goDf6BoDf69oRH~> [.OD)o(Dndn+H\dm.KcP!VH`fo`,9Ao`,98omd~> [/L%*o)AOen,E=em/HDQ!WE)grVurBrVur9rdX~> [.F>*o(;hen+?Vem.B]Q!V?`goDf6BoDf69oRH~> [.OD)oC`"eme-Scjn83NnFZbebk1rA_tAN~> [/L%*oD\Xfmf*4djo4iOnGWCfbl.SB_u>/~> [.F>*oCVqfme$Mdjn/-OnFQ\fbk(lB_t8H~> [.OD)o_&+fmIgJbiq [/L%*o`"agmJd+cir8WOnGWCfbl.SB_u>/~> [.F>*o^r%gmI^Dciq2pOnFQ\fbk(lB_t8H~> [.OD)p%A1fmIgJbiUupNnFZbebk1rA_tAN~> [/L%*p&=ggmJd+ciVrQOnGWCfbl.SB_u>/~> [.F>*p%8+gmI^DciUljOnFQ\fbk(lB_t8H~> [.OD)p@\:gm.LAai:ZjNnFZbebk1rA_tAN~> [/L%*pAXphm/I"bi;WKOnGWCfbl.SB_u>/~> [.F>*p@S4hm.C;bi:QdOnFQ\fbk(lB_t8H~> [.OD)p\"Chlh18`ht?dNnFZbebk1rA_tAN~> [/L%*p\t$ili-nahu/~> [.F>*p[n=ilh(2aht6^OnFQ\fbk(lB_t8H~> [.OD)q"=Ihlh18`hY$^NnFZbebk1rA_tAN~> [/L%*q#:*ili-nahZ!?OnGWCfbl.SB_u>/~> [.F>*q"4Cilh(2ahXpXOnFQ\fbk(lB_t8H~> [.OD)q=XRilLk/_hY$^NnFZbebk1rA_tAN~> [/L%*q>U3jlMge`hZ!?OnGWCfbl.SB_u>/~> [.F>*q=OLjlLb)`hXpXOnFQ\fbk(lB_t8H~> [.OD)qXsXilLk/_hY$^NnFZbebk1rA_tAN~> [/L%*qYp9jlMge`hZ!?OnGWCfbl.SB_u>/~> [.F>*qXjRjlLb)`hXpXOnFQ\fbk(lB_t8H~> [.OD)qXs[jl1P&^hY$^NnFZbebk1rA_tAN~> [/L%*qYp/~> [.F>*qXjUkl1Fu_hXpXOnFQ\fbk(lB_t8H~> [.OD)qt9ajl1P&^hY$dP!VH`fo`,9Ao`,98omd~> [/L%*qu6Bkl2L\_hZ!EQ!WE)grVurBrVur9rdX~> [.F>*qt0[kl1Fu_hXp^Q!V?`goDf6BoDf69oRH~> [.OD)r:Tgjl1P&^hY$dP!VH`fo`,9Ao`,9dp&56Lomd~> [/L%*r;QHkl2L\_hZ!EQ!WE)grVurBrVurerr)oMrdX~> [.F>*r:Kakl1Fu_hXp^Q!V?`goDf6BoDf6eo_o3MoRH~> [.OD)r:Tjkkk4r]ht?jP!VH`fo`,9Ao`,9bo`,9Momd~> [/L%*r;QKlkl1S^hu [.F>*r:Kdlkk+l^ht6dQ!V?`goDf6BoDf6coDf6NoRH~> [.OD)rUopkkk4r]ht?jP!VH`fo`,9Ao`,9co`,9Lomd~> [/L%*rVlQlkl1S^hu [.F>*rUfjlkk+l^ht6dQ!V?`goDf6BoDf6doDf6MoRH~> [.OD)rq6!kkk4r]ht?mQs7H?tnFZbebk1rAme$PcfCaX~> [/L%*rr2Wlkl1S^hu [.F>*rq,plkk+l^ht6gRs7?9unFQ\fbk(lBmdpJdfCXR~> [.OD)rq6!kkk4r]i:ZsQs7H?tnFZbebk1rAme$PcfCaX~> [/L%*rr2Wlkl1S^i;WTRs8DuunGWCfbl.SBmf!1dfD^:~> [.F>*rq,plkk+l^i:QmRs7?9unFQ\fbk(lBmdpJdfCXR~> [.OJ+p%@t`l1P&^iV!'Rrq-6snFZbebk1rAq=X^mr:U$prq-6srq-6srUp-qrq69ss7QBtrUp0r rq69sq=T7~> [/L+,rr2Qjl2L\_iVr]Srr)ltnGWCfbl.SBq>U?nr;QZqrr)ltrr)ltrVlcrrr2ots8N#urVlfs rr2otq>Pm~> [.FD,o^qe`l1Fu_iUm!Srq$0tnFQ\fbk(lBq=OXnr:Ksqrq$0trq$0trUg'rrq-3ts7H [.OJ+p%@t`l1P&^iq<-Rrq-6snFZbebk1rAqXjprp%8Uip&> [/L+,rr2Qjl2L\_ir8cSrr)ltnGWCfbl.SBqYgQsrr)osrr2uurW*#urW)rs!!*#t$ip;+!<2rt rW)otrW)rs#6=`'rr)os!;ZVE~> [.FD,o^qe`l1Fu_iq3'Srq$0tnFQ\fbk(lBqXajso^iLio`#9uoDo [.OJ+p%@q_lLk/_iq<0SrUg-rnFZbebk1rAqt1'tp%8Rrrq-6srq-C"oa(3rrq-d-p%8U`o`tir #k\Jr#k\K&o`,9ro`GKmoa(BdJ,~> [/L+,rr2NilMge`ir8fTrVccsnGWCfbl.SBqu-]urr)ltrr)ltrr*$#rW)otrr*E.rr)osrVurt !<)ut!<)utrVursrW<0"rW)cnJ,~> [.FD,o^qb_lLb)`iq3*TrU^'snFQ\fbk(lBqt(!uo^iItrq$0trq$=#oEt3trq$^.o^iL_oEkrt $M4\t$M4])oDf6soE,HmoEtEdJ,~> [.OG*p$rCSp&> [/L(+rpg'Trr2uYrqc]nrVurfrVurBrVurrrVurtrVurtrVurtrVursrWWB%rW)rs!<2rt!<)os !<<#u!<2rt!<)lu!<)unrdX~> [.FA+o^W@To`#9Yo_T!noDf6foDf6BoDf6roDf6toDf6toDf6toDf6soEGZpoEt6_$NBYt$N9Vs $NK_u$NBYt$N9Su$M4]#oRH~> [.OG*p$i=Sp&> [/L(+rp^!Trr2u[rqQQlrVurfrVurBrVurrrWiN'rVurtrVurtrVurtrVurtrW`H&rW)rs!!*#t rrE)u!!*#t!!)usrW)]lJ,~> [.FA+o^N:To`#9[o_AjloDf6foDf6BoDf6roEYfroEkrtoEks)oDf6toDf6toEP`qoEt6_$4?e) rsJeu!"/_t!"/\srX/DlJ,~> [.OG*p$`7Sp&><[p%\mjo`,9eo`,9Ao`,9roa1uto`tir#k\Jrp&,0roa_?$oa(6`#kdir#k\Jr oa(Qi#mg20oa(6`#k\Jromd~> [/L(+rpTpTrr2u\rqQQkrVurfrVurBrVursrX&Z)rVurt!<)utrquisrXT#.rW)rs!<2rt!<)ut rW)rs#lsr)rW)rs!<)ukrdX~> [.FA+o^E4To`#9\o_AjkoDf6foDf6BoDf6soEkrtoEkrt$M4\to_f-soFD<$oEt6_$M [.OG*p$N+Sp&><\p%\mio`,9eo`,9Ao`,9rob.W(#k\H/p%8U`#k\H/p%8U`#RLG&"UOc,o`tj& oahE%oa(3rp%8U`#kdirp%8Ucomd~> [/L(+rpBdTrr2u]rqQQjrVurfrVurBrVursrY#;2!<)rurr)os!<)rurr)os!!*#t"T\N%rVurt rX])/rW)otrr)os!<2rtrr)omrdX~> [.FA+o^3(To`#9]o_AjjoDf6foDf6BoDf6soFhT($M4Z4o^iL_$M4Z4o^iL_$4?e)"Ual/oEks) oFMB%oEt3to^iL_$M [.OJ+p%@\Xnb)nfl1OfWq=O^nnFZbebk1rArUp0rs7H?trq69ss7H?trq69sr:U'qs7H?trq-6s rq69srq69srq66rp[s%~> [/L+,rr29bnc&Ogl2LGXq>L?onGWCfbl.SBrVlfss8Duurr2ots8Duurr2otr;Q]rs8Duurr)lt rr2otrr2otrr2lsp\o[~> [.FD,o^qMXnauhgl1F`Xq=FXonFQ\fbk(lBrUg*ss7?9urq-3ts7?9urq-3tr:L!rs7?9urq$0t rq-3trq-3trq-0sp[it~> [.OJ+p%@SUo_&4im.L&Xq"4UmnFZbebk1rA_tAN~> [/L+,rr20_o`"jjm/H\Yq#16nnGWCfbl.SB_u>/~> [.FD,o^qDUo^r.jm.BuYq"+OnnFQ\fbk(lB_t8H~> [.OD)rq5I\p\"Oln+H;Yp[nLlnFZbebk1rA_tAN~> [/L%*rr2*]p\t0mn,DqZp\k-mnGWCfbl.SB_u>/~> [.F>*rq,C]p[nImn+?5Zp[eFmnFQ\fbk(lB_t8H~> [.OD)rq54Urq69sp%@bZp@SCknFZbebk1rA_tAN~> [/L%*rr1jVrr2otp&=C[pAP$lnGWCfbl.SB_u>/~> [.F>*rq,.Vrq-3tp%7\[p@J=lnFQ\fbk(lB_t8H~> [.OD)rUmr3p%8:jnFZbebk1rA_tAN~> [/L%*rVjS4p&4pknGWCfbl.SB_u>/~> [.F>*rUdl4p%/4knFQ\fbk(lB_t8H~> [.OD)r:Rr5oCW(hnFZbebk1rA_tAN~> [/L%*r;OS6oDS^inGWCfbl.SB_u>/~> [.F>*r:Il6oCN"inFQ\fbk(lB_t8H~> [.OD)qXqi6o(;tgnFZbebk1rA_tAN~> [/L%*qYnJ7o)8UhnGWCfbl.SB_u>/~> [.F>*qXhc7o(2nhnFQ\fbk(lB_t8H~> [.OD)q=Vf7naukfnFZbebk1rA_tAN~> [/L%*q>SG8nbrLgnGWCfbl.SB_u>/~> [.F>*q=M`8nalegnFQ\fbk(lB_t8H~> [.OD)p[u`9n+?Ydp%8:jrUg-rrUg-rdIdJF_tAN~> [/L%*p\rA:n,<:ep&4pkrVccsrVccsdJa+G_u>/~> [.F>*p[lZ:n+6Sep%/4krU^'srU^'sdI[DG_t8H~> kOncZqXsdmh=UaRp@Z`;mI^Gbp%8:jrUg-rrq-6sd.IAE_tAN~> kPkD[qYpEnh>RBSpAWA/~> kOe][qXj^nh=L[Sp@QZ jn8WZqXsjor:L$qiUm0Vo_$Z=lh(5`o^r1irq-6srq-6sd.IAE_tAN~> jo58[qYpKpr;HZriVifWo`!;>li$kao_ngjrr)ltrr)ltd/F"F_u>/~> jn/Q[qXjdpr:BsriUd*Wo^pT>lgt/ao^i+jrq$0trq$0td.@;F_t8H~> jn8WZqt1!roa(Kg!!qQV!!r,ffEga7!!r2h"pjnp#kdirch.8D_tAN~> jo58[qu-WsrW)lq!!)!W!!)QgfDt18!!)Wi"p"Z%!<2rtci*nE_u>/~> jn/Q[qt'psoEtNg!".]W!"/8gfF$m8!"/>i"q("p$M jn8WZqt1!roa'=F!!r#ch?`9:!!r/g":4Z+oa&k9!!pL8J,~> jo58[qu-WsrW(^P!!)Hdh>l^;!!)Th"9AE$rW(7C!!'q9J,~> jn/Q[qt'psoEs@F!"//dh?rE;!"/;h":Fc.oErn9!"-X9J,~> jn8TYrUg3toa':E!!qo`jTsl=!!r/g!snQ*#gN#B#fH=c~> jo55ZrVciurW([O!!)?ajT+<>!!)Th!s&<#!6tKC!5ned~> jn/NZrU^-uoEs=E!"/&ajU1#>!"/;h!t+Z-$I/2C$H)Ld~> n+?Ydrq-6srUg6up%8Uip&>9uoa(Nhrs8Vsrs8Ytrs7l^!!q]ZnHdqC!!r,frWpdA!!pL8J,~> n,<:err)ltrVcm!rr)osrr2s!rW)orrrE&trrE)urrD<_!!)-[nGqAD!!)QgrW(4B!!'q9J,~> n+6Serq$0trU^1!o^iLio`#7!oEtQhrsJbtrsJeursJ#_!".i[nI"(D!"/8grX-pB!"-X9J,~> nFZqjoa(6`#lXDu#kdirrq-@!p%8Uioa;&u#kdiroa(3roa(KgrWrMrrs8VsrWrMrW nGWRkrW)rs!<)m!!<2rtrr*!"rr)osrX/`*!<2rtrW)otrW)lqrW)rsrrE&trW)rsW;uqsrrE&t rW)rsrW(7C!!'q9J,~> nFQkkoEt6_$N9T!$M me$Yfp%8Uhob[u-oa(6`#RL+r#kdiroa(6`#k\Jr#k\J>p&>;Zo`,98omd~> mf!:grr)orrYPY7rW)rs!!*#t!<2rtrW)rs!<)ut!<)u7rr2t[rVur9rdX~> mdpSgo^iLhoG@r-oEt6_$4?Ft$M me$Veoa(Kg"pjnp#kdirrq-6srUg-rrUp0rs7H?tkk+o]g\(RPOS&SZ_tAN~> mf!7frW)lq"p"Z%!<2rtrr)ltrVccsrVlfss8Duukl(P^g]%3QOT#4[_u>/~> mdpPfoEtNg"q("p$M me$Veoa(Nh!!rSs!XSH)rUg-rrq-6srUp0rs7H?tkOef\g\(RPf_#4M](H%/_tAN~> mf!7frW)or!!*#t!W`3"rVccsrr)ltrVlfss8DuukPbG]g]%3Qf_tjN])D[0_u>/~> mdpPfoEtQh!"/_t!XeQ,rU^'srq$0trUg*ss7?9ukO\`]g[tLQf^o.N](>t0_t8H~> me-Scr:L$qrq66rrUg-rrq-F#oa(6`#laJu#k\Jfo`,9Pp&> mf*4dr;HZrrr2lsrVccsrr*'$rW)rs!<2s!!<)u_rVurQrr2uNrVur0rVur9rdX~> me$Mdr:Bsrrq-0srU^'srq$@$oEt6_$NBZ!$M4\ioDf6Qo`#9NoDf60oDf69oRH~> me-ScrUp0rrUg-rrUg-rrq-p&> mf*4drVlfsrVccsrVccsrr)s!rW)rs"T\Q$!<)u7rr2uNrVur0rVur9rdX~> me$MdrUg*srU^'srU^'srq$7!oEtTi"Uano$M4\Ao`#9NoDf60oDf69oRH~> me$Pcrq6-os7HF!p%A4g!qcg)rq-6srq69s_"I^5OS&SZ_tAN~> mf!1drr2cps8E'"rr2fq!r`0"rr)ltrr2ot_#F?6OT#4[_u>/~> mdpJdrq-'ps7?@"o^r%g!qZg,rq$0trq-3t_"@X6ORrM[_t8H~> n+H\dU%SEkOS&SZ_tAN~> n,E=eU&P&lOT#4[_u>/~> n+?VeU%J?lORrM[_t8H~> n+?Yda7TE n,<:ea8Q&=g]%3QOT#4[_u>/~> n+6Sea7K?=g[tLQORrM[_t8H~> nFZbe`q9<;g\(RPf_#4M](H%/_tAN~> nGWCf`r5r/~> nFQ\f`q06t0_t8H~> naukf`Us3:g\(RPf_#4M](H%/_tAN~> nbrLg`Voi;g]%3Qf_tjN])D[0_u>/~> naleg`Uj-;g[tLQf^o.N](>t0_t8H~> NV3;Wf_#4M](H%/_tAN~> NW/qXf_tjN])D[0_u>/~> NV*5Xf^o.N](>t0_t8H~> NV3;WOS&SZ_tAN~> NW/qXOT#4[_u>/~> NV*5XORrM[_t8H~> [.OD)g\(RPOS&SZ_tAN~> [/L%*g]%3QOT#4[_u>/~> [.F>*g[tLQORrM[_t8H~> [.OD)g\(RPf_#4M](H%/_tAN~> [/L%*g]%3Qf_tjN])D[0_u>/~> [.F>*g[tLQf^o.N](>t0_t8H~> [.OD)g\(RPf_#4M](H%/_tAN~> [/L%*g]%3Qf_tjN])D[0_u>/~> [.F>*g[tLQf^o.N](>t0_t8H~> NV3;Wf_#4M](H%/_tAN~> NW/qXf_tjN])D[0_u>/~> NV*5Xf^o.N](>t0_t8H~> NV3;WOS&SZ_tAN~> NW/qXOT#4[_u>/~> NV*5XORrM[_t8H~> NV3;WOS&SZ_tAN~> NW/qXOT#4[_u>/~> NV*5XORrM[_t8H~> [.OD)g\(RPQ1Y+_rUg-rrUg-raRt&~> [/L%*g]%3QQ2Ua`rVccsrVccsaSp\~> [.F>*g[tLQQ1P%`rU^'srU^'saRju~> [.OD)h=^XNg@YFO^\%R4rUg-rrq-6sa7Xr~> [/L%*h>[9OgAV'P^]"35rVccsrr)lta8US~> [.F>*h=UROg@P@P^[qL5rU^'srq$0ta7Ol~> [.OD)hY$[Mg[tOP^@_I3rq-6srq-6sa7Xr~> [/L%*hZ! [.F>*hXpUNg[kIQ^@VC4rq$0trq$0ta7Ol~> OnJGSh":XQ^%DR8p%8U`oa&S1J,~> OoG(Th#79R^&A39rr)osrW't;J,~> OnAATh"1RR^%;L9o^iL_oErV1J,~> P4eMSQLt@doa(3r`V"`~> P5b.TQMq!erW)ot`VtA~> P4\GTQLk:eoEt3t`UnZ~> P4eJRQh:Fdo`tiAomd~> P5b+SQi7'erVur:rdX~> P4\DSQh1@eoEkrDoRH~> [.OD)iUuaIrq69srq66rrq66rs7Q?srq66rrq69srq66rrq66rs7Q?srq66rrq69srq66rrq66r s7Q?srq66rrq69srq66rrq66rs7Q9q!;6 [/L%*iVrBJrr2otrr2lsrr2lss8Mutrr2lsrr2otrr2lsrr2lss8Mutrr2lsrr2otrr2lsrr2ls s8Mutrr2lsrr2otrr2lsrr2lss8Mor!<2rtrr2otrr2lsrr2lss8MuthYr$~> [.F>*iUl[Jrq-3trq-0srq-0ss7H9trq-0srq-3trq-0srq-0ss7H9trq-0srq-3trq-0srq-0s s7H9trq-0srq-3trq-0srq-0ss7H3r!;-6trq-3trq-0srq-0ss7H9thXl<~> [.OD)iUugKh=UaR](H%/_tAN~> [/L%*iVrHLh>RBS])D[0_u>/~> [.F>*iUlaLh=L[S](>t0_t8H~> PP+PRh=UaRJbAp5J,~> PQ(1Sh>RBSJc>QGJ,~> PP"JSh=L[SJb8j3J,~> P4eJRJb@UeJ,~> P5b+SJc=7"J,~> P4\DSJb7OcJ,~> P4eMSJb@RdJ,~> P5b.TJc=4!J,~> P4\GTJb7LbJ,~> [.OD)ht?^LJb@RdJ,~> [/L%*hu [.F>*ht6XMJb7LbJ,~> [.OD)hY$[Mg[tOPJbAp5J,~> [/L%*hZ!QGJ,~> [.F>*hXpUNg[kIQJb8j3J,~> [.OD)g\(RPf_#4MJbAp5J,~> [/L%*g]%3Qf_tjNJc>QGJ,~> [.F>*g[tLQf^o.NJb8j3J,~> NV3;Wf_#4MJbAp5J,~> NW/qXf_tjNJc>QGJ,~> NV*5Xf^o.NJb8j3J,~> NV3;WJb@F`J,~> NW/qXJc='rJ,~> NV*5XJb7@^J,~> NV3;WJb@F`J,~> NW/qXJc='rJ,~> NV*5XJb7@^J,~> [.OD)g\(RPJb@F`J,~> [/L%*g]%3QJc='rJ,~> [.F>*g[tLQJb7@^J,~> [.OD)g\(RPf_#4MJbAp5J,~> [/L%*g]%3Qf_tjNJc>QGJ,~> [.F>*g[tLQf^o.NJb8j3J,~> [.OD)g\(RPf_#4MJbAp5J,~> [/L%*g]%3Qf_tjNJc>QGJ,~> [.F>*g[tLQf^o.NJb8j3J,~> NV3;Wf_#4MJbAp5J,~> NW/qXf_tjNJc>QGJ,~> NV*5Xf^o.NJb8j3J,~> NV3;WJb@F`J,~> NW/qXJc='rJ,~> NV*5XJb7@^J,~> NV3;Wi:[$SqXsdmJb=N~> NW/qXi;WZTqYpEnJc:0~> NV*5Xi:QsTqXj^nJb4H~> \Foe+qXsdmjn8WZhY$mSqXsjoJbB'9J,~> \GlF,qYpEnjo58[hZ!NTqYpKpJc>]KJ,~> \Ff_,qXj^njn/Q[hXpgTqXjdpJb9!7J,~> [e9Y+qXsjor:L$ql1P&^hY$mSqt1!roa$-As7Lm~> [f6:,qYpKpr;HZrl2L\_hZ!NTqu-WsrW%NKs8IN~> [e0S,qXjdpr:Bsrl1Fu_hXpgTqt'psoEp0As7Cg~> [e9Y+qt1!roa(Kg!!qi^rs7KSrs8Mp!XSH)JbB'9J,~> [f6:,qu-WsrW)lq!!)9_rrCpTrrDrq!W`3"Jc>]KJ,~> [e0S,qt'psoEtNg!".u_rsIWTrsJYq!XeQ,Jb9!7J,~> [e9Y+qt1!roa'UNrs7KSrWrJq!XSH)JbB$8J,~> [f6:,qu-WsrW)!XrrCpTrW)or!W`3"Jc>ZJJ,~> [e0S,qt'psoEsXNrsIWTrX/Vr!XeQ,Jb8s6J,~> [e9V*rUg3toa'RMrs7r`rs8Mp!!rSs!snSm#laMs#QaT(qt9pos7QBtqt0ppP4a>~> [f67+rVciurW(sWrrDBarrDrq!!*#t!s&?"!<2ut!!3'!qu6Qps8N#uqu-QqP5]t~> [e0P+rU^-uoEsUMrsJ)arsJYq!"/_t!t+\m$NB\t$3Bc+qt0jps7H _tF$8qt0pprq-@!p%8Uip&>9uoa(Nhrs8Vsrs8Ytrs8/frs7r`!XSH)rq66rrq-@!p%8Uio`GKm oa(Kg#RL+r#kdiroa(QirWn\[J,~> _uBZ9qu-Qqrr*!"rr)osrr2s!rW)orrrE&trrE)urrDTgrrDBa!W`3"rr2lsrr*!"rr)osrW<0" rW)lq#QXl'!<2rtrW)rsrW&,\J,~> _t _t=':oa(QirWrMr!snSm#laK!#kdirrq-X)oa(6`#k\Jr#k\Jnp&><^o`GKmoa(Hf$4-=t#kdir #kdirrUg:!p%8RrrUg6up%8TOomd~> _u9];rW)rsrW)rs!s&?"!<2s"!<2rtrr*9*rW)rs!<)ut!<)ugrr2u_rW<0"rW)ip$3:))!<2rt !<2rtrVcp"rr)ltrVcm!rr)nYrdX~> _t4!;oEtTirX/Ys!t+\m$NBZ"$M _=[m9p%8Ufob[u-oa(6`#RL+r#kdiroa(6`#k\Jr#k\Jsp&> _>XN:rr)oprYPY7rW)rs!!*#t!<2rtrW)rs!<)ut!<)ulrr2usrr2usrr2udrr2uprWWB%rW)rs !<2rt!<2rt!<2rt!;lcq!07&/~> _=Rg:o^iLfoG@r-oEt6_$4?Ft$M _"I^5qXk$up%8U`oa(Qi!!rPr!!rPrrs8Yt!!r;krWrMrrs8VsrWqrb!!rGo!!rSs!XSH)rUg-r rq-C"p%8Rrqt0ppNV.f~> _#F?6qYg[!rr)osrW)rs!!)us!!)usrrE)u!!)`lrW)rsrrE&trW)Bc!!)lp!!*#t!W`3"rVccs rr*$#rr)ltqu-QqNW+G~> _"@X6qXat!o^iL_oEtTi!"/\s!"/\srsJeu!"/GlrX/YsrsJbtrX/)c!"/Sp!"/_t!XeQ,rU^'s rq$=#o^iItqt'jqNV%`~> _"@[5qXjgorq- _#=<6qYgHprr)s!rW)or!!*#t!!)usrrE)u!!)]kr;clsrrE&trW)Ed!W`3"qu-Qqrr2lsrVd*' rr)osrVurt!<)lu!<)tYrdX~> _"7U6qXaaprq$7!oEtQh!"/_t!"/\srsJeu!"/Dkr _=[j8oa(Hf!!rSsrWrJq!!rSs"UOc,p%8Uio`>El#kmrj#ljSt#ljSs#kIWo#kdirp%8U`#laMs #lXDr#lXDr#laK-#k\Jr#RL)/p%8U`oa(3rOS+,~> _>XK9rW)ip!!*#trW)or!!*#t"T\N%rr)osrW3*!!;?Ek!<<&u!<<&t!:p*p!<2rtrr)os!<2ut !<)ls!<)ls!<2s.!<)ut!!)uurr)osrW)otOT'b~> _=Rd9oEtKf!"/_trX/Vr!"/_t"Ual/o^iLioE#Bl$MO,k$NKbu$NKbt$M*fp$M `UsKBp%8U`oa(3rrq69srUg-rrUg-rrq- `Vp,Crr)osrW)otrr2otrVccsrVccsrr)s!rW)rs"T\Q$!<)ujrr)m"rVurtr;cEfrW)orrr<&u qZ-Zq!W`6!qu@!$!!*#t!<2us!<)os!0I21~> `UjECo^iL_oEt3trq-3trU^'srU^'srq$7!oEtTi"Uano$M4\to_o1"oEkrtr `V'39rUp0r!;63ps7HF!p%A4g!qcg)rq-6srq69soC_h`Jb@RdJ,~> `W#i:rVlfs!<2iqs8E'"rr2fq!r`0"rr)ltrr2otoD\IaJc=4!J,~> `Us-:rUg*s!;--qs7?@"o^r%g!qZg,rq$0trq-3toCVbaJb7LbJ,~> OS/DTJb@OcJ,~> OT,%UJc=0uJ,~> OS&>UJb7IaJ,~> O7iAUJb@LbJ,~> O8f"VJc=-tJ,~> O7`;VJb7F`J,~> NqN;UJb@LbJ,~> NrJqVJc=-tJ,~> NqE5VJb7F`J,~> NqN>VJb@IaJ,~> NrJtWJc=*sJ,~> NqE8WJb7C_J,~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> Jb=Teg\$'~> Jc:6"g\u^~> Jb4Ncg[p!~> %%EndData showpage %%Trailer end %%EOF quesoglc-0.7.2/configure.in0000644000175000017500000001334611150304627012602 00000000000000# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) # Init autoconf. # -------------- AC_INIT([QuesoGLC], [0.7.2], [quesoglc-general@lists.sourceforge.net], [quesoglc]) AC_CONFIG_HEADER([include/qglc_config.h:include/qglc_config.hin]) AC_CONFIG_SRCDIR([src/global.c]) AC_CONFIG_AUX_DIR([build]) # Optional parameters definition. # ------------------------------- AC_ARG_WITH([fribidi], AC_HELP_STRING([--with-fribidi], [use the FriBiDi system library @<:@default=yes@:>@]), [], [with_fribidi=yes] ) AC_ARG_WITH([glew], AC_HELP_STRING([--with-glew], [use the GLEW system library @<:@default=yes@:>@]), [], [with_glew=yes] ) AC_ARG_ENABLE([executables], AC_HELP_STRING([--enable-executables], [build example and test executables @<:@default=yes@:>@]), [], [enable_executables=yes] ) AC_ARG_ENABLE([debug], AC_HELP_STRING([--enable-debug], [compile debug version @<:@default=no@:>@]), [], [enable_debug=no] ) # Init automake. # -------------- AM_INIT_AUTOMAKE([dist-bzip2]) # Checks for programs. # -------------------- AC_PROG_CC AM_PROG_CC_C_O AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_LIBTOOL # Checks for multithreading support. # ---------------------------------- ACX_PTHREAD CC="$PTHREAD_CC" # Checks for TLS support. # ----------------------- AX_CHECK_TLS # Checks for typedefs, structures, and compiler characteristics. # -------------------------------------------------------------- AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(int, 4) AC_CHECK_SIZEOF(long, 4) # Checks for header files. # ------------------------ AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h unistd.h], [], [AC_MSG_ERROR([Unable to locate a required header])]) # Checks for C library features. # ------------------------------ case $target_alias in *mingw32*) ;; *) AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_FUNC_REALLOC ;; esac AC_FUNC_STAT AC_CHECK_FUNCS([atexit memmove memset strdup]) AC_CHECK_LIB([m], [sqrt]) # Checks for font libraries. # -------------------------- AX_CHECK_FREETYPE2 if (test "x$no_ft2" = "xyes"); then AC_MSG_ERROR([Unable to locate the required FreeType library]) fi AC_CHECK_LIB(freetype, FTC_Manager_New, AC_DEFINE([HAVE_FT_CACHE], [1], [Define if FreeType supports the caching routines])) AX_CHECK_FONTCONFIG if (test "x$no_fc" = "xyes"); then AC_MSG_ERROR([Unable to locate the required Fontconfig library]) fi # Checks for Unicode libraries. # ----------------------------- if (test "x$with_fribidi" = "xyes"); then AX_CHECK_FRIBIDI if (test "x$no_fribidi" = "xyes"); then AC_MSG_NOTICE([FriBiDi will be built and embedded]) fi else no_fribidi="yes" fi if (test "x$no_fribidi" = "xyes"); then FRIBIDI_OBJ="libGLC_la-fribidi.lo libGLC_la-fribidi_char_type.lo \ libGLC_la-fribidi_mirroring.lo libGLC_la-fribidi_types.lo" else PKGCONFIG_REQUIREMENTS="fribidi" fi # Checks for OpenGL and related libraries. # ---------------------------------------- AX_CHECK_GL if (test "x$no_gl" = "xyes"); then AC_MSG_ERROR([OpenGL not found]) fi AX_CHECK_GLU if (test "x$no_glu" = "xyes"); then AC_MSG_ERROR([GLU library not found]) fi PKGCONFIG_LIBS_PRIVATE="$PHREAD_LIBS $GLU_LIBS" PKGCONFIG_INCLUDE="$GLU_CFLAGS" # Checks for GLEW library. # ------------------------ if (test "x$with_glew" = "xyes"); then AX_CHECK_GLEW if (test "x$no_glew" = "xyes"); then AC_MSG_NOTICE([GLEW will be built and embedded]) fi else no_glew="yes" fi if (test "x$no_glew" = "xyes"); then GLEW_CFLAGS="-DGLEW_MX" GLEW_OBJ="libGLC_la-glew.lo" else PKGCONFIG_LIBS_PRIVATE="-lGLEW $PKGCONFIG_LIBS_PRIVATE" fi # Special flags for MinGW32 build. # -------------------------------- case $target_alias in *mingw32*) if (test "x$enable_static" = "xyes"); then GLEW_CFLAGS+=" -DGLEW_STATIC" else GLEW_CFLAGS+=" -DGLEW_BUILD" fi ;; esac # Determine whether to build (or not) test and examples executables. # ------------------------------------------------------------------ if (test "x$enable_executables" = "xyes"); then AX_CHECK_GLUT if (test "x$no_glut" = "xyes"); then AC_MSG_WARN([The GLUT library could not be found : example programs and \ some tests will not be built]) EXECUTABLES="tests" else EXECUTABLES="tests examples" case $target_alias in *mingw32*) TESTS_WITH_GLUT="test1 test5 test6 test7 test8 test9.1 test9.2 test9.3 \ test9.4 test9.5 test9.6 test9.7 test9.8 test10 test11.1 \ test11.2 test11.3 test11.4 test11.5 test11.6 test11.7 \ test12 test13 test14 test15 test16 testcontex testfont \ testmaster testrender" ;; *) TESTS_WITH_GLUT="test1 test2 test3 test5 test6 test7 test8 test9.1 \ test9.2 test9.3 test9.4 test9.5 test9.6 test9.7 test9.8 \ test10 test11.1 test11.2 test11.3 test11.4 test11.5 \ test11.6 test11.7 test12 test13 test14 test15 test16 \ testcontex testfont testmaster testrender" ;; esac fi fi # Compile debug version # --------------------- if (test "x$enable_debug" = "xyes"); then CFLAGS+=" -g -DDEBUGMODE" DEBUG_TESTS="test17" fi # Output. # ------- AC_CONFIG_FILES([Makefile build/Makefile include/Makefile tests/Makefile examples/Makefile quesoglc.pc]) AC_SUBST(EXECUTABLES) AC_SUBST(DEBUG_TESTS) AC_SUBST(TESTS_WITH_GLUT) AC_SUBST(FRIBIDI_OBJ) AC_SUBST(GLEW_OBJ) AC_SUBST(GLEW_CFLAGS) AC_SUBST(PKGCONFIG_REQUIREMENTS) AC_SUBST(PKGCONFIG_LIBS_PRIVATE) AC_SUBST(PKGCONFIG_INCLUDE) AC_OUTPUT quesoglc-0.7.2/ChangeLog0000644000175000017500000007513411145574562012061 00000000000000Changes made from the "0.7.1" release to the "0.7.2" release: ----------------------------------------------------------- * Bertrand Coconnier: - Fixed bug #2019450 (added a workaround for open source drivers of the Intel chipsets : a bug in the drivers prevent a character to be displayed). - Fixed a bug which caused some memory leaks when memory allocation failed during the update of the masters. - Updated the demo in the examples: extrusion and ligthing have been added. - Fixed glcGetFontMap() and glcGetMasterMap() so that their return is not null when a character is mapped in the font/master but its Unicode name is not stored in QuesoGLC database. - Character codes out of range are now rejected when GLC_UCS1 or GLC_UCS2 are enabled. GLC_PARAMETER_ERROR is then raised. - Fixed a bug that crashed QuesoGLC when trying to call glcGetFontMap() with a character not mapped in the font. - Fixed a bug which caused the measurement caches not to be updated when GLC_RESOLUTION was changed by the users. - Fixed a memory leak in the management of the texture atlas: when a font was deleted, the memory allocated to this font in the atlas was definitely lost instead of being given back to the texture allocator. - Fixed a bug which did not include trailing spaces in the calculation of bounding boxes. - Fixed a bug which caused artifacts when rendering glyphes that extend beyond the EM square. - Fixed a bug which prevented letters l and i to be displayed at small scales when GLC_HINTING_QSO and GLC_TEXTURE were enabled. - Side effect of the above bug fix : the antialiasing is improved for most characters since they are no longer located against the edges of the texture. - Fixed a bug in glcGenFontID() which could return the ID of an existing font. - Fixed a race condition in glcGenContext() - Function glcGetStringCharMetric() now returns metrics in global string coordinates (otherwise the kerning can not be measured) - Fixed bug #1987563 (Kerning does not work when GLC_GL_OBJECTS is enabled) Thanks to GenPFault for the bug report. - Fixed bug #2012579 (Mac OSX Leopard compiling bug) - Thanks to Michael Strobel and Tim Baumgartner for the bug report and the patch. - Negative values passed to glcResolution() now raise GLC_PARAMETER_ERROR - Fixed bug #1980982 (Checks for MinGW in the configure script are incomplete) - Feature request #1947346 : added files for pkg-config (thanks to Giel van Shijndel and Dennis Schridde for providing them) - Fixed bug #1947464 (Warnings are generated when compiling with gcc option -Wstrict-prototypes) - Fixed bug #1935557 (Fonts are not rendered correctly when the resolution is changed using glcResolution). Changes made from the "0.7.0" release to the "0.7.1" release: ----------------------------------------------------------- * Bertrand Coconnier: - Fixed the bugs #1852883 and #1890660 (VBOs had an erratic behaviour on some Mac OS X platforms and Intel X3100 gfx cards under Linux). - Removed the workaround for bug #1852883 Changes made from the "0.6.5" release to the "0.7.0" release: ----------------------------------------------------------- * Bertrand Coconnier: - Added a workaround for bug #1852883 : VBOs are disabled on Mac OSX platforms - Fixed a bug in the measurement routines which caused the advance vector of strings to be wrongly computed. - Simplified a bit the GL state management (enabling of GL_TEXTURE_2D should now be done by the user when the rendering style is GLC_TEXTURE) - Updated GLEW source code to release 1.5.0 - glcGetFontMap() and glcGetMasterMap() now return GLC_NONE if the font/master does not map 'inCode'. - Updated test7 in order not to report an error when testing fonts which defines a space character with no width. - glcGenFontID() now creates an empty font in order to reserve the ID for a future use. The new ID can be freed by deleting it with glcDeleteFont(). - Measurement datas of glyphes are now cached in order to accelerate the measurement commands when GLC_GL_OBJECTS is enabled. - Fonts which belong to the same family are now grouped in the same master. - Added project files for Microsoft Visual C++ 2005 - Fixed bug #1856336 (glcFontFace reports GLC_RESOURCE_ERROR on Windows when selecting the "Arial Regular" font face). - Removed explicit calls to glGetString(GL_VERSION) and glGetString(GL_EXTENSIONS) in glcContext() since GLEW already takes care of that. - Fixed bug #1843710 (Code to handle missing FTC_Manager_* is broken). - GLC_LINE mode now uses Vertex Buffer Objects (VBO) whenever the gfx card supports them - Added extension GLC_QSO_buffer_object to report the use of VBOs and PBOs through glcGeti(GLC_BUFFER_OBJECT_COUNT_QSO) and its corresponding call to glcGetListi(GLC_BUFFER_OBJECT_LIST_QSO, int). - GLC_TEXTURE mode now uses Vertex Buffer Objects (VBO) whenever the gfx card supports them - Fixed bug #1834256 (part II) : The configure script now guesses the correct flags to use in order to cross-compile QuesoGLC for MinGW32 - Fixed bug #1834256 (part I) : An option has been added to the build scripts in order to disable the build of tests and examples - Fixed bug #1640256 (RTL scripts were wrongly supported and the fix introduced for release 0.6 was actually a partial fix). - Improved tests coverage (all GLC functions are now tested at least once with all its legal attributes) - Spacing characters have now their own caching system when GLC_GL_OBJECTS is enabled. - Code refactoring between glcRenderString() and glcRenderCountedString() in order to maximize common code for easier maintenance. - Display lists are now called earlier in glcRenderChar() in order to minimize useless overhead. Changes made from the "0.6" release to the "0.6.5" release: ----------------------------------------------------------- * Bertrand Coconnier: - Rendering and measuring routines now skip control characters instead of having a random behavior about them. - Fixed bug #1820546 (glcRenderString("") displayed the last rendered string minus its first character) - Fixed bug #1821219 (Blank characters (i.e. spaces) were wrongly transformed into null characters) - Removed the use of FcStrSet and FcStrList objects for the catalog list. Use object __GLCarray instead. - Fixed bug #1814773 (QuesoGLC uses the system library GLEW whenever possible. Otherwise a copy of GLEW is automagically built and embedded with QuesoGLC) - Fixed bug #1812058 (QuesoGLC uses the system library FriBiDi whenever possible. Otherwise a copy of FriBiDi is automagically built and embedded with QuesoGLC) - Fixed bug #1754660 (actually a partial fix. See explanations on bug #1754660 on SourceForge.net) - Renamed some type names (FT_ULong, FcChar8, ...) in order to make them more portable. - Minimized the use of pthread_get_specific()/TlsGetValue() when only one thread is used and when ELF TLS is not available, since calls to those functions are expansive. - Removed the useless QUESOGLC_STATIC_LIBRARY - Modified QuesoGLC threading implementation in order to use ELF TLS when available. This allows to discard the expansive calls to pthread_get_specific. - Removed the useless QUESOGLC_VERSION macro - Removed __glcFaceDescGetCharMap() which were buggy for some fonts. Now uses Fontconfig patterns instead. This fixes a bug which created a new font for each newly rendered glyph. Changes made from the "0.5" release to the "0.6" release: ----------------------------------------------------------- * Bertrand Coconnier: - Fixed bug #1640256 : the advance vector now supports RTL strings - Fixed a bug by disabling kerning when two successive characters of a string are not rendered with the same font. - Modified __glcFaceDescGetFontFormat() to use FT_Get_X11_Font_Format(), whenever available, to detect the font format. - Fixed a bug which caused a character that was not mapped to any font to be rendered wrongly the second time it is displayed when GLC_KERNING_QSO is enabled (bug reported by Brandon Casey). - Added a test in the tests directory that checks if empty strings are correctly handled by the functions of QuesoGLC (no crash, no unexpected errors, no memory leaks). - Modified the texture routines so that QuesoGLC tries several sizes of texture before giving up when rendering in GLC_TEXTURE mode with GLC_GL_OBJECTS disabled. - Fixed global commands so that they can not execute GL commands since we can not make sure that the relevant GL context is bound to the current thread when a global GLC command is executed. - Changed __glcSaveGLState() and __glcRestoreGLState() so that only a minimal part of the GL state is saved before the rendering commands are issued. - Removed redundancy in the calls to glBindTexture() when the GLC_TEXTURE rendering mode is used. - Removed the visibility test based on bounding boxes since it slowed down everything and the user can perform this test himself by using measurement commands. - Modified immediate texture rendering to take advantage of pixel buffer objects (PBO) whenever the gfx card supports them. - Optimized the rendering code so that the conversion from 26.6 fixed point coordinates to GLfloat is partially done by the GPU by using glScalef(). - Cleaned up some internal transactions between private functions in order to prevent back and forth translation between a font ID and its corresponding structure __GLCfont. - Code cleanup : * Fixed the signed/unsigned comparisons * Removed unused function parameters * Renamed the structure __GLC* instead of __glc* for more consistency with Mesa. * Added some comments - Fixed the computing of the bounding box of a glyph when GLC_EXTRUDE_QSO is enabled. - Optimized the de Casteljau algorithm by splitting it into 2 specialized subroutines (one for conic Bezier curves and the other for cubic Bezier curves). - glcDeleteContext() does not destroy GL objects anymore. This is done because we can not be sure that the GL context that is current (if any) is the one that contains the GL objects associated to the GLC context that we are destroying. Documentation is updated accordingly. (Issue pointed out by Brandon Casey). - Removed some calls to __glcGetCurrent() that could cause operations to be performed on the wrong context or to fail when they should succeed (issue pointed out by Brandon Casey). - Removed glPush/PopClientAttrib() and use glIsEnabled() instead since that is much faster. - Vertex arrays are now used to render characters in GLC_TRIANGLE mode. - QuesoGLC now uses GLEW, the OpenGL Extension Wrangler, to manage OpenGL extensions. - Removed the master object, uses FontConfig API instead. This allows to not load all the masters in memory : masters are now loaded "just in time" which reduces the memory footprint of QuesoGLC. Furthermore, when GLC_AUTO_FONT is enabled, QuesoGLC takes into account the user preferences for FontConfig. * Brandon Casey: - Declared unused arguments with compiler attributes in order to fix compiler warnings and allow some optimization. - Rearranged glcGenContext() to avoid unlikely race. - Moved the call to __glcConvertGLintToUcs4() before the GL state is saved in RenderChar(). This saves much GL work if the conversion of the character fails. - Avoided strlen call by using return value of snprintf/sprintf_s in unicode.c - Fixed __glcCtxQueryBuffer() so that it leaves the context unchanged on failure. - Fixed calls to __glcCtxQueryBuffer() so that GLC_RESOURCE_ERROR is not raised twice on failure. - Added header unistd.h to master.c since it is needed by access() - Fixed test4 by supplying a valid directory for AppendCatalog/PrependCatalog - Modified __glcConvertUcs4ToGLint() so that a variable that is only used for debugging is now conditionally compiled - Simplified __glcRaiseError() testing of current error state - Ensured at least one texture level is created by using a do {} while, otherwise when hinting is enabled and Xscale or Yscale are too small, sometimes no new texture is created and we render a portion of the previous image. - Avoided free'ing NULL buffer in texture routines - Fixed scalable rendering when using external display list - Fixed the character measurement buffer which was not reset at each call of glcMeasureString() or glcMeasureCountedString(). So newly measured characters were continually appended to measurement array. - Removed the call to __glcGetScale() in measuring routines since it is not necessary and breaks if hinting is enabled and rendering bitmap. - Fixed kerning adjustment in __glcGetCharMetric(). - Moved point size adjustments into ofacedesc.c functions to mimic __glcFaceDescGetBoundingBox() - Replaced __glcFree() by free() when glc allocation functions didn't allocate the memory. - Fixed glcExtensions string in test6.c - Changed glScalef() call in unicode.c so that z dimension is not zeroed which breaks hinting. - Fixed parameter type of __glcTextureGetImmediate() (GLsizei instead of GLuint). - Replaced floating point multiplication by bits shifting. - Enabled FT_OUTLINE_HIGH_PRECISION when building mipmaps. - Avoided signed/unsigned comparison. - Arranged extension strings in GLC_EXTENSIONS alphabetically (as per Section 2.5 of GLC Specification Version 0.2 - 27 Oct 1996). - Fixed Unicode functions (strlen() does not take into account the trailing '\0' character and a pointer was not dereferenced). - Merged pitch and width rounding calculations. - Fixed kerning measurement and rendering calculations - Modified autoconf files so they build with version 2.57. - Made QuesoGLC compile with Freetype library older than 2.1.8. - Changed __glcFindIndexList() semantics to return address of separator occurrence. - Fixed a test so that the GLC_CATALOG_LIST environment variable is now taken into account. - Prevented advance past end of string during conversion between logical order and visual order so that zero length strings are handled properly. - Removed NULL dereference after FcPatternGetString(). - Fixed texture atlas coordinate calculation. - Improved texture rendering by optimizing the bounding box coordinates calculation. Changes made from the "0.4" release to the "0.5" release: ----------------------------------------------------------- - Fixed the #include so that QuesoGLC can be built with MSVC++ - Added an attribute stack to save and restore the GLC state variables. - Added a matrix stack for GLC_BITMAP_MATRIX. - Added support for kerning. - Added support for the FreeType cache sub-system. - Force thread-safety for included libraries. - Fixed a bug where glcGetMasterc() returned silly values for GLC_FULL_NAME_SGI and GLC_VERSION attributes. - QuesoGLC is now compliant with the Unicode Bidirectional Algorithm (UAX#9) thanks to Fribidi. - Added the ability to extrude the characters. - A texture atlas is now used for GLC_TEXTURE rendering style. - Improved the speed for display list rendering by moving out some stuff that is only needed for immediate mode rendering. - QuesoGLC now tries to re-use as much as possible the texture generated for immediate mode rendering. - The OpenGL version is now checked and the texture rendering behaves accordingly. - Environment variables GLC_LIST_SEPARATOR and GLC_CATALOG_LIST are now read by QuesoGLC. They supersedes GLC_PATH if defined otherwise GLC_PATH is parsed. (suggestion by Brandon Casey). - Blank Unicode characters (that is character which are expected to be blank when drawn) are now managed according to the Unicode standards. - Thomas Zimmermann greatly improved the building scripts. Changes made from the "0.3" release to the "0.4" release: ----------------------------------------------------------- - Modified the GLC_PATH parser code in order to use semicolon-separated lists for Win32 and colon-separated for POSIX platforms. - Added a makefile so that QuesoGLC can be built under Win32 - Removed the pthread dependency for Win32 - Added a new __glcGlyph object that allow to cache the display list, the texture, the bouding box of a glyph. Those objects are managed by __glcFaceDescriptor which allow to keep the glyphes as long as the face exists - Revamped the code in order to better encapsulate FT_Face in __glcFaceDescriptor and FcCharSet in _glcCharMap. - The thread local storage is now released when QuesoGLC is unloaded - Modified the python script that builds the character names database : the number of character names can be given as a command-line parameter. - The master object (defined in omaster.h) now uses __glcCharMap instead of FcCharSet. - Brandon Casey fixed the rendering commands so that the character sequence \<0> is not issued when glcRenderString is called with a zero length string (i.e. a string that only contains the null terminator) - Brandon Casey fixed the measurement commands so that they give correct values for the minimum y coordinate - Brandon Casey changed the GL_TEXTURE_ENV_MODE to GL_MODULATE instead of GL_REPLACE in order to allow the user to change the transparency of the text by setting the alpha component with glColor4*() - Brandon Casey fixed the GLC_BITMAP and GLC_TEXTURE rendering styles so that the complete set of GL_UNPACK parameters are set before the picture is uploaded in order not to depend on the user setting of those parameters - Brandon Casey provided a patch to allow QuesoGLC to compile with FreeType libs older than 2.1.8 (winfonts were not supported before 2.1.8) - Pablo Barbáchano provided a patch to allow QuesoGLC to use FreeType 2.2.x (const-ness added to some parameters of the callbak functions of FT_Outline_Decompose) - Removed the stupid limit that generated GLC_PARAMETER_ERROR whenever some functions were called when the string type was GLC_UTF8_QSO (see below). Indeed a Unicode codepoint can be no higher than 0x10ffff and can thus be stored in a 32 bits integer in UTF-8 format. - Uses GNU extensions of gcc where possible to implement the constructor and the destructor of the library (instead of _init and _fini) - Fixed the crashes due to the removal of the combine callback of the GLU tesselator. The callback is now restored and compatible with the arrays of variable size (__glcArray) - Quesoglc now uses autotools to build - Thomas Zimmermann fixed the string measurement commands that did not return results that were consistent with those returned by glcCharMetric(). - Fixed a bug in glcDeleteFont() where the face was not closed before the font was deleted. - Display lists are now managed at the charmap level instead of being handled by the masters. This allows a better management and optimizes the GPU memory management by deleting display lists and textures as soon as the corresponding glyph is removed. - Charmaps now use binary search instead of linear search - Texture mipmap levels in GLC_TEXTURE style are now built directly by QuesoGLC instead of using GLU. It should provide better rendering quality at small pixel sizes - The z coordinate of bounding boxes is now also used to determine if a Bezier curve lies outside the viewport - Calculations now use GLfloat instead of GLdouble - Removed the useless third coordinate of the vertex array used for GLC_LINE and GLC_TRIANGLE styles - Fixed a bug where the advance of a glyph that is skipped because it lies outside the viewport were not taken into account - Unified the behaviour of the rendering and measuring routines so that the later now take into account the state of GLC_HINTING_QSO. - Removed the file 'constant.h' - Added the enumerant GLC_HINTING_QSO to the glEnable()/glDisable() functions to allow the user to activate hinting when glyphs are rendered at small pixel sizes. By default, hinting is disabled because it creates visual artifacts when the glyphs are animated. - In order to accelerate the rendering of characters, glyphs which bounding box lies outside the viewport are now skipped. - In GLC_TEXTURE mode, no mipmap is built anymore if the glyph is rendered in immediate mode (that is if GLC_GL_OBJECTS is disabled and the user is not building a display list). - Fixed a bug in glcRenderChar() where the texture used in GLC_TEXTURE mode was deleted after the glyph was rendered if GLC_GL_OBJECTS was disabled. This could lead to unexpected results if the user tried to encapsulate the glcRenderChar() call in a glcNewList/glcEndList pair. - In order to accelerate the rendering of glyphs in GLC_LINE and GLC_TRIANGLE modes, outline curves that lie outside the viewport are replaced by a piecewise linear curve that joins the control points. - The criterion that is used by the de Casteljau algorithm is now computed in pixel distance rather than in object space distance whenever no display list is building. This leads to a more optimal number of vertices which depends on the actual size of the glyph on the viewport. - Scaling of glyphs for the GLC_BITMAP style is now detected thus allowing to pass the correct character size to FreeType (instead of the fixed arbitrary size GLC_POINT_SIZE) when the character is rendered. This optimizes the grid- fitting of the glyph and provides slightly enhanced character rendering at small sizes. - Transformation matrices that lead to degenerate cases for the GLC_BITMAP style are now correctly handled. - The 'data' and 'length' members of __glcArray are now accessed through macros (GLC_ARRAY_DATA and GLC_ARRAY_LENGTH) instead of explicit pointer dereferencement thus providing some kind of encapsulation for the __glcArray object. - Arrays that store the vertices and control points during the rendering of GLC_LINE and GLC_TRIANGLE styles are now handled by the context state. Hence they are not created and deleted each time a glyph is rendered thus saving memory allocation/deallocation. - The buffer that stores the measured characters is now an array of variable size (__glcArray) - Fixed a bug in measurement commands where bounding boxes and baselines did not take the GLC_RESOLUTION value into account. - The de Casteljau algorithm now uses the chordal distance of the control points of the spline rather than the chordal distance of the midpoint of the spline to determine if the curve needs to be broken or not, thus leading to a better handling of antisymmetric cubic curves (such as S-shaped curves). This is also a more severe criterion : some spline curves may now be broken into more segment curves than before. - Revamped the implementation of de Casteljau's algorithm : hard-coded limits of arrays have been removed. Data are now handled by arrays of variable size (__glcArray). - Charmaps now use arrays of variable size (__glcArray) Changes made from the "0.2" release to the "0.3" release: ----------------------------------------------------------- - Fixed a bug in glcRenderChar(), glcRenderString() and glcRenderCountedString() that prevented the replacement code or the character sequence '\' to be displayed when QuesoGLC failed to find a font that maps a character code. - A GLC_PARAMETER_ERROR is raised if the string type is GLC_UTF8_QSO and one of the following functions is called : * glcGeti(GLC_REPLACEMENT_CODE) * the callback function defined by glcCallbackFunc() * glcFontMap() * glcGetFontMap() * glcGetMasterMap() * glcGetCharMetric() * glcRenderChar() * glcReplacementCode() - Fixed several issues that prevented QuesoGLC to compile and run on 64 bits platforms - Improved the mechanism that determine the format of font files - Added support for the GLC_SGI_full_name extension - Fixed glcGetMaxCharMetric() where the maximum size of the characters were computed in EM units thus leading to wrong results if the different characters did not have the same EM square size. - General management of header files has been moved to internal.h (most source files now just need to include a unique header file "internal.h") - Modified glcResolution() so that the resolution of every font of the GLC_CURRENT_FONT_LIST is updated whenever glcResolution() is called - The GLC_IS_FIXED_PITCH attribute is now managed per font, not per master - The verification of master parameters has been moved to the specific function __glcVerifyMasterParameters(). This simplified the code - The management of the header file assert.h has been moved to internal.h - Fixed glcIsFont() so that it does not raise GLC_PARAMETER_ERROR when 'inFont' is not the ID of a font - Fixed glcGetFonti() so that it returns the font attributes instead of the parent master attributes - Fixed glcGenFontID() so that it returns sensible results when it is called several times in a row - Fixed glcFontFace() so that the face of every fonts of GLC_CURRENT_FONT_LIST are set to the face identified by 'inFace' if 'inFont' is zero (previously only one face was modified when 'inFont' was zero) - Fixed glcFont() so that the client state is left unchanged if an error occurs - The UTF-8 support is an extension of QuesoGLC, hence the GLC_UTF8 enumerant has been appended with 'QSO' (like 'QueSO GLC extension'). The enumerant has also been modified which broke the ABI compatibility with version 0.2 - Brandon Casey removed the hard-coded limit of the charMap array for fonts - Brandon Casey modified the allocation and the management of the measurementCharBuffer. It is now dynamically allocated instead of statically defined. - Brandon Casey fixed a bug in glclogo.c where GLC_GL_OBJECTS was not disabled hence preventing the display lists to be correctly built. - Brandon Casey modified testrender.c so that a box is drawn around the text rendered in GLC_BITMAP style in order to demonstrate proper rotation. This example is analogous to the test that shows failure of SGI's GLC to properly perform this operation (http://www.opengl.org/resources/features/fontsurvey) - Fixed a bug in glcFontMap() which screwed the charMap array when a character was removed from the font map (bug reported by Brandon Casey) - Textures in the GLC_TEXTURE mode are now stored in GL_ALPHA format in order to nicely superimpose the glyph on the background instead of rendering it over a black box (bug reported by Brandon Casey) - Fixed all GLC functions that uses individual character : if the current string type is GLC_UTF8, the GLint code is now correctly handled - Fixed a bug in the detection of the filename extension of font files - Fixed the master creation when glcGenContext() is called : no void master should be created anymore - Fixed a bug so that display lists created by QuesoGLC are now deleted when glcDeleteGLObjects() is called or when a master is destroyed - Strings returned by glcGetc() are now converted into the relevant Unicode format - Added an "uninstall" target to the makefile - When the shared library is built, the version number is appended to the library name and the corresponding links are created when QuesoGLC is installed. This allows several different versions of QuesoGLC to coexist on most *nix (feature suggested by Pablo Barbáchano). - Pablo Barbáchano fixed the install process of QuesoGLC Changes made from the "0.1" release to the "0.2" release: ----------------------------------------------------------- - Textures in GLC_TEXTURE mode are now of variable size instead of fixed size (previously 64x64).It both optimizes the texture memory and removes the garbage that could appear when rendering some fonts. - Added UTF-8 support - QuesoGLC does not open anymore the font files at font creation. Instead, font files are opened when the fonts are added to GLC_CURRENT_FONT_LIST. It lowers the number of font files that are simultaneously opened. - Every strings are now stored internally in Unicode UTF-8 format. Strings are converted back to the current GLC_STRING_TYPE "on the fly". - Get rid of the string list objects (files ostrlst.[ch]) and the Unicode character object (files ounichar.[ch]). This simplified the code. - Now uses standard predefined macros to detect Mac OSX platforms - QuesoGLC now uses Fontconfig to locate and examine fonts - Fixed invalid preprocessing tokens of test4 that prevented it to be compiled with pedantic-errors enabled. - QuesoGLC now uses Doxygen for its documentation. Changes made from the "Birth" release to the "0.1" release: ----------------------------------------------------------- - Get rid of NDBM : Unicode names are now stored in a const array which is automagically built from buildDB.py - FreeType lists are now used for the string list object, master lists, font lists, current font lists and texture object lists. - A mutex is now used for every access to the database since NDBM is not thread-safe. - Fixed a bug where the content returned by dbm_fetch() was freed. This behaviour was wrong since dbm_fetch() returns static data. - Now uses NDBM (which is much more portable) instead of GDBM - Fixed a bug in glcDeleteContext() where QuesoGLC tried to destroy the GL objects of the current context instead of those of the context to be deleted. - Contexts are now stored in a linked list and their number is not limited to 16 anymore. - Fixed glcGetAllContexts() which returned wrong context IDs and did not zero- terminate the array. - Fixed the error path in __glcInitLibrary where glcCommonArea was freed before its members. - Added many comments to the sources. - Removed the stupid parameter GLC_INTERNAL_ERROR - QuesoGLC now computes automatically the resolution of the screen in DPI using X window commands. - The GLC_RESOLUTION parameter now provides a way for the user to choose the precision of de Casteljau's algorithm. - Fixed a bug that occured when a context was deleted : its entry was not deleted from the 'stateList' array. - QuesoGLC now has the ability to use custom memory manager routines (see __glcFree, __glcMalloc and __glcRealloc) - FreeType2 now uses a custom memory manager based on __glcFree, __glcMalloc and __glcRealloc. This helps debugging and detection of memory leaks. - Variables GLC_MIN_MAPPED_CODE, GLC_MAX_MAPPED_CODE, GLC_CHAR_COUNT and the list GLC_CHAR_LIST are now updated when a new font file is added to a master. - Changed license of QuesoGLC to LGPL - Fixed glcAppendFont() so that it raises GLC_PARAMETER_ERROR if the font is an element of GLC_CURENT_FONT_LIST at the beginning of the command execution. - Fixed glcFont() so that it behaves correctly if the font parameter is zero. - Fixed glcFontFace() so that it leaves the current face unchanged if it fails to set a new face. - Fixed glcFontMap() so that it checks if the character to be mapped is an element of the list GLC_CHAR_LIST. - Fixed glcFontMap() so that if no character name is given then the code 'inCode' is removed from the charmap. - Fixed glcRenderCountedString(), so that it raises GLC_PARAMETER_ERROR if the parameter inCount is less than zero. - Fixed glcReplacementCode() so that it can use a code other than GLC_REPLACEMENT_CODE. - Translated C++ code to pure ANSI C (i.e. get rid of C++) - QuesoGLC can now be built as a shared library. quesoglc-0.7.2/makefile.mgw0000644000175000017500000000606010776130452012563 00000000000000# # Values to be updated if needed... # # The DLL name LIB_NAME=glc32 # The FreeType and Fontconfig libraries SUBLIBRARIES=-lfreetype -lfontconfig # OpenGL libraries (those are quite standard and should not need to be changed) OPENGL_LIBS=-lopengl32 -lglu32 # The PATH to the include directory of MinGW MINGW_INCLUDE=c:\mingw\include # The PATH to the include directory of FreeType FREETYPE_INCLUDE=c:\mingw\include\freetype2 # Some special flags may be needed to compile with GLUT # May be -D_STDCALL_SUPPORTED -D_M_IX86 or nothing at all GLUT_FLAGS=-DGLUT_DISABLE_ATEXIT_HACK # The PATH to the GLUT library (may depend on your implementation of GLUT) # May be c:\[...]\libglut32.lib GLUT_LIBS=c:\mingw\lib\libglut.a ###################################### # # # No value needs to be changed below # # # ###################################### QUESOGLC_VERSION=0.7.1 C_FILES=context.c database.c except.c font.c global.c master.c measure.c misc.c oarray.c ocharmap.c ocontext.c \ ofacedesc.c ofont.c oglyph.c render.c scalable.c transform.c texture.c unicode.c glew.c omaster.c FRIBIDI_FILES=fribidi.c fribidi_char_type.c fribidi_types.c fribidi_mirroring.c TESTS=test1 test4 test5 test6 test7 test8 test10 testcontex testfont testmaster testrender EXAMPLES=glcdemo glclogo tutorial tutorial2 unicode demo C_SOURCE=$(addprefix src/,$(C_FILES)) $(addprefix src/fribidi/,$(FRIBIDI_FILES)) LIB_OBJECTS=$(addprefix build/,$(C_FILES:.c=.o)) $(addprefix build/,$(FRIBIDI_FILES:.c=.o)) TESTS_OBJECTS=$(addprefix tests/,$(addsuffix .exe, $(TESTS))) EXAMPLES_OBJECTS=$(addprefix examples/,$(addsuffix .exe, $(EXAMPLES))) GLUT_FLAGS+=-Iinclude GLUT_LIBS+=$(OPENGL_LIBS) LDFLAGS=-Lbuild LIBRARY=$(LIB_NAME).dll SUBLIBRARIES+=$(OPENGL_LIBS) LIBS=$(LDFLAGS) -l$(LIB_NAME) CC=gcc ifdef DEBUGMODE CFLAGS=-g -Wall -Werror -DDEBUGMODE else CFLAGS=-O2 -fomit-frame-pointer -ffast-math endif CPPFLAGS=-Iinclude -Isrc -I$(MINGW_INCLUDE) -I$(FREETYPE_INCLUDE) .PHONY : all all: $(TESTS_OBJECTS) $(EXAMPLES_OBJECTS) .PHONY : clean clean: del build\*.o del build\*.a del build\$(LIBRARY) del examples\*.exe del tests\*.exe tests/%.exe : tests/%.c build/$(LIBRARY) $(CC) $(CFLAGS) $(GLUT_FLAGS) -DGLEW_MX -DQUESOGLC_VERSION=\"$(QUESOGLC_VERSION)\" $< -o $@ $(LIBS) $(GLUT_LIBS) build/trackball.o : examples/trackball.c $(CC) -c $(CFLAGS) $< -o $@ examples/demo.exe : examples/demo.c build/trackball.o $(CC) $(CFLAGS) $(GLUT_FLAGS) -o $@ $^ $(LIBS) $(GLUT_LIBS) examples/%.exe : examples/%.c build/$(LIBRARY) $(CC) $(CFLAGS) $(GLUT_FLAGS) $< -o $@ $(LIBS) $(GLUT_LIBS) build/%.o : src/fribidi/%.c $(CC) -c $(CFLAGS) $(CPPFLAGS) -Isrc/fribidi $< -o $@ build/%.o : src/%.c $(CC) -c $(CFLAGS) -DGLEW_MX -DGLEW_BUILD $(CPPFLAGS) -DQUESOGLC_VERSION=\"$(QUESOGLC_VERSION)\" $< -o $@ build/$(LIBRARY): $(LIB_OBJECTS) $(CC) -shared -o build/$(LIBRARY) -Wl,--output-def,build/$(LIB_NAME).def,--out-implib,build/lib$(LIB_NAME).a $(LIB_OBJECTS) $(SUBLIBRARIES) quesoglc-0.7.2/build/0000777000175000017500000000000011164476311011452 500000000000000quesoglc-0.7.2/build/config.sub0000755000175000017500000010115311164475765013366 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-01-16' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: quesoglc-0.7.2/build/depcomp0000755000175000017500000004224610764574610012761 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2006-10-15.18 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software # Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: quesoglc-0.7.2/build/ltmain.sh0000755000175000017500000067001511164475760013231 00000000000000# Generated from ltmain.m4sh. # ltmain.sh (GNU libtool) 2.2.4 # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print informational messages (default) # --version print version information # -h, --help print short or long help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.2.4 Debian-2.2.4-0ubuntu4 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . PROGRAM=ltmain.sh PACKAGE=libtool VERSION="2.2.4 Debian-2.2.4-0ubuntu4" TIMESTAMP="" package_revision=1.2976 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # NLS nuisances: We save the old values to restore during execute mode. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done $lt_unset CDPATH : ${CP="cp -f"} : ${ECHO="echo"} : ${EGREP="/bin/grep -E"} : ${FGREP="/bin/grep -F"} : ${GREP="/bin/grep"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SED="/bin/sed"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # Generated shell functions inserted here. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: # In the unlikely event $progname began with a '-', it would play havoc with # func_echo (imagine progname=-n), so we prepend ./ in that case: func_dirname_and_basename "$progpath" progname=$func_basename_result case $progname in -*) progname=./$progname ;; esac # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=: for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname${mode+: }$mode: $*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` done my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "X$my_tmpdir" | $Xsed } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "X$1" | $Xsed \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_version # Echo version message to standard output and exit. func_version () { $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $SED -n '/^# Usage:/,/# -h/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" $ECHO $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help # Echo long help message to standard output and exit. func_help () { $SED -n '/^# Usage:/,/# Report bugs to/ { s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ p }' < "$progpath" exit $? } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { func_error "missing argument for $1" exit_cmd=exit } exit_cmd=: # Check that we have a working $ECHO. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then # Yippee, $ECHO works! : else # Restart under the correct shell, and then maybe $ECHO will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # Parse options once, thoroughly. This comes as soon as possible in # the script to make things like `libtool --version' happen quickly. { # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Parse non-mode specific arguments: while test "$#" -gt 0; do opt="$1" shift case $opt in --config) func_config ;; --debug) preserve_args="$preserve_args $opt" func_echo "enabling shell trace mode" opt_debug='set -x' $opt_debug ;; -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break execute_dlfiles="$execute_dlfiles $1" shift ;; --dry-run | -n) opt_dry_run=: ;; --features) func_features ;; --finish) mode="finish" ;; --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break case $1 in # Valid mode arguments: clean) ;; compile) ;; execute) ;; finish) ;; install) ;; link) ;; relink) ;; uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac mode="$1" shift ;; --preserve-dup-deps) opt_duplicate_deps=: ;; --quiet|--silent) preserve_args="$preserve_args $opt" opt_silent=: ;; --verbose| -v) preserve_args="$preserve_args $opt" opt_silent=false ;; --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break preserve_args="$preserve_args $opt $1" func_enable_tag "$1" # tagname is set here shift ;; # Separate optargs to long options: -dlopen=*|--mode=*|--tag=*) func_opt_split "$opt" set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} shift ;; -\?|-h) func_usage ;; --help) opt_help=: ;; --version) func_version ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) nonopt="$opt" break ;; esac done case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_duplicate_deps ;; esac # Having warned about all mis-specified options, bail out if # anything was wrong. $exit_cmd $EXIT_FAILURE } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } ## ----------- ## ## Main. ## ## ----------- ## $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi test -z "$mode" && func_fatal_error "error: you must specify a MODE." # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$mode' for more information." } # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_ltwrapper_scriptname_result="" if func_ltwrapper_executable_p "$1"; then func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" fi } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case "$@ " in " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T <?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi removelist="$removelist $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist removelist="$removelist $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir command="$command -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then command="$command -o $obj" fi # Suppress compiler output if we already did a PIC compilation. command="$command$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$mode'" ;; esac $ECHO $ECHO "Try \`$progname --help' for more information about other modes." exit $? } # Now that we've collected a possible --mode arg, show help if necessary $opt_help && func_mode_help # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $execute_dlfiles; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_quote_for_eval "$file" args="$args $func_quote_for_eval_result" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" $ECHO "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS $ECHO "X----------------------------------------------------------------------" | $Xsed $ECHO "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done $ECHO $ECHO "If you ever happen to want to link against installed libraries" $ECHO "in a given directory, LIBDIR, you must either use libtool, and" $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" $ECHO "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" $ECHO " during execution" fi if test -n "$runpath_var"; then $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" $ECHO " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $ECHO $ECHO "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" $ECHO "pages." ;; *) $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac $ECHO "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS } test "$mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $ECHO "X$nonopt" | $GREP shtool >/dev/null; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" install_prog="$install_prog$func_quote_for_eval_result" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" install_prog="$install_prog $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for progfile in $progfiles; do func_verbose "extracting global C symbols from \`$progfile'" $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin | *mingw* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" } done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" fi $ECHO >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; " case $host in *cygwin* | *mingw* ) $ECHO >> "$output_objdir/$my_dlsyms" "\ /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */" lt_dlsym_const= ;; *osf5*) echo >> "$output_objdir/$my_dlsyms" "\ /* This system does not cope well with relocations in const data */" lt_dlsym_const= ;; *) lt_dlsym_const=const ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ extern $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) symtab_cflags="$symtab_cflags $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper arg # # emit a libtool wrapper script on stdout # don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variable # set therein. # # arg is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the '.lib' directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=no if test -n "$1" ; then func_emit_wrapper_arg1=$1 fi $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then ECHO=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then # Yippee, \$ECHO works! : else # Restart under the correct shell, and then maybe \$ECHO will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $ECHO "\ # Find the directory that this script lives in. thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $ECHO "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # end: func_emit_wrapper # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include # define setmode _setmode #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif #ifdef _MSC_VER # define S_IXUSR _S_IEXEC # define stat _stat # ifndef _INTPTR_T_DEFINED # define intptr_t int # endif #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifdef __CYGWIN__ # define FOPEN_WB "wb" #endif #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #undef LTWRAPPER_DEBUGPRINTF #if defined DEBUGWRAPPER # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args static void ltwrapper_debugprintf (const char *fmt, ...) { va_list args; va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } #else # define LTWRAPPER_DEBUGPRINTF(args) #endif const char *program_name = NULL; void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_fatal (const char *message, ...); static const char *script_text = EOF func_emit_wrapper yes | $SED -e 's/\([\\"]\)/\\\1/g' \ -e 's/^/ "/' -e 's/$/\\n"/' echo ";" cat </dev/null || echo $SHELL` case $lt_newargv0 in *.exe | *.EXE) ;; *) lt_newargv0=$lt_newargv0.exe ;; esac ;; * ) lt_newargv0=$SHELL ;; esac fi cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", tmp_pathspec)); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { char *errstr = strerror (errno); lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal ("Could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF } # end: func_emit_cwrapperexe_src # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) deplibs="$deplibs $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) weak_libs="$weak_libs $arg" prev= continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname '-L' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" linker_flags="$linker_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" compiler_flags="$compiler_flags $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_duplicate_deps ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= case $lib in *.la) func_source "$lib" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` case " $weak_libs " in *" $deplib_base "*) ;; *) deplibs="$deplibs $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" dir=$func_stripname_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $ECHO $ECHO "*** Warning: Trying to link with static lib archive $deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because the file extensions .$libext of this argument makes me believe" $ECHO "*** that it is just a static archive that I should not use here." else $ECHO $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) temp_rpath="$temp_rpath$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw*) # No point in relinking DLLs because paths are not encoded notinst_deplibs="$notinst_deplibs $lib" need_relink=no ;; *) if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then $ECHO if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $ECHO $ECHO "*** And there doesn't seem to be a static archive available" $ECHO "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $ECHO $ECHO "*** Warning: This system can not link to static lib archive $lib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $ECHO "*** But as you try to build a module library, libtool will still create " $ECHO "*** a static module, that should work as long as the dlopening application" $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) func_dirname "$deplib" "" "." dir="$func_dirname_result" # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else $ECHO $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type \`$version_type'" ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" libobjs="$libobjs $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` done fi if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | $GREP . >/dev/null; then $ECHO if test "X$deplibs_check_method" = "Xnone"; then $ECHO "*** Warning: inter-library dependencies are not supported in this platform." else $ECHO "*** Warning: inter-library dependencies are not known to be supported." fi $ECHO "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $ECHO $ECHO "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" $ECHO "*** a static module, that should work as long as the dlopening" $ECHO "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $ECHO "*** The inter-library dependencies that have been dropped here will be" $ECHO "*** automatically added whenever a program is linked with this library" $ECHO "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $ECHO $ECHO "*** Since this library must not contain undefined symbols," $ECHO "*** because either the platform does not support them or" $ECHO "*** it was explicitly requested with -no-undefined," $ECHO "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" delfiles="$delfiles $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" func_len " $cmd" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then func_show_eval "$cmd" 'exit $?' skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$ECHO "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" $ECHO 'INPUT (' > $output for obj in $save_libobjs do $ECHO "$obj" >> $output done $ECHO ')' >> $output delfiles="$delfiles $output" elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do $ECHO "$obj" >> $output done delfiles="$delfiles $output" output=$firstobj\"$file_list_spec$output\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=$obj func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi delfiles="$delfiles $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $ECHO for shipping. if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then oldobjs="$oldobjs $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles oldobjs="$oldobjs $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else $ECHO "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlfiles="$newdlfiles $libdir/$name" ;; *) newdlfiles="$newdlfiles $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlprefiles="$newdlprefiles $libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$mode" = link || test "$mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) RM="$RM $arg"; rmforce=yes ;; -*) RM="$RM $arg" ;; *) files="$files $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= origobjdir="$objdir" for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then objdir="$origobjdir" else objdir="$dir/$origobjdir" fi func_basename "$file" name="$func_basename_result" test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result rmfiles="$rmfiles $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$mode" = uninstall || test "$mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 quesoglc-0.7.2/build/Makefile.am0000644000175000017500000000615511134654430013426 00000000000000lib_LTLIBRARIES = libGLC.la libGLC_la_SOURCES = $(top_builddir)/src/context.c \ $(top_builddir)/src/database.c \ $(top_builddir)/src/except.c \ $(top_builddir)/src/except.h \ $(top_builddir)/src/font.c \ $(top_builddir)/src/global.c \ $(top_builddir)/src/master.c \ $(top_builddir)/src/measure.c \ $(top_builddir)/src/misc.c \ $(top_builddir)/src/oarray.c \ $(top_builddir)/src/oarray.h \ $(top_builddir)/src/ocharmap.c \ $(top_builddir)/src/ocharmap.h \ $(top_builddir)/src/ocontext.c \ $(top_builddir)/src/ocontext.h \ $(top_builddir)/src/ofacedesc.c \ $(top_builddir)/src/ofacedesc.h \ $(top_builddir)/src/ofont.c \ $(top_builddir)/src/ofont.h \ $(top_builddir)/src/omaster.c \ $(top_builddir)/src/omaster.h \ $(top_builddir)/src/render.c \ $(top_builddir)/src/scalable.c \ $(top_builddir)/src/transform.c \ $(top_builddir)/src/oglyph.h \ $(top_builddir)/src/oglyph.c \ $(top_builddir)/src/texture.h \ $(top_builddir)/src/texture.c \ $(top_builddir)/src/unicode.c EXTRA_libGLC_la_SOURCES = $(top_builddir)/src/fribidi/fribidi.h \ $(top_builddir)/src/fribidi/fribidi.c \ $(top_builddir)/src/fribidi/fribidi_char_type.c \ $(top_builddir)/src/fribidi/fribidi_mirroring.c \ $(top_builddir)/src/fribidi/fribidi_types.c \ $(top_builddir)/src/fribidi/fribidi_types.h \ $(top_builddir)/src/fribidi/fribidi_types.i \ $(top_builddir)/src/fribidi/fribidi_unicode.h \ $(top_builddir)/src/fribidi/fribidi_tab_mirroring.i \ $(top_builddir)/src/fribidi/fribidi_tab_char_type_9.i \ $(top_builddir)/src/glew.c libGLC_la_CFLAGS = -I$(top_builddir)/src \ -D_REENTRANT \ @GLEW_CFLAGS@ \ @PTHREAD_CFLAGS@ \ @FONTCONFIG_CFLAGS@ \ @FREETYPE2_CFLAGS@ \ @GL_CFLAGS@ \ @GLU_CFLAGS@ \ @FRIBIDI_CFLAGS@ libGLC_la_LIBADD = @GLU_LIBS@ \ @FONTCONFIG_LIBS@ \ @FREETYPE2_LIBS@ \ @PTHREAD_LIBS@ \ @FRIBIDI_LIBS@ \ @FRIBIDI_OBJ@ \ @GLEW_OBJ@ libGLC_la_DEPENDENCIES = @FRIBIDI_OBJ@ @GLEW_OBJ@ libGLC_la_LDFLAGS = -version-info 0:7:0 $(top_builddir)/src/database.c: $(top_builddir)/database/buildDB.py cd $(top_builddir)/database && python buildDB.py && cd $(top_builddir)/src clean-generic: rm -f *.gcno *.gcda *.gcov quesoglc-0.7.2/build/m4/0000777000175000017500000000000011164476310011771 500000000000000quesoglc-0.7.2/build/m4/ax_check_tls.m40000644000175000017500000000462610764574551014621 00000000000000dnl Check whether the target supports TLS. AC_DEFUN([AX_CHECK_TLS], [ AC_REQUIRE([ACX_PTHREAD])dnl AC_LANG_PUSH(C) AC_ARG_ENABLE(tls, [AC_HELP_STRING([--enable-tls], [use thread-local storage [default=yes]])], [] , [enable_tls=yes]) if test $enable_tls = yes; then AC_CACHE_CHECK([whether the target supports thread-local storage], have_tls, [ AC_RUN_IFELSE([__thread int a; int b; int main() { return a = b; }], [dnl If the test case passed with dynamic linking, try again with dnl static linking, but only if static linking is supported (not dnl on Solaris 10). This fails with some older Red Hat releases. chktls_save_LDFLAGS="$LDFLAGS" LDFLAGS="-static $LDFLAGS" AC_LINK_IFELSE([int main() { return 0; }], AC_RUN_IFELSE([__thread int a; int b; int main() { return a = b; }], [have_tls=yes], [have_tls=no],[]), [have_tls=yes]) LDFLAGS="$chktls_save_LDFLAGS" if test $have_tls = yes; then dnl So far, the binutils and the compiler support TLS. dnl Also check whether the libc supports TLS, i.e. whether a variable dnl with __thread linkage has a different address in different threads. dnl First, find the thread_CFLAGS necessary for linking a program that dnl calls pthread_create. chk_tls_save_CFLAGS="$CFLAGS" CFLAGS="${PTHREAD_LIBS} ${PTHREAD_CFLAGS} $CFLAGS" AC_RUN_IFELSE( [AC_LANG_PROGRAM( [#include __thread int a; static int *a_in_other_thread; static void * thread_func (void *arg) { a_in_other_thread = &a; return (void *)0; }], [pthread_t thread; void *thread_retval; int *a_in_main_thread; if (pthread_create (&thread, (pthread_attr_t *)0, thread_func, (void *)0)) return 0; a_in_main_thread = &a; if (pthread_join (thread, &thread_retval)) return 0; return (a_in_other_thread == a_in_main_thread);])], [have_tls=yes], [have_tls=no], []) CFLAGS="$chk_tls_save_CFLAGS" fi], [have_tls=no], [dnl This is the cross-compiling case. Assume libc supports TLS if the dnl binutils and the compiler do. AC_LINK_IFELSE([__thread int a; int b; int main() { return a = b; }], [have_tls=yes], [have_tls=no]) ] )]) if test $have_tls = yes; then AC_DEFINE(HAVE_TLS, 1, [Define to 1 if the target supports thread-local storage.]) fi fi ]) quesoglc-0.7.2/build/m4/ltversion.m40000644000175000017500000000127511164475761014212 00000000000000# ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # Generated from ltversion.in. # serial 2976 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.2.4]) m4_define([LT_PACKAGE_REVISION], [1.2976]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.2.4' macro_revision='1.2976' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) quesoglc-0.7.2/build/m4/ltoptions.m40000644000175000017500000002722711164475761014225 00000000000000# Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [0], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) quesoglc-0.7.2/build/m4/ax_check_glut.m40000644000175000017500000000417010764574551014764 00000000000000dnl @synopsis AX_CHECK_GLUT dnl dnl Check for GLUT. If GLUT is found, the required compiler and linker dnl flags are included in the output variables "GLUT_CFLAGS" and dnl "GLUT_LIBS", respectively. This macro adds the configure option dnl "--with-apple-opengl-framework", which users can use to indicate dnl that Apple's OpenGL framework should be used on Mac OS X. If dnl Apple's OpenGL framework is used, the symbol dnl "HAVE_APPLE_OPENGL_FRAMEWORK" is defined. If GLUT is not found, dnl "no_glut" is set to "yes". dnl dnl @category InstalledPackages dnl @author Braden McDaniel dnl @version 2004-11-15 dnl @license AllPermissive AC_DEFUN([AX_CHECK_GLUT], [AC_REQUIRE([AX_CHECK_GLU])dnl AC_REQUIRE([AC_PATH_XTRA])dnl if test "X$with_apple_opengl_framework" = "Xyes"; then GLUT_CFLAGS="${GLU_CFLAGS}" GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}" else GLUT_CFLAGS=${GLU_CFLAGS} GLUT_LIBS=${GLU_LIBS} # # If X is present, assume GLUT depends on it. # if test "X${no_x}" != "Xyes"; then GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" fi AC_LANG_PUSH(C) ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" AC_CACHE_CHECK([for GLUT library], [ax_cv_check_glut_libglut], [ax_cv_check_glut_libglut="no" ax_save_LIBS="${LIBS}" LIBS="" ax_check_libs="-lglut32 -lglut" for ax_lib in ${ax_check_libs}; do if test X$ax_compiler_ms = Xyes; then ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` else ax_try_lib="${ax_lib}" fi LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" AC_LINK_IFELSE( [AC_LANG_PROGRAM([[ # if HAVE_WINDOWS_H && defined(_WIN32) # include # endif # include ]], [[glutMainLoop()]])], [ax_cv_check_glut_libglut="${ax_try_lib}"; break]) done LIBS=${ax_save_LIBS} ]) CPPFLAGS="${ax_save_CPPFLAGS}" AC_LANG_POP(C) if test "X${ax_cv_check_glut_libglut}" = "Xno"; then no_glut="yes" GLUT_CFLAGS="" GLUT_LIBS="" else GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" fi fi AC_SUBST([GLUT_CFLAGS]) AC_SUBST([GLUT_LIBS]) ])dnl quesoglc-0.7.2/build/m4/ax_check_glew.m40000644000175000017500000000074610764574551014754 00000000000000AC_DEFUN([AX_CHECK_GLEW], [ AC_CHECK_HEADER([GL/glew.h]) AC_CHECK_LIB(GLEW, glewContextInit, , no_glew="yes") if test -z "$no_glew"; then AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include #if !defined(GL_SGIS_texture_lod) || !defined(GL_ARB_vertex_buffer_object) || !defined(GL_ARB_pixel_buffer_object) # error #endif ]], [[glewContextInit()]])], [LIBS="-lGLEW $LIBS"]) fi ]) quesoglc-0.7.2/build/m4/ax_check_fribidi.m40000644000175000017500000000035010764574552015416 00000000000000AC_DEFUN([AX_CHECK_FRIBIDI], [ PKG_CHECK_MODULES([FRIBIDI], [fribidi >= 0.10.4], ,[ AC_CHECK_LIB(fribidi, fribidi_log2vis, [LIBS="-lfribidi $LIBS"], no_fribidi="yes" ) ]) ]) quesoglc-0.7.2/build/m4/ax_check_fontconfig.m40000644000175000017500000000044310764574551016144 00000000000000AC_DEFUN([AX_CHECK_FONTCONFIG], [ PKG_CHECK_MODULES([FONTCONFIG], [fontconfig >= 2.2] , ,[ AC_CHECK_HEADER(fontconfig/fontconfig.h, AC_CHECK_LIB(fontconfig, FcInit, [LIBS="-lfontconfig $LIBS"], no_fc="yes" ) ) ]) ]) quesoglc-0.7.2/build/m4/pkg.m40000644000175000017500000001214510764574551012746 00000000000000# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES quesoglc-0.7.2/build/m4/acx_pthread.m40000644000175000017500000002265210764574551014453 00000000000000dnl @synopsis ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) dnl dnl This macro figures out how to build C programs using POSIX dnl threads. It sets the PTHREAD_LIBS output variable to the threads dnl library and linker flags, and the PTHREAD_CFLAGS output variable dnl to any special C compiler flags that are needed. (The user can also dnl force certain compiler flags/libs to be tested by setting these dnl environment variables.) dnl dnl Also sets PTHREAD_CC to any special C compiler that is needed for dnl multi-threaded programs (defaults to the value of CC otherwise). dnl (This is necessary on AIX to use the special cc_r compiler alias.) dnl dnl NOTE: You are assumed to not only compile your program with these dnl flags, but also link it with them as well. e.g. you should link dnl with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS dnl dnl If you are only building threads programs, you may wish to dnl use these variables in your default LIBS, CFLAGS, and CC: dnl dnl LIBS="$PTHREAD_LIBS $LIBS" dnl CFLAGS="$CFLAGS $PTHREAD_CFLAGS" dnl CC="$PTHREAD_CC" dnl dnl In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute dnl constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE dnl to that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX). dnl dnl ACTION-IF-FOUND is a list of shell commands to run if a threads dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands dnl to run it if it is not found. If ACTION-IF-FOUND is not specified, dnl the default action will define HAVE_PTHREAD. dnl dnl Please let the authors know if this macro fails on any platform, dnl or if you have any other suggestions or comments. This macro was dnl based on work by SGJ on autoconf scripts for FFTW (www.fftw.org) dnl (with help from M. Frigo), as well as ac_pthread and hb_pthread dnl macros posted by AFC to the autoconf macro repository. We are also dnl grateful for the helpful feedback of numerous users. dnl dnl @version $Id: acx_pthread.m4 474 2006-09-09 19:50:13Z bcoconni $ dnl @author Steven G. Johnson and Alejandro Forero Cuervo AC_DEFUN([ACX_PTHREAD], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_LANG_SAVE AC_LANG_C acx_pthread_ok=no # We used to check for pthread.h first, but this fails if pthread.h # requires special compiler flags (e.g. on True64 or Sequent). # It gets checked for in the link test anyway. # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using # them: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes) AC_MSG_RESULT($acx_pthread_ok) if test x"$acx_pthread_ok" = xno; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems # (e.g. DEC) have both -lpthread and -lpthreads, where one of the # libraries is broken (non-POSIX). # Create a list of thread flags to try. Items starting with a "-" are # C compiler flags, and other items are library names, except for "none" # which indicates that we try without any flags at all, and "pthread-config" # which is a program returning the flags for the Pth emulation library. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # pthreads: AIX (must check this before -lpthread) # none: in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) # -pthreads: Solaris/gcc # -mthreads: Mingw32/gcc, Lynx/gcc # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads too; # also defines -D_REENTRANT) # pthread: Linux, etcetera # --thread-safe: KAI C++ # pthread-config: use pthread-config program (for GNU Pth library) case "${host_cpu}-${host_os}" in *solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (We need to link with -pthread or # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather # a function called by this macro, so we could check for that, but # who knows whether they'll stub that too in a future libc.) So, # we'll just look for -pthreads and -lpthread first: acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" ;; esac if test x"$acx_pthread_ok" = xno; then for flag in $acx_pthread_flags; do case $flag in none) AC_MSG_CHECKING([whether pthreads work without any flags]) ;; -*) AC_MSG_CHECKING([whether pthreads work with $flag]) PTHREAD_CFLAGS="$flag" ;; pthread-config) AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no) if test x"$acx_pthread_config" = xno; then continue; fi PTHREAD_CFLAGS="`pthread-config --cflags`" PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" ;; *) AC_MSG_CHECKING([for the pthreads library -l$flag]) PTHREAD_LIBS="-l$flag" ;; esac save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Check for various functions. We must include pthread.h, # since some functions may be macros. (On the Sequent, we # need a special flag -Kthread to make this header compile.) # We check for pthread_join because it is in -lpthread on IRIX # while pthread_create is in libc. We check for pthread_attr_init # due to DEC craziness with -lpthreads. We check for # pthread_cleanup_push because it is one of the few pthread # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. AC_TRY_LINK([#include ], [pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], [acx_pthread_ok=yes]) LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" AC_MSG_RESULT($acx_pthread_ok) if test "x$acx_pthread_ok" = xyes; then break; fi PTHREAD_LIBS="" PTHREAD_CFLAGS="" done fi # Various other checks: if test "x$acx_pthread_ok" = xyes; then save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Detect AIX lossage: threads are created detached by default # and the JOINABLE attribute has a nonstandard name (UNDETACHED). AC_MSG_CHECKING([for joinable pthread attribute]) AC_TRY_LINK([#include ], [int attr=PTHREAD_CREATE_JOINABLE;], ok=PTHREAD_CREATE_JOINABLE, ok=unknown) if test x"$ok" = xunknown; then AC_TRY_LINK([#include ], [int attr=PTHREAD_CREATE_UNDETACHED;], ok=PTHREAD_CREATE_UNDETACHED, ok=unknown) fi if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then AC_DEFINE(PTHREAD_CREATE_JOINABLE, "${ok}", [Define to the necessary symbol if this constant uses a non-standard name on your system.]) fi AC_MSG_RESULT(${ok}) if test x"$ok" = xunknown; then AC_MSG_WARN([we do not know how to create joinable pthreads]) fi AC_MSG_CHECKING([if more special flags are required for pthreads]) flag=no case "${host_cpu}-${host_os}" in *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; esac AC_MSG_RESULT(${flag}) if test "x$flag" != xno; then PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" # More AIX lossage: must compile with cc_r AC_CHECK_PROG(PTHREAD_CC, cc_r, cc_r, ${CC}) else PTHREAD_CC="$CC" fi AC_SUBST(PTHREAD_LIBS) AC_SUBST(PTHREAD_CFLAGS) AC_SUBST(PTHREAD_CC) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_pthread_ok" = xyes; then ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1]) : else acx_pthread_ok=no $2 fi AC_LANG_RESTORE ])dnl ACX_PTHREAD quesoglc-0.7.2/build/m4/ax_lang_compiler_ms.m40000644000175000017500000000133610764574551016167 00000000000000dnl @synopsis AX_LANG_COMPILER_MS dnl dnl Check whether the compiler for the current language is Microsoft. dnl dnl This macro is modeled after _AC_LANG_COMPILER_GNU in the GNU dnl Autoconf implementation. dnl dnl @category InstalledPackages dnl @author Braden McDaniel dnl @version 2004-11-15 dnl @license AllPermissive AC_DEFUN([AX_LANG_COMPILER_MS], [AC_CACHE_CHECK([whether we are using the Microsoft _AC_LANG compiler], [ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef _MSC_VER choke me #endif ]])], [ax_compiler_ms=yes], [ax_compiler_ms=no]) ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms=$ax_compiler_ms ])]) quesoglc-0.7.2/build/m4/ax_check_glu.m40000644000175000017500000000434310764574552014603 00000000000000dnl @synopsis AX_CHECK_GLU dnl dnl Check for GLU. If GLU is found, the required preprocessor and dnl linker flags are included in the output variables "GLU_CFLAGS" and dnl "GLU_LIBS", respectively. This macro adds the configure option dnl "--with-apple-opengl-framework", which users can use to indicate dnl that Apple's OpenGL framework should be used on Mac OS X. If dnl Apple's OpenGL framework is used, the symbol dnl "HAVE_APPLE_OPENGL_FRAMEWORK" is defined. If no GLU implementation dnl is found, "no_glu" is set to "yes". dnl dnl @category InstalledPackages dnl @author Braden McDaniel dnl @version 2004-11-15 dnl @license AllPermissive AC_DEFUN([AX_CHECK_GLU], [AC_REQUIRE([AX_CHECK_GL])dnl AC_REQUIRE([AC_PROG_CXX])dnl GLU_CFLAGS="${GL_CFLAGS}" if test "X${with_apple_opengl_framework}" != "Xyes"; then AC_CACHE_CHECK([for OpenGL Utility library], [ax_cv_check_glu_libglu], [ax_cv_check_glu_libglu="no" ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" ax_save_LIBS="${LIBS}" LIBS="" ax_check_libs="-lglu32 -lGLU" for ax_lib in ${ax_check_libs}; do if test X$ax_compiler_ms = Xyes; then ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` else ax_try_lib="${ax_lib}" fi LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" # # libGLU typically links with libstdc++ on POSIX platforms. However, # setting the language to C++ means that test program source is named # "conftest.cc"; and Microsoft cl doesn't know what to do with such a # file. # AC_LANG_PUSH([C++]) if test X$ax_compiler_ms = Xyes; then AC_LANG_PUSH([C]) fi AC_LINK_IFELSE( [AC_LANG_PROGRAM([[ # if HAVE_WINDOWS_H && defined(_WIN32) # include # endif # include ]], [[gluBeginCurve(0)]])], [ax_cv_check_glu_libglu="${ax_try_lib}"; break]) if test X$ax_compiler_ms = Xyes; then AC_LANG_POP([C]) fi AC_LANG_POP([C++]) done LIBS=${ax_save_LIBS} CPPFLAGS=${ax_save_CPPFLAGS}]) if test "X${ax_cv_check_glu_libglu}" = "Xno"; then no_glu="yes" GLU_CFLAGS="" GLU_LIBS="" else GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" fi fi AC_SUBST([GLU_CFLAGS]) AC_SUBST([GLU_LIBS]) ]) quesoglc-0.7.2/build/m4/lt~obsolete.m40000644000175000017500000001311311164475761014531 00000000000000# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 4 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) quesoglc-0.7.2/build/m4/libtool.m40000644000175000017500000077026711164475760013646 00000000000000# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 56 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl _LT_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN ## ------------------------------------- ## ## Accumulate code for creating libtool. ## ## ------------------------------------- ## # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) ## ------------------------ ## ## FIXME: Eliminate VARNAME ## ## ------------------------ ## # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_quote(m4_if([$2], [], m4_quote(lt_decl_tag_varnames), m4_quote(m4_shift($@)))), m4_split(m4_normalize(m4_quote(_LT_TAGS))))]) m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "X$" | $Xsed -e "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\[$]0 --fallback-echo"')dnl " lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` ;; esac _LT_OUTPUT_LIBTOOL_INIT ]) # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) cat >"$CONFIG_LT" <<_LTEOF #! $SHELL # Generated by $as_me. # Run this file to recreate a libtool stub with the current configuration. lt_cl_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2008 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. if test "$no_create" != yes; then lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) fi ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_XSI_SHELLFNS sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES # -------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(whole_archive_flag_spec, $1)='' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" if test "$GCC" = "yes"; then output_verbose_link_cmd=echo _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX # ----------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. m4_defun([_LT_PROG_ECHO_BACKSLASH], [_LT_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac ECHO=${lt_ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then # Yippee, $ECHO works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF [$]* _LT_EOF exit 0 fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(lt_ECHO) ]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that does not interpret backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [AC_CHECK_TOOL(AR, ar, false) test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1]) AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line __oline__ "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[[3-9]]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method == "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ const struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc* | ecpc* ) # Intel C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC*) # IBM XL 8.0 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl*) # IBM XL C 8.0/Fortran 10.1 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' ;; linux* | k*bsd*-gnu) _LT_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag= tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi _LT_TAGVAR(link_all_deplibs, $1)=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE(int foo(void) {}, _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ) LDFLAGS="$save_LDFLAGS" else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then _LT_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], [[If ld is used when linking, flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [fix_srcfile_path], [1], [Fix the shell variable $srcfile for the compiler]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_PROG_CXX # ------------ # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ # compiler, we have our own version here. m4_defun([_LT_PROG_CXX], [ pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) AC_PROG_CXX if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_CXX dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_CXX], []) # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [AC_REQUIRE([_LT_PROG_CXX])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 will use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; xl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=echo else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ]) dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_PROG_F77 # ------------ # Since AC_PROG_F77 is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_F77], [ pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) AC_PROG_F77 if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_F77 dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_F77], []) # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_REQUIRE([_LT_PROG_F77])dnl AC_LANG_PUSH(Fortran 77) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${F77-"f77"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_PROG_FC # ----------- # Since AC_PROG_FC is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_FC], [ pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) AC_PROG_FC if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_FC dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_FC], []) # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_REQUIRE([_LT_PROG_FC])dnl AC_LANG_PUSH(Fortran) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${FC-"f95"} compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC="$lt_save_CC" ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC= CC=${RC-"windres"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC="$lt_save_CC" ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_XSI_SHELLFNS # --------------------- # Bourne and XSI compatible variants of some useful shell functions. m4_defun([_LT_PROG_XSI_SHELLFNS], [case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $[*] )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } dnl func_dirname_and_basename dnl A portable version of this function is already defined in general.m4sh dnl so there is no need for it here. # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[[^=]]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$[@]"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]+=\$[2]" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]=\$$[1]\$[2]" } _LT_EOF ;; esac ]) quesoglc-0.7.2/build/m4/ax_check_freetype2.m40000644000175000017500000000217010764574551015714 00000000000000AC_DEFUN([AX_CHECK_FREETYPE2], [ PKG_CHECK_MODULES([FREETYPE2], [freetype2 >= 9.8] , , [ if test -z "$FREETYPE_CONFIG"; then AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) fi if test "$FREETYPE_CONFIG" = "no" ; then ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include" AC_CHECK_HEADER(ft2build.h, [ax_save_LIBS="${LIBS}" LIBS="-L/usr/X11R6/lib $LIBS" AC_CHECK_LIB(freetype, FT_Init_FreeType, , no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} LIBS=${ax_save_LIBS} ) ], no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} ) else ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="`freetype-config --cflags`" AC_CHECK_LIB(freetype, FT_Init_FreeType, [LIBS="`freetype-config --libs` $LIBS"; CPPFLAGS="`freetype-config --cflags` ${ax_save_CPPFLAGS}"], no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} ) fi ]) ]) quesoglc-0.7.2/build/m4/ltsugar.m40000644000175000017500000001026211164475761013642 00000000000000# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. m4_define([lt_combine], [m4_if([$2], [], [], [m4_if([$4], [], [], [lt_join(m4_quote(m4_default([$1], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2], [m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]), [_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl ]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) quesoglc-0.7.2/build/m4/ax_check_gl.m40000644000175000017500000000545310764574551014420 00000000000000dnl @synopsis AX_CHECK_GL dnl dnl Check for an OpenGL implementation. If GL is found, the required dnl compiler and linker flags are included in the output variables dnl "GL_CFLAGS" and "GL_LIBS", respectively. This macro adds the dnl configure option "--with-apple-opengl-framework", which users can dnl use to indicate that Apple's OpenGL framework should be used on Mac dnl OS X. If Apple's OpenGL framework is used, the symbol dnl "HAVE_APPLE_OPENGL_FRAMEWORK" is defined. If no GL implementation dnl is found, "no_gl" is set to "yes". dnl dnl @category InstalledPackages dnl @author Braden McDaniel dnl @version 2004-11-15 dnl @license AllPermissive AC_DEFUN([AX_CHECK_GL], [ # # There isn't a reliable way to know we should use the Apple OpenGL framework # without a configure option. A Mac OS X user may have installed an # alternative GL implementation (e.g., Mesa), which may or may not depend on X. # AC_ARG_WITH([apple-opengl-framework], [AC_HELP_STRING([--with-apple-opengl-framework], [use Apple OpenGL framework (Mac OS X only)])]) if test "X$with_apple_opengl_framework" = "Xyes"; then AC_DEFINE([HAVE_APPLE_OPENGL_FRAMEWORK], [1], [Use the Apple OpenGL framework.]) GL_LIBS="-framework OpenGL" else AC_REQUIRE([AC_PATH_X])dnl AC_REQUIRE([ACX_PTHREAD])dnl AC_LANG_PUSH(C) AX_LANG_COMPILER_MS if test X$ax_compiler_ms = Xno; then GL_CFLAGS="${PTHREAD_CFLAGS}" GL_LIBS="${PTHREAD_LIBS} -lm" fi # # Use x_includes and x_libraries if they have been set (presumably by # AC_PATH_X). # if test "X$no_x" != "Xyes"; then if test -n "$x_includes"; then GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" fi if test -n "$x_libraries"; then GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" fi fi AC_CHECK_HEADERS([windows.h]) AC_CACHE_CHECK([for OpenGL library], [ax_cv_check_gl_libgl], [ax_cv_check_gl_libgl="no" ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" ax_save_LIBS="${LIBS}" LIBS="" ax_check_libs="-lopengl32 -lGL" for ax_lib in ${ax_check_libs}; do if test X$ax_compiler_ms = Xyes; then ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` else ax_try_lib="${ax_lib}" fi LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" AC_LINK_IFELSE( [AC_LANG_PROGRAM([[ # if HAVE_WINDOWS_H && defined(_WIN32) # include # endif # include ]], [[glBegin(0)]])], [ax_cv_check_gl_libgl="${ax_try_lib}"; break]) done LIBS=${ax_save_LIBS} CPPFLAGS=${ax_save_CPPFLAGS}]) if test "X${ax_cv_check_gl_libgl}" = "Xno"; then no_gl="yes" GL_CFLAGS="" GL_LIBS="" else GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" fi AC_LANG_POP(C) fi AC_SUBST([GL_CFLAGS]) AC_SUBST([GL_LIBS]) ])dnl quesoglc-0.7.2/build/Makefile.in0000644000175000017500000013755311164476140013451 00000000000000# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = build DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in compile \ config.guess config.sub depcomp install-sh ltmain.sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/build/m4/acx_pthread.m4 \ $(top_srcdir)/build/m4/ax_check_fontconfig.m4 \ $(top_srcdir)/build/m4/ax_check_freetype2.m4 \ $(top_srcdir)/build/m4/ax_check_fribidi.m4 \ $(top_srcdir)/build/m4/ax_check_gl.m4 \ $(top_srcdir)/build/m4/ax_check_glew.m4 \ $(top_srcdir)/build/m4/ax_check_glu.m4 \ $(top_srcdir)/build/m4/ax_check_glut.m4 \ $(top_srcdir)/build/m4/ax_check_tls.m4 \ $(top_srcdir)/build/m4/ax_lang_compiler_ms.m4 \ $(top_srcdir)/build/m4/libtool.m4 \ $(top_srcdir)/build/m4/ltoptions.m4 \ $(top_srcdir)/build/m4/ltsugar.m4 \ $(top_srcdir)/build/m4/ltversion.m4 \ $(top_srcdir)/build/m4/lt~obsolete.m4 \ $(top_srcdir)/build/m4/pkg.m4 $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/include/qglc_config.h CONFIG_CLEAN_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) am_libGLC_la_OBJECTS = libGLC_la-context.lo libGLC_la-database.lo \ libGLC_la-except.lo libGLC_la-font.lo libGLC_la-global.lo \ libGLC_la-master.lo libGLC_la-measure.lo libGLC_la-misc.lo \ libGLC_la-oarray.lo libGLC_la-ocharmap.lo \ libGLC_la-ocontext.lo libGLC_la-ofacedesc.lo \ libGLC_la-ofont.lo libGLC_la-omaster.lo libGLC_la-render.lo \ libGLC_la-scalable.lo libGLC_la-transform.lo \ libGLC_la-oglyph.lo libGLC_la-texture.lo libGLC_la-unicode.lo libGLC_la_OBJECTS = $(am_libGLC_la_OBJECTS) libGLC_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libGLC_la_CFLAGS) \ $(CFLAGS) $(libGLC_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include depcomp = $(SHELL) $(top_srcdir)/build/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libGLC_la_SOURCES) $(EXTRA_libGLC_la_SOURCES) DIST_SOURCES = $(libGLC_la_SOURCES) $(EXTRA_libGLC_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEBUG_TESTS = @DEBUG_TESTS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXECUTABLES = @EXECUTABLES@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ FREETYPE2_CFLAGS = @FREETYPE2_CFLAGS@ FREETYPE2_LIBS = @FREETYPE2_LIBS@ FREETYPE_CONFIG = @FREETYPE_CONFIG@ FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ FRIBIDI_LIBS = @FRIBIDI_LIBS@ FRIBIDI_OBJ = @FRIBIDI_OBJ@ GLEW_CFLAGS = @GLEW_CFLAGS@ GLEW_OBJ = @GLEW_OBJ@ GLUT_CFLAGS = @GLUT_CFLAGS@ GLUT_LIBS = @GLUT_LIBS@ GLU_CFLAGS = @GLU_CFLAGS@ GLU_LIBS = @GLU_LIBS@ GL_CFLAGS = @GL_CFLAGS@ GL_LIBS = @GL_LIBS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG_INCLUDE = @PKGCONFIG_INCLUDE@ PKGCONFIG_LIBS_PRIVATE = @PKGCONFIG_LIBS_PRIVATE@ PKGCONFIG_REQUIREMENTS = @PKGCONFIG_REQUIREMENTS@ PKG_CONFIG = @PKG_CONFIG@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTS_WITH_GLUT = @TESTS_WITH_GLUT@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ lib_LTLIBRARIES = libGLC.la libGLC_la_SOURCES = $(top_builddir)/src/context.c \ $(top_builddir)/src/database.c \ $(top_builddir)/src/except.c \ $(top_builddir)/src/except.h \ $(top_builddir)/src/font.c \ $(top_builddir)/src/global.c \ $(top_builddir)/src/master.c \ $(top_builddir)/src/measure.c \ $(top_builddir)/src/misc.c \ $(top_builddir)/src/oarray.c \ $(top_builddir)/src/oarray.h \ $(top_builddir)/src/ocharmap.c \ $(top_builddir)/src/ocharmap.h \ $(top_builddir)/src/ocontext.c \ $(top_builddir)/src/ocontext.h \ $(top_builddir)/src/ofacedesc.c \ $(top_builddir)/src/ofacedesc.h \ $(top_builddir)/src/ofont.c \ $(top_builddir)/src/ofont.h \ $(top_builddir)/src/omaster.c \ $(top_builddir)/src/omaster.h \ $(top_builddir)/src/render.c \ $(top_builddir)/src/scalable.c \ $(top_builddir)/src/transform.c \ $(top_builddir)/src/oglyph.h \ $(top_builddir)/src/oglyph.c \ $(top_builddir)/src/texture.h \ $(top_builddir)/src/texture.c \ $(top_builddir)/src/unicode.c EXTRA_libGLC_la_SOURCES = $(top_builddir)/src/fribidi/fribidi.h \ $(top_builddir)/src/fribidi/fribidi.c \ $(top_builddir)/src/fribidi/fribidi_char_type.c \ $(top_builddir)/src/fribidi/fribidi_mirroring.c \ $(top_builddir)/src/fribidi/fribidi_types.c \ $(top_builddir)/src/fribidi/fribidi_types.h \ $(top_builddir)/src/fribidi/fribidi_types.i \ $(top_builddir)/src/fribidi/fribidi_unicode.h \ $(top_builddir)/src/fribidi/fribidi_tab_mirroring.i \ $(top_builddir)/src/fribidi/fribidi_tab_char_type_9.i \ $(top_builddir)/src/glew.c libGLC_la_CFLAGS = -I$(top_builddir)/src \ -D_REENTRANT \ @GLEW_CFLAGS@ \ @PTHREAD_CFLAGS@ \ @FONTCONFIG_CFLAGS@ \ @FREETYPE2_CFLAGS@ \ @GL_CFLAGS@ \ @GLU_CFLAGS@ \ @FRIBIDI_CFLAGS@ libGLC_la_LIBADD = @GLU_LIBS@ \ @FONTCONFIG_LIBS@ \ @FREETYPE2_LIBS@ \ @PTHREAD_LIBS@ \ @FRIBIDI_LIBS@ \ @FRIBIDI_OBJ@ \ @GLEW_OBJ@ libGLC_la_DEPENDENCIES = @FRIBIDI_OBJ@ @GLEW_OBJ@ libGLC_la_LDFLAGS = -version-info 0:7:0 all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign build/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign build/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libGLC.la: $(libGLC_la_OBJECTS) $(libGLC_la_DEPENDENCIES) $(libGLC_la_LINK) -rpath $(libdir) $(libGLC_la_OBJECTS) $(libGLC_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-context.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-database.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-except.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-font.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-fribidi.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-fribidi_char_type.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-fribidi_mirroring.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-fribidi_types.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-glew.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-global.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-master.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-measure.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-misc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-oarray.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-ocharmap.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-ocontext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-ofacedesc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-ofont.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-oglyph.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-omaster.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-render.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-scalable.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-texture.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-transform.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libGLC_la-unicode.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< libGLC_la-context.lo: $(top_builddir)/src/context.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-context.lo -MD -MP -MF $(DEPDIR)/libGLC_la-context.Tpo -c -o libGLC_la-context.lo `test -f '$(top_builddir)/src/context.c' || echo '$(srcdir)/'`$(top_builddir)/src/context.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-context.Tpo $(DEPDIR)/libGLC_la-context.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/context.c' object='libGLC_la-context.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-context.lo `test -f '$(top_builddir)/src/context.c' || echo '$(srcdir)/'`$(top_builddir)/src/context.c libGLC_la-database.lo: $(top_builddir)/src/database.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-database.lo -MD -MP -MF $(DEPDIR)/libGLC_la-database.Tpo -c -o libGLC_la-database.lo `test -f '$(top_builddir)/src/database.c' || echo '$(srcdir)/'`$(top_builddir)/src/database.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-database.Tpo $(DEPDIR)/libGLC_la-database.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/database.c' object='libGLC_la-database.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-database.lo `test -f '$(top_builddir)/src/database.c' || echo '$(srcdir)/'`$(top_builddir)/src/database.c libGLC_la-except.lo: $(top_builddir)/src/except.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-except.lo -MD -MP -MF $(DEPDIR)/libGLC_la-except.Tpo -c -o libGLC_la-except.lo `test -f '$(top_builddir)/src/except.c' || echo '$(srcdir)/'`$(top_builddir)/src/except.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-except.Tpo $(DEPDIR)/libGLC_la-except.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/except.c' object='libGLC_la-except.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-except.lo `test -f '$(top_builddir)/src/except.c' || echo '$(srcdir)/'`$(top_builddir)/src/except.c libGLC_la-font.lo: $(top_builddir)/src/font.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-font.lo -MD -MP -MF $(DEPDIR)/libGLC_la-font.Tpo -c -o libGLC_la-font.lo `test -f '$(top_builddir)/src/font.c' || echo '$(srcdir)/'`$(top_builddir)/src/font.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-font.Tpo $(DEPDIR)/libGLC_la-font.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/font.c' object='libGLC_la-font.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-font.lo `test -f '$(top_builddir)/src/font.c' || echo '$(srcdir)/'`$(top_builddir)/src/font.c libGLC_la-global.lo: $(top_builddir)/src/global.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-global.lo -MD -MP -MF $(DEPDIR)/libGLC_la-global.Tpo -c -o libGLC_la-global.lo `test -f '$(top_builddir)/src/global.c' || echo '$(srcdir)/'`$(top_builddir)/src/global.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-global.Tpo $(DEPDIR)/libGLC_la-global.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/global.c' object='libGLC_la-global.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-global.lo `test -f '$(top_builddir)/src/global.c' || echo '$(srcdir)/'`$(top_builddir)/src/global.c libGLC_la-master.lo: $(top_builddir)/src/master.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-master.lo -MD -MP -MF $(DEPDIR)/libGLC_la-master.Tpo -c -o libGLC_la-master.lo `test -f '$(top_builddir)/src/master.c' || echo '$(srcdir)/'`$(top_builddir)/src/master.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-master.Tpo $(DEPDIR)/libGLC_la-master.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/master.c' object='libGLC_la-master.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-master.lo `test -f '$(top_builddir)/src/master.c' || echo '$(srcdir)/'`$(top_builddir)/src/master.c libGLC_la-measure.lo: $(top_builddir)/src/measure.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-measure.lo -MD -MP -MF $(DEPDIR)/libGLC_la-measure.Tpo -c -o libGLC_la-measure.lo `test -f '$(top_builddir)/src/measure.c' || echo '$(srcdir)/'`$(top_builddir)/src/measure.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-measure.Tpo $(DEPDIR)/libGLC_la-measure.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/measure.c' object='libGLC_la-measure.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-measure.lo `test -f '$(top_builddir)/src/measure.c' || echo '$(srcdir)/'`$(top_builddir)/src/measure.c libGLC_la-misc.lo: $(top_builddir)/src/misc.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-misc.lo -MD -MP -MF $(DEPDIR)/libGLC_la-misc.Tpo -c -o libGLC_la-misc.lo `test -f '$(top_builddir)/src/misc.c' || echo '$(srcdir)/'`$(top_builddir)/src/misc.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-misc.Tpo $(DEPDIR)/libGLC_la-misc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/misc.c' object='libGLC_la-misc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-misc.lo `test -f '$(top_builddir)/src/misc.c' || echo '$(srcdir)/'`$(top_builddir)/src/misc.c libGLC_la-oarray.lo: $(top_builddir)/src/oarray.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-oarray.lo -MD -MP -MF $(DEPDIR)/libGLC_la-oarray.Tpo -c -o libGLC_la-oarray.lo `test -f '$(top_builddir)/src/oarray.c' || echo '$(srcdir)/'`$(top_builddir)/src/oarray.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-oarray.Tpo $(DEPDIR)/libGLC_la-oarray.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/oarray.c' object='libGLC_la-oarray.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-oarray.lo `test -f '$(top_builddir)/src/oarray.c' || echo '$(srcdir)/'`$(top_builddir)/src/oarray.c libGLC_la-ocharmap.lo: $(top_builddir)/src/ocharmap.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-ocharmap.lo -MD -MP -MF $(DEPDIR)/libGLC_la-ocharmap.Tpo -c -o libGLC_la-ocharmap.lo `test -f '$(top_builddir)/src/ocharmap.c' || echo '$(srcdir)/'`$(top_builddir)/src/ocharmap.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-ocharmap.Tpo $(DEPDIR)/libGLC_la-ocharmap.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/ocharmap.c' object='libGLC_la-ocharmap.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-ocharmap.lo `test -f '$(top_builddir)/src/ocharmap.c' || echo '$(srcdir)/'`$(top_builddir)/src/ocharmap.c libGLC_la-ocontext.lo: $(top_builddir)/src/ocontext.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-ocontext.lo -MD -MP -MF $(DEPDIR)/libGLC_la-ocontext.Tpo -c -o libGLC_la-ocontext.lo `test -f '$(top_builddir)/src/ocontext.c' || echo '$(srcdir)/'`$(top_builddir)/src/ocontext.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-ocontext.Tpo $(DEPDIR)/libGLC_la-ocontext.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/ocontext.c' object='libGLC_la-ocontext.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-ocontext.lo `test -f '$(top_builddir)/src/ocontext.c' || echo '$(srcdir)/'`$(top_builddir)/src/ocontext.c libGLC_la-ofacedesc.lo: $(top_builddir)/src/ofacedesc.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-ofacedesc.lo -MD -MP -MF $(DEPDIR)/libGLC_la-ofacedesc.Tpo -c -o libGLC_la-ofacedesc.lo `test -f '$(top_builddir)/src/ofacedesc.c' || echo '$(srcdir)/'`$(top_builddir)/src/ofacedesc.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-ofacedesc.Tpo $(DEPDIR)/libGLC_la-ofacedesc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/ofacedesc.c' object='libGLC_la-ofacedesc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-ofacedesc.lo `test -f '$(top_builddir)/src/ofacedesc.c' || echo '$(srcdir)/'`$(top_builddir)/src/ofacedesc.c libGLC_la-ofont.lo: $(top_builddir)/src/ofont.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-ofont.lo -MD -MP -MF $(DEPDIR)/libGLC_la-ofont.Tpo -c -o libGLC_la-ofont.lo `test -f '$(top_builddir)/src/ofont.c' || echo '$(srcdir)/'`$(top_builddir)/src/ofont.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-ofont.Tpo $(DEPDIR)/libGLC_la-ofont.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/ofont.c' object='libGLC_la-ofont.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-ofont.lo `test -f '$(top_builddir)/src/ofont.c' || echo '$(srcdir)/'`$(top_builddir)/src/ofont.c libGLC_la-omaster.lo: $(top_builddir)/src/omaster.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-omaster.lo -MD -MP -MF $(DEPDIR)/libGLC_la-omaster.Tpo -c -o libGLC_la-omaster.lo `test -f '$(top_builddir)/src/omaster.c' || echo '$(srcdir)/'`$(top_builddir)/src/omaster.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-omaster.Tpo $(DEPDIR)/libGLC_la-omaster.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/omaster.c' object='libGLC_la-omaster.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-omaster.lo `test -f '$(top_builddir)/src/omaster.c' || echo '$(srcdir)/'`$(top_builddir)/src/omaster.c libGLC_la-render.lo: $(top_builddir)/src/render.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-render.lo -MD -MP -MF $(DEPDIR)/libGLC_la-render.Tpo -c -o libGLC_la-render.lo `test -f '$(top_builddir)/src/render.c' || echo '$(srcdir)/'`$(top_builddir)/src/render.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-render.Tpo $(DEPDIR)/libGLC_la-render.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/render.c' object='libGLC_la-render.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-render.lo `test -f '$(top_builddir)/src/render.c' || echo '$(srcdir)/'`$(top_builddir)/src/render.c libGLC_la-scalable.lo: $(top_builddir)/src/scalable.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-scalable.lo -MD -MP -MF $(DEPDIR)/libGLC_la-scalable.Tpo -c -o libGLC_la-scalable.lo `test -f '$(top_builddir)/src/scalable.c' || echo '$(srcdir)/'`$(top_builddir)/src/scalable.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-scalable.Tpo $(DEPDIR)/libGLC_la-scalable.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/scalable.c' object='libGLC_la-scalable.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-scalable.lo `test -f '$(top_builddir)/src/scalable.c' || echo '$(srcdir)/'`$(top_builddir)/src/scalable.c libGLC_la-transform.lo: $(top_builddir)/src/transform.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-transform.lo -MD -MP -MF $(DEPDIR)/libGLC_la-transform.Tpo -c -o libGLC_la-transform.lo `test -f '$(top_builddir)/src/transform.c' || echo '$(srcdir)/'`$(top_builddir)/src/transform.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-transform.Tpo $(DEPDIR)/libGLC_la-transform.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/transform.c' object='libGLC_la-transform.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-transform.lo `test -f '$(top_builddir)/src/transform.c' || echo '$(srcdir)/'`$(top_builddir)/src/transform.c libGLC_la-oglyph.lo: $(top_builddir)/src/oglyph.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-oglyph.lo -MD -MP -MF $(DEPDIR)/libGLC_la-oglyph.Tpo -c -o libGLC_la-oglyph.lo `test -f '$(top_builddir)/src/oglyph.c' || echo '$(srcdir)/'`$(top_builddir)/src/oglyph.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-oglyph.Tpo $(DEPDIR)/libGLC_la-oglyph.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/oglyph.c' object='libGLC_la-oglyph.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-oglyph.lo `test -f '$(top_builddir)/src/oglyph.c' || echo '$(srcdir)/'`$(top_builddir)/src/oglyph.c libGLC_la-texture.lo: $(top_builddir)/src/texture.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-texture.lo -MD -MP -MF $(DEPDIR)/libGLC_la-texture.Tpo -c -o libGLC_la-texture.lo `test -f '$(top_builddir)/src/texture.c' || echo '$(srcdir)/'`$(top_builddir)/src/texture.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-texture.Tpo $(DEPDIR)/libGLC_la-texture.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/texture.c' object='libGLC_la-texture.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-texture.lo `test -f '$(top_builddir)/src/texture.c' || echo '$(srcdir)/'`$(top_builddir)/src/texture.c libGLC_la-unicode.lo: $(top_builddir)/src/unicode.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-unicode.lo -MD -MP -MF $(DEPDIR)/libGLC_la-unicode.Tpo -c -o libGLC_la-unicode.lo `test -f '$(top_builddir)/src/unicode.c' || echo '$(srcdir)/'`$(top_builddir)/src/unicode.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-unicode.Tpo $(DEPDIR)/libGLC_la-unicode.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/unicode.c' object='libGLC_la-unicode.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-unicode.lo `test -f '$(top_builddir)/src/unicode.c' || echo '$(srcdir)/'`$(top_builddir)/src/unicode.c libGLC_la-fribidi.lo: $(top_builddir)/src/fribidi/fribidi.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-fribidi.lo -MD -MP -MF $(DEPDIR)/libGLC_la-fribidi.Tpo -c -o libGLC_la-fribidi.lo `test -f '$(top_builddir)/src/fribidi/fribidi.c' || echo '$(srcdir)/'`$(top_builddir)/src/fribidi/fribidi.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-fribidi.Tpo $(DEPDIR)/libGLC_la-fribidi.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/fribidi/fribidi.c' object='libGLC_la-fribidi.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-fribidi.lo `test -f '$(top_builddir)/src/fribidi/fribidi.c' || echo '$(srcdir)/'`$(top_builddir)/src/fribidi/fribidi.c libGLC_la-fribidi_char_type.lo: $(top_builddir)/src/fribidi/fribidi_char_type.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-fribidi_char_type.lo -MD -MP -MF $(DEPDIR)/libGLC_la-fribidi_char_type.Tpo -c -o libGLC_la-fribidi_char_type.lo `test -f '$(top_builddir)/src/fribidi/fribidi_char_type.c' || echo '$(srcdir)/'`$(top_builddir)/src/fribidi/fribidi_char_type.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-fribidi_char_type.Tpo $(DEPDIR)/libGLC_la-fribidi_char_type.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/fribidi/fribidi_char_type.c' object='libGLC_la-fribidi_char_type.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-fribidi_char_type.lo `test -f '$(top_builddir)/src/fribidi/fribidi_char_type.c' || echo '$(srcdir)/'`$(top_builddir)/src/fribidi/fribidi_char_type.c libGLC_la-fribidi_mirroring.lo: $(top_builddir)/src/fribidi/fribidi_mirroring.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-fribidi_mirroring.lo -MD -MP -MF $(DEPDIR)/libGLC_la-fribidi_mirroring.Tpo -c -o libGLC_la-fribidi_mirroring.lo `test -f '$(top_builddir)/src/fribidi/fribidi_mirroring.c' || echo '$(srcdir)/'`$(top_builddir)/src/fribidi/fribidi_mirroring.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-fribidi_mirroring.Tpo $(DEPDIR)/libGLC_la-fribidi_mirroring.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/fribidi/fribidi_mirroring.c' object='libGLC_la-fribidi_mirroring.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-fribidi_mirroring.lo `test -f '$(top_builddir)/src/fribidi/fribidi_mirroring.c' || echo '$(srcdir)/'`$(top_builddir)/src/fribidi/fribidi_mirroring.c libGLC_la-fribidi_types.lo: $(top_builddir)/src/fribidi/fribidi_types.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-fribidi_types.lo -MD -MP -MF $(DEPDIR)/libGLC_la-fribidi_types.Tpo -c -o libGLC_la-fribidi_types.lo `test -f '$(top_builddir)/src/fribidi/fribidi_types.c' || echo '$(srcdir)/'`$(top_builddir)/src/fribidi/fribidi_types.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-fribidi_types.Tpo $(DEPDIR)/libGLC_la-fribidi_types.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/fribidi/fribidi_types.c' object='libGLC_la-fribidi_types.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-fribidi_types.lo `test -f '$(top_builddir)/src/fribidi/fribidi_types.c' || echo '$(srcdir)/'`$(top_builddir)/src/fribidi/fribidi_types.c libGLC_la-glew.lo: $(top_builddir)/src/glew.c @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -MT libGLC_la-glew.lo -MD -MP -MF $(DEPDIR)/libGLC_la-glew.Tpo -c -o libGLC_la-glew.lo `test -f '$(top_builddir)/src/glew.c' || echo '$(srcdir)/'`$(top_builddir)/src/glew.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libGLC_la-glew.Tpo $(DEPDIR)/libGLC_la-glew.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_builddir)/src/glew.c' object='libGLC_la-glew.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libGLC_la_CFLAGS) $(CFLAGS) -c -o libGLC_la-glew.lo `test -f '$(top_builddir)/src/glew.c' || echo '$(srcdir)/'`$(top_builddir)/src/glew.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-libLTLIBRARIES install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-libLTLIBRARIES $(top_builddir)/src/database.c: $(top_builddir)/database/buildDB.py cd $(top_builddir)/database && python buildDB.py && cd $(top_builddir)/src clean-generic: rm -f *.gcno *.gcda *.gcov # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: quesoglc-0.7.2/build/install-sh0000755000175000017500000003160010764574610013400 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2006-10-14.15 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" posix_glob= posix_mkdir= # Desired mode of installed file. mode=0755 chmodcmd=$chmodprog chowncmd= chgrpcmd= stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" src= dst= dir_arg= dstarg= no_target_directory= usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: -c (ignored) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. --help display this help and exit. --version display version info and exit. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) shift continue;; -d) dir_arg=true shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; --help) echo "$usage"; exit $?;; -m) mode=$2 shift shift case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t) dstarg=$2 shift shift continue;; -T) no_target_directory=true shift continue;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac done if test $# -ne 0 && test -z "$dir_arg$dstarg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dstarg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dstarg" shift # fnord fi shift # arg dstarg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # Protect names starting with `-'. case $dst in -*) dst=./$dst ;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dstarg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix=/ ;; -*) prefix=./ ;; *) prefix= ;; esac case $posix_glob in '') if (set -f) 2>/dev/null; then posix_glob=true else posix_glob=false fi ;; esac oIFS=$IFS IFS=/ $posix_glob && set -f set fnord $dstdir shift $posix_glob && set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \ || { # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { if test -f "$dst"; then $doit $rmcmd -f "$dst" 2>/dev/null \ || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \ && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\ || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } } || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: quesoglc-0.7.2/build/missing0000755000175000017500000002557710764574610013013 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2006-05-10.23 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case $1 in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $1 in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: quesoglc-0.7.2/build/QuesoGLC.vcproj0000644000175000017500000001530311162160035014226 00000000000000 quesoglc-0.7.2/build/compile0000755000175000017500000000717310764574610012762 00000000000000#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2005-05-14.22 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand `-c -o'. Remove `-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file `INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; esac ofile= cfile= eat= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as `compile cc -o foo foo.c'. # So we strip `-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no `-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # `.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` # Create the lock directory. # Note: use `[/.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: quesoglc-0.7.2/build/config.guess0000755000175000017500000012753411164475765013736 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-01-23' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: quesoglc-0.7.2/INSTALL.win0000644000175000017500000001365110764574552012135 00000000000000These are the instructions to build QuesoGLC on Windows, if you want to build QuesoGLC on POSIX platforms, see INSTALL. If you just want the binaries, DLL, headers and import files, a precompiled package is available at http://sourceforge.net/projects/quesoglc. 1. What do you need in order to build QuesoGLC : ================================================ 1.1 Tools/headers/libraries that are mandatory : ------------------------------------------------ QuesoGLC depends on tools and libraries that are now widely used in the Open Source world, and which might already be installed on your favorite platform. If not, you can get them on Internet or build them on your system. * OpenGL, GLU (www.opengl.org/documentation/implementations.html) QuesoGLC is supposed to provide a character rendering service for OpenGL. Hence you definitely need OpenGL ;-) You must check that opengl32.dll and glu32.dll are installed in your system directory (which may be either C:\Windows\System, C:\Winnt\System32 or C:\Windows\System32) otherwise you must download them at http://download.microsoft.com/download/win95upg/info/1/w95/en-us/opengl95.exe * FreeType2 (www.freetype.org) This is the core lib that manage fonts files and datas. QuesoGLC heavily uses its functionnalities. You can find a precompiled DLL at http://gnuwin32.sourceforge.net/packages/freetype.htm * Fontconfig (www.fontconfig.org) Fontconfig is a library for font customization and configuration. It is used by QuesoGLC to automagically detect the fonts that are available on your system. You can find a precompiled DLL at http://www.gimp.org/~tml/gimp/win32/downloads.html Fontconfig needs expat (http://expat.sourceforge.net) which an XML parser. You can download it at the sourceforge site but for some reason the authors decided to change the name of the DLL, so fontconfig may complain that it can not find 'xmlparse.dll'. Just rename expat.dll to xmlparse.dll will do the trick. * MinGW32 tools including the make tool (www.mingw.org) The package name MinGW 5.0.3 or likely contains all you need. Download it and install it. 1.2 Tools/headers/libraries that are optional : ----------------------------------------------- QuesoGLC can be safely built and used without GLUT. However, some test programs need GLUT in order to display OpenGL graphics : if GLUT is not installed on your system, the examples will not build. Doxygen is a tool to generate the docs, you need it if you want to generate the documentation yourself; otherwise you can get the reference manual of QuesoGLC by either downloading it from SourceForge or browsing it on-line on the QuesoGLC web site (http://quesoglc.sourceforge.net). * Mark Kilgard's GLUT (www.opengl.org/resources/libraries/glut.html) It provides platform independant support for OpenGL. The DLL, lib and headers can be downloaded at http://www.xmission.com/~nate/glut.html. Do not forget to read cautiously the instruction about GLUT at the MinGW site (http://www.mingw.org/MinGWiki/index.php/Glut). * Doxygen (www.stack.nl/~dimitri/doxygen) A documentation system for several language (including C) that generates the on-line documentation (in HTML) and the off-line reference manual (in Latex/PDF/HTML) of QuesoGLC 2. OK, all those libs and headers are installed on my machine. What shall I do now ? ============================================================== 2.1 First make sure that the MinGW binaries are in your PATH : -------------------------------------------------------------- If you installed MinGW in the directory C:\MinGW then you must check that C:\MinGW\bin is in your PATH. Type : echo %PATH% and if C:\MinGW\bin is not listed in the PATH, then you must add it : set PATH=%PATH%;C:\MinGW\bin Of course, if you installed MinGW elsewhere then you must change C:\MinGW\bin in the command above by the relevant path. 2.2 Edit the makefile in order to make it suit your needs : ----------------------------------------------------------- You may need to change some of the parameters depending on your installation of the above mentionned tools and libraries. The parameters are prepended by comments that are self explanatory, let them guide you. The makefile is named 'makefile.mgw' (without the quotes as usual). 2.3 Build the library and the examples : ---------------------------------------- At least, you have reached the point where you can build the whole stuff. Just run the makefile : mingw32-make -f makefile.mgw It should build everything. Before you try to run the tests, make sure that the DLLs (including QuesoGLC's) are either in the same directory than your executables or in the system directory (C:\Windows\System or similar). 2.4 Build the docs (optional) : ------------------------------- You may also want to build the documentation; QuesoGLC uses Doxygen that does the job nicely. In order to get the docs, go to the docs/ directory and run Doxygen: cd docs doxygen.exe This should build the docs in HTML and Latex/PDF (the later needs latex and pdflatex to be installed on your system). 3. Is that all ? ================ When the library has been successfully built, you might define the environment variable GLC_PATH in order to indicate QuesoGLC where to find fonts. This step is optional since QuesoGLC uses Fontconfig to locate the fonts on your system. You can however add some additional directories to those detected by Fontconfig. GLC_PATH is a semicolon-separated list of directories similar to the PATH environment variable. Depending on your shell the command is either set GLC_PATH=C:\Windows\fonts;C:\whatever\path\to\another\font\directory Note : the path C:\Windows\fonts usually leads to every fonts installed on your system. 4. Is that really all ? ======================= You should have a look at the README file and at the documentation, especially at the tutorials. You can also get the specifications of GLC from www.opengl.org/documentation/specs/glc/glcspec.ps. You should also try the tests and example programs too. quesoglc-0.7.2/README0000644000175000017500000001062010764574552011161 00000000000000This file contains general informations about QuesoGLC. For installation instructions, see the INSTALL file if you run a POSIX platform and INSTALL.win if you run Windows. QuesoGLC is a free implementation of SGI's OpenGL Character Renderer (GLC). QuesoGLC is based on the FreeType library, provides Unicode support and is designed to be easily ported on any platform that supports both FreeType and OpenGL. The most authoritative documentation on GLC is the GLC specification document, which is available in Postscript form at www.opengl.org Overview of GLC --------------- The OpenGL Character Renderer (GLC) is a subroutine library that provides OpenGL programs with character rendering services. A GLC context is an instantiation of the GLC state machine. A GLC client is a program that uses both OpenGL (henceforth, "GL") and GLC. When a client thread issues a GLC command, the thread's current GLC context executes the command. To render a character, a GLC client issues the command glcRenderChar(GLint inCode); GLC then goes through these steps: 1. GLC finds a font that maps inCode to a character such as LATIN CAPITAL LETTER A. 2. GLC uses one or more glyphs from the font to create a graphical layout that represents the character. 3. GLC issues a sequence of GL commands to draw the layout. A font is a stylistically consistent set of glyphs that can be used to render some set of characters. Each font has a family name (e.g. Palatino) and a state variable that selects one of the faces (e.g. Regular, Bold, Italic, Bold Italic) that the font contains. A typeface is the combination of a family and a face (e.g. Palatino Bold). A font is an instantiation of a master. A master is a representation of the font that is stored outside of GLC in a standard format such as Type 1. A catalog is a file containing a list of master file names. A list of catalog names (GLC_CATALOG_LIST) defines the list of masters that can be instantiated in a GLC context. By default, GLC interprets all character codes as elements of the Unicode Character Database (UCD) defined by Unicode 4.0.1. The interpretation of arrays of character codes of type GLCchar in the GLC API is determined by the value of the GLC context state variable GLC_STRING_TYPE. The values GLC_UCS1, GLC_UCS2, GLC_UCS4 and GLC_UTF8 specify that each array element is either a Unicode code point of type GLubyte, GLushort, GLint, or GLubyte respectively. The initial value of GLC_STRING_TYPE is GLC_UCS1. Before issuing a GLC rendering command, a client must issue GL commands directly to establish a GL state such that the GL commands issued by GLC produce the desired result. For example, before issuing a glcRenderChar command, a client may issue glColor and glRasterPos commands to establish the color and origin of the resulting layout. Before issuing any GLC commands, the client must create a GL context and make it current. Glyph coordinates are defined in em units and are transformed during rendering to produce the desired mapping of the glyph shape into the GL window coordinate system. In addition to commands for rendering, the GLC API includes measurement commands that return certain metrics (currently the bounding box and the baseline) for the layout. Since the focus of GLC is on rendering and not modeling, the GLC API does not provide access to glyph shape data. EXAMPLES -------- The following ISO C code fragment uses GL and GLC to render the character LATIN CAPITAL LETTER A in red at (100, 100) using a default typeface at a scale of 24 pixels per em. In this example, GLC issues a glBitmap command to draw the layout. glcContext(glcGenContext()); glcScale(24.f, 24.f); glColor3f(1.f, 0.f, 0.f); glRasterPos2f(100.f, 100.f); glcRenderChar(`A'); In the following example, GLC renders the string "Hello, world!" in red 24 pixel Palatino Bold at a rotation of 30 degrees, starting at (100, 100). glcContext(glcGenContext()); glcFont (glcNewFontFromFamily(1, "palatino")); glcFontFace(1, "bold"); glcScale(24.f, 24.f); glcRotate(30.f); glColor3f(1.f, 0.f, 0.f); glRasterPos2f(100.f, 100.f); glcRenderString("Hello, world!"); More examples can be found in the directory 'tests' of QuesoGLC. More info on QuesoGLC --------------------- Although the GLC specs are the authoritative doc, some details are left implementation dependant. Read the file 'specific.txt' for more info about that topic concerning QuesoGLC. quesoglc-0.7.2/quesoglc.pc.in0000644000175000017500000000111711021606761013036 00000000000000# @configure_input@ prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: quesoglc Description: An implementation of SGI's OpenGL Character Renderer (GLC). The OpenGL Character Renderer (GLC) is a state machine that provides OpenGL programs with character rendering services via an application programming interface (API). URL: http://quesoglc.sourceforge.net Version: @VERSION@ Requires: fontconfig, freetype2, @PKGCONFIG_REQUIREMENTS@ Conflicts: Libs: -L${libdir} -lGLC Libs.private: @PKGCONFIG_LIBS_PRIVATE@ Cflags: -I${includedir} @PKGCONFIG_INCLUDE@ quesoglc-0.7.2/AUTHORS0000644000175000017500000000174710764574552011363 00000000000000QuesoGLC Released under LGPL license (see attached file LICENSE). Copyright (c) 2002, 2004-2007 Bertrand Coconnier QuesoGLC uses the FreeType Project (www.freetype.org) Copyright (c) 1996-2005 by David Turner, Robert Wilheim, and Werner Lemberg. All rights reserved. QuesoGLC uses code from GNU FriBidi an implementation of the Unicode Bidirectional Algorithm (freedesktop.org/Software/FriBidi) Released under LGPL license (see attached file LICENSE). Copyright (c) 1999,2000 Dov Grobgeld, and Copyright (c) 2001,2002,2005 Behdad Esfahbod. QuesoGLC uses GLEW the OpenGL Extension Wrangler Library Released under modified BSD license, the SGI Free Software License B, and the GLX Public License. (see files src/glew.c include/GL/glew.h include/GL/wglew.h and include/GL/glxew.h) Copyright (C) 2002-2006, Milan Ikits Copyright (C) 2002-2006, Marcelo E. Magallon Copyright (C) 2002, Lev Povalahev All rights reserved. quesoglc-0.7.2/include/0000777000175000017500000000000011164476311011776 500000000000000quesoglc-0.7.2/include/qglc_config.hin0000644000175000017500000000773511164476205014703 00000000000000/* include/qglc_config.hin. Generated from configure.in by autoheader. */ /* Use the Apple OpenGL framework. */ #undef HAVE_APPLE_OPENGL_FRAMEWORK /* Define to 1 if you have the `atexit' function. */ #undef HAVE_ATEXIT /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define if FreeType supports the caching routines */ #undef HAVE_FT_CACHE /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `freetype' library (-lfreetype). */ #undef HAVE_LIBFREETYPE /* Define to 1 if you have the `GLEW' library (-lGLEW). */ #undef HAVE_LIBGLEW /* Define to 1 if you have the `m' library (-lm). */ #undef HAVE_LIBM /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC /* Define to 1 if you have the `memmove' function. */ #undef HAVE_MEMMOVE /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define if you have POSIX threads libraries and header files. */ #undef HAVE_PTHREAD /* Define to 1 if your system has a GNU libc compatible `realloc' function, and to 0 otherwise. */ #undef HAVE_REALLOC /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ #undef HAVE_STAT_EMPTY_STRING_BUG /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if the target supports thread-local storage. */ #undef HAVE_TLS /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the header file. */ #undef HAVE_WINDOWS_H /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ #undef LSTAT_FOLLOWS_SLASHED_SYMLINK /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Define to 1 if your C compiler doesn't accept -c and -o together. */ #undef NO_MINUS_C_MINUS_O /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to the necessary symbol if this constant uses a non-standard name on your system. */ #undef PTHREAD_CREATE_JOINABLE /* The size of `int', as computed by sizeof. */ #undef SIZEOF_INT /* The size of `long', as computed by sizeof. */ #undef SIZEOF_LONG /* The size of `short', as computed by sizeof. */ #undef SIZEOF_SHORT /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define to 1 if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define to rpl_realloc if the replacement function should be used. */ #undef realloc /* Define to `unsigned int' if does not define. */ #undef size_t quesoglc-0.7.2/include/Makefile.am0000644000175000017500000000032510764574546013764 00000000000000 ## Process this file with automake to produce Makefile.in. nobase_include_HEADERS = GL/glc.h noinst_HEADERS = internal.h \ GL/glew.h \ GL/glxew.h \ GL/wglew.h quesoglc-0.7.2/include/Makefile.in0000644000175000017500000003351511164476137013774 00000000000000# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = include DIST_COMMON = $(nobase_include_HEADERS) $(noinst_HEADERS) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/qglc_config.hin ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/build/m4/acx_pthread.m4 \ $(top_srcdir)/build/m4/ax_check_fontconfig.m4 \ $(top_srcdir)/build/m4/ax_check_freetype2.m4 \ $(top_srcdir)/build/m4/ax_check_fribidi.m4 \ $(top_srcdir)/build/m4/ax_check_gl.m4 \ $(top_srcdir)/build/m4/ax_check_glew.m4 \ $(top_srcdir)/build/m4/ax_check_glu.m4 \ $(top_srcdir)/build/m4/ax_check_glut.m4 \ $(top_srcdir)/build/m4/ax_check_tls.m4 \ $(top_srcdir)/build/m4/ax_lang_compiler_ms.m4 \ $(top_srcdir)/build/m4/libtool.m4 \ $(top_srcdir)/build/m4/ltoptions.m4 \ $(top_srcdir)/build/m4/ltsugar.m4 \ $(top_srcdir)/build/m4/ltversion.m4 \ $(top_srcdir)/build/m4/lt~obsolete.m4 \ $(top_srcdir)/build/m4/pkg.m4 $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = qglc_config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(includedir)" nobase_includeHEADERS_INSTALL = $(install_sh_DATA) HEADERS = $(nobase_include_HEADERS) $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEBUG_TESTS = @DEBUG_TESTS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXECUTABLES = @EXECUTABLES@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ FREETYPE2_CFLAGS = @FREETYPE2_CFLAGS@ FREETYPE2_LIBS = @FREETYPE2_LIBS@ FREETYPE_CONFIG = @FREETYPE_CONFIG@ FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ FRIBIDI_LIBS = @FRIBIDI_LIBS@ FRIBIDI_OBJ = @FRIBIDI_OBJ@ GLEW_CFLAGS = @GLEW_CFLAGS@ GLEW_OBJ = @GLEW_OBJ@ GLUT_CFLAGS = @GLUT_CFLAGS@ GLUT_LIBS = @GLUT_LIBS@ GLU_CFLAGS = @GLU_CFLAGS@ GLU_LIBS = @GLU_LIBS@ GL_CFLAGS = @GL_CFLAGS@ GL_LIBS = @GL_LIBS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG_INCLUDE = @PKGCONFIG_INCLUDE@ PKGCONFIG_LIBS_PRIVATE = @PKGCONFIG_LIBS_PRIVATE@ PKGCONFIG_REQUIREMENTS = @PKGCONFIG_REQUIREMENTS@ PKG_CONFIG = @PKG_CONFIG@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTS_WITH_GLUT = @TESTS_WITH_GLUT@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ nobase_include_HEADERS = GL/glc.h noinst_HEADERS = internal.h \ GL/glew.h \ GL/glxew.h \ GL/wglew.h all: qglc_config.h $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign include/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh qglc_config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/qglc_config.hin $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status include/qglc_config.h $(srcdir)/qglc_config.hin: $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f qglc_config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-nobase_includeHEADERS: $(nobase_include_HEADERS) @$(NORMAL_INSTALL) test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" @$(am__vpath_adj_setup) \ list='$(nobase_include_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ $(am__vpath_adj) \ echo " $(nobase_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \ $(nobase_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \ done uninstall-nobase_includeHEADERS: @$(NORMAL_UNINSTALL) @$(am__vpath_adj_setup) \ list='$(nobase_include_HEADERS)'; for p in $$list; do \ $(am__vpath_adj) \ echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \ rm -f "$(DESTDIR)$(includedir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) qglc_config.hin $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) qglc_config.hin $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) qglc_config.hin $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) qglc_config.hin $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(HEADERS) qglc_config.h installdirs: for dir in "$(DESTDIR)$(includedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-nobase_includeHEADERS install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-nobase_includeHEADERS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool ctags distclean distclean-generic distclean-hdr \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-nobase_includeHEADERS \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-nobase_includeHEADERS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: quesoglc-0.7.2/include/internal.h0000644000175000017500000003121011101132443013656 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: internal.h 830 2008-08-19 23:29:41Z bcoconni $ */ /** \file * header of all private functions that are used throughout the library. */ #ifndef __glc_internal_h #define __glc_internal_h #include #ifndef DEBUGMODE #define NDEBUG #endif #include #ifdef HAVE_LIBGLEW #include #else #include "GL/glew.h" #endif #define GLCAPI GLEWAPI #include "GL/glc.h" #ifdef HAVE_CONFIG_H #include "qglc_config.h" #include #include FT_FREETYPE_H #if defined(HAVE_FT_CACHE) && defined(FT_CACHE_H) #define GLC_FT_CACHE #endif #endif #define GLCchar8 FcChar8 #define GLCchar16 FcChar16 #define GLCchar32 FcChar32 #define GLCuint FT_UInt #define GLClong FT_Long #define GLCulong FT_ULong #include "ofont.h" #define GLC_OUT_OF_RANGE_LEN 11 #define GLC_EPSILON 1E-6 #define GLC_POINT_SIZE 128 #define GLC_TEXTURE_SIZE 64 #if defined(__GNUC__) # define GLC_UNUSED_ARG(_arg) GLC_UNUSED_ ## _arg __attribute__((unused)) #elif defined(__LCLINT__) # define GLC_UNUSED_ARG(_arg) /*@unused@*/ GLC_UNUSED_ ## _arg #else # define GLC_UNUSED_ARG(_arg) GLC_UNUSED_ ## _arg #endif /* Definition of the GLC_INIT_THREAD macro : it is some sort of an equivalent to * XInitThreads(). It allows to get rid of pthread_get_specific()/TlsGetValue() * when only one thread is used and to fallback to the usual thread management * if more than one thread is used. * If Thread Local Storage is used the macro does nothing. */ #ifdef __WIN32__ # define GLC_INIT_THREAD() \ if (!InterlockedCompareExchange(&__glcCommonArea.__glcInitThreadOnce, 1, 0)) \ __glcInitThread(); #elif !defined(HAVE_TLS) # define GLC_INIT_THREAD() \ pthread_once(&__glcCommonArea.__glcInitThreadOnce, __glcInitThread); #else #define GLC_INIT_THREAD() #endif /* Definition of the GLC_GET_THREAD_AREA macro */ #ifdef __WIN32__ # define GLC_GET_THREAD_AREA() \ (((__glcCommonArea.threadID == GetCurrentThreadId()) && __glcThreadArea) ? \ __glcThreadArea : __glcGetThreadArea()) #elif !defined(HAVE_TLS) # define GLC_GET_THREAD_AREA() \ ((pthread_equal(__glcCommonArea.threadID, pthread_self()) && __glcThreadArea) ? \ __glcThreadArea : __glcGetThreadArea()) #else # define GLC_GET_THREAD_AREA() &__glcTlsThreadArea #endif /* Definition of the GLC_GET_CURRENT_CONTEXT macro */ #ifdef __WIN32__ # define GLC_GET_CURRENT_CONTEXT() \ (((__glcCommonArea.threadID == GetCurrentThreadId()) && __glcThreadArea) ? \ __glcThreadArea->currentContext : __glcGetCurrent()) #elif !defined(HAVE_TLS) # define GLC_GET_CURRENT_CONTEXT() \ ((pthread_equal(__glcCommonArea.threadID, pthread_self()) && __glcThreadArea) ? \ __glcThreadArea->currentContext : __glcGetCurrent()) #else #define GLC_GET_CURRENT_CONTEXT() __glcTlsThreadArea.currentContext #endif /* ceil() and floor() macros for 26.6 fixed integers */ #define GLC_CEIL_26_6(x) (((x) < 0) ? ((x) & -64) : ((x) + 63) & -64) #define GLC_FLOOR_26_6(x) (((x) < 0) ? (((x) - 63) & -64) : ((x) & -64)) typedef struct __GLCdataCodeFromNameRec __GLCdataCodeFromName; typedef struct __GLCgeomBatchRec __GLCgeomBatch; typedef struct __GLCcharacterRec __GLCcharacter; struct __GLCrendererDataRec { GLfloat vector[8]; /* Current coordinates */ GLfloat tolerance; /* Chordal tolerance */ __GLCarray* vertexArray; /* Array of vertices */ __GLCarray* controlPoints; /* Array of control points */ __GLCarray* endContour; /* Array of contour limits */ __GLCarray* vertexIndices; /* Array of vertex indices */ __GLCarray* geomBatches; /* Array of geometric batches */ GLfloat* transformMatrix; /* Transformation matrix from the object space to the viewport */ GLfloat halfWidth; GLfloat halfHeight; }; struct __GLCdataCodeFromNameRec { GLint code; const char* name; }; struct __GLCgeomBatchRec { GLenum mode; GLint length; GLuint start; GLuint end; }; struct __GLCcharacterRec { GLint code; __GLCfont* font; __GLCglyph* glyph; GLfloat advance[2]; }; /* Those functions are used to protect against race conditions whenever we try * to access the common area or functions which are not multi-threaded. */ void __glcLock(void); void __glcUnlock(void); /* Callback function type that is called by __glcProcessChar(). * It allows to unify the character processing before the rendering or the * measurement of a character : __glcProcessChar() is called first (see below) * then the callback function of type __glcProcessCharFunc is called by * __glcProcessChar(). Two functions are defined according to this type : * __glcRenderChar() for rendering and __glcGetCharMetric() for measurement. */ typedef void* (*__glcProcessCharFunc)(GLint inCode, GLint inPrevCode, GLboolean inIsRTL, __GLCfont* inFont, __GLCcontext* inContext, void* inProcessCharData, GLboolean inMultipleChars); /* Process the character in order to find a font that maps the code and to * render the corresponding glyph. Replacement code or the '\' * character sequence is issued if necessary. * 'inCode' must be given in UCS-4 format */ extern void* __glcProcessChar(__GLCcontext *inContext, GLint inCode, __GLCcharacter* inPrevCode, GLboolean inIsRTL, __glcProcessCharFunc inProcessCharFunc, void* inProcessCharData); /* Render scalable characters using either the GLC_LINE style or the * GLC_TRIANGLE style */ extern void __glcRenderCharScalable(__GLCfont* inFont, __GLCcontext* inContext, GLfloat* inTransformMatrix, GLfloat scale_x, GLfloat scale_y, __GLCglyph* inGlyph); /* QuesoGLC own memory management routines */ extern void* __glcMalloc(size_t size); extern void __glcFree(void* ptr); extern void* __glcRealloc(void* ptr, size_t size); /* Find a token in a list of tokens separated by 'separator' */ extern GLCchar8* __glcFindIndexList(GLCchar8* inList, GLuint inIndex, const GLCchar8* inSeparator); /* Arrays that contain the Unicode name of characters */ extern const __GLCdataCodeFromName __glcCodeFromNameArray[]; extern const GLint __glcNameFromCodeArray[]; extern const GLint __glcMaxCode; extern const GLint __glcCodeFromNameSize; /* Find a Unicode name from its code */ extern const GLCchar8* __glcNameFromCode(GLint code); /* Find a Unicode code from its name */ extern GLint __glcCodeFromName(GLCchar8* name); /* Duplicate a string and convert if from any Unicode format to UTF-8 format */ extern GLCchar8* __glcConvertToUtf8(const GLCchar* inString, const GLint inStringType); /* Duplicate a string to the context buffer and convert it from UTF-8 format to * any Unicode format. */ extern GLCchar* __glcConvertFromUtf8ToBuffer(__GLCcontext* This, const GLCchar8* inString, const GLint inStringType); /* Duplicate a counted string to the context buffer and convert it from any * Unicode format to UTF-8 format. */ extern GLCchar8* __glcConvertCountedStringToUtf8(const GLint inCount, const GLCchar* inString, const GLint inStringType); /* Convert a UCS-4 character code into the current string type. The result is * stored in a GLint. This function is needed since the GLC specs store * individual character codes in GLint whatever is their string type. */ extern GLint __glcConvertUcs4ToGLint(__GLCcontext *inContext, GLint inCode); /* Convert a character encoded in the current string type to the UCS-4 format. * This function is needed since the GLC specs store individual character * codes in GLint whatever is their string type. */ extern GLint __glcConvertGLintToUcs4(__GLCcontext *inContext, GLint inCode); /* Verify that the thread has a current context and that the master identified * by 'inMaster' exists. Returns a FontConfig pattern corresponding to the * master ID 'inMaster'. */ extern __GLCmaster* __glcVerifyMasterParameters(GLint inMaster); /* Verify that the thread has a current context and that the font identified * by 'inFont' exists. */ extern __GLCfont* __glcVerifyFontParameters(GLint inFont); /* Do the actual job of glcAppendFont(). This function can be called as an * internal version of glcAppendFont() where the current GLC context is already * determined and the font ID has been resolved in its corresponding __GLCfont * object. */ extern void __glcAppendFont(__GLCcontext* inContext, __GLCfont* inFont); /* This internal function deletes the font identified by inFont (if any) and * creates a new font based on the pattern 'inPattern'. The resulting font is * added to the list GLC_FONT_LIST. */ extern __GLCfont* __glcNewFontFromMaster(GLint inFontID, __GLCmaster* inMaster, __GLCcontext *inContext, GLint inCode); /* This internal function tries to open the face file which name is identified * by 'inFace'. If it succeeds, it closes the previous face and stores the new * face attributes in the __GLCfont object "inFont". Otherwise, it leaves the * font unchanged. GL_TRUE or GL_FALSE are returned to indicate if the function * succeeded or not. */ extern GLboolean __glcFontFace(__GLCfont* inFont, const GLCchar8* inFace, __GLCcontext *inContext); #ifndef HAVE_TLS /* Return a struct which contains thread specific info. If the platform supports * pointers for thread-local storage (TLS) then __glcGetThreadArea is replaced * by a macro that returns a thread-local pointer. Otherwise, a function is * called to return the structure using pthread_get_specific (POSIX) or * TlsGetValue (WIN32) which are much slower. */ extern __GLCthreadArea* __glcGetThreadArea(void); #endif /* Raise an error. * See also remarks above about TLS pointers. */ #ifdef HAVE_TLS #define __glcRaiseError(inError) \ if (!__glcTlsThreadArea.errorState || ! (inError)) \ __glcTlsThreadArea.errorState = (inError) #else extern void __glcRaiseError(GLCenum inError); #endif #ifndef HAVE_TLS /* Return the current context state. * See also remarks above about TLS pointers. */ extern __GLCcontext* __glcGetCurrent(void); #endif /* Compute an optimal size for the glyph to be rendered on the screen (if no * display list is currently building). */ extern void __glcGetScale(__GLCcontext* inContext, GLfloat* outTransformMatrix, GLfloat* outScaleX, GLfloat* outScaleY); /* Convert 'inString' (stored in logical order) to UCS4 format and return a * copy of the converted string in visual order. */ extern GLCchar32* __glcConvertToVisualUcs4(__GLCcontext* inContext, GLboolean *outIsRTL, GLint *outLength, const GLCchar* inString); /* Convert 'inCount' characters of 'inString' (stored in logical order) to UCS4 * format and return a copy of the converted string in visual order. */ extern GLCchar32* __glcConvertCountedStringToVisualUcs4(__GLCcontext* inContext, GLboolean *outIsRTL, const GLCchar* inString, const GLint inCount); #ifdef GLC_FT_CACHE /* Callback function used by the FreeType cache manager to open a given face */ extern FT_Error __glcFileOpen(FTC_FaceID inFile, FT_Library inLibrary, FT_Pointer inData, FT_Face* outFace); /* Rename FTC_Manager_LookupFace for old freetype versions */ # if FREETYPE_MAJOR == 2 \ && (FREETYPE_MINOR < 1 \ || (FREETYPE_MINOR == 1 && FREETYPE_PATCH < 8)) # define FTC_Manager_LookupFace FTC_Manager_Lookup_Face # endif #endif /* Save the GL State in a structure */ extern void __glcSaveGLState(__GLCglState* inGLState, __GLCcontext* inContext, GLboolean inAll); /* Restore the GL State from a structure */ extern void __glcRestoreGLState(__GLCglState* inGLState, __GLCcontext* inContext, GLboolean inAll); /* Function for GLEW so that it can get a context */ GLEWAPI GLEWContext* glewGetContext(void); #ifndef HAVE_TLS /* This function initializes the thread management of QuesoGLC when TLS is not * available. It must be called once (see the macro GLC_INIT_THREAD) */ extern void __glcInitThread(void); #endif extern int __glcdeCasteljauConic(void *inUserData); extern int __glcdeCasteljauCubic(void *inUserData); #endif /* __glc_internal_h */ quesoglc-0.7.2/include/GL/0000777000175000017500000000000011164476311012300 500000000000000quesoglc-0.7.2/include/GL/wglew.h0000644000175000017500000001317310764574546013535 00000000000000/* ** The OpenGL Extension Wrangler Library ** Copyright (C) 2002-2008, Milan Ikits ** Copyright (C) 2002-2008, Marcelo E. Magallon ** Copyright (C) 2002, Lev Povalahev ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are met: ** ** * Redistributions of source code must retain the above copyright notice, ** this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright notice, ** this list of conditions and the following disclaimer in the documentation ** and/or other materials provided with the distribution. ** * The name of the author may be used to endorse or promote products ** derived from this software without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF ** THE POSSIBILITY OF SUCH DAMAGE. */ /* ** Copyright (c) 2007 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and/or associated documentation files (the ** "Materials"), to deal in the Materials without restriction, including ** without limitation the rights to use, copy, modify, merge, publish, ** distribute, sublicense, and/or sell copies of the Materials, and to ** permit persons to whom the Materials are furnished to do so, subject to ** the following conditions: ** ** The above copyright notice and this permission notice shall be included ** in all copies or substantial portions of the Materials. ** ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ #ifndef __wglew_h__ #define __wglew_h__ #define __WGLEW_H__ #ifdef __wglext_h_ #error wglext.h included before wglew.h #endif #define __wglext_h_ #if !defined(APIENTRY) && !defined(__CYGWIN__) # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN 1 # endif #include #endif /* * GLEW_STATIC needs to be set when using the static version. * GLEW_BUILD is set when building the DLL version. */ #ifdef GLEW_STATIC # define GLEWAPI extern #else # ifdef GLEW_BUILD # define GLEWAPI extern __declspec(dllexport) # else # define GLEWAPI extern __declspec(dllimport) # endif #endif #ifdef __cplusplus extern "C" { #endif /* ----------------------- WGL_ARB_extensions_string ----------------------- */ #ifndef WGL_ARB_extensions_string #define WGL_ARB_extensions_string 1 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc); #define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB) #define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string) #endif /* WGL_ARB_extensions_string */ /* ----------------------- WGL_EXT_extensions_string ----------------------- */ #ifndef WGL_EXT_extensions_string #define WGL_EXT_extensions_string 1 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void); #define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT) #define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string) #endif /* WGL_EXT_extensions_string */ /* ------------------------------------------------------------------------- */ #ifdef GLEW_MX #define WGLEW_EXPORT #else #define WGLEW_EXPORT GLEWAPI #endif /* GLEW_MX */ #ifdef GLEW_MX struct WGLEWContextStruct { #endif /* GLEW_MX */ WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB; WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT; WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string; WGLEW_EXPORT GLboolean __WGLEW_EXT_extensions_string; #ifdef GLEW_MX }; /* WGLEWContextStruct */ #endif /* GLEW_MX */ /* ------------------------------------------------------------------------- */ #ifdef GLEW_MX typedef struct WGLEWContextStruct WGLEWContext; GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx); GLEWAPI GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name); #define wglewInit() wglewContextInit(wglewGetContext()) #define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x) #define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x)) #define WGLEW_GET_FUN(x) wglewGetContext()->x #else /* GLEW_MX */ #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x) #define WGLEW_GET_FUN(x) x GLEWAPI GLboolean wglewIsSupported (const char* name); #endif /* GLEW_MX */ GLEWAPI GLboolean wglewGetExtension (const char* name); #ifdef __cplusplus } #endif #undef GLEWAPI #endif /* __wglew_h__ */ quesoglc-0.7.2/include/GL/glew.h0000644000175000017500000034633111021563345013331 00000000000000/* ** The OpenGL Extension Wrangler Library ** Copyright (C) 2002-2008, Milan Ikits ** Copyright (C) 2002-2008, Marcelo E. Magallon ** Copyright (C) 2002, Lev Povalahev ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are met: ** ** * Redistributions of source code must retain the above copyright notice, ** this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright notice, ** this list of conditions and the following disclaimer in the documentation ** and/or other materials provided with the distribution. ** * The name of the author may be used to endorse or promote products ** derived from this software without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF ** THE POSSIBILITY OF SUCH DAMAGE. */ /* * Mesa 3-D graphics library * Version: 7.0 * * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* ** Copyright (c) 2007 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and/or associated documentation files (the ** "Materials"), to deal in the Materials without restriction, including ** without limitation the rights to use, copy, modify, merge, publish, ** distribute, sublicense, and/or sell copies of the Materials, and to ** permit persons to whom the Materials are furnished to do so, subject to ** the following conditions: ** ** The above copyright notice and this permission notice shall be included ** in all copies or substantial portions of the Materials. ** ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ #ifndef __glew_h__ #define __glew_h__ #define __GLEW_H__ #if defined(__gl_h_) || defined(__GL_H__) #error gl.h included before glew.h #endif #if defined(__glext_h_) || defined(__GLEXT_H_) #error glext.h included before glew.h #endif #if defined(__gl_ATI_h_) #error glATI.h included before glew.h #endif #define __gl_h_ #define __GL_H__ #define __glext_h_ #define __GLEXT_H_ #define __gl_ATI_h_ #if defined(_WIN32) /* * GLEW does not include to avoid name space pollution. * GL needs GLAPI and GLAPIENTRY, GLU needs APIENTRY, CALLBACK, and wchar_t * defined properly. */ /* */ #ifndef APIENTRY #define GLEW_APIENTRY_DEFINED # if defined(__MINGW32__) # define APIENTRY __stdcall # elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) # define APIENTRY __stdcall # else # define APIENTRY # endif #endif #ifndef GLAPI # if defined(__MINGW32__) # define GLAPI extern # endif #endif /* */ #ifndef CALLBACK #define GLEW_CALLBACK_DEFINED # if defined(__MINGW32__) # define CALLBACK __attribute__ ((__stdcall__)) # elif (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS) # define CALLBACK __stdcall # else # define CALLBACK # endif #endif /* and */ #ifndef WINGDIAPI #define GLEW_WINGDIAPI_DEFINED #define WINGDIAPI __declspec(dllimport) #endif /* */ #if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(_WCHAR_T_DEFINED) typedef unsigned short wchar_t; # define _WCHAR_T_DEFINED #endif /* */ #if !defined(_W64) # if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300 # define _W64 __w64 # else # define _W64 # endif #endif #if !defined(_PTRDIFF_T_DEFINED) && !defined(_PTRDIFF_T_) # ifdef _WIN64 typedef __int64 ptrdiff_t; # else typedef _W64 int ptrdiff_t; # endif # define _PTRDIFF_T_DEFINED # define _PTRDIFF_T_ #endif /* */ #ifndef _STDINT_H #ifdef _WIN64 typedef __int64 int64_t; typedef unsigned __int64 uint64_t; #else typedef _W64 int int64_t; typedef _W64 unsigned int uint64_t; #endif #endif #ifndef GLAPI # if defined(__MINGW32__) # define GLAPI extern # else # define GLAPI WINGDIAPI # endif #endif #ifndef GLAPIENTRY #define GLAPIENTRY APIENTRY #endif /* * GLEW_STATIC needs to be set when using the static version. * GLEW_BUILD is set when building the DLL version. */ #ifdef GLEW_STATIC # define GLEWAPI extern #else # ifdef GLEW_BUILD # define GLEWAPI extern __declspec(dllexport) # else # define GLEWAPI extern __declspec(dllimport) # endif #endif #else /* _UNIX */ /* * Needed for ptrdiff_t in turn needed by VBO. This is defined by ISO * C. On my system, this amounts to _3 lines_ of included code, all of * them pretty much harmless. If you know of a way of detecting 32 vs * 64 _targets_ at compile time you are free to replace this with * something that's portable. For now, _this_ is the portable solution. * (mem, 2004-01-04) */ #include #include #define GLEW_APIENTRY_DEFINED #define APIENTRY #define GLEWAPI extern /* */ #ifndef GLAPI #define GLAPI extern #endif #ifndef GLAPIENTRY #define GLAPIENTRY #endif #endif /* _WIN32 */ #ifdef __cplusplus extern "C" { #endif /* ----------------------------- GL_VERSION_1_1 ---------------------------- */ #ifndef GL_VERSION_1_1 #define GL_VERSION_1_1 1 #if defined(__APPLE__) typedef unsigned long GLenum; typedef unsigned long GLbitfield; typedef unsigned long GLuint; typedef long GLint; typedef long GLsizei; #else typedef unsigned int GLenum; typedef unsigned int GLbitfield; typedef unsigned int GLuint; typedef int GLint; typedef int GLsizei; #endif typedef unsigned char GLboolean; typedef signed char GLbyte; typedef short GLshort; typedef unsigned char GLubyte; typedef unsigned short GLushort; typedef unsigned long GLulong; typedef float GLfloat; typedef float GLclampf; typedef double GLdouble; typedef double GLclampd; typedef void GLvoid; #if defined(_MSC_VER) && _MSC_VER < 1400 typedef __int64 GLint64EXT; typedef unsigned __int64 GLuint64EXT; #else typedef int64_t GLint64EXT; typedef uint64_t GLuint64EXT; #endif #define GL_ACCUM 0x0100 #define GL_LOAD 0x0101 #define GL_RETURN 0x0102 #define GL_MULT 0x0103 #define GL_ADD 0x0104 #define GL_NEVER 0x0200 #define GL_LESS 0x0201 #define GL_EQUAL 0x0202 #define GL_LEQUAL 0x0203 #define GL_GREATER 0x0204 #define GL_NOTEQUAL 0x0205 #define GL_GEQUAL 0x0206 #define GL_ALWAYS 0x0207 #define GL_CURRENT_BIT 0x00000001 #define GL_POINT_BIT 0x00000002 #define GL_LINE_BIT 0x00000004 #define GL_POLYGON_BIT 0x00000008 #define GL_POLYGON_STIPPLE_BIT 0x00000010 #define GL_PIXEL_MODE_BIT 0x00000020 #define GL_LIGHTING_BIT 0x00000040 #define GL_FOG_BIT 0x00000080 #define GL_DEPTH_BUFFER_BIT 0x00000100 #define GL_ACCUM_BUFFER_BIT 0x00000200 #define GL_STENCIL_BUFFER_BIT 0x00000400 #define GL_VIEWPORT_BIT 0x00000800 #define GL_TRANSFORM_BIT 0x00001000 #define GL_ENABLE_BIT 0x00002000 #define GL_COLOR_BUFFER_BIT 0x00004000 #define GL_HINT_BIT 0x00008000 #define GL_EVAL_BIT 0x00010000 #define GL_LIST_BIT 0x00020000 #define GL_TEXTURE_BIT 0x00040000 #define GL_SCISSOR_BIT 0x00080000 #define GL_ALL_ATTRIB_BITS 0x000fffff #define GL_POINTS 0x0000 #define GL_LINES 0x0001 #define GL_LINE_LOOP 0x0002 #define GL_LINE_STRIP 0x0003 #define GL_TRIANGLES 0x0004 #define GL_TRIANGLE_STRIP 0x0005 #define GL_TRIANGLE_FAN 0x0006 #define GL_QUADS 0x0007 #define GL_QUAD_STRIP 0x0008 #define GL_POLYGON 0x0009 #define GL_ZERO 0 #define GL_ONE 1 #define GL_SRC_COLOR 0x0300 #define GL_ONE_MINUS_SRC_COLOR 0x0301 #define GL_SRC_ALPHA 0x0302 #define GL_ONE_MINUS_SRC_ALPHA 0x0303 #define GL_DST_ALPHA 0x0304 #define GL_ONE_MINUS_DST_ALPHA 0x0305 #define GL_DST_COLOR 0x0306 #define GL_ONE_MINUS_DST_COLOR 0x0307 #define GL_SRC_ALPHA_SATURATE 0x0308 #define GL_TRUE 1 #define GL_FALSE 0 #define GL_CLIP_PLANE0 0x3000 #define GL_CLIP_PLANE1 0x3001 #define GL_CLIP_PLANE2 0x3002 #define GL_CLIP_PLANE3 0x3003 #define GL_CLIP_PLANE4 0x3004 #define GL_CLIP_PLANE5 0x3005 #define GL_BYTE 0x1400 #define GL_UNSIGNED_BYTE 0x1401 #define GL_SHORT 0x1402 #define GL_UNSIGNED_SHORT 0x1403 #define GL_INT 0x1404 #define GL_UNSIGNED_INT 0x1405 #define GL_FLOAT 0x1406 #define GL_2_BYTES 0x1407 #define GL_3_BYTES 0x1408 #define GL_4_BYTES 0x1409 #define GL_DOUBLE 0x140A #define GL_NONE 0 #define GL_FRONT_LEFT 0x0400 #define GL_FRONT_RIGHT 0x0401 #define GL_BACK_LEFT 0x0402 #define GL_BACK_RIGHT 0x0403 #define GL_FRONT 0x0404 #define GL_BACK 0x0405 #define GL_LEFT 0x0406 #define GL_RIGHT 0x0407 #define GL_FRONT_AND_BACK 0x0408 #define GL_AUX0 0x0409 #define GL_AUX1 0x040A #define GL_AUX2 0x040B #define GL_AUX3 0x040C #define GL_NO_ERROR 0 #define GL_INVALID_ENUM 0x0500 #define GL_INVALID_VALUE 0x0501 #define GL_INVALID_OPERATION 0x0502 #define GL_STACK_OVERFLOW 0x0503 #define GL_STACK_UNDERFLOW 0x0504 #define GL_OUT_OF_MEMORY 0x0505 #define GL_2D 0x0600 #define GL_3D 0x0601 #define GL_3D_COLOR 0x0602 #define GL_3D_COLOR_TEXTURE 0x0603 #define GL_4D_COLOR_TEXTURE 0x0604 #define GL_PASS_THROUGH_TOKEN 0x0700 #define GL_POINT_TOKEN 0x0701 #define GL_LINE_TOKEN 0x0702 #define GL_POLYGON_TOKEN 0x0703 #define GL_BITMAP_TOKEN 0x0704 #define GL_DRAW_PIXEL_TOKEN 0x0705 #define GL_COPY_PIXEL_TOKEN 0x0706 #define GL_LINE_RESET_TOKEN 0x0707 #define GL_EXP 0x0800 #define GL_EXP2 0x0801 #define GL_CW 0x0900 #define GL_CCW 0x0901 #define GL_COEFF 0x0A00 #define GL_ORDER 0x0A01 #define GL_DOMAIN 0x0A02 #define GL_CURRENT_COLOR 0x0B00 #define GL_CURRENT_INDEX 0x0B01 #define GL_CURRENT_NORMAL 0x0B02 #define GL_CURRENT_TEXTURE_COORDS 0x0B03 #define GL_CURRENT_RASTER_COLOR 0x0B04 #define GL_CURRENT_RASTER_INDEX 0x0B05 #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 #define GL_CURRENT_RASTER_POSITION 0x0B07 #define GL_CURRENT_RASTER_POSITION_VALID 0x0B08 #define GL_CURRENT_RASTER_DISTANCE 0x0B09 #define GL_POINT_SMOOTH 0x0B10 #define GL_POINT_SIZE 0x0B11 #define GL_POINT_SIZE_RANGE 0x0B12 #define GL_POINT_SIZE_GRANULARITY 0x0B13 #define GL_LINE_SMOOTH 0x0B20 #define GL_LINE_WIDTH 0x0B21 #define GL_LINE_WIDTH_RANGE 0x0B22 #define GL_LINE_WIDTH_GRANULARITY 0x0B23 #define GL_LINE_STIPPLE 0x0B24 #define GL_LINE_STIPPLE_PATTERN 0x0B25 #define GL_LINE_STIPPLE_REPEAT 0x0B26 #define GL_LIST_MODE 0x0B30 #define GL_MAX_LIST_NESTING 0x0B31 #define GL_LIST_BASE 0x0B32 #define GL_LIST_INDEX 0x0B33 #define GL_POLYGON_MODE 0x0B40 #define GL_POLYGON_SMOOTH 0x0B41 #define GL_POLYGON_STIPPLE 0x0B42 #define GL_EDGE_FLAG 0x0B43 #define GL_CULL_FACE 0x0B44 #define GL_CULL_FACE_MODE 0x0B45 #define GL_FRONT_FACE 0x0B46 #define GL_LIGHTING 0x0B50 #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 #define GL_LIGHT_MODEL_AMBIENT 0x0B53 #define GL_SHADE_MODEL 0x0B54 #define GL_COLOR_MATERIAL_FACE 0x0B55 #define GL_COLOR_MATERIAL_PARAMETER 0x0B56 #define GL_COLOR_MATERIAL 0x0B57 #define GL_FOG 0x0B60 #define GL_FOG_INDEX 0x0B61 #define GL_FOG_DENSITY 0x0B62 #define GL_FOG_START 0x0B63 #define GL_FOG_END 0x0B64 #define GL_FOG_MODE 0x0B65 #define GL_FOG_COLOR 0x0B66 #define GL_DEPTH_RANGE 0x0B70 #define GL_DEPTH_TEST 0x0B71 #define GL_DEPTH_WRITEMASK 0x0B72 #define GL_DEPTH_CLEAR_VALUE 0x0B73 #define GL_DEPTH_FUNC 0x0B74 #define GL_ACCUM_CLEAR_VALUE 0x0B80 #define GL_STENCIL_TEST 0x0B90 #define GL_STENCIL_CLEAR_VALUE 0x0B91 #define GL_STENCIL_FUNC 0x0B92 #define GL_STENCIL_VALUE_MASK 0x0B93 #define GL_STENCIL_FAIL 0x0B94 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 #define GL_STENCIL_REF 0x0B97 #define GL_STENCIL_WRITEMASK 0x0B98 #define GL_MATRIX_MODE 0x0BA0 #define GL_NORMALIZE 0x0BA1 #define GL_VIEWPORT 0x0BA2 #define GL_MODELVIEW_STACK_DEPTH 0x0BA3 #define GL_PROJECTION_STACK_DEPTH 0x0BA4 #define GL_TEXTURE_STACK_DEPTH 0x0BA5 #define GL_MODELVIEW_MATRIX 0x0BA6 #define GL_PROJECTION_MATRIX 0x0BA7 #define GL_TEXTURE_MATRIX 0x0BA8 #define GL_ATTRIB_STACK_DEPTH 0x0BB0 #define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 #define GL_ALPHA_TEST 0x0BC0 #define GL_ALPHA_TEST_FUNC 0x0BC1 #define GL_ALPHA_TEST_REF 0x0BC2 #define GL_DITHER 0x0BD0 #define GL_BLEND_DST 0x0BE0 #define GL_BLEND_SRC 0x0BE1 #define GL_BLEND 0x0BE2 #define GL_LOGIC_OP_MODE 0x0BF0 #define GL_INDEX_LOGIC_OP 0x0BF1 #define GL_COLOR_LOGIC_OP 0x0BF2 #define GL_AUX_BUFFERS 0x0C00 #define GL_DRAW_BUFFER 0x0C01 #define GL_READ_BUFFER 0x0C02 #define GL_SCISSOR_BOX 0x0C10 #define GL_SCISSOR_TEST 0x0C11 #define GL_INDEX_CLEAR_VALUE 0x0C20 #define GL_INDEX_WRITEMASK 0x0C21 #define GL_COLOR_CLEAR_VALUE 0x0C22 #define GL_COLOR_WRITEMASK 0x0C23 #define GL_INDEX_MODE 0x0C30 #define GL_RGBA_MODE 0x0C31 #define GL_DOUBLEBUFFER 0x0C32 #define GL_STEREO 0x0C33 #define GL_RENDER_MODE 0x0C40 #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 #define GL_POINT_SMOOTH_HINT 0x0C51 #define GL_LINE_SMOOTH_HINT 0x0C52 #define GL_POLYGON_SMOOTH_HINT 0x0C53 #define GL_FOG_HINT 0x0C54 #define GL_TEXTURE_GEN_S 0x0C60 #define GL_TEXTURE_GEN_T 0x0C61 #define GL_TEXTURE_GEN_R 0x0C62 #define GL_TEXTURE_GEN_Q 0x0C63 #define GL_PIXEL_MAP_I_TO_I 0x0C70 #define GL_PIXEL_MAP_S_TO_S 0x0C71 #define GL_PIXEL_MAP_I_TO_R 0x0C72 #define GL_PIXEL_MAP_I_TO_G 0x0C73 #define GL_PIXEL_MAP_I_TO_B 0x0C74 #define GL_PIXEL_MAP_I_TO_A 0x0C75 #define GL_PIXEL_MAP_R_TO_R 0x0C76 #define GL_PIXEL_MAP_G_TO_G 0x0C77 #define GL_PIXEL_MAP_B_TO_B 0x0C78 #define GL_PIXEL_MAP_A_TO_A 0x0C79 #define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0 #define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1 #define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2 #define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3 #define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4 #define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5 #define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6 #define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7 #define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8 #define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9 #define GL_UNPACK_SWAP_BYTES 0x0CF0 #define GL_UNPACK_LSB_FIRST 0x0CF1 #define GL_UNPACK_ROW_LENGTH 0x0CF2 #define GL_UNPACK_SKIP_ROWS 0x0CF3 #define GL_UNPACK_SKIP_PIXELS 0x0CF4 #define GL_UNPACK_ALIGNMENT 0x0CF5 #define GL_PACK_SWAP_BYTES 0x0D00 #define GL_PACK_LSB_FIRST 0x0D01 #define GL_PACK_ROW_LENGTH 0x0D02 #define GL_PACK_SKIP_ROWS 0x0D03 #define GL_PACK_SKIP_PIXELS 0x0D04 #define GL_PACK_ALIGNMENT 0x0D05 #define GL_MAP_COLOR 0x0D10 #define GL_MAP_STENCIL 0x0D11 #define GL_INDEX_SHIFT 0x0D12 #define GL_INDEX_OFFSET 0x0D13 #define GL_RED_SCALE 0x0D14 #define GL_RED_BIAS 0x0D15 #define GL_ZOOM_X 0x0D16 #define GL_ZOOM_Y 0x0D17 #define GL_GREEN_SCALE 0x0D18 #define GL_GREEN_BIAS 0x0D19 #define GL_BLUE_SCALE 0x0D1A #define GL_BLUE_BIAS 0x0D1B #define GL_ALPHA_SCALE 0x0D1C #define GL_ALPHA_BIAS 0x0D1D #define GL_DEPTH_SCALE 0x0D1E #define GL_DEPTH_BIAS 0x0D1F #define GL_MAX_EVAL_ORDER 0x0D30 #define GL_MAX_LIGHTS 0x0D31 #define GL_MAX_CLIP_PLANES 0x0D32 #define GL_MAX_TEXTURE_SIZE 0x0D33 #define GL_MAX_PIXEL_MAP_TABLE 0x0D34 #define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35 #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 #define GL_MAX_NAME_STACK_DEPTH 0x0D37 #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 #define GL_MAX_VIEWPORT_DIMS 0x0D3A #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B #define GL_SUBPIXEL_BITS 0x0D50 #define GL_INDEX_BITS 0x0D51 #define GL_RED_BITS 0x0D52 #define GL_GREEN_BITS 0x0D53 #define GL_BLUE_BITS 0x0D54 #define GL_ALPHA_BITS 0x0D55 #define GL_DEPTH_BITS 0x0D56 #define GL_STENCIL_BITS 0x0D57 #define GL_ACCUM_RED_BITS 0x0D58 #define GL_ACCUM_GREEN_BITS 0x0D59 #define GL_ACCUM_BLUE_BITS 0x0D5A #define GL_ACCUM_ALPHA_BITS 0x0D5B #define GL_NAME_STACK_DEPTH 0x0D70 #define GL_AUTO_NORMAL 0x0D80 #define GL_MAP1_COLOR_4 0x0D90 #define GL_MAP1_INDEX 0x0D91 #define GL_MAP1_NORMAL 0x0D92 #define GL_MAP1_TEXTURE_COORD_1 0x0D93 #define GL_MAP1_TEXTURE_COORD_2 0x0D94 #define GL_MAP1_TEXTURE_COORD_3 0x0D95 #define GL_MAP1_TEXTURE_COORD_4 0x0D96 #define GL_MAP1_VERTEX_3 0x0D97 #define GL_MAP1_VERTEX_4 0x0D98 #define GL_MAP2_COLOR_4 0x0DB0 #define GL_MAP2_INDEX 0x0DB1 #define GL_MAP2_NORMAL 0x0DB2 #define GL_MAP2_TEXTURE_COORD_1 0x0DB3 #define GL_MAP2_TEXTURE_COORD_2 0x0DB4 #define GL_MAP2_TEXTURE_COORD_3 0x0DB5 #define GL_MAP2_TEXTURE_COORD_4 0x0DB6 #define GL_MAP2_VERTEX_3 0x0DB7 #define GL_MAP2_VERTEX_4 0x0DB8 #define GL_MAP1_GRID_DOMAIN 0x0DD0 #define GL_MAP1_GRID_SEGMENTS 0x0DD1 #define GL_MAP2_GRID_DOMAIN 0x0DD2 #define GL_MAP2_GRID_SEGMENTS 0x0DD3 #define GL_TEXTURE_1D 0x0DE0 #define GL_TEXTURE_2D 0x0DE1 #define GL_FEEDBACK_BUFFER_POINTER 0x0DF0 #define GL_FEEDBACK_BUFFER_SIZE 0x0DF1 #define GL_FEEDBACK_BUFFER_TYPE 0x0DF2 #define GL_SELECTION_BUFFER_POINTER 0x0DF3 #define GL_SELECTION_BUFFER_SIZE 0x0DF4 #define GL_TEXTURE_WIDTH 0x1000 #define GL_TEXTURE_HEIGHT 0x1001 #define GL_TEXTURE_INTERNAL_FORMAT 0x1003 #define GL_TEXTURE_BORDER_COLOR 0x1004 #define GL_TEXTURE_BORDER 0x1005 #define GL_DONT_CARE 0x1100 #define GL_FASTEST 0x1101 #define GL_NICEST 0x1102 #define GL_LIGHT0 0x4000 #define GL_LIGHT1 0x4001 #define GL_LIGHT2 0x4002 #define GL_LIGHT3 0x4003 #define GL_LIGHT4 0x4004 #define GL_LIGHT5 0x4005 #define GL_LIGHT6 0x4006 #define GL_LIGHT7 0x4007 #define GL_AMBIENT 0x1200 #define GL_DIFFUSE 0x1201 #define GL_SPECULAR 0x1202 #define GL_POSITION 0x1203 #define GL_SPOT_DIRECTION 0x1204 #define GL_SPOT_EXPONENT 0x1205 #define GL_SPOT_CUTOFF 0x1206 #define GL_CONSTANT_ATTENUATION 0x1207 #define GL_LINEAR_ATTENUATION 0x1208 #define GL_QUADRATIC_ATTENUATION 0x1209 #define GL_COMPILE 0x1300 #define GL_COMPILE_AND_EXECUTE 0x1301 #define GL_CLEAR 0x1500 #define GL_AND 0x1501 #define GL_AND_REVERSE 0x1502 #define GL_COPY 0x1503 #define GL_AND_INVERTED 0x1504 #define GL_NOOP 0x1505 #define GL_XOR 0x1506 #define GL_OR 0x1507 #define GL_NOR 0x1508 #define GL_EQUIV 0x1509 #define GL_INVERT 0x150A #define GL_OR_REVERSE 0x150B #define GL_COPY_INVERTED 0x150C #define GL_OR_INVERTED 0x150D #define GL_NAND 0x150E #define GL_SET 0x150F #define GL_EMISSION 0x1600 #define GL_SHININESS 0x1601 #define GL_AMBIENT_AND_DIFFUSE 0x1602 #define GL_COLOR_INDEXES 0x1603 #define GL_MODELVIEW 0x1700 #define GL_PROJECTION 0x1701 #define GL_TEXTURE 0x1702 #define GL_COLOR 0x1800 #define GL_DEPTH 0x1801 #define GL_STENCIL 0x1802 #define GL_COLOR_INDEX 0x1900 #define GL_STENCIL_INDEX 0x1901 #define GL_DEPTH_COMPONENT 0x1902 #define GL_RED 0x1903 #define GL_GREEN 0x1904 #define GL_BLUE 0x1905 #define GL_ALPHA 0x1906 #define GL_RGB 0x1907 #define GL_RGBA 0x1908 #define GL_LUMINANCE 0x1909 #define GL_LUMINANCE_ALPHA 0x190A #define GL_BITMAP 0x1A00 #define GL_POINT 0x1B00 #define GL_LINE 0x1B01 #define GL_FILL 0x1B02 #define GL_RENDER 0x1C00 #define GL_FEEDBACK 0x1C01 #define GL_SELECT 0x1C02 #define GL_FLAT 0x1D00 #define GL_SMOOTH 0x1D01 #define GL_KEEP 0x1E00 #define GL_REPLACE 0x1E01 #define GL_INCR 0x1E02 #define GL_DECR 0x1E03 #define GL_VENDOR 0x1F00 #define GL_RENDERER 0x1F01 #define GL_VERSION 0x1F02 #define GL_EXTENSIONS 0x1F03 #define GL_S 0x2000 #define GL_T 0x2001 #define GL_R 0x2002 #define GL_Q 0x2003 #define GL_MODULATE 0x2100 #define GL_DECAL 0x2101 #define GL_TEXTURE_ENV_MODE 0x2200 #define GL_TEXTURE_ENV_COLOR 0x2201 #define GL_TEXTURE_ENV 0x2300 #define GL_EYE_LINEAR 0x2400 #define GL_OBJECT_LINEAR 0x2401 #define GL_SPHERE_MAP 0x2402 #define GL_TEXTURE_GEN_MODE 0x2500 #define GL_OBJECT_PLANE 0x2501 #define GL_EYE_PLANE 0x2502 #define GL_NEAREST 0x2600 #define GL_LINEAR 0x2601 #define GL_NEAREST_MIPMAP_NEAREST 0x2700 #define GL_LINEAR_MIPMAP_NEAREST 0x2701 #define GL_NEAREST_MIPMAP_LINEAR 0x2702 #define GL_LINEAR_MIPMAP_LINEAR 0x2703 #define GL_TEXTURE_MAG_FILTER 0x2800 #define GL_TEXTURE_MIN_FILTER 0x2801 #define GL_TEXTURE_WRAP_S 0x2802 #define GL_TEXTURE_WRAP_T 0x2803 #define GL_CLAMP 0x2900 #define GL_REPEAT 0x2901 #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001 #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 #define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff #define GL_POLYGON_OFFSET_FACTOR 0x8038 #define GL_POLYGON_OFFSET_UNITS 0x2A00 #define GL_POLYGON_OFFSET_POINT 0x2A01 #define GL_POLYGON_OFFSET_LINE 0x2A02 #define GL_POLYGON_OFFSET_FILL 0x8037 #define GL_ALPHA4 0x803B #define GL_ALPHA8 0x803C #define GL_ALPHA12 0x803D #define GL_ALPHA16 0x803E #define GL_LUMINANCE4 0x803F #define GL_LUMINANCE8 0x8040 #define GL_LUMINANCE12 0x8041 #define GL_LUMINANCE16 0x8042 #define GL_LUMINANCE4_ALPHA4 0x8043 #define GL_LUMINANCE6_ALPHA2 0x8044 #define GL_LUMINANCE8_ALPHA8 0x8045 #define GL_LUMINANCE12_ALPHA4 0x8046 #define GL_LUMINANCE12_ALPHA12 0x8047 #define GL_LUMINANCE16_ALPHA16 0x8048 #define GL_INTENSITY 0x8049 #define GL_INTENSITY4 0x804A #define GL_INTENSITY8 0x804B #define GL_INTENSITY12 0x804C #define GL_INTENSITY16 0x804D #define GL_R3_G3_B2 0x2A10 #define GL_RGB4 0x804F #define GL_RGB5 0x8050 #define GL_RGB8 0x8051 #define GL_RGB10 0x8052 #define GL_RGB12 0x8053 #define GL_RGB16 0x8054 #define GL_RGBA2 0x8055 #define GL_RGBA4 0x8056 #define GL_RGB5_A1 0x8057 #define GL_RGBA8 0x8058 #define GL_RGB10_A2 0x8059 #define GL_RGBA12 0x805A #define GL_RGBA16 0x805B #define GL_TEXTURE_RED_SIZE 0x805C #define GL_TEXTURE_GREEN_SIZE 0x805D #define GL_TEXTURE_BLUE_SIZE 0x805E #define GL_TEXTURE_ALPHA_SIZE 0x805F #define GL_TEXTURE_LUMINANCE_SIZE 0x8060 #define GL_TEXTURE_INTENSITY_SIZE 0x8061 #define GL_PROXY_TEXTURE_1D 0x8063 #define GL_PROXY_TEXTURE_2D 0x8064 #define GL_TEXTURE_PRIORITY 0x8066 #define GL_TEXTURE_RESIDENT 0x8067 #define GL_TEXTURE_BINDING_1D 0x8068 #define GL_TEXTURE_BINDING_2D 0x8069 #define GL_VERTEX_ARRAY 0x8074 #define GL_NORMAL_ARRAY 0x8075 #define GL_COLOR_ARRAY 0x8076 #define GL_INDEX_ARRAY 0x8077 #define GL_TEXTURE_COORD_ARRAY 0x8078 #define GL_EDGE_FLAG_ARRAY 0x8079 #define GL_VERTEX_ARRAY_SIZE 0x807A #define GL_VERTEX_ARRAY_TYPE 0x807B #define GL_VERTEX_ARRAY_STRIDE 0x807C #define GL_NORMAL_ARRAY_TYPE 0x807E #define GL_NORMAL_ARRAY_STRIDE 0x807F #define GL_COLOR_ARRAY_SIZE 0x8081 #define GL_COLOR_ARRAY_TYPE 0x8082 #define GL_COLOR_ARRAY_STRIDE 0x8083 #define GL_INDEX_ARRAY_TYPE 0x8085 #define GL_INDEX_ARRAY_STRIDE 0x8086 #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A #define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C #define GL_VERTEX_ARRAY_POINTER 0x808E #define GL_NORMAL_ARRAY_POINTER 0x808F #define GL_COLOR_ARRAY_POINTER 0x8090 #define GL_INDEX_ARRAY_POINTER 0x8091 #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 #define GL_EDGE_FLAG_ARRAY_POINTER 0x8093 #define GL_V2F 0x2A20 #define GL_V3F 0x2A21 #define GL_C4UB_V2F 0x2A22 #define GL_C4UB_V3F 0x2A23 #define GL_C3F_V3F 0x2A24 #define GL_N3F_V3F 0x2A25 #define GL_C4F_N3F_V3F 0x2A26 #define GL_T2F_V3F 0x2A27 #define GL_T4F_V4F 0x2A28 #define GL_T2F_C4UB_V3F 0x2A29 #define GL_T2F_C3F_V3F 0x2A2A #define GL_T2F_N3F_V3F 0x2A2B #define GL_T2F_C4F_N3F_V3F 0x2A2C #define GL_T4F_C4F_N3F_V4F 0x2A2D #define GL_LOGIC_OP GL_INDEX_LOGIC_OP #define GL_TEXTURE_COMPONENTS GL_TEXTURE_INTERNAL_FORMAT #define GL_COLOR_INDEX1_EXT 0x80E2 #define GL_COLOR_INDEX2_EXT 0x80E3 #define GL_COLOR_INDEX4_EXT 0x80E4 #define GL_COLOR_INDEX8_EXT 0x80E5 #define GL_COLOR_INDEX12_EXT 0x80E6 #define GL_COLOR_INDEX16_EXT 0x80E7 GLAPI void GLAPIENTRY glAccum (GLenum op, GLfloat value); GLAPI void GLAPIENTRY glAlphaFunc (GLenum func, GLclampf ref); GLAPI GLboolean GLAPIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences); GLAPI void GLAPIENTRY glArrayElement (GLint i); GLAPI void GLAPIENTRY glBegin (GLenum mode); GLAPI void GLAPIENTRY glBindTexture (GLenum target, GLuint texture); GLAPI void GLAPIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); GLAPI void GLAPIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); GLAPI void GLAPIENTRY glCallList (GLuint list); GLAPI void GLAPIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists); GLAPI void GLAPIENTRY glClear (GLbitfield mask); GLAPI void GLAPIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); GLAPI void GLAPIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); GLAPI void GLAPIENTRY glClearDepth (GLclampd depth); GLAPI void GLAPIENTRY glClearIndex (GLfloat c); GLAPI void GLAPIENTRY glClearStencil (GLint s); GLAPI void GLAPIENTRY glClipPlane (GLenum plane, const GLdouble *equation); GLAPI void GLAPIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue); GLAPI void GLAPIENTRY glColor3bv (const GLbyte *v); GLAPI void GLAPIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue); GLAPI void GLAPIENTRY glColor3dv (const GLdouble *v); GLAPI void GLAPIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue); GLAPI void GLAPIENTRY glColor3fv (const GLfloat *v); GLAPI void GLAPIENTRY glColor3i (GLint red, GLint green, GLint blue); GLAPI void GLAPIENTRY glColor3iv (const GLint *v); GLAPI void GLAPIENTRY glColor3s (GLshort red, GLshort green, GLshort blue); GLAPI void GLAPIENTRY glColor3sv (const GLshort *v); GLAPI void GLAPIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue); GLAPI void GLAPIENTRY glColor3ubv (const GLubyte *v); GLAPI void GLAPIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue); GLAPI void GLAPIENTRY glColor3uiv (const GLuint *v); GLAPI void GLAPIENTRY glColor3us (GLushort red, GLushort green, GLushort blue); GLAPI void GLAPIENTRY glColor3usv (const GLushort *v); GLAPI void GLAPIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); GLAPI void GLAPIENTRY glColor4bv (const GLbyte *v); GLAPI void GLAPIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); GLAPI void GLAPIENTRY glColor4dv (const GLdouble *v); GLAPI void GLAPIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); GLAPI void GLAPIENTRY glColor4fv (const GLfloat *v); GLAPI void GLAPIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha); GLAPI void GLAPIENTRY glColor4iv (const GLint *v); GLAPI void GLAPIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha); GLAPI void GLAPIENTRY glColor4sv (const GLshort *v); GLAPI void GLAPIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); GLAPI void GLAPIENTRY glColor4ubv (const GLubyte *v); GLAPI void GLAPIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha); GLAPI void GLAPIENTRY glColor4uiv (const GLuint *v); GLAPI void GLAPIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha); GLAPI void GLAPIENTRY glColor4usv (const GLushort *v); GLAPI void GLAPIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); GLAPI void GLAPIENTRY glColorMaterial (GLenum face, GLenum mode); GLAPI void GLAPIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); GLAPI void GLAPIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); GLAPI void GLAPIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); GLAPI void GLAPIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); GLAPI void GLAPIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); GLAPI void GLAPIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); GLAPI void GLAPIENTRY glCullFace (GLenum mode); GLAPI void GLAPIENTRY glDeleteLists (GLuint list, GLsizei range); GLAPI void GLAPIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); GLAPI void GLAPIENTRY glDepthFunc (GLenum func); GLAPI void GLAPIENTRY glDepthMask (GLboolean flag); GLAPI void GLAPIENTRY glDepthRange (GLclampd zNear, GLclampd zFar); GLAPI void GLAPIENTRY glDisable (GLenum cap); GLAPI void GLAPIENTRY glDisableClientState (GLenum array); GLAPI void GLAPIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); GLAPI void GLAPIENTRY glDrawBuffer (GLenum mode); GLAPI void GLAPIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); GLAPI void GLAPIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); GLAPI void GLAPIENTRY glEdgeFlag (GLboolean flag); GLAPI void GLAPIENTRY glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer); GLAPI void GLAPIENTRY glEdgeFlagv (const GLboolean *flag); GLAPI void GLAPIENTRY glEnable (GLenum cap); GLAPI void GLAPIENTRY glEnableClientState (GLenum array); GLAPI void GLAPIENTRY glEnd (void); GLAPI void GLAPIENTRY glEndList (void); GLAPI void GLAPIENTRY glEvalCoord1d (GLdouble u); GLAPI void GLAPIENTRY glEvalCoord1dv (const GLdouble *u); GLAPI void GLAPIENTRY glEvalCoord1f (GLfloat u); GLAPI void GLAPIENTRY glEvalCoord1fv (const GLfloat *u); GLAPI void GLAPIENTRY glEvalCoord2d (GLdouble u, GLdouble v); GLAPI void GLAPIENTRY glEvalCoord2dv (const GLdouble *u); GLAPI void GLAPIENTRY glEvalCoord2f (GLfloat u, GLfloat v); GLAPI void GLAPIENTRY glEvalCoord2fv (const GLfloat *u); GLAPI void GLAPIENTRY glEvalMesh1 (GLenum mode, GLint i1, GLint i2); GLAPI void GLAPIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); GLAPI void GLAPIENTRY glEvalPoint1 (GLint i); GLAPI void GLAPIENTRY glEvalPoint2 (GLint i, GLint j); GLAPI void GLAPIENTRY glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer); GLAPI void GLAPIENTRY glFinish (void); GLAPI void GLAPIENTRY glFlush (void); GLAPI void GLAPIENTRY glFogf (GLenum pname, GLfloat param); GLAPI void GLAPIENTRY glFogfv (GLenum pname, const GLfloat *params); GLAPI void GLAPIENTRY glFogi (GLenum pname, GLint param); GLAPI void GLAPIENTRY glFogiv (GLenum pname, const GLint *params); GLAPI void GLAPIENTRY glFrontFace (GLenum mode); GLAPI void GLAPIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); GLAPI GLuint GLAPIENTRY glGenLists (GLsizei range); GLAPI void GLAPIENTRY glGenTextures (GLsizei n, GLuint *textures); GLAPI void GLAPIENTRY glGetBooleanv (GLenum pname, GLboolean *params); GLAPI void GLAPIENTRY glGetClipPlane (GLenum plane, GLdouble *equation); GLAPI void GLAPIENTRY glGetDoublev (GLenum pname, GLdouble *params); GLAPI GLenum GLAPIENTRY glGetError (void); GLAPI void GLAPIENTRY glGetFloatv (GLenum pname, GLfloat *params); GLAPI void GLAPIENTRY glGetIntegerv (GLenum pname, GLint *params); GLAPI void GLAPIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params); GLAPI void GLAPIENTRY glGetLightiv (GLenum light, GLenum pname, GLint *params); GLAPI void GLAPIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v); GLAPI void GLAPIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v); GLAPI void GLAPIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v); GLAPI void GLAPIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params); GLAPI void GLAPIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params); GLAPI void GLAPIENTRY glGetPixelMapfv (GLenum map, GLfloat *values); GLAPI void GLAPIENTRY glGetPixelMapuiv (GLenum map, GLuint *values); GLAPI void GLAPIENTRY glGetPixelMapusv (GLenum map, GLushort *values); GLAPI void GLAPIENTRY glGetPointerv (GLenum pname, GLvoid* *params); GLAPI void GLAPIENTRY glGetPolygonStipple (GLubyte *mask); GLAPI const GLubyte * GLAPIENTRY glGetString (GLenum name); GLAPI void GLAPIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params); GLAPI void GLAPIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params); GLAPI void GLAPIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params); GLAPI void GLAPIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params); GLAPI void GLAPIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params); GLAPI void GLAPIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); GLAPI void GLAPIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params); GLAPI void GLAPIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params); GLAPI void GLAPIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); GLAPI void GLAPIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); GLAPI void GLAPIENTRY glHint (GLenum target, GLenum mode); GLAPI void GLAPIENTRY glIndexMask (GLuint mask); GLAPI void GLAPIENTRY glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer); GLAPI void GLAPIENTRY glIndexd (GLdouble c); GLAPI void GLAPIENTRY glIndexdv (const GLdouble *c); GLAPI void GLAPIENTRY glIndexf (GLfloat c); GLAPI void GLAPIENTRY glIndexfv (const GLfloat *c); GLAPI void GLAPIENTRY glIndexi (GLint c); GLAPI void GLAPIENTRY glIndexiv (const GLint *c); GLAPI void GLAPIENTRY glIndexs (GLshort c); GLAPI void GLAPIENTRY glIndexsv (const GLshort *c); GLAPI void GLAPIENTRY glIndexub (GLubyte c); GLAPI void GLAPIENTRY glIndexubv (const GLubyte *c); GLAPI void GLAPIENTRY glInitNames (void); GLAPI void GLAPIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer); GLAPI GLboolean GLAPIENTRY glIsEnabled (GLenum cap); GLAPI GLboolean GLAPIENTRY glIsList (GLuint list); GLAPI GLboolean GLAPIENTRY glIsTexture (GLuint texture); GLAPI void GLAPIENTRY glLightModelf (GLenum pname, GLfloat param); GLAPI void GLAPIENTRY glLightModelfv (GLenum pname, const GLfloat *params); GLAPI void GLAPIENTRY glLightModeli (GLenum pname, GLint param); GLAPI void GLAPIENTRY glLightModeliv (GLenum pname, const GLint *params); GLAPI void GLAPIENTRY glLightf (GLenum light, GLenum pname, GLfloat param); GLAPI void GLAPIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params); GLAPI void GLAPIENTRY glLighti (GLenum light, GLenum pname, GLint param); GLAPI void GLAPIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params); GLAPI void GLAPIENTRY glLineStipple (GLint factor, GLushort pattern); GLAPI void GLAPIENTRY glLineWidth (GLfloat width); GLAPI void GLAPIENTRY glListBase (GLuint base); GLAPI void GLAPIENTRY glLoadIdentity (void); GLAPI void GLAPIENTRY glLoadMatrixd (const GLdouble *m); GLAPI void GLAPIENTRY glLoadMatrixf (const GLfloat *m); GLAPI void GLAPIENTRY glLoadName (GLuint name); GLAPI void GLAPIENTRY glLogicOp (GLenum opcode); GLAPI void GLAPIENTRY glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); GLAPI void GLAPIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); GLAPI void GLAPIENTRY glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); GLAPI void GLAPIENTRY glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); GLAPI void GLAPIENTRY glMapGrid1d (GLint un, GLdouble u1, GLdouble u2); GLAPI void GLAPIENTRY glMapGrid1f (GLint un, GLfloat u1, GLfloat u2); GLAPI void GLAPIENTRY glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); GLAPI void GLAPIENTRY glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); GLAPI void GLAPIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param); GLAPI void GLAPIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params); GLAPI void GLAPIENTRY glMateriali (GLenum face, GLenum pname, GLint param); GLAPI void GLAPIENTRY glMaterialiv (GLenum face, GLenum pname, const GLint *params); GLAPI void GLAPIENTRY glMatrixMode (GLenum mode); GLAPI void GLAPIENTRY glMultMatrixd (const GLdouble *m); GLAPI void GLAPIENTRY glMultMatrixf (const GLfloat *m); GLAPI void GLAPIENTRY glNewList (GLuint list, GLenum mode); GLAPI void GLAPIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz); GLAPI void GLAPIENTRY glNormal3bv (const GLbyte *v); GLAPI void GLAPIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz); GLAPI void GLAPIENTRY glNormal3dv (const GLdouble *v); GLAPI void GLAPIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz); GLAPI void GLAPIENTRY glNormal3fv (const GLfloat *v); GLAPI void GLAPIENTRY glNormal3i (GLint nx, GLint ny, GLint nz); GLAPI void GLAPIENTRY glNormal3iv (const GLint *v); GLAPI void GLAPIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz); GLAPI void GLAPIENTRY glNormal3sv (const GLshort *v); GLAPI void GLAPIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer); GLAPI void GLAPIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); GLAPI void GLAPIENTRY glPassThrough (GLfloat token); GLAPI void GLAPIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values); GLAPI void GLAPIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values); GLAPI void GLAPIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values); GLAPI void GLAPIENTRY glPixelStoref (GLenum pname, GLfloat param); GLAPI void GLAPIENTRY glPixelStorei (GLenum pname, GLint param); GLAPI void GLAPIENTRY glPixelTransferf (GLenum pname, GLfloat param); GLAPI void GLAPIENTRY glPixelTransferi (GLenum pname, GLint param); GLAPI void GLAPIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor); GLAPI void GLAPIENTRY glPointSize (GLfloat size); GLAPI void GLAPIENTRY glPolygonMode (GLenum face, GLenum mode); GLAPI void GLAPIENTRY glPolygonOffset (GLfloat factor, GLfloat units); GLAPI void GLAPIENTRY glPolygonStipple (const GLubyte *mask); GLAPI void GLAPIENTRY glPopAttrib (void); GLAPI void GLAPIENTRY glPopClientAttrib (void); GLAPI void GLAPIENTRY glPopMatrix (void); GLAPI void GLAPIENTRY glPopName (void); GLAPI void GLAPIENTRY glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities); GLAPI void GLAPIENTRY glPushAttrib (GLbitfield mask); GLAPI void GLAPIENTRY glPushClientAttrib (GLbitfield mask); GLAPI void GLAPIENTRY glPushMatrix (void); GLAPI void GLAPIENTRY glPushName (GLuint name); GLAPI void GLAPIENTRY glRasterPos2d (GLdouble x, GLdouble y); GLAPI void GLAPIENTRY glRasterPos2dv (const GLdouble *v); GLAPI void GLAPIENTRY glRasterPos2f (GLfloat x, GLfloat y); GLAPI void GLAPIENTRY glRasterPos2fv (const GLfloat *v); GLAPI void GLAPIENTRY glRasterPos2i (GLint x, GLint y); GLAPI void GLAPIENTRY glRasterPos2iv (const GLint *v); GLAPI void GLAPIENTRY glRasterPos2s (GLshort x, GLshort y); GLAPI void GLAPIENTRY glRasterPos2sv (const GLshort *v); GLAPI void GLAPIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z); GLAPI void GLAPIENTRY glRasterPos3dv (const GLdouble *v); GLAPI void GLAPIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z); GLAPI void GLAPIENTRY glRasterPos3fv (const GLfloat *v); GLAPI void GLAPIENTRY glRasterPos3i (GLint x, GLint y, GLint z); GLAPI void GLAPIENTRY glRasterPos3iv (const GLint *v); GLAPI void GLAPIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z); GLAPI void GLAPIENTRY glRasterPos3sv (const GLshort *v); GLAPI void GLAPIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); GLAPI void GLAPIENTRY glRasterPos4dv (const GLdouble *v); GLAPI void GLAPIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); GLAPI void GLAPIENTRY glRasterPos4fv (const GLfloat *v); GLAPI void GLAPIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w); GLAPI void GLAPIENTRY glRasterPos4iv (const GLint *v); GLAPI void GLAPIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w); GLAPI void GLAPIENTRY glRasterPos4sv (const GLshort *v); GLAPI void GLAPIENTRY glReadBuffer (GLenum mode); GLAPI void GLAPIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); GLAPI void GLAPIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); GLAPI void GLAPIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2); GLAPI void GLAPIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); GLAPI void GLAPIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2); GLAPI void GLAPIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2); GLAPI void GLAPIENTRY glRectiv (const GLint *v1, const GLint *v2); GLAPI void GLAPIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2); GLAPI void GLAPIENTRY glRectsv (const GLshort *v1, const GLshort *v2); GLAPI GLint GLAPIENTRY glRenderMode (GLenum mode); GLAPI void GLAPIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z); GLAPI void GLAPIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); GLAPI void GLAPIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z); GLAPI void GLAPIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z); GLAPI void GLAPIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); GLAPI void GLAPIENTRY glSelectBuffer (GLsizei size, GLuint *buffer); GLAPI void GLAPIENTRY glShadeModel (GLenum mode); GLAPI void GLAPIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); GLAPI void GLAPIENTRY glStencilMask (GLuint mask); GLAPI void GLAPIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); GLAPI void GLAPIENTRY glTexCoord1d (GLdouble s); GLAPI void GLAPIENTRY glTexCoord1dv (const GLdouble *v); GLAPI void GLAPIENTRY glTexCoord1f (GLfloat s); GLAPI void GLAPIENTRY glTexCoord1fv (const GLfloat *v); GLAPI void GLAPIENTRY glTexCoord1i (GLint s); GLAPI void GLAPIENTRY glTexCoord1iv (const GLint *v); GLAPI void GLAPIENTRY glTexCoord1s (GLshort s); GLAPI void GLAPIENTRY glTexCoord1sv (const GLshort *v); GLAPI void GLAPIENTRY glTexCoord2d (GLdouble s, GLdouble t); GLAPI void GLAPIENTRY glTexCoord2dv (const GLdouble *v); GLAPI void GLAPIENTRY glTexCoord2f (GLfloat s, GLfloat t); GLAPI void GLAPIENTRY glTexCoord2fv (const GLfloat *v); GLAPI void GLAPIENTRY glTexCoord2i (GLint s, GLint t); GLAPI void GLAPIENTRY glTexCoord2iv (const GLint *v); GLAPI void GLAPIENTRY glTexCoord2s (GLshort s, GLshort t); GLAPI void GLAPIENTRY glTexCoord2sv (const GLshort *v); GLAPI void GLAPIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r); GLAPI void GLAPIENTRY glTexCoord3dv (const GLdouble *v); GLAPI void GLAPIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r); GLAPI void GLAPIENTRY glTexCoord3fv (const GLfloat *v); GLAPI void GLAPIENTRY glTexCoord3i (GLint s, GLint t, GLint r); GLAPI void GLAPIENTRY glTexCoord3iv (const GLint *v); GLAPI void GLAPIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r); GLAPI void GLAPIENTRY glTexCoord3sv (const GLshort *v); GLAPI void GLAPIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q); GLAPI void GLAPIENTRY glTexCoord4dv (const GLdouble *v); GLAPI void GLAPIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q); GLAPI void GLAPIENTRY glTexCoord4fv (const GLfloat *v); GLAPI void GLAPIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q); GLAPI void GLAPIENTRY glTexCoord4iv (const GLint *v); GLAPI void GLAPIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q); GLAPI void GLAPIENTRY glTexCoord4sv (const GLshort *v); GLAPI void GLAPIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); GLAPI void GLAPIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param); GLAPI void GLAPIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params); GLAPI void GLAPIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param); GLAPI void GLAPIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params); GLAPI void GLAPIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param); GLAPI void GLAPIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params); GLAPI void GLAPIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param); GLAPI void GLAPIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params); GLAPI void GLAPIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param); GLAPI void GLAPIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params); GLAPI void GLAPIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); GLAPI void GLAPIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); GLAPI void GLAPIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param); GLAPI void GLAPIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); GLAPI void GLAPIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); GLAPI void GLAPIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params); GLAPI void GLAPIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); GLAPI void GLAPIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); GLAPI void GLAPIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z); GLAPI void GLAPIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z); GLAPI void GLAPIENTRY glVertex2d (GLdouble x, GLdouble y); GLAPI void GLAPIENTRY glVertex2dv (const GLdouble *v); GLAPI void GLAPIENTRY glVertex2f (GLfloat x, GLfloat y); GLAPI void GLAPIENTRY glVertex2fv (const GLfloat *v); GLAPI void GLAPIENTRY glVertex2i (GLint x, GLint y); GLAPI void GLAPIENTRY glVertex2iv (const GLint *v); GLAPI void GLAPIENTRY glVertex2s (GLshort x, GLshort y); GLAPI void GLAPIENTRY glVertex2sv (const GLshort *v); GLAPI void GLAPIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z); GLAPI void GLAPIENTRY glVertex3dv (const GLdouble *v); GLAPI void GLAPIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z); GLAPI void GLAPIENTRY glVertex3fv (const GLfloat *v); GLAPI void GLAPIENTRY glVertex3i (GLint x, GLint y, GLint z); GLAPI void GLAPIENTRY glVertex3iv (const GLint *v); GLAPI void GLAPIENTRY glVertex3s (GLshort x, GLshort y, GLshort z); GLAPI void GLAPIENTRY glVertex3sv (const GLshort *v); GLAPI void GLAPIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); GLAPI void GLAPIENTRY glVertex4dv (const GLdouble *v); GLAPI void GLAPIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); GLAPI void GLAPIENTRY glVertex4fv (const GLfloat *v); GLAPI void GLAPIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w); GLAPI void GLAPIENTRY glVertex4iv (const GLint *v); GLAPI void GLAPIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w); GLAPI void GLAPIENTRY glVertex4sv (const GLshort *v); GLAPI void GLAPIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); #define GLEW_VERSION_1_1 GLEW_GET_VAR(__GLEW_VERSION_1_1) #endif /* GL_VERSION_1_1 */ /* ---------------------------------- GLU ---------------------------------- */ /* this is where we can safely include GLU */ #if defined(__APPLE__) && defined(__MACH__) #include #else #include #endif /* ----------------------------- GL_VERSION_1_2 ---------------------------- */ #ifndef GL_VERSION_1_2 #define GL_VERSION_1_2 1 #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12 #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13 #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23 #define GL_UNSIGNED_BYTE_3_3_2 0x8032 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034 #define GL_UNSIGNED_INT_8_8_8_8 0x8035 #define GL_UNSIGNED_INT_10_10_10_2 0x8036 #define GL_RESCALE_NORMAL 0x803A #define GL_TEXTURE_BINDING_3D 0x806A #define GL_PACK_SKIP_IMAGES 0x806B #define GL_PACK_IMAGE_HEIGHT 0x806C #define GL_UNPACK_SKIP_IMAGES 0x806D #define GL_UNPACK_IMAGE_HEIGHT 0x806E #define GL_TEXTURE_3D 0x806F #define GL_PROXY_TEXTURE_3D 0x8070 #define GL_TEXTURE_DEPTH 0x8071 #define GL_TEXTURE_WRAP_R 0x8072 #define GL_MAX_3D_TEXTURE_SIZE 0x8073 #define GL_BGR 0x80E0 #define GL_BGRA 0x80E1 #define GL_MAX_ELEMENTS_VERTICES 0x80E8 #define GL_MAX_ELEMENTS_INDICES 0x80E9 #define GL_CLAMP_TO_EDGE 0x812F #define GL_TEXTURE_MIN_LOD 0x813A #define GL_TEXTURE_MAX_LOD 0x813B #define GL_TEXTURE_BASE_LEVEL 0x813C #define GL_TEXTURE_MAX_LEVEL 0x813D #define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8 #define GL_SINGLE_COLOR 0x81F9 #define GL_SEPARATE_SPECULAR_COLOR 0x81FA #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362 #define GL_UNSIGNED_SHORT_5_6_5 0x8363 #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364 #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365 #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366 #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices); typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); #define glCopyTexSubImage3D GLEW_GET_FUN(__glewCopyTexSubImage3D) #define glDrawRangeElements GLEW_GET_FUN(__glewDrawRangeElements) #define glTexImage3D GLEW_GET_FUN(__glewTexImage3D) #define glTexSubImage3D GLEW_GET_FUN(__glewTexSubImage3D) #define GLEW_VERSION_1_2 GLEW_GET_VAR(__GLEW_VERSION_1_2) #endif /* GL_VERSION_1_2 */ /* ----------------------------- GL_VERSION_1_3 ---------------------------- */ #ifndef GL_VERSION_1_3 #define GL_VERSION_1_3 1 #define GL_MULTISAMPLE 0x809D #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E #define GL_SAMPLE_ALPHA_TO_ONE 0x809F #define GL_SAMPLE_COVERAGE 0x80A0 #define GL_SAMPLE_BUFFERS 0x80A8 #define GL_SAMPLES 0x80A9 #define GL_SAMPLE_COVERAGE_VALUE 0x80AA #define GL_SAMPLE_COVERAGE_INVERT 0x80AB #define GL_CLAMP_TO_BORDER 0x812D #define GL_TEXTURE0 0x84C0 #define GL_TEXTURE1 0x84C1 #define GL_TEXTURE2 0x84C2 #define GL_TEXTURE3 0x84C3 #define GL_TEXTURE4 0x84C4 #define GL_TEXTURE5 0x84C5 #define GL_TEXTURE6 0x84C6 #define GL_TEXTURE7 0x84C7 #define GL_TEXTURE8 0x84C8 #define GL_TEXTURE9 0x84C9 #define GL_TEXTURE10 0x84CA #define GL_TEXTURE11 0x84CB #define GL_TEXTURE12 0x84CC #define GL_TEXTURE13 0x84CD #define GL_TEXTURE14 0x84CE #define GL_TEXTURE15 0x84CF #define GL_TEXTURE16 0x84D0 #define GL_TEXTURE17 0x84D1 #define GL_TEXTURE18 0x84D2 #define GL_TEXTURE19 0x84D3 #define GL_TEXTURE20 0x84D4 #define GL_TEXTURE21 0x84D5 #define GL_TEXTURE22 0x84D6 #define GL_TEXTURE23 0x84D7 #define GL_TEXTURE24 0x84D8 #define GL_TEXTURE25 0x84D9 #define GL_TEXTURE26 0x84DA #define GL_TEXTURE27 0x84DB #define GL_TEXTURE28 0x84DC #define GL_TEXTURE29 0x84DD #define GL_TEXTURE30 0x84DE #define GL_TEXTURE31 0x84DF #define GL_ACTIVE_TEXTURE 0x84E0 #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1 #define GL_MAX_TEXTURE_UNITS 0x84E2 #define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3 #define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4 #define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5 #define GL_TRANSPOSE_COLOR_MATRIX 0x84E6 #define GL_SUBTRACT 0x84E7 #define GL_COMPRESSED_ALPHA 0x84E9 #define GL_COMPRESSED_LUMINANCE 0x84EA #define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB #define GL_COMPRESSED_INTENSITY 0x84EC #define GL_COMPRESSED_RGB 0x84ED #define GL_COMPRESSED_RGBA 0x84EE #define GL_TEXTURE_COMPRESSION_HINT 0x84EF #define GL_NORMAL_MAP 0x8511 #define GL_REFLECTION_MAP 0x8512 #define GL_TEXTURE_CUBE_MAP 0x8513 #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A #define GL_PROXY_TEXTURE_CUBE_MAP 0x851B #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C #define GL_COMBINE 0x8570 #define GL_COMBINE_RGB 0x8571 #define GL_COMBINE_ALPHA 0x8572 #define GL_RGB_SCALE 0x8573 #define GL_ADD_SIGNED 0x8574 #define GL_INTERPOLATE 0x8575 #define GL_CONSTANT 0x8576 #define GL_PRIMARY_COLOR 0x8577 #define GL_PREVIOUS 0x8578 #define GL_SOURCE0_RGB 0x8580 #define GL_SOURCE1_RGB 0x8581 #define GL_SOURCE2_RGB 0x8582 #define GL_SOURCE0_ALPHA 0x8588 #define GL_SOURCE1_ALPHA 0x8589 #define GL_SOURCE2_ALPHA 0x858A #define GL_OPERAND0_RGB 0x8590 #define GL_OPERAND1_RGB 0x8591 #define GL_OPERAND2_RGB 0x8592 #define GL_OPERAND0_ALPHA 0x8598 #define GL_OPERAND1_ALPHA 0x8599 #define GL_OPERAND2_ALPHA 0x859A #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 #define GL_TEXTURE_COMPRESSED 0x86A1 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3 #define GL_DOT3_RGB 0x86AE #define GL_DOT3_RGBA 0x86AF #define GL_MULTISAMPLE_BIT 0x20000000 typedef void (GLAPIENTRY * PFNGLACTIVETEXTUREPROC) (GLenum texture); typedef void (GLAPIENTRY * PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture); typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data); typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data); typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data); typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data); typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data); typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data); typedef void (GLAPIENTRY * PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLvoid *img); typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble m[16]); typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat m[16]); typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble m[16]); typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat m[16]); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q); typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v); typedef void (GLAPIENTRY * PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert); #define glActiveTexture GLEW_GET_FUN(__glewActiveTexture) #define glClientActiveTexture GLEW_GET_FUN(__glewClientActiveTexture) #define glCompressedTexImage1D GLEW_GET_FUN(__glewCompressedTexImage1D) #define glCompressedTexImage2D GLEW_GET_FUN(__glewCompressedTexImage2D) #define glCompressedTexImage3D GLEW_GET_FUN(__glewCompressedTexImage3D) #define glCompressedTexSubImage1D GLEW_GET_FUN(__glewCompressedTexSubImage1D) #define glCompressedTexSubImage2D GLEW_GET_FUN(__glewCompressedTexSubImage2D) #define glCompressedTexSubImage3D GLEW_GET_FUN(__glewCompressedTexSubImage3D) #define glGetCompressedTexImage GLEW_GET_FUN(__glewGetCompressedTexImage) #define glLoadTransposeMatrixd GLEW_GET_FUN(__glewLoadTransposeMatrixd) #define glLoadTransposeMatrixf GLEW_GET_FUN(__glewLoadTransposeMatrixf) #define glMultTransposeMatrixd GLEW_GET_FUN(__glewMultTransposeMatrixd) #define glMultTransposeMatrixf GLEW_GET_FUN(__glewMultTransposeMatrixf) #define glMultiTexCoord1d GLEW_GET_FUN(__glewMultiTexCoord1d) #define glMultiTexCoord1dv GLEW_GET_FUN(__glewMultiTexCoord1dv) #define glMultiTexCoord1f GLEW_GET_FUN(__glewMultiTexCoord1f) #define glMultiTexCoord1fv GLEW_GET_FUN(__glewMultiTexCoord1fv) #define glMultiTexCoord1i GLEW_GET_FUN(__glewMultiTexCoord1i) #define glMultiTexCoord1iv GLEW_GET_FUN(__glewMultiTexCoord1iv) #define glMultiTexCoord1s GLEW_GET_FUN(__glewMultiTexCoord1s) #define glMultiTexCoord1sv GLEW_GET_FUN(__glewMultiTexCoord1sv) #define glMultiTexCoord2d GLEW_GET_FUN(__glewMultiTexCoord2d) #define glMultiTexCoord2dv GLEW_GET_FUN(__glewMultiTexCoord2dv) #define glMultiTexCoord2f GLEW_GET_FUN(__glewMultiTexCoord2f) #define glMultiTexCoord2fv GLEW_GET_FUN(__glewMultiTexCoord2fv) #define glMultiTexCoord2i GLEW_GET_FUN(__glewMultiTexCoord2i) #define glMultiTexCoord2iv GLEW_GET_FUN(__glewMultiTexCoord2iv) #define glMultiTexCoord2s GLEW_GET_FUN(__glewMultiTexCoord2s) #define glMultiTexCoord2sv GLEW_GET_FUN(__glewMultiTexCoord2sv) #define glMultiTexCoord3d GLEW_GET_FUN(__glewMultiTexCoord3d) #define glMultiTexCoord3dv GLEW_GET_FUN(__glewMultiTexCoord3dv) #define glMultiTexCoord3f GLEW_GET_FUN(__glewMultiTexCoord3f) #define glMultiTexCoord3fv GLEW_GET_FUN(__glewMultiTexCoord3fv) #define glMultiTexCoord3i GLEW_GET_FUN(__glewMultiTexCoord3i) #define glMultiTexCoord3iv GLEW_GET_FUN(__glewMultiTexCoord3iv) #define glMultiTexCoord3s GLEW_GET_FUN(__glewMultiTexCoord3s) #define glMultiTexCoord3sv GLEW_GET_FUN(__glewMultiTexCoord3sv) #define glMultiTexCoord4d GLEW_GET_FUN(__glewMultiTexCoord4d) #define glMultiTexCoord4dv GLEW_GET_FUN(__glewMultiTexCoord4dv) #define glMultiTexCoord4f GLEW_GET_FUN(__glewMultiTexCoord4f) #define glMultiTexCoord4fv GLEW_GET_FUN(__glewMultiTexCoord4fv) #define glMultiTexCoord4i GLEW_GET_FUN(__glewMultiTexCoord4i) #define glMultiTexCoord4iv GLEW_GET_FUN(__glewMultiTexCoord4iv) #define glMultiTexCoord4s GLEW_GET_FUN(__glewMultiTexCoord4s) #define glMultiTexCoord4sv GLEW_GET_FUN(__glewMultiTexCoord4sv) #define glSampleCoverage GLEW_GET_FUN(__glewSampleCoverage) #define GLEW_VERSION_1_3 GLEW_GET_VAR(__GLEW_VERSION_1_3) #endif /* GL_VERSION_1_3 */ /* ----------------------------- GL_VERSION_1_4 ---------------------------- */ #ifndef GL_VERSION_1_4 #define GL_VERSION_1_4 1 #define GL_BLEND_DST_RGB 0x80C8 #define GL_BLEND_SRC_RGB 0x80C9 #define GL_BLEND_DST_ALPHA 0x80CA #define GL_BLEND_SRC_ALPHA 0x80CB #define GL_POINT_SIZE_MIN 0x8126 #define GL_POINT_SIZE_MAX 0x8127 #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128 #define GL_POINT_DISTANCE_ATTENUATION 0x8129 #define GL_GENERATE_MIPMAP 0x8191 #define GL_GENERATE_MIPMAP_HINT 0x8192 #define GL_DEPTH_COMPONENT16 0x81A5 #define GL_DEPTH_COMPONENT24 0x81A6 #define GL_DEPTH_COMPONENT32 0x81A7 #define GL_MIRRORED_REPEAT 0x8370 #define GL_FOG_COORDINATE_SOURCE 0x8450 #define GL_FOG_COORDINATE 0x8451 #define GL_FRAGMENT_DEPTH 0x8452 #define GL_CURRENT_FOG_COORDINATE 0x8453 #define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454 #define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455 #define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456 #define GL_FOG_COORDINATE_ARRAY 0x8457 #define GL_COLOR_SUM 0x8458 #define GL_CURRENT_SECONDARY_COLOR 0x8459 #define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A #define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B #define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C #define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D #define GL_SECONDARY_COLOR_ARRAY 0x845E #define GL_MAX_TEXTURE_LOD_BIAS 0x84FD #define GL_TEXTURE_FILTER_CONTROL 0x8500 #define GL_TEXTURE_LOD_BIAS 0x8501 #define GL_INCR_WRAP 0x8507 #define GL_DECR_WRAP 0x8508 #define GL_TEXTURE_DEPTH_SIZE 0x884A #define GL_DEPTH_TEXTURE_MODE 0x884B #define GL_TEXTURE_COMPARE_MODE 0x884C #define GL_TEXTURE_COMPARE_FUNC 0x884D #define GL_COMPARE_R_TO_TEXTURE 0x884E typedef void (GLAPIENTRY * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONPROC) (GLenum mode); typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); typedef void (GLAPIENTRY * PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (GLAPIENTRY * PFNGLFOGCOORDDPROC) (GLdouble coord); typedef void (GLAPIENTRY * PFNGLFOGCOORDDVPROC) (const GLdouble *coord); typedef void (GLAPIENTRY * PFNGLFOGCOORDFPROC) (GLfloat coord); typedef void (GLAPIENTRY * PFNGLFOGCOORDFVPROC) (const GLfloat *coord); typedef void (GLAPIENTRY * PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount); typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param); typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFVPROC) (GLenum pname, GLfloat *params); typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param); typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIVPROC) (GLenum pname, GLint *params); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v); typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer); typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y); typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DVPROC) (const GLdouble *p); typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y); typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FVPROC) (const GLfloat *p); typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IPROC) (GLint x, GLint y); typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IVPROC) (const GLint *p); typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y); typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SVPROC) (const GLshort *p); typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z); typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DVPROC) (const GLdouble *p); typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z); typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FVPROC) (const GLfloat *p); typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z); typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IVPROC) (const GLint *p); typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z); typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SVPROC) (const GLshort *p); #define glBlendColor GLEW_GET_FUN(__glewBlendColor) #define glBlendEquation GLEW_GET_FUN(__glewBlendEquation) #define glBlendFuncSeparate GLEW_GET_FUN(__glewBlendFuncSeparate) #define glFogCoordPointer GLEW_GET_FUN(__glewFogCoordPointer) #define glFogCoordd GLEW_GET_FUN(__glewFogCoordd) #define glFogCoorddv GLEW_GET_FUN(__glewFogCoorddv) #define glFogCoordf GLEW_GET_FUN(__glewFogCoordf) #define glFogCoordfv GLEW_GET_FUN(__glewFogCoordfv) #define glMultiDrawArrays GLEW_GET_FUN(__glewMultiDrawArrays) #define glMultiDrawElements GLEW_GET_FUN(__glewMultiDrawElements) #define glPointParameterf GLEW_GET_FUN(__glewPointParameterf) #define glPointParameterfv GLEW_GET_FUN(__glewPointParameterfv) #define glPointParameteri GLEW_GET_FUN(__glewPointParameteri) #define glPointParameteriv GLEW_GET_FUN(__glewPointParameteriv) #define glSecondaryColor3b GLEW_GET_FUN(__glewSecondaryColor3b) #define glSecondaryColor3bv GLEW_GET_FUN(__glewSecondaryColor3bv) #define glSecondaryColor3d GLEW_GET_FUN(__glewSecondaryColor3d) #define glSecondaryColor3dv GLEW_GET_FUN(__glewSecondaryColor3dv) #define glSecondaryColor3f GLEW_GET_FUN(__glewSecondaryColor3f) #define glSecondaryColor3fv GLEW_GET_FUN(__glewSecondaryColor3fv) #define glSecondaryColor3i GLEW_GET_FUN(__glewSecondaryColor3i) #define glSecondaryColor3iv GLEW_GET_FUN(__glewSecondaryColor3iv) #define glSecondaryColor3s GLEW_GET_FUN(__glewSecondaryColor3s) #define glSecondaryColor3sv GLEW_GET_FUN(__glewSecondaryColor3sv) #define glSecondaryColor3ub GLEW_GET_FUN(__glewSecondaryColor3ub) #define glSecondaryColor3ubv GLEW_GET_FUN(__glewSecondaryColor3ubv) #define glSecondaryColor3ui GLEW_GET_FUN(__glewSecondaryColor3ui) #define glSecondaryColor3uiv GLEW_GET_FUN(__glewSecondaryColor3uiv) #define glSecondaryColor3us GLEW_GET_FUN(__glewSecondaryColor3us) #define glSecondaryColor3usv GLEW_GET_FUN(__glewSecondaryColor3usv) #define glSecondaryColorPointer GLEW_GET_FUN(__glewSecondaryColorPointer) #define glWindowPos2d GLEW_GET_FUN(__glewWindowPos2d) #define glWindowPos2dv GLEW_GET_FUN(__glewWindowPos2dv) #define glWindowPos2f GLEW_GET_FUN(__glewWindowPos2f) #define glWindowPos2fv GLEW_GET_FUN(__glewWindowPos2fv) #define glWindowPos2i GLEW_GET_FUN(__glewWindowPos2i) #define glWindowPos2iv GLEW_GET_FUN(__glewWindowPos2iv) #define glWindowPos2s GLEW_GET_FUN(__glewWindowPos2s) #define glWindowPos2sv GLEW_GET_FUN(__glewWindowPos2sv) #define glWindowPos3d GLEW_GET_FUN(__glewWindowPos3d) #define glWindowPos3dv GLEW_GET_FUN(__glewWindowPos3dv) #define glWindowPos3f GLEW_GET_FUN(__glewWindowPos3f) #define glWindowPos3fv GLEW_GET_FUN(__glewWindowPos3fv) #define glWindowPos3i GLEW_GET_FUN(__glewWindowPos3i) #define glWindowPos3iv GLEW_GET_FUN(__glewWindowPos3iv) #define glWindowPos3s GLEW_GET_FUN(__glewWindowPos3s) #define glWindowPos3sv GLEW_GET_FUN(__glewWindowPos3sv) #define GLEW_VERSION_1_4 GLEW_GET_VAR(__GLEW_VERSION_1_4) #endif /* GL_VERSION_1_4 */ /* ----------------------------- GL_VERSION_1_5 ---------------------------- */ #ifndef GL_VERSION_1_5 #define GL_VERSION_1_5 1 #define GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE #define GL_FOG_COORD GL_FOG_COORDINATE #define GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY #define GL_SRC0_RGB GL_SOURCE0_RGB #define GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER #define GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE #define GL_SRC1_ALPHA GL_SOURCE1_ALPHA #define GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE #define GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE #define GL_SRC0_ALPHA GL_SOURCE0_ALPHA #define GL_SRC1_RGB GL_SOURCE1_RGB #define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING #define GL_SRC2_ALPHA GL_SOURCE2_ALPHA #define GL_SRC2_RGB GL_SOURCE2_RGB #define GL_BUFFER_SIZE 0x8764 #define GL_BUFFER_USAGE 0x8765 #define GL_QUERY_COUNTER_BITS 0x8864 #define GL_CURRENT_QUERY 0x8865 #define GL_QUERY_RESULT 0x8866 #define GL_QUERY_RESULT_AVAILABLE 0x8867 #define GL_ARRAY_BUFFER 0x8892 #define GL_ELEMENT_ARRAY_BUFFER 0x8893 #define GL_ARRAY_BUFFER_BINDING 0x8894 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896 #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897 #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898 #define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D #define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F #define GL_READ_ONLY 0x88B8 #define GL_WRITE_ONLY 0x88B9 #define GL_READ_WRITE 0x88BA #define GL_BUFFER_ACCESS 0x88BB #define GL_BUFFER_MAPPED 0x88BC #define GL_BUFFER_MAP_POINTER 0x88BD #define GL_STREAM_DRAW 0x88E0 #define GL_STREAM_READ 0x88E1 #define GL_STREAM_COPY 0x88E2 #define GL_STATIC_DRAW 0x88E4 #define GL_STATIC_READ 0x88E5 #define GL_STATIC_COPY 0x88E6 #define GL_DYNAMIC_DRAW 0x88E8 #define GL_DYNAMIC_READ 0x88E9 #define GL_DYNAMIC_COPY 0x88EA #define GL_SAMPLES_PASSED 0x8914 typedef ptrdiff_t GLsizeiptr; typedef ptrdiff_t GLintptr; typedef void (GLAPIENTRY * PFNGLBEGINQUERYPROC) (GLenum target, GLuint id); typedef void (GLAPIENTRY * PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer); typedef void (GLAPIENTRY * PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage); typedef void (GLAPIENTRY * PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data); typedef void (GLAPIENTRY * PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint* buffers); typedef void (GLAPIENTRY * PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint* ids); typedef void (GLAPIENTRY * PFNGLENDQUERYPROC) (GLenum target); typedef void (GLAPIENTRY * PFNGLGENBUFFERSPROC) (GLsizei n, GLuint* buffers); typedef void (GLAPIENTRY * PFNGLGENQUERIESPROC) (GLsizei n, GLuint* ids); typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params); typedef void (GLAPIENTRY * PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid** params); typedef void (GLAPIENTRY * PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data); typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint* params); typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint* params); typedef void (GLAPIENTRY * PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint* params); typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERPROC) (GLuint buffer); typedef GLboolean (GLAPIENTRY * PFNGLISQUERYPROC) (GLuint id); typedef GLvoid* (GLAPIENTRY * PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); typedef GLboolean (GLAPIENTRY * PFNGLUNMAPBUFFERPROC) (GLenum target); #define glBeginQuery GLEW_GET_FUN(__glewBeginQuery) #define glBindBuffer GLEW_GET_FUN(__glewBindBuffer) #define glBufferData GLEW_GET_FUN(__glewBufferData) #define glBufferSubData GLEW_GET_FUN(__glewBufferSubData) #define glDeleteBuffers GLEW_GET_FUN(__glewDeleteBuffers) #define glDeleteQueries GLEW_GET_FUN(__glewDeleteQueries) #define glEndQuery GLEW_GET_FUN(__glewEndQuery) #define glGenBuffers GLEW_GET_FUN(__glewGenBuffers) #define glGenQueries GLEW_GET_FUN(__glewGenQueries) #define glGetBufferParameteriv GLEW_GET_FUN(__glewGetBufferParameteriv) #define glGetBufferPointerv GLEW_GET_FUN(__glewGetBufferPointerv) #define glGetBufferSubData GLEW_GET_FUN(__glewGetBufferSubData) #define glGetQueryObjectiv GLEW_GET_FUN(__glewGetQueryObjectiv) #define glGetQueryObjectuiv GLEW_GET_FUN(__glewGetQueryObjectuiv) #define glGetQueryiv GLEW_GET_FUN(__glewGetQueryiv) #define glIsBuffer GLEW_GET_FUN(__glewIsBuffer) #define glIsQuery GLEW_GET_FUN(__glewIsQuery) #define glMapBuffer GLEW_GET_FUN(__glewMapBuffer) #define glUnmapBuffer GLEW_GET_FUN(__glewUnmapBuffer) #define GLEW_VERSION_1_5 GLEW_GET_VAR(__GLEW_VERSION_1_5) #endif /* GL_VERSION_1_5 */ /* ----------------------------- GL_VERSION_2_0 ---------------------------- */ #ifndef GL_VERSION_2_0 #define GL_VERSION_2_0 1 #define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622 #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624 #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625 #define GL_CURRENT_VERTEX_ATTRIB 0x8626 #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 #define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643 #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645 #define GL_STENCIL_BACK_FUNC 0x8800 #define GL_STENCIL_BACK_FAIL 0x8801 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802 #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803 #define GL_MAX_DRAW_BUFFERS 0x8824 #define GL_DRAW_BUFFER0 0x8825 #define GL_DRAW_BUFFER1 0x8826 #define GL_DRAW_BUFFER2 0x8827 #define GL_DRAW_BUFFER3 0x8828 #define GL_DRAW_BUFFER4 0x8829 #define GL_DRAW_BUFFER5 0x882A #define GL_DRAW_BUFFER6 0x882B #define GL_DRAW_BUFFER7 0x882C #define GL_DRAW_BUFFER8 0x882D #define GL_DRAW_BUFFER9 0x882E #define GL_DRAW_BUFFER10 0x882F #define GL_DRAW_BUFFER11 0x8830 #define GL_DRAW_BUFFER12 0x8831 #define GL_DRAW_BUFFER13 0x8832 #define GL_DRAW_BUFFER14 0x8833 #define GL_DRAW_BUFFER15 0x8834 #define GL_BLEND_EQUATION_ALPHA 0x883D #define GL_POINT_SPRITE 0x8861 #define GL_COORD_REPLACE 0x8862 #define GL_MAX_VERTEX_ATTRIBS 0x8869 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A #define GL_MAX_TEXTURE_COORDS 0x8871 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872 #define GL_FRAGMENT_SHADER 0x8B30 #define GL_VERTEX_SHADER 0x8B31 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A #define GL_MAX_VARYING_FLOATS 0x8B4B #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D #define GL_SHADER_TYPE 0x8B4F #define GL_FLOAT_VEC2 0x8B50 #define GL_FLOAT_VEC3 0x8B51 #define GL_FLOAT_VEC4 0x8B52 #define GL_INT_VEC2 0x8B53 #define GL_INT_VEC3 0x8B54 #define GL_INT_VEC4 0x8B55 #define GL_BOOL 0x8B56 #define GL_BOOL_VEC2 0x8B57 #define GL_BOOL_VEC3 0x8B58 #define GL_BOOL_VEC4 0x8B59 #define GL_FLOAT_MAT2 0x8B5A #define GL_FLOAT_MAT3 0x8B5B #define GL_FLOAT_MAT4 0x8B5C #define GL_SAMPLER_1D 0x8B5D #define GL_SAMPLER_2D 0x8B5E #define GL_SAMPLER_3D 0x8B5F #define GL_SAMPLER_CUBE 0x8B60 #define GL_SAMPLER_1D_SHADOW 0x8B61 #define GL_SAMPLER_2D_SHADOW 0x8B62 #define GL_DELETE_STATUS 0x8B80 #define GL_COMPILE_STATUS 0x8B81 #define GL_LINK_STATUS 0x8B82 #define GL_VALIDATE_STATUS 0x8B83 #define GL_INFO_LOG_LENGTH 0x8B84 #define GL_ATTACHED_SHADERS 0x8B85 #define GL_ACTIVE_UNIFORMS 0x8B86 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87 #define GL_SHADER_SOURCE_LENGTH 0x8B88 #define GL_ACTIVE_ATTRIBUTES 0x8B89 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B #define GL_SHADING_LANGUAGE_VERSION 0x8B8C #define GL_CURRENT_PROGRAM 0x8B8D #define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0 #define GL_LOWER_LEFT 0x8CA1 #define GL_UPPER_LEFT 0x8CA2 #define GL_STENCIL_BACK_REF 0x8CA3 #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4 #define GL_STENCIL_BACK_WRITEMASK 0x8CA5 typedef char GLchar; typedef void (GLAPIENTRY * PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader); typedef void (GLAPIENTRY * PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar* name); typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum, GLenum); typedef void (GLAPIENTRY * PFNGLCOMPILESHADERPROC) (GLuint shader); typedef GLuint (GLAPIENTRY * PFNGLCREATEPROGRAMPROC) (void); typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROC) (GLenum type); typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMPROC) (GLuint program); typedef void (GLAPIENTRY * PFNGLDELETESHADERPROC) (GLuint shader); typedef void (GLAPIENTRY * PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader); typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint); typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum* bufs); typedef void (GLAPIENTRY * PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint); typedef void (GLAPIENTRY * PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name); typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name); typedef void (GLAPIENTRY * PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei* count, GLuint* shaders); typedef GLint (GLAPIENTRY * PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar* name); typedef void (GLAPIENTRY * PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog); typedef void (GLAPIENTRY * PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint* param); typedef void (GLAPIENTRY * PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog); typedef void (GLAPIENTRY * PFNGLGETSHADERSOURCEPROC) (GLint obj, GLsizei maxLength, GLsizei* length, GLchar* source); typedef void (GLAPIENTRY * PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint* param); typedef GLint (GLAPIENTRY * PFNGLGETUNIFORMLOCATIONPROC) (GLint programObj, const GLchar* name); typedef void (GLAPIENTRY * PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat* params); typedef void (GLAPIENTRY * PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint* params); typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint, GLenum, GLvoid*); typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBDVPROC) (GLuint, GLenum, GLdouble*); typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBFVPROC) (GLuint, GLenum, GLfloat*); typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIVPROC) (GLuint, GLenum, GLint*); typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMPROC) (GLuint program); typedef GLboolean (GLAPIENTRY * PFNGLISSHADERPROC) (GLuint shader); typedef void (GLAPIENTRY * PFNGLLINKPROGRAMPROC) (GLuint program); typedef void (GLAPIENTRY * PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar** strings, const GLint* lengths); typedef void (GLAPIENTRY * PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); typedef void (GLAPIENTRY * PFNGLSTENCILMASKSEPARATEPROC) (GLenum, GLuint); typedef void (GLAPIENTRY * PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); typedef void (GLAPIENTRY * PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0); typedef void (GLAPIENTRY * PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat* value); typedef void (GLAPIENTRY * PFNGLUNIFORM1IPROC) (GLint location, GLint v0); typedef void (GLAPIENTRY * PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint* value); typedef void (GLAPIENTRY * PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1); typedef void (GLAPIENTRY * PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat* value); typedef void (GLAPIENTRY * PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1); typedef void (GLAPIENTRY * PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint* value); typedef void (GLAPIENTRY * PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2); typedef void (GLAPIENTRY * PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat* value); typedef void (GLAPIENTRY * PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2); typedef void (GLAPIENTRY * PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint* value); typedef void (GLAPIENTRY * PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); typedef void (GLAPIENTRY * PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat* value); typedef void (GLAPIENTRY * PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3); typedef void (GLAPIENTRY * PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint* value); typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); typedef void (GLAPIENTRY * PFNGLUSEPROGRAMPROC) (GLuint program); typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMPROC) (GLuint program); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort* v); typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* pointer); #define glAttachShader GLEW_GET_FUN(__glewAttachShader) #define glBindAttribLocation GLEW_GET_FUN(__glewBindAttribLocation) #define glBlendEquationSeparate GLEW_GET_FUN(__glewBlendEquationSeparate) #define glCompileShader GLEW_GET_FUN(__glewCompileShader) #define glCreateProgram GLEW_GET_FUN(__glewCreateProgram) #define glCreateShader GLEW_GET_FUN(__glewCreateShader) #define glDeleteProgram GLEW_GET_FUN(__glewDeleteProgram) #define glDeleteShader GLEW_GET_FUN(__glewDeleteShader) #define glDetachShader GLEW_GET_FUN(__glewDetachShader) #define glDisableVertexAttribArray GLEW_GET_FUN(__glewDisableVertexAttribArray) #define glDrawBuffers GLEW_GET_FUN(__glewDrawBuffers) #define glEnableVertexAttribArray GLEW_GET_FUN(__glewEnableVertexAttribArray) #define glGetActiveAttrib GLEW_GET_FUN(__glewGetActiveAttrib) #define glGetActiveUniform GLEW_GET_FUN(__glewGetActiveUniform) #define glGetAttachedShaders GLEW_GET_FUN(__glewGetAttachedShaders) #define glGetAttribLocation GLEW_GET_FUN(__glewGetAttribLocation) #define glGetProgramInfoLog GLEW_GET_FUN(__glewGetProgramInfoLog) #define glGetProgramiv GLEW_GET_FUN(__glewGetProgramiv) #define glGetShaderInfoLog GLEW_GET_FUN(__glewGetShaderInfoLog) #define glGetShaderSource GLEW_GET_FUN(__glewGetShaderSource) #define glGetShaderiv GLEW_GET_FUN(__glewGetShaderiv) #define glGetUniformLocation GLEW_GET_FUN(__glewGetUniformLocation) #define glGetUniformfv GLEW_GET_FUN(__glewGetUniformfv) #define glGetUniformiv GLEW_GET_FUN(__glewGetUniformiv) #define glGetVertexAttribPointerv GLEW_GET_FUN(__glewGetVertexAttribPointerv) #define glGetVertexAttribdv GLEW_GET_FUN(__glewGetVertexAttribdv) #define glGetVertexAttribfv GLEW_GET_FUN(__glewGetVertexAttribfv) #define glGetVertexAttribiv GLEW_GET_FUN(__glewGetVertexAttribiv) #define glIsProgram GLEW_GET_FUN(__glewIsProgram) #define glIsShader GLEW_GET_FUN(__glewIsShader) #define glLinkProgram GLEW_GET_FUN(__glewLinkProgram) #define glShaderSource GLEW_GET_FUN(__glewShaderSource) #define glStencilFuncSeparate GLEW_GET_FUN(__glewStencilFuncSeparate) #define glStencilMaskSeparate GLEW_GET_FUN(__glewStencilMaskSeparate) #define glStencilOpSeparate GLEW_GET_FUN(__glewStencilOpSeparate) #define glUniform1f GLEW_GET_FUN(__glewUniform1f) #define glUniform1fv GLEW_GET_FUN(__glewUniform1fv) #define glUniform1i GLEW_GET_FUN(__glewUniform1i) #define glUniform1iv GLEW_GET_FUN(__glewUniform1iv) #define glUniform2f GLEW_GET_FUN(__glewUniform2f) #define glUniform2fv GLEW_GET_FUN(__glewUniform2fv) #define glUniform2i GLEW_GET_FUN(__glewUniform2i) #define glUniform2iv GLEW_GET_FUN(__glewUniform2iv) #define glUniform3f GLEW_GET_FUN(__glewUniform3f) #define glUniform3fv GLEW_GET_FUN(__glewUniform3fv) #define glUniform3i GLEW_GET_FUN(__glewUniform3i) #define glUniform3iv GLEW_GET_FUN(__glewUniform3iv) #define glUniform4f GLEW_GET_FUN(__glewUniform4f) #define glUniform4fv GLEW_GET_FUN(__glewUniform4fv) #define glUniform4i GLEW_GET_FUN(__glewUniform4i) #define glUniform4iv GLEW_GET_FUN(__glewUniform4iv) #define glUniformMatrix2fv GLEW_GET_FUN(__glewUniformMatrix2fv) #define glUniformMatrix3fv GLEW_GET_FUN(__glewUniformMatrix3fv) #define glUniformMatrix4fv GLEW_GET_FUN(__glewUniformMatrix4fv) #define glUseProgram GLEW_GET_FUN(__glewUseProgram) #define glValidateProgram GLEW_GET_FUN(__glewValidateProgram) #define glVertexAttrib1d GLEW_GET_FUN(__glewVertexAttrib1d) #define glVertexAttrib1dv GLEW_GET_FUN(__glewVertexAttrib1dv) #define glVertexAttrib1f GLEW_GET_FUN(__glewVertexAttrib1f) #define glVertexAttrib1fv GLEW_GET_FUN(__glewVertexAttrib1fv) #define glVertexAttrib1s GLEW_GET_FUN(__glewVertexAttrib1s) #define glVertexAttrib1sv GLEW_GET_FUN(__glewVertexAttrib1sv) #define glVertexAttrib2d GLEW_GET_FUN(__glewVertexAttrib2d) #define glVertexAttrib2dv GLEW_GET_FUN(__glewVertexAttrib2dv) #define glVertexAttrib2f GLEW_GET_FUN(__glewVertexAttrib2f) #define glVertexAttrib2fv GLEW_GET_FUN(__glewVertexAttrib2fv) #define glVertexAttrib2s GLEW_GET_FUN(__glewVertexAttrib2s) #define glVertexAttrib2sv GLEW_GET_FUN(__glewVertexAttrib2sv) #define glVertexAttrib3d GLEW_GET_FUN(__glewVertexAttrib3d) #define glVertexAttrib3dv GLEW_GET_FUN(__glewVertexAttrib3dv) #define glVertexAttrib3f GLEW_GET_FUN(__glewVertexAttrib3f) #define glVertexAttrib3fv GLEW_GET_FUN(__glewVertexAttrib3fv) #define glVertexAttrib3s GLEW_GET_FUN(__glewVertexAttrib3s) #define glVertexAttrib3sv GLEW_GET_FUN(__glewVertexAttrib3sv) #define glVertexAttrib4Nbv GLEW_GET_FUN(__glewVertexAttrib4Nbv) #define glVertexAttrib4Niv GLEW_GET_FUN(__glewVertexAttrib4Niv) #define glVertexAttrib4Nsv GLEW_GET_FUN(__glewVertexAttrib4Nsv) #define glVertexAttrib4Nub GLEW_GET_FUN(__glewVertexAttrib4Nub) #define glVertexAttrib4Nubv GLEW_GET_FUN(__glewVertexAttrib4Nubv) #define glVertexAttrib4Nuiv GLEW_GET_FUN(__glewVertexAttrib4Nuiv) #define glVertexAttrib4Nusv GLEW_GET_FUN(__glewVertexAttrib4Nusv) #define glVertexAttrib4bv GLEW_GET_FUN(__glewVertexAttrib4bv) #define glVertexAttrib4d GLEW_GET_FUN(__glewVertexAttrib4d) #define glVertexAttrib4dv GLEW_GET_FUN(__glewVertexAttrib4dv) #define glVertexAttrib4f GLEW_GET_FUN(__glewVertexAttrib4f) #define glVertexAttrib4fv GLEW_GET_FUN(__glewVertexAttrib4fv) #define glVertexAttrib4iv GLEW_GET_FUN(__glewVertexAttrib4iv) #define glVertexAttrib4s GLEW_GET_FUN(__glewVertexAttrib4s) #define glVertexAttrib4sv GLEW_GET_FUN(__glewVertexAttrib4sv) #define glVertexAttrib4ubv GLEW_GET_FUN(__glewVertexAttrib4ubv) #define glVertexAttrib4uiv GLEW_GET_FUN(__glewVertexAttrib4uiv) #define glVertexAttrib4usv GLEW_GET_FUN(__glewVertexAttrib4usv) #define glVertexAttribPointer GLEW_GET_FUN(__glewVertexAttribPointer) #define GLEW_VERSION_2_0 GLEW_GET_VAR(__GLEW_VERSION_2_0) #endif /* GL_VERSION_2_0 */ /* ----------------------------- GL_VERSION_2_1 ---------------------------- */ #ifndef GL_VERSION_2_1 #define GL_VERSION_2_1 1 #define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F #define GL_PIXEL_PACK_BUFFER 0x88EB #define GL_PIXEL_UNPACK_BUFFER 0x88EC #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF #define GL_FLOAT_MAT2x3 0x8B65 #define GL_FLOAT_MAT2x4 0x8B66 #define GL_FLOAT_MAT3x2 0x8B67 #define GL_FLOAT_MAT3x4 0x8B68 #define GL_FLOAT_MAT4x2 0x8B69 #define GL_FLOAT_MAT4x3 0x8B6A #define GL_SRGB 0x8C40 #define GL_SRGB8 0x8C41 #define GL_SRGB_ALPHA 0x8C42 #define GL_SRGB8_ALPHA8 0x8C43 #define GL_SLUMINANCE_ALPHA 0x8C44 #define GL_SLUMINANCE8_ALPHA8 0x8C45 #define GL_SLUMINANCE 0x8C46 #define GL_SLUMINANCE8 0x8C47 #define GL_COMPRESSED_SRGB 0x8C48 #define GL_COMPRESSED_SRGB_ALPHA 0x8C49 #define GL_COMPRESSED_SLUMINANCE 0x8C4A #define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); #define glUniformMatrix2x3fv GLEW_GET_FUN(__glewUniformMatrix2x3fv) #define glUniformMatrix2x4fv GLEW_GET_FUN(__glewUniformMatrix2x4fv) #define glUniformMatrix3x2fv GLEW_GET_FUN(__glewUniformMatrix3x2fv) #define glUniformMatrix3x4fv GLEW_GET_FUN(__glewUniformMatrix3x4fv) #define glUniformMatrix4x2fv GLEW_GET_FUN(__glewUniformMatrix4x2fv) #define glUniformMatrix4x3fv GLEW_GET_FUN(__glewUniformMatrix4x3fv) #define GLEW_VERSION_2_1 GLEW_GET_VAR(__GLEW_VERSION_2_1) #endif /* GL_VERSION_2_1 */ /* ----------------------- GL_ARB_pixel_buffer_object ---------------------- */ #ifndef GL_ARB_pixel_buffer_object #define GL_ARB_pixel_buffer_object 1 #define GL_PIXEL_PACK_BUFFER_ARB 0x88EB #define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC #define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED #define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF #define GLEW_ARB_pixel_buffer_object GLEW_GET_VAR(__GLEW_ARB_pixel_buffer_object) #endif /* GL_ARB_pixel_buffer_object */ /* ---------------------- GL_ARB_vertex_buffer_object ---------------------- */ #ifndef GL_ARB_vertex_buffer_object #define GL_ARB_vertex_buffer_object 1 #define GL_BUFFER_SIZE_ARB 0x8764 #define GL_BUFFER_USAGE_ARB 0x8765 #define GL_ARRAY_BUFFER_ARB 0x8892 #define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893 #define GL_ARRAY_BUFFER_BINDING_ARB 0x8894 #define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895 #define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896 #define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897 #define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898 #define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D #define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F #define GL_READ_ONLY_ARB 0x88B8 #define GL_WRITE_ONLY_ARB 0x88B9 #define GL_READ_WRITE_ARB 0x88BA #define GL_BUFFER_ACCESS_ARB 0x88BB #define GL_BUFFER_MAPPED_ARB 0x88BC #define GL_BUFFER_MAP_POINTER_ARB 0x88BD #define GL_STREAM_DRAW_ARB 0x88E0 #define GL_STREAM_READ_ARB 0x88E1 #define GL_STREAM_COPY_ARB 0x88E2 #define GL_STATIC_DRAW_ARB 0x88E4 #define GL_STATIC_READ_ARB 0x88E5 #define GL_STATIC_COPY_ARB 0x88E6 #define GL_DYNAMIC_DRAW_ARB 0x88E8 #define GL_DYNAMIC_READ_ARB 0x88E9 #define GL_DYNAMIC_COPY_ARB 0x88EA typedef ptrdiff_t GLsizeiptrARB; typedef ptrdiff_t GLintptrARB; typedef void (GLAPIENTRY * PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer); typedef void (GLAPIENTRY * PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid* data, GLenum usage); typedef void (GLAPIENTRY * PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid* data); typedef void (GLAPIENTRY * PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint* buffers); typedef void (GLAPIENTRY * PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint* buffers); typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint* params); typedef void (GLAPIENTRY * PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid** params); typedef void (GLAPIENTRY * PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid* data); typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERARBPROC) (GLuint buffer); typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access); typedef GLboolean (GLAPIENTRY * PFNGLUNMAPBUFFERARBPROC) (GLenum target); #define glBindBufferARB GLEW_GET_FUN(__glewBindBufferARB) #define glBufferDataARB GLEW_GET_FUN(__glewBufferDataARB) #define glBufferSubDataARB GLEW_GET_FUN(__glewBufferSubDataARB) #define glDeleteBuffersARB GLEW_GET_FUN(__glewDeleteBuffersARB) #define glGenBuffersARB GLEW_GET_FUN(__glewGenBuffersARB) #define glGetBufferParameterivARB GLEW_GET_FUN(__glewGetBufferParameterivARB) #define glGetBufferPointervARB GLEW_GET_FUN(__glewGetBufferPointervARB) #define glGetBufferSubDataARB GLEW_GET_FUN(__glewGetBufferSubDataARB) #define glIsBufferARB GLEW_GET_FUN(__glewIsBufferARB) #define glMapBufferARB GLEW_GET_FUN(__glewMapBufferARB) #define glUnmapBufferARB GLEW_GET_FUN(__glewUnmapBufferARB) #define GLEW_ARB_vertex_buffer_object GLEW_GET_VAR(__GLEW_ARB_vertex_buffer_object) #endif /* GL_ARB_vertex_buffer_object */ /* -------------------------- GL_SGIS_texture_lod -------------------------- */ #ifndef GL_SGIS_texture_lod #define GL_SGIS_texture_lod 1 #define GL_TEXTURE_MIN_LOD_SGIS 0x813A #define GL_TEXTURE_MAX_LOD_SGIS 0x813B #define GL_TEXTURE_BASE_LEVEL_SGIS 0x813C #define GL_TEXTURE_MAX_LEVEL_SGIS 0x813D #define GLEW_SGIS_texture_lod GLEW_GET_VAR(__GLEW_SGIS_texture_lod) #endif /* GL_SGIS_texture_lod */ /* ------------------------------------------------------------------------- */ #if defined(GLEW_MX) && defined(_WIN32) #define GLEW_FUN_EXPORT #else #define GLEW_FUN_EXPORT GLEWAPI #endif /* GLEW_MX */ #if defined(GLEW_MX) #define GLEW_VAR_EXPORT #else #define GLEW_VAR_EXPORT GLEWAPI #endif /* GLEW_MX */ #if defined(GLEW_MX) && defined(_WIN32) struct GLEWContextStruct { #endif /* GLEW_MX */ GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE3DPROC __glewCopyTexSubImage3D; GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTSPROC __glewDrawRangeElements; GLEW_FUN_EXPORT PFNGLTEXIMAGE3DPROC __glewTexImage3D; GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE3DPROC __glewTexSubImage3D; GLEW_FUN_EXPORT PFNGLACTIVETEXTUREPROC __glewActiveTexture; GLEW_FUN_EXPORT PFNGLCLIENTACTIVETEXTUREPROC __glewClientActiveTexture; GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE1DPROC __glewCompressedTexImage1D; GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE2DPROC __glewCompressedTexImage2D; GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE3DPROC __glewCompressedTexImage3D; GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC __glewCompressedTexSubImage1D; GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC __glewCompressedTexSubImage2D; GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC __glewCompressedTexSubImage3D; GLEW_FUN_EXPORT PFNGLGETCOMPRESSEDTEXIMAGEPROC __glewGetCompressedTexImage; GLEW_FUN_EXPORT PFNGLLOADTRANSPOSEMATRIXDPROC __glewLoadTransposeMatrixd; GLEW_FUN_EXPORT PFNGLLOADTRANSPOSEMATRIXFPROC __glewLoadTransposeMatrixf; GLEW_FUN_EXPORT PFNGLMULTTRANSPOSEMATRIXDPROC __glewMultTransposeMatrixd; GLEW_FUN_EXPORT PFNGLMULTTRANSPOSEMATRIXFPROC __glewMultTransposeMatrixf; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1DPROC __glewMultiTexCoord1d; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1DVPROC __glewMultiTexCoord1dv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1FPROC __glewMultiTexCoord1f; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1FVPROC __glewMultiTexCoord1fv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1IPROC __glewMultiTexCoord1i; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1IVPROC __glewMultiTexCoord1iv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1SPROC __glewMultiTexCoord1s; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD1SVPROC __glewMultiTexCoord1sv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2DPROC __glewMultiTexCoord2d; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2DVPROC __glewMultiTexCoord2dv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2FPROC __glewMultiTexCoord2f; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2FVPROC __glewMultiTexCoord2fv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2IPROC __glewMultiTexCoord2i; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2IVPROC __glewMultiTexCoord2iv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2SPROC __glewMultiTexCoord2s; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD2SVPROC __glewMultiTexCoord2sv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3DPROC __glewMultiTexCoord3d; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3DVPROC __glewMultiTexCoord3dv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3FPROC __glewMultiTexCoord3f; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3FVPROC __glewMultiTexCoord3fv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3IPROC __glewMultiTexCoord3i; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3IVPROC __glewMultiTexCoord3iv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3SPROC __glewMultiTexCoord3s; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD3SVPROC __glewMultiTexCoord3sv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4DPROC __glewMultiTexCoord4d; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4DVPROC __glewMultiTexCoord4dv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4FPROC __glewMultiTexCoord4f; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4FVPROC __glewMultiTexCoord4fv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4IPROC __glewMultiTexCoord4i; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4IVPROC __glewMultiTexCoord4iv; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4SPROC __glewMultiTexCoord4s; GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4SVPROC __glewMultiTexCoord4sv; GLEW_FUN_EXPORT PFNGLSAMPLECOVERAGEPROC __glewSampleCoverage; GLEW_FUN_EXPORT PFNGLBLENDCOLORPROC __glewBlendColor; GLEW_FUN_EXPORT PFNGLBLENDEQUATIONPROC __glewBlendEquation; GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEPROC __glewBlendFuncSeparate; GLEW_FUN_EXPORT PFNGLFOGCOORDPOINTERPROC __glewFogCoordPointer; GLEW_FUN_EXPORT PFNGLFOGCOORDDPROC __glewFogCoordd; GLEW_FUN_EXPORT PFNGLFOGCOORDDVPROC __glewFogCoorddv; GLEW_FUN_EXPORT PFNGLFOGCOORDFPROC __glewFogCoordf; GLEW_FUN_EXPORT PFNGLFOGCOORDFVPROC __glewFogCoordfv; GLEW_FUN_EXPORT PFNGLMULTIDRAWARRAYSPROC __glewMultiDrawArrays; GLEW_FUN_EXPORT PFNGLMULTIDRAWELEMENTSPROC __glewMultiDrawElements; GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFPROC __glewPointParameterf; GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFVPROC __glewPointParameterfv; GLEW_FUN_EXPORT PFNGLPOINTPARAMETERIPROC __glewPointParameteri; GLEW_FUN_EXPORT PFNGLPOINTPARAMETERIVPROC __glewPointParameteriv; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3BPROC __glewSecondaryColor3b; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3BVPROC __glewSecondaryColor3bv; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3DPROC __glewSecondaryColor3d; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3DVPROC __glewSecondaryColor3dv; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3FPROC __glewSecondaryColor3f; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3FVPROC __glewSecondaryColor3fv; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3IPROC __glewSecondaryColor3i; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3IVPROC __glewSecondaryColor3iv; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3SPROC __glewSecondaryColor3s; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3SVPROC __glewSecondaryColor3sv; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UBPROC __glewSecondaryColor3ub; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UBVPROC __glewSecondaryColor3ubv; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UIPROC __glewSecondaryColor3ui; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3UIVPROC __glewSecondaryColor3uiv; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3USPROC __glewSecondaryColor3us; GLEW_FUN_EXPORT PFNGLSECONDARYCOLOR3USVPROC __glewSecondaryColor3usv; GLEW_FUN_EXPORT PFNGLSECONDARYCOLORPOINTERPROC __glewSecondaryColorPointer; GLEW_FUN_EXPORT PFNGLWINDOWPOS2DPROC __glewWindowPos2d; GLEW_FUN_EXPORT PFNGLWINDOWPOS2DVPROC __glewWindowPos2dv; GLEW_FUN_EXPORT PFNGLWINDOWPOS2FPROC __glewWindowPos2f; GLEW_FUN_EXPORT PFNGLWINDOWPOS2FVPROC __glewWindowPos2fv; GLEW_FUN_EXPORT PFNGLWINDOWPOS2IPROC __glewWindowPos2i; GLEW_FUN_EXPORT PFNGLWINDOWPOS2IVPROC __glewWindowPos2iv; GLEW_FUN_EXPORT PFNGLWINDOWPOS2SPROC __glewWindowPos2s; GLEW_FUN_EXPORT PFNGLWINDOWPOS2SVPROC __glewWindowPos2sv; GLEW_FUN_EXPORT PFNGLWINDOWPOS3DPROC __glewWindowPos3d; GLEW_FUN_EXPORT PFNGLWINDOWPOS3DVPROC __glewWindowPos3dv; GLEW_FUN_EXPORT PFNGLWINDOWPOS3FPROC __glewWindowPos3f; GLEW_FUN_EXPORT PFNGLWINDOWPOS3FVPROC __glewWindowPos3fv; GLEW_FUN_EXPORT PFNGLWINDOWPOS3IPROC __glewWindowPos3i; GLEW_FUN_EXPORT PFNGLWINDOWPOS3IVPROC __glewWindowPos3iv; GLEW_FUN_EXPORT PFNGLWINDOWPOS3SPROC __glewWindowPos3s; GLEW_FUN_EXPORT PFNGLWINDOWPOS3SVPROC __glewWindowPos3sv; GLEW_FUN_EXPORT PFNGLBEGINQUERYPROC __glewBeginQuery; GLEW_FUN_EXPORT PFNGLBINDBUFFERPROC __glewBindBuffer; GLEW_FUN_EXPORT PFNGLBUFFERDATAPROC __glewBufferData; GLEW_FUN_EXPORT PFNGLBUFFERSUBDATAPROC __glewBufferSubData; GLEW_FUN_EXPORT PFNGLDELETEBUFFERSPROC __glewDeleteBuffers; GLEW_FUN_EXPORT PFNGLDELETEQUERIESPROC __glewDeleteQueries; GLEW_FUN_EXPORT PFNGLENDQUERYPROC __glewEndQuery; GLEW_FUN_EXPORT PFNGLGENBUFFERSPROC __glewGenBuffers; GLEW_FUN_EXPORT PFNGLGENQUERIESPROC __glewGenQueries; GLEW_FUN_EXPORT PFNGLGETBUFFERPARAMETERIVPROC __glewGetBufferParameteriv; GLEW_FUN_EXPORT PFNGLGETBUFFERPOINTERVPROC __glewGetBufferPointerv; GLEW_FUN_EXPORT PFNGLGETBUFFERSUBDATAPROC __glewGetBufferSubData; GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTIVPROC __glewGetQueryObjectiv; GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTUIVPROC __glewGetQueryObjectuiv; GLEW_FUN_EXPORT PFNGLGETQUERYIVPROC __glewGetQueryiv; GLEW_FUN_EXPORT PFNGLISBUFFERPROC __glewIsBuffer; GLEW_FUN_EXPORT PFNGLISQUERYPROC __glewIsQuery; GLEW_FUN_EXPORT PFNGLMAPBUFFERPROC __glewMapBuffer; GLEW_FUN_EXPORT PFNGLUNMAPBUFFERPROC __glewUnmapBuffer; GLEW_FUN_EXPORT PFNGLATTACHSHADERPROC __glewAttachShader; GLEW_FUN_EXPORT PFNGLBINDATTRIBLOCATIONPROC __glewBindAttribLocation; GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEPROC __glewBlendEquationSeparate; GLEW_FUN_EXPORT PFNGLCOMPILESHADERPROC __glewCompileShader; GLEW_FUN_EXPORT PFNGLCREATEPROGRAMPROC __glewCreateProgram; GLEW_FUN_EXPORT PFNGLCREATESHADERPROC __glewCreateShader; GLEW_FUN_EXPORT PFNGLDELETEPROGRAMPROC __glewDeleteProgram; GLEW_FUN_EXPORT PFNGLDELETESHADERPROC __glewDeleteShader; GLEW_FUN_EXPORT PFNGLDETACHSHADERPROC __glewDetachShader; GLEW_FUN_EXPORT PFNGLDISABLEVERTEXATTRIBARRAYPROC __glewDisableVertexAttribArray; GLEW_FUN_EXPORT PFNGLDRAWBUFFERSPROC __glewDrawBuffers; GLEW_FUN_EXPORT PFNGLENABLEVERTEXATTRIBARRAYPROC __glewEnableVertexAttribArray; GLEW_FUN_EXPORT PFNGLGETACTIVEATTRIBPROC __glewGetActiveAttrib; GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMPROC __glewGetActiveUniform; GLEW_FUN_EXPORT PFNGLGETATTACHEDSHADERSPROC __glewGetAttachedShaders; GLEW_FUN_EXPORT PFNGLGETATTRIBLOCATIONPROC __glewGetAttribLocation; GLEW_FUN_EXPORT PFNGLGETPROGRAMINFOLOGPROC __glewGetProgramInfoLog; GLEW_FUN_EXPORT PFNGLGETPROGRAMIVPROC __glewGetProgramiv; GLEW_FUN_EXPORT PFNGLGETSHADERINFOLOGPROC __glewGetShaderInfoLog; GLEW_FUN_EXPORT PFNGLGETSHADERSOURCEPROC __glewGetShaderSource; GLEW_FUN_EXPORT PFNGLGETSHADERIVPROC __glewGetShaderiv; GLEW_FUN_EXPORT PFNGLGETUNIFORMLOCATIONPROC __glewGetUniformLocation; GLEW_FUN_EXPORT PFNGLGETUNIFORMFVPROC __glewGetUniformfv; GLEW_FUN_EXPORT PFNGLGETUNIFORMIVPROC __glewGetUniformiv; GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBPOINTERVPROC __glewGetVertexAttribPointerv; GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBDVPROC __glewGetVertexAttribdv; GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBFVPROC __glewGetVertexAttribfv; GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIVPROC __glewGetVertexAttribiv; GLEW_FUN_EXPORT PFNGLISPROGRAMPROC __glewIsProgram; GLEW_FUN_EXPORT PFNGLISSHADERPROC __glewIsShader; GLEW_FUN_EXPORT PFNGLLINKPROGRAMPROC __glewLinkProgram; GLEW_FUN_EXPORT PFNGLSHADERSOURCEPROC __glewShaderSource; GLEW_FUN_EXPORT PFNGLSTENCILFUNCSEPARATEPROC __glewStencilFuncSeparate; GLEW_FUN_EXPORT PFNGLSTENCILMASKSEPARATEPROC __glewStencilMaskSeparate; GLEW_FUN_EXPORT PFNGLSTENCILOPSEPARATEPROC __glewStencilOpSeparate; GLEW_FUN_EXPORT PFNGLUNIFORM1FPROC __glewUniform1f; GLEW_FUN_EXPORT PFNGLUNIFORM1FVPROC __glewUniform1fv; GLEW_FUN_EXPORT PFNGLUNIFORM1IPROC __glewUniform1i; GLEW_FUN_EXPORT PFNGLUNIFORM1IVPROC __glewUniform1iv; GLEW_FUN_EXPORT PFNGLUNIFORM2FPROC __glewUniform2f; GLEW_FUN_EXPORT PFNGLUNIFORM2FVPROC __glewUniform2fv; GLEW_FUN_EXPORT PFNGLUNIFORM2IPROC __glewUniform2i; GLEW_FUN_EXPORT PFNGLUNIFORM2IVPROC __glewUniform2iv; GLEW_FUN_EXPORT PFNGLUNIFORM3FPROC __glewUniform3f; GLEW_FUN_EXPORT PFNGLUNIFORM3FVPROC __glewUniform3fv; GLEW_FUN_EXPORT PFNGLUNIFORM3IPROC __glewUniform3i; GLEW_FUN_EXPORT PFNGLUNIFORM3IVPROC __glewUniform3iv; GLEW_FUN_EXPORT PFNGLUNIFORM4FPROC __glewUniform4f; GLEW_FUN_EXPORT PFNGLUNIFORM4FVPROC __glewUniform4fv; GLEW_FUN_EXPORT PFNGLUNIFORM4IPROC __glewUniform4i; GLEW_FUN_EXPORT PFNGLUNIFORM4IVPROC __glewUniform4iv; GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2FVPROC __glewUniformMatrix2fv; GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3FVPROC __glewUniformMatrix3fv; GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4FVPROC __glewUniformMatrix4fv; GLEW_FUN_EXPORT PFNGLUSEPROGRAMPROC __glewUseProgram; GLEW_FUN_EXPORT PFNGLVALIDATEPROGRAMPROC __glewValidateProgram; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DPROC __glewVertexAttrib1d; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1DVPROC __glewVertexAttrib1dv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FPROC __glewVertexAttrib1f; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FVPROC __glewVertexAttrib1fv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SPROC __glewVertexAttrib1s; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1SVPROC __glewVertexAttrib1sv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DPROC __glewVertexAttrib2d; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2DVPROC __glewVertexAttrib2dv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FPROC __glewVertexAttrib2f; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FVPROC __glewVertexAttrib2fv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SPROC __glewVertexAttrib2s; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2SVPROC __glewVertexAttrib2sv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DPROC __glewVertexAttrib3d; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3DVPROC __glewVertexAttrib3dv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FPROC __glewVertexAttrib3f; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FVPROC __glewVertexAttrib3fv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SPROC __glewVertexAttrib3s; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3SVPROC __glewVertexAttrib3sv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NBVPROC __glewVertexAttrib4Nbv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NIVPROC __glewVertexAttrib4Niv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NSVPROC __glewVertexAttrib4Nsv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUBPROC __glewVertexAttrib4Nub; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUBVPROC __glewVertexAttrib4Nubv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUIVPROC __glewVertexAttrib4Nuiv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4NUSVPROC __glewVertexAttrib4Nusv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4BVPROC __glewVertexAttrib4bv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DPROC __glewVertexAttrib4d; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4DVPROC __glewVertexAttrib4dv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FPROC __glewVertexAttrib4f; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FVPROC __glewVertexAttrib4fv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4IVPROC __glewVertexAttrib4iv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SPROC __glewVertexAttrib4s; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4SVPROC __glewVertexAttrib4sv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UBVPROC __glewVertexAttrib4ubv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4UIVPROC __glewVertexAttrib4uiv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4USVPROC __glewVertexAttrib4usv; GLEW_FUN_EXPORT PFNGLVERTEXATTRIBPOINTERPROC __glewVertexAttribPointer; GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2X3FVPROC __glewUniformMatrix2x3fv; GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2X4FVPROC __glewUniformMatrix2x4fv; GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3X2FVPROC __glewUniformMatrix3x2fv; GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3X4FVPROC __glewUniformMatrix3x4fv; GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4X2FVPROC __glewUniformMatrix4x2fv; GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4X3FVPROC __glewUniformMatrix4x3fv; GLEW_FUN_EXPORT PFNGLBINDBUFFERARBPROC __glewBindBufferARB; GLEW_FUN_EXPORT PFNGLBUFFERDATAARBPROC __glewBufferDataARB; GLEW_FUN_EXPORT PFNGLBUFFERSUBDATAARBPROC __glewBufferSubDataARB; GLEW_FUN_EXPORT PFNGLDELETEBUFFERSARBPROC __glewDeleteBuffersARB; GLEW_FUN_EXPORT PFNGLGENBUFFERSARBPROC __glewGenBuffersARB; GLEW_FUN_EXPORT PFNGLGETBUFFERPARAMETERIVARBPROC __glewGetBufferParameterivARB; GLEW_FUN_EXPORT PFNGLGETBUFFERPOINTERVARBPROC __glewGetBufferPointervARB; GLEW_FUN_EXPORT PFNGLGETBUFFERSUBDATAARBPROC __glewGetBufferSubDataARB; GLEW_FUN_EXPORT PFNGLISBUFFERARBPROC __glewIsBufferARB; GLEW_FUN_EXPORT PFNGLMAPBUFFERARBPROC __glewMapBufferARB; GLEW_FUN_EXPORT PFNGLUNMAPBUFFERARBPROC __glewUnmapBufferARB; #if defined(GLEW_MX) && !defined(_WIN32) struct GLEWContextStruct { #endif /* GLEW_MX */ GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_1; GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_2; GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_3; GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_4; GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_1_5; GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_2_0; GLEW_VAR_EXPORT GLboolean __GLEW_VERSION_2_1; GLEW_VAR_EXPORT GLboolean __GLEW_ARB_pixel_buffer_object; GLEW_VAR_EXPORT GLboolean __GLEW_ARB_vertex_buffer_object; GLEW_VAR_EXPORT GLboolean __GLEW_SGIS_texture_lod; #ifdef GLEW_MX }; /* GLEWContextStruct */ #endif /* GLEW_MX */ /* ------------------------------------------------------------------------- */ /* error codes */ #define GLEW_OK 0 #define GLEW_NO_ERROR 0 #define GLEW_ERROR_NO_GL_VERSION 1 /* missing GL version */ #define GLEW_ERROR_GL_VERSION_10_ONLY 2 /* GL 1.1 and up are not supported */ #define GLEW_ERROR_GLX_VERSION_11_ONLY 3 /* GLX 1.2 and up are not supported */ /* string codes */ #define GLEW_VERSION 1 #define GLEW_VERSION_MAJOR 2 #define GLEW_VERSION_MINOR 3 #define GLEW_VERSION_MICRO 4 /* API */ #ifdef GLEW_MX typedef struct GLEWContextStruct GLEWContext; GLEWAPI GLenum glewContextInit (GLEWContext* ctx); GLEWAPI GLboolean glewContextIsSupported (GLEWContext* ctx, const char* name); #define glewInit() glewContextInit(glewGetContext()) #define glewIsSupported(x) glewContextIsSupported(glewGetContext(), x) #define glewIsExtensionSupported(x) glewIsSupported(x) #define GLEW_GET_VAR(x) (*(const GLboolean*)&(glewGetContext()->x)) #ifdef _WIN32 # define GLEW_GET_FUN(x) glewGetContext()->x #else # define GLEW_GET_FUN(x) x #endif #else /* GLEW_MX */ GLEWAPI GLenum glewInit (void); GLEWAPI GLboolean glewIsSupported (const char* name); #define glewIsExtensionSupported(x) glewIsSupported(x) #define GLEW_GET_VAR(x) (*(const GLboolean*)&x) #define GLEW_GET_FUN(x) x #endif /* GLEW_MX */ GLEWAPI GLboolean glewExperimental; GLEWAPI GLboolean glewGetExtension (const char* name); GLEWAPI const GLubyte* glewGetErrorString (GLenum error); GLEWAPI const GLubyte* glewGetString (GLenum name); #ifdef __cplusplus } #endif #ifdef GLEW_APIENTRY_DEFINED #undef GLEW_APIENTRY_DEFINED #undef APIENTRY #undef GLAPIENTRY #endif #ifdef GLEW_CALLBACK_DEFINED #undef GLEW_CALLBACK_DEFINED #undef CALLBACK #endif #ifdef GLEW_WINGDIAPI_DEFINED #undef GLEW_WINGDIAPI_DEFINED #undef WINGDIAPI #endif #undef GLAPI /* #undef GLEWAPI */ #endif /* __glew_h__ */ quesoglc-0.7.2/include/GL/glc.h0000644000175000017500000003127111021563347013134 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #if !defined(__glc_h_) #define __glc_h_ /************************************************************************ * Begin system-specific stuff * from Mesa 3-D graphics library * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* __WIN32__ */ #if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__)) # define __WIN32__ #endif #ifdef __WIN32__ # include #endif /* GLCAPI, part 1 (use WINGDIAPI, if defined) */ #if defined(__WIN32__) && defined(WINGDIAPI) && !defined(GLCAPI) # define GLCAPI WINGDIAPI #endif /* GLCAPI, part 2 */ #if !defined(GLCAPI) # if defined(_MSC_VER) /* Microsoft Visual C++ */ # define GLCAPI __declspec(dllimport) # elif defined(__LCC__) && defined(__WIN32__) /* LCC-Win32 */ # define GLCAPI __stdcall # else /* Others (e.g. MinGW, Cygwin, non-win32) */ # define GLCAPI extern # endif #endif /* APIENTRY */ #if !defined(APIENTRY) # if defined(__WIN32__) # define APIENTRY __stdcall # else # define APIENTRY # endif #endif /* CALLBACK */ #if !defined(CALLBACK) # if defined(__WIN32__) # define CALLBACK __stdcall # else # define CALLBACK # endif #endif /* * End system-specific stuff. ************************************************************************/ #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #if defined(__cplusplus) extern "C" { #endif typedef void GLCchar; typedef GLint GLCenum; #if defined(__cplusplus) typedef GLboolean (CALLBACK *GLCfunc)(GLint); #else typedef GLboolean (CALLBACK *GLCfunc)(GLint); #endif /*************************************************************/ #define GLC_NONE 0x0000 #define GLC_AUTO_FONT 0x0010 #define GLC_GL_OBJECTS 0x0011 #define GLC_MIPMAP 0x0012 #define GLC_OP_glcUnmappedCode 0x0020 #define GLC_BASELINE 0x0030 #define GLC_BOUNDS 0x0031 #define GLC_PARAMETER_ERROR 0x0040 #define GLC_RESOURCE_ERROR 0x0041 #define GLC_STATE_ERROR 0x0042 #define GLC_CHAR_LIST 0x0050 #define GLC_FACE_LIST 0x0051 #define GLC_FAMILY 0x0060 #define GLC_MASTER_FORMAT 0x0061 #define GLC_VENDOR 0x0062 #define GLC_VERSION 0x0063 #define GLC_CHAR_COUNT 0x0070 #define GLC_FACE_COUNT 0x0071 #define GLC_IS_FIXED_PITCH 0x0072 #define GLC_MAX_MAPPED_CODE 0x0073 #define GLC_MIN_MAPPED_CODE 0x0074 #define GLC_IS_OUTLINE 0x0075 #define GLC_CATALOG_LIST 0x0080 #define GLC_CURRENT_FONT_LIST 0x0090 #define GLC_FONT_LIST 0x0091 #define GLC_LIST_OBJECT_LIST 0x0092 #define GLC_TEXTURE_OBJECT_LIST 0x0093 #define GLC_DATA_POINTER 0x00A0 #define GLC_EXTENSIONS 0x00B0 #define GLC_RELEASE 0x00B1 #define GLC_RESOLUTION 0x00C0 #define GLC_BITMAP_MATRIX 0x00D0 #define GLC_CATALOG_COUNT 0x00E0 #define GLC_CURRENT_FONT_COUNT 0x00E1 #define GLC_FONT_COUNT 0x00E2 #define GLC_LIST_OBJECT_COUNT 0x00E3 #define GLC_MASTER_COUNT 0x00E4 #define GLC_MEASURED_CHAR_COUNT 0x00E5 #define GLC_RENDER_STYLE 0x00E6 #define GLC_REPLACEMENT_CODE 0x00E7 #define GLC_STRING_TYPE 0x00E8 #define GLC_TEXTURE_OBJECT_COUNT 0x00E9 #define GLC_VERSION_MAJOR 0x00EA #define GLC_VERSION_MINOR 0x00EB #define GLC_BITMAP 0x0100 #define GLC_LINE 0x0101 #define GLC_TEXTURE 0x0102 #define GLC_TRIANGLE 0x0103 #define GLC_UCS1 0x0110 #define GLC_UCS2 0x0111 #define GLC_UCS4 0x0112 /*************************************************************/ GLCAPI void APIENTRY glcContext (GLint inContext); GLCAPI void APIENTRY glcDeleteContext (GLint inContext); GLCAPI GLint APIENTRY glcGenContext (void); GLCAPI GLint* APIENTRY glcGetAllContexts (void); GLCAPI GLint APIENTRY glcGetCurrentContext (void); GLCAPI GLCenum APIENTRY glcGetError (void); GLCAPI GLboolean APIENTRY glcIsContext (GLint inContext); GLCAPI void APIENTRY glcCallbackFunc (GLCenum inOpcode, GLCfunc inFunc); GLCAPI void APIENTRY glcDataPointer (GLvoid *inPointer); GLCAPI void APIENTRY glcDeleteGLObjects (void); GLCAPI void APIENTRY glcDisable (GLCenum inAttrib); GLCAPI void APIENTRY glcEnable (GLCenum inAttrib); GLCAPI GLCfunc APIENTRY glcGetCallbackFunc (GLCenum inOpcode); GLCAPI const GLCchar* APIENTRY glcGetListc (GLCenum inAttrib, GLint inIndex); GLCAPI GLint APIENTRY glcGetListi (GLCenum inAttrib, GLint inIndex); GLCAPI GLvoid* APIENTRY glcGetPointer (GLCenum inAttrib); GLCAPI const GLCchar* APIENTRY glcGetc (GLCenum inAttrib); GLCAPI GLfloat APIENTRY glcGetf (GLCenum inAttrib); GLCAPI GLfloat* APIENTRY glcGetfv (GLCenum inAttrib, GLfloat *outVec); GLCAPI GLint APIENTRY glcGeti (GLCenum inAttrib); GLCAPI GLboolean APIENTRY glcIsEnabled (GLCenum inAttrib); GLCAPI void APIENTRY glcStringType (GLCenum inStringType); GLCAPI void APIENTRY glcAppendCatalog (const GLCchar *inCatalog); GLCAPI const GLCchar* APIENTRY glcGetMasterListc (GLint inMaster, GLCenum inAttrib, GLint inIndex); GLCAPI const GLCchar* APIENTRY glcGetMasterMap (GLint inMaster, GLint inCode); GLCAPI const GLCchar* APIENTRY glcGetMasterc (GLint inMaster, GLCenum inAttrib); GLCAPI GLint APIENTRY glcGetMasteri (GLint inMaster, GLCenum inAttrib); GLCAPI void APIENTRY glcPrependCatalog (const GLCchar *inCatalog); GLCAPI void APIENTRY glcRemoveCatalog (GLint inIndex); GLCAPI void APIENTRY glcAppendFont (GLint inFont); GLCAPI void APIENTRY glcDeleteFont (GLint inFont); GLCAPI void APIENTRY glcFont (GLint inFont); GLCAPI GLboolean APIENTRY glcFontFace (GLint inFont, const GLCchar *inFace); GLCAPI void APIENTRY glcFontMap (GLint inFont, GLint inCode, const GLCchar *inCharName); GLCAPI GLint APIENTRY glcGenFontID (void); GLCAPI const GLCchar* APIENTRY glcGetFontFace (GLint inFont); GLCAPI const GLCchar* APIENTRY glcGetFontListc (GLint inFont, GLCenum inAttrib, GLint inIndex); GLCAPI const GLCchar* APIENTRY glcGetFontMap (GLint inFont, GLint inCode); GLCAPI const GLbyte* APIENTRY glcGetFontMasterArray (GLint inFont, GLboolean inFull, GLint *outCount); GLCAPI const GLCchar* APIENTRY glcGetFontc (GLint inFont, GLCenum inAttrib); GLCAPI GLint APIENTRY glcGetFonti (GLint inFont, GLCenum inAttrib); GLCAPI GLboolean APIENTRY glcIsFont (GLint inFont); GLCAPI GLint APIENTRY glcNewFontFromFamily (GLint inFont, const GLCchar *inFamily); GLCAPI GLint APIENTRY glcNewFontFromMaster (GLint inFont, GLint inMaster); GLCAPI void APIENTRY glcLoadIdentity (void); GLCAPI void APIENTRY glcLoadMatrix (const GLfloat *inMatrix); GLCAPI void APIENTRY glcMultMatrix (const GLfloat *inMatrix); GLCAPI void APIENTRY glcRotate (GLfloat inAngle); GLCAPI void APIENTRY glcScale (GLfloat inX, GLfloat inY); GLCAPI void APIENTRY glcRenderChar (GLint inCode); GLCAPI void APIENTRY glcRenderCountedString (GLint inCount, const GLCchar *inString); GLCAPI void APIENTRY glcRenderString (const GLCchar *inString); GLCAPI void APIENTRY glcRenderStyle (GLCenum inStyle); GLCAPI void APIENTRY glcReplacementCode (GLint inCode); GLCAPI void APIENTRY glcResolution (GLfloat inVal); GLCAPI GLfloat* APIENTRY glcGetCharMetric (GLint inCode, GLCenum inMetric, GLfloat *outVec); GLCAPI GLfloat* APIENTRY glcGetMaxCharMetric (GLCenum inMetric, GLfloat *outVec); GLCAPI GLfloat* APIENTRY glcGetStringCharMetric (GLint inIndex, GLCenum inMetric, GLfloat *outVec); GLCAPI GLfloat* APIENTRY glcGetStringMetric (GLCenum inMetric, GLfloat *outVec); GLCAPI GLint APIENTRY glcMeasureCountedString (GLboolean inMeasureChars, GLint inCount, const GLCchar *inString); GLCAPI GLint APIENTRY glcMeasureString (GLboolean inMeasureChars, const GLCchar *inString); /*************************************************************/ #define GLC_SGI_ufm_typeface_handle 1 #define GLC_UFM_TYPEFACE_HANDLE_SGI 0x8001 #define GLC_UFM_TYPEFACE_HANDLE_COUNT_SGI 0x8003 GLCAPI GLint APIENTRY glcGetMasterListiSGI(GLint inMaster, GLCenum inAttrib, GLint inIndex); GLCAPI GLint APIENTRY glcGetFontListiSGI(GLint inFont, GLCenum inAttrib, GLint inIndex); #define GLC_SGI_full_name 1 #define GLC_FULL_NAME_SGI 0x8002 #define GLC_QSO_utf8 1 #define GLC_UTF8_QSO 0x8004 #define GLC_QSO_hinting 1 #define GLC_HINTING_QSO 0x8005 #define GLC_QSO_extrude 1 #define GLC_EXTRUDE_QSO 0x8006 #define GLC_QSO_kerning 1 #define GLC_KERNING_QSO 0x8007 #define GLC_QSO_matrix_stack 1 #define GLC_MATRIX_STACK_DEPTH_QSO 0x8008 #define GLC_MAX_MATRIX_STACK_DEPTH_QSO 0x8009 #define GLC_STACK_OVERFLOW_QSO 0x800A #define GLC_STACK_UNDERFLOW_QSO 0x800B GLCAPI void APIENTRY glcPushMatrixQSO(void); GLCAPI void APIENTRY glcPopMatrixQSO(void); #define GLC_QSO_attrib_stack 1 #define GLC_ENABLE_BIT_QSO 0x00000001 #define GLC_RENDER_BIT_QSO 0x00000002 #define GLC_STRING_BIT_QSO 0x00000004 #define GLC_GL_ATTRIB_BIT_QSO 0x00000008 #define GLC_ALL_ATTRIB_BITS_QSO 0x0000FFFF #define GLC_ATTRIB_STACK_DEPTH_QSO 0x800C #define GLC_MAX_ATTRIB_STACK_DEPTH_QSO 0x800D GLCAPI void APIENTRY glcPushAttribQSO(GLbitfield inMask); GLCAPI void APIENTRY glcPopAttribQSO(void); #define GLC_QSO_buffer_object 1 #define GLC_BUFFER_OBJECT_COUNT_QSO 0x800E #define GLC_BUFFER_OBJECT_LIST_QSO 0x800F #if defined (__cplusplus) } #endif #endif /* defined (__glc_h_) */ quesoglc-0.7.2/include/GL/glxew.h0000644000175000017500000003714010764574546013536 00000000000000/* ** The OpenGL Extension Wrangler Library ** Copyright (C) 2002-2008, Milan Ikits ** Copyright (C) 2002-2008, Marcelo E. Magallon ** Copyright (C) 2002, Lev Povalahev ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are met: ** ** * Redistributions of source code must retain the above copyright notice, ** this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright notice, ** this list of conditions and the following disclaimer in the documentation ** and/or other materials provided with the distribution. ** * The name of the author may be used to endorse or promote products ** derived from this software without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF ** THE POSSIBILITY OF SUCH DAMAGE. */ /* * Mesa 3-D graphics library * Version: 7.0 * * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* ** Copyright (c) 2007 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a ** copy of this software and/or associated documentation files (the ** "Materials"), to deal in the Materials without restriction, including ** without limitation the rights to use, copy, modify, merge, publish, ** distribute, sublicense, and/or sell copies of the Materials, and to ** permit persons to whom the Materials are furnished to do so, subject to ** the following conditions: ** ** The above copyright notice and this permission notice shall be included ** in all copies or substantial portions of the Materials. ** ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. */ #ifndef __glxew_h__ #define __glxew_h__ #define __GLXEW_H__ #ifdef __glxext_h_ #error glxext.h included before glxew.h #endif #ifdef GLX_H #error glx.h included before glxew.h #endif #define __glxext_h_ #define __GLX_glx_h__ #define GLX_H #include #include #include #include #ifdef __cplusplus extern "C" { #endif /* ---------------------------- GLX_VERSION_1_0 --------------------------- */ #ifndef GLX_VERSION_1_0 #define GLX_VERSION_1_0 1 #define GLX_USE_GL 1 #define GLX_BUFFER_SIZE 2 #define GLX_LEVEL 3 #define GLX_RGBA 4 #define GLX_DOUBLEBUFFER 5 #define GLX_STEREO 6 #define GLX_AUX_BUFFERS 7 #define GLX_RED_SIZE 8 #define GLX_GREEN_SIZE 9 #define GLX_BLUE_SIZE 10 #define GLX_ALPHA_SIZE 11 #define GLX_DEPTH_SIZE 12 #define GLX_STENCIL_SIZE 13 #define GLX_ACCUM_RED_SIZE 14 #define GLX_ACCUM_GREEN_SIZE 15 #define GLX_ACCUM_BLUE_SIZE 16 #define GLX_ACCUM_ALPHA_SIZE 17 #define GLX_BAD_SCREEN 1 #define GLX_BAD_ATTRIBUTE 2 #define GLX_NO_EXTENSION 3 #define GLX_BAD_VISUAL 4 #define GLX_BAD_CONTEXT 5 #define GLX_BAD_VALUE 6 #define GLX_BAD_ENUM 7 typedef XID GLXDrawable; typedef XID GLXPixmap; #ifdef __sun typedef struct __glXContextRec *GLXContext; #else typedef struct __GLXcontextRec *GLXContext; #endif extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase); extern Bool glXQueryVersion (Display *dpy, int *major, int *minor); extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value); extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList); extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap); extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix); extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct); extern void glXDestroyContext (Display *dpy, GLXContext ctx); extern Bool glXIsDirect (Display *dpy, GLXContext ctx); extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLulong mask); extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx); extern GLXContext glXGetCurrentContext (void); extern GLXDrawable glXGetCurrentDrawable (void); extern void glXWaitGL (void); extern void glXWaitX (void); extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable); extern void glXUseXFont (Font font, int first, int count, int listBase); #define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0) #endif /* GLX_VERSION_1_0 */ /* ---------------------------- GLX_VERSION_1_1 --------------------------- */ #ifndef GLX_VERSION_1_1 #define GLX_VERSION_1_1 #define GLX_VENDOR 0x1 #define GLX_VERSION 0x2 #define GLX_EXTENSIONS 0x3 extern const char* glXQueryExtensionsString (Display *dpy, int screen); extern const char* glXGetClientString (Display *dpy, int name); extern const char* glXQueryServerString (Display *dpy, int screen, int name); #define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1) #endif /* GLX_VERSION_1_1 */ /* ---------------------------- GLX_VERSION_1_2 ---------------------------- */ #ifndef GLX_VERSION_1_2 #define GLX_VERSION_1_2 1 typedef Display* ( * PFNGLXGETCURRENTDISPLAYPROC) (void); #define glXGetCurrentDisplay GLXEW_GET_FUN(__glewXGetCurrentDisplay) #define GLXEW_VERSION_1_2 GLXEW_GET_VAR(__GLXEW_VERSION_1_2) #endif /* GLX_VERSION_1_2 */ /* ---------------------------- GLX_VERSION_1_3 ---------------------------- */ #ifndef GLX_VERSION_1_3 #define GLX_VERSION_1_3 1 #define GLX_RGBA_BIT 0x00000001 #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 #define GLX_WINDOW_BIT 0x00000001 #define GLX_COLOR_INDEX_BIT 0x00000002 #define GLX_PIXMAP_BIT 0x00000002 #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 #define GLX_PBUFFER_BIT 0x00000004 #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 #define GLX_AUX_BUFFERS_BIT 0x00000010 #define GLX_CONFIG_CAVEAT 0x20 #define GLX_DEPTH_BUFFER_BIT 0x00000020 #define GLX_X_VISUAL_TYPE 0x22 #define GLX_TRANSPARENT_TYPE 0x23 #define GLX_TRANSPARENT_INDEX_VALUE 0x24 #define GLX_TRANSPARENT_RED_VALUE 0x25 #define GLX_TRANSPARENT_GREEN_VALUE 0x26 #define GLX_TRANSPARENT_BLUE_VALUE 0x27 #define GLX_TRANSPARENT_ALPHA_VALUE 0x28 #define GLX_STENCIL_BUFFER_BIT 0x00000040 #define GLX_ACCUM_BUFFER_BIT 0x00000080 #define GLX_NONE 0x8000 #define GLX_SLOW_CONFIG 0x8001 #define GLX_TRUE_COLOR 0x8002 #define GLX_DIRECT_COLOR 0x8003 #define GLX_PSEUDO_COLOR 0x8004 #define GLX_STATIC_COLOR 0x8005 #define GLX_GRAY_SCALE 0x8006 #define GLX_STATIC_GRAY 0x8007 #define GLX_TRANSPARENT_RGB 0x8008 #define GLX_TRANSPARENT_INDEX 0x8009 #define GLX_VISUAL_ID 0x800B #define GLX_SCREEN 0x800C #define GLX_NON_CONFORMANT_CONFIG 0x800D #define GLX_DRAWABLE_TYPE 0x8010 #define GLX_RENDER_TYPE 0x8011 #define GLX_X_RENDERABLE 0x8012 #define GLX_FBCONFIG_ID 0x8013 #define GLX_RGBA_TYPE 0x8014 #define GLX_COLOR_INDEX_TYPE 0x8015 #define GLX_MAX_PBUFFER_WIDTH 0x8016 #define GLX_MAX_PBUFFER_HEIGHT 0x8017 #define GLX_MAX_PBUFFER_PIXELS 0x8018 #define GLX_PRESERVED_CONTENTS 0x801B #define GLX_LARGEST_PBUFFER 0x801C #define GLX_WIDTH 0x801D #define GLX_HEIGHT 0x801E #define GLX_EVENT_MASK 0x801F #define GLX_DAMAGED 0x8020 #define GLX_SAVED 0x8021 #define GLX_WINDOW 0x8022 #define GLX_PBUFFER 0x8023 #define GLX_PBUFFER_HEIGHT 0x8040 #define GLX_PBUFFER_WIDTH 0x8041 #define GLX_PBUFFER_CLOBBER_MASK 0x08000000 #define GLX_DONT_CARE 0xFFFFFFFF typedef XID GLXFBConfigID; typedef XID GLXWindow; typedef XID GLXPbuffer; typedef struct __GLXFBConfigRec *GLXFBConfig; typedef struct { int event_type; int draw_type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; unsigned int buffer_mask; unsigned int aux_buffer; int x, y; int width, height; int count; } GLXPbufferClobberEvent; typedef union __GLXEvent { GLXPbufferClobberEvent glxpbufferclobber; long pad[24]; } GLXEvent; typedef GLXFBConfig* ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list); typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf); typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap); typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win); typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void); typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); typedef GLXFBConfig* ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements); typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask); typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config); typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx); typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value); typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask); #define glXChooseFBConfig GLXEW_GET_FUN(__glewXChooseFBConfig) #define glXCreateNewContext GLXEW_GET_FUN(__glewXCreateNewContext) #define glXCreatePbuffer GLXEW_GET_FUN(__glewXCreatePbuffer) #define glXCreatePixmap GLXEW_GET_FUN(__glewXCreatePixmap) #define glXCreateWindow GLXEW_GET_FUN(__glewXCreateWindow) #define glXDestroyPbuffer GLXEW_GET_FUN(__glewXDestroyPbuffer) #define glXDestroyPixmap GLXEW_GET_FUN(__glewXDestroyPixmap) #define glXDestroyWindow GLXEW_GET_FUN(__glewXDestroyWindow) #define glXGetCurrentReadDrawable GLXEW_GET_FUN(__glewXGetCurrentReadDrawable) #define glXGetFBConfigAttrib GLXEW_GET_FUN(__glewXGetFBConfigAttrib) #define glXGetFBConfigs GLXEW_GET_FUN(__glewXGetFBConfigs) #define glXGetSelectedEvent GLXEW_GET_FUN(__glewXGetSelectedEvent) #define glXGetVisualFromFBConfig GLXEW_GET_FUN(__glewXGetVisualFromFBConfig) #define glXMakeContextCurrent GLXEW_GET_FUN(__glewXMakeContextCurrent) #define glXQueryContext GLXEW_GET_FUN(__glewXQueryContext) #define glXQueryDrawable GLXEW_GET_FUN(__glewXQueryDrawable) #define glXSelectEvent GLXEW_GET_FUN(__glewXSelectEvent) #define GLXEW_VERSION_1_3 GLXEW_GET_VAR(__GLXEW_VERSION_1_3) #endif /* GLX_VERSION_1_3 */ /* ---------------------------- GLX_VERSION_1_4 ---------------------------- */ #ifndef GLX_VERSION_1_4 #define GLX_VERSION_1_4 1 #define GLX_SAMPLE_BUFFERS 100000 #define GLX_SAMPLES 100001 extern void ( * glXGetProcAddress (const GLubyte *procName)) (void); #define GLXEW_VERSION_1_4 GLXEW_GET_VAR(__GLXEW_VERSION_1_4) #endif /* GLX_VERSION_1_4 */ /* ------------------------ GLX_ARB_get_proc_address ----------------------- */ #ifndef GLX_ARB_get_proc_address #define GLX_ARB_get_proc_address 1 extern void ( * glXGetProcAddressARB (const GLubyte *procName)) (void); #define GLXEW_ARB_get_proc_address GLXEW_GET_VAR(__GLXEW_ARB_get_proc_address) #endif /* GLX_ARB_get_proc_address */ /* ------------------------------------------------------------------------- */ #ifdef GLEW_MX #define GLXEW_EXPORT #else #define GLXEW_EXPORT extern #endif /* GLEW_MX */ extern PFNGLXGETCURRENTDISPLAYPROC __glewXGetCurrentDisplay; extern PFNGLXCHOOSEFBCONFIGPROC __glewXChooseFBConfig; extern PFNGLXCREATENEWCONTEXTPROC __glewXCreateNewContext; extern PFNGLXCREATEPBUFFERPROC __glewXCreatePbuffer; extern PFNGLXCREATEPIXMAPPROC __glewXCreatePixmap; extern PFNGLXCREATEWINDOWPROC __glewXCreateWindow; extern PFNGLXDESTROYPBUFFERPROC __glewXDestroyPbuffer; extern PFNGLXDESTROYPIXMAPPROC __glewXDestroyPixmap; extern PFNGLXDESTROYWINDOWPROC __glewXDestroyWindow; extern PFNGLXGETCURRENTREADDRAWABLEPROC __glewXGetCurrentReadDrawable; extern PFNGLXGETFBCONFIGATTRIBPROC __glewXGetFBConfigAttrib; extern PFNGLXGETFBCONFIGSPROC __glewXGetFBConfigs; extern PFNGLXGETSELECTEDEVENTPROC __glewXGetSelectedEvent; extern PFNGLXGETVISUALFROMFBCONFIGPROC __glewXGetVisualFromFBConfig; extern PFNGLXMAKECONTEXTCURRENTPROC __glewXMakeContextCurrent; extern PFNGLXQUERYCONTEXTPROC __glewXQueryContext; extern PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable; extern PFNGLXSELECTEVENTPROC __glewXSelectEvent; #if defined(GLEW_MX) struct GLXEWContextStruct { #endif /* GLEW_MX */ GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_0; GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_1; GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_2; GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_3; GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_4; GLXEW_EXPORT GLboolean __GLXEW_ARB_get_proc_address; #ifdef GLEW_MX }; /* GLXEWContextStruct */ #endif /* GLEW_MX */ /* ------------------------------------------------------------------------ */ #ifdef GLEW_MX typedef struct GLXEWContextStruct GLXEWContext; extern GLenum glxewContextInit (GLXEWContext* ctx); extern GLboolean glxewContextIsSupported (GLXEWContext* ctx, const char* name); #define glxewInit() glxewContextInit(glxewGetContext()) #define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x) #define GLXEW_GET_VAR(x) (*(const GLboolean*)&(glxewGetContext()->x)) #define GLXEW_GET_FUN(x) x #else /* GLEW_MX */ #define GLXEW_GET_VAR(x) (*(const GLboolean*)&x) #define GLXEW_GET_FUN(x) x extern GLboolean glxewIsSupported (const char* name); #endif /* GLEW_MX */ extern GLboolean glxewGetExtension (const char* name); #ifdef __cplusplus } #endif #endif /* __glxew_h__ */ quesoglc-0.7.2/tests/0000777000175000017500000000000011164476312011516 500000000000000quesoglc-0.7.2/tests/test6.c0000644000175000017500000005416211021611733012641 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test6.c 803 2008-06-04 22:14:49Z bcoconni $ */ /** \file * Checks the Unicode conversion code and that error conditions that generates * errors. */ #ifdef HAVE_CONFIG_H #include "qglc_config.h" #endif #ifdef HAVE_LIBGLEW #include #else #include "GL/glew.h" #endif #include #include #include #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #define QUESOGLC_MAJOR 0 #define QUESOGLC_MINOR 2 GLEWAPI GLEWContext* glewGetContext(void); static GLCchar* __glcExtensions1 = (GLCchar*) "GLC_QSO_attrib_stack" " GLC_QSO_extrude GLC_QSO_hinting GLC_QSO_kerning GLC_QSO_matrix_stack" " GLC_QSO_utf8 GLC_SGI_full_name"; static GLCchar* __glcExtensions2 = (GLCchar*) "GLC_QSO_attrib_stack" " GLC_QSO_buffer_object GLC_QSO_extrude GLC_QSO_hinting GLC_QSO_kerning" " GLC_QSO_matrix_stack GLC_QSO_utf8 GLC_SGI_full_name"; static GLCchar* __glcRelease = (GLCchar*) QUESOGLC_VERSION; static GLCchar* __glcVendor = (GLCchar*) "The QuesoGLC Project"; static GLCchar* __glcExtensionsUCS2 = NULL; static GLCchar* __glcReleaseUCS2 = NULL; static GLCchar* __glcVendorUCS2 = NULL; static GLCchar* __glcExtensionsUCS4 = NULL; static GLCchar* __glcReleaseUCS4 = NULL; static GLCchar* __glcVendorUCS4 = NULL; GLboolean checkError(GLCenum expectedError) { GLCenum err = glcGetError(); if (err == expectedError) return GL_TRUE; switch(err) { case GLC_NONE: printf("Unexpected GLC_NONE error\n"); return GL_FALSE; case GLC_STATE_ERROR: printf("Unexpected GLC_STATE_ERROR\n"); return GL_FALSE; case GLC_PARAMETER_ERROR: printf("Unexpected GLC_PARAMETER_ERROR\n"); return GL_FALSE; case GLC_RESOURCE_ERROR: printf("Unexpected GLC_RESOURCE_ERROR\n"); return GL_FALSE; case GLC_STACK_OVERFLOW_QSO: printf("Unexpected GLC_STACK_OVERFLOW_QSO\n"); return GL_FALSE; case GLC_STACK_UNDERFLOW_QSO: printf("Unexpected GLC_STACK_UNDERFLOW_QSO\n"); return GL_FALSE; default: printf("Unknown error 0x%X\n", err); return GL_FALSE; } } GLboolean CALLBACK callback(GLint inCode) { printf("Code 0x%X\n", inCode); return GL_FALSE; } GLboolean checkIsEnabled(GLboolean autofont, GLboolean glObjects, GLboolean mipmap, GLboolean hinting, GLboolean extrude, GLboolean kerning) { if (!checkError(GLC_NONE)) return GL_FALSE; if ((glcIsEnabled(GLC_AUTO_FONT) != autofont) || (glcIsEnabled(GLC_GL_OBJECTS) != glObjects) || (glcIsEnabled(GLC_MIPMAP) != mipmap) || (glcIsEnabled(GLC_HINTING_QSO) != hinting) || (glcIsEnabled(GLC_EXTRUDE_QSO) != extrude) || (glcIsEnabled(GLC_KERNING_QSO) != kerning)) { printf("GLC_AUTO_FONT %s (expected %s)\n" , glcIsEnabled(GLC_AUTO_FONT) ? "GL_TRUE" : "GL_FALSE", autofont ? "GL_TRUE" : "GL_FALSE"); printf("GLC_GL_OBJECTS %s (expected %s)\n" , glcIsEnabled(GLC_GL_OBJECTS) ? "GL_TRUE" : "GL_FALSE", glObjects ? "GL_TRUE" : "GL_FALSE"); printf("GLC_MIPMAP %s (expected %s)\n" , glcIsEnabled(GLC_MIPMAP) ? "GL_TRUE" : "GL_FALSE", mipmap ? "GL_TRUE" : "GL_FALSE"); printf("GLC_HINTING_QSO %s (expected %s)\n" , glcIsEnabled(GLC_HINTING_QSO) ? "GL_TRUE" : "GL_FALSE", hinting ? "GL_TRUE" : "GL_FALSE"); printf("GLC_EXTRUDE_QSO %s (expected %s)\n" , glcIsEnabled(GLC_EXTRUDE_QSO) ? "GL_TRUE" : "GL_FALSE", extrude ? "GL_TRUE" : "GL_FALSE"); printf("GLC_KERNING_QSO %s (expected %s)\n" , glcIsEnabled(GLC_KERNING_QSO) ? "GL_TRUE" : "GL_FALSE", kerning ? "GL_TRUE" : "GL_FALSE"); return GL_FALSE; } if (!checkError(GLC_NONE)) return GL_FALSE; return GL_TRUE; } GLboolean convertStringUCS2(GLCchar** inString, GLCchar* inStringUCS1) { unsigned char* ucs1 = (unsigned char*)inStringUCS1; unsigned short* ucs2 = NULL; *inString = (GLCchar*)malloc((strlen(inStringUCS1)+1)*2); ucs2 = (unsigned short*)(*inString); if (!ucs2) { printf("Couldn't allocate memory\n"); return GL_FALSE; } do { *(ucs2++) = (unsigned short)(*ucs1); } while (*(ucs1++)); return GL_TRUE; } GLboolean convertStringUCS4(GLCchar** inString, GLCchar* inStringUCS1) { unsigned char* ucs1 = (unsigned char*)inStringUCS1; unsigned int* ucs4 = NULL; *inString = (GLCchar*)malloc((strlen(inStringUCS1)+1)*4); ucs4 = (unsigned int*)(*inString); if (!ucs4) { printf("Couldn't allocate memory\n"); return GL_FALSE; } do { *(ucs4++) = (unsigned short)(*ucs1); } while (*(ucs1++)); return GL_TRUE; } int main(int argc, char **argv) { GLint ctx = glcGenContext(); GLint count = 0; GLint maxStackDepth = 0; GLint stackDepth = 0; GLint i = 0; GLCchar* __glcExtensions = NULL; /* Needed to initialize an OpenGL context */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("test6"); glcContext(ctx); if (glewIsSupported("GL_ARB_pixel_buffer_object") || glewIsSupported("GL_ARB_vertex_buffer_object")) __glcExtensions = __glcExtensions2; else __glcExtensions = __glcExtensions1; if (!checkError(GLC_NONE)) return -1; if (!convertStringUCS2(&__glcExtensionsUCS2, __glcExtensions)) return -1; if (!convertStringUCS2(&__glcReleaseUCS2, __glcRelease)) return -1; if (!convertStringUCS2(&__glcVendorUCS2, __glcVendor)) return -1; if (!convertStringUCS4(&__glcExtensionsUCS4, __glcExtensions)) return -1; if (!convertStringUCS4(&__glcReleaseUCS4, __glcRelease)) return -1; if (!convertStringUCS4(&__glcVendorUCS4, __glcVendor)) return -1; if (!checkError(GLC_NONE)) return -1; if (glcGetCallbackFunc(GLC_OP_glcUnmappedCode)) { printf("Unexpected callback function\n"); return -1; } if (!checkError(GLC_NONE)) return -1; glcCallbackFunc(GLC_OP_glcUnmappedCode, callback); if (!checkError(GLC_NONE)) return -1; if (glcGetCallbackFunc(GLC_OP_glcUnmappedCode) != callback) { printf("Got unexpected callback function\n"); return -1; } if (!checkError(GLC_NONE)) return -1; glcGetCallbackFunc((GLCenum)0); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; glcCallbackFunc((GLCenum)0, callback); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; if (glcGetPointer(GLC_DATA_POINTER)) { printf("Unexpected data pointer\n"); return -1; } if (!checkError(GLC_NONE)) return -1; glcDataPointer(&ctx); if (!checkError(GLC_NONE)) return -1; if (glcGetPointer(GLC_DATA_POINTER) != &ctx) { printf("Got unexpected data pointer\n"); return -1; } if (!checkError(GLC_NONE)) return -1; glcGetPointer((GLCenum)0); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; if (!glcIsEnabled(GLC_AUTO_FONT)) { printf("GLC_AUTOFONT is disabled\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (!glcIsEnabled(GLC_GL_OBJECTS)) { printf("GLC_GL_OBJECTS is disabled\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (!glcIsEnabled(GLC_MIPMAP)) { printf("GLC_MIPMAP is disabled\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (glcIsEnabled(GLC_HINTING_QSO)) { printf("GLC_HINTING_QSO is enabled\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (glcIsEnabled(GLC_EXTRUDE_QSO)) { printf("GLC_EXTRUDE_QSO is enabled\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (glcIsEnabled(GLC_KERNING_QSO)) { printf("GLC_KERNING_QSO is enabled\n"); return -1; } if (!checkError(GLC_NONE)) return -1; maxStackDepth = glcGeti(GLC_MAX_ATTRIB_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (!maxStackDepth) { printf("Max stack depth is expected not to be zero\n"); return -1; } stackDepth = glcGeti(GLC_ATTRIB_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth) { printf("Current stack depth is not zero\n"); return -1; } glcPopAttribQSO(); if (!checkError(GLC_STACK_UNDERFLOW_QSO)) return -1; /* Check that the faulty glcPopAttribQSO left the stack depth unchanged */ stackDepth = glcGeti(GLC_ATTRIB_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth) { printf("Current stack depth is not zero\n"); return -1; } for (i = 0; i < maxStackDepth; i++) { glcPushAttribQSO(GLC_ENABLE_BIT_QSO); if (!checkError(GLC_NONE)) return -1; stackDepth = glcGeti(GLC_ATTRIB_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth != (i+1)) { printf("Stack depth has not been updated\n"); return -1; } } glcPushAttribQSO(GLC_ENABLE_BIT_QSO); if (!checkError(GLC_STACK_OVERFLOW_QSO)) return -1; /* Check that the faulty glcPushAttribQSO left the stack depth unchanged */ stackDepth = glcGeti(GLC_ATTRIB_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth != maxStackDepth) { printf("Current stack depth is not maximum\n"); return -1; } for (i = 0; i < maxStackDepth; i++) { glcPopAttribQSO(); if (!checkError(GLC_NONE)) return -1; stackDepth = glcGeti(GLC_ATTRIB_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth != maxStackDepth-i-1) { printf("Stack depth has not been updated\n"); return -1; } } glcPopAttribQSO(); if (!checkError(GLC_STACK_UNDERFLOW_QSO)) return -1; /* Check that the faulty glcPopAttribQSO left the stack depth unchanged */ stackDepth = glcGeti(GLC_ATTRIB_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth) { printf("Current stack depth is not zero\n"); return -1; } glcIsEnabled((GLCenum)0); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; glcDisable(GLC_AUTO_FONT); if (!checkIsEnabled(GL_FALSE, GL_TRUE, GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE)) return -1; glcDisable(GLC_GL_OBJECTS); if (!checkIsEnabled(GL_FALSE, GL_FALSE, GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE)) return -1; glcDisable(GLC_MIPMAP); if (!checkIsEnabled(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE)) return -1; glcPushAttribQSO(GLC_ENABLE_BIT_QSO); if (!checkError(GLC_NONE)) return -1; glcEnable(GLC_AUTO_FONT); if (!checkIsEnabled(GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE)) return -1; glcEnable(GLC_GL_OBJECTS); if (!checkIsEnabled(GL_TRUE, GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE)) return -1; glcEnable(GLC_MIPMAP); if (!checkIsEnabled(GL_TRUE, GL_TRUE, GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE)) return -1; glcPopAttribQSO(); if (!checkError(GLC_NONE)) return -1; if (!checkIsEnabled(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE)) return -1; glcEnable((GLCenum)0); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; glcDisable((GLCenum)0); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_CURRENT_FONT_COUNT)) { printf("GLC_CURRENT_FONT_LIST is expected to be empty\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_FONT_COUNT)) { printf("GLC_FONT_LIST is expected to be empty\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_LIST_OBJECT_COUNT)) { printf("GLC_LIST_OBJECT_LIST is expected to be empty\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_MEASURED_CHAR_COUNT)) { printf("Some character have been measured\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_RENDER_STYLE) != GLC_BITMAP) { printf("The render style is not GLC_BITMAP\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_REPLACEMENT_CODE)) { printf("A GLC_REPLACEMENT_CODE has been defined\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_STRING_TYPE) != GLC_UCS1) { printf("The string type is not GLC_UCS1\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_TEXTURE_OBJECT_COUNT)) { printf("GLC_TEXTURE_OBJECT_LIST is expected to be empty\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if ((glcGeti(GLC_VERSION_MAJOR) != QUESOGLC_MAJOR) || (glcGeti(GLC_VERSION_MINOR) != QUESOGLC_MINOR)) { printf("GLC version %d.%d (expected to be %d.%d)\n", glcGeti(GLC_VERSION_MAJOR), glcGeti(GLC_VERSION_MINOR), QUESOGLC_MAJOR, QUESOGLC_MINOR); return -1; } if (!checkError(GLC_NONE)) return -1; glcGeti((GLCenum)0); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; glcEnable(GLC_KERNING_QSO); if (!checkError(GLC_NONE)) return -1; if (!checkIsEnabled(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE)) return -1; glcPushAttribQSO(GLC_ENABLE_BIT_QSO|GLC_STRING_BIT_QSO); if (!checkError(GLC_NONE)) return -1; glcStringType(GLC_UCS2); if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_STRING_TYPE) != GLC_UCS2) { printf("String type was expected to be GLC_UCS2\n"); return -1; } if (!checkError(GLC_NONE)) return -1; glcEnable(GLC_HINTING_QSO); if (!checkError(GLC_NONE)) return -1; if (!checkIsEnabled(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE, GL_FALSE, GL_TRUE)) return -1; glcPushAttribQSO(GLC_ENABLE_BIT_QSO|GLC_STRING_BIT_QSO); if (!checkError(GLC_NONE)) return -1; glcEnable(GLC_AUTO_FONT); glcRenderStyle(GLC_TRIANGLE); if (!checkError(GLC_NONE)) return -1; if (!checkIsEnabled(GL_TRUE, GL_FALSE, GL_FALSE, GL_TRUE, GL_FALSE, GL_TRUE)) return -1; if (glcGeti(GLC_ATTRIB_STACK_DEPTH_QSO) != 2) { printf("Attrib stack depth is expected to be 2\n"); return -1; } glcStringType(GLC_UCS4); if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_STRING_TYPE) != GLC_UCS4) { printf("String type was expected to be GLC_UCS4\n"); return -1; } if (!checkError(GLC_NONE)) return -1; glcPopAttribQSO(); if (!checkError(GLC_NONE)) return -1; if (!checkIsEnabled(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE, GL_FALSE, GL_TRUE)) return -1; if (glcGeti(GLC_STRING_TYPE) != GLC_UCS2) { printf("String type was expected to be GLC_UCS2\n"); return -1; } if (glcGeti(GLC_RENDER_STYLE) != GLC_TRIANGLE) { printf("The render style is not GLC_TRIANGLE\n"); return -1; } glcPopAttribQSO(); if (!checkError(GLC_NONE)) return -1; if (!checkIsEnabled(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE)) return -1; if (glcGeti(GLC_STRING_TYPE) != GLC_UCS1) { printf("String type was expected to be GLC_UCS1\n"); return -1; } if (glcGeti(GLC_RENDER_STYLE) != GLC_TRIANGLE) { printf("The render style is not GLC_TRIANGLE\n"); return -1; } glcStringType(GLC_UTF8_QSO); if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_STRING_TYPE) != GLC_UTF8_QSO) { printf("String type was expected to be GLC_UTF8_QSO\n"); return -1; } if (!checkError(GLC_NONE)) return -1; glcStringType((GLCenum)0); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; if (strcmp(glcGetc(GLC_EXTENSIONS), __glcExtensions)) { printf("GLC_EXTENSIONS : %s\n(expected to be %s)\n", (char*)glcGetc(GLC_EXTENSIONS), (char*)__glcExtensions); return -1; } if (!checkError(GLC_NONE)) return -1; if (strcmp(glcGetc(GLC_RELEASE), __glcRelease)) { printf("GLC_RELEASE : %s (expected to be %s)\n", (char*)glcGetc(GLC_RELEASE), (char*)__glcRelease); return -1; } if (!checkError(GLC_NONE)) return -1; if (strcmp(glcGetc(GLC_VENDOR), __glcVendor)) { printf("GLC_VENDOR : %s (expected to be %s)", (char*)glcGetc(GLC_VENDOR), (char*)__glcVendor); return -1; } if (!checkError(GLC_NONE)) return -1; glcStringType(GLC_UCS2); if (!checkError(GLC_NONE)) return -1; if (memcmp(glcGetc(GLC_EXTENSIONS), __glcExtensionsUCS2, strlen(__glcExtensions)+1)*2) { printf("GLC_EXTENSIONS in UCS2 is wrong\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (memcmp(glcGetc(GLC_RELEASE), __glcReleaseUCS2, strlen(__glcRelease)+1)*2) { printf("GLC_RELEASE in UCS2 is wrong\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (memcmp(glcGetc(GLC_VENDOR), __glcVendorUCS2, strlen(__glcVendor)+1)*2) { printf("GLC_VENDOR in UCS2 is wrong\n"); return -1; } if (!checkError(GLC_NONE)) return -1; glcStringType(GLC_UCS4); if (!checkError(GLC_NONE)) return -1; if (memcmp(glcGetc(GLC_EXTENSIONS), __glcExtensionsUCS4, strlen(__glcExtensions)+1)*4) { printf("GLC_EXTENSIONS in UCS4 is wrong\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (memcmp(glcGetc(GLC_RELEASE), __glcReleaseUCS4, strlen(__glcRelease)+1)*4) { printf("GLC_RELEASE in UCS4 is wrong\n"); return -1; } if (!checkError(GLC_NONE)) return -1; if (memcmp(glcGetc(GLC_VENDOR), __glcVendorUCS4, strlen(__glcVendor)+1)*4) { printf("GLC_VENDOR in UCS4 is wrong\n"); return -1; } if (!checkError(GLC_NONE)) return -1; glcStringType(GLC_UTF8_QSO); if (!checkError(GLC_NONE)) return -1; if (strcmp(glcGetc(GLC_EXTENSIONS), __glcExtensions)) { printf("GLC_EXTENSIONS : %s (expected to be %s)", (char*)glcGetc(GLC_EXTENSIONS), (char*)__glcExtensions); return -1; } if (!checkError(GLC_NONE)) return -1; if (strcmp(glcGetc(GLC_RELEASE), __glcRelease)) { printf("GLC_RELEASE : %s (expected to be %s)", (char*)glcGetc(GLC_RELEASE), (char*)__glcRelease); return -1; } if (!checkError(GLC_NONE)) return -1; if (strcmp(glcGetc(GLC_VENDOR), __glcVendor)) { printf("GLC_VENDOR : %s (expected to be %s)", (char*)glcGetc(GLC_VENDOR), (char*)__glcVendor); return -1; } if (!checkError(GLC_NONE)) return -1; glcGetc((GLCenum)0); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; glcStringType(GLC_UCS1); if (!checkError(GLC_NONE)) return -1; if (glcGetf(GLC_RESOLUTION) > 1E-5) { printf("Initial value of GLC_RESOLUTION is %f (expected 0.)\n", glcGetf(GLC_RESOLUTION)); return -1; } if (!checkError(GLC_NONE)) return -1; glcResolution(-10.); if (!checkError(GLC_PARAMETER_ERROR)) { printf("Negative resolutions are illegal and should raise a GLC_PARAMETER_ERROR\n"); return -1; } if ((glcGetf(GLC_RESOLUTION)-72.) > 1E-5) { printf("Initial value of GLC_RESOLUTION has been altered %f (expected 72.)\n", glcGetf(GLC_RESOLUTION)); return -1; } glcResolution(90.); if (!checkError(GLC_NONE)) return -1; if ((glcGetf(GLC_RESOLUTION)-90.) > 1E-5) { printf("Current value of GLC_RESOLUTION is %f (expected 90.)\n", glcGetf(GLC_RESOLUTION)); return -1; } if (!checkError(GLC_NONE)) return -1; glcGetf((GLCenum)0); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; glcReplacementCode((GLint)'?'); if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_REPLACEMENT_CODE) != (GLint)'?') { printf("Unexpected GLC_REPLACEMENT_CODE 0x%X (expected 0x%X)\n", glcGeti(GLC_REPLACEMENT_CODE), (GLint)'?'); return -1; } glcRenderStyle((GLCenum)0); if (!checkError(GLC_PARAMETER_ERROR)) return -1; glcRenderStyle(GLC_LINE); if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_RENDER_STYLE) != GLC_LINE) { printf("Unexpected GLC_RENDER_STYLE 0x%X (expected 0x%X)\n", glcGeti(GLC_RENDER_STYLE), GLC_LINE); return -1; } if (!checkError(GLC_NONE)) return -1; glcRenderStyle(GLC_TEXTURE); if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_RENDER_STYLE) != GLC_TEXTURE) { printf("Unexpected GLC_RENDER_STYLE 0x%X (expected 0x%X)\n", glcGeti(GLC_RENDER_STYLE), GLC_TEXTURE); return -1; } if (!checkError(GLC_NONE)) return -1; glcRenderStyle(GLC_TRIANGLE); if (!checkError(GLC_NONE)) return -1; if (glcGeti(GLC_RENDER_STYLE) != GLC_TRIANGLE) { printf("Unexpected GLC_RENDER_STYLE 0x%X (expected 0x%X)\n", glcGeti(GLC_RENDER_STYLE), GLC_TRIANGLE); return -1; } if (!checkError(GLC_NONE)) return -1; count = glcGeti(GLC_CATALOG_COUNT); if (!checkError(GLC_NONE)) return -1; glcGetListc(GLC_CATALOG_LIST, -1); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; if (count) { GLint i = 0; glcGetListc(GLC_CATALOG_LIST, count); if (!checkError(GLC_PARAMETER_ERROR)) return -1; if (!checkError(GLC_NONE)) return -1; for (i = 0; i < count; i++) { glcGetListc(GLC_CATALOG_LIST, i); if (!checkError(GLC_NONE)) return -1; } } glcContext(0); if (!checkError(GLC_NONE)) return -1; glcDeleteContext(ctx); if (!checkError(GLC_NONE)) return -1; free(__glcExtensionsUCS2); free(__glcReleaseUCS2); free(__glcVendorUCS2); free(__glcExtensionsUCS4); free(__glcReleaseUCS4); free(__glcVendorUCS4); printf("Tests successful\n"); return 0; } quesoglc-0.7.2/tests/test9.5.vcproj0000644000175000017500000001041311162160036014060 00000000000000 quesoglc-0.7.2/tests/test11.5.vcproj0000644000175000017500000001034411162160036014134 00000000000000 quesoglc-0.7.2/tests/testrender.c0000644000175000017500000001126011145567770013765 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: testrender.c 713 2008-01-26 20:10:13Z bcoconni $ */ /* Example of how to render text using the rendering styles defined in the * GLC specs. */ #include "GL/glc.h" #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include #ifdef __WIN32__ /* Font face "Arial Regular" for Windows in order to make a regression test for * bug #1856336. */ #define FAMILY "Arial" #define FACE "Regular" #else #define FAMILY "Courier" #define FACE "Italic" #endif void display(void) { GLfloat BitmapBoundingBox[8]; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glcRenderStyle(GLC_LINE); glColor3f(0., 1., 0.); glTranslatef(100., 50., 0.); glRotatef(45., 0., 0., 1.); glScalef(90., 90., 0.); glcRenderChar('L'); glcRenderString("ine"); glLoadIdentity(); glcRenderStyle(GLC_TEXTURE); glColor3f(0., 0., 1.); glTranslatef(30., 150., 0.); glScalef(90., 90., 0.); glcRenderChar('T'); glcRenderString("exture"); glLoadIdentity(); glcRenderStyle(GLC_BITMAP); glColor3f(1., 0., 0.); glRasterPos2f(30., 200.); glcLoadIdentity(); glcScale(90., 90.); glcRotate(-10.); glcRenderChar('B'); glcRenderString("itmap"); glcLoadIdentity(); glcMeasureString(GL_FALSE, "Bitmap"); glcGetStringMetric(GLC_BOUNDS, BitmapBoundingBox); glTranslatef(30., 200., 0.); glScalef(90., 90., 1.); glRotatef(-10., 0., 0., 1.); glBegin(GL_LINE_LOOP); glVertex2fv(&(BitmapBoundingBox[0])); glVertex2fv(&(BitmapBoundingBox[2])); glVertex2fv(&(BitmapBoundingBox[4])); glVertex2fv(&(BitmapBoundingBox[6])); glEnd(); glLoadIdentity(); glcRenderStyle(GLC_TRIANGLE); glColor3f(1., 1., 0.); glTranslatef(30., 50., 0.); glScalef(90., 90., 0.); glcRenderString("Tr"); glcRenderStyle(GLC_LINE); glcRenderChar('i'); glcRenderStyle(GLC_TRIANGLE); glcRenderString("angle"); glFlush(); } void reshape(int width, int height) { glClearColor(0., 0., 0., 0.); glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(-0.325, width - 0.325, -0.325, height - 0.325); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glFlush(); } void keyboard(unsigned char key, int x, int y) { GLint i = 0; switch(key) { case 27: /* Escape Key */ printf("Textures : %d\n", glcGeti(GLC_TEXTURE_OBJECT_COUNT)); for (i = 0; i < glcGeti(GLC_TEXTURE_OBJECT_COUNT); i++) printf("Texture #%d : %d\n", i, glcGetListi(GLC_TEXTURE_OBJECT_LIST, i)); printf("Display Lists : %d\n", glcGeti(GLC_LIST_OBJECT_COUNT)); for (i = 0; i < glcGeti(GLC_LIST_OBJECT_COUNT); i++) printf("Display List #%d : %d\n", i, glcGetListi(GLC_LIST_OBJECT_LIST, i)); printf("Buffer Objects : %d\n", glcGeti(GLC_BUFFER_OBJECT_COUNT_QSO)); for (i = 0; i < glcGeti(GLC_BUFFER_OBJECT_COUNT_QSO); i++) printf("Buffer Object #%d : %d\n", i, glcGetListi(GLC_BUFFER_OBJECT_LIST_QSO, i)); glcDeleteGLObjects(); glcDeleteContext(glcGetCurrentContext()); glcContext(0); exit(0); default: break; } } int main(int argc, char **argv) { int ctx = 0; int font = 0; GLCenum error = 0; glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(640, 480); glutCreateWindow("QuesoGLC"); glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keyboard); glEnable(GL_TEXTURE_2D); ctx = glcGenContext(); glcContext(ctx); font = glcNewFontFromFamily(glcGenFontID(), FAMILY); glcFont(font); error = glcGetError(); glcFontFace(font, FACE); #ifdef __WIN32__ /* Regression test for bug #1856336 */ error = glcGetError(); if (error == GLC_RESOURCE_ERROR) { printf("Unable to select the font %s %s\n", FAMILY, FACE); return -1; } #endif glutMainLoop(); glcDeleteContext(ctx); return 0; } quesoglc-0.7.2/tests/test2.c0000644000175000017500000001237410764574552012660 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test2.c 679 2007-12-20 21:42:13Z bcoconni $ */ /** \file * Check GLC routines in a multithreaded app when no GL context has been bound */ #include "GL/glc.h" #include #include #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif pthread_mutex_t mutex; pthread_cond_t cond; void* thread2(void *arg) { int i; int ctx; /* Since the mutex is locked when this thread is created execution suspend * here waiting for the Main Thread to call pthread_cond_wait() */ printf("Thread2 : Try to lock mutex\n"); if (pthread_mutex_lock(&mutex)) { printf("Thread2 : Can't lock mutex\n"); return NULL; } printf("Thread2 : Mutex locked\n"); /* Immediately unlock the mutex so that the Main Thread can execute after * pthread_cond_wait() returns. */ if (pthread_mutex_unlock(&mutex)) { printf("Thread2 : Can't unlock mutex\n"); return NULL; } printf("Thread2 : Mutex unlocked\n"); /* Send the signal to the Main Thread so that both begins synchronously to * generate contexts. */ printf("Thread2 : sending signal\n"); if (pthread_cond_signal(&cond)) { printf("Thread2 : Can't send signal\n"); return NULL; } printf("Thread2 : signal sent\n"); /* Generate 8 contexts */ for (i=0;i<8;i++) { if (i==0) printf("Thread2 : request context creation\n"); ctx = glcGenContext(); printf("Thread2 : context %d created\n", ctx); } /* Wait for context 12 to be created. * Note that context 12 may have been created by the current thread */ i = 0; while (!glcIsContext(12)) { i++; if (i>5000) { i = 0; printf("Thread2 : context 12 not yet created\n"); } } printf("Thread2 : context 12 is created\n"); printf("Thread2 : terminated\n"); return NULL; } int main(int argc, char **argv) { pthread_t t2; int i; int ctx; /* Needed to initialize an OpenGL context */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("test2"); /* Initialize the mutex and the condition variable */ if (pthread_mutex_init(&mutex, NULL)) { printf("Main Thread : can't create mutex\n"); return -1; } printf("Main Thread : Mutex created\n"); if (pthread_cond_init(&cond, NULL)) { printf("Main Thread : can't initialize the condition variable\n"); return -1; } printf("Main Thread : Condition variable created\n"); /* Lock the mutex so that the 2nd Thread wait for the main thread to be ready */ if (pthread_mutex_lock(&mutex)) { printf("Main Thread : can't lock mutex\n"); return -1; } printf("Main Thread : Mutex locked\n"); /* Create the 2nd thread */ if (pthread_create(&t2, NULL, thread2, NULL)) { printf("Main Thread : can't create pthread\n"); return -1; } printf("Main Thread : created Thread2\n"); printf("Main Thread : wait for condition variable\n"); /* Wait for the signal from Thread 2 */ if (pthread_cond_wait(&cond, &mutex)) { printf("Main Thread : failed to wait for condition variable\n"); return -1; } printf("Main Thread : Condition variable released\n"); /* Generate 8 contexts */ for (i=0; i<8; i++) { if (i==0) printf("Main thread : request context creation\n"); ctx = glcGenContext(); printf("Main Thread : context %d created\n", ctx); } glcContext(ctx); printf("Main Thread : current context %d\n", glcGetCurrentContext()); /* Wait for context 12 to be created. * Note that context 12 may have been created by the current thread */ i = 0; while (!glcIsContext(12)) { i++; if (i>5000) { i = 0; printf("Main Thread : context 12 not yet created\n"); } } printf("Main Thread : context 12 is created\n"); /* Destroy the mutex and the condition variable */ if (pthread_cond_destroy(&cond)) { printf("Main Thread : Can't destroy condition variable\n"); return -1; } printf("Main Thread : Condition variable destroyed\n"); /* The mutex has been locked when pthread_cond_wait() was successful so we * have to unlock it */ if (pthread_mutex_unlock(&mutex)) { printf("Main Thread : failed to unlock mutex\n"); } if (pthread_mutex_destroy(&mutex)) { printf("Main Thread : Can't destroy mutex\n"); return -1; } pthread_join(t2, NULL); printf("Main Thread : Mutex destroyed\n"); printf("\nTests successful !\n"); return 0; } quesoglc-0.7.2/tests/Makefile.am0000644000175000017500000001032711150246022013455 00000000000000 ## Process this file with automake to produce Makefile.in. noinst_PROGRAMS = test4 \ @DEBUG_TESTS@ \ @TESTS_WITH_GLUT@ EXTRA_PROGRAMS = test1 \ test2 \ test3 \ test5 \ test6 \ test7 \ test8 \ test9.1 \ test9.2 \ test9.3 \ test9.4 \ test9.5 \ test9.6 \ test9.7 \ test9.8 \ test10 \ test11.1 \ test11.2 \ test11.3 \ test11.4 \ test11.5 \ test11.6 \ test11.7 \ test12 \ test13 \ test14 \ test15 \ test16 \ test17 \ testcontex \ testfont \ testmaster \ testrender TESTS = $(noinst_PROGRAMS) AM_CFLAGS = @PTHREAD_CFLAGS@ \ @FREETYPE2_CFLAGS@ \ @FONTCONFIG_CFLAGS@ \ @GLUT_CFLAGS@ \ @FRIBIDI_CFLAGS@ LDADD = $(top_builddir)/build/libGLC.la \ @GLUT_LIBS@ \ @FONTCONFIG_LIBS@ \ @FREETYPE2_LIBS@ \ @PTHREAD_LIBS@ \ @FRIBIDI_LIBS@ test1_SOURCES = test1.c test2_SOURCES = test2.c test3_SOURCES = test3.c test4_SOURCES = test4.c test5_SOURCES = test5.c test6_SOURCES = test6.c test6_CFLAGS = $(CFLAGS) -DQUESOGLC_VERSION=\"@PACKAGE_VERSION@\" -DGLEW_MX testcontex_SOURCES = testcontex.c testfont_SOURCES = testfont.c testmaster_SOURCES = testmaster.c test7_SOURCES = test7.c test7_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ test7_LDADD = @GLUT_LIBS@ $(LDADD) test8_SOURCES = test8.c test8_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ test8_LDADD = @GLUT_LIBS@ $(LDADD) test9_1_SOURCES = test9.c test9_1_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE -DWITH_GL_OBJECTS test9_1_LDADD = @GLUT_LIBS@ $(LDADD) test9_2_SOURCES = test9.c test9_2_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE test9_2_LDADD = @GLUT_LIBS@ $(LDADD) test9_3_SOURCES = test9.c test9_3_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE -DWITH_USER_LIST -DWITH_GL_OBJECTS test9_3_LDADD = @GLUT_LIBS@ $(LDADD) test9_4_SOURCES = test9.c test9_4_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE -DWITH_USER_LIST test9_4_LDADD = @GLUT_LIBS@ $(LDADD) test9_5_SOURCES = test9.c test9_5_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE -DWITH_GL_OBJECTS test9_5_LDADD = @GLUT_LIBS@ $(LDADD) test9_6_SOURCES = test9.c test9_6_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE test9_6_LDADD = @GLUT_LIBS@ $(LDADD) test9_7_SOURCES = test9.c test9_7_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE -DWITH_USER_LIST -DWITH_GL_OBJECTS test9_7_LDADD = @GLUT_LIBS@ $(LDADD) test9_8_SOURCES = test9.c test9_8_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE -DWITH_USER_LIST test9_8_LDADD = @GLUT_LIBS@ $(LDADD) test10_SOURCES = test10.c test11_1_SOURCES = test11.c test11_1_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE test11_1_LDADD = @GLUT_LIBS@ $(LDADD) test11_2_SOURCES = test11.c test11_2_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE -DWITH_GL_OBJECTS test11_2_LDADD = @GLUT_LIBS@ $(LDADD) test11_3_SOURCES = test11.c test11_3_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE test11_3_LDADD = @GLUT_LIBS@ $(LDADD) test11_4_SOURCES = test11.c test11_4_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE -DWITH_GL_OBJECTS test11_4_LDADD = @GLUT_LIBS@ $(LDADD) test11_5_SOURCES = test11.c test11_5_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_LINE test11_5_LDADD = @GLUT_LIBS@ $(LDADD) test11_6_SOURCES = test11.c test11_6_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_LINE -DWITH_GL_OBJECTS test11_6_LDADD = @GLUT_LIBS@ $(LDADD) test11_7_SOURCES = test11.c test11_7_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_BITMAP test11_7_LDADD = @GLUT_LIBS@ $(LDADD) testrender_SOURCES = testrender.c testrender_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ testrender_LDADD = @GLUT_LIBS@ $(LDADD) clean-generic: rm -f *.gcno *.gcda *.gcov quesoglc-0.7.2/tests/testfont.c0000644000175000017500000001453611047311556013453 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: testfont.c 822 2008-08-09 12:53:58Z bcoconni $ */ /** \file * Test the GLC functions of the font group. It can be used either : * - by checking the output * - by checking that it does not crash * - by checking memory leaks with a tool like valgrind */ #include "GL/glc.h" #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif int main(int argc, char **argv) { GLint ctx = 0; GLint font = 0; GLint dummyFont = 0; int i = 0; int last = 0; int count = 0; /* Needed to initialize an OpenGL context */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("testfont"); ctx = glcGenContext(); glcContext(ctx); #ifdef __WIN32__ font = glcNewFontFromFamily(1, "Times New Roman"); glcFontFace(font, "Bold"); glcFont(font); font = glcNewFontFromFamily(3, "Courier New"); glcAppendFont(font); glcFontFace(font, "Italic"); #else /* For platforms other than Windows, available fonts may vary from a platform * to another. It even vary from one Linux distribution to another !!! So we * can not rely on a font name; instead, we will look for masters with * specific properties : here we search for masters that contain the letter * 'A' (which usually means that the whole latin alphabet is available) and * that have at least 2 faces so that we can choose another face than the * default one. */ /* Find a master that contains the letter 'A' (code 65) */ for (i = 0; i < glcGeti(GLC_MASTER_COUNT); i++) { if (glcGetMasterMap(i, 65) && (glcGetMasteri(i, GLC_FACE_COUNT) > 1)) break; } /* Create a font with the second face of the master */ font = glcNewFontFromMaster(1, i); glcFontFace(font, glcGetMasterListc(i, GLC_FACE_LIST, 1)); glcFont(font); /* Find another master */ for (; i < glcGeti(GLC_MASTER_COUNT); i++) { if (glcGetMasterMap(i, 65) && (glcGetMasteri(i, GLC_FACE_COUNT) > 1)) break; } font = glcNewFontFromMaster(3, i); glcAppendFont(font); #endif dummyFont = glcGenFontID(); if (dummyFont != 2) { printf("Unexpected font ID #%d (should have been #2)\n", dummyFont); return -1; } dummyFont = glcGenFontID(); if (dummyFont != 4) { printf("Unexpected font ID #%d (should have been #4)\n", dummyFont); return -1; } if (!glcIsFont(font)) { printf("Font %d not recognized as a legal font ID while it should\n", font); return -1; } printf("Face : %s\n", (char *)glcGetFontFace(font)); printf("GenFontID : %d\n", glcGenFontID()); printf("Font #%d family : %s\n", font, (char *)glcGetFontc(font, GLC_FAMILY)); printf("Font #%d master format : %s\n", font, (char *)glcGetFontc(font, GLC_MASTER_FORMAT)); printf("Font #%d vendor : %s\n", font, (char *)glcGetFontc(font, GLC_VENDOR)); printf("Font #%d version : %s\n", font, (char *)glcGetFontc(font, GLC_VERSION)); count = glcGetFonti(font, GLC_FACE_COUNT); printf("Font #%d faces : %d\n", font, count); for (i = 0; i < count; i++) printf("Font #%d face #%d: %s\n", font, i, (char *)glcGetFontListc(font, GLC_FACE_LIST, i)); count = glcGetFonti(font, GLC_CHAR_COUNT); printf("Font #%d character count : %d\n", font, count); for (i = 0; i < count; i++) printf("Font #%d char #%d: %s\n", font, i, (char*)glcGetFontListc(font, GLC_CHAR_LIST, i)); printf("Font #%d is fixed pitch : %s\n", font, glcGetFonti(font, GLC_IS_FIXED_PITCH) ? "YES" : "NO"); printf("Font #%d max mapped code : %d\n", font, glcGetFonti(font, GLC_MAX_MAPPED_CODE)); printf("Font #%d min mapped code : %d\n", font, glcGetFonti(font, GLC_MIN_MAPPED_CODE)); printf("Font count : %d\n", glcGeti(GLC_FONT_COUNT)); printf("Current font count : %d\n", glcGeti(GLC_CURRENT_FONT_COUNT)); printf("Font #%d : %d\n", 1, glcGetListi(GLC_FONT_LIST, 1)); printf("Current Font #%d : %d\n", 1, glcGetListi(GLC_CURRENT_FONT_LIST, 1)); printf("Font Map #%d : %s\n", 65, (char *)glcGetFontMap(font, 65)); printf("Font Map #%d : %s\n", 92, (char *)glcGetFontMap(font, 92)); /* The characters maps are given in disorder in order to test the insertion * algorithm in glcFontMap() */ glcFontMap(font, 87, "LATIN CAPITAL LETTER A"); glcFontMap(font, 90, "LATIN CAPITAL LETTER D"); glcFontMap(font, 89, "LATIN CAPITAL LETTER C"); glcFontMap(font, 88, "LATIN CAPITAL LETTER B"); /* Check that the characters are correctly mapped */ for (i = 87; i < 91; i++) printf("Font Map #%d : %s\n", i, (char *)glcGetFontMap(font, i)); /* The character code 88 is removed from the font map */ glcFontMap(font, 88, NULL); printf("Character 88 removed from the font map\n"); /* Check that the remaining characters in the font map are still correctly * mapped. */ for (i = 87; i < 91; i++) printf("Font Map #%d : %s\n", i, (char *)glcGetFontMap(font, i)); i = 1; last = glcGetMasteri(i, GLC_CHAR_COUNT); printf("Master #%d\n", i); printf("- Vendor : %s\n", (char *)glcGetMasterc(i, GLC_VENDOR)); printf("- Format : %s\n", (char *)glcGetMasterc(i, GLC_MASTER_FORMAT)); printf("- Face count : %d\n", glcGetMasteri(i, GLC_FACE_COUNT)); printf("- Family : %s\n", (char *)glcGetMasterc(i, GLC_FAMILY)); printf("- Min Mapped Code : %d\n", glcGetMasteri(i,GLC_MIN_MAPPED_CODE)); printf("- Max Mapped Code : %d\n", glcGetMasteri(i,GLC_MAX_MAPPED_CODE)); printf("- Char Count : %d\n", last); printf("- Last Character : %s\n", (char *)glcGetMasterListc(i, GLC_CHAR_LIST, last-1)); glcDeleteFont(font); glcRemoveCatalog(1); return 0; } quesoglc-0.7.2/tests/test16.c0000644000175000017500000000734611162160036012725 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test16.c 887 2009-03-24 01:03:11Z bcoconni $ */ /** \file * Test for the function glcGetMaxCharMetric() */ #include "GL/glc.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include #include GLuint id = 0; GLint myFont = 0; void reshape(int width, int height) { glClearColor(0., 0., 0., 0.); glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0., width, 0., height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glFlush(); } void keyboard(unsigned char key, int x, int y) { switch(key) { case 27: /* Escape Key */ exit(0); default: break; } } void display(void) { GLfloat bbox[8]; int i = 0; GLint c = 0; GLfloat bboxMax[8] = {10000.f, 10000.f, -10000.f, 10000.f, -10000.f, -10000.f, 10000.f, -10000.f}; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glcGetMaxCharMetric(GLC_BOUNDS, bbox); glLoadIdentity(); glScalef(120.f, 120.f, 1.f); glTranslatef(0.5f, 1.f, 0.f); glColor3f(0.f, 1.f, 1.f); glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); glLoadIdentity(); glScalef(120.f, 120.f, 1.f); glColor3f(1.f, 0.f, 0.f); glTranslatef(0.5f, 1.f, 0.f); for (c = 32; c < 0x110000; c++) { if (!glcGetFontMap(myFont, c)) continue; glPushMatrix(); glcRenderChar(c); glPopMatrix(); glcGetCharMetric(c, GLC_BOUNDS, bbox); if (bbox[0] < bboxMax[0]) { bboxMax[0] = bbox[0]; bboxMax[6] = bbox[6]; } if (bbox[1] < bboxMax[1]) { bboxMax[1] = bbox[1]; bboxMax[3] = bbox[3]; } if (bbox[2] > bboxMax[2]) { bboxMax[2] = bbox[2]; bboxMax[4] = bbox[4]; } if (bbox[5] > bboxMax[5]) { bboxMax[5] = bbox[5]; bboxMax[7] = bbox[7]; } } glColor3f(0.f, 1.f, 0.f); glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bboxMax[2*i]); glEnd(); glFlush(); } int main(int argc, char **argv) { GLint ctx = 0; GLint masterCount = 0; GLint master = 0; glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(640, 300); glutCreateWindow("Test16"); glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keyboard); glEnable(GL_TEXTURE_2D); /* Set up and initialize GLC */ ctx = glcGenContext(); glcContext(ctx); masterCount = glcGeti(GLC_MASTER_COUNT); for (master = 0; master < masterCount; master++) { GLint letter = 0; for (letter = 'A'; letter < 'F'; letter++) { if (!glcGetMasterMap(master, letter)) break; } if (letter == 'F') break; } myFont = glcGenFontID(); glcNewFontFromMaster(myFont, master); glcFont(myFont); glcStringType(GLC_UCS4); glcRenderStyle(GLC_TEXTURE); glcDisable(GLC_GL_OBJECTS); glcDisable(GLC_AUTO_FONT); glutMainLoop(); return 0; } quesoglc-0.7.2/tests/testfont.vcproj0000644000175000017500000000721411162160036014520 00000000000000 quesoglc-0.7.2/tests/test11.c0000644000175000017500000000705611015614043012715 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test11.c 787 2008-04-19 12:56:59Z bcoconni $ */ /** \file * Regression test for bug #1935557 * * Fonts are not rendered properly when the resolution is changed while the * render style is GLC_TEXTURE. * */ #include "GL/glc.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include #include GLuint id = 0; void reshape(int width, int height) { glClearColor(0., 0., 0., 0.); glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0., width, 0., height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glFlush(); } void keyboard(unsigned char key, int x, int y) { switch(key) { case 27: /* Escape Key */ exit(0); default: break; } } void display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); /* Render "Hello world!" */ glColor3f(1.f, 0.f, 0.f); #if (RENDER_STYLE == GLC_BITMAP) glcLoadIdentity(); glcScale(100.f, 100.f); glRasterPos2f(50.f, 50.f); #else glLoadIdentity(); glScalef(100.f, 100.f, 1.f); glTranslatef(0.5f, 0.5f, 0.f); #endif glcResolution(75.); glcRenderCountedString(4, "ABCDE"); #if (RENDER_STYLE == GLC_BITMAP) glcLoadIdentity(); glcScale(62.5f, 62.5f); glRasterPos2f(50.f, 150.f); #else glLoadIdentity(); glScalef(62.5f, 62.5f, 1.f); glTranslatef(0.8f, 2.4f, 0.f); #endif glcResolution(120.); /* If the bug is not fixed, this string does not look same as the one above */ glcRenderString("ABCDEFJ"); glFlush(); } int main(int argc, char **argv) { GLint ctx = 0; GLint myFont = 0; glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(640, 300); glutCreateWindow("Test11"); glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keyboard); glEnable(GL_TEXTURE_2D); /* Set up and initialize GLC */ ctx = glcGenContext(); glcContext(ctx); glcAppendCatalog("/usr/lib/X11/fonts/Type1"); /* Create a font "Palatino Bold" */ myFont = glcGenFontID(); #ifdef __WIN32__ glcNewFontFromFamily(myFont, "Palatino Linotype"); #else glcNewFontFromFamily(myFont, "Palatino"); #endif glcFontFace(myFont, "Bold"); glcFont(myFont); glcRenderStyle(RENDER_STYLE); #if (RENDER_STYLE == GLC_TEXTURE) printf("Render style : GLC_TEXTURE"); #elif (RENDER_STYLE == GLC_TRIANGLE) printf("Render style : GLC_TRIANGLE"); #elif (RENDER_STYLE == GLC_LINE) printf("Render style : GLC_LINE"); #elif (RENDER_STYLE == GLC_BITMAP) printf("Render style : GLC_BITMAP"); #endif #ifdef WITH_GL_OBJECTS printf("\t with GL objects\n"); #else glcDisable(GLC_GL_OBJECTS); printf("\t without GL objects\n"); #endif glutMainLoop(); return 0; } quesoglc-0.7.2/tests/testcontex.c0000644000175000017500000000645210764574552014017 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: testcontex.c 679 2007-12-20 21:42:13Z bcoconni $ */ /** \file * Test the GLC functions of the context group and the default state of the * contexts. */ #include "GL/glc.h" #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif int main(int argc, char **argv) { int ctx = 0; GLCenum error = GLC_NONE; /* Needed to initialize an OpenGL context */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("testcontex"); error = glcGetError(); if (error) { printf("Unexpected error #0x%X\n", error); return -1; } glcDisable(GLC_AUTO_FONT); error = glcGetError(); if (error != GLC_STATE_ERROR) { printf("GLC_STATE_ERROR expected. Error #0x%X instead\n", error); return -1; } error = glcGetError(); if (error) { printf("Error state should have been reset.\nError #0x%X instead\n", error); return -1; } ctx = glcGenContext(); glcContext(ctx); error = glcGetError(); if (error) { printf("Unexpected error #0x%X\n", error); return -1; } if (!glcIsEnabled(GLC_AUTO_FONT)) { printf("GLC_AUTO_FONT should be enabled by default\n"); return -1; } if (!glcIsEnabled(GLC_GL_OBJECTS)) { printf("GLC_GL_OBJECTS should be enabled by default\n"); return -1; } if (!glcIsEnabled(GLC_MIPMAP)) { printf("GLC_MIPMAP should be enabled by default\n"); return -1; } glcDisable(GLC_AUTO_FONT); if (glcIsEnabled(GLC_AUTO_FONT)) { printf("GLC_AUTO_FONT should be disabled now\n"); return -1; } if (!glcIsEnabled(GLC_GL_OBJECTS)) { printf("GLC_GL_OBJECTS should be enabled\n"); return -1; } if (!glcIsEnabled(GLC_MIPMAP)) { printf("GLC_MIPMAP should be enabled\n"); return -1; } glcDisable(GLC_GL_OBJECTS); if (glcIsEnabled(GLC_AUTO_FONT)) { printf("GLC_AUTO_FONT should be disabled now\n"); return -1; } if (glcIsEnabled(GLC_GL_OBJECTS)) { printf("GLC_GL_OBJECTS should be disbled\n"); return -1; } if (!glcIsEnabled(GLC_MIPMAP)) { printf("GLC_MIPMAP should be enabled\n"); return -1; } error = glcGetError(); if (error) { printf("Unexpected error #0x%X\n", error); return -1; } glcDisable(0); error = glcGetError(); if (error != GLC_PARAMETER_ERROR) { printf("GLC_PARAMETER_ERROR expected. Error #0x%X instead\n", error); return -1; } printf("Tests successful!\n"); return 0; } quesoglc-0.7.2/tests/Makefile.in0000644000175000017500000020407111164476137013510 00000000000000# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ noinst_PROGRAMS = test4$(EXEEXT) @DEBUG_TESTS@ @TESTS_WITH_GLUT@ EXTRA_PROGRAMS = test1$(EXEEXT) test2$(EXEEXT) test3$(EXEEXT) \ test5$(EXEEXT) test6$(EXEEXT) test7$(EXEEXT) test8$(EXEEXT) \ test9.1$(EXEEXT) test9.2$(EXEEXT) test9.3$(EXEEXT) \ test9.4$(EXEEXT) test9.5$(EXEEXT) test9.6$(EXEEXT) \ test9.7$(EXEEXT) test9.8$(EXEEXT) test10$(EXEEXT) \ test11.1$(EXEEXT) test11.2$(EXEEXT) test11.3$(EXEEXT) \ test11.4$(EXEEXT) test11.5$(EXEEXT) test11.6$(EXEEXT) \ test11.7$(EXEEXT) test12$(EXEEXT) test13$(EXEEXT) \ test14$(EXEEXT) test15$(EXEEXT) test16$(EXEEXT) \ test17$(EXEEXT) testcontex$(EXEEXT) testfont$(EXEEXT) \ testmaster$(EXEEXT) testrender$(EXEEXT) subdir = tests DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/build/m4/acx_pthread.m4 \ $(top_srcdir)/build/m4/ax_check_fontconfig.m4 \ $(top_srcdir)/build/m4/ax_check_freetype2.m4 \ $(top_srcdir)/build/m4/ax_check_fribidi.m4 \ $(top_srcdir)/build/m4/ax_check_gl.m4 \ $(top_srcdir)/build/m4/ax_check_glew.m4 \ $(top_srcdir)/build/m4/ax_check_glu.m4 \ $(top_srcdir)/build/m4/ax_check_glut.m4 \ $(top_srcdir)/build/m4/ax_check_tls.m4 \ $(top_srcdir)/build/m4/ax_lang_compiler_ms.m4 \ $(top_srcdir)/build/m4/libtool.m4 \ $(top_srcdir)/build/m4/ltoptions.m4 \ $(top_srcdir)/build/m4/ltsugar.m4 \ $(top_srcdir)/build/m4/ltversion.m4 \ $(top_srcdir)/build/m4/lt~obsolete.m4 \ $(top_srcdir)/build/m4/pkg.m4 $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/include/qglc_config.h CONFIG_CLEAN_FILES = PROGRAMS = $(noinst_PROGRAMS) am_test1_OBJECTS = test1.$(OBJEXT) test1_OBJECTS = $(am_test1_OBJECTS) test1_LDADD = $(LDADD) test1_DEPENDENCIES = $(top_builddir)/build/libGLC.la am_test10_OBJECTS = test10.$(OBJEXT) test10_OBJECTS = $(am_test10_OBJECTS) test10_LDADD = $(LDADD) test10_DEPENDENCIES = $(top_builddir)/build/libGLC.la am_test11_1_OBJECTS = test11_1-test11.$(OBJEXT) test11_1_OBJECTS = $(am_test11_1_OBJECTS) am__DEPENDENCIES_1 = $(top_builddir)/build/libGLC.la test11_1_DEPENDENCIES = $(am__DEPENDENCIES_1) test11_1_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test11_1_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test11_2_OBJECTS = test11_2-test11.$(OBJEXT) test11_2_OBJECTS = $(am_test11_2_OBJECTS) test11_2_DEPENDENCIES = $(am__DEPENDENCIES_1) test11_2_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test11_2_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test11_3_OBJECTS = test11_3-test11.$(OBJEXT) test11_3_OBJECTS = $(am_test11_3_OBJECTS) test11_3_DEPENDENCIES = $(am__DEPENDENCIES_1) test11_3_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test11_3_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test11_4_OBJECTS = test11_4-test11.$(OBJEXT) test11_4_OBJECTS = $(am_test11_4_OBJECTS) test11_4_DEPENDENCIES = $(am__DEPENDENCIES_1) test11_4_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test11_4_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test11_5_OBJECTS = test11_5-test11.$(OBJEXT) test11_5_OBJECTS = $(am_test11_5_OBJECTS) test11_5_DEPENDENCIES = $(am__DEPENDENCIES_1) test11_5_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test11_5_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test11_6_OBJECTS = test11_6-test11.$(OBJEXT) test11_6_OBJECTS = $(am_test11_6_OBJECTS) test11_6_DEPENDENCIES = $(am__DEPENDENCIES_1) test11_6_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test11_6_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test11_7_OBJECTS = test11_7-test11.$(OBJEXT) test11_7_OBJECTS = $(am_test11_7_OBJECTS) test11_7_DEPENDENCIES = $(am__DEPENDENCIES_1) test11_7_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test11_7_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ test12_SOURCES = test12.c test12_OBJECTS = test12.$(OBJEXT) test12_LDADD = $(LDADD) test12_DEPENDENCIES = $(top_builddir)/build/libGLC.la test13_SOURCES = test13.c test13_OBJECTS = test13.$(OBJEXT) test13_LDADD = $(LDADD) test13_DEPENDENCIES = $(top_builddir)/build/libGLC.la test14_SOURCES = test14.c test14_OBJECTS = test14.$(OBJEXT) test14_LDADD = $(LDADD) test14_DEPENDENCIES = $(top_builddir)/build/libGLC.la test15_SOURCES = test15.c test15_OBJECTS = test15.$(OBJEXT) test15_LDADD = $(LDADD) test15_DEPENDENCIES = $(top_builddir)/build/libGLC.la test16_SOURCES = test16.c test16_OBJECTS = test16.$(OBJEXT) test16_LDADD = $(LDADD) test16_DEPENDENCIES = $(top_builddir)/build/libGLC.la test17_SOURCES = test17.c test17_OBJECTS = test17.$(OBJEXT) test17_LDADD = $(LDADD) test17_DEPENDENCIES = $(top_builddir)/build/libGLC.la am_test2_OBJECTS = test2.$(OBJEXT) test2_OBJECTS = $(am_test2_OBJECTS) test2_LDADD = $(LDADD) test2_DEPENDENCIES = $(top_builddir)/build/libGLC.la am_test3_OBJECTS = test3.$(OBJEXT) test3_OBJECTS = $(am_test3_OBJECTS) test3_LDADD = $(LDADD) test3_DEPENDENCIES = $(top_builddir)/build/libGLC.la am_test4_OBJECTS = test4.$(OBJEXT) test4_OBJECTS = $(am_test4_OBJECTS) test4_LDADD = $(LDADD) test4_DEPENDENCIES = $(top_builddir)/build/libGLC.la am_test5_OBJECTS = test5.$(OBJEXT) test5_OBJECTS = $(am_test5_OBJECTS) test5_LDADD = $(LDADD) test5_DEPENDENCIES = $(top_builddir)/build/libGLC.la am_test6_OBJECTS = test6-test6.$(OBJEXT) test6_OBJECTS = $(am_test6_OBJECTS) test6_LDADD = $(LDADD) test6_DEPENDENCIES = $(top_builddir)/build/libGLC.la test6_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test6_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test7_OBJECTS = test7-test7.$(OBJEXT) test7_OBJECTS = $(am_test7_OBJECTS) test7_DEPENDENCIES = $(am__DEPENDENCIES_1) test7_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test7_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test8_OBJECTS = test8-test8.$(OBJEXT) test8_OBJECTS = $(am_test8_OBJECTS) test8_DEPENDENCIES = $(am__DEPENDENCIES_1) test8_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test8_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test9_1_OBJECTS = test9_1-test9.$(OBJEXT) test9_1_OBJECTS = $(am_test9_1_OBJECTS) test9_1_DEPENDENCIES = $(am__DEPENDENCIES_1) test9_1_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test9_1_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test9_2_OBJECTS = test9_2-test9.$(OBJEXT) test9_2_OBJECTS = $(am_test9_2_OBJECTS) test9_2_DEPENDENCIES = $(am__DEPENDENCIES_1) test9_2_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test9_2_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test9_3_OBJECTS = test9_3-test9.$(OBJEXT) test9_3_OBJECTS = $(am_test9_3_OBJECTS) test9_3_DEPENDENCIES = $(am__DEPENDENCIES_1) test9_3_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test9_3_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test9_4_OBJECTS = test9_4-test9.$(OBJEXT) test9_4_OBJECTS = $(am_test9_4_OBJECTS) test9_4_DEPENDENCIES = $(am__DEPENDENCIES_1) test9_4_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test9_4_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test9_5_OBJECTS = test9_5-test9.$(OBJEXT) test9_5_OBJECTS = $(am_test9_5_OBJECTS) test9_5_DEPENDENCIES = $(am__DEPENDENCIES_1) test9_5_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test9_5_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test9_6_OBJECTS = test9_6-test9.$(OBJEXT) test9_6_OBJECTS = $(am_test9_6_OBJECTS) test9_6_DEPENDENCIES = $(am__DEPENDENCIES_1) test9_6_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test9_6_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test9_7_OBJECTS = test9_7-test9.$(OBJEXT) test9_7_OBJECTS = $(am_test9_7_OBJECTS) test9_7_DEPENDENCIES = $(am__DEPENDENCIES_1) test9_7_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test9_7_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_test9_8_OBJECTS = test9_8-test9.$(OBJEXT) test9_8_OBJECTS = $(am_test9_8_OBJECTS) test9_8_DEPENDENCIES = $(am__DEPENDENCIES_1) test9_8_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(test9_8_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_testcontex_OBJECTS = testcontex.$(OBJEXT) testcontex_OBJECTS = $(am_testcontex_OBJECTS) testcontex_LDADD = $(LDADD) testcontex_DEPENDENCIES = $(top_builddir)/build/libGLC.la am_testfont_OBJECTS = testfont.$(OBJEXT) testfont_OBJECTS = $(am_testfont_OBJECTS) testfont_LDADD = $(LDADD) testfont_DEPENDENCIES = $(top_builddir)/build/libGLC.la am_testmaster_OBJECTS = testmaster.$(OBJEXT) testmaster_OBJECTS = $(am_testmaster_OBJECTS) testmaster_LDADD = $(LDADD) testmaster_DEPENDENCIES = $(top_builddir)/build/libGLC.la am_testrender_OBJECTS = testrender-testrender.$(OBJEXT) testrender_OBJECTS = $(am_testrender_OBJECTS) testrender_DEPENDENCIES = $(am__DEPENDENCIES_1) testrender_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(testrender_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include depcomp = $(SHELL) $(top_srcdir)/build/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(test1_SOURCES) $(test10_SOURCES) $(test11_1_SOURCES) \ $(test11_2_SOURCES) $(test11_3_SOURCES) $(test11_4_SOURCES) \ $(test11_5_SOURCES) $(test11_6_SOURCES) $(test11_7_SOURCES) \ test12.c test13.c test14.c test15.c test16.c test17.c \ $(test2_SOURCES) $(test3_SOURCES) $(test4_SOURCES) \ $(test5_SOURCES) $(test6_SOURCES) $(test7_SOURCES) \ $(test8_SOURCES) $(test9_1_SOURCES) $(test9_2_SOURCES) \ $(test9_3_SOURCES) $(test9_4_SOURCES) $(test9_5_SOURCES) \ $(test9_6_SOURCES) $(test9_7_SOURCES) $(test9_8_SOURCES) \ $(testcontex_SOURCES) $(testfont_SOURCES) \ $(testmaster_SOURCES) $(testrender_SOURCES) DIST_SOURCES = $(test1_SOURCES) $(test10_SOURCES) $(test11_1_SOURCES) \ $(test11_2_SOURCES) $(test11_3_SOURCES) $(test11_4_SOURCES) \ $(test11_5_SOURCES) $(test11_6_SOURCES) $(test11_7_SOURCES) \ test12.c test13.c test14.c test15.c test16.c test17.c \ $(test2_SOURCES) $(test3_SOURCES) $(test4_SOURCES) \ $(test5_SOURCES) $(test6_SOURCES) $(test7_SOURCES) \ $(test8_SOURCES) $(test9_1_SOURCES) $(test9_2_SOURCES) \ $(test9_3_SOURCES) $(test9_4_SOURCES) $(test9_5_SOURCES) \ $(test9_6_SOURCES) $(test9_7_SOURCES) $(test9_8_SOURCES) \ $(testcontex_SOURCES) $(testfont_SOURCES) \ $(testmaster_SOURCES) $(testrender_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEBUG_TESTS = @DEBUG_TESTS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXECUTABLES = @EXECUTABLES@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ FREETYPE2_CFLAGS = @FREETYPE2_CFLAGS@ FREETYPE2_LIBS = @FREETYPE2_LIBS@ FREETYPE_CONFIG = @FREETYPE_CONFIG@ FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ FRIBIDI_LIBS = @FRIBIDI_LIBS@ FRIBIDI_OBJ = @FRIBIDI_OBJ@ GLEW_CFLAGS = @GLEW_CFLAGS@ GLEW_OBJ = @GLEW_OBJ@ GLUT_CFLAGS = @GLUT_CFLAGS@ GLUT_LIBS = @GLUT_LIBS@ GLU_CFLAGS = @GLU_CFLAGS@ GLU_LIBS = @GLU_LIBS@ GL_CFLAGS = @GL_CFLAGS@ GL_LIBS = @GL_LIBS@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKGCONFIG_INCLUDE = @PKGCONFIG_INCLUDE@ PKGCONFIG_LIBS_PRIVATE = @PKGCONFIG_LIBS_PRIVATE@ PKGCONFIG_REQUIREMENTS = @PKGCONFIG_REQUIREMENTS@ PKG_CONFIG = @PKG_CONFIG@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TESTS_WITH_GLUT = @TESTS_WITH_GLUT@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ TESTS = $(noinst_PROGRAMS) AM_CFLAGS = @PTHREAD_CFLAGS@ \ @FREETYPE2_CFLAGS@ \ @FONTCONFIG_CFLAGS@ \ @GLUT_CFLAGS@ \ @FRIBIDI_CFLAGS@ LDADD = $(top_builddir)/build/libGLC.la \ @GLUT_LIBS@ \ @FONTCONFIG_LIBS@ \ @FREETYPE2_LIBS@ \ @PTHREAD_LIBS@ \ @FRIBIDI_LIBS@ test1_SOURCES = test1.c test2_SOURCES = test2.c test3_SOURCES = test3.c test4_SOURCES = test4.c test5_SOURCES = test5.c test6_SOURCES = test6.c test6_CFLAGS = $(CFLAGS) -DQUESOGLC_VERSION=\"@PACKAGE_VERSION@\" -DGLEW_MX testcontex_SOURCES = testcontex.c testfont_SOURCES = testfont.c testmaster_SOURCES = testmaster.c test7_SOURCES = test7.c test7_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ test7_LDADD = @GLUT_LIBS@ $(LDADD) test8_SOURCES = test8.c test8_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ test8_LDADD = @GLUT_LIBS@ $(LDADD) test9_1_SOURCES = test9.c test9_1_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE -DWITH_GL_OBJECTS test9_1_LDADD = @GLUT_LIBS@ $(LDADD) test9_2_SOURCES = test9.c test9_2_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE test9_2_LDADD = @GLUT_LIBS@ $(LDADD) test9_3_SOURCES = test9.c test9_3_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE -DWITH_USER_LIST -DWITH_GL_OBJECTS test9_3_LDADD = @GLUT_LIBS@ $(LDADD) test9_4_SOURCES = test9.c test9_4_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE -DWITH_USER_LIST test9_4_LDADD = @GLUT_LIBS@ $(LDADD) test9_5_SOURCES = test9.c test9_5_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE -DWITH_GL_OBJECTS test9_5_LDADD = @GLUT_LIBS@ $(LDADD) test9_6_SOURCES = test9.c test9_6_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE test9_6_LDADD = @GLUT_LIBS@ $(LDADD) test9_7_SOURCES = test9.c test9_7_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE -DWITH_USER_LIST -DWITH_GL_OBJECTS test9_7_LDADD = @GLUT_LIBS@ $(LDADD) test9_8_SOURCES = test9.c test9_8_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE -DWITH_USER_LIST test9_8_LDADD = @GLUT_LIBS@ $(LDADD) test10_SOURCES = test10.c test11_1_SOURCES = test11.c test11_1_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE test11_1_LDADD = @GLUT_LIBS@ $(LDADD) test11_2_SOURCES = test11.c test11_2_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TEXTURE -DWITH_GL_OBJECTS test11_2_LDADD = @GLUT_LIBS@ $(LDADD) test11_3_SOURCES = test11.c test11_3_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE test11_3_LDADD = @GLUT_LIBS@ $(LDADD) test11_4_SOURCES = test11.c test11_4_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_TRIANGLE -DWITH_GL_OBJECTS test11_4_LDADD = @GLUT_LIBS@ $(LDADD) test11_5_SOURCES = test11.c test11_5_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_LINE test11_5_LDADD = @GLUT_LIBS@ $(LDADD) test11_6_SOURCES = test11.c test11_6_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_LINE -DWITH_GL_OBJECTS test11_6_LDADD = @GLUT_LIBS@ $(LDADD) test11_7_SOURCES = test11.c test11_7_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ -DRENDER_STYLE=GLC_BITMAP test11_7_LDADD = @GLUT_LIBS@ $(LDADD) testrender_SOURCES = testrender.c testrender_CFLAGS = $(CFLAGS) @GLUT_CFLAGS@ testrender_LDADD = @GLUT_LIBS@ $(LDADD) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign tests/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done test1$(EXEEXT): $(test1_OBJECTS) $(test1_DEPENDENCIES) @rm -f test1$(EXEEXT) $(LINK) $(test1_OBJECTS) $(test1_LDADD) $(LIBS) test10$(EXEEXT): $(test10_OBJECTS) $(test10_DEPENDENCIES) @rm -f test10$(EXEEXT) $(LINK) $(test10_OBJECTS) $(test10_LDADD) $(LIBS) test11.1$(EXEEXT): $(test11_1_OBJECTS) $(test11_1_DEPENDENCIES) @rm -f test11.1$(EXEEXT) $(test11_1_LINK) $(test11_1_OBJECTS) $(test11_1_LDADD) $(LIBS) test11.2$(EXEEXT): $(test11_2_OBJECTS) $(test11_2_DEPENDENCIES) @rm -f test11.2$(EXEEXT) $(test11_2_LINK) $(test11_2_OBJECTS) $(test11_2_LDADD) $(LIBS) test11.3$(EXEEXT): $(test11_3_OBJECTS) $(test11_3_DEPENDENCIES) @rm -f test11.3$(EXEEXT) $(test11_3_LINK) $(test11_3_OBJECTS) $(test11_3_LDADD) $(LIBS) test11.4$(EXEEXT): $(test11_4_OBJECTS) $(test11_4_DEPENDENCIES) @rm -f test11.4$(EXEEXT) $(test11_4_LINK) $(test11_4_OBJECTS) $(test11_4_LDADD) $(LIBS) test11.5$(EXEEXT): $(test11_5_OBJECTS) $(test11_5_DEPENDENCIES) @rm -f test11.5$(EXEEXT) $(test11_5_LINK) $(test11_5_OBJECTS) $(test11_5_LDADD) $(LIBS) test11.6$(EXEEXT): $(test11_6_OBJECTS) $(test11_6_DEPENDENCIES) @rm -f test11.6$(EXEEXT) $(test11_6_LINK) $(test11_6_OBJECTS) $(test11_6_LDADD) $(LIBS) test11.7$(EXEEXT): $(test11_7_OBJECTS) $(test11_7_DEPENDENCIES) @rm -f test11.7$(EXEEXT) $(test11_7_LINK) $(test11_7_OBJECTS) $(test11_7_LDADD) $(LIBS) test12$(EXEEXT): $(test12_OBJECTS) $(test12_DEPENDENCIES) @rm -f test12$(EXEEXT) $(LINK) $(test12_OBJECTS) $(test12_LDADD) $(LIBS) test13$(EXEEXT): $(test13_OBJECTS) $(test13_DEPENDENCIES) @rm -f test13$(EXEEXT) $(LINK) $(test13_OBJECTS) $(test13_LDADD) $(LIBS) test14$(EXEEXT): $(test14_OBJECTS) $(test14_DEPENDENCIES) @rm -f test14$(EXEEXT) $(LINK) $(test14_OBJECTS) $(test14_LDADD) $(LIBS) test15$(EXEEXT): $(test15_OBJECTS) $(test15_DEPENDENCIES) @rm -f test15$(EXEEXT) $(LINK) $(test15_OBJECTS) $(test15_LDADD) $(LIBS) test16$(EXEEXT): $(test16_OBJECTS) $(test16_DEPENDENCIES) @rm -f test16$(EXEEXT) $(LINK) $(test16_OBJECTS) $(test16_LDADD) $(LIBS) test17$(EXEEXT): $(test17_OBJECTS) $(test17_DEPENDENCIES) @rm -f test17$(EXEEXT) $(LINK) $(test17_OBJECTS) $(test17_LDADD) $(LIBS) test2$(EXEEXT): $(test2_OBJECTS) $(test2_DEPENDENCIES) @rm -f test2$(EXEEXT) $(LINK) $(test2_OBJECTS) $(test2_LDADD) $(LIBS) test3$(EXEEXT): $(test3_OBJECTS) $(test3_DEPENDENCIES) @rm -f test3$(EXEEXT) $(LINK) $(test3_OBJECTS) $(test3_LDADD) $(LIBS) test4$(EXEEXT): $(test4_OBJECTS) $(test4_DEPENDENCIES) @rm -f test4$(EXEEXT) $(LINK) $(test4_OBJECTS) $(test4_LDADD) $(LIBS) test5$(EXEEXT): $(test5_OBJECTS) $(test5_DEPENDENCIES) @rm -f test5$(EXEEXT) $(LINK) $(test5_OBJECTS) $(test5_LDADD) $(LIBS) test6$(EXEEXT): $(test6_OBJECTS) $(test6_DEPENDENCIES) @rm -f test6$(EXEEXT) $(test6_LINK) $(test6_OBJECTS) $(test6_LDADD) $(LIBS) test7$(EXEEXT): $(test7_OBJECTS) $(test7_DEPENDENCIES) @rm -f test7$(EXEEXT) $(test7_LINK) $(test7_OBJECTS) $(test7_LDADD) $(LIBS) test8$(EXEEXT): $(test8_OBJECTS) $(test8_DEPENDENCIES) @rm -f test8$(EXEEXT) $(test8_LINK) $(test8_OBJECTS) $(test8_LDADD) $(LIBS) test9.1$(EXEEXT): $(test9_1_OBJECTS) $(test9_1_DEPENDENCIES) @rm -f test9.1$(EXEEXT) $(test9_1_LINK) $(test9_1_OBJECTS) $(test9_1_LDADD) $(LIBS) test9.2$(EXEEXT): $(test9_2_OBJECTS) $(test9_2_DEPENDENCIES) @rm -f test9.2$(EXEEXT) $(test9_2_LINK) $(test9_2_OBJECTS) $(test9_2_LDADD) $(LIBS) test9.3$(EXEEXT): $(test9_3_OBJECTS) $(test9_3_DEPENDENCIES) @rm -f test9.3$(EXEEXT) $(test9_3_LINK) $(test9_3_OBJECTS) $(test9_3_LDADD) $(LIBS) test9.4$(EXEEXT): $(test9_4_OBJECTS) $(test9_4_DEPENDENCIES) @rm -f test9.4$(EXEEXT) $(test9_4_LINK) $(test9_4_OBJECTS) $(test9_4_LDADD) $(LIBS) test9.5$(EXEEXT): $(test9_5_OBJECTS) $(test9_5_DEPENDENCIES) @rm -f test9.5$(EXEEXT) $(test9_5_LINK) $(test9_5_OBJECTS) $(test9_5_LDADD) $(LIBS) test9.6$(EXEEXT): $(test9_6_OBJECTS) $(test9_6_DEPENDENCIES) @rm -f test9.6$(EXEEXT) $(test9_6_LINK) $(test9_6_OBJECTS) $(test9_6_LDADD) $(LIBS) test9.7$(EXEEXT): $(test9_7_OBJECTS) $(test9_7_DEPENDENCIES) @rm -f test9.7$(EXEEXT) $(test9_7_LINK) $(test9_7_OBJECTS) $(test9_7_LDADD) $(LIBS) test9.8$(EXEEXT): $(test9_8_OBJECTS) $(test9_8_DEPENDENCIES) @rm -f test9.8$(EXEEXT) $(test9_8_LINK) $(test9_8_OBJECTS) $(test9_8_LDADD) $(LIBS) testcontex$(EXEEXT): $(testcontex_OBJECTS) $(testcontex_DEPENDENCIES) @rm -f testcontex$(EXEEXT) $(LINK) $(testcontex_OBJECTS) $(testcontex_LDADD) $(LIBS) testfont$(EXEEXT): $(testfont_OBJECTS) $(testfont_DEPENDENCIES) @rm -f testfont$(EXEEXT) $(LINK) $(testfont_OBJECTS) $(testfont_LDADD) $(LIBS) testmaster$(EXEEXT): $(testmaster_OBJECTS) $(testmaster_DEPENDENCIES) @rm -f testmaster$(EXEEXT) $(LINK) $(testmaster_OBJECTS) $(testmaster_LDADD) $(LIBS) testrender$(EXEEXT): $(testrender_OBJECTS) $(testrender_DEPENDENCIES) @rm -f testrender$(EXEEXT) $(testrender_LINK) $(testrender_OBJECTS) $(testrender_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test1.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test10.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test11_1-test11.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test11_2-test11.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test11_3-test11.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test11_4-test11.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test11_5-test11.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test11_6-test11.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test11_7-test11.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test12.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test13.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test14.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test15.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test16.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test17.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test2.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test3.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test4.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test5.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test6-test6.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test7-test7.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test8-test8.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test9_1-test9.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test9_2-test9.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test9_3-test9.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test9_4-test9.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test9_5-test9.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test9_6-test9.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test9_7-test9.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test9_8-test9.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testcontex.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testfont.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testmaster.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testrender-testrender.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< test11_1-test11.o: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_1_CFLAGS) $(CFLAGS) -MT test11_1-test11.o -MD -MP -MF $(DEPDIR)/test11_1-test11.Tpo -c -o test11_1-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_1-test11.Tpo $(DEPDIR)/test11_1-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_1-test11.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_1_CFLAGS) $(CFLAGS) -c -o test11_1-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c test11_1-test11.obj: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_1_CFLAGS) $(CFLAGS) -MT test11_1-test11.obj -MD -MP -MF $(DEPDIR)/test11_1-test11.Tpo -c -o test11_1-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_1-test11.Tpo $(DEPDIR)/test11_1-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_1-test11.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_1_CFLAGS) $(CFLAGS) -c -o test11_1-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` test11_2-test11.o: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_2_CFLAGS) $(CFLAGS) -MT test11_2-test11.o -MD -MP -MF $(DEPDIR)/test11_2-test11.Tpo -c -o test11_2-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_2-test11.Tpo $(DEPDIR)/test11_2-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_2-test11.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_2_CFLAGS) $(CFLAGS) -c -o test11_2-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c test11_2-test11.obj: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_2_CFLAGS) $(CFLAGS) -MT test11_2-test11.obj -MD -MP -MF $(DEPDIR)/test11_2-test11.Tpo -c -o test11_2-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_2-test11.Tpo $(DEPDIR)/test11_2-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_2-test11.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_2_CFLAGS) $(CFLAGS) -c -o test11_2-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` test11_3-test11.o: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_3_CFLAGS) $(CFLAGS) -MT test11_3-test11.o -MD -MP -MF $(DEPDIR)/test11_3-test11.Tpo -c -o test11_3-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_3-test11.Tpo $(DEPDIR)/test11_3-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_3-test11.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_3_CFLAGS) $(CFLAGS) -c -o test11_3-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c test11_3-test11.obj: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_3_CFLAGS) $(CFLAGS) -MT test11_3-test11.obj -MD -MP -MF $(DEPDIR)/test11_3-test11.Tpo -c -o test11_3-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_3-test11.Tpo $(DEPDIR)/test11_3-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_3-test11.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_3_CFLAGS) $(CFLAGS) -c -o test11_3-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` test11_4-test11.o: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_4_CFLAGS) $(CFLAGS) -MT test11_4-test11.o -MD -MP -MF $(DEPDIR)/test11_4-test11.Tpo -c -o test11_4-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_4-test11.Tpo $(DEPDIR)/test11_4-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_4-test11.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_4_CFLAGS) $(CFLAGS) -c -o test11_4-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c test11_4-test11.obj: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_4_CFLAGS) $(CFLAGS) -MT test11_4-test11.obj -MD -MP -MF $(DEPDIR)/test11_4-test11.Tpo -c -o test11_4-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_4-test11.Tpo $(DEPDIR)/test11_4-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_4-test11.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_4_CFLAGS) $(CFLAGS) -c -o test11_4-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` test11_5-test11.o: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_5_CFLAGS) $(CFLAGS) -MT test11_5-test11.o -MD -MP -MF $(DEPDIR)/test11_5-test11.Tpo -c -o test11_5-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_5-test11.Tpo $(DEPDIR)/test11_5-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_5-test11.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_5_CFLAGS) $(CFLAGS) -c -o test11_5-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c test11_5-test11.obj: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_5_CFLAGS) $(CFLAGS) -MT test11_5-test11.obj -MD -MP -MF $(DEPDIR)/test11_5-test11.Tpo -c -o test11_5-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_5-test11.Tpo $(DEPDIR)/test11_5-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_5-test11.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_5_CFLAGS) $(CFLAGS) -c -o test11_5-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` test11_6-test11.o: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_6_CFLAGS) $(CFLAGS) -MT test11_6-test11.o -MD -MP -MF $(DEPDIR)/test11_6-test11.Tpo -c -o test11_6-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_6-test11.Tpo $(DEPDIR)/test11_6-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_6-test11.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_6_CFLAGS) $(CFLAGS) -c -o test11_6-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c test11_6-test11.obj: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_6_CFLAGS) $(CFLAGS) -MT test11_6-test11.obj -MD -MP -MF $(DEPDIR)/test11_6-test11.Tpo -c -o test11_6-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_6-test11.Tpo $(DEPDIR)/test11_6-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_6-test11.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_6_CFLAGS) $(CFLAGS) -c -o test11_6-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` test11_7-test11.o: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_7_CFLAGS) $(CFLAGS) -MT test11_7-test11.o -MD -MP -MF $(DEPDIR)/test11_7-test11.Tpo -c -o test11_7-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_7-test11.Tpo $(DEPDIR)/test11_7-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_7-test11.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_7_CFLAGS) $(CFLAGS) -c -o test11_7-test11.o `test -f 'test11.c' || echo '$(srcdir)/'`test11.c test11_7-test11.obj: test11.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_7_CFLAGS) $(CFLAGS) -MT test11_7-test11.obj -MD -MP -MF $(DEPDIR)/test11_7-test11.Tpo -c -o test11_7-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test11_7-test11.Tpo $(DEPDIR)/test11_7-test11.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test11.c' object='test11_7-test11.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test11_7_CFLAGS) $(CFLAGS) -c -o test11_7-test11.obj `if test -f 'test11.c'; then $(CYGPATH_W) 'test11.c'; else $(CYGPATH_W) '$(srcdir)/test11.c'; fi` test6-test6.o: test6.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test6_CFLAGS) $(CFLAGS) -MT test6-test6.o -MD -MP -MF $(DEPDIR)/test6-test6.Tpo -c -o test6-test6.o `test -f 'test6.c' || echo '$(srcdir)/'`test6.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test6-test6.Tpo $(DEPDIR)/test6-test6.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test6.c' object='test6-test6.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test6_CFLAGS) $(CFLAGS) -c -o test6-test6.o `test -f 'test6.c' || echo '$(srcdir)/'`test6.c test6-test6.obj: test6.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test6_CFLAGS) $(CFLAGS) -MT test6-test6.obj -MD -MP -MF $(DEPDIR)/test6-test6.Tpo -c -o test6-test6.obj `if test -f 'test6.c'; then $(CYGPATH_W) 'test6.c'; else $(CYGPATH_W) '$(srcdir)/test6.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test6-test6.Tpo $(DEPDIR)/test6-test6.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test6.c' object='test6-test6.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test6_CFLAGS) $(CFLAGS) -c -o test6-test6.obj `if test -f 'test6.c'; then $(CYGPATH_W) 'test6.c'; else $(CYGPATH_W) '$(srcdir)/test6.c'; fi` test7-test7.o: test7.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test7_CFLAGS) $(CFLAGS) -MT test7-test7.o -MD -MP -MF $(DEPDIR)/test7-test7.Tpo -c -o test7-test7.o `test -f 'test7.c' || echo '$(srcdir)/'`test7.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test7-test7.Tpo $(DEPDIR)/test7-test7.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test7.c' object='test7-test7.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test7_CFLAGS) $(CFLAGS) -c -o test7-test7.o `test -f 'test7.c' || echo '$(srcdir)/'`test7.c test7-test7.obj: test7.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test7_CFLAGS) $(CFLAGS) -MT test7-test7.obj -MD -MP -MF $(DEPDIR)/test7-test7.Tpo -c -o test7-test7.obj `if test -f 'test7.c'; then $(CYGPATH_W) 'test7.c'; else $(CYGPATH_W) '$(srcdir)/test7.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test7-test7.Tpo $(DEPDIR)/test7-test7.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test7.c' object='test7-test7.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test7_CFLAGS) $(CFLAGS) -c -o test7-test7.obj `if test -f 'test7.c'; then $(CYGPATH_W) 'test7.c'; else $(CYGPATH_W) '$(srcdir)/test7.c'; fi` test8-test8.o: test8.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test8_CFLAGS) $(CFLAGS) -MT test8-test8.o -MD -MP -MF $(DEPDIR)/test8-test8.Tpo -c -o test8-test8.o `test -f 'test8.c' || echo '$(srcdir)/'`test8.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test8-test8.Tpo $(DEPDIR)/test8-test8.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test8.c' object='test8-test8.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test8_CFLAGS) $(CFLAGS) -c -o test8-test8.o `test -f 'test8.c' || echo '$(srcdir)/'`test8.c test8-test8.obj: test8.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test8_CFLAGS) $(CFLAGS) -MT test8-test8.obj -MD -MP -MF $(DEPDIR)/test8-test8.Tpo -c -o test8-test8.obj `if test -f 'test8.c'; then $(CYGPATH_W) 'test8.c'; else $(CYGPATH_W) '$(srcdir)/test8.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test8-test8.Tpo $(DEPDIR)/test8-test8.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test8.c' object='test8-test8.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test8_CFLAGS) $(CFLAGS) -c -o test8-test8.obj `if test -f 'test8.c'; then $(CYGPATH_W) 'test8.c'; else $(CYGPATH_W) '$(srcdir)/test8.c'; fi` test9_1-test9.o: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_1_CFLAGS) $(CFLAGS) -MT test9_1-test9.o -MD -MP -MF $(DEPDIR)/test9_1-test9.Tpo -c -o test9_1-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_1-test9.Tpo $(DEPDIR)/test9_1-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_1-test9.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_1_CFLAGS) $(CFLAGS) -c -o test9_1-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c test9_1-test9.obj: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_1_CFLAGS) $(CFLAGS) -MT test9_1-test9.obj -MD -MP -MF $(DEPDIR)/test9_1-test9.Tpo -c -o test9_1-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_1-test9.Tpo $(DEPDIR)/test9_1-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_1-test9.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_1_CFLAGS) $(CFLAGS) -c -o test9_1-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` test9_2-test9.o: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_2_CFLAGS) $(CFLAGS) -MT test9_2-test9.o -MD -MP -MF $(DEPDIR)/test9_2-test9.Tpo -c -o test9_2-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_2-test9.Tpo $(DEPDIR)/test9_2-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_2-test9.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_2_CFLAGS) $(CFLAGS) -c -o test9_2-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c test9_2-test9.obj: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_2_CFLAGS) $(CFLAGS) -MT test9_2-test9.obj -MD -MP -MF $(DEPDIR)/test9_2-test9.Tpo -c -o test9_2-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_2-test9.Tpo $(DEPDIR)/test9_2-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_2-test9.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_2_CFLAGS) $(CFLAGS) -c -o test9_2-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` test9_3-test9.o: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_3_CFLAGS) $(CFLAGS) -MT test9_3-test9.o -MD -MP -MF $(DEPDIR)/test9_3-test9.Tpo -c -o test9_3-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_3-test9.Tpo $(DEPDIR)/test9_3-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_3-test9.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_3_CFLAGS) $(CFLAGS) -c -o test9_3-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c test9_3-test9.obj: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_3_CFLAGS) $(CFLAGS) -MT test9_3-test9.obj -MD -MP -MF $(DEPDIR)/test9_3-test9.Tpo -c -o test9_3-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_3-test9.Tpo $(DEPDIR)/test9_3-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_3-test9.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_3_CFLAGS) $(CFLAGS) -c -o test9_3-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` test9_4-test9.o: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_4_CFLAGS) $(CFLAGS) -MT test9_4-test9.o -MD -MP -MF $(DEPDIR)/test9_4-test9.Tpo -c -o test9_4-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_4-test9.Tpo $(DEPDIR)/test9_4-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_4-test9.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_4_CFLAGS) $(CFLAGS) -c -o test9_4-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c test9_4-test9.obj: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_4_CFLAGS) $(CFLAGS) -MT test9_4-test9.obj -MD -MP -MF $(DEPDIR)/test9_4-test9.Tpo -c -o test9_4-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_4-test9.Tpo $(DEPDIR)/test9_4-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_4-test9.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_4_CFLAGS) $(CFLAGS) -c -o test9_4-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` test9_5-test9.o: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_5_CFLAGS) $(CFLAGS) -MT test9_5-test9.o -MD -MP -MF $(DEPDIR)/test9_5-test9.Tpo -c -o test9_5-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_5-test9.Tpo $(DEPDIR)/test9_5-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_5-test9.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_5_CFLAGS) $(CFLAGS) -c -o test9_5-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c test9_5-test9.obj: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_5_CFLAGS) $(CFLAGS) -MT test9_5-test9.obj -MD -MP -MF $(DEPDIR)/test9_5-test9.Tpo -c -o test9_5-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_5-test9.Tpo $(DEPDIR)/test9_5-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_5-test9.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_5_CFLAGS) $(CFLAGS) -c -o test9_5-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` test9_6-test9.o: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_6_CFLAGS) $(CFLAGS) -MT test9_6-test9.o -MD -MP -MF $(DEPDIR)/test9_6-test9.Tpo -c -o test9_6-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_6-test9.Tpo $(DEPDIR)/test9_6-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_6-test9.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_6_CFLAGS) $(CFLAGS) -c -o test9_6-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c test9_6-test9.obj: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_6_CFLAGS) $(CFLAGS) -MT test9_6-test9.obj -MD -MP -MF $(DEPDIR)/test9_6-test9.Tpo -c -o test9_6-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_6-test9.Tpo $(DEPDIR)/test9_6-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_6-test9.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_6_CFLAGS) $(CFLAGS) -c -o test9_6-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` test9_7-test9.o: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_7_CFLAGS) $(CFLAGS) -MT test9_7-test9.o -MD -MP -MF $(DEPDIR)/test9_7-test9.Tpo -c -o test9_7-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_7-test9.Tpo $(DEPDIR)/test9_7-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_7-test9.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_7_CFLAGS) $(CFLAGS) -c -o test9_7-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c test9_7-test9.obj: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_7_CFLAGS) $(CFLAGS) -MT test9_7-test9.obj -MD -MP -MF $(DEPDIR)/test9_7-test9.Tpo -c -o test9_7-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_7-test9.Tpo $(DEPDIR)/test9_7-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_7-test9.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_7_CFLAGS) $(CFLAGS) -c -o test9_7-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` test9_8-test9.o: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_8_CFLAGS) $(CFLAGS) -MT test9_8-test9.o -MD -MP -MF $(DEPDIR)/test9_8-test9.Tpo -c -o test9_8-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_8-test9.Tpo $(DEPDIR)/test9_8-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_8-test9.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_8_CFLAGS) $(CFLAGS) -c -o test9_8-test9.o `test -f 'test9.c' || echo '$(srcdir)/'`test9.c test9_8-test9.obj: test9.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_8_CFLAGS) $(CFLAGS) -MT test9_8-test9.obj -MD -MP -MF $(DEPDIR)/test9_8-test9.Tpo -c -o test9_8-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/test9_8-test9.Tpo $(DEPDIR)/test9_8-test9.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='test9.c' object='test9_8-test9.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test9_8_CFLAGS) $(CFLAGS) -c -o test9_8-test9.obj `if test -f 'test9.c'; then $(CYGPATH_W) 'test9.c'; else $(CYGPATH_W) '$(srcdir)/test9.c'; fi` testrender-testrender.o: testrender.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testrender_CFLAGS) $(CFLAGS) -MT testrender-testrender.o -MD -MP -MF $(DEPDIR)/testrender-testrender.Tpo -c -o testrender-testrender.o `test -f 'testrender.c' || echo '$(srcdir)/'`testrender.c @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testrender-testrender.Tpo $(DEPDIR)/testrender-testrender.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testrender.c' object='testrender-testrender.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testrender_CFLAGS) $(CFLAGS) -c -o testrender-testrender.o `test -f 'testrender.c' || echo '$(srcdir)/'`testrender.c testrender-testrender.obj: testrender.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testrender_CFLAGS) $(CFLAGS) -MT testrender-testrender.obj -MD -MP -MF $(DEPDIR)/testrender-testrender.Tpo -c -o testrender-testrender.obj `if test -f 'testrender.c'; then $(CYGPATH_W) 'testrender.c'; else $(CYGPATH_W) '$(srcdir)/testrender.c'; fi` @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testrender-testrender.Tpo $(DEPDIR)/testrender-testrender.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testrender.c' object='testrender-testrender.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testrender_CFLAGS) $(CFLAGS) -c -o testrender-testrender.obj `if test -f 'testrender.c'; then $(CYGPATH_W) 'testrender.c'; else $(CYGPATH_W) '$(srcdir)/testrender.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *$$ws$$tst$$ws*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ echo "XPASS: $$tst"; \ ;; \ *) \ echo "PASS: $$tst"; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *$$ws$$tst$$ws*) \ xfail=`expr $$xfail + 1`; \ echo "XFAIL: $$tst"; \ ;; \ *) \ failed=`expr $$failed + 1`; \ echo "FAIL: $$tst"; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ echo "SKIP: $$tst"; \ fi; \ done; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="All $$all tests passed"; \ else \ banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all tests failed"; \ else \ banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ skipped="($$skip tests were not run)"; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ echo "$$dashes"; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-generic clean-libtool clean-noinstPROGRAMS ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am clean-generic: rm -f *.gcno *.gcda *.gcov # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: quesoglc-0.7.2/tests/test8.vcproj0000644000175000017500000000720611162160036013722 00000000000000 quesoglc-0.7.2/tests/test11.4.vcproj0000644000175000017500000001041411162160036014131 00000000000000 quesoglc-0.7.2/tests/test11.6.vcproj0000644000175000017500000001040411162160036014132 00000000000000 quesoglc-0.7.2/tests/test5.c0000644000175000017500000001522410764574552012660 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2006, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test5.c 679 2007-12-20 21:42:13Z bcoconni $ */ /** \file * Checks the transformation routines */ #include "GL/glc.h" #include #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif /* Check the transform routines */ int vectorEquality(GLfloat* vec, GLfloat epsilon) { GLfloat outVec[4]; int i; glcGetfv(GLC_BITMAP_MATRIX, outVec); for (i = 0; i < 4; i++) if (fabs(outVec[i] - vec[i]) > epsilon) return GL_FALSE; return GL_TRUE; } GLboolean checkError(GLCenum expectedError) { GLCenum err = glcGetError(); if (err == expectedError) return GL_TRUE; switch(err) { case GLC_NONE: printf("Unexpected GLC_NONE error\n"); return GL_FALSE; case GLC_STATE_ERROR: printf("Unexpected GLC_STATE_ERROR\n"); return GL_FALSE; case GLC_PARAMETER_ERROR: printf("Unexpected GLC_PARAMETER_ERROR\n"); return GL_FALSE; case GLC_RESOURCE_ERROR: printf("Unexpected GLC_RESOURCE_ERROR\n"); return GL_FALSE; case GLC_STACK_OVERFLOW_QSO: printf("Unexpected GLC_STACK_OVERFLOW_QSO\n"); return GL_FALSE; case GLC_STACK_UNDERFLOW_QSO: printf("Unexpected GLC_STACK_UNDERFLOW_QSO\n"); return GL_FALSE; default: printf("Unknown error 0x%X\n", err); return GL_FALSE; } } int main(int argc, char **argv) { GLint ctx = glcGenContext(); GLfloat ref[4] = {1., 0., 0., 1.}; GLint stackDepth = 0; GLint maxStackDepth = 0; GLint i = 0; /* Needed to initialize an OpenGL context */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("test5"); glcContext(ctx); if (!checkError(GLC_NONE)) return -1; if (!vectorEquality(ref, .00001)) { printf("The initial bitmap matrix is not equal to the identity matrix\n"); return -1; } maxStackDepth = glcGeti(GLC_MAX_MATRIX_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (!maxStackDepth) { printf("Max stack depth is expected not to be zero\n"); return -1; } stackDepth = glcGeti(GLC_MATRIX_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth != 1) { printf("Current stack depth is not one\n"); return -1; } glcPopMatrixQSO(); if (!checkError(GLC_STACK_UNDERFLOW_QSO)) return -1; /* Check that the faulty glcPopMatrixQSO left the stack depth unchanged */ stackDepth = glcGeti(GLC_MATRIX_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth != 1) { printf("Current stack depth is not one\n"); return -1; } ref[0] = 1.5; ref[1] = -2.5; ref[2] = 3.14159; ref[3] = 0.; glcLoadMatrix(ref); if (!checkError(GLC_NONE)) return -1; if (!vectorEquality(ref, .00001)) { printf("glcLoadMatrix() failed\n"); return -1; } for (i = 1; i < maxStackDepth; i++) { glcPushMatrixQSO(); if (!checkError(GLC_NONE)) return -1; stackDepth = glcGeti(GLC_MATRIX_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth != (i+1)) { printf("Stack depth has not been updated\n"); return -1; } } glcPushMatrixQSO(); if (!checkError(GLC_STACK_OVERFLOW_QSO)) return -1; /* Check that the faulty glcPushMatrixQSO left the stack depth unchanged */ stackDepth = glcGeti(GLC_MATRIX_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth != maxStackDepth) { printf("Current stack depth is not maximum\n"); return -1; } for (i = 1; i < maxStackDepth; i++) { glcPopMatrixQSO(); if (!checkError(GLC_NONE)) return -1; stackDepth = glcGeti(GLC_MATRIX_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth != maxStackDepth-i) { printf("Stack depth has not been updated\n"); return -1; } } glcPopMatrixQSO(); if (!checkError(GLC_STACK_UNDERFLOW_QSO)) return -1; /* Check that the faulty glcPopMatrixQSO left the stack depth unchanged */ stackDepth = glcGeti(GLC_MATRIX_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth != 1) { printf("Current stack depth is not one\n"); return -1; } glcPushMatrixQSO(); if (!checkError(GLC_NONE)) return -1; stackDepth = glcGeti(GLC_MATRIX_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth != 2) { printf("Current stack depth is not 2\n"); return -1; } ref[0] = 0.; ref[1] = 1.; ref[2] = 1.; ref[3] = 0.; glcMultMatrix(ref); if (!checkError(GLC_NONE)) return -1; ref[0] = 3.14159; ref[1] = 0.; ref[2] = 1.5; ref[3] = -2.5; if (!vectorEquality(ref, .00001)) { printf("glcMultMatrix() failed\n"); return -1; } glcScale(-1., 2.); if (!checkError(GLC_NONE)) return -1; ref[0] = -3.14159; ref[1] = 0.; ref[2] = 3.; ref[3] = -5.; if (!vectorEquality(ref, .00001)) { printf("glcScale() failed\n"); return -1; } glcRotate(45.); if (!checkError(GLC_NONE)) return -1; ref[0] = -.14159/sqrt(2.); ref[2] = 6.14159/sqrt(2.); ref[1] = -5./sqrt(2.); ref[3] = -5./sqrt(2.); if (!vectorEquality(ref, .00001)) { printf("glcRotate() failed\n"); return -1; } glcLoadIdentity(); if (!checkError(GLC_NONE)) return -1; ref[0] = 1.; ref[1] = 0.; ref[2] = 0.; ref[3] = 1.; if (!vectorEquality(ref, .00001)) { printf("glcLoadMatrix() failed\n"); return -1; } glcPopMatrixQSO(); if (!checkError(GLC_NONE)) return -1; stackDepth = glcGeti(GLC_MATRIX_STACK_DEPTH_QSO); if (!checkError(GLC_NONE)) return -1; if (stackDepth != 1) { printf("Current stack depth is not one\n"); return -1; } ref[0] = 1.5; ref[1] = -2.5; ref[2] = 3.14159; ref[3] = 0.; if (!vectorEquality(ref, .00001)) { printf("glcPush/PopMatrix() failed\n"); return -1; } printf("Tests successful\n"); return 0; } quesoglc-0.7.2/tests/testmaster.c0000644000175000017500000000526111044651436013774 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: testmaster.c 679 2007-12-20 21:42:13Z bcoconni $ */ /** \file * Test the GLC functions of the master group. It can be used either : * - by checking the output * - by checking that it does not crash * - by checking memory leaks with a tool like valgrind */ #include "GL/glc.h" #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif int main(int argc, char **argv) { int ctx = 0; int numMasters = 0; int numFaces = 0; int numCatalogs = 0; int i = 0; int j = 0; /* Needed to initialize an OpenGL context */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("testfont"); ctx = glcGenContext(); glcContext(ctx); numCatalogs = glcGeti(GLC_CATALOG_COUNT); printf("Catalogs : %d\n", numCatalogs); for (i = 0; i < numCatalogs; i++) printf("Catalog #%d : %s\n", i, (const char *)glcGetListc(GLC_CATALOG_LIST, i)); numMasters = glcGeti(GLC_MASTER_COUNT); printf("Masters : %d\n", numMasters); for (i = 0; i < numMasters; i++) { numFaces = glcGetMasteri(i, GLC_FACE_COUNT); printf("Master #%d\n", i); printf("- Vendor : %s\n", (char*)glcGetMasterc(i, GLC_VENDOR)); printf("- Format : %s\n", (char*)glcGetMasterc(i, GLC_MASTER_FORMAT)); printf("- Face count : %d\n", numFaces); printf("- Family : %s\n", (char*)glcGetMasterc(i, GLC_FAMILY)); printf("- Version : %s\n", (char*)glcGetMasterc(i, GLC_VERSION)); printf("- Is Fixed Pitch : %s\n", glcGetMasteri(i, GLC_IS_FIXED_PITCH) ? "YES" : "NO"); for (j = 0; j < numFaces; j++) printf("- Face #%d : %s\n", j, (char *)glcGetMasterListc(i, GLC_FACE_LIST, j)); printf("- Master #%d maps 0x%X to %s\n", i, 65 + i, (char *)glcGetMasterMap(i, 65 + i)); } glcDeleteContext(ctx); return 0; } quesoglc-0.7.2/tests/test17.c0000644000175000017500000001705411162160036012723 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test17.c 887 2009-03-24 01:03:11Z bcoconni $ */ /** \file * This test uses the instrumented memory management routines of QuesoGLC to * check that routines are robust with respect to memory failures when no * context has been made current to the issuing thread. */ #include "GL/glc.h" #include #include GLCAPI GLuint __glcMemAllocCount; GLCAPI GLuint __glcMemAllocTrigger; GLCAPI GLboolean __glcMemAllocFailOnce; #define TestErrorCode(func) \ err = glcGetError(); \ if (err != GLC_STATE_ERROR) { \ printf(#func"() Unexpected error : 0x%x\n", (int)err); \ return -1; \ } \ err = glcGetError(); \ if (err) { \ printf(#func"Error is not GLC_NONE but : 0x%x\n", (int)err); \ return -1; \ } static int testedSequence(const char* description) { GLCenum err; GLint ctx = 0; GLint *list; GLfloat tab[4]; ctx = glcGenContext(); err = glcGetError(); if ((err == GLC_RESOURCE_ERROR) && ctx) { printf("iteration #%d\t%s GLC_RESOURCE_ERROR in glcGenContext() ctx:%d\n", __glcMemAllocTrigger, description, ctx); return -1; } if (glcIsContext(ctx) && (err == GLC_RESOURCE_ERROR)) { printf("iteration #%d\t%s bad result in glcIsContext() ctx:%d\n", __glcMemAllocTrigger, description, ctx); return -1; } err = glcGetError(); if (err) { printf("iteration #%d\t%s unexpected error : 0x%x\t glcIsContext()" " ctx:%d\n", __glcMemAllocTrigger, description, err, ctx); return -1; } if (glcGetCurrentContext()) { printf("iteration #%d\t%s bad result in glcCurrentContext() ctx:%d\n", __glcMemAllocTrigger, description, ctx); return -1; } err = glcGetError(); if (err) { printf("iteration #%d\t%s unexpected error : 0x%x\t glcCurrentContext()" " ctx:%d\n", __glcMemAllocTrigger, description, err, ctx); return -1; } list = glcGetAllContexts(); err = glcGetError(); if ((err == GLC_RESOURCE_ERROR) && list) { printf("iteration #%d\t%s GLC_RESOURCE_ERROR in glcGetAllContexts()" " ctx:%d\n", __glcMemAllocTrigger, description, ctx); return -1; } free(list); glcDeleteContext(ctx); err = glcGetError(); if (ctx && err) { printf("iteration #%d\t%s unexpected error : 0x%x\t glcDeleteContext()" " ctx:%d\n", __glcMemAllocTrigger, description, err, ctx); return -1; } /* Context commands */ glcCallbackFunc(GLC_OP_glcUnmappedCode, NULL); TestErrorCode(glcCallbackFunc); glcDataPointer(NULL); TestErrorCode(glcDataPointer); glcDeleteGLObjects(); TestErrorCode(glcDeleteGLObjects); glcDisable(GLC_MIPMAP); TestErrorCode(glcDisable); glcEnable(GLC_GL_OBJECTS); TestErrorCode(glcEnable); glcGetCallbackFunc(GLC_OP_glcUnmappedCode); TestErrorCode(glcGetCallbackFunc); glcGetListc(GLC_CATALOG_LIST, 0); TestErrorCode(glcGetListc); glcGetListi(GLC_FONT_LIST, 0); TestErrorCode(glcGetListi); glcGetPointer(GLC_DATA_POINTER); TestErrorCode(glcGetPointer); glcGetc(GLC_RELEASE); TestErrorCode(glcGetc); glcGetf(GLC_RESOLUTION); TestErrorCode(glcGetf); glcGetfv(GLC_BITMAP_MATRIX, tab); TestErrorCode(glcGetfv); glcGeti(GLC_VERSION_MAJOR); TestErrorCode(glcGeti); glcIsEnabled(GLC_AUTO_FONT); TestErrorCode(glcIsEnabled); glcStringType(GLC_UCS1); TestErrorCode(glcStringType); /* Master commands */ glcAppendCatalog("/"); TestErrorCode(glcAppendCatalog); glcGetMasterListc(0, GLC_CHAR_LIST, 0); TestErrorCode(glcGetMasterListc); glcGetMasterMap(0,0); TestErrorCode(glcGetMasterMap); glcGetMasterc(0, GLC_FAMILY); TestErrorCode(glcGetMasterc); glcGetMasteri(0, GLC_CHAR_COUNT); TestErrorCode(glcGetMasteri); glcPrependCatalog("/"); TestErrorCode(glcPrependCatalog); glcRemoveCatalog(0); TestErrorCode(glcRemoveCatalog); /* Font commands */ glcAppendFont(0); TestErrorCode(glcAppendFont); glcDeleteFont(0); TestErrorCode(glcDeleteFont); glcFont(0); TestErrorCode(glcFont); glcFontFace(0, ""); TestErrorCode(glcFontFace); glcFontMap(0, 0, ""); TestErrorCode(glcFontMap); glcGenFontID(); TestErrorCode(glcGenFontID); glcGetFontFace(0); TestErrorCode(glcGetFontFace); glcGetFontListc(0, GLC_CHAR_LIST, 0); TestErrorCode(glcGetFontListc); glcGetFontMap(0, 0); TestErrorCode(glcGetFontMap); glcGetFontc(0, GLC_FAMILY); TestErrorCode(glcGetFontc); glcGetFonti(0, GLC_IS_FIXED_PITCH); TestErrorCode(glcGetFonti); glcIsFont(0); TestErrorCode(glcIsFont); glcNewFontFromFamily(1, ""); TestErrorCode(glcNewFontFromFamily); glcNewFontFromMaster(1, 0); TestErrorCode(glcNewFontFromMaster); /* Transformation commands */ glcLoadIdentity(); TestErrorCode(glcLoadIdentity); glcLoadMatrix(tab); TestErrorCode(glcLoadMatrix); glcMultMatrix(tab); TestErrorCode(glcMultMatrix); glcRotate(0.); TestErrorCode(glcRotate); glcScale(1., 1.); TestErrorCode(glcScale); /* Rendering commands */ glcRenderChar(0); TestErrorCode(glcRenderChar); glcRenderCountedString(0, ""); TestErrorCode(glcRenderCountedString); glcRenderString(""); TestErrorCode(glcRenderString); glcRenderStyle(GLC_LINE); TestErrorCode(glcRenderStyle); glcReplacementCode(0); TestErrorCode(glcReplacementCode); glcResolution(0.); TestErrorCode(glcResolution); /* Measurement commands*/ glcGetCharMetric(0, GLC_BOUNDS, tab); TestErrorCode(glcGetCharMetric); glcGetMaxCharMetric(GLC_BASELINE, tab); TestErrorCode(glcGetMaxCharMetric); glcGetStringCharMetric(0, GLC_BOUNDS, tab); TestErrorCode(glcGetStringCharMetric); glcGetStringMetric(GLC_BOUNDS, tab); TestErrorCode(glcGetStringMetric); glcMeasureCountedString(GL_TRUE, 1, ""); TestErrorCode(glcMeasureCountedString); glcMeasureString(GL_FALSE, ""); TestErrorCode(glcMeasureString); return 0; } int main(void) { GLCenum err; int result = 0; err = glcGetError(); if (err) { printf("Unexpected error : 0x%x\n", (int)err); return -1; } __glcMemAllocCount = 0; __glcMemAllocTrigger = 0; __glcMemAllocFailOnce = GL_TRUE; result = testedSequence("Initial run"); if (result) return result; printf("Number of memory allocation: %d\n", __glcMemAllocCount); if (__glcMemAllocCount) { GLuint mallocCount = __glcMemAllocCount; GLuint i = 0; for (i = 0; i < mallocCount; i++) { __glcMemAllocCount = 0; __glcMemAllocTrigger = i + 1; __glcMemAllocFailOnce = GL_TRUE; result = testedSequence("Fail once"); if (result) return result; __glcMemAllocCount = 0; __glcMemAllocFailOnce = GL_FALSE; result = testedSequence("Repeated fails"); if (result) return result; } } printf("Tests successful !\n"); return 0; } quesoglc-0.7.2/tests/test4.c0000644000175000017500000001245010764574552012655 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2006, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test4.c 587 2007-02-27 22:20:14Z bcoconni $ */ /** \file * This test checks that for routines that are not "global commands", GLC * issues GLC_STATE_ERROR if no context has been made current to the issuing * thread. */ #include "GL/glc.h" #include #define TestErrorCode(func) \ err = glcGetError(); \ if (err != GLC_STATE_ERROR) { \ printf(#func"() Unexpected error : 0x%x\n", (int)err); \ return -1; \ } \ err = glcGetError(); \ if (err) { \ printf(#func"Error is not GLC_NONE but : 0x%x\n", (int)err); \ return -1; \ } int main(void) { GLCenum err; GLfloat tab[4]; err = glcGetError(); if (err) { printf("Unexpected error : 0x%x\n", (int)err); return -1; } /* Context commands */ glcCallbackFunc(GLC_OP_glcUnmappedCode, NULL); TestErrorCode(glcCallbackFunc); glcDataPointer(NULL); TestErrorCode(glcDataPointer); glcDeleteGLObjects(); TestErrorCode(glcDeleteGLObjects); glcDisable(GLC_MIPMAP); TestErrorCode(glcDisable); glcEnable(GLC_GL_OBJECTS); TestErrorCode(glcEnable); glcGetCallbackFunc(GLC_OP_glcUnmappedCode); TestErrorCode(glcGetCallbackFunc); glcGetListc(GLC_CATALOG_LIST, 0); TestErrorCode(glcGetListc); glcGetListi(GLC_FONT_LIST, 0); TestErrorCode(glcGetListi); glcGetPointer(GLC_DATA_POINTER); TestErrorCode(glcGetPointer); glcGetc(GLC_RELEASE); TestErrorCode(glcGetc); glcGetf(GLC_RESOLUTION); TestErrorCode(glcGetf); glcGetfv(GLC_BITMAP_MATRIX, tab); TestErrorCode(glcGetfv); glcGeti(GLC_VERSION_MAJOR); TestErrorCode(glcGeti); glcIsEnabled(GLC_AUTO_FONT); TestErrorCode(glcIsEnabled); glcStringType(GLC_UCS1); TestErrorCode(glcStringType); /* Master commands */ glcAppendCatalog("/"); TestErrorCode(glcAppendCatalog); glcGetMasterListc(0, GLC_CHAR_LIST, 0); TestErrorCode(glcGetMasterListc); glcGetMasterMap(0,0); TestErrorCode(glcGetMasterMap); glcGetMasterc(0, GLC_FAMILY); TestErrorCode(glcGetMasterc); glcGetMasteri(0, GLC_CHAR_COUNT); TestErrorCode(glcGetMasteri); glcPrependCatalog("/"); TestErrorCode(glcPrependCatalog); glcRemoveCatalog(0); TestErrorCode(glcRemoveCatalog); /* Font commands */ glcAppendFont(0); TestErrorCode(glcAppendFont); glcDeleteFont(0); TestErrorCode(glcDeleteFont); glcFont(0); TestErrorCode(glcFont); glcFontFace(0, ""); TestErrorCode(glcFontFace); glcFontMap(0, 0, ""); TestErrorCode(glcFontMap); glcGenFontID(); TestErrorCode(glcGenFontID); glcGetFontFace(0); TestErrorCode(glcGetFontFace); glcGetFontListc(0, GLC_CHAR_LIST, 0); TestErrorCode(glcGetFontListc); glcGetFontMap(0, 0); TestErrorCode(glcGetFontMap); glcGetFontc(0, GLC_FAMILY); TestErrorCode(glcGetFontc); glcGetFonti(0, GLC_IS_FIXED_PITCH); TestErrorCode(glcGetFonti); glcIsFont(0); TestErrorCode(glcIsFont); glcNewFontFromFamily(1, ""); TestErrorCode(glcNewFontFromFamily); glcNewFontFromMaster(1, 0); TestErrorCode(glcNewFontFromMaster); /* Transformation commands */ glcLoadIdentity(); TestErrorCode(glcLoadIdentity); glcLoadMatrix(tab); TestErrorCode(glcLoadMatrix); glcMultMatrix(tab); TestErrorCode(glcMultMatrix); glcRotate(0.); TestErrorCode(glcRotate); glcScale(1., 1.); TestErrorCode(glcScale); /* Rendering commands */ glcRenderChar(0); TestErrorCode(glcRenderChar); glcRenderCountedString(0, ""); TestErrorCode(glcRenderCountedString); glcRenderString(""); TestErrorCode(glcRenderString); glcRenderStyle(GLC_LINE); TestErrorCode(glcRenderStyle); glcReplacementCode(0); TestErrorCode(glcReplacementCode); glcResolution(0.); TestErrorCode(glcResolution); /* Measurement commands*/ glcGetCharMetric(0, GLC_BOUNDS, tab); TestErrorCode(glcGetCharMetric); glcGetMaxCharMetric(GLC_BASELINE, tab); TestErrorCode(glcGetMaxCharMetric); glcGetStringCharMetric(0, GLC_BOUNDS, tab); TestErrorCode(glcGetStringCharMetric); glcGetStringMetric(GLC_BOUNDS, tab); TestErrorCode(glcGetStringMetric); glcMeasureCountedString(GL_TRUE, 1, ""); TestErrorCode(glcMeasureCountedString); glcMeasureString(GL_FALSE, ""); TestErrorCode(glcMeasureString); printf("Tests successful !\n"); return 0; } quesoglc-0.7.2/tests/test11.7.vcproj0000644000175000017500000001035011162160036014133 00000000000000 quesoglc-0.7.2/tests/test9.6.vcproj0000644000175000017500000001035211162160036014063 00000000000000 quesoglc-0.7.2/tests/test11.2.vcproj0000644000175000017500000001041211162160036014125 00000000000000 quesoglc-0.7.2/tests/test7.c0000644000175000017500000001733011044721066012644 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test7.c 816 2008-08-01 23:54:22Z bcoconni $ */ /** \file * Check that glcGetCharMetric() and glcGetStringCharMetric() return consistant * values. */ #include "GL/glc.h" #include #include #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #define EPSILON 1E-5 static char* string = "Hello"; #define CheckError() \ err = glcGetError(); \ if (err) { \ printf("Unexpected error : 0x%X\n", err); \ return -1; \ } int main(int argc, char **argv) { GLint ctx; GLCenum err; GLint length = 0; GLint i, j, n; GLint font = 0; GLfloat baseline1[4], baseline2[4]; GLfloat boundingBox1[8], boundingBox2[8]; GLfloat v1, v2, norm, area; /* Needed to initialize an OpenGL context */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("test7"); ctx = glcGenContext(); CheckError(); glcContext(ctx); CheckError(); length = glcMeasureCountedString(GL_TRUE, strlen(string)-1, string); CheckError(); if ((!length) || (length != (strlen(string)-1))) { printf("glcMeasureString() failed to measure %d characters" " (%d measured instead)\n", (int)strlen(string), length); return -1; } n = glcGeti(GLC_MEASURED_CHAR_COUNT); CheckError(); if (length != n) { printf("glcGeti(GLC_MEASURED_CHAR_COUNT) == %d is not consistent with the" " value returned by glcMeasureString() == %d\n", n, length); return -1; } length = glcMeasureString(GL_TRUE, string); CheckError(); if ((!length) || (length != strlen(string))) { printf("glcMeasureString() failed to measure %d characters" " (%d measured instead)\n", (int)strlen(string), length); return -1; } n = glcGeti(GLC_MEASURED_CHAR_COUNT); CheckError(); if (length != n) { printf("glcGeti(GLC_MEASURED_CHAR_COUNT) == %d is not consistent with the" " value returned by glcMeasureString() == %d\n", n, length); return -1; } for (i = 0; i < strlen(string); i++) { if (!glcGetCharMetric(string[i], GLC_BASELINE, baseline1)) { printf("Failed to measure the baseline of the character %c\n", string[i]); return -1; } CheckError(); if (!glcGetStringCharMetric(i, GLC_BASELINE, baseline2)) { printf("Failed to get the baseline of the %dth character of the string" " %s\n", i, string); return -1; } CheckError(); for (j = 0; j < 2; j++) { v1 = fabs(baseline1[j + 2] - baseline1[j]); v2 = fabs(baseline2[j + 2] - baseline2[j]); norm = v1 > v2 ? v1 : v2; if (fabs(v1 - v2) > EPSILON * norm) { printf("Baseline values differ [rank %d char %d] %f (char)," " %f (string)\n", j, i, v1, v2); return -1; } } if (!glcGetCharMetric(string[i], GLC_BOUNDS, boundingBox1)) { printf("Failed to measure the bounding box of the character %c\n", string[i]); return -1; } CheckError(); if (!glcGetStringCharMetric(i, GLC_BOUNDS, boundingBox2)) { printf("Failed to get the bounding box of the %dth character of the" " string %s\n", i, string); return -1; } CheckError(); for (j = 0; j < 6; j++) { v1 = fabs(boundingBox1[j + 2] - boundingBox1[j]); v2 = fabs(boundingBox2[j + 2] - boundingBox2[j]); norm = v1 > v2 ? v1 : v2; if (fabs(v1 - v2) > EPSILON * norm) { printf("Bounding Box values differ [rank %d char %d] %f (char)," " %f (string)", j, i, v1, v2); return -1; } } } if (!glcGeti(GLC_FONT_COUNT)) { printf("GLC_FONT_LIST is empty\n"); return -1; } CheckError(); if (!glcGeti(GLC_CURRENT_FONT_COUNT)) { printf("GLC_CURRENT_FONT_LIST is empty\n"); return -1; } CheckError(); if (!glcGetMaxCharMetric(GLC_BASELINE, baseline1)) { printf("Failed to get the max baseline of the current fonts\n"); return -1; } CheckError(); v1 = fabs(baseline1[1]); v2 = fabs(baseline1[3]); norm = v1 > v2 ? v1 : v2; if (fabs(v1 - v2) < EPSILON * norm) { v1 = fabs(baseline1[0]); v2 = fabs(baseline1[2]); norm = v1 > v2 ? v1 : v2; if ((fabs(v1 - v2) < EPSILON * norm) || (baseline1[2] < baseline1[0])) { printf("Right and left side of the max baseline are swapped\n"); printf("%f %f %f %f\n", baseline1[0], baseline1[1], baseline1[2], baseline1[3]); font = glcGetListi(GLC_FONT_LIST, 0); printf("Family : %s\n", (char*)glcGetFontc(font, GLC_FAMILY)); printf("Face : %s\n", (char*)glcGetFontFace(font)); return -1; } } if (!glcGetMaxCharMetric(GLC_BOUNDS, boundingBox1)) { printf("Failed to get the max bounding box of the current fonts\n"); return -1; } CheckError(); area = 0.; for (i = 0; i < 3; i++) { area += boundingBox1[2*i] * boundingBox1[2*(i+1)+1] - boundingBox1[2*(i+1)] * boundingBox1[2*i+1]; } if (fabs(area * .5) < EPSILON) { printf("Max area of the characters is null\n"); return -1; } /* Regression test for bug #1821219 (glcGetCharMetric randomly crashes when * requesting measurement for the space character). */ for (i = 0; i < glcGeti(GLC_MASTER_COUNT); i++) { GLint font = glcGenFontID(); if (!glcNewFontFromMaster(font, i)) { printf("Can not get a font from master %s\n", (char*)glcGetMasterc(i, GLC_FAMILY)); return -1; } CheckError(); glcFont(font); CheckError(); if (!glcGetFontMap(font, ' ')) { printf("INFO : Family %s %s has no space character\n", (char*)glcGetFontc(font, GLC_FAMILY), (char*)glcGetFontFace(font)); continue; } if (!glcGetCharMetric(' ', GLC_BOUNDS, boundingBox1)) { printf("Failed to get the bounding box of the space character\n"); printf("Family : %s\n", (char*)glcGetFontc(font, GLC_FAMILY)); printf("Face : %s\n", (char*)glcGetFontFace(font)); return -1; } CheckError(); if (!glcGetCharMetric(' ', GLC_BASELINE, baseline1)) { printf("Failed to get the baseline of the space character\n"); printf("Family : %s\n", (char*)glcGetFontc(font, GLC_FAMILY)); printf("Face : %s\n", (char*)glcGetFontFace(font)); return -1; } CheckError(); v1 = fabs(baseline1[1]); v2 = fabs(baseline1[3]); norm = v1 > v2 ? v1 : v2; if (fabs(v1 - v2) < EPSILON * norm) { v1 = fabs(baseline1[0]); v2 = fabs(baseline1[2]); norm = v1 > v2 ? v1 : v2; if ((fabs(v1 - v2) < EPSILON * norm) || (baseline1[2] < baseline1[0])) { printf("Right and left side of the baseline are swapped\n"); printf("%f %f %f %f\n", baseline1[0], baseline1[1], baseline1[2], baseline1[3]); printf("Family : %s\n", (char*)glcGetFontc(font, GLC_FAMILY)); printf("Face : %s\n", (char*)glcGetFontFace(font)); return -1; } } } glcDeleteContext(ctx); glcContext(0); printf("Tests successful\n"); return 0; } quesoglc-0.7.2/tests/test7.vcproj0000644000175000017500000000720611162160036013721 00000000000000 quesoglc-0.7.2/tests/test14.c0000644000175000017500000000646711162160036012726 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test14.c 887 2009-03-24 01:03:11Z bcoconni $ */ /** \file * Regression test for a bug which prevents letters l (LATIN SMALL LETTER L) and * i (LATIN SMALL LETTER I) to be displayed at small scales when GLC_HINTING_QSO * is enabled, GLC_GL_OBJECTS is disabled and the rendering style is * GLC_TEXTURE. Only "Sans Serif" fonts exhibit this behaviour. */ #include "GL/glc.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include #include void reshape(int width, int height) { glClearColor(0., 0., 0., 0.); glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0., width, 0., height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glFlush(); } void keyboard(unsigned char key, int x, int y) { switch(key) { case 27: /* Escape Key */ exit(0); default: break; } } void display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glColor3f(1.f, 0.f, 0.f); glLoadIdentity(); glScalef(20.f, 20.f, 1.f); glTranslatef(2.f, 2.f, 0.f); glcDisable(GLC_HINTING_QSO); glcRenderString("lili without hinting (rendered at integer coordinates)"); glLoadIdentity(); glScalef(20.f, 20.f, 1.f); glTranslatef(2.025f, 3.f, 0.f); glcDisable(GLC_HINTING_QSO); glcRenderString("lili without hinting (rendered at non-integer coordinates)"); glLoadIdentity(); glScalef(20.f, 20.f, 1.f); glTranslatef(2.f, 4.f, 0.f); glcEnable(GLC_HINTING_QSO); glcRenderString("lili with hinting (rendered at integer coordinates)"); glLoadIdentity(); glScalef(20.f, 20.f, 1.f); glTranslatef(2.025f, 5.f, 0.f); glcEnable(GLC_HINTING_QSO); glcRenderString("lili with hinting (rendered at non-integer coordinates)"); glFlush(); } int main(int argc, char **argv) { GLint ctx = 0; GLint myFont = 0; glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(640, 180); glutCreateWindow("Test14"); glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keyboard); glEnable(GL_TEXTURE_2D); /* Set up and initialize GLC */ ctx = glcGenContext(); glcContext(ctx); /* Create a font "Palatino Bold" */ myFont = glcGenFontID(); #ifdef __WIN32__ glcNewFontFromFamily(myFont, "Arial"); #else glcNewFontFromFamily(myFont, "DejaVu Sans"); #endif glcFont(myFont); glcRenderStyle(GLC_TEXTURE); glcDisable(GLC_GL_OBJECTS); glutMainLoop(); return 0; } quesoglc-0.7.2/tests/test9.4.vcproj0000644000175000017500000001040611162160036014061 00000000000000 quesoglc-0.7.2/tests/test10.vcproj0000644000175000017500000000721011162160036013766 00000000000000 quesoglc-0.7.2/tests/testmaster.vcproj0000644000175000017500000000722011162160036015042 00000000000000 quesoglc-0.7.2/tests/testrender.vcproj0000644000175000017500000000722011162160036015026 00000000000000 quesoglc-0.7.2/tests/test9.7.vcproj0000644000175000017500000001045011162160036014063 00000000000000 quesoglc-0.7.2/tests/test9.8.vcproj0000644000175000017500000001041011162160036014060 00000000000000 quesoglc-0.7.2/tests/test9.3.vcproj0000644000175000017500000001044611162160036014064 00000000000000 quesoglc-0.7.2/tests/test1.c0000644000175000017500000001271110764574552012652 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test1.c 679 2007-12-20 21:42:13Z bcoconni $ */ /** \file * Check GLC routines when no GL context has been bound */ #include "GL/glc.h" #include #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif int main(int argc, char **argv) { GLint ctx; GLint *list; GLCenum err; int i; /* Needed to initialize an OpenGL context */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("test1"); /* 1. Check that no error is pending */ err = glcGetError(); if (err) { printf("GLC error pending : 0x%X\n", (int)err); return -1; } /* 2. Check that no context is created */ list = glcGetAllContexts(); if (list[0]) { printf("Contexts already exist\n"); free(list); return -1; } free(list); for (i=0; i<16; i++) { if (glcIsContext(i+1)) { printf("Context %d already exists\n", i+1); return -1; } } /* 3. Check that we can't destroy contexts that have not been * created yet. */ for (i=0; i<16; i++) { glcDeleteContext(i+1); err = glcGetError(); if (err != GLC_PARAMETER_ERROR) { printf("Unexpected GLC Error : 0x%X\n", (int)err); return -1; } } /* 4. Check that 16 contexts can be created */ for (i=0; i<16; i++) { ctx = glcGenContext(); if (!ctx) { printf("GLC error : %d\n", (int)glcGetError()); return -1; } if (ctx != i+1) { printf("Creation of context %d failed\n", (int)ctx); printf("GLC error : %d\n", (int)glcGetError()); return -1; } } /* 5. Verify that 16 contexts have been generated */ list = glcGetAllContexts(); i = 0; while (list[i]) { if (list[i] != i+1) { printf("GLC error : context %d has not been created\n", i); return -1; } i++; } free(list); for (i=0; i<16; i++) { if (!glcIsContext(i+1)) { printf("Context %d has not been created\n", i+1); return -1; } } /* 6. Check that there is no current context */ if (glcGetCurrentContext()) printf("Unexpected current context %d\n", (int)glcGetCurrentContext()); /* 7. Check that a destroyed context can be reclaimed * by glcGenContext() */ glcDeleteContext(5); /* Verify that context 5 is not in the context list */ list = glcGetAllContexts(); i = 0; while (list[i]) { if (list[i++] == 5) { printf("GLC error : context 5 is not deleted\n"); return -1; } } if (glcIsContext(5)) { printf("Context 5 still exists\n"); return -1; } ctx = glcGenContext(); if (!ctx) { printf("GLC Error : 0x%X\n", (int)glcGetError()); return -1; } while (list[i]) { if (list[i++] == ctx) { printf("This context is already defined\n"); return -1; } } free(list); /* Verify that no error is pending */ err = glcGetError(); if (err) { printf("An error is pending : %X\n", (int)err); return -1; } /* Verify that a context ID less than zero generates * a GLC_PARAMETER_ERROR */ glcContext(-1); err = glcGetError(); if (err != GLC_PARAMETER_ERROR) { printf("1.Unexpected error : %X\n", (int)err); return -1; } /* Verify that no error is pending */ err = glcGetError(); if (err) { printf("Another error is pending : %X\n", (int)err); return -1; } /* Look for a context which has not been created yet */ i = 1; while (glcIsContext(i)) i++; /* Verify that we can not make current a context that has not * been created yet. */ glcContext(i); err = glcGetError(); if (err != GLC_PARAMETER_ERROR) { printf("2.Unexpected error : %X\n", (int)err); return -1; } /* Verify that no error is pending */ err = glcGetError(); if (err) { printf("An error is pending : %X\n", (int)err); return -1; } /* Verify that a context ID less than zero generates * a GLC_PARAMETER_ERROR */ glcDeleteContext(-1); err = glcGetError(); if (err != GLC_PARAMETER_ERROR) { printf("3.Unexpected error : %X\n", (int)err); return -1; } /* Verify that no error is pending */ err = glcGetError(); if (err) { printf("Another error is pending : %X\n", (int)err); return -1; } /* Verify that we can not delete a context that has not * been created yet. */ glcDeleteContext(i); err = glcGetError(); if (err != GLC_PARAMETER_ERROR) { printf("4.Unexpected error : %X\n", (int)err); return -1; } glcContext(ctx); err = glcGetError(); if (err) { printf("5.Unexpected error : %X\n", (int)err); return -1; } printf("Tests successful\n"); return 0; } quesoglc-0.7.2/tests/test12.c0000644000175000017500000002427111162160036012715 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test12.c 886 2009-03-24 00:35:17Z bcoconni $ */ /** \file * Regression test for bug #1987563 (reported by GenPFault) : * * glcEnable(GLC_KERNING_QSO) does not enable kerning. * Microsoft Word 2003 and the official Freetype tutorial kerning algorithm * both produced the correct kerning which is different from the kerning * obtained with QuesoGLC. * Actually, the combination of GLC_GL_OBJECTS and KERNING induces the bug. */ #include "GL/glc.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include #include #include GLuint id = 0; void reshape(int width, int height) { glClearColor(0., 0., 0., 0.); glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0., width, 0., height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glFlush(); } void keyboard(unsigned char key, int x, int y) { switch(key) { case 27: /* Escape Key */ exit(0); default: break; } } void display(void) { int i = 0; GLfloat bbox[8] = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f}; GLfloat bbox2[8] = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f}; char string[20]; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); /* Render GLC_BITMAP without kerning */ glLoadIdentity(); glColor3f(1.f, 0.f, 0.f); glRasterPos2f(50.f, 50.f); glcDisable(GLC_KERNING_QSO); glcRenderStyle(GLC_BITMAP); glcLoadIdentity(); glcScale(100.f, 100.f); glcRenderString("VAV"); glcMeasureString(GL_FALSE, "VAV"); glcGetStringMetric(GLC_BOUNDS, bbox); glColor3f(0.f, 1.f, 1.f); glTranslatef(50.f, 50.f, 0.f); glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); /* Display the dimensions */ #ifdef _MSC_VER sprintf_s(string, 20, "%f", bbox[2] - bbox[0]); #else snprintf(string, 20, "%f", bbox[2] - bbox[0]); #endif glcEnable(GLC_HINTING_QSO); glcScale(0.15f, 0.15f); glcMeasureString(GL_FALSE, string); glcGetStringMetric(GLC_BOUNDS, bbox2); glColor3f(1.f, 1.f, 1.f); glBegin(GL_LINE); glVertex2fv(bbox); glVertex2f(bbox[0], bbox[1] - 40.f); glVertex2fv(&bbox[2]); glVertex2f(bbox[2], bbox[3] - 40.f); glVertex2f(bbox[0], bbox[1] - 30.f); glVertex2f(bbox[2], bbox[3] - 30.f); glEnd(); glBegin(GL_LINE_LOOP); glVertex2f(bbox[0] + 5.f, bbox[1] - 25.f); glVertex2f(bbox[0], bbox[1] - 30.f); glVertex2f(bbox[0] + 5.f, bbox[1] - 35.f); glEnd(); glBegin(GL_LINE_LOOP); glVertex2f(bbox[2] - 5.f, bbox[1] - 25.f); glVertex2f(bbox[2], bbox[1] - 30.f); glVertex2f(bbox[2] - 5.f, bbox[1] - 35.f); glEnd(); glLoadIdentity(); glRasterPos2f(floorf((bbox[2] - bbox[0] - (bbox2[2] - bbox2[0])) * 50.f) / 100.f + 50.f, floorf((bbox[1] + 23.f) * 100.f) / 100.f); glcRenderString(string); glcDisable(GLC_HINTING_QSO); /* Render GLC_TEXTURE without kerning */ glLoadIdentity(); glcRenderStyle(GLC_TEXTURE); glColor3f(1.f, 0.f, 0.f); glScalef(100.f, 100.f, 1.f); glTranslatef(3.f, 0.5f, 0.f); glPushMatrix(); /* In order to reproduce the conditions of bug #1987563, GLC_GL_OBJECTS must * be disabled when rendering GLC_TEXTURE w/o kerning. */ glcRenderString("VAV"); glPopMatrix(); glcMeasureString(GL_TRUE, "VAV"); glcGetStringCharMetric(1, GLC_BOUNDS, bbox); glColor3f(0.f, 1.f, 0.f); glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); glcGetStringMetric(GLC_BOUNDS, bbox); glColor3f(0.f, 1.f, 1.f); glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); /* Display the dimensions */ #ifdef _MSC_VER sprintf_s(string, 20, "%f", (bbox[2] - bbox[0]) * 100.f); #else snprintf(string, 20, "%f", (bbox[2] - bbox[0]) * 100.f); #endif glcEnable(GLC_HINTING_QSO); glcMeasureString(GL_FALSE, string); glcGetStringMetric(GLC_BOUNDS, bbox2); glColor3f(1.f, 1.f, 1.f); glBegin(GL_LINE); glVertex2fv(bbox); glVertex2f(bbox[0], bbox[1] - 0.4f); glVertex2fv(&bbox[2]); glVertex2f(bbox[2], bbox[3] - 0.4f); glVertex2f(bbox[0], bbox[1] - 0.3f); glVertex2f(bbox[2], bbox[3] - 0.3f); glEnd(); glBegin(GL_LINE_LOOP); glVertex2f(bbox[0] + 0.05f, bbox[1] - 0.25f); glVertex2f(bbox[0], bbox[1] - 0.3f); glVertex2f(bbox[0] + 0.05f, bbox[1] - 0.35f); glEnd(); glBegin(GL_LINE_LOOP); glVertex2f(bbox[2] - 0.05f, bbox[1] - 0.25f); glVertex2f(bbox[2], bbox[1] - 0.3f); glVertex2f(bbox[2] - 0.05f, bbox[1] - 0.35f); glEnd(); /* When hinting is enabled, characters must be rendered at integer positions * otherwise hinting is compromised and characters look fuzzy. */ glTranslatef(floorf((bbox[2] - bbox[0] - (bbox2[2] - bbox2[0]) * 0.15f) * 50.f) / 100.f, floorf((bbox[1] - 0.27f) * 100.f) / 100.f, 0.f); glScalef(0.15f, 0.15f, 1.f); glcRenderString(string); glcDisable(GLC_HINTING_QSO); /* Render GLC_BITMAP with kerning */ glColor3f(1.f, 0.f, 0.f); glcEnable(GLC_KERNING_QSO); glcRenderStyle(GLC_BITMAP); glcLoadIdentity(); glcScale(100.f, 100.f); glLoadIdentity(); glRasterPos2f(50.f, 150.f); glcRenderString("VAV"); glcMeasureString(GL_FALSE, "VAV"); glcGetStringMetric(GLC_BOUNDS, bbox); glColor3f(0.f, 1.f, 1.f); glTranslatef(50.f, 150.f, 0.f); glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); /* Display the dimensions */ #ifdef _MSC_VER sprintf_s(string, 20, "%f", bbox[4] - bbox[6]); #else snprintf(string, 20, "%f", bbox[4] - bbox[6]); #endif glcEnable(GLC_HINTING_QSO); glcScale(0.15f, 0.15f); glcMeasureString(GL_FALSE, string); glcGetStringMetric(GLC_BOUNDS, bbox2); glColor3f(1.f, 1.f, 1.f); glBegin(GL_LINE); glVertex2fv(&bbox[4]); glVertex2f(bbox[4], bbox[5] + 40.f); glVertex2fv(&bbox[6]); glVertex2f(bbox[6], bbox[7] + 40.f); glVertex2f(bbox[4], bbox[5] + 30.f); glVertex2f(bbox[6], bbox[7] + 30.f); glEnd(); glBegin(GL_LINE_LOOP); glVertex2f(bbox[4] - 5.f, bbox[5] + 25.f); glVertex2f(bbox[4], bbox[5] + 30.f); glVertex2f(bbox[4] - 5.f, bbox[5] + 35.f); glEnd(); glBegin(GL_LINE_LOOP); glVertex2f(bbox[6] + 5.f, bbox[7] + 25.f); glVertex2f(bbox[6], bbox[7] + 30.f); glVertex2f(bbox[6] + 5.f, bbox[7] + 35.f); glEnd(); glLoadIdentity(); glRasterPos2f(floorf((bbox[4] - bbox[6] - (bbox2[4] - bbox2[6])) * 50.f) / 100.f + 50.f, bbox[7] + 183.f); glcRenderString(string); glcScale(2.f, 2.f); glcMeasureString(GL_FALSE, "GL_BITMAP"); glcGetStringMetric(GLC_BOUNDS, bbox2); glRasterPos2f(floorf((bbox[2] - bbox[0] - (bbox2[2] - bbox2[0])) * 50.f) / 100.f + 50.f, 300.f); glcRenderString("GL_BITMAP"); glcDisable(GLC_HINTING_QSO); /* Render GLC_TEXTURE with kerning */ glLoadIdentity(); glcRenderStyle(GLC_TEXTURE); glColor3f(1.f, 0.f, 0.f); glScalef(100.f, 100.f, 1.f); glTranslatef(3.f, 1.5f, 0.f); glPushMatrix(); glcRenderString("VAV"); glPopMatrix(); glcMeasureString(GL_TRUE, "VAV"); glcGetStringCharMetric(1, GLC_BOUNDS, bbox); glColor3f(0.f, 1.f, 0.f); glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); glcGetStringMetric(GLC_BOUNDS, bbox); glColor3f(0.f, 1.f, 1.f); glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); /* Display the dimensions */ #ifdef _MSC_VER sprintf_s(string, 20, "%f", (bbox[4] - bbox[6]) * 100.f); #else snprintf(string, 20, "%f", (bbox[4] - bbox[6]) * 100.f); #endif glcEnable(GLC_HINTING_QSO); glcMeasureString(GL_FALSE, string); glcGetStringMetric(GLC_BOUNDS, bbox2); glColor3f(1.f, 1.f, 1.f); glBegin(GL_LINE); glVertex2fv(&bbox[4]); glVertex2f(bbox[4], bbox[5] + 0.4f); glVertex2fv(&bbox[6]); glVertex2f(bbox[6], bbox[7] + 0.4f); glVertex2f(bbox[4], bbox[5] + 0.3f); glVertex2f(bbox[6], bbox[7] + 0.3f); glEnd(); glBegin(GL_LINE_LOOP); glVertex2f(bbox[6] + 0.05f, bbox[7] + 0.25f); glVertex2f(bbox[6], bbox[7] + 0.3f); glVertex2f(bbox[6] + 0.05f, bbox[7] + 0.35f); glEnd(); glBegin(GL_LINE_LOOP); glVertex2f(bbox[4] - 0.05f, bbox[5] + 0.25f); glVertex2f(bbox[4], bbox[5] + 0.3f); glVertex2f(bbox[4] - 0.05f, bbox[5] + 0.35f); glEnd(); glPushMatrix(); glTranslatef(floorf((bbox[4] - bbox[6] - (bbox2[4] - bbox2[6]) * 0.15f) *50.f) / 100.f, floorf((bbox[5] + 0.33f) * 100.f) / 100.f, 0.f); glScalef(0.15f, 0.15f, 1.f); glcRenderString(string); glPopMatrix(); glcMeasureString(GL_FALSE, "GL_TEXTURE"); glcGetStringMetric(GLC_BOUNDS, bbox2); glTranslatef(floorf((bbox[2] - bbox[0] - (bbox2[2] - bbox2[0]) * 0.3f) * 50.f) / 100.f, 1.5f, 0.f); glScalef(0.3f, 0.3f, 1.f); glcRenderString("GL_TEXTURE"); glcDisable(GLC_HINTING_QSO); glFlush(); } int main(int argc, char **argv) { GLint ctx = 0; GLint myFont = 0; glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(640, 400); glutCreateWindow("Test12"); glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keyboard); glEnable(GL_TEXTURE_2D); /* Set up and initialize GLC */ ctx = glcGenContext(); glcContext(ctx); glcDisable(GLC_GL_OBJECTS); /* Create a font "Palatino Bold" */ myFont = glcGenFontID(); #ifdef __WIN32__ glcNewFontFromFamily(myFont, "Times New Roman"); glcFontFace(myFont, "Regular"); #else glcNewFontFromFamily(myFont, "DejaVu Serif"); glcFontFace(myFont, "Book"); #endif glcFont(myFont); glcRenderStyle(GLC_BITMAP); glutMainLoop(); return 0; } quesoglc-0.7.2/tests/test9.2.vcproj0000644000175000017500000001035011162160036014055 00000000000000 quesoglc-0.7.2/tests/test3.c0000644000175000017500000001017410764574552012655 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2007, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test3.c 679 2007-12-20 21:42:13Z bcoconni $ */ /** \file * The purpose of this test is to check that a context can be bound to only * one thread at a time. This test checks that if a context is current to * a thread other than the issuing thread then a GLC_STATE_ERROR is raised. * Pending deletion of contexts is also tested. */ #include "GL/glc.h" #include #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif GLint ctx; int magic = 0xdeadbeef; void* da_thread(void *arg) { GLCenum err; glutCreateWindow("test3.1"); glcContext(ctx); err = glcGetError(); if (err != GLC_STATE_ERROR) { printf("Thread 2 : Unexpected error : 0x%X\n", (int)err); return &magic; } /* Ask GLC to delete this context as soon as it is not current any thread */ glcDeleteContext(ctx); err = glcGetError(); if (err) { printf("Thread 2 : Unexpected error : 0x%X\n", (int)err); return &magic; } /* Check that the context has not been deleted yet. */ if (!glcIsContext(ctx)) { printf("Thread 2 : Unexpected deletion of context %d\n", (int)ctx); return &magic; } return NULL; } int main(int argc, char **argv) { pthread_t thread; GLCenum err; void *return_value = NULL; GLint ctx2; /* Needed to initialize an OpenGL context */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("test3"); ctx2 = glcGenContext(); ctx = glcGenContext(); glcContext(ctx); err = glcGetError(); if (err) { printf("Main Thread : Unexpected error : 0x%X\n", (int)err); return -1; } if (pthread_create(&thread, NULL, da_thread, NULL)) { printf("Main Thread : Failed to create pthread\n"); return -1; } if (pthread_join(thread, &return_value)) { printf("Main Thread : Failed to join Thread 2\n"); return -1; } if (return_value) { printf("Main Thread : An error occured in Thread 2\n"); return -1; } /* Check that although the thread has requested a deletion of the context, * the context 'ctx' still exists. */ if (!glcIsContext(ctx)) { printf("Main Thread : Unexpected deletion of context 'ctx'\n"); return -1; } /* Change the current context. The pending deletion should be executed * at this step. */ glcContext(ctx2); /* Verify that the context has been deleted */ if (glcIsContext(ctx)) { printf("Main Thread : Pending deletion of context 'ctx' has not been executed\n"); return -1; } /* Same as above (pending deletion of a context) but a little different : * - The deletion is now requested in the thread that owns the context * - glcContext(0) is called which means that the current context will be * released and no other context will be made current (hence a different * branch of code will be executed in glcContext(). */ glcDeleteContext(ctx2); err = glcGetError(); if (err) { printf("Main Thread : Unexpected GLC error 0x%x\n", (int)err); return -1; } /* Release the current context */ glcContext(0); /* Check that 'ctx2' has been deleted */ if (glcIsContext(ctx2)) { printf("Main Thread : Pending deletion of context 'ctx2' has not been executed\n"); return -1; } printf("Test successful!\n"); return 0; } quesoglc-0.7.2/tests/test12.vcproj0000644000175000017500000001016011162160036013766 00000000000000 quesoglc-0.7.2/tests/testcontex.vcproj0000644000175000017500000000722011162160036015047 00000000000000 quesoglc-0.7.2/tests/test5.vcproj0000644000175000017500000000720611162160036013717 00000000000000 quesoglc-0.7.2/tests/test11.1.vcproj0000644000175000017500000001035211162160036014127 00000000000000 quesoglc-0.7.2/tests/test15.c0000644000175000017500000000606111162160036012715 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2009, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test15.c 887 2009-03-24 01:03:11Z bcoconni $ */ /** \file * Regression test for a bug which did not include trailing spaces in * calculation of the bounding boxes. */ #include "GL/glc.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include #include GLuint id = 0; void reshape(int width, int height) { glClearColor(0., 0., 0., 0.); glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0., width, 0., height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glFlush(); } void keyboard(unsigned char key, int x, int y) { switch(key) { case 27: /* Escape Key */ exit(0); default: break; } } void display(void) { GLfloat bbox[8]; int i = 0; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glScalef(100.f, 100.f, 1.f); glTranslatef(0.5f, 0.5f, 0.f); glColor4f(1.f, 0.f, 0.f, 1.f); glcRenderCountedString(4, "ABCDE"); glLoadIdentity(); glScalef(100.f, 100.f, 1.f); glTranslatef(0.5f, 1.5f, 0.f); glcMeasureString(GL_FALSE, " ABCDE "); glcGetStringMetric(GLC_BOUNDS, bbox); glColor3f(0.f, 1.f, 1.f); glBegin(GL_LINE_LOOP); for (i = 0; i < 4; i++) glVertex2fv(&bbox[2*i]); glEnd(); glcGetStringMetric(GLC_BASELINE, bbox); glColor3f(1.f, 1.f, 0.f); glBegin(GL_LINE); for (i = 0; i < 2; i++) glVertex2fv(&bbox[2*i]); glEnd(); glColor3f(1.f, 0.f, 0.f); glcRenderString(" ABCDE "); glFlush(); } int main(int argc, char **argv) { GLint ctx = 0; GLint myFont = 0; glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(640, 300); glutCreateWindow("Test15"); glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keyboard); glEnable(GL_TEXTURE_2D); /* Set up and initialize GLC */ ctx = glcGenContext(); glcContext(ctx); /* Create a font "Palatino Bold" */ myFont = glcGenFontID(); #ifdef __WIN32__ glcNewFontFromFamily(myFont, "Palatino Linotype"); #else glcNewFontFromFamily(myFont, "Palatino"); #endif glcFontFace(myFont, "Bold"); glcFont(myFont); glcRenderStyle(GLC_TEXTURE); glutMainLoop(); return 0; } quesoglc-0.7.2/tests/test10.c0000644000175000017500000000625310775740777012744 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test10.c 712 2008-01-26 19:46:49Z bcoconni $ */ /** \file * Regression test for bug #1820546 (reported by Alok Kulkarni) : * * The function glcRenderString works incorrectly when passed an empty string. * It is observed to render any previously-rendered string without its first * character. * * For example, the following sequence of calls: * * ... set some position * glcRenderString ("ABCD"); * * ... set some other position * glcRenderString (""); * * will produce the following two results: * * ABCD * BCD * * This is observed to be true regardless of render style. */ #include "GL/glc.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include #include GLuint id = 0; void reshape(int width, int height) { glClearColor(0., 0., 0., 0.); glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0., width, 0., height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glFlush(); } void keyboard(unsigned char key, int x, int y) { switch(key) { case 27: /* Escape Key */ exit(0); default: break; } } void display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); /* Render "Hello world!" */ glColor3f(1.f, 0.f, 0.f); glLoadIdentity(); glScalef(100.f, 100.f, 1.f); glTranslatef(0.5f, 0.5f, 0.f); glcRenderCountedString(4, "ABCDE"); glLoadIdentity(); glScalef(100.f, 100.f, 1.f); glTranslatef(0.5f, 1.5f, 0.f); glcRenderString(""); /* If the bug is not fixed, it displays "BCD" */ glFlush(); } int main(int argc, char **argv) { GLint ctx = 0; GLint myFont = 0; glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(640, 300); glutCreateWindow("Tutorial"); glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keyboard); glEnable(GL_TEXTURE_2D); /* Set up and initialize GLC */ ctx = glcGenContext(); glcContext(ctx); glcAppendCatalog("/usr/lib/X11/fonts/Type1"); /* Create a font "Palatino Bold" */ myFont = glcGenFontID(); #ifdef __WIN32__ glcNewFontFromFamily(myFont, "Palatino Linotype"); #else glcNewFontFromFamily(myFont, "Palatino"); #endif glcFontFace(myFont, "Bold"); glcFont(myFont); glcRenderStyle(GLC_TEXTURE); glutMainLoop(); return 0; } quesoglc-0.7.2/tests/test11.3.vcproj0000644000175000017500000001035411162160036014133 00000000000000 quesoglc-0.7.2/tests/test9.c0000644000175000017500000000726610764574552012673 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2008, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test9.c 712 2008-01-26 19:46:49Z bcoconni $ */ /** \file * Regression test for bug #1754660 (reported by Alok Kulkarni) : * Since QuesoGLC version 0.6.0, a call to glcRenderString draws only the * first character of the given string when the call is executed as part of a * user-defined OpenGL display list. * * For example, the pseudo-code: * * { * ... * glcRenderStyle (GLC_TRIANGLE); * ... * glNewList (id, GL_COMPILE); * ... * glcRenderString ("ABCDE"); * ... * glEndList (); * ... * glCallList (id); * ... * } * * will render only the first character "A". */ #include "GL/glc.h" #if defined __APPLE__ && defined __MACH__ #include #else #include #endif #include #include GLuint id = 0; void reshape(int width, int height) { glClearColor(0., 0., 0., 0.); glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0., width, 0., height); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glFlush(); } void keyboard(unsigned char key, int x, int y) { switch(key) { case 27: /* Escape Key */ exit(0); default: break; } } void display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); /* Render "Hello world!" */ glColor3f(1.f, 0.f, 0.f); #ifdef WITH_USER_LIST glCallList(id); #else glLoadIdentity(); glScalef(100.f, 100.f, 1.f); glTranslatef(.5f, .5f, 0.f); glcRenderString("Hello world!"); #endif glFlush(); } int main(int argc, char **argv) { GLint ctx = 0; GLint myFont = 0; glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(640, 180); glutCreateWindow("Tutorial"); glutDisplayFunc(display); glutReshapeFunc(reshape); glutKeyboardFunc(keyboard); glEnable(GL_TEXTURE_2D); /* Set up and initialize GLC */ ctx = glcGenContext(); glcContext(ctx); glcAppendCatalog("/usr/lib/X11/fonts/Type1"); /* Create a font "Palatino Bold" */ myFont = glcGenFontID(); #ifdef __WIN32__ glcNewFontFromFamily(myFont, "Palatino Linotype"); #else glcNewFontFromFamily(myFont, "Palatino"); #endif glcFontFace(myFont, "Bold"); glcFont(myFont); glcRenderStyle(RENDER_STYLE); #if (RENDER_STYLE == GLC_TEXTURE) printf("Render style : GLC_TEXTURE"); #elif (RENDER_STYLE == GLC_TRIANGLE) printf("Render style : GLC_TRIANGLE"); #endif #ifdef WITH_GL_OBJECTS printf("\t with GL objects"); #else glcDisable(GLC_GL_OBJECTS); printf("\t without GL objects"); #endif #ifdef WITH_USER_LIST printf("\twith user list\n"); #else printf("\twithout user list\n"); #endif /* Render the text at a size of 100 points */ id = glGenLists(1); glNewList(id, GL_COMPILE); glLoadIdentity(); glScalef(100.f, 100.f, 1.f); glTranslatef(.5f, .5f,0.f); glcRenderString("Hello world!"); glEndList(); glutMainLoop(); return 0; } quesoglc-0.7.2/tests/test1.vcproj0000644000175000017500000000720611162160036013713 00000000000000 quesoglc-0.7.2/tests/test13.c0000644000175000017500000001042511052351302012706 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2006, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test13.c 828 2008-08-18 19:51:08Z bcoconni $ */ /** \file * Checks the functions which manage the font lists GLC_FONT_LIST and * GLC_CURRENT_FONT_LIST. */ #include "GL/glc.h" #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif GLboolean checkError(GLCenum expectedError) { GLCenum err = glcGetError(); if (err == expectedError) return GL_TRUE; switch(err) { case GLC_NONE: printf("Unexpected GLC_NONE error\n"); return GL_FALSE; case GLC_STATE_ERROR: printf("Unexpected GLC_STATE_ERROR\n"); return GL_FALSE; case GLC_PARAMETER_ERROR: printf("Unexpected GLC_PARAMETER_ERROR\n"); return GL_FALSE; case GLC_RESOURCE_ERROR: printf("Unexpected GLC_RESOURCE_ERROR\n"); return GL_FALSE; case GLC_STACK_OVERFLOW_QSO: printf("Unexpected GLC_STACK_OVERFLOW_QSO\n"); return GL_FALSE; case GLC_STACK_UNDERFLOW_QSO: printf("Unexpected GLC_STACK_UNDERFLOW_QSO\n"); return GL_FALSE; default: printf("Unknown error 0x%X\n", err); return GL_FALSE; } } GLboolean checkFontLists(GLint fonts, GLint currentFonts) { if (glcGeti(GLC_FONT_COUNT) != fonts) { printf("GLC_FONT_LIST should contain %d fonts\n", fonts); return GL_FALSE; } if (!checkError(GLC_NONE)) return GL_FALSE; if (glcGeti(GLC_CURRENT_FONT_COUNT) != currentFonts) { printf("GLC_CURRENT_FONT_LIST should contain %d fonts\n", currentFonts); return GL_FALSE; } if (!checkError(GLC_NONE)) return GL_FALSE; return GL_TRUE; } int main(int argc, char **argv) { GLint ctx = glcGenContext(); GLint font[3] = {0, 0, 0}; /* Needed to initialize an OpenGL context */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("test13"); glcContext(ctx); if (!checkError(GLC_NONE)) return -1; if (!checkFontLists(0, 0)) return -1; font[0] = glcNewFontFromMaster(glcGenFontID(), 1); if (!checkError(GLC_NONE)) return -1; if (!checkFontLists(1, 0)) return -1; font[1] = glcNewFontFromMaster(glcGenFontID(), 2); if (!checkError(GLC_NONE)) return -1; if (!checkFontLists(2, 0)) return -1; glcFont(font[0]); if (!checkError(GLC_NONE)) return -1; if (!checkFontLists(2, 1)) return -1; glcAppendFont(font[1]); if (!checkError(GLC_NONE)) return -1; if (!checkFontLists(2, 2)) return -1; glcFont(font[1] + 1000); if (!checkError(GLC_PARAMETER_ERROR)) /* The font does not exist */ return -1; glcAppendFont(font[1] + 1000); if (!checkError(GLC_PARAMETER_ERROR)) /* The font does not exist */ return -1; glcAppendFont(font[1]); if (!checkError(GLC_PARAMETER_ERROR)) /* The font is already current */ return -1; if (!checkFontLists(2, 2)) return -1; glcFont(0); if (!checkError(GLC_NONE)) return -1; if (!checkFontLists(2, 0)) return -1; font[2] = glcNewFontFromMaster(glcGenFontID(), 3); if (!checkError(GLC_NONE)) return -1; if (!checkFontLists(3, 0)) return -1; glcAppendFont(font[0]); if (!checkError(GLC_NONE)) return -1; glcAppendFont(font[1]); if (!checkError(GLC_NONE)) return -1; if (!checkFontLists(3, 2)) return -1; glcFont(font[2]); if (!checkError(GLC_NONE)) return -1; if (!checkFontLists(3, 1)) return -1; glcDeleteContext(ctx); if (!checkError(GLC_NONE)) return -1; printf("Tests successful\n"); return 0; } quesoglc-0.7.2/tests/test4.vcproj0000644000175000017500000000720611162160036013716 00000000000000 quesoglc-0.7.2/tests/test6.vcproj0000644000175000017500000000743611162160036013725 00000000000000 quesoglc-0.7.2/tests/test9.1.vcproj0000644000175000017500000001041011162160036014051 00000000000000 quesoglc-0.7.2/tests/test8.c0000644000175000017500000000632411150246050012637 00000000000000/* QuesoGLC * A free implementation of the OpenGL Character Renderer (GLC) * Copyright (c) 2002, 2004-2006, Bertrand Coconnier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: test8.c 575 2007-02-25 13:17:12Z bcoconni $ */ /** \file * Checks that GLC routines supports empty strings */ #include "GL/glc.h" #include #if defined __APPLE__ && defined __MACH__ #include #else #include #endif GLboolean checkError(GLCenum expectedError) { GLCenum err = glcGetError(); if (err == expectedError) return GL_TRUE; switch(err) { case GLC_NONE: printf("Unexpected GLC_NONE error\n"); return GL_FALSE; case GLC_STATE_ERROR: printf("Unexpected GLC_STATE_ERROR\n"); return GL_FALSE; case GLC_PARAMETER_ERROR: printf("Unexpected GLC_PARAMETER_ERROR\n"); return GL_FALSE; case GLC_RESOURCE_ERROR: printf("Unexpected GLC_RESOURCE_ERROR\n"); return GL_FALSE; case GLC_STACK_OVERFLOW_QSO: printf("Unexpected GLC_STACK_OVERFLOW_QSO\n"); return GL_FALSE; case GLC_STACK_UNDERFLOW_QSO: printf("Unexpected GLC_STACK_UNDERFLOW_QSO\n"); return GL_FALSE; default: printf("Unknown error 0x%X\n", err); return GL_FALSE; } } int main(int argc, char **argv) { GLint ctx = glcGenContext(); GLint font = 0; /* Needed to initialize an OpenGL context */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutCreateWindow("test8"); glcContext(ctx); if (!checkError(GLC_NONE)) return -1; glcAppendCatalog(""); if (!checkError(GLC_PARAMETER_ERROR)) return -1; glcPrependCatalog(""); if (!checkError(GLC_PARAMETER_ERROR)) return -1; font = glcNewFontFromMaster(glcGenFontID(), 1); if (!checkError(GLC_NONE)) return -1; glcFontFace(font, ""); if (!checkError(GLC_RESOURCE_ERROR)) /* The face does not exist */ return -1; glcFontMap(font, 32, ""); if (!checkError(GLC_PARAMETER_ERROR)) /* There is no empty character name */ return -1; glcNewFontFromFamily(glcGenFontID(), ""); if (!checkError(GLC_RESOURCE_ERROR)) /* The family does not exist */ return -1; glcRenderCountedString(1, ""); if (!checkError(GLC_NONE)) return -1; glcRenderString(""); if (!checkError(GLC_NONE)) return -1; glcMeasureCountedString(GL_FALSE, 1, ""); if (!checkError(GLC_NONE)) return -1; glcMeasureString(GL_FALSE, ""); if (!checkError(GLC_NONE)) return -1; glcDeleteContext(ctx); if (!checkError(GLC_NONE)) return -1; printf("Tests successful\n"); return 0; } quesoglc-0.7.2/QuesoGLC.sln0000644000175000017500000005120611162160036012423 00000000000000 Microsoft Visual Studio Solution File, Format Version 10.00 # Visual C++ Express 2008 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glc32", "build\QuesoGLC.vcproj", "{067D0D15-F943-4049-B629-DC4E26ADB5EC}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test1", "tests\test1.vcproj", "{A1A2C05B-B7C8-4BC4-A7A5-CBC6012E459F}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test4", "tests\test4.vcproj", "{E638F67A-FBD5-4519-828F-1F881E1BA22D}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test5", "tests\test5.vcproj", "{FD4EC8F5-8B3F-42A7-9656-0024BBF616B8}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test6", "tests\test6.vcproj", "{5E777AB4-A1E8-40E4-A392-E25D4E13F076}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test7", "tests\test7.vcproj", "{DB149600-EACF-4BD3-B733-E44CA9CA1407}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testcontex", "tests\testcontex.vcproj", "{8CCB1084-E43C-486F-BE8F-6238D295DC30}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testfont", "tests\testfont.vcproj", "{8A26DF46-FDDF-4335-88C2-4FC5FD6C83A2}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testmaster", "tests\testmaster.vcproj", "{47F95B5B-CB2C-43E3-B671-BDA26C3D6CEA}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testrender", "tests\testrender.vcproj", "{469CE225-4771-44AF-AD14-869F819DF192}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glcdemo", "examples\glcdemo.vcproj", "{50A16109-168D-4BDC-955B-9EEDE804BD83}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "glclogo", "examples\glclogo.vcproj", "{556420AE-9988-4194-A3F8-F6B123961C68}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tutorial", "examples\tutorial.vcproj", "{E38A2BC7-3726-4E1B-9B14-27446A256686}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tutorial2", "examples\tutorial2.vcproj", "{5EB2886A-A906-4623-8AEA-6D4A7CEB020A}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "unicode", "examples\unicode.vcproj", "{58AF340B-01BD-49FC-BE38-23280577696A}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "demo", "examples\demo.vcproj", "{642F4443-50CB-468D-A05B-9A5BCAC798CD}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test8", "tests\test8.vcproj", "{5444B712-4E73-43CB-8B42-A650F70F5DB0}" ProjectSection(ProjectDependencies) = postProject {067D0D15-F943-4049-B629-DC4E26ADB5EC} = {067D0D15-F943-4049-B629-DC4E26ADB5EC} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test2", "tests\test2.vcproj", "{1C1999C2-D37A-4A52-9B6F-E54BF0C15B11}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test10", "tests\test10.vcproj", "{40CE30BF-012C-468D-BCB2-5C059E2C578A}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test9.1", "tests\test9.1.vcproj", "{21668BFA-D46F-4DA7-9D86-707B84F592C6}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test9.2", "tests\test9.2.vcproj", "{3326AB6B-DFF2-4C4A-B6E0-29BED185A9FB}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test9.3", "tests\test9.3.vcproj", "{C845C280-9E0C-44E7-9CF7-28813CD1A58D}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test9.4", "tests\test9.4.vcproj", "{615569E0-4AFE-48E6-B330-E3EBC772973E}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test9.5", "tests\test9.5.vcproj", "{C8B97D54-6450-49F1-AA7A-31FE51799AF8}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test9.6", "tests\test9.6.vcproj", "{AF95BDF3-89CB-4943-9F98-DF432ACB0113}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test9.7", "tests\test9.7.vcproj", "{28CEB552-4657-4B99-BABE-03E0CE02B5D5}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test9.8", "tests\test9.8.vcproj", "{01FED030-6715-454C-9953-F07299B5D5FE}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test11.1", "tests\test11.1.vcproj", "{775E474E-6BD9-4AB2-861B-8C647A2CC352}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test11.2", "tests\test11.2.vcproj", "{04985DC8-1C38-4FCC-8BED-B3B4C00A3026}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test11.3", "tests\test11.3.vcproj", "{5BCBDF1E-D197-45F6-92B1-C4DBE0F76990}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test11.4", "tests\test11.4.vcproj", "{12812C8A-0A00-4FE9-A82C-479AEA4C4A31}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test11.5", "tests\test11.5.vcproj", "{31409D14-E9DB-4EBF-97E5-20E0CC119E20}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test11.6", "tests\test11.6.vcproj", "{E72B1489-3986-4D51-A748-2F315C8258AA}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test11.7", "tests\test11.7.vcproj", "{2887913E-1A05-4734-BC15-17C318DA7FDD}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test12", "tests\test12.vcproj", "{D8FCC3AC-AAB0-4547-BE5F-A2833E769F09}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test13", "tests\test13.vcproj", "{023000D6-7034-44A4-A7E7-816E578E273F}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test14", "tests\test14.vcproj", "{50C01D28-352B-4922-8685-8E38174377AF}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test15", "tests\test15.vcproj", "{08854590-36CE-4C3C-98A8-3D09995FDCCA}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test16", "tests\test16.vcproj", "{8F69627B-D309-471E-8887-982200431998}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test17", "tests\test17.vcproj", "{16A205FE-525A-4A41-8C90-FC17BCC101C0}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {067D0D15-F943-4049-B629-DC4E26ADB5EC}.Debug|Win32.ActiveCfg = Debug|Win32 {067D0D15-F943-4049-B629-DC4E26ADB5EC}.Debug|Win32.Build.0 = Debug|Win32 {067D0D15-F943-4049-B629-DC4E26ADB5EC}.Release|Win32.ActiveCfg = Release|Win32 {067D0D15-F943-4049-B629-DC4E26ADB5EC}.Release|Win32.Build.0 = Release|Win32 {A1A2C05B-B7C8-4BC4-A7A5-CBC6012E459F}.Debug|Win32.ActiveCfg = Debug|Win32 {A1A2C05B-B7C8-4BC4-A7A5-CBC6012E459F}.Debug|Win32.Build.0 = Debug|Win32 {A1A2C05B-B7C8-4BC4-A7A5-CBC6012E459F}.Release|Win32.ActiveCfg = Release|Win32 {A1A2C05B-B7C8-4BC4-A7A5-CBC6012E459F}.Release|Win32.Build.0 = Release|Win32 {E638F67A-FBD5-4519-828F-1F881E1BA22D}.Debug|Win32.ActiveCfg = Debug|Win32 {E638F67A-FBD5-4519-828F-1F881E1BA22D}.Debug|Win32.Build.0 = Debug|Win32 {E638F67A-FBD5-4519-828F-1F881E1BA22D}.Release|Win32.ActiveCfg = Release|Win32 {E638F67A-FBD5-4519-828F-1F881E1BA22D}.Release|Win32.Build.0 = Release|Win32 {FD4EC8F5-8B3F-42A7-9656-0024BBF616B8}.Debug|Win32.ActiveCfg = Debug|Win32 {FD4EC8F5-8B3F-42A7-9656-0024BBF616B8}.Debug|Win32.Build.0 = Debug|Win32 {FD4EC8F5-8B3F-42A7-9656-0024BBF616B8}.Release|Win32.ActiveCfg = Release|Win32 {FD4EC8F5-8B3F-42A7-9656-0024BBF616B8}.Release|Win32.Build.0 = Release|Win32 {5E777AB4-A1E8-40E4-A392-E25D4E13F076}.Debug|Win32.ActiveCfg = Debug|Win32 {5E777AB4-A1E8-40E4-A392-E25D4E13F076}.Debug|Win32.Build.0 = Debug|Win32 {5E777AB4-A1E8-40E4-A392-E25D4E13F076}.Release|Win32.ActiveCfg = Release|Win32 {5E777AB4-A1E8-40E4-A392-E25D4E13F076}.Release|Win32.Build.0 = Release|Win32 {DB149600-EACF-4BD3-B733-E44CA9CA1407}.Debug|Win32.ActiveCfg = Debug|Win32 {DB149600-EACF-4BD3-B733-E44CA9CA1407}.Debug|Win32.Build.0 = Debug|Win32 {DB149600-EACF-4BD3-B733-E44CA9CA1407}.Release|Win32.ActiveCfg = Release|Win32 {DB149600-EACF-4BD3-B733-E44CA9CA1407}.Release|Win32.Build.0 = Release|Win32 {8CCB1084-E43C-486F-BE8F-6238D295DC30}.Debug|Win32.ActiveCfg = Debug|Win32 {8CCB1084-E43C-486F-BE8F-6238D295DC30}.Debug|Win32.Build.0 = Debug|Win32 {8CCB1084-E43C-486F-BE8F-6238D295DC30}.Release|Win32.ActiveCfg = Release|Win32 {8CCB1084-E43C-486F-BE8F-6238D295DC30}.Release|Win32.Build.0 = Release|Win32 {8A26DF46-FDDF-4335-88C2-4FC5FD6C83A2}.Debug|Win32.ActiveCfg = Debug|Win32 {8A26DF46-FDDF-4335-88C2-4FC5FD6C83A2}.Debug|Win32.Build.0 = Debug|Win32 {8A26DF46-FDDF-4335-88C2-4FC5FD6C83A2}.Release|Win32.ActiveCfg = Release|Win32 {8A26DF46-FDDF-4335-88C2-4FC5FD6C83A2}.Release|Win32.Build.0 = Release|Win32 {47F95B5B-CB2C-43E3-B671-BDA26C3D6CEA}.Debug|Win32.ActiveCfg = Debug|Win32 {47F95B5B-CB2C-43E3-B671-BDA26C3D6CEA}.Debug|Win32.Build.0 = Debug|Win32 {47F95B5B-CB2C-43E3-B671-BDA26C3D6CEA}.Release|Win32.ActiveCfg = Release|Win32 {47F95B5B-CB2C-43E3-B671-BDA26C3D6CEA}.Release|Win32.Build.0 = Release|Win32 {469CE225-4771-44AF-AD14-869F819DF192}.Debug|Win32.ActiveCfg = Debug|Win32 {469CE225-4771-44AF-AD14-869F819DF192}.Debug|Win32.Build.0 = Debug|Win32 {469CE225-4771-44AF-AD14-869F819DF192}.Release|Win32.ActiveCfg = Release|Win32 {469CE225-4771-44AF-AD14-869F819DF192}.Release|Win32.Build.0 = Release|Win32 {50A16109-168D-4BDC-955B-9EEDE804BD83}.Debug|Win32.ActiveCfg = Debug|Win32 {50A16109-168D-4BDC-955B-9EEDE804BD83}.Debug|Win32.Build.0 = Debug|Win32 {50A16109-168D-4BDC-955B-9EEDE804BD83}.Release|Win32.ActiveCfg = Release|Win32 {50A16109-168D-4BDC-955B-9EEDE804BD83}.Release|Win32.Build.0 = Release|Win32 {556420AE-9988-4194-A3F8-F6B123961C68}.Debug|Win32.ActiveCfg = Debug|Win32 {556420AE-9988-4194-A3F8-F6B123961C68}.Debug|Win32.Build.0 = Debug|Win32 {556420AE-9988-4194-A3F8-F6B123961C68}.Release|Win32.ActiveCfg = Release|Win32 {556420AE-9988-4194-A3F8-F6B123961C68}.Release|Win32.Build.0 = Release|Win32 {E38A2BC7-3726-4E1B-9B14-27446A256686}.Debug|Win32.ActiveCfg = Debug|Win32 {E38A2BC7-3726-4E1B-9B14-27446A256686}.Debug|Win32.Build.0 = Debug|Win32 {E38A2BC7-3726-4E1B-9B14-27446A256686}.Release|Win32.ActiveCfg = Release|Win32 {E38A2BC7-3726-4E1B-9B14-27446A256686}.Release|Win32.Build.0 = Release|Win32 {5EB2886A-A906-4623-8AEA-6D4A7CEB020A}.Debug|Win32.ActiveCfg = Debug|Win32 {5EB2886A-A906-4623-8AEA-6D4A7CEB020A}.Debug|Win32.Build.0 = Debug|Win32 {5EB2886A-A906-4623-8AEA-6D4A7CEB020A}.Release|Win32.ActiveCfg = Release|Win32 {5EB2886A-A906-4623-8AEA-6D4A7CEB020A}.Release|Win32.Build.0 = Release|Win32 {58AF340B-01BD-49FC-BE38-23280577696A}.Debug|Win32.ActiveCfg = Debug|Win32 {58AF340B-01BD-49FC-BE38-23280577696A}.Debug|Win32.Build.0 = Debug|Win32 {58AF340B-01BD-49FC-BE38-23280577696A}.Release|Win32.ActiveCfg = Release|Win32 {58AF340B-01BD-49FC-BE38-23280577696A}.Release|Win32.Build.0 = Release|Win32 {642F4443-50CB-468D-A05B-9A5BCAC798CD}.Debug|Win32.ActiveCfg = Debug|Win32 {642F4443-50CB-468D-A05B-9A5BCAC798CD}.Debug|Win32.Build.0 = Debug|Win32 {642F4443-50CB-468D-A05B-9A5BCAC798CD}.Release|Win32.ActiveCfg = Release|Win32 {642F4443-50CB-468D-A05B-9A5BCAC798CD}.Release|Win32.Build.0 = Release|Win32 {5444B712-4E73-43CB-8B42-A650F70F5DB0}.Debug|Win32.ActiveCfg = Debug|Win32 {5444B712-4E73-43CB-8B42-A650F70F5DB0}.Debug|Win32.Build.0 = Debug|Win32 {5444B712-4E73-43CB-8B42-A650F70F5DB0}.Release|Win32.ActiveCfg = Release|Win32 {5444B712-4E73-43CB-8B42-A650F70F5DB0}.Release|Win32.Build.0 = Release|Win32 {1C1999C2-D37A-4A52-9B6F-E54BF0C15B11}.Debug|Win32.ActiveCfg = Debug|Win32 {1C1999C2-D37A-4A52-9B6F-E54BF0C15B11}.Release|Win32.ActiveCfg = Release|Win32 {1C1999C2-D37A-4A52-9B6F-E54BF0C15B11}.Release|Win32.Build.0 = Release|Win32 {40CE30BF-012C-468D-BCB2-5C059E2C578A}.Debug|Win32.ActiveCfg = Debug|Win32 {40CE30BF-012C-468D-BCB2-5C059E2C578A}.Debug|Win32.Build.0 = Debug|Win32 {40CE30BF-012C-468D-BCB2-5C059E2C578A}.Release|Win32.ActiveCfg = Release|Win32 {40CE30BF-012C-468D-BCB2-5C059E2C578A}.Release|Win32.Build.0 = Release|Win32 {21668BFA-D46F-4DA7-9D86-707B84F592C6}.Debug|Win32.ActiveCfg = Debug|Win32 {21668BFA-D46F-4DA7-9D86-707B84F592C6}.Debug|Win32.Build.0 = Debug|Win32 {21668BFA-D46F-4DA7-9D86-707B84F592C6}.Release|Win32.ActiveCfg = Release|Win32 {21668BFA-D46F-4DA7-9D86-707B84F592C6}.Release|Win32.Build.0 = Release|Win32 {3326AB6B-DFF2-4C4A-B6E0-29BED185A9FB}.Debug|Win32.ActiveCfg = Debug|Win32 {3326AB6B-DFF2-4C4A-B6E0-29BED185A9FB}.Debug|Win32.Build.0 = Debug|Win32 {3326AB6B-DFF2-4C4A-B6E0-29BED185A9FB}.Release|Win32.ActiveCfg = Release|Win32 {3326AB6B-DFF2-4C4A-B6E0-29BED185A9FB}.Release|Win32.Build.0 = Release|Win32 {C845C280-9E0C-44E7-9CF7-28813CD1A58D}.Debug|Win32.ActiveCfg = Debug|Win32 {C845C280-9E0C-44E7-9CF7-28813CD1A58D}.Debug|Win32.Build.0 = Debug|Win32 {C845C280-9E0C-44E7-9CF7-28813CD1A58D}.Release|Win32.ActiveCfg = Release|Win32 {C845C280-9E0C-44E7-9CF7-28813CD1A58D}.Release|Win32.Build.0 = Release|Win32 {615569E0-4AFE-48E6-B330-E3EBC772973E}.Debug|Win32.ActiveCfg = Debug|Win32 {615569E0-4AFE-48E6-B330-E3EBC772973E}.Debug|Win32.Build.0 = Debug|Win32 {615569E0-4AFE-48E6-B330-E3EBC772973E}.Release|Win32.ActiveCfg = Release|Win32 {615569E0-4AFE-48E6-B330-E3EBC772973E}.Release|Win32.Build.0 = Release|Win32 {C8B97D54-6450-49F1-AA7A-31FE51799AF8}.Debug|Win32.ActiveCfg = Debug|Win32 {C8B97D54-6450-49F1-AA7A-31FE51799AF8}.Debug|Win32.Build.0 = Debug|Win32 {C8B97D54-6450-49F1-AA7A-31FE51799AF8}.Release|Win32.ActiveCfg = Release|Win32 {C8B97D54-6450-49F1-AA7A-31FE51799AF8}.Release|Win32.Build.0 = Release|Win32 {AF95BDF3-89CB-4943-9F98-DF432ACB0113}.Debug|Win32.ActiveCfg = Debug|Win32 {AF95BDF3-89CB-4943-9F98-DF432ACB0113}.Debug|Win32.Build.0 = Debug|Win32 {AF95BDF3-89CB-4943-9F98-DF432ACB0113}.Release|Win32.ActiveCfg = Release|Win32 {AF95BDF3-89CB-4943-9F98-DF432ACB0113}.Release|Win32.Build.0 = Release|Win32 {28CEB552-4657-4B99-BABE-03E0CE02B5D5}.Debug|Win32.ActiveCfg = Debug|Win32 {28CEB552-4657-4B99-BABE-03E0CE02B5D5}.Debug|Win32.Build.0 = Debug|Win32 {28CEB552-4657-4B99-BABE-03E0CE02B5D5}.Release|Win32.ActiveCfg = Release|Win32 {28CEB552-4657-4B99-BABE-03E0CE02B5D5}.Release|Win32.Build.0 = Release|Win32 {01FED030-6715-454C-9953-F07299B5D5FE}.Debug|Win32.ActiveCfg = Debug|Win32 {01FED030-6715-454C-9953-F07299B5D5FE}.Debug|Win32.Build.0 = Debug|Win32 {01FED030-6715-454C-9953-F07299B5D5FE}.Release|Win32.ActiveCfg = Release|Win32 {01FED030-6715-454C-9953-F07299B5D5FE}.Release|Win32.Build.0 = Release|Win32 {775E474E-6BD9-4AB2-861B-8C647A2CC352}.Debug|Win32.ActiveCfg = Debug|Win32 {775E474E-6BD9-4AB2-861B-8C647A2CC352}.Debug|Win32.Build.0 = Debug|Win32 {775E474E-6BD9-4AB2-861B-8C647A2CC352}.Release|Win32.ActiveCfg = Release|Win32 {775E474E-6BD9-4AB2-861B-8C647A2CC352}.Release|Win32.Build.0 = Release|Win32 {04985DC8-1C38-4FCC-8BED-B3B4C00A3026}.Debug|Win32.ActiveCfg = Debug|Win32 {04985DC8-1C38-4FCC-8BED-B3B4C00A3026}.Debug|Win32.Build.0 = Debug|Win32 {04985DC8-1C38-4FCC-8BED-B3B4C00A3026}.Release|Win32.ActiveCfg = Release|Win32 {04985DC8-1C38-4FCC-8BED-B3B4C00A3026}.Release|Win32.Build.0 = Release|Win32 {5BCBDF1E-D197-45F6-92B1-C4DBE0F76990}.Debug|Win32.ActiveCfg = Debug|Win32 {5BCBDF1E-D197-45F6-92B1-C4DBE0F76990}.Debug|Win32.Build.0 = Debug|Win32 {5BCBDF1E-D197-45F6-92B1-C4DBE0F76990}.Release|Win32.ActiveCfg = Release|Win32 {5BCBDF1E-D197-45F6-92B1-C4DBE0F76990}.Release|Win32.Build.0 = Release|Win32 {12812C8A-0A00-4FE9-A82C-479AEA4C4A31}.Debug|Win32.ActiveCfg = Debug|Win32 {12812C8A-0A00-4FE9-A82C-479AEA4C4A31}.Debug|Win32.Build.0 = Debug|Win32 {12812C8A-0A00-4FE9-A82C-479AEA4C4A31}.Release|Win32.ActiveCfg = Release|Win32 {12812C8A-0A00-4FE9-A82C-479AEA4C4A31}.Release|Win32.Build.0 = Release|Win32 {31409D14-E9DB-4EBF-97E5-20E0CC119E20}.Debug|Win32.ActiveCfg = Debug|Win32 {31409D14-E9DB-4EBF-97E5-20E0CC119E20}.Debug|Win32.Build.0 = Debug|Win32 {31409D14-E9DB-4EBF-97E5-20E0CC119E20}.Release|Win32.ActiveCfg = Release|Win32 {31409D14-E9DB-4EBF-97E5-20E0CC119E20}.Release|Win32.Build.0 = Release|Win32 {E72B1489-3986-4D51-A748-2F315C8258AA}.Debug|Win32.ActiveCfg = Debug|Win32 {E72B1489-3986-4D51-A748-2F315C8258AA}.Debug|Win32.Build.0 = Debug|Win32 {E72B1489-3986-4D51-A748-2F315C8258AA}.Release|Win32.ActiveCfg = Release|Win32 {E72B1489-3986-4D51-A748-2F315C8258AA}.Release|Win32.Build.0 = Release|Win32 {2887913E-1A05-4734-BC15-17C318DA7FDD}.Debug|Win32.ActiveCfg = Debug|Win32 {2887913E-1A05-4734-BC15-17C318DA7FDD}.Debug|Win32.Build.0 = Debug|Win32 {2887913E-1A05-4734-BC15-17C318DA7FDD}.Release|Win32.ActiveCfg = Release|Win32 {2887913E-1A05-4734-BC15-17C318DA7FDD}.Release|Win32.Build.0 = Release|Win32 {D8FCC3AC-AAB0-4547-BE5F-A2833E769F09}.Debug|Win32.ActiveCfg = Debug|Win32 {D8FCC3AC-AAB0-4547-BE5F-A2833E769F09}.Debug|Win32.Build.0 = Debug|Win32 {D8FCC3AC-AAB0-4547-BE5F-A2833E769F09}.Release|Win32.ActiveCfg = Release|Win32 {D8FCC3AC-AAB0-4547-BE5F-A2833E769F09}.Release|Win32.Build.0 = Release|Win32 {023000D6-7034-44A4-A7E7-816E578E273F}.Debug|Win32.ActiveCfg = Debug|Win32 {023000D6-7034-44A4-A7E7-816E578E273F}.Debug|Win32.Build.0 = Debug|Win32 {023000D6-7034-44A4-A7E7-816E578E273F}.Release|Win32.ActiveCfg = Release|Win32 {023000D6-7034-44A4-A7E7-816E578E273F}.Release|Win32.Build.0 = Release|Win32 {50C01D28-352B-4922-8685-8E38174377AF}.Debug|Win32.ActiveCfg = Debug|Win32 {50C01D28-352B-4922-8685-8E38174377AF}.Debug|Win32.Build.0 = Debug|Win32 {50C01D28-352B-4922-8685-8E38174377AF}.Release|Win32.ActiveCfg = Release|Win32 {50C01D28-352B-4922-8685-8E38174377AF}.Release|Win32.Build.0 = Release|Win32 {08854590-36CE-4C3C-98A8-3D09995FDCCA}.Debug|Win32.ActiveCfg = Debug|Win32 {08854590-36CE-4C3C-98A8-3D09995FDCCA}.Debug|Win32.Build.0 = Debug|Win32 {08854590-36CE-4C3C-98A8-3D09995FDCCA}.Release|Win32.ActiveCfg = Release|Win32 {08854590-36CE-4C3C-98A8-3D09995FDCCA}.Release|Win32.Build.0 = Release|Win32 {8F69627B-D309-471E-8887-982200431998}.Debug|Win32.ActiveCfg = Debug|Win32 {8F69627B-D309-471E-8887-982200431998}.Debug|Win32.Build.0 = Debug|Win32 {8F69627B-D309-471E-8887-982200431998}.Release|Win32.ActiveCfg = Release|Win32 {8F69627B-D309-471E-8887-982200431998}.Release|Win32.Build.0 = Release|Win32 {16A205FE-525A-4A41-8C90-FC17BCC101C0}.Debug|Win32.ActiveCfg = Debug|Win32 {16A205FE-525A-4A41-8C90-FC17BCC101C0}.Debug|Win32.Build.0 = Debug|Win32 {16A205FE-525A-4A41-8C90-FC17BCC101C0}.Release|Win32.ActiveCfg = Release|Win32 {16A205FE-525A-4A41-8C90-FC17BCC101C0}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal quesoglc-0.7.2/database/0000777000175000017500000000000011164476310012116 500000000000000quesoglc-0.7.2/database/buildDB.py0000755000175000017500000000461010764574552013731 00000000000000#!/usr/bin/python # QuesoGLC # A free implementation of the OpenGL Character Renderer (GLC) # Copyright (c) 2002, 2004-2006, Bertrand Coconnier # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # $Id: buildDB.py 554 2007-02-18 16:51:23Z bcoconni $ import sys, urllib, string if len(sys.argv) > 1: numchars = int(sys.argv[1]) else: numchars = 256 print "Open URL..." unicodata = urllib.urlopen("http://www.unicode.org/Public/UNIDATA/UnicodeData.txt") print "Read data from URL..." lignes = unicodata.readlines() print "Close URL..." unicodata.close() print "Sort data..." unicodeNameFromCode = {} unicodeCodeFromName = {} for s in lignes: liste = string.split(s, ';') code = eval('0x'+liste[0]) name = liste[1] if name == '': continue unicodeNameFromCode[code] = name unicodeCodeFromName[name] = code liste = [] codes = unicodeNameFromCode.keys() codes.sort() vmax = max(codes[:numchars]) for c in codes[:numchars]: liste.append(unicodeNameFromCode[c]) liste.sort() i = 0 codes = [-1]*(vmax+1) sourceCode = ["/* This is automagically generated by buildDB.py */\n", '#include "internal.h"\n\n'] print "Write ../src/database.c" db = open('../src/database.c','w') db.writelines(sourceCode) db.write("const __GLCdataCodeFromName __glcCodeFromNameArray[] = {\n") for name in liste: db.write('{ %d, "%s"},\n' % (unicodeCodeFromName[name], name)) codes[unicodeCodeFromName[name]] = i i += 1 db.write("};\n") db.write("const GLint __glcNameFromCodeArray[] = {\n") for c in codes: db.write("%d,\n" % c) db.write("};\n") db.write("const GLint __glcMaxCode = %d;\n" % vmax) db.write("const GLint __glcCodeFromNameSize = %d;\n" % len(liste)) db.close() print "Success !!!" quesoglc-0.7.2/configure0000755000175000017500000266731111164476141012217 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for QuesoGLC 0.7.2. # # Report bugs to . # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac ECHO=${lt_ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then # Yippee, $ECHO works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF $* _LT_EOF exit 0 fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='QuesoGLC' PACKAGE_TARNAME='quesoglc' PACKAGE_VERSION='0.7.2' PACKAGE_STRING='QuesoGLC 0.7.2' PACKAGE_BUGREPORT='quesoglc-general@lists.sourceforge.net' ac_unique_file="src/global.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA am__isrc CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED GREP EGREP FGREP LD DUMPBIN ac_ct_DUMPBIN NM AR RANLIB lt_ECHO DSYMUTIL NMEDIT LIPO OTOOL OTOOL64 CPP acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LIBOBJS PKG_CONFIG FREETYPE2_CFLAGS FREETYPE2_LIBS FREETYPE_CONFIG FONTCONFIG_CFLAGS FONTCONFIG_LIBS FRIBIDI_CFLAGS FRIBIDI_LIBS XMKMF GL_CFLAGS GL_LIBS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP GLU_CFLAGS GLU_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GLUT_CFLAGS GLUT_LIBS EXECUTABLES DEBUG_TESTS TESTS_WITH_GLUT FRIBIDI_OBJ GLEW_OBJ GLEW_CFLAGS PKGCONFIG_REQUIREMENTS PKGCONFIG_LIBS_PRIVATE PKGCONFIG_INCLUDE LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG FREETYPE2_CFLAGS FREETYPE2_LIBS FONTCONFIG_CFLAGS FONTCONFIG_LIBS FRIBIDI_CFLAGS FRIBIDI_LIBS XMKMF CXX CXXFLAGS CCC CXXCPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures QuesoGLC 0.7.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/quesoglc] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of QuesoGLC 0.7.2:";; esac cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-executables build example and test executables [default=yes] --enable-debug compile debug version [default=no] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-tls use thread-local storage [default=yes] Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-fribidi use the FriBiDi system library [default=yes] --with-glew use the GLEW system library [default=yes] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-apple-opengl-framework use Apple OpenGL framework (Mac OS X only) --with-x use the X Window System Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility FREETYPE2_CFLAGS C compiler flags for FREETYPE2, overriding pkg-config FREETYPE2_LIBS linker flags for FREETYPE2, overriding pkg-config FONTCONFIG_CFLAGS C compiler flags for FONTCONFIG, overriding pkg-config FONTCONFIG_LIBS linker flags for FONTCONFIG, overriding pkg-config FRIBIDI_CFLAGS C compiler flags for FRIBIDI, overriding pkg-config FRIBIDI_LIBS linker flags for FRIBIDI, overriding pkg-config XMKMF Path to xmkmf, Makefile generator for X Window System CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF QuesoGLC configure 0.7.2 generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by QuesoGLC $as_me 0.7.2, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers include/qglc_config.h:include/qglc_config.hin" ac_aux_dir= for ac_dir in build "$srcdir"/build; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Optional parameters definition. # ------------------------------- # Check whether --with-fribidi was given. if test "${with_fribidi+set}" = set; then withval=$with_fribidi; else with_fribidi=yes fi # Check whether --with-glew was given. if test "${with_glew+set}" = set; then withval=$with_glew; else with_glew=yes fi # Check whether --enable-executables was given. if test "${enable_executables+set}" = set; then enableval=$enable_executables; else enable_executables=yes fi # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then enableval=$enable_debug; else enable_debug=no fi # Init automake. # -------------- am__api_version='1.10' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 echo "${ECHO_T}$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='quesoglc' VERSION='0.7.2' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' # Checks for programs. # -------------------- ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi if test "x$CC" != xcc; then { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } fi set dummy $CC; ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' rm -f conftest2.* if { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -f conftest2.$ac_objext && { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then # Test first that cc exists at all. if { ac_try='cc -c conftest.$ac_ext >&5' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' rm -f conftest2.* if { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -f conftest2.$ac_objext && { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # cc works too. : else # cc exists but doesn't like -o. eval ac_cv_prog_cc_${ac_cc}_c_o=no fi fi fi else eval ac_cv_prog_cc_${ac_cc}_c_o=no fi rm -f core conftest* fi if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } cat >>confdefs.h <<\_ACEOF #define NO_MINUS_C_MINUS_O 1 _ACEOF fi # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi case `pwd` in *\ * | *\ *) { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.2.4' macro_revision='1.2976' ltmain="$ac_aux_dir/ltmain.sh" # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } if test "${ac_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" | sed 99q >conftest.sed $as_unset ac_script || ac_script= # Extract the first word of "sed gsed" to use in msg output if test -z "$SED"; then set dummy sed gsed; ac_prog_name=$2 if test "${ac_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS fi SED="$ac_cv_path_SED" if test -z "$SED"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_SED=$SED fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 echo "${ECHO_T}$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { echo "$as_me:$LINENO: checking for fgrep" >&5 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } if test "${ac_cv_path_FGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else # Extract the first word of "fgrep" to use in msg output if test -z "$FGREP"; then set dummy fgrep; ac_prog_name=$2 if test "${ac_cv_path_FGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS fi FGREP="$ac_cv_path_FGREP" if test -z "$FGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_FGREP=$FGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$ac_tool_prefix"; then for ac_prog in "dumpbin -symbols" "link -dump -symbols" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_DUMPBIN+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 echo "${ECHO_T}$DUMPBIN" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in "dumpbin -symbols" "link -dump -symbols" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } if test "${lt_cv_nm_interface+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:4598: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:4601: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:4604: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 echo "${ECHO_T}$lt_cv_nm_interface" >&6; } # find the maximum length of command line arguments { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } else { echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { echo "$as_me:$LINENO: result: $xsi_shell" >&5 echo "${ECHO_T}$xsi_shell" >&6; } { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { echo "$as_me:$LINENO: result: $lt_shell_append" >&5 echo "${ECHO_T}$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ const struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { echo "$as_me:$LINENO: result: failed" >&5 echo "${ECHO_T}failed" >&6; } else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; } fi # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 5704 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_cv_cc_needs_belf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_DSYMUTIL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 echo "${ECHO_T}$DSYMUTIL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_NMEDIT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { echo "$as_me:$LINENO: result: $NMEDIT" >&5 echo "${ECHO_T}$NMEDIT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_NMEDIT="nmedit" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_LIPO+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { echo "$as_me:$LINENO: result: $LIPO" >&5 echo "${ECHO_T}$LIPO" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_LIPO="lipo" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 echo "${ECHO_T}$ac_ct_LIPO" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_OTOOL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { echo "$as_me:$LINENO: result: $OTOOL" >&5 echo "${ECHO_T}$OTOOL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL="otool" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 echo "${ECHO_T}$ac_ct_OTOOL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_OTOOL64+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { echo "$as_me:$LINENO: result: $OTOOL64" >&5 echo "${ECHO_T}$OTOOL64" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL64="otool64" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } if test "${lt_cv_apple_cc_single_mod+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } if test "${lt_cv_ld_exported_symbols_list+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_cv_ld_exported_symbols_list=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { echo "$as_me:$LINENO: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { echo "$as_me:$LINENO: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:7555: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7559: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl*) # IBM XL C 8.0/Fortran 10.1 on PPC lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:7879: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7883: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:7984: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:7988: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8039: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:8043: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag= tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld='-rpath $libdir' archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi link_all_deplibs=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" if test "$GCC" = "yes"; then output_verbose_link_cmd=echo archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat >conftest.$ac_ext <<_ACEOF int foo(void) {} _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then shlibpath_overrides_runpath=yes fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shl_load || defined __stub___shl_load choke me #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else { echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_dlopen || defined __stub___dlopen choke me #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line 10800 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line 10900 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ;; *) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } ;; esac fi # Report which library types will actually be built { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ac_config_commands="$ac_config_commands libtool" # Only expand once: # Checks for multithreading support. # ---------------------------------- ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu acx_pthread_ok=no # We used to check for pthread.h first, but this fails if pthread.h # requires special compiler flags (e.g. on True64 or Sequent). # It gets checked for in the link test anyway. # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using # them: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_join (); int main () { return pthread_join (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then acx_pthread_ok=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 echo "${ECHO_T}$acx_pthread_ok" >&6; } if test x"$acx_pthread_ok" = xno; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems # (e.g. DEC) have both -lpthread and -lpthreads, where one of the # libraries is broken (non-POSIX). # Create a list of thread flags to try. Items starting with a "-" are # C compiler flags, and other items are library names, except for "none" # which indicates that we try without any flags at all, and "pthread-config" # which is a program returning the flags for the Pth emulation library. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # pthreads: AIX (must check this before -lpthread) # none: in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) # -pthreads: Solaris/gcc # -mthreads: Mingw32/gcc, Lynx/gcc # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads too; # also defines -D_REENTRANT) # pthread: Linux, etcetera # --thread-safe: KAI C++ # pthread-config: use pthread-config program (for GNU Pth library) case "${host_cpu}-${host_os}" in *solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (We need to link with -pthread or # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather # a function called by this macro, so we could check for that, but # who knows whether they'll stub that too in a future libc.) So, # we'll just look for -pthreads and -lpthread first: acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" ;; esac if test x"$acx_pthread_ok" = xno; then for flag in $acx_pthread_flags; do case $flag in none) { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } ;; -*) { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } PTHREAD_CFLAGS="$flag" ;; pthread-config) # Extract the first word of "pthread-config", so it can be a program name with args. set dummy pthread-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_acx_pthread_config+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$acx_pthread_config"; then ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_acx_pthread_config="yes" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" fi fi acx_pthread_config=$ac_cv_prog_acx_pthread_config if test -n "$acx_pthread_config"; then { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 echo "${ECHO_T}$acx_pthread_config" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test x"$acx_pthread_config" = xno; then continue; fi PTHREAD_CFLAGS="`pthread-config --cflags`" PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" ;; *) { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } PTHREAD_LIBS="-l$flag" ;; esac save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Check for various functions. We must include pthread.h, # since some functions may be macros. (On the Sequent, we # need a special flag -Kthread to make this header compile.) # We check for pthread_join because it is in -lpthread on IRIX # while pthread_create is in libc. We check for pthread_attr_init # due to DEC craziness with -lpthreads. We check for # pthread_cleanup_push because it is one of the few pthread # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then acx_pthread_ok=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 echo "${ECHO_T}$acx_pthread_ok" >&6; } if test "x$acx_pthread_ok" = xyes; then break; fi PTHREAD_LIBS="" PTHREAD_CFLAGS="" done fi # Various other checks: if test "x$acx_pthread_ok" = xyes; then save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Detect AIX lossage: threads are created detached by default # and the JOINABLE attribute has a nonstandard name (UNDETACHED). { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { int attr=PTHREAD_CREATE_JOINABLE; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ok=PTHREAD_CREATE_JOINABLE else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ok=unknown fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test x"$ok" = xunknown; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { int attr=PTHREAD_CREATE_UNDETACHED; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ok=PTHREAD_CREATE_UNDETACHED else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ok=unknown fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then cat >>confdefs.h <<\_ACEOF #define PTHREAD_CREATE_JOINABLE "${ok}" _ACEOF fi { echo "$as_me:$LINENO: result: ${ok}" >&5 echo "${ECHO_T}${ok}" >&6; } if test x"$ok" = xunknown; then { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;} fi { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } flag=no case "${host_cpu}-${host_os}" in *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; esac { echo "$as_me:$LINENO: result: ${flag}" >&5 echo "${ECHO_T}${flag}" >&6; } if test "x$flag" != xno; then PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" # More AIX lossage: must compile with cc_r # Extract the first word of "cc_r", so it can be a program name with args. set dummy cc_r; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$PTHREAD_CC"; then ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_PTHREAD_CC="cc_r" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" fi fi PTHREAD_CC=$ac_cv_prog_PTHREAD_CC if test -n "$PTHREAD_CC"; then { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 echo "${ECHO_T}$PTHREAD_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else PTHREAD_CC="$CC" fi # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_pthread_ok" = xyes; then cat >>confdefs.h <<\_ACEOF #define HAVE_PTHREAD 1 _ACEOF : else acx_pthread_ok=no fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$PTHREAD_CC" # Checks for TLS support. # ----------------------- ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Check whether --enable-tls was given. if test "${enable_tls+set}" = set; then enableval=$enable_tls; else enable_tls=yes fi if test $enable_tls = yes; then { echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6; } if test "${have_tls+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then cat >conftest.$ac_ext <<_ACEOF __thread int a; int b; int main() { return a = b; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then have_tls=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 have_tls=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext else cat >conftest.$ac_ext <<_ACEOF __thread int a; int b; int main() { return a = b; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then chktls_save_LDFLAGS="$LDFLAGS" LDFLAGS="-static $LDFLAGS" cat >conftest.$ac_ext <<_ACEOF int main() { return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then if test "$cross_compiling" = yes; then { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 echo "$as_me: error: cannot run test program while cross compiling See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF __thread int a; int b; int main() { return a = b; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then have_tls=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) have_tls=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 have_tls=yes fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$chktls_save_LDFLAGS" if test $have_tls = yes; then chk_tls_save_CFLAGS="$CFLAGS" CFLAGS="${PTHREAD_LIBS} ${PTHREAD_CFLAGS} $CFLAGS" if test "$cross_compiling" = yes; then { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling See \`config.log' for more details." >&5 echo "$as_me: error: cannot run test program while cross compiling See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include __thread int a; static int *a_in_other_thread; static void * thread_func (void *arg) { a_in_other_thread = &a; return (void *)0; } int main () { pthread_t thread; void *thread_retval; int *a_in_main_thread; if (pthread_create (&thread, (pthread_attr_t *)0, thread_func, (void *)0)) return 0; a_in_main_thread = &a; if (pthread_join (thread, &thread_retval)) return 0; return (a_in_other_thread == a_in_main_thread); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then have_tls=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) have_tls=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$chk_tls_save_CFLAGS" fi else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) have_tls=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $have_tls" >&5 echo "${ECHO_T}$have_tls" >&6; } if test $have_tls = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_TLS 1 _ACEOF fi fi # Checks for typedefs, structures, and compiler characteristics. # -------------------------------------------------------------- { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi { echo "$as_me:$LINENO: checking for inline" >&5 echo $ECHO_N "checking for inline... $ECHO_C" >&6; } if test "${ac_cv_c_inline+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_inline=$ac_kw else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 echo "${ECHO_T}$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac { echo "$as_me:$LINENO: checking for size_t" >&5 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } if test "${ac_cv_type_size_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef size_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_size_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_size_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } if test $ac_cv_type_size_t = yes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { echo "$as_me:$LINENO: checking for short" >&5 echo $ECHO_N "checking for short... $ECHO_C" >&6; } if test "${ac_cv_type_short+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_short=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_short=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 echo "${ECHO_T}$ac_cv_type_short" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of short" >&5 echo $ECHO_N "checking size of short... $ECHO_C" >&6; } if test "${ac_cv_sizeof_short+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_short=$ac_lo;; '') if test "$ac_cv_type_short" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (short) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_short=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_short=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_short" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (short) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_short=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_SHORT $ac_cv_sizeof_short _ACEOF { echo "$as_me:$LINENO: checking for int" >&5 echo $ECHO_N "checking for int... $ECHO_C" >&6; } if test "${ac_cv_type_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_int=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_int=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 echo "${ECHO_T}$ac_cv_type_int" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of int" >&5 echo $ECHO_N "checking size of int... $ECHO_C" >&6; } if test "${ac_cv_sizeof_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_int=$ac_lo;; '') if test "$ac_cv_type_int" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_int=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_int=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_int" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_int=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_INT $ac_cv_sizeof_int _ACEOF { echo "$as_me:$LINENO: checking for long" >&5 echo $ECHO_N "checking for long... $ECHO_C" >&6; } if test "${ac_cv_type_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_long=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_long=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 echo "${ECHO_T}$ac_cv_type_long" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of long" >&5 echo $ECHO_N "checking size of long... $ECHO_C" >&6; } if test "${ac_cv_sizeof_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_long=$ac_lo;; '') if test "$ac_cv_type_long" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_long=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_long=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_long" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_long=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG $ac_cv_sizeof_long _ACEOF # Checks for header files. # ------------------------ { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi for ac_header in stdlib.h string.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------------------- ## ## Report this to quesoglc-general@lists.sourceforge.net ## ## ----------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else { { echo "$as_me:$LINENO: error: Unable to locate a required header" >&5 echo "$as_me: error: Unable to locate a required header" >&2;} { (exit 1); exit 1; }; } fi done # Checks for C library features. # ------------------------------ case $target_alias in *mingw32*) ;; *) for ac_header in stdlib.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------------------- ## ## Report this to quesoglc-general@lists.sourceforge.net ## ## ----------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_malloc_0_nonnull=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *malloc (); #endif int main () { return ! malloc (0); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_malloc_0_nonnull=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } if test $ac_cv_func_malloc_0_nonnull = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_MALLOC 1 _ACEOF else cat >>confdefs.h <<\_ACEOF #define HAVE_MALLOC 0 _ACEOF case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; esac cat >>confdefs.h <<\_ACEOF #define malloc rpl_malloc _ACEOF fi { echo "$as_me:$LINENO: checking for working memcmp" >&5 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } if test "${ac_cv_func_memcmp_working+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_memcmp_working=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { /* Some versions of memcmp are not 8-bit clean. */ char c0 = '\100', c1 = '\200', c2 = '\201'; if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) return 1; /* The Next x86 OpenStep bug shows up only when comparing 16 bytes or more and with at least one buffer not starting on a 4-byte boundary. William Lewis provided this test program. */ { char foo[21]; char bar[21]; int i; for (i = 0; i < 4; i++) { char *a = foo + i; char *b = bar + i; strcpy (a, "--------01111111"); strcpy (b, "--------10000000"); if (memcmp (a, b, 16) >= 0) return 1; } return 0; } ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_memcmp_working=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_memcmp_working=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in *" memcmp.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; esac for ac_header in stdlib.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------------------- ## ## Report this to quesoglc-general@lists.sourceforge.net ## ## ----------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; } if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_realloc_0_nonnull=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *realloc (); #endif int main () { return ! realloc (0, 0); ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_realloc_0_nonnull=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_realloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; } if test $ac_cv_func_realloc_0_nonnull = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_REALLOC 1 _ACEOF else cat >>confdefs.h <<\_ACEOF #define HAVE_REALLOC 0 _ACEOF case " $LIBOBJS " in *" realloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; esac cat >>confdefs.h <<\_ACEOF #define realloc rpl_realloc _ACEOF fi ;; esac { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then if test "$cross_compiling" = yes; then ac_cv_func_lstat_dereferences_slashed_symlink=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; /* Linux will dereference the symlink and fail. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ return lstat ("conftest.sym/", &sbuf) == 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_lstat_dereferences_slashed_symlink=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi else # If the `ln -s' command failed, then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f conftest.sym conftest.file fi { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && cat >>confdefs.h <<_ACEOF #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 _ACEOF if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; esac fi { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_stat_empty_string_bug=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; return stat ("", &sbuf) == 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_stat_empty_string_bug=no else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_stat_empty_string_bug=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug = yes; then case " $LIBOBJS " in *" stat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; esac cat >>confdefs.h <<_ACEOF #define HAVE_STAT_EMPTY_STRING_BUG 1 _ACEOF fi for ac_func in atexit memmove memset strdup do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } if test "${ac_cv_lib_m_sqrt+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sqrt (); int main () { return sqrt (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_m_sqrt=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_m_sqrt=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; } if test $ac_cv_lib_m_sqrt = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBM 1 _ACEOF LIBS="-lm $LIBS" fi # Checks for font libraries. # -------------------------- if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { echo "$as_me:$LINENO: checking for FREETYPE2" >&5 echo $ECHO_N "checking for FREETYPE2... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$FREETYPE2_CFLAGS"; then pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.8 \"") >&5 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.8 ") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.8 " 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$FREETYPE2_LIBS"; then pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.8 \"") >&5 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.8 ") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.8 " 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2 >= 9.8 "` else FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 9.8 "` fi # Put the nasty error message in config.log where it belongs echo "$FREETYPE2_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } if test -z "$FREETYPE_CONFIG"; then # Extract the first word of "freetype-config", so it can be a program name with args. set dummy freetype-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $FREETYPE_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no" ;; esac fi FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG if test -n "$FREETYPE_CONFIG"; then { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test "$FREETYPE_CONFIG" = "no" ; then ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include" if test "${ac_cv_header_ft2build_h+set}" = set; then { echo "$as_me:$LINENO: checking for ft2build.h" >&5 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; } if test "${ac_cv_header_ft2build_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking ft2build.h usability" >&5 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking ft2build.h presence" >&5 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------------------- ## ## Report this to quesoglc-general@lists.sourceforge.net ## ## ----------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for ft2build.h" >&5 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; } if test "${ac_cv_header_ft2build_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_ft2build_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; } fi if test $ac_cv_header_ft2build_h = yes; then ax_save_LIBS="${LIBS}" LIBS="-L/usr/X11R6/lib $LIBS" { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; } if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfreetype $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char FT_Init_FreeType (); int main () { return FT_Init_FreeType (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_freetype_FT_Init_FreeType=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_freetype_FT_Init_FreeType=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBFREETYPE 1 _ACEOF LIBS="-lfreetype $LIBS" else no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} LIBS=${ax_save_LIBS} fi else no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} fi else ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="`freetype-config --cflags`" { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; } if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfreetype $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char FT_Init_FreeType (); int main () { return FT_Init_FreeType (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_freetype_FT_Init_FreeType=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_freetype_FT_Init_FreeType=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then LIBS="`freetype-config --libs` $LIBS"; CPPFLAGS="`freetype-config --cflags` ${ax_save_CPPFLAGS}" else no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} fi fi elif test $pkg_failed = untried; then if test -z "$FREETYPE_CONFIG"; then # Extract the first word of "freetype-config", so it can be a program name with args. set dummy freetype-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $FREETYPE_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no" ;; esac fi FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG if test -n "$FREETYPE_CONFIG"; then { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test "$FREETYPE_CONFIG" = "no" ; then ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include" if test "${ac_cv_header_ft2build_h+set}" = set; then { echo "$as_me:$LINENO: checking for ft2build.h" >&5 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; } if test "${ac_cv_header_ft2build_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking ft2build.h usability" >&5 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking ft2build.h presence" >&5 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------------------- ## ## Report this to quesoglc-general@lists.sourceforge.net ## ## ----------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for ft2build.h" >&5 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; } if test "${ac_cv_header_ft2build_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_ft2build_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; } fi if test $ac_cv_header_ft2build_h = yes; then ax_save_LIBS="${LIBS}" LIBS="-L/usr/X11R6/lib $LIBS" { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; } if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfreetype $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char FT_Init_FreeType (); int main () { return FT_Init_FreeType (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_freetype_FT_Init_FreeType=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_freetype_FT_Init_FreeType=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBFREETYPE 1 _ACEOF LIBS="-lfreetype $LIBS" else no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} LIBS=${ax_save_LIBS} fi else no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} fi else ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="`freetype-config --cflags`" { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; } if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfreetype $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char FT_Init_FreeType (); int main () { return FT_Init_FreeType (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_freetype_FT_Init_FreeType=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_freetype_FT_Init_FreeType=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then LIBS="`freetype-config --libs` $LIBS"; CPPFLAGS="`freetype-config --cflags` ${ax_save_CPPFLAGS}" else no_ft2="yes"; CPPFLAGS=${ax_save_CPPFLAGS} fi fi else FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi if (test "x$no_ft2" = "xyes"); then { { echo "$as_me:$LINENO: error: Unable to locate the required FreeType library" >&5 echo "$as_me: error: Unable to locate the required FreeType library" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: checking for FTC_Manager_New in -lfreetype" >&5 echo $ECHO_N "checking for FTC_Manager_New in -lfreetype... $ECHO_C" >&6; } if test "${ac_cv_lib_freetype_FTC_Manager_New+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfreetype $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char FTC_Manager_New (); int main () { return FTC_Manager_New (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_freetype_FTC_Manager_New=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_freetype_FTC_Manager_New=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FTC_Manager_New" >&5 echo "${ECHO_T}$ac_cv_lib_freetype_FTC_Manager_New" >&6; } if test $ac_cv_lib_freetype_FTC_Manager_New = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_FT_CACHE 1 _ACEOF fi pkg_failed=no { echo "$as_me:$LINENO: checking for FONTCONFIG" >&5 echo $ECHO_N "checking for FONTCONFIG... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$FONTCONFIG_CFLAGS"; then pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2 \"") >&5 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2 ") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2 " 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$FONTCONFIG_LIBS"; then pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2 \"") >&5 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2 ") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2 " 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig >= 2.2 "` else FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2 "` fi # Put the nasty error message in config.log where it belongs echo "$FONTCONFIG_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then { echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5 echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6; } if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5 echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking fontconfig/fontconfig.h usability" >&5 echo $ECHO_N "checking fontconfig/fontconfig.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking fontconfig/fontconfig.h presence" >&5 echo $ECHO_N "checking fontconfig/fontconfig.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------------------- ## ## Report this to quesoglc-general@lists.sourceforge.net ## ## ----------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5 echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6; } if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_fontconfig_fontconfig_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5 echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6; } fi if test $ac_cv_header_fontconfig_fontconfig_h = yes; then { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; } if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfontconfig $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char FcInit (); int main () { return FcInit (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_fontconfig_FcInit=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_fontconfig_FcInit=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; } if test $ac_cv_lib_fontconfig_FcInit = yes; then LIBS="-lfontconfig $LIBS" else no_fc="yes" fi fi elif test $pkg_failed = untried; then if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then { echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5 echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6; } if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5 echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking fontconfig/fontconfig.h usability" >&5 echo $ECHO_N "checking fontconfig/fontconfig.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking fontconfig/fontconfig.h presence" >&5 echo $ECHO_N "checking fontconfig/fontconfig.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------------------- ## ## Report this to quesoglc-general@lists.sourceforge.net ## ## ----------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5 echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6; } if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_fontconfig_fontconfig_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5 echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6; } fi if test $ac_cv_header_fontconfig_fontconfig_h = yes; then { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; } if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfontconfig $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char FcInit (); int main () { return FcInit (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_fontconfig_FcInit=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_fontconfig_FcInit=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; } if test $ac_cv_lib_fontconfig_FcInit = yes; then LIBS="-lfontconfig $LIBS" else no_fc="yes" fi fi else FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi if (test "x$no_fc" = "xyes"); then { { echo "$as_me:$LINENO: error: Unable to locate the required Fontconfig library" >&5 echo "$as_me: error: Unable to locate the required Fontconfig library" >&2;} { (exit 1); exit 1; }; } fi # Checks for Unicode libraries. # ----------------------------- if (test "x$with_fribidi" = "xyes"); then pkg_failed=no { echo "$as_me:$LINENO: checking for FRIBIDI" >&5 echo $ECHO_N "checking for FRIBIDI... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$FRIBIDI_CFLAGS"; then pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.10.4\"") >&5 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.10.4") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi >= 0.10.4" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$FRIBIDI_LIBS"; then pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.10.4\"") >&5 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.10.4") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi >= 0.10.4" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fribidi >= 0.10.4"` else FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fribidi >= 0.10.4"` fi # Put the nasty error message in config.log where it belongs echo "$FRIBIDI_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } { echo "$as_me:$LINENO: checking for fribidi_log2vis in -lfribidi" >&5 echo $ECHO_N "checking for fribidi_log2vis in -lfribidi... $ECHO_C" >&6; } if test "${ac_cv_lib_fribidi_fribidi_log2vis+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfribidi $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fribidi_log2vis (); int main () { return fribidi_log2vis (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_fribidi_fribidi_log2vis=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_fribidi_fribidi_log2vis=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_fribidi_fribidi_log2vis" >&5 echo "${ECHO_T}$ac_cv_lib_fribidi_fribidi_log2vis" >&6; } if test $ac_cv_lib_fribidi_fribidi_log2vis = yes; then LIBS="-lfribidi $LIBS" else no_fribidi="yes" fi elif test $pkg_failed = untried; then { echo "$as_me:$LINENO: checking for fribidi_log2vis in -lfribidi" >&5 echo $ECHO_N "checking for fribidi_log2vis in -lfribidi... $ECHO_C" >&6; } if test "${ac_cv_lib_fribidi_fribidi_log2vis+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lfribidi $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fribidi_log2vis (); int main () { return fribidi_log2vis (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_fribidi_fribidi_log2vis=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_fribidi_fribidi_log2vis=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_fribidi_fribidi_log2vis" >&5 echo "${ECHO_T}$ac_cv_lib_fribidi_fribidi_log2vis" >&6; } if test $ac_cv_lib_fribidi_fribidi_log2vis = yes; then LIBS="-lfribidi $LIBS" else no_fribidi="yes" fi else FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi if (test "x$no_fribidi" = "xyes"); then { echo "$as_me:$LINENO: FriBiDi will be built and embedded" >&5 echo "$as_me: FriBiDi will be built and embedded" >&6;} fi else no_fribidi="yes" fi if (test "x$no_fribidi" = "xyes"); then FRIBIDI_OBJ="libGLC_la-fribidi.lo libGLC_la-fribidi_char_type.lo \ libGLC_la-fribidi_mirroring.lo libGLC_la-fribidi_types.lo" else PKGCONFIG_REQUIREMENTS="fribidi" fi # Checks for OpenGL and related libraries. # ---------------------------------------- { echo "$as_me:$LINENO: checking for X" >&5 echo $ECHO_N "checking for X... $ECHO_C" >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 echo "$as_me: error: Cannot use X directory names containing '" >&2;} { (exit 1); exit 1; }; };; #( *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /lib) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # We can compile using X headers with no special include directory. ac_x_includes= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 LIBS=$ac_save_LIBS for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { echo "$as_me:$LINENO: result: $have_x" >&5 echo "${ECHO_T}$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } fi # # There isn't a reliable way to know we should use the Apple OpenGL framework # without a configure option. A Mac OS X user may have installed an # alternative GL implementation (e.g., Mesa), which may or may not depend on X. # # Check whether --with-apple-opengl-framework was given. if test "${with_apple_opengl_framework+set}" = set; then withval=$with_apple_opengl_framework; fi if test "X$with_apple_opengl_framework" = "Xyes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_APPLE_OPENGL_FRAMEWORK 1 _ACEOF GL_LIBS="-framework OpenGL" else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5 echo $ECHO_N "checking whether we are using the Microsoft C compiler... $ECHO_C" >&6; } if test "${ax_cv_c_compiler_ms+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef _MSC_VER choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ax_compiler_ms=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ax_compiler_ms=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ax_cv_c_compiler_ms=$ax_compiler_ms fi { echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5 echo "${ECHO_T}$ax_cv_c_compiler_ms" >&6; } if test X$ax_compiler_ms = Xno; then GL_CFLAGS="${PTHREAD_CFLAGS}" GL_LIBS="${PTHREAD_LIBS} -lm" fi # # Use x_includes and x_libraries if they have been set (presumably by # AC_PATH_X). # if test "X$no_x" != "Xyes"; then if test -n "$x_includes"; then GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" fi if test -n "$x_libraries"; then GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" fi fi for ac_header in windows.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------------------- ## ## Report this to quesoglc-general@lists.sourceforge.net ## ## ----------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for OpenGL library" >&5 echo $ECHO_N "checking for OpenGL library... $ECHO_C" >&6; } if test "${ax_cv_check_gl_libgl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_cv_check_gl_libgl="no" ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" ax_save_LIBS="${LIBS}" LIBS="" ax_check_libs="-lopengl32 -lGL" for ax_lib in ${ax_check_libs}; do if test X$ax_compiler_ms = Xyes; then ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` else ax_try_lib="${ax_lib}" fi LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ # if HAVE_WINDOWS_H && defined(_WIN32) # include # endif # include int main () { glBegin(0) ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ax_cv_check_gl_libgl="${ax_try_lib}"; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext done LIBS=${ax_save_LIBS} CPPFLAGS=${ax_save_CPPFLAGS} fi { echo "$as_me:$LINENO: result: $ax_cv_check_gl_libgl" >&5 echo "${ECHO_T}$ax_cv_check_gl_libgl" >&6; } if test "X${ax_cv_check_gl_libgl}" = "Xno"; then no_gl="yes" GL_CFLAGS="" GL_LIBS="" else GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi if (test "x$no_gl" = "xyes"); then { { echo "$as_me:$LINENO: error: OpenGL not found" >&5 echo "$as_me: error: OpenGL not found" >&2;} { (exit 1); exit 1; }; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else _lt_caught_CXX_error=yes fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else _lt_caught_CXX_error=yes fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes file_list_spec_CXX='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty # executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared # libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes allow_undefined_flag_CXX="$_lt_dar_allow_undefined" if test "$GCC" = "yes"; then output_verbose_link_cmd=echo archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" if test "$lt_cv_apple_cc_single_mod" != "yes"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi else ld_shlibs_CXX=no fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before # switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: inherit_rpath_CXX=yes ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [1-5]* | *pgcpp\ [1-5]*) prelink_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' old_archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ $RANLIB $oldlib' archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 will use weak symbols archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; xl*) # IBM XL 8.0 on PPC, with GNU ld hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object_CXX=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) ld_shlibs_CXX=yes ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no hardcode_direct_absolute_CXX=yes archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=echo else ld_shlibs_CXX=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) case $host in osf3*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ;; *) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' ;; esac hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $RM -f confest.$objext # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac compiler_lib_search_dirs_CXX= if test -n "${compiler_lib_search_path_CXX}"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_CXX='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc* | ecpc* ) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; xlc* | xlC*) # IBM XL 8.0 on PPC lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-qpic' lt_prog_compiler_static_CXX='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:19780: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:19784: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_CXX=yes fi fi $RM conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:19879: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:19883: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:19931: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:19935: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix[4-9]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' ;; linux* | k*bsd*-gnu) link_all_deplibs_CXX=no ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then shlibpath_overrides_runpath=yes fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink || test "$inherit_rpath_CXX" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu GLU_CFLAGS="${GL_CFLAGS}" if test "X${with_apple_opengl_framework}" != "Xyes"; then { echo "$as_me:$LINENO: checking for OpenGL Utility library" >&5 echo $ECHO_N "checking for OpenGL Utility library... $ECHO_C" >&6; } if test "${ax_cv_check_glu_libglu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_cv_check_glu_libglu="no" ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" ax_save_LIBS="${LIBS}" LIBS="" ax_check_libs="-lglu32 -lGLU" for ax_lib in ${ax_check_libs}; do if test X$ax_compiler_ms = Xyes; then ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` else ax_try_lib="${ax_lib}" fi LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" # # libGLU typically links with libstdc++ on POSIX platforms. However, # setting the language to C++ means that test program source is named # "conftest.cc"; and Microsoft cl doesn't know what to do with such a # file. # ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test X$ax_compiler_ms = Xyes; then ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ # if HAVE_WINDOWS_H && defined(_WIN32) # include # endif # include int main () { gluBeginCurve(0) ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ax_cv_check_glu_libglu="${ax_try_lib}"; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test X$ax_compiler_ms = Xyes; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu done LIBS=${ax_save_LIBS} CPPFLAGS=${ax_save_CPPFLAGS} fi { echo "$as_me:$LINENO: result: $ax_cv_check_glu_libglu" >&5 echo "${ECHO_T}$ax_cv_check_glu_libglu" >&6; } if test "X${ax_cv_check_glu_libglu}" = "Xno"; then no_glu="yes" GLU_CFLAGS="" GLU_LIBS="" else GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" fi fi if (test "x$no_glu" = "xyes"); then { { echo "$as_me:$LINENO: error: GLU library not found" >&5 echo "$as_me: error: GLU library not found" >&2;} { (exit 1); exit 1; }; } fi PKGCONFIG_LIBS_PRIVATE="$PHREAD_LIBS $GLU_LIBS" PKGCONFIG_INCLUDE="$GLU_CFLAGS" # Checks for GLEW library. # ------------------------ if (test "x$with_glew" = "xyes"); then if test "${ac_cv_header_GL_glew_h+set}" = set; then { echo "$as_me:$LINENO: checking for GL/glew.h" >&5 echo $ECHO_N "checking for GL/glew.h... $ECHO_C" >&6; } if test "${ac_cv_header_GL_glew_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5 echo "${ECHO_T}$ac_cv_header_GL_glew_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking GL/glew.h usability" >&5 echo $ECHO_N "checking GL/glew.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking GL/glew.h presence" >&5 echo $ECHO_N "checking GL/glew.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: GL/glew.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: GL/glew.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: GL/glew.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: GL/glew.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: GL/glew.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: GL/glew.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: GL/glew.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: GL/glew.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: GL/glew.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: GL/glew.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: GL/glew.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: GL/glew.h: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------------------- ## ## Report this to quesoglc-general@lists.sourceforge.net ## ## ----------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for GL/glew.h" >&5 echo $ECHO_N "checking for GL/glew.h... $ECHO_C" >&6; } if test "${ac_cv_header_GL_glew_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_GL_glew_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glew_h" >&5 echo "${ECHO_T}$ac_cv_header_GL_glew_h" >&6; } fi { echo "$as_me:$LINENO: checking for glewContextInit in -lGLEW" >&5 echo $ECHO_N "checking for glewContextInit in -lGLEW... $ECHO_C" >&6; } if test "${ac_cv_lib_GLEW_glewContextInit+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lGLEW $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char glewContextInit (); int main () { return glewContextInit (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_GLEW_glewContextInit=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_GLEW_glewContextInit=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_glewContextInit" >&5 echo "${ECHO_T}$ac_cv_lib_GLEW_glewContextInit" >&6; } if test $ac_cv_lib_GLEW_glewContextInit = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBGLEW 1 _ACEOF LIBS="-lGLEW $LIBS" else no_glew="yes" fi if test -z "$no_glew"; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if !defined(GL_SGIS_texture_lod) || !defined(GL_ARB_vertex_buffer_object) || !defined(GL_ARB_pixel_buffer_object) # error #endif int main () { glewContextInit() ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then LIBS="-lGLEW $LIBS" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi if (test "x$no_glew" = "xyes"); then { echo "$as_me:$LINENO: GLEW will be built and embedded" >&5 echo "$as_me: GLEW will be built and embedded" >&6;} fi else no_glew="yes" fi if (test "x$no_glew" = "xyes"); then GLEW_CFLAGS="-DGLEW_MX" GLEW_OBJ="libGLC_la-glew.lo" else PKGCONFIG_LIBS_PRIVATE="-lGLEW $PKGCONFIG_LIBS_PRIVATE" fi # Special flags for MinGW32 build. # -------------------------------- case $target_alias in *mingw32*) if (test "x$enable_static" = "xyes"); then GLEW_CFLAGS+=" -DGLEW_STATIC" else GLEW_CFLAGS+=" -DGLEW_BUILD" fi ;; esac # Determine whether to build (or not) test and examples executables. # ------------------------------------------------------------------ if (test "x$enable_executables" = "xyes"); then if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. cat >>confdefs.h <<\_ACEOF #define X_DISPLAY_MISSING 1 _ACEOF X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 LIBS="$ac_xsave_LIBS -R $x_libraries" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: result: neither works" >&5 echo "${ECHO_T}neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_c_werror_flag=$ac_xsave_c_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dnet_dnet_ntoa=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dnet_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test $ac_cv_lib_dnet_dnet_ntoa = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dnet_stub_dnet_ntoa=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. { echo "$as_me:$LINENO: checking for gethostbyname" >&5 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } if test "${ac_cv_func_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define gethostbyname to an innocuous variant, in case declares gethostbyname. For example, HP-UX 11i declares gettimeofday. */ #define gethostbyname innocuous_gethostbyname /* System header to define __stub macros and hopefully few prototypes, which can conflict with char gethostbyname (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef gethostbyname /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_gethostbyname || defined __stub___gethostbyname choke me #endif int main () { return gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } if test $ac_cv_func_gethostbyname = no; then { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_nsl_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } if test $ac_cv_lib_nsl_gethostbyname = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_bsd_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_bsd_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } if test $ac_cv_lib_bsd_gethostbyname = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. { echo "$as_me:$LINENO: checking for connect" >&5 echo $ECHO_N "checking for connect... $ECHO_C" >&6; } if test "${ac_cv_func_connect+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define connect to an innocuous variant, in case declares connect. For example, HP-UX 11i declares gettimeofday. */ #define connect innocuous_connect /* System header to define __stub macros and hopefully few prototypes, which can conflict with char connect (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef connect /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_connect || defined __stub___connect choke me #endif int main () { return connect (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_connect=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_connect=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 echo "${ECHO_T}$ac_cv_func_connect" >&6; } if test $ac_cv_func_connect = no; then { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } if test "${ac_cv_lib_socket_connect+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); int main () { return connect (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_socket_connect=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } if test $ac_cv_lib_socket_connect = yes; then X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. { echo "$as_me:$LINENO: checking for remove" >&5 echo $ECHO_N "checking for remove... $ECHO_C" >&6; } if test "${ac_cv_func_remove+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define remove to an innocuous variant, in case declares remove. For example, HP-UX 11i declares gettimeofday. */ #define remove innocuous_remove /* System header to define __stub macros and hopefully few prototypes, which can conflict with char remove (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef remove /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_remove || defined __stub___remove choke me #endif int main () { return remove (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_remove=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_remove=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 echo "${ECHO_T}$ac_cv_func_remove" >&6; } if test $ac_cv_func_remove = no; then { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } if test "${ac_cv_lib_posix_remove+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); int main () { return remove (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_posix_remove=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_posix_remove=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } if test $ac_cv_lib_posix_remove = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. { echo "$as_me:$LINENO: checking for shmat" >&5 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } if test "${ac_cv_func_shmat+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shmat to an innocuous variant, in case declares shmat. For example, HP-UX 11i declares gettimeofday. */ #define shmat innocuous_shmat /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shmat (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shmat /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shmat || defined __stub___shmat choke me #endif int main () { return shmat (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shmat=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shmat=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 echo "${ECHO_T}$ac_cv_func_shmat" >&6; } if test $ac_cv_func_shmat = no; then { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } if test "${ac_cv_lib_ipc_shmat+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); int main () { return shmat (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_ipc_shmat=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ipc_shmat=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } if test $ac_cv_lib_ipc_shmat = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_ICE_IceConnectionNumber=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi if test "X$with_apple_opengl_framework" = "Xyes"; then GLUT_CFLAGS="${GLU_CFLAGS}" GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}" else GLUT_CFLAGS=${GLU_CFLAGS} GLUT_LIBS=${GLU_LIBS} # # If X is present, assume GLUT depends on it. # if test "X${no_x}" != "Xyes"; then GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ax_save_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" { echo "$as_me:$LINENO: checking for GLUT library" >&5 echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6; } if test "${ax_cv_check_glut_libglut+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_cv_check_glut_libglut="no" ax_save_LIBS="${LIBS}" LIBS="" ax_check_libs="-lglut32 -lglut" for ax_lib in ${ax_check_libs}; do if test X$ax_compiler_ms = Xyes; then ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` else ax_try_lib="${ax_lib}" fi LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ # if HAVE_WINDOWS_H && defined(_WIN32) # include # endif # include int main () { glutMainLoop() ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ax_cv_check_glut_libglut="${ax_try_lib}"; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext done LIBS=${ax_save_LIBS} fi { echo "$as_me:$LINENO: result: $ax_cv_check_glut_libglut" >&5 echo "${ECHO_T}$ax_cv_check_glut_libglut" >&6; } CPPFLAGS="${ax_save_CPPFLAGS}" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "X${ax_cv_check_glut_libglut}" = "Xno"; then no_glut="yes" GLUT_CFLAGS="" GLUT_LIBS="" else GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" fi fi if (test "x$no_glut" = "xyes"); then { echo "$as_me:$LINENO: WARNING: The GLUT library could not be found : example programs and \ some tests will not be built" >&5 echo "$as_me: WARNING: The GLUT library could not be found : example programs and \ some tests will not be built" >&2;} EXECUTABLES="tests" else EXECUTABLES="tests examples" case $target_alias in *mingw32*) TESTS_WITH_GLUT="test1 test5 test6 test7 test8 test9.1 test9.2 test9.3 \ test9.4 test9.5 test9.6 test9.7 test9.8 test10 test11.1 \ test11.2 test11.3 test11.4 test11.5 test11.6 test11.7 \ test12 test13 test14 test15 test16 testcontex testfont \ testmaster testrender" ;; *) TESTS_WITH_GLUT="test1 test2 test3 test5 test6 test7 test8 test9.1 \ test9.2 test9.3 test9.4 test9.5 test9.6 test9.7 test9.8 \ test10 test11.1 test11.2 test11.3 test11.4 test11.5 \ test11.6 test11.7 test12 test13 test14 test15 test16 \ testcontex testfont testmaster testrender" ;; esac fi fi # Compile debug version # --------------------- if (test "x$enable_debug" = "xyes"); then CFLAGS+=" -g -DDEBUGMODE" DEBUG_TESTS="test17" fi # Output. # ------- ac_config_files="$ac_config_files Makefile build/Makefile include/Makefile tests/Makefile examples/Makefile quesoglc.pc" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by QuesoGLC $as_me 0.7.2, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ QuesoGLC config.status 0.7.2 configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ deplibs_check_method \ file_magic_cmd \ AR \ AR_FLAGS \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ SHELL \ ECHO \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ fix_srcfile_path \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ compiler_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_cv_prog_compiler_c_o_CXX \ export_dynamic_flag_spec_CXX \ whole_archive_flag_spec_CXX \ compiler_needs_object_CXX \ with_gnu_ld_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ fix_srcfile_path_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX \ file_list_spec_CXX \ compiler_lib_search_dirs_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ export_symbols_cmds_CXX \ prelink_cmds_CXX; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` ;; esac ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "include/qglc_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/qglc_config.h:include/qglc_config.hin" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "quesoglc.pc") CONFIG_FILES="$CONFIG_FILES quesoglc.pc" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim am__isrc!$am__isrc$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim LN_S!$LN_S$ac_delim LIBTOOL!$LIBTOOL$ac_delim build!$build$ac_delim build_cpu!$build_cpu$ac_delim build_vendor!$build_vendor$ac_delim build_os!$build_os$ac_delim host!$host$ac_delim host_cpu!$host_cpu$ac_delim host_vendor!$host_vendor$ac_delim host_os!$host_os$ac_delim SED!$SED$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim FGREP!$FGREP$ac_delim LD!$LD$ac_delim DUMPBIN!$DUMPBIN$ac_delim ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim NM!$NM$ac_delim AR!$AR$ac_delim RANLIB!$RANLIB$ac_delim lt_ECHO!$lt_ECHO$ac_delim DSYMUTIL!$DSYMUTIL$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF NMEDIT!$NMEDIT$ac_delim LIPO!$LIPO$ac_delim OTOOL!$OTOOL$ac_delim OTOOL64!$OTOOL64$ac_delim CPP!$CPP$ac_delim acx_pthread_config!$acx_pthread_config$ac_delim PTHREAD_CC!$PTHREAD_CC$ac_delim PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim LIBOBJS!$LIBOBJS$ac_delim PKG_CONFIG!$PKG_CONFIG$ac_delim FREETYPE2_CFLAGS!$FREETYPE2_CFLAGS$ac_delim FREETYPE2_LIBS!$FREETYPE2_LIBS$ac_delim FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim FRIBIDI_CFLAGS!$FRIBIDI_CFLAGS$ac_delim FRIBIDI_LIBS!$FRIBIDI_LIBS$ac_delim XMKMF!$XMKMF$ac_delim GL_CFLAGS!$GL_CFLAGS$ac_delim GL_LIBS!$GL_LIBS$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim CXXDEPMODE!$CXXDEPMODE$ac_delim am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim CXXCPP!$CXXCPP$ac_delim GLU_CFLAGS!$GLU_CFLAGS$ac_delim GLU_LIBS!$GLU_LIBS$ac_delim X_CFLAGS!$X_CFLAGS$ac_delim X_PRE_LIBS!$X_PRE_LIBS$ac_delim X_LIBS!$X_LIBS$ac_delim X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim GLUT_CFLAGS!$GLUT_CFLAGS$ac_delim GLUT_LIBS!$GLUT_LIBS$ac_delim EXECUTABLES!$EXECUTABLES$ac_delim DEBUG_TESTS!$DEBUG_TESTS$ac_delim TESTS_WITH_GLUT!$TESTS_WITH_GLUT$ac_delim FRIBIDI_OBJ!$FRIBIDI_OBJ$ac_delim GLEW_OBJ!$GLEW_OBJ$ac_delim GLEW_CFLAGS!$GLEW_CFLAGS$ac_delim PKGCONFIG_REQUIREMENTS!$PKGCONFIG_REQUIREMENTS$ac_delim PKGCONFIG_LIBS_PRIVATE!$PKGCONFIG_LIBS_PRIVATE$ac_delim PKGCONFIG_INCLUDE!$PKGCONFIG_INCLUDE$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_arg=$ac_file _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="CXX " # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == "file_magic". file_magic_cmd=$lt_file_magic_cmd # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name of the directory that contains temporary libtool files. objdir=$objdir # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that does not interpret backslashes. ECHO=$lt_ECHO # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $* )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[^=]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$@"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1+=\$2" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1=\$$1\$2" } _LT_EOF ;; esac sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi