diff --git a/configure b/configure index d9b048d8819..13429cdf792 100755 --- a/configure +++ b/configure @@ -7974,12 +7974,11 @@ EOF EOF ;; alpha*-*-osf*) - if test "$GNU_CC"; then - cat >> confdefs.h <<\EOF + cat >> confdefs.h <<\EOF #define _REENTRANT 1 EOF - else + if test ! "$GNU_CC"; then CFLAGS="$CFLAGS -pthread" CXXFLAGS="$CXXFLAGS -pthread" fi ;; @@ -8013,13 +8012,13 @@ else fi echo $ac_n "checking "for PR_GetCurrentThread in -lnspr3"""... $ac_c" 1>&6 -echo "configure:8017: checking "for PR_GetCurrentThread in -lnspr3"" >&5 +echo "configure:8016: checking "for PR_GetCurrentThread in -lnspr3"" >&5 LIBS="-lnspr3 $NSPR_LIBS $LIBS" if test "$cross_compiling" = yes; then _NSPR_NEEDS_THREAD_LIB=1 result="no" else cat > conftest.$ac_ext < #include @@ -8029,7 +8028,7 @@ else } EOF -if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then NSPR_LIBS="-lnspr3 $NSPR_LIBS" result="yes" else @@ -8050,7 +8049,7 @@ LIBS=$_SAVE_LIBS case "$target" in *-*-solaris*) echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6 -echo "configure:8054: checking for pthread_attr_init in -lpthread" >&5 +echo "configure:8053: checking for pthread_attr_init in -lpthread" >&5 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8058,7 +8057,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:8072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8091,7 +8090,7 @@ fi ;; *-*-linux*) echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6 -echo "configure:8095: checking for pthread_attr_init in -lpthread" >&5 +echo "configure:8094: checking for pthread_attr_init in -lpthread" >&5 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8099,7 +8098,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:8113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8133,13 +8132,13 @@ fi esac echo $ac_n "checking "for PR_GetCurrentThread in -lnspr3 with thread lib"""... $ac_c" 1>&6 -echo "configure:8137: checking "for PR_GetCurrentThread in -lnspr3 with thread lib"" >&5 +echo "configure:8136: checking "for PR_GetCurrentThread in -lnspr3 with thread lib"" >&5 LIBS="-lnspr3 $NSPR_LIBS $LIBS" if test "$cross_compiling" = yes; then MISSING_NSPR="$MISSING_NSPR -lnspr3" result="no" else cat > conftest.$ac_ext < #include @@ -8149,7 +8148,7 @@ else } EOF -if { (eval echo configure:8153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then NSPR_LIBS="-lnspr3 $NSPR_LIBS" result="yes" else @@ -8167,7 +8166,7 @@ fi echo $ac_n "checking for PL_CreateOptState in -lplc3""... $ac_c" 1>&6 -echo "configure:8171: checking for PL_CreateOptState in -lplc3" >&5 +echo "configure:8170: checking for PL_CreateOptState in -lplc3" >&5 ac_lib_var=`echo plc3'_'PL_CreateOptState | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8175,7 +8174,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lplc3 $NSPR_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:8189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8208,7 +8207,7 @@ MISSING_NSPR="$MISSING_NSPR -lplc3" fi echo $ac_n "checking for PL_GetEvent in -lplds3""... $ac_c" 1>&6 -echo "configure:8212: checking for PL_GetEvent in -lplds3" >&5 +echo "configure:8211: checking for PL_GetEvent in -lplds3" >&5 ac_lib_var=`echo plds3'_'PL_GetEvent | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8216,7 +8215,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lplds3 $NSPR_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8294,7 +8293,7 @@ then # Extract the first word of "makedepend", so it can be a program name with args. set dummy makedepend; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:8298: checking for $ac_word" >&5 +echo "configure:8297: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_SYSTEM_MAKEDEPEND'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else