/[jscoverage]/trunk/js/configure
ViewVC logotype

Diff of /trunk/js/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 460 by siliconforks, Sat Sep 26 23:15:22 2009 UTC revision 507 by siliconforks, Sun Jan 10 07:23:34 2010 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2    
3    if test `uname -s | grep -c MINGW 2>/dev/null` != "0"; then
4      msyshost=1
5    fi
6    
7  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
8  # Generated automatically using autoconf version 2.13  # Generated automatically using autoconf version 2.13
9  # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.  # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
# Line 19  Line 23 
23    --disable-compile-environment    --disable-compile-environment
24                             Disable compiler/library checks."                             Disable compiler/library checks."
25  ac_help="$ac_help  ac_help="$ac_help
26    --with-windows-version=WINVER    --with-symbian-sdk=SYMBIAN_SDK_DIR
27                            Minimum Windows version (WINVER) to support                                The path to the Symbian SDK"
                               400: Windows 95  
                               500: Windows 2000  
                               501: Windows XP"  
28  ac_help="$ac_help  ac_help="$ac_help
29    --enable-macos-target=VER (default=10.4)    --enable-macos-target=VER (default=10.4)
30                            Set the minimum MacOS version needed at runtime"                            Set the minimum MacOS version needed at runtime"
# Line 34  Line 35 
35  ac_help="$ac_help  ac_help="$ac_help
36    --disable-os2-high-mem  Disable high-memory support on OS/2"    --disable-os2-high-mem  Disable high-memory support on OS/2"
37  ac_help="$ac_help  ac_help="$ac_help
38      --disable-windows-mobile-components
39             Disable Windows Mobile specific components from CE build"
40    ac_help="$ac_help
41    --disable-jit           Disable JIT support"    --disable-jit           Disable JIT support"
42  ac_help="$ac_help  ac_help="$ac_help
43    --enable-dtrace         build with dtrace support if available (default=no)"    --enable-dtrace         build with dtrace support if available (default=no)"
# Line 43  Line 47 
47    --with-system-nspr      Use an NSPR that is already built and installed.    --with-system-nspr      Use an NSPR that is already built and installed.
48                            Use the 'nspr-config' script in the current path,                            Use the 'nspr-config' script in the current path,
49                            or look for the script in the directories given with                            or look for the script in the directories given with
50                            --with-nspr-exec-prefix or --with-nspr-prefix."                            --with-nspr-exec-prefix or --with-nspr-prefix.
51                              (Those flags are only checked if you specify
52                              --with-system-nspr.)"
53  ac_help="$ac_help  ac_help="$ac_help
54    --with-nspr-cflags=FLAGS Pass FLAGS to CC when building code that uses NSPR.    --with-nspr-cflags=FLAGS Pass FLAGS to CC when building code that uses NSPR.
55                            Use this when there's no accurate nspr-config                            Use this when there's no accurate nspr-config
# Line 67  Line 73 
73  ac_help="$ac_help  ac_help="$ac_help
74    --disable-tests         Do not build test libraries & programs"    --disable-tests         Do not build test libraries & programs"
75  ac_help="$ac_help  ac_help="$ac_help
   --enable-js-ultrasparc  Use UltraSPARC optimizations in JS"  
 ac_help="$ac_help  
76    --enable-debug[=DBG]    Enable building with developer debug info    --enable-debug[=DBG]    Enable building with developer debug info
77                            (Using compiler flags DBG)"                            (Using compiler flags DBG)"
78  ac_help="$ac_help  ac_help="$ac_help
# Line 92  Line 96 
96  ac_help="$ac_help  ac_help="$ac_help
97    --with-wrap-malloc=DIR  Location of malloc wrapper library"    --with-wrap-malloc=DIR  Location of malloc wrapper library"
98  ac_help="$ac_help  ac_help="$ac_help
99      --enable-tracevis       Enable TraceVis tracing tool (default=no)"
100    ac_help="$ac_help
101    --enable-valgrind       Enable Valgrind integration hooks (default=no)"    --enable-valgrind       Enable Valgrind integration hooks (default=no)"
102  ac_help="$ac_help  ac_help="$ac_help
103    --enable-efence         Link with Electric Fence"    --enable-efence         Link with Electric Fence"
# Line 104  Line 110 
110  ac_help="$ac_help  ac_help="$ac_help
111    --enable-vtune          Enable vtune profiling"    --enable-vtune          Enable vtune profiling"
112  ac_help="$ac_help  ac_help="$ac_help
113      --enable-gczeal          Enable zealous GCing"
114    ac_help="$ac_help
115    --with-static-checking=path/to/gcc_dehydra.so    --with-static-checking=path/to/gcc_dehydra.so
116                              Enable static checking of code using GCC-dehydra"                              Enable static checking of code using GCC-dehydra"
117  ac_help="$ac_help  ac_help="$ac_help
# Line 153  Line 161 
161  ac_help="$ac_help  ac_help="$ac_help
162    --enable-static         Enable building of internal static libs"    --enable-static         Enable building of internal static libs"
163  ac_help="$ac_help  ac_help="$ac_help
164    --enable-js-static-build  Force js to be a static lib"    --enable-readline  Link js shell to system readline library"
165  ac_help="$ac_help  ac_help="$ac_help
166    --with-sync-build-files=DIR    --with-sync-build-files=DIR
167                            Check that files in 'config' and 'build' match                            Check that files in 'config' and 'build' match
# Line 720  Line 728 
728  fi  fi
729    
730  echo $ac_n "checking host system type""... $ac_c" 1>&6  echo $ac_n "checking host system type""... $ac_c" 1>&6
731  echo "configure:724: checking host system type" >&5  echo "configure:732: checking host system type" >&5
732    
733  host_alias=$host  host_alias=$host
734  case "$host_alias" in  case "$host_alias" in
# Line 741  Line 749 
749  echo "$ac_t""$host" 1>&6  echo "$ac_t""$host" 1>&6
750    
751  echo $ac_n "checking target system type""... $ac_c" 1>&6  echo $ac_n "checking target system type""... $ac_c" 1>&6
752  echo "configure:745: checking target system type" >&5  echo "configure:753: checking target system type" >&5
753    
754  target_alias=$target  target_alias=$target
755  case "$target_alias" in  case "$target_alias" in
# Line 759  Line 767 
767  echo "$ac_t""$target" 1>&6  echo "$ac_t""$target" 1>&6
768    
769  echo $ac_n "checking build system type""... $ac_c" 1>&6  echo $ac_n "checking build system type""... $ac_c" 1>&6
770  echo "configure:763: checking build system type" >&5  echo "configure:771: checking build system type" >&5
771    
772  build_alias=$build  build_alias=$build
773  case "$build_alias" in  case "$build_alias" in
# Line 808  Line 816 
816  NSPR_VERSION=4  NSPR_VERSION=4
817    
818  PERL_VERSION=5.006  PERL_VERSION=5.006
 MAKE_VERSION=3.78  
819  WINDRES_VERSION=2.14.90  WINDRES_VERSION=2.14.90
820  W32API_VERSION=3.8  W32API_VERSION=3.8
821    
# Line 820  Line 827 
827  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
828  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
829  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
830  echo "configure:824: checking for $ac_word" >&5  echo "configure:831: checking for $ac_word" >&5
831  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
832    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
833  else  else
# Line 900  Line 907 
907  if test -z "$CROSS_COMPILE"; then  if test -z "$CROSS_COMPILE"; then
908  case "$target" in  case "$target" in
909  *-cygwin*|*-mingw*|*-msvc*|*-mks*)  *-cygwin*|*-mingw*|*-msvc*|*-mks*)
     MAKE_VERSION=3.79  
