1
0
Fork 0

Minor fixes to configure script

This commit is contained in:
bagyenda 2007-04-23 13:37:44 +00:00
parent b5aa2c8e63
commit 561dafdca7
1 changed files with 3 additions and 1 deletions

View File

@ -66,6 +66,7 @@ AC_CHECK_FUNCS([floor localtime_r memset sqrt strerror strrchr strtol])
dnl Change a few things (a la kannel config)
EXE_EXT=""
LIB_EXT="a"
case "$host" in
*-sun-solaris*)
CFLAGS="$CFLAGS -DSunOS=1"
@ -75,6 +76,7 @@ case "$host" in
;;
*apple-darwin*)
CFLAGS="$CFLAGS -DDARWIN=1 -O4 -Wall"
LIB_EXT="dylib"
;;
*-linux-*)
CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -O4 -Wall"
@ -138,7 +140,7 @@ if test "$ssl" = "yes" ; then
dnl test only if --with-ssl has not been used
if test "x$ssllib" = "x" && test "x$sslinc" = "x"; then
for loc in /usr/lib /usr/local/ssl/lib /usr/local/openssl/lib; do
if test -f "$loc/libssl.a"; then
if test -f "$loc/libssl.$LIB_EXT"; then
ssllib="$loc"
fi
done