don't link to installed libs, patch from stkn (fix for MODLANG-47)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6480 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b4c2c875b4
commit
0f1d4b9a70
|
@ -44,7 +44,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-fPIC"
|
new_AM_CFLAGS="-fPIC"
|
||||||
|
@ -64,7 +64,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
new_AM_CFLAGS="-fPIC"
|
new_AM_CFLAGS="-fPIC"
|
||||||
|
@ -76,7 +76,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
new_AM_CFLAGS="-fpic"
|
new_AM_CFLAGS="-fpic"
|
||||||
|
@ -84,6 +84,18 @@ case "$host" in
|
||||||
fi
|
fi
|
||||||
DYNAMIC_LIB_EXTEN="so"
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
;;
|
;;
|
||||||
|
x86_64-*-freebsd*|amd64-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fPIC"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
;;
|
||||||
|
i*6-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fpic"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
# Enable 64 bit build
|
# Enable 64 bit build
|
||||||
AC_ARG_ENABLE(64,
|
AC_ARG_ENABLE(64,
|
||||||
|
|
|
@ -38,12 +38,14 @@ AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
|
||||||
|
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-solaris2*)
|
*-solaris2*)
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then SOLINK="-Bdynamic -dy -G"
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
IN_LINE=""
|
IN_LINE=""
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then SOLINK="-Bdynamic -dy -G"
|
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-fPIC"
|
new_AM_CFLAGS="-fPIC"
|
||||||
new_AM_LDFLAGS=""
|
new_AM_LDFLAGS=""
|
||||||
IN_LINE=inline
|
IN_LINE=inline
|
||||||
|
@ -63,7 +65,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
@ -77,7 +79,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
@ -87,6 +89,20 @@ case "$host" in
|
||||||
DYNAMIC_LIB_EXTEN="so"
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
IN_LINE=inline
|
IN_LINE=inline
|
||||||
;;
|
;;
|
||||||
|
x86_64-*-freebsd*|amd64-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fPIC"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
IN_LINE=inline
|
||||||
|
;;
|
||||||
|
i*6-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fpic"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
IN_LINE=inline
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Enable 64 bit build
|
# Enable 64 bit build
|
||||||
|
|
|
@ -41,12 +41,14 @@ AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
|
||||||
|
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-solaris2*)
|
*-solaris2*)
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then SOLINK="-Bdynamic -dy -G"
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
IN_LINE=""
|
IN_LINE=""
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then SOLINK="-Bdynamic -dy -G"
|
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-fPIC"
|
new_AM_CFLAGS="-fPIC"
|
||||||
new_AM_LDFLAGS=""
|
new_AM_LDFLAGS=""
|
||||||
IN_LINE=inline
|
IN_LINE=inline
|
||||||
|
@ -66,7 +68,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
@ -80,7 +82,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
@ -90,6 +92,20 @@ case "$host" in
|
||||||
DYNAMIC_LIB_EXTEN="so"
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
IN_LINE=inline
|
IN_LINE=inline
|
||||||
;;
|
;;
|
||||||
|
x86_64-*-freebsd*|amd64-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fPIC"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
IN_LINE=inline
|
||||||
|
;;
|
||||||
|
i*6-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fpic"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
IN_LINE=inline
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
# Enable 64 bit build
|
# Enable 64 bit build
|
||||||
AC_ARG_ENABLE(64,
|
AC_ARG_ENABLE(64,
|
||||||
|
|
|
@ -40,10 +40,12 @@ AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
|
||||||
|
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-solaris2*)
|
*-solaris2*)
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then SOLINK="-Bdynamic -dy -G"
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then SOLINK="-Bdynamic -dy -G"
|
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-fPIC"
|
new_AM_CFLAGS="-fPIC"
|
||||||
new_AM_LDFLAGS=""
|
new_AM_LDFLAGS=""
|
||||||
IN_LINE=inline
|
IN_LINE=inline
|
||||||
|
@ -62,7 +64,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
new_AM_CFLAGS="-fPIC"
|
new_AM_CFLAGS="-fPIC"
|
||||||
|
@ -74,7 +76,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
new_AM_CFLAGS="-fpic"
|
new_AM_CFLAGS="-fpic"
|
||||||
|
@ -82,6 +84,18 @@ case "$host" in
|
||||||
fi
|
fi
|
||||||
DYNAMIC_LIB_EXTEN="so"
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
;;
|
;;
|
||||||
|
x86_64-*-freebsd*|amd64-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fPIC"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
;;
|
||||||
|
i*6-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fpic"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
# Enable 64 bit build
|
# Enable 64 bit build
|
||||||
AC_ARG_ENABLE(64,
|
AC_ARG_ENABLE(64,
|
||||||
|
|
|
@ -39,11 +39,13 @@ AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
|
||||||
|
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-solaris2*)
|
*-solaris2*)
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then SOLINK="-Bdynamic -dy -G"
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
IN_LINE=""
|
IN_LINE=""
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then SOLINK="-Bdynamic -dy -G"
|
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-fPIC"
|
new_AM_CFLAGS="-fPIC"
|
||||||
new_AM_LDFLAGS=""
|
new_AM_LDFLAGS=""
|
||||||
IN_LINE=inline
|
IN_LINE=inline
|
||||||
|
@ -63,7 +65,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
new_AM_CFLAGS="-fPIC"
|
new_AM_CFLAGS="-fPIC"
|
||||||
|
@ -76,7 +78,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
new_AM_CFLAGS="-fpic"
|
new_AM_CFLAGS="-fpic"
|
||||||
|
@ -89,7 +91,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
new_AM_CFLAGS="-fPIC"
|
new_AM_CFLAGS="-fPIC"
|
||||||
|
|
|
@ -179,8 +179,10 @@ AC_CACHE_CHECK([whether to build with NSPR], [ac_cv_with_nspr], [ac_cv_with_nspr
|
||||||
if test ".$ac_cv_with_nspr" = ".yes"; then
|
if test ".$ac_cv_with_nspr" = ".yes"; then
|
||||||
sinclude(nsprpub/config/nspr.m4)
|
sinclude(nsprpub/config/nspr.m4)
|
||||||
CPPFLAGS="$CPPFLAGS -DJS_THREADSAFE=1 -Insprpub/dist/include/nspr -Insprpub/pr/include"
|
CPPFLAGS="$CPPFLAGS -DJS_THREADSAFE=1 -Insprpub/dist/include/nspr -Insprpub/pr/include"
|
||||||
LDFLAGS="$LDFLAGS -L$prefix/lib -L./nsprpub/dist/lib -lnspr4"
|
LDFLAGS="$LDFLAGS -L./nsprpub/dist/lib"
|
||||||
|
LIBS="$LIBS -lnspr4"
|
||||||
LIBPATH="LD_LIBRARY_PATH=./nsprpub/dist/lib DYLD_LIBRARY_PATH=./nsprpub/dist/lib"
|
LIBPATH="LD_LIBRARY_PATH=./nsprpub/dist/lib DYLD_LIBRARY_PATH=./nsprpub/dist/lib"
|
||||||
|
AC_CHECK_LIB(pthread, pthread_create, [CLI_LIBS="$CLI_LIBS -lpthread"])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_DEFUN([AX_COMPILER_VENDOR],
|
AC_DEFUN([AX_COMPILER_VENDOR],
|
||||||
|
|
|
@ -1125,7 +1125,7 @@ tools are selected during the Xcode/Developer Tools installation.])
|
||||||
AC_DEFINE(FREEBSD)
|
AC_DEFINE(FREEBSD)
|
||||||
AC_DEFINE(HAVE_BSD_FLOCK)
|
AC_DEFINE(HAVE_BSD_FLOCK)
|
||||||
AC_DEFINE(HAVE_SOCKLEN_T)
|
AC_DEFINE(HAVE_SOCKLEN_T)
|
||||||
CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
|
CFLAGS="$CFLAGS -ansi -Wall"
|
||||||
MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
||||||
if test "$MOZ_OBJFORMAT" = "elf"; then
|
if test "$MOZ_OBJFORMAT" = "elf"; then
|
||||||
DLL_SUFFIX=so
|
DLL_SUFFIX=so
|
||||||
|
@ -1137,7 +1137,7 @@ tools are selected during the Xcode/Developer Tools installation.])
|
||||||
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
|
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
|
||||||
MDCPUCFG_H=_freebsd.cfg
|
MDCPUCFG_H=_freebsd.cfg
|
||||||
PR_MD_CSRCS=freebsd.c
|
PR_MD_CSRCS=freebsd.c
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*-hpux*)
|
*-hpux*)
|
||||||
AC_DEFINE(XP_UNIX)
|
AC_DEFINE(XP_UNIX)
|
||||||
|
|
|
@ -42,12 +42,14 @@ AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
|
||||||
|
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-solaris2*)
|
*-solaris2*)
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then SOLINK="-Bdynamic -dy -G"
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
IN_LINE=""
|
IN_LINE=""
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then SOLINK="-Bdynamic -dy -G"
|
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-fPIC"
|
new_AM_CFLAGS="-fPIC"
|
||||||
new_AM_LDFLAGS=""
|
new_AM_LDFLAGS=""
|
||||||
IN_LINE=inline
|
IN_LINE=inline
|
||||||
|
@ -67,7 +69,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
@ -81,7 +83,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
@ -95,7 +97,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
|
|
@ -47,12 +47,14 @@ AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
|
||||||
|
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-solaris2*)
|
*-solaris2*)
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then SOLINK="-Bdynamic -dy -G"
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
IN_LINE=""
|
IN_LINE=""
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then SOLINK="-Bdynamic -dy -G"
|
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-fPIC"
|
new_AM_CFLAGS="-fPIC"
|
||||||
new_AM_LDFLAGS=""
|
new_AM_LDFLAGS=""
|
||||||
IN_LINE=inline
|
IN_LINE=inline
|
||||||
|
@ -71,7 +73,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
@ -84,7 +86,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
@ -93,6 +95,18 @@ case "$host" in
|
||||||
fi
|
fi
|
||||||
DYNAMIC_LIB_EXTEN="so"
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
;;
|
;;
|
||||||
|
x86_64-*-freebsd*|amd64-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fPIC"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
;;
|
||||||
|
i*6-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fpic"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Enable 64 bit build
|
# Enable 64 bit build
|
||||||
|
|
|
@ -39,7 +39,7 @@ case "$host" in
|
||||||
*-solaris2*)
|
*-solaris2*)
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*-darwin*)
|
*-darwin*)
|
||||||
|
@ -55,6 +55,14 @@ case "$host" in
|
||||||
new_AM_CFLAGS="-fpic"
|
new_AM_CFLAGS="-fpic"
|
||||||
new_AM_LDFLAGS=""
|
new_AM_LDFLAGS=""
|
||||||
;;
|
;;
|
||||||
|
x86_64-*-freebsd*|amd64-*-freebsd*)
|
||||||
|
new_AM_CFLAGS="-fpic"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
;;
|
||||||
|
i*6-*-freebsd*)
|
||||||
|
new_AM_CFLAGS="-fpic"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST(new_AM_CFLAGS)
|
AC_SUBST(new_AM_CFLAGS)
|
||||||
AC_SUBST(new_AM_LDFLAGS)
|
AC_SUBST(new_AM_LDFLAGS)
|
||||||
|
|
|
@ -19,7 +19,7 @@ AC_ARG_ENABLE(oggtest, [ --disable-oggtest Do not try to compile and run
|
||||||
elif test "x$ogg_prefix" != "x" ; then
|
elif test "x$ogg_prefix" != "x" ; then
|
||||||
OGG_LIBS="-L$ogg_prefix/lib"
|
OGG_LIBS="-L$ogg_prefix/lib"
|
||||||
elif test "x$prefix" != "xNONE" ; then
|
elif test "x$prefix" != "xNONE" ; then
|
||||||
OGG_LIBS="-L$prefix/lib"
|
OGG_LIBS=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OGG_LIBS="$OGG_LIBS -logg"
|
OGG_LIBS="$OGG_LIBS -logg"
|
||||||
|
|
|
@ -21,7 +21,7 @@ AC_ARG_ENABLE(speextest, [ --disable-speextest Do not try to compile and
|
||||||
elif test "x$speex_prefix" != "x" ; then
|
elif test "x$speex_prefix" != "x" ; then
|
||||||
SPEEX_LIBS="-L$speex_prefix/lib"
|
SPEEX_LIBS="-L$speex_prefix/lib"
|
||||||
elif test "x$prefix" != "xNONE" ; then
|
elif test "x$prefix" != "xNONE" ; then
|
||||||
SPEEX_LIBS="-L$prefix/lib"
|
SPEEX_LIBS=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SPEEX_LIBS="$SPEEX_LIBS -lspeex"
|
SPEEX_LIBS="$SPEEX_LIBS -lspeex"
|
||||||
|
|
|
@ -40,7 +40,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
IN_LINE=""
|
IN_LINE=""
|
||||||
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
|
||||||
|
@ -63,7 +63,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
@ -76,7 +76,7 @@ case "$host" in
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
|
||||||
SOLINK="-Bdynamic -dy -G"
|
SOLINK="-Bdynamic -dy -G"
|
||||||
new_AM_CFLAGS="-KPIC -DPIC"
|
new_AM_CFLAGS="-KPIC -DPIC"
|
||||||
new_AM_LDFLAGS="-L${prefix}/lib -R${prefix}/lib"
|
new_AM_LDFLAGS="-R${prefix}/lib"
|
||||||
FUNC_DEF=__func__
|
FUNC_DEF=__func__
|
||||||
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
|
||||||
SOLINK="-shared -Xlinker -x"
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
@ -85,6 +85,18 @@ case "$host" in
|
||||||
fi
|
fi
|
||||||
DYNAMIC_LIB_EXTEN="so"
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
;;
|
;;
|
||||||
|
i*6*-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
;;
|
||||||
|
x86_64-*-freebsd*|amd64-*-freebsd*)
|
||||||
|
SOLINK="-shared -Xlinker -x"
|
||||||
|
new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
|
||||||
|
new_AM_LDFLAGS=""
|
||||||
|
DYNAMIC_LIB_EXTEN="so"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Enable 64 bit build
|
# Enable 64 bit build
|
||||||
|
|
Loading…
Reference in New Issue