]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
automistake
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 19 Dec 2006 00:47:37 +0000 (00:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 19 Dec 2006 00:47:37 +0000 (00:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3709 d0543943-73ff-0310-b7d9-9358b9ac24b2

configure
configure.in

index 0caedbdd12eb81ead0d0510333d90794a5068472..de1b01c5f484073ba28f46f1fc36c6505107c705 100755 (executable)
--- 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
 
 
index 66f8a4812e5c5ec043032da4fe5b7d5d405713cc..a0bf3ee448efbcdf4a016a570936a9baf090683c 100644 (file)
@@ -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)