Ticket #4580: mceditor: segfault on new file creation.
[midnight-commander.git] / autogen.sh
blob8c06da89c33a9331f3d2ac05966b8d2f39e4536c
1 #!/bin/sh
3 set -e
5 # Use backticks to support ksh on Solaris
6 basedir=`dirname "$0"`
7 srcdir=`cd "$basedir" && pwd`
9 cd "$srcdir"
11 ${AUTORECONF:-autoreconf} --verbose --install --force -I m4 ${AUTORECONF_FLAGS}
13 # Customize the INSTALL file
14 rm -f INSTALL && ln -s doc/INSTALL
16 # Generate po/POTFILES.in
17 ${XGETTEXT:-xgettext} --keyword=_ --keyword=N_ --keyword=Q_ --output=- \
18 `find . -name '*.[ch]'` | ${SED-sed} -ne '/^#:/{s/#://;s/:[0-9]*/\
19 /g;s/ //g;p;}' | \
20 grep -v '^$' | sort | uniq >po/POTFILES.in
22 $srcdir/version.sh "$srcdir"
24 if test -x $srcdir/configure.mc; then
25 $srcdir/configure.mc "$@"