configure 1.09 MB
Newer Older
powelld's avatar
powelld committed
37001 37002 37003 37004 37005 37006 37007 37008 37009 37010 37011 37012 37013 37014 37015 37016 37017 37018 37019 37020 37021 37022 37023 37024 37025 37026 37027 37028 37029 37030 37031 37032 37033 37034 37035 37036 37037 37038 37039 37040 37041 37042 37043 37044 37045 37046 37047 37048 37049 37050 37051 37052 37053 37054 37055 37056 37057 37058 37059 37060 37061 37062 37063 37064 37065 37066 37067 37068 37069 37070 37071 37072 37073 37074 37075 37076 37077 37078 37079 37080 37081 37082 37083 37084 37085 37086 37087 37088 37089 37090 37091 37092 37093 37094 37095 37096 37097 37098 37099 37100 37101 37102 37103 37104 37105 37106 37107 37108 37109 37110 37111 37112 37113 37114 37115 37116 37117 37118 37119 37120 37121 37122 37123 37124 37125 37126 37127 37128 37129 37130 37131 37132 37133 37134 37135 37136 37137 37138 37139 37140 37141 37142 37143 37144 37145 37146 37147 37148 37149 37150 37151 37152 37153 37154 37155 37156 37157 37158 37159 37160 37161 37162 37163 37164 37165 37166 37167 37168 37169 37170 37171 37172 37173 37174 37175 37176 37177 37178 37179 37180 37181 37182 37183 37184 37185 37186 37187 37188 37189 37190 37191 37192 37193 37194 37195 37196 37197 37198 37199 37200 37201 37202 37203 37204 37205 37206 37207 37208 37209 37210 37211 37212 37213 37214 37215 37216 37217 37218 37219 37220 37221 37222 37223 37224 37225 37226 37227 37228 37229 37230 37231 37232 37233 37234 37235 37236 37237 37238 37239 37240 37241 37242 37243 37244 37245 37246 37247 37248 37249 37250 37251 37252 37253 37254 37255 37256 37257 37258 37259 37260 37261 37262 37263 37264 37265 37266 37267 37268 37269 37270 37271 37272 37273 37274 37275 37276 37277 37278 37279 37280 37281 37282 37283 37284 37285 37286 37287 37288 37289 37290 37291 37292 37293 37294 37295 37296 37297 37298 37299 37300 37301 37302 37303 37304 37305 37306 37307 37308 37309 37310 37311 37312 37313 37314 37315 37316 37317 37318 37319 37320 37321 37322 37323 37324 37325 37326 37327 37328 37329 37330 37331 37332 37333 37334 37335 37336 37337 37338 37339 37340 37341 37342 37343 37344 37345 37346 37347 37348 37349 37350 37351 37352 37353 37354 37355 37356 37357 37358 37359 37360 37361 37362 37363 37364 37365 37366 37367 37368 37369 37370 37371 37372 37373 37374 37375 37376 37377 37378 37379 37380 37381 37382 37383 37384 37385 37386 37387 37388 37389 37390 37391 37392 37393 37394 37395 37396 37397 37398 37399 37400 37401 37402 37403 37404 37405 37406 37407 37408 37409 37410 37411 37412 37413 37414 37415 37416 37417 37418 37419 37420 37421 37422 37423 37424 37425 37426 37427 37428 37429 37430 37431 37432 37433 37434 37435 37436 37437 37438 37439 37440 37441 37442 37443 37444 37445 37446 37447 37448 37449 37450 37451 37452 37453 37454 37455 37456 37457 37458 37459 37460 37461 37462 37463 37464 37465 37466 37467 37468 37469 37470 37471 37472 37473 37474 37475 37476 37477 37478 37479 37480 37481 37482 37483 37484 37485 37486 37487 37488 37489 37490 37491 37492 37493 37494 37495 37496 37497 37498 37499 37500 37501 37502 37503 37504 37505 37506 37507 37508 37509 37510 37511 37512 37513 37514 37515 37516 37517 37518 37519 37520 37521 37522 37523 37524 37525 37526 37527 37528 37529 37530 37531 37532 37533 37534 37535 37536 37537 37538 37539 37540 37541 37542 37543 37544 37545 37546 37547 37548 37549 37550 37551 37552 37553 37554 37555 37556 37557 37558 37559 37560 37561 37562 37563 37564 37565 37566 37567 37568 37569 37570 37571 37572 37573 37574 37575 37576 37577 37578 37579 37580 37581 37582 37583 37584 37585 37586 37587 37588 37589 37590 37591 37592 37593 37594 37595 37596 37597 37598 37599 37600 37601 37602 37603 37604 37605 37606 37607 37608 37609 37610 37611 37612 37613 37614 37615 37616 37617 37618 37619 37620 37621 37622 37623 37624 37625 37626 37627 37628 37629 37630 37631 37632 37633 37634 37635 37636 37637 37638 37639 37640 37641 37642 37643 37644 37645 37646 37647 37648 37649 37650 37651 37652 37653 37654 37655 37656 37657 37658 37659 37660 37661 37662 37663 37664 37665 37666 37667 37668 37669 37670 37671 37672 37673 37674 37675 37676 37677 37678 37679 37680 37681 37682 37683 37684 37685 37686 37687 37688 37689 37690 37691 37692 37693 37694 37695 37696 37697 37698 37699 37700 37701 37702 37703 37704 37705 37706 37707 37708 37709 37710 37711 37712 37713 37714 37715 37716 37717 37718 37719 37720 37721 37722 37723 37724 37725 37726 37727 37728 37729 37730 37731 37732 37733 37734 37735 37736 37737 37738 37739 37740 37741 37742 37743 37744 37745 37746 37747 37748 37749 37750 37751 37752 37753 37754 37755 37756 37757 37758 37759 37760 37761 37762 37763 37764 37765 37766 37767 37768 37769 37770 37771 37772 37773 37774 37775 37776 37777 37778 37779 37780 37781 37782 37783 37784 37785 37786 37787 37788 37789 37790 37791 37792 37793 37794 37795 37796 37797 37798 37799 37800 37801 37802 37803 37804 37805 37806 37807 37808 37809 37810 37811 37812 37813 37814 37815 37816 37817 37818 37819 37820 37821 37822 37823 37824 37825 37826 37827 37828 37829 37830 37831 37832 37833 37834 37835 37836 37837 37838 37839 37840 37841 37842 37843 37844 37845 37846 37847 37848 37849 37850 37851 37852 37853 37854 37855 37856 37857 37858 37859 37860 37861 37862 37863 37864 37865 37866 37867 37868 37869 37870 37871 37872 37873 37874 37875 37876 37877 37878 37879 37880 37881 37882 37883 37884 37885 37886 37887 37888 37889 37890 37891 37892 37893 37894 37895 37896 37897 37898 37899 37900 37901 37902 37903 37904 37905 37906 37907 37908 37909 37910 37911 37912 37913 37914 37915 37916 37917 37918 37919 37920 37921 37922 37923 37924 37925 37926 37927 37928 37929 37930 37931 37932 37933 37934 37935 37936 37937 37938 37939 37940 37941 37942 37943 37944 37945 37946 37947 37948 37949 37950 37951 37952 37953 37954 37955 37956 37957 37958 37959 37960 37961 37962 37963 37964 37965 37966 37967 37968 37969 37970 37971 37972 37973 37974 37975 37976 37977 37978 37979 37980 37981 37982 37983 37984 37985 37986 37987 37988 37989 37990 37991 37992 37993 37994 37995 37996 37997 37998 37999 38000
      modpath_shared="$modpath_shared $libname"
      cat >>$modpath_current/modules.mk<<EOF
