~ubuntu-branches/ubuntu/trusty/subversion/trusty-proposed

« back to all changes in this revision

Viewing changes to build/ac-macros/apr.m4

  • Committer: Package Import Robot
  • Author(s): Andy Whitcroft
  • Date: 2012-06-21 15:36:36 UTC
  • mfrom: (0.4.13 sid)
  • Revision ID: package-import@ubuntu.com-20120621153636-amqqmuidgwgxz1ly
Tags: 1.7.5-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Create pot file on build.
  - Build a python-subversion-dbg package.
  - Build-depend on python-dbg.
  - Build-depend on default-jre-headless/-jdk.
  - Do not apply java-build patch.
  - debian/rules: Manually create the doxygen output directory, otherwise
    we get weird build failures when running parallel builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl ===================================================================
 
2
dnl   Licensed to the Apache Software Foundation (ASF) under one
 
3
dnl   or more contributor license agreements.  See the NOTICE file
 
4
dnl   distributed with this work for additional information
 
5
dnl   regarding copyright ownership.  The ASF licenses this file
 
6
dnl   to you under the Apache License, Version 2.0 (the
 
7
dnl   "License"); you may not use this file except in compliance
 
8
dnl   with the License.  You may obtain a copy of the License at
 
9
dnl
 
10
dnl     http://www.apache.org/licenses/LICENSE-2.0
 
11
dnl
 
12
dnl   Unless required by applicable law or agreed to in writing,
 
13
dnl   software distributed under the License is distributed on an
 
14
dnl   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 
15
dnl   KIND, either express or implied.  See the License for the
 
16
dnl   specific language governing permissions and limitations
 
17
dnl   under the License.
 
18
dnl ===================================================================
1
19
dnl
2
20
dnl  SVN_LIB_APR(wanted_regex, alt_wanted_regex)
3
21
dnl
59
77
    AC_MSG_ERROR([apr-config --cflags failed])
60
78
  fi
61
79
 
62
 
  LDFLAGS="$LDFLAGS `$apr_config --ldflags`"
 
80
  apr_ldflags="`$apr_config --ldflags`"
63
81
  if test $? -ne 0; then
64
82
    AC_MSG_ERROR([apr-config --ldflags failed])
65
83
  fi
 
84
  LDFLAGS="$LDFLAGS `SVN_REMOVE_STANDARD_LIB_DIRS($apr_ldflags)`"
66
85
 
67
86
  SVN_APR_INCLUDES="`$apr_config --includes`"
68
87
  if test $? -ne 0; then
74
93
    AC_MSG_ERROR([apr-config --prefix failed])
75
94
  fi
76
95
 
77
 
  dnl When APR stores the dependent libs in the .la file, we don't need 
78
 
  dnl --libs.
79
 
  SVN_APR_LIBS="`$apr_config --link-libtool --libs`"
80
 
  if test $? -ne 0; then
81
 
    AC_MSG_ERROR([apr-config --link-libtool --libs failed])
82
 
  fi
83
 
 
84
 
  SVN_APR_EXPORT_LIBS="`$apr_config --link-ld --libs`"
85
 
  if test $? -ne 0; then
86
 
    AC_MSG_ERROR([apr-config --link-ld --libs failed])
87
 
  fi
 
96
  if test "$enable_all_static" = "yes"; then
 
97
    SVN_APR_LIBS="`$apr_config --link-ld --libs`"
 
98
    if test $? -ne 0; then
 
99
      AC_MSG_ERROR([apr-config --link-ld --libs failed])
 
100
    fi
 
101
  else
 
102
    SVN_APR_LIBS="`$apr_config --link-ld`"
 
103
    if test $? -ne 0; then
 
104
      AC_MSG_ERROR([apr-config --link-ld failed])
 
105
    fi
 
106
  fi
 
107
  SVN_APR_LIBS="`SVN_REMOVE_STANDARD_LIB_DIRS($SVN_APR_LIBS)`"
88
108
 
89
109
  SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`"
90
110
  if test $? -ne 0; then
92
112
  fi
93
113
 
94
114
  AC_SUBST(SVN_APR_PREFIX)
 
115
  AC_SUBST(SVN_APR_CONFIG, ["$apr_config"])
95
116
  AC_SUBST(SVN_APR_INCLUDES)
96
117
  AC_SUBST(SVN_APR_LIBS)
97
 
  AC_SUBST(SVN_APR_EXPORT_LIBS)
98
118
  AC_SUBST(SVN_APR_SHLIB_PATH_VAR)
99
119
])
100
120
 
111
131
  echo "get it with SVN and put it in a subdirectory of this source:"
112
132
  echo ""
113
133
  echo "   svn co \\"
114
 
  echo "    http://svn.apache.org/repos/asf/apr/apr/branches/1.2.x \\"
 
134
  echo "    http://svn.apache.org/repos/asf/apr/apr/branches/1.3.x \\"
115
135
  echo "    apr"
116
136
  echo ""
117
137
  echo "Run that right here in the top level of the Subversion tree."
124
144
  echo "getting both from SVN with:"
125
145
  echo ""
126
146
  echo "   svn co \\"
127
 
  echo "    http://svn.apache.org/repos/asf/apr/apr-util/branches/1.2.x \\"
 
147
  echo "    http://svn.apache.org/repos/asf/apr/apr-util/branches/1.3.x \\"
128
148
  echo "    apr-util"
129
149
  echo ""
130
150
  AC_MSG_ERROR([no suitable apr found])