<commit_before>dnl
dnl $Id$
dnl

PHP_ARG_ENABLE(oauth, for oauth support,
[  --enable-oauth          Include oauth support])

AC_ARG_WITH([curl],
    AS_HELP_STRING([--without-curl], [Ignore presence of cURL and disable it]))

if test "$PHP_OAUTH" != "no"; then
  PHP_SUBST(OAUTH_SHARED_LIBADD)

  PHP_NEW_EXTENSION(oauth, oauth.c provider.c, $ext_shared)
  CFLAGS="$CFLAGS -Wall -g"

  AC_CHECK_HEADERS(pcre.h)

  AS_IF([test "x$with_curl" != "xno"],
      [
        AC_MSG_CHECKING(for cURL in default path)
        have_curl=no
        for i in /usr/local /usr; do
          if test -r $i/include/curl/easy.h; then
            have_curl=yes
            CURL_DIR=$i
            AC_MSG_RESULT(found in $i)
            break
          fi<commit_msg>Bug 67658, adding fail statement for header check<commit_after>dnl
dnl $Id$
dnl

PHP_ARG_ENABLE(oauth, for oauth support,
[  --enable-oauth          Include oauth support])

AC_ARG_WITH([curl],
    AS_HELP_STRING([--without-curl], [Ignore presence of cURL and disable it]))

if test "$PHP_OAUTH" != "no"; then
  PHP_SUBST(OAUTH_SHARED_LIBADD)

  PHP_NEW_EXTENSION(oauth, oauth.c provider.c, $ext_shared)
  CFLAGS="$CFLAGS -Wall -g"

  AC_CHECK_HEADER(pcre.h, , [AC_MSG_ERROR([Couldn't find pcre.h, try installing the libpcre development/headers package])])

  AS_IF([test "x$with_curl" != "xno"],
      [
        AC_MSG_CHECKING(for cURL in default path)
        have_curl=no
        for i in /usr/local /usr; do
          if test -r $i/include/curl/easy.h; then
            have_curl=yes
            CURL_DIR=$i
            AC_MSG_RESULT(found in $i)
            break
          fi
{'fraction_non_alphanumeric': 0.11465358675659104, 'fraction_numerical': 0.0030656039239730227, 'mean_word_length': 2.675675675675676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3330528', 'n_tokens_mistral': 621, 'n_tokens_neox': 591, 'n_words': 139}