#! /bin/sh

. $EXTERNALS_CONFIG

cd $PACKAGE_NAME

if [ `uname` = SunOS ]
then
LIBS=-ldl ./configure --prefix=$PACKAGE_INSTALL_DIR --disable-shared --without-ssl --with-zlib=$EXTERNALS_INSTALL_DIR/$EXT_ZLIB_DIR --disable-ipv6
else
./configure --prefix=$PACKAGE_INSTALL_DIR --disable-shared --without-ssl --with-zlib=$EXTERNALS_INSTALL_DIR/$EXT_ZLIB_DIR --disable-ipv6
fi

if [ $? -ne 0 ]
then
	echo "configure failed"
	exit 1
fi

make
if [ $? -ne 0 ]
then
	echo "make failed"
	exit 1
fi

make install
if [ $? -ne 0 ]
then
	echo "make failed"
	exit 1
fi

#! /bin/sh

. $EXTERNALS_CONFIG

cd $PACKAGE_NAME

# Solaris curl external needs -ldl on the command line for ssl linking
if [ `uname` = "SunOS" ] ; then
    LIBS=-ldl ./configure --prefix=$PACKAGE_INSTALL_DIR --disable-shared --with-ssl=$EXTERNALS_INSTALL_DIR/$EXT_OPENSSL_VERSION --with-zlib=$EXTERNALS_INSTALL_DIR/$EXT_ZLIB_DIR --disable-ipv6
else
    ./configure --prefix=$PACKAGE_INSTALL_DIR --disable-shared --with-ssl=$EXTERNALS_INSTALL_DIR/$EXT_OPENSSL_VERSION --with-zlib=$EXTERNALS_INSTALL_DIR/$EXT_ZLIB_DIR --disable-ipv6
fi
if [ $? -ne 0 ]
then
	echo "configure failed"
	exit 1
fi

make
if [ $? -ne 0 ]
then
	echo "make failed"
	exit 1
fi

make install
if [ $? -ne 0 ]
then
	echo "make failed"
	exit 1
fi

Fix curl external on hpux and freebsd.
Fix curl external on hpux and freebsd.

The fix for solaris broke hpux and freebsd, but the externals caching
masked it. This is one of the dangers of changing an external build
script without changing the version.

This change is what should have been done. It fixes the problem on
solaris without changing things on any other platforms.
