~ubuntu-branches/ubuntu/gutsy/curl/gutsy

« back to all changes in this revision

Viewing changes to buildconf

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-06-29 15:04:24 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060629150424-pn00qumt9sml8p4m
Tags: 7.15.4-1ubuntu1
Synchronize to Debian. Only change left: Removal of stunnel and
libdb4.2-dev build dependencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
 
2
#***************************************************************************
 
3
#                                  _   _ ____  _
 
4
#  Project                     ___| | | |  _ \| |
 
5
#                             / __| | | | |_) | |
 
6
#                            | (__| |_| |  _ <| |___
 
7
#                             \___|\___/|_| \_\_____|
 
8
#
 
9
# Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
 
10
#
 
11
# This software is licensed as described in the file COPYING, which
 
12
# you should have received as part of this distribution. The terms
 
13
# are also available at http://curl.haxx.se/docs/copyright.html.
 
14
#
 
15
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
 
16
# copies of the Software, and permit persons to whom the Software is
 
17
# furnished to do so, under the terms of the COPYING file.
 
18
#
 
19
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 
20
# KIND, either express or implied.
 
21
#
 
22
# $Id: buildconf,v 1.45 2006/01/06 22:08:39 bagder Exp $
 
23
###########################################################################
2
24
 
3
25
die(){
4
26
        echo "$@"
13
35
  IFS=":"
14
36
  for path in $PATH
15
37
  do
 
38
    # echo "checks for $file in $path" >&2
16
39
    if test -f "$path/$file"; then
17
40
      echo "$path/$file"
18
41
      return
85
108
 
86
109
echo "buildconf: automake version $am_version (ok)"
87
110
 
88
 
ac=`findtool aclocal`
89
 
 
 
111
ac=`findtool ${ACLOCAL:-aclocal}`
90
112
if test -z "$ac"; then
91
113
  echo "buildconf: aclocal not found. Weird automake installation!"
92
114
  exit 1
107
129
# glibtool, with 'libtool' being something completely different.
108
130
libtool=`findtool glibtool 2>/dev/null`
109
131
if test ! -x "$libtool"; then
110
 
  libtool=`findtool libtool`
 
132
  libtool=`findtool ${LIBTOOL:-libtool}`
111
133
fi
112
134
 
113
 
# set the LIBTOOLIZE here so that glibtoolize is used if glibtool was found
114
 
LIBTOOLIZE="${libtool}ize"
 
135
if test -z "$LIBTOOLIZE"; then
 
136
  # set the LIBTOOLIZE here so that glibtoolize is used if glibtool was found
 
137
  # $libtool is already the full path
 
138
  libtoolize="${libtool}ize"
 
139
else
 
140
  libtoolize=`findtool $LIBTOOLIZE`
 
141
fi
115
142
 
116
143
lt_pversion=`$libtool --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//g' -e 's/[- ].*//'`
117
144
if test -z "$lt_pversion"; then
150
177
 
151
178
echo "buildconf: libtool version $lt_version (ok)"
152
179
 
153
 
if test -f "$LIBTOOLIZE"; then
 
180
if test -f "$libtoolize"; then
154
181
  echo "buildconf: libtoolize found"
155
182
else
156
183
  echo "buildconf: libtoolize not found. Weird libtool installation!"
173
200
#--------------------------------------------------------------------------
174
201
# perl check
175
202
#
176
 
PERL=`findtool perl`
 
203
PERL=`findtool ${PERL:-perl}`
177
204
 
178
205
# ------------------------------------------------------------
179
206
 
180
207
# run the correct scripts now
181
208
 
182
209
echo "buildconf: running libtoolize"
183
 
${LIBTOOLIZE:-libtoolize} --copy --automake --force || die "The libtool command failed"
 
210
$libtoolize --copy --automake --force || die "The libtoolize command failed"
184
211
echo "buildconf: running aclocal"
185
212
${ACLOCAL:-aclocal} $ACLOCAL_FLAGS || die "The aclocal command line failed"
186
213
if test -n "$PERL"; then
199
226
 
200
227
if test -d ares; then
201
228
  cd ares
202
 
  echo "buildconf: running ares/libtoolize"
203
 
${LIBTOOLIZE:-libtoolize} --copy --automake --force || die "The libtool command failed"
204
 
  echo "buildconf: running ares/aclocal"
205
 
  ${ACLOCAL:-aclocal} $ACLOCAL_FLAGS || die "The ares aclocal command failed"
206
 
  echo "buildconf: running ares/autoconf"
207
 
  ${AUTOCONF:-autoconf}     || die "The ares autoconf command failed"
 
229
  echo "buildconf: running in ares"
 
230
  ./buildconf
208
231
  cd ..
209
232
fi
210
233