$libname: $shobjects
	\$(SH_LINK) -rpath \$(libexecdir) -module -avoid-version  $objects \$(MOD_REWRITE_LDADD)
EOF
    fi
  fi


  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MOD_REWRITE_LDADD"



  fi



  if test "x$INCLUDES" = "x"; then
    test "x$silent" != "xyes" && echo "  setting INCLUDES to \"-I\$(top_srcdir)/$modpath_current\""
    INCLUDES="-I\$(top_srcdir)/$modpath_current"
  else
    apr_addto_bugger="-I\$(top_srcdir)/$modpath_current"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $INCLUDES; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to INCLUDES"
        INCLUDES="$INCLUDES $i"
      fi
    done
  fi



  echo "DISTCLEAN_TARGETS = modules.mk" >> $modpath_current/modules.mk
  echo "static = $modpath_static" >> $modpath_current/modules.mk
  echo "shared = $modpath_shared" >> $modpath_current/modules.mk
  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS INCLUDES; do
    if eval val=\"\$MOD_$var\"; test -n "$val"; then
      echo "MOD_$var = $val" >> $modpath_current/modules.mk
    fi
  done
  if test ! -z "$modpath_static" -o ! -z "$modpath_shared"; then
    MODULE_DIRS="$MODULE_DIRS $current_dir"
  else
    MODULE_CLEANDIRS="$MODULE_CLEANDIRS $current_dir"
  fi

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $modpath_current/Makefile"






  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_DIR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST BUILTIN_LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHLIBPATH_VAR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST OS_SPECIFIC_VARS"



