check for ICONV_CONST

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14675 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2006-08-14 16:38:04 +00:00
parent 0ca50d9637
commit d308909bee
2 changed files with 15 additions and 0 deletions

View File

@ -115,6 +115,15 @@ check_cxx_source_compiles(
"
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)
set(PACKAGE lyx)
set(PACKAGE_VERSION 1.5.0svn)

View File

@ -93,6 +93,12 @@
#cmakedefine HAVE_ASPELL_ASPELL_H 1
#cmakedefine HAVE_ASPELL_H 1
#cmakedefine HAVE_ICONV_CONST 1
#ifdef HAVE_ICONV_CONST
#define ICONV_CONST const
#else
#define ICONV_CONST
#endif
#cmakedefine PACKAGE "${PACKAGE}"
#cmakedefine PACKAGE_VERSION ${PACKAGE_VERSION}