~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/dist/s_config

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -
 
2
#       $Id: s_config,v 1.5 2001/05/22 01:00:30 bostic Exp $
 
3
#
 
4
# Build the autoconfiguration files.
 
5
 
 
6
trap 'rm -f aclocal.m4 ; exit 0' 0 1 2 3 13 15
 
7
 
 
8
msgac="# DO NOT EDIT: automatically built by dist/s_config."
 
9
 
 
10
. ./RELEASE
 
11
 
 
12
echo "Building aclocal.m4"
 
13
(echo "$msgac" &&
 
14
 echo "AC_DEFUN(AM_VERSION_SET, [" &&
 
15
 echo "AC_SUBST(DB_VERSION_MAJOR)" &&
 
16
 echo "DB_VERSION_MAJOR=$DB_VERSION_MAJOR" &&
 
17
 echo "AC_SUBST(DB_VERSION_MINOR)" &&
 
18
 echo "DB_VERSION_MINOR=$DB_VERSION_MINOR" &&
 
19
 echo "AC_SUBST(DB_VERSION_PATCH)" &&
 
20
 echo "DB_VERSION_PATCH=$DB_VERSION_PATCH" &&
 
21
 echo "AC_SUBST(DB_VERSION_UNIQUE_NAME)" &&
 
22
 echo "DB_VERSION_UNIQUE_NAME=$DB_VERSION_UNIQUE_NAME" &&
 
23
 echo "AC_SUBST(DB_VERSION_STRING)" &&
 
24
 echo "DB_VERSION_STRING=\"\\\"$DB_VERSION_STRING\\\"\"" &&
 
25
 echo "])" &&
 
26
 cat aclocal/*.ac) > aclocal.m4
 
27
 
 
28
echo "Running autoheader to build config.hin"
 
29
rm -f config.hin
 
30
autoheader -W all > config.hin
 
31
chmod 444 config.hin
 
32
 
 
33
echo "Running autoconf to build configure"
 
34
rm -f configure
 
35
autoconf -W no-cross
 
36
chmod 555 configure
 
37
 
 
38
chmod 555 config.guess config.sub install-sh