]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
generate libs/xmlrpc-c/include/xmlrpc-c/config.h from our configure
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 24 May 2008 02:15:05 +0000 (02:15 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 24 May 2008 02:15:05 +0000 (02:15 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8572 d0543943-73ff-0310-b7d9-9358b9ac24b2

configure.in
libs/xmlrpc-c/include/xmlrpc-c/config.h.in [new file with mode: 0644]

index 0567fc0e9e843625dea4ae10622699281205a79d..da37113b5fb4e933b40d1d547eb2f666e185306a 100644 (file)
@@ -186,7 +186,15 @@ AC_SUBST(DYNAMIC_LIB_EXTEN)
 # Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC
-AC_CHECK_HEADERS([sys/types.h sys/resource.h sched.h])
+AC_CHECK_HEADERS([sys/types.h sys/resource.h sched.h wchar.h])
+
+# for xmlrpc-c config.h
+if test x"$ac_cv_header_wchar_h" = xyes; then
+  HAVE_WCHAR_H_DEFINE=1
+else
+  HAVE_WCHAR_H_DEFINE=0
+fi
+AC_SUBST(HAVE_WCHAR_H_DEFINE)
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
@@ -550,6 +558,7 @@ AC_CONFIG_FILES([Makefile
                 build/getsounds.sh
                 build/getlib.sh
                 build/modmake.rules
+                libs/xmlrpc-c/include/xmlrpc-c/config.h
                 scripts/gentls_cert])
 
 AM_CONDITIONAL(ISLINUX, [test `uname -s` = Linux])
diff --git a/libs/xmlrpc-c/include/xmlrpc-c/config.h.in b/libs/xmlrpc-c/include/xmlrpc-c/config.h.in
new file mode 100644 (file)
index 0000000..2575010
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef XMLRPC_C_CONFIG_H_INCLUDED
+#define XMLRPC_C_CONFIG_H_INCLUDED
+
+/* This file, part of XML-RPC For C/C++, is meant to 
+   define characteristics of this particular installation 
+   that the other <xmlrpc-c/...> header files need in 
+   order to compile correctly when #included in Xmlrpc-c
+   user code.
+
+   Those header files #include this one.
+
+   This file was created by a make rule.
+*/
+#define XMLRPC_HAVE_WCHAR @HAVE_WCHAR_H_DEFINE@
+#ifdef WIN32
+  /* SOCKET is a type defined by <winsock.h>.  Anyone who
+     uses XMLRPC_SOCKET on a WIN32 system must #include
+     <winsock.h>
+  */
+  #define XMLRPC_SOCKET SOCKET
+  #define XMLRPC_HAVE_TIMEVAL 0
+  #define XMLRPC_HAVE_TIMESPEC 0
+#else
+  #define XMLRPC_SOCKET int
+  #define XMLRPC_HAVE_TIMEVAL 1
+  #define XMLRPC_HAVE_TIMESPEC 1
+#endif
+
+#if defined(_MSC_VER)
+  /* Newer MSVC has long long, but MSVC 6 does not */
+  #define XMLRPC_INT64 __int64
+  #define XMLRPC_INT32 __int32
+#else
+  #define XMLRPC_INT64 long long
+  #define XMLRPC_INT32 int
+#endif
+#endif