[devel] Added SunOS support to configure.ac and Makefile.am

This commit is contained in:
Glenn Randers-Pehrson
2011-09-01 14:06:49 -05:00
parent 63071acbd9
commit 83bd94f1f4
6 changed files with 85 additions and 23 deletions

View File

@@ -104,7 +104,26 @@ case $host in
AC_MSG_RESULT(no)
;;
* )
GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
AC_MSG_CHECKING([if using Solaris linker])
SLD=`$LD --version 2>&1 | grep Solaris`
if test "$SLD"; then
have_solaris_ld=yes
AC_MSG_RESULT(yes)
else
have_solaris_ld=no
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(HAVE_SOLARIS_LD, test "$have_solaris_ld" = "yes")
AC_MSG_CHECKING([if libraries can be versioned])
if test "$have_solaris_ld" = "yes"; then
GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
else
GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
fi
if test "$GLD"; then
if test "$GLD"; then
have_ld_version_script=yes
AC_MSG_RESULT(yes)