Skip to content

Commit 18e1f67

Browse files
committed
Check in 1.5.0rc6
1 parent 93570fc commit 18e1f67

File tree

275 files changed

+11545
-9908
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+11545
-9908
lines changed

ax_check_openssl.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ AU_ALIAS([CHECK_SSL], [AX_CHECK_OPENSSL])
3939
AC_DEFUN([AX_CHECK_OPENSSL], [
4040
AC_ARG_WITH([openssl],
4141
[AS_HELP_STRING([--with-openssl=DIR],
42-
[root of the OpenSSL directory])],
42+
[set root of the OpenSSL directory for MAC OS only])],
4343
[
4444
case "$withval" in
4545
"" | y | ye | yes | n | no)
@@ -50,7 +50,7 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
5050
esac
5151
], [
5252
# use some default ssldirs
53-
ssldirs="/usr/local /usr/local/ssl /usr /usr/ssl /usr/lib/ssl /usr/pkg "
53+
ssldirs="/usr/local /usr/local/ssl /usr /usr/ssl /usr/lib/ssl /usr/pkg /opt/local/"
5454
]
5555
)
5656

configure

+80-93
Original file line numberDiff line numberDiff line change
@@ -831,8 +831,8 @@ enable_http2
831831
enable_debug
832832
enable_profiling
833833
with_lua
834-
enable_brotli
835-
enable_iptogeo2
834+
with_brotli
835+
with_iptogeo2
836836
with_bssl
837837
with_ip2loc
838838
enable_rpath
@@ -1497,11 +1497,6 @@ Optional Features:
14971497
default)
14981498
--enable-profiling Enable cpu profiling (profiling is disabled by
14991499
default)
1500-
--enable-brotli=[yes/no]
1501-
enable brotli compression [default=no]
1502-
--enable-iptogeo2=[yes/no]
1503-
enable iptogeo2, need to build maxminddb which need
1504-
to have autotool installed [default=no]
15051500
--disable-rpath Disable rpath (It is 'no' by default)
15061501

15071502
Optional Packages:
@@ -1529,14 +1524,16 @@ Optional Packages:
15291524
--with-lscpd Set to build lscpd instead of openlitespeed[default:
15301525
yes]
15311526
--with-lua[=DIR] use liblua (located in directory DIR, if supplied) for compiling mod_lua module. [default=no]
1527+
--with-brotli[=DIR] Set to enable brotli compression [default=no]
1528+
--with-iptogeo2[=DIR] Set to enable iptogeo2, if need to build maxminddb which need to have autotool installed [default=no]
15321529
--with-bssl[=DIR] Set to use BoringSSL instead of OpenSSL [default=no]
15331530
--with-ip2loc[=DIR] enable ip2location (located in directory DIR, if supplied). [default=no]
15341531
--with-libdir Set system lib directory. It is lib or lib64 and
15351532
will be automatically checked by default
15361533
--with-zlib=DIR root directory path of zlib installation defaults to
15371534
/usr/local or /usr if not found in /usr/local
15381535
--without-zlib to disable zlib usage completely
1539-
--with-openssl=DIR root of the OpenSSL directory
1536+
--with-openssl=DIR set root of the OpenSSL directory for MAC OS only
15401537
--with-pcre[=prefix] compile xmlpcre part (via libpcre check)
15411538
--with-udns=DIR root directory path of udns installation (defaults to
15421539
/usr/local or /usr if not found in /usr/local)
@@ -15871,11 +15868,11 @@ fi
1587115868
if test "${enable_debug+set}" = set; then :
1587215869
enableval=$enable_debug; OPENLSWS_DEBUG="$enableval"
1587315870
if test "$OPENLSWS_DEBUG" = "yes" ; then
15874-
CFLAGS="-g3 -O0"
15875-
CXXFLAGS="-g3 -O0"
15871+
CFLAGS="$CFLAGS -g3 -O0"
15872+
CXXFLAGS="$CXXFLAGS -g3 -O0"
1587615873
else
15877-
CFLAGS="-g -O3"
15878-
CXXFLAGS="-g -O3"
15874+
CFLAGS="$CFLAGS -g -O3"
15875+
CXXFLAGS="$CXXFLAGS -g -O3"
1587915876
fi
1588015877
echo "OPENLSWS_DEBUG='$OPENLSWS_DEBUG'"
1588115878

@@ -15993,31 +15990,46 @@ echo "Lua inlcude = $LUA_INCLUDES, need_lua = $need_lua"
1599315990
CFLAGS="$CFLAGS -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector $(getconf LFS_CFLAGS) "
1599415991
CXXFLAGS="$CXXFLAGS -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector $(getconf LFS_CFLAGS) "
1599515992

