From 7675b5564cb49a9d23b48a05429430a9a46e7f8d Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Tue, 29 Nov 2005 21:22:00 +0000 Subject: [PATCH] Fix solaris MDCPUCFG_H settings. Bug #317599 r=dmose,wtc --- directory/c-sdk/configure | 42 ++++++++++++++++-------------------- directory/c-sdk/configure.in | 6 +----- 2 files changed, 20 insertions(+), 28 deletions(-) diff --git a/directory/c-sdk/configure b/directory/c-sdk/configure index e54d4b39c15..4f9529debb6 100755 --- a/directory/c-sdk/configure +++ b/directory/c-sdk/configure @@ -4693,11 +4693,7 @@ EOF #define HAVE_FCNTL_FILE_LOCKING 1 EOF - if test -n "$USE_64"; then - MDCPUCFG_H=_solaris64.cfg - else - MDCPUCFG_H=_solaris32.cfg - fi + MDCPUCFG_H=_solaris.cfg PR_MD_CSRCS=solaris.c LD=/usr/ccs/bin/ld RANLIB=/usr/ccs/bin/ranlib @@ -4859,12 +4855,12 @@ esac if test -z "$SKIP_LIBRARY_CHECKS"; then echo $ac_n "checking for dlopen""... $ac_c" 1>&6 -echo "configure:4863: checking for dlopen" >&5 +echo "configure:4859: checking for dlopen" >&5 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_dlopen=yes" else @@ -4906,7 +4902,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:4910: checking for dlopen in -ldl" >&5 +echo "configure:4906: checking for dlopen in -ldl" >&5 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4914,7 +4910,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4953,13 +4949,13 @@ fi if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:4957: checking whether ${CC-cc} needs -traditional" >&5 +echo "configure:4953: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext < Autoconf TIOCGETP @@ -4977,7 +4973,7 @@ rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext < Autoconf TCGETA @@ -5001,12 +4997,12 @@ fi for ac_func in lchown strerror do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5005: checking for $ac_func" >&5 +echo "configure:5001: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5067,7 +5063,7 @@ fi echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 -echo "configure:5071: checking for pthread_create in -lpthreads" >&5 +echo "configure:5067: checking for pthread_create in -lpthreads" >&5 echo " #include void *foo(void *v) { int a = 1; } @@ -5089,7 +5085,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:5093: checking for pthread_create in -lpthread" >&5 +echo "configure:5089: checking for pthread_create in -lpthread" >&5 echo " #include void *foo(void *v) { int a = 1; } @@ -5111,7 +5107,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 -echo "configure:5115: checking for pthread_create in -lc_r" >&5 +echo "configure:5111: checking for pthread_create in -lc_r" >&5 echo " #include void *foo(void *v) { int a = 1; } @@ -5133,7 +5129,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 -echo "configure:5137: checking for pthread_create in -lc" >&5 +echo "configure:5133: checking for pthread_create in -lc" >&5 echo " #include void *foo(void *v) { int a = 1; } @@ -5283,7 +5279,7 @@ if test -n "$USE_PTHREADS"; then rm -f conftest* ac_cv_have_dash_pthread=no echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6 -echo "configure:5287: checking whether ${CC-cc} accepts -pthread" >&5 +echo "configure:5283: checking whether ${CC-cc} accepts -pthread" >&5 echo 'int main() { return 0; }' | cat > conftest.c ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 if test $? -eq 0; then @@ -5299,7 +5295,7 @@ echo "configure:5287: checking whether ${CC-cc} accepts -pthread" >&5 ac_cv_have_dash_pthreads=no if test "$ac_cv_have_dash_pthread" = "no"; then echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6 -echo "configure:5303: checking whether ${CC-cc} accepts -pthreads" >&5 +echo "configure:5299: checking whether ${CC-cc} accepts -pthreads" >&5 echo 'int main() { return 0; }' | cat > conftest.c ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 if test $? -eq 0; then diff --git a/directory/c-sdk/configure.in b/directory/c-sdk/configure.in index 3f1ba692f06..3ad3a772fee 100644 --- a/directory/c-sdk/configure.in +++ b/directory/c-sdk/configure.in @@ -1697,11 +1697,7 @@ mips-sony-newsos*) AC_DEFINE(__svr4__) AC_DEFINE(SOLARIS) AC_DEFINE(HAVE_FCNTL_FILE_LOCKING) - if test -n "$USE_64"; then - MDCPUCFG_H=_solaris64.cfg - else - MDCPUCFG_H=_solaris32.cfg - fi + MDCPUCFG_H=_solaris.cfg PR_MD_CSRCS=solaris.c LD=/usr/ccs/bin/ld RANLIB=/usr/ccs/bin/ranlib