From 775d63211bee3d5c7d84ad9f68917d11ce236bfb Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 19 Dec 2006 00:47:37 +0000 Subject: [PATCH] automistake git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3709 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- configure | 13 +++++++++++++ configure.in | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/configure b/configure index 0caedbdd12..de1b01c5f4 100755 --- a/configure +++ b/configure @@ -20664,6 +20664,19 @@ case "$host" in IN_LINE=inline DYNAMIC_LIB_EXTEN="so" ;; + *) + if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then + SOLINK="-Bdynamic -dy -G" + new_AM_CFLAGS="-KPIC -DPIC" + new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib" + elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then + SOLINK="-shared -Xlinker -x" + new_AM_CFLAGS="-fPIC" + new_AM_LDFLAGS="" + fi + DYNAMIC_LIB_EXTEN="so" + IN_LINE=inline + ;; esac diff --git a/configure.in b/configure.in index 66f8a4812e..a0bf3ee448 100644 --- a/configure.in +++ b/configure.in @@ -91,6 +91,19 @@ case "$host" in IN_LINE=inline DYNAMIC_LIB_EXTEN="so" ;; + *) + if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then + SOLINK="-Bdynamic -dy -G" + new_AM_CFLAGS="-KPIC -DPIC" + new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib" + elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then + SOLINK="-shared -Xlinker -x" + new_AM_CFLAGS="-fPIC" + new_AM_LDFLAGS="" + fi + DYNAMIC_LIB_EXTEN="so" + IN_LINE=inline + ;; esac AC_SUBST(new_AM_CFLAGS) AC_SUBST(new_AM_LDFLAGS)