910      if test -z "$CC"; then CC=cl; fi      if test -z "$CC"; then CC=cl; fi
911      if test -z "$CXX"; then CXX=cl; fi      if test -z "$CXX"; then CXX=cl; fi
912      if test -z "$CPP"; then CPP="cl -E -nologo"; fi      if test -z "$CPP"; then CPP="cl -E -nologo"; fi
# Line 936  Line 942 
942      _SAVE_LDFLAGS="$LDFLAGS"      _SAVE_LDFLAGS="$LDFLAGS"
943    
944      echo $ac_n "checking for host c compiler""... $ac_c" 1>&6      echo $ac_n "checking for host c compiler""... $ac_c" 1>&6
945  echo "configure:940: checking for host c compiler" >&5  echo "configure:946: checking for host c compiler" >&5
946      for ac_prog in $HOST_CC gcc cc /usr/ucb/cc cl icc      for ac_prog in $HOST_CC gcc cc /usr/ucb/cc cl icc
947  do  do
948  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
949  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
950  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
951  echo "configure:946: checking for $ac_word" >&5  echo "configure:952: checking for $ac_word" >&5
952  if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then
953    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
954  else  else
# Line 977  Line 983 
983      fi      fi
984      echo "$ac_t""$HOST_CC" 1>&6      echo "$ac_t""$HOST_CC" 1>&6
985      echo $ac_n "checking for host c++ compiler""... $ac_c" 1>&6      echo $ac_n "checking for host c++ compiler""... $ac_c" 1>&6
986  echo "configure:981: checking for host c++ compiler" >&5  echo "configure:987: checking for host c++ compiler" >&5
987      for ac_prog in $HOST_CXX $CCC c++ g++ gcc CC cxx cc++ cl icc      for ac_prog in $HOST_CXX $CCC c++ g++ gcc CC cxx cc++ cl icc
988  do  do
989  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
990  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
991  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
992  echo "configure:987: checking for $ac_word" >&5  echo "configure:993: checking for $ac_word" >&5
993  if eval "test \"`echo '$''{'ac_cv_prog_HOST_CXX'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_HOST_CXX'+set}'`\" = set"; then
994    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
995  else  else
# Line 1032  Line 1038 
1038  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1039  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1040  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1041  echo "configure:1036: checking for $ac_word" >&5  echo "configure:1042: checking for $ac_word" >&5
1042  if eval "test \"`echo '$''{'ac_cv_prog_HOST_RANLIB'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_HOST_RANLIB'+set}'`\" = set"; then
1043    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1044  else  else
# Line 1067  Line 1073 
1073  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1074  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1075  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076  echo "configure:1071: checking for $ac_word" >&5  echo "configure:1077: checking for $ac_word" >&5
1077  if eval "test \"`echo '$''{'ac_cv_prog_HOST_AR'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_HOST_AR'+set}'`\" = set"; then
1078    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1079  else  else
# Line 1102  Line 1108 
1108      LDFLAGS="$HOST_LDFLAGS"      LDFLAGS="$HOST_LDFLAGS"
1109    
1110      echo $ac_n "checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6      echo $ac_n "checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
1111  echo "configure:1106: checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5  echo "configure:1112: checking whether the host c compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5
1112      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
1113  #line 1108 "configure"  #line 1114 "configure"
1114  #include "confdefs.h"  #include "confdefs.h"
1115    
1116  int main() {  int main() {
1117  return(0);  return(0);
1118  ; return 0; }  ; return 0; }
1119  EOF  EOF
1120  if { (eval echo configure:1115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:1121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1121    rm -rf conftest*    rm -rf conftest*
1122    ac_cv_prog_hostcc_works=1 echo "$ac_t""yes" 1>&6    ac_cv_prog_hostcc_works=1 echo "$ac_t""yes" 1>&6
1123  else  else
# Line 1126  Line 1132 
1132      CFLAGS="$HOST_CXXFLAGS"      CFLAGS="$HOST_CXXFLAGS"
1133    
1134      echo $ac_n "checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6      echo $ac_n "checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works""... $ac_c" 1>&6
1135  echo "configure:1130: checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works" >&5  echo "configure:1136: checking whether the host c++ compiler ($HOST_CXX $HOST_CXXFLAGS $HOST_LDFLAGS) works" >&5
1136      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
1137  #line 1132 "configure"  #line 1138 "configure"
1138  #include "confdefs.h"  #include "confdefs.h"
1139    
1140  int main() {  int main() {
1141  return(0);  return(0);
1142  ; return 0; }  ; return 0; }
1143  EOF  EOF
1144  if { (eval echo configure:1139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1145    rm -rf conftest*    rm -rf conftest*
1146    ac_cv_prog_hostcxx_works=1 echo "$ac_t""yes" 1>&6    ac_cv_prog_hostcxx_works=1 echo "$ac_t""yes" 1>&6
1147  else  else
# Line 1159  Line 1165 
1165          ;;          ;;
1166      esac      esac
1167    
1168        case "$target" in
1169        *symbian*)
1170            # Check whether --with-symbian-sdk or --without-symbian-sdk was given.
1171    if test "${with_symbian_sdk+set}" = set; then
1172      withval="$with_symbian_sdk"
1173      SYMBIAN_SDK_DIR=$withval
1174    fi
1175    
1176    
1177            OS_EXE_CFLAGS="$OS_EXE_CFLAGS -D__EXE__"
1178            CFLAGS="-MD -nostdinc"
1179            SYMBIAN_SYS_INCLUDE="-I$SYMBIAN_SDK_DIR/Epoc32/include -I$SYMBIAN_SDK_DIR/Epoc32/include/variant -I$SYMBIAN_SDK_DIR/Epoc32/include/stdapis"
1180    
1181            case "$target" in
1182            *-symbianelf)
1183                OS_TARGET=GCCE
1184                CC=arm-none-symbianelf-gcc.exe
1185                CXX=arm-none-symbianelf-g++.exe
1186                LD=arm-none-symbianelf-ld.exe
1187                AR=arm-none-symbianelf-ar.exe
1188                CPP=arm-none-symbianelf-cpp.exe
1189                CFLAGS="$CFLAGS -c -Wall -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -msoft-float"
1190                CXXFLAGS="$CFLAGS -Wno-ctor-dtor-privacy"
1191                GCCE_INCLUDE="-include $SYMBIAN_SDK_DIR/EPOC32/INCLUDE/GCCE/GCCE.h -D__PRODUCT_INCLUDE__=$SYMBIAN_SDK_DIR/Epoc32/include/variant/Symbian_OS_v9.2.hrh"
1192                CFLAGS="$CFLAGS ${GCCE_INCLUDE} -x c"
1193                CXXFLAGS="$CXXFLAGS ${GCCE_INCLUDE} -x c++"
1194                CPPFLAGS="$CPPFLAGS ${SYMBIAN_SYS_INCLUDE}"
1195                ;;
1196            *-symbianwinscw)
1197                            OS_TARGET=WINSCW
1198                ;;
1199            esac
1200            ;;
1201        esac
1202    
1203      for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc"      for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc"
1204  do  do
1205  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1206  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1207  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1208  echo "configure:1168: checking for $ac_word" >&5  echo "configure:1209: checking for $ac_word" >&5
1209  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1210    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1211  else  else
# Line 1198  Line 1239 
1239      # Extract the first word of "gcc", so it can be a program name with args.      # Extract the first word of "gcc", so it can be a program name with args.
1240  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1241  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1242  echo "configure:1202: checking for $ac_word" >&5  echo "configure:1243: checking for $ac_word" >&5
1243  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1244    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1245  else  else
# Line 1228  Line 1269 
1269    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1270  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1271  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1272  echo "configure:1232: checking for $ac_word" >&5  echo "configure:1273: checking for $ac_word" >&5
1273  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1274    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1275  else  else
# Line 1279  Line 1320 
1320        # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
1321  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
1322  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1323  echo "configure:1283: checking for $ac_word" >&5  echo "configure:1324: checking for $ac_word" >&5
1324  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1325    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1326  else  else
# Line 1311  Line 1352 
1352  fi  fi
1353    
1354  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1355  echo "configure:1315: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:1356: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1356    
1357  ac_ext=c  ac_ext=c
1358  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 1322  Line 1363 
1363    
1364  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
1365    
1366  #line 1326 "configure"  #line 1367 "configure"
1367  #include "confdefs.h"  #include "confdefs.h"
1368    
1369  main(){return(0);}  main(){return(0);}
1370  EOF  EOF
1371  if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1372    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
1373    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
1374    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 1353  Line 1394 
1394    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1395  fi  fi
1396  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1397  echo "configure:1357: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:1398: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1398  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1399  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
1400    
1401  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1402  echo "configure:1362: checking whether we are using GNU C" >&5  echo "configure:1403: checking whether we are using GNU C" >&5
1403  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1404    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1405  else  else
# Line 1367  Line 1408 
1408    yes;    yes;
1409  #endif  #endif
1410  EOF  EOF
1411  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1412    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
1413  else  else
1414    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 1386  Line 1427 
1427  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
1428  CFLAGS=  CFLAGS=
1429  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1430  echo "configure:1390: checking whether ${CC-cc} accepts -g" >&5  echo "configure:1431: checking whether ${CC-cc} accepts -g" >&5
1431  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1432    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1433  else  else
# Line 1422  Line 1463 
1463  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1464  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1465  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1466  echo "configure:1426: checking for $ac_word" >&5  echo "configure:1467: checking for $ac_word" >&5
1467  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1468    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1469  else  else
# Line 1458  Line 1499 
1499  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1500  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1501  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1502  echo "configure:1462: checking for $ac_word" >&5  echo "configure:1503: checking for $ac_word" >&5
1503  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1504    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1505  else  else
# Line 1490  Line 1531 
1531    
1532    
1533  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1534  echo "configure:1494: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5  echo "configure:1535: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1535    
1536  ac_ext=C  ac_ext=C
1537  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 1501  Line 1542 
1542    
1543  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
1544    
1545  #line 1505 "configure"  #line 1546 "configure"
1546  #include "confdefs.h"  #include "confdefs.h"
1547    
1548  int main(){return(0);}  int main(){return(0);}
1549  EOF  EOF
1550  if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1551    ac_cv_prog_cxx_works=yes    ac_cv_prog_cxx_works=yes
1552    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
1553    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 1532  Line 1573 
1573    { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1574  fi  fi
1575  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1576  echo "configure:1536: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:1577: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1577  echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1578  cross_compiling=$ac_cv_prog_cxx_cross  cross_compiling=$ac_cv_prog_cxx_cross
1579    
1580  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1581  echo "configure:1541: checking whether we are using GNU C++" >&5  echo "configure:1582: checking whether we are using GNU C++" >&5
1582  if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1583    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1584  else  else
# Line 1546  Line 1587 
1587    yes;    yes;
1588  #endif  #endif
1589  EOF  EOF
1590  if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1591    ac_cv_prog_gxx=yes    ac_cv_prog_gxx=yes
1592  else  else
1593    ac_cv_prog_gxx=no    ac_cv_prog_gxx=no
# Line 1565  Line 1606 
1606  ac_save_CXXFLAGS="$CXXFLAGS"  ac_save_CXXFLAGS="$CXXFLAGS"
1607  CXXFLAGS=  CXXFLAGS=
1608  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1609  echo "configure:1569: checking whether ${CXX-g++} accepts -g" >&5  echo "configure:1610: checking whether ${CXX-g++} accepts -g" >&5
1610  if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1611    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1612  else  else
# Line 1606  Line 1647 
1647     'void exit (int);'     'void exit (int);'
1648  do  do
1649    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1650  #line 1610 "configure"  #line 1651 "configure"
1651  #include "confdefs.h"  #include "confdefs.h"
1652  #include <stdlib.h>  #include <stdlib.h>
1653  $ac_declaration  $ac_declaration
# Line 1614  Line 1655 
1655  exit (42);  exit (42);
1656  ; return 0; }  ; return 0; }
1657  EOF  EOF
1658  if { (eval echo configure:1618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:1659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1659    :    :
1660  else  else
1661    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
# Line 1624  Line 1665 
1665  fi  fi
1666  rm -f conftest*  rm -f conftest*
1667    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1668  #line 1628 "configure"  #line 1669 "configure"
1669  #include "confdefs.h"  #include "confdefs.h"
1670  $ac_declaration  $ac_declaration
1671  int main() {  int main() {
1672  exit (42);  exit (42);
1673  ; return 0; }  ; return 0; }
1674  EOF  EOF
1675  if { (eval echo configure:1635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:1676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1676    rm -rf conftest*    rm -rf conftest*
1677    break    break
1678  else  else
# Line 1660  Line 1701 
1701  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1702  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1703  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1704  echo "configure:1664: checking for $ac_word" >&5  echo "configure:1705: checking for $ac_word" >&5
1705  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1706    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1707  else  else
# Line 1695  Line 1736 
1736  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1737  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1738  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1739  echo "configure:1699: checking for $ac_word" >&5  echo "configure:1740: checking for $ac_word" >&5
1740  if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1741    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1742  else  else
# Line 1725  Line 1766 
1766  done  done
1767  test -n "$AR" || AR=":"  test -n "$AR" || AR=":"
1768    
1769      for ac_prog in $AS "${target_alias}-as" "${target}-as"        for ac_prog in $AS "${target_alias}-as" "${target}-as"
1770  do  do
1771  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1772  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1773  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1774  echo "configure:1734: checking for $ac_word" >&5  echo "configure:1775: checking for $ac_word" >&5
1775  if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
1776    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1777  else  else
# Line 1766  Line 1807 
1807  done  done
1808  test -n "$AS" || AS=":"  test -n "$AS" || AS=":"
1809    
1810      if test "$msyshost"; then
1811        case "$AS" in
1812        /*)
1813          tmp_DIRNAME=`dirname "$AS"`
1814          tmp_BASENAME=`basename "$AS"`
1815          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
1816          AS="$tmp_PWD/$tmp_BASENAME"
1817          if test -e "$AS.exe"; then
1818            AS="$AS.exe"
1819          fi
1820        esac
1821      fi
1822    
1823      for ac_prog in $LD "${target_alias}-ld" "${target}-ld"      for ac_prog in $LD "${target_alias}-ld" "${target}-ld"
1824  do  do
1825  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1826  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1827  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1828  echo "configure:1775: checking for $ac_word" >&5  echo "configure:1829: checking for $ac_word" >&5
1829  if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
1830    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1831  else  else
# Line 1806  Line 1860 
1860  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1861  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1862  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1863  echo "configure:1810: checking for $ac_word" >&5  echo "configure:1864: checking for $ac_word" >&5
1864  if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1865    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1866  else  else
# Line 1841  Line 1895 
1895  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1896  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1897  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1898  echo "configure:1845: checking for $ac_word" >&5  echo "configure:1899: checking for $ac_word" >&5
1899  if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
1900    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1901  else  else
# Line 1881  Line 1935 
1935      # Extract the first word of "gcc", so it can be a program name with args.      # Extract the first word of "gcc", so it can be a program name with args.
1936  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1937  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938  echo "configure:1885: checking for $ac_word" >&5  echo "configure:1939: checking for $ac_word" >&5
1939  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1940    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1941  else  else
# Line 1911  Line 1965 
1965    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1966  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1967  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1968  echo "configure:1915: checking for $ac_word" >&5  echo "configure:1969: checking for $ac_word" >&5
1969  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1970    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1971  else  else
# Line 1962  Line 2016 
2016        # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
2017  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
2018  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2019  echo "configure:1966: checking for $ac_word" >&5  echo "configure:2020: checking for $ac_word" >&5
2020  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2021    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2022  else  else
# Line 1994  Line 2048 
2048  fi  fi
2049    
2050  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2051  echo "configure:1998: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:2052: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2052    
2053  ac_ext=c  ac_ext=c
2054  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 2005  Line 2059 
2059    
2060  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
2061    
2062  #line 2009 "configure"  #line 2063 "configure"
2063  #include "confdefs.h"  #include "confdefs.h"
2064    
2065  main(){return(0);}  main(){return(0);}
2066  EOF  EOF
2067  if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2068    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
2069    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
2070    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 2036  Line 2090 
2090    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2091  fi  fi
2092  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2093  echo "configure:2040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:2094: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2094  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2095  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
2096    
2097  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2098  echo "configure:2045: checking whether we are using GNU C" >&5  echo "configure:2099: checking whether we are using GNU C" >&5
2099  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2100    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2101  else  else
# Line 2050  Line 2104 
2104    yes;    yes;
2105  #endif  #endif
2106  EOF  EOF
2107  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2108    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
2109  else  else
2110    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 2069  Line 2123 
2123  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
2124  CFLAGS=  CFLAGS=
2125  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2126  echo "configure:2073: checking whether ${CC-cc} accepts -g" >&5  echo "configure:2127: checking whether ${CC-cc} accepts -g" >&5
2127  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2128    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2129  else  else
# Line 2105  Line 2159 
2159  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
2160  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2161  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2162  echo "configure:2109: checking for $ac_word" >&5  echo "configure:2163: checking for $ac_word" >&5
2163  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2164    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2165  else  else
# Line 2137  Line 2191 
2191    
2192    
2193  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2194  echo "configure:2141: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5  echo "configure:2195: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2195    
2196  ac_ext=C  ac_ext=C
2197  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 2148  Line 2202 
2202    
2203  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
2204    
2205  #line 2152 "configure"  #line 2206 "configure"
2206  #include "confdefs.h"  #include "confdefs.h"
2207    
2208  int main(){return(0);}  int main(){return(0);}
2209  EOF  EOF
2210  if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2211    ac_cv_prog_cxx_works=yes    ac_cv_prog_cxx_works=yes
2212    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
2213    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 2179  Line 2233 
2233    { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2234  fi  fi
2235  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2236  echo "configure:2183: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:2237: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2237  echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2238  cross_compiling=$ac_cv_prog_cxx_cross  cross_compiling=$ac_cv_prog_cxx_cross
2239    
2240  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2241  echo "configure:2188: checking whether we are using GNU C++" >&5  echo "configure:2242: checking whether we are using GNU C++" >&5
2242  if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2243    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2244  else  else
# Line 2193  Line 2247 
2247    yes;    yes;
2248  #endif  #endif
2249  EOF  EOF
2250  if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2251    ac_cv_prog_gxx=yes    ac_cv_prog_gxx=yes
2252  else  else
2253    ac_cv_prog_gxx=no    ac_cv_prog_gxx=no
# Line 2212  Line 2266 
2266  ac_save_CXXFLAGS="$CXXFLAGS"  ac_save_CXXFLAGS="$CXXFLAGS"
2267  CXXFLAGS=  CXXFLAGS=
2268  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2269  echo "configure:2216: checking whether ${CXX-g++} accepts -g" >&5  echo "configure:2270: checking whether ${CXX-g++} accepts -g" >&5
2270  if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2271    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2272  else  else
# Line 2253  Line 2307 
2307     'void exit (int);'     'void exit (int);'
2308  do  do
2309    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2310  #line 2257 "configure"  #line 2311 "configure"
2311  #include "confdefs.h"  #include "confdefs.h"
2312  #include <stdlib.h>  #include <stdlib.h>
2313  $ac_declaration  $ac_declaration
# Line 2261  Line 2315 
2315  exit (42);  exit (42);
2316  ; return 0; }  ; return 0; }
2317  EOF  EOF
2318  if { (eval echo configure:2265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2319    :    :
2320  else  else
2321    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
# Line 2271  Line 2325 
2325  fi  fi
2326  rm -f conftest*  rm -f conftest*
2327    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2328  #line 2275 "configure"  #line 2329 "configure"
2329  #include "confdefs.h"  #include "confdefs.h"
2330  $ac_declaration  $ac_declaration
2331  int main() {  int main() {
2332  exit (42);  exit (42);
2333  ; return 0; }  ; return 0; }
2334  EOF  EOF
2335  if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2336    rm -rf conftest*    rm -rf conftest*
2337    break    break
2338  else  else
# Line 2297  Line 2351 
2351      # Extract the first word of "ranlib", so it can be a program name with args.      # Extract the first word of "ranlib", so it can be a program name with args.
2352  set dummy ranlib; ac_word=$2  set dummy ranlib; ac_word=$2
2353  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2354  echo "configure:2301: checking for $ac_word" >&5  echo "configure:2355: checking for $ac_word" >&5
2355  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2356    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2357  else  else
# Line 2324  Line 2378 
2378    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2379  fi  fi
2380    
2381      for ac_prog in $AS as        for ac_prog in $AS as
2382  do  do
2383  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
2384  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2385  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2386  echo "configure:2333: checking for $ac_word" >&5  echo "configure:2387: checking for $ac_word" >&5
2387  if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
2388    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2389  else  else
# Line 2365  Line 2419 
2419  done  done
2420  test -n "$AS" || AS="$CC"  test -n "$AS" || AS="$CC"
2421    
2422      if test "$msyshost"; then
2423        case "$AS" in
2424        /*)
2425          tmp_DIRNAME=`dirname "$AS"`
2426          tmp_BASENAME=`basename "$AS"`
2427          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
2428          AS="$tmp_PWD/$tmp_BASENAME"
2429          if test -e "$AS.exe"; then
2430            AS="$AS.exe"
2431          fi
2432        esac
2433      fi
2434    
2435      for ac_prog in ar      for ac_prog in ar
2436  do  do
2437  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
2438  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2439  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2440  echo "configure:2374: checking for $ac_word" >&5  echo "configure:2441: checking for $ac_word" >&5
2441  if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2442    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2443  else  else
# Line 2405  Line 2472 
2472  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
2473  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2474  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2475  echo "configure:2409: checking for $ac_word" >&5  echo "configure:2476: checking for $ac_word" >&5
2476  if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
2477    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2478  else  else
# Line 2440  Line 2507 
2507  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
2508  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2509  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2510  echo "configure:2444: checking for $ac_word" >&5  echo "configure:2511: checking for $ac_word" >&5
2511  if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2512    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2513  else  else
# Line 2475  Line 2542 
2542  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
2543  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2544  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2545  echo "configure:2479: checking for $ac_word" >&5  echo "configure:2546: checking for $ac_word" >&5
2546  if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
2547    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2548  else  else
# Line 2581  Line 2648 
2648      ;;      ;;
2649  esac  esac
2650    
 # Check whether --with-windows-version or --without-windows-version was given.  
 if test "${with_windows_version+set}" = set; then  
   withval="$with_windows_version"  
   WINVER=$withval  
 fi  
   
   
 case "$WINVER" in  
 400|500|501)  
     ;;  
   
 *)  
     { echo "configure: error: Invalid value --with-windows-version, must be 400, 500 or 501" 1>&2; exit 1; };  
     ;;  
   
 esac  
   
2651  case "$target" in  case "$target" in
2652  *-cygwin*|*-mingw*|*-msvc*|*-mks*|*-wince)  *-cygwin*|*-mingw*|*-msvc*|*-mks*|*-wince)
2653      if test "$GCC" != "yes"; then      if test "$GCC" != "yes"; then
# Line 2616  Line 2666 
2666  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
2667    
2668          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
2669  #line 2620 "configure"  #line 2670 "configure"
2670  #include "confdefs.h"  #include "confdefs.h"
2671  #include <stdio.h>  #include <stdio.h>
2672  int main() {  int main() {
2673   printf("Hello World\n");   printf("Hello World\n");
2674  ; return 0; }  ; return 0; }
2675  EOF  EOF
2676  if { (eval echo configure:2627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2677    :    :
2678  else  else
2679    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
# Line 2641  Line 2691 
2691  cross_compiling=$ac_cv_prog_cxx_cross  cross_compiling=$ac_cv_prog_cxx_cross
2692    
2693          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
2694  #line 2645 "configure"  #line 2695 "configure"
2695  #include "confdefs.h"  #include "confdefs.h"
2696  #include <new.h>  #include <new.h>
2697  int main() {  int main() {
2698   unsigned *test = new unsigned(42);   unsigned *test = new unsigned(42);
2699  ; return 0; }  ; return 0; }
2700  EOF  EOF
2701  if { (eval echo configure:2652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2702    :    :
2703  else  else
2704    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
# Line 2683  Line 2733 
2733          if test "$_CC_MAJOR_VERSION" != "$_CXX_MAJOR_VERSION"; then          if test "$_CC_MAJOR_VERSION" != "$_CXX_MAJOR_VERSION"; then
2734              { echo "configure: error: The major versions of \$CC and \$CXX do not match." 1>&2; exit 1; }              { echo "configure: error: The major versions of \$CC and \$CXX do not match." 1>&2; exit 1; }
2735          fi          fi
2736          if test "$_CC_MAJOR_VERSION" = "12"; then          if test "$_CC_MAJOR_VERSION" = "13"; then
             _CC_SUITE=6  
         elif test "$_CC_MAJOR_VERSION" = "13"; then  
2737              _CC_SUITE=7              _CC_SUITE=7
2738          elif test "$_CC_MAJOR_VERSION" = "14"; then          elif test "$_CC_MAJOR_VERSION" = "14"; then
2739              _CC_SUITE=8              _CC_SUITE=8
# Line 2764  Line 2812 
2812          _W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'`          _W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'`
2813          _W32API_MINOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $2 }'`          _W32API_MINOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $2 }'`
2814          echo $ac_n "checking for w32api version >= $W32API_VERSION""... $ac_c" 1>&6          echo $ac_n "checking for w32api version >= $W32API_VERSION""... $ac_c" 1>&6
2815  echo "configure:2768: checking for w32api version >= $W32API_VERSION" >&5  echo "configure:2816: checking for w32api version >= $W32API_VERSION" >&5
2816          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
2817  #line 2770 "configure"  #line 2818 "configure"
2818  #include "confdefs.h"  #include "confdefs.h"
2819  #include <w32api.h>  #include <w32api.h>
2820  int main() {  int main() {
# Line 2778  Line 2826 
2826                            
2827  ; return 0; }  ; return 0; }
2828  EOF  EOF
2829  if { (eval echo configure:2782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2830    rm -rf conftest*    rm -rf conftest*
2831     res=yes     res=yes
2832  else  else
# Line 2794  Line 2842 
2842          fi          fi
2843          # Check windres version          # Check windres version
2844          echo $ac_n "checking for windres version >= $WINDRES_VERSION""... $ac_c" 1>&6          echo $ac_n "checking for windres version >= $WINDRES_VERSION""... $ac_c" 1>&6
2845  echo "configure:2798: checking for windres version >= $WINDRES_VERSION" >&5  echo "configure:2846: checking for windres version >= $WINDRES_VERSION" >&5
2846          _WINDRES_VERSION=`${WINDRES} --version 2>&1 | grep -i windres 2>/dev/null | $AWK '{ print $3 }'`          _WINDRES_VERSION=`${WINDRES} --version 2>&1 | grep -i windres 2>/dev/null | $AWK '{ print $3 }'`
2847          echo "$ac_t""$_WINDRES_VERSION" 1>&6          echo "$ac_t""$_WINDRES_VERSION" 1>&6
2848          _WINDRES_MAJOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $1 }'`          _WINDRES_MAJOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $1 }'`
# Line 2833  Line 2881 
2881  if test "$CC" != "icc" -a -z "$_WIN32_MSVC"; then  if test "$CC" != "icc" -a -z "$_WIN32_MSVC"; then
2882      if test "x$CC" != xcc; then      if test "x$CC" != xcc; then
2883    echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6    echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
2884  echo "configure:2837: checking whether $CC and cc understand -c and -o together" >&5  echo "configure:2885: checking whether $CC and cc understand -c and -o together" >&5
2885  else  else
2886    echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6    echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
2887  echo "configure:2840: checking whether cc understands -c and -o together" >&5  echo "configure:2888: checking whether cc understands -c and -o together" >&5
2888  fi  fi
2889  set dummy $CC; ac_cc="`echo $2 |  set dummy $CC; ac_cc="`echo $2 |
2890                         sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"                         sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
# Line 2848  Line 2896 
2896  # We do the test twice because some compilers refuse to overwrite an  # We do the test twice because some compilers refuse to overwrite an
2897  # existing .o file with -o, though they will create one.  # existing .o file with -o, though they will create one.
2898  ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'  ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
2899  if { (eval echo configure:2852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&  if { (eval echo configure:2900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
2900     test -f conftest.o && { (eval echo configure:2853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };     test -f conftest.o && { (eval echo configure:2901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
2901  then  then
2902    eval ac_cv_prog_cc_${ac_cc}_c_o=yes    eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2903    if test "x$CC" != xcc; then    if test "x$CC" != xcc; then
2904      # Test first that cc exists at all.      # Test first that cc exists at all.
2905      if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:2858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then      if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:2906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2906        ac_try='cc -c conftest.c -o conftest.o 1>&5'        ac_try='cc -c conftest.c -o conftest.o 1>&5'
2907        if { (eval echo configure:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&        if { (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
2908           test -f conftest.o && { (eval echo configure:2861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };           test -f conftest.o && { (eval echo configure:2909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
2909        then        then
2910          # cc works too.          # cc works too.
2911          :          :
# Line 2893  Line 2941 
2941  fi  fi
2942    
2943  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2944  echo "configure:2897: checking how to run the C preprocessor" >&5  echo "configure:2945: checking how to run the C preprocessor" >&5
2945  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2946  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2947    CPP=    CPP=
# Line 2908  Line 2956 
2956    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
2957    # not just through cpp.    # not just through cpp.
2958    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2959  #line 2912 "configure"  #line 2960 "configure"
2960  #include "confdefs.h"  #include "confdefs.h"
2961  #include <assert.h>  #include <assert.h>
2962  Syntax Error  Syntax Error
2963  EOF  EOF
2964  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2965  { (eval echo configure:2918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2966  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2967  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2968    :    :
# Line 2925  Line 2973 
2973    rm -rf conftest*    rm -rf conftest*
2974    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
2975    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2976  #line 2929 "configure"  #line 2977 "configure"
2977  #include "confdefs.h"  #include "confdefs.h"
2978  #include <assert.h>  #include <assert.h>
2979  Syntax Error  Syntax Error
2980  EOF  EOF
2981  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2982  { (eval echo configure:2935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2983  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2984  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2985    :    :
# Line 2942  Line 2990 
2990    rm -rf conftest*    rm -rf conftest*
2991    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
2992    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2993  #line 2946 "configure"  #line 2994 "configure"
2994  #include "confdefs.h"  #include "confdefs.h"
2995  #include <assert.h>  #include <assert.h>
2996  Syntax Error  Syntax Error
2997  EOF  EOF
2998  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2999  { (eval echo configure:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3000  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3001  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3002    :    :
# Line 2973  Line 3021 
3021  echo "$ac_t""$CPP" 1>&6  echo "$ac_t""$CPP" 1>&6
3022    
3023  echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
3024  echo "configure:2977: checking how to run the C++ preprocessor" >&5  echo "configure:3025: checking how to run the C++ preprocessor" >&5
3025  if test -z "$CXXCPP"; then  if test -z "$CXXCPP"; then
3026  if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
3027    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2986  Line 3034 
3034  cross_compiling=$ac_cv_prog_cxx_cross  cross_compiling=$ac_cv_prog_cxx_cross
3035    CXXCPP="${CXX-g++} -E"    CXXCPP="${CXX-g++} -E"
3036    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3037  #line 2990 "configure"  #line 3038 "configure"
3038  #include "confdefs.h"  #include "confdefs.h"
3039  #include <stdlib.h>  #include <stdlib.h>
3040  EOF  EOF
3041  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3042  { (eval echo configure:2995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3043  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3044  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3045    :    :
# Line 3024  Line 3072 
3072      # Since we're skipping compiler and library checks, hard-code      # Since we're skipping compiler and library checks, hard-code
3073      # some facts here.      # some facts here.
3074    
3075        # Common to all MSVC environments:
3076      # Windows lacks <stdint.h>, but has __int8, and so on.      # Windows lacks <stdint.h>, but has __int8, and so on.
3077      cat >> confdefs.h <<\EOF      cat >> confdefs.h <<\EOF
3078  #define JS_HAVE___INTN 1  #define JS_HAVE___INTN 1
3079  EOF  EOF
3080    
3081      # Windows <stddef.h> defines intptr_t and uintptr_t.  
3082      # VS2005: http://msdn.microsoft.com/en-us/library/323b6b3k(VS.80).aspx      case "$target" in
3083      # VS2008: http://msdn.microsoft.com/en-us/library/323b6b3k.aspx      *-wince)
3084      cat >> confdefs.h <<\EOF          cat >> confdefs.h <<\EOF
3085    #define HAVE_SYSTEMTIMETOFILETIME 1
3086    EOF
3087    
3088            cat >> confdefs.h <<\EOF
3089    #define JS_CRTDEFS_H_HAS_INTPTR_T 1
3090    EOF
3091    
3092            ;;
3093        *)
3094            cat >> confdefs.h <<\EOF
3095    #define HAVE_SYSTEMTIMETOFILETIME 1
3096    EOF
3097    
3098            cat >> confdefs.h <<\EOF
3099    #define HAVE_GETSYSTEMTIMEASFILETIME 1
3100    EOF
3101    
3102            # Windows <stddef.h> defines intptr_t and uintptr_t.
3103            # VS2005: http://msdn.microsoft.com/en-us/library/323b6b3k(VS.80).aspx
3104            # VS2008: http://msdn.microsoft.com/en-us/library/323b6b3k.aspx
3105            cat >> confdefs.h <<\EOF
3106  #define JS_STDDEF_H_HAS_INTPTR_T 1  #define JS_STDDEF_H_HAS_INTPTR_T 1
3107  EOF  EOF
3108    
3109            ;;
3110        esac
3111  fi  fi
3112    
3113  fi # COMPILE_ENVIRONMENT  fi # COMPILE_ENVIRONMENT
# Line 3067  Line 3139 
3139  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3140  # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
3141  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3142  echo "configure:3071: checking for a BSD compatible install" >&5  echo "configure:3143: checking for a BSD compatible install" >&5
3143  if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
3144  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3145    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3120  Line 3192 
3192  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3193    
3194  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3195  echo "configure:3124: checking whether ln -s works" >&5  echo "configure:3196: checking whether ln -s works" >&5
3196  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3197    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3198  else  else
# Line 3140  Line 3212 
3212    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3213  fi  fi
3214    
3215  for ac_prog in $PERL perl5 perl    for ac_prog in $PERL perl5 perl
3216  do  do
3217  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
3218  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3219  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3220  echo "configure:3149: checking for $ac_word" >&5  echo "configure:3221: checking for $ac_word" >&5
3221  if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3222    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3223  else  else
# Line 3180  Line 3252 
3252  test -n "$PERL" && break  test -n "$PERL" && break
3253  done  done
3254    
3255      if test "$msyshost"; then
3256        case "$PERL" in
3257        /*)
3258          tmp_DIRNAME=`dirname "$PERL"`
3259          tmp_BASENAME=`basename "$PERL"`
3260          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3261          PERL="$tmp_PWD/$tmp_BASENAME"
3262          if test -e "$PERL.exe"; then
3263            PERL="$PERL.exe"
3264          fi
3265        esac
3266      fi
3267    
3268  if test -z "$PERL" || test "$PERL" = ":"; then  if test -z "$PERL" || test "$PERL" = ":"; then
3269      { echo "configure: error: perl not found in \$PATH" 1>&2; exit 1; }      { echo "configure: error: perl not found in \$PATH" 1>&2; exit 1; }
3270  fi  fi
3271    
3272  if test -z "$TINDERBOX_SKIP_PERL_VERSION_CHECK"; then  if test -z "$TINDERBOX_SKIP_PERL_VERSION_CHECK"; then
3273  echo $ac_n "checking for minimum required perl version >= $PERL_VERSION""... $ac_c" 1>&6  echo $ac_n "checking for minimum required perl version >= $PERL_VERSION""... $ac_c" 1>&6
3274  echo "configure:3190: checking for minimum required perl version >= $PERL_VERSION" >&5  echo "configure:3275: checking for minimum required perl version >= $PERL_VERSION" >&5
3275  _perl_version=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5`  _perl_version=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5`
3276  _perl_res=$?  _perl_res=$?
3277  echo "$ac_t""$_perl_version" 1>&6  echo "$ac_t""$_perl_version" 1>&6
# Line 3197  Line 3282 
3282  fi  fi
3283    
3284  echo $ac_n "checking for full perl installation""... $ac_c" 1>&6  echo $ac_n "checking for full perl installation""... $ac_c" 1>&6
3285  echo "configure:3201: checking for full perl installation" >&5  echo "configure:3286: checking for full perl installation" >&5
3286  _perl_archlib=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5`  _perl_archlib=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5`
3287  _perl_res=$?  _perl_res=$?
3288  if test "$_perl_res" != 0; then  if test "$_perl_res" != 0; then
# Line 3207  Line 3292 
3292      echo "$ac_t""yes" 1>&6          echo "$ac_t""yes" 1>&6    
3293  fi  fi
3294    
3295  for ac_prog in $PYTHON python    for ac_prog in $PYTHON python
3296  do  do
3297  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
3298  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3299  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3300  echo "configure:3216: checking for $ac_word" >&5  echo "configure:3301: checking for $ac_word" >&5
3301  if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
3302    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3303  else  else
# Line 3247  Line 3332 
3332  test -n "$PYTHON" && break  test -n "$PYTHON" && break
3333  done  done
3334    
3335      if test "$msyshost"; then
3336        case "$PYTHON" in
3337        /*)
3338          tmp_DIRNAME=`dirname "$PYTHON"`
3339          tmp_BASENAME=`basename "$PYTHON"`
3340          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3341          PYTHON="$tmp_PWD/$tmp_BASENAME"
3342          if test -e "$PYTHON.exe"; then
3343            PYTHON="$PYTHON.exe"
3344          fi
3345        esac
3346      fi
3347    
3348  if test -z "$PYTHON"; then  if test -z "$PYTHON"; then
3349      { echo "configure: error: python was not found in \$PATH" 1>&2; exit 1; }      { echo "configure: error: python was not found in \$PATH" 1>&2; exit 1; }
3350  fi  fi
3351    
 for ac_prog in nsinstall  
 do  
 # Extract the first word of "$ac_prog", so it can be a program name with args.  
 set dummy $ac_prog; ac_word=$2  
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  
 echo "configure:3260: checking for $ac_word" >&5  
 if eval "test \"`echo '$''{'ac_cv_path_NSINSTALL_BIN'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   case "$NSINSTALL_BIN" in  
   /*)  
   ac_cv_path_NSINSTALL_BIN="$NSINSTALL_BIN" # Let the user override the test with a path.  
   ;;  
   ?:/*)                    
   ac_cv_path_NSINSTALL_BIN="$NSINSTALL_BIN" # Let the user override the test with a dos path.  
   ;;  
   *)  
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
   ac_dummy="$PATH"  
   for ac_dir in $ac_dummy; do  
     test -z "$ac_dir" && ac_dir=.  
     if test -f $ac_dir/$ac_word; then  
       ac_cv_path_NSINSTALL_BIN="$ac_dir/$ac_word"  
       break  
     fi  
   done  
   IFS="$ac_save_ifs"  
   ;;  
 esac  
 fi  
 NSINSTALL_BIN="$ac_cv_path_NSINSTALL_BIN"  
 if test -n "$NSINSTALL_BIN"; then  
   echo "$ac_t""$NSINSTALL_BIN" 1>&6  
 else  
   echo "$ac_t""no" 1>&6  
 fi  
   
 test -n "$NSINSTALL_BIN" && break  
 done  
   
3352  if test -z "$COMPILE_ENVIRONMENT"; then  if test -z "$COMPILE_ENVIRONMENT"; then
 if test -z "$NSINSTALL_BIN" || test "$NSINSTALL_BIN" = ":"; then  
3353      NSINSTALL_BIN='$(PYTHON) $(topsrcdir)/config/nsinstall.py'      NSINSTALL_BIN='$(PYTHON) $(topsrcdir)/config/nsinstall.py'
3354  fi  fi
 fi  
3355    
3356    
3357  # Extract the first word of "doxygen", so it can be a program name with args.   # Extract the first word of "doxygen", so it can be a program name with args.
3358  set dummy doxygen; ac_word=$2  set dummy doxygen; ac_word=$2
3359  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3360  echo "configure:3305: checking for $ac_word" >&5  echo "configure:3361: checking for $ac_word" >&5
3361  if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
3362    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3363  else  else
# Line 3334  Line 3390 
3390    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3391  fi  fi
3392    
3393  # Extract the first word of "whoami", so it can be a program name with args.    if test "$msyshost"; then
3394        case "$DOXYGEN" in
3395        /*)
3396          tmp_DIRNAME=`dirname "$DOXYGEN"`
3397          tmp_BASENAME=`basename "$DOXYGEN"`
3398          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3399          DOXYGEN="$tmp_PWD/$tmp_BASENAME"
3400          if test -e "$DOXYGEN.exe"; then
3401            DOXYGEN="$DOXYGEN.exe"
3402          fi
3403        esac
3404      fi
3405    
3406     # Extract the first word of "whoami", so it can be a program name with args.
3407  set dummy whoami; ac_word=$2  set dummy whoami; ac_word=$2
3408  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3409  echo "configure:3341: checking for $ac_word" >&5  echo "configure:3410: checking for $ac_word" >&5
3410  if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then
3411    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3412  else  else
# Line 3370  Line 3439 
3439    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3440  fi  fi
3441    
3442  # Extract the first word of "autoconf", so it can be a program name with args.    if test "$msyshost"; then
3443        case "$WHOAMI" in
3444        /*)
3445          tmp_DIRNAME=`dirname "$WHOAMI"`
3446          tmp_BASENAME=`basename "$WHOAMI"`
3447          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3448          WHOAMI="$tmp_PWD/$tmp_BASENAME"
3449          if test -e "$WHOAMI.exe"; then
3450            WHOAMI="$WHOAMI.exe"
3451          fi
3452        esac
3453      fi
3454    
3455     # Extract the first word of "autoconf", so it can be a program name with args.
3456  set dummy autoconf; ac_word=$2  set dummy autoconf; ac_word=$2
3457  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3458  echo "configure:3377: checking for $ac_word" >&5  echo "configure:3459: checking for $ac_word" >&5
3459  if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
3460    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3461  else  else
# Line 3406  Line 3488 
3488    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3489  fi  fi
3490    
3491  # Extract the first word of "unzip", so it can be a program name with args.    if test "$msyshost"; then
3492        case "$AUTOCONF" in
3493        /*)
3494          tmp_DIRNAME=`dirname "$AUTOCONF"`
3495          tmp_BASENAME=`basename "$AUTOCONF"`
3496          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3497          AUTOCONF="$tmp_PWD/$tmp_BASENAME"
3498          if test -e "$AUTOCONF.exe"; then
3499            AUTOCONF="$AUTOCONF.exe"
3500          fi
3501        esac
3502      fi
3503    
3504     # Extract the first word of "unzip", so it can be a program name with args.
3505  set dummy unzip; ac_word=$2  set dummy unzip; ac_word=$2
3506  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3507  echo "configure:3413: checking for $ac_word" >&5  echo "configure:3508: checking for $ac_word" >&5
3508  if eval "test \"`echo '$''{'ac_cv_path_UNZIP'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_UNZIP'+set}'`\" = set"; then
3509    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3510  else  else
# Line 3442  Line 3537 
3537    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3538  fi  fi
3539    
3540  for ac_prog in zip    if test "$msyshost"; then
3541        case "$UNZIP" in
3542        /*)
3543          tmp_DIRNAME=`dirname "$UNZIP"`
3544          tmp_BASENAME=`basename "$UNZIP"`
3545          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3546          UNZIP="$tmp_PWD/$tmp_BASENAME"
3547          if test -e "$UNZIP.exe"; then
3548            UNZIP="$UNZIP.exe"
3549          fi
3550        esac
3551      fi
3552    
3553      for ac_prog in zip
3554  do  do
3555  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
3556  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3557  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3558  echo "configure:3451: checking for $ac_word" >&5  echo "configure:3559: checking for $ac_word" >&5
3559  if eval "test \"`echo '$''{'ac_cv_path_ZIP'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_ZIP'+set}'`\" = set"; then
3560    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3561  else  else
# Line 3482  Line 3590 
3590  test -n "$ZIP" && break  test -n "$ZIP" && break
3591  done  done
3592    
3593      if test "$msyshost"; then
3594        case "$ZIP" in
3595        /*)
3596          tmp_DIRNAME=`dirname "$ZIP"`
3597          tmp_BASENAME=`basename "$ZIP"`
3598          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3599          ZIP="$tmp_PWD/$tmp_BASENAME"
3600          if test -e "$ZIP.exe"; then
3601            ZIP="$ZIP.exe"
3602          fi
3603        esac
3604      fi
3605    
3606  if test -z "$ZIP" || test "$ZIP" = ":"; then  if test -z "$ZIP" || test "$ZIP" = ":"; then
3607      { echo "configure: error: zip not found in \$PATH" 1>&2; exit 1; }      { echo "configure: error: zip not found in \$PATH" 1>&2; exit 1; }
3608  fi  fi
3609  # Extract the first word of "makedepend", so it can be a program name with args.   # Extract the first word of "makedepend", so it can be a program name with args.
3610  set dummy makedepend; ac_word=$2  set dummy makedepend; ac_word=$2
3611  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3612  echo "configure:3492: checking for $ac_word" >&5  echo "configure:3613: checking for $ac_word" >&5
3613  if eval "test \"`echo '$''{'ac_cv_path_SYSTEM_MAKEDEPEND'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_SYSTEM_MAKEDEPEND'+set}'`\" = set"; then
3614    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3615  else  else
# Line 3520  Line 3641 
3641    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3642  fi  fi
3643    
3644  # Extract the first word of "xargs", so it can be a program name with args.    if test "$msyshost"; then
3645        case "$SYSTEM_MAKEDEPEND" in
3646        /*)
3647          tmp_DIRNAME=`dirname "$SYSTEM_MAKEDEPEND"`
3648          tmp_BASENAME=`basename "$SYSTEM_MAKEDEPEND"`
3649          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3650          SYSTEM_MAKEDEPEND="$tmp_PWD/$tmp_BASENAME"
3651          if test -e "$SYSTEM_MAKEDEPEND.exe"; then
3652            SYSTEM_MAKEDEPEND="$SYSTEM_MAKEDEPEND.exe"
3653          fi
3654        esac
3655      fi
3656    
3657     # Extract the first word of "xargs", so it can be a program name with args.
3658  set dummy xargs; ac_word=$2  set dummy xargs; ac_word=$2
3659  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3660  echo "configure:3527: checking for $ac_word" >&5  echo "configure:3661: checking for $ac_word" >&5
3661  if eval "test \"`echo '$''{'ac_cv_path_XARGS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_XARGS'+set}'`\" = set"; then
3662    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3663  else  else
# Line 3555  Line 3689 
3689    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3690  fi  fi
3691    
3692      if test "$msyshost"; then
3693        case "$XARGS" in
3694        /*)
3695          tmp_DIRNAME=`dirname "$XARGS"`
3696          tmp_BASENAME=`basename "$XARGS"`
3697          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3698          XARGS="$tmp_PWD/$tmp_BASENAME"
3699          if test -e "$XARGS.exe"; then
3700            XARGS="$XARGS.exe"
3701          fi
3702        esac
3703      fi
3704    
3705  if test -z "$XARGS" || test "$XARGS" = ":"; then  if test -z "$XARGS" || test "$XARGS" = ":"; then
3706      { echo "configure: error: xargs not found in \$PATH ." 1>&2; exit 1; }      { echo "configure: error: xargs not found in \$PATH ." 1>&2; exit 1; }
3707  fi  fi
# Line 3579  Line 3726 
3726          fi          fi
3727      fi      fi
3728    
3729                  for ac_prog in pbbuild xcodebuild pbxbuild                    for ac_prog in pbbuild xcodebuild pbxbuild
3730  do  do
3731  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
3732  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3733  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3734  echo "configure:3588: checking for $ac_word" >&5  echo "configure:3735: checking for $ac_word" >&5
3735  if eval "test \"`echo '$''{'ac_cv_path_PBBUILD'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_PBBUILD'+set}'`\" = set"; then
3736    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3737  else  else
# Line 3619  Line 3766 
3766  test -n "$PBBUILD" && break  test -n "$PBBUILD" && break
3767  done  done
3768    
3769      if test "$msyshost"; then
3770        case "$PBBUILD" in
3771        /*)
3772          tmp_DIRNAME=`dirname "$PBBUILD"`
3773          tmp_BASENAME=`basename "$PBBUILD"`
3774          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3775          PBBUILD="$tmp_PWD/$tmp_BASENAME"
3776          if test -e "$PBBUILD.exe"; then
3777            PBBUILD="$PBBUILD.exe"
3778          fi
3779        esac
3780      fi
3781    
3782    
3783      case "$PBBUILD" in      case "$PBBUILD" in
3784        *xcodebuild*)        *xcodebuild*)
# Line 3631  Line 3791 
3791        ;;        ;;
3792      esac      esac
3793    
3794              # Extract the first word of "sdp", so it can be a program name with args.               # Extract the first word of "sdp", so it can be a program name with args.
3795  set dummy sdp; ac_word=$2  set dummy sdp; ac_word=$2
3796  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3797  echo "configure:3638: checking for $ac_word" >&5  echo "configure:3798: checking for $ac_word" >&5
3798  if eval "test \"`echo '$''{'ac_cv_path_SDP'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_SDP'+set}'`\" = set"; then
3799    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3800  else  else
# Line 3667  Line 3827 
3827    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3828  fi  fi
3829    
3830      if test "$msyshost"; then
3831        case "$SDP" in
3832        /*)
3833          tmp_DIRNAME=`dirname "$SDP"`
3834          tmp_BASENAME=`basename "$SDP"`
3835          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
3836          SDP="$tmp_PWD/$tmp_BASENAME"
3837          if test -e "$SDP.exe"; then
3838            SDP="$SDP.exe"
3839          fi
3840        esac
3841      fi
3842    
3843      ;;      ;;
3844  esac  esac
3845    
# Line 3722  Line 3895 
3895    
3896    GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'`    GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'`
3897    if test "$GCC_VERSION_MAJOR" -lt "4" ; then    if test "$GCC_VERSION_MAJOR" -lt "4" ; then
3898      SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include -F${MACOS_SDK_DIR}/System/Library/Frameworks"      { echo "configure: error: You need to upgrade the compiler version to 4.x" 1>&2; exit 1; }
     if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then  
       SDK_C_INCLUDE="$SDK_C_INCLUDE -F${MACOS_SDK_DIR}/Library/Frameworks"  
     fi  
     SDK_CXX_INCLUDE="-I${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION}/c++ -I${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION}/c++/ppc-darwin -I${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION}/c++/backward"  
   
     CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}"  
     CXXFLAGS="$CXXFLAGS -nostdinc -nostdinc++ ${SDK_CXX_INCLUDE} ${SDK_C_INCLUDE}"  
   
         CPP="$CPP -nostdinc ${SDK_C_INCLUDE}"  
     CXXCPP="$CXXCPP -nostdinc -nostdinc++ ${SDK_CXX_INCLUDE} ${SDK_C_INCLUDE}"  
   
                         LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin -L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION_FULL} -L${MACOS_SDK_DIR}/usr/lib $LIBS"  
     export NEXT_ROOT=$MACOS_SDK_DIR  
   
     if test -n "$CROSS_COMPILE" ; then  
                   HOST_CC="NEXT_ROOT= $HOST_CC"  
       HOST_CXX="NEXT_ROOT= $HOST_CXX"  
     fi  
3899    else    else
3900              CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}"      CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}"
3901      CXXFLAGS="$CXXFLAGS -isysroot ${MACOS_SDK_DIR}"      CXXFLAGS="$CXXFLAGS -isysroot ${MACOS_SDK_DIR}"
3902    
3903          CPP="$CPP -isysroot ${MACOS_SDK_DIR}"          CPP="$CPP -isysroot ${MACOS_SDK_DIR}"
# Line 3755  Line 3910 
3910    
3911        
3912    echo $ac_n "checking for valid compiler/Mac OS X SDK combination""... $ac_c" 1>&6    echo $ac_n "checking for valid compiler/Mac OS X SDK combination""... $ac_c" 1>&6
3913  echo "configure:3759: checking for valid compiler/Mac OS X SDK combination" >&5  echo "configure:3914: checking for valid compiler/Mac OS X SDK combination" >&5
3914    ac_ext=C    ac_ext=C
3915  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3916  ac_cpp='$CXXCPP $CPPFLAGS'  ac_cpp='$CXXCPP $CPPFLAGS'
# Line 3764  Line 3919 
3919  cross_compiling=$ac_cv_prog_cxx_cross  cross_compiling=$ac_cv_prog_cxx_cross
3920    
3921    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3922  #line 3768 "configure"  #line 3923 "configure"
3923  #include "confdefs.h"  #include "confdefs.h"
3924  #include <new>  #include <new>
3925                   int main() { return 0; }                   int main() { return 0; }
# Line 3772  Line 3927 
3927  result=yes  result=yes
3928  ; return 0; }  ; return 0; }
3929  EOF  EOF
3930  if { (eval echo configure:3776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3931    rm -rf conftest*    rm -rf conftest*
3932    result=no    result=no
3933  else  else
# Line 3798  Line 3953 
3953    
3954  case "$host_os" in  case "$host_os" in
3955  cygwin*|mingw*|mks*|msvc*)  cygwin*|mingw*|mks*|msvc*)
3956      for ac_prog in $MAKE make gmake        for ac_prog in $MAKE make gmake
3957  do  do
3958  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
3959  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
3960  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3961  echo "configure:3807: checking for $ac_word" >&5  echo "configure:3962: checking for $ac_word" >&5
3962  if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
3963    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3964  else  else
# Line 3839  Line 3994 
3994  done  done
3995  test -n "$MAKE" || MAKE=":"  test -n "$MAKE" || MAKE=":"
3996    
3997      if test "$msyshost"; then
3998        case "$MAKE" in
3999        /*)
4000          tmp_DIRNAME=`dirname "$MAKE"`
4001          tmp_BASENAME=`basename "$MAKE"`
4002          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
4003          MAKE="$tmp_PWD/$tmp_BASENAME"
4004          if test -e "$MAKE.exe"; then
4005            MAKE="$MAKE.exe"
4006          fi
4007        esac
4008      fi
4009    
4010      ;;      ;;
4011  *)  *)
4012      for ac_prog in $MAKE gmake make        for ac_prog in $MAKE gmake make
4013  do  do
4014  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
4015  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
4016  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4017  echo "configure:3850: checking for $ac_word" >&5  echo "configure:4018: checking for $ac_word" >&5
4018  if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
4019    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4020  else  else
# Line 3882  Line 4050 
4050  done  done
4051  test -n "$MAKE" || MAKE=":"  test -n "$MAKE" || MAKE=":"
4052    
4053      if test "$msyshost"; then
4054        case "$MAKE" in
4055        /*)
4056          tmp_DIRNAME=`dirname "$MAKE"`
4057          tmp_BASENAME=`basename "$MAKE"`
4058          tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
4059          MAKE="$tmp_PWD/$tmp_BASENAME"
4060          if test -e "$MAKE.exe"; then
4061            MAKE="$MAKE.exe"
4062          fi
4063        esac
4064      fi
4065    
4066      ;;      ;;
4067  esac  esac
 _make_try=`$MAKE --version 2>/dev/null | grep GNU`  
 if test ! "$_make_try"  
 then  
         echo  
         echo "*** $MAKE is not GNU Make.  You will not be able to build Mozilla without GNU Make."  
         echo  
         exit 1  
 fi  
 rm -f dummy.mk  
 echo 'all: ; @echo $(MAKE_VERSION)' > dummy.mk  
 _make_vers=`$MAKE --no-print-directory -f dummy.mk all 2>/dev/null`  
 rm -f dummy.mk  
 _MAKE_MAJOR_VERSION=`echo $_make_vers | $AWK -F\. '{ print $1 }'`  
 _MAKE_MINOR_VERSION=`echo $_make_vers | $AWK -F\. '{ print $2 }'`  
 MAKE_MAJOR_VERSION=`echo $MAKE_VERSION | $AWK -F\. '{ print $1 }'`  
 MAKE_MINOR_VERSION=`echo $MAKE_VERSION | $AWK -F\. '{ print $2 }'`  
 if test "$_MAKE_MAJOR_VERSION" -lt "$MAKE_MAJOR_VERSION" || \  
    test "$_MAKE_MAJOR_VERSION" = "$MAKE_MAJOR_VERSION" -a \  
         "$_MAKE_MINOR_VERSION" -lt "$MAKE_MINOR_VERSION"; then  
    { echo "configure: error: GNU Make $MAKE_VERSION or higher is required to build Mozilla." 1>&2; exit 1; }  
 fi  
   
4068    
4069  if test "$COMPILE_ENVIRONMENT"; then  if test "$COMPILE_ENVIRONMENT"; then
4070    
# Line 3914  Line 4073 
4073  # Uses ac_ vars as temps to allow command line to override cache and checks.  # Uses ac_ vars as temps to allow command line to override cache and checks.
4074  # --without-x overrides everything else, but does not touch the cache.  # --without-x overrides everything else, but does not touch the cache.
4075  echo $ac_n "checking for X""... $ac_c" 1>&6  echo $ac_n "checking for X""... $ac_c" 1>&6
4076  echo "configure:3918: checking for X" >&5  echo "configure:4077: checking for X" >&5
4077    
4078  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
4079  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
# Line 3976  Line 4135 
4135    
4136    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
4137  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4138  #line 3980 "configure"  #line 4139 "configure"
4139  #include "confdefs.h"  #include "confdefs.h"
4140  #include <$x_direct_test_include>  #include <$x_direct_test_include>
4141  EOF  EOF
4142  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4143  { (eval echo configure:3985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4144  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4145  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4146    rm -rf conftest*    rm -rf conftest*
# Line 4050  Line 4209 
4209    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4210    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-l$x_direct_test_library $LIBS"
4211  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4212  #line 4054 "configure"  #line 4213 "configure"
4213  #include "confdefs.h"  #include "confdefs.h"
4214    
4215  int main() {  int main() {
4216  ${x_direct_test_function}()  ${x_direct_test_function}()
4217  ; return 0; }  ; return 0; }
4218  EOF  EOF
4219  if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4220    rm -rf conftest*    rm -rf conftest*
4221    LIBS="$ac_save_LIBS"    LIBS="$ac_save_LIBS"
4222  # We can link X programs with no special library path.  # We can link X programs with no special library path.
# Line 4163  Line 4322 
4322      case "`(uname -sr) 2>/dev/null`" in      case "`(uname -sr) 2>/dev/null`" in
4323      "SunOS 5"*)      "SunOS 5"*)
4324        echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6        echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4325  echo "configure:4167: checking whether -R must be followed by a space" >&5  echo "configure:4326: checking whether -R must be followed by a space" >&5
4326        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4327        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
4328  #line 4170 "configure"  #line 4329 "configure"
4329  #include "confdefs.h"  #include "confdefs.h"
4330    
4331  int main() {  int main() {
4332    
4333  ; return 0; }  ; return 0; }
4334  EOF  EOF
4335  if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4336    rm -rf conftest*    rm -rf conftest*
4337    ac_R_nospace=yes    ac_R_nospace=yes
4338  else  else
# Line 4189  Line 4348 
4348        else        else
4349          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
4350          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
4351  #line 4193 "configure"  #line 4352 "configure"
4352  #include "confdefs.h"  #include "confdefs.h"
4353    
4354  int main() {  int main() {
4355    
4356  ; return 0; }  ; return 0; }
4357  EOF  EOF
4358  if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4359    rm -rf conftest*    rm -rf conftest*
4360    ac_R_space=yes    ac_R_space=yes
4361  else  else
# Line 4228  Line 4387 
4387      # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And karl@cs.umb.edu says
4388      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
4389      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4390  echo "configure:4232: checking for dnet_ntoa in -ldnet" >&5  echo "configure:4391: checking for dnet_ntoa in -ldnet" >&5
4391  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4392  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4393    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4236  Line 4395 
4395    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4396  LIBS="-ldnet  $LIBS"  LIBS="-ldnet  $LIBS"
4397  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4398  #line 4240 "configure"  #line 4399 "configure"
4399  #include "confdefs.h"  #include "confdefs.h"
4400  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4401  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4247  Line 4406 
4406  dnet_ntoa()  dnet_ntoa()
4407  ; return 0; }  ; return 0; }
4408  EOF  EOF
4409  if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4410    rm -rf conftest*    rm -rf conftest*
4411    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4412  else  else
# Line 4269  Line 4428 
4428    
4429      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4430        echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6        echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4431  echo "configure:4273: checking for dnet_ntoa in -ldnet_stub" >&5  echo "configure:4432: checking for dnet_ntoa in -ldnet_stub" >&5
4432  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4433  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4434    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4277  Line 4436 
4436    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4437  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
4438  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4439  #line 4281 "configure"  #line 4440 "configure"
4440  #include "confdefs.h"  #include "confdefs.h"
4441  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4442  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4288  Line 4447 
4447  dnet_ntoa()  dnet_ntoa()
4448  ; return 0; }  ; return 0; }
4449  EOF  EOF
4450  if { (eval echo configure:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4451    rm -rf conftest*    rm -rf conftest*
4452    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4453  else  else
# Line 4317  Line 4476 
4476      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
4477      # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to dickey@clark.net.
4478      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4479  echo "configure:4321: checking for gethostbyname" >&5  echo "configure:4480: checking for gethostbyname" >&5
4480  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4481    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4482  else  else
4483    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4484  #line 4326 "configure"  #line 4485 "configure"
4485  #include "confdefs.h"  #include "confdefs.h"
4486  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4487      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 4345  Line 4504 
4504    
4505  ; return 0; }  ; return 0; }
4506  EOF  EOF
4507  if { (eval echo configure:4349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4508    rm -rf conftest*    rm -rf conftest*
4509    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
4510  else  else
# Line 4366  Line 4525 
4525    
4526      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
4527        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4528  echo "configure:4370: checking for gethostbyname in -lnsl" >&5  echo "configure:4529: checking for gethostbyname in -lnsl" >&5
4529  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4530  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4531    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4374  Line 4533 
4533    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4534  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4535  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4536  #line 4378 "configure"  #line 4537 "configure"
4537  #include "confdefs.h"  #include "confdefs.h"
4538  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4539  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4385  Line 4544 
4544  gethostbyname()  gethostbyname()
4545  ; return 0; }  ; return 0; }
4546  EOF  EOF
4547  if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4548    rm -rf conftest*    rm -rf conftest*
4549    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4550  else  else
# Line 4415  Line 4574 
4574      # -lsocket must be given before -lnsl if both are needed.      # -lsocket must be given before -lnsl if both are needed.
4575      # We assume that if connect needs -lnsl, so does gethostbyname.      # We assume that if connect needs -lnsl, so does gethostbyname.
4576      echo $ac_n "checking for connect""... $ac_c" 1>&6      echo $ac_n "checking for connect""... $ac_c" 1>&6
4577  echo "configure:4419: checking for connect" >&5  echo "configure:4578: checking for connect" >&5
4578  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4579    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4580  else  else
4581    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4582  #line 4424 "configure"  #line 4583 "configure"
4583  #include "confdefs.h"  #include "confdefs.h"
4584  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4585      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 4443  Line 4602 
4602    
4603  ; return 0; }  ; return 0; }
4604  EOF  EOF
4605  if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4606    rm -rf conftest*    rm -rf conftest*
4607    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
4608  else  else
# Line 4464  Line 4623 
4623    
4624      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
4625        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4626  echo "configure:4468: checking for connect in -lsocket" >&5  echo "configure:4627: checking for connect in -lsocket" >&5
4627  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4628  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4629    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4472  Line 4631 
4631    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4632  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4633  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4634  #line 4476 "configure"  #line 4635 "configure"
4635  #include "confdefs.h"  #include "confdefs.h"
4636  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4637  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4483  Line 4642 
4642  connect()  connect()
4643  ; return 0; }  ; return 0; }
4644  EOF  EOF
4645  if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4646    rm -rf conftest*    rm -rf conftest*
4647    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4648  else  else
# Line 4507  Line 4666 
4666    
4667      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4668      echo $ac_n "checking for remove""... $ac_c" 1>&6      echo $ac_n "checking for remove""... $ac_c" 1>&6
4669  echo "configure:4511: checking for remove" >&5  echo "configure:4670: checking for remove" >&5
4670  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4671    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4672  else  else
4673    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4674  #line 4516 "configure"  #line 4675 "configure"
4675  #include "confdefs.h"  #include "confdefs.h"
4676  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4677      which can conflict with char remove(); below.  */      which can conflict with char remove(); below.  */
# Line 4535  Line 4694 
4694    
4695  ; return 0; }  ; return 0; }
4696  EOF  EOF
4697  if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4698    rm -rf conftest*    rm -rf conftest*
4699    eval "ac_cv_func_remove=yes"    eval "ac_cv_func_remove=yes"
4700  else  else
# Line 4556  Line 4715 
4715    
4716      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
4717        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4718  echo "configure:4560: checking for remove in -lposix" >&5  echo "configure:4719: checking for remove in -lposix" >&5
4719  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4720  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4721    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4564  Line 4723 
4723    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4724  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
4725  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4726  #line 4568 "configure"  #line 4727 "configure"
4727  #include "confdefs.h"  #include "confdefs.h"
4728  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4729  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4575  Line 4734 
4734  remove()  remove()
4735  ; return 0; }  ; return 0; }
4736  EOF  EOF
4737  if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4738    rm -rf conftest*    rm -rf conftest*
4739    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4740  else  else
# Line 4599  Line 4758 
4758    
4759      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4760      echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo $ac_n "checking for shmat""... $ac_c" 1>&6
4761  echo "configure:4603: checking for shmat" >&5  echo "configure:4762: checking for shmat" >&5
4762  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4763    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4764  else  else
4765    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4766  #line 4608 "configure"  #line 4767 "configure"
4767  #include "confdefs.h"  #include "confdefs.h"
4768  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4769      which can conflict with char shmat(); below.  */      which can conflict with char shmat(); below.  */
# Line 4627  Line 4786 
4786    
4787  ; return 0; }  ; return 0; }
4788  EOF  EOF
4789  if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4790    rm -rf conftest*    rm -rf conftest*
4791    eval "ac_cv_func_shmat=yes"    eval "ac_cv_func_shmat=yes"
4792  else  else
# Line 4648  Line 4807 
4807    
4808      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
4809        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4810  echo "configure:4652: checking for shmat in -lipc" >&5  echo "configure:4811: checking for shmat in -lipc" >&5
4811  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4812  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4813    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4656  Line 4815 
4815    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4816  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
4817  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4818  #line 4660 "configure"  #line 4819 "configure"
4819  #include "confdefs.h"  #include "confdefs.h"
4820  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4821  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4667  Line 4826 
4826  shmat()  shmat()
4827  ; return 0; }  ; return 0; }
4828  EOF  EOF
4829  if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4830    rm -rf conftest*    rm -rf conftest*
4831    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4832  else  else
# Line 4700  Line 4859 
4859    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
4860    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4861    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4862  echo "configure:4704: checking for IceConnectionNumber in -lICE" >&5  echo "configure:4863: checking for IceConnectionNumber in -lICE" >&5
4863  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4864  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4865    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4708  Line 4867 
4867    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4868  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4869  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4870  #line 4712 "configure"  #line 4871 "configure"
4871  #include "confdefs.h"  #include "confdefs.h"
4872  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4873  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 4719  Line 4878 
4878  IceConnectionNumber()  IceConnectionNumber()
4879  ; return 0; }  ; return 0; }
4880  EOF  EOF
4881  if { (eval echo configure:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4882    rm -rf conftest*    rm -rf conftest*
4883    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4884  else  else
# Line 4818  Line 4977 
4977  #######################################################################  #######################################################################
4978    
4979  #  #
 # Note: OS_TARGET should be specified on the command line for gmake.  
 # When OS_TARGET=WIN95 is specified, then a Windows 95 target is built.  
 # The difference between the Win95 target and the WinNT target is that  
 # the WinNT target uses Windows NT specific features not available  
 # in Windows 95. The Win95 target will run on Windows NT, but (supposedly)  
 # at lesser performance (the Win95 target uses threads; the WinNT target  
 # uses fibers).  
 #  
4980  # If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no  # If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no
4981  # cross-compilation.  # cross-compilation.
4982  #  #
4983    
4984  #  #
 # The following hack allows one to build on a WIN95 machine (as if  
 # s/he were cross-compiling on a WINNT host for a WIN95 target).  
 # It also accomodates for MKS's uname.exe.  If you never intend  
 # to do development on a WIN95 machine, you don't need this hack.  
 #  
 case "$OS_ARCH" in  
 WIN95)  
     OS_ARCH=WINNT  
     OS_TARGET=WIN95  
     ;;  
 Windows_95)  
     OS_ARCH=Windows_NT  
     OS_TARGET=WIN95  
     ;;  
 Windows_98)  
     OS_ARCH=Windows_NT  
     OS_TARGET=WIN95  
     ;;  
 CYGWIN_9*|CYGWIN_ME*)  
     OS_ARCH='CYGWIN_NT-4.0'  
     OS_TARGET=WIN95  
     ;;  
 esac  
   
 #  
