2006-11-20 09:58:29 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-07-17 23:38:41 +02:00
|
|
|
LIBTOOLIZE="libtoolize"
|
|
|
|
|
2010-02-23 15:27:18 +01:00
|
|
|
if [ "x`which $LIBTOOLIZE`" = "x" ]; then
|
|
|
|
LIBTOOLIZE="glibtoolize"
|
2009-07-17 23:38:41 +02:00
|
|
|
fi
|
|
|
|
|
2010-02-23 15:27:18 +01:00
|
|
|
if [ "x`which $LIBTOOLIZE`" = "x" ]; then
|
|
|
|
echo "Neither libtoolize nor glibtoolize could be found!"
|
|
|
|
exit 1
|
2009-07-17 23:38:41 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
${LIBTOOLIZE} --copy --automake --force
|
2006-12-07 17:12:44 +01:00
|
|
|
${ACLOCAL:-aclocal} -I m4 $ACLOCAL_FLAGS
|
2006-11-20 09:58:29 +01:00
|
|
|
${AUTOHEADER:-autoheader}
|
2007-07-31 12:04:24 +02: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 13:46:56 +01:00
|
|
|
cp src/libssh2_config.h.in example/libssh2_config.h.in
|
2006-11-20 09:58:29 +01:00
|
|
|
${AUTOCONF:-autoconf}
|
2007-01-03 10:56:31 +01:00
|
|
|
${AUTOMAKE:-automake} --add-missing --copy
|