2006-11-20 11:58:29 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-07-18 01:38:41 +04:00
|
|
|
LIBTOOLIZE="libtoolize"
|
|
|
|
|
2010-02-23 17:27:18 +03:00
|
|
|
if [ "x`which $LIBTOOLIZE`" = "x" ]; then
|
|
|
|
LIBTOOLIZE="glibtoolize"
|
2009-07-18 01:38:41 +04:00
|
|
|
fi
|
|
|
|
|
2010-02-23 17:27:18 +03:00
|
|
|
if [ "x`which $LIBTOOLIZE`" = "x" ]; then
|
|
|
|
echo "Neither libtoolize nor glibtoolize could be found!"
|
|
|
|
exit 1
|
2009-07-18 01:38:41 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
${LIBTOOLIZE} --copy --automake --force
|
2006-12-07 19:12:44 +03:00
|
|
|
${ACLOCAL:-aclocal} -I m4 $ACLOCAL_FLAGS
|
2006-11-20 11:58:29 +03:00
|
|
|
${AUTOHEADER:-autoheader}
|
2007-07-31 14:04:24 +04:00
|
|
|
# copy the private libssh2_config.h.in to the examples dir so that
|
|
|
|
# it can be included without pointing the include path to the private
|
|
|
|
# source dir
|
2010-01-13 15:46:56 +03:00
|
|
|
cp src/libssh2_config.h.in example/libssh2_config.h.in
|
2006-11-20 11:58:29 +03:00
|
|
|
${AUTOCONF:-autoconf}
|
2007-01-03 12:56:31 +03:00
|
|
|
${AUTOMAKE:-automake} --add-missing --copy
|