PRE_SHARED_CMDS='echo ""'
POST_SHARED_CMDS='echo ""'


if test "$apache_need_shared" = "yes"; then
  if test -f $ac_aux_dir/ltconfig; then
    $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
  fi
  shared_build="shared-build"
fi


if test "$enable_so" = "yes" -o "$enable_so" = "static"; then
  case $host in
    *-ibm-aix*)

  if test "x$HTTPD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp\""
    HTTPD_LDFLAGS="-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
  else
    apr_addto_bugger="-Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $HTTPD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$SH_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting SH_LDFLAGS to \"\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)\""
    SH_LDFLAGS="\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
  else
    apr_addto_bugger="\$(EXTRA_LDFLAGS) \$(EXTRA_LIBS)"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $SH_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to SH_LDFLAGS"
        SH_LDFLAGS="$SH_LDFLAGS $i"
      fi
    done
  fi


  if test "x$UTIL_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting UTIL_LDFLAGS to \"-Wl,-uXML_Parse\""
    UTIL_LDFLAGS="-Wl,-uXML_Parse"
  else
    apr_addto_bugger="-Wl,-uXML_Parse"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $UTIL_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to UTIL_LDFLAGS"
        UTIL_LDFLAGS="$UTIL_LDFLAGS $i"
      fi
    done
  fi

      ;;
    *os390)

  if test "x$HTTPD_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting HTTPD_LDFLAGS to \"--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll\""
    HTTPD_LDFLAGS="--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
  else
    apr_addto_bugger="--main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $HTTPD_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to HTTPD_LDFLAGS"
        HTTPD_LDFLAGS="$HTTPD_LDFLAGS $i"
      fi
    done
  fi


  if test "x$SH_LDFLAGS" = "x"; then
    test "x$silent" != "xyes" && echo "  setting SH_LDFLAGS to \"--core-dll=$abs_srcdir/apachecore.dll\""
    SH_LDFLAGS="--core-dll=$abs_srcdir/apachecore.dll"
  else
    apr_addto_bugger="--core-dll=$abs_srcdir/apachecore.dll"
    for i in $apr_addto_bugger; do
      apr_addto_duplicate="0"
      for j in $SH_LDFLAGS; do
        if test "x$i" = "x$j"; then
          apr_addto_duplicate="1"
          break
        fi
      done
      if test $apr_addto_duplicate = "0"; then
        test "x$silent" != "xyes" && echo "  adding \"$i\" to SH_LDFLAGS"
        SH_LDFLAGS="$SH_LDFLAGS $i"
      fi
    done
  fi

  esac
  MOD_SO_ENABLED=yes
fi



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PRE_SHARED_CMDS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST POST_SHARED_CMDS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST shared_build"




# Check whether --with-program-name was given.
if test "${with_program_name+set}" = set; then :
  withval=$with_program_name;
  progname="$withval"
else

  progname="httpd"
fi


