I got your script to install Suhosin and change it adding the follow lines:
Section "User Configuration Options"
subsection "What features do you want enabled?"
LIBSSH2FEATURES="--prefix=${INSTALLDIR}"
SSH2FEATURES="--prefix=${INSTALLDIR} --with-ssh2"
I added code to download the libssh2 and ssh2.
I added code to extract the files downloaded.
After code to compile and install Suhosin, I added the follow code:
#LIBSSH2
cd ${SRCDIR}/${LIBSSH2}
# to fix the error (cannot specify -o with -c or -S and multiple compilations)
find . -name Makefile.in -exec
perl -pi.bak -e 's/$(CC)s+-os+[w_-]+?.o/$(CC)/' {} ;
# compile and install
./configure ${LIBSSH2FEATURES}
# make clean
nice -n ${NICE} make
#SSH2
cd ${SRCDIR}/${SSH2}
$PHP_PREFIX/phpize
./configure ${SSH2FEATURES}
# make clean
nice -n ${NICE} make
but when script run "./configure ${SSH2FEATURES}" appear the follow error:
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /home/mydomain/php5
checking for PHP includes... -I/home/mydomain/php5/include/php -I/home/mydomain/php5/include/php/main -I/home/mydomain/php5/include/php/TSRM -I/home/mydomain/php5/include/php/Zend -I/home/mydomain/php5/include/php/ext -I/home/mydomain/php5/include/php/ext/date/lib
checking for PHP extension directory... /home/mydomain/php5/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /home/mydomain/php5/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for ssh2 support... yes, shared
checking for ssh2 files in default path... not found
configure: error: The required libssh2 library was not found. You can obtain that package from http://sourceforge.net/projects/libssh2/
but I installed libssh2. I googled many times but don't found any solution.
PLEASE, ANYBODY HELP ME!!!