File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ NO_INET_NTOP=@NO_INET_NTOP@
58
58
NO_INET_PTON=@NO_INET_PTON@
59
59
NO_ICONV=@NO_ICONV@
60
60
OLD_ICONV=@OLD_ICONV@
61
+ NO_REGEX=@NO_REGEX@
61
62
NO_DEFLATE_BOUND=@NO_DEFLATE_BOUND@
62
63
INLINE=@INLINE@
63
64
SOCKLEN_T=@SOCKLEN_T@
Original file line number Diff line number Diff line change @@ -706,6 +706,27 @@ else
706
706
fi
707
707
AC_SUBST ( NO_C99_FORMAT )
708
708
#
709
+ # Define NO_REGEX if you have no or inferior regex support in your C library.
710
+ AC_CACHE_CHECK ( [ whether the platform regex can handle null bytes] ,
711
+ [ ac_cv_c_excellent_regex] , [
712
+ AC_EGREP_CPP ( yippeeyeswehaveit ,
713
+ AC_LANG_PROGRAM ( [ AC_INCLUDES_DEFAULT
714
+ #include <regex.h>
715
+ ] ,
716
+ [ #ifdef REG_STARTEND
717
+ yippeeyeswehaveit
718
+ #endif
719
+ ] ) ,
720
+ [ ac_cv_c_excellent_regex=yes] ,
721
+ [ ac_cv_c_excellent_regex=yes] )
722
+ ] )
723
+ if test $ac_cv_c_excellent_regex = yes; then
724
+ NO_REGEX=
725
+ else
726
+ NO_REGEX=YesPlease
727
+ fi
728
+ AC_SUBST ( NO_REGEX )
729
+ #
709
730
# Define FREAD_READS_DIRECTORIES if your are on a system which succeeds
710
731
# when attempting to read from an fopen'ed directory.
711
732
AC_CACHE_CHECK ( [ whether system succeeds to read fopen'ed directory] ,
You can’t perform that action at this time.
0 commit comments