# SuExec parameters

# Check whether --with-suexec-bin was given.
if test "${with_suexec_bin+set}" = set; then :
  withval=$with_suexec_bin;

cat >>confdefs.h <<_ACEOF
#define SUEXEC_BIN "$withval"
_ACEOF


fi



# Check whether --with-suexec-caller was given.
if test "${with_suexec_caller+set}" = set; then :
  withval=$with_suexec_caller;

cat >>confdefs.h <<_ACEOF
#define AP_HTTPD_USER "$withval"
_ACEOF

fi



# Check whether --with-suexec-userdir was given.
if test "${with_suexec_userdir+set}" = set; then :
  withval=$with_suexec_userdir;

cat >>confdefs.h <<_ACEOF
#define AP_USERDIR_SUFFIX "$withval"
_ACEOF

fi



# Check whether --with-suexec-docroot was given.
if test "${with_suexec_docroot+set}" = set; then :
  withval=$with_suexec_docroot;

cat >>confdefs.h <<_ACEOF
#define AP_DOC_ROOT "$withval"
_ACEOF

fi



# Check whether --with-suexec-uidmin was given.
if test "${with_suexec_uidmin+set}" = set; then :
  withval=$with_suexec_uidmin;

cat >>confdefs.h <<_ACEOF
#define AP_UID_MIN $withval
_ACEOF

fi



# Check whether --with-suexec-gidmin was given.
if test "${with_suexec_gidmin+set}" = set; then :
  withval=$with_suexec_gidmin;

cat >>confdefs.h <<_ACEOF
#define AP_GID_MIN $withval
_ACEOF

fi



# Check whether --with-suexec-logfile was given.
if test "${with_suexec_logfile+set}" = set; then :
  withval=$with_suexec_logfile;

cat >>confdefs.h <<_ACEOF
#define AP_LOG_EXEC "$withval"
_ACEOF

fi



# Check whether --with-suexec-safepath was given.
if test "${with_suexec_safepath+set}" = set; then :
  withval=$with_suexec_safepath;

cat >>confdefs.h <<_ACEOF
#define AP_SAFE_PATH "$withval"
_ACEOF

fi



# Check whether --with-suexec-umask was given.
if test "${with_suexec_umask+set}" = set; then :
  withval=$with_suexec_umask;

cat >>confdefs.h <<_ACEOF
#define AP_SUEXEC_UMASK 0$withval
_ACEOF

fi


if test x${apu_found} != xobsolete; then
  AP_LIBS="$AP_LIBS `$apu_config --avoid-ldap --link-libtool --libs`"
fi
AP_LIBS="$AP_LIBS `$apr_config --link-libtool --libs`"

  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_BUILD_SRCLIB_DIRS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AP_CLEAN_SRCLIB_DIRS"




$as_echo "#define AP_USING_AUTOCONF 1" >>confdefs.h


if test "$SINGLE_LISTEN_UNSERIALIZED_ACCEPT" = "1"; then

$as_echo "#define SINGLE_LISTEN_UNSERIALIZED_ACCEPT 1" >>confdefs.h

fi

if test "$AP_NONBLOCK_WHEN_MULTI_LISTEN" = "1"; then

$as_echo "#define AP_NONBLOCK_WHEN_MULTI_LISTEN 1" >>confdefs.h

fi


apr_old_cppflags=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $INCLUDES"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <apr.h>
#if APR_HAVE_IPV6
YES_IS_DEFINED
#endif

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  ac_cv_define_APR_HAVE_IPV6=yes
else
  ac_cv_define_APR_HAVE_IPV6=no
fi
rm -f conftest*

CPPFLAGS=$apr_old_cppflags


# Check whether --enable-v4-mapped was given.
if test "${enable_v4_mapped+set}" = set; then :
  enableval=$enable_v4_mapped;
  v4mapped=$enableval

else

    case $host in
    *freebsd[1234].*)
        v4mapped=yes
        ;;
    *freebsd*|*netbsd*|*openbsd*)
        v4mapped=no
        ;;
    *)
        v4mapped=yes
        ;;
    esac
    if ap_mpm_is_enabled winnt; then
                v4mapped=no
    fi

