config_vars.sh.in 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #! @SHELL@
  2. # -*- sh -*-
  3. #
  4. # Licensed to the Apache Software Foundation (ASF) under one or more
  5. # contributor license agreements. See the NOTICE file distributed with
  6. # this work for additional information regarding copyright ownership.
  7. # The ASF licenses this file to You under the Apache License, Version 2.0
  8. # (the "License"); you may not use this file except in compliance with
  9. # the License. You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS,
  15. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. # See the License for the specific language governing permissions and
  17. # limitations under the License.
  18. # config_vars.sh is generated by configure, and is run by the "install-build"
  19. # target to generate a version of config_vars.mk which is suitable to be
  20. # installed. Such a file cannot be generated at configure-time, since it
  21. # requires the output of the *installed* ap*-config scripts.
  22. # For a DESTDIR=... installation using the bundled copies of
  23. # apr/apr-util, the installed ap?-config scripts must be found
  24. # in the DESTDIR-relocated install tree. For a DESTDIR=...
  25. # installation when using *external* copies of apr/apr-util,
  26. # the absolute path must be used, not DESTDIR-relocated.
  27. if test -f ${DESTDIR}@APR_CONFIG@; then
  28. APR_CONFIG=${DESTDIR}@APR_CONFIG@
  29. APU_CONFIG=${DESTDIR}@APU_CONFIG@
  30. else
  31. APR_CONFIG=@APR_CONFIG@
  32. APU_CONFIG=@APU_CONFIG@
  33. fi
  34. APR_LIBTOOL="`${APR_CONFIG} --apr-libtool`"
  35. APR_INCLUDEDIR="`${APR_CONFIG} --includedir`"
  36. APU_INCLUDEDIR="`${APU_CONFIG} --includedir`"
  37. installbuilddir="@exp_installbuilddir@"
  38. exec sed "
  39. /^[A-Z_]*_LDADD/d
  40. /MPM_LIB/d
  41. /APACHECTL_ULIMIT/d
  42. /[a-z]*_LTFLAGS/d
  43. /^DSO_MODULES/d
  44. /^MODULE_/d
  45. /^PORT/d
  46. /^SSLPORT/d
  47. /^nonssl_/d
  48. /^CORE_IMPLIB/d
  49. /^rel_/d
  50. /^abs_srcdir/d
  51. /^BUILTIN_LIBS/d
  52. /^[A-Z]*_SHARED_CMDS/d
  53. /^shared_build/d
  54. /^OS_DIR/d
  55. /^AP_LIBS/d
  56. /^OS_SPECIFIC_VARS/d
  57. /^MPM_SUBDIR_NAME/d
  58. /^EXTRA_INCLUDES/{
  59. s, = , = -I\$(includedir) ,
  60. s, -I\$(top_srcdir)/[^ ]*,,g
  61. s, -I\$(top_builddir)/[^ ]*,,g
  62. }
  63. /^MKINSTALLDIRS/s,\$(abs_srcdir)/build,$installbuilddir,
  64. /^INSTALL /s,\$(abs_srcdir)/build,$installbuilddir,
  65. /^HTTPD_LDFLAGS/d
  66. /^UTIL_LDFLAGS/d
  67. /^APR_INCLUDEDIR.*$/s,.*,APR_INCLUDEDIR = ${APR_INCLUDEDIR},
  68. /^APU_INCLUDEDIR.*$/s,.*,APU_INCLUDEDIR = ${APU_INCLUDEDIR},
  69. /^LIBTOOL.*$/s,/[^ ]*/libtool \(.*\),${APR_LIBTOOL} @LTFLAGS@,
  70. "