project(taihen-parser)
option(TEST "build and perform tests" OFF)
+option(USE_INBUILT_CTYPE "use internal ctype over system" OFF)
+option(USE_INBUILT_STRING "use internal string over system" OFF)
include_directories(include)
check_include_file(ctype.h HAVE_CTYPE)
check_include_file(string.h HAVE_STRING)
-if (NOT ${HAVE_CTYPE})
+if ((NOT ${HAVE_CTYPE}) OR ${USE_INBUILT_CTYPE})
add_definitions(-DNO_CTYPE)
endif()
-if (NOT ${HAVE_STRING})
+if ((NOT ${HAVE_STRING}) OR ${USE_INBUILT_STRING})
add_definitions(-DNO_STRING)
endif()