1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 30_config_64bits.dpatch by <glandium@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Add autodetection for 64 bits hosts. bz#375281.
9
--- nspr/mozilla/nsprpub/configure.in
10
+++ nspr/mozilla/nsprpub/configure.in
24
- [ --enable-64bit Enable 64-bit support (on certain platforms)],
25
- [ if test "$enableval" = "yes"; then
27
+ [ --disable-64bit Disable 64-bit support (on 64-bit platforms)],
28
+ [ if test "$enableval" = "no"; then
34
+if test "${USE_64}"; then
35
+ AC_MSG_CHECKING(for 64-bit OS)
36
+ AC_TRY_COMPILE([],[int assert[(sizeof(long) == 8) ? 1: -1]],
37
+ result="yes", result="no")
38
+ AC_MSG_RESULT("$result")
39
+ if test "$result" = "no" && test "$USE_64" = 1; then
40
+ AC_MSG_ERROR([Can't --enable-64bit on non 64-bit platforms])
42
+ if test "$result" = "yes"; then
47
AC_ARG_ENABLE(mdupdate,
48
[ --enable-mdupdate Enable use of certain compilers' mdupdate feature],
49
[ if test "$enableval" = "yes"; then