Handle HAVE_STRINGS_H variable in the new cmake file

This commit is contained in:
Luis Diaz Mas 2017-07-31 18:36:01 +02:00
parent b864365a20
commit 1a34a55383
5 changed files with 4 additions and 16 deletions

View File

@ -70,8 +70,6 @@ ENDIF( EXIV2_ENABLE_COMMERCIAL )
# checking for Header files
check_include_file( "inttypes.h" have_inttypes_h )
check_include_file( "string.h" HAVE_STRING_H )
check_include_file( "strings.h" HAVE_STRINGS_H )
check_include_file( "wchar.h" HAVE_WCHAR_H )
check_include_file( "sys/stat.h" HAVE_SYS_STAT_H )
check_include_file( "sys/time.h" HAVE_SYS_TIME_H )
@ -105,9 +103,7 @@ IF( NOT MSVC )
SET( HAVE_PID_T TRUE )
ENDIF( NOT MSVC )
SET( EXV_SYMBOLS HAVE_STRINGS_H
HAVE_STRING_H
HAVE_STRTOL
SET( EXV_SYMBOLS HAVE_STRTOL
HAVE_SYS_MMAN_H
HAVE_SYS_STAT_H
HAVE_SYS_TIME_H

View File

@ -86,11 +86,8 @@
// Definition to indicate if strerror_r returns char *.
#cmakedefine STRERROR_R_CHAR_P
/* Define to 1 if you have the <strings.h> header file. */
#cmakedefine EXV_HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#cmakedefine EXV_HAVE_STRING_H 1
// Definition to indicate if you have the <strings.h> header file.
#cmakedefine EXV_HAVE_STRINGS_H
/* Define to 1 if you have the `strtol' function. */
#cmakedefine EXV_HAVE_STRTOL 1

View File

@ -80,9 +80,6 @@
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the `strtol' function. */
#undef HAVE_STRTOL

View File

@ -34,6 +34,7 @@ check_include_file( "process.h" EXV_HAVE_PROCESS_H )
check_include_file( "stdbool.h" EXV_HAVE_STDBOOL_H )
check_include_file( "stdint.h" EXV_HAVE_STDINT_H )
check_include_file( "stdlib.h" EXV_HAVE_STDLIB_H )
check_include_file( "strings.h" EXV_HAVE_STRINGS_H )
if (NOT EXV_HAVE_LIBINTL_H)
set(EXV_ENABLE_NLS 0)

View File

@ -89,9 +89,6 @@
/* Define to 1 if you have the <strings.h> header file. */
/* #undef EXV_HAVE_STRINGS_H */
/* Define to 1 if you have the <string.h> header file. */
/* #undef EXV_HAVE_STRING_H */
/* Define to 1 if you have the `strtol' function. */
#define EXV_HAVE_STRTOL 1