Source
xxxxxxxxxx
6
6
# This macro #defines HAVE_PCRE_H if required header files are
7
7
# found, and sets @LIBPCRE_LDFLAGS@ and @LIBPCRE_CFLAGS@ to the necessary
8
8
# values.
9
9
#
10
10
# This macro is distributed in the hope that it will be useful,
11
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
13
14
14
AC_DEFUN([LIBPCRE_TRY_LINK],
15
15
[
16
-
AC_TRY_LINK(
17
-
[
16
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
18
17
#include <pcre.h>
19
-
],
20
-
[
18
+
]], [[
21
19
const char* error = NULL;
22
20
int error_offset = -1;
23
21
pcre *regexp = pcre_compile("test", PCRE_UTF8, &error, &error_offset, NULL);
24
22
pcre_free(regexp);
25
-
],
26
-
found_libpcre="yes")
23
+
]])],[found_libpcre="yes"],[])
27
24
])dnl
28
25
29
26
AC_DEFUN([LIBPCRE_CHECK_CONFIG],
30
27
[
31
28
want_libpcre=no
32
29
found_libpcre=no
33
30
libpcre_dir=""
34
31
libpcre_include_dir=""
35
32
libpcre_lib_dir=""
36
33