~ubuntu-branches/debian/squeeze/libgpg-error/squeeze

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Jose Carlos Garcia Sogo
  • Date: 2006-09-24 16:33:03 UTC
  • mfrom: (1.2.1 upstream) (2.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20060924163303-2secsa8lts3hhhct
Tags: 1.4-1
* New upstream version.
* Bumped Standards-Version to 3.7.2. No changes needed.
* Use {binary:Version} field in libgpg-error-dev dependecy field. (Closes: #384376)
* Fix typo in upstream URL at debian/copyright file (Closes: #387735)
* debian/patches: Disable m4_macros and 10_relibtoolize patches.
  Upstream uses now a quite current copy of gettext.
* Update FSF address in debian/copyright file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
}
19
19
 
20
20
check_version () {
21
 
    if [ $(( `("$1" --version || echo "0") | cvtver` >= $2 )) == 1 ]; then
 
21
    if [ `("$1" --version || echo "0") | cvtver` -ge "$2" ]; then
22
22
       return 0
23
23
    fi
24
24
    echo "**Error**: "\`$1\'" not installed or too old." >&2
28
28
    return 1
29
29
}
30
30
 
 
31
DIE=no
 
32
 
 
33
# ***** W32 build script *******
 
34
# Used to cross-compile for Windows.
 
35
if test "$1" = "--build-w32"; then
 
36
    tmp=`dirname $0`
 
37
    tsdir=`cd "$tmp"; pwd`
 
38
    shift
 
39
    if [ ! -f $tsdir/config.guess ]; then
 
40
        echo "$tsdir/config.guess not found" >&2
 
41
        exit 1
 
42
    fi
 
43
    build=`$tsdir/config.guess`
 
44
 
 
45
    [ -z "$w32root" ] && w32root="$HOME/w32root"
 
46
    echo "Using $w32root as standard install directory" >&2
 
47
    
 
48
    # Locate the cross compiler
 
49
    crossbindir=
 
50
    for host in i586-mingw32msvc i386-mingw32msvc; do
 
51
        if ${host}-gcc --version >/dev/null 2>&1 ; then
 
52
            crossbindir=/usr/${host}/bin
 
53
            conf_CC="CC=${host}-gcc"
 
54
            break;
 
55
        fi
 
56
    done
 
57
    if [ -z "$crossbindir" ]; then
 
58
        echo "Cross compiler kit not installed" >&2
 
59
        echo "Under Debian GNU/Linux, you may install it using" >&2
 
60
        echo "  apt-get install mingw32 mingw32-runtime mingw32-binutils" >&2 
 
61
        echo "Stop." >&2
 
62
        exit 1
 
63
    fi
 
64
   
 
65
    if [ -f "$tsdir/config.log" ]; then
 
66
        if ! head $tsdir/config.log | grep "$host" >/dev/null; then
 
67
            echo "Pease run a 'make distclean' first" >&2
 
68
            exit 1
 
69
        fi
 
70
    fi
 
71
 
 
72
    ./configure --enable-maintainer-mode  --prefix=${w32root}  \
 
73
            --host=${host} --build=${build} 
 
74
 
 
75
    exit $?
 
76
fi
 
77
# ***** end W32 build script *******
 
78
 
31
79
 
32
80
# Grep the required versions from configure.ac
33
81
autoconf_vers=`sed -n '/^AC_PREREQ(/ { 
65
113
GETTEXT=${GETTEXT_PREFIX}${GETTEXT:-gettext}${GETTEXT_SUFFIX}
66
114
MSGMERGE=${GETTEXT_PREFIX}${MSGMERGE:-msgmerge}${GETTEXT_SUFFIX}
67
115
 
68
 
DIE=no
69
 
 
70
116
 
71
117
if check_version $AUTOCONF $autoconf_vers_num $autoconf_vers ; then
72
118
    check_version $AUTOHEADER $autoconf_vers_num $autoconf_vers autoconf
88
134
    exit 1
89
135
fi
90
136
 
91
 
echo "Running aclocal -I m4 ..."
92
 
$ACLOCAL -I m4
 
137
echo "Running aclocal -I m4 ${ACLOCAL_FLAGS:+$ACLOCAL_FLAGS }..."
 
138
$ACLOCAL -I m4 $ACLOCAL_FLAGS
93
139
echo "Running autoheader..."
94
140
$AUTOHEADER
95
141
echo "Running automake --gnu ..."