diff options
author | blythe%netscape.com <devnull@localhost> | 2002-07-17 20:02:49 +0000 |
---|---|---|
committer | blythe%netscape.com <devnull@localhost> | 2002-07-17 20:02:49 +0000 |
commit | d840e0890b415c4ad5af8403db7c160f241fbe13 (patch) | |
tree | a057d6c6c2bebbb78a028a99b8e774c2668eb768 | |
parent | da10b26328020917332be0475388b5b17890545e (diff) | |
download | nspr-hg-d840e0890b415c4ad5af8403db7c160f241fbe13.tar.gz |
Get nspr to build from mozilla client.mk evokation.
-rw-r--r-- | config/autoconf.mk.in | 1 | ||||
-rwxr-xr-x | configure | 65 | ||||
-rw-r--r-- | configure.in | 24 |
3 files changed, 44 insertions, 46 deletions
diff --git a/config/autoconf.mk.in b/config/autoconf.mk.in index 30ca541b..67f625c9 100644 --- a/config/autoconf.mk.in +++ b/config/autoconf.mk.in @@ -67,6 +67,7 @@ STRIP = @STRIP@ NSINSTALL = @NSINSTALL@ FILTER = @FILTER@ IMPLIB = @IMPLIB@ +CYGWIN_WRAPPER = @CYGWIN_WRAPPER@ OS_CPPFLAGS = @CPPFLAGS@ OS_CFLAGS = $(OS_CPPFLAGS) @CFLAGS@ $(DSO_CFLAGS) @@ -3748,29 +3748,26 @@ EOF MKSHLIB='$(DLLTOOL) --as=$(AS) -k --dllname $*.dll --output-lib $@' else + CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper' if test "$OS_TARGET" = "WINCE"; then if test "$TARGETCPU" = "ARM"; then - CC=clarm - CXX=clarm + CC='$(CYGWIN_WRAPPER) clarm' + CXX='$(CYGWIN_WRAPPER) clarm' else - CC=cl - CXX=cl + CC='$(CYGWIN_WRAPPER) cl' + CXX='$(CYGWIN_WRAPPER) cl' fi else - CC=cl - CXX=cl + CC='$(CYGWIN_WRAPPER) cl' + CXX='$(CYGWIN_WRAPPER) cl' fi LD=link AR='lib -NOLOGO -OUT:"$@"' AR_FLAGS= RANLIB='echo not_ranlib' STRIP='echo not_strip' - if test -n "$CYGWIN_WRAPPER"; then - NSINSTALL="$CYGWIN_WRAPPER nsinstall" - else - NSINSTALL="nsinstall" - fi - RC=rc.exe + NSINSTALL='$(CYGWIN_WRAPPER) nsinstall' + RC='$(CYGWIN_WRAPPER) rc.exe' GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb' OBJ_SUFFIX=obj LIB_SUFFIX=lib @@ -4284,17 +4281,17 @@ EOF ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6 -echo "configure:4288: checking for machine/builtins.h" >&5 +echo "configure:4285: checking for machine/builtins.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 4293 "configure" +#line 4290 "configure" #include "confdefs.h" #include <machine/builtins.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4809,12 +4806,12 @@ esac if test -z "$SKIP_LIBRARY_CHECKS"; then echo $ac_n "checking for dlopen""... $ac_c" 1>&6 -echo "configure:4813: checking for dlopen" >&5 +echo "configure:4810: 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 <<EOF -#line 4818 "configure" +#line 4815 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen(); below. */ @@ -4837,7 +4834,7 @@ dlopen(); ; return 0; } EOF -if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4838: \"$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 @@ -4856,7 +4853,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:4860: checking for dlopen in -ldl" >&5 +echo "configure:4857: 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 @@ -4864,7 +4861,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <<EOF -#line 4868 "configure" +#line 4865 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -4875,7 +4872,7 @@ int main() { dlopen() ; return 0; } EOF -if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4876: \"$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 @@ -4903,13 +4900,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:4907: checking whether ${CC-cc} needs -traditional" >&5 +echo "configure:4904: 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 <<EOF -#line 4913 "configure" +#line 4910 "configure" #include "confdefs.h" #include <sgtty.h> Autoconf TIOCGETP @@ -4927,7 +4924,7 @@ rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext <<EOF -#line 4931 "configure" +#line 4928 "configure" #include "confdefs.h" #include <termio.h> Autoconf TCGETA @@ -4951,12 +4948,12 @@ fi for ac_func in lchown strerror do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4955: checking for $ac_func" >&5 +echo "configure:4952: 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 <<EOF -#line 4960 "configure" +#line 4957 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -4979,7 +4976,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4980: \"$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 @@ -5017,7 +5014,7 @@ fi echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 -echo "configure:5021: checking for pthread_create in -lpthreads" >&5 +echo "configure:5018: checking for pthread_create in -lpthreads" >&5 echo " #include <pthread.h> void *foo(void *v) { int a = 1; } @@ -5039,7 +5036,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:5043: checking for pthread_create in -lpthread" >&5 +echo "configure:5040: checking for pthread_create in -lpthread" >&5 echo " #include <pthread.h> void *foo(void *v) { int a = 1; } @@ -5061,7 +5058,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 -echo "configure:5065: checking for pthread_create in -lc_r" >&5 +echo "configure:5062: checking for pthread_create in -lc_r" >&5 echo " #include <pthread.h> void *foo(void *v) { int a = 1; } @@ -5083,7 +5080,7 @@ echo " echo "$ac_t""no" 1>&6 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 -echo "configure:5087: checking for pthread_create in -lc" >&5 +echo "configure:5084: checking for pthread_create in -lc" >&5 echo " #include <pthread.h> void *foo(void *v) { int a = 1; } @@ -5233,7 +5230,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:5237: checking whether ${CC-cc} accepts -pthread" >&5 +echo "configure:5234: 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 @@ -5256,7 +5253,7 @@ echo "configure:5237: 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:5260: checking whether ${CC-cc} accepts -pthreads" >&5 +echo "configure:5257: 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 @@ -5627,6 +5624,7 @@ RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}$ + MAKEFILES=" Makefile config/Makefile @@ -5909,6 +5907,7 @@ s%@DLLFLAGS@%$DLLFLAGS%g s%@EXEFLAGS@%$EXEFLAGS%g s%@OS_DLLFLAGS@%$OS_DLLFLAGS%g s%@DLL_LIBS@%$DLL_LIBS%g +s%@CYGWIN_WRAPPER@%$CYGWIN_WRAPPER%g CEOF EOF diff --git a/configure.in b/configure.in index 84047c64..129cc9c4 100644 --- a/configure.in +++ b/configure.in @@ -14,7 +14,7 @@ dnl The Original Code is the Netscape Portable Runtime (NSPR). dnl dnl The Initial Developer of the Original Code is Netscape dnl Communications Corporation. Portions created by Netscape are -dnl Copyright (C) 1998o-2000 Netscape Communications Corporation. All +dnl Copyright (C) 1998-2000 Netscape Communications Corporation. All dnl Rights Reserved. dnl dnl Contributor(s): @@ -1202,29 +1202,26 @@ case "$target" in AC_DEFINE(NONAMELESSUNION) MKSHLIB='$(DLLTOOL) --as=$(AS) -k --dllname $*.dll --output-lib $@' else + CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper' if test "$OS_TARGET" = "WINCE"; then if test "$TARGETCPU" = "ARM"; then - CC=clarm - CXX=clarm + CC='$(CYGWIN_WRAPPER) clarm' + CXX='$(CYGWIN_WRAPPER) clarm' else - CC=cl - CXX=cl + CC='$(CYGWIN_WRAPPER) cl' + CXX='$(CYGWIN_WRAPPER) cl' fi else - CC=cl - CXX=cl + CC='$(CYGWIN_WRAPPER) cl' + CXX='$(CYGWIN_WRAPPER) cl' fi LD=link AR='lib -NOLOGO -OUT:"$@"' AR_FLAGS= RANLIB='echo not_ranlib' STRIP='echo not_strip' - if test -n "$CYGWIN_WRAPPER"; then - NSINSTALL="$CYGWIN_WRAPPER nsinstall" - else - NSINSTALL="nsinstall" - fi - RC=rc.exe + NSINSTALL='$(CYGWIN_WRAPPER) nsinstall' + RC='$(CYGWIN_WRAPPER) rc.exe' GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb' OBJ_SUFFIX=obj LIB_SUFFIX=lib @@ -2409,6 +2406,7 @@ AC_SUBST(DLLFLAGS) AC_SUBST(EXEFLAGS) AC_SUBST(OS_DLLFLAGS) AC_SUBST(DLL_LIBS) +AC_SUBST(CYGWIN_WRAPPER) dnl ======================================================== dnl Generate output files. |