15996-
1599715993
LIBBROTLI=
15998-
# Check whether --enable-brotli was given.
15999-
if test "${enable_brotli+set}" = set; then :
16000-
enableval=$enable_brotli; OPENLSWS_BROTLI="$enableval"
15994+
OPENLSWS_BROTLI=no
15995+
15996+
# Check whether --with-brotli was given.
15997+
if test "${with_brotli+set}" = set; then :
15998+
withval=$with_brotli;
15999+
if test "x$withval" = "x"
16000+
then
16001+
OPENLSWS_BROTLI=no
16002+
elif test $withval = no
16003+
then
16004+
OPENLSWS_BROTLI=no
16005+
elif test $withval = yes
16006+
then
16007+
echo "Brotli start to build ..."
16008+
BUILDBROTLI=`. $srcdir/dlbrotli.sh`
16009+
OPENLSWS_BROTLI="$TOPDIR/brotli-master"
16010+
else
16011+
echo "Use defined brotli directory $withval."
16012+
OPENLSWS_BROTLI="$withval"
16013+
fi
16014+
1600116015
else
1600216016
OPENLSWS_BROTLI=no
1600316017
fi
1600416018

16019+
1600516020
if test "$OPENLSWS_BROTLI" = "no" ; then
1600616021
echo "Brotli compression disabled!!!"
1600716022
else
16008-
echo "Brotli start to build ..."
16009-
BUILDBROTLI=`. $srcdir/dlbrotli.sh`
16010-
16011-
LIBBROTLI=" $TOPDIR/brotli-master/out/libbrotlidec-static.a $TOPDIR/brotli-master/out/libbrotlienc-static.a $TOPDIR/brotli-master/out/libbrotlicommon-static.a "
16012-
as_ac_File=`$as_echo "ac_cv_file_$TOPDIR/brotli-master/out/libbrotlidec-static.a" | $as_tr_sh`
16013-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $TOPDIR/brotli-master/out/libbrotlidec-static.a" >&5
16014-
$as_echo_n "checking for $TOPDIR/brotli-master/out/libbrotlidec-static.a... " >&6; }
16023+
LIBBROTLI=" $OPENLSWS_BROTLI/out/libbrotlidec-static.a $OPENLSWS_BROTLI/out/libbrotlienc-static.a $OPENLSWS_BROTLI/out/libbrotlicommon-static.a "
16024+
as_ac_File=`$as_echo "ac_cv_file_$OPENLSWS_BROTLI/out/libbrotlidec-static.a" | $as_tr_sh`
16025+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $OPENLSWS_BROTLI/out/libbrotlidec-static.a" >&5
16026+
$as_echo_n "checking for $OPENLSWS_BROTLI/out/libbrotlidec-static.a... " >&6; }
1601516027
if eval \${$as_ac_File+:} false; then :
1601616028
$as_echo_n "(cached) " >&6
1601716029
else
1601816030
test "$cross_compiling" = yes &&
1601916031
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16020-
if test -r "$TOPDIR/brotli-master/out/libbrotlidec-static.a"; then
16032+
if test -r "$OPENLSWS_BROTLI/out/libbrotlidec-static.a"; then
1602116033
eval "$as_ac_File=yes"
1602216034
else
1602316035
eval "$as_ac_File=no"
@@ -16029,21 +16041,21 @@ $as_echo "$ac_res" >&6; }
1602916041
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
1603016042

1603116043
cat >>confdefs.h <<_ACEOF
16032-
#define `$as_echo "HAVE_$TOPDIR/brotli-master/out/libbrotlidec-static.a" | $as_tr_cpp` 1
16044+
#define `$as_echo "HAVE_$OPENLSWS_BROTLI/out/libbrotlidec-static.a" | $as_tr_cpp` 1
1603316045
_ACEOF
1603416046

1603516047
else
1603616048
LIBBROTLI=
1603716049
fi
16038-
as_ac_File=`$as_echo "ac_cv_file_$TOPDIR/brotli-master/c/include/brotli/decode.h" | $as_tr_sh`
16039-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $TOPDIR/brotli-master/c/include/brotli/decode.h" >&5
16040-
$as_echo_n "checking for $TOPDIR/brotli-master/c/include/brotli/decode.h... " >&6; }
16050+
as_ac_File=`$as_echo "ac_cv_file_$OPENLSWS_BROTLI/c/include/brotli/decode.h" | $as_tr_sh`
16051+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $OPENLSWS_BROTLI/c/include/brotli/decode.h" >&5
16052+
$as_echo_n "checking for $OPENLSWS_BROTLI/c/include/brotli/decode.h... " >&6; }
1604116053
if eval \${$as_ac_File+:} false; then :
1604216054
$as_echo_n "(cached) " >&6
1604316055
else
1604416056
test "$cross_compiling" = yes &&
1604516057
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16046-
if test -r "$TOPDIR/brotli-master/c/include/brotli/decode.h"; then
16058+
if test -r "$OPENLSWS_BROTLI/c/include/brotli/decode.h"; then
1604716059
eval "$as_ac_File=yes"
1604816060
else
1604916061
eval "$as_ac_File=no"
@@ -16055,53 +16067,71 @@ $as_echo "$ac_res" >&6; }
1605516067
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
1605616068

