13152
GLIB_REQUIRED_VERSION=1.3.11
13156
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13157
if test -n "$ac_tool_prefix"; then
13158
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13159
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13160
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13161
$as_echo_n "checking for $ac_word... " >&6; }
13162
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13163
$as_echo_n "(cached) " >&6
13165
case $PKG_CONFIG in
13167
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13170
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171
for as_dir in $PATH
13174
test -z "$as_dir" && as_dir=.
13175
for ac_exec_ext in '' $ac_executable_extensions; do
13176
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13177
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13178
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13188
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13189
if test -n "$PKG_CONFIG"; then
13190
{ $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13191
$as_echo "$PKG_CONFIG" >&6; }
13193
{ $as_echo "$as_me:$LINENO: result: no" >&5
13194
$as_echo "no" >&6; }
13199
if test -z "$ac_cv_path_PKG_CONFIG"; then
13200
ac_pt_PKG_CONFIG=$PKG_CONFIG
13201
# Extract the first word of "pkg-config", so it can be a program name with args.
13202
set dummy pkg-config; ac_word=$2
13203
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13204
$as_echo_n "checking for $ac_word... " >&6; }
13205
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
13206
$as_echo_n "(cached) " >&6
13208
case $ac_pt_PKG_CONFIG in
13210
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214
for as_dir in $PATH
13217
test -z "$as_dir" && as_dir=.
13218
for ac_exec_ext in '' $ac_executable_extensions; do
13219
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13220
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13221
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13231
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13232
if test -n "$ac_pt_PKG_CONFIG"; then
13233
{ $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
13234
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13236
{ $as_echo "$as_me:$LINENO: result: no" >&5
13237
$as_echo "no" >&6; }
13240
if test "x$ac_pt_PKG_CONFIG" = x; then
13243
case $cross_compiling:$ac_tool_warned in
13245
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13246
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13247
ac_tool_warned=yes ;;
13249
PKG_CONFIG=$ac_pt_PKG_CONFIG
13252
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13256
if test -n "$PKG_CONFIG"; then
13257
_pkg_min_version=0.9.0
13258
{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
13259
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13260
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13261
{ $as_echo "$as_me:$LINENO: result: yes" >&5
13262
$as_echo "yes" >&6; }
13264
{ $as_echo "$as_me:$LINENO: result: no" >&5
13265
$as_echo "no" >&6; }
13272
{ $as_echo "$as_me:$LINENO: checking for GLIB_DEPENDENCIES" >&5
13273
$as_echo_n "checking for GLIB_DEPENDENCIES... " >&6; }
13275
if test -n "$GLIB_DEPENDENCIES_CFLAGS"; then
13276
pkg_cv_GLIB_DEPENDENCIES_CFLAGS="$GLIB_DEPENDENCIES_CFLAGS"
13277
elif test -n "$PKG_CONFIG"; then
13278
if test -n "$PKG_CONFIG" && \
13279
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION\"") >&5
13280
($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
13282
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283
(exit $ac_status); }; then
13284
pkg_cv_GLIB_DEPENDENCIES_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
13291
if test -n "$GLIB_DEPENDENCIES_LIBS"; then
13292
pkg_cv_GLIB_DEPENDENCIES_LIBS="$GLIB_DEPENDENCIES_LIBS"
13293
elif test -n "$PKG_CONFIG"; then
13294
if test -n "$PKG_CONFIG" && \
13295
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION\"") >&5
13296
($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
13298
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299
(exit $ac_status); }; then
13300
pkg_cv_GLIB_DEPENDENCIES_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
13310
if test $pkg_failed = yes; then
13312
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13313
_pkg_short_errors_supported=yes
13315
_pkg_short_errors_supported=no
13317
if test $_pkg_short_errors_supported = yes; then
13318
GLIB_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
13320
GLIB_DEPENDENCIES_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
13322
# Put the nasty error message in config.log where it belongs
13323
echo "$GLIB_DEPENDENCIES_PKG_ERRORS" >&5
13325
{ { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION) were not met:
13327
$GLIB_DEPENDENCIES_PKG_ERRORS
13329
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13330
installed software in a non-standard prefix.
13332
Alternatively, you may set the environment variables GLIB_DEPENDENCIES_CFLAGS
13333
and GLIB_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
13334
See the pkg-config man page for more details.
13336
$as_echo "$as_me: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION) were not met:
13338
$GLIB_DEPENDENCIES_PKG_ERRORS
13340
Consider adjusting the PKG_CONFIG_PATH environment variable if you
13341
installed software in a non-standard prefix.
13343
Alternatively, you may set the environment variables GLIB_DEPENDENCIES_CFLAGS
13344
and GLIB_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
13345
See the pkg-config man page for more details.
13347
{ (exit 1); exit 1; }; }
13348
elif test $pkg_failed = untried; then
13349
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13350
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13351
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13352
is in your PATH or set the PKG_CONFIG environment variable to the full
13353
path to pkg-config.
13355
Alternatively, you may set the environment variables GLIB_DEPENDENCIES_CFLAGS
13356
and GLIB_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
13357
See the pkg-config man page for more details.
13359
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13360
See \`config.log' for more details." >&5
13361
$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13362
is in your PATH or set the PKG_CONFIG environment variable to the full
13363
path to pkg-config.
13365
Alternatively, you may set the environment variables GLIB_DEPENDENCIES_CFLAGS
13366
and GLIB_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
13367
See the pkg-config man page for more details.
13369
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13370
See \`config.log' for more details." >&2;}
13371
{ (exit 1); exit 1; }; }; }
13373
GLIB_DEPENDENCIES_CFLAGS=$pkg_cv_GLIB_DEPENDENCIES_CFLAGS
13374
GLIB_DEPENDENCIES_LIBS=$pkg_cv_GLIB_DEPENDENCIES_LIBS
13375
{ $as_echo "$as_me:$LINENO: result: yes" >&5
13376
$as_echo "yes" >&6; }
13381
13146
# --enable-debug
13966
13753
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968
# ensure we have apache 1.3
13755
# We no longer support Apache < 2.0
13969
13756
if test "$APACHE_VER" = "1.3" ; then
13970
cat >conftest.$ac_ext <<_ACEOF
13973
cat confdefs.h >>conftest.$ac_ext
13974
cat >>conftest.$ac_ext <<_ACEOF
13975
/* end confdefs.h. */
13983
char *version = SERVER_BASEREVISION;
13989
rm -f conftest.$ac_objext
13990
if { (ac_try="$ac_compile"
13991
case "(($ac_try" in
13992
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993
*) ac_try_echo=$ac_try;;
13995
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13996
$as_echo "$ac_try_echo") >&5
13997
(eval "$ac_compile") 2>conftest.er1
13999
grep -v '^ *+' conftest.er1 >conftest.err
14001
cat conftest.err >&5
14002
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003
(exit $ac_status); } && {
14004
test -z "$ac_c_werror_flag" ||
14005
test ! -s conftest.err
14006
} && test -s conftest.$ac_objext; then
14011
$as_echo "$as_me: failed program was:" >&5
14012
sed 's/^/| /' conftest.$ac_ext >&5
14019
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13757
{ { $as_echo "$as_me:$LINENO: error: Apache 1.3 is no longer supported. mod_mono now requires at least Apache 2.0" >&5
13758
$as_echo "$as_me: error: Apache 1.3 is no longer supported. mod_mono now requires at least Apache 2.0" >&2;}
13759
{ (exit 1); exit 1; }; }
14021
13761
if test "$cross_compiling" = yes; then
14022
13762
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14213
if test ! "$APACHE_VER" = "1.3" ; then
14214
found_apr_socket_connect=yes
14216
cat >>confdefs.h <<\_ACEOF
14217
#define HAVE_APR_SOCKET_CONNECT /**/
14221
found_apr_socket_connect=no
14222
{ $as_echo "$as_me:$LINENO: checking for apr_socket_connect in -lapr-0" >&5
14223
$as_echo_n "checking for apr_socket_connect in -lapr-0... " >&6; }
14224
if test "${ac_cv_lib_apr_0_apr_socket_connect+set}" = set; then
14225
$as_echo_n "(cached) " >&6
14227
ac_check_lib_save_LIBS=$LIBS
14228
LIBS="-lapr-0 $LIBS"
14229
cat >conftest.$ac_ext <<_ACEOF
14232
cat confdefs.h >>conftest.$ac_ext
14233
cat >>conftest.$ac_ext <<_ACEOF
14234
/* end confdefs.h. */
14236
/* Override any GCC internal prototype to avoid an error.
14237
Use char because int might match the return type of a GCC
14238
builtin and then its argument prototype would still apply. */
14242
char apr_socket_connect ();
14246
return apr_socket_connect ();
14251
rm -f conftest.$ac_objext conftest$ac_exeext
14252
if { (ac_try="$ac_link"
14253
case "(($ac_try" in
14254
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255
*) ac_try_echo=$ac_try;;
14257
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14258
$as_echo "$ac_try_echo") >&5
14259
(eval "$ac_link") 2>conftest.er1
14261
grep -v '^ *+' conftest.er1 >conftest.err
14263
cat conftest.err >&5
14264
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265
(exit $ac_status); } && {
14266
test -z "$ac_c_werror_flag" ||
14267
test ! -s conftest.err
14268
} && test -s conftest$ac_exeext && {
14269
test "$cross_compiling" = yes ||
14270
$as_test_x conftest$ac_exeext
14272
ac_cv_lib_apr_0_apr_socket_connect=yes
14274
$as_echo "$as_me: failed program was:" >&5
14275
sed 's/^/| /' conftest.$ac_ext >&5
14277
ac_cv_lib_apr_0_apr_socket_connect=no
14280
rm -rf conftest.dSYM
14281
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14282
conftest$ac_exeext conftest.$ac_ext
14283
LIBS=$ac_check_lib_save_LIBS
14285
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_apr_0_apr_socket_connect" >&5
14286
$as_echo "$ac_cv_lib_apr_0_apr_socket_connect" >&6; }
14287
if test "x$ac_cv_lib_apr_0_apr_socket_connect" = x""yes; then
14288
found_apr_socket_connect=yes
14291
if test "x$found_apr_socket_connect" = "xyes" ; then
14293
cat >>confdefs.h <<\_ACEOF
14294
#define HAVE_APR_SOCKET_CONNECT /**/
13952
found_apr_socket_connect=yes
13954
cat >>confdefs.h <<\_ACEOF
13955
#define HAVE_APR_SOCKET_CONNECT /**/
14301
13959
MONO_PREFIX=`$PKG_CONFIG --silence-errors --variable=prefix mono`
14302
13960
if test x$MONO_PREFIX = "x" ; then