File tree 4 files changed +60
-24
lines changed 4 files changed +60
-24
lines changed Original file line number Diff line number Diff line change 78
78
runs-on : ${{ matrix.os }}
79
79
strategy :
80
80
matrix :
81
- os : [macos-12 ]
81
+ os : [macos-14 ]
82
82
configure :
83
83
- {label: "with parser generation", opt: "--enable-parser-generation" }
84
84
- {label: "wo curl", opt: "--without-curl" }
@@ -91,10 +91,12 @@ jobs:
91
91
- {label: "with pcre2", opt: "--with-pcre2" }
92
92
steps :
93
93
- name : Setup Dependencies
94
- # autoconf, curl, pcre2 not installed because they're already
94
+ # curl, pcre2 not installed because they're already
95
95
# included in the image
96
96
run : |
97
- brew install automake \
97
+ brew install autoconf \
98
+ automake \
99
+ libtool \
98
100
yajl \
99
101
lmdb \
100
102
lua \
Original file line number Diff line number Diff line change 27
27
28
28
AC_MSG_CHECKING ( [ for libpcre config script] )
29
29
30
- for x in ${test_paths}; do
31
- dnl # Determine if the script was specified and use it directly
32
- if test ! -d "$x" -a -e "$x"; then
33
- PCRE_CONFIG=$x
34
- pcre_path="no"
35
- break
36
- fi
30
+ AC_CHECK_PROG ( [ PCRE_CONFIG_IN_ENV] , [ pcre-config] , [ yes] , [ no] )
31
+
32
+ if test "$PCRE_CONFIG_IN_ENV" = "yes"; then
33
+ AC_MSG_NOTICE ( [ pcre-config found in envinronment] )
34
+
35
+ PCRE_CONFIG=pcre-config
36
+ pcre_path="no"
37
+ else
38
+ AC_MSG_NOTICE ( [ pcre-config not found in environment. checking known paths] )
37
39
38
- dnl # Try known config script names/locations
39
- for PCRE_CONFIG in pcre-config; do
40
- if test -e "${x}/bin/${PCRE_CONFIG}"; then
41
- pcre_path="${x}/bin"
40
+ for x in ${test_paths}; do
41
+ dnl # Determine if the script was specified and use it directly
42
+ if test ! -d "$x" -a -e "$x"; then
43
+ PCRE_CONFIG=$x
44
+ pcre_path="no"
42
45
break
43
- elif test -e "${x}/${PCRE_CONFIG}"; then
44
- pcre_path="${x}"
46
+ fi
47
+
48
+ dnl # Try known config script names/locations
49
+ for PCRE_CONFIG in pcre-config; do
50
+ if test -e "${x}/bin/${PCRE_CONFIG}"; then
51
+ pcre_path="${x}/bin"
52
+ break
53
+ elif test -e "${x}/${PCRE_CONFIG}"; then
54
+ pcre_path="${x}"
55
+ break
56
+ else
57
+ pcre_path=""
58
+ fi
59
+ done
60
+ if test -n "$pcre_path"; then
45
61
break
46
- else
47
- pcre_path=""
48
62
fi
49
63
done
50
- if test -n "$pcre_path"; then
51
- break
52
- fi
53
- done
64
+ fi
54
65
55
66
if test -n "${pcre_path}"; then
56
67
if test "${pcre_path}" != "no"; then
Original file line number Diff line number Diff line change 78
78
# fi
79
79
fi
80
80
81
+ # FIX: if the include directory in CFLAGS ends with "include/yajl",
82
+ # remove the suffix "/yajl". the library header files are included
83
+ # using the prefix (for example, #include <yajl/yajl_tree.h>), and
84
+ # this is even the case for the library itself (for example,
85
+ # yajl_tree.h includes yajl/yajl_common.h).
86
+
87
+ new_cflags=""
88
+
89
+ for flag in $YAJL_CFLAGS; do
90
+ case "$flag" in
91
+ -I*/include/yajl)
92
+ new_flag="${flag%/yajl}"
93
+ new_cflags="$new_cflags $new_flag"
94
+ ;;
95
+ *)
96
+ new_cflags="$new_cflags $flag"
97
+ ;;
98
+ esac
99
+ done
100
+
101
+ YAJL_CFLAGS="$new_cflags"
102
+
103
+
81
104
if test -z "${YAJL_LDADD}"; then
82
105
if test -z "${YAJL_MANDATORY}"; then
83
106
if test -z "${YAJL_DISABLED}"; then
Original file line number Diff line number Diff line change @@ -164,8 +164,8 @@ AC_CHECK_HEADERS([iostream])
164
164
AC_CHECK_HEADERS ( [ sys/utsname.h] )
165
165
166
166
167
- # ??
168
- LT_INIT( [ dlopen ] )
167
+ # Initialize libtool
168
+ LT_INIT
169
169
170
170
# Identify platform
171
171
AC_CANONICAL_HOST
You can’t perform that action at this time.
0 commit comments