+# This file is part of LyX, the document processor.
+# Licence details can be found in the file COPYING.
+#
+# Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
+#
+
include(CheckIncludeFile)
include(CheckIncludeFileCXX)
include(CheckIncludeFiles)
check_function_exists(open HAVE_OPEN)
+check_function_exists(chmod HAVE_CHMOD)
check_function_exists(close HAVE_CLOSE)
check_function_exists(popen HAVE_POPEN)
check_function_exists(pclose HAVE_PCLOSE)
"
CXX_GLOBAL_CSTD)
+#check_cxx_source_compiles(
+# "
+# #include <iconv.h>
+# // this declaration will fail when there already exists a non const char** version which returns size_t
+# double iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
+# int main() { return 0; }
+# "
+#HAVE_ICONV_CONST)
+
check_cxx_source_compiles(
"
- #include <iconv.h>
- // this declaration will fail when there already exists a non const char** version which returns size_t
- double iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
- int main() { return 0; }
+ int i[ ( sizeof(wchar_t)==2 ? 1 : -1 ) ];
+ int main(){return 0;}
"
-HAVE_ICONV_CONST)
-
-set(PACKAGE lyx)
-set(PACKAGE_VERSION 1.5.0svn)
-
-if(WIN32)
- set(USE_WINDOWS_PACKAGING 1)
-else(WIN32)
- set(USE_POSIX_PACKAGING 1)
-endif(WIN32)
+SIZEOF_WCHAR_T_IS_2)
+check_cxx_source_compiles(
+ "
+ int i[ ( sizeof(wchar_t)==4 ? 1 : -1 ) ];
+ int main(){return 0;}
+ "
+SIZEOF_WCHAR_T_IS_4)