From 674d0a62b5190ef2e3f4680b4281b12365a2bec9 Mon Sep 17 00:00:00 2001 From: "wchang0222%aol.com" Date: Thu, 29 Jan 2004 22:41:50 +0000 Subject: [PATCH] Bugzilla bug 231504: made --disable-strip work. r=bryner. --- nsprpub/configure | 18 ++++++++++-------- nsprpub/configure.in | 6 ++++-- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/nsprpub/configure b/nsprpub/configure index e75fd060629..dadea3a697e 100755 --- a/nsprpub/configure +++ b/nsprpub/configure @@ -4922,7 +4922,9 @@ done # Check whether --enable-strip or --disable-strip was given. if test "${enable_strip+set}" = set; then enableval="$enable_strip" - ENABLE_STRIP=1 + if test "$enableval" = "yes"; then + ENABLE_STRIP=1 + fi fi @@ -4931,7 +4933,7 @@ hpux*) if test -z "$GNU_CC"; then echo $ac_n "checking for +Olit support""... $ac_c" 1>&6 -echo "configure:4935: checking for +Olit support" >&5 +echo "configure:4937: checking for +Olit support" >&5 if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4965,7 +4967,7 @@ esac echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 -echo "configure:4969: checking for pthread_create in -lpthreads" >&5 +echo "configure:4971: checking for pthread_create in -lpthreads" >&5 echo " #include void *foo(void *v) { return v; } @@ -4987,7 +4989,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:4991: checking for pthread_create in -lpthread" >&5 +echo "configure:4993: checking for pthread_create in -lpthread" >&5 echo " #include void *foo(void *v) { return v; } @@ -5009,7 +5011,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 -echo "configure:5013: checking for pthread_create in -lc_r" >&5 +echo "configure:5015: checking for pthread_create in -lc_r" >&5 echo " #include void *foo(void *v) { return v; } @@ -5031,7 +5033,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 -echo "configure:5035: checking for pthread_create in -lc" >&5 +echo "configure:5037: checking for pthread_create in -lc" >&5 echo " #include void *foo(void *v) { return v; } @@ -5183,7 +5185,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:5187: checking whether ${CC-cc} accepts -pthread" >&5 +echo "configure:5189: 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 @@ -5206,7 +5208,7 @@ echo "configure:5187: 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:5210: checking whether ${CC-cc} accepts -pthreads" >&5 +echo "configure:5212: 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/nsprpub/configure.in b/nsprpub/configure.in index 30e22dfe392..bcb47e8e667 100644 --- a/nsprpub/configure.in +++ b/nsprpub/configure.in @@ -1963,8 +1963,10 @@ dnl = Enable stripping of libs and executables dnl = dnl ======================================================== AC_ARG_ENABLE(strip, -[ --enable-strip Enable stripping of shared libs and programs], - [ ENABLE_STRIP=1 ]) + [ --enable-strip Enable stripping of shared libs and programs], + [ if test "$enableval" = "yes"; then + ENABLE_STRIP=1 + fi ]) dnl Check for hpux options case "${target_os}" in