summaryrefslogtreecommitdiff
path: root/recipes/mozilla/nspr-4.7.1/unbreak-build.diff
blob: 00ae07483646d7bdcabd7401c5471f6edfb92cb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Index: nsprpub/configure.in
===================================================================
--- nsprpub.orig/configure.in	2008-07-23 14:38:19.000000000 +0200
+++ nsprpub/configure.in	2008-07-23 15:14:45.000000000 +0200
@@ -42,7 +42,7 @@
 AC_PREREQ(2.12)
 AC_INIT(config/libc_r.h)
 
-AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf)
+AC_CONFIG_AUX_DIR(build/autoconf)
 AC_CANONICAL_SYSTEM
 
 dnl ========================================================
@@ -442,7 +442,8 @@
 
     AC_MSG_CHECKING([whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works])
     AC_TRY_COMPILE([], [return(0);], 
-        [ac_cv_prog_host_cc_works=1 AC_MSG_RESULT([yes])],
+        [ac_cv_prog_host_cc_works=1
+				AC_MSG_RESULT([yes])],
         AC_MSG_ERROR([installation or configuration problem: $host compiler $HOST_CC cannot create executables.]) )
 
     CC=$_SAVE_CC
@@ -2266,9 +2267,8 @@
 *-darwin*|*-beos*)
     ;;
 *)
-    AC_CHECK_LIB(dl, dlopen,
-        AC_CHECK_HEADER(dlfcn.h,
-            OS_LIBS="-ldl $OS_LIBS"))
+    AC_CHECK_HEADER([dlfcn.h])
+    AC_CHECK_LIB(dl, dlopen, [OS_LIBS="-ldl $OS_LIBS"])
     ;;
 esac
 
@@ -2366,8 +2366,8 @@
 dnl using it
 dnl
 dnl MOZ_CHECK_PTHREADS(lib, success, failure)
-AC_DEFUN(MOZ_CHECK_PTHREADS,
-[
+AC_DEFUN([MOZ_CHECK_PTHREADS],
+[AC_PREREQ([2.57])dnl
 AC_MSG_CHECKING([for pthread_create in -l$1])
 echo "
     #include <pthread.h>