This macro searches for an installed apache server. If nothing
was specified when calling configure or just --with-apache, it searches in
/usr/local/apache/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
The argument of --with-apache specifies the full pathname of the
httpd argument. For instance --with-apache=/usr/sbin/httpd.
If the version argument is given, AC_PROG_APACHE checks that the
apache server is this version number or higher.
If the apache server is not found, abort configuration with error
message.
It defines the symbol APACHE if the server is found.
Files using apache should do the following:
@APACHE@ -d /etc/httpd
It defines the symbol APACHE_MODULES if a directory containing mod_env.*
is found in the default server root directory (obtained with httpd -V).
The httpd.conf file listing modules to be loaded dynamicaly can use
@APACHE_MODULES@ to grab them in the appropriate sub directory. For
instance:
...
<IfModule mod_so.c>
LoadModule env_module @APACHE_MODULES@/mod_env.so
LoadModule config_log_module @APACHE_MODULES@/mod_log_config.so
...