4985  # Define and override various archtecture-specific variables, including  # Define and override various archtecture-specific variables, including
4986  # HOST_OS_ARCH  # HOST_OS_ARCH
4987  # OS_ARCH  # OS_ARCH
# Line 5051  Line 5177 
5177      i*86*)      i*86*)
5178          OS_TEST=i386          OS_TEST=i386
5179          ;;          ;;
5180        x86_64)
5181            OS_TEST=x86_64
5182            ;;
5183      *)      *)
5184          if test -z "$CROSS_COMPILE" ; then          if test -z "$CROSS_COMPILE" ; then
5185              OS_TEST=`uname -p`              OS_TEST=`uname -p`
# Line 5092  Line 5221 
5221  x86_64 | ia64)  x86_64 | ia64)
5222      CPU_ARCH="$OS_TEST"      CPU_ARCH="$OS_TEST"
5223      ;;      ;;
5224    
5225    arm)
5226        if test "$OS_TARGET" = "WINCE"; then
5227            CPU_ARCH="$OS_TEST"
5228        fi
5229        ;;
5230  esac  esac
5231    
5232  if test -z "$OS_TARGET"; then  if test -z "$OS_TARGET"; then
5233      OS_TARGET=$OS_ARCH      OS_TARGET=$OS_ARCH
5234  fi  fi
 if test "$OS_TARGET" = "WIN95"; then  
     OS_RELEASE="4.0"  
 fi  
