| 816 | | AC_CHECK_LIB(pcre, pcre_compile, have_pcre_lib=yes, have_pcre_lib=no) |
|---|
| 817 | | AC_CHECK_HEADER(pcre.h, have_pcre_include=yes, have_pcre_include=no) |
|---|
| 818 | | if test "$have_pcre_lib $have_pcre_include" = "yes yes"; then |
|---|
| 819 | | have_pcre="yes" |
|---|
| 820 | | else |
|---|
| 821 | | have_pcre="built-in" |
|---|
| 822 | | fi |
|---|
| | 816 | have_pcre="built-in" |
|---|
| | 817 | |
|---|
| | 818 | AC_ARG_ENABLE(internal_pcre, |
|---|
| | 819 | AC_HELP_STRING([--enable-internal-pcre],[Enable internal PCRE]), |
|---|
| | 820 | use_internal_pcre="$enableval", use_internal_pcre="no") |
|---|
| | 821 | |
|---|
| | 822 | if test "x$use_internal_pcre" != "xyes"; then |
|---|
| | 823 | AC_CHECK_LIB(pcre, pcre_compile, have_pcre_lib=yes, have_pcre_lib=no) |
|---|
| | 824 | AC_CHECK_HEADER(pcre.h, have_pcre_include=yes, have_pcre_include=no) |
|---|
| | 825 | if test "$have_pcre_lib $have_pcre_include" = "yes yes"; then |
|---|
| | 826 | have_pcre="yes" |
|---|
| | 827 | fi |
|---|
| | 828 | fi |
|---|
| | 829 | |
|---|