1605716069
cat >>confdefs.h <<_ACEOF
16058-
#define `$as_echo "HAVE_$TOPDIR/brotli-master/c/include/brotli/decode.h" | $as_tr_cpp` 1
16070+
#define `$as_echo "HAVE_$OPENLSWS_BROTLI/c/include/brotli/decode.h" | $as_tr_cpp` 1
1605916071
_ACEOF
1606016072

1606116073
else
1606216074
LIBBROTLI=
1606316075
fi
1606416076

16065-
1606616077
if test "x$LIBBROTLI" = x ; then
16067-
echo "Brotli built failed. If continue, brotli compression will be disabled."
16078+
echo "Brotli files check failed. If continue, brotli compression will be disabled."
1606816079
else
16069-
echo "Brotli built and enabled!!!"
16070-
CPPFLAGS="$CPPFLAGS -I$TOPDIR/brotli-master/c/include "
16071-
LIBBROTLI=" $TOPDIR/brotli-master/out/libbrotlidec-static.a $TOPDIR/brotli-master/out/libbrotlienc-static.a $TOPDIR/brotli-master/out/libbrotlicommon-static.a "
16080+
echo "Brotli checked and enabled!!!"
16081+
CPPFLAGS="$CPPFLAGS -I$OPENLSWS_BROTLI/c/include "
16082+
LIBBROTLI=" $OPENLSWS_BROTLI/out/libbrotlidec-static.a $OPENLSWS_BROTLI/out/libbrotlienc-static.a $OPENLSWS_BROTLI/out/libbrotlicommon-static.a "
1607216083

1607316084
cat >>confdefs.h <<_ACEOF
1607416085
#define USE_BROTLI 1
1607516086
_ACEOF
1607616087

1607716088
fi
1607816089
fi
16090+
echo "LIBBROTLI=$LIBBROTLI"
16091+
16092+
1607916093

1608016094

1608116095
LIBMMDB=
16082-
# Check whether --enable-iptogeo2 was given.
16083-
if test "${enable_iptogeo2+set}" = set; then :
16084-
enableval=$enable_iptogeo2; OPENLSWS_IPTOGEO2="$enableval"
16096+
OPENLSWS_IPTOGEO2=no
16097+
16098+
# Check whether --with-iptogeo2 was given.
16099+
if test "${with_iptogeo2+set}" = set; then :
16100+
withval=$with_iptogeo2;
16101+
if test "x$withval" = "x"
16102+
then
16103+
OPENLSWS_IPTOGEO2=no
16104+
elif test $withval = no
16105+
then
16106+
OPENLSWS_IPTOGEO2=no
16107+
elif test $withval = yes
16108+
then
16109+
echo "libmaxminddb start to build ..."
16110+
BUILDMAXMINDDB=`. $srcdir/dlmaxminddb.sh`
16111+
OPENLSWS_IPTOGEO2="$TOPDIR/libmaxminddb"
16112+
else
16113+
echo "Use defined iptogeo2 directory $withval."
16114+
OPENLSWS_IPTOGEO2="$withval"
16115+
fi
16116+
1608516117
else
1608616118
OPENLSWS_IPTOGEO2=no
1608716119
fi
1608816120

