1998-11-23 01:04:09 +03:00
|
|
|
#! /bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2001-07-31 22:05:26 +04:00
|
|
|
# Make it possible to specify path in the environment
|
|
|
|
: ${AUTOCONF=autoconf}
|
|
|
|
: ${AUTOHEADER=autoheader}
|
|
|
|
: ${AUTOMAKE=automake}
|
|
|
|
: ${ACLOCAL=aclocal}
|
|
|
|
: ${GETTEXTIZE=gettextize}
|
|
|
|
|
1998-03-23 10:12:13 +03:00
|
|
|
srcdir=`dirname $0`
|
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
|
|
|
(
|
|
|
|
cd $srcdir
|
2001-04-06 22:01:31 +04:00
|
|
|
|
2001-07-31 22:05:26 +04:00
|
|
|
# Ensure that gettext is reasonably new.
|
|
|
|
gettext_ver=`$GETTEXTIZE --version | sed -n '1s/^.* //p'`
|
|
|
|
|
|
|
|
case $gettext_ver in
|
|
|
|
0.10.3[89]) ;;
|
|
|
|
*) echo "Don't use gettext other than versions 0.10.38 and 0.10.39"
|
|
|
|
exit 1;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
rm -rf intl
|
|
|
|
$GETTEXTIZE --copy --force >tmpout || exit 1
|
|
|
|
rm -f po/ChangeLog
|
|
|
|
mv po/ChangeLog~ po/ChangeLog
|
|
|
|
|
|
|
|
# Ugly way to parse the instructions gettexize gives us.
|
|
|
|
m4files="`cat tmpout | sed -n -e '/^Please/,/^from/s/^ *//p'`"
|
|
|
|
fromdir=`cat tmpout | sed -n -e '/^Please/,/^from/s/^from the \([^ ]*\) .*$/\1/p'`
|
|
|
|
rm tmpout
|
|
|
|
rm -rf gettext.m4
|
|
|
|
mkdir gettext.m4
|
|
|
|
for i in $m4files; do
|
|
|
|
cp -f $fromdir/$i gettext.m4
|
|
|
|
done
|
|
|
|
|
2001-08-25 00:30:05 +04:00
|
|
|
$ACLOCAL -I gettext.m4 $ACLOCAL_FLAGS || \
|
|
|
|
$ACLOCAL $ACLOCAL_FLAGS || \
|
2001-08-21 08:11:57 +04:00
|
|
|
exit 1
|
2001-07-31 22:05:26 +04:00
|
|
|
$AUTOHEADER || exit 1
|
|
|
|
$AUTOCONF || exit 1
|
|
|
|
$AUTOMAKE -a || exit 1
|
2001-04-06 22:01:31 +04:00
|
|
|
|
2000-08-18 08:16:25 +04:00
|
|
|
cd vfs/samba || exit 1
|
2001-02-08 03:01:21 +03:00
|
|
|
date -u >include/stamp-h.in
|
2001-07-31 22:05:26 +04:00
|
|
|
$AUTOHEADER || exit 1
|
|
|
|
$AUTOCONF || exit 1
|
2000-08-18 08:16:25 +04:00
|
|
|
) || exit 1
|
1998-03-23 10:12:13 +03:00
|
|
|
|
2000-08-24 18:13:00 +04:00
|
|
|
$srcdir/configure --cache-file=config.cache --enable-maintainer-mode "$@"
|