~ubuntu-branches/ubuntu/lucid/thaifonts-scalable/lucid-updates

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Theppitak Karoonboonyanan
  • Date: 2006-12-23 21:39:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061223213951-b8y4mk9im1tbrpsh
Tags: 1:0.4.5-2
* Add fontconfig file to register fonts with generic families
  - debian/fontconfig/65-ttf-thai-tlwg.conf: the config file
  - debian/ttf-thai-tlwg.install: install the config file to
    /etc/fonts/conf.avail/
  - debian/ttf-thai-tlwg.links: create link from /etc/fonts/conf.d/
  - debian/rules: call dh_link
* Install lintian-overrides file with dh_install.
* Bump debhelper compat to level 5.
* Remove unneeded debian/*.dirs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
# Run this to generate all the initial makefiles, etc.
3
 
 
4
 
srcdir=`dirname $0`
5
 
PKG_NAME="libthai"
6
 
 
7
 
DIE=0
8
 
 
9
 
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
10
 
  echo
11
 
  echo "**Error**: You must have \`autoconf' installed to."
12
 
  echo "Download the appropriate package for your distribution,"
13
 
  echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
14
 
  DIE=1
15
 
}
16
 
 
17
 
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
18
 
  (libtool --version) < /dev/null > /dev/null 2>&1 || {
19
 
    echo
20
 
    echo "**Error**: You must have \`libtool' installed."
21
 
    echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
22
 
    echo "(or a newer version if it is available)"
23
 
    DIE=1
24
 
  }
25
 
}
26
 
 
27
 
grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
28
 
  grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
29
 
  (gettext --version) < /dev/null > /dev/null 2>&1 || {
30
 
    echo
31
 
    echo "**Error**: You must have \`gettext' installed."
32
 
    echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
33
 
    echo "(or a newer version if it is available)"
34
 
    DIE=1
35
 
  }
36
 
}
37
 
 
38
 
grep "^AM_GNOME_GETTEXT" $srcdir/configure.in >/dev/null && {
39
 
  grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
40
 
  (gettext --version) < /dev/null > /dev/null 2>&1 || {
41
 
    echo
42
 
    echo "**Error**: You must have \`gettext' installed."
43
 
    echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
44
 
    echo "(or a newer version if it is available)"
45
 
    DIE=1
46
 
  }
47
 
}
48
 
 
49
 
(automake --version) < /dev/null > /dev/null 2>&1 || {
50
 
  echo
51
 
  echo "**Error**: You must have \`automake' installed."
52
 
  echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
53
 
  echo "(or a newer version if it is available)"
54
 
  DIE=1
55
 
  NO_AUTOMAKE=yes
56
 
}
57
 
 
58
 
 
59
 
# if no automake, don't bother testing for aclocal
60
 
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
61
 
  echo
62
 
  echo "**Error**: Missing \`aclocal'.  The version of \`automake'"
63
 
  echo "installed doesn't appear recent enough."
64
 
  echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
65
 
  echo "(or a newer version if it is available)"
66
 
  DIE=1
67
 
}
68
 
 
69
 
if test "$DIE" -eq 1; then
70
 
  exit 1
71
 
fi
72
 
 
73
 
case $CC in
74
 
xlc )
75
 
  am_opt=--include-deps;;
76
 
esac
77
 
 
78
 
for coin in `find $srcdir -name configure.in -print`
79
 
do 
80
 
  dr=`dirname $coin`
81
 
  if test -f $dr/NO-AUTO-GEN; then
82
 
    echo skipping $dr -- flagged as no auto-gen
83
 
  else
84
 
    echo processing $dr
85
 
    macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
86
 
    ( cd $dr
87
 
      aclocalinclude="$ACLOCAL_FLAGS"
88
 
      for k in $macrodirs; do
89
 
        if test -d $k; then
90
 
          aclocalinclude="$aclocalinclude -I $k"
91
 
        ##else 
92
 
        ##  echo "**Warning**: No such directory \`$k'.  Ignored."
93
 
        fi
94
 
      done
95
 
      if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then
96
 
        if grep "sed.*POTFILES" configure.in >/dev/null; then
97
 
          : do nothing -- we still have an old unmodified configure.in
98
 
        else
99
 
          echo "Creating $dr/aclocal.m4 ..."
100
 
          test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
101
 
          echo "Running gettextize...  Ignore non-fatal messages."
102
 
          echo "no" | gettextize --force --copy
103
 
          echo "Making $dr/aclocal.m4 writable ..."
104
 
          test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
105
 
        fi
106
 
      fi
107
 
      if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then
108
 
        echo "Creating $dr/aclocal.m4 ..."
109
 
        test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
110
 
        echo "Running gettextize...  Ignore non-fatal messages."
111
 
        echo "no" | gettextize --force --copy
112
 
        echo "Making $dr/aclocal.m4 writable ..."
113
 
        test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
114
 
      fi
115
 
      if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
116
 
        echo "Running libtoolize..."
117
 
        libtoolize --force --copy
118
 
      fi
119
 
      echo "Running aclocal $aclocalinclude ..."
120
 
      aclocal $aclocalinclude
121
 
      if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
122
 
        echo "Running autoheader..."
123
 
        autoheader
124
 
      fi
125
 
      echo "Running automake --gnu $am_opt ..."
126
 
      automake --add-missing --gnu $am_opt
127
 
      echo "Running autoconf ..."
128
 
      autoconf
129
 
    ) || DIE=1
130
 
  fi
131
 
done
132
 
 
133
 
if test "$DIE" -eq 0; then
134
 
  echo "You can run ./configure now"
135
 
fi
136