16121+
1608916122
if test "$OPENLSWS_IPTOGEO2" = "no" ; then
1609016123
echo "iptogeo2 disabled!!!"
1609116124
else
16092-
echo "iptogeo2 enabled, libmaxminddb start to build ..."
16093-
BUILDMAXMINDDB=`. $srcdir/dlmaxminddb.sh`
16094-
1609516125
LIBMMDBEXIST=
16096-
as_ac_File=`$as_echo "ac_cv_file_$TOPDIR/libmaxminddb/src/.libs/libmaxminddb.a" | $as_tr_sh`
16097-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $TOPDIR/libmaxminddb/src/.libs/libmaxminddb.a" >&5
16098-
$as_echo_n "checking for $TOPDIR/libmaxminddb/src/.libs/libmaxminddb.a... " >&6; }
16126+
as_ac_File=`$as_echo "ac_cv_file_$OPENLSWS_IPTOGEO2/src/.libs/libmaxminddb.a" | $as_tr_sh`
16127+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $OPENLSWS_IPTOGEO2/src/.libs/libmaxminddb.a" >&5
16128+
$as_echo_n "checking for $OPENLSWS_IPTOGEO2/src/.libs/libmaxminddb.a... " >&6; }
1609916129
if eval \${$as_ac_File+:} false; then :
1610016130
$as_echo_n "(cached) " >&6
1610116131
else
1610216132
test "$cross_compiling" = yes &&
1610316133
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16104-
if test -r "$TOPDIR/libmaxminddb/src/.libs/libmaxminddb.a"; then
16134+
if test -r "$OPENLSWS_IPTOGEO2/src/.libs/libmaxminddb.a"; then
1610516135
eval "$as_ac_File=yes"
1610616136
else
1610716137
eval "$as_ac_File=no"
@@ -16121,15 +16151,16 @@ fi
1612116151
echo Or you can continue to make and iptogeo2 will be disabled.
1612216152
echo
1612316153
else
16124-
LIBMMDB=" $TOPDIR/libmaxminddb/src/.libs/libmaxminddb.a "
16125-
CPPFLAGS="$CPPFLAGS -I$TOPDIR/libmaxminddb/include/ "
16154+
LIBMMDB=" $OPENLSWS_IPTOGEO2/src/.libs/libmaxminddb.a "
16155+
CPPFLAGS="$CPPFLAGS -I$OPENLSWS_IPTOGEO2/include/ "
1612616156

1612716157
cat >>confdefs.h <<_ACEOF
1612816158
#define ENABLE_IPTOGEO2 1
1612916159
_ACEOF
1613016160

1613116161
fi
1613216162
fi
16163+
echo "LIBMMDB=$LIBMMDB"
1613316164

1613416165

1613516166

@@ -16548,7 +16579,7 @@ if test "${with_openssl+set}" = set; then :
1654816579
else
1654916580

1655016581
# use some default ssldirs
16551-
ssldirs="/usr/local /usr/local/ssl /usr /usr/ssl /usr/lib/ssl /usr/pkg "
16582+
ssldirs="/usr/local /usr/local/ssl /usr /usr/ssl /usr/lib/ssl /usr/pkg /opt/local/"
1655216583

1655316584

1655416585
fi
@@ -17307,51 +17338,7 @@ $as_echo "$as_me: WARNING: Expat XML Parser support requested but headers or lib
1730717338
fi
1730817339
fi
1730917340

17310-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_id_by_addr in -lGeoIP" >&5
17311-
$as_echo_n "checking for GeoIP_id_by_addr in -lGeoIP... " >&6; }
17312-
if ${ac_cv_lib_GeoIP_GeoIP_id_by_addr+:} false; then :
17313-
$as_echo_n "(cached) " >&6
17314-
else
17315-
ac_check_lib_save_LIBS=$LIBS
17316-
LIBS="-lGeoIP $LIBS"
17317-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318-
/* end confdefs.h. */
17319-
17320-
/* Override any GCC internal prototype to avoid an error.
17321-
Use char because int might match the return type of a GCC
17322-
builtin and then its argument prototype would still apply. */
17323-
#ifdef __cplusplus
17324-
extern "C"
17325-
#endif
17326-
char GeoIP_id_by_addr ();
17327-
int
17328-
main ()
17329-
{
17330-
return GeoIP_id_by_addr ();
17331-
;
17332-
return 0;
17333-
}
17334-
_ACEOF
17335-
if ac_fn_c_try_link "$LINENO"; then :
17336-
ac_cv_lib_GeoIP_GeoIP_id_by_addr=yes
17337-
else
17338-
ac_cv_lib_GeoIP_GeoIP_id_by_addr=no
17339-
fi
17340-
rm -f core conftest.err conftest.$ac_objext \
17341-
conftest$ac_exeext conftest.$ac_ext
17342-
LIBS=$ac_check_lib_save_LIBS
17343-
fi
17344-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_id_by_addr" >&5
17345-
$as_echo "$ac_cv_lib_GeoIP_GeoIP_id_by_addr" >&6; }
17346-
if test "x$ac_cv_lib_GeoIP_GeoIP_id_by_addr" = xyes; then :
17347-
cat >>confdefs.h <<_ACEOF
17348-
#define HAVE_LIBGEOIP 1
17349-
_ACEOF
17350-
17351-
LIBS="-lGeoIP $LIBS"
17352-
17353-
fi
17354-
17341+
#AC_CHECK_LIB([GeoIP], [GeoIP_id_by_addr])
1735517342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
1735617343
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
1735717344
if ${ac_cv_lib_crypt_crypt+:} false; then :

0 commit comments

Comments
 (0)