]> git.pld-linux.org Git - packages/nspr.git/blob - nspr-acfix.patch
- release 2
[packages/nspr.git] / nspr-acfix.patch
1 --- nspr-4.7.1/mozilla/nsprpub/configure.in.orig        2008-04-29 01:21:11.000000000 +0200
2 +++ nspr-4.7.1/mozilla/nsprpub/configure.in     2008-06-04 18:20:21.085383087 +0200
3 @@ -427,7 +427,8 @@
4  
5      AC_MSG_CHECKING([whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works])
6      AC_TRY_COMPILE([], [return(0);], 
7 -        [ac_cv_prog_host_cc_works=1 AC_MSG_RESULT([yes])],
8 +        [ac_cv_prog_host_cc_works=1
9 +        AC_MSG_RESULT([yes])],
10          AC_MSG_ERROR([installation or configuration problem: $host compiler $HOST_CC cannot create executables.]) )
11  
12      CC=$_SAVE_CC
13 @@ -2252,8 +2253,8 @@
14      ;;
15  *)
16      AC_CHECK_LIB(dl, dlopen,
17 -        AC_CHECK_HEADER(dlfcn.h,
18 -            OS_LIBS="-ldl $OS_LIBS"))
19 +        [AC_CHECK_HEADER(dlfcn.h,
20 +            OS_LIBS="-ldl $OS_LIBS")])
21      ;;
22  esac
23  
24 @@ -2850,7 +2851,7 @@
25  dnl ========================================================
26  dnl Generate output files.
27  dnl ========================================================
28 -MAKEFILES="
29 +m4_define([MAKEFILES], [
30  Makefile 
31  config/Makefile
32  config/autoconf.mk
33 @@ -2884,24 +2885,12 @@
34  pr/src/threads/Makefile 
35  pr/tests/Makefile 
36  pr/tests/dll/Makefile 
37 -"
38 -
39 -dnl lib/tests/Makefile
40 -dnl pr/tests/w16gui/Makefile
41 -dnl tools/Makefile
42 -
43 -if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then
44 -    MAKEFILES="$MAKEFILES pr/src/threads/combined/Makefile"
45 -elif test -n "$USE_PTHREADS"; then
46 -    MAKEFILES="$MAKEFILES pr/src/pthreads/Makefile"
47 -elif test -n "$USE_BTHREADS"; then
48 -    MAKEFILES="$MAKEFILES pr/src/bthreads/Makefile"
49 -fi
50 -
51 -if test -n "$USE_CPLUS"; then
52 -    MAKEFILES="$MAKEFILES pr/src/cplus/Makefile pr/src/cplus/tests/Makefile"
53 -fi
54 +pr/src/threads/combined/Makefile
55 +pr/src/pthreads/Makefile
56 +pr/src/bthreads/Makefile
57 +pr/src/cplus/Makefile pr/src/cplus/tests/Makefile
58 +])
59  
60 -echo $MAKEFILES > unallmakefiles
61 +echo "MAKEFILES" > unallmakefiles
62  
63 -AC_OUTPUT([$MAKEFILES], [chmod +x config/nspr-config])
64 +AC_OUTPUT(MAKEFILES, [chmod +x config/nspr-config])
This page took 0.156819 seconds and 3 git commands to generate.