2 # Run this to generate all the initial makefiles, etc.
6 if [ -n "$GNOME2_DIR" ]; then
7 ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
8 LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
9 PATH="$GNOME2_DIR/bin:$PATH"
11 export LD_LIBRARY_PATH
14 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
16 echo "**Error**: You must have \`autoconf' installed to compile $PKG_NAME."
17 echo "Download the appropriate package for your distribution,"
18 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
22 (grep "^AC_PROG_INTLTOOL" $srcdir/configure.in >/dev/null) && {
23 (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
25 echo "**Error**: You must have \`intltoolize' installed to compile $PKG_NAME."
26 echo "Get ftp://ftp.gnome.org/pub/GNOME/stable/sources/intltool/intltool-0.10.tar.gz"
27 echo "(or a newer version if it is available)"
32 (grep "^AM_PROG_XML_I18N_TOOLS" $srcdir/configure.in >/dev/null) && {
33 (xml-i18n-toolize --version) < /dev/null > /dev/null 2>&1 || {
35 echo "**Error**: You must have \`xml-i18n-toolize' installed to compile $PKG_NAME."
36 echo "Get ftp://ftp.gnome.org/pub/GNOME/stable/sources/xml-i18n-tools/xml-i18n-tools-0.9.tar.gz"
37 echo "(or a newer version of xml-i18n-tools or intltool if it is available)"
42 (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
43 (libtool --version) < /dev/null > /dev/null 2>&1 || {
45 echo "**Error**: You must have \`libtool' installed to compile $PKG_NAME."
46 echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
47 echo "(or a newer version if it is available)"
52 grep "^AM_[A-Z0-9_]\{1,\}_GETTEXT" $srcdir/configure.in >/dev/null && {
53 grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
54 (gettext --version) < /dev/null > /dev/null 2>&1 || {
56 echo "**Error**: You must have \`gettext' installed to compile $PKG_NAME."
57 echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
58 echo "(or a newer version if it is available)"
63 (automake --version) < /dev/null > /dev/null 2>&1 || {
65 echo "**Error**: You must have \`automake' installed to compile $PKG_NAME."
66 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
67 echo "(or a newer version if it is available)"
73 # if no automake, don't bother testing for aclocal
74 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
76 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
77 echo "installed doesn't appear recent enough."
78 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
79 echo "(or a newer version if it is available)"
83 if test "$DIE" -eq 1; then
88 echo "**Warning**: I am going to run \`configure' with no arguments."
89 echo "If you wish to pass any to it, please specify them on the"
90 echo \`$0\'" command line."
96 am_opt=--include-deps;;
99 for coin in `find $srcdir -name configure.in -print`
102 if test -f $dr/NO-AUTO-GEN; then
103 echo skipping $dr -- flagged as no auto-gen
108 aclocalinclude="$ACLOCAL_FLAGS"
109 if grep "^AM_[A-Z0-9_]\+_GETTEXT" configure.in >/dev/null; then
110 if grep "sed.*POTFILES" configure.in >/dev/null; then
111 : do nothing -- we still have an old unmodified configure.in
113 echo "Creating $dr/aclocal.m4 ..."
114 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
115 echo "Running gettextize... Ignore non-fatal messages."
116 echo "no" | gettextize --force --copy
117 echo "Making $dr/aclocal.m4 writable ..."
118 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
121 if grep "^AC_PROG_INTLTOOL" configure.in >/dev/null; then
122 echo "Running intltoolize..."
123 intltoolize --copy --force --automake
125 if grep "^AM_PROG_XML_I18N_TOOLS" configure.in >/dev/null; then
126 echo "Running xml-i18n-toolize..."
127 xml-i18n-toolize --copy --force --automake
129 if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
130 if test -z "$NO_LIBTOOLIZE" ; then
131 echo "Running libtoolize..."
132 libtoolize --force --copy
135 echo "Running aclocal $aclocalinclude ..."
136 aclocal $aclocalinclude
137 if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
138 echo "Running autoheader..."
141 echo "Running automake --gnu $am_opt ..."
142 automake --add-missing --gnu $am_opt
143 echo "Running autoconf ..."
149 conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
151 if test x$NOCONFIGURE = x; then
152 echo Running $srcdir/configure $conf_flags "$@" ...
153 $srcdir/configure $conf_flags "$@" \
154 && echo Now type \`make\' to compile $PKG_NAME || exit 1
156 echo Skipping configure process.