libidx
/home/rex/ebltrunk/core/libidx/include/config.h
00001 /***************************************************************************
00002  *   Copyright (C) 2010 by Pierre Sermanet *
00003  *   pierre.sermanet@gmail.com *
00004  *   All rights reserved.
00005  *
00006  * Redistribution and use in source and binary forms, with or without
00007  * modification, are permitted provided that the following conditions are met:
00008  *     * Redistributions of source code must retain the above copyright
00009  *       notice, this list of conditions and the following disclaimer.
00010  *     * Redistributions in binary form must reproduce the above copyright
00011  *       notice, this list of conditions and the following disclaimer in the
00012  *       documentation and/or other materials provided with the distribution.
00013  *     * Redistribution under a license not approved by the Open Source
00014  *       Initiative (http://www.opensource.org) must display the
00015  *       following acknowledgement in all advertising material:
00016  *        This product includes software developed at the Courant
00017  *        Institute of Mathematical Sciences (http://cims.nyu.edu).
00018  *     * The names of the authors may not be used to endorse or promote products
00019  *       derived from this software without specific prior written permission.
00020  *
00021  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
00022  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00023  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00024  * DISCLAIMED. IN NO EVENT SHALL ThE AUTHORS BE LIABLE FOR ANY
00025  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00026  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00027  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00028  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00029  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00030  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00031  ***************************************************************************/
00032 
00034 // CBLAS configuration
00035 
00036 #ifdef __CBLAS__
00037 
00038 #ifdef __WINDOWS__
00039 #include "cblas.h"
00040 #else
00041 
00042 /* #undef APPLE_FRAMEWORK_FOUND */
00043 
00044 // Apple framework calls are mode into a C++ header
00045 // On custom Atlas installations extern C is not included
00046 // On package instalaltions from distributions, extern C is
00047 // included, but another one does not hurt :)
00048 #ifndef APPLE_FRAMEWORK_FOUND
00049 extern "C" {
00050 #endif
00051 
00052 #include ""
00053 
00054 #ifndef APPLE_FRAMEWORK_FOUND
00055 }
00056 #endif
00057 
00058 #endif /* __WINDOWS__ */
00059 #endif /* __CBLAS__ */
00060 
00062 // ImageMagick configuration
00063 
00064 #ifdef __IMAGEMAGICK__
00065 #ifdef __WINDOWS__
00066 //TODO: for now assume convert is declared globally and do not use path
00067 // because path with spaces don't work with _popen even with quotes
00068 #define IMAGEMAGICK_CONVERT "convert.exe"
00069 //#define IMAGEMAGICK_CONVERT "\"/usr/bin/convert\""
00070 #else
00071 #define IMAGEMAGICK_CONVERT "/usr/bin/convert"
00072 #endif
00073 #endif
00074 
00076 // pipes popen/pclose configuration
00077 
00078 #ifdef __WINDOWS__
00079 #define POPEN _popen
00080 #define PCLOSE _pclose
00081 #else
00082 #define POPEN popen
00083 #define PCLOSE pclose
00084 #endif
00085 
00087 // Math configuration
00088 
00089 #ifdef __WINDOWS__
00090 #define ROUND 
00091 #else
00092 #define ROUND round
00093 #endif
00094 
00096 // paths
00097 
00098 #define DATA_PATH "/home/rex/ebltrunk/tools/data"
00099 #define MNIST_PATH ""