You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fi...@apache.org on 2001/04/29 07:24:11 UTC

cvs commit: httpd-2.0/server/mpm/spmt_os2 config5.m4

fielding    01/04/28 22:24:11

  Modified:    .        CHANGES INSTALL acinclude.m4 configure.in hints.m4
               build    rules.mk
               modules/aaa config.m4
               modules/cache config.m4
               modules/dav/main config5.m4
               modules/echo config.m4
               modules/filters config.m4
               modules/generators config5.m4
               modules/mappers config9.m4
               modules/metadata config.m4
               modules/tls config.m4
               os/beos  config.m4
               os/os2   config.m4
               server   Makefile.in config.m4
               server/mpm/spmt_os2 config5.m4
  Log:
  Completely revamp configure so that it preserves the standard make
  variables CPPFLAGS, CFLAGS, CXXFLAGS, LDFLAGS and LIBS by moving
  the configure additions to EXTRA_* variables.  Also, allow the user
  to specify NOTEST_* values for all of the above, which eliminates the
  need for THREAD_CPPFLAGS, THREAD_CFLAGS, and OPTIM.  Fix the setting
  of INCLUDES and EXTRA_INCLUDES.  Check flags as they are added to
  avoid pointless duplications.  Fix the order in which flags are given
  on the compile and link lines.
  
  Revision  Changes    Path
  1.188     +9 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.187
  retrieving revision 1.188
  diff -u -r1.187 -r1.188
  --- CHANGES	2001/04/27 18:02:18	1.187
  +++ CHANGES	2001/04/29 05:24:08	1.188
  @@ -1,5 +1,14 @@
   Changes with Apache 2.0.18-dev
   
  +  *) Completely revamp configure so that it preserves the standard make
  +     variables CPPFLAGS, CFLAGS, CXXFLAGS, LDFLAGS and LIBS by moving
  +     the configure additions to EXTRA_* variables.  Also, allow the user
  +     to specify NOTEST_* values for all of the above, which eliminates the
  +     need for THREAD_CPPFLAGS, THREAD_CFLAGS, and OPTIM.  Fix the setting
  +     of INCLUDES and EXTRA_INCLUDES.  Check flags as they are added to
  +     avoid pointless duplications.  Fix the order in which flags are given
  +     on the compile and link lines.  [Roy Fielding]
  +
     *) Get mod_tls to compile/work better on Windows.  PR #7612
        [Bernhard Schrenk <b....@improx.com>]
   
  
  
  
  1.11      +20 -16    httpd-2.0/INSTALL
  
  Index: INSTALL
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/INSTALL,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- INSTALL	2001/04/15 22:37:13	1.10
  +++ INSTALL	2001/04/29 05:24:08	1.11
  @@ -144,7 +144,7 @@
        additional modules mod_rewrite and mod_speling for later loading
        through the DSO mechanism:
   
  -     $ CC="pgcc" OPTIM="-O2" \
  +     $ CC="pgcc" CFLAGS="-O2" \
          ./configure --prefix=/sw/pkg/apache \
                      --enable-rewrite=shared \
                      --enable-speling=shared
  @@ -155,14 +155,14 @@
   
        Reference:
   
  -     $ [CC=...]        [CFLAGS_SHLIB=...]           [TARGET=...]
  -       [OPTIM=...]     [LD_SHLIB=...]
  -       [CFLAGS=...]    [LDFLAGS_SHLIB=...]        
  -       [INCLUDES=...]  [LDFLAGS_SHLIB_EXPORT=...] 
  -       [LDFLAGS=...]   [RANLIB=...]  
  -       [LIBS=...]      [DEPS=...]
  -       [NOTEST_CFLAGS=...]
  -       [NOTEST_LDFLAGS=...]
  +     $ [CC=...]        [TARGET=...]
  +       [CPPFLAGS=...]  [NOTEST_CPPFLAGS=...]
  +       [CFLAGS=...]    [NOTEST_CFLAGS=...]
  +       [CXXFLAGS=...]  [NOTEST_CXXFLAGS=...]
  +       [LDFLAGS=...]   [NOTEST_LDFLAGS=...]
  +       [LIBS=...]      [NOTEST_LIBS=...]
  +       [INCLUDES=...]  [SHLIB_PATH=...] 
  +
          ./configure
              [--quiet]         [--prefix=DIR]            [--enable-NAME=(shared)]
              [--verbose]       [--exec-prefix=PREFIX]    [--disable-NAME]
  @@ -183,14 +183,18 @@
                                [--without-support]       [--suexec-gidmin=GID]
                                [--without-confadjust]    [--suexec-safepath=PATH]
                                [--without-execstrip]
  -			     [--server-uid=UID]        [--with-maintainter-mode]
  +			     [--server-uid=UID]
   			     [--server-gid=GID]
  +
  +                             [--enable-maintainter-mode]
  +                             [--enable-debug]
  +
  +     Use the CC, CPPFLAGS, CFLAGS, CXXFLAGS, LDFLAGS, LIBS, INCLUDES,
  +     SHLIB_PATH and TARGET environment variables to override or expand the
  +     corresponding default entries as determined by configure.
   
  -     Use the CC, OPTIM, CFLAGS, INCLUDES, LDFLAGS, LIBS, CFLAGS_SHLIB,
  -     LD_SHLIB, LDFLAGS_SHLIB, LDFLAGS_SHLIB_EXPORT, RANLIB, DEPS and
  -     TARGET environment variables to override and expand the corresponding
  -     default entries as determined by configure. Use NOTEST_CFLAGS
  -     and NOTEST_LDFLAGS to add entries that should be used only during
  +     Use NOTEST_CPPFLAGS, NOTEST_CFLAGS, NOTEST_CXXFLAGS, NOTEST_LDFLAGS,
  +     and NOTEST_LIBS to add entries that should only be used during
        the actual build and compilation of Apache, such as -Werror.
   
        Use the --prefix=PREFIX and --exec-prefix=EPREFIX options to
  @@ -458,7 +462,7 @@
          subscribe to the `new-httpd' mailing list as described at
          http://www.apache.org/foundation/mailinglists.html
   
  -     Thanks for running Apache.
  +     Thanks for running Apache httpd.
   
                                             The Apache Group
                                             http://www.apache.org/
  
  
  
  1.78      +15 -15    httpd-2.0/acinclude.m4
  
  Index: acinclude.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/acinclude.m4,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- acinclude.m4	2001/04/27 18:29:11	1.77
  +++ acinclude.m4	2001/04/29 05:24:08	1.78
  @@ -54,21 +54,32 @@
     APACHE_SUBST(prefix)
     APACHE_SUBST(AWK)
     APACHE_SUBST(CC)
  -  APACHE_SUBST(CFLAGS)
  -  APACHE_SUBST(CPPFLAGS)
     APACHE_SUBST(CXX)
  +  APACHE_SUBST(CPPFLAGS)
  +  APACHE_SUBST(CFLAGS)
     APACHE_SUBST(CXXFLAGS)
     APACHE_SUBST(LTFLAGS)
     APACHE_SUBST(LDFLAGS)
     APACHE_SUBST(SH_LDFLAGS)
     APACHE_SUBST(HTTPD_LDFLAGS)
  +  APACHE_SUBST(LIBS)
     APACHE_SUBST(DEFS)
  +  APACHE_SUBST(INCLUDES)
  +  APACHE_SUBST(NOTEST_CPPFLAGS)
  +  APACHE_SUBST(NOTEST_CFLAGS)
  +  APACHE_SUBST(NOTEST_CXXFLAGS)
  +  APACHE_SUBST(NOTEST_LDFLAGS)
  +  APACHE_SUBST(NOTEST_LIBS)
  +  APACHE_SUBST(EXTRA_CPPFLAGS)
  +  APACHE_SUBST(EXTRA_CFLAGS)
  +  APACHE_SUBST(EXTRA_CXXFLAGS)
  +  APACHE_SUBST(EXTRA_LDFLAGS)
  +  APACHE_SUBST(EXTRA_LIBS)
  +  APACHE_SUBST(EXTRA_INCLUDES)
     APACHE_SUBST(LIBTOOL)
     APACHE_SUBST(SHELL)
     APACHE_SUBST(MODULE_DIRS)
     APACHE_SUBST(PORT)
  -  APACHE_SUBST(NOTEST_CFLAGS)
  -  APACHE_SUBST(NOTEST_LDFLAGS)
     APACHE_SUBST(CORE_IMPLIB_FILE)
     APACHE_SUBST(CORE_IMPLIB)
     APACHE_SUBST(SH_LIBTOOL)
  @@ -100,17 +111,6 @@
   dnl ## This macro can be used several times.
   AC_DEFUN(APACHE_OUTPUT, [
     APACHE_OUTPUT_FILES="$APACHE_OUTPUT_FILES $1"
  -])
  -
  -dnl
  -dnl AC_ADD_LIBRARY(library)
  -dnl
  -dnl add a library to the link line
  -dnl
  -AC_DEFUN(AC_ADD_LIBRARY,[
  -  APACHE_ONCE(LIBRARY, $1, [
  -    EXTRA_LIBS="$EXTRA_LIBS -l$1"
  -  ])
   ])
   
   dnl
  
  
  
  1.145     +67 -33    httpd-2.0/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/configure.in,v
  retrieving revision 1.144
  retrieving revision 1.145
  diff -u -r1.144 -r1.145
  --- configure.in	2001/04/19 13:56:02	1.144
  +++ configure.in	2001/04/29 05:24:08	1.145
  @@ -21,15 +21,53 @@
   sinclude(hints.m4)
   sinclude(acinclude.m4)
   
  +dnl Save user-defined environment settings for later restoration
  +dnl
  +APR_SAVE_THE_ENVIRONMENT(CPPFLAGS)
  +APR_SAVE_THE_ENVIRONMENT(CFLAGS)
  +APR_SAVE_THE_ENVIRONMENT(CXXFLAGS)
  +APR_SAVE_THE_ENVIRONMENT(LDFLAGS)
  +APR_SAVE_THE_ENVIRONMENT(LIBS)
  +APR_SAVE_THE_ENVIRONMENT(INCLUDES)
  +
  +dnl Generate ./config.nice for reproducing runs of configure
  +dnl
  +APR_CONFIG_NICE(config.nice)
  +
  +nl='
  +'
   dnl ## Run configure for packages Apache uses
  +
  +echo $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}"
  +
   APR_SUBDIR_CONFIG(srclib/apr, "$apache_apr_flags --disable-shared")
  +
  +echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
  +
   APR_SUBDIR_CONFIG(srclib/apr-util, "--with-apr=../apr --disable-shared")
  +
  +echo $ac_n "${nl}Configuring PCRE regular expression library ...${nl}"
  +
   APR_SUBDIR_CONFIG(srclib/pcre)
  +
  +echo $ac_n "${nl}Configuring Apache httpd ...${nl}"
  +
  +echo $ac_n "obtaining flag settings from the sub-configures...${nl}"
   . ./srclib/apr/APRVARS
   
  -dnl Generate ./config.nice for reproducing runs of configure
  +dnl Now that we have APR's EXTRA_flags in our environment, move them over
  +dnl to the normal variables to avoid duplications and use them for testing.
  +dnl We ignore EXTRA_INCLUDES because our own includes will encompass them.
   dnl
  -APR_CONFIG_NICE(config.nice)
  +APR_ADDTO(CFLAGS, $EXTRA_CFLAGS)
  +APR_ADDTO(CPPFLAGS, $EXTRA_CPPFLAGS)
  +APR_ADDTO(LDFLAGS, $EXTRA_LDFLAGS)
  +APR_ADDTO(LIBS, $EXTRA_LIBS)
  +EXTRA_CFLAGS=
  +EXTRA_CPPFLAGS=
  +EXTRA_LDFLAGS=
  +EXTRA_LIBS=
  +EXTRA_INCLUDES=
   
   dnl XXX we can't just use AC_PREFIX_DEFAULT because that isn't subbed in
   dnl by configure until it is too late.  Is that how it should be or not?
  @@ -47,6 +85,9 @@
   
   if test "$abs_builddir" != "$abs_srcdir"; then
     USE_VPATH=1
  +  APR_ADDTO(INCLUDES, [-I. -I\$(srcdir) -I\$(top_builddir)/os/\$(OS_DIR) -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_builddir)/server/mpm/\$(MPM_NAME) -I\$(top_srcdir)/server/mpm/\$(MPM_NAME) -I\$(top_builddir)/modules/http -I\$(top_srcdir)/modules/http -I\$(top_builddir)/include -I\$(top_srcdir)/include -I\$(top_builddir)/srclib/apr/include -I\$(top_srcdir)/srclib/apr/include -I\$(top_builddir)/srclib/apr-util/include -I\$(top_srcdir)/srclib/apr-util/include])
  +else
  +  APR_ADDTO(INCLUDES, [-I. -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/include -I\$(top_srcdir)/srclib/apr/include -I\$(top_srcdir)/srclib/apr-util/include])
   fi
   
   AC_CANONICAL_SYSTEM
  @@ -89,16 +130,6 @@
   AC_CHECK_TOOL(RANLIB, ranlib, true)
   dnl AC_PATH_PROG(PERL_PATH, perl)
   
  -#
  -# Play with CPPFLAGS given what was learned from APR_PRELOAD.
  -#
  -# XXX: APR only sets this if threads are enabled.  Either APR should be
  -# fixed to always set it (most likely), or we should test for threads.
  -#
  -if test -n "$THREAD_CPPFLAGS"; then
  -    CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
  -fi
  -
   dnl various OS checks that apparently set required flags
   AC_AIX
   AC_ISC_POSIX
  @@ -144,40 +175,31 @@
   AC_CHECK_LIB(nsl, gethostname)
   AC_CHECK_LIB(socket, socket)
   
  -AC_ARG_WITH(optim,[  --with-optim="FLAG"       obsolete (use OPTIM environment variable)],
  -        [AC_MSG_ERROR('option --with-optim is obsolete; use OPTIM environment variable instead')])
  -
   AC_ARG_WITH(port,[  --with-port=PORT        Port on which to listen (default is 80)],
           [if test "$withval" = "yes"; then AC_MSG_ERROR('option --with-port requires a value (the TCP port number)'); else PORT="$withval"; fi],
   	[PORT=80])
   
   AC_ARG_ENABLE(debug,[  --enable-debug            Turn on debugging and compile time warnings],
  -        [CFLAGS="$CFLAGS -g"; if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi])
  +  [APR_ADDTO(CFLAGS,-g)
  +   if test "$GCC" = "yes"; then
  +     APR_ADDTO(CFLAGS,-Wall)
  +   fi
  +])dnl
   
   AC_ARG_ENABLE(maintainer-mode,[  --enable-maintainer-mode  Turn on debugging and compile time warnings],
  -        [CFLAGS="$CFLAGS -g"; if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -DAP_DEBUG"; fi])
  +  [APR_ADDTO(CFLAGS,-g)
  +   if test "$GCC" = "yes"; then
  +     APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -DAP_DEBUG])
  +   fi
  +])dnl
   
   APACHE_ENABLE_LAYOUT
   APACHE_ENABLE_MODULES
   
  -INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/srclib/apr/include -I\$(top_srcdir)/srclib/apr-util/include"
  -if test -n "$USE_VPATH"; then
  -  INCLUDES="$INCLUDES -I\$(top_builddir)/include -I\$(top_builddir)/srclib/apr/include"
  -fi
  -
   dnl reading config stubs
   esyscmd(./build/config-stubs .)
   
  -INCLUDES="$INCLUDES -I\$(top_srcdir)/os/\$(OS_DIR)"
  -EXTRA_LIBS="$EXTRA_LIBS $LIBS"
  -EXTRA_LDFLAGS="$LDFLAGS"
  -LIBS=""
  -LDFLAGS=""
   APACHE_SUBST(progname)
  -APACHE_SUBST(EXTRA_CFLAGS)
  -APACHE_SUBST(EXTRA_LDFLAGS)
  -APACHE_SUBST(EXTRA_LIBS)
  -APACHE_SUBST(INCLUDES)
   APACHE_SUBST(MPM_LIB)
   APACHE_SUBST(OS)
   APACHE_SUBST(OS_DIR)
  @@ -205,7 +227,7 @@
         POST_SHARED_CMDS='rm $(top_builddir)/_APP_'
         ;;
       *os390)
  -      CFLAGS="$CFLAGS -Wc,DLL,EXPORTALL"
  +      APR_ADDTO(CFLAGS, [-Wc,DLL,EXPORTALL])
         ;;
     esac
     shared_build="shared-modules"
  @@ -292,8 +314,20 @@
   
   dnl get the exported vars from APRUTIL
   . ./srclib/apr-util/export_vars.sh
  -EXTRA_LIBS="$EXTRA_LIBS $APRUTIL_EXPORT_LIBS"
  +APR_ADDTO(LIBS, $APRUTIL_EXPORT_LIBS)
   AP_LIBS="$AP_LIBS $LIBTOOL_LIBS"
  +
  +dnl ## Finalize the variables
  +echo $ac_n "${nl}Restore user-defined environment settings...${nl}"
  +
  +APR_RESTORE_THE_ENVIRONMENT(CPPFLAGS, EXTRA_)
  +APR_RESTORE_THE_ENVIRONMENT(CFLAGS, EXTRA_)
  +APR_RESTORE_THE_ENVIRONMENT(CXXFLAGS, EXTRA_)
  +APR_RESTORE_THE_ENVIRONMENT(LDFLAGS, EXTRA_)
  +APR_RESTORE_THE_ENVIRONMENT(LIBS, EXTRA_)
  +APR_RESTORE_THE_ENVIRONMENT(INCLUDES, EXTRA_)
  +
  +echo $ac_n "${nl}Construct makefiles and header files...${nl}"
   
   APACHE_GEN_CONFIG_VARS
   
  
  
  
  1.6       +1 -1      httpd-2.0/hints.m4
  
  Index: hints.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/hints.m4,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- hints.m4	2001/01/12 04:10:02	1.5
  +++ hints.m4	2001/04/29 05:24:08	1.6
  @@ -58,6 +58,6 @@
           APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
           ;;
     esac
  -  APR_DOEXTRA
  +
   fi
   ])
  
  
  
  1.53      +19 -10    httpd-2.0/build/rules.mk
  
  Index: rules.mk
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/build/rules.mk,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- rules.mk	2001/04/19 19:02:54	1.52
  +++ rules.mk	2001/04/29 05:24:08	1.53
  @@ -56,11 +56,22 @@
   
   include $(top_builddir)/config_vars.mk
   
  +# Combine all of the flags together in the proper order so that
  +# the user-defined flags can always override the configure ones, if needed.
  +# Note that includes are listed after the flags because -I options have
  +# left-to-right precedence and CPPFLAGS may include user-defined overrides.
  +#
  +ALL_CPPFLAGS = $(DEFS) $(EXTRA_CPPFLAGS) $(NOTEST_CPPFLAGS) $(CPPFLAGS)
  +ALL_CFLAGS   = $(EXTRA_CFLAGS) $(NOTEST_CFLAGS) $(CFLAGS)
  +ALL_CXXFLAGS = $(EXTRA_CXXFLAGS) $(NOTEST_CXXFLAGS) $(CXXFLAGS)
  +ALL_LDFLAGS  = $(EXTRA_LDFLAGS) $(NOTEST_LDFLAGS) $(LDFLAGS)
  +ALL_LIBS     = $(EXTRA_LIBS) $(NOTEST_LIBS) $(LIBS)
  +ALL_INCLUDES = $(INCLUDES) $(EXTRA_INCLUDES)
  +
   # Compile commands
   
  -COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(EXTRA_CPPFLAGS) $(CPPFLAGS)
  -COMPILE      = $(CC)  $(COMMON_FLAGS) $(EXTRA_CFLAGS) $(CFLAGS) $(NOTEST_CFLAGS)
  -CXX_COMPILE  = $(CXX) $(COMMON_FLAGS) $(EXTRA_CXXFLAGS) $(CXXFLAGS)
  +COMPILE      = $(CC)  $(ALL_CPPFLAGS) $(ALL_CFLAGS) $(ALL_INCLUDES)
  +CXX_COMPILE  = $(CXX) $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $(ALL_INCLUDES)
   
   SH_COMPILE     = $(SH_LIBTOOL) --mode=compile $(COMPILE) -c $< && touch $@
   SH_CXX_COMPILE = $(SH_LIBTOOL) --mode=compile $(CXX_COMPILE) -c $< && touch $@
  @@ -70,9 +81,9 @@
   
   # Link-related commands
   
  -LINK     = $(LIBTOOL) --mode=link $(COMPILE) $(LTFLAGS) $(LDFLAGS) $(NOTEST_LDFLAGS) -o $@
  -SH_LINK  = $(SH_LIBTOOL) --mode=link $(COMPILE) $(LTFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(NOTEST_LDFLAGS) $(SH_LDFLAGS) $(CORE_IMPLIB) -o $@
  -MOD_LINK = $(LIBTOOL) --mode=link $(COMPILE) -module $(LTFLAGS) $(LDFLAGS) $(NOTEST_LDFLAGS) -o $@
  +LINK     = $(LIBTOOL) --mode=link $(COMPILE) $(LTFLAGS) $(ALL_LDFLAGS) -o $@
  +SH_LINK  = $(SH_LIBTOOL) --mode=link $(COMPILE) $(LTFLAGS) $(ALL_LDFLAGS) $(SH_LDFLAGS) $(CORE_IMPLIB) -o $@
  +MOD_LINK = $(LIBTOOL) --mode=link $(COMPILE) -module $(LTFLAGS) $(ALL_LDFLAGS) -o $@
   
   # Cross compile commands
   
  @@ -83,8 +94,6 @@
   INSTALL_DATA = $(INSTALL) -m 644
   INSTALL_PROGRAM = $(INSTALL) -m 755
   
  -DEFS = -I. -I$(srcdir) -I$(top_srcdir)/server/mpm/$(MPM_NAME) -I$(top_srcdir)/modules/http
  -
   # Suffixes
   
   CXX_SUFFIX = cpp
  @@ -214,9 +223,9 @@
   
   depend: depend-recursive
   	if test "`echo $(srcdir)/*.c`" != "$(srcdir)'/*.c'"; then \
  -	    gcc -MM $(COMMON_FLAGS) $(srcdir)/*.c | sed 's/\.o:/.lo:/' > $(builddir)/.deps || true;           \
  +	    gcc -MM $(ALL_CPPFLAGS) $(ALL_INCLUDES) $(srcdir)/*.c | sed 's/\.o:/.lo:/' > $(builddir)/.deps || true;           \
   	fi
  -#	    test "`echo *.c`" = '*.c' || perl $(top_srcdir)/build/mkdep.perl $(CPP) $(INCLUDES) $(EXTRA_INCLUDES) *.c > .deps
  +#	    test "`echo *.c`" = '*.c' || perl $(top_srcdir)/build/mkdep.perl $(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) *.c > .deps
   
   clean: clean-recursive clean-x
   
  
  
  
  1.41      +1 -1      httpd-2.0/modules/aaa/config.m4
  
  Index: config.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/aaa/config.m4,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- config.m4	2001/04/23 14:29:54	1.40
  +++ config.m4	2001/04/29 05:24:09	1.41
  @@ -16,6 +16,6 @@
   
   APACHE_MODULE(auth_digest, RFC2617 Digest authentication, , , most)
   
  -LTFLAGS="$LTFLAGS -export-dynamic"
  +APR_ADDTO(LTFLAGS,-export-dynamic)
   
   APACHE_MODPATH_FINISH
  
  
  
  1.4       +1 -1      httpd-2.0/modules/cache/config.m4
  
  Index: config.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/cache/config.m4,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- config.m4	2000/12/07 10:39:51	1.3
  +++ config.m4	2001/04/29 05:24:09	1.4
  @@ -6,6 +6,6 @@
   
   APACHE_MODULE(file_cache, File cache, , , no)
   
  -LTFLAGS="$LTFLAGS -export-dynamic"
  +APR_ADDTO(LTFLAGS,-export-dynamic)
   
   APACHE_MODPATH_FINISH
  
  
  
  1.2       +1 -1      httpd-2.0/modules/dav/main/config5.m4
  
  Index: config5.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/main/config5.m4,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- config5.m4	2001/04/12 15:12:48	1.1
  +++ config5.m4	2001/04/29 05:24:09	1.2
  @@ -15,7 +15,7 @@
   if test "$enable_dav" != "no"; then
     apache_need_expat=yes
   
  -  INCLUDES="$INCLUDES -I\$(top_srcdir)/$modpath_current"
  +  APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/$modpath_current])
   fi
   
   
  
  
  
  1.4       +1 -1      httpd-2.0/modules/echo/config.m4
  
  Index: config.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/echo/config.m4,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- config.m4	2000/12/07 10:39:52	1.3
  +++ config.m4	2001/04/29 05:24:09	1.4
  @@ -6,6 +6,6 @@
   
   APACHE_MODULE(echo, ECHO server, , , no)
   
  -LTFLAGS="$LTFLAGS -export-dynamic"
  +APR_ADDTO(LTFLAGS,-export-dynamic)
   
   APACHE_MODPATH_FINISH
  
  
  
  1.5       +1 -1      httpd-2.0/modules/filters/config.m4
  
  Index: config.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/filters/config.m4,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- config.m4	2001/02/16 13:38:20	1.4
  +++ config.m4	2001/04/29 05:24:09	1.5
  @@ -6,6 +6,6 @@
   
   APACHE_MODULE(include, Server Side Includes, , , yes)
   
  -LTFLAGS="$LTFLAGS -export-dynamic"
  +APR_ADDTO(LTFLAGS,-export-dynamic)
   
   APACHE_MODPATH_FINISH
  
  
  
  1.6       +1 -1      httpd-2.0/modules/generators/config5.m4
  
  Index: config5.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/config5.m4,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- config5.m4	2001/03/25 20:07:54	1.5
  +++ config5.m4	2001/04/29 05:24:09	1.6
  @@ -11,7 +11,7 @@
   APACHE_MODULE(suexec, set uid and gid for spawned processes, , , no, [
                 other_targets=suexec ] )
   
  -LTFLAGS="$LTFLAGS -export-dynamic"
  +APR_ADDTO(LTFLAGS,-export-dynamic)
   
   if test "$apache_cv_mpm" = "threaded" -o "$apache_cv_mpm" = "perchild"; then
   # if we are using a threaded MPM, we will get better performance with
  
  
  
  1.3       +1 -1      httpd-2.0/modules/mappers/config9.m4
  
  Index: config9.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/config9.m4,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- config9.m4	2001/04/23 14:29:57	1.2
  +++ config9.m4	2001/04/29 05:24:10	1.3
  @@ -14,7 +14,7 @@
   APACHE_MODULE(alias, translation of requests, , , yes)
   
   APACHE_MODULE(rewrite, regex URL translation, , , most, [
  -  EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_DBM_REWRITEMAP"
  +  APR_ADDTO(CFLAGS,-DNO_DBM_REWRITEMAP)
   ])
   
   dnl ### this isn't going to work quite right because of ordering issues
  
  
  
  1.4       +1 -1      httpd-2.0/modules/metadata/config.m4
  
  Index: config.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/metadata/config.m4,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- config.m4	2001/02/18 00:22:17	1.3
  +++ config.m4	2001/04/29 05:24:10	1.4
  @@ -18,6 +18,6 @@
   APACHE_MODULE(unique_id, per-request unique ids)
   APACHE_MODULE(setenvif, basing ENV vars on headers, , , yes)
   
  -LTFLAGS="$LTFLAGS -export-dynamic"
  +APR_ADDTO(LTFLAGS,-export-dynamic)
   
   APACHE_MODPATH_FINISH
  
  
  
  1.5       +8 -8      httpd-2.0/modules/tls/config.m4
  
  Index: config.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/tls/config.m4,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- config.m4	2001/04/27 08:41:01	1.4
  +++ config.m4	2001/04/29 05:24:10	1.5
  @@ -8,26 +8,26 @@
     [
         searchfile="$withval/inc/ssl.h"
         if test -f $searchfile ; then
  -          INCLUDES="$INCLUDES -I$withval/inc"
  -          LIBS="$LIBS -L$withval -lsslc"
  +          APR_ADDTO(INCLUDES, [-I$withval/inc])
  +          APR_ADDTO(LIBS, [-L$withval -lsslc])
             ssl_lib="SSLC"
         else
             searchfile="$withval/ssl/ssl.h"
             if test -f $searchfile ; then
  -              INCLUDES="$INCLUDES -I$withval/include"
  -              LIBS="$LIBS -L$withval -lssl -lcrypto"
  +              APR_ADDTO(INCLUDES, [-I$withval/include])
  +              APR_ADDTO(LIBS, [-L$withval -lssl -lcrypto])
                 ssl_lib="OpenSSL"
             else
                 searchfile="$withval/openssl/ssl.h"
                 if test -f $searchfile ; then
  -                  INCLUDES="$INCLUDES -I$withval/openssl"
  -                  LIBS="$LIBS -L$withval -lssl -lcrypto"
  +                  APR_ADDTO(INCLUDES, [-I$withval/openssl])
  +                  APR_ADDTO(LIBS, [-L$withval -lssl -lcrypto])
                     ssl_lib="OpenSSL"
                 else
                     searchfile="$withval/include/openssl/ssl.h"
                     if test -f $searchfile ; then
  -                      INCLUDES="$INCLUDES -I$withval/include"
  -                      LIBS="$LIBS -L$withval/lib -lssl -lcrypto"
  +                      APR_ADDTO(INCLUDES, [-I$withval/include])
  +                      APR_ADDTO(LIBS, [-L$withval/lib -lssl -lcrypto])
                         ssl_lib="OpenSSL"
                     else
                         AC_MSG_ERROR(no - Unable to locate $withval/inc/ssl.h)
  
  
  
  1.2       +1 -1      httpd-2.0/os/beos/config.m4
  
  Index: config.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/os/beos/config.m4,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- config.m4	2000/02/10 13:20:33	1.1
  +++ config.m4	2001/04/29 05:24:10	1.2
  @@ -1,3 +1,3 @@
   if test "$OS" = "beos" ; then
  -    CFLAGS="$CFLAGS -DBEOS"
  +    APR_ADDTO(CFLAGS,-DBEOS)
   fi
  
  
  
  1.3       +1 -1      httpd-2.0/os/os2/config.m4
  
  Index: config.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/os/os2/config.m4,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- config.m4	2001/04/02 15:20:45	1.2
  +++ config.m4	2001/04/29 05:24:10	1.3
  @@ -1,3 +1,3 @@
   if test "$OS" = "os2" ; then
  -  CFLAGS="$CFLAGS -DOS2 -O2"
  +  APR_ADDTO(CFLAGS, [-DOS2 -O2])
   fi
  
  
  
  1.42      +1 -1      httpd-2.0/server/Makefile.in
  
  Index: Makefile.in
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/Makefile.in,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- Makefile.in	2001/04/11 06:44:06	1.41
  +++ Makefile.in	2001/04/29 05:24:10	1.42
  @@ -66,4 +66,4 @@
   # Rule to make def file for OS/2 core dll
   ApacheCoreOS2.def: exports.c $(top_srcdir)/os/$(OS_DIR)/core_header.def
   	cat $(top_srcdir)/os/$(OS_DIR)/core_header.def > $@
  -	$(CPP) $< $(COMMON_FLAGS) | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/  "\1"/' >> $@
  +	$(CPP) $< $(ALL_CPPFLAGS) $(ALL_INCLUDES) | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/  "\1"/' >> $@
  
  
  
  1.10      +3 -9      httpd-2.0/server/config.m4
  
  Index: config.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/config.m4,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- config.m4	2001/02/10 14:04:17	1.9
  +++ config.m4	2001/04/29 05:24:11	1.10
  @@ -1,14 +1,8 @@
   dnl ## Check for libraries
   
  -AC_CHECK_LIB(nsl, gethostname, [
  - AC_ADD_LIBRARY(nsl) ], [])
  -
  -AC_CHECK_LIB(socket, socket, [
  - AC_ADD_LIBRARY(socket) ], [])
  -
  -AC_CHECK_LIB(nsl, gethostbyaddr, [
  - AC_ADD_LIBRARY(nsl) ], [])
  -
  +AC_CHECK_LIB(nsl, gethostname, APR_ADDTO(LIBS,-lnsl))
  +AC_CHECK_LIB(socket, socket, APR_ADDTO(LIBS,-lsocket))
  +AC_CHECK_LIB(nsl, gethostbyaddr, APR_ADDTO(LIBS,-lnsl))
   
   dnl ## Check for header files
   
  
  
  
  1.2       +1 -2      httpd-2.0/server/mpm/spmt_os2/config5.m4
  
  Index: config5.m4
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/spmt_os2/config5.m4,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- config5.m4	2001/04/03 18:37:15	1.1
  +++ config5.m4	2001/04/29 05:24:11	1.2
  @@ -1,6 +1,5 @@
   if test "$MPM_NAME" = "spmt_os2" ; then
       AC_CACHE_SAVE
       APACHE_FAST_OUTPUT(server/mpm/$MPM_NAME/Makefile)
  -    CFLAGS="$CFLAGS -Zmt"
  -    LDFLAGS="$LDFLAGS -Zmt"
  +    APR_ADDTO(CFLAGS,-Zmt)
   fi