Bug 698527 - Fix detection of the crt_externs.h header. r=ted
authorJed Davis <jld@mozilla.com>
Mon, 02 Mar 2015 17:20:37 -0800
changeset 4622 df79fca1b2aba682330c64bc927c135d2ccb8d15
parent 4621 a1a22dd6a680238d6234e4927b5ae20e678426f4
child 4623 a5e5f6d79e2452ab5950fe6936dc58eeff0e5cbf
push id160
push usertmielczarek@mozilla.com
push dateMon, 20 Apr 2015 14:57:47 +0000
reviewersted
bugs698527
Bug 698527 - Fix detection of the crt_externs.h header. r=ted This allows PR_ProcessAttrSetInheritableFD to work on OS X, and thereby fixes the "pipeping2" and "sockping" tests on that platform.
configure
configure.in
--- a/configure
+++ b/configure
@@ -6579,16 +6579,17 @@ fi
             CPU_ARCH=ppc
             ;;
     esac
     if test "`echo $CC | grep -c '\-arch '`" = "0"; then
         CC="$CC -arch $CPU_ARCH"
     fi
     ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
 if test "x$ac_cv_header_crt_externs_h" = xyes; then :
+  $as_echo "#define HAVE_CRT_EXTERNS_H 1" >>confdefs.h
 
 fi
 
 
     DSO_CFLAGS=-fPIC
     DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
     _OPTIMIZE_FLAGS=-O2
     MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
--- a/configure.in
+++ b/configure.in
@@ -1407,17 +1407,17 @@ case "$target" in
             ;;
         *)
             CPU_ARCH=ppc
             ;;
     esac
     if test "`echo $CC | grep -c '\-arch '`" = "0"; then
         CC="$CC -arch $CPU_ARCH"
     fi
-    AC_CHECK_HEADER(crt_externs.h)
+    AC_CHECK_HEADER(crt_externs.h, AC_DEFINE(HAVE_CRT_EXTERNS_H))
     DSO_CFLAGS=-fPIC
     DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names'
     _OPTIMIZE_FLAGS=-O2
     MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
     STRIP="$STRIP -x -S"
     DLL_SUFFIX=dylib
     USE_PTHREADS=1
     MDCPUCFG_H=_darwin.cfg