The R Project SVN R

Rev

Rev 77052 | Rev 77542 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 77052 Rev 77164
Line 3072... Line 3072...
3072
#endif
3072
#endif
3073
 
3073
 
3074
#include <zlib.h>
3074
#include <zlib.h>
3075
#include <bzlib.h>
3075
#include <bzlib.h>
3076
#include <lzma.h>
3076
#include <lzma.h>
-
 
3077
 
3077
#ifdef HAVE_PCRE_PCRE_H
3078
#ifdef HAVE_PCRE2
-
 
3079
  /* PCRE2_CODE_UNIT_WIDTH is defined to 8 via config.h */
3078
# include <pcre/pcre.h>
3080
# include<pcre2.h>
3079
#else
3081
#else
-
 
3082
# ifdef HAVE_PCRE_PCRE_H
-
 
3083
#  include <pcre/pcre.h>
-
 
3084
# else
3080
# include <pcre.h>
3085
#  include <pcre.h>
-
 
3086
# endif
3081
#endif
3087
#endif
3082
 
3088
 
3083
#ifdef USE_ICU
3089
#ifdef USE_ICU
3084
# ifndef USE_ICU_APPLE
3090
# ifndef USE_ICU_APPLE
3085
#  include <unicode/uversion.h>
3091
#  include <unicode/uversion.h>
Line 3138... Line 3144...
3138
    SET_STRING_ELT(ans, i, mkChar(p));
3144
    SET_STRING_ELT(ans, i, mkChar(p));
3139
    SET_STRING_ELT(nms, i++, mkChar("bzlib"));
3145
    SET_STRING_ELT(nms, i++, mkChar("bzlib"));
3140
    snprintf(p, 256, "%s", lzma_version_string());
3146
    snprintf(p, 256, "%s", lzma_version_string());
3141
    SET_STRING_ELT(ans, i, mkChar(p));
3147
    SET_STRING_ELT(ans, i, mkChar(p));
3142
    SET_STRING_ELT(nms, i++, mkChar("xz"));
3148
    SET_STRING_ELT(nms, i++, mkChar("xz"));
-
 
3149
#ifdef HAVE_PCRE2
-
 
3150
    pcre2_config(PCRE2_CONFIG_VERSION, p);
-
 
3151
#else
3143
    snprintf(p, 256, "%s", pcre_version());
3152
    snprintf(p, 256, "%s", pcre_version());
-
 
3153
#endif
3144
    SET_STRING_ELT(ans, i, mkChar(p));
3154
    SET_STRING_ELT(ans, i, mkChar(p));
3145
    SET_STRING_ELT(nms, i++, mkChar("PCRE"));
3155
    SET_STRING_ELT(nms, i++, mkChar("PCRE"));
3146
#ifdef USE_ICU
3156
#ifdef USE_ICU
3147
    UVersionInfo icu;
3157
    UVersionInfo icu;
3148
    char pu[U_MAX_VERSION_STRING_LENGTH];
3158
    char pu[U_MAX_VERSION_STRING_LENGTH];