5235  OS_CONFIG="${OS_TARGET}${OS_RELEASE}"  OS_CONFIG="${OS_TARGET}${OS_RELEASE}"
5236    
5237  if test "$GNU_CC"; then  if test "$GNU_CC"; then
# Line 5151  Line 5283 
5283      fi      fi
5284    
5285    
5286      _DEFINES_CFLAGS='-include $(DEPTH)/mozilla-config.h -DMOZILLA_CLIENT'      _DEFINES_CFLAGS='-include $(DEPTH)/js-confdefs.h -DMOZILLA_CLIENT'
5287      _USE_CPP_INCLUDE_FLAG=1      _USE_CPP_INCLUDE_FLAG=1
5288  elif test "$SOLARIS_SUNPRO_CC"; then  elif test "$SOLARIS_SUNPRO_CC"; then
5289      MKSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'      MKSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'
# Line 5170  Line 5302 
5302      else      else
5303          DSO_PIC_CFLAGS='-KPIC'          DSO_PIC_CFLAGS='-KPIC'
5304      fi      fi
5305      _DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'      _DEFINES_CFLAGS='$(ACDEFINES) -D_JS_CONFDEFS_H_ -DMOZILLA_CLIENT'
5306  else  else
5307      MKSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'      MKSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'
5308      MKCSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'      MKCSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'
# Line 5183  Line 5315 
5315    
5316      DSO_CFLAGS=''      DSO_CFLAGS=''
5317      DSO_PIC_CFLAGS='-KPIC'      DSO_PIC_CFLAGS='-KPIC'
5318      _DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'      _DEFINES_CFLAGS='$(ACDEFINES) -D_JS_CONFDEFS_H_ -DMOZILLA_CLIENT'
5319  fi  fi
5320    
5321  if test "$GNU_CXX"; then  if test "$GNU_CXX"; then
# Line 5203  Line 5335 
5335         esac         esac
5336      fi      fi
5337    
5338      _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -include $(DEPTH)/mozilla-config.h'      _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -include $(DEPTH)/js-confdefs.h'
5339      _USE_CPP_INCLUDE_FLAG=1      _USE_CPP_INCLUDE_FLAG=1
5340    
5341      echo $ac_n "checking whether the compiler supports -Wno-invalid-offsetof""... $ac_c" 1>&6      echo $ac_n "checking whether the compiler supports -Wno-invalid-offsetof""... $ac_c" 1>&6
5342  echo "configure:5211: checking whether the compiler supports -Wno-invalid-offsetof" >&5  echo "configure:5343: checking whether the compiler supports -Wno-invalid-offsetof" >&5
5343  if eval "test \"`echo '$''{'ac_has_wno_invalid_offsetof'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_has_wno_invalid_offsetof'+set}'`\" = set"; then
5344    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5345  else  else
# Line 5223  Line 5355 
5355              _SAVE_CXXFLAGS="$CXXFLAGS"              _SAVE_CXXFLAGS="$CXXFLAGS"
5356              CXXFLAGS="$CXXFLAGS ${_COMPILER_PREFIX}-Wno-invalid-offsetof"              CXXFLAGS="$CXXFLAGS ${_COMPILER_PREFIX}-Wno-invalid-offsetof"
5357              cat > conftest.$ac_ext <<EOF              cat > conftest.$ac_ext <<EOF
5358  #line 5227 "configure"  #line 5359 "configure"
5359  #include "confdefs.h"  #include "confdefs.h"
5360    
5361  int main() {  int main() {
5362  return(0);  return(0);
5363  ; return 0; }  ; return 0; }
5364  EOF  EOF
5365  if { (eval echo configure:5234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5366    rm -rf conftest*    rm -rf conftest*
5367    ac_has_wno_invalid_offsetof="yes"    ac_has_wno_invalid_offsetof="yes"
5368  else  else
# Line 5255  Line 5387 
5387      if test "$ac_has_wno_invalid_offsetof" = "yes"; then      if test "$ac_has_wno_invalid_offsetof" = "yes"; then
5388          _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} ${_COMPILER_PREFIX}-Wno-invalid-offsetof"          _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} ${_COMPILER_PREFIX}-Wno-invalid-offsetof"
5389      fi      fi
5390    
5391        echo $ac_n "checking whether the compiler supports -Wno-variadic-macros""... $ac_c" 1>&6
5392    echo "configure:5393: checking whether the compiler supports -Wno-variadic-macros" >&5
5393    if eval "test \"`echo '$''{'ac_has_wno_variadic_macros'+set}'`\" = set"; then
5394      echo $ac_n "(cached) $ac_c" 1>&6
5395  else  else
5396      _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -D_MOZILLA_CONFIG_H_ $(ACDEFINES)'    
5397                
5398                ac_ext=C
5399    # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5400    ac_cpp='$CXXCPP $CPPFLAGS'
5401    ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5402    ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5403    cross_compiling=$ac_cv_prog_cxx_cross
5404    
5405                _SAVE_CXXFLAGS="$CXXFLAGS"
5406                CXXFLAGS="$CXXFLAGS ${_COMPILER_PREFIX}-Wno-variadic-macros"
5407                cat > conftest.$ac_ext <<EOF
5408    #line 5409 "configure"
5409    #include "confdefs.h"
5410    
5411    int main() {
5412    return(0);
5413    ; return 0; }
5414    EOF
5415    if { (eval echo configure:5416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5416      rm -rf conftest*
5417      ac_has_wno_variadic_macros="yes"
5418    else
5419      echo "configure: failed program was:" >&5
5420      cat conftest.$ac_ext >&5
5421      rm -rf conftest*
5422      ac_has_wno_variadic_macros="no"
5423    fi
5424    rm -f conftest*
5425                CXXFLAGS="$_SAVE_CXXFLAGS"
5426                ac_ext=c
5427    # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5428    ac_cpp='$CPP $CPPFLAGS'
5429    ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5430    ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5431    cross_compiling=$ac_cv_prog_cc_cross
5432    
5433            
5434    fi
5435    
5436    echo "$ac_t""$ac_has_wno_variadic_macros" 1>&6
5437        if test "$ac_has_wno_variadic_macros" = "yes"; then
5438            _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} ${_COMPILER_PREFIX}-Wno-variadic-macros"
5439        fi
5440    else
5441        _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -D_JS_CONFDEFS_H_ $(ACDEFINES)'
5442  fi  fi
5443    
5444  MKSHLIB_FORCE_ALL=  MKSHLIB_FORCE_ALL=
# Line 5265  Line 5447 
5447  if test "$COMPILE_ENVIRONMENT"; then  if test "$COMPILE_ENVIRONMENT"; then
5448  if test "$GNU_CC"; then  if test "$GNU_CC"; then
5449    echo $ac_n "checking whether ld has archive extraction flags""... $ac_c" 1>&6    echo $ac_n "checking whether ld has archive extraction flags""... $ac_c" 1>&6
5450  echo "configure:5269: checking whether ld has archive extraction flags" >&5  echo "configure:5451: checking whether ld has archive extraction flags" >&5
5451    if eval "test \"`echo '$''{'ac_cv_mkshlib_force_and_unforce'+set}'`\" = set"; then    if eval "test \"`echo '$''{'ac_cv_mkshlib_force_and_unforce'+set}'`\" = set"; then
5452    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5453  else  else
# Line 5282  Line 5464 
5464        LDFLAGS=$force        LDFLAGS=$force
5465        LIBS=$unforce        LIBS=$unforce
5466        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
5467  #line 5286 "configure"  #line 5468 "configure"
5468  #include "confdefs.h"  #include "confdefs.h"
5469    
5470  int main() {  int main() {
5471    
5472  ; return 0; }  ; return 0; }
5473  EOF  EOF
5474  if { (eval echo configure:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5475    rm -rf conftest*    rm -rf conftest*
5476    ac_cv_mkshlib_force_and_unforce=$line; break    ac_cv_mkshlib_force_and_unforce=$line; break
5477  else  else
# Line 5322  Line 5504 
5504  '  '
5505    
5506  echo $ac_n "checking that static assertion macros used in autoconf tests work""... $ac_c" 1>&6  echo $ac_n "checking that static assertion macros used in autoconf tests work""... $ac_c" 1>&6
5507  echo "configure:5326: checking that static assertion macros used in autoconf tests work" >&5  echo "configure:5508: checking that static assertion macros used in autoconf tests work" >&5
5508  if eval "test \"`echo '$''{'ac_cv_static_assertion_macros_work'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_static_assertion_macros_work'+set}'`\" = set"; then
5509    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5510  else  else
# Line 5336  Line 5518 
5518    
5519    ac_cv_static_assertion_macros_work="yes"    ac_cv_static_assertion_macros_work="yes"
5520    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5521  #line 5340 "configure"  #line 5522 "configure"
5522  #include "confdefs.h"  #include "confdefs.h"
5523  $configure_static_assert_macros  $configure_static_assert_macros
5524  int main() {  int main() {
5525  CONFIGURE_STATIC_ASSERT(1)  CONFIGURE_STATIC_ASSERT(1)
5526  ; return 0; }  ; return 0; }
5527  EOF  EOF
5528  if { (eval echo configure:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5529    :    :
5530  else  else
5531    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
# Line 5353  Line 5535 
5535  fi  fi
5536  rm -f conftest*  rm -f conftest*
5537    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5538  #line 5357 "configure"  #line 5539 "configure"
5539  #include "confdefs.h"  #include "confdefs.h"
5540  $configure_static_assert_macros  $configure_static_assert_macros
5541  int main() {  int main() {
5542  CONFIGURE_STATIC_ASSERT(0)  CONFIGURE_STATIC_ASSERT(0)
5543  ; return 0; }  ; return 0; }
5544  EOF  EOF
5545  if { (eval echo configure:5364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5546    rm -rf conftest*    rm -rf conftest*
5547    ac_cv_static_assertion_macros_work="no"    ac_cv_static_assertion_macros_work="no"
5548  else  else
# Line 5376  Line 5558 
5558  cross_compiling=$ac_cv_prog_cxx_cross  cross_compiling=$ac_cv_prog_cxx_cross
5559    
5560    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5561  #line 5380 "configure"  #line 5562 "configure"
5562  #include "confdefs.h"  #include "confdefs.h"
5563  $configure_static_assert_macros  $configure_static_assert_macros
5564  int main() {  int main() {
5565  CONFIGURE_STATIC_ASSERT(1)  CONFIGURE_STATIC_ASSERT(1)
5566  ; return 0; }  ; return 0; }
5567  EOF  EOF
5568  if { (eval echo configure:5387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5569    :    :
5570  else  else
5571    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
# Line 5393  Line 5575 
5575  fi  fi
5576  rm -f conftest*  rm -f conftest*
5577    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5578  #line 5397 "configure"  #line 5579 "configure"
5579  #include "confdefs.h"  #include "confdefs.h"
5580  $configure_static_assert_macros  $configure_static_assert_macros
5581  int main() {  int main() {
5582  CONFIGURE_STATIC_ASSERT(0)  CONFIGURE_STATIC_ASSERT(0)
5583  ; return 0; }  ; return 0; }
5584  EOF  EOF
5585  if { (eval echo configure:5404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5586    rm -rf conftest*    rm -rf conftest*
5587    ac_cv_static_assertion_macros_work="no"    ac_cv_static_assertion_macros_work="no"
5588  else  else
# Line 5434  Line 5616 
5616  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
5617    
5618  echo $ac_n "checking for 64-bit OS""... $ac_c" 1>&6  echo $ac_n "checking for 64-bit OS""... $ac_c" 1>&6
5619  echo "configure:5438: checking for 64-bit OS" >&5  echo "configure:5620: checking for 64-bit OS" >&5
5620  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5621  #line 5440 "configure"  #line 5622 "configure"
5622  #include "confdefs.h"  #include "confdefs.h"
5623  $configure_static_assert_macros  $configure_static_assert_macros
5624  int main() {  int main() {
5625  CONFIGURE_STATIC_ASSERT(sizeof(long) == 8)  CONFIGURE_STATIC_ASSERT(sizeof(long) == 8)
5626  ; return 0; }  ; return 0; }
5627  EOF  EOF
5628  if { (eval echo configure:5447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5629    rm -rf conftest*    rm -rf conftest*
5630    result="yes"    result="yes"
5631  else  else
# Line 5600  Line 5782 
5782  cross_compiling=$ac_cv_prog_cxx_cross  cross_compiling=$ac_cv_prog_cxx_cross
5783    
5784              echo $ac_n "checking for VisualAge C++ compiler version >= 6.0.0.3""... $ac_c" 1>&6              echo $ac_n "checking for VisualAge C++ compiler version >= 6.0.0.3""... $ac_c" 1>&6
5785  echo "configure:5604: checking for VisualAge C++ compiler version >= 6.0.0.3" >&5  echo "configure:5786: checking for VisualAge C++ compiler version >= 6.0.0.3" >&5
5786              cat > conftest.$ac_ext <<EOF              cat > conftest.$ac_ext <<EOF
5787  #line 5606 "configure"  #line 5788 "configure"
5788  #include "confdefs.h"  #include "confdefs.h"
5789    
5790  int main() {  int main() {
# Line 5611  Line 5793 
5793                   #endif                   #endif
5794  ; return 0; }  ; return 0; }
5795  EOF  EOF
5796  if { (eval echo configure:5615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5797    rm -rf conftest*    rm -rf conftest*
5798    _BAD_COMPILER=    _BAD_COMPILER=
5799  else  else
# Line 5649  Line 5831 
5831  do  do
5832  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5833  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5834  echo "configure:5653: checking for $ac_hdr" >&5  echo "configure:5835: checking for $ac_hdr" >&5
5835  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5836    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5837  else  else
5838    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5839  #line 5658 "configure"  #line 5840 "configure"
5840  #include "confdefs.h"  #include "confdefs.h"
5841  #include <$ac_hdr>  #include <$ac_hdr>
5842  EOF  EOF
5843  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5844  { (eval echo configure:5663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5845  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5846  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5847    rm -rf conftest*    rm -rf conftest*
# Line 5701  Line 5883 
5883      LIBS="$LIBS -lbe"      LIBS="$LIBS -lbe"
5884      if test "$COMPILE_ENVIRONMENT"; then      if test "$COMPILE_ENVIRONMENT"; then
5885          echo $ac_n "checking for main in -lbind""... $ac_c" 1>&6          echo $ac_n "checking for main in -lbind""... $ac_c" 1>&6
5886  echo "configure:5705: checking for main in -lbind" >&5  echo "configure:5887: checking for main in -lbind" >&5
5887  ac_lib_var=`echo bind'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo bind'_'main | sed 'y%./+-%__p_%'`
5888  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5889    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5709  Line 5891 
5891    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5892  LIBS="-lbind  $LIBS"  LIBS="-lbind  $LIBS"
5893  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5894  #line 5713 "configure"  #line 5895 "configure"
5895  #include "confdefs.h"  #include "confdefs.h"
5896    
5897  int main() {  int main() {
5898  main()  main()
5899  ; return 0; }  ; return 0; }
5900  EOF  EOF
5901  if { (eval echo configure:5720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5902    rm -rf conftest*    rm -rf conftest*
5903    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5904  else  else
# Line 5737  Line 5919 
5919  fi  fi
5920    
5921          echo $ac_n "checking for main in -lzeta""... $ac_c" 1>&6          echo $ac_n "checking for main in -lzeta""... $ac_c" 1>&6
5922  echo "configure:5741: checking for main in -lzeta" >&5  echo "configure:5923: checking for main in -lzeta" >&5
5923  ac_lib_var=`echo zeta'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo zeta'_'main | sed 'y%./+-%__p_%'`
5924  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5925    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5745  Line 5927 
5927    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5928  LIBS="-lzeta  $LIBS"  LIBS="-lzeta  $LIBS"
5929  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5930  #line 5749 "configure"  #line 5931 "configure"
5931  #include "confdefs.h"  #include "confdefs.h"
5932    
5933  int main() {  int main() {
5934  main()  main()
5935  ; return 0; }  ; return 0; }
5936  EOF  EOF
5937  if { (eval echo configure:5756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5938    rm -rf conftest*    rm -rf conftest*
5939    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5940  else  else
# Line 5802  Line 5984 
5984  *-darwin*)  *-darwin*)
5985      MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'      MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
5986      MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'      MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
5987      MOZ_OPTIMIZE_FLAGS="-O2"      MOZ_OPTIMIZE_FLAGS="-O3"
5988      _PEDANTIC=      _PEDANTIC=
5989      CFLAGS="$CFLAGS -fpascal-strings -fno-common"      CFLAGS="$CFLAGS -fpascal-strings -fno-common"
5990      CXXFLAGS="$CXXFLAGS -fpascal-strings -fno-common"      CXXFLAGS="$CXXFLAGS -fpascal-strings -fno-common"
# Line 5824  Line 6006 
6006          echo "Skipping -dead_strip because DTrace is enabled. See bug 403132."          echo "Skipping -dead_strip because DTrace is enabled. See bug 403132."
6007      else      else
6008                  echo $ac_n "checking for -dead_strip option to ld""... $ac_c" 1>&6                  echo $ac_n "checking for -dead_strip option to ld""... $ac_c" 1>&6
6009  echo "configure:5828: checking for -dead_strip option to ld" >&5  echo "configure:6010: checking for -dead_strip option to ld" >&5
6010          _SAVE_LDFLAGS=$LDFLAGS          _SAVE_LDFLAGS=$LDFLAGS
6011          LDFLAGS="$LDFLAGS -Wl,-dead_strip"          LDFLAGS="$LDFLAGS -Wl,-dead_strip"
6012          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
6013  #line 5832 "configure"  #line 6014 "configure"
6014  #include "confdefs.h"  #include "confdefs.h"
6015    
6016  int main() {  int main() {
6017  return 0;  return 0;
6018  ; return 0; }  ; return 0; }
6019  EOF  EOF
6020  if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6021    rm -rf conftest*    rm -rf conftest*
6022    _HAVE_DEAD_STRIP=1    _HAVE_DEAD_STRIP=1
6023  else  else
# Line 5999  Line 6181 
6181      ;;      ;;
6182    
6183  *-wince*)  *-wince*)
6184        TARGET_COMPILER_ABI=msvc
6185      MOZ_TOOLS_DIR=`echo $MOZ_TOOLS`      MOZ_TOOLS_DIR=`echo $MOZ_TOOLS`
6186      AR_LIST="$AR -list"      AR_LIST="$AR -list"
6187      AR_EXTRACT="$AR -extract"      AR_EXTRACT="$AR -extract"
# Line 6075  Line 6257 
6257  EOF  EOF
6258    
6259      cat >> confdefs.h <<\EOF      cat >> confdefs.h <<\EOF
 #define _WIN32 1  
 EOF  
   
     cat >> confdefs.h <<\EOF  
6260  #define WIN32 1  #define WIN32 1
6261  EOF  EOF
6262    
# Line 6113  Line 6291 
6291      USE_SHORT_LIBNAME=1      USE_SHORT_LIBNAME=1
6292      MOZ_ENABLE_POSTSCRIPT=      MOZ_ENABLE_POSTSCRIPT=
6293      MOZ_USER_DIR="Mozilla"      MOZ_USER_DIR="Mozilla"
6294    
6295            WINCE_WINDOWS_MOBILE=1
6296    
6297        # Check whether --enable-windows-mobile-components or --disable-windows-mobile-components was given.
6298    if test "${enable_windows_mobile_components+set}" = set; then
6299      enableval="$enable_windows_mobile_components"
6300      if test "$enableval" = "no"; then
6301        WINCE_WINDOWS_MOBILE=
6302      elif test "$enableval" = "yes"; then
6303        WINCE_WINDOWS_MOBILE=1
6304      else
6305        { echo "configure: error: Option, windows-mobile-components, does not take an argument ($enableval)." 1>&2; exit 1; }
6306      fi
6307    fi
6308    
6309    
6310        if test "$WINCE_WINDOWS_MOBILE"; then
6311            cat >> confdefs.h <<\EOF
6312    #define WINCE_WINDOWS_MOBILE 1
6313    EOF
6314    
6315        fi
6316  ;;  ;;
6317    
6318    *-symbian*)
6319    
6320        cat >> confdefs.h <<\EOF
6321    #define XP_UNIX 1
6322    EOF
6323    
6324        cat >> confdefs.h <<\EOF
6325    #define SYMBIAN 1
6326    EOF
6327    
6328        cat >> confdefs.h <<\EOF
6329    #define __arm__ 1
6330    EOF
6331    
6332        cat >> confdefs.h <<\EOF
6333    #define __SYMBIAN32__ 1
6334    EOF
6335    
6336        cat >> confdefs.h <<\EOF
6337    #define _UNICODE 1
6338    EOF
6339    
6340        cat >> confdefs.h <<\EOF
6341    #define NDEBUG 1
6342    EOF
6343    
6344        cat >> confdefs.h <<\EOF
6345    #define __SUPPORT_CPP_EXCEPTIONS__ 1
6346    EOF
6347    
6348        cat >> confdefs.h <<\EOF
6349    #define MOZ_STDERR_TO_STDOUT 1
6350    EOF
6351    
6352        cat >> confdefs.h <<\EOF
6353    #define HAVE_FCNTL_FILE_LOCKING 1
6354    EOF
6355    
6356        cat >> confdefs.h <<\EOF
6357    #define HAVE_SOCKLEN_T 1
6358    EOF
6359    
6360        cat >> confdefs.h <<\EOF
6361    #define __GCCE__ 1
6362    EOF
6363    
6364    
6365        CPU_ARCH=ARM
6366        OS_RELEASE=9.2
6367        OS_ARCH=SYMBIAN
6368        USE_PTHREADS=1
6369        LIB_SUFFIX=lib
6370        DLL_SUFFIX=dll
6371        MKSHLIB=
6372        DSO_LDOPTS=
6373        DSO_CFLAGS=
6374        VISIBILITY_FLAGS=
6375        TARGET_NSPR_MDCPUCFG='\"md/_symbian.cfg\"'
6376        RANLIB='echo no ranlib '
6377    ;;
6378    
6379  *-mingw*|*-cygwin*|*-msvc*|*-mks*)  *-mingw*|*-cygwin*|*-msvc*|*-mks*)
6380      DSO_CFLAGS=      DSO_CFLAGS=
# Line 6202  Line 6462 
6462  EOF  EOF
6463    
6464      cat >> confdefs.h <<\EOF      cat >> confdefs.h <<\EOF
 #define _WIN32 1  
 EOF  
   
     cat >> confdefs.h <<\EOF  
6465  #define WIN32 1  #define WIN32 1
6466  EOF  EOF
6467    
# Line 6289  Line 6545 
6545  do  do
6546  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6547  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6548  echo "configure:6293: checking for $ac_hdr" >&5  echo "configure:6549: checking for $ac_hdr" >&5
6549  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6550    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6551  else  else
6552    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6553  #line 6298 "configure"  #line 6554 "configure"
6554  #include "confdefs.h"  #include "confdefs.h"
6555  #include <$ac_hdr>  #include <$ac_hdr>
6556  EOF  EOF
6557  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6558  { (eval echo configure:6303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6559  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6560  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6561    rm -rf conftest*    rm -rf conftest*
# Line 6338  Line 6594 
6594  do  do
6595  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6596  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6597  echo "configure:6342: checking for $ac_hdr" >&5  echo "configure:6598: checking for $ac_hdr" >&5
6598  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6599    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6600  else  else
6601    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6602  #line 6347 "configure"  #line 6603 "configure"
6603  #include "confdefs.h"  #include "confdefs.h"
6604  #include <$ac_hdr>  #include <$ac_hdr>
6605  EOF  EOF
6606  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6607  { (eval echo configure:6352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6608  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6609  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6610    rm -rf conftest*    rm -rf conftest*
# Line 6456  Line 6712 
6712          USE_PTHREADS=1          USE_PTHREADS=1
6713          _PEDANTIC=          _PEDANTIC=
6714          LIBS="$LIBS -lsocket -lstdc++"          LIBS="$LIBS -lsocket -lstdc++"
6715          _DEFINES_CFLAGS='-Wp,-include -Wp,$(DEPTH)/mozilla-config.h -DMOZILLA_CLIENT -D_POSIX_C_SOURCE=199506'          _DEFINES_CFLAGS='-Wp,-include -Wp,$(DEPTH)/js-confdefs.h -DMOZILLA_CLIENT -D_POSIX_C_SOURCE=199506'
6716          _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -Wp,-include -Wp,$(DEPTH)/mozilla-config.h -D_POSIX_C_SOURCE=199506'          _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -Wp,-include -Wp,$(DEPTH)/js-confdefs.h -D_POSIX_C_SOURCE=199506'
6717          if test "$with_x" != "yes"          if test "$with_x" != "yes"
6718          then          then
6719                  _PLATFORM_DEFAULT_TOOLKIT="photon"                  _PLATFORM_DEFAULT_TOOLKIT="photon"
# Line 6582  Line 6838 
6838      _DEFINES_CXXFLAGS="$_DEFINES_CXXFLAGS -Uunix -U__unix -U__unix__"      _DEFINES_CXXFLAGS="$_DEFINES_CXXFLAGS -Uunix -U__unix -U__unix__"
6839    
6840      echo $ac_n "checking for __declspec(dllexport)""... $ac_c" 1>&6      echo $ac_n "checking for __declspec(dllexport)""... $ac_c" 1>&6
6841  echo "configure:6586: checking for __declspec(dllexport)" >&5  echo "configure:6842: checking for __declspec(dllexport)" >&5
6842  if eval "test \"`echo '$''{'ac_os2_declspec'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_os2_declspec'+set}'`\" = set"; then
6843    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6844  else  else
6845    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6846  #line 6591 "configure"  #line 6847 "configure"
6847  #include "confdefs.h"  #include "confdefs.h"
6848  __declspec(dllexport) void ac_os2_declspec(void) {}  __declspec(dllexport) void ac_os2_declspec(void) {}
6849  int main() {  int main() {
6850  return 0;  return 0;
6851  ; return 0; }  ; return 0; }
6852  EOF  EOF
6853  if { (eval echo configure:6598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6854    rm -rf conftest*    rm -rf conftest*
6855    ac_os2_declspec="yes"    ac_os2_declspec="yes"
6856  else  else
# Line 6690  Line 6946 
6946  EOF  EOF
6947    
6948      TARGET_NSPR_MDCPUCFG='\"md/_solaris.cfg\"'      TARGET_NSPR_MDCPUCFG='\"md/_solaris.cfg\"'
6949        if test -z "$CROSS_COMPILE" && pkginfo -q SUNWpr && pkginfo -q SUNWprd; then
6950           NO_NSPR_CONFIG_SYSTEM_LDFLAGS="-L/usr/lib/mps -R/usr/lib/mps -lnspr4"
6951           NO_NSPR_CONFIG_SYSTEM_CFLAGS="-I/usr/include/mps"
6952           NO_NSPR_CONFIG_SYSTEM_VERSION="`pkgparam SUNWpr SUNW_PRODVERS | sed -e 's/^[1-9][0-9]*\.[0-9][0-9]*$/&.0/'`"
6953        fi
6954      SYSTEM_MAKEDEPEND=      SYSTEM_MAKEDEPEND=
6955      # $ORIGIN/.. is for shared libraries under components/ to locate shared      # $ORIGIN/.. is for shared libraries under components/ to locate shared
6956      # libraries one level up (e.g. libnspr4.so)      # libraries one level up (e.g. libnspr4.so)
# Line 6709  Line 6970 
6970             _SAVE_LDFLAGS=$LDFLAGS             _SAVE_LDFLAGS=$LDFLAGS
6971             LDFLAGS="-M /usr/lib/ld/map.noexstk $LDFLAGS"             LDFLAGS="-M /usr/lib/ld/map.noexstk $LDFLAGS"
6972             cat > conftest.$ac_ext <<EOF             cat > conftest.$ac_ext <<EOF
6973  #line 6713 "configure"  #line 6974 "configure"
6974  #include "confdefs.h"  #include "confdefs.h"
6975  #include <stdio.h>  #include <stdio.h>
6976  int main() {  int main() {
6977  printf("Hello World\n");  printf("Hello World\n");
6978  ; return 0; }  ; return 0; }
6979  EOF  EOF
6980  if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6981    :    :
6982  else  else
6983    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
# Line 6745  Line 7006 
7006         CC_VERSION=`$CC -V 2>&1 | grep '^cc:' 2>/dev/null | $AWK -F\: '{ print $2 }'`         CC_VERSION=`$CC -V 2>&1 | grep '^cc:' 2>/dev/null | $AWK -F\: '{ print $2 }'`
7007         CXX_VERSION=`$CXX -V 2>&1 | grep '^CC:' 2>/dev/null | $AWK -F\: '{ print $2 }'`         CXX_VERSION=`$CXX -V 2>&1 | grep '^CC:' 2>/dev/null | $AWK -F\: '{ print $2 }'`
7008         echo $ac_n "checking for Sun C++ compiler version >= 5.9""... $ac_c" 1>&6         echo $ac_n "checking for Sun C++ compiler version >= 5.9""... $ac_c" 1>&6
7009  echo "configure:6749: checking for Sun C++ compiler version >= 5.9" >&5  echo "configure:7010: checking for Sun C++ compiler version >= 5.9" >&5
7010                
7011         ac_ext=C         ac_ext=C
7012  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 6755  Line 7016 
7016  cross_compiling=$ac_cv_prog_cxx_cross  cross_compiling=$ac_cv_prog_cxx_cross
7017    
7018         cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
7019  #line 6759 "configure"  #line 7020 "configure"
7020  #include "confdefs.h"  #include "confdefs.h"
7021    
7022  int main() {  int main() {
# Line 6764  Line 7025 
7025             #endif             #endif
7026  ; return 0; }  ; return 0; }
7027  EOF  EOF
7028  if { (eval echo configure:6768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7029    rm -rf conftest*    rm -rf conftest*
7030    _BAD_COMPILER=    _BAD_COMPILER=
7031  else  else
# Line 6937  Line 7198 
7198    
7199  if test "$ENABLE_JIT"; then  if test "$ENABLE_JIT"; then
7200    
7201    cat >> confdefs.h <<\EOF
7202    #define FEATURE_NANOJIT 1
7203    EOF
7204    
7205    cat >> confdefs.h <<\EOF
7206    #define JS_TRACER 1
7207    EOF
7208    
7209    
7210  case "$target" in  case "$target" in
7211  i?86-*)  i?86-*)
7212      cat >> confdefs.h <<\EOF      cat >> confdefs.h <<\EOF
# Line 6951  Line 7221 
7221  EOF  EOF
7222    
7223      ;;      ;;
   
7224  sparc-*)  sparc-*)
7225      cat >> confdefs.h <<\EOF      cat >> confdefs.h <<\EOF
7226  #define AVMPLUS_SPARC 1  #define AVMPLUS_SPARC 1
# Line 7003  Line 7272 
7272      ;;      ;;
7273  *)  *)
7274      { echo "configure: error: Unrecognized nanojit platform. Use --disable-jit to build without JIT support." 1>&2; exit 1; }      { echo "configure: error: Unrecognized nanojit platform. Use --disable-jit to build without JIT support." 1>&2; exit 1; }
     ;;  
7275  esac  esac
7276    
7277  fi # ENABLE_JIT  fi # ENABLE_JIT
# Line 7020  Line 7288 
7288  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
7289    
7290  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7291  echo "configure:7024: checking for ANSI C header files" >&5  echo "configure:7292: checking for ANSI C header files" >&5
7292  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7293    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7294  else  else
7295    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7296  #line 7029 "configure"  #line 7297 "configure"
7297  #include "confdefs.h"  #include "confdefs.h"
7298  #include <stdlib.h>  #include <stdlib.h>
7299  #include <stdarg.h>  #include <stdarg.h>
# Line 7033  Line 7301 
7301  #include <float.h>  #include <float.h>
7302  EOF  EOF
7303  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7304  { (eval echo configure:7037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:7305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7305  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7306  if test -z "$ac_err"; then  if test -z "$ac_err"; then
7307    rm -rf conftest*    rm -rf conftest*
# Line 7050  Line 7318 
7318  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
7319    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7320  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7321  #line 7054 "configure"  #line 7322 "configure"
7322  #include "confdefs.h"  #include "confdefs.h"
7323  #include <string.h>  #include <string.h>
7324  EOF  EOF
# Line 7068  Line 7336 
7336  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
7337    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7338  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7339  #line 7072 "configure"  #line 7340 "configure"
7340  #include "confdefs.h"  #include "confdefs.h"
7341  #include <stdlib.h>  #include <stdlib.h>
7342  EOF  EOF
# Line 7089  Line 7357 
7357    :    :
7358  else  else
7359    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7360  #line 7093 "configure"  #line 7361 "configure"
7361  #include "confdefs.h"  #include "confdefs.h"
7362  #include <ctype.h>  #include <ctype.h>
7363  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# Line 7100  Line 7368 
7368  exit (0); }  exit (0); }
7369    
7370  EOF  EOF
7371  if { (eval echo configure:7104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:7372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7372  then  then
7373    :    :
7374  else  else
# Line 7124  Line 7392 
7392  fi  fi
7393    
7394  echo $ac_n "checking for working const""... $ac_c" 1>&6  echo $ac_n "checking for working const""... $ac_c" 1>&6
7395  echo "configure:7128: checking for working const" >&5  echo "configure:7396: checking for working const" >&5
7396  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7397    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7398  else  else
7399    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7400  #line 7133 "configure"  #line 7401 "configure"
7401  #include "confdefs.h"  #include "confdefs.h"
7402    
7403  int main() {  int main() {
# Line 7178  Line 7446 
7446    
7447  ; return 0; }  ; return 0; }
7448  EOF  EOF
7449  if { (eval echo configure:7182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7450    rm -rf conftest*    rm -rf conftest*
7451    ac_cv_c_const=yes    ac_cv_c_const=yes
7452  else  else
# Line 7199  Line 7467 
7467  fi  fi
7468    
7469  echo $ac_n "checking for mode_t""... $ac_c" 1>&6  echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7470  echo "configure:7203: checking for mode_t" >&5  echo "configure:7471: checking for mode_t" >&5
7471  if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7472    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7473  else  else
7474    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7475  #line 7208 "configure"  #line 7476 "configure"
7476  #include "confdefs.h"  #include "confdefs.h"
7477  #include <sys/types.h>  #include <sys/types.h>
7478  #if STDC_HEADERS  #if STDC_HEADERS
# Line 7232  Line 7500 
7500  fi  fi
7501    
7502  echo $ac_n "checking for off_t""... $ac_c" 1>&6  echo $ac_n "checking for off_t""... $ac_c" 1>&6
7503  echo "configure:7236: checking for off_t" >&5  echo "configure:7504: checking for off_t" >&5
7504  if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7505    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7506  else  else
7507    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7508  #line 7241 "configure"  #line 7509 "configure"
7509  #include "confdefs.h"  #include "confdefs.h"
7510  #include <sys/types.h>  #include <sys/types.h>
7511  #if STDC_HEADERS  #if STDC_HEADERS
# Line 7265  Line 7533 
7533  fi  fi
7534    
7535  echo $ac_n "checking for pid_t""... $ac_c" 1>&6  echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7536  echo "configure:7269: checking for pid_t" >&5  echo "configure:7537: checking for pid_t" >&5
7537  if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7538    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7539  else  else
7540    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7541  #line 7274 "configure"  #line 7542 "configure"
7542  #include "confdefs.h"  #include "confdefs.h"
7543  #include <sys/types.h>  #include <sys/types.h>
7544  #if STDC_HEADERS  #if STDC_HEADERS
# Line 7298  Line 7566 
7566  fi  fi
7567    
7568  echo $ac_n "checking for size_t""... $ac_c" 1>&6  echo $ac_n "checking for size_t""... $ac_c" 1>&6
7569  echo "configure:7302: checking for size_t" >&5  echo "configure:7570: checking for size_t" >&5
7570  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7571    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7572  else  else
7573    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7574  #line 7307 "configure"  #line 7575 "configure"
7575  #include "confdefs.h"  #include "confdefs.h"
7576  #include <sys/types.h>  #include <sys/types.h>
7577  #if STDC_HEADERS  #if STDC_HEADERS
# Line 7331  Line 7599 
7599  fi  fi
7600    
7601  echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6  echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
7602  echo "configure:7335: checking for st_blksize in struct stat" >&5  echo "configure:7603: checking for st_blksize in struct stat" >&5
7603  if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
7604    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7605  else  else
7606    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7607  #line 7340 "configure"  #line 7608 "configure"
7608  #include "confdefs.h"  #include "confdefs.h"
7609  #include <sys/types.h>  #include <sys/types.h>
7610  #include <sys/stat.h>  #include <sys/stat.h>
# Line 7344  Line 7612 
7612  struct stat s; s.st_blksize;  struct stat s; s.st_blksize;
7613  ; return 0; }  ; return 0; }
7614  EOF  EOF
7615  if { (eval echo configure:7348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7616    rm -rf conftest*    rm -rf conftest*
7617    ac_cv_struct_st_blksize=yes    ac_cv_struct_st_blksize=yes
7618  else  else
# Line 7365  Line 7633 
7633  fi  fi
7634    
7635  echo $ac_n "checking for siginfo_t""... $ac_c" 1>&6  echo $ac_n "checking for siginfo_t""... $ac_c" 1>&6
7636  echo "configure:7369: checking for siginfo_t" >&5  echo "configure:7637: checking for siginfo_t" >&5
7637  if eval "test \"`echo '$''{'ac_cv_siginfo_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_siginfo_t'+set}'`\" = set"; then
7638    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7639  else  else
7640    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7641  #line 7374 "configure"  #line 7642 "configure"
7642  #include "confdefs.h"  #include "confdefs.h"
7643  #define _POSIX_C_SOURCE 199506L  #define _POSIX_C_SOURCE 199506L
7644                    #include <signal.h>                    #include <signal.h>
# Line 7378  Line 7646 
7646  siginfo_t* info;  siginfo_t* info;
7647  ; return 0; }  ; return 0; }
7648  EOF  EOF
7649  if { (eval echo configure:7382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7650    rm -rf conftest*    rm -rf conftest*
7651    ac_cv_siginfo_t=true    ac_cv_siginfo_t=true
7652  else  else
# Line 7403  Line 7671 
7671    
7672  ac_safe=`echo "stdint.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "stdint.h" | sed 'y%./+-%__p_%'`
7673  echo $ac_n "checking for stdint.h""... $ac_c" 1>&6  echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
7674  echo "configure:7407: checking for stdint.h" >&5  echo "configure:7675: checking for stdint.h" >&5
7675  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7676    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7677  else  else
7678    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7679  #line 7412 "configure"  #line 7680 "configure"
7680  #include "confdefs.h"  #include "confdefs.h"
7681  #include <stdint.h>  #include <stdint.h>
7682  EOF  EOF
7683  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7684  { (eval echo configure:7417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:7685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7685  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7686  if test -z "$ac_err"; then  if test -z "$ac_err"; then
7687    rm -rf conftest*    rm -rf conftest*
# Line 7442  Line 7710 
7710  else  else
7711                                            
7712  echo $ac_n "checking for a 1-byte type""... $ac_c" 1>&6  echo $ac_n "checking for a 1-byte type""... $ac_c" 1>&6
7713  echo "configure:7446: checking for a 1-byte type" >&5  echo "configure:7714: checking for a 1-byte type" >&5
7714  if eval "test \"`echo '$''{'moz_cv_n_byte_type_JS_INT8_TYPE'+set}'`\" = set"; then  if eval "test \"`echo '$''{'moz_cv_n_byte_type_JS_INT8_TYPE'+set}'`\" = set"; then
7715    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7716  else  else
# Line 7450  Line 7718 
7718    moz_cv_n_byte_type_JS_INT8_TYPE=    moz_cv_n_byte_type_JS_INT8_TYPE=
7719    for type in char; do    for type in char; do
7720      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
7721  #line 7454 "configure"  #line 7722 "configure"
7722  #include "confdefs.h"  #include "confdefs.h"
7723    
7724  int main() {  int main() {
# Line 7460  Line 7728 
7728                                        
7729  ; return 0; }  ; return 0; }
7730  EOF  EOF
7731  if { (eval echo configure:7464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7732    rm -rf conftest*    rm -rf conftest*
7733    moz_cv_n_byte_type_JS_INT8_TYPE=$type; break    moz_cv_n_byte_type_JS_INT8_TYPE=$type; break
7734  else  else
# Line 7483  Line 7751 
7751    
7752            
7753  echo $ac_n "checking for a 2-byte type""... $ac_c" 1>&6  echo $ac_n "checking for a 2-byte type""... $ac_c" 1>&6
7754  echo "configure:7487: checking for a 2-byte type" >&5  echo "configure:7755: checking for a 2-byte type" >&5
7755  if eval "test \"`echo '$''{'moz_cv_n_byte_type_JS_INT16_TYPE'+set}'`\" = set"; then  if eval "test \"`echo '$''{'moz_cv_n_byte_type_JS_INT16_TYPE'+set}'`\" = set"; then
7756    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7757  else  else
# Line 7491  Line 7759 
7759    moz_cv_n_byte_type_JS_INT16_TYPE=    moz_cv_n_byte_type_JS_INT16_TYPE=
7760    for type in short int long; do    for type in short int long; do
7761      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
7762  #line 7495 "configure"  #line 7763 "configure"
7763  #include "confdefs.h"  #include "confdefs.h"
7764    
7765  int main() {  int main() {
# Line 7501  Line 7769 
7769                                        
7770  ; return 0; }  ; return 0; }
7771  EOF  EOF
7772  if { (eval echo configure:7505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7773    rm -rf conftest*    rm -rf conftest*
7774    moz_cv_n_byte_type_JS_INT16_TYPE=$type; break    moz_cv_n_byte_type_JS_INT16_TYPE=$type; break
7775  else  else
# Line 7524  Line 7792 
7792    
7793            
7794  echo $ac_n "checking for a 4-byte type""... $ac_c" 1>&6  echo $ac_n "checking for a 4-byte type""... $ac_c" 1>&6
7795  echo "configure:7528: checking for a 4-byte type" >&5  echo "configure:7796: checking for a 4-byte type" >&5
7796  if eval "test \"`echo '$''{'moz_cv_n_byte_type_JS_INT32_TYPE'+set}'`\" = set"; then  if eval "test \"`echo '$''{'moz_cv_n_byte_type_JS_INT32_TYPE'+set}'`\" = set"; then
7797    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7798  else  else
# Line 7532  Line 7800 
7800    moz_cv_n_byte_type_JS_INT32_TYPE=    moz_cv_n_byte_type_JS_INT32_TYPE=
7801    for type in int long 'long long' short; do    for type in int long 'long long' short; do
7802      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
7803  #line 7536 "configure"  #line 7804 "configure"
7804  #include "confdefs.h"  #include "confdefs.h"
7805    
7806  int main() {  int main() {
# Line 7542  Line 7810 
7810                                        
7811  ; return 0; }  ; return 0; }
7812  EOF  EOF
7813  if { (eval echo configure:7546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7814    rm -rf conftest*    rm -rf conftest*
7815    moz_cv_n_byte_type_JS_INT32_TYPE=$type; break    moz_cv_n_byte_type_JS_INT32_TYPE=$type; break
7816  else  else
# Line 7565  Line 7833 
7833    
7834            
7835  echo $ac_n "checking for a 8-byte type""... $ac_c" 1>&6  echo $ac_n "checking for a 8-byte type""... $ac_c" 1>&6
7836  echo "configure:7569: checking for a 8-byte type" >&5  echo "configure:7837: checking for a 8-byte type" >&5
7837  if eval "test \"`echo '$''{'moz_cv_n_byte_type_JS_INT64_TYPE'+set}'`\" = set"; then  if eval "test \"`echo '$''{'moz_cv_n_byte_type_JS_INT64_TYPE'+set}'`\" = set"; then
7838    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7839  else  else
# Line 7573  Line 7841 
7841    moz_cv_n_byte_type_JS_INT64_TYPE=    moz_cv_n_byte_type_JS_INT64_TYPE=
7842    for type in int long 'long long'; do    for type in int long 'long long'; do
7843      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
7844  #line 7577 "configure"  #line 7845 "configure"
7845  #include "confdefs.h"  #include "confdefs.h"
7846    
7847  int main() {  int main() {
# Line 7583  Line 7851 
7851                                        
7852  ; return 0; }  ; return 0; }
7853  EOF  EOF
7854  if { (eval echo configure:7587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7855    rm -rf conftest*    rm -rf conftest*
7856    moz_cv_n_byte_type_JS_INT64_TYPE=$type; break    moz_cv_n_byte_type_JS_INT64_TYPE=$type; break
7857  else  else
# Line 7606  Line 7874 
7874    
7875            
7876  echo $ac_n "checking for a sizeof (void *)-byte type""... $ac_c" 1>&6  echo $ac_n "checking for a sizeof (void *)-byte type""... $ac_c" 1>&6
7877  echo "configure:7610: checking for a sizeof (void *)-byte type" >&5  echo "configure:7878: checking for a sizeof (void *)-byte type" >&5
7878  if eval "test \"`echo '$''{'moz_cv_n_byte_type_JS_INTPTR_TYPE'+set}'`\" = set"; then  if eval "test \"`echo '$''{'moz_cv_n_byte_type_JS_INTPTR_TYPE'+set}'`\" = set"; then
7879    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7880  else  else
# Line 7614  Line 7882 
7882    moz_cv_n_byte_type_JS_INTPTR_TYPE=    moz_cv_n_byte_type_JS_INTPTR_TYPE=
7883    for type in int long 'long long' short; do    for type in int long 'long long' short; do
7884      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
7885  #line 7618 "configure"  #line 7886 "configure"
7886  #include "confdefs.h"  #include "confdefs.h"
7887    
7888  int main() {  int main() {
# Line 7624  Line 7892 
7892                                        
7893  ; return 0; }  ; return 0; }
7894  EOF  EOF
7895  if { (eval echo configure:7628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7896    rm -rf conftest*    rm -rf conftest*
7897    moz_cv_n_byte_type_JS_INTPTR_TYPE=$type; break    moz_cv_n_byte_type_JS_INTPTR_TYPE=$type; break
7898  else  else
# Line 7649  Line 7917 
7917    
7918    
7919  echo $ac_n "checking for the size of void*""... $ac_c" 1>&6  echo $ac_n "checking for the size of void*""... $ac_c" 1>&6
7920  echo "configure:7653: checking for the size of void*" >&5  echo "configure:7921: checking for the size of void*" >&5
7921  if eval "test \"`echo '$''{'moz_cv_size_of_JS_BYTES_PER_WORD'+set}'`\" = set"; then  if eval "test \"`echo '$''{'moz_cv_size_of_JS_BYTES_PER_WORD'+set}'`\" = set"; then
7922    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7923  else  else
# Line 7657  Line 7925 
7925    moz_cv_size_of_JS_BYTES_PER_WORD=    moz_cv_size_of_JS_BYTES_PER_WORD=
7926    for size in 4 8; do    for size in 4 8; do
7927      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
7928  #line 7661 "configure"  #line 7929 "configure"
7929  #include "confdefs.h"  #include "confdefs.h"
7930    
7931  int main() {  int main() {
# Line 7667  Line 7935 
7935                                        
7936  ; return 0; }  ; return 0; }
7937  EOF  EOF
7938  if { (eval echo configure:7671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7939    rm -rf conftest*    rm -rf conftest*
7940    moz_cv_size_of_JS_BYTES_PER_WORD=$size; break    moz_cv_size_of_JS_BYTES_PER_WORD=$size; break
7941  else  else
# Line 7704  Line 7972 
7972    
7973    
7974  echo $ac_n "checking for the alignment of void*""... $ac_c" 1>&6  echo $ac_n "checking for the alignment of void*""... $ac_c" 1>&6
7975  echo "configure:7708: checking for the alignment of void*" >&5  echo "configure:7976: checking for the alignment of void*" >&5
7976  if eval "test \"`echo '$''{'moz_cv_align_of_JS_ALIGN_OF_POINTER'+set}'`\" = set"; then  if eval "test \"`echo '$''{'moz_cv_align_of_JS_ALIGN_OF_POINTER'+set}'`\" = set"; then
7977    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7978  else  else
# Line 7712  Line 7980 
7980    moz_cv_align_of_JS_ALIGN_OF_POINTER=    moz_cv_align_of_JS_ALIGN_OF_POINTER=
7981    for align in 2 4 8 16; do    for align in 2 4 8 16; do
7982      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
7983  #line 7716 "configure"  #line 7984 "configure"
7984  #include "confdefs.h"  #include "confdefs.h"
7985    
7986                       #include <stddef.h>                       #include <stddef.h>
# Line 7725  Line 7993 
7993                                        
7994  ; return 0; }  ; return 0; }
7995  EOF  EOF
7996  if { (eval echo configure:7729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7997    rm -rf conftest*    rm -rf conftest*
7998    moz_cv_align_of_JS_ALIGN_OF_POINTER=$align; break    moz_cv_align_of_JS_ALIGN_OF_POINTER=$align; break
7999  else  else
# Line 7748  Line 8016 
8016    
8017    
8018  echo $ac_n "checking for the size of double""... $ac_c" 1>&6  echo $ac_n "checking for the size of double""... $ac_c" 1>&6
8019  echo "configure:7752: checking for the size of double" >&5  echo "configure:8020: checking for the size of double" >&5
8020  if eval "test \"`echo '$''{'moz_cv_size_of_JS_BYTES_PER_DOUBLE'+set}'`\" = set"; then  if eval "test \"`echo '$''{'moz_cv_size_of_JS_BYTES_PER_DOUBLE'+set}'`\" = set"; then
8021    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8022  else  else
# Line 7756  Line 8024 
8024    moz_cv_size_of_JS_BYTES_PER_DOUBLE=    moz_cv_size_of_JS_BYTES_PER_DOUBLE=
8025    for size in 6 8 10 12 14; do    for size in 6 8 10 12 14; do
8026      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
8027  #line 7760 "configure"  #line 8028 "configure"
8028  #include "confdefs.h"  #include "confdefs.h"
8029    
8030  int main() {  int main() {
# Line 7766  Line 8034 
8034                                        
8035  ; return 0; }  ; return 0; }
8036  EOF  EOF
8037  if { (eval echo configure:7770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8038    rm -rf conftest*    rm -rf conftest*
8039    moz_cv_size_of_JS_BYTES_PER_DOUBLE=$size; break    moz_cv_size_of_JS_BYTES_PER_DOUBLE=$size; break
8040  else  else
# Line 7789  Line 8057 
8057    
8058    
8059  echo $ac_n "checking for int16_t""... $ac_c" 1>&6  echo $ac_n "checking for int16_t""... $ac_c" 1>&6
8060  echo "configure:7793: checking for int16_t" >&5  echo "configure:8061: checking for int16_t" >&5
8061  if eval "test \"`echo '$''{'ac_cv_int16_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_int16_t'+set}'`\" = set"; then
8062    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8063  else  else
8064    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8065  #line 7798 "configure"  #line 8066 "configure"
8066  #include "confdefs.h"  #include "confdefs.h"
8067  #include <stdio.h>  #include <stdio.h>
8068                    #include <sys/types.h>                    #include <sys/types.h>
# Line 7802  Line 8070 
8070  int16_t foo = 0;  int16_t foo = 0;
8071  ; return 0; }  ; return 0; }
8072  EOF  EOF
8073  if { (eval echo configure:7806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8074    rm -rf conftest*    rm -rf conftest*
8075    ac_cv_int16_t=true    ac_cv_int16_t=true
8076  else  else
# Line 7824  Line 8092 
8092    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
8093  fi  fi
8094  echo $ac_n "checking for int32_t""... $ac_c" 1>&6  echo $ac_n "checking for int32_t""... $ac_c" 1>&6
8095  echo "configure:7828: checking for int32_t" >&5  echo "configure:8096: checking for int32_t" >&5
8096  if eval "test \"`echo '$''{'ac_cv_int32_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_int32_t'+set}'`\" = set"; then
8097    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8098  else  else
8099    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8100  #line 7833 "configure"  #line 8101 "configure"
8101  #include "confdefs.h"  #include "confdefs.h"
8102  #include <stdio.h>  #include <stdio.h>
8103                    #include <sys/types.h>                    #include <sys/types.h>
# Line 7837  Line 8105 
8105  int32_t foo = 0;  int32_t foo = 0;
8106  ; return 0; }  ; return 0; }
8107  EOF  EOF
8108  if { (eval echo configure:7841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8109    rm -rf conftest*    rm -rf conftest*
8110    ac_cv_int32_t=true    ac_cv_int32_t=true
8111  else  else
# Line 7859  Line 8127 
8127    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
8128  fi  fi
8129  echo $ac_n "checking for int64_t""... $ac_c" 1>&6  echo $ac_n "checking for int64_t""... $ac_c" 1>&6
8130  echo "configure:7863: checking for int64_t" >&5  echo "configure:8131: checking for int64_t" >&5
8131  if eval "test \"`echo '$''{'ac_cv_int64_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_int64_t'+set}'`\" = set"; then
8132    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8133  else  else
8134    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8135  #line 7868 "configure"  #line 8136 "configure"
8136  #include "confdefs.h"  #include "confdefs.h"
8137  #include <stdio.h>  #include <stdio.h>
8138                    #include <sys/types.h>                    #include <sys/types.h>
# Line 7872  Line 8140 
8140  int64_t foo = 0;  int64_t foo = 0;
8141  ; return 0; }  ; return 0; }
8142  EOF  EOF
8143  if { (eval echo configure:7876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8144    rm -rf conftest*    rm -rf conftest*
8145    ac_cv_int64_t=true    ac_cv_int64_t=true
8146  else  else
# Line 7894  Line 8162 
8162    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
8163  fi  fi
8164  echo $ac_n "checking for int64""... $ac_c" 1>&6  echo $ac_n "checking for int64""... $ac_c" 1>&6
8165  echo "configure:7898: checking for int64" >&5  echo "configure:8166: checking for int64" >&5
8166  if eval "test \"`echo '$''{'ac_cv_int64'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_int64'+set}'`\" = set"; then
8167    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8168  else  else
8169    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8170  #line 7903 "configure"  #line 8171 "configure"
8171  #include "confdefs.h"  #include "confdefs.h"
8172  #include <stdio.h>  #include <stdio.h>
8173                    #include <sys/types.h>                    #include <sys/types.h>
# Line 7907  Line 8175 
8175  int64 foo = 0;  int64 foo = 0;
8176  ; return 0; }  ; return 0; }
8177  EOF  EOF
8178  if { (eval echo configure:7911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8179    rm -rf conftest*    rm -rf conftest*
8180    ac_cv_int64=true    ac_cv_int64=true
8181  else  else
# Line 7929  Line 8197 
8197    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
8198  fi  fi
8199  echo $ac_n "checking for uint""... $ac_c" 1>&6  echo $ac_n "checking for uint""... $ac_c" 1>&6
8200  echo "configure:7933: checking for uint" >&5  echo "configure:8201: checking for uint" >&5
8201  if eval "test \"`echo '$''{'ac_cv_uint'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_uint'+set}'`\" = set"; then
8202    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8203  else  else
8204    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8205  #line 7938 "configure"  #line 8206 "configure"
8206  #include "confdefs.h"  #include "confdefs.h"
8207  #include <stdio.h>  #include <stdio.h>
8208                    #include <sys/types.h>                    #include <sys/types.h>
# Line 7942  Line 8210 
8210  uint foo = 0;  uint foo = 0;
8211  ; return 0; }  ; return 0; }
8212  EOF  EOF
8213  if { (eval echo configure:7946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8214    rm -rf conftest*    rm -rf conftest*
8215    ac_cv_uint=true    ac_cv_uint=true
8216  else  else
# Line 7964  Line 8232 
8232    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
8233  fi  fi
8234  echo $ac_n "checking for uint_t""... $ac_c" 1>&6  echo $ac_n "checking for uint_t""... $ac_c" 1>&6
8235  echo "configure:7968: checking for uint_t" >&5  echo "configure:8236: checking for uint_t" >&5
8236  if eval "test \"`echo '$''{'ac_cv_uint_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_uint_t'+set}'`\" = set"; then
8237    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8238  else  else
8239    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8240  #line 7973 "configure"  #line 8241 "configure"
8241  #include "confdefs.h"  #include "confdefs.h"
8242  #include <stdio.h>  #include <stdio.h>
8243                    #include <sys/types.h>                    #include <sys/types.h>
# Line 7977  Line 8245 
8245  uint_t foo = 0;  uint_t foo = 0;
8246  ; return 0; }  ; return 0; }
8247  EOF  EOF
8248  if { (eval echo configure:7981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8249    rm -rf conftest*    rm -rf conftest*
8250    ac_cv_uint_t=true    ac_cv_uint_t=true
8251  else  else
# Line 7999  Line 8267 
8267    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
8268  fi  fi
8269  echo $ac_n "checking for uint16_t""... $ac_c" 1>&6  echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
8270  echo "configure:8003: checking for uint16_t" >&5  echo "configure:8271: checking for uint16_t" >&5
8271  if eval "test \"`echo '$''{'ac_cv_uint16_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_uint16_t'+set}'`\" = set"; then
8272    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8273  else  else
8274    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8275  #line 8008 "configure"  #line 8276 "configure"
8276  #include "confdefs.h"  #include "confdefs.h"
8277  #include <stdio.h>  #include <stdio.h>
8278                    #include <sys/types.h>                    #include <sys/types.h>
# Line 8012  Line 8280 
8280  uint16_t foo = 0;  uint16_t foo = 0;
8281  ; return 0; }  ; return 0; }
8282  EOF  EOF
8283  if { (eval echo configure:8016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8284    rm -rf conftest*    rm -rf conftest*
8285    ac_cv_uint16_t=true    ac_cv_uint16_t=true
8286  else  else
# Line 8043  Line 8311 
8311    
8312    
8313  echo $ac_n "checking for uname.domainname""... $ac_c" 1>&6  echo $ac_n "checking for uname.domainname""... $ac_c" 1>&6
8314  echo "configure:8047: checking for uname.domainname" >&5  echo "configure:8315: checking for uname.domainname" >&5
8315  if eval "test \"`echo '$''{'ac_cv_have_uname_domainname_field'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_have_uname_domainname_field'+set}'`\" = set"; then
8316    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8317  else  else
8318    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8319  #line 8052 "configure"  #line 8320 "configure"
8320  #include "confdefs.h"  #include "confdefs.h"
8321  #include <sys/utsname.h>  #include <sys/utsname.h>
8322  int main() {  int main() {
# Line 8056  Line 8324 
8324              (void)uname(res);  if (res != 0) { domain = res->domainname; }              (void)uname(res);  if (res != 0) { domain = res->domainname; }
8325  ; return 0; }  ; return 0; }
8326  EOF  EOF
8327  if { (eval echo configure:8060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8328    rm -rf conftest*    rm -rf conftest*
8329    ac_cv_have_uname_domainname_field=true    ac_cv_have_uname_domainname_field=true
8330  else  else
# Line 8080  Line 8348 
8348  fi  fi
8349    
8350  echo $ac_n "checking for uname.__domainname""... $ac_c" 1>&6  echo $ac_n "checking for uname.__domainname""... $ac_c" 1>&6
8351  echo "configure:8084: checking for uname.__domainname" >&5  echo "configure:8352: checking for uname.__domainname" >&5
8352  if eval "test \"`echo '$''{'ac_cv_have_uname_us_domainname_field'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_have_uname_us_domainname_field'+set}'`\" = set"; then
8353    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8354  else  else
8355    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8356  #line 8089 "configure"  #line 8357 "configure"
8357  #include "confdefs.h"  #include "confdefs.h"
8358  #include <sys/utsname.h>  #include <sys/utsname.h>
8359  int main() {  int main() {
# Line 8093  Line 8361 
8361              (void)uname(res);  if (res != 0) { domain = res->__domainname; }              (void)uname(res);  if (res != 0) { domain = res->__domainname; }
8362  ; return 0; }  ; return 0; }
8363  EOF  EOF
8364  if { (eval echo configure:8097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8365    rm -rf conftest*    rm -rf conftest*
8366    ac_cv_have_uname_us_domainname_field=true    ac_cv_have_uname_us_domainname_field=true
8367  else  else
# Line 8124  Line 8392 
8392  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
8393    
8394    
   
 echo $ac_n "checking for usable wchar_t (2 bytes, unsigned)""... $ac_c" 1>&6  
 echo "configure:8130: checking for usable wchar_t (2 bytes, unsigned)" >&5  
 if eval "test \"`echo '$''{'ac_cv_have_usable_wchar_v2'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 8135 "configure"  
 #include "confdefs.h"  
 #include <stddef.h>  
                      $configure_static_assert_macros  
 int main() {  
 CONFIGURE_STATIC_ASSERT(sizeof(wchar_t) == 2);  
                      CONFIGURE_STATIC_ASSERT((wchar_t)-1 > (wchar_t) 0)  
 ; return 0; }  
 EOF  
 if { (eval echo configure:8144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  
   rm -rf conftest*  
   ac_cv_have_usable_wchar_v2="yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   ac_cv_have_usable_wchar_v2="no"  
 fi  
 rm -f conftest*  
 fi  
   
 echo "$ac_t""$ac_cv_have_usable_wchar_v2" 1>&6  
 if test "$ac_cv_have_usable_wchar_v2" = "yes"; then  
     cat >> confdefs.h <<\EOF  
 #define HAVE_CPP_2BYTE_WCHAR_T 1  
 EOF  
   
     HAVE_CPP_2BYTE_WCHAR_T=1  
 else  
   
       
     ac_ext=C  
 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
 ac_cpp='$CXXCPP $CPPFLAGS'  
 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cxx_cross  
   
     _SAVE_CXXFLAGS=$CXXFLAGS  
     CXXFLAGS="$CXXFLAGS -fshort-wchar"  
   
     echo $ac_n "checking for compiler -fshort-wchar option""... $ac_c" 1>&6  
 echo "configure:8177: checking for compiler -fshort-wchar option" >&5  
 if eval "test \"`echo '$''{'ac_cv_have_usable_wchar_option_v2'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 8182 "configure"  
 #include "confdefs.h"  
 #include <stddef.h>  
                       $configure_static_assert_macros  
 int main() {  
 CONFIGURE_STATIC_ASSERT(sizeof(wchar_t) == 2);  
                       CONFIGURE_STATIC_ASSERT((wchar_t)-1 > (wchar_t) 0)  
 ; return 0; }  
 EOF  
 if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  
   rm -rf conftest*  
   ac_cv_have_usable_wchar_option_v2="yes"  
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   ac_cv_have_usable_wchar_option_v2="no"  
 fi  
 rm -f conftest*  
 fi  
   
 echo "$ac_t""$ac_cv_have_usable_wchar_option_v2" 1>&6  
   
     if test "$ac_cv_have_usable_wchar_option_v2" = "yes"; then  
         cat >> confdefs.h <<\EOF  
 #define HAVE_CPP_2BYTE_WCHAR_T 1  
 EOF  
   
         HAVE_CPP_2BYTE_WCHAR_T=1  
         WCHAR_CFLAGS="-fshort-wchar"  
     else      
         CXXFLAGS=$_SAVE_CXXFLAGS  
     fi  
     ac_ext=c  
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cc_cross  
   
 fi  
   
8395  if test "$GNU_CC"; then  if test "$GNU_CC"; then
8396    echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6    echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6
8397  echo "configure:8226: checking for visibility(hidden) attribute" >&5  echo "configure:8398: checking for visibility(hidden) attribute" >&5
8398  if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_visibility_hidden'+set}'`\" = set"; then
8399    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8400  else  else
# Line 8247  Line 8419 
8419    
8420    
8421      echo $ac_n "checking for visibility(default) attribute""... $ac_c" 1>&6      echo $ac_n "checking for visibility(default) attribute""... $ac_c" 1>&6
8422  echo "configure:8251: checking for visibility(default) attribute" >&5  echo "configure:8423: checking for visibility(default) attribute" >&5
8423  if eval "test \"`echo '$''{'ac_cv_visibility_default'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_visibility_default'+set}'`\" = set"; then
8424    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8425  else  else
# Line 8272  Line 8444 
8444    
8445    
8446        echo $ac_n "checking for visibility pragma support""... $ac_c" 1>&6        echo $ac_n "checking for visibility pragma support""... $ac_c" 1>&6
8447  echo "configure:8276: checking for visibility pragma support" >&5  echo "configure:8448: checking for visibility pragma support" >&5
8448  if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then
8449    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8450  else  else
# Line 8297  Line 8469 
8469  echo "$ac_t""$ac_cv_visibility_pragma" 1>&6  echo "$ac_t""$ac_cv_visibility_pragma" 1>&6
8470        if test "$ac_cv_visibility_pragma" = "yes"; then        if test "$ac_cv_visibility_pragma" = "yes"; then
8471          echo $ac_n "checking For gcc visibility bug with class-level attributes (GCC bug 26905)""... $ac_c" 1>&6          echo $ac_n "checking For gcc visibility bug with class-level attributes (GCC bug 26905)""... $ac_c" 1>&6
8472  echo "configure:8301: checking For gcc visibility bug with class-level attributes (GCC bug 26905)" >&5  echo "configure:8473: checking For gcc visibility bug with class-level attributes (GCC bug 26905)" >&5
8473  if eval "test \"`echo '$''{'ac_cv_have_visibility_class_bug'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_have_visibility_class_bug'+set}'`\" = set"; then
8474    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8475  else  else
# Line 8325  Line 8497 
8497  echo "$ac_t""$ac_cv_have_visibility_class_bug" 1>&6  echo "$ac_t""$ac_cv_have_visibility_class_bug" 1>&6
8498    
8499          echo $ac_n "checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)""... $ac_c" 1>&6          echo $ac_n "checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)""... $ac_c" 1>&6
8500  echo "configure:8329: checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)" >&5  echo "configure:8501: checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)" >&5
8501  if eval "test \"`echo '$''{'ac_cv_have_visibility_builtin_bug'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_have_visibility_builtin_bug'+set}'`\" = set"; then
8502    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8503  else  else
# Line 8355  Line 8527 
8527  echo "$ac_t""$ac_cv_have_visibility_builtin_bug" 1>&6  echo "$ac_t""$ac_cv_have_visibility_builtin_bug" 1>&6
8528          if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \          if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \
8529                  "$ac_cv_have_visibility_class_bug" = "no"; then                  "$ac_cv_have_visibility_class_bug" = "no"; then
8530            VISIBILITY_FLAGS='-I$(DIST)/include/system_wrappers_js -include $(topsrcdir)/config/gcc_hidden.h'            VISIBILITY_FLAGS='-I$(DIST)/system_wrappers_js -include $(topsrcdir)/config/gcc_hidden.h'
8531            WRAP_SYSTEM_INCLUDES=1            WRAP_SYSTEM_INCLUDES=1
8532          else          else
8533            VISIBILITY_FLAGS='-fvisibility=hidden'            VISIBILITY_FLAGS='-fvisibility=hidden'
# Line 8378  Line 8550 
8550  do  do
8551  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8552  echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8553  echo "configure:8382: checking for $ac_hdr that defines DIR" >&5  echo "configure:8554: checking for $ac_hdr that defines DIR" >&5
8554  if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8555    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8556  else  else
8557    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8558  #line 8387 "configure"  #line 8559 "configure"
8559  #include "confdefs.h"  #include "confdefs.h"
8560  #include <sys/types.h>  #include <sys/types.h>
8561  #include <$ac_hdr>  #include <$ac_hdr>
# Line 8391  Line 8563 
8563  DIR *dirp = 0;  DIR *dirp = 0;
8564  ; return 0; }  ; return 0; }