00001 #ifndef LOG4CPLUS_CONFIG_DEFINES_HXX 00002 #define LOG4CPLUS_CONFIG_DEFINES_HXX 00003 00004 /* */ 00005 #ifdef HAVE_SYSLOG_H 00006 #define LOG4CPLUS_HAVE_SYSLOG_H 00007 #endif 00008 00009 /* */ 00010 #ifdef HAVE_NETINET_IN_H 00011 #define LOG4CPLUS_HAVE_NETINET_IN_H 00012 #endif 00013 00014 /* */ 00015 #ifdef HAVE_SYS_TYPES_H 00016 #define LOG4CPLUS_HAVE_SYS_TYPES_H 00017 #endif 00018 00019 /* */ 00020 #ifdef HAVE_SYS_SOCKET_H 00021 #define LOG4CPLUS_HAVE_SYS_SOCKET_H 00022 #endif 00023 00024 /* */ 00025 #ifdef HAVE_NETDB_H 00026 #define LOG4CPLUS_HAVE_NETDB_H 00027 #endif 00028 00029 /* */ 00030 #ifdef HAVE_UNISTD_H 00031 #define LOG4CPLUS_HAVE_UNISTD_H 00032 #endif 00033 00034 /* */ 00035 #ifdef HAVE_FTIME 00036 #define LOG4CPLUS_HAVE_FTIME 00037 #endif 00038 00039 /* */ 00040 #ifdef HAVE_GETADDRINFO 00041 #define LOG4CPLUS_HAVE_GETADDRINFO 00042 #endif 00043 00044 /* */ 00045 // This is from dcuid.cc 00046 #if defined(HAVE_GETHOSTNAME) && defined(HAVE_GETHOSTBYNAME) && defined(_REENTRANT) 00047 #define LOG4CPLUS_HAVE_GETHOSTBYNAME_R 00048 #endif 00049 00050 /* */ 00051 #ifdef HAVE_GETPID 00052 #define LOG4CPLUS_HAVE_GETPID 00053 #endif 00054 00055 /* */ 00056 #ifdef HAVE_PROTOTYPE_GETTIMEOFDAY 00057 #define LOG4CPLUS_HAVE_GETTIMEOFDAY 00058 #endif 00059 00060 /* */ 00061 #ifdef HAVE_GMTIME_R 00062 #define LOG4CPLUS_HAVE_GMTIME_R 00063 #endif 00064 00065 /* */ 00066 #ifdef HAVE_HTONL 00067 #define LOG4CPLUS_HAVE_HTONL 00068 #endif 00069 00070 /* */ 00071 #ifdef HAVE_HTONS 00072 #define LOG4CPLUS_HAVE_HTONS 00073 #endif 00074 00075 /* */ 00076 #ifdef HAVE_LOCALTIME_R 00077 #define LOG4CPLUS_HAVE_LOCALTIME_R 00078 #endif 00079 00080 /* */ 00081 #ifdef HAVE_LSTAT 00082 #define LOG4CPLUS_HAVE_LSTAT 00083 #endif 00084 00085 /* */ 00086 #ifdef HAVE_NTOHL 00087 #define LOG4CPLUS_HAVE_NTOHL 00088 #endif 00089 00090 /* */ 00091 #ifdef HAVE_NTOHS 00092 #define LOG4CPLUS_HAVE_NTOHS 00093 #endif 00094 00095 /* */ 00096 #ifdef HAVE_STAT 00097 #define LOG4CPLUS_HAVE_STAT 00098 #endif 00099 00100 /* */ 00101 #ifdef WITH_THREADS 00102 #define LOG4CPLUS_USE_PTHREADS 00103 #else 00104 /* Define if this is a single-threaded library. */ 00105 #define LOG4CPLUS_SINGLE_THREADED 00106 #endif 00107 00108 /* Define for compilers/standard libraries that support more than just the "C" 00109 locale. */ 00110 #undef LOG4CPLUS_WORKING_LOCALE 00111 00112 /* Define to int if undefined. */ 00113 #if 0 00114 /* This block is handled by configure completely */ 00115 #undef socklen_t 00116 #ifndef HAVE_DECLARATION_SOCKLEN_T 00117 #define socklen_t int 00118 #endif 00119 #endif 00120 00121 /* Defined for --enable-debugging builds. */ 00122 #ifdef DEBUG 00123 #define LOG4CPLUS_DEBUGGING 00124 #endif 00125 00126 /* These two are not needed since we build static libraries */ 00127 /* Defined if the compiler understands __declspec(export) or __attribute__((export)) construct. */ 00128 #define LOG4CPLUS_DECLSPEC_EXPORT 00129 /* Defined if the compiler understands __declspec(import) or __attribute__((import)) construct. */ 00130 #define LOG4CPLUS_DECLSPEC_IMPORT 00131 00132 /* Defined if the host OS provides ENAMETOOLONG errno value. */ 00133 #ifdef HAVE_ENAMETOOLONG 00134 #define LOG4CPLUS_HAVE_ENAMETOOLONG 00135 #endif 00136 00137 #endif // LOG4CPLUS_CONFIG_DEFINES_HXX