1 Remove some of the more egregious crack in the configure.in script.
3 --- mozilla/nsprpub/configure.in.orig 2009-02-18 13:12:46.000000000 +0000
4 +++ mozilla/nsprpub/configure.in 2009-02-18 13:39:28.000000000 +0000
7 AC_INIT(config/libc_r.h)
9 -AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf)
10 +AC_CONFIG_AUX_DIR(build/autoconf)
13 dnl ========================================================
16 AC_MSG_CHECKING([whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works])
17 AC_TRY_COMPILE([], [return(0);],
18 - [ac_cv_prog_host_cc_works=1 AC_MSG_RESULT([yes])],
19 + [ac_cv_prog_host_cc_works=1; AC_MSG_RESULT([yes])],
20 AC_MSG_ERROR([installation or configuration problem: $host compiler $HOST_CC cannot create executables.]) )
27 +# RWMJ: Just force the above:
32 case "$build:$target" in
33 i?86-apple-darwin*:powerpc-apple-darwin*)
34 dnl cross_compiling will have erroneously been set to "no" in this
35 @@ -2212,9 +2217,11 @@
39 - AC_CHECK_LIB(dl, dlopen,
40 - AC_CHECK_HEADER(dlfcn.h,
41 - OS_LIBS="-ldl $OS_LIBS"))
42 + AC_CHECK_LIB([dl], [dlopen], [have_dl=yes])
43 + AC_CHECK_HEADER([dlfcn.h], [have_dlfcn=yes])
44 + if test -n "$have_dl" -a -n "$have_dlfcn"; then
45 + OS_LIBS="-ldl $OS_LIBS"