fi


if test $v4mapped = "yes" -a $ac_cv_define_APR_HAVE_IPV6 = "yes"; then

$as_echo "#define AP_ENABLE_V4_MAPPED 1" >>confdefs.h

fi


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES Makefile modules/Makefile srclib/Makefile"


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES os/Makefile server/Makefile"


  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES support/Makefile"


if test -d ./test; then

  APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES test/Makefile"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: Restore user-defined environment settings..." >&5
$as_echo "$as_me: Restore user-defined environment settings..." >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}

APACHE_CONF_SEL_CC=${CC}
APACHE_CONF_SEL_CFLAGS="${CFLAGS} ${EXTRA_CFLAGS} ${NOTEST_CFLAGS}"
APACHE_CONF_SEL_CPPFLAGS="${CPPFLAGS} ${EXTRA_CPPFLAGS} ${NOTEST_CPPFLAGS}"
APACHE_CONF_SEL_LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS} ${NOTEST_LDFLAGS}"
APACHE_CONF_SEL_LIBS="${LIBS} ${EXTRA_LIBS} ${NOTEST_LIBS}"
APACHE_CONF_SEL_CPP=${CPP}


set X $apr_ste_save_CPPFLAGS
if test ${#} -eq 1; then
  EXTRA_CPPFLAGS="$CPPFLAGS"
  CPPFLAGS=
else
  if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
    EXTRA_CPPFLAGS=
  else
    EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
    CPPFLAGS="$apr_ste_save_CPPFLAGS"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring CPPFLAGS to \"$CPPFLAGS\""
  echo "  setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
fi



set X $apr_ste_save_CFLAGS
if test ${#} -eq 1; then
  EXTRA_CFLAGS="$CFLAGS"
  CFLAGS=
else
  if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
    EXTRA_CFLAGS=
  else
    EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
    CFLAGS="$apr_ste_save_CFLAGS"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring CFLAGS to \"$CFLAGS\""
  echo "  setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
fi



set X $apr_ste_save_CXXFLAGS
if test ${#} -eq 1; then
  EXTRA_CXXFLAGS="$CXXFLAGS"
  CXXFLAGS=
else
  if test "x$apr_ste_save_CXXFLAGS" = "x$CXXFLAGS"; then
    EXTRA_CXXFLAGS=
  else
    EXTRA_CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s%${apr_ste_save_CXXFLAGS}%%"`
    CXXFLAGS="$apr_ste_save_CXXFLAGS"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring CXXFLAGS to \"$CXXFLAGS\""
  echo "  setting EXTRA_CXXFLAGS to \"$EXTRA_CXXFLAGS\""
fi



set X $apr_ste_save_LDFLAGS
if test ${#} -eq 1; then
  EXTRA_LDFLAGS="$LDFLAGS"
  LDFLAGS=
else
  if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
    EXTRA_LDFLAGS=
  else
    EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
    LDFLAGS="$apr_ste_save_LDFLAGS"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring LDFLAGS to \"$LDFLAGS\""
  echo "  setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
fi



set X $apr_ste_save_LIBS
if test ${#} -eq 1; then
  EXTRA_LIBS="$LIBS"
  LIBS=
else
  if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
    EXTRA_LIBS=
  else
    EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
    LIBS="$apr_ste_save_LIBS"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring LIBS to \"$LIBS\""
  echo "  setting EXTRA_LIBS to \"$EXTRA_LIBS\""
fi



set X $apr_ste_save_INCLUDES
if test ${#} -eq 1; then
  EXTRA_INCLUDES="$INCLUDES"
  INCLUDES=
else
  if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
    EXTRA_INCLUDES=
  else
    EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
    INCLUDES="$apr_ste_save_INCLUDES"
  fi
fi
if test "x$silent" != "xyes"; then
  echo "  restoring INCLUDES to \"$INCLUDES\""
  echo "  setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: Construct makefiles and header files..." >&5
$as_echo "$as_me: Construct makefiles and header files..." >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
$as_echo "$as_me: " >&6;}



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_VERSION"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_MMN"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST abs_srcdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST bindir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sbindir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST cgidir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST logfiledir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST exec_prefix"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST datadir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST localstatedir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST mandir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST libexecdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST htdocsdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST manualdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST includedir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST errordir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST iconsdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST sysconfdir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST installbuilddir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST runtimedir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST proxycachedir"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST other_targets"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST progname"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST prefix"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST AWK"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CC"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPP"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXX"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CPPFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CXXFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LTFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LT_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST HTTPD_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST UTIL_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DEFS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INCLUDES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CPPFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_CXXFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST NOTEST_LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CPPFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_CXXFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LDFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST EXTRA_INCLUDES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INTERNAL_CPPFLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LIBTOOL"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SHELL"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST RSYNC"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_DIRS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MODULE_CLEANDIRS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST PORT"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SSLPORT"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB_FILE"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST CORE_IMPLIB"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST SH_LIBTOOL"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MK_IMPLIB"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MKDEP"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST INSTALL_PROG_FLAGS"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST MPM_MODULES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ENABLED_MPM_MODULE"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST DSO_MODULES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST ENABLED_DSO_MODULES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST LOAD_ALL_MODULES"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_BINDIR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_INCLUDEDIR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_VERSION"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APR_CONFIG"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_BINDIR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_INCLUDEDIR"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_VERSION"



  APACHE_VAR_SUBST="$APACHE_VAR_SUBST APU_CONFIG"



  abs_srcdir="`(cd $srcdir && pwd)`"

  { $as_echo "$as_me:${as_lineno-$LINENO}: creating config_vars.mk" >&5
$as_echo "$as_me: creating config_vars.mk" >&6;}
  test -d build || $mkdir_p build
  > build/config_vars.mk
  for i in $APACHE_VAR_SUBST; do
    eval echo "$i = \$$i" >> build/config_vars.mk
  done


rm -f modules.c
echo $MODLIST | $AWK -f $srcdir/build/build-modules-c.awk > modules.c


ap_last=
ap_cur="$prefix"
while test "x${ap_cur}" != "x${ap_last}";
do
  ap_last="${ap_cur}"
  ap_cur=`eval "echo ${ap_cur}"`
done
ap_prefix="${ap_cur}"


cat >>confdefs.h <<_ACEOF
#define HTTPD_ROOT "${ap_prefix}"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define SERVER_CONFIG_FILE "${rel_sysconfdir}/${progname}.conf"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define AP_TYPES_CONFIG_FILE "${rel_sysconfdir}/mime.types"
_ACEOF


perlbin=`$ac_aux_dir/PrintPath perl`
if test "x$perlbin" = "x"; then
    perlbin="/replace/with/path/to/perl/interpreter"
fi



BSD_MAKEFILE=no
ap_make_include=include
ap_make_delimiter=' '
case $host in
*bsdi*)
    # Check whether they've installed GNU make
    if make --version > /dev/null 2>&1; then
        true
    else
        BSD_MAKEFILE=yes
        ap_make_include=.include
        ap_make_delimiter='"'
    fi
    ;;
esac



test -d docs/conf||$mkdir_p docs/conf

ac_config_files="$ac_config_files docs/conf/httpd.conf docs/conf/extra/httpd-autoindex.conf docs/conf/extra/httpd-dav.conf docs/conf/extra/httpd-default.conf docs/conf/extra/httpd-info.conf docs/conf/extra/httpd-languages.conf docs/conf/extra/httpd-manual.conf docs/conf/extra/httpd-mpm.conf docs/conf/extra/httpd-multilang-errordoc.conf docs/conf/extra/httpd-ssl.conf docs/conf/extra/httpd-userdir.conf docs/conf/extra/httpd-vhosts.conf docs/conf/extra/proxy-html.conf include/ap_config_layout.h support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk build/pkg/pkginfo build/config_vars.sh"

ac_config_commands="$ac_config_commands default"

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do