Blame build/config_vars.sh.in

Packit 90a5c9
#! @SHELL@
Packit 90a5c9
# -*- sh -*-
Packit 90a5c9
#
Packit 90a5c9
# Licensed to the Apache Software Foundation (ASF) under one or more
Packit 90a5c9
# contributor license agreements.  See the NOTICE file distributed with
Packit 90a5c9
# this work for additional information regarding copyright ownership.
Packit 90a5c9
# The ASF licenses this file to You under the Apache License, Version 2.0
Packit 90a5c9
# (the "License"); you may not use this file except in compliance with
Packit 90a5c9
# the License.  You may obtain a copy of the License at
Packit 90a5c9
#
Packit 90a5c9
#     http://www.apache.org/licenses/LICENSE-2.0
Packit 90a5c9
#
Packit 90a5c9
# Unless required by applicable law or agreed to in writing, software
Packit 90a5c9
# distributed under the License is distributed on an "AS IS" BASIS,
Packit 90a5c9
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 90a5c9
# See the License for the specific language governing permissions and
Packit 90a5c9
# limitations under the License.
Packit 90a5c9
Packit 90a5c9
# config_vars.sh is generated by configure, and is run by the "install-build"
Packit 90a5c9
# target to generate a version of config_vars.mk which is suitable to be
Packit 90a5c9
# installed.  Such a file cannot be generated at configure-time, since it
Packit 90a5c9
# requires the output of the *installed* ap*-config scripts.
Packit 90a5c9
Packit 90a5c9
# For a DESTDIR=... installation using the bundled copies of 
Packit 90a5c9
# apr/apr-util, the installed ap?-config scripts must be found 
Packit 90a5c9
# in the DESTDIR-relocated install tree.  For a DESTDIR=... 
Packit 90a5c9
# installation when using *external* copies of apr/apr-util,
Packit 90a5c9
# the absolute path must be used, not DESTDIR-relocated.
Packit 90a5c9
Packit 90a5c9
if test -f ${DESTDIR}@APR_CONFIG@; then
Packit 90a5c9
   APR_CONFIG=${DESTDIR}@APR_CONFIG@
Packit 90a5c9
   APU_CONFIG=${DESTDIR}@APU_CONFIG@
Packit 90a5c9
else
Packit 90a5c9
   APR_CONFIG=@APR_CONFIG@
Packit 90a5c9
   APU_CONFIG=@APU_CONFIG@
Packit 90a5c9
fi
Packit 90a5c9
Packit 90a5c9
APR_LIBTOOL="`${APR_CONFIG} --apr-libtool`"
Packit 90a5c9
APR_INCLUDEDIR="`${APR_CONFIG} --includedir`"
Packit 90a5c9
test -n "@APU_CONFIG@" && APU_INCLUDEDIR="`${APU_CONFIG} --includedir`"
Packit 90a5c9
Packit 90a5c9
installbuilddir="@exp_installbuilddir@"
Packit 90a5c9
Packit 90a5c9
exec sed "
Packit 90a5c9
/^[A-Z0-9_]*_LDADD/d
Packit 90a5c9
/MPM_LIB/d
Packit 90a5c9
/APACHECTL_ULIMIT/d
Packit 90a5c9
/[a-z]*_LTFLAGS/d
Packit 90a5c9
/^MPM_MODULES/d
Packit 90a5c9
/^ENABLED_MPM_MODULE/d
Packit 90a5c9
/^DSO_MODULES/d
Packit 90a5c9
/^MODULE_/d
Packit 90a5c9
/^PORT/d
Packit 90a5c9
/^SSLPORT/d
Packit 90a5c9
/^nonssl_/d
Packit 90a5c9
/^CORE_IMPLIB/d
Packit 90a5c9
/^rel_/d
Packit 90a5c9
/^abs_srcdir/d
Packit 90a5c9
/^BUILTIN_LIBS/d
Packit 90a5c9
/^[A-Z]*_SHARED_CMDS/d
Packit 90a5c9
/^shared_build/d
Packit 90a5c9
/^OS_DIR/d
Packit 90a5c9
/^AP_LIBS/d
Packit 90a5c9
/^OS_SPECIFIC_VARS/d
Packit 90a5c9
/^MPM_SUBDIRS/d
Packit 90a5c9
/^EXTRA_INCLUDES/{ 
Packit 90a5c9
  s, = , = -I\$(includedir) ,
Packit 90a5c9
  s, -I\$(top_srcdir)/[^ ]*,,g
Packit 90a5c9
  s, -I\$(top_builddir)/[^ ]*,,g
Packit 90a5c9
}
Packit 90a5c9
/^MKINSTALLDIRS/s,\$(abs_srcdir)/build,$installbuilddir,
Packit 90a5c9
/^INSTALL /s,\$(abs_srcdir)/build,$installbuilddir,
Packit 90a5c9
/^HTTPD_LDFLAGS/d
Packit 90a5c9
/^UTIL_LDFLAGS/d
Packit 90a5c9
/^APR_INCLUDEDIR.*$/s,.*,APR_INCLUDEDIR = ${APR_INCLUDEDIR},
Packit 90a5c9
/^APU_INCLUDEDIR.*$/s,.*,APU_INCLUDEDIR = ${APU_INCLUDEDIR},
Packit 90a5c9
/^LIBTOOL.*$/s,/[^ ]*/libtool \(.*\),${APR_LIBTOOL} @LTFLAGS@,
Packit 90a5c9
"