1998-11-23 01:04:09 +03:00
|
|
|
#! /bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
1998-03-23 10:12:13 +03:00
|
|
|
srcdir=`dirname $0`
|
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
|
|
|
(
|
|
|
|
cd $srcdir
|
1998-09-08 16:21:59 +04:00
|
|
|
if test -d macros; then
|
1998-11-23 01:04:09 +03:00
|
|
|
test -f mc-aclocal.m4 && test -f gettext.m4 && cat mc-aclocal.m4 gettext.m4 > acinclude.m4
|
1998-11-24 20:42:49 +03:00
|
|
|
aclocal -I macros $ACLOCAL_FLAGS
|
1998-09-08 16:21:59 +04:00
|
|
|
else
|
|
|
|
echo macros directory not found, skipping generation of aclocal.m4
|
|
|
|
fi
|
1998-03-25 08:16:00 +03:00
|
|
|
autoheader
|
1998-03-20 05:54:06 +03:00
|
|
|
autoconf
|
1998-03-23 10:12:13 +03:00
|
|
|
)
|
|
|
|
|
1998-11-23 01:04:09 +03:00
|
|
|
if [ -z "$OBJ_DIR" ]; then
|
|
|
|
$srcdir/configure --enable-maintainer-mode $*
|
|
|
|
else
|
1998-11-20 07:31:28 +03:00
|
|
|
mkdir -p "$OBJ_DIR"
|
|
|
|
cd "$OBJ_DIR"
|
1998-11-23 01:04:09 +03:00
|
|
|
../configure --enable-maintainer-mode $*
|
1998-11-20 07:31:28 +03:00
|
|
|
fi
|