common/autoconf/generated-configure.sh

Print this page


   1 #! /bin/sh
   2 # Guess values for system-dependent variables and create Makefiles.
   3 # Generated by GNU Autoconf 2.68 for OpenJDK jdk8.
   4 #
   5 # Report bugs to <build-dev@openjdk.java.net>.
   6 #
   7 #
   8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10 # Foundation, Inc.
  11 #
  12 #
  13 # This configure script is free software; the Free Software Foundation
  14 # gives unlimited permission to copy, distribute and modify it.
  15 ## -------------------- ##
  16 ## M4sh Initialization. ##
  17 ## -------------------- ##
  18 
  19 # Be more Bourne compatible
  20 DUALCASE=1; export DUALCASE # for MKS sh
  21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22   emulate sh
  23   NULLCMD=:


  74 fi
  75 
  76 # The user is always right.
  77 if test "${PATH_SEPARATOR+set}" != set; then
  78   PATH_SEPARATOR=:
  79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  81       PATH_SEPARATOR=';'
  82   }
  83 fi
  84 
  85 
  86 # IFS
  87 # We need space, tab and new line, in precisely that order.  Quoting is
  88 # there to prevent editors from complaining about space-tab.
  89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  90 # splitting by setting IFS to empty value.)
  91 IFS=" ""        $as_nl"
  92 
  93 # Find who we are.  Look in the path if we contain no directory separator.
  94 as_myself=
  95 case $0 in #((
  96   *[\\/]* ) as_myself=$0 ;;
  97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98 for as_dir in $PATH
  99 do
 100   IFS=$as_save_IFS
 101   test -z "$as_dir" && as_dir=.
 102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 103   done
 104 IFS=$as_save_IFS
 105 
 106      ;;
 107 esac
 108 # We did not find ourselves, most probably we were run as `sh COMMAND'
 109 # in which case we are not to be found in the path.
 110 if test "x$as_myself" = x; then
 111   as_myself=$0
 112 fi
 113 if test ! -f "$as_myself"; then
 114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


 200   CONFIG_SHELL=$as_shell as_have_required=yes
 201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 202   break 2
 203 fi
 204 fi
 205            done;;
 206        esac
 207   as_found=false
 208 done
 209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 211   CONFIG_SHELL=$SHELL as_have_required=yes
 212 fi; }
 213 IFS=$as_save_IFS
 214 
 215 
 216       if test "x$CONFIG_SHELL" != x; then :
 217   # We cannot yet assume a decent shell, so we have to provide a
 218         # neutralization value for shells without unset; and this also
 219         # works around shells that cannot unset nonexistent variables.
 220         # Preserve -v and -x to the replacement shell.
 221         BASH_ENV=/dev/null
 222         ENV=/dev/null
 223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 224         export CONFIG_SHELL
 225         case $- in # ((((
 226           *v*x* | *x*v* ) as_opts=-vx ;;
 227           *v* ) as_opts=-v ;;
 228           *x* ) as_opts=-x ;;
 229           * ) as_opts= ;;
 230         esac
 231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 232 fi
 233 
 234     if test x$as_have_required = xno; then :
 235   $as_echo "$0: This script requires a shell more modern than all"
 236   $as_echo "$0: the shells that I found on your system."
 237   if test x${ZSH_VERSION+set} = xset ; then
 238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 240   else
 241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 242 $0: build-dev@openjdk.java.net about your system, including
 243 $0: any error possibly output before this message. Then
 244 $0: install a modern shell, or manually run the script
 245 $0: under such a shell if you do have one."
 246   fi
 247   exit 1
 248 fi
 249 fi
 250 fi
 251 SHELL=${CONFIG_SHELL-/bin/sh}


 777 MILESTONE
 778 JDK_BUILD_NUMBER
 779 JDK_UPDATE_VERSION
 780 JDK_MICRO_VERSION
 781 JDK_MINOR_VERSION
 782 JDK_MAJOR_VERSION
 783 USER_RELEASE_SUFFIX
 784 COMPRESS_JARS
 785 UNLIMITED_CRYPTO
 786 CACERTS_FILE
 787 TEST_IN_BUILD
 788 BUILD_HEADLESS
 789 SUPPORT_HEADFUL
 790 SUPPORT_HEADLESS
 791 BDEPS_FTP
 792 BDEPS_UNZIP
 793 OS_VERSION_MICRO
 794 OS_VERSION_MINOR
 795 OS_VERSION_MAJOR
 796 PKG_CONFIG

 797 TIME
 798 STAT
 799 HG
 800 READELF
 801 OTOOL
 802 LDD
 803 ZIP
 804 UNZIP
 805 FIND_DELETE
 806 MAKE
 807 CHECK_TOOLSDIR_MAKE
 808 CHECK_TOOLSDIR_GMAKE
 809 CHECK_MAKE
 810 CHECK_GMAKE
 811 PKGHANDLER
 812 OUTPUT_ROOT
 813 CONF_NAME
 814 SPEC
 815 BUILD_VARIANT_RELEASE
 816 DEBUG_CLASSFILES


1433 
1434   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1435 Try \`$0 --help' for more information"
1436     ;;
1437 
1438   *=*)
1439     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1440     # Reject names that are not valid shell variable names.
1441     case $ac_envvar in #(
1442       '' | [0-9]* | *[!_$as_cr_alnum]* )
1443       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1444     esac
1445     eval $ac_envvar=\$ac_optarg
1446     export $ac_envvar ;;
1447 
1448   *)
1449     # FIXME: should be removed in autoconf 3.0.
1450     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1452       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1453     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1454     ;;
1455 
1456   esac
1457 done
1458 
1459 if test -n "$ac_prev"; then
1460   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1461   as_fn_error $? "missing argument to $ac_option"
1462 fi
1463 
1464 if test -n "$ac_unrecognized_opts"; then
1465   case $enable_option_checking in
1466     no) ;;
1467     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1468     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1469   esac
1470 fi
1471 
1472 # Check all directory arguments for consistency.
1473 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \


1865 
1866     cd "$ac_dir" || { ac_status=$?; continue; }
1867     # Check for guested configure.
1868     if test -f "$ac_srcdir/configure.gnu"; then
1869       echo &&
1870       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1871     elif test -f "$ac_srcdir/configure"; then
1872       echo &&
1873       $SHELL "$ac_srcdir/configure" --help=recursive
1874     else
1875       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1876     fi || ac_status=$?
1877     cd "$ac_pwd" || { ac_status=$?; break; }
1878   done
1879 fi
1880 
1881 test -n "$ac_init_help" && exit $ac_status
1882 if $ac_init_version; then
1883   cat <<\_ACEOF
1884 OpenJDK configure jdk8
1885 generated by GNU Autoconf 2.68
1886 
1887 Copyright (C) 2010 Free Software Foundation, Inc.
1888 This configure script is free software; the Free Software Foundation
1889 gives unlimited permission to copy, distribute and modify it.
1890 _ACEOF
1891   exit
1892 fi
1893 
1894 ## ------------------------ ##
1895 ## Autoconf initialization. ##
1896 ## ------------------------ ##
1897 
1898 # ac_fn_c_try_compile LINENO
1899 # --------------------------
1900 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_c_try_compile ()
1902 {
1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904   rm -f conftest.$ac_objext
1905   if { { ac_try="$ac_compile"


1911 $as_echo "$ac_try_echo"; } >&5
1912   (eval "$ac_compile") 2>conftest.err
1913   ac_status=$?
1914   if test -s conftest.err; then
1915     grep -v '^ *+' conftest.err >conftest.er1
1916     cat conftest.er1 >&5
1917     mv -f conftest.er1 conftest.err
1918   fi
1919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920   test $ac_status = 0; } && {
1921          test -z "$ac_c_werror_flag" ||
1922          test ! -s conftest.err
1923        } && test -s conftest.$ac_objext; then :
1924   ac_retval=0
1925 else
1926   $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928 
1929         ac_retval=1
1930 fi
1931   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932   as_fn_set_status $ac_retval
1933 
1934 } # ac_fn_c_try_compile
1935 
1936 # ac_fn_cxx_try_compile LINENO
1937 # ----------------------------
1938 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_cxx_try_compile ()
1940 {
1941   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942   rm -f conftest.$ac_objext
1943   if { { ac_try="$ac_compile"
1944 case "(($ac_try" in
1945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946   *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950   (eval "$ac_compile") 2>conftest.err
1951   ac_status=$?
1952   if test -s conftest.err; then
1953     grep -v '^ *+' conftest.err >conftest.er1
1954     cat conftest.er1 >&5
1955     mv -f conftest.er1 conftest.err
1956   fi
1957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958   test $ac_status = 0; } && {
1959          test -z "$ac_cxx_werror_flag" ||
1960          test ! -s conftest.err
1961        } && test -s conftest.$ac_objext; then :
1962   ac_retval=0
1963 else
1964   $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1966 
1967         ac_retval=1
1968 fi
1969   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970   as_fn_set_status $ac_retval
1971 
1972 } # ac_fn_cxx_try_compile
1973 
1974 # ac_fn_objc_try_compile LINENO
1975 # -----------------------------
1976 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_objc_try_compile ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   rm -f conftest.$ac_objext
1981   if { { ac_try="$ac_compile"
1982 case "(($ac_try" in
1983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984   *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988   (eval "$ac_compile") 2>conftest.err
1989   ac_status=$?
1990   if test -s conftest.err; then
1991     grep -v '^ *+' conftest.err >conftest.er1
1992     cat conftest.er1 >&5
1993     mv -f conftest.er1 conftest.err
1994   fi
1995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996   test $ac_status = 0; } && {
1997          test -z "$ac_objc_werror_flag" ||
1998          test ! -s conftest.err
1999        } && test -s conftest.$ac_objext; then :
2000   ac_retval=0
2001 else
2002   $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2004 
2005         ac_retval=1
2006 fi
2007   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008   as_fn_set_status $ac_retval
2009 
2010 } # ac_fn_objc_try_compile
2011 
2012 # ac_fn_c_try_cpp LINENO
2013 # ----------------------
2014 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_c_try_cpp ()
2016 {
2017   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018   if { { ac_try="$ac_cpp conftest.$ac_ext"
2019 case "(($ac_try" in
2020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021   *) ac_try_echo=$ac_try;;
2022 esac
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2026   ac_status=$?
2027   if test -s conftest.err; then
2028     grep -v '^ *+' conftest.err >conftest.er1
2029     cat conftest.er1 >&5
2030     mv -f conftest.er1 conftest.err
2031   fi
2032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033   test $ac_status = 0; } > conftest.i && {
2034          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2035          test ! -s conftest.err
2036        }; then :
2037   ac_retval=0
2038 else
2039   $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041 
2042     ac_retval=1
2043 fi
2044   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045   as_fn_set_status $ac_retval
2046 
2047 } # ac_fn_c_try_cpp
2048 
2049 # ac_fn_cxx_try_cpp LINENO
2050 # ------------------------
2051 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2052 ac_fn_cxx_try_cpp ()
2053 {
2054   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055   if { { ac_try="$ac_cpp conftest.$ac_ext"
2056 case "(($ac_try" in
2057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058   *) ac_try_echo=$ac_try;;
2059 esac
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2063   ac_status=$?
2064   if test -s conftest.err; then
2065     grep -v '^ *+' conftest.err >conftest.er1
2066     cat conftest.er1 >&5
2067     mv -f conftest.er1 conftest.err
2068   fi
2069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070   test $ac_status = 0; } > conftest.i && {
2071          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2072          test ! -s conftest.err
2073        }; then :
2074   ac_retval=0
2075 else
2076   $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2078 
2079     ac_retval=1
2080 fi
2081   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082   as_fn_set_status $ac_retval
2083 
2084 } # ac_fn_cxx_try_cpp
2085 
2086 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2087 # ---------------------------------------------------------
2088 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2089 # the include files in INCLUDES and setting the cache variable VAR
2090 # accordingly.
2091 ac_fn_cxx_check_header_mongrel ()
2092 {
2093   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094   if eval \${$3+:} false; then :
2095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if eval \${$3+:} false; then :
2098   $as_echo_n "(cached) " >&6
2099 fi
2100 eval ac_res=\$$3
2101                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 else
2104   # Is the header compilable?
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2106 $as_echo_n "checking $2 usability... " >&6; }
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 #include <$2>
2111 _ACEOF
2112 if ac_fn_cxx_try_compile "$LINENO"; then :
2113   ac_header_compiler=yes
2114 else
2115   ac_header_compiler=no
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


2144     ;;
2145   no:yes:* )
2146     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2147 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2149 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2150     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2151 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2152     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2153 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2154     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2155 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2156 ( $as_echo "## ----------------------------------------- ##
2157 ## Report this to build-dev@openjdk.java.net ##
2158 ## ----------------------------------------- ##"
2159      ) | sed "s/^/$as_me: WARNING:     /" >&2
2160     ;;
2161 esac
2162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163 $as_echo_n "checking for $2... " >&6; }
2164 if eval \${$3+:} false; then :
2165   $as_echo_n "(cached) " >&6
2166 else
2167   eval "$3=\$ac_header_compiler"
2168 fi
2169 eval ac_res=\$$3
2170                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 fi
2173   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 
2175 } # ac_fn_cxx_check_header_mongrel
2176 
2177 # ac_fn_cxx_try_run LINENO
2178 # ------------------------
2179 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2180 # that executables *can* be run.
2181 ac_fn_cxx_try_run ()
2182 {
2183   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184   if { { ac_try="$ac_link"
2185 case "(($ac_try" in
2186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187   *) ac_try_echo=$ac_try;;
2188 esac
2189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190 $as_echo "$ac_try_echo"; } >&5
2191   (eval "$ac_link") 2>&5
2192   ac_status=$?
2193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2195   { { case "(($ac_try" in
2196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197   *) ac_try_echo=$ac_try;;
2198 esac
2199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200 $as_echo "$ac_try_echo"; } >&5
2201   (eval "$ac_try") 2>&5
2202   ac_status=$?
2203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204   test $ac_status = 0; }; }; then :
2205   ac_retval=0
2206 else
2207   $as_echo "$as_me: program exited with status $ac_status" >&5
2208        $as_echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2210 
2211        ac_retval=$ac_status
2212 fi
2213   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2214   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215   as_fn_set_status $ac_retval
2216 
2217 } # ac_fn_cxx_try_run
2218 
2219 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2220 # ---------------------------------------------------------
2221 # Tests whether HEADER exists and can be compiled using the include files in
2222 # INCLUDES, setting the cache variable VAR accordingly.
2223 ac_fn_cxx_check_header_compile ()
2224 {
2225   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229   $as_echo_n "(cached) " >&6
2230 else
2231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h.  */
2233 $4
2234 #include <$2>
2235 _ACEOF
2236 if ac_fn_cxx_try_compile "$LINENO"; then :
2237   eval "$3=yes"
2238 else
2239   eval "$3=no"
2240 fi
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 fi
2243 eval ac_res=\$$3
2244                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247 
2248 } # ac_fn_cxx_check_header_compile
2249 
2250 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2251 # ----------------------------------------------
2252 # Tries to find the compile-time value of EXPR in a program that includes
2253 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2254 # computed
2255 ac_fn_cxx_compute_int ()
2256 {
2257   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258   if test "$cross_compiling" = yes; then
2259     # Depending upon the size, compute the lo and hi bounds.
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h.  */
2262 $4
2263 int
2264 main ()
2265 {
2266 static int test_array [1 - 2 * !(($2) >= 0)];


2403       fprintf (f, "%lu", i);
2404     }
2405   /* Do not output a trailing newline, as this causes \r\n confusion
2406      on some platforms.  */
2407   return ferror (f) || fclose (f) != 0;
2408 
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 if ac_fn_cxx_try_run "$LINENO"; then :
2414   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2415 else
2416   ac_retval=1
2417 fi
2418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2419   conftest.$ac_objext conftest.beam conftest.$ac_ext
2420 rm -f conftest.val
2421 
2422   fi
2423   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2424   as_fn_set_status $ac_retval
2425 
2426 } # ac_fn_cxx_compute_int
2427 
2428 # ac_fn_cxx_try_link LINENO
2429 # -------------------------
2430 # Try to link conftest.$ac_ext, and return whether this succeeded.
2431 ac_fn_cxx_try_link ()
2432 {
2433   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434   rm -f conftest.$ac_objext conftest$ac_exeext
2435   if { { ac_try="$ac_link"
2436 case "(($ac_try" in
2437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438   *) ac_try_echo=$ac_try;;
2439 esac
2440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2441 $as_echo "$ac_try_echo"; } >&5
2442   (eval "$ac_link") 2>conftest.err
2443   ac_status=$?


2449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2450   test $ac_status = 0; } && {
2451          test -z "$ac_cxx_werror_flag" ||
2452          test ! -s conftest.err
2453        } && test -s conftest$ac_exeext && {
2454          test "$cross_compiling" = yes ||
2455          $as_test_x conftest$ac_exeext
2456        }; then :
2457   ac_retval=0
2458 else
2459   $as_echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461 
2462         ac_retval=1
2463 fi
2464   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2465   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2466   # interfere with the next link command; also delete a directory that is
2467   # left behind by Apple's compiler.  We do this before executing the actions.
2468   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2469   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470   as_fn_set_status $ac_retval
2471 
2472 } # ac_fn_cxx_try_link
2473 
2474 # ac_fn_cxx_check_func LINENO FUNC VAR
2475 # ------------------------------------
2476 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2477 ac_fn_cxx_check_func ()
2478 {
2479   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2481 $as_echo_n "checking for $2... " >&6; }
2482 if eval \${$3+:} false; then :
2483   $as_echo_n "(cached) " >&6
2484 else
2485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h.  */
2487 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2489 #define $2 innocuous_$2
2490 
2491 /* System header to define __stub macros and hopefully few prototypes,
2492     which can conflict with char $2 (); below.
2493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2494     <limits.h> exists even on freestanding compilers.  */
2495 
2496 #ifdef __STDC__
2497 # include <limits.h>
2498 #else
2499 # include <assert.h>
2500 #endif
2501 
2502 #undef $2


2517 
2518 int
2519 main ()
2520 {
2521 return $2 ();
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 if ac_fn_cxx_try_link "$LINENO"; then :
2527   eval "$3=yes"
2528 else
2529   eval "$3=no"
2530 fi
2531 rm -f core conftest.err conftest.$ac_objext \
2532     conftest$ac_exeext conftest.$ac_ext
2533 fi
2534 eval ac_res=\$$3
2535                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2538 
2539 } # ac_fn_cxx_check_func
2540 
2541 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2542 # -------------------------------------------------------
2543 # Tests whether HEADER exists and can be compiled using the include files in
2544 # INCLUDES, setting the cache variable VAR accordingly.
2545 ac_fn_c_check_header_compile ()
2546 {
2547   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if eval \${$3+:} false; then :
2551   $as_echo_n "(cached) " >&6
2552 else
2553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h.  */
2555 $4
2556 #include <$2>
2557 _ACEOF
2558 if ac_fn_c_try_compile "$LINENO"; then :
2559   eval "$3=yes"
2560 else
2561   eval "$3=no"
2562 fi
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564 fi
2565 eval ac_res=\$$3
2566                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569 
2570 } # ac_fn_c_check_header_compile
2571 cat >config.log <<_ACEOF
2572 This file contains any messages produced by compilers while
2573 running configure, to aid debugging if configure makes a mistake.
2574 
2575 It was created by OpenJDK $as_me jdk8, which was
2576 generated by GNU Autoconf 2.68.  Invocation command line was
2577 
2578   $ $0 $@
2579 
2580 _ACEOF
2581 exec 5>>config.log
2582 {
2583 cat <<_ASUNAME
2584 ## --------- ##
2585 ## Platform. ##
2586 ## --------- ##
2587 
2588 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2589 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2590 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2591 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2592 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2593 
2594 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2595 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2596 


2814     *)   ac_site_file1=./$CONFIG_SITE;;
2815   esac
2816 elif test "x$prefix" != xNONE; then
2817   ac_site_file1=$prefix/share/config.site
2818   ac_site_file2=$prefix/etc/config.site
2819 else
2820   ac_site_file1=$ac_default_prefix/share/config.site
2821   ac_site_file2=$ac_default_prefix/etc/config.site
2822 fi
2823 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2824 do
2825   test "x$ac_site_file" = xNONE && continue
2826   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2827     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2828 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2829     sed 's/^/| /' "$ac_site_file" >&5
2830     . "$ac_site_file" \
2831       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833 as_fn_error $? "failed to load site script $ac_site_file
2834 See \`config.log' for more details" "$LINENO" 5; }
2835   fi
2836 done
2837 
2838 if test -r "$cache_file"; then
2839   # Some versions of bash will fail to source /dev/null (special files
2840   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2841   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2842     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2843 $as_echo "$as_me: loading cache $cache_file" >&6;}
2844     case $cache_file in
2845       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2846       *)                      . "./$cache_file";;
2847     esac
2848   fi
2849 else
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2851 $as_echo "$as_me: creating cache $cache_file" >&6;}
2852   >$cache_file
2853 fi
2854 


3736 
3737 # Check if the VS env variables were setup prior to running configure.
3738 # If not, then find vcvarsall.bat and run it automatically, and integrate
3739 # the set env variables into the spec file.
3740 
3741 
3742 
3743 # Setup the DXSDK paths
3744 
3745 
3746 
3747 
3748 
3749 
3750 # This line needs to be here, verbatim, after all includes and the dummy hook
3751 # definitions. It is replaced with custom functionality when building
3752 # custom sources.
3753 #CUSTOM_AUTOCONF_INCLUDE
3754 
3755 # Do not change or remove the following line, it is needed for consistency checks:
3756 DATE_WHEN_GENERATED=1363706268
3757 
3758 ###############################################################################
3759 #
3760 # Initialization / Boot-strapping
3761 #
3762 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3763 # thus it jumps back and forth, each time gaining something needed later on.
3764 #
3765 ###############################################################################
3766 
3767 # Basic initialization that must happen first of all
3768 
3769 # Save the original command line. This is passed to us by the wrapper configure script.
3770 
3771 DATE_WHEN_CONFIGURED=`LANG=C date`
3772 
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3774 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3776 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3777 
3778 
3779 
3780 # Start with tools that do not need have cross compilation support
3781 # and can be expected to be found in the default PATH. These tools are
3782 # used by configure. Nor are these tools expected to be found in the
3783 # devkit from the builddeps server either, since they are
3784 # needed to download the devkit.
3785 
3786 # First are all the simple required tools.
3787 
3788     for ac_prog in basename
3789 do
3790   # Extract the first word of "$ac_prog", so it can be a program name with args.
3791 set dummy $ac_prog; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if ${ac_cv_path_BASENAME+:} false; then :
3795   $as_echo_n "(cached) " >&6
3796 else
3797   case $BASENAME in
3798   [\\/]* | ?:[\\/]*)
3799   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3800   ;;
3801   *)
3802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805   IFS=$as_save_IFS
3806   test -z "$as_dir" && as_dir=.
3807     for ac_exec_ext in '' $ac_executable_extensions; do
3808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811     break 2
3812   fi
3813 done
3814   done


3833 
3834     if test "x$BASENAME" = x; then
3835         if test "xbasename" = x; then
3836           PROG_NAME=basename
3837         else
3838           PROG_NAME=basename
3839         fi
3840         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3841 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3842         as_fn_error $? "Cannot continue" "$LINENO" 5
3843     fi
3844 
3845 
3846 
3847     for ac_prog in bash
3848 do
3849   # Extract the first word of "$ac_prog", so it can be a program name with args.
3850 set dummy $ac_prog; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if ${ac_cv_path_BASH+:} false; then :
3854   $as_echo_n "(cached) " >&6
3855 else
3856   case $BASH in
3857   [\\/]* | ?:[\\/]*)
3858   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3859   ;;
3860   *)
3861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866     for ac_exec_ext in '' $ac_executable_extensions; do
3867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870     break 2
3871   fi
3872 done
3873   done


3892 
3893     if test "x$BASH" = x; then
3894         if test "xbash" = x; then
3895           PROG_NAME=bash
3896         else
3897           PROG_NAME=bash
3898         fi
3899         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3900 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3901         as_fn_error $? "Cannot continue" "$LINENO" 5
3902     fi
3903 
3904 
3905 
3906     for ac_prog in cat
3907 do
3908   # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 set dummy $ac_prog; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_path_CAT+:} false; then :
3913   $as_echo_n "(cached) " >&6
3914 else
3915   case $CAT in
3916   [\\/]* | ?:[\\/]*)
3917   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3918   ;;
3919   *)
3920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925     for ac_exec_ext in '' $ac_executable_extensions; do
3926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3927     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929     break 2
3930   fi
3931 done
3932   done


3951 
3952     if test "x$CAT" = x; then
3953         if test "xcat" = x; then
3954           PROG_NAME=cat
3955         else
3956           PROG_NAME=cat
3957         fi
3958         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3959 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3960         as_fn_error $? "Cannot continue" "$LINENO" 5
3961     fi
3962 
3963 
3964 
3965     for ac_prog in chmod
3966 do
3967   # Extract the first word of "$ac_prog", so it can be a program name with args.
3968 set dummy $ac_prog; ac_word=$2
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 $as_echo_n "checking for $ac_word... " >&6; }
3971 if ${ac_cv_path_CHMOD+:} false; then :
3972   $as_echo_n "(cached) " >&6
3973 else
3974   case $CHMOD in
3975   [\\/]* | ?:[\\/]*)
3976   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3977   ;;
3978   *)
3979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984     for ac_exec_ext in '' $ac_executable_extensions; do
3985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988     break 2
3989   fi
3990 done
3991   done


4010 
4011     if test "x$CHMOD" = x; then
4012         if test "xchmod" = x; then
4013           PROG_NAME=chmod
4014         else
4015           PROG_NAME=chmod
4016         fi
4017         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4018 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4019         as_fn_error $? "Cannot continue" "$LINENO" 5
4020     fi
4021 
4022 
4023 
4024     for ac_prog in cmp
4025 do
4026   # Extract the first word of "$ac_prog", so it can be a program name with args.
4027 set dummy $ac_prog; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if ${ac_cv_path_CMP+:} false; then :
4031   $as_echo_n "(cached) " >&6
4032 else
4033   case $CMP in
4034   [\\/]* | ?:[\\/]*)
4035   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4036   ;;
4037   *)
4038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4040 do
4041   IFS=$as_save_IFS
4042   test -z "$as_dir" && as_dir=.
4043     for ac_exec_ext in '' $ac_executable_extensions; do
4044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4045     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047     break 2
4048   fi
4049 done
4050   done


4069 
4070     if test "x$CMP" = x; then
4071         if test "xcmp" = x; then
4072           PROG_NAME=cmp
4073         else
4074           PROG_NAME=cmp
4075         fi
4076         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4077 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4078         as_fn_error $? "Cannot continue" "$LINENO" 5
4079     fi
4080 
4081 
4082 
4083     for ac_prog in comm
4084 do
4085   # Extract the first word of "$ac_prog", so it can be a program name with args.
4086 set dummy $ac_prog; ac_word=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if ${ac_cv_path_COMM+:} false; then :
4090   $as_echo_n "(cached) " >&6
4091 else
4092   case $COMM in
4093   [\\/]* | ?:[\\/]*)
4094   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4095   ;;
4096   *)
4097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100   IFS=$as_save_IFS
4101   test -z "$as_dir" && as_dir=.
4102     for ac_exec_ext in '' $ac_executable_extensions; do
4103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106     break 2
4107   fi
4108 done
4109   done


4128 
4129     if test "x$COMM" = x; then
4130         if test "xcomm" = x; then
4131           PROG_NAME=comm
4132         else
4133           PROG_NAME=comm
4134         fi
4135         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4136 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4137         as_fn_error $? "Cannot continue" "$LINENO" 5
4138     fi
4139 
4140 
4141 
4142     for ac_prog in cp
4143 do
4144   # Extract the first word of "$ac_prog", so it can be a program name with args.
4145 set dummy $ac_prog; ac_word=$2
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147 $as_echo_n "checking for $ac_word... " >&6; }
4148 if ${ac_cv_path_CP+:} false; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151   case $CP in
4152   [\\/]* | ?:[\\/]*)
4153   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4154   ;;
4155   *)
4156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4158 do
4159   IFS=$as_save_IFS
4160   test -z "$as_dir" && as_dir=.
4161     for ac_exec_ext in '' $ac_executable_extensions; do
4162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4163     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165     break 2
4166   fi
4167 done
4168   done


4187 
4188     if test "x$CP" = x; then
4189         if test "xcp" = x; then
4190           PROG_NAME=cp
4191         else
4192           PROG_NAME=cp
4193         fi
4194         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4195 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4196         as_fn_error $? "Cannot continue" "$LINENO" 5
4197     fi
4198 
4199 
4200 
4201     for ac_prog in cpio
4202 do
4203   # Extract the first word of "$ac_prog", so it can be a program name with args.
4204 set dummy $ac_prog; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_path_CPIO+:} false; then :
4208   $as_echo_n "(cached) " >&6
4209 else
4210   case $CPIO in
4211   [\\/]* | ?:[\\/]*)
4212   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4213   ;;
4214   *)
4215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220     for ac_exec_ext in '' $ac_executable_extensions; do
4221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224     break 2
4225   fi
4226 done
4227   done


4246 
4247     if test "x$CPIO" = x; then
4248         if test "xcpio" = x; then
4249           PROG_NAME=cpio
4250         else
4251           PROG_NAME=cpio
4252         fi
4253         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4254 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4255         as_fn_error $? "Cannot continue" "$LINENO" 5
4256     fi
4257 
4258 
4259 
4260     for ac_prog in cut
4261 do
4262   # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_path_CUT+:} false; then :
4267   $as_echo_n "(cached) " >&6
4268 else
4269   case $CUT in
4270   [\\/]* | ?:[\\/]*)
4271   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4272   ;;
4273   *)
4274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277   IFS=$as_save_IFS
4278   test -z "$as_dir" && as_dir=.
4279     for ac_exec_ext in '' $ac_executable_extensions; do
4280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283     break 2
4284   fi
4285 done
4286   done


4305 
4306     if test "x$CUT" = x; then
4307         if test "xcut" = x; then
4308           PROG_NAME=cut
4309         else
4310           PROG_NAME=cut
4311         fi
4312         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4313 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4314         as_fn_error $? "Cannot continue" "$LINENO" 5
4315     fi
4316 
4317 
4318 
4319     for ac_prog in date
4320 do
4321   # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_path_DATE+:} false; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328   case $DATE in
4329   [\\/]* | ?:[\\/]*)
4330   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4331   ;;
4332   *)
4333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336   IFS=$as_save_IFS
4337   test -z "$as_dir" && as_dir=.
4338     for ac_exec_ext in '' $ac_executable_extensions; do
4339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342     break 2
4343   fi
4344 done
4345   done


4364 
4365     if test "x$DATE" = x; then
4366         if test "xdate" = x; then
4367           PROG_NAME=date
4368         else
4369           PROG_NAME=date
4370         fi
4371         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4372 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4373         as_fn_error $? "Cannot continue" "$LINENO" 5
4374     fi
4375 
4376 
4377 
4378     for ac_prog in gdiff diff
4379 do
4380   # Extract the first word of "$ac_prog", so it can be a program name with args.
4381 set dummy $ac_prog; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if ${ac_cv_path_DIFF+:} false; then :
4385   $as_echo_n "(cached) " >&6
4386 else
4387   case $DIFF in
4388   [\\/]* | ?:[\\/]*)
4389   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4390   ;;
4391   *)
4392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH
4394 do
4395   IFS=$as_save_IFS
4396   test -z "$as_dir" && as_dir=.
4397     for ac_exec_ext in '' $ac_executable_extensions; do
4398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401     break 2
4402   fi
4403 done
4404   done


4423 
4424     if test "x$DIFF" = x; then
4425         if test "xgdiff diff" = x; then
4426           PROG_NAME=diff
4427         else
4428           PROG_NAME=gdiff diff
4429         fi
4430         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4431 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4432         as_fn_error $? "Cannot continue" "$LINENO" 5
4433     fi
4434 
4435 
4436 
4437     for ac_prog in dirname
4438 do
4439   # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if ${ac_cv_path_DIRNAME+:} false; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   case $DIRNAME in
4447   [\\/]* | ?:[\\/]*)
4448   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4449   ;;
4450   *)
4451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454   IFS=$as_save_IFS
4455   test -z "$as_dir" && as_dir=.
4456     for ac_exec_ext in '' $ac_executable_extensions; do
4457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460     break 2
4461   fi
4462 done
4463   done


4482 
4483     if test "x$DIRNAME" = x; then
4484         if test "xdirname" = x; then
4485           PROG_NAME=dirname
4486         else
4487           PROG_NAME=dirname
4488         fi
4489         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4490 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4491         as_fn_error $? "Cannot continue" "$LINENO" 5
4492     fi
4493 
4494 
4495 
4496     for ac_prog in echo
4497 do
4498   # Extract the first word of "$ac_prog", so it can be a program name with args.
4499 set dummy $ac_prog; ac_word=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if ${ac_cv_path_ECHO+:} false; then :
4503   $as_echo_n "(cached) " >&6
4504 else
4505   case $ECHO in
4506   [\\/]* | ?:[\\/]*)
4507   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4508   ;;
4509   *)
4510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515     for ac_exec_ext in '' $ac_executable_extensions; do
4516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519     break 2
4520   fi
4521 done
4522   done


4541 
4542     if test "x$ECHO" = x; then
4543         if test "xecho" = x; then
4544           PROG_NAME=echo
4545         else
4546           PROG_NAME=echo
4547         fi
4548         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4549 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4550         as_fn_error $? "Cannot continue" "$LINENO" 5
4551     fi
4552 
4553 
4554 
4555     for ac_prog in expr
4556 do
4557   # Extract the first word of "$ac_prog", so it can be a program name with args.
4558 set dummy $ac_prog; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_path_EXPR+:} false; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   case $EXPR in
4565   [\\/]* | ?:[\\/]*)
4566   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4567   ;;
4568   *)
4569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572   IFS=$as_save_IFS
4573   test -z "$as_dir" && as_dir=.
4574     for ac_exec_ext in '' $ac_executable_extensions; do
4575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578     break 2
4579   fi
4580 done
4581   done


4600 
4601     if test "x$EXPR" = x; then
4602         if test "xexpr" = x; then
4603           PROG_NAME=expr
4604         else
4605           PROG_NAME=expr
4606         fi
4607         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4608 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4609         as_fn_error $? "Cannot continue" "$LINENO" 5
4610     fi
4611 
4612 
4613 
4614     for ac_prog in file
4615 do
4616   # Extract the first word of "$ac_prog", so it can be a program name with args.
4617 set dummy $ac_prog; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if ${ac_cv_path_FILE+:} false; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   case $FILE in
4624   [\\/]* | ?:[\\/]*)
4625   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4626   ;;
4627   *)
4628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633     for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640   done


4659 
4660     if test "x$FILE" = x; then
4661         if test "xfile" = x; then
4662           PROG_NAME=file
4663         else
4664           PROG_NAME=file
4665         fi
4666         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4667 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4668         as_fn_error $? "Cannot continue" "$LINENO" 5
4669     fi
4670 
4671 
4672 
4673     for ac_prog in find
4674 do
4675   # Extract the first word of "$ac_prog", so it can be a program name with args.
4676 set dummy $ac_prog; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_path_FIND+:} false; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682   case $FIND in
4683   [\\/]* | ?:[\\/]*)
4684   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4685   ;;
4686   *)
4687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692     for ac_exec_ext in '' $ac_executable_extensions; do
4693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696     break 2
4697   fi
4698 done
4699   done


4718 
4719     if test "x$FIND" = x; then
4720         if test "xfind" = x; then
4721           PROG_NAME=find
4722         else
4723           PROG_NAME=find
4724         fi
4725         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4726 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4727         as_fn_error $? "Cannot continue" "$LINENO" 5
4728     fi
4729 
4730 
4731 
4732     for ac_prog in head
4733 do
4734   # Extract the first word of "$ac_prog", so it can be a program name with args.
4735 set dummy $ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_path_HEAD+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   case $HEAD in
4742   [\\/]* | ?:[\\/]*)
4743   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4744   ;;
4745   *)
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758   done


4777 
4778     if test "x$HEAD" = x; then
4779         if test "xhead" = x; then
4780           PROG_NAME=head
4781         else
4782           PROG_NAME=head
4783         fi
4784         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4785 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4786         as_fn_error $? "Cannot continue" "$LINENO" 5
4787     fi
4788 
4789 
4790 
4791     for ac_prog in ln
4792 do
4793   # Extract the first word of "$ac_prog", so it can be a program name with args.
4794 set dummy $ac_prog; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if ${ac_cv_path_LN+:} false; then :
4798   $as_echo_n "(cached) " >&6
4799 else
4800   case $LN in
4801   [\\/]* | ?:[\\/]*)
4802   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4803   ;;
4804   *)
4805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808   IFS=$as_save_IFS
4809   test -z "$as_dir" && as_dir=.
4810     for ac_exec_ext in '' $ac_executable_extensions; do
4811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814     break 2
4815   fi
4816 done
4817   done


4836 
4837     if test "x$LN" = x; then
4838         if test "xln" = x; then
4839           PROG_NAME=ln
4840         else
4841           PROG_NAME=ln
4842         fi
4843         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4844 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4845         as_fn_error $? "Cannot continue" "$LINENO" 5
4846     fi
4847 
4848 
4849 
4850     for ac_prog in ls
4851 do
4852   # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_path_LS+:} false; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859   case $LS in
4860   [\\/]* | ?:[\\/]*)
4861   ac_cv_path_LS="$LS" # Let the user override the test with a path.
4862   ;;
4863   *)
4864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867   IFS=$as_save_IFS
4868   test -z "$as_dir" && as_dir=.
4869     for ac_exec_ext in '' $ac_executable_extensions; do
4870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873     break 2
4874   fi
4875 done
4876   done


4895 
4896     if test "x$LS" = x; then
4897         if test "xls" = x; then
4898           PROG_NAME=ls
4899         else
4900           PROG_NAME=ls
4901         fi
4902         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4903 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4904         as_fn_error $? "Cannot continue" "$LINENO" 5
4905     fi
4906 
4907 
4908 
4909     for ac_prog in mkdir
4910 do
4911   # Extract the first word of "$ac_prog", so it can be a program name with args.
4912 set dummy $ac_prog; ac_word=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if ${ac_cv_path_MKDIR+:} false; then :
4916   $as_echo_n "(cached) " >&6
4917 else
4918   case $MKDIR in
4919   [\\/]* | ?:[\\/]*)
4920   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4921   ;;
4922   *)
4923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926   IFS=$as_save_IFS
4927   test -z "$as_dir" && as_dir=.
4928     for ac_exec_ext in '' $ac_executable_extensions; do
4929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935   done


4954 
4955     if test "x$MKDIR" = x; then
4956         if test "xmkdir" = x; then
4957           PROG_NAME=mkdir
4958         else
4959           PROG_NAME=mkdir
4960         fi
4961         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4962 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4963         as_fn_error $? "Cannot continue" "$LINENO" 5
4964     fi
4965 
4966 
4967 
4968     for ac_prog in mktemp
4969 do
4970   # Extract the first word of "$ac_prog", so it can be a program name with args.
4971 set dummy $ac_prog; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if ${ac_cv_path_MKTEMP+:} false; then :
4975   $as_echo_n "(cached) " >&6
4976 else
4977   case $MKTEMP in
4978   [\\/]* | ?:[\\/]*)
4979   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
4980   ;;
4981   *)
4982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987     for ac_exec_ext in '' $ac_executable_extensions; do
4988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4989     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
4990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991     break 2
4992   fi
4993 done
4994   done


5013 
5014     if test "x$MKTEMP" = x; then
5015         if test "xmktemp" = x; then
5016           PROG_NAME=mktemp
5017         else
5018           PROG_NAME=mktemp
5019         fi
5020         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5021 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5022         as_fn_error $? "Cannot continue" "$LINENO" 5
5023     fi
5024 
5025 
5026 
5027     for ac_prog in mv
5028 do
5029   # Extract the first word of "$ac_prog", so it can be a program name with args.
5030 set dummy $ac_prog; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_path_MV+:} false; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   case $MV in
5037   [\\/]* | ?:[\\/]*)
5038   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5039   ;;
5040   *)
5041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046     for ac_exec_ext in '' $ac_executable_extensions; do
5047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053   done


5072 
5073     if test "x$MV" = x; then
5074         if test "xmv" = x; then
5075           PROG_NAME=mv
5076         else
5077           PROG_NAME=mv
5078         fi
5079         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5080 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5081         as_fn_error $? "Cannot continue" "$LINENO" 5
5082     fi
5083 
5084 
5085 
5086     for ac_prog in printf
5087 do
5088   # Extract the first word of "$ac_prog", so it can be a program name with args.
5089 set dummy $ac_prog; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_path_PRINTF+:} false; then :
5093   $as_echo_n "(cached) " >&6
5094 else
5095   case $PRINTF in
5096   [\\/]* | ?:[\\/]*)
5097   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5098   ;;
5099   *)
5100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105     for ac_exec_ext in '' $ac_executable_extensions; do
5106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112   done


5131 
5132     if test "x$PRINTF" = x; then
5133         if test "xprintf" = x; then
5134           PROG_NAME=printf
5135         else
5136           PROG_NAME=printf
5137         fi
5138         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5139 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5140         as_fn_error $? "Cannot continue" "$LINENO" 5
5141     fi
5142 
5143 
5144 
5145     for ac_prog in pwd
5146 do
5147   # Extract the first word of "$ac_prog", so it can be a program name with args.
5148 set dummy $ac_prog; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_path_THEPWDCMD+:} false; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   case $THEPWDCMD in
5155   [\\/]* | ?:[\\/]*)
5156   ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path.
5157   ;;
5158   *)
5159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162   IFS=$as_save_IFS
5163   test -z "$as_dir" && as_dir=.
5164     for ac_exec_ext in '' $ac_executable_extensions; do
5165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166     ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext"
5167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168     break 2
5169   fi
5170 done
5171   done


5190 
5191     if test "x$THEPWDCMD" = x; then
5192         if test "xpwd" = x; then
5193           PROG_NAME=thepwdcmd
5194         else
5195           PROG_NAME=pwd
5196         fi
5197         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5198 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5199         as_fn_error $? "Cannot continue" "$LINENO" 5
5200     fi
5201 
5202 
5203 
5204     for ac_prog in rm
5205 do
5206   # Extract the first word of "$ac_prog", so it can be a program name with args.
5207 set dummy $ac_prog; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if ${ac_cv_path_RM+:} false; then :
5211   $as_echo_n "(cached) " >&6
5212 else
5213   case $RM in
5214   [\\/]* | ?:[\\/]*)
5215   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5216   ;;
5217   *)
5218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223     for ac_exec_ext in '' $ac_executable_extensions; do
5224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230   done


5249 
5250     if test "x$RM" = x; then
5251         if test "xrm" = x; then
5252           PROG_NAME=rm
5253         else
5254           PROG_NAME=rm
5255         fi
5256         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5257 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5258         as_fn_error $? "Cannot continue" "$LINENO" 5
5259     fi
5260 
5261 
5262 
5263     for ac_prog in sh
5264 do
5265   # Extract the first word of "$ac_prog", so it can be a program name with args.
5266 set dummy $ac_prog; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if ${ac_cv_path_SH+:} false; then :
5270   $as_echo_n "(cached) " >&6
5271 else
5272   case $SH in
5273   [\\/]* | ?:[\\/]*)
5274   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5275   ;;
5276   *)
5277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_exec_ext in '' $ac_executable_extensions; do
5283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289   done


5308 
5309     if test "x$SH" = x; then
5310         if test "xsh" = x; then
5311           PROG_NAME=sh
5312         else
5313           PROG_NAME=sh
5314         fi
5315         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5316 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5317         as_fn_error $? "Cannot continue" "$LINENO" 5
5318     fi
5319 
5320 
5321 
5322     for ac_prog in sort
5323 do
5324   # Extract the first word of "$ac_prog", so it can be a program name with args.
5325 set dummy $ac_prog; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_path_SORT+:} false; then :
5329   $as_echo_n "(cached) " >&6
5330 else
5331   case $SORT in
5332   [\\/]* | ?:[\\/]*)
5333   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5334   ;;
5335   *)
5336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5338 do
5339   IFS=$as_save_IFS
5340   test -z "$as_dir" && as_dir=.
5341     for ac_exec_ext in '' $ac_executable_extensions; do
5342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345     break 2
5346   fi
5347 done
5348   done


5367 
5368     if test "x$SORT" = x; then
5369         if test "xsort" = x; then
5370           PROG_NAME=sort
5371         else
5372           PROG_NAME=sort
5373         fi
5374         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5375 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5376         as_fn_error $? "Cannot continue" "$LINENO" 5
5377     fi
5378 
5379 
5380 
5381     for ac_prog in tail
5382 do
5383   # Extract the first word of "$ac_prog", so it can be a program name with args.
5384 set dummy $ac_prog; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_path_TAIL+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   case $TAIL in
5391   [\\/]* | ?:[\\/]*)
5392   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5393   ;;
5394   *)
5395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400     for ac_exec_ext in '' $ac_executable_extensions; do
5401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404     break 2
5405   fi
5406 done
5407   done


5426 
5427     if test "x$TAIL" = x; then
5428         if test "xtail" = x; then
5429           PROG_NAME=tail
5430         else
5431           PROG_NAME=tail
5432         fi
5433         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5434 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5435         as_fn_error $? "Cannot continue" "$LINENO" 5
5436     fi
5437 
5438 
5439 
5440     for ac_prog in tar
5441 do
5442   # Extract the first word of "$ac_prog", so it can be a program name with args.
5443 set dummy $ac_prog; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if ${ac_cv_path_TAR+:} false; then :
5447   $as_echo_n "(cached) " >&6
5448 else
5449   case $TAR in
5450   [\\/]* | ?:[\\/]*)
5451   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5452   ;;
5453   *)
5454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457   IFS=$as_save_IFS
5458   test -z "$as_dir" && as_dir=.
5459     for ac_exec_ext in '' $ac_executable_extensions; do
5460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463     break 2
5464   fi
5465 done
5466   done


5485 
5486     if test "x$TAR" = x; then
5487         if test "xtar" = x; then
5488           PROG_NAME=tar
5489         else
5490           PROG_NAME=tar
5491         fi
5492         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5493 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5494         as_fn_error $? "Cannot continue" "$LINENO" 5
5495     fi
5496 
5497 
5498 
5499     for ac_prog in tee
5500 do
5501   # Extract the first word of "$ac_prog", so it can be a program name with args.
5502 set dummy $ac_prog; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if ${ac_cv_path_TEE+:} false; then :
5506   $as_echo_n "(cached) " >&6
5507 else
5508   case $TEE in
5509   [\\/]* | ?:[\\/]*)
5510   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5511   ;;
5512   *)
5513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518     for ac_exec_ext in '' $ac_executable_extensions; do
5519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525   done


5544 
5545     if test "x$TEE" = x; then
5546         if test "xtee" = x; then
5547           PROG_NAME=tee
5548         else
5549           PROG_NAME=tee
5550         fi
5551         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5552 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5553         as_fn_error $? "Cannot continue" "$LINENO" 5
5554     fi
5555 
5556 
5557 
5558     for ac_prog in touch
5559 do
5560   # Extract the first word of "$ac_prog", so it can be a program name with args.
5561 set dummy $ac_prog; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_path_TOUCH+:} false; then :
5565   $as_echo_n "(cached) " >&6
5566 else
5567   case $TOUCH in
5568   [\\/]* | ?:[\\/]*)
5569   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5570   ;;
5571   *)
5572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577     for ac_exec_ext in '' $ac_executable_extensions; do
5578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584   done


5603 
5604     if test "x$TOUCH" = x; then
5605         if test "xtouch" = x; then
5606           PROG_NAME=touch
5607         else
5608           PROG_NAME=touch
5609         fi
5610         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5611 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5612         as_fn_error $? "Cannot continue" "$LINENO" 5
5613     fi
5614 
5615 
5616 
5617     for ac_prog in tr
5618 do
5619   # Extract the first word of "$ac_prog", so it can be a program name with args.
5620 set dummy $ac_prog; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_path_TR+:} false; then :
5624   $as_echo_n "(cached) " >&6
5625 else
5626   case $TR in
5627   [\\/]* | ?:[\\/]*)
5628   ac_cv_path_TR="$TR" # Let the user override the test with a path.
5629   ;;
5630   *)
5631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634   IFS=$as_save_IFS
5635   test -z "$as_dir" && as_dir=.
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5638     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640     break 2
5641   fi
5642 done
5643   done


5662 
5663     if test "x$TR" = x; then
5664         if test "xtr" = x; then
5665           PROG_NAME=tr
5666         else
5667           PROG_NAME=tr
5668         fi
5669         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5670 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5671         as_fn_error $? "Cannot continue" "$LINENO" 5
5672     fi
5673 
5674 
5675 
5676     for ac_prog in uname
5677 do
5678   # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_path_UNAME+:} false; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685   case $UNAME in
5686   [\\/]* | ?:[\\/]*)
5687   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5688   ;;
5689   *)
5690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693   IFS=$as_save_IFS
5694   test -z "$as_dir" && as_dir=.
5695     for ac_exec_ext in '' $ac_executable_extensions; do
5696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5697     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699     break 2
5700   fi
5701 done
5702   done


5721 
5722     if test "x$UNAME" = x; then
5723         if test "xuname" = x; then
5724           PROG_NAME=uname
5725         else
5726           PROG_NAME=uname
5727         fi
5728         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5729 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5730         as_fn_error $? "Cannot continue" "$LINENO" 5
5731     fi
5732 
5733 
5734 
5735     for ac_prog in uniq
5736 do
5737   # Extract the first word of "$ac_prog", so it can be a program name with args.
5738 set dummy $ac_prog; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if ${ac_cv_path_UNIQ+:} false; then :
5742   $as_echo_n "(cached) " >&6
5743 else
5744   case $UNIQ in
5745   [\\/]* | ?:[\\/]*)
5746   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5747   ;;
5748   *)
5749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754     for ac_exec_ext in '' $ac_executable_extensions; do
5755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5756     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761   done


5780 
5781     if test "x$UNIQ" = x; then
5782         if test "xuniq" = x; then
5783           PROG_NAME=uniq
5784         else
5785           PROG_NAME=uniq
5786         fi
5787         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5788 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5789         as_fn_error $? "Cannot continue" "$LINENO" 5
5790     fi
5791 
5792 
5793 
5794     for ac_prog in wc
5795 do
5796   # Extract the first word of "$ac_prog", so it can be a program name with args.
5797 set dummy $ac_prog; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if ${ac_cv_path_WC+:} false; then :
5801   $as_echo_n "(cached) " >&6
5802 else
5803   case $WC in
5804   [\\/]* | ?:[\\/]*)
5805   ac_cv_path_WC="$WC" # Let the user override the test with a path.
5806   ;;
5807   *)
5808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811   IFS=$as_save_IFS
5812   test -z "$as_dir" && as_dir=.
5813     for ac_exec_ext in '' $ac_executable_extensions; do
5814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817     break 2
5818   fi
5819 done
5820   done


5839 
5840     if test "x$WC" = x; then
5841         if test "xwc" = x; then
5842           PROG_NAME=wc
5843         else
5844           PROG_NAME=wc
5845         fi
5846         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5847 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5848         as_fn_error $? "Cannot continue" "$LINENO" 5
5849     fi
5850 
5851 
5852 
5853     for ac_prog in which
5854 do
5855   # Extract the first word of "$ac_prog", so it can be a program name with args.
5856 set dummy $ac_prog; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_path_WHICH+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862   case $WHICH in
5863   [\\/]* | ?:[\\/]*)
5864   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5865   ;;
5866   *)
5867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870   IFS=$as_save_IFS
5871   test -z "$as_dir" && as_dir=.
5872     for ac_exec_ext in '' $ac_executable_extensions; do
5873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876     break 2
5877   fi
5878 done
5879   done


5898 
5899     if test "x$WHICH" = x; then
5900         if test "xwhich" = x; then
5901           PROG_NAME=which
5902         else
5903           PROG_NAME=which
5904         fi
5905         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5906 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5907         as_fn_error $? "Cannot continue" "$LINENO" 5
5908     fi
5909 
5910 
5911 
5912     for ac_prog in xargs
5913 do
5914   # Extract the first word of "$ac_prog", so it can be a program name with args.
5915 set dummy $ac_prog; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_path_XARGS+:} false; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   case $XARGS in
5922   [\\/]* | ?:[\\/]*)
5923   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5924   ;;
5925   *)
5926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929   IFS=$as_save_IFS
5930   test -z "$as_dir" && as_dir=.
5931     for ac_exec_ext in '' $ac_executable_extensions; do
5932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935     break 2
5936   fi
5937 done
5938   done


5958     if test "x$XARGS" = x; then
5959         if test "xxargs" = x; then
5960           PROG_NAME=xargs
5961         else
5962           PROG_NAME=xargs
5963         fi
5964         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5965 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5966         as_fn_error $? "Cannot continue" "$LINENO" 5
5967     fi
5968 
5969 
5970 
5971 # Then required tools that require some special treatment.
5972 for ac_prog in gawk mawk nawk awk
5973 do
5974   # Extract the first word of "$ac_prog", so it can be a program name with args.
5975 set dummy $ac_prog; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if ${ac_cv_prog_AWK+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   if test -n "$AWK"; then
5982   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987   IFS=$as_save_IFS
5988   test -z "$as_dir" && as_dir=.
5989     for ac_exec_ext in '' $ac_executable_extensions; do
5990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5991     ac_cv_prog_AWK="$ac_prog"
5992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993     break 2
5994   fi
5995 done
5996   done
5997 IFS=$as_save_IFS
5998 


6008 fi
6009 
6010 
6011   test -n "$AWK" && break
6012 done
6013 
6014 
6015     if test "x$AWK" = x; then
6016         if test "x" = x; then
6017           PROG_NAME=awk
6018         else
6019           PROG_NAME=
6020         fi
6021         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6022 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6023         as_fn_error $? "Cannot continue" "$LINENO" 5
6024     fi
6025 
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6027 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6028 if ${ac_cv_path_GREP+:} false; then :
6029   $as_echo_n "(cached) " >&6
6030 else
6031   if test -z "$GREP"; then
6032   ac_path_GREP_found=false
6033   # Loop through the user's path and test for each of PROGNAME-LIST
6034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039     for ac_prog in grep ggrep; do
6040     for ac_exec_ext in '' $ac_executable_extensions; do
6041       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6042       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6043 # Check for GNU ac_path_GREP and select it if it is found.
6044   # Check for GNU $ac_path_GREP
6045 case `"$ac_path_GREP" --version 2>&1` in
6046 *GNU*)
6047   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6048 *)


6083 fi
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6085 $as_echo "$ac_cv_path_GREP" >&6; }
6086  GREP="$ac_cv_path_GREP"
6087 
6088 
6089 
6090     if test "x$GREP" = x; then
6091         if test "x" = x; then
6092           PROG_NAME=grep
6093         else
6094           PROG_NAME=
6095         fi
6096         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6097 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6098         as_fn_error $? "Cannot continue" "$LINENO" 5
6099     fi
6100 
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6102 $as_echo_n "checking for egrep... " >&6; }
6103 if ${ac_cv_path_EGREP+:} false; then :
6104   $as_echo_n "(cached) " >&6
6105 else
6106   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6107    then ac_cv_path_EGREP="$GREP -E"
6108    else
6109      if test -z "$EGREP"; then
6110   ac_path_EGREP_found=false
6111   # Loop through the user's path and test for each of PROGNAME-LIST
6112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6114 do
6115   IFS=$as_save_IFS
6116   test -z "$as_dir" && as_dir=.
6117     for ac_prog in egrep; do
6118     for ac_exec_ext in '' $ac_executable_extensions; do
6119       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6120       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6121 # Check for GNU ac_path_EGREP and select it if it is found.
6122   # Check for GNU $ac_path_EGREP
6123 case `"$ac_path_EGREP" --version 2>&1` in


6162 fi
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6164 $as_echo "$ac_cv_path_EGREP" >&6; }
6165  EGREP="$ac_cv_path_EGREP"
6166 
6167 
6168 
6169     if test "x$EGREP" = x; then
6170         if test "x" = x; then
6171           PROG_NAME=egrep
6172         else
6173           PROG_NAME=
6174         fi
6175         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6176 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6177         as_fn_error $? "Cannot continue" "$LINENO" 5
6178     fi
6179 
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6181 $as_echo_n "checking for fgrep... " >&6; }
6182 if ${ac_cv_path_FGREP+:} false; then :
6183   $as_echo_n "(cached) " >&6
6184 else
6185   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6186    then ac_cv_path_FGREP="$GREP -F"
6187    else
6188      if test -z "$FGREP"; then
6189   ac_path_FGREP_found=false
6190   # Loop through the user's path and test for each of PROGNAME-LIST
6191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196     for ac_prog in fgrep; do
6197     for ac_exec_ext in '' $ac_executable_extensions; do
6198       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6199       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6200 # Check for GNU ac_path_FGREP and select it if it is found.
6201   # Check for GNU $ac_path_FGREP
6202 case `"$ac_path_FGREP" --version 2>&1` in


6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6243 $as_echo "$ac_cv_path_FGREP" >&6; }
6244  FGREP="$ac_cv_path_FGREP"
6245 
6246 
6247 
6248     if test "x$FGREP" = x; then
6249         if test "x" = x; then
6250           PROG_NAME=fgrep
6251         else
6252           PROG_NAME=
6253         fi
6254         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6255 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6256         as_fn_error $? "Cannot continue" "$LINENO" 5
6257     fi
6258 
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6260 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6261 if ${ac_cv_path_SED+:} false; then :
6262   $as_echo_n "(cached) " >&6
6263 else
6264             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6265      for ac_i in 1 2 3 4 5 6 7; do
6266        ac_script="$ac_script$as_nl$ac_script"
6267      done
6268      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6269      { ac_script=; unset ac_script;}
6270      if test -z "$SED"; then
6271   ac_path_SED_found=false
6272   # Loop through the user's path and test for each of PROGNAME-LIST
6273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278     for ac_prog in sed gsed; do
6279     for ac_exec_ext in '' $ac_executable_extensions; do
6280       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6281       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue


6327 
6328 
6329     if test "x$SED" = x; then
6330         if test "x" = x; then
6331           PROG_NAME=sed
6332         else
6333           PROG_NAME=
6334         fi
6335         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6336 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6337         as_fn_error $? "Cannot continue" "$LINENO" 5
6338     fi
6339 
6340 
6341 for ac_prog in nawk gawk awk
6342 do
6343   # Extract the first word of "$ac_prog", so it can be a program name with args.
6344 set dummy $ac_prog; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if ${ac_cv_path_NAWK+:} false; then :
6348   $as_echo_n "(cached) " >&6
6349 else
6350   case $NAWK in
6351   [\\/]* | ?:[\\/]*)
6352   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
6353   ;;
6354   *)
6355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360     for ac_exec_ext in '' $ac_executable_extensions; do
6361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
6363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364     break 2
6365   fi
6366 done
6367   done


6387     if test "x$NAWK" = x; then
6388         if test "x" = x; then
6389           PROG_NAME=nawk
6390         else
6391           PROG_NAME=
6392         fi
6393         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6394 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6395         as_fn_error $? "Cannot continue" "$LINENO" 5
6396     fi
6397 
6398 
6399 # Always force rm.
6400 RM="$RM -f"
6401 
6402 # These are not required on all platforms
6403 # Extract the first word of "cygpath", so it can be a program name with args.
6404 set dummy cygpath; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_path_CYGPATH+:} false; then :
6408   $as_echo_n "(cached) " >&6
6409 else
6410   case $CYGPATH in
6411   [\\/]* | ?:[\\/]*)
6412   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6413   ;;
6414   *)
6415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418   IFS=$as_save_IFS
6419   test -z "$as_dir" && as_dir=.
6420     for ac_exec_ext in '' $ac_executable_extensions; do
6421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6422     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424     break 2
6425   fi
6426 done
6427   done
6428 IFS=$as_save_IFS
6429 
6430   ;;
6431 esac
6432 fi
6433 CYGPATH=$ac_cv_path_CYGPATH
6434 if test -n "$CYGPATH"; then
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6436 $as_echo "$CYGPATH" >&6; }
6437 else
6438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6440 fi
6441 
6442 
6443 # Extract the first word of "readlink", so it can be a program name with args.
6444 set dummy readlink; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_path_READLINK+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   case $READLINK in
6451   [\\/]* | ?:[\\/]*)
6452   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6453   ;;
6454   *)
6455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460     for ac_exec_ext in '' $ac_executable_extensions; do
6461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467   done
6468 IFS=$as_save_IFS
6469 
6470   ;;
6471 esac
6472 fi
6473 READLINK=$ac_cv_path_READLINK
6474 if test -n "$READLINK"; then
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6476 $as_echo "$READLINK" >&6; }
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481 
6482 
6483 # Extract the first word of "df", so it can be a program name with args.
6484 set dummy df; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_path_DF+:} false; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   case $DF in
6491   [\\/]* | ?:[\\/]*)
6492   ac_cv_path_DF="$DF" # Let the user override the test with a path.
6493   ;;
6494   *)
6495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498   IFS=$as_save_IFS
6499   test -z "$as_dir" && as_dir=.
6500     for ac_exec_ext in '' $ac_executable_extensions; do
6501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504     break 2
6505   fi
6506 done
6507   done
6508 IFS=$as_save_IFS
6509 
6510   ;;
6511 esac
6512 fi
6513 DF=$ac_cv_path_DF
6514 if test -n "$DF"; then
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6516 $as_echo "$DF" >&6; }
6517 else
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521 
6522 
6523 # Extract the first word of "SetFile", so it can be a program name with args.
6524 set dummy SetFile; ac_word=$2
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 $as_echo_n "checking for $ac_word... " >&6; }
6527 if ${ac_cv_path_SETFILE+:} false; then :
6528   $as_echo_n "(cached) " >&6
6529 else
6530   case $SETFILE in
6531   [\\/]* | ?:[\\/]*)
6532   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6533   ;;
6534   *)
6535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538   IFS=$as_save_IFS
6539   test -z "$as_dir" && as_dir=.
6540     for ac_exec_ext in '' $ac_executable_extensions; do
6541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544     break 2
6545   fi
6546 done
6547   done


6553 SETFILE=$ac_cv_path_SETFILE
6554 if test -n "$SETFILE"; then
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6556 $as_echo "$SETFILE" >&6; }
6557 else
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561 
6562 
6563 
6564 
6565 # Now we can determine OpenJDK build and target platforms. This is required to
6566 # have early on.
6567 # Make sure we can run config.sub.
6568 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6569   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6570 
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6572 $as_echo_n "checking build system type... " >&6; }
6573 if ${ac_cv_build+:} false; then :
6574   $as_echo_n "(cached) " >&6
6575 else
6576   ac_build_alias=$build_alias
6577 test "x$ac_build_alias" = x &&
6578   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6579 test "x$ac_build_alias" = x &&
6580   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6581 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6582   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6583 
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6586 $as_echo "$ac_cv_build" >&6; }
6587 case $ac_cv_build in
6588 *-*-*) ;;
6589 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6590 esac
6591 build=$ac_cv_build
6592 ac_save_IFS=$IFS; IFS='-'
6593 set x $ac_cv_build
6594 shift
6595 build_cpu=$1
6596 build_vendor=$2
6597 shift; shift
6598 # Remember, the first character of IFS is used to create $*,
6599 # except with old shells:
6600 build_os=$*
6601 IFS=$ac_save_IFS
6602 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6603 
6604 
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6606 $as_echo_n "checking host system type... " >&6; }
6607 if ${ac_cv_host+:} false; then :
6608   $as_echo_n "(cached) " >&6
6609 else
6610   if test "x$host_alias" = x; then
6611   ac_cv_host=$ac_cv_build
6612 else
6613   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6614     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6615 fi
6616 
6617 fi
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6619 $as_echo "$ac_cv_host" >&6; }
6620 case $ac_cv_host in
6621 *-*-*) ;;
6622 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6623 esac
6624 host=$ac_cv_host
6625 ac_save_IFS=$IFS; IFS='-'
6626 set x $ac_cv_host
6627 shift
6628 host_cpu=$1
6629 host_vendor=$2
6630 shift; shift
6631 # Remember, the first character of IFS is used to create $*,
6632 # except with old shells:
6633 host_os=$*
6634 IFS=$ac_save_IFS
6635 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6636 
6637 
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6639 $as_echo_n "checking target system type... " >&6; }
6640 if ${ac_cv_target+:} false; then :
6641   $as_echo_n "(cached) " >&6
6642 else
6643   if test "x$target_alias" = x; then
6644   ac_cv_target=$ac_cv_host
6645 else
6646   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6647     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6648 fi
6649 
6650 fi
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6652 $as_echo "$ac_cv_target" >&6; }
6653 case $ac_cv_target in
6654 *-*-*) ;;
6655 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6656 esac
6657 target=$ac_cv_target
6658 ac_save_IFS=$IFS; IFS='-'
6659 set x $ac_cv_target
6660 shift
6661 target_cpu=$1
6662 target_vendor=$2
6663 shift; shift
6664 # Remember, the first character of IFS is used to create $*,
6665 # except with old shells:
6666 target_os=$*
6667 IFS=$ac_save_IFS
6668 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6669 
6670 
6671 # The aliases save the names the user supplied, while $host etc.
6672 # will get canonicalized.
6673 test -n "$target_alias" &&
6674   test "$program_prefix$program_suffix$program_transform_name" = \
6675     NONENONEs,x,x, &&


8101 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8102 
8103 # The generated Makefile knows where the spec.gmk is and where the source is.
8104 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8105 # which will look for generated configurations
8106 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8107 
8108 
8109 # Save the arguments given to us
8110 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8111 
8112 
8113 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8114 
8115     for ac_prog in apt-get yum port pkgutil pkgadd
8116 do
8117   # Extract the first word of "$ac_prog", so it can be a program name with args.
8118 set dummy $ac_prog; ac_word=$2
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8120 $as_echo_n "checking for $ac_word... " >&6; }
8121 if ${ac_cv_prog_PKGHANDLER+:} false; then :
8122   $as_echo_n "(cached) " >&6
8123 else
8124   if test -n "$PKGHANDLER"; then
8125   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
8126 else
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8129 do
8130   IFS=$as_save_IFS
8131   test -z "$as_dir" && as_dir=.
8132     for ac_exec_ext in '' $ac_executable_extensions; do
8133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8134     ac_cv_prog_PKGHANDLER="$ac_prog"
8135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136     break 2
8137   fi
8138 done
8139   done
8140 IFS=$as_save_IFS
8141 


8466       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8467 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8468     fi
8469 
8470         fi
8471       fi
8472     fi
8473   fi
8474 
8475     if test "x$FOUND_MAKE" = x; then
8476       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
8477     fi
8478   else
8479     # Try our hardest to locate a correct version of GNU make
8480     for ac_prog in gmake
8481 do
8482   # Extract the first word of "$ac_prog", so it can be a program name with args.
8483 set dummy $ac_prog; ac_word=$2
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 $as_echo_n "checking for $ac_word... " >&6; }
8486 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
8487   $as_echo_n "(cached) " >&6
8488 else
8489   case $CHECK_GMAKE in
8490   [\\/]* | ?:[\\/]*)
8491   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
8492   ;;
8493   *)
8494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8496 do
8497   IFS=$as_save_IFS
8498   test -z "$as_dir" && as_dir=.
8499     for ac_exec_ext in '' $ac_executable_extensions; do
8500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8501     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
8502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503     break 2
8504   fi
8505 done
8506   done


8820 
8821   if test "x$complete" != "x$new_complete"; then
8822       FOUND_MAKE="$new_complete"
8823       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8824 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8825     fi
8826 
8827         fi
8828       fi
8829     fi
8830   fi
8831 
8832 
8833     if test "x$FOUND_MAKE" = x; then
8834       for ac_prog in make
8835 do
8836   # Extract the first word of "$ac_prog", so it can be a program name with args.
8837 set dummy $ac_prog; ac_word=$2
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839 $as_echo_n "checking for $ac_word... " >&6; }
8840 if ${ac_cv_path_CHECK_MAKE+:} false; then :
8841   $as_echo_n "(cached) " >&6
8842 else
8843   case $CHECK_MAKE in
8844   [\\/]* | ?:[\\/]*)
8845   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
8846   ;;
8847   *)
8848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 for as_dir in $PATH
8850 do
8851   IFS=$as_save_IFS
8852   test -z "$as_dir" && as_dir=.
8853     for ac_exec_ext in '' $ac_executable_extensions; do
8854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8855     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
8856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857     break 2
8858   fi
8859 done
8860   done


9179     fi
9180 
9181         fi
9182       fi
9183     fi
9184   fi
9185 
9186     fi
9187 
9188     if test "x$FOUND_MAKE" = x; then
9189       if test "x$TOOLS_DIR" != x; then
9190         # We have a tools-dir, check that as well before giving up.
9191         OLD_PATH=$PATH
9192         PATH=$TOOLS_DIR:$PATH
9193         for ac_prog in gmake
9194 do
9195   # Extract the first word of "$ac_prog", so it can be a program name with args.
9196 set dummy $ac_prog; ac_word=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
9200   $as_echo_n "(cached) " >&6
9201 else
9202   case $CHECK_TOOLSDIR_GMAKE in
9203   [\\/]* | ?:[\\/]*)
9204   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
9205   ;;
9206   *)
9207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 for as_dir in $PATH
9209 do
9210   IFS=$as_save_IFS
9211   test -z "$as_dir" && as_dir=.
9212     for ac_exec_ext in '' $ac_executable_extensions; do
9213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9214     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9216     break 2
9217   fi
9218 done
9219   done


9532       fi
9533 
9534   if test "x$complete" != "x$new_complete"; then
9535       FOUND_MAKE="$new_complete"
9536       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9537 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9538     fi
9539 
9540         fi
9541       fi
9542     fi
9543   fi
9544 
9545         if test "x$FOUND_MAKE" = x; then
9546           for ac_prog in make
9547 do
9548   # Extract the first word of "$ac_prog", so it can be a program name with args.
9549 set dummy $ac_prog; ac_word=$2
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
9553   $as_echo_n "(cached) " >&6
9554 else
9555   case $CHECK_TOOLSDIR_MAKE in
9556   [\\/]* | ?:[\\/]*)
9557   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
9558   ;;
9559   *)
9560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561 for as_dir in $PATH
9562 do
9563   IFS=$as_save_IFS
9564   test -z "$as_dir" && as_dir=.
9565     for ac_exec_ext in '' $ac_executable_extensions; do
9566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9567     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
9568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9569     break 2
9570   fi
9571 done
9572   done


9928         FIND_DELETE="-exec rm \{\} \+"
9929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9931     else
9932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9933 $as_echo "yes" >&6; }
9934     fi
9935     rmdir $DELETEDIR
9936 
9937 
9938 
9939 # These tools might not be installed by default,
9940 # need hint on how to install them.
9941 
9942     for ac_prog in unzip
9943 do
9944   # Extract the first word of "$ac_prog", so it can be a program name with args.
9945 set dummy $ac_prog; ac_word=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if ${ac_cv_path_UNZIP+:} false; then :
9949   $as_echo_n "(cached) " >&6
9950 else
9951   case $UNZIP in
9952   [\\/]* | ?:[\\/]*)
9953   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
9954   ;;
9955   *)
9956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 for as_dir in $PATH
9958 do
9959   IFS=$as_save_IFS
9960   test -z "$as_dir" && as_dir=.
9961     for ac_exec_ext in '' $ac_executable_extensions; do
9962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9963     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
9964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965     break 2
9966   fi
9967 done
9968   done


9987 
9988     if test "x$UNZIP" = x; then
9989         if test "xunzip" = x; then
9990           PROG_NAME=unzip
9991         else
9992           PROG_NAME=unzip
9993         fi
9994         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
9995 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
9996         as_fn_error $? "Cannot continue" "$LINENO" 5
9997     fi
9998 
9999 
10000 
10001     for ac_prog in zip
10002 do
10003   # Extract the first word of "$ac_prog", so it can be a program name with args.
10004 set dummy $ac_prog; ac_word=$2
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10006 $as_echo_n "checking for $ac_word... " >&6; }
10007 if ${ac_cv_path_ZIP+:} false; then :
10008   $as_echo_n "(cached) " >&6
10009 else
10010   case $ZIP in
10011   [\\/]* | ?:[\\/]*)
10012   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
10013   ;;
10014   *)
10015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016 for as_dir in $PATH
10017 do
10018   IFS=$as_save_IFS
10019   test -z "$as_dir" && as_dir=.
10020     for ac_exec_ext in '' $ac_executable_extensions; do
10021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10022     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
10023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10024     break 2
10025   fi
10026 done
10027   done


10046 
10047     if test "x$ZIP" = x; then
10048         if test "xzip" = x; then
10049           PROG_NAME=zip
10050         else
10051           PROG_NAME=zip
10052         fi
10053         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10054 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10055         as_fn_error $? "Cannot continue" "$LINENO" 5
10056     fi
10057 
10058 
10059 
10060 # Non-required basic tools
10061 
10062 # Extract the first word of "ldd", so it can be a program name with args.
10063 set dummy ldd; ac_word=$2
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10065 $as_echo_n "checking for $ac_word... " >&6; }
10066 if ${ac_cv_path_LDD+:} false; then :
10067   $as_echo_n "(cached) " >&6
10068 else
10069   case $LDD in
10070   [\\/]* | ?:[\\/]*)
10071   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10072   ;;
10073   *)
10074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10076 do
10077   IFS=$as_save_IFS
10078   test -z "$as_dir" && as_dir=.
10079     for ac_exec_ext in '' $ac_executable_extensions; do
10080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10081     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083     break 2
10084   fi
10085 done
10086   done


10092 LDD=$ac_cv_path_LDD
10093 if test -n "$LDD"; then
10094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10095 $as_echo "$LDD" >&6; }
10096 else
10097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10099 fi
10100 
10101 
10102 if test "x$LDD" = "x"; then
10103     # List shared lib dependencies is used for
10104     # debug output and checking for forbidden dependencies.
10105     # We can build without it.
10106     LDD="true"
10107 fi
10108 # Extract the first word of "otool", so it can be a program name with args.
10109 set dummy otool; ac_word=$2
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 $as_echo_n "checking for $ac_word... " >&6; }
10112 if ${ac_cv_path_OTOOL+:} false; then :
10113   $as_echo_n "(cached) " >&6
10114 else
10115   case $OTOOL in
10116   [\\/]* | ?:[\\/]*)
10117   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10118   ;;
10119   *)
10120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in $PATH
10122 do
10123   IFS=$as_save_IFS
10124   test -z "$as_dir" && as_dir=.
10125     for ac_exec_ext in '' $ac_executable_extensions; do
10126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10127     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10129     break 2
10130   fi
10131 done
10132   done


10137 fi
10138 OTOOL=$ac_cv_path_OTOOL
10139 if test -n "$OTOOL"; then
10140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10141 $as_echo "$OTOOL" >&6; }
10142 else
10143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144 $as_echo "no" >&6; }
10145 fi
10146 
10147 
10148 if test "x$OTOOL" = "x"; then
10149    OTOOL="true"
10150 fi
10151 for ac_prog in readelf greadelf
10152 do
10153   # Extract the first word of "$ac_prog", so it can be a program name with args.
10154 set dummy $ac_prog; ac_word=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if ${ac_cv_path_READELF+:} false; then :
10158   $as_echo_n "(cached) " >&6
10159 else
10160   case $READELF in
10161   [\\/]* | ?:[\\/]*)
10162   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10163   ;;
10164   *)
10165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166 for as_dir in $PATH
10167 do
10168   IFS=$as_save_IFS
10169   test -z "$as_dir" && as_dir=.
10170     for ac_exec_ext in '' $ac_executable_extensions; do
10171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10172     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
10173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10174     break 2
10175   fi
10176 done
10177   done


10180   ;;
10181 esac
10182 fi
10183 READELF=$ac_cv_path_READELF
10184 if test -n "$READELF"; then
10185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10186 $as_echo "$READELF" >&6; }
10187 else
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10190 fi
10191 
10192 
10193   test -n "$READELF" && break
10194 done
10195 
10196 # Extract the first word of "hg", so it can be a program name with args.
10197 set dummy hg; ac_word=$2
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if ${ac_cv_path_HG+:} false; then :
10201   $as_echo_n "(cached) " >&6
10202 else
10203   case $HG in
10204   [\\/]* | ?:[\\/]*)
10205   ac_cv_path_HG="$HG" # Let the user override the test with a path.
10206   ;;
10207   *)
10208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10210 do
10211   IFS=$as_save_IFS
10212   test -z "$as_dir" && as_dir=.
10213     for ac_exec_ext in '' $ac_executable_extensions; do
10214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10215     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
10216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217     break 2
10218   fi
10219 done
10220   done
10221 IFS=$as_save_IFS
10222 
10223   ;;
10224 esac
10225 fi
10226 HG=$ac_cv_path_HG
10227 if test -n "$HG"; then
10228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
10229 $as_echo "$HG" >&6; }
10230 else
10231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10233 fi
10234 
10235 
10236 # Extract the first word of "stat", so it can be a program name with args.
10237 set dummy stat; ac_word=$2
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239 $as_echo_n "checking for $ac_word... " >&6; }
10240 if ${ac_cv_path_STAT+:} false; then :
10241   $as_echo_n "(cached) " >&6
10242 else
10243   case $STAT in
10244   [\\/]* | ?:[\\/]*)
10245   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
10246   ;;
10247   *)
10248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249 for as_dir in $PATH
10250 do
10251   IFS=$as_save_IFS
10252   test -z "$as_dir" && as_dir=.
10253     for ac_exec_ext in '' $ac_executable_extensions; do
10254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10255     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
10256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10257     break 2
10258   fi
10259 done
10260   done
10261 IFS=$as_save_IFS
10262 
10263   ;;
10264 esac
10265 fi
10266 STAT=$ac_cv_path_STAT
10267 if test -n "$STAT"; then
10268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
10269 $as_echo "$STAT" >&6; }
10270 else
10271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272 $as_echo "no" >&6; }
10273 fi
10274 
10275 
10276 # Extract the first word of "time", so it can be a program name with args.
10277 set dummy time; ac_word=$2
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 $as_echo_n "checking for $ac_word... " >&6; }
10280 if ${ac_cv_path_TIME+:} false; then :
10281   $as_echo_n "(cached) " >&6
10282 else
10283   case $TIME in
10284   [\\/]* | ?:[\\/]*)
10285   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10286   ;;
10287   *)
10288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10290 do
10291   IFS=$as_save_IFS
10292   test -z "$as_dir" && as_dir=.
10293     for ac_exec_ext in '' $ac_executable_extensions; do
10294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10295     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297     break 2
10298   fi
10299 done
10300   done


10305 fi
10306 TIME=$ac_cv_path_TIME
10307 if test -n "$TIME"; then
10308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10309 $as_echo "$TIME" >&6; }
10310 else
10311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 $as_echo "no" >&6; }
10313 fi
10314 
10315 
10316 
10317 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
10318 
10319     for ac_prog in comm
10320 do
10321   # Extract the first word of "$ac_prog", so it can be a program name with args.
10322 set dummy $ac_prog; ac_word=$2
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10324 $as_echo_n "checking for $ac_word... " >&6; }
10325 if ${ac_cv_path_COMM+:} false; then :
10326   $as_echo_n "(cached) " >&6
10327 else
10328   case $COMM in
10329   [\\/]* | ?:[\\/]*)
10330   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
10331   ;;
10332   *)
10333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10335 do
10336   IFS=$as_save_IFS
10337   test -z "$as_dir" && as_dir=.
10338     for ac_exec_ext in '' $ac_executable_extensions; do
10339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10340     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
10341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10342     break 2
10343   fi
10344 done
10345   done


10359 
10360 
10361   test -n "$COMM" && break
10362 done
10363 
10364 
10365     if test "x$COMM" = x; then
10366         if test "xcomm" = x; then
10367           PROG_NAME=comm
10368         else
10369           PROG_NAME=comm
10370         fi
10371         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10372 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10373         as_fn_error $? "Cannot continue" "$LINENO" 5
10374     fi
10375 
10376 
10377 fi
10378 






























































10379 
10380 # Check if pkg-config is available.
10381 
10382 
10383 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10384         if test -n "$ac_tool_prefix"; then
10385   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10386 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10388 $as_echo_n "checking for $ac_word... " >&6; }
10389 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10390   $as_echo_n "(cached) " >&6
10391 else
10392   case $PKG_CONFIG in
10393   [\\/]* | ?:[\\/]*)
10394   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10395   ;;
10396   *)
10397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398 for as_dir in $PATH
10399 do
10400   IFS=$as_save_IFS
10401   test -z "$as_dir" && as_dir=.
10402     for ac_exec_ext in '' $ac_executable_extensions; do
10403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10404     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406     break 2
10407   fi
10408 done
10409   done


10412   ;;
10413 esac
10414 fi
10415 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10416 if test -n "$PKG_CONFIG"; then
10417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10418 $as_echo "$PKG_CONFIG" >&6; }
10419 else
10420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10421 $as_echo "no" >&6; }
10422 fi
10423 
10424 
10425 fi
10426 if test -z "$ac_cv_path_PKG_CONFIG"; then
10427   ac_pt_PKG_CONFIG=$PKG_CONFIG
10428   # Extract the first word of "pkg-config", so it can be a program name with args.
10429 set dummy pkg-config; ac_word=$2
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431 $as_echo_n "checking for $ac_word... " >&6; }
10432 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10433   $as_echo_n "(cached) " >&6
10434 else
10435   case $ac_pt_PKG_CONFIG in
10436   [\\/]* | ?:[\\/]*)
10437   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10438   ;;
10439   *)
10440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441 for as_dir in $PATH
10442 do
10443   IFS=$as_save_IFS
10444   test -z "$as_dir" && as_dir=.
10445     for ac_exec_ext in '' $ac_executable_extensions; do
10446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10447     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10449     break 2
10450   fi
10451 done
10452   done


10585             echo Build stays the same $rewritten_build
10586         else
10587             echo Rewriting build for builddeps into $rewritten_build
10588         fi
10589         eval rewritten_target=\${REWRITE_${target_var}}
10590         if test "x$rewritten_target" = x; then
10591             rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
10592             echo Target stays the same $rewritten_target
10593         else
10594             echo Rewriting target for builddeps into $rewritten_target
10595         fi
10596         rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
10597         rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
10598     fi
10599     for ac_prog in 7z unzip
10600 do
10601   # Extract the first word of "$ac_prog", so it can be a program name with args.
10602 set dummy $ac_prog; ac_word=$2
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604 $as_echo_n "checking for $ac_word... " >&6; }
10605 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
10606   $as_echo_n "(cached) " >&6
10607 else
10608   if test -n "$BDEPS_UNZIP"; then
10609   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
10610 else
10611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612 for as_dir in $PATH
10613 do
10614   IFS=$as_save_IFS
10615   test -z "$as_dir" && as_dir=.
10616     for ac_exec_ext in '' $ac_executable_extensions; do
10617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10618     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
10619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10620     break 2
10621   fi
10622 done
10623   done
10624 IFS=$as_save_IFS
10625 


10631 $as_echo "$BDEPS_UNZIP" >&6; }
10632 else
10633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; }
10635 fi
10636 
10637 
10638   test -n "$BDEPS_UNZIP" && break
10639 done
10640 
10641     if test "x$BDEPS_UNZIP" = x7z; then
10642         BDEPS_UNZIP="7z x"
10643     fi
10644 
10645     for ac_prog in wget lftp ftp
10646 do
10647   # Extract the first word of "$ac_prog", so it can be a program name with args.
10648 set dummy $ac_prog; ac_word=$2
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650 $as_echo_n "checking for $ac_word... " >&6; }
10651 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
10652   $as_echo_n "(cached) " >&6
10653 else
10654   if test -n "$BDEPS_FTP"; then
10655   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
10656 else
10657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658 for as_dir in $PATH
10659 do
10660   IFS=$as_save_IFS
10661   test -z "$as_dir" && as_dir=.
10662     for ac_exec_ext in '' $ac_executable_extensions; do
10663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10664     ac_cv_prog_BDEPS_FTP="$ac_prog"
10665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10666     break 2
10667   fi
10668 done
10669   done
10670 IFS=$as_save_IFS
10671 


11904               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
11905               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
11906 $as_echo "$BOOT_JDK_VERSION" >&6; }
11907             fi # end check jdk version
11908           fi # end check rt.jar
11909         fi # end check javac
11910       fi # end check java
11911     fi # end check boot jdk found
11912   fi
11913 
11914 
11915 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
11916 
11917   if test "x$BOOT_JDK_FOUND" = xno; then
11918     # Now execute the test
11919 
11920     # Extract the first word of "javac", so it can be a program name with args.
11921 set dummy javac; ac_word=$2
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923 $as_echo_n "checking for $ac_word... " >&6; }
11924 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
11925   $as_echo_n "(cached) " >&6
11926 else
11927   case $JAVAC_CHECK in
11928   [\\/]* | ?:[\\/]*)
11929   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
11930   ;;
11931   *)
11932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11934 do
11935   IFS=$as_save_IFS
11936   test -z "$as_dir" && as_dir=.
11937     for ac_exec_ext in '' $ac_executable_extensions; do
11938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11939     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941     break 2
11942   fi
11943 done
11944   done
11945 IFS=$as_save_IFS
11946 
11947   ;;
11948 esac
11949 fi
11950 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
11951 if test -n "$JAVAC_CHECK"; then
11952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
11953 $as_echo "$JAVAC_CHECK" >&6; }
11954 else
11955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11957 fi
11958 
11959 
11960     # Extract the first word of "java", so it can be a program name with args.
11961 set dummy java; ac_word=$2
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11963 $as_echo_n "checking for $ac_word... " >&6; }
11964 if ${ac_cv_path_JAVA_CHECK+:} false; then :
11965   $as_echo_n "(cached) " >&6
11966 else
11967   case $JAVA_CHECK in
11968   [\\/]* | ?:[\\/]*)
11969   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
11970   ;;
11971   *)
11972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973 for as_dir in $PATH
11974 do
11975   IFS=$as_save_IFS
11976   test -z "$as_dir" && as_dir=.
11977     for ac_exec_ext in '' $ac_executable_extensions; do
11978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11979     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
11980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981     break 2
11982   fi
11983 done
11984   done


16018 EXE_OUT_OPTION='-o$(SPACE)'
16019 # When linking, how to specify the to be created dynamically linkable library.
16020 LD_OUT_OPTION='-o$(SPACE)'
16021 # When archiving, how to specify the to be create static archive for object files.
16022 AR_OUT_OPTION='rcs$(SPACE)'
16023 
16024 
16025 
16026 
16027 
16028 # Locate the actual tools
16029 
16030 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16031 
16032   # Store path to cygwin link.exe to help excluding it when searching for
16033   # VS linker. This must be done before changing the PATH when looking for VS.
16034   # Extract the first word of "link", so it can be a program name with args.
16035 set dummy link; ac_word=$2
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16037 $as_echo_n "checking for $ac_word... " >&6; }
16038 if ${ac_cv_path_CYGWIN_LINK+:} false; then :
16039   $as_echo_n "(cached) " >&6
16040 else
16041   case $CYGWIN_LINK in
16042   [\\/]* | ?:[\\/]*)
16043   ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
16044   ;;
16045   *)
16046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16047 for as_dir in $PATH
16048 do
16049   IFS=$as_save_IFS
16050   test -z "$as_dir" && as_dir=.
16051     for ac_exec_ext in '' $ac_executable_extensions; do
16052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16053     ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
16054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16055     break 2
16056   fi
16057 done
16058   done


17433 # For example the binary i686-sun-solaris2.10-gcc
17434 # will cross compile for i686-sun-solaris2.10
17435 # If neither of build and host is not set, then build=host and the
17436 # default compiler found in the path will be used.
17437 # Setting only --host, does not seem to be really supported.
17438 # Please set both --build and --host if you want to cross compile.
17439 
17440 if test "x$COMPILE_TYPE" = "xcross"; then
17441     # Now we to find a C/C++ compiler that can build executables for the build
17442     # platform. We can't use the AC_PROG_CC macro, since it can only be used
17443     # once. Also, we need to do this before adding a tools dir to the path,
17444     # otherwise we might pick up cross-compilers which don't use standard naming.
17445     # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
17446     # to wait until they are properly discovered.
17447     for ac_prog in cl cc gcc
17448 do
17449   # Extract the first word of "$ac_prog", so it can be a program name with args.
17450 set dummy $ac_prog; ac_word=$2
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17452 $as_echo_n "checking for $ac_word... " >&6; }
17453 if ${ac_cv_path_BUILD_CC+:} false; then :
17454   $as_echo_n "(cached) " >&6
17455 else
17456   case $BUILD_CC in
17457   [\\/]* | ?:[\\/]*)
17458   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
17459   ;;
17460   *)
17461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17462 for as_dir in $PATH
17463 do
17464   IFS=$as_save_IFS
17465   test -z "$as_dir" && as_dir=.
17466     for ac_exec_ext in '' $ac_executable_extensions; do
17467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17468     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
17469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17470     break 2
17471   fi
17472 done
17473   done


17744 
17745       # Now join together the path and the arguments once again
17746       if test "x$arguments" != xEOL; then
17747         new_complete="$new_path ${arguments% *}"
17748       else
17749         new_complete="$new_path"
17750       fi
17751 
17752   if test "x$complete" != "x$new_complete"; then
17753       BUILD_CC="$new_complete"
17754       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
17755 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
17756     fi
17757 
17758     for ac_prog in cl CC g++
17759 do
17760   # Extract the first word of "$ac_prog", so it can be a program name with args.
17761 set dummy $ac_prog; ac_word=$2
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17763 $as_echo_n "checking for $ac_word... " >&6; }
17764 if ${ac_cv_path_BUILD_CXX+:} false; then :
17765   $as_echo_n "(cached) " >&6
17766 else
17767   case $BUILD_CXX in
17768   [\\/]* | ?:[\\/]*)
17769   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
17770   ;;
17771   *)
17772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17773 for as_dir in $PATH
17774 do
17775   IFS=$as_save_IFS
17776   test -z "$as_dir" && as_dir=.
17777     for ac_exec_ext in '' $ac_executable_extensions; do
17778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17779     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
17780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17781     break 2
17782   fi
17783 done
17784   done


18053       fi
18054   fi
18055 
18056       # Now join together the path and the arguments once again
18057       if test "x$arguments" != xEOL; then
18058         new_complete="$new_path ${arguments% *}"
18059       else
18060         new_complete="$new_path"
18061       fi
18062 
18063   if test "x$complete" != "x$new_complete"; then
18064       BUILD_CXX="$new_complete"
18065       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
18066 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
18067     fi
18068 
18069     # Extract the first word of "ld", so it can be a program name with args.
18070 set dummy ld; ac_word=$2
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18072 $as_echo_n "checking for $ac_word... " >&6; }
18073 if ${ac_cv_path_BUILD_LD+:} false; then :
18074   $as_echo_n "(cached) " >&6
18075 else
18076   case $BUILD_LD in
18077   [\\/]* | ?:[\\/]*)
18078   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
18079   ;;
18080   *)
18081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18082 for as_dir in $PATH
18083 do
18084   IFS=$as_save_IFS
18085   test -z "$as_dir" && as_dir=.
18086     for ac_exec_ext in '' $ac_executable_extensions; do
18087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18088     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
18089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18090     break 2
18091   fi
18092 done
18093   done


18569   COMPILER_CHECK_LIST="cc gcc"
18570 else
18571   COMPILER_CHECK_LIST="gcc cc"
18572 fi
18573 
18574 
18575   COMPILER_NAME=C
18576 
18577   CC=
18578   # If TOOLS_DIR is set, check for all compiler names in there first
18579   # before checking the rest of the PATH.
18580   if test -n "$TOOLS_DIR"; then
18581     PATH_save="$PATH"
18582     PATH="$TOOLS_DIR"
18583     for ac_prog in $COMPILER_CHECK_LIST
18584 do
18585   # Extract the first word of "$ac_prog", so it can be a program name with args.
18586 set dummy $ac_prog; ac_word=$2
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18588 $as_echo_n "checking for $ac_word... " >&6; }
18589 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then :
18590   $as_echo_n "(cached) " >&6
18591 else
18592   case $TOOLS_DIR_CC in
18593   [\\/]* | ?:[\\/]*)
18594   ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
18595   ;;
18596   *)
18597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18598 for as_dir in $PATH
18599 do
18600   IFS=$as_save_IFS
18601   test -z "$as_dir" && as_dir=.
18602     for ac_exec_ext in '' $ac_executable_extensions; do
18603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18604     ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
18605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18606     break 2
18607   fi
18608 done
18609   done


18621 $as_echo "no" >&6; }
18622 fi
18623 
18624 
18625   test -n "$TOOLS_DIR_CC" && break
18626 done
18627 
18628     CC=$TOOLS_DIR_CC
18629     PATH="$PATH_save"
18630   fi
18631 
18632   # AC_PATH_PROGS can't be run multiple times with the same variable,
18633   # so create a new name for this run.
18634   if test "x$CC" = x; then
18635     for ac_prog in $COMPILER_CHECK_LIST
18636 do
18637   # Extract the first word of "$ac_prog", so it can be a program name with args.
18638 set dummy $ac_prog; ac_word=$2
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18640 $as_echo_n "checking for $ac_word... " >&6; }
18641 if ${ac_cv_path_POTENTIAL_CC+:} false; then :
18642   $as_echo_n "(cached) " >&6
18643 else
18644   case $POTENTIAL_CC in
18645   [\\/]* | ?:[\\/]*)
18646   ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
18647   ;;
18648   *)
18649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650 for as_dir in $PATH
18651 do
18652   IFS=$as_save_IFS
18653   test -z "$as_dir" && as_dir=.
18654     for ac_exec_ext in '' $ac_executable_extensions; do
18655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18656     ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
18657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18658     break 2
18659   fi
18660 done
18661   done


19034   if test "x$COMPILER_BASENAME" = "xccache"; then
19035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
19036 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
19037     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
19038     # We want to control ccache invocation ourselves, so ignore this cc and try
19039     # searching again.
19040 
19041     # Remove the path to the fake ccache cc from the PATH
19042     RETRY_COMPILER_SAVED_PATH="$PATH"
19043     COMPILER_DIRNAME=`$DIRNAME $CC`
19044     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
19045 
19046     # Try again looking for our compiler
19047     if test -n "$ac_tool_prefix"; then
19048   for ac_prog in $COMPILER_CHECK_LIST
19049   do
19050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19053 $as_echo_n "checking for $ac_word... " >&6; }
19054 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then :
19055   $as_echo_n "(cached) " >&6
19056 else
19057   if test -n "$PROPER_COMPILER_CC"; then
19058   ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
19059 else
19060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19061 for as_dir in $PATH
19062 do
19063   IFS=$as_save_IFS
19064   test -z "$as_dir" && as_dir=.
19065     for ac_exec_ext in '' $ac_executable_extensions; do
19066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19067     ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
19068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19069     break 2
19070   fi
19071 done
19072   done
19073 IFS=$as_save_IFS
19074 


19078 if test -n "$PROPER_COMPILER_CC"; then
19079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
19080 $as_echo "$PROPER_COMPILER_CC" >&6; }
19081 else
19082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19083 $as_echo "no" >&6; }
19084 fi
19085 
19086 
19087     test -n "$PROPER_COMPILER_CC" && break
19088   done
19089 fi
19090 if test -z "$PROPER_COMPILER_CC"; then
19091   ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
19092   for ac_prog in $COMPILER_CHECK_LIST
19093 do
19094   # Extract the first word of "$ac_prog", so it can be a program name with args.
19095 set dummy $ac_prog; ac_word=$2
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19097 $as_echo_n "checking for $ac_word... " >&6; }
19098 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then :
19099   $as_echo_n "(cached) " >&6
19100 else
19101   if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19102   ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
19103 else
19104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19105 for as_dir in $PATH
19106 do
19107   IFS=$as_save_IFS
19108   test -z "$as_dir" && as_dir=.
19109     for ac_exec_ext in '' $ac_executable_extensions; do
19110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19111     ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
19112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19113     break 2
19114   fi
19115 done
19116   done
19117 IFS=$as_save_IFS
19118 


19528   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
19529   CC_VENDOR="$COMPILER_VENDOR"
19530 
19531   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
19532 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
19533 
19534 
19535 # Now that we have resolved CC ourself, let autoconf have its go at it
19536 ac_ext=c
19537 ac_cpp='$CPP $CPPFLAGS'
19538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19541 if test -n "$ac_tool_prefix"; then
19542   for ac_prog in $CC
19543   do
19544     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19547 $as_echo_n "checking for $ac_word... " >&6; }
19548 if ${ac_cv_prog_CC+:} false; then :
19549   $as_echo_n "(cached) " >&6
19550 else
19551   if test -n "$CC"; then
19552   ac_cv_prog_CC="$CC" # Let the user override the test.
19553 else
19554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19555 for as_dir in $PATH
19556 do
19557   IFS=$as_save_IFS
19558   test -z "$as_dir" && as_dir=.
19559     for ac_exec_ext in '' $ac_executable_extensions; do
19560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19561     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19563     break 2
19564   fi
19565 done
19566   done
19567 IFS=$as_save_IFS
19568 


19572 if test -n "$CC"; then
19573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19574 $as_echo "$CC" >&6; }
19575 else
19576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19577 $as_echo "no" >&6; }
19578 fi
19579 
19580 
19581     test -n "$CC" && break
19582   done
19583 fi
19584 if test -z "$CC"; then
19585   ac_ct_CC=$CC
19586   for ac_prog in $CC
19587 do
19588   # Extract the first word of "$ac_prog", so it can be a program name with args.
19589 set dummy $ac_prog; ac_word=$2
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19591 $as_echo_n "checking for $ac_word... " >&6; }
19592 if ${ac_cv_prog_ac_ct_CC+:} false; then :
19593   $as_echo_n "(cached) " >&6
19594 else
19595   if test -n "$ac_ct_CC"; then
19596   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19597 else
19598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19599 for as_dir in $PATH
19600 do
19601   IFS=$as_save_IFS
19602   test -z "$as_dir" && as_dir=.
19603     for ac_exec_ext in '' $ac_executable_extensions; do
19604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19605     ac_cv_prog_ac_ct_CC="$ac_prog"
19606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19607     break 2
19608   fi
19609 done
19610   done
19611 IFS=$as_save_IFS
19612 


19625   test -n "$ac_ct_CC" && break
19626 done
19627 
19628   if test "x$ac_ct_CC" = x; then
19629     CC=""
19630   else
19631     case $cross_compiling:$ac_tool_warned in
19632 yes:)
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19635 ac_tool_warned=yes ;;
19636 esac
19637     CC=$ac_ct_CC
19638   fi
19639 fi
19640 
19641 
19642 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19644 as_fn_error $? "no acceptable C compiler found in \$PATH
19645 See \`config.log' for more details" "$LINENO" 5; }
19646 
19647 # Provide some information about the compiler.
19648 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19649 set X $ac_compile
19650 ac_compiler=$2
19651 for ac_option in --version -v -V -qversion; do
19652   { { ac_try="$ac_compiler $ac_option >&5"
19653 case "(($ac_try" in
19654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655   *) ac_try_echo=$ac_try;;
19656 esac
19657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19658 $as_echo "$ac_try_echo"; } >&5
19659   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19660   ac_status=$?
19661   if test -s conftest.err; then
19662     sed '10a\
19663 ... rest of stderr output deleted ...
19664          10q' conftest.err >conftest.er1
19665     cat conftest.er1 >&5


19740         # actually working.
19741         break;;
19742     * )
19743         break;;
19744   esac
19745 done
19746 test "$ac_cv_exeext" = no && ac_cv_exeext=
19747 
19748 else
19749   ac_file=''
19750 fi
19751 if test -z "$ac_file"; then :
19752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19753 $as_echo "no" >&6; }
19754 $as_echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756 
19757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19759 as_fn_error 77 "C compiler cannot create executables
19760 See \`config.log' for more details" "$LINENO" 5; }
19761 else
19762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19763 $as_echo "yes" >&6; }
19764 fi
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
19766 $as_echo_n "checking for C compiler default output file name... " >&6; }
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
19768 $as_echo "$ac_file" >&6; }
19769 ac_exeext=$ac_cv_exeext
19770 
19771 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
19772 ac_clean_files=$ac_clean_files_save
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
19774 $as_echo_n "checking for suffix of executables... " >&6; }
19775 if { { ac_try="$ac_link"
19776 case "(($ac_try" in
19777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778   *) ac_try_echo=$ac_try;;
19779 esac
19780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""


19783   ac_status=$?
19784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19785   test $ac_status = 0; }; then :
19786   # If both `conftest.exe' and `conftest' are `present' (well, observable)
19787 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
19788 # work properly (i.e., refer to `conftest.exe'), while it won't with
19789 # `rm'.
19790 for ac_file in conftest.exe conftest conftest.*; do
19791   test -f "$ac_file" || continue
19792   case $ac_file in
19793     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
19794     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
19795           break;;
19796     * ) break;;
19797   esac
19798 done
19799 else
19800   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19802 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
19803 See \`config.log' for more details" "$LINENO" 5; }
19804 fi
19805 rm -f conftest conftest$ac_cv_exeext
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
19807 $as_echo "$ac_cv_exeext" >&6; }
19808 
19809 rm -f conftest.$ac_ext
19810 EXEEXT=$ac_cv_exeext
19811 ac_exeext=$EXEEXT
19812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19813 /* end confdefs.h.  */
19814 #include <stdio.h>
19815 int
19816 main ()
19817 {
19818 FILE *f = fopen ("conftest.out", "w");
19819  return ferror (f) || fclose (f) != 0;
19820 
19821   ;
19822   return 0;
19823 }


19842   if { ac_try='./conftest$ac_cv_exeext'
19843   { { case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19848 $as_echo "$ac_try_echo"; } >&5
19849   (eval "$ac_try") 2>&5
19850   ac_status=$?
19851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19852   test $ac_status = 0; }; }; then
19853     cross_compiling=no
19854   else
19855     if test "$cross_compiling" = maybe; then
19856         cross_compiling=yes
19857     else
19858         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19860 as_fn_error $? "cannot run C compiled programs.
19861 If you meant to cross compile, use \`--host'.
19862 See \`config.log' for more details" "$LINENO" 5; }
19863     fi
19864   fi
19865 fi
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
19867 $as_echo "$cross_compiling" >&6; }
19868 
19869 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
19870 ac_clean_files=$ac_clean_files_save
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
19872 $as_echo_n "checking for suffix of object files... " >&6; }
19873 if ${ac_cv_objext+:} false; then :
19874   $as_echo_n "(cached) " >&6
19875 else
19876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19877 /* end confdefs.h.  */
19878 
19879 int
19880 main ()
19881 {
19882 
19883   ;
19884   return 0;
19885 }
19886 _ACEOF
19887 rm -f conftest.o conftest.obj
19888 if { { ac_try="$ac_compile"
19889 case "(($ac_try" in
19890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891   *) ac_try_echo=$ac_try;;
19892 esac
19893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19894 $as_echo "$ac_try_echo"; } >&5
19895   (eval "$ac_compile") 2>&5
19896   ac_status=$?
19897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19898   test $ac_status = 0; }; then :
19899   for ac_file in conftest.o conftest.obj conftest.*; do
19900   test -f "$ac_file" || continue;
19901   case $ac_file in
19902     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
19903     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
19904        break;;
19905   esac
19906 done
19907 else
19908   $as_echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19910 
19911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19913 as_fn_error $? "cannot compute suffix of object files: cannot compile
19914 See \`config.log' for more details" "$LINENO" 5; }
19915 fi
19916 rm -f conftest.$ac_cv_objext conftest.$ac_ext
19917 fi
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
19919 $as_echo "$ac_cv_objext" >&6; }
19920 OBJEXT=$ac_cv_objext
19921 ac_objext=$OBJEXT
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
19923 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19924 if ${ac_cv_c_compiler_gnu+:} false; then :
19925   $as_echo_n "(cached) " >&6
19926 else
19927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h.  */
19929 
19930 int
19931 main ()
19932 {
19933 #ifndef __GNUC__
19934        choke me
19935 #endif
19936 
19937   ;
19938   return 0;
19939 }
19940 _ACEOF
19941 if ac_fn_c_try_compile "$LINENO"; then :
19942   ac_compiler_gnu=yes
19943 else
19944   ac_compiler_gnu=no
19945 fi
19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19947 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19948 
19949 fi
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19951 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
19952 if test $ac_compiler_gnu = yes; then
19953   GCC=yes
19954 else
19955   GCC=
19956 fi
19957 ac_test_CFLAGS=${CFLAGS+set}
19958 ac_save_CFLAGS=$CFLAGS
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19960 $as_echo_n "checking whether $CC accepts -g... " >&6; }
19961 if ${ac_cv_prog_cc_g+:} false; then :
19962   $as_echo_n "(cached) " >&6
19963 else
19964   ac_save_c_werror_flag=$ac_c_werror_flag
19965    ac_c_werror_flag=yes
19966    ac_cv_prog_cc_g=no
19967    CFLAGS="-g"
19968    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19969 /* end confdefs.h.  */
19970 
19971 int
19972 main ()
19973 {
19974 
19975   ;
19976   return 0;
19977 }
19978 _ACEOF
19979 if ac_fn_c_try_compile "$LINENO"; then :
19980   ac_cv_prog_cc_g=yes
19981 else


20019 fi
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20021 $as_echo "$ac_cv_prog_cc_g" >&6; }
20022 if test "$ac_test_CFLAGS" = set; then
20023   CFLAGS=$ac_save_CFLAGS
20024 elif test $ac_cv_prog_cc_g = yes; then
20025   if test "$GCC" = yes; then
20026     CFLAGS="-g -O2"
20027   else
20028     CFLAGS="-g"
20029   fi
20030 else
20031   if test "$GCC" = yes; then
20032     CFLAGS="-O2"
20033   else
20034     CFLAGS=
20035   fi
20036 fi
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20038 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20039 if ${ac_cv_prog_cc_c89+:} false; then :
20040   $as_echo_n "(cached) " >&6
20041 else
20042   ac_cv_prog_cc_c89=no
20043 ac_save_CC=$CC
20044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20045 /* end confdefs.h.  */
20046 #include <stdarg.h>
20047 #include <stdio.h>
20048 #include <sys/types.h>
20049 #include <sys/stat.h>
20050 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20051 struct buf { int x; };
20052 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20053 static char *e (p, i)
20054      char **p;
20055      int i;
20056 {
20057   return p[i];
20058 }
20059 static char *f (char * (*g) (char **, int), char **p, ...)


20142   COMPILER_CHECK_LIST="CC g++"
20143 else
20144   COMPILER_CHECK_LIST="g++ CC"
20145 fi
20146 
20147 
20148   COMPILER_NAME=C++
20149 
20150   CXX=
20151   # If TOOLS_DIR is set, check for all compiler names in there first
20152   # before checking the rest of the PATH.
20153   if test -n "$TOOLS_DIR"; then
20154     PATH_save="$PATH"
20155     PATH="$TOOLS_DIR"
20156     for ac_prog in $COMPILER_CHECK_LIST
20157 do
20158   # Extract the first word of "$ac_prog", so it can be a program name with args.
20159 set dummy $ac_prog; ac_word=$2
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20161 $as_echo_n "checking for $ac_word... " >&6; }
20162 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then :
20163   $as_echo_n "(cached) " >&6
20164 else
20165   case $TOOLS_DIR_CXX in
20166   [\\/]* | ?:[\\/]*)
20167   ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
20168   ;;
20169   *)
20170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20171 for as_dir in $PATH
20172 do
20173   IFS=$as_save_IFS
20174   test -z "$as_dir" && as_dir=.
20175     for ac_exec_ext in '' $ac_executable_extensions; do
20176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20177     ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
20178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20179     break 2
20180   fi
20181 done
20182   done


20194 $as_echo "no" >&6; }
20195 fi
20196 
20197 
20198   test -n "$TOOLS_DIR_CXX" && break
20199 done
20200 
20201     CXX=$TOOLS_DIR_CXX
20202     PATH="$PATH_save"
20203   fi
20204 
20205   # AC_PATH_PROGS can't be run multiple times with the same variable,
20206   # so create a new name for this run.
20207   if test "x$CXX" = x; then
20208     for ac_prog in $COMPILER_CHECK_LIST
20209 do
20210   # Extract the first word of "$ac_prog", so it can be a program name with args.
20211 set dummy $ac_prog; ac_word=$2
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20213 $as_echo_n "checking for $ac_word... " >&6; }
20214 if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
20215   $as_echo_n "(cached) " >&6
20216 else
20217   case $POTENTIAL_CXX in
20218   [\\/]* | ?:[\\/]*)
20219   ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
20220   ;;
20221   *)
20222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20223 for as_dir in $PATH
20224 do
20225   IFS=$as_save_IFS
20226   test -z "$as_dir" && as_dir=.
20227     for ac_exec_ext in '' $ac_executable_extensions; do
20228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20229     ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
20230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20231     break 2
20232   fi
20233 done
20234   done


20607   if test "x$COMPILER_BASENAME" = "xccache"; then
20608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
20609 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
20610     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
20611     # We want to control ccache invocation ourselves, so ignore this cc and try
20612     # searching again.
20613 
20614     # Remove the path to the fake ccache cc from the PATH
20615     RETRY_COMPILER_SAVED_PATH="$PATH"
20616     COMPILER_DIRNAME=`$DIRNAME $CXX`
20617     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
20618 
20619     # Try again looking for our compiler
20620     if test -n "$ac_tool_prefix"; then
20621   for ac_prog in $COMPILER_CHECK_LIST
20622   do
20623     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20626 $as_echo_n "checking for $ac_word... " >&6; }
20627 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then :
20628   $as_echo_n "(cached) " >&6
20629 else
20630   if test -n "$PROPER_COMPILER_CXX"; then
20631   ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
20632 else
20633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20634 for as_dir in $PATH
20635 do
20636   IFS=$as_save_IFS
20637   test -z "$as_dir" && as_dir=.
20638     for ac_exec_ext in '' $ac_executable_extensions; do
20639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20640     ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
20641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20642     break 2
20643   fi
20644 done
20645   done
20646 IFS=$as_save_IFS
20647 


20651 if test -n "$PROPER_COMPILER_CXX"; then
20652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
20653 $as_echo "$PROPER_COMPILER_CXX" >&6; }
20654 else
20655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20656 $as_echo "no" >&6; }
20657 fi
20658 
20659 
20660     test -n "$PROPER_COMPILER_CXX" && break
20661   done
20662 fi
20663 if test -z "$PROPER_COMPILER_CXX"; then
20664   ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
20665   for ac_prog in $COMPILER_CHECK_LIST
20666 do
20667   # Extract the first word of "$ac_prog", so it can be a program name with args.
20668 set dummy $ac_prog; ac_word=$2
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20670 $as_echo_n "checking for $ac_word... " >&6; }
20671 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then :
20672   $as_echo_n "(cached) " >&6
20673 else
20674   if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
20675   ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
20676 else
20677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20678 for as_dir in $PATH
20679 do
20680   IFS=$as_save_IFS
20681   test -z "$as_dir" && as_dir=.
20682     for ac_exec_ext in '' $ac_executable_extensions; do
20683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20684     ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
20685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20686     break 2
20687   fi
20688 done
20689   done
20690 IFS=$as_save_IFS
20691 


21105 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
21106 
21107 
21108 # Now that we have resolved CXX ourself, let autoconf have its go at it
21109 ac_ext=cpp
21110 ac_cpp='$CXXCPP $CPPFLAGS'
21111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21114 if test -z "$CXX"; then
21115   if test -n "$CCC"; then
21116     CXX=$CCC
21117   else
21118     if test -n "$ac_tool_prefix"; then
21119   for ac_prog in $CXX
21120   do
21121     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21124 $as_echo_n "checking for $ac_word... " >&6; }
21125 if ${ac_cv_prog_CXX+:} false; then :
21126   $as_echo_n "(cached) " >&6
21127 else
21128   if test -n "$CXX"; then
21129   ac_cv_prog_CXX="$CXX" # Let the user override the test.
21130 else
21131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21132 for as_dir in $PATH
21133 do
21134   IFS=$as_save_IFS
21135   test -z "$as_dir" && as_dir=.
21136     for ac_exec_ext in '' $ac_executable_extensions; do
21137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21138     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
21139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21140     break 2
21141   fi
21142 done
21143   done
21144 IFS=$as_save_IFS
21145 


21149 if test -n "$CXX"; then
21150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
21151 $as_echo "$CXX" >&6; }
21152 else
21153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21154 $as_echo "no" >&6; }
21155 fi
21156 
21157 
21158     test -n "$CXX" && break
21159   done
21160 fi
21161 if test -z "$CXX"; then
21162   ac_ct_CXX=$CXX
21163   for ac_prog in $CXX
21164 do
21165   # Extract the first word of "$ac_prog", so it can be a program name with args.
21166 set dummy $ac_prog; ac_word=$2
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21168 $as_echo_n "checking for $ac_word... " >&6; }
21169 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
21170   $as_echo_n "(cached) " >&6
21171 else
21172   if test -n "$ac_ct_CXX"; then
21173   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21174 else
21175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21176 for as_dir in $PATH
21177 do
21178   IFS=$as_save_IFS
21179   test -z "$as_dir" && as_dir=.
21180     for ac_exec_ext in '' $ac_executable_extensions; do
21181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21182     ac_cv_prog_ac_ct_CXX="$ac_prog"
21183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21184     break 2
21185   fi
21186 done
21187   done
21188 IFS=$as_save_IFS
21189 


21227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228   *) ac_try_echo=$ac_try;;
21229 esac
21230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21231 $as_echo "$ac_try_echo"; } >&5
21232   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21233   ac_status=$?
21234   if test -s conftest.err; then
21235     sed '10a\
21236 ... rest of stderr output deleted ...
21237          10q' conftest.err >conftest.er1
21238     cat conftest.er1 >&5
21239   fi
21240   rm -f conftest.er1 conftest.err
21241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21242   test $ac_status = 0; }
21243 done
21244 
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
21246 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
21247 if ${ac_cv_cxx_compiler_gnu+:} false; then :
21248   $as_echo_n "(cached) " >&6
21249 else
21250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251 /* end confdefs.h.  */
21252 
21253 int
21254 main ()
21255 {
21256 #ifndef __GNUC__
21257        choke me
21258 #endif
21259 
21260   ;
21261   return 0;
21262 }
21263 _ACEOF
21264 if ac_fn_cxx_try_compile "$LINENO"; then :
21265   ac_compiler_gnu=yes
21266 else
21267   ac_compiler_gnu=no
21268 fi
21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21270 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21271 
21272 fi
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
21274 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21275 if test $ac_compiler_gnu = yes; then
21276   GXX=yes
21277 else
21278   GXX=
21279 fi
21280 ac_test_CXXFLAGS=${CXXFLAGS+set}
21281 ac_save_CXXFLAGS=$CXXFLAGS
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
21283 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
21284 if ${ac_cv_prog_cxx_g+:} false; then :
21285   $as_echo_n "(cached) " >&6
21286 else
21287   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21288    ac_cxx_werror_flag=yes
21289    ac_cv_prog_cxx_g=no
21290    CXXFLAGS="-g"
21291    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21292 /* end confdefs.h.  */
21293 
21294 int
21295 main ()
21296 {
21297 
21298   ;
21299   return 0;
21300 }
21301 _ACEOF
21302 if ac_fn_cxx_try_compile "$LINENO"; then :
21303   ac_cv_prog_cxx_g=yes
21304 else


21362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21365 
21366 
21367 ### Locate other tools
21368 
21369 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
21370     ac_ext=m
21371 ac_cpp='$OBJCPP $CPPFLAGS'
21372 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21373 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21374 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
21375 if test -n "$ac_tool_prefix"; then
21376   for ac_prog in gcc objcc objc cc CC
21377   do
21378     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21381 $as_echo_n "checking for $ac_word... " >&6; }
21382 if ${ac_cv_prog_OBJC+:} false; then :
21383   $as_echo_n "(cached) " >&6
21384 else
21385   if test -n "$OBJC"; then
21386   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
21387 else
21388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21389 for as_dir in $PATH
21390 do
21391   IFS=$as_save_IFS
21392   test -z "$as_dir" && as_dir=.
21393     for ac_exec_ext in '' $ac_executable_extensions; do
21394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21395     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
21396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21397     break 2
21398   fi
21399 done
21400   done
21401 IFS=$as_save_IFS
21402 


21406 if test -n "$OBJC"; then
21407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
21408 $as_echo "$OBJC" >&6; }
21409 else
21410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21411 $as_echo "no" >&6; }
21412 fi
21413 
21414 
21415     test -n "$OBJC" && break
21416   done
21417 fi
21418 if test -z "$OBJC"; then
21419   ac_ct_OBJC=$OBJC
21420   for ac_prog in gcc objcc objc cc CC
21421 do
21422   # Extract the first word of "$ac_prog", so it can be a program name with args.
21423 set dummy $ac_prog; ac_word=$2
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21425 $as_echo_n "checking for $ac_word... " >&6; }
21426 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
21427   $as_echo_n "(cached) " >&6
21428 else
21429   if test -n "$ac_ct_OBJC"; then
21430   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
21431 else
21432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21433 for as_dir in $PATH
21434 do
21435   IFS=$as_save_IFS
21436   test -z "$as_dir" && as_dir=.
21437     for ac_exec_ext in '' $ac_executable_extensions; do
21438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21439     ac_cv_prog_ac_ct_OBJC="$ac_prog"
21440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21441     break 2
21442   fi
21443 done
21444   done
21445 IFS=$as_save_IFS
21446 


21482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483   *) ac_try_echo=$ac_try;;
21484 esac
21485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21486 $as_echo "$ac_try_echo"; } >&5
21487   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21488   ac_status=$?
21489   if test -s conftest.err; then
21490     sed '10a\
21491 ... rest of stderr output deleted ...
21492          10q' conftest.err >conftest.er1
21493     cat conftest.er1 >&5
21494   fi
21495   rm -f conftest.er1 conftest.err
21496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21497   test $ac_status = 0; }
21498 done
21499 
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
21501 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
21502 if ${ac_cv_objc_compiler_gnu+:} false; then :
21503   $as_echo_n "(cached) " >&6
21504 else
21505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21506 /* end confdefs.h.  */
21507 
21508 int
21509 main ()
21510 {
21511 #ifndef __GNUC__
21512        choke me
21513 #endif
21514 
21515   ;
21516   return 0;
21517 }
21518 _ACEOF
21519 if ac_fn_objc_try_compile "$LINENO"; then :
21520   ac_compiler_gnu=yes
21521 else
21522   ac_compiler_gnu=no
21523 fi
21524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
21526 
21527 fi
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
21529 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
21530 if test $ac_compiler_gnu = yes; then
21531   GOBJC=yes
21532 else
21533   GOBJC=
21534 fi
21535 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
21536 ac_save_OBJCFLAGS=$OBJCFLAGS
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
21538 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
21539 if ${ac_cv_prog_objc_g+:} false; then :
21540   $as_echo_n "(cached) " >&6
21541 else
21542   ac_save_objc_werror_flag=$ac_objc_werror_flag
21543    ac_objc_werror_flag=yes
21544    ac_cv_prog_objc_g=no
21545    OBJCFLAGS="-g"
21546    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21547 /* end confdefs.h.  */
21548 
21549 int
21550 main ()
21551 {
21552 
21553   ;
21554   return 0;
21555 }
21556 _ACEOF
21557 if ac_fn_objc_try_compile "$LINENO"; then :
21558   ac_cv_prog_objc_g=yes
21559 else


21895 OBJCFLAGS="$ORG_OBJCFLAGS"
21896 
21897 LD="$CC"
21898 LDEXE="$CC"
21899 LDCXX="$CXX"
21900 LDEXECXX="$CXX"
21901 
21902 # LDEXE is the linker to use, when creating executables.
21903 
21904 # Linking C++ libraries.
21905 
21906 # Linking C++ executables.
21907 
21908 
21909 if test "x$OPENJDK_TARGET_OS" != xwindows; then
21910     if test -n "$ac_tool_prefix"; then
21911   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21912 set dummy ${ac_tool_prefix}ar; ac_word=$2
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21914 $as_echo_n "checking for $ac_word... " >&6; }
21915 if ${ac_cv_prog_AR+:} false; then :
21916   $as_echo_n "(cached) " >&6
21917 else
21918   if test -n "$AR"; then
21919   ac_cv_prog_AR="$AR" # Let the user override the test.
21920 else
21921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21922 for as_dir in $PATH
21923 do
21924   IFS=$as_save_IFS
21925   test -z "$as_dir" && as_dir=.
21926     for ac_exec_ext in '' $ac_executable_extensions; do
21927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21928     ac_cv_prog_AR="${ac_tool_prefix}ar"
21929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21930     break 2
21931   fi
21932 done
21933   done
21934 IFS=$as_save_IFS
21935 
21936 fi
21937 fi
21938 AR=$ac_cv_prog_AR
21939 if test -n "$AR"; then
21940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
21941 $as_echo "$AR" >&6; }
21942 else
21943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21944 $as_echo "no" >&6; }
21945 fi
21946 
21947 
21948 fi
21949 if test -z "$ac_cv_prog_AR"; then
21950   ac_ct_AR=$AR
21951   # Extract the first word of "ar", so it can be a program name with args.
21952 set dummy ar; ac_word=$2
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21954 $as_echo_n "checking for $ac_word... " >&6; }
21955 if ${ac_cv_prog_ac_ct_AR+:} false; then :
21956   $as_echo_n "(cached) " >&6
21957 else
21958   if test -n "$ac_ct_AR"; then
21959   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21960 else
21961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21962 for as_dir in $PATH
21963 do
21964   IFS=$as_save_IFS
21965   test -z "$as_dir" && as_dir=.
21966     for ac_exec_ext in '' $ac_executable_extensions; do
21967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21968     ac_cv_prog_ac_ct_AR="ar"
21969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21970     break 2
21971   fi
21972 done
21973   done
21974 IFS=$as_save_IFS
21975 


22277 HOTSPOT_CXX="$CXX"
22278 HOTSPOT_LD="$LD"
22279 
22280 
22281 
22282 COMPILER_NAME=gcc
22283 COMPILER_TYPE=CC
22284 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
22285 
22286     # For now, assume that we are always compiling using cl.exe.
22287     CC_OUT_OPTION=-Fo
22288     EXE_OUT_OPTION=-out:
22289     LD_OUT_OPTION=-out:
22290     AR_OUT_OPTION=-out:
22291     # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
22292     # program for something completely different.
22293     # Extract the first word of "link", so it can be a program name with args.
22294 set dummy link; ac_word=$2
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22296 $as_echo_n "checking for $ac_word... " >&6; }
22297 if ${ac_cv_prog_WINLD+:} false; then :
22298   $as_echo_n "(cached) " >&6
22299 else
22300   if test -n "$WINLD"; then
22301   ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
22302 else
22303   ac_prog_rejected=no
22304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22305 for as_dir in $PATH
22306 do
22307   IFS=$as_save_IFS
22308   test -z "$as_dir" && as_dir=.
22309     for ac_exec_ext in '' $ac_executable_extensions; do
22310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22311     if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
22312        ac_prog_rejected=yes
22313        continue
22314      fi
22315     ac_cv_prog_WINLD="link"
22316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22317     break 2


22616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
22617 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
22618     "$WINLD" --version > /dev/null
22619     if test $? -eq 0 ; then
22620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22621 $as_echo "no" >&6; }
22622       as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
22623     else
22624       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22625 $as_echo "yes" >&6; }
22626     fi
22627     LD="$WINLD"
22628     LDEXE="$WINLD"
22629     LDCXX="$WINLD"
22630     LDEXECXX="$WINLD"
22631 
22632     # Extract the first word of "mt", so it can be a program name with args.
22633 set dummy mt; ac_word=$2
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22635 $as_echo_n "checking for $ac_word... " >&6; }
22636 if ${ac_cv_prog_MT+:} false; then :
22637   $as_echo_n "(cached) " >&6
22638 else
22639   if test -n "$MT"; then
22640   ac_cv_prog_MT="$MT" # Let the user override the test.
22641 else
22642   ac_prog_rejected=no
22643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22644 for as_dir in $PATH
22645 do
22646   IFS=$as_save_IFS
22647   test -z "$as_dir" && as_dir=.
22648     for ac_exec_ext in '' $ac_executable_extensions; do
22649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22650     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
22651        ac_prog_rejected=yes
22652        continue
22653      fi
22654     ac_cv_prog_MT="mt"
22655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22656     break 2


22937   fi
22938 
22939       # Now join together the path and the arguments once again
22940       if test "x$arguments" != xEOL; then
22941         new_complete="$new_path ${arguments% *}"
22942       else
22943         new_complete="$new_path"
22944       fi
22945 
22946   if test "x$complete" != "x$new_complete"; then
22947       MT="$new_complete"
22948       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
22949 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
22950     fi
22951 
22952     # The resource compiler
22953     # Extract the first word of "rc", so it can be a program name with args.
22954 set dummy rc; ac_word=$2
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22956 $as_echo_n "checking for $ac_word... " >&6; }
22957 if ${ac_cv_prog_RC+:} false; then :
22958   $as_echo_n "(cached) " >&6
22959 else
22960   if test -n "$RC"; then
22961   ac_cv_prog_RC="$RC" # Let the user override the test.
22962 else
22963   ac_prog_rejected=no
22964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22965 for as_dir in $PATH
22966 do
22967   IFS=$as_save_IFS
22968   test -z "$as_dir" && as_dir=.
22969     for ac_exec_ext in '' $ac_executable_extensions; do
22970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22971     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
22972        ac_prog_rejected=yes
22973        continue
22974      fi
22975     ac_cv_prog_RC="rc"
22976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22977     break 2


23328 fi
23329     JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
23330     if test "x$JDK_UPDATE_VERSION" = x; then :
23331 
23332         JDK_UPDATE_VERSION_NOTNULL=0
23333 
23334 fi
23335     RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
23336     RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
23337     RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
23338     RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
23339     RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
23340     RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
23341     RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
23342 
23343     # lib.exe is used to create static libraries.
23344     # Extract the first word of "lib", so it can be a program name with args.
23345 set dummy lib; ac_word=$2
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23347 $as_echo_n "checking for $ac_word... " >&6; }
23348 if ${ac_cv_prog_WINAR+:} false; then :
23349   $as_echo_n "(cached) " >&6
23350 else
23351   if test -n "$WINAR"; then
23352   ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
23353 else
23354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23355 for as_dir in $PATH
23356 do
23357   IFS=$as_save_IFS
23358   test -z "$as_dir" && as_dir=.
23359     for ac_exec_ext in '' $ac_executable_extensions; do
23360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23361     ac_cv_prog_WINAR="lib"
23362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23363     break 2
23364   fi
23365 done
23366   done
23367 IFS=$as_save_IFS
23368 


23634       # Now join together the path and the arguments once again
23635       if test "x$arguments" != xEOL; then
23636         new_complete="$new_path ${arguments% *}"
23637       else
23638         new_complete="$new_path"
23639       fi
23640 
23641   if test "x$complete" != "x$new_complete"; then
23642       WINAR="$new_complete"
23643       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
23644 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
23645     fi
23646 
23647     AR="$WINAR"
23648     ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
23649 
23650     # Extract the first word of "dumpbin", so it can be a program name with args.
23651 set dummy dumpbin; ac_word=$2
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23653 $as_echo_n "checking for $ac_word... " >&6; }
23654 if ${ac_cv_prog_DUMPBIN+:} false; then :
23655   $as_echo_n "(cached) " >&6
23656 else
23657   if test -n "$DUMPBIN"; then
23658   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
23659 else
23660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23661 for as_dir in $PATH
23662 do
23663   IFS=$as_save_IFS
23664   test -z "$as_dir" && as_dir=.
23665     for ac_exec_ext in '' $ac_executable_extensions; do
23666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23667     ac_cv_prog_DUMPBIN="dumpbin"
23668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23669     break 2
23670   fi
23671 done
23672   done
23673 IFS=$as_save_IFS
23674 


23953 
23954     COMPILER_TYPE=CL
23955     CCXXFLAGS="$CCXXFLAGS -nologo"
23956 
23957 fi
23958 
23959 
23960 
23961 ac_ext=c
23962 ac_cpp='$CPP $CPPFLAGS'
23963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
23967 $as_echo_n "checking how to run the C preprocessor... " >&6; }
23968 # On Suns, sometimes $CPP names a directory.
23969 if test -n "$CPP" && test -d "$CPP"; then
23970   CPP=
23971 fi
23972 if test -z "$CPP"; then
23973   if ${ac_cv_prog_CPP+:} false; then :
23974   $as_echo_n "(cached) " >&6
23975 else
23976       # Double quotes because CPP needs to be expanded
23977     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
23978     do
23979       ac_preproc_ok=false
23980 for ac_c_preproc_warn_flag in '' yes
23981 do
23982   # Use a header file that comes with gcc, so configuring glibc
23983   # with a fresh cross-compiler works.
23984   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23985   # <limits.h> exists even on freestanding compilers.
23986   # On the NeXT, cc -E runs the code through the compiler's parser,
23987   # not just through cpp. "Syntax error" is here to catch this case.
23988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23989 /* end confdefs.h.  */
23990 #ifdef __STDC__
23991 # include <limits.h>
23992 #else
23993 # include <assert.h>


24069 _ACEOF
24070 if ac_fn_c_try_cpp "$LINENO"; then :
24071   # Broken: success on invalid input.
24072 continue
24073 else
24074   # Passes both tests.
24075 ac_preproc_ok=:
24076 break
24077 fi
24078 rm -f conftest.err conftest.i conftest.$ac_ext
24079 
24080 done
24081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24082 rm -f conftest.i conftest.err conftest.$ac_ext
24083 if $ac_preproc_ok; then :
24084 
24085 else
24086   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24088 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
24089 See \`config.log' for more details" "$LINENO" 5; }
24090 fi
24091 
24092 ac_ext=cpp
24093 ac_cpp='$CXXCPP $CPPFLAGS'
24094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24097 
24098 
24099   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24100 
24101   # First separate the path from the arguments. This will split at the first
24102   # space.
24103   complete="$CPP"
24104   path="${complete%% *}"
24105   tmp="$complete EOL"
24106   arguments="${tmp#* }"
24107 
24108   # Input might be given as Windows format, start by converting to
24109   # unix format.


24353         new_complete="$new_path ${arguments% *}"
24354       else
24355         new_complete="$new_path"
24356       fi
24357 
24358   if test "x$complete" != "x$new_complete"; then
24359       CPP="$new_complete"
24360       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
24361 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
24362     fi
24363 
24364 
24365 ac_ext=cpp
24366 ac_cpp='$CXXCPP $CPPFLAGS'
24367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
24371 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
24372 if test -z "$CXXCPP"; then
24373   if ${ac_cv_prog_CXXCPP+:} false; then :
24374   $as_echo_n "(cached) " >&6
24375 else
24376       # Double quotes because CXXCPP needs to be expanded
24377     for CXXCPP in "$CXX -E" "/lib/cpp"
24378     do
24379       ac_preproc_ok=false
24380 for ac_cxx_preproc_warn_flag in '' yes
24381 do
24382   # Use a header file that comes with gcc, so configuring glibc
24383   # with a fresh cross-compiler works.
24384   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24385   # <limits.h> exists even on freestanding compilers.
24386   # On the NeXT, cc -E runs the code through the compiler's parser,
24387   # not just through cpp. "Syntax error" is here to catch this case.
24388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24389 /* end confdefs.h.  */
24390 #ifdef __STDC__
24391 # include <limits.h>
24392 #else
24393 # include <assert.h>


24469 _ACEOF
24470 if ac_fn_cxx_try_cpp "$LINENO"; then :
24471   # Broken: success on invalid input.
24472 continue
24473 else
24474   # Passes both tests.
24475 ac_preproc_ok=:
24476 break
24477 fi
24478 rm -f conftest.err conftest.i conftest.$ac_ext
24479 
24480 done
24481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24482 rm -f conftest.i conftest.err conftest.$ac_ext
24483 if $ac_preproc_ok; then :
24484 
24485 else
24486   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24488 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
24489 See \`config.log' for more details" "$LINENO" 5; }
24490 fi
24491 
24492 ac_ext=cpp
24493 ac_cpp='$CXXCPP $CPPFLAGS'
24494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24497 
24498 
24499   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24500 
24501   # First separate the path from the arguments. This will split at the first
24502   # space.
24503   complete="$CXXCPP"
24504   path="${complete%% *}"
24505   tmp="$complete EOL"
24506   arguments="${tmp#* }"
24507 
24508   # Input might be given as Windows format, start by converting to
24509   # unix format.


24771     BUILD_CXX="$CXX"
24772     BUILD_LD="$LD"
24773 fi
24774 
24775 # for solaris we really need solaris tools, and not gnu equivalent
24776 #   these seems to normally reside in /usr/ccs/bin so add that to path before
24777 #   starting to probe
24778 #
24779 #   NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
24780 #         so that it can be overriden --with-tools-dir
24781 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
24782     PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
24783 fi
24784 
24785 # Find the right assembler.
24786 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
24787     # Extract the first word of "as", so it can be a program name with args.
24788 set dummy as; ac_word=$2
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24790 $as_echo_n "checking for $ac_word... " >&6; }
24791 if ${ac_cv_path_AS+:} false; then :
24792   $as_echo_n "(cached) " >&6
24793 else
24794   case $AS in
24795   [\\/]* | ?:[\\/]*)
24796   ac_cv_path_AS="$AS" # Let the user override the test with a path.
24797   ;;
24798   *)
24799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24800 for as_dir in $PATH
24801 do
24802   IFS=$as_save_IFS
24803   test -z "$as_dir" && as_dir=.
24804     for ac_exec_ext in '' $ac_executable_extensions; do
24805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24806     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
24807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24808     break 2
24809   fi
24810 done
24811   done


25085       fi
25086 
25087   if test "x$complete" != "x$new_complete"; then
25088       AS="$new_complete"
25089       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
25090 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
25091     fi
25092 
25093 else
25094     AS="$CC -c"
25095 fi
25096 
25097 
25098 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25099     for ac_prog in gnm nm
25100 do
25101   # Extract the first word of "$ac_prog", so it can be a program name with args.
25102 set dummy $ac_prog; ac_word=$2
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25104 $as_echo_n "checking for $ac_word... " >&6; }
25105 if ${ac_cv_path_NM+:} false; then :
25106   $as_echo_n "(cached) " >&6
25107 else
25108   case $NM in
25109   [\\/]* | ?:[\\/]*)
25110   ac_cv_path_NM="$NM" # Let the user override the test with a path.
25111   ;;
25112   *)
25113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25114 for as_dir in $PATH
25115 do
25116   IFS=$as_save_IFS
25117   test -z "$as_dir" && as_dir=.
25118     for ac_exec_ext in '' $ac_executable_extensions; do
25119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25120     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
25121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25122     break 2
25123   fi
25124 done
25125   done


25394       fi
25395   fi
25396 
25397       # Now join together the path and the arguments once again
25398       if test "x$arguments" != xEOL; then
25399         new_complete="$new_path ${arguments% *}"
25400       else
25401         new_complete="$new_path"
25402       fi
25403 
25404   if test "x$complete" != "x$new_complete"; then
25405       NM="$new_complete"
25406       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
25407 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
25408     fi
25409 
25410     # Extract the first word of "strip", so it can be a program name with args.
25411 set dummy strip; ac_word=$2
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25413 $as_echo_n "checking for $ac_word... " >&6; }
25414 if ${ac_cv_path_STRIP+:} false; then :
25415   $as_echo_n "(cached) " >&6
25416 else
25417   case $STRIP in
25418   [\\/]* | ?:[\\/]*)
25419   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
25420   ;;
25421   *)
25422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25423 for as_dir in $PATH
25424 do
25425   IFS=$as_save_IFS
25426   test -z "$as_dir" && as_dir=.
25427     for ac_exec_ext in '' $ac_executable_extensions; do
25428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25429     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
25430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25431     break 2
25432   fi
25433 done
25434   done


25700       fi
25701   fi
25702 
25703       # Now join together the path and the arguments once again
25704       if test "x$arguments" != xEOL; then
25705         new_complete="$new_path ${arguments% *}"
25706       else
25707         new_complete="$new_path"
25708       fi
25709 
25710   if test "x$complete" != "x$new_complete"; then
25711       STRIP="$new_complete"
25712       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
25713 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
25714     fi
25715 
25716     # Extract the first word of "mcs", so it can be a program name with args.
25717 set dummy mcs; ac_word=$2
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25719 $as_echo_n "checking for $ac_word... " >&6; }
25720 if ${ac_cv_path_MCS+:} false; then :
25721   $as_echo_n "(cached) " >&6
25722 else
25723   case $MCS in
25724   [\\/]* | ?:[\\/]*)
25725   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
25726   ;;
25727   *)
25728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25729 for as_dir in $PATH
25730 do
25731   IFS=$as_save_IFS
25732   test -z "$as_dir" && as_dir=.
25733     for ac_exec_ext in '' $ac_executable_extensions; do
25734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25735     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
25736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25737     break 2
25738   fi
25739 done
25740   done


26008 
26009       # Now join together the path and the arguments once again
26010       if test "x$arguments" != xEOL; then
26011         new_complete="$new_path ${arguments% *}"
26012       else
26013         new_complete="$new_path"
26014       fi
26015 
26016   if test "x$complete" != "x$new_complete"; then
26017       MCS="$new_complete"
26018       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
26019 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
26020     fi
26021 
26022 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
26023     if test -n "$ac_tool_prefix"; then
26024   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
26025 set dummy ${ac_tool_prefix}nm; ac_word=$2
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26027 $as_echo_n "checking for $ac_word... " >&6; }
26028 if ${ac_cv_prog_NM+:} false; then :
26029   $as_echo_n "(cached) " >&6
26030 else
26031   if test -n "$NM"; then
26032   ac_cv_prog_NM="$NM" # Let the user override the test.
26033 else
26034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26035 for as_dir in $PATH
26036 do
26037   IFS=$as_save_IFS
26038   test -z "$as_dir" && as_dir=.
26039     for ac_exec_ext in '' $ac_executable_extensions; do
26040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26041     ac_cv_prog_NM="${ac_tool_prefix}nm"
26042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26043     break 2
26044   fi
26045 done
26046   done
26047 IFS=$as_save_IFS
26048 
26049 fi
26050 fi
26051 NM=$ac_cv_prog_NM
26052 if test -n "$NM"; then
26053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
26054 $as_echo "$NM" >&6; }
26055 else
26056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26057 $as_echo "no" >&6; }
26058 fi
26059 
26060 
26061 fi
26062 if test -z "$ac_cv_prog_NM"; then
26063   ac_ct_NM=$NM
26064   # Extract the first word of "nm", so it can be a program name with args.
26065 set dummy nm; ac_word=$2
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26067 $as_echo_n "checking for $ac_word... " >&6; }
26068 if ${ac_cv_prog_ac_ct_NM+:} false; then :
26069   $as_echo_n "(cached) " >&6
26070 else
26071   if test -n "$ac_ct_NM"; then
26072   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
26073 else
26074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26075 for as_dir in $PATH
26076 do
26077   IFS=$as_save_IFS
26078   test -z "$as_dir" && as_dir=.
26079     for ac_exec_ext in '' $ac_executable_extensions; do
26080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26081     ac_cv_prog_ac_ct_NM="nm"
26082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26083     break 2
26084   fi
26085 done
26086   done
26087 IFS=$as_save_IFS
26088 


26366   fi
26367 
26368       # Now join together the path and the arguments once again
26369       if test "x$arguments" != xEOL; then
26370         new_complete="$new_path ${arguments% *}"
26371       else
26372         new_complete="$new_path"
26373       fi
26374 
26375   if test "x$complete" != "x$new_complete"; then
26376       NM="$new_complete"
26377       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
26378 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
26379     fi
26380 
26381     if test -n "$ac_tool_prefix"; then
26382   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26383 set dummy ${ac_tool_prefix}strip; ac_word=$2
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26385 $as_echo_n "checking for $ac_word... " >&6; }
26386 if ${ac_cv_prog_STRIP+:} false; then :
26387   $as_echo_n "(cached) " >&6
26388 else
26389   if test -n "$STRIP"; then
26390   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
26391 else
26392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26393 for as_dir in $PATH
26394 do
26395   IFS=$as_save_IFS
26396   test -z "$as_dir" && as_dir=.
26397     for ac_exec_ext in '' $ac_executable_extensions; do
26398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26399     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
26400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26401     break 2
26402   fi
26403 done
26404   done
26405 IFS=$as_save_IFS
26406 
26407 fi
26408 fi
26409 STRIP=$ac_cv_prog_STRIP
26410 if test -n "$STRIP"; then
26411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26412 $as_echo "$STRIP" >&6; }
26413 else
26414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26415 $as_echo "no" >&6; }
26416 fi
26417 
26418 
26419 fi
26420 if test -z "$ac_cv_prog_STRIP"; then
26421   ac_ct_STRIP=$STRIP
26422   # Extract the first word of "strip", so it can be a program name with args.
26423 set dummy strip; ac_word=$2
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26425 $as_echo_n "checking for $ac_word... " >&6; }
26426 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
26427   $as_echo_n "(cached) " >&6
26428 else
26429   if test -n "$ac_ct_STRIP"; then
26430   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
26431 else
26432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26433 for as_dir in $PATH
26434 do
26435   IFS=$as_save_IFS
26436   test -z "$as_dir" && as_dir=.
26437     for ac_exec_ext in '' $ac_executable_extensions; do
26438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26439     ac_cv_prog_ac_ct_STRIP="strip"
26440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26441     break 2
26442   fi
26443 done
26444   done
26445 IFS=$as_save_IFS
26446 


26731       fi
26732 
26733   if test "x$complete" != "x$new_complete"; then
26734       STRIP="$new_complete"
26735       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26736 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26737     fi
26738 
26739 fi
26740 
26741 # objcopy is used for moving debug symbols to separate files when
26742 # full debug symbols are enabled.
26743 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
26744     if test -n "$ac_tool_prefix"; then
26745   for ac_prog in gobjcopy objcopy
26746   do
26747     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26750 $as_echo_n "checking for $ac_word... " >&6; }
26751 if ${ac_cv_prog_OBJCOPY+:} false; then :
26752   $as_echo_n "(cached) " >&6
26753 else
26754   if test -n "$OBJCOPY"; then
26755   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
26756 else
26757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26758 for as_dir in $PATH
26759 do
26760   IFS=$as_save_IFS
26761   test -z "$as_dir" && as_dir=.
26762     for ac_exec_ext in '' $ac_executable_extensions; do
26763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26764     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
26765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26766     break 2
26767   fi
26768 done
26769   done
26770 IFS=$as_save_IFS
26771 


26775 if test -n "$OBJCOPY"; then
26776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
26777 $as_echo "$OBJCOPY" >&6; }
26778 else
26779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26780 $as_echo "no" >&6; }
26781 fi
26782 
26783 
26784     test -n "$OBJCOPY" && break
26785   done
26786 fi
26787 if test -z "$OBJCOPY"; then
26788   ac_ct_OBJCOPY=$OBJCOPY
26789   for ac_prog in gobjcopy objcopy
26790 do
26791   # Extract the first word of "$ac_prog", so it can be a program name with args.
26792 set dummy $ac_prog; ac_word=$2
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26794 $as_echo_n "checking for $ac_word... " >&6; }
26795 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
26796   $as_echo_n "(cached) " >&6
26797 else
26798   if test -n "$ac_ct_OBJCOPY"; then
26799   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
26800 else
26801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26802 for as_dir in $PATH
26803 do
26804   IFS=$as_save_IFS
26805   test -z "$as_dir" && as_dir=.
26806     for ac_exec_ext in '' $ac_executable_extensions; do
26807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26808     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
26809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26810     break 2
26811   fi
26812 done
26813   done
26814 IFS=$as_save_IFS
26815 


27102       else
27103         new_complete="$new_path"
27104       fi
27105 
27106   if test "x$complete" != "x$new_complete"; then
27107       OBJCOPY="$new_complete"
27108       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
27109 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
27110     fi
27111 
27112     fi
27113 fi
27114 
27115 if test -n "$ac_tool_prefix"; then
27116   for ac_prog in gobjdump objdump
27117   do
27118     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27121 $as_echo_n "checking for $ac_word... " >&6; }
27122 if ${ac_cv_prog_OBJDUMP+:} false; then :
27123   $as_echo_n "(cached) " >&6
27124 else
27125   if test -n "$OBJDUMP"; then
27126   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
27127 else
27128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27129 for as_dir in $PATH
27130 do
27131   IFS=$as_save_IFS
27132   test -z "$as_dir" && as_dir=.
27133     for ac_exec_ext in '' $ac_executable_extensions; do
27134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27135     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
27136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27137     break 2
27138   fi
27139 done
27140   done
27141 IFS=$as_save_IFS
27142 


27146 if test -n "$OBJDUMP"; then
27147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
27148 $as_echo "$OBJDUMP" >&6; }
27149 else
27150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27151 $as_echo "no" >&6; }
27152 fi
27153 
27154 
27155     test -n "$OBJDUMP" && break
27156   done
27157 fi
27158 if test -z "$OBJDUMP"; then
27159   ac_ct_OBJDUMP=$OBJDUMP
27160   for ac_prog in gobjdump objdump
27161 do
27162   # Extract the first word of "$ac_prog", so it can be a program name with args.
27163 set dummy $ac_prog; ac_word=$2
27164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27165 $as_echo_n "checking for $ac_word... " >&6; }
27166 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
27167   $as_echo_n "(cached) " >&6
27168 else
27169   if test -n "$ac_ct_OBJDUMP"; then
27170   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
27171 else
27172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27173 for as_dir in $PATH
27174 do
27175   IFS=$as_save_IFS
27176   test -z "$as_dir" && as_dir=.
27177     for ac_exec_ext in '' $ac_executable_extensions; do
27178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27179     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
27180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27181     break 2
27182   fi
27183 done
27184   done
27185 IFS=$as_save_IFS
27186 


27470       # Now join together the path and the arguments once again
27471       if test "x$arguments" != xEOL; then
27472         new_complete="$new_path ${arguments% *}"
27473       else
27474         new_complete="$new_path"
27475       fi
27476 
27477   if test "x$complete" != "x$new_complete"; then
27478       OBJDUMP="$new_complete"
27479       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
27480 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
27481     fi
27482 
27483 fi
27484 
27485 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
27486    # Extract the first word of "lipo", so it can be a program name with args.
27487 set dummy lipo; ac_word=$2
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27489 $as_echo_n "checking for $ac_word... " >&6; }
27490 if ${ac_cv_path_LIPO+:} false; then :
27491   $as_echo_n "(cached) " >&6
27492 else
27493   case $LIPO in
27494   [\\/]* | ?:[\\/]*)
27495   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
27496   ;;
27497   *)
27498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27499 for as_dir in $PATH
27500 do
27501   IFS=$as_save_IFS
27502   test -z "$as_dir" && as_dir=.
27503     for ac_exec_ext in '' $ac_executable_extensions; do
27504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27505     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
27506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27507     break 2
27508   fi
27509 done
27510   done


27785 
27786   if test "x$complete" != "x$new_complete"; then
27787       LIPO="$new_complete"
27788       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
27789 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
27790     fi
27791 
27792 fi
27793 
27794 # Restore old path without tools dir
27795 PATH="$OLD_PATH"
27796 
27797 
27798 # FIXME: Currently we must test this after paths but before flags. Fix!
27799 
27800 # And we can test some aspects on the target using configure macros.
27801 
27802 
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27804 $as_echo_n "checking for ANSI C header files... " >&6; }
27805 if ${ac_cv_header_stdc+:} false; then :
27806   $as_echo_n "(cached) " >&6
27807 else
27808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27809 /* end confdefs.h.  */
27810 #include <stdlib.h>
27811 #include <stdarg.h>
27812 #include <string.h>
27813 #include <float.h>
27814 
27815 int
27816 main ()
27817 {
27818 
27819   ;
27820   return 0;
27821 }
27822 _ACEOF
27823 if ac_fn_cxx_try_compile "$LINENO"; then :
27824   ac_cv_header_stdc=yes
27825 else


27961   #   to prevent emitting warning...
27962   ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
27963   ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
27964   ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
27965 
27966   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
27967   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
27968   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
27969 
27970   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
27971   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
27972   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
27973 
27974   fi
27975 fi
27976 
27977 # Make compilation sanity check
27978 for ac_header in stdio.h
27979 do :
27980   ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
27981 if test "x$ac_cv_header_stdio_h" = xyes; then :
27982   cat >>confdefs.h <<_ACEOF
27983 #define HAVE_STDIO_H 1
27984 _ACEOF
27985 
27986 else
27987 
27988   { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
27989 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
27990   if test "x$COMPILE_TYPE" = xreduced; then
27991     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
27992 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
27993   elif test "x$COMPILE_TYPE" = xcross; then
27994     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
27995 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
27996   fi
27997   as_fn_error $? "Cannot continue." "$LINENO" 5
27998 
27999 fi
28000 
28001 done
28002 
28003 
28004 # The cast to long int works around a bug in the HP C Compiler
28005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28007 # This bug is HP SR number 8606223364.
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
28009 $as_echo_n "checking size of int *... " >&6; }
28010 if ${ac_cv_sizeof_int_p+:} false; then :
28011   $as_echo_n "(cached) " >&6
28012 else
28013   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
28014 
28015 else
28016   if test "$ac_cv_type_int_p" = yes; then
28017      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28019 as_fn_error 77 "cannot compute sizeof (int *)
28020 See \`config.log' for more details" "$LINENO" 5; }
28021    else
28022      ac_cv_sizeof_int_p=0
28023    fi
28024 fi
28025 
28026 fi
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
28028 $as_echo "$ac_cv_sizeof_int_p" >&6; }
28029 
28030 
28031 
28032 cat >>confdefs.h <<_ACEOF
28033 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28034 _ACEOF
28035 
28036 
28037 
28038 if test "x$SIZEOF_INT_P" != "x$ac_cv_sizeof_int_p"; then
28039   # Workaround autoconf bug, see http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html
28040   SIZEOF_INT_P="$ac_cv_sizeof_int_p"


28047 else
28048     TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P`
28049 
28050     if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
28051         as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5
28052     fi
28053 fi
28054 
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
28056 $as_echo_n "checking for target address size... " >&6; }
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
28058 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
28059 
28060 
28061 ###############################################################################
28062 #
28063 # Is the target little of big endian?
28064 #
28065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28066 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28067 if ${ac_cv_c_bigendian+:} false; then :
28068   $as_echo_n "(cached) " >&6
28069 else
28070   ac_cv_c_bigendian=unknown
28071     # See if we're dealing with a universal compiler.
28072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28073 /* end confdefs.h.  */
28074 #ifndef __APPLE_CC__
28075                not a universal capable compiler
28076              #endif
28077              typedef int dummy;
28078 
28079 _ACEOF
28080 if ac_fn_cxx_try_compile "$LINENO"; then :
28081 
28082         # Check for potential -arch flags.  It is not universal unless
28083         # there are at least two -arch flags with different values.
28084         ac_arch=
28085         ac_prev=
28086         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28087          if test -n "$ac_prev"; then


29058     fi
29059   fi
29060 fi
29061 
29062 # Now let autoconf do it's magic
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29064 $as_echo_n "checking for X... " >&6; }
29065 
29066 
29067 # Check whether --with-x was given.
29068 if test "${with_x+set}" = set; then :
29069   withval=$with_x;
29070 fi
29071 
29072 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29073 if test "x$with_x" = xno; then
29074   # The user explicitly disabled X.
29075   have_x=disabled
29076 else
29077   case $x_includes,$x_libraries in #(
29078     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
29079     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
29080   $as_echo_n "(cached) " >&6
29081 else
29082   # One or both of the vars are not set, and there is no cached value.
29083 ac_x_includes=no ac_x_libraries=no
29084 rm -f -r conftest.dir
29085 if mkdir conftest.dir; then
29086   cd conftest.dir
29087   cat >Imakefile <<'_ACEOF'
29088 incroot:
29089         @echo incroot='${INCROOT}'
29090 usrlibdir:
29091         @echo usrlibdir='${USRLIBDIR}'
29092 libdir:
29093         @echo libdir='${LIBDIR}'
29094 _ACEOF
29095   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29096     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29097     for ac_var in incroot usrlibdir libdir; do
29098       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29099     done


29336 /* Override any GCC internal prototype to avoid an error.
29337    Use char because int might match the return type of a GCC
29338    builtin and then its argument prototype would still apply.  */
29339 #ifdef __cplusplus
29340 extern "C"
29341 #endif
29342 char XOpenDisplay ();
29343 int
29344 main ()
29345 {
29346 return XOpenDisplay ();
29347   ;
29348   return 0;
29349 }
29350 _ACEOF
29351 if ac_fn_cxx_try_link "$LINENO"; then :
29352 
29353 else
29354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
29355 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
29356 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
29357   $as_echo_n "(cached) " >&6
29358 else
29359   ac_check_lib_save_LIBS=$LIBS
29360 LIBS="-ldnet  $LIBS"
29361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29362 /* end confdefs.h.  */
29363 
29364 /* Override any GCC internal prototype to avoid an error.
29365    Use char because int might match the return type of a GCC
29366    builtin and then its argument prototype would still apply.  */
29367 #ifdef __cplusplus
29368 extern "C"
29369 #endif
29370 char dnet_ntoa ();
29371 int
29372 main ()
29373 {
29374 return dnet_ntoa ();
29375   ;
29376   return 0;
29377 }
29378 _ACEOF
29379 if ac_fn_cxx_try_link "$LINENO"; then :
29380   ac_cv_lib_dnet_dnet_ntoa=yes
29381 else
29382   ac_cv_lib_dnet_dnet_ntoa=no
29383 fi
29384 rm -f core conftest.err conftest.$ac_objext \
29385     conftest$ac_exeext conftest.$ac_ext
29386 LIBS=$ac_check_lib_save_LIBS
29387 fi
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29389 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29390 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
29391   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29392 fi
29393 
29394     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29395       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
29396 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
29397 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
29398   $as_echo_n "(cached) " >&6
29399 else
29400   ac_check_lib_save_LIBS=$LIBS
29401 LIBS="-ldnet_stub  $LIBS"
29402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29403 /* end confdefs.h.  */
29404 
29405 /* Override any GCC internal prototype to avoid an error.
29406    Use char because int might match the return type of a GCC
29407    builtin and then its argument prototype would still apply.  */
29408 #ifdef __cplusplus
29409 extern "C"
29410 #endif
29411 char dnet_ntoa ();
29412 int
29413 main ()
29414 {
29415 return dnet_ntoa ();
29416   ;
29417   return 0;
29418 }
29419 _ACEOF
29420 if ac_fn_cxx_try_link "$LINENO"; then :
29421   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29422 else
29423   ac_cv_lib_dnet_stub_dnet_ntoa=no
29424 fi
29425 rm -f core conftest.err conftest.$ac_objext \
29426     conftest$ac_exeext conftest.$ac_ext
29427 LIBS=$ac_check_lib_save_LIBS
29428 fi
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29430 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29431 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
29432   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29433 fi
29434 
29435     fi
29436 fi
29437 rm -f core conftest.err conftest.$ac_objext \
29438     conftest$ac_exeext conftest.$ac_ext
29439     LIBS="$ac_xsave_LIBS"
29440 
29441     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29442     # to get the SysV transport functions.
29443     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29444     # needs -lnsl.
29445     # The nsl library prevents programs from opening the X display
29446     # on Irix 5.2, according to T.E. Dickey.
29447     # The functions gethostbyname, getservbyname, and inet_addr are
29448     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29449     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
29450 if test "x$ac_cv_func_gethostbyname" = xyes; then :
29451 
29452 fi
29453 
29454     if test $ac_cv_func_gethostbyname = no; then
29455       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
29456 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
29457 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
29458   $as_echo_n "(cached) " >&6
29459 else
29460   ac_check_lib_save_LIBS=$LIBS
29461 LIBS="-lnsl  $LIBS"
29462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29463 /* end confdefs.h.  */
29464 
29465 /* Override any GCC internal prototype to avoid an error.
29466    Use char because int might match the return type of a GCC
29467    builtin and then its argument prototype would still apply.  */
29468 #ifdef __cplusplus
29469 extern "C"
29470 #endif
29471 char gethostbyname ();
29472 int
29473 main ()
29474 {
29475 return gethostbyname ();
29476   ;
29477   return 0;
29478 }
29479 _ACEOF
29480 if ac_fn_cxx_try_link "$LINENO"; then :
29481   ac_cv_lib_nsl_gethostbyname=yes
29482 else
29483   ac_cv_lib_nsl_gethostbyname=no
29484 fi
29485 rm -f core conftest.err conftest.$ac_objext \
29486     conftest$ac_exeext conftest.$ac_ext
29487 LIBS=$ac_check_lib_save_LIBS
29488 fi
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
29490 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
29491 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
29492   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29493 fi
29494 
29495       if test $ac_cv_lib_nsl_gethostbyname = no; then
29496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
29497 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
29498 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
29499   $as_echo_n "(cached) " >&6
29500 else
29501   ac_check_lib_save_LIBS=$LIBS
29502 LIBS="-lbsd  $LIBS"
29503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29504 /* end confdefs.h.  */
29505 
29506 /* Override any GCC internal prototype to avoid an error.
29507    Use char because int might match the return type of a GCC
29508    builtin and then its argument prototype would still apply.  */
29509 #ifdef __cplusplus
29510 extern "C"
29511 #endif
29512 char gethostbyname ();
29513 int
29514 main ()
29515 {
29516 return gethostbyname ();
29517   ;
29518   return 0;
29519 }
29520 _ACEOF
29521 if ac_fn_cxx_try_link "$LINENO"; then :
29522   ac_cv_lib_bsd_gethostbyname=yes
29523 else
29524   ac_cv_lib_bsd_gethostbyname=no
29525 fi
29526 rm -f core conftest.err conftest.$ac_objext \
29527     conftest$ac_exeext conftest.$ac_ext
29528 LIBS=$ac_check_lib_save_LIBS
29529 fi
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
29531 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
29532 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
29533   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29534 fi
29535 
29536       fi
29537     fi
29538 
29539     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29540     # socket/setsockopt and other routines are undefined under SCO ODT
29541     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29542     # on later versions), says Simon Leinen: it contains gethostby*
29543     # variants that don't use the name server (or something).  -lsocket
29544     # must be given before -lnsl if both are needed.  We assume that
29545     # if connect needs -lnsl, so does gethostbyname.
29546     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
29547 if test "x$ac_cv_func_connect" = xyes; then :
29548 
29549 fi
29550 
29551     if test $ac_cv_func_connect = no; then
29552       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
29553 $as_echo_n "checking for connect in -lsocket... " >&6; }
29554 if ${ac_cv_lib_socket_connect+:} false; then :
29555   $as_echo_n "(cached) " >&6
29556 else
29557   ac_check_lib_save_LIBS=$LIBS
29558 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29560 /* end confdefs.h.  */
29561 
29562 /* Override any GCC internal prototype to avoid an error.
29563    Use char because int might match the return type of a GCC
29564    builtin and then its argument prototype would still apply.  */
29565 #ifdef __cplusplus
29566 extern "C"
29567 #endif
29568 char connect ();
29569 int
29570 main ()
29571 {
29572 return connect ();
29573   ;
29574   return 0;
29575 }
29576 _ACEOF
29577 if ac_fn_cxx_try_link "$LINENO"; then :
29578   ac_cv_lib_socket_connect=yes
29579 else
29580   ac_cv_lib_socket_connect=no
29581 fi
29582 rm -f core conftest.err conftest.$ac_objext \
29583     conftest$ac_exeext conftest.$ac_ext
29584 LIBS=$ac_check_lib_save_LIBS
29585 fi
29586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
29587 $as_echo "$ac_cv_lib_socket_connect" >&6; }
29588 if test "x$ac_cv_lib_socket_connect" = xyes; then :
29589   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29590 fi
29591 
29592     fi
29593 
29594     # Guillermo Gomez says -lposix is necessary on A/UX.
29595     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
29596 if test "x$ac_cv_func_remove" = xyes; then :
29597 
29598 fi
29599 
29600     if test $ac_cv_func_remove = no; then
29601       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
29602 $as_echo_n "checking for remove in -lposix... " >&6; }
29603 if ${ac_cv_lib_posix_remove+:} false; then :
29604   $as_echo_n "(cached) " >&6
29605 else
29606   ac_check_lib_save_LIBS=$LIBS
29607 LIBS="-lposix  $LIBS"
29608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29609 /* end confdefs.h.  */
29610 
29611 /* Override any GCC internal prototype to avoid an error.
29612    Use char because int might match the return type of a GCC
29613    builtin and then its argument prototype would still apply.  */
29614 #ifdef __cplusplus
29615 extern "C"
29616 #endif
29617 char remove ();
29618 int
29619 main ()
29620 {
29621 return remove ();
29622   ;
29623   return 0;
29624 }
29625 _ACEOF
29626 if ac_fn_cxx_try_link "$LINENO"; then :
29627   ac_cv_lib_posix_remove=yes
29628 else
29629   ac_cv_lib_posix_remove=no
29630 fi
29631 rm -f core conftest.err conftest.$ac_objext \
29632     conftest$ac_exeext conftest.$ac_ext
29633 LIBS=$ac_check_lib_save_LIBS
29634 fi
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
29636 $as_echo "$ac_cv_lib_posix_remove" >&6; }
29637 if test "x$ac_cv_lib_posix_remove" = xyes; then :
29638   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29639 fi
29640 
29641     fi
29642 
29643     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29644     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
29645 if test "x$ac_cv_func_shmat" = xyes; then :
29646 
29647 fi
29648 
29649     if test $ac_cv_func_shmat = no; then
29650       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
29651 $as_echo_n "checking for shmat in -lipc... " >&6; }
29652 if ${ac_cv_lib_ipc_shmat+:} false; then :
29653   $as_echo_n "(cached) " >&6
29654 else
29655   ac_check_lib_save_LIBS=$LIBS
29656 LIBS="-lipc  $LIBS"
29657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29658 /* end confdefs.h.  */
29659 
29660 /* Override any GCC internal prototype to avoid an error.
29661    Use char because int might match the return type of a GCC
29662    builtin and then its argument prototype would still apply.  */
29663 #ifdef __cplusplus
29664 extern "C"
29665 #endif
29666 char shmat ();
29667 int
29668 main ()
29669 {
29670 return shmat ();
29671   ;
29672   return 0;
29673 }
29674 _ACEOF
29675 if ac_fn_cxx_try_link "$LINENO"; then :
29676   ac_cv_lib_ipc_shmat=yes
29677 else
29678   ac_cv_lib_ipc_shmat=no
29679 fi
29680 rm -f core conftest.err conftest.$ac_objext \
29681     conftest$ac_exeext conftest.$ac_ext
29682 LIBS=$ac_check_lib_save_LIBS
29683 fi
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
29685 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
29686 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
29687   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29688 fi
29689 
29690     fi
29691   fi
29692 
29693   # Check for libraries that X11R6 Xt/Xaw programs need.
29694   ac_save_LDFLAGS=$LDFLAGS
29695   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29696   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29697   # check for ICE first), but we must link in the order -lSM -lICE or
29698   # we get undefined symbols.  So assume we have SM if we have ICE.
29699   # These have to be linked with before -lX11, unlike the other
29700   # libraries we check for below, so use a different variable.
29701   # John Interrante, Karl Berry
29702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
29703 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
29704 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
29705   $as_echo_n "(cached) " >&6
29706 else
29707   ac_check_lib_save_LIBS=$LIBS
29708 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29710 /* end confdefs.h.  */
29711 
29712 /* Override any GCC internal prototype to avoid an error.
29713    Use char because int might match the return type of a GCC
29714    builtin and then its argument prototype would still apply.  */
29715 #ifdef __cplusplus
29716 extern "C"
29717 #endif
29718 char IceConnectionNumber ();
29719 int
29720 main ()
29721 {
29722 return IceConnectionNumber ();
29723   ;
29724   return 0;
29725 }
29726 _ACEOF
29727 if ac_fn_cxx_try_link "$LINENO"; then :
29728   ac_cv_lib_ICE_IceConnectionNumber=yes
29729 else
29730   ac_cv_lib_ICE_IceConnectionNumber=no
29731 fi
29732 rm -f core conftest.err conftest.$ac_objext \
29733     conftest$ac_exeext conftest.$ac_ext
29734 LIBS=$ac_check_lib_save_LIBS
29735 fi
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29737 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
29738 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
29739   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29740 fi
29741 
29742   LDFLAGS=$ac_save_LDFLAGS
29743 
29744 fi
29745 
29746 
29747 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
29748 # this doesn't make sense so we remove it.
29749 if test "x$COMPILE_TYPE" = xcross; then
29750   X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
29751 fi
29752 
29753 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
29754 
29755     # Print a helpful message on how to acquire the necessary build dependency.
29756     # x11 is the help tag: freetyp2, cups, pulse, alsa etc
29757     MISSING_DEPENDENCY=x11
29758     PKGHANDLER_COMMAND=


30731                 pkgutil_help $MISSING_DEPENDENCY ;;
30732         pkgadd)
30733                 pkgadd_help  $MISSING_DEPENDENCY ;;
30734     * )
30735       break ;;
30736     esac
30737 
30738     if test "x$PKGHANDLER_COMMAND" != x; then
30739         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
30740     fi
30741 
30742                 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
30743         fi
30744 
30745         if test "x$OPENJDK_TARGET_OS" != xwindows; then
30746             # AC_CHECK_LIB does not support use of cl.exe
30747             PREV_LDFLAGS="$LDFLAGS"
30748             LDFLAGS="$FREETYPE2_LIBS"
30749             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
30750 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
30751 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
30752   $as_echo_n "(cached) " >&6
30753 else
30754   ac_check_lib_save_LIBS=$LIBS
30755 LIBS="-lfreetype  $LIBS"
30756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30757 /* end confdefs.h.  */
30758 
30759 /* Override any GCC internal prototype to avoid an error.
30760    Use char because int might match the return type of a GCC
30761    builtin and then its argument prototype would still apply.  */
30762 #ifdef __cplusplus
30763 extern "C"
30764 #endif
30765 char FT_Init_FreeType ();
30766 int
30767 main ()
30768 {
30769 return FT_Init_FreeType ();
30770   ;
30771   return 0;
30772 }
30773 _ACEOF
30774 if ac_fn_cxx_try_link "$LINENO"; then :
30775   ac_cv_lib_freetype_FT_Init_FreeType=yes
30776 else
30777   ac_cv_lib_freetype_FT_Init_FreeType=no
30778 fi
30779 rm -f core conftest.err conftest.$ac_objext \
30780     conftest$ac_exeext conftest.$ac_ext
30781 LIBS=$ac_check_lib_save_LIBS
30782 fi
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
30784 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
30785 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
30786   FREETYPE2_FOUND=true
30787 else
30788   as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
30789 fi
30790 
30791             LDFLAGS="$PREV_LDFLAGS"
30792         fi
30793 fi
30794 
30795 
30796 
30797 
30798 
30799 
30800 
30801 
30802 
30803 ###############################################################################
30804 #
30805 # Check for alsa headers and libraries. Used on Linux/GNU systems.


31053         # Put the nasty error message in config.log where it belongs
31054         echo "$ALSA_PKG_ERRORS" >&5
31055 
31056         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31057 $as_echo "no" >&6; }
31058                 ALSA_FOUND=no
31059 elif test $pkg_failed = untried; then
31060         ALSA_FOUND=no
31061 else
31062         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
31063         ALSA_LIBS=$pkg_cv_ALSA_LIBS
31064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31065 $as_echo "yes" >&6; }
31066         ALSA_FOUND=yes
31067 fi
31068         fi
31069         if test "x$ALSA_FOUND" = xno; then
31070             for ac_header in alsa/asoundlib.h
31071 do :
31072   ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
31073 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
31074   cat >>confdefs.h <<_ACEOF
31075 #define HAVE_ALSA_ASOUNDLIB_H 1
31076 _ACEOF
31077  ALSA_FOUND=yes
31078                               ALSA_CFLAGS=-Iignoreme
31079                               ALSA_LIBS=-lasound
31080                               DEFAULT_ALSA=yes
31081 else
31082   ALSA_FOUND=no
31083 fi
31084 
31085 done
31086 
31087         fi
31088         if test "x$ALSA_FOUND" = xno; then
31089 
31090     # Print a helpful message on how to acquire the necessary build dependency.
31091     # alsa is the help tag: freetyp2, cups, pulse, alsa etc
31092     MISSING_DEPENDENCY=alsa
31093     PKGHANDLER_COMMAND=


31112     fi
31113 
31114             as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
31115         fi
31116 fi
31117 
31118 
31119 
31120 
31121 
31122 
31123 
31124 ###############################################################################
31125 #
31126 # Check for the jpeg library
31127 #
31128 
31129 USE_EXTERNAL_LIBJPEG=true
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
31131 $as_echo_n "checking for main in -ljpeg... " >&6; }
31132 if ${ac_cv_lib_jpeg_main+:} false; then :
31133   $as_echo_n "(cached) " >&6
31134 else
31135   ac_check_lib_save_LIBS=$LIBS
31136 LIBS="-ljpeg  $LIBS"
31137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31138 /* end confdefs.h.  */
31139 
31140 
31141 int
31142 main ()
31143 {
31144 return main ();
31145   ;
31146   return 0;
31147 }
31148 _ACEOF
31149 if ac_fn_cxx_try_link "$LINENO"; then :
31150   ac_cv_lib_jpeg_main=yes
31151 else
31152   ac_cv_lib_jpeg_main=no
31153 fi
31154 rm -f core conftest.err conftest.$ac_objext \
31155     conftest$ac_exeext conftest.$ac_ext
31156 LIBS=$ac_check_lib_save_LIBS
31157 fi
31158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
31159 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
31160 if test "x$ac_cv_lib_jpeg_main" = xyes; then :
31161   cat >>confdefs.h <<_ACEOF
31162 #define HAVE_LIBJPEG 1
31163 _ACEOF
31164 
31165   LIBS="-ljpeg $LIBS"
31166 
31167 else
31168    USE_EXTERNAL_LIBJPEG=false
31169                { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
31170 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
31171 
31172 fi
31173 
31174 
31175 
31176 ###############################################################################
31177 #
31178 # Check for the gif library
31179 #
31180 
31181 USE_EXTERNAL_LIBJPEG=true
31182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgif" >&5
31183 $as_echo_n "checking for main in -lgif... " >&6; }
31184 if ${ac_cv_lib_gif_main+:} false; then :
31185   $as_echo_n "(cached) " >&6
31186 else
31187   ac_check_lib_save_LIBS=$LIBS
31188 LIBS="-lgif  $LIBS"
31189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31190 /* end confdefs.h.  */
31191 
31192 
31193 int
31194 main ()
31195 {
31196 return main ();
31197   ;
31198   return 0;
31199 }
31200 _ACEOF
31201 if ac_fn_cxx_try_link "$LINENO"; then :
31202   ac_cv_lib_gif_main=yes
31203 else
31204   ac_cv_lib_gif_main=no
31205 fi
31206 rm -f core conftest.err conftest.$ac_objext \
31207     conftest$ac_exeext conftest.$ac_ext
31208 LIBS=$ac_check_lib_save_LIBS
31209 fi
31210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_main" >&5
31211 $as_echo "$ac_cv_lib_gif_main" >&6; }
31212 if test "x$ac_cv_lib_gif_main" = xyes; then :
31213   cat >>confdefs.h <<_ACEOF
31214 #define HAVE_LIBGIF 1
31215 _ACEOF
31216 
31217   LIBS="-lgif $LIBS"
31218 
31219 else
31220    USE_EXTERNAL_LIBGIF=false
31221                { $as_echo "$as_me:${as_lineno-$LINENO}: Will use gif decoder bundled with the OpenJDK source" >&5
31222 $as_echo "$as_me: Will use gif decoder bundled with the OpenJDK source" >&6;}
31223 
31224 fi
31225 
31226 
31227 
31228 ###############################################################################
31229 #
31230 # Check for the zlib library
31231 #
31232 
31233 
31234 # Check whether --with-zlib was given.
31235 if test "${with_zlib+set}" = set; then :
31236   withval=$with_zlib;
31237 fi
31238 
31239 
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
31241 $as_echo_n "checking for compress in -lz... " >&6; }
31242 if ${ac_cv_lib_z_compress+:} false; then :
31243   $as_echo_n "(cached) " >&6
31244 else
31245   ac_check_lib_save_LIBS=$LIBS
31246 LIBS="-lz  $LIBS"
31247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31248 /* end confdefs.h.  */
31249 
31250 /* Override any GCC internal prototype to avoid an error.
31251    Use char because int might match the return type of a GCC
31252    builtin and then its argument prototype would still apply.  */
31253 #ifdef __cplusplus
31254 extern "C"
31255 #endif
31256 char compress ();
31257 int
31258 main ()
31259 {
31260 return compress ();
31261   ;
31262   return 0;
31263 }
31264 _ACEOF
31265 if ac_fn_cxx_try_link "$LINENO"; then :
31266   ac_cv_lib_z_compress=yes
31267 else
31268   ac_cv_lib_z_compress=no
31269 fi
31270 rm -f core conftest.err conftest.$ac_objext \
31271     conftest$ac_exeext conftest.$ac_ext
31272 LIBS=$ac_check_lib_save_LIBS
31273 fi
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
31275 $as_echo "$ac_cv_lib_z_compress" >&6; }
31276 if test "x$ac_cv_lib_z_compress" = xyes; then :
31277    ZLIB_FOUND=yes
31278 else
31279    ZLIB_FOUND=no
31280 fi
31281 
31282 
31283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
31284 $as_echo_n "checking for which zlib to use... " >&6; }
31285 
31286 DEFAULT_ZLIB=bundled
31287 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
31288 #
31289 # On macosx default is system...on others default is
31290 #
31291     DEFAULT_ZLIB=system
31292 fi
31293 
31294 if test "x${ZLIB_FOUND}" != "xyes"; then
31295 #
31296 # If we don't find any system...set default to bundled


31349 if ac_fn_cxx_try_link "$LINENO"; then :
31350   has_altzone=yes
31351 else
31352   has_altzone=no
31353 fi
31354 rm -f core conftest.err conftest.$ac_objext \
31355     conftest$ac_exeext conftest.$ac_ext
31356 if test "x$has_altzone" = xyes; then
31357 
31358 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
31359 
31360 fi
31361 
31362 ###############################################################################
31363 #
31364 # Check the maths library
31365 #
31366 
31367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
31368 $as_echo_n "checking for cos in -lm... " >&6; }
31369 if ${ac_cv_lib_m_cos+:} false; then :
31370   $as_echo_n "(cached) " >&6
31371 else
31372   ac_check_lib_save_LIBS=$LIBS
31373 LIBS="-lm  $LIBS"
31374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31375 /* end confdefs.h.  */
31376 
31377 /* Override any GCC internal prototype to avoid an error.
31378    Use char because int might match the return type of a GCC
31379    builtin and then its argument prototype would still apply.  */
31380 #ifdef __cplusplus
31381 extern "C"
31382 #endif
31383 char cos ();
31384 int
31385 main ()
31386 {
31387 return cos ();
31388   ;
31389   return 0;
31390 }
31391 _ACEOF
31392 if ac_fn_cxx_try_link "$LINENO"; then :
31393   ac_cv_lib_m_cos=yes
31394 else
31395   ac_cv_lib_m_cos=no
31396 fi
31397 rm -f core conftest.err conftest.$ac_objext \
31398     conftest$ac_exeext conftest.$ac_ext
31399 LIBS=$ac_check_lib_save_LIBS
31400 fi
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
31402 $as_echo "$ac_cv_lib_m_cos" >&6; }
31403 if test "x$ac_cv_lib_m_cos" = xyes; then :
31404   cat >>confdefs.h <<_ACEOF
31405 #define HAVE_LIBM 1
31406 _ACEOF
31407 
31408   LIBS="-lm $LIBS"
31409 
31410 else
31411 
31412                   { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
31413 $as_echo "$as_me: Maths library was not found" >&6;}
31414 
31415 fi
31416 
31417 
31418 
31419 ###############################################################################
31420 #
31421 # Check for libdl.so
31422 
31423 save_LIBS="$LIBS"
31424 LIBS=""
31425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
31426 $as_echo_n "checking for dlopen in -ldl... " >&6; }
31427 if ${ac_cv_lib_dl_dlopen+:} false; then :
31428   $as_echo_n "(cached) " >&6
31429 else
31430   ac_check_lib_save_LIBS=$LIBS
31431 LIBS="-ldl  $LIBS"
31432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31433 /* end confdefs.h.  */
31434 
31435 /* Override any GCC internal prototype to avoid an error.
31436    Use char because int might match the return type of a GCC
31437    builtin and then its argument prototype would still apply.  */
31438 #ifdef __cplusplus
31439 extern "C"
31440 #endif
31441 char dlopen ();
31442 int
31443 main ()
31444 {
31445 return dlopen ();
31446   ;
31447   return 0;
31448 }
31449 _ACEOF
31450 if ac_fn_cxx_try_link "$LINENO"; then :
31451   ac_cv_lib_dl_dlopen=yes
31452 else
31453   ac_cv_lib_dl_dlopen=no
31454 fi
31455 rm -f core conftest.err conftest.$ac_objext \
31456     conftest$ac_exeext conftest.$ac_ext
31457 LIBS=$ac_check_lib_save_LIBS
31458 fi
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
31460 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
31461 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
31462   cat >>confdefs.h <<_ACEOF
31463 #define HAVE_LIBDL 1
31464 _ACEOF
31465 
31466   LIBS="-ldl $LIBS"
31467 
31468 fi
31469 
31470 LIBDL="$LIBS"
31471 
31472 LIBS="$save_LIBS"
31473 
31474 
31475 
31476 ###############################################################################
31477 #
31478 # statically link libstdc++ before C++ ABI is stablized on Linux unless
31479 # dynamic build is configured on command line.
31480 #
31481 


32131     fi
32132 fi
32133 
32134 
32135 
32136 
32137 # Setup use of ccache, if available
32138 
32139     # Check whether --enable-ccache was given.
32140 if test "${enable_ccache+set}" = set; then :
32141   enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
32142 else
32143   ENABLE_CCACHE=yes
32144 fi
32145 
32146     if test "x$ENABLE_CCACHE" = xyes; then
32147         # Extract the first word of "ccache", so it can be a program name with args.
32148 set dummy ccache; ac_word=$2
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32150 $as_echo_n "checking for $ac_word... " >&6; }
32151 if ${ac_cv_path_CCACHE+:} false; then :
32152   $as_echo_n "(cached) " >&6
32153 else
32154   case $CCACHE in
32155   [\\/]* | ?:[\\/]*)
32156   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
32157   ;;
32158   *)
32159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32160 for as_dir in $PATH
32161 do
32162   IFS=$as_save_IFS
32163   test -z "$as_dir" && as_dir=.
32164     for ac_exec_ext in '' $ac_executable_extensions; do
32165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32166     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
32167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32168     break 2
32169   fi
32170 done
32171   done


32392         "s/'/'\\\\''/g;
32393           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32394       ;; #(
32395     *)
32396       # `set' quotes correctly as required by POSIX, so do not add quotes.
32397       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32398       ;;
32399     esac |
32400     sort
32401 ) |
32402   sed '
32403      /^ac_cv_env_/b end
32404      t clear
32405      :clear
32406      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32407      t end
32408      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32409      :end' >>confcache
32410 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32411   if test -w "$cache_file"; then
32412     if test "x$cache_file" != "x/dev/null"; then
32413       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32414 $as_echo "$as_me: updating cache $cache_file" >&6;}
32415       if test ! -f "$cache_file" || test -h "$cache_file"; then
32416         cat confcache >"$cache_file"
32417       else
32418         case $cache_file in #(
32419         */* | ?:*)
32420           mv -f confcache "$cache_file"$$ &&
32421           mv -f "$cache_file"$$ "$cache_file" ;; #(
32422         *)
32423           mv -f confcache "$cache_file" ;;
32424         esac
32425       fi
32426     fi
32427   else
32428     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32429 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32430   fi
32431 fi
32432 rm -f confcache
32433 
32434 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32435 # Let make expand exec_prefix.
32436 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32437 
32438 DEFS=-DHAVE_CONFIG_H
32439 
32440 ac_libobjs=
32441 ac_ltlibobjs=
32442 U=
32443 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32444   # 1. Remove the extension, and $U if already installed.
32445   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32446   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32447   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32448   #    will be set to the directory where LIBOBJS objects are built.
32449   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32450   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32451 done
32452 LIBOBJS=$ac_libobjs
32453 
32454 LTLIBOBJS=$ac_ltlibobjs
32455 
32456 
32457 
32458 : "${CONFIG_STATUS=./config.status}"
32459 ac_write_fail=0
32460 ac_clean_files_save=$ac_clean_files
32461 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32463 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32464 as_write_fail=0
32465 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32466 #! $SHELL
32467 # Generated by $as_me.
32468 # Run this file to recreate the current configuration.
32469 # Compiler output produced by configure, useful for debugging
32470 # configure, is in config.log if it exists.
32471 
32472 debug=false
32473 ac_cs_recheck=false
32474 ac_cs_silent=false
32475 
32476 SHELL=\${CONFIG_SHELL-$SHELL}
32477 export SHELL
32478 _ASEOF


32539 fi
32540 
32541 # The user is always right.
32542 if test "${PATH_SEPARATOR+set}" != set; then
32543   PATH_SEPARATOR=:
32544   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32545     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32546       PATH_SEPARATOR=';'
32547   }
32548 fi
32549 
32550 
32551 # IFS
32552 # We need space, tab and new line, in precisely that order.  Quoting is
32553 # there to prevent editors from complaining about space-tab.
32554 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32555 # splitting by setting IFS to empty value.)
32556 IFS=" ""        $as_nl"
32557 
32558 # Find who we are.  Look in the path if we contain no directory separator.
32559 as_myself=
32560 case $0 in #((
32561   *[\\/]* ) as_myself=$0 ;;
32562   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32563 for as_dir in $PATH
32564 do
32565   IFS=$as_save_IFS
32566   test -z "$as_dir" && as_dir=.
32567     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32568   done
32569 IFS=$as_save_IFS
32570 
32571      ;;
32572 esac
32573 # We did not find ourselves, most probably we were run as `sh COMMAND'
32574 # in which case we are not to be found in the path.
32575 if test "x$as_myself" = x; then
32576   as_myself=$0
32577 fi
32578 if test ! -f "$as_myself"; then
32579   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


32847 # Sed expression to map a string onto a valid CPP name.
32848 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32849 
32850 # Sed expression to map a string onto a valid variable name.
32851 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32852 
32853 
32854 exec 6>&1
32855 ## ----------------------------------- ##
32856 ## Main body of $CONFIG_STATUS script. ##
32857 ## ----------------------------------- ##
32858 _ASEOF
32859 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32860 
32861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32862 # Save the log message, to keep $0 and so on meaningful, and to
32863 # report actual input values of CONFIG_FILES etc. instead of their
32864 # values after options handling.
32865 ac_log="
32866 This file was extended by OpenJDK $as_me jdk8, which was
32867 generated by GNU Autoconf 2.68.  Invocation command line was
32868 
32869   CONFIG_FILES    = $CONFIG_FILES
32870   CONFIG_HEADERS  = $CONFIG_HEADERS
32871   CONFIG_LINKS    = $CONFIG_LINKS
32872   CONFIG_COMMANDS = $CONFIG_COMMANDS
32873   $ $0 $@
32874 
32875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32876 "
32877 
32878 _ACEOF
32879 
32880 case $ac_config_files in *"
32881 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32882 esac
32883 
32884 case $ac_config_headers in *"
32885 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32886 esac
32887 


32910       --recheck    update $as_me by reconfiguring in the same conditions
32911       --file=FILE[:TEMPLATE]
32912                    instantiate the configuration file FILE
32913       --header=FILE[:TEMPLATE]
32914                    instantiate the configuration header FILE
32915 
32916 Configuration files:
32917 $config_files
32918 
32919 Configuration headers:
32920 $config_headers
32921 
32922 Report bugs to <build-dev@openjdk.java.net>.
32923 OpenJDK home page: <http://openjdk.java.net>."
32924 
32925 _ACEOF
32926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32927 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32928 ac_cs_version="\\
32929 OpenJDK config.status jdk8
32930 configured by $0, generated by GNU Autoconf 2.68,
32931   with options \\"\$ac_cs_config\\"
32932 
32933 Copyright (C) 2010 Free Software Foundation, Inc.
32934 This config.status script is free software; the Free Software Foundation
32935 gives unlimited permission to copy, distribute and modify it."
32936 
32937 ac_pwd='$ac_pwd'
32938 srcdir='$srcdir'
32939 AWK='$AWK'
32940 test -n "\$AWK" || AWK=awk
32941 _ACEOF
32942 
32943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32944 # The default lists apply if the user does not specify any file.
32945 ac_need_defaults=:
32946 while test $# != 0
32947 do
32948   case $1 in
32949   --*=?*)
32950     ac_option=`expr "X$1" : 'X\([^=]*\)='`


33039 } >&5
33040 
33041 _ACEOF
33042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33043 _ACEOF
33044 
33045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33046 
33047 # Handling of arguments.
33048 for ac_config_target in $ac_config_targets
33049 do
33050   case $ac_config_target in
33051     "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
33052     "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
33053     "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
33054     "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
33055     "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
33056     "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
33057     "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
33058 
33059   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33060   esac
33061 done
33062 
33063 
33064 # If the user did not use the arguments to specify the items to instantiate,
33065 # then the envvar interface is used.  Set only those that are not.
33066 # We use the long form for the default assignment because of an extremely
33067 # bizarre bug on SunOS 4.1.3.
33068 if $ac_need_defaults; then
33069   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33070   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33071 fi
33072 
33073 # Have a temporary directory for convenience.  Make it in the build tree
33074 # simply because there is no reason against having it here, and in addition,
33075 # creating and moving files from /tmp can sometimes cause problems.
33076 # Hook for its removal unless debugging.
33077 # Note that there is a small window in which the directory will not be cleaned:
33078 # after its creation but before its name has been assigned to `$tmp'.
33079 $debug ||
33080 {
33081   tmp= ac_tmp=
33082   trap 'exit_status=$?
33083   : "${ac_tmp:=$tmp}"
33084   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33085 ' 0
33086   trap 'as_fn_exit 1' 1 2 13 15
33087 }
33088 # Create a (secure) tmp directory for tmp files.
33089 
33090 {
33091   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33092   test -d "$tmp"
33093 }  ||
33094 {
33095   tmp=./conf$$-$RANDOM
33096   (umask 077 && mkdir "$tmp")
33097 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33098 ac_tmp=$tmp
33099 
33100 # Set up the scripts for CONFIG_FILES section.
33101 # No need to generate them if there are no CONFIG_FILES.
33102 # This happens for instance with `./config.status config.h'.
33103 if test -n "$CONFIG_FILES"; then
33104 
33105 
33106 ac_cr=`echo X | tr X '\015'`
33107 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33108 # But we know of no other shell where ac_cr would be empty at this
33109 # point, so we can use a bashism as a fallback.
33110 if test "x$ac_cr" = x; then
33111   eval ac_cr=\$\'\\r\'
33112 fi
33113 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33114 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33115   ac_cs_awk_cr='\\r'
33116 else
33117   ac_cs_awk_cr=$ac_cr
33118 fi
33119 
33120 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33121 _ACEOF
33122 
33123 
33124 {
33125   echo "cat >conf$$subs.awk <<_ACEOF" &&
33126   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33127   echo "_ACEOF"
33128 } >conf$$subs.sh ||
33129   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33130 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33131 ac_delim='%!_!# '
33132 for ac_last_try in false false false false false :; do
33133   . ./conf$$subs.sh ||
33134     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33135 
33136   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33137   if test $ac_delim_n = $ac_delim_num; then
33138     break
33139   elif $ac_last_try; then
33140     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33141   else
33142     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33143   fi
33144 done
33145 rm -f conf$$subs.sh
33146 
33147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33148 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33149 _ACEOF
33150 sed -n '
33151 h
33152 s/^/S["/; s/!.*/"]=/
33153 p
33154 g
33155 s/^[^!]*!//
33156 :repl
33157 t repl
33158 s/'"$ac_delim"'$//
33159 t delim
33160 :nl
33161 h
33162 s/\(.\{148\}\)..*/\1/
33163 t more1
33164 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33165 p
33166 n
33167 b repl
33168 :more1


33176 s/\(.\{148\}\)..*/\1/
33177 t more2
33178 s/["\\]/\\&/g; s/^/"/; s/$/"/
33179 p
33180 b
33181 :more2
33182 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33183 p
33184 g
33185 s/.\{148\}//
33186 t delim
33187 ' <conf$$subs.awk | sed '
33188 /^[^""]/{
33189   N
33190   s/\n//
33191 }
33192 ' >>$CONFIG_STATUS || ac_write_fail=1
33193 rm -f conf$$subs.awk
33194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33195 _ACAWK
33196 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33197   for (key in S) S_is_set[key] = 1
33198   FS = ""
33199 
33200 }
33201 {
33202   line = $ 0
33203   nfields = split(line, field, "@")
33204   substed = 0
33205   len = length(field[1])
33206   for (i = 2; i < nfields; i++) {
33207     key = field[i]
33208     keylen = length(key)
33209     if (S_is_set[key]) {
33210       value = S[key]
33211       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33212       len += length(value) + length(field[++i])
33213       substed = 1
33214     } else
33215       len += 1 + keylen
33216   }
33217 
33218   print line
33219 }
33220 
33221 _ACAWK
33222 _ACEOF
33223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33224 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33225   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33226 else
33227   cat
33228 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33229   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33230 _ACEOF
33231 
33232 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33233 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33234 # trailing colons and then remove the whole line if VPATH becomes empty
33235 # (actually we leave an empty line to preserve line numbers).
33236 if test "x$srcdir" = x.; then
33237   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
33238 h
33239 s///
33240 s/^/:/
33241 s/[      ]*$/:/
33242 s/:\$(srcdir):/:/g
33243 s/:\${srcdir}:/:/g
33244 s/:@srcdir@:/:/g
33245 s/^:*//
33246 s/:*$//
33247 x
33248 s/\(=[   ]*\).*/\1/
33249 G
33250 s/\n//
33251 s/^[^=]*=[       ]*$//
33252 }'
33253 fi
33254 
33255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33256 fi # test -n "$CONFIG_FILES"
33257 
33258 # Set up the scripts for CONFIG_HEADERS section.
33259 # No need to generate them if there are no CONFIG_HEADERS.
33260 # This happens for instance with `./config.status Makefile'.
33261 if test -n "$CONFIG_HEADERS"; then
33262 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33263 BEGIN {
33264 _ACEOF
33265 
33266 # Transform confdefs.h into an awk script `defines.awk', embedded as
33267 # here-document in config.status, that substitutes the proper values into
33268 # config.h.in to produce config.h.
33269 
33270 # Create a delimiter string that does not exist in confdefs.h, to ease
33271 # handling of long lines.
33272 ac_delim='%!_!# '
33273 for ac_last_try in false false :; do
33274   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33275   if test -z "$ac_tt"; then
33276     break
33277   elif $ac_last_try; then
33278     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33279   else
33280     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33281   fi
33282 done
33283 
33284 # For the awk script, D is an array of macro values keyed by name,
33285 # likewise P contains macro parameters if any.  Preserve backslash
33286 # newline sequences.
33287 
33288 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33289 sed -n '
33290 s/.\{148\}/&'"$ac_delim"'/g
33291 t rset
33292 :rset
33293 s/^[     ]*#[    ]*define[       ][      ]*/ /
33294 t def
33295 d


33356     }
33357   }
33358 }
33359 { print }
33360 _ACAWK
33361 _ACEOF
33362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33363   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33364 fi # test -n "$CONFIG_HEADERS"
33365 
33366 
33367 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
33368 shift
33369 for ac_tag
33370 do
33371   case $ac_tag in
33372   :[FHLC]) ac_mode=$ac_tag; continue;;
33373   esac
33374   case $ac_mode$ac_tag in
33375   :[FHL]*:*);;
33376   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33377   :[FH]-) ac_tag=-:-;;
33378   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33379   esac
33380   ac_save_IFS=$IFS
33381   IFS=:
33382   set x $ac_tag
33383   IFS=$ac_save_IFS
33384   shift
33385   ac_file=$1
33386   shift
33387 
33388   case $ac_mode in
33389   :L) ac_source=$1;;
33390   :[FH])
33391     ac_file_inputs=
33392     for ac_f
33393     do
33394       case $ac_f in
33395       -) ac_f="$ac_tmp/stdin";;
33396       *) # Look for the file first in the build tree, then in the source tree
33397          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33398          # because $ac_f cannot contain `:'.
33399          test -f "$ac_f" ||
33400            case $ac_f in
33401            [\\/$]*) false;;
33402            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33403            esac ||
33404            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33405       esac
33406       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33407       as_fn_append ac_file_inputs " '$ac_f'"
33408     done
33409 
33410     # Let's still pretend it is `configure' which instantiates (i.e., don't
33411     # use $as_me), people would be surprised to read:
33412     #    /* config.h.  Generated by config.status.  */
33413     configure_input='Generated from '`
33414           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33415         `' by configure.'
33416     if test x"$ac_file" != x-; then
33417       configure_input="$ac_file.  $configure_input"
33418       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33419 $as_echo "$as_me: creating $ac_file" >&6;}
33420     fi
33421     # Neutralize special characters interpreted by sed in replacement strings.
33422     case $configure_input in #(
33423     *\&* | *\|* | *\\* )
33424        ac_sed_conf_input=`$as_echo "$configure_input" |
33425        sed 's/[\\\\&|]/\\\\&/g'`;; #(
33426     *) ac_sed_conf_input=$configure_input;;
33427     esac
33428 
33429     case $ac_tag in
33430     *:-:* | *:-) cat >"$ac_tmp/stdin" \
33431       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33432     esac
33433     ;;
33434   esac
33435 
33436   ac_dir=`$as_dirname -- "$ac_file" ||
33437 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33438          X"$ac_file" : 'X\(//\)[^/]' \| \
33439          X"$ac_file" : 'X\(//\)$' \| \
33440          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33441 $as_echo X"$ac_file" |
33442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33443             s//\1/
33444             q
33445           }
33446           /^X\(\/\/\)[^/].*/{
33447             s//\1/
33448             q
33449           }
33450           /^X\(\/\/\)$/{


33536 # FIXME: do we really want to maintain this feature?
33537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33538 ac_sed_extra="$ac_vpsub
33539 $extrasub
33540 _ACEOF
33541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33542 :t
33543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33544 s|@configure_input@|$ac_sed_conf_input|;t t
33545 s&@top_builddir@&$ac_top_builddir_sub&;t t
33546 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33547 s&@srcdir@&$ac_srcdir&;t t
33548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33549 s&@top_srcdir@&$ac_top_srcdir&;t t
33550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33551 s&@builddir@&$ac_builddir&;t t
33552 s&@abs_builddir@&$ac_abs_builddir&;t t
33553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33554 $ac_datarootdir_hack
33555 "
33556 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33557   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33558 
33559 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33560   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33561   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
33562       "$ac_tmp/out"`; test -z "$ac_out"; } &&
33563   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33564 which seems to be undefined.  Please make sure it is defined" >&5
33565 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33566 which seems to be undefined.  Please make sure it is defined" >&2;}
33567 
33568   rm -f "$ac_tmp/stdin"
33569   case $ac_file in
33570   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33571   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33572   esac \
33573   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33574  ;;
33575   :H)
33576   #
33577   # CONFIG_HEADER
33578   #
33579   if test x"$ac_file" != x-; then
33580     {
33581       $as_echo "/* $configure_input  */" \
33582       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33583     } >"$ac_tmp/config.h" \
33584       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33585     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33586       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33587 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33588     else
33589       rm -f "$ac_file"
33590       mv "$ac_tmp/config.h" "$ac_file" \
33591         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33592     fi
33593   else
33594     $as_echo "/* $configure_input  */" \
33595       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33596       || as_fn_error $? "could not create -" "$LINENO" 5
33597   fi
33598  ;;
33599 
33600 
33601   esac
33602 
33603 done # for ac_tag
33604 
33605 
33606 as_fn_exit 0
33607 _ACEOF
33608 ac_clean_files=$ac_clean_files_save
33609 
33610 test $ac_write_fail = 0 ||
33611   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33612 
33613 
33614 # configure is writing to config.log, and then calls config.status.
33615 # config.status does its own redirection, appending to config.log.


   1 #! /bin/sh
   2 # Guess values for system-dependent variables and create Makefiles.
   3 # Generated by GNU Autoconf 2.67 for OpenJDK jdk8.
   4 #
   5 # Report bugs to <build-dev@openjdk.java.net>.
   6 #
   7 #
   8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10 # Foundation, Inc.
  11 #
  12 #
  13 # This configure script is free software; the Free Software Foundation
  14 # gives unlimited permission to copy, distribute and modify it.
  15 ## -------------------- ##
  16 ## M4sh Initialization. ##
  17 ## -------------------- ##
  18 
  19 # Be more Bourne compatible
  20 DUALCASE=1; export DUALCASE # for MKS sh
  21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22   emulate sh
  23   NULLCMD=:


  74 fi
  75 
  76 # The user is always right.
  77 if test "${PATH_SEPARATOR+set}" != set; then
  78   PATH_SEPARATOR=:
  79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  81       PATH_SEPARATOR=';'
  82   }
  83 fi
  84 
  85 
  86 # IFS
  87 # We need space, tab and new line, in precisely that order.  Quoting is
  88 # there to prevent editors from complaining about space-tab.
  89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  90 # splitting by setting IFS to empty value.)
  91 IFS=" ""        $as_nl"
  92 
  93 # Find who we are.  Look in the path if we contain no directory separator.

  94 case $0 in #((
  95   *[\\/]* ) as_myself=$0 ;;
  96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  97 for as_dir in $PATH
  98 do
  99   IFS=$as_save_IFS
 100   test -z "$as_dir" && as_dir=.
 101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 102   done
 103 IFS=$as_save_IFS
 104 
 105      ;;
 106 esac
 107 # We did not find ourselves, most probably we were run as `sh COMMAND'
 108 # in which case we are not to be found in the path.
 109 if test "x$as_myself" = x; then
 110   as_myself=$0
 111 fi
 112 if test ! -f "$as_myself"; then
 113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


 199   CONFIG_SHELL=$as_shell as_have_required=yes
 200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 201   break 2
 202 fi
 203 fi
 204            done;;
 205        esac
 206   as_found=false
 207 done
 208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 210   CONFIG_SHELL=$SHELL as_have_required=yes
 211 fi; }
 212 IFS=$as_save_IFS
 213 
 214 
 215       if test "x$CONFIG_SHELL" != x; then :
 216   # We cannot yet assume a decent shell, so we have to provide a
 217         # neutralization value for shells without unset; and this also
 218         # works around shells that cannot unset nonexistent variables.

 219         BASH_ENV=/dev/null
 220         ENV=/dev/null
 221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 222         export CONFIG_SHELL
 223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}






 224 fi
 225 
 226     if test x$as_have_required = xno; then :
 227   $as_echo "$0: This script requires a shell more modern than all"
 228   $as_echo "$0: the shells that I found on your system."
 229   if test x${ZSH_VERSION+set} = xset ; then
 230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 232   else
 233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 234 $0: build-dev@openjdk.java.net about your system, including
 235 $0: any error possibly output before this message. Then
 236 $0: install a modern shell, or manually run the script
 237 $0: under such a shell if you do have one."
 238   fi
 239   exit 1
 240 fi
 241 fi
 242 fi
 243 SHELL=${CONFIG_SHELL-/bin/sh}


 769 MILESTONE
 770 JDK_BUILD_NUMBER
 771 JDK_UPDATE_VERSION
 772 JDK_MICRO_VERSION
 773 JDK_MINOR_VERSION
 774 JDK_MAJOR_VERSION
 775 USER_RELEASE_SUFFIX
 776 COMPRESS_JARS
 777 UNLIMITED_CRYPTO
 778 CACERTS_FILE
 779 TEST_IN_BUILD
 780 BUILD_HEADLESS
 781 SUPPORT_HEADFUL
 782 SUPPORT_HEADLESS
 783 BDEPS_FTP
 784 BDEPS_UNZIP
 785 OS_VERSION_MICRO
 786 OS_VERSION_MINOR
 787 OS_VERSION_MAJOR
 788 PKG_CONFIG
 789 XATTR
 790 TIME
 791 STAT
 792 HG
 793 READELF
 794 OTOOL
 795 LDD
 796 ZIP
 797 UNZIP
 798 FIND_DELETE
 799 MAKE
 800 CHECK_TOOLSDIR_MAKE
 801 CHECK_TOOLSDIR_GMAKE
 802 CHECK_MAKE
 803 CHECK_GMAKE
 804 PKGHANDLER
 805 OUTPUT_ROOT
 806 CONF_NAME
 807 SPEC
 808 BUILD_VARIANT_RELEASE
 809 DEBUG_CLASSFILES


1426 
1427   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1428 Try \`$0 --help' for more information"
1429     ;;
1430 
1431   *=*)
1432     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1433     # Reject names that are not valid shell variable names.
1434     case $ac_envvar in #(
1435       '' | [0-9]* | *[!_$as_cr_alnum]* )
1436       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1437     esac
1438     eval $ac_envvar=\$ac_optarg
1439     export $ac_envvar ;;
1440 
1441   *)
1442     # FIXME: should be removed in autoconf 3.0.
1443     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1444     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1445       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1446     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1447     ;;
1448 
1449   esac
1450 done
1451 
1452 if test -n "$ac_prev"; then
1453   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1454   as_fn_error $? "missing argument to $ac_option"
1455 fi
1456 
1457 if test -n "$ac_unrecognized_opts"; then
1458   case $enable_option_checking in
1459     no) ;;
1460     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1461     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1462   esac
1463 fi
1464 
1465 # Check all directory arguments for consistency.
1466 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \


1858 
1859     cd "$ac_dir" || { ac_status=$?; continue; }
1860     # Check for guested configure.
1861     if test -f "$ac_srcdir/configure.gnu"; then
1862       echo &&
1863       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1864     elif test -f "$ac_srcdir/configure"; then
1865       echo &&
1866       $SHELL "$ac_srcdir/configure" --help=recursive
1867     else
1868       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1869     fi || ac_status=$?
1870     cd "$ac_pwd" || { ac_status=$?; break; }
1871   done
1872 fi
1873 
1874 test -n "$ac_init_help" && exit $ac_status
1875 if $ac_init_version; then
1876   cat <<\_ACEOF
1877 OpenJDK configure jdk8
1878 generated by GNU Autoconf 2.67
1879 
1880 Copyright (C) 2010 Free Software Foundation, Inc.
1881 This configure script is free software; the Free Software Foundation
1882 gives unlimited permission to copy, distribute and modify it.
1883 _ACEOF
1884   exit
1885 fi
1886 
1887 ## ------------------------ ##
1888 ## Autoconf initialization. ##
1889 ## ------------------------ ##
1890 
1891 # ac_fn_c_try_compile LINENO
1892 # --------------------------
1893 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_compile ()
1895 {
1896   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897   rm -f conftest.$ac_objext
1898   if { { ac_try="$ac_compile"


1904 $as_echo "$ac_try_echo"; } >&5
1905   (eval "$ac_compile") 2>conftest.err
1906   ac_status=$?
1907   if test -s conftest.err; then
1908     grep -v '^ *+' conftest.err >conftest.er1
1909     cat conftest.er1 >&5
1910     mv -f conftest.er1 conftest.err
1911   fi
1912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913   test $ac_status = 0; } && {
1914          test -z "$ac_c_werror_flag" ||
1915          test ! -s conftest.err
1916        } && test -s conftest.$ac_objext; then :
1917   ac_retval=0
1918 else
1919   $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921 
1922         ac_retval=1
1923 fi
1924   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925   as_fn_set_status $ac_retval
1926 
1927 } # ac_fn_c_try_compile
1928 
1929 # ac_fn_cxx_try_compile LINENO
1930 # ----------------------------
1931 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1932 ac_fn_cxx_try_compile ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   rm -f conftest.$ac_objext
1936   if { { ac_try="$ac_compile"
1937 case "(($ac_try" in
1938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939   *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943   (eval "$ac_compile") 2>conftest.err
1944   ac_status=$?
1945   if test -s conftest.err; then
1946     grep -v '^ *+' conftest.err >conftest.er1
1947     cat conftest.er1 >&5
1948     mv -f conftest.er1 conftest.err
1949   fi
1950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951   test $ac_status = 0; } && {
1952          test -z "$ac_cxx_werror_flag" ||
1953          test ! -s conftest.err
1954        } && test -s conftest.$ac_objext; then :
1955   ac_retval=0
1956 else
1957   $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1959 
1960         ac_retval=1
1961 fi
1962   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963   as_fn_set_status $ac_retval
1964 
1965 } # ac_fn_cxx_try_compile
1966 
1967 # ac_fn_objc_try_compile LINENO
1968 # -----------------------------
1969 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1970 ac_fn_objc_try_compile ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   rm -f conftest.$ac_objext
1974   if { { ac_try="$ac_compile"
1975 case "(($ac_try" in
1976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977   *) ac_try_echo=$ac_try;;
1978 esac
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981   (eval "$ac_compile") 2>conftest.err
1982   ac_status=$?
1983   if test -s conftest.err; then
1984     grep -v '^ *+' conftest.err >conftest.er1
1985     cat conftest.er1 >&5
1986     mv -f conftest.er1 conftest.err
1987   fi
1988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989   test $ac_status = 0; } && {
1990          test -z "$ac_objc_werror_flag" ||
1991          test ! -s conftest.err
1992        } && test -s conftest.$ac_objext; then :
1993   ac_retval=0
1994 else
1995   $as_echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1997 
1998         ac_retval=1
1999 fi
2000   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001   as_fn_set_status $ac_retval
2002 
2003 } # ac_fn_objc_try_compile
2004 
2005 # ac_fn_c_try_cpp LINENO
2006 # ----------------------
2007 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2008 ac_fn_c_try_cpp ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   if { { ac_try="$ac_cpp conftest.$ac_ext"
2012 case "(($ac_try" in
2013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014   *) ac_try_echo=$ac_try;;
2015 esac
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2019   ac_status=$?
2020   if test -s conftest.err; then
2021     grep -v '^ *+' conftest.err >conftest.er1
2022     cat conftest.er1 >&5
2023     mv -f conftest.er1 conftest.err
2024   fi
2025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026   test $ac_status = 0; } > conftest.i && {
2027          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2028          test ! -s conftest.err
2029        }; then :
2030   ac_retval=0
2031 else
2032   $as_echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2034 
2035     ac_retval=1
2036 fi
2037   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038   as_fn_set_status $ac_retval
2039 
2040 } # ac_fn_c_try_cpp
2041 
2042 # ac_fn_cxx_try_cpp LINENO
2043 # ------------------------
2044 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2045 ac_fn_cxx_try_cpp ()
2046 {
2047   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048   if { { ac_try="$ac_cpp conftest.$ac_ext"
2049 case "(($ac_try" in
2050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051   *) ac_try_echo=$ac_try;;
2052 esac
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2056   ac_status=$?
2057   if test -s conftest.err; then
2058     grep -v '^ *+' conftest.err >conftest.er1
2059     cat conftest.er1 >&5
2060     mv -f conftest.er1 conftest.err
2061   fi
2062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063   test $ac_status = 0; } > conftest.i && {
2064          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2065          test ! -s conftest.err
2066        }; then :
2067   ac_retval=0
2068 else
2069   $as_echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071 
2072     ac_retval=1
2073 fi
2074   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075   as_fn_set_status $ac_retval
2076 
2077 } # ac_fn_cxx_try_cpp
2078 
2079 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2080 # ---------------------------------------------------------
2081 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2082 # the include files in INCLUDES and setting the cache variable VAR
2083 # accordingly.
2084 ac_fn_cxx_check_header_mongrel ()
2085 {
2086   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087   if eval "test \"\${$3+set}\"" = set; then :
2088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval "test \"\${$3+set}\"" = set; then :
2091   $as_echo_n "(cached) " >&6
2092 fi
2093 eval ac_res=\$$3
2094                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 else
2097   # Is the header compilable?
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2099 $as_echo_n "checking $2 usability... " >&6; }
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h.  */
2102 $4
2103 #include <$2>
2104 _ACEOF
2105 if ac_fn_cxx_try_compile "$LINENO"; then :
2106   ac_header_compiler=yes
2107 else
2108   ac_header_compiler=no
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


2137     ;;
2138   no:yes:* )
2139     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2140 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2141     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2142 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2143     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2144 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2145     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2146 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2147     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2148 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2149 ( $as_echo "## ----------------------------------------- ##
2150 ## Report this to build-dev@openjdk.java.net ##
2151 ## ----------------------------------------- ##"
2152      ) | sed "s/^/$as_me: WARNING:     /" >&2
2153     ;;
2154 esac
2155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval "test \"\${$3+set}\"" = set; then :
2158   $as_echo_n "(cached) " >&6
2159 else
2160   eval "$3=\$ac_header_compiler"
2161 fi
2162 eval ac_res=\$$3
2163                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 fi
2166   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2167 
2168 } # ac_fn_cxx_check_header_mongrel
2169 
2170 # ac_fn_cxx_try_run LINENO
2171 # ------------------------
2172 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2173 # that executables *can* be run.
2174 ac_fn_cxx_try_run ()
2175 {
2176   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177   if { { ac_try="$ac_link"
2178 case "(($ac_try" in
2179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180   *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184   (eval "$ac_link") 2>&5
2185   ac_status=$?
2186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2188   { { case "(($ac_try" in
2189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190   *) ac_try_echo=$ac_try;;
2191 esac
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194   (eval "$ac_try") 2>&5
2195   ac_status=$?
2196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197   test $ac_status = 0; }; }; then :
2198   ac_retval=0
2199 else
2200   $as_echo "$as_me: program exited with status $ac_status" >&5
2201        $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203 
2204        ac_retval=$ac_status
2205 fi
2206   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2207   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2208   as_fn_set_status $ac_retval
2209 
2210 } # ac_fn_cxx_try_run
2211 
2212 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2213 # ---------------------------------------------------------
2214 # Tests whether HEADER exists and can be compiled using the include files in
2215 # INCLUDES, setting the cache variable VAR accordingly.
2216 ac_fn_cxx_check_header_compile ()
2217 {
2218   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2220 $as_echo_n "checking for $2... " >&6; }
2221 if eval "test \"\${$3+set}\"" = set; then :
2222   $as_echo_n "(cached) " >&6
2223 else
2224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h.  */
2226 $4
2227 #include <$2>
2228 _ACEOF
2229 if ac_fn_cxx_try_compile "$LINENO"; then :
2230   eval "$3=yes"
2231 else
2232   eval "$3=no"
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 fi
2236 eval ac_res=\$$3
2237                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238 $as_echo "$ac_res" >&6; }
2239   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 
2241 } # ac_fn_cxx_check_header_compile
2242 
2243 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2244 # ----------------------------------------------
2245 # Tries to find the compile-time value of EXPR in a program that includes
2246 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2247 # computed
2248 ac_fn_cxx_compute_int ()
2249 {
2250   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251   if test "$cross_compiling" = yes; then
2252     # Depending upon the size, compute the lo and hi bounds.
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h.  */
2255 $4
2256 int
2257 main ()
2258 {
2259 static int test_array [1 - 2 * !(($2) >= 0)];


2396       fprintf (f, "%lu", i);
2397     }
2398   /* Do not output a trailing newline, as this causes \r\n confusion
2399      on some platforms.  */
2400   return ferror (f) || fclose (f) != 0;
2401 
2402   ;
2403   return 0;
2404 }
2405 _ACEOF
2406 if ac_fn_cxx_try_run "$LINENO"; then :
2407   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2408 else
2409   ac_retval=1
2410 fi
2411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2412   conftest.$ac_objext conftest.beam conftest.$ac_ext
2413 rm -f conftest.val
2414 
2415   fi
2416   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2417   as_fn_set_status $ac_retval
2418 
2419 } # ac_fn_cxx_compute_int
2420 
2421 # ac_fn_cxx_try_link LINENO
2422 # -------------------------
2423 # Try to link conftest.$ac_ext, and return whether this succeeded.
2424 ac_fn_cxx_try_link ()
2425 {
2426   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427   rm -f conftest.$ac_objext conftest$ac_exeext
2428   if { { ac_try="$ac_link"
2429 case "(($ac_try" in
2430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431   *) ac_try_echo=$ac_try;;
2432 esac
2433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2434 $as_echo "$ac_try_echo"; } >&5
2435   (eval "$ac_link") 2>conftest.err
2436   ac_status=$?


2442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2443   test $ac_status = 0; } && {
2444          test -z "$ac_cxx_werror_flag" ||
2445          test ! -s conftest.err
2446        } && test -s conftest$ac_exeext && {
2447          test "$cross_compiling" = yes ||
2448          $as_test_x conftest$ac_exeext
2449        }; then :
2450   ac_retval=0
2451 else
2452   $as_echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454 
2455         ac_retval=1
2456 fi
2457   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2458   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2459   # interfere with the next link command; also delete a directory that is
2460   # left behind by Apple's compiler.  We do this before executing the actions.
2461   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2462   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2463   as_fn_set_status $ac_retval
2464 
2465 } # ac_fn_cxx_try_link
2466 
2467 # ac_fn_cxx_check_func LINENO FUNC VAR
2468 # ------------------------------------
2469 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2470 ac_fn_cxx_check_func ()
2471 {
2472   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if eval "test \"\${$3+set}\"" = set; then :
2476   $as_echo_n "(cached) " >&6
2477 else
2478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h.  */
2480 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2482 #define $2 innocuous_$2
2483 
2484 /* System header to define __stub macros and hopefully few prototypes,
2485     which can conflict with char $2 (); below.
2486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2487     <limits.h> exists even on freestanding compilers.  */
2488 
2489 #ifdef __STDC__
2490 # include <limits.h>
2491 #else
2492 # include <assert.h>
2493 #endif
2494 
2495 #undef $2


2510 
2511 int
2512 main ()
2513 {
2514 return $2 ();
2515   ;
2516   return 0;
2517 }
2518 _ACEOF
2519 if ac_fn_cxx_try_link "$LINENO"; then :
2520   eval "$3=yes"
2521 else
2522   eval "$3=no"
2523 fi
2524 rm -f core conftest.err conftest.$ac_objext \
2525     conftest$ac_exeext conftest.$ac_ext
2526 fi
2527 eval ac_res=\$$3
2528                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2529 $as_echo "$ac_res" >&6; }
2530   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2531 
2532 } # ac_fn_cxx_check_func
2533 
2534 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2535 # -------------------------------------------------------
2536 # Tests whether HEADER exists and can be compiled using the include files in
2537 # INCLUDES, setting the cache variable VAR accordingly.
2538 ac_fn_c_check_header_compile ()
2539 {
2540   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542 $as_echo_n "checking for $2... " >&6; }
2543 if eval "test \"\${$3+set}\"" = set; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h.  */
2548 $4
2549 #include <$2>
2550 _ACEOF
2551 if ac_fn_c_try_compile "$LINENO"; then :
2552   eval "$3=yes"
2553 else
2554   eval "$3=no"
2555 fi
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 fi
2558 eval ac_res=\$$3
2559                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560 $as_echo "$ac_res" >&6; }
2561   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562 
2563 } # ac_fn_c_check_header_compile
2564 cat >config.log <<_ACEOF
2565 This file contains any messages produced by compilers while
2566 running configure, to aid debugging if configure makes a mistake.
2567 
2568 It was created by OpenJDK $as_me jdk8, which was
2569 generated by GNU Autoconf 2.67.  Invocation command line was
2570 
2571   $ $0 $@
2572 
2573 _ACEOF
2574 exec 5>>config.log
2575 {
2576 cat <<_ASUNAME
2577 ## --------- ##
2578 ## Platform. ##
2579 ## --------- ##
2580 
2581 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2582 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2583 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2584 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2585 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2586 
2587 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2588 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2589 


2807     *)   ac_site_file1=./$CONFIG_SITE;;
2808   esac
2809 elif test "x$prefix" != xNONE; then
2810   ac_site_file1=$prefix/share/config.site
2811   ac_site_file2=$prefix/etc/config.site
2812 else
2813   ac_site_file1=$ac_default_prefix/share/config.site
2814   ac_site_file2=$ac_default_prefix/etc/config.site
2815 fi
2816 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2817 do
2818   test "x$ac_site_file" = xNONE && continue
2819   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2820     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2821 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2822     sed 's/^/| /' "$ac_site_file" >&5
2823     . "$ac_site_file" \
2824       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826 as_fn_error $? "failed to load site script $ac_site_file
2827 See \`config.log' for more details" "$LINENO" 5 ; }
2828   fi
2829 done
2830 
2831 if test -r "$cache_file"; then
2832   # Some versions of bash will fail to source /dev/null (special files
2833   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2834   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2835     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2836 $as_echo "$as_me: loading cache $cache_file" >&6;}
2837     case $cache_file in
2838       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2839       *)                      . "./$cache_file";;
2840     esac
2841   fi
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2844 $as_echo "$as_me: creating cache $cache_file" >&6;}
2845   >$cache_file
2846 fi
2847 


3729 
3730 # Check if the VS env variables were setup prior to running configure.
3731 # If not, then find vcvarsall.bat and run it automatically, and integrate
3732 # the set env variables into the spec file.
3733 
3734 
3735 
3736 # Setup the DXSDK paths
3737 
3738 
3739 
3740 
3741 
3742 
3743 # This line needs to be here, verbatim, after all includes and the dummy hook
3744 # definitions. It is replaced with custom functionality when building
3745 # custom sources.
3746 #CUSTOM_AUTOCONF_INCLUDE
3747 
3748 # Do not change or remove the following line, it is needed for consistency checks:
3749 DATE_WHEN_GENERATED=1364483812
3750 
3751 ###############################################################################
3752 #
3753 # Initialization / Boot-strapping
3754 #
3755 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3756 # thus it jumps back and forth, each time gaining something needed later on.
3757 #
3758 ###############################################################################
3759 
3760 # Basic initialization that must happen first of all
3761 
3762 # Save the original command line. This is passed to us by the wrapper configure script.
3763 
3764 DATE_WHEN_CONFIGURED=`LANG=C date`
3765 
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3767 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3769 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3770 
3771 
3772 
3773 # Start with tools that do not need have cross compilation support
3774 # and can be expected to be found in the default PATH. These tools are
3775 # used by configure. Nor are these tools expected to be found in the
3776 # devkit from the builddeps server either, since they are
3777 # needed to download the devkit.
3778 
3779 # First are all the simple required tools.
3780 
3781     for ac_prog in basename
3782 do
3783   # Extract the first word of "$ac_prog", so it can be a program name with args.
3784 set dummy $ac_prog; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_path_BASENAME+set}" = set; then :
3788   $as_echo_n "(cached) " >&6
3789 else
3790   case $BASENAME in
3791   [\\/]* | ?:[\\/]*)
3792   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3793   ;;
3794   *)
3795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800     for ac_exec_ext in '' $ac_executable_extensions; do
3801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807   done


3826 
3827     if test "x$BASENAME" = x; then
3828         if test "xbasename" = x; then
3829           PROG_NAME=basename
3830         else
3831           PROG_NAME=basename
3832         fi
3833         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3834 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3835         as_fn_error $? "Cannot continue" "$LINENO" 5
3836     fi
3837 
3838 
3839 
3840     for ac_prog in bash
3841 do
3842   # Extract the first word of "$ac_prog", so it can be a program name with args.
3843 set dummy $ac_prog; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if test "${ac_cv_path_BASH+set}" = set; then :
3847   $as_echo_n "(cached) " >&6
3848 else
3849   case $BASH in
3850   [\\/]* | ?:[\\/]*)
3851   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3852   ;;
3853   *)
3854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857   IFS=$as_save_IFS
3858   test -z "$as_dir" && as_dir=.
3859     for ac_exec_ext in '' $ac_executable_extensions; do
3860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863     break 2
3864   fi
3865 done
3866   done


3885 
3886     if test "x$BASH" = x; then
3887         if test "xbash" = x; then
3888           PROG_NAME=bash
3889         else
3890           PROG_NAME=bash
3891         fi
3892         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3893 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3894         as_fn_error $? "Cannot continue" "$LINENO" 5
3895     fi
3896 
3897 
3898 
3899     for ac_prog in cat
3900 do
3901   # Extract the first word of "$ac_prog", so it can be a program name with args.
3902 set dummy $ac_prog; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if test "${ac_cv_path_CAT+set}" = set; then :
3906   $as_echo_n "(cached) " >&6
3907 else
3908   case $CAT in
3909   [\\/]* | ?:[\\/]*)
3910   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3911   ;;
3912   *)
3913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916   IFS=$as_save_IFS
3917   test -z "$as_dir" && as_dir=.
3918     for ac_exec_ext in '' $ac_executable_extensions; do
3919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3920     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922     break 2
3923   fi
3924 done
3925   done


3944 
3945     if test "x$CAT" = x; then
3946         if test "xcat" = x; then
3947           PROG_NAME=cat
3948         else
3949           PROG_NAME=cat
3950         fi
3951         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3952 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3953         as_fn_error $? "Cannot continue" "$LINENO" 5
3954     fi
3955 
3956 
3957 
3958     for ac_prog in chmod
3959 do
3960   # Extract the first word of "$ac_prog", so it can be a program name with args.
3961 set dummy $ac_prog; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if test "${ac_cv_path_CHMOD+set}" = set; then :
3965   $as_echo_n "(cached) " >&6
3966 else
3967   case $CHMOD in
3968   [\\/]* | ?:[\\/]*)
3969   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3970   ;;
3971   *)
3972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977     for ac_exec_ext in '' $ac_executable_extensions; do
3978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981     break 2
3982   fi
3983 done
3984   done


4003 
4004     if test "x$CHMOD" = x; then
4005         if test "xchmod" = x; then
4006           PROG_NAME=chmod
4007         else
4008           PROG_NAME=chmod
4009         fi
4010         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4011 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4012         as_fn_error $? "Cannot continue" "$LINENO" 5
4013     fi
4014 
4015 
4016 
4017     for ac_prog in cmp
4018 do
4019   # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_path_CMP+set}" = set; then :
4024   $as_echo_n "(cached) " >&6
4025 else
4026   case $CMP in
4027   [\\/]* | ?:[\\/]*)
4028   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4029   ;;
4030   *)
4031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034   IFS=$as_save_IFS
4035   test -z "$as_dir" && as_dir=.
4036     for ac_exec_ext in '' $ac_executable_extensions; do
4037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040     break 2
4041   fi
4042 done
4043   done


4062 
4063     if test "x$CMP" = x; then
4064         if test "xcmp" = x; then
4065           PROG_NAME=cmp
4066         else
4067           PROG_NAME=cmp
4068         fi
4069         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4070 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4071         as_fn_error $? "Cannot continue" "$LINENO" 5
4072     fi
4073 
4074 
4075 
4076     for ac_prog in comm
4077 do
4078   # Extract the first word of "$ac_prog", so it can be a program name with args.
4079 set dummy $ac_prog; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if test "${ac_cv_path_COMM+set}" = set; then :
4083   $as_echo_n "(cached) " >&6
4084 else
4085   case $COMM in
4086   [\\/]* | ?:[\\/]*)
4087   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4088   ;;
4089   *)
4090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095     for ac_exec_ext in '' $ac_executable_extensions; do
4096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4097     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099     break 2
4100   fi
4101 done
4102   done


4121 
4122     if test "x$COMM" = x; then
4123         if test "xcomm" = x; then
4124           PROG_NAME=comm
4125         else
4126           PROG_NAME=comm
4127         fi
4128         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4129 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4130         as_fn_error $? "Cannot continue" "$LINENO" 5
4131     fi
4132 
4133 
4134 
4135     for ac_prog in cp
4136 do
4137   # Extract the first word of "$ac_prog", so it can be a program name with args.
4138 set dummy $ac_prog; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if test "${ac_cv_path_CP+set}" = set; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   case $CP in
4145   [\\/]* | ?:[\\/]*)
4146   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4147   ;;
4148   *)
4149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154     for ac_exec_ext in '' $ac_executable_extensions; do
4155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161   done


4180 
4181     if test "x$CP" = x; then
4182         if test "xcp" = x; then
4183           PROG_NAME=cp
4184         else
4185           PROG_NAME=cp
4186         fi
4187         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4188 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4189         as_fn_error $? "Cannot continue" "$LINENO" 5
4190     fi
4191 
4192 
4193 
4194     for ac_prog in cpio
4195 do
4196   # Extract the first word of "$ac_prog", so it can be a program name with args.
4197 set dummy $ac_prog; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_path_CPIO+set}" = set; then :
4201   $as_echo_n "(cached) " >&6
4202 else
4203   case $CPIO in
4204   [\\/]* | ?:[\\/]*)
4205   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4206   ;;
4207   *)
4208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213     for ac_exec_ext in '' $ac_executable_extensions; do
4214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217     break 2
4218   fi
4219 done
4220   done


4239 
4240     if test "x$CPIO" = x; then
4241         if test "xcpio" = x; then
4242           PROG_NAME=cpio
4243         else
4244           PROG_NAME=cpio
4245         fi
4246         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4247 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4248         as_fn_error $? "Cannot continue" "$LINENO" 5
4249     fi
4250 
4251 
4252 
4253     for ac_prog in cut
4254 do
4255   # Extract the first word of "$ac_prog", so it can be a program name with args.
4256 set dummy $ac_prog; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if test "${ac_cv_path_CUT+set}" = set; then :
4260   $as_echo_n "(cached) " >&6
4261 else
4262   case $CUT in
4263   [\\/]* | ?:[\\/]*)
4264   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4265   ;;
4266   *)
4267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272     for ac_exec_ext in '' $ac_executable_extensions; do
4273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4274     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276     break 2
4277   fi
4278 done
4279   done


4298 
4299     if test "x$CUT" = x; then
4300         if test "xcut" = x; then
4301           PROG_NAME=cut
4302         else
4303           PROG_NAME=cut
4304         fi
4305         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4306 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4307         as_fn_error $? "Cannot continue" "$LINENO" 5
4308     fi
4309 
4310 
4311 
4312     for ac_prog in date
4313 do
4314   # Extract the first word of "$ac_prog", so it can be a program name with args.
4315 set dummy $ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if test "${ac_cv_path_DATE+set}" = set; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   case $DATE in
4322   [\\/]* | ?:[\\/]*)
4323   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4324   ;;
4325   *)
4326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331     for ac_exec_ext in '' $ac_executable_extensions; do
4332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338   done


4357 
4358     if test "x$DATE" = x; then
4359         if test "xdate" = x; then
4360           PROG_NAME=date
4361         else
4362           PROG_NAME=date
4363         fi
4364         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4365 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4366         as_fn_error $? "Cannot continue" "$LINENO" 5
4367     fi
4368 
4369 
4370 
4371     for ac_prog in gdiff diff
4372 do
4373   # Extract the first word of "$ac_prog", so it can be a program name with args.
4374 set dummy $ac_prog; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if test "${ac_cv_path_DIFF+set}" = set; then :
4378   $as_echo_n "(cached) " >&6
4379 else
4380   case $DIFF in
4381   [\\/]* | ?:[\\/]*)
4382   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4383   ;;
4384   *)
4385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4387 do
4388   IFS=$as_save_IFS
4389   test -z "$as_dir" && as_dir=.
4390     for ac_exec_ext in '' $ac_executable_extensions; do
4391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394     break 2
4395   fi
4396 done
4397   done


4416 
4417     if test "x$DIFF" = x; then
4418         if test "xgdiff diff" = x; then
4419           PROG_NAME=diff
4420         else
4421           PROG_NAME=gdiff diff
4422         fi
4423         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4424 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4425         as_fn_error $? "Cannot continue" "$LINENO" 5
4426     fi
4427 
4428 
4429 
4430     for ac_prog in dirname
4431 do
4432   # Extract the first word of "$ac_prog", so it can be a program name with args.
4433 set dummy $ac_prog; ac_word=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if test "${ac_cv_path_DIRNAME+set}" = set; then :
4437   $as_echo_n "(cached) " >&6
4438 else
4439   case $DIRNAME in
4440   [\\/]* | ?:[\\/]*)
4441   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4442   ;;
4443   *)
4444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449     for ac_exec_ext in '' $ac_executable_extensions; do
4450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456   done


4475 
4476     if test "x$DIRNAME" = x; then
4477         if test "xdirname" = x; then
4478           PROG_NAME=dirname
4479         else
4480           PROG_NAME=dirname
4481         fi
4482         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4483 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4484         as_fn_error $? "Cannot continue" "$LINENO" 5
4485     fi
4486 
4487 
4488 
4489     for ac_prog in echo
4490 do
4491   # Extract the first word of "$ac_prog", so it can be a program name with args.
4492 set dummy $ac_prog; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if test "${ac_cv_path_ECHO+set}" = set; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   case $ECHO in
4499   [\\/]* | ?:[\\/]*)
4500   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4501   ;;
4502   *)
4503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508     for ac_exec_ext in '' $ac_executable_extensions; do
4509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512     break 2
4513   fi
4514 done
4515   done


4534 
4535     if test "x$ECHO" = x; then
4536         if test "xecho" = x; then
4537           PROG_NAME=echo
4538         else
4539           PROG_NAME=echo
4540         fi
4541         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4542 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4543         as_fn_error $? "Cannot continue" "$LINENO" 5
4544     fi
4545 
4546 
4547 
4548     for ac_prog in expr
4549 do
4550   # Extract the first word of "$ac_prog", so it can be a program name with args.
4551 set dummy $ac_prog; ac_word=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if test "${ac_cv_path_EXPR+set}" = set; then :
4555   $as_echo_n "(cached) " >&6
4556 else
4557   case $EXPR in
4558   [\\/]* | ?:[\\/]*)
4559   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4560   ;;
4561   *)
4562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567     for ac_exec_ext in '' $ac_executable_extensions; do
4568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571     break 2
4572   fi
4573 done
4574   done


4593 
4594     if test "x$EXPR" = x; then
4595         if test "xexpr" = x; then
4596           PROG_NAME=expr
4597         else
4598           PROG_NAME=expr
4599         fi
4600         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4601 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4602         as_fn_error $? "Cannot continue" "$LINENO" 5
4603     fi
4604 
4605 
4606 
4607     for ac_prog in file
4608 do
4609   # Extract the first word of "$ac_prog", so it can be a program name with args.
4610 set dummy $ac_prog; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if test "${ac_cv_path_FILE+set}" = set; then :
4614   $as_echo_n "(cached) " >&6
4615 else
4616   case $FILE in
4617   [\\/]* | ?:[\\/]*)
4618   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4619   ;;
4620   *)
4621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_exec_ext in '' $ac_executable_extensions; do
4627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630     break 2
4631   fi
4632 done
4633   done


4652 
4653     if test "x$FILE" = x; then
4654         if test "xfile" = x; then
4655           PROG_NAME=file
4656         else
4657           PROG_NAME=file
4658         fi
4659         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4660 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4661         as_fn_error $? "Cannot continue" "$LINENO" 5
4662     fi
4663 
4664 
4665 
4666     for ac_prog in find
4667 do
4668   # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if test "${ac_cv_path_FIND+set}" = set; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   case $FIND in
4676   [\\/]* | ?:[\\/]*)
4677   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4678   ;;
4679   *)
4680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685     for ac_exec_ext in '' $ac_executable_extensions; do
4686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689     break 2
4690   fi
4691 done
4692   done


4711 
4712     if test "x$FIND" = x; then
4713         if test "xfind" = x; then
4714           PROG_NAME=find
4715         else
4716           PROG_NAME=find
4717         fi
4718         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4719 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4720         as_fn_error $? "Cannot continue" "$LINENO" 5
4721     fi
4722 
4723 
4724 
4725     for ac_prog in head
4726 do
4727   # Extract the first word of "$ac_prog", so it can be a program name with args.
4728 set dummy $ac_prog; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if test "${ac_cv_path_HEAD+set}" = set; then :
4732   $as_echo_n "(cached) " >&6
4733 else
4734   case $HEAD in
4735   [\\/]* | ?:[\\/]*)
4736   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4737   ;;
4738   *)
4739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742   IFS=$as_save_IFS
4743   test -z "$as_dir" && as_dir=.
4744     for ac_exec_ext in '' $ac_executable_extensions; do
4745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748     break 2
4749   fi
4750 done
4751   done


4770 
4771     if test "x$HEAD" = x; then
4772         if test "xhead" = x; then
4773           PROG_NAME=head
4774         else
4775           PROG_NAME=head
4776         fi
4777         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4778 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4779         as_fn_error $? "Cannot continue" "$LINENO" 5
4780     fi
4781 
4782 
4783 
4784     for ac_prog in ln
4785 do
4786   # Extract the first word of "$ac_prog", so it can be a program name with args.
4787 set dummy $ac_prog; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if test "${ac_cv_path_LN+set}" = set; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   case $LN in
4794   [\\/]* | ?:[\\/]*)
4795   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4796   ;;
4797   *)
4798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803     for ac_exec_ext in '' $ac_executable_extensions; do
4804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807     break 2
4808   fi
4809 done
4810   done


4829 
4830     if test "x$LN" = x; then
4831         if test "xln" = x; then
4832           PROG_NAME=ln
4833         else
4834           PROG_NAME=ln
4835         fi
4836         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4837 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4838         as_fn_error $? "Cannot continue" "$LINENO" 5
4839     fi
4840 
4841 
4842 
4843     for ac_prog in ls
4844 do
4845   # Extract the first word of "$ac_prog", so it can be a program name with args.
4846 set dummy $ac_prog; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_path_LS+set}" = set; then :
4850   $as_echo_n "(cached) " >&6
4851 else
4852   case $LS in
4853   [\\/]* | ?:[\\/]*)
4854   ac_cv_path_LS="$LS" # Let the user override the test with a path.
4855   ;;
4856   *)
4857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862     for ac_exec_ext in '' $ac_executable_extensions; do
4863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869   done


4888 
4889     if test "x$LS" = x; then
4890         if test "xls" = x; then
4891           PROG_NAME=ls
4892         else
4893           PROG_NAME=ls
4894         fi
4895         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4896 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4897         as_fn_error $? "Cannot continue" "$LINENO" 5
4898     fi
4899 
4900 
4901 
4902     for ac_prog in mkdir
4903 do
4904   # Extract the first word of "$ac_prog", so it can be a program name with args.
4905 set dummy $ac_prog; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if test "${ac_cv_path_MKDIR+set}" = set; then :
4909   $as_echo_n "(cached) " >&6
4910 else
4911   case $MKDIR in
4912   [\\/]* | ?:[\\/]*)
4913   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4914   ;;
4915   *)
4916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919   IFS=$as_save_IFS
4920   test -z "$as_dir" && as_dir=.
4921     for ac_exec_ext in '' $ac_executable_extensions; do
4922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925     break 2
4926   fi
4927 done
4928   done


4947 
4948     if test "x$MKDIR" = x; then
4949         if test "xmkdir" = x; then
4950           PROG_NAME=mkdir
4951         else
4952           PROG_NAME=mkdir
4953         fi
4954         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4955 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4956         as_fn_error $? "Cannot continue" "$LINENO" 5
4957     fi
4958 
4959 
4960 
4961     for ac_prog in mktemp
4962 do
4963   # Extract the first word of "$ac_prog", so it can be a program name with args.
4964 set dummy $ac_prog; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if test "${ac_cv_path_MKTEMP+set}" = set; then :
4968   $as_echo_n "(cached) " >&6
4969 else
4970   case $MKTEMP in
4971   [\\/]* | ?:[\\/]*)
4972   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
4973   ;;
4974   *)
4975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980     for ac_exec_ext in '' $ac_executable_extensions; do
4981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
4983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984     break 2
4985   fi
4986 done
4987   done


5006 
5007     if test "x$MKTEMP" = x; then
5008         if test "xmktemp" = x; then
5009           PROG_NAME=mktemp
5010         else
5011           PROG_NAME=mktemp
5012         fi
5013         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5014 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5015         as_fn_error $? "Cannot continue" "$LINENO" 5
5016     fi
5017 
5018 
5019 
5020     for ac_prog in mv
5021 do
5022   # Extract the first word of "$ac_prog", so it can be a program name with args.
5023 set dummy $ac_prog; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_path_MV+set}" = set; then :
5027   $as_echo_n "(cached) " >&6
5028 else
5029   case $MV in
5030   [\\/]* | ?:[\\/]*)
5031   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5032   ;;
5033   *)
5034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039     for ac_exec_ext in '' $ac_executable_extensions; do
5040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043     break 2
5044   fi
5045 done
5046   done


5065 
5066     if test "x$MV" = x; then
5067         if test "xmv" = x; then
5068           PROG_NAME=mv
5069         else
5070           PROG_NAME=mv
5071         fi
5072         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5073 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5074         as_fn_error $? "Cannot continue" "$LINENO" 5
5075     fi
5076 
5077 
5078 
5079     for ac_prog in printf
5080 do
5081   # Extract the first word of "$ac_prog", so it can be a program name with args.
5082 set dummy $ac_prog; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if test "${ac_cv_path_PRINTF+set}" = set; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   case $PRINTF in
5089   [\\/]* | ?:[\\/]*)
5090   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5091   ;;
5092   *)
5093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098     for ac_exec_ext in '' $ac_executable_extensions; do
5099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102     break 2
5103   fi
5104 done
5105   done


5124 
5125     if test "x$PRINTF" = x; then
5126         if test "xprintf" = x; then
5127           PROG_NAME=printf
5128         else
5129           PROG_NAME=printf
5130         fi
5131         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5132 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5133         as_fn_error $? "Cannot continue" "$LINENO" 5
5134     fi
5135 
5136 
5137 
5138     for ac_prog in pwd
5139 do
5140   # Extract the first word of "$ac_prog", so it can be a program name with args.
5141 set dummy $ac_prog; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_path_THEPWDCMD+set}" = set; then :
5145   $as_echo_n "(cached) " >&6
5146 else
5147   case $THEPWDCMD in
5148   [\\/]* | ?:[\\/]*)
5149   ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path.
5150   ;;
5151   *)
5152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155   IFS=$as_save_IFS
5156   test -z "$as_dir" && as_dir=.
5157     for ac_exec_ext in '' $ac_executable_extensions; do
5158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159     ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext"
5160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161     break 2
5162   fi
5163 done
5164   done


5183 
5184     if test "x$THEPWDCMD" = x; then
5185         if test "xpwd" = x; then
5186           PROG_NAME=thepwdcmd
5187         else
5188           PROG_NAME=pwd
5189         fi
5190         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5191 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5192         as_fn_error $? "Cannot continue" "$LINENO" 5
5193     fi
5194 
5195 
5196 
5197     for ac_prog in rm
5198 do
5199   # Extract the first word of "$ac_prog", so it can be a program name with args.
5200 set dummy $ac_prog; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if test "${ac_cv_path_RM+set}" = set; then :
5204   $as_echo_n "(cached) " >&6
5205 else
5206   case $RM in
5207   [\\/]* | ?:[\\/]*)
5208   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5209   ;;
5210   *)
5211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214   IFS=$as_save_IFS
5215   test -z "$as_dir" && as_dir=.
5216     for ac_exec_ext in '' $ac_executable_extensions; do
5217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220     break 2
5221   fi
5222 done
5223   done


5242 
5243     if test "x$RM" = x; then
5244         if test "xrm" = x; then
5245           PROG_NAME=rm
5246         else
5247           PROG_NAME=rm
5248         fi
5249         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5250 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5251         as_fn_error $? "Cannot continue" "$LINENO" 5
5252     fi
5253 
5254 
5255 
5256     for ac_prog in sh
5257 do
5258   # Extract the first word of "$ac_prog", so it can be a program name with args.
5259 set dummy $ac_prog; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_path_SH+set}" = set; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   case $SH in
5266   [\\/]* | ?:[\\/]*)
5267   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5268   ;;
5269   *)
5270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275     for ac_exec_ext in '' $ac_executable_extensions; do
5276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282   done


5301 
5302     if test "x$SH" = x; then
5303         if test "xsh" = x; then
5304           PROG_NAME=sh
5305         else
5306           PROG_NAME=sh
5307         fi
5308         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5309 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5310         as_fn_error $? "Cannot continue" "$LINENO" 5
5311     fi
5312 
5313 
5314 
5315     for ac_prog in sort
5316 do
5317   # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if test "${ac_cv_path_SORT+set}" = set; then :
5322   $as_echo_n "(cached) " >&6
5323 else
5324   case $SORT in
5325   [\\/]* | ?:[\\/]*)
5326   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5327   ;;
5328   *)
5329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334     for ac_exec_ext in '' $ac_executable_extensions; do
5335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341   done


5360 
5361     if test "x$SORT" = x; then
5362         if test "xsort" = x; then
5363           PROG_NAME=sort
5364         else
5365           PROG_NAME=sort
5366         fi
5367         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5368 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5369         as_fn_error $? "Cannot continue" "$LINENO" 5
5370     fi
5371 
5372 
5373 
5374     for ac_prog in tail
5375 do
5376   # Extract the first word of "$ac_prog", so it can be a program name with args.
5377 set dummy $ac_prog; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_path_TAIL+set}" = set; then :
5381   $as_echo_n "(cached) " >&6
5382 else
5383   case $TAIL in
5384   [\\/]* | ?:[\\/]*)
5385   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5386   ;;
5387   *)
5388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393     for ac_exec_ext in '' $ac_executable_extensions; do
5394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397     break 2
5398   fi
5399 done
5400   done


5419 
5420     if test "x$TAIL" = x; then
5421         if test "xtail" = x; then
5422           PROG_NAME=tail
5423         else
5424           PROG_NAME=tail
5425         fi
5426         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5427 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5428         as_fn_error $? "Cannot continue" "$LINENO" 5
5429     fi
5430 
5431 
5432 
5433     for ac_prog in tar
5434 do
5435   # Extract the first word of "$ac_prog", so it can be a program name with args.
5436 set dummy $ac_prog; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if test "${ac_cv_path_TAR+set}" = set; then :
5440   $as_echo_n "(cached) " >&6
5441 else
5442   case $TAR in
5443   [\\/]* | ?:[\\/]*)
5444   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5445   ;;
5446   *)
5447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452     for ac_exec_ext in '' $ac_executable_extensions; do
5453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456     break 2
5457   fi
5458 done
5459   done


5478 
5479     if test "x$TAR" = x; then
5480         if test "xtar" = x; then
5481           PROG_NAME=tar
5482         else
5483           PROG_NAME=tar
5484         fi
5485         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5486 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5487         as_fn_error $? "Cannot continue" "$LINENO" 5
5488     fi
5489 
5490 
5491 
5492     for ac_prog in tee
5493 do
5494   # Extract the first word of "$ac_prog", so it can be a program name with args.
5495 set dummy $ac_prog; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_path_TEE+set}" = set; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   case $TEE in
5502   [\\/]* | ?:[\\/]*)
5503   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5504   ;;
5505   *)
5506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509   IFS=$as_save_IFS
5510   test -z "$as_dir" && as_dir=.
5511     for ac_exec_ext in '' $ac_executable_extensions; do
5512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515     break 2
5516   fi
5517 done
5518   done


5537 
5538     if test "x$TEE" = x; then
5539         if test "xtee" = x; then
5540           PROG_NAME=tee
5541         else
5542           PROG_NAME=tee
5543         fi
5544         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5545 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5546         as_fn_error $? "Cannot continue" "$LINENO" 5
5547     fi
5548 
5549 
5550 
5551     for ac_prog in touch
5552 do
5553   # Extract the first word of "$ac_prog", so it can be a program name with args.
5554 set dummy $ac_prog; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_path_TOUCH+set}" = set; then :
5558   $as_echo_n "(cached) " >&6
5559 else
5560   case $TOUCH in
5561   [\\/]* | ?:[\\/]*)
5562   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5563   ;;
5564   *)
5565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568   IFS=$as_save_IFS
5569   test -z "$as_dir" && as_dir=.
5570     for ac_exec_ext in '' $ac_executable_extensions; do
5571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574     break 2
5575   fi
5576 done
5577   done


5596 
5597     if test "x$TOUCH" = x; then
5598         if test "xtouch" = x; then
5599           PROG_NAME=touch
5600         else
5601           PROG_NAME=touch
5602         fi
5603         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5604 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5605         as_fn_error $? "Cannot continue" "$LINENO" 5
5606     fi
5607 
5608 
5609 
5610     for ac_prog in tr
5611 do
5612   # Extract the first word of "$ac_prog", so it can be a program name with args.
5613 set dummy $ac_prog; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if test "${ac_cv_path_TR+set}" = set; then :
5617   $as_echo_n "(cached) " >&6
5618 else
5619   case $TR in
5620   [\\/]* | ?:[\\/]*)
5621   ac_cv_path_TR="$TR" # Let the user override the test with a path.
5622   ;;
5623   *)
5624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627   IFS=$as_save_IFS
5628   test -z "$as_dir" && as_dir=.
5629     for ac_exec_ext in '' $ac_executable_extensions; do
5630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633     break 2
5634   fi
5635 done
5636   done


5655 
5656     if test "x$TR" = x; then
5657         if test "xtr" = x; then
5658           PROG_NAME=tr
5659         else
5660           PROG_NAME=tr
5661         fi
5662         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5663 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5664         as_fn_error $? "Cannot continue" "$LINENO" 5
5665     fi
5666 
5667 
5668 
5669     for ac_prog in uname
5670 do
5671   # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy $ac_prog; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if test "${ac_cv_path_UNAME+set}" = set; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   case $UNAME in
5679   [\\/]* | ?:[\\/]*)
5680   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5681   ;;
5682   *)
5683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686   IFS=$as_save_IFS
5687   test -z "$as_dir" && as_dir=.
5688     for ac_exec_ext in '' $ac_executable_extensions; do
5689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692     break 2
5693   fi
5694 done
5695   done


5714 
5715     if test "x$UNAME" = x; then
5716         if test "xuname" = x; then
5717           PROG_NAME=uname
5718         else
5719           PROG_NAME=uname
5720         fi
5721         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5722 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5723         as_fn_error $? "Cannot continue" "$LINENO" 5
5724     fi
5725 
5726 
5727 
5728     for ac_prog in uniq
5729 do
5730   # Extract the first word of "$ac_prog", so it can be a program name with args.
5731 set dummy $ac_prog; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_path_UNIQ+set}" = set; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   case $UNIQ in
5738   [\\/]* | ?:[\\/]*)
5739   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5740   ;;
5741   *)
5742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747     for ac_exec_ext in '' $ac_executable_extensions; do
5748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754   done


5773 
5774     if test "x$UNIQ" = x; then
5775         if test "xuniq" = x; then
5776           PROG_NAME=uniq
5777         else
5778           PROG_NAME=uniq
5779         fi
5780         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5781 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5782         as_fn_error $? "Cannot continue" "$LINENO" 5
5783     fi
5784 
5785 
5786 
5787     for ac_prog in wc
5788 do
5789   # Extract the first word of "$ac_prog", so it can be a program name with args.
5790 set dummy $ac_prog; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if test "${ac_cv_path_WC+set}" = set; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   case $WC in
5797   [\\/]* | ?:[\\/]*)
5798   ac_cv_path_WC="$WC" # Let the user override the test with a path.
5799   ;;
5800   *)
5801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804   IFS=$as_save_IFS
5805   test -z "$as_dir" && as_dir=.
5806     for ac_exec_ext in '' $ac_executable_extensions; do
5807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5808     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810     break 2
5811   fi
5812 done
5813   done


5832 
5833     if test "x$WC" = x; then
5834         if test "xwc" = x; then
5835           PROG_NAME=wc
5836         else
5837           PROG_NAME=wc
5838         fi
5839         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5840 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5841         as_fn_error $? "Cannot continue" "$LINENO" 5
5842     fi
5843 
5844 
5845 
5846     for ac_prog in which
5847 do
5848   # Extract the first word of "$ac_prog", so it can be a program name with args.
5849 set dummy $ac_prog; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if test "${ac_cv_path_WHICH+set}" = set; then :
5853   $as_echo_n "(cached) " >&6
5854 else
5855   case $WHICH in
5856   [\\/]* | ?:[\\/]*)
5857   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5858   ;;
5859   *)
5860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863   IFS=$as_save_IFS
5864   test -z "$as_dir" && as_dir=.
5865     for ac_exec_ext in '' $ac_executable_extensions; do
5866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869     break 2
5870   fi
5871 done
5872   done


5891 
5892     if test "x$WHICH" = x; then
5893         if test "xwhich" = x; then
5894           PROG_NAME=which
5895         else
5896           PROG_NAME=which
5897         fi
5898         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5899 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5900         as_fn_error $? "Cannot continue" "$LINENO" 5
5901     fi
5902 
5903 
5904 
5905     for ac_prog in xargs
5906 do
5907   # Extract the first word of "$ac_prog", so it can be a program name with args.
5908 set dummy $ac_prog; ac_word=$2
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if test "${ac_cv_path_XARGS+set}" = set; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   case $XARGS in
5915   [\\/]* | ?:[\\/]*)
5916   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5917   ;;
5918   *)
5919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922   IFS=$as_save_IFS
5923   test -z "$as_dir" && as_dir=.
5924     for ac_exec_ext in '' $ac_executable_extensions; do
5925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5926     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928     break 2
5929   fi
5930 done
5931   done


5951     if test "x$XARGS" = x; then
5952         if test "xxargs" = x; then
5953           PROG_NAME=xargs
5954         else
5955           PROG_NAME=xargs
5956         fi
5957         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5958 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5959         as_fn_error $? "Cannot continue" "$LINENO" 5
5960     fi
5961 
5962 
5963 
5964 # Then required tools that require some special treatment.
5965 for ac_prog in gawk mawk nawk awk
5966 do
5967   # Extract the first word of "$ac_prog", so it can be a program name with args.
5968 set dummy $ac_prog; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if test "${ac_cv_prog_AWK+set}" = set; then :
5972   $as_echo_n "(cached) " >&6
5973 else
5974   if test -n "$AWK"; then
5975   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980   IFS=$as_save_IFS
5981   test -z "$as_dir" && as_dir=.
5982     for ac_exec_ext in '' $ac_executable_extensions; do
5983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984     ac_cv_prog_AWK="$ac_prog"
5985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986     break 2
5987   fi
5988 done
5989   done
5990 IFS=$as_save_IFS
5991 


6001 fi
6002 
6003 
6004   test -n "$AWK" && break
6005 done
6006 
6007 
6008     if test "x$AWK" = x; then
6009         if test "x" = x; then
6010           PROG_NAME=awk
6011         else
6012           PROG_NAME=
6013         fi
6014         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6015 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6016         as_fn_error $? "Cannot continue" "$LINENO" 5
6017     fi
6018 
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6020 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6021 if test "${ac_cv_path_GREP+set}" = set; then :
6022   $as_echo_n "(cached) " >&6
6023 else
6024   if test -z "$GREP"; then
6025   ac_path_GREP_found=false
6026   # Loop through the user's path and test for each of PROGNAME-LIST
6027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6029 do
6030   IFS=$as_save_IFS
6031   test -z "$as_dir" && as_dir=.
6032     for ac_prog in grep ggrep; do
6033     for ac_exec_ext in '' $ac_executable_extensions; do
6034       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6035       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6036 # Check for GNU ac_path_GREP and select it if it is found.
6037   # Check for GNU $ac_path_GREP
6038 case `"$ac_path_GREP" --version 2>&1` in
6039 *GNU*)
6040   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6041 *)


6076 fi
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6078 $as_echo "$ac_cv_path_GREP" >&6; }
6079  GREP="$ac_cv_path_GREP"
6080 
6081 
6082 
6083     if test "x$GREP" = x; then
6084         if test "x" = x; then
6085           PROG_NAME=grep
6086         else
6087           PROG_NAME=
6088         fi
6089         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6090 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6091         as_fn_error $? "Cannot continue" "$LINENO" 5
6092     fi
6093 
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6095 $as_echo_n "checking for egrep... " >&6; }
6096 if test "${ac_cv_path_EGREP+set}" = set; then :
6097   $as_echo_n "(cached) " >&6
6098 else
6099   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6100    then ac_cv_path_EGREP="$GREP -E"
6101    else
6102      if test -z "$EGREP"; then
6103   ac_path_EGREP_found=false
6104   # Loop through the user's path and test for each of PROGNAME-LIST
6105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6107 do
6108   IFS=$as_save_IFS
6109   test -z "$as_dir" && as_dir=.
6110     for ac_prog in egrep; do
6111     for ac_exec_ext in '' $ac_executable_extensions; do
6112       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6113       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6114 # Check for GNU ac_path_EGREP and select it if it is found.
6115   # Check for GNU $ac_path_EGREP
6116 case `"$ac_path_EGREP" --version 2>&1` in


6155 fi
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6157 $as_echo "$ac_cv_path_EGREP" >&6; }
6158  EGREP="$ac_cv_path_EGREP"
6159 
6160 
6161 
6162     if test "x$EGREP" = x; then
6163         if test "x" = x; then
6164           PROG_NAME=egrep
6165         else
6166           PROG_NAME=
6167         fi
6168         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6169 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6170         as_fn_error $? "Cannot continue" "$LINENO" 5
6171     fi
6172 
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6174 $as_echo_n "checking for fgrep... " >&6; }
6175 if test "${ac_cv_path_FGREP+set}" = set; then :
6176   $as_echo_n "(cached) " >&6
6177 else
6178   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6179    then ac_cv_path_FGREP="$GREP -F"
6180    else
6181      if test -z "$FGREP"; then
6182   ac_path_FGREP_found=false
6183   # Loop through the user's path and test for each of PROGNAME-LIST
6184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189     for ac_prog in fgrep; do
6190     for ac_exec_ext in '' $ac_executable_extensions; do
6191       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6192       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6193 # Check for GNU ac_path_FGREP and select it if it is found.
6194   # Check for GNU $ac_path_FGREP
6195 case `"$ac_path_FGREP" --version 2>&1` in


6234 fi
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6236 $as_echo "$ac_cv_path_FGREP" >&6; }
6237  FGREP="$ac_cv_path_FGREP"
6238 
6239 
6240 
6241     if test "x$FGREP" = x; then
6242         if test "x" = x; then
6243           PROG_NAME=fgrep
6244         else
6245           PROG_NAME=
6246         fi
6247         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6248 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6249         as_fn_error $? "Cannot continue" "$LINENO" 5
6250     fi
6251 
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6253 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6254 if test "${ac_cv_path_SED+set}" = set; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6258      for ac_i in 1 2 3 4 5 6 7; do
6259        ac_script="$ac_script$as_nl$ac_script"
6260      done
6261      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6262      { ac_script=; unset ac_script;}
6263      if test -z "$SED"; then
6264   ac_path_SED_found=false
6265   # Loop through the user's path and test for each of PROGNAME-LIST
6266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269   IFS=$as_save_IFS
6270   test -z "$as_dir" && as_dir=.
6271     for ac_prog in sed gsed; do
6272     for ac_exec_ext in '' $ac_executable_extensions; do
6273       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6274       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue


6320 
6321 
6322     if test "x$SED" = x; then
6323         if test "x" = x; then
6324           PROG_NAME=sed
6325         else
6326           PROG_NAME=
6327         fi
6328         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6329 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6330         as_fn_error $? "Cannot continue" "$LINENO" 5
6331     fi
6332 
6333 
6334 for ac_prog in nawk gawk awk
6335 do
6336   # Extract the first word of "$ac_prog", so it can be a program name with args.
6337 set dummy $ac_prog; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_path_NAWK+set}" = set; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   case $NAWK in
6344   [\\/]* | ?:[\\/]*)
6345   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
6346   ;;
6347   *)
6348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351   IFS=$as_save_IFS
6352   test -z "$as_dir" && as_dir=.
6353     for ac_exec_ext in '' $ac_executable_extensions; do
6354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
6356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357     break 2
6358   fi
6359 done
6360   done


6380     if test "x$NAWK" = x; then
6381         if test "x" = x; then
6382           PROG_NAME=nawk
6383         else
6384           PROG_NAME=
6385         fi
6386         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6387 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6388         as_fn_error $? "Cannot continue" "$LINENO" 5
6389     fi
6390 
6391 
6392 # Always force rm.
6393 RM="$RM -f"
6394 
6395 # These are not required on all platforms
6396 # Extract the first word of "cygpath", so it can be a program name with args.
6397 set dummy cygpath; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if test "${ac_cv_path_CYGPATH+set}" = set; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   case $CYGPATH in
6404   [\\/]* | ?:[\\/]*)
6405   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6406   ;;
6407   *)
6408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411   IFS=$as_save_IFS
6412   test -z "$as_dir" && as_dir=.
6413     for ac_exec_ext in '' $ac_executable_extensions; do
6414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417     break 2
6418   fi
6419 done
6420   done
6421 IFS=$as_save_IFS
6422 
6423   ;;
6424 esac
6425 fi
6426 CYGPATH=$ac_cv_path_CYGPATH
6427 if test -n "$CYGPATH"; then
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6429 $as_echo "$CYGPATH" >&6; }
6430 else
6431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434 
6435 
6436 # Extract the first word of "readlink", so it can be a program name with args.
6437 set dummy readlink; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_path_READLINK+set}" = set; then :
6441   $as_echo_n "(cached) " >&6
6442 else
6443   case $READLINK in
6444   [\\/]* | ?:[\\/]*)
6445   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6446   ;;
6447   *)
6448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453     for ac_exec_ext in '' $ac_executable_extensions; do
6454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460   done
6461 IFS=$as_save_IFS
6462 
6463   ;;
6464 esac
6465 fi
6466 READLINK=$ac_cv_path_READLINK
6467 if test -n "$READLINK"; then
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6469 $as_echo "$READLINK" >&6; }
6470 else
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474 
6475 
6476 # Extract the first word of "df", so it can be a program name with args.
6477 set dummy df; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_path_DF+set}" = set; then :
6481   $as_echo_n "(cached) " >&6
6482 else
6483   case $DF in
6484   [\\/]* | ?:[\\/]*)
6485   ac_cv_path_DF="$DF" # Let the user override the test with a path.
6486   ;;
6487   *)
6488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493     for ac_exec_ext in '' $ac_executable_extensions; do
6494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500   done
6501 IFS=$as_save_IFS
6502 
6503   ;;
6504 esac
6505 fi
6506 DF=$ac_cv_path_DF
6507 if test -n "$DF"; then
6508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6509 $as_echo "$DF" >&6; }
6510 else
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514 
6515 
6516 # Extract the first word of "SetFile", so it can be a program name with args.
6517 set dummy SetFile; ac_word=$2
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 $as_echo_n "checking for $ac_word... " >&6; }
6520 if test "${ac_cv_path_SETFILE+set}" = set; then :
6521   $as_echo_n "(cached) " >&6
6522 else
6523   case $SETFILE in
6524   [\\/]* | ?:[\\/]*)
6525   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6526   ;;
6527   *)
6528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533     for ac_exec_ext in '' $ac_executable_extensions; do
6534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6535     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540   done


6546 SETFILE=$ac_cv_path_SETFILE
6547 if test -n "$SETFILE"; then
6548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6549 $as_echo "$SETFILE" >&6; }
6550 else
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6553 fi
6554 
6555 
6556 
6557 
6558 # Now we can determine OpenJDK build and target platforms. This is required to
6559 # have early on.
6560 # Make sure we can run config.sub.
6561 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6562   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6563 
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6565 $as_echo_n "checking build system type... " >&6; }
6566 if test "${ac_cv_build+set}" = set; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   ac_build_alias=$build_alias
6570 test "x$ac_build_alias" = x &&
6571   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6572 test "x$ac_build_alias" = x &&
6573   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6574 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6575   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6576 
6577 fi
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6579 $as_echo "$ac_cv_build" >&6; }
6580 case $ac_cv_build in
6581 *-*-*) ;;
6582 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
6583 esac
6584 build=$ac_cv_build
6585 ac_save_IFS=$IFS; IFS='-'
6586 set x $ac_cv_build
6587 shift
6588 build_cpu=$1
6589 build_vendor=$2
6590 shift; shift
6591 # Remember, the first character of IFS is used to create $*,
6592 # except with old shells:
6593 build_os=$*
6594 IFS=$ac_save_IFS
6595 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6596 
6597 
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6599 $as_echo_n "checking host system type... " >&6; }
6600 if test "${ac_cv_host+set}" = set; then :
6601   $as_echo_n "(cached) " >&6
6602 else
6603   if test "x$host_alias" = x; then
6604   ac_cv_host=$ac_cv_build
6605 else
6606   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6607     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6608 fi
6609 
6610 fi
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6612 $as_echo "$ac_cv_host" >&6; }
6613 case $ac_cv_host in
6614 *-*-*) ;;
6615 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
6616 esac
6617 host=$ac_cv_host
6618 ac_save_IFS=$IFS; IFS='-'
6619 set x $ac_cv_host
6620 shift
6621 host_cpu=$1
6622 host_vendor=$2
6623 shift; shift
6624 # Remember, the first character of IFS is used to create $*,
6625 # except with old shells:
6626 host_os=$*
6627 IFS=$ac_save_IFS
6628 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6629 
6630 
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6632 $as_echo_n "checking target system type... " >&6; }
6633 if test "${ac_cv_target+set}" = set; then :
6634   $as_echo_n "(cached) " >&6
6635 else
6636   if test "x$target_alias" = x; then
6637   ac_cv_target=$ac_cv_host
6638 else
6639   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6640     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6641 fi
6642 
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6645 $as_echo "$ac_cv_target" >&6; }
6646 case $ac_cv_target in
6647 *-*-*) ;;
6648 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
6649 esac
6650 target=$ac_cv_target
6651 ac_save_IFS=$IFS; IFS='-'
6652 set x $ac_cv_target
6653 shift
6654 target_cpu=$1
6655 target_vendor=$2
6656 shift; shift
6657 # Remember, the first character of IFS is used to create $*,
6658 # except with old shells:
6659 target_os=$*
6660 IFS=$ac_save_IFS
6661 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6662 
6663 
6664 # The aliases save the names the user supplied, while $host etc.
6665 # will get canonicalized.
6666 test -n "$target_alias" &&
6667   test "$program_prefix$program_suffix$program_transform_name" = \
6668     NONENONEs,x,x, &&


8094 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8095 
8096 # The generated Makefile knows where the spec.gmk is and where the source is.
8097 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8098 # which will look for generated configurations
8099 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8100 
8101 
8102 # Save the arguments given to us
8103 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8104 
8105 
8106 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8107 
8108     for ac_prog in apt-get yum port pkgutil pkgadd
8109 do
8110   # Extract the first word of "$ac_prog", so it can be a program name with args.
8111 set dummy $ac_prog; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if test "${ac_cv_prog_PKGHANDLER+set}" = set; then :
8115   $as_echo_n "(cached) " >&6
8116 else
8117   if test -n "$PKGHANDLER"; then
8118   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
8119 else
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8122 do
8123   IFS=$as_save_IFS
8124   test -z "$as_dir" && as_dir=.
8125     for ac_exec_ext in '' $ac_executable_extensions; do
8126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127     ac_cv_prog_PKGHANDLER="$ac_prog"
8128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8129     break 2
8130   fi
8131 done
8132   done
8133 IFS=$as_save_IFS
8134 


8459       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8460 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8461     fi
8462 
8463         fi
8464       fi
8465     fi
8466   fi
8467 
8468     if test "x$FOUND_MAKE" = x; then
8469       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
8470     fi
8471   else
8472     # Try our hardest to locate a correct version of GNU make
8473     for ac_prog in gmake
8474 do
8475   # Extract the first word of "$ac_prog", so it can be a program name with args.
8476 set dummy $ac_prog; ac_word=$2
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478 $as_echo_n "checking for $ac_word... " >&6; }
8479 if test "${ac_cv_path_CHECK_GMAKE+set}" = set; then :
8480   $as_echo_n "(cached) " >&6
8481 else
8482   case $CHECK_GMAKE in
8483   [\\/]* | ?:[\\/]*)
8484   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
8485   ;;
8486   *)
8487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in $PATH
8489 do
8490   IFS=$as_save_IFS
8491   test -z "$as_dir" && as_dir=.
8492     for ac_exec_ext in '' $ac_executable_extensions; do
8493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8494     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
8495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496     break 2
8497   fi
8498 done
8499   done


8813 
8814   if test "x$complete" != "x$new_complete"; then
8815       FOUND_MAKE="$new_complete"
8816       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8817 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8818     fi
8819 
8820         fi
8821       fi
8822     fi
8823   fi
8824 
8825 
8826     if test "x$FOUND_MAKE" = x; then
8827       for ac_prog in make
8828 do
8829   # Extract the first word of "$ac_prog", so it can be a program name with args.
8830 set dummy $ac_prog; ac_word=$2
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 $as_echo_n "checking for $ac_word... " >&6; }
8833 if test "${ac_cv_path_CHECK_MAKE+set}" = set; then :
8834   $as_echo_n "(cached) " >&6
8835 else
8836   case $CHECK_MAKE in
8837   [\\/]* | ?:[\\/]*)
8838   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
8839   ;;
8840   *)
8841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8843 do
8844   IFS=$as_save_IFS
8845   test -z "$as_dir" && as_dir=.
8846     for ac_exec_ext in '' $ac_executable_extensions; do
8847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
8849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850     break 2
8851   fi
8852 done
8853   done


9172     fi
9173 
9174         fi
9175       fi
9176     fi
9177   fi
9178 
9179     fi
9180 
9181     if test "x$FOUND_MAKE" = x; then
9182       if test "x$TOOLS_DIR" != x; then
9183         # We have a tools-dir, check that as well before giving up.
9184         OLD_PATH=$PATH
9185         PATH=$TOOLS_DIR:$PATH
9186         for ac_prog in gmake
9187 do
9188   # Extract the first word of "$ac_prog", so it can be a program name with args.
9189 set dummy $ac_prog; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if test "${ac_cv_path_CHECK_TOOLSDIR_GMAKE+set}" = set; then :
9193   $as_echo_n "(cached) " >&6
9194 else
9195   case $CHECK_TOOLSDIR_GMAKE in
9196   [\\/]* | ?:[\\/]*)
9197   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
9198   ;;
9199   *)
9200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in $PATH
9202 do
9203   IFS=$as_save_IFS
9204   test -z "$as_dir" && as_dir=.
9205     for ac_exec_ext in '' $ac_executable_extensions; do
9206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9207     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209     break 2
9210   fi
9211 done
9212   done


9525       fi
9526 
9527   if test "x$complete" != "x$new_complete"; then
9528       FOUND_MAKE="$new_complete"
9529       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9530 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9531     fi
9532 
9533         fi
9534       fi
9535     fi
9536   fi
9537 
9538         if test "x$FOUND_MAKE" = x; then
9539           for ac_prog in make
9540 do
9541   # Extract the first word of "$ac_prog", so it can be a program name with args.
9542 set dummy $ac_prog; ac_word=$2
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9544 $as_echo_n "checking for $ac_word... " >&6; }
9545 if test "${ac_cv_path_CHECK_TOOLSDIR_MAKE+set}" = set; then :
9546   $as_echo_n "(cached) " >&6
9547 else
9548   case $CHECK_TOOLSDIR_MAKE in
9549   [\\/]* | ?:[\\/]*)
9550   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
9551   ;;
9552   *)
9553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9554 for as_dir in $PATH
9555 do
9556   IFS=$as_save_IFS
9557   test -z "$as_dir" && as_dir=.
9558     for ac_exec_ext in '' $ac_executable_extensions; do
9559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9560     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
9561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9562     break 2
9563   fi
9564 done
9565   done


9921         FIND_DELETE="-exec rm \{\} \+"
9922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9924     else
9925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9926 $as_echo "yes" >&6; }
9927     fi
9928     rmdir $DELETEDIR
9929 
9930 
9931 
9932 # These tools might not be installed by default,
9933 # need hint on how to install them.
9934 
9935     for ac_prog in unzip
9936 do
9937   # Extract the first word of "$ac_prog", so it can be a program name with args.
9938 set dummy $ac_prog; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if test "${ac_cv_path_UNZIP+set}" = set; then :
9942   $as_echo_n "(cached) " >&6
9943 else
9944   case $UNZIP in
9945   [\\/]* | ?:[\\/]*)
9946   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
9947   ;;
9948   *)
9949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 for as_dir in $PATH
9951 do
9952   IFS=$as_save_IFS
9953   test -z "$as_dir" && as_dir=.
9954     for ac_exec_ext in '' $ac_executable_extensions; do
9955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9956     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
9957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9958     break 2
9959   fi
9960 done
9961   done


9980 
9981     if test "x$UNZIP" = x; then
9982         if test "xunzip" = x; then
9983           PROG_NAME=unzip
9984         else
9985           PROG_NAME=unzip
9986         fi
9987         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
9988 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
9989         as_fn_error $? "Cannot continue" "$LINENO" 5
9990     fi
9991 
9992 
9993 
9994     for ac_prog in zip
9995 do
9996   # Extract the first word of "$ac_prog", so it can be a program name with args.
9997 set dummy $ac_prog; ac_word=$2
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999 $as_echo_n "checking for $ac_word... " >&6; }
10000 if test "${ac_cv_path_ZIP+set}" = set; then :
10001   $as_echo_n "(cached) " >&6
10002 else
10003   case $ZIP in
10004   [\\/]* | ?:[\\/]*)
10005   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
10006   ;;
10007   *)
10008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009 for as_dir in $PATH
10010 do
10011   IFS=$as_save_IFS
10012   test -z "$as_dir" && as_dir=.
10013     for ac_exec_ext in '' $ac_executable_extensions; do
10014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10015     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
10016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017     break 2
10018   fi
10019 done
10020   done


10039 
10040     if test "x$ZIP" = x; then
10041         if test "xzip" = x; then
10042           PROG_NAME=zip
10043         else
10044           PROG_NAME=zip
10045         fi
10046         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10047 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10048         as_fn_error $? "Cannot continue" "$LINENO" 5
10049     fi
10050 
10051 
10052 
10053 # Non-required basic tools
10054 
10055 # Extract the first word of "ldd", so it can be a program name with args.
10056 set dummy ldd; ac_word=$2
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058 $as_echo_n "checking for $ac_word... " >&6; }
10059 if test "${ac_cv_path_LDD+set}" = set; then :
10060   $as_echo_n "(cached) " >&6
10061 else
10062   case $LDD in
10063   [\\/]* | ?:[\\/]*)
10064   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10065   ;;
10066   *)
10067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068 for as_dir in $PATH
10069 do
10070   IFS=$as_save_IFS
10071   test -z "$as_dir" && as_dir=.
10072     for ac_exec_ext in '' $ac_executable_extensions; do
10073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10074     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10076     break 2
10077   fi
10078 done
10079   done


10085 LDD=$ac_cv_path_LDD
10086 if test -n "$LDD"; then
10087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10088 $as_echo "$LDD" >&6; }
10089 else
10090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10091 $as_echo "no" >&6; }
10092 fi
10093 
10094 
10095 if test "x$LDD" = "x"; then
10096     # List shared lib dependencies is used for
10097     # debug output and checking for forbidden dependencies.
10098     # We can build without it.
10099     LDD="true"
10100 fi
10101 # Extract the first word of "otool", so it can be a program name with args.
10102 set dummy otool; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if test "${ac_cv_path_OTOOL+set}" = set; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108   case $OTOOL in
10109   [\\/]* | ?:[\\/]*)
10110   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10111   ;;
10112   *)
10113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10115 do
10116   IFS=$as_save_IFS
10117   test -z "$as_dir" && as_dir=.
10118     for ac_exec_ext in '' $ac_executable_extensions; do
10119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10120     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122     break 2
10123   fi
10124 done
10125   done


10130 fi
10131 OTOOL=$ac_cv_path_OTOOL
10132 if test -n "$OTOOL"; then
10133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10134 $as_echo "$OTOOL" >&6; }
10135 else
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138 fi
10139 
10140 
10141 if test "x$OTOOL" = "x"; then
10142    OTOOL="true"
10143 fi
10144 for ac_prog in readelf greadelf
10145 do
10146   # Extract the first word of "$ac_prog", so it can be a program name with args.
10147 set dummy $ac_prog; ac_word=$2
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10149 $as_echo_n "checking for $ac_word... " >&6; }
10150 if test "${ac_cv_path_READELF+set}" = set; then :
10151   $as_echo_n "(cached) " >&6
10152 else
10153   case $READELF in
10154   [\\/]* | ?:[\\/]*)
10155   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10156   ;;
10157   *)
10158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159 for as_dir in $PATH
10160 do
10161   IFS=$as_save_IFS
10162   test -z "$as_dir" && as_dir=.
10163     for ac_exec_ext in '' $ac_executable_extensions; do
10164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10165     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
10166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10167     break 2
10168   fi
10169 done
10170   done


10173   ;;
10174 esac
10175 fi
10176 READELF=$ac_cv_path_READELF
10177 if test -n "$READELF"; then
10178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10179 $as_echo "$READELF" >&6; }
10180 else
10181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182 $as_echo "no" >&6; }
10183 fi
10184 
10185 
10186   test -n "$READELF" && break
10187 done
10188 
10189 # Extract the first word of "hg", so it can be a program name with args.
10190 set dummy hg; ac_word=$2
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if test "${ac_cv_path_HG+set}" = set; then :
10194   $as_echo_n "(cached) " >&6
10195 else
10196   case $HG in
10197   [\\/]* | ?:[\\/]*)
10198   ac_cv_path_HG="$HG" # Let the user override the test with a path.
10199   ;;
10200   *)
10201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202 for as_dir in $PATH
10203 do
10204   IFS=$as_save_IFS
10205   test -z "$as_dir" && as_dir=.
10206     for ac_exec_ext in '' $ac_executable_extensions; do
10207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10208     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
10209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10210     break 2
10211   fi
10212 done
10213   done
10214 IFS=$as_save_IFS
10215 
10216   ;;
10217 esac
10218 fi
10219 HG=$ac_cv_path_HG
10220 if test -n "$HG"; then
10221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
10222 $as_echo "$HG" >&6; }
10223 else
10224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10226 fi
10227 
10228 
10229 # Extract the first word of "stat", so it can be a program name with args.
10230 set dummy stat; ac_word=$2
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10232 $as_echo_n "checking for $ac_word... " >&6; }
10233 if test "${ac_cv_path_STAT+set}" = set; then :
10234   $as_echo_n "(cached) " >&6
10235 else
10236   case $STAT in
10237   [\\/]* | ?:[\\/]*)
10238   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
10239   ;;
10240   *)
10241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10243 do
10244   IFS=$as_save_IFS
10245   test -z "$as_dir" && as_dir=.
10246     for ac_exec_ext in '' $ac_executable_extensions; do
10247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10248     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
10249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250     break 2
10251   fi
10252 done
10253   done
10254 IFS=$as_save_IFS
10255 
10256   ;;
10257 esac
10258 fi
10259 STAT=$ac_cv_path_STAT
10260 if test -n "$STAT"; then
10261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
10262 $as_echo "$STAT" >&6; }
10263 else
10264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10266 fi
10267 
10268 
10269 # Extract the first word of "time", so it can be a program name with args.
10270 set dummy time; ac_word=$2
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272 $as_echo_n "checking for $ac_word... " >&6; }
10273 if test "${ac_cv_path_TIME+set}" = set; then :
10274   $as_echo_n "(cached) " >&6
10275 else
10276   case $TIME in
10277   [\\/]* | ?:[\\/]*)
10278   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10279   ;;
10280   *)
10281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282 for as_dir in $PATH
10283 do
10284   IFS=$as_save_IFS
10285   test -z "$as_dir" && as_dir=.
10286     for ac_exec_ext in '' $ac_executable_extensions; do
10287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10288     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10290     break 2
10291   fi
10292 done
10293   done


10298 fi
10299 TIME=$ac_cv_path_TIME
10300 if test -n "$TIME"; then
10301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10302 $as_echo "$TIME" >&6; }
10303 else
10304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10306 fi
10307 
10308 
10309 
10310 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
10311 
10312     for ac_prog in comm
10313 do
10314   # Extract the first word of "$ac_prog", so it can be a program name with args.
10315 set dummy $ac_prog; ac_word=$2
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 $as_echo_n "checking for $ac_word... " >&6; }
10318 if test "${ac_cv_path_COMM+set}" = set; then :
10319   $as_echo_n "(cached) " >&6
10320 else
10321   case $COMM in
10322   [\\/]* | ?:[\\/]*)
10323   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
10324   ;;
10325   *)
10326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327 for as_dir in $PATH
10328 do
10329   IFS=$as_save_IFS
10330   test -z "$as_dir" && as_dir=.
10331     for ac_exec_ext in '' $ac_executable_extensions; do
10332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10333     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
10334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335     break 2
10336   fi
10337 done
10338   done


10352 
10353 
10354   test -n "$COMM" && break
10355 done
10356 
10357 
10358     if test "x$COMM" = x; then
10359         if test "xcomm" = x; then
10360           PROG_NAME=comm
10361         else
10362           PROG_NAME=comm
10363         fi
10364         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10365 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10366         as_fn_error $? "Cannot continue" "$LINENO" 5
10367     fi
10368 
10369 
10370 fi
10371 
10372 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
10373 
10374     for ac_prog in xattr
10375 do
10376   # Extract the first word of "$ac_prog", so it can be a program name with args.
10377 set dummy $ac_prog; ac_word=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if test "${ac_cv_path_XATTR+set}" = set; then :
10381   $as_echo_n "(cached) " >&6
10382 else
10383   case $XATTR in
10384   [\\/]* | ?:[\\/]*)
10385   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
10386   ;;
10387   *)
10388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10390 do
10391   IFS=$as_save_IFS
10392   test -z "$as_dir" && as_dir=.
10393     for ac_exec_ext in '' $ac_executable_extensions; do
10394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10395     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
10396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397     break 2
10398   fi
10399 done
10400   done
10401 IFS=$as_save_IFS
10402 
10403   ;;
10404 esac
10405 fi
10406 XATTR=$ac_cv_path_XATTR
10407 if test -n "$XATTR"; then
10408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
10409 $as_echo "$XATTR" >&6; }
10410 else
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10413 fi
10414 
10415 
10416   test -n "$XATTR" && break
10417 done
10418 
10419 
10420     if test "x$XATTR" = x; then
10421         if test "xxattr" = x; then
10422           PROG_NAME=xattr
10423         else
10424           PROG_NAME=xattr
10425         fi
10426         { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10427 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10428         as_fn_error $? "Cannot continue" "$LINENO" 5
10429     fi
10430 
10431 
10432 fi
10433 
10434 
10435 # Check if pkg-config is available.
10436 
10437 
10438 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10439         if test -n "$ac_tool_prefix"; then
10440   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10441 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10443 $as_echo_n "checking for $ac_word... " >&6; }
10444 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10445   $as_echo_n "(cached) " >&6
10446 else
10447   case $PKG_CONFIG in
10448   [\\/]* | ?:[\\/]*)
10449   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10450   ;;
10451   *)
10452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453 for as_dir in $PATH
10454 do
10455   IFS=$as_save_IFS
10456   test -z "$as_dir" && as_dir=.
10457     for ac_exec_ext in '' $ac_executable_extensions; do
10458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10459     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10461     break 2
10462   fi
10463 done
10464   done


10467   ;;
10468 esac
10469 fi
10470 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10471 if test -n "$PKG_CONFIG"; then
10472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10473 $as_echo "$PKG_CONFIG" >&6; }
10474 else
10475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476 $as_echo "no" >&6; }
10477 fi
10478 
10479 
10480 fi
10481 if test -z "$ac_cv_path_PKG_CONFIG"; then
10482   ac_pt_PKG_CONFIG=$PKG_CONFIG
10483   # Extract the first word of "pkg-config", so it can be a program name with args.
10484 set dummy pkg-config; ac_word=$2
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486 $as_echo_n "checking for $ac_word... " >&6; }
10487 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10488   $as_echo_n "(cached) " >&6
10489 else
10490   case $ac_pt_PKG_CONFIG in
10491   [\\/]* | ?:[\\/]*)
10492   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10493   ;;
10494   *)
10495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10497 do
10498   IFS=$as_save_IFS
10499   test -z "$as_dir" && as_dir=.
10500     for ac_exec_ext in '' $ac_executable_extensions; do
10501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10502     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504     break 2
10505   fi
10506 done
10507   done


10640             echo Build stays the same $rewritten_build
10641         else
10642             echo Rewriting build for builddeps into $rewritten_build
10643         fi
10644         eval rewritten_target=\${REWRITE_${target_var}}
10645         if test "x$rewritten_target" = x; then
10646             rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
10647             echo Target stays the same $rewritten_target
10648         else
10649             echo Rewriting target for builddeps into $rewritten_target
10650         fi
10651         rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
10652         rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
10653     fi
10654     for ac_prog in 7z unzip
10655 do
10656   # Extract the first word of "$ac_prog", so it can be a program name with args.
10657 set dummy $ac_prog; ac_word=$2
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10659 $as_echo_n "checking for $ac_word... " >&6; }
10660 if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then :
10661   $as_echo_n "(cached) " >&6
10662 else
10663   if test -n "$BDEPS_UNZIP"; then
10664   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
10665 else
10666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10668 do
10669   IFS=$as_save_IFS
10670   test -z "$as_dir" && as_dir=.
10671     for ac_exec_ext in '' $ac_executable_extensions; do
10672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10673     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
10674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10675     break 2
10676   fi
10677 done
10678   done
10679 IFS=$as_save_IFS
10680 


10686 $as_echo "$BDEPS_UNZIP" >&6; }
10687 else
10688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10690 fi
10691 
10692 
10693   test -n "$BDEPS_UNZIP" && break
10694 done
10695 
10696     if test "x$BDEPS_UNZIP" = x7z; then
10697         BDEPS_UNZIP="7z x"
10698     fi
10699 
10700     for ac_prog in wget lftp ftp
10701 do
10702   # Extract the first word of "$ac_prog", so it can be a program name with args.
10703 set dummy $ac_prog; ac_word=$2
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10705 $as_echo_n "checking for $ac_word... " >&6; }
10706 if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then :
10707   $as_echo_n "(cached) " >&6
10708 else
10709   if test -n "$BDEPS_FTP"; then
10710   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
10711 else
10712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713 for as_dir in $PATH
10714 do
10715   IFS=$as_save_IFS
10716   test -z "$as_dir" && as_dir=.
10717     for ac_exec_ext in '' $ac_executable_extensions; do
10718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10719     ac_cv_prog_BDEPS_FTP="$ac_prog"
10720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10721     break 2
10722   fi
10723 done
10724   done
10725 IFS=$as_save_IFS
10726 


11959               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
11960               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
11961 $as_echo "$BOOT_JDK_VERSION" >&6; }
11962             fi # end check jdk version
11963           fi # end check rt.jar
11964         fi # end check javac
11965       fi # end check java
11966     fi # end check boot jdk found
11967   fi
11968 
11969 
11970 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
11971 
11972   if test "x$BOOT_JDK_FOUND" = xno; then
11973     # Now execute the test
11974 
11975     # Extract the first word of "javac", so it can be a program name with args.
11976 set dummy javac; ac_word=$2
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978 $as_echo_n "checking for $ac_word... " >&6; }
11979 if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then :
11980   $as_echo_n "(cached) " >&6
11981 else
11982   case $JAVAC_CHECK in
11983   [\\/]* | ?:[\\/]*)
11984   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
11985   ;;
11986   *)
11987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH
11989 do
11990   IFS=$as_save_IFS
11991   test -z "$as_dir" && as_dir=.
11992     for ac_exec_ext in '' $ac_executable_extensions; do
11993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11994     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11996     break 2
11997   fi
11998 done
11999   done
12000 IFS=$as_save_IFS
12001 
12002   ;;
12003 esac
12004 fi
12005 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
12006 if test -n "$JAVAC_CHECK"; then
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
12008 $as_echo "$JAVAC_CHECK" >&6; }
12009 else
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011 $as_echo "no" >&6; }
12012 fi
12013 
12014 
12015     # Extract the first word of "java", so it can be a program name with args.
12016 set dummy java; ac_word=$2
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018 $as_echo_n "checking for $ac_word... " >&6; }
12019 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
12020   $as_echo_n "(cached) " >&6
12021 else
12022   case $JAVA_CHECK in
12023   [\\/]* | ?:[\\/]*)
12024   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
12025   ;;
12026   *)
12027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028 for as_dir in $PATH
12029 do
12030   IFS=$as_save_IFS
12031   test -z "$as_dir" && as_dir=.
12032     for ac_exec_ext in '' $ac_executable_extensions; do
12033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12034     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
12035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036     break 2
12037   fi
12038 done
12039   done


16073 EXE_OUT_OPTION='-o$(SPACE)'
16074 # When linking, how to specify the to be created dynamically linkable library.
16075 LD_OUT_OPTION='-o$(SPACE)'
16076 # When archiving, how to specify the to be create static archive for object files.
16077 AR_OUT_OPTION='rcs$(SPACE)'
16078 
16079 
16080 
16081 
16082 
16083 # Locate the actual tools
16084 
16085 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
16086 
16087   # Store path to cygwin link.exe to help excluding it when searching for
16088   # VS linker. This must be done before changing the PATH when looking for VS.
16089   # Extract the first word of "link", so it can be a program name with args.
16090 set dummy link; ac_word=$2
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16092 $as_echo_n "checking for $ac_word... " >&6; }
16093 if test "${ac_cv_path_CYGWIN_LINK+set}" = set; then :
16094   $as_echo_n "(cached) " >&6
16095 else
16096   case $CYGWIN_LINK in
16097   [\\/]* | ?:[\\/]*)
16098   ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
16099   ;;
16100   *)
16101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16102 for as_dir in $PATH
16103 do
16104   IFS=$as_save_IFS
16105   test -z "$as_dir" && as_dir=.
16106     for ac_exec_ext in '' $ac_executable_extensions; do
16107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16108     ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
16109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16110     break 2
16111   fi
16112 done
16113   done


17488 # For example the binary i686-sun-solaris2.10-gcc
17489 # will cross compile for i686-sun-solaris2.10
17490 # If neither of build and host is not set, then build=host and the
17491 # default compiler found in the path will be used.
17492 # Setting only --host, does not seem to be really supported.
17493 # Please set both --build and --host if you want to cross compile.
17494 
17495 if test "x$COMPILE_TYPE" = "xcross"; then
17496     # Now we to find a C/C++ compiler that can build executables for the build
17497     # platform. We can't use the AC_PROG_CC macro, since it can only be used
17498     # once. Also, we need to do this before adding a tools dir to the path,
17499     # otherwise we might pick up cross-compilers which don't use standard naming.
17500     # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
17501     # to wait until they are properly discovered.
17502     for ac_prog in cl cc gcc
17503 do
17504   # Extract the first word of "$ac_prog", so it can be a program name with args.
17505 set dummy $ac_prog; ac_word=$2
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17507 $as_echo_n "checking for $ac_word... " >&6; }
17508 if test "${ac_cv_path_BUILD_CC+set}" = set; then :
17509   $as_echo_n "(cached) " >&6
17510 else
17511   case $BUILD_CC in
17512   [\\/]* | ?:[\\/]*)
17513   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
17514   ;;
17515   *)
17516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17517 for as_dir in $PATH
17518 do
17519   IFS=$as_save_IFS
17520   test -z "$as_dir" && as_dir=.
17521     for ac_exec_ext in '' $ac_executable_extensions; do
17522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17523     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
17524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17525     break 2
17526   fi
17527 done
17528   done


17799 
17800       # Now join together the path and the arguments once again
17801       if test "x$arguments" != xEOL; then
17802         new_complete="$new_path ${arguments% *}"
17803       else
17804         new_complete="$new_path"
17805       fi
17806 
17807   if test "x$complete" != "x$new_complete"; then
17808       BUILD_CC="$new_complete"
17809       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
17810 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
17811     fi
17812 
17813     for ac_prog in cl CC g++
17814 do
17815   # Extract the first word of "$ac_prog", so it can be a program name with args.
17816 set dummy $ac_prog; ac_word=$2
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17818 $as_echo_n "checking for $ac_word... " >&6; }
17819 if test "${ac_cv_path_BUILD_CXX+set}" = set; then :
17820   $as_echo_n "(cached) " >&6
17821 else
17822   case $BUILD_CXX in
17823   [\\/]* | ?:[\\/]*)
17824   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
17825   ;;
17826   *)
17827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17828 for as_dir in $PATH
17829 do
17830   IFS=$as_save_IFS
17831   test -z "$as_dir" && as_dir=.
17832     for ac_exec_ext in '' $ac_executable_extensions; do
17833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17834     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
17835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17836     break 2
17837   fi
17838 done
17839   done


18108       fi
18109   fi
18110 
18111       # Now join together the path and the arguments once again
18112       if test "x$arguments" != xEOL; then
18113         new_complete="$new_path ${arguments% *}"
18114       else
18115         new_complete="$new_path"
18116       fi
18117 
18118   if test "x$complete" != "x$new_complete"; then
18119       BUILD_CXX="$new_complete"
18120       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
18121 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
18122     fi
18123 
18124     # Extract the first word of "ld", so it can be a program name with args.
18125 set dummy ld; ac_word=$2
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18127 $as_echo_n "checking for $ac_word... " >&6; }
18128 if test "${ac_cv_path_BUILD_LD+set}" = set; then :
18129   $as_echo_n "(cached) " >&6
18130 else
18131   case $BUILD_LD in
18132   [\\/]* | ?:[\\/]*)
18133   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
18134   ;;
18135   *)
18136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18137 for as_dir in $PATH
18138 do
18139   IFS=$as_save_IFS
18140   test -z "$as_dir" && as_dir=.
18141     for ac_exec_ext in '' $ac_executable_extensions; do
18142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18143     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
18144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18145     break 2
18146   fi
18147 done
18148   done


18624   COMPILER_CHECK_LIST="cc gcc"
18625 else
18626   COMPILER_CHECK_LIST="gcc cc"
18627 fi
18628 
18629 
18630   COMPILER_NAME=C
18631 
18632   CC=
18633   # If TOOLS_DIR is set, check for all compiler names in there first
18634   # before checking the rest of the PATH.
18635   if test -n "$TOOLS_DIR"; then
18636     PATH_save="$PATH"
18637     PATH="$TOOLS_DIR"
18638     for ac_prog in $COMPILER_CHECK_LIST
18639 do
18640   # Extract the first word of "$ac_prog", so it can be a program name with args.
18641 set dummy $ac_prog; ac_word=$2
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18643 $as_echo_n "checking for $ac_word... " >&6; }
18644 if test "${ac_cv_path_TOOLS_DIR_CC+set}" = set; then :
18645   $as_echo_n "(cached) " >&6
18646 else
18647   case $TOOLS_DIR_CC in
18648   [\\/]* | ?:[\\/]*)
18649   ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
18650   ;;
18651   *)
18652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18653 for as_dir in $PATH
18654 do
18655   IFS=$as_save_IFS
18656   test -z "$as_dir" && as_dir=.
18657     for ac_exec_ext in '' $ac_executable_extensions; do
18658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18659     ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
18660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18661     break 2
18662   fi
18663 done
18664   done


18676 $as_echo "no" >&6; }
18677 fi
18678 
18679 
18680   test -n "$TOOLS_DIR_CC" && break
18681 done
18682 
18683     CC=$TOOLS_DIR_CC
18684     PATH="$PATH_save"
18685   fi
18686 
18687   # AC_PATH_PROGS can't be run multiple times with the same variable,
18688   # so create a new name for this run.
18689   if test "x$CC" = x; then
18690     for ac_prog in $COMPILER_CHECK_LIST
18691 do
18692   # Extract the first word of "$ac_prog", so it can be a program name with args.
18693 set dummy $ac_prog; ac_word=$2
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18695 $as_echo_n "checking for $ac_word... " >&6; }
18696 if test "${ac_cv_path_POTENTIAL_CC+set}" = set; then :
18697   $as_echo_n "(cached) " >&6
18698 else
18699   case $POTENTIAL_CC in
18700   [\\/]* | ?:[\\/]*)
18701   ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
18702   ;;
18703   *)
18704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18705 for as_dir in $PATH
18706 do
18707   IFS=$as_save_IFS
18708   test -z "$as_dir" && as_dir=.
18709     for ac_exec_ext in '' $ac_executable_extensions; do
18710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18711     ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
18712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18713     break 2
18714   fi
18715 done
18716   done


19089   if test "x$COMPILER_BASENAME" = "xccache"; then
19090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
19091 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
19092     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
19093     # We want to control ccache invocation ourselves, so ignore this cc and try
19094     # searching again.
19095 
19096     # Remove the path to the fake ccache cc from the PATH
19097     RETRY_COMPILER_SAVED_PATH="$PATH"
19098     COMPILER_DIRNAME=`$DIRNAME $CC`
19099     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
19100 
19101     # Try again looking for our compiler
19102     if test -n "$ac_tool_prefix"; then
19103   for ac_prog in $COMPILER_CHECK_LIST
19104   do
19105     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19108 $as_echo_n "checking for $ac_word... " >&6; }
19109 if test "${ac_cv_prog_PROPER_COMPILER_CC+set}" = set; then :
19110   $as_echo_n "(cached) " >&6
19111 else
19112   if test -n "$PROPER_COMPILER_CC"; then
19113   ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
19114 else
19115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19116 for as_dir in $PATH
19117 do
19118   IFS=$as_save_IFS
19119   test -z "$as_dir" && as_dir=.
19120     for ac_exec_ext in '' $ac_executable_extensions; do
19121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19122     ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
19123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19124     break 2
19125   fi
19126 done
19127   done
19128 IFS=$as_save_IFS
19129 


19133 if test -n "$PROPER_COMPILER_CC"; then
19134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
19135 $as_echo "$PROPER_COMPILER_CC" >&6; }
19136 else
19137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19138 $as_echo "no" >&6; }
19139 fi
19140 
19141 
19142     test -n "$PROPER_COMPILER_CC" && break
19143   done
19144 fi
19145 if test -z "$PROPER_COMPILER_CC"; then
19146   ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
19147   for ac_prog in $COMPILER_CHECK_LIST
19148 do
19149   # Extract the first word of "$ac_prog", so it can be a program name with args.
19150 set dummy $ac_prog; ac_word=$2
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19152 $as_echo_n "checking for $ac_word... " >&6; }
19153 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+set}" = set; then :
19154   $as_echo_n "(cached) " >&6
19155 else
19156   if test -n "$ac_ct_PROPER_COMPILER_CC"; then
19157   ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
19158 else
19159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19160 for as_dir in $PATH
19161 do
19162   IFS=$as_save_IFS
19163   test -z "$as_dir" && as_dir=.
19164     for ac_exec_ext in '' $ac_executable_extensions; do
19165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19166     ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
19167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19168     break 2
19169   fi
19170 done
19171   done
19172 IFS=$as_save_IFS
19173 


19583   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
19584   CC_VENDOR="$COMPILER_VENDOR"
19585 
19586   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
19587 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
19588 
19589 
19590 # Now that we have resolved CC ourself, let autoconf have its go at it
19591 ac_ext=c
19592 ac_cpp='$CPP $CPPFLAGS'
19593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19596 if test -n "$ac_tool_prefix"; then
19597   for ac_prog in $CC
19598   do
19599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19602 $as_echo_n "checking for $ac_word... " >&6; }
19603 if test "${ac_cv_prog_CC+set}" = set; then :
19604   $as_echo_n "(cached) " >&6
19605 else
19606   if test -n "$CC"; then
19607   ac_cv_prog_CC="$CC" # Let the user override the test.
19608 else
19609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19610 for as_dir in $PATH
19611 do
19612   IFS=$as_save_IFS
19613   test -z "$as_dir" && as_dir=.
19614     for ac_exec_ext in '' $ac_executable_extensions; do
19615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19616     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19618     break 2
19619   fi
19620 done
19621   done
19622 IFS=$as_save_IFS
19623 


19627 if test -n "$CC"; then
19628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19629 $as_echo "$CC" >&6; }
19630 else
19631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19632 $as_echo "no" >&6; }
19633 fi
19634 
19635 
19636     test -n "$CC" && break
19637   done
19638 fi
19639 if test -z "$CC"; then
19640   ac_ct_CC=$CC
19641   for ac_prog in $CC
19642 do
19643   # Extract the first word of "$ac_prog", so it can be a program name with args.
19644 set dummy $ac_prog; ac_word=$2
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19646 $as_echo_n "checking for $ac_word... " >&6; }
19647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19648   $as_echo_n "(cached) " >&6
19649 else
19650   if test -n "$ac_ct_CC"; then
19651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19652 else
19653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19654 for as_dir in $PATH
19655 do
19656   IFS=$as_save_IFS
19657   test -z "$as_dir" && as_dir=.
19658     for ac_exec_ext in '' $ac_executable_extensions; do
19659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19660     ac_cv_prog_ac_ct_CC="$ac_prog"
19661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19662     break 2
19663   fi
19664 done
19665   done
19666 IFS=$as_save_IFS
19667 


19680   test -n "$ac_ct_CC" && break
19681 done
19682 
19683   if test "x$ac_ct_CC" = x; then
19684     CC=""
19685   else
19686     case $cross_compiling:$ac_tool_warned in
19687 yes:)
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19690 ac_tool_warned=yes ;;
19691 esac
19692     CC=$ac_ct_CC
19693   fi
19694 fi
19695 
19696 
19697 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19699 as_fn_error $? "no acceptable C compiler found in \$PATH
19700 See \`config.log' for more details" "$LINENO" 5 ; }
19701 
19702 # Provide some information about the compiler.
19703 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19704 set X $ac_compile
19705 ac_compiler=$2
19706 for ac_option in --version -v -V -qversion; do
19707   { { ac_try="$ac_compiler $ac_option >&5"
19708 case "(($ac_try" in
19709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710   *) ac_try_echo=$ac_try;;
19711 esac
19712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19713 $as_echo "$ac_try_echo"; } >&5
19714   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19715   ac_status=$?
19716   if test -s conftest.err; then
19717     sed '10a\
19718 ... rest of stderr output deleted ...
19719          10q' conftest.err >conftest.er1
19720     cat conftest.er1 >&5


19795         # actually working.
19796         break;;
19797     * )
19798         break;;
19799   esac
19800 done
19801 test "$ac_cv_exeext" = no && ac_cv_exeext=
19802 
19803 else
19804   ac_file=''
19805 fi
19806 if test -z "$ac_file"; then :
19807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19808 $as_echo "no" >&6; }
19809 $as_echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19811 
19812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19814 as_fn_error 77 "C compiler cannot create executables
19815 See \`config.log' for more details" "$LINENO" 5 ; }
19816 else
19817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19818 $as_echo "yes" >&6; }
19819 fi
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
19821 $as_echo_n "checking for C compiler default output file name... " >&6; }
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
19823 $as_echo "$ac_file" >&6; }
19824 ac_exeext=$ac_cv_exeext
19825 
19826 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
19827 ac_clean_files=$ac_clean_files_save
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
19829 $as_echo_n "checking for suffix of executables... " >&6; }
19830 if { { ac_try="$ac_link"
19831 case "(($ac_try" in
19832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833   *) ac_try_echo=$ac_try;;
19834 esac
19835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""


19838   ac_status=$?
19839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19840   test $ac_status = 0; }; then :
19841   # If both `conftest.exe' and `conftest' are `present' (well, observable)
19842 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
19843 # work properly (i.e., refer to `conftest.exe'), while it won't with
19844 # `rm'.
19845 for ac_file in conftest.exe conftest conftest.*; do
19846   test -f "$ac_file" || continue
19847   case $ac_file in
19848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
19849     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
19850           break;;
19851     * ) break;;
19852   esac
19853 done
19854 else
19855   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19857 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
19858 See \`config.log' for more details" "$LINENO" 5 ; }
19859 fi
19860 rm -f conftest conftest$ac_cv_exeext
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
19862 $as_echo "$ac_cv_exeext" >&6; }
19863 
19864 rm -f conftest.$ac_ext
19865 EXEEXT=$ac_cv_exeext
19866 ac_exeext=$EXEEXT
19867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19868 /* end confdefs.h.  */
19869 #include <stdio.h>
19870 int
19871 main ()
19872 {
19873 FILE *f = fopen ("conftest.out", "w");
19874  return ferror (f) || fclose (f) != 0;
19875 
19876   ;
19877   return 0;
19878 }


19897   if { ac_try='./conftest$ac_cv_exeext'
19898   { { case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19903 $as_echo "$ac_try_echo"; } >&5
19904   (eval "$ac_try") 2>&5
19905   ac_status=$?
19906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19907   test $ac_status = 0; }; }; then
19908     cross_compiling=no
19909   else
19910     if test "$cross_compiling" = maybe; then
19911         cross_compiling=yes
19912     else
19913         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19915 as_fn_error $? "cannot run C compiled programs.
19916 If you meant to cross compile, use \`--host'.
19917 See \`config.log' for more details" "$LINENO" 5 ; }
19918     fi
19919   fi
19920 fi
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
19922 $as_echo "$cross_compiling" >&6; }
19923 
19924 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
19925 ac_clean_files=$ac_clean_files_save
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
19927 $as_echo_n "checking for suffix of object files... " >&6; }
19928 if test "${ac_cv_objext+set}" = set; then :
19929   $as_echo_n "(cached) " >&6
19930 else
19931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19932 /* end confdefs.h.  */
19933 
19934 int
19935 main ()
19936 {
19937 
19938   ;
19939   return 0;
19940 }
19941 _ACEOF
19942 rm -f conftest.o conftest.obj
19943 if { { ac_try="$ac_compile"
19944 case "(($ac_try" in
19945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946   *) ac_try_echo=$ac_try;;
19947 esac
19948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19949 $as_echo "$ac_try_echo"; } >&5
19950   (eval "$ac_compile") 2>&5
19951   ac_status=$?
19952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19953   test $ac_status = 0; }; then :
19954   for ac_file in conftest.o conftest.obj conftest.*; do
19955   test -f "$ac_file" || continue;
19956   case $ac_file in
19957     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
19958     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
19959        break;;
19960   esac
19961 done
19962 else
19963   $as_echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19965 
19966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19968 as_fn_error $? "cannot compute suffix of object files: cannot compile
19969 See \`config.log' for more details" "$LINENO" 5 ; }
19970 fi
19971 rm -f conftest.$ac_cv_objext conftest.$ac_ext
19972 fi
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
19974 $as_echo "$ac_cv_objext" >&6; }
19975 OBJEXT=$ac_cv_objext
19976 ac_objext=$OBJEXT
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
19978 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19979 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
19980   $as_echo_n "(cached) " >&6
19981 else
19982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h.  */
19984 
19985 int
19986 main ()
19987 {
19988 #ifndef __GNUC__
19989        choke me
19990 #endif
19991 
19992   ;
19993   return 0;
19994 }
19995 _ACEOF
19996 if ac_fn_c_try_compile "$LINENO"; then :
19997   ac_compiler_gnu=yes
19998 else
19999   ac_compiler_gnu=no
20000 fi
20001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20002 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20003 
20004 fi
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
20006 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20007 if test $ac_compiler_gnu = yes; then
20008   GCC=yes
20009 else
20010   GCC=
20011 fi
20012 ac_test_CFLAGS=${CFLAGS+set}
20013 ac_save_CFLAGS=$CFLAGS
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
20015 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20016 if test "${ac_cv_prog_cc_g+set}" = set; then :
20017   $as_echo_n "(cached) " >&6
20018 else
20019   ac_save_c_werror_flag=$ac_c_werror_flag
20020    ac_c_werror_flag=yes
20021    ac_cv_prog_cc_g=no
20022    CFLAGS="-g"
20023    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20024 /* end confdefs.h.  */
20025 
20026 int
20027 main ()
20028 {
20029 
20030   ;
20031   return 0;
20032 }
20033 _ACEOF
20034 if ac_fn_c_try_compile "$LINENO"; then :
20035   ac_cv_prog_cc_g=yes
20036 else


20074 fi
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
20076 $as_echo "$ac_cv_prog_cc_g" >&6; }
20077 if test "$ac_test_CFLAGS" = set; then
20078   CFLAGS=$ac_save_CFLAGS
20079 elif test $ac_cv_prog_cc_g = yes; then
20080   if test "$GCC" = yes; then
20081     CFLAGS="-g -O2"
20082   else
20083     CFLAGS="-g"
20084   fi
20085 else
20086   if test "$GCC" = yes; then
20087     CFLAGS="-O2"
20088   else
20089     CFLAGS=
20090   fi
20091 fi
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
20093 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20094 if test "${ac_cv_prog_cc_c89+set}" = set; then :
20095   $as_echo_n "(cached) " >&6
20096 else
20097   ac_cv_prog_cc_c89=no
20098 ac_save_CC=$CC
20099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20100 /* end confdefs.h.  */
20101 #include <stdarg.h>
20102 #include <stdio.h>
20103 #include <sys/types.h>
20104 #include <sys/stat.h>
20105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20106 struct buf { int x; };
20107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20108 static char *e (p, i)
20109      char **p;
20110      int i;
20111 {
20112   return p[i];
20113 }
20114 static char *f (char * (*g) (char **, int), char **p, ...)


20197   COMPILER_CHECK_LIST="CC g++"
20198 else
20199   COMPILER_CHECK_LIST="g++ CC"
20200 fi
20201 
20202 
20203   COMPILER_NAME=C++
20204 
20205   CXX=
20206   # If TOOLS_DIR is set, check for all compiler names in there first
20207   # before checking the rest of the PATH.
20208   if test -n "$TOOLS_DIR"; then
20209     PATH_save="$PATH"
20210     PATH="$TOOLS_DIR"
20211     for ac_prog in $COMPILER_CHECK_LIST
20212 do
20213   # Extract the first word of "$ac_prog", so it can be a program name with args.
20214 set dummy $ac_prog; ac_word=$2
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20216 $as_echo_n "checking for $ac_word... " >&6; }
20217 if test "${ac_cv_path_TOOLS_DIR_CXX+set}" = set; then :
20218   $as_echo_n "(cached) " >&6
20219 else
20220   case $TOOLS_DIR_CXX in
20221   [\\/]* | ?:[\\/]*)
20222   ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
20223   ;;
20224   *)
20225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20226 for as_dir in $PATH
20227 do
20228   IFS=$as_save_IFS
20229   test -z "$as_dir" && as_dir=.
20230     for ac_exec_ext in '' $ac_executable_extensions; do
20231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20232     ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
20233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20234     break 2
20235   fi
20236 done
20237   done


20249 $as_echo "no" >&6; }
20250 fi
20251 
20252 
20253   test -n "$TOOLS_DIR_CXX" && break
20254 done
20255 
20256     CXX=$TOOLS_DIR_CXX
20257     PATH="$PATH_save"
20258   fi
20259 
20260   # AC_PATH_PROGS can't be run multiple times with the same variable,
20261   # so create a new name for this run.
20262   if test "x$CXX" = x; then
20263     for ac_prog in $COMPILER_CHECK_LIST
20264 do
20265   # Extract the first word of "$ac_prog", so it can be a program name with args.
20266 set dummy $ac_prog; ac_word=$2
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20268 $as_echo_n "checking for $ac_word... " >&6; }
20269 if test "${ac_cv_path_POTENTIAL_CXX+set}" = set; then :
20270   $as_echo_n "(cached) " >&6
20271 else
20272   case $POTENTIAL_CXX in
20273   [\\/]* | ?:[\\/]*)
20274   ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
20275   ;;
20276   *)
20277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20278 for as_dir in $PATH
20279 do
20280   IFS=$as_save_IFS
20281   test -z "$as_dir" && as_dir=.
20282     for ac_exec_ext in '' $ac_executable_extensions; do
20283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20284     ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
20285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20286     break 2
20287   fi
20288 done
20289   done


20662   if test "x$COMPILER_BASENAME" = "xccache"; then
20663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
20664 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
20665     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
20666     # We want to control ccache invocation ourselves, so ignore this cc and try
20667     # searching again.
20668 
20669     # Remove the path to the fake ccache cc from the PATH
20670     RETRY_COMPILER_SAVED_PATH="$PATH"
20671     COMPILER_DIRNAME=`$DIRNAME $CXX`
20672     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
20673 
20674     # Try again looking for our compiler
20675     if test -n "$ac_tool_prefix"; then
20676   for ac_prog in $COMPILER_CHECK_LIST
20677   do
20678     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20681 $as_echo_n "checking for $ac_word... " >&6; }
20682 if test "${ac_cv_prog_PROPER_COMPILER_CXX+set}" = set; then :
20683   $as_echo_n "(cached) " >&6
20684 else
20685   if test -n "$PROPER_COMPILER_CXX"; then
20686   ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
20687 else
20688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20689 for as_dir in $PATH
20690 do
20691   IFS=$as_save_IFS
20692   test -z "$as_dir" && as_dir=.
20693     for ac_exec_ext in '' $ac_executable_extensions; do
20694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20695     ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
20696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20697     break 2
20698   fi
20699 done
20700   done
20701 IFS=$as_save_IFS
20702 


20706 if test -n "$PROPER_COMPILER_CXX"; then
20707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
20708 $as_echo "$PROPER_COMPILER_CXX" >&6; }
20709 else
20710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20711 $as_echo "no" >&6; }
20712 fi
20713 
20714 
20715     test -n "$PROPER_COMPILER_CXX" && break
20716   done
20717 fi
20718 if test -z "$PROPER_COMPILER_CXX"; then
20719   ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
20720   for ac_prog in $COMPILER_CHECK_LIST
20721 do
20722   # Extract the first word of "$ac_prog", so it can be a program name with args.
20723 set dummy $ac_prog; ac_word=$2
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20725 $as_echo_n "checking for $ac_word... " >&6; }
20726 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+set}" = set; then :
20727   $as_echo_n "(cached) " >&6
20728 else
20729   if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
20730   ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
20731 else
20732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20733 for as_dir in $PATH
20734 do
20735   IFS=$as_save_IFS
20736   test -z "$as_dir" && as_dir=.
20737     for ac_exec_ext in '' $ac_executable_extensions; do
20738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20739     ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
20740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20741     break 2
20742   fi
20743 done
20744   done
20745 IFS=$as_save_IFS
20746 


21160 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
21161 
21162 
21163 # Now that we have resolved CXX ourself, let autoconf have its go at it
21164 ac_ext=cpp
21165 ac_cpp='$CXXCPP $CPPFLAGS'
21166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21169 if test -z "$CXX"; then
21170   if test -n "$CCC"; then
21171     CXX=$CCC
21172   else
21173     if test -n "$ac_tool_prefix"; then
21174   for ac_prog in $CXX
21175   do
21176     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21179 $as_echo_n "checking for $ac_word... " >&6; }
21180 if test "${ac_cv_prog_CXX+set}" = set; then :
21181   $as_echo_n "(cached) " >&6
21182 else
21183   if test -n "$CXX"; then
21184   ac_cv_prog_CXX="$CXX" # Let the user override the test.
21185 else
21186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21187 for as_dir in $PATH
21188 do
21189   IFS=$as_save_IFS
21190   test -z "$as_dir" && as_dir=.
21191     for ac_exec_ext in '' $ac_executable_extensions; do
21192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21193     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
21194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21195     break 2
21196   fi
21197 done
21198   done
21199 IFS=$as_save_IFS
21200 


21204 if test -n "$CXX"; then
21205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
21206 $as_echo "$CXX" >&6; }
21207 else
21208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21209 $as_echo "no" >&6; }
21210 fi
21211 
21212 
21213     test -n "$CXX" && break
21214   done
21215 fi
21216 if test -z "$CXX"; then
21217   ac_ct_CXX=$CXX
21218   for ac_prog in $CXX
21219 do
21220   # Extract the first word of "$ac_prog", so it can be a program name with args.
21221 set dummy $ac_prog; ac_word=$2
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21223 $as_echo_n "checking for $ac_word... " >&6; }
21224 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
21225   $as_echo_n "(cached) " >&6
21226 else
21227   if test -n "$ac_ct_CXX"; then
21228   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21229 else
21230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21231 for as_dir in $PATH
21232 do
21233   IFS=$as_save_IFS
21234   test -z "$as_dir" && as_dir=.
21235     for ac_exec_ext in '' $ac_executable_extensions; do
21236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21237     ac_cv_prog_ac_ct_CXX="$ac_prog"
21238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21239     break 2
21240   fi
21241 done
21242   done
21243 IFS=$as_save_IFS
21244 


21282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283   *) ac_try_echo=$ac_try;;
21284 esac
21285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21286 $as_echo "$ac_try_echo"; } >&5
21287   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21288   ac_status=$?
21289   if test -s conftest.err; then
21290     sed '10a\
21291 ... rest of stderr output deleted ...
21292          10q' conftest.err >conftest.er1
21293     cat conftest.er1 >&5
21294   fi
21295   rm -f conftest.er1 conftest.err
21296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21297   test $ac_status = 0; }
21298 done
21299 
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
21301 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
21302 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
21303   $as_echo_n "(cached) " >&6
21304 else
21305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21306 /* end confdefs.h.  */
21307 
21308 int
21309 main ()
21310 {
21311 #ifndef __GNUC__
21312        choke me
21313 #endif
21314 
21315   ;
21316   return 0;
21317 }
21318 _ACEOF
21319 if ac_fn_cxx_try_compile "$LINENO"; then :
21320   ac_compiler_gnu=yes
21321 else
21322   ac_compiler_gnu=no
21323 fi
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21326 
21327 fi
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
21329 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
21330 if test $ac_compiler_gnu = yes; then
21331   GXX=yes
21332 else
21333   GXX=
21334 fi
21335 ac_test_CXXFLAGS=${CXXFLAGS+set}
21336 ac_save_CXXFLAGS=$CXXFLAGS
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
21338 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
21339 if test "${ac_cv_prog_cxx_g+set}" = set; then :
21340   $as_echo_n "(cached) " >&6
21341 else
21342   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21343    ac_cxx_werror_flag=yes
21344    ac_cv_prog_cxx_g=no
21345    CXXFLAGS="-g"
21346    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21347 /* end confdefs.h.  */
21348 
21349 int
21350 main ()
21351 {
21352 
21353   ;
21354   return 0;
21355 }
21356 _ACEOF
21357 if ac_fn_cxx_try_compile "$LINENO"; then :
21358   ac_cv_prog_cxx_g=yes
21359 else


21417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21420 
21421 
21422 ### Locate other tools
21423 
21424 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
21425     ac_ext=m
21426 ac_cpp='$OBJCPP $CPPFLAGS'
21427 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21428 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21429 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
21430 if test -n "$ac_tool_prefix"; then
21431   for ac_prog in gcc objcc objc cc CC
21432   do
21433     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21436 $as_echo_n "checking for $ac_word... " >&6; }
21437 if test "${ac_cv_prog_OBJC+set}" = set; then :
21438   $as_echo_n "(cached) " >&6
21439 else
21440   if test -n "$OBJC"; then
21441   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
21442 else
21443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21444 for as_dir in $PATH
21445 do
21446   IFS=$as_save_IFS
21447   test -z "$as_dir" && as_dir=.
21448     for ac_exec_ext in '' $ac_executable_extensions; do
21449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21450     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
21451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21452     break 2
21453   fi
21454 done
21455   done
21456 IFS=$as_save_IFS
21457 


21461 if test -n "$OBJC"; then
21462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
21463 $as_echo "$OBJC" >&6; }
21464 else
21465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21466 $as_echo "no" >&6; }
21467 fi
21468 
21469 
21470     test -n "$OBJC" && break
21471   done
21472 fi
21473 if test -z "$OBJC"; then
21474   ac_ct_OBJC=$OBJC
21475   for ac_prog in gcc objcc objc cc CC
21476 do
21477   # Extract the first word of "$ac_prog", so it can be a program name with args.
21478 set dummy $ac_prog; ac_word=$2
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21480 $as_echo_n "checking for $ac_word... " >&6; }
21481 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
21482   $as_echo_n "(cached) " >&6
21483 else
21484   if test -n "$ac_ct_OBJC"; then
21485   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
21486 else
21487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21488 for as_dir in $PATH
21489 do
21490   IFS=$as_save_IFS
21491   test -z "$as_dir" && as_dir=.
21492     for ac_exec_ext in '' $ac_executable_extensions; do
21493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21494     ac_cv_prog_ac_ct_OBJC="$ac_prog"
21495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21496     break 2
21497   fi
21498 done
21499   done
21500 IFS=$as_save_IFS
21501 


21537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538   *) ac_try_echo=$ac_try;;
21539 esac
21540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21541 $as_echo "$ac_try_echo"; } >&5
21542   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21543   ac_status=$?
21544   if test -s conftest.err; then
21545     sed '10a\
21546 ... rest of stderr output deleted ...
21547          10q' conftest.err >conftest.er1
21548     cat conftest.er1 >&5
21549   fi
21550   rm -f conftest.er1 conftest.err
21551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21552   test $ac_status = 0; }
21553 done
21554 
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
21556 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
21557 if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
21558   $as_echo_n "(cached) " >&6
21559 else
21560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21561 /* end confdefs.h.  */
21562 
21563 int
21564 main ()
21565 {
21566 #ifndef __GNUC__
21567        choke me
21568 #endif
21569 
21570   ;
21571   return 0;
21572 }
21573 _ACEOF
21574 if ac_fn_objc_try_compile "$LINENO"; then :
21575   ac_compiler_gnu=yes
21576 else
21577   ac_compiler_gnu=no
21578 fi
21579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21580 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
21581 
21582 fi
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
21584 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
21585 if test $ac_compiler_gnu = yes; then
21586   GOBJC=yes
21587 else
21588   GOBJC=
21589 fi
21590 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
21591 ac_save_OBJCFLAGS=$OBJCFLAGS
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
21593 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
21594 if test "${ac_cv_prog_objc_g+set}" = set; then :
21595   $as_echo_n "(cached) " >&6
21596 else
21597   ac_save_objc_werror_flag=$ac_objc_werror_flag
21598    ac_objc_werror_flag=yes
21599    ac_cv_prog_objc_g=no
21600    OBJCFLAGS="-g"
21601    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21602 /* end confdefs.h.  */
21603 
21604 int
21605 main ()
21606 {
21607 
21608   ;
21609   return 0;
21610 }
21611 _ACEOF
21612 if ac_fn_objc_try_compile "$LINENO"; then :
21613   ac_cv_prog_objc_g=yes
21614 else


21950 OBJCFLAGS="$ORG_OBJCFLAGS"
21951 
21952 LD="$CC"
21953 LDEXE="$CC"
21954 LDCXX="$CXX"
21955 LDEXECXX="$CXX"
21956 
21957 # LDEXE is the linker to use, when creating executables.
21958 
21959 # Linking C++ libraries.
21960 
21961 # Linking C++ executables.
21962 
21963 
21964 if test "x$OPENJDK_TARGET_OS" != xwindows; then
21965     if test -n "$ac_tool_prefix"; then
21966   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21967 set dummy ${ac_tool_prefix}ar; ac_word=$2
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21969 $as_echo_n "checking for $ac_word... " >&6; }
21970 if test "${ac_cv_prog_AR+set}" = set; then :
21971   $as_echo_n "(cached) " >&6
21972 else
21973   if test -n "$AR"; then
21974   ac_cv_prog_AR="$AR" # Let the user override the test.
21975 else
21976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21977 for as_dir in $PATH
21978 do
21979   IFS=$as_save_IFS
21980   test -z "$as_dir" && as_dir=.
21981     for ac_exec_ext in '' $ac_executable_extensions; do
21982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21983     ac_cv_prog_AR="${ac_tool_prefix}ar"
21984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21985     break 2
21986   fi
21987 done
21988   done
21989 IFS=$as_save_IFS
21990 
21991 fi
21992 fi
21993 AR=$ac_cv_prog_AR
21994 if test -n "$AR"; then
21995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
21996 $as_echo "$AR" >&6; }
21997 else
21998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21999 $as_echo "no" >&6; }
22000 fi
22001 
22002 
22003 fi
22004 if test -z "$ac_cv_prog_AR"; then
22005   ac_ct_AR=$AR
22006   # Extract the first word of "ar", so it can be a program name with args.
22007 set dummy ar; ac_word=$2
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22009 $as_echo_n "checking for $ac_word... " >&6; }
22010 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
22011   $as_echo_n "(cached) " >&6
22012 else
22013   if test -n "$ac_ct_AR"; then
22014   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
22015 else
22016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22017 for as_dir in $PATH
22018 do
22019   IFS=$as_save_IFS
22020   test -z "$as_dir" && as_dir=.
22021     for ac_exec_ext in '' $ac_executable_extensions; do
22022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22023     ac_cv_prog_ac_ct_AR="ar"
22024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22025     break 2
22026   fi
22027 done
22028   done
22029 IFS=$as_save_IFS
22030 


22332 HOTSPOT_CXX="$CXX"
22333 HOTSPOT_LD="$LD"
22334 
22335 
22336 
22337 COMPILER_NAME=gcc
22338 COMPILER_TYPE=CC
22339 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
22340 
22341     # For now, assume that we are always compiling using cl.exe.
22342     CC_OUT_OPTION=-Fo
22343     EXE_OUT_OPTION=-out:
22344     LD_OUT_OPTION=-out:
22345     AR_OUT_OPTION=-out:
22346     # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
22347     # program for something completely different.
22348     # Extract the first word of "link", so it can be a program name with args.
22349 set dummy link; ac_word=$2
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22351 $as_echo_n "checking for $ac_word... " >&6; }
22352 if test "${ac_cv_prog_WINLD+set}" = set; then :
22353   $as_echo_n "(cached) " >&6
22354 else
22355   if test -n "$WINLD"; then
22356   ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
22357 else
22358   ac_prog_rejected=no
22359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22360 for as_dir in $PATH
22361 do
22362   IFS=$as_save_IFS
22363   test -z "$as_dir" && as_dir=.
22364     for ac_exec_ext in '' $ac_executable_extensions; do
22365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22366     if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
22367        ac_prog_rejected=yes
22368        continue
22369      fi
22370     ac_cv_prog_WINLD="link"
22371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22372     break 2


22671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
22672 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
22673     "$WINLD" --version > /dev/null
22674     if test $? -eq 0 ; then
22675       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22676 $as_echo "no" >&6; }
22677       as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
22678     else
22679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22680 $as_echo "yes" >&6; }
22681     fi
22682     LD="$WINLD"
22683     LDEXE="$WINLD"
22684     LDCXX="$WINLD"
22685     LDEXECXX="$WINLD"
22686 
22687     # Extract the first word of "mt", so it can be a program name with args.
22688 set dummy mt; ac_word=$2
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22690 $as_echo_n "checking for $ac_word... " >&6; }
22691 if test "${ac_cv_prog_MT+set}" = set; then :
22692   $as_echo_n "(cached) " >&6
22693 else
22694   if test -n "$MT"; then
22695   ac_cv_prog_MT="$MT" # Let the user override the test.
22696 else
22697   ac_prog_rejected=no
22698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22699 for as_dir in $PATH
22700 do
22701   IFS=$as_save_IFS
22702   test -z "$as_dir" && as_dir=.
22703     for ac_exec_ext in '' $ac_executable_extensions; do
22704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22705     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
22706        ac_prog_rejected=yes
22707        continue
22708      fi
22709     ac_cv_prog_MT="mt"
22710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22711     break 2


22992   fi
22993 
22994       # Now join together the path and the arguments once again
22995       if test "x$arguments" != xEOL; then
22996         new_complete="$new_path ${arguments% *}"
22997       else
22998         new_complete="$new_path"
22999       fi
23000 
23001   if test "x$complete" != "x$new_complete"; then
23002       MT="$new_complete"
23003       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
23004 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
23005     fi
23006 
23007     # The resource compiler
23008     # Extract the first word of "rc", so it can be a program name with args.
23009 set dummy rc; ac_word=$2
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23011 $as_echo_n "checking for $ac_word... " >&6; }
23012 if test "${ac_cv_prog_RC+set}" = set; then :
23013   $as_echo_n "(cached) " >&6
23014 else
23015   if test -n "$RC"; then
23016   ac_cv_prog_RC="$RC" # Let the user override the test.
23017 else
23018   ac_prog_rejected=no
23019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23020 for as_dir in $PATH
23021 do
23022   IFS=$as_save_IFS
23023   test -z "$as_dir" && as_dir=.
23024     for ac_exec_ext in '' $ac_executable_extensions; do
23025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23026     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
23027        ac_prog_rejected=yes
23028        continue
23029      fi
23030     ac_cv_prog_RC="rc"
23031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23032     break 2


23383 fi
23384     JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
23385     if test "x$JDK_UPDATE_VERSION" = x; then :
23386 
23387         JDK_UPDATE_VERSION_NOTNULL=0
23388 
23389 fi
23390     RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
23391     RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
23392     RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
23393     RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
23394     RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
23395     RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
23396     RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
23397 
23398     # lib.exe is used to create static libraries.
23399     # Extract the first word of "lib", so it can be a program name with args.
23400 set dummy lib; ac_word=$2
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23402 $as_echo_n "checking for $ac_word... " >&6; }
23403 if test "${ac_cv_prog_WINAR+set}" = set; then :
23404   $as_echo_n "(cached) " >&6
23405 else
23406   if test -n "$WINAR"; then
23407   ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
23408 else
23409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23410 for as_dir in $PATH
23411 do
23412   IFS=$as_save_IFS
23413   test -z "$as_dir" && as_dir=.
23414     for ac_exec_ext in '' $ac_executable_extensions; do
23415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23416     ac_cv_prog_WINAR="lib"
23417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23418     break 2
23419   fi
23420 done
23421   done
23422 IFS=$as_save_IFS
23423 


23689       # Now join together the path and the arguments once again
23690       if test "x$arguments" != xEOL; then
23691         new_complete="$new_path ${arguments% *}"
23692       else
23693         new_complete="$new_path"
23694       fi
23695 
23696   if test "x$complete" != "x$new_complete"; then
23697       WINAR="$new_complete"
23698       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
23699 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
23700     fi
23701 
23702     AR="$WINAR"
23703     ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
23704 
23705     # Extract the first word of "dumpbin", so it can be a program name with args.
23706 set dummy dumpbin; ac_word=$2
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23708 $as_echo_n "checking for $ac_word... " >&6; }
23709 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
23710   $as_echo_n "(cached) " >&6
23711 else
23712   if test -n "$DUMPBIN"; then
23713   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
23714 else
23715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23716 for as_dir in $PATH
23717 do
23718   IFS=$as_save_IFS
23719   test -z "$as_dir" && as_dir=.
23720     for ac_exec_ext in '' $ac_executable_extensions; do
23721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23722     ac_cv_prog_DUMPBIN="dumpbin"
23723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23724     break 2
23725   fi
23726 done
23727   done
23728 IFS=$as_save_IFS
23729 


24008 
24009     COMPILER_TYPE=CL
24010     CCXXFLAGS="$CCXXFLAGS -nologo"
24011 
24012 fi
24013 
24014 
24015 
24016 ac_ext=c
24017 ac_cpp='$CPP $CPPFLAGS'
24018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
24022 $as_echo_n "checking how to run the C preprocessor... " >&6; }
24023 # On Suns, sometimes $CPP names a directory.
24024 if test -n "$CPP" && test -d "$CPP"; then
24025   CPP=
24026 fi
24027 if test -z "$CPP"; then
24028   if test "${ac_cv_prog_CPP+set}" = set; then :
24029   $as_echo_n "(cached) " >&6
24030 else
24031       # Double quotes because CPP needs to be expanded
24032     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
24033     do
24034       ac_preproc_ok=false
24035 for ac_c_preproc_warn_flag in '' yes
24036 do
24037   # Use a header file that comes with gcc, so configuring glibc
24038   # with a fresh cross-compiler works.
24039   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24040   # <limits.h> exists even on freestanding compilers.
24041   # On the NeXT, cc -E runs the code through the compiler's parser,
24042   # not just through cpp. "Syntax error" is here to catch this case.
24043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24044 /* end confdefs.h.  */
24045 #ifdef __STDC__
24046 # include <limits.h>
24047 #else
24048 # include <assert.h>


24124 _ACEOF
24125 if ac_fn_c_try_cpp "$LINENO"; then :
24126   # Broken: success on invalid input.
24127 continue
24128 else
24129   # Passes both tests.
24130 ac_preproc_ok=:
24131 break
24132 fi
24133 rm -f conftest.err conftest.i conftest.$ac_ext
24134 
24135 done
24136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24137 rm -f conftest.i conftest.err conftest.$ac_ext
24138 if $ac_preproc_ok; then :
24139 
24140 else
24141   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24143 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
24144 See \`config.log' for more details" "$LINENO" 5 ; }
24145 fi
24146 
24147 ac_ext=cpp
24148 ac_cpp='$CXXCPP $CPPFLAGS'
24149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24152 
24153 
24154   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24155 
24156   # First separate the path from the arguments. This will split at the first
24157   # space.
24158   complete="$CPP"
24159   path="${complete%% *}"
24160   tmp="$complete EOL"
24161   arguments="${tmp#* }"
24162 
24163   # Input might be given as Windows format, start by converting to
24164   # unix format.


24408         new_complete="$new_path ${arguments% *}"
24409       else
24410         new_complete="$new_path"
24411       fi
24412 
24413   if test "x$complete" != "x$new_complete"; then
24414       CPP="$new_complete"
24415       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
24416 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
24417     fi
24418 
24419 
24420 ac_ext=cpp
24421 ac_cpp='$CXXCPP $CPPFLAGS'
24422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
24426 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
24427 if test -z "$CXXCPP"; then
24428   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
24429   $as_echo_n "(cached) " >&6
24430 else
24431       # Double quotes because CXXCPP needs to be expanded
24432     for CXXCPP in "$CXX -E" "/lib/cpp"
24433     do
24434       ac_preproc_ok=false
24435 for ac_cxx_preproc_warn_flag in '' yes
24436 do
24437   # Use a header file that comes with gcc, so configuring glibc
24438   # with a fresh cross-compiler works.
24439   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24440   # <limits.h> exists even on freestanding compilers.
24441   # On the NeXT, cc -E runs the code through the compiler's parser,
24442   # not just through cpp. "Syntax error" is here to catch this case.
24443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24444 /* end confdefs.h.  */
24445 #ifdef __STDC__
24446 # include <limits.h>
24447 #else
24448 # include <assert.h>


24524 _ACEOF
24525 if ac_fn_cxx_try_cpp "$LINENO"; then :
24526   # Broken: success on invalid input.
24527 continue
24528 else
24529   # Passes both tests.
24530 ac_preproc_ok=:
24531 break
24532 fi
24533 rm -f conftest.err conftest.i conftest.$ac_ext
24534 
24535 done
24536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24537 rm -f conftest.i conftest.err conftest.$ac_ext
24538 if $ac_preproc_ok; then :
24539 
24540 else
24541   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24543 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
24544 See \`config.log' for more details" "$LINENO" 5 ; }
24545 fi
24546 
24547 ac_ext=cpp
24548 ac_cpp='$CXXCPP $CPPFLAGS'
24549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24552 
24553 
24554   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24555 
24556   # First separate the path from the arguments. This will split at the first
24557   # space.
24558   complete="$CXXCPP"
24559   path="${complete%% *}"
24560   tmp="$complete EOL"
24561   arguments="${tmp#* }"
24562 
24563   # Input might be given as Windows format, start by converting to
24564   # unix format.


24826     BUILD_CXX="$CXX"
24827     BUILD_LD="$LD"
24828 fi
24829 
24830 # for solaris we really need solaris tools, and not gnu equivalent
24831 #   these seems to normally reside in /usr/ccs/bin so add that to path before
24832 #   starting to probe
24833 #
24834 #   NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
24835 #         so that it can be overriden --with-tools-dir
24836 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
24837     PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
24838 fi
24839 
24840 # Find the right assembler.
24841 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
24842     # Extract the first word of "as", so it can be a program name with args.
24843 set dummy as; ac_word=$2
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24845 $as_echo_n "checking for $ac_word... " >&6; }
24846 if test "${ac_cv_path_AS+set}" = set; then :
24847   $as_echo_n "(cached) " >&6
24848 else
24849   case $AS in
24850   [\\/]* | ?:[\\/]*)
24851   ac_cv_path_AS="$AS" # Let the user override the test with a path.
24852   ;;
24853   *)
24854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24855 for as_dir in $PATH
24856 do
24857   IFS=$as_save_IFS
24858   test -z "$as_dir" && as_dir=.
24859     for ac_exec_ext in '' $ac_executable_extensions; do
24860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24861     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
24862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24863     break 2
24864   fi
24865 done
24866   done


25140       fi
25141 
25142   if test "x$complete" != "x$new_complete"; then
25143       AS="$new_complete"
25144       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
25145 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
25146     fi
25147 
25148 else
25149     AS="$CC -c"
25150 fi
25151 
25152 
25153 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
25154     for ac_prog in gnm nm
25155 do
25156   # Extract the first word of "$ac_prog", so it can be a program name with args.
25157 set dummy $ac_prog; ac_word=$2
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25159 $as_echo_n "checking for $ac_word... " >&6; }
25160 if test "${ac_cv_path_NM+set}" = set; then :
25161   $as_echo_n "(cached) " >&6
25162 else
25163   case $NM in
25164   [\\/]* | ?:[\\/]*)
25165   ac_cv_path_NM="$NM" # Let the user override the test with a path.
25166   ;;
25167   *)
25168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25169 for as_dir in $PATH
25170 do
25171   IFS=$as_save_IFS
25172   test -z "$as_dir" && as_dir=.
25173     for ac_exec_ext in '' $ac_executable_extensions; do
25174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25175     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
25176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25177     break 2
25178   fi
25179 done
25180   done


25449       fi
25450   fi
25451 
25452       # Now join together the path and the arguments once again
25453       if test "x$arguments" != xEOL; then
25454         new_complete="$new_path ${arguments% *}"
25455       else
25456         new_complete="$new_path"
25457       fi
25458 
25459   if test "x$complete" != "x$new_complete"; then
25460       NM="$new_complete"
25461       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
25462 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
25463     fi
25464 
25465     # Extract the first word of "strip", so it can be a program name with args.
25466 set dummy strip; ac_word=$2
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25468 $as_echo_n "checking for $ac_word... " >&6; }
25469 if test "${ac_cv_path_STRIP+set}" = set; then :
25470   $as_echo_n "(cached) " >&6
25471 else
25472   case $STRIP in
25473   [\\/]* | ?:[\\/]*)
25474   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
25475   ;;
25476   *)
25477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25478 for as_dir in $PATH
25479 do
25480   IFS=$as_save_IFS
25481   test -z "$as_dir" && as_dir=.
25482     for ac_exec_ext in '' $ac_executable_extensions; do
25483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25484     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
25485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25486     break 2
25487   fi
25488 done
25489   done


25755       fi
25756   fi
25757 
25758       # Now join together the path and the arguments once again
25759       if test "x$arguments" != xEOL; then
25760         new_complete="$new_path ${arguments% *}"
25761       else
25762         new_complete="$new_path"
25763       fi
25764 
25765   if test "x$complete" != "x$new_complete"; then
25766       STRIP="$new_complete"
25767       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
25768 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
25769     fi
25770 
25771     # Extract the first word of "mcs", so it can be a program name with args.
25772 set dummy mcs; ac_word=$2
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25774 $as_echo_n "checking for $ac_word... " >&6; }
25775 if test "${ac_cv_path_MCS+set}" = set; then :
25776   $as_echo_n "(cached) " >&6
25777 else
25778   case $MCS in
25779   [\\/]* | ?:[\\/]*)
25780   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
25781   ;;
25782   *)
25783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25784 for as_dir in $PATH
25785 do
25786   IFS=$as_save_IFS
25787   test -z "$as_dir" && as_dir=.
25788     for ac_exec_ext in '' $ac_executable_extensions; do
25789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25790     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
25791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25792     break 2
25793   fi
25794 done
25795   done


26063 
26064       # Now join together the path and the arguments once again
26065       if test "x$arguments" != xEOL; then
26066         new_complete="$new_path ${arguments% *}"
26067       else
26068         new_complete="$new_path"
26069       fi
26070 
26071   if test "x$complete" != "x$new_complete"; then
26072       MCS="$new_complete"
26073       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
26074 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
26075     fi
26076 
26077 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
26078     if test -n "$ac_tool_prefix"; then
26079   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
26080 set dummy ${ac_tool_prefix}nm; ac_word=$2
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26082 $as_echo_n "checking for $ac_word... " >&6; }
26083 if test "${ac_cv_prog_NM+set}" = set; then :
26084   $as_echo_n "(cached) " >&6
26085 else
26086   if test -n "$NM"; then
26087   ac_cv_prog_NM="$NM" # Let the user override the test.
26088 else
26089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26090 for as_dir in $PATH
26091 do
26092   IFS=$as_save_IFS
26093   test -z "$as_dir" && as_dir=.
26094     for ac_exec_ext in '' $ac_executable_extensions; do
26095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26096     ac_cv_prog_NM="${ac_tool_prefix}nm"
26097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26098     break 2
26099   fi
26100 done
26101   done
26102 IFS=$as_save_IFS
26103 
26104 fi
26105 fi
26106 NM=$ac_cv_prog_NM
26107 if test -n "$NM"; then
26108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
26109 $as_echo "$NM" >&6; }
26110 else
26111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26112 $as_echo "no" >&6; }
26113 fi
26114 
26115 
26116 fi
26117 if test -z "$ac_cv_prog_NM"; then
26118   ac_ct_NM=$NM
26119   # Extract the first word of "nm", so it can be a program name with args.
26120 set dummy nm; ac_word=$2
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26122 $as_echo_n "checking for $ac_word... " >&6; }
26123 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
26124   $as_echo_n "(cached) " >&6
26125 else
26126   if test -n "$ac_ct_NM"; then
26127   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
26128 else
26129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26130 for as_dir in $PATH
26131 do
26132   IFS=$as_save_IFS
26133   test -z "$as_dir" && as_dir=.
26134     for ac_exec_ext in '' $ac_executable_extensions; do
26135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26136     ac_cv_prog_ac_ct_NM="nm"
26137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26138     break 2
26139   fi
26140 done
26141   done
26142 IFS=$as_save_IFS
26143 


26421   fi
26422 
26423       # Now join together the path and the arguments once again
26424       if test "x$arguments" != xEOL; then
26425         new_complete="$new_path ${arguments% *}"
26426       else
26427         new_complete="$new_path"
26428       fi
26429 
26430   if test "x$complete" != "x$new_complete"; then
26431       NM="$new_complete"
26432       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
26433 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
26434     fi
26435 
26436     if test -n "$ac_tool_prefix"; then
26437   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26438 set dummy ${ac_tool_prefix}strip; ac_word=$2
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26440 $as_echo_n "checking for $ac_word... " >&6; }
26441 if test "${ac_cv_prog_STRIP+set}" = set; then :
26442   $as_echo_n "(cached) " >&6
26443 else
26444   if test -n "$STRIP"; then
26445   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
26446 else
26447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26448 for as_dir in $PATH
26449 do
26450   IFS=$as_save_IFS
26451   test -z "$as_dir" && as_dir=.
26452     for ac_exec_ext in '' $ac_executable_extensions; do
26453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26454     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
26455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26456     break 2
26457   fi
26458 done
26459   done
26460 IFS=$as_save_IFS
26461 
26462 fi
26463 fi
26464 STRIP=$ac_cv_prog_STRIP
26465 if test -n "$STRIP"; then
26466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26467 $as_echo "$STRIP" >&6; }
26468 else
26469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26470 $as_echo "no" >&6; }
26471 fi
26472 
26473 
26474 fi
26475 if test -z "$ac_cv_prog_STRIP"; then
26476   ac_ct_STRIP=$STRIP
26477   # Extract the first word of "strip", so it can be a program name with args.
26478 set dummy strip; ac_word=$2
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26480 $as_echo_n "checking for $ac_word... " >&6; }
26481 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
26482   $as_echo_n "(cached) " >&6
26483 else
26484   if test -n "$ac_ct_STRIP"; then
26485   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
26486 else
26487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26488 for as_dir in $PATH
26489 do
26490   IFS=$as_save_IFS
26491   test -z "$as_dir" && as_dir=.
26492     for ac_exec_ext in '' $ac_executable_extensions; do
26493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26494     ac_cv_prog_ac_ct_STRIP="strip"
26495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26496     break 2
26497   fi
26498 done
26499   done
26500 IFS=$as_save_IFS
26501 


26786       fi
26787 
26788   if test "x$complete" != "x$new_complete"; then
26789       STRIP="$new_complete"
26790       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26791 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26792     fi
26793 
26794 fi
26795 
26796 # objcopy is used for moving debug symbols to separate files when
26797 # full debug symbols are enabled.
26798 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
26799     if test -n "$ac_tool_prefix"; then
26800   for ac_prog in gobjcopy objcopy
26801   do
26802     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26805 $as_echo_n "checking for $ac_word... " >&6; }
26806 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
26807   $as_echo_n "(cached) " >&6
26808 else
26809   if test -n "$OBJCOPY"; then
26810   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
26811 else
26812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26813 for as_dir in $PATH
26814 do
26815   IFS=$as_save_IFS
26816   test -z "$as_dir" && as_dir=.
26817     for ac_exec_ext in '' $ac_executable_extensions; do
26818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26819     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
26820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26821     break 2
26822   fi
26823 done
26824   done
26825 IFS=$as_save_IFS
26826 


26830 if test -n "$OBJCOPY"; then
26831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
26832 $as_echo "$OBJCOPY" >&6; }
26833 else
26834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26835 $as_echo "no" >&6; }
26836 fi
26837 
26838 
26839     test -n "$OBJCOPY" && break
26840   done
26841 fi
26842 if test -z "$OBJCOPY"; then
26843   ac_ct_OBJCOPY=$OBJCOPY
26844   for ac_prog in gobjcopy objcopy
26845 do
26846   # Extract the first word of "$ac_prog", so it can be a program name with args.
26847 set dummy $ac_prog; ac_word=$2
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26849 $as_echo_n "checking for $ac_word... " >&6; }
26850 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
26851   $as_echo_n "(cached) " >&6
26852 else
26853   if test -n "$ac_ct_OBJCOPY"; then
26854   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
26855 else
26856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26857 for as_dir in $PATH
26858 do
26859   IFS=$as_save_IFS
26860   test -z "$as_dir" && as_dir=.
26861     for ac_exec_ext in '' $ac_executable_extensions; do
26862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26863     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
26864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26865     break 2
26866   fi
26867 done
26868   done
26869 IFS=$as_save_IFS
26870 


27157       else
27158         new_complete="$new_path"
27159       fi
27160 
27161   if test "x$complete" != "x$new_complete"; then
27162       OBJCOPY="$new_complete"
27163       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
27164 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
27165     fi
27166 
27167     fi
27168 fi
27169 
27170 if test -n "$ac_tool_prefix"; then
27171   for ac_prog in gobjdump objdump
27172   do
27173     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27176 $as_echo_n "checking for $ac_word... " >&6; }
27177 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
27178   $as_echo_n "(cached) " >&6
27179 else
27180   if test -n "$OBJDUMP"; then
27181   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
27182 else
27183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27184 for as_dir in $PATH
27185 do
27186   IFS=$as_save_IFS
27187   test -z "$as_dir" && as_dir=.
27188     for ac_exec_ext in '' $ac_executable_extensions; do
27189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27190     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
27191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27192     break 2
27193   fi
27194 done
27195   done
27196 IFS=$as_save_IFS
27197 


27201 if test -n "$OBJDUMP"; then
27202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
27203 $as_echo "$OBJDUMP" >&6; }
27204 else
27205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27206 $as_echo "no" >&6; }
27207 fi
27208 
27209 
27210     test -n "$OBJDUMP" && break
27211   done
27212 fi
27213 if test -z "$OBJDUMP"; then
27214   ac_ct_OBJDUMP=$OBJDUMP
27215   for ac_prog in gobjdump objdump
27216 do
27217   # Extract the first word of "$ac_prog", so it can be a program name with args.
27218 set dummy $ac_prog; ac_word=$2
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27220 $as_echo_n "checking for $ac_word... " >&6; }
27221 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
27222   $as_echo_n "(cached) " >&6
27223 else
27224   if test -n "$ac_ct_OBJDUMP"; then
27225   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
27226 else
27227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27228 for as_dir in $PATH
27229 do
27230   IFS=$as_save_IFS
27231   test -z "$as_dir" && as_dir=.
27232     for ac_exec_ext in '' $ac_executable_extensions; do
27233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27234     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
27235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27236     break 2
27237   fi
27238 done
27239   done
27240 IFS=$as_save_IFS
27241 


27525       # Now join together the path and the arguments once again
27526       if test "x$arguments" != xEOL; then
27527         new_complete="$new_path ${arguments% *}"
27528       else
27529         new_complete="$new_path"
27530       fi
27531 
27532   if test "x$complete" != "x$new_complete"; then
27533       OBJDUMP="$new_complete"
27534       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
27535 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
27536     fi
27537 
27538 fi
27539 
27540 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
27541    # Extract the first word of "lipo", so it can be a program name with args.
27542 set dummy lipo; ac_word=$2
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27544 $as_echo_n "checking for $ac_word... " >&6; }
27545 if test "${ac_cv_path_LIPO+set}" = set; then :
27546   $as_echo_n "(cached) " >&6
27547 else
27548   case $LIPO in
27549   [\\/]* | ?:[\\/]*)
27550   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
27551   ;;
27552   *)
27553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27554 for as_dir in $PATH
27555 do
27556   IFS=$as_save_IFS
27557   test -z "$as_dir" && as_dir=.
27558     for ac_exec_ext in '' $ac_executable_extensions; do
27559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27560     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
27561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27562     break 2
27563   fi
27564 done
27565   done


27840 
27841   if test "x$complete" != "x$new_complete"; then
27842       LIPO="$new_complete"
27843       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
27844 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
27845     fi
27846 
27847 fi
27848 
27849 # Restore old path without tools dir
27850 PATH="$OLD_PATH"
27851 
27852 
27853 # FIXME: Currently we must test this after paths but before flags. Fix!
27854 
27855 # And we can test some aspects on the target using configure macros.
27856 
27857 
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27859 $as_echo_n "checking for ANSI C header files... " >&6; }
27860 if test "${ac_cv_header_stdc+set}" = set; then :
27861   $as_echo_n "(cached) " >&6
27862 else
27863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27864 /* end confdefs.h.  */
27865 #include <stdlib.h>
27866 #include <stdarg.h>
27867 #include <string.h>
27868 #include <float.h>
27869 
27870 int
27871 main ()
27872 {
27873 
27874   ;
27875   return 0;
27876 }
27877 _ACEOF
27878 if ac_fn_cxx_try_compile "$LINENO"; then :
27879   ac_cv_header_stdc=yes
27880 else


28016   #   to prevent emitting warning...
28017   ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28018   ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28019   ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
28020 
28021   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
28022   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
28023   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
28024 
28025   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
28026   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
28027   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
28028 
28029   fi
28030 fi
28031 
28032 # Make compilation sanity check
28033 for ac_header in stdio.h
28034 do :
28035   ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
28036 if test "x$ac_cv_header_stdio_h" = x""yes; then :
28037   cat >>confdefs.h <<_ACEOF
28038 #define HAVE_STDIO_H 1
28039 _ACEOF
28040 
28041 else
28042 
28043   { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
28044 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
28045   if test "x$COMPILE_TYPE" = xreduced; then
28046     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
28047 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
28048   elif test "x$COMPILE_TYPE" = xcross; then
28049     { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
28050 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
28051   fi
28052   as_fn_error $? "Cannot continue." "$LINENO" 5
28053 
28054 fi
28055 
28056 done
28057 
28058 
28059 # The cast to long int works around a bug in the HP C Compiler
28060 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28061 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28062 # This bug is HP SR number 8606223364.
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
28064 $as_echo_n "checking size of int *... " >&6; }
28065 if test "${ac_cv_sizeof_int_p+set}" = set; then :
28066   $as_echo_n "(cached) " >&6
28067 else
28068   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
28069 
28070 else
28071   if test "$ac_cv_type_int_p" = yes; then
28072      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28074 as_fn_error 77 "cannot compute sizeof (int *)
28075 See \`config.log' for more details" "$LINENO" 5 ; }
28076    else
28077      ac_cv_sizeof_int_p=0
28078    fi
28079 fi
28080 
28081 fi
28082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
28083 $as_echo "$ac_cv_sizeof_int_p" >&6; }
28084 
28085 
28086 
28087 cat >>confdefs.h <<_ACEOF
28088 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28089 _ACEOF
28090 
28091 
28092 
28093 if test "x$SIZEOF_INT_P" != "x$ac_cv_sizeof_int_p"; then
28094   # Workaround autoconf bug, see http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html
28095   SIZEOF_INT_P="$ac_cv_sizeof_int_p"


28102 else
28103     TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P`
28104 
28105     if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
28106         as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5
28107     fi
28108 fi
28109 
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
28111 $as_echo_n "checking for target address size... " >&6; }
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
28113 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
28114 
28115 
28116 ###############################################################################
28117 #
28118 # Is the target little of big endian?
28119 #
28120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28121 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28122 if test "${ac_cv_c_bigendian+set}" = set; then :
28123   $as_echo_n "(cached) " >&6
28124 else
28125   ac_cv_c_bigendian=unknown
28126     # See if we're dealing with a universal compiler.
28127     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28128 /* end confdefs.h.  */
28129 #ifndef __APPLE_CC__
28130                not a universal capable compiler
28131              #endif
28132              typedef int dummy;
28133 
28134 _ACEOF
28135 if ac_fn_cxx_try_compile "$LINENO"; then :
28136 
28137         # Check for potential -arch flags.  It is not universal unless
28138         # there are at least two -arch flags with different values.
28139         ac_arch=
28140         ac_prev=
28141         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28142          if test -n "$ac_prev"; then


29113     fi
29114   fi
29115 fi
29116 
29117 # Now let autoconf do it's magic
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29119 $as_echo_n "checking for X... " >&6; }
29120 
29121 
29122 # Check whether --with-x was given.
29123 if test "${with_x+set}" = set; then :
29124   withval=$with_x;
29125 fi
29126 
29127 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29128 if test "x$with_x" = xno; then
29129   # The user explicitly disabled X.
29130   have_x=disabled
29131 else
29132   case $x_includes,$x_libraries in #(
29133     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
29134     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
29135   $as_echo_n "(cached) " >&6
29136 else
29137   # One or both of the vars are not set, and there is no cached value.
29138 ac_x_includes=no ac_x_libraries=no
29139 rm -f -r conftest.dir
29140 if mkdir conftest.dir; then
29141   cd conftest.dir
29142   cat >Imakefile <<'_ACEOF'
29143 incroot:
29144         @echo incroot='${INCROOT}'
29145 usrlibdir:
29146         @echo usrlibdir='${USRLIBDIR}'
29147 libdir:
29148         @echo libdir='${LIBDIR}'
29149 _ACEOF
29150   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29151     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29152     for ac_var in incroot usrlibdir libdir; do
29153       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29154     done


29391 /* Override any GCC internal prototype to avoid an error.
29392    Use char because int might match the return type of a GCC
29393    builtin and then its argument prototype would still apply.  */
29394 #ifdef __cplusplus
29395 extern "C"
29396 #endif
29397 char XOpenDisplay ();
29398 int
29399 main ()
29400 {
29401 return XOpenDisplay ();
29402   ;
29403   return 0;
29404 }
29405 _ACEOF
29406 if ac_fn_cxx_try_link "$LINENO"; then :
29407 
29408 else
29409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
29410 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
29411 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
29412   $as_echo_n "(cached) " >&6
29413 else
29414   ac_check_lib_save_LIBS=$LIBS
29415 LIBS="-ldnet  $LIBS"
29416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29417 /* end confdefs.h.  */
29418 
29419 /* Override any GCC internal prototype to avoid an error.
29420    Use char because int might match the return type of a GCC
29421    builtin and then its argument prototype would still apply.  */
29422 #ifdef __cplusplus
29423 extern "C"
29424 #endif
29425 char dnet_ntoa ();
29426 int
29427 main ()
29428 {
29429 return dnet_ntoa ();
29430   ;
29431   return 0;
29432 }
29433 _ACEOF
29434 if ac_fn_cxx_try_link "$LINENO"; then :
29435   ac_cv_lib_dnet_dnet_ntoa=yes
29436 else
29437   ac_cv_lib_dnet_dnet_ntoa=no
29438 fi
29439 rm -f core conftest.err conftest.$ac_objext \
29440     conftest$ac_exeext conftest.$ac_ext
29441 LIBS=$ac_check_lib_save_LIBS
29442 fi
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29444 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29445 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
29446   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29447 fi
29448 
29449     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29450       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
29451 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
29452 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
29453   $as_echo_n "(cached) " >&6
29454 else
29455   ac_check_lib_save_LIBS=$LIBS
29456 LIBS="-ldnet_stub  $LIBS"
29457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29458 /* end confdefs.h.  */
29459 
29460 /* Override any GCC internal prototype to avoid an error.
29461    Use char because int might match the return type of a GCC
29462    builtin and then its argument prototype would still apply.  */
29463 #ifdef __cplusplus
29464 extern "C"
29465 #endif
29466 char dnet_ntoa ();
29467 int
29468 main ()
29469 {
29470 return dnet_ntoa ();
29471   ;
29472   return 0;
29473 }
29474 _ACEOF
29475 if ac_fn_cxx_try_link "$LINENO"; then :
29476   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29477 else
29478   ac_cv_lib_dnet_stub_dnet_ntoa=no
29479 fi
29480 rm -f core conftest.err conftest.$ac_objext \
29481     conftest$ac_exeext conftest.$ac_ext
29482 LIBS=$ac_check_lib_save_LIBS
29483 fi
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29485 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29486 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
29487   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29488 fi
29489 
29490     fi
29491 fi
29492 rm -f core conftest.err conftest.$ac_objext \
29493     conftest$ac_exeext conftest.$ac_ext
29494     LIBS="$ac_xsave_LIBS"
29495 
29496     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29497     # to get the SysV transport functions.
29498     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29499     # needs -lnsl.
29500     # The nsl library prevents programs from opening the X display
29501     # on Irix 5.2, according to T.E. Dickey.
29502     # The functions gethostbyname, getservbyname, and inet_addr are
29503     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29504     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
29505 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
29506 
29507 fi
29508 
29509     if test $ac_cv_func_gethostbyname = no; then
29510       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
29511 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
29512 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
29513   $as_echo_n "(cached) " >&6
29514 else
29515   ac_check_lib_save_LIBS=$LIBS
29516 LIBS="-lnsl  $LIBS"
29517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29518 /* end confdefs.h.  */
29519 
29520 /* Override any GCC internal prototype to avoid an error.
29521    Use char because int might match the return type of a GCC
29522    builtin and then its argument prototype would still apply.  */
29523 #ifdef __cplusplus
29524 extern "C"
29525 #endif
29526 char gethostbyname ();
29527 int
29528 main ()
29529 {
29530 return gethostbyname ();
29531   ;
29532   return 0;
29533 }
29534 _ACEOF
29535 if ac_fn_cxx_try_link "$LINENO"; then :
29536   ac_cv_lib_nsl_gethostbyname=yes
29537 else
29538   ac_cv_lib_nsl_gethostbyname=no
29539 fi
29540 rm -f core conftest.err conftest.$ac_objext \
29541     conftest$ac_exeext conftest.$ac_ext
29542 LIBS=$ac_check_lib_save_LIBS
29543 fi
29544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
29545 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
29546 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
29547   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29548 fi
29549 
29550       if test $ac_cv_lib_nsl_gethostbyname = no; then
29551         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
29552 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
29553 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
29554   $as_echo_n "(cached) " >&6
29555 else
29556   ac_check_lib_save_LIBS=$LIBS
29557 LIBS="-lbsd  $LIBS"
29558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29559 /* end confdefs.h.  */
29560 
29561 /* Override any GCC internal prototype to avoid an error.
29562    Use char because int might match the return type of a GCC
29563    builtin and then its argument prototype would still apply.  */
29564 #ifdef __cplusplus
29565 extern "C"
29566 #endif
29567 char gethostbyname ();
29568 int
29569 main ()
29570 {
29571 return gethostbyname ();
29572   ;
29573   return 0;
29574 }
29575 _ACEOF
29576 if ac_fn_cxx_try_link "$LINENO"; then :
29577   ac_cv_lib_bsd_gethostbyname=yes
29578 else
29579   ac_cv_lib_bsd_gethostbyname=no
29580 fi
29581 rm -f core conftest.err conftest.$ac_objext \
29582     conftest$ac_exeext conftest.$ac_ext
29583 LIBS=$ac_check_lib_save_LIBS
29584 fi
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
29586 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
29587 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
29588   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29589 fi
29590 
29591       fi
29592     fi
29593 
29594     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29595     # socket/setsockopt and other routines are undefined under SCO ODT
29596     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29597     # on later versions), says Simon Leinen: it contains gethostby*
29598     # variants that don't use the name server (or something).  -lsocket
29599     # must be given before -lnsl if both are needed.  We assume that
29600     # if connect needs -lnsl, so does gethostbyname.
29601     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
29602 if test "x$ac_cv_func_connect" = x""yes; then :
29603 
29604 fi
29605 
29606     if test $ac_cv_func_connect = no; then
29607       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
29608 $as_echo_n "checking for connect in -lsocket... " >&6; }
29609 if test "${ac_cv_lib_socket_connect+set}" = set; then :
29610   $as_echo_n "(cached) " >&6
29611 else
29612   ac_check_lib_save_LIBS=$LIBS
29613 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29615 /* end confdefs.h.  */
29616 
29617 /* Override any GCC internal prototype to avoid an error.
29618    Use char because int might match the return type of a GCC
29619    builtin and then its argument prototype would still apply.  */
29620 #ifdef __cplusplus
29621 extern "C"
29622 #endif
29623 char connect ();
29624 int
29625 main ()
29626 {
29627 return connect ();
29628   ;
29629   return 0;
29630 }
29631 _ACEOF
29632 if ac_fn_cxx_try_link "$LINENO"; then :
29633   ac_cv_lib_socket_connect=yes
29634 else
29635   ac_cv_lib_socket_connect=no
29636 fi
29637 rm -f core conftest.err conftest.$ac_objext \
29638     conftest$ac_exeext conftest.$ac_ext
29639 LIBS=$ac_check_lib_save_LIBS
29640 fi
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
29642 $as_echo "$ac_cv_lib_socket_connect" >&6; }
29643 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
29644   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29645 fi
29646 
29647     fi
29648 
29649     # Guillermo Gomez says -lposix is necessary on A/UX.
29650     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
29651 if test "x$ac_cv_func_remove" = x""yes; then :
29652 
29653 fi
29654 
29655     if test $ac_cv_func_remove = no; then
29656       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
29657 $as_echo_n "checking for remove in -lposix... " >&6; }
29658 if test "${ac_cv_lib_posix_remove+set}" = set; then :
29659   $as_echo_n "(cached) " >&6
29660 else
29661   ac_check_lib_save_LIBS=$LIBS
29662 LIBS="-lposix  $LIBS"
29663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29664 /* end confdefs.h.  */
29665 
29666 /* Override any GCC internal prototype to avoid an error.
29667    Use char because int might match the return type of a GCC
29668    builtin and then its argument prototype would still apply.  */
29669 #ifdef __cplusplus
29670 extern "C"
29671 #endif
29672 char remove ();
29673 int
29674 main ()
29675 {
29676 return remove ();
29677   ;
29678   return 0;
29679 }
29680 _ACEOF
29681 if ac_fn_cxx_try_link "$LINENO"; then :
29682   ac_cv_lib_posix_remove=yes
29683 else
29684   ac_cv_lib_posix_remove=no
29685 fi
29686 rm -f core conftest.err conftest.$ac_objext \
29687     conftest$ac_exeext conftest.$ac_ext
29688 LIBS=$ac_check_lib_save_LIBS
29689 fi
29690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
29691 $as_echo "$ac_cv_lib_posix_remove" >&6; }
29692 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
29693   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29694 fi
29695 
29696     fi
29697 
29698     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29699     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
29700 if test "x$ac_cv_func_shmat" = x""yes; then :
29701 
29702 fi
29703 
29704     if test $ac_cv_func_shmat = no; then
29705       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
29706 $as_echo_n "checking for shmat in -lipc... " >&6; }
29707 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
29708   $as_echo_n "(cached) " >&6
29709 else
29710   ac_check_lib_save_LIBS=$LIBS
29711 LIBS="-lipc  $LIBS"
29712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29713 /* end confdefs.h.  */
29714 
29715 /* Override any GCC internal prototype to avoid an error.
29716    Use char because int might match the return type of a GCC
29717    builtin and then its argument prototype would still apply.  */
29718 #ifdef __cplusplus
29719 extern "C"
29720 #endif
29721 char shmat ();
29722 int
29723 main ()
29724 {
29725 return shmat ();
29726   ;
29727   return 0;
29728 }
29729 _ACEOF
29730 if ac_fn_cxx_try_link "$LINENO"; then :
29731   ac_cv_lib_ipc_shmat=yes
29732 else
29733   ac_cv_lib_ipc_shmat=no
29734 fi
29735 rm -f core conftest.err conftest.$ac_objext \
29736     conftest$ac_exeext conftest.$ac_ext
29737 LIBS=$ac_check_lib_save_LIBS
29738 fi
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
29740 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
29741 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
29742   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29743 fi
29744 
29745     fi
29746   fi
29747 
29748   # Check for libraries that X11R6 Xt/Xaw programs need.
29749   ac_save_LDFLAGS=$LDFLAGS
29750   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29751   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29752   # check for ICE first), but we must link in the order -lSM -lICE or
29753   # we get undefined symbols.  So assume we have SM if we have ICE.
29754   # These have to be linked with before -lX11, unlike the other
29755   # libraries we check for below, so use a different variable.
29756   # John Interrante, Karl Berry
29757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
29758 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
29759 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
29760   $as_echo_n "(cached) " >&6
29761 else
29762   ac_check_lib_save_LIBS=$LIBS
29763 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29765 /* end confdefs.h.  */
29766 
29767 /* Override any GCC internal prototype to avoid an error.
29768    Use char because int might match the return type of a GCC
29769    builtin and then its argument prototype would still apply.  */
29770 #ifdef __cplusplus
29771 extern "C"
29772 #endif
29773 char IceConnectionNumber ();
29774 int
29775 main ()
29776 {
29777 return IceConnectionNumber ();
29778   ;
29779   return 0;
29780 }
29781 _ACEOF
29782 if ac_fn_cxx_try_link "$LINENO"; then :
29783   ac_cv_lib_ICE_IceConnectionNumber=yes
29784 else
29785   ac_cv_lib_ICE_IceConnectionNumber=no
29786 fi
29787 rm -f core conftest.err conftest.$ac_objext \
29788     conftest$ac_exeext conftest.$ac_ext
29789 LIBS=$ac_check_lib_save_LIBS
29790 fi
29791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29792 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
29793 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
29794   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29795 fi
29796 
29797   LDFLAGS=$ac_save_LDFLAGS
29798 
29799 fi
29800 
29801 
29802 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
29803 # this doesn't make sense so we remove it.
29804 if test "x$COMPILE_TYPE" = xcross; then
29805   X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
29806 fi
29807 
29808 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
29809 
29810     # Print a helpful message on how to acquire the necessary build dependency.
29811     # x11 is the help tag: freetyp2, cups, pulse, alsa etc
29812     MISSING_DEPENDENCY=x11
29813     PKGHANDLER_COMMAND=


30786                 pkgutil_help $MISSING_DEPENDENCY ;;
30787         pkgadd)
30788                 pkgadd_help  $MISSING_DEPENDENCY ;;
30789     * )
30790       break ;;
30791     esac
30792 
30793     if test "x$PKGHANDLER_COMMAND" != x; then
30794         HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
30795     fi
30796 
30797                 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
30798         fi
30799 
30800         if test "x$OPENJDK_TARGET_OS" != xwindows; then
30801             # AC_CHECK_LIB does not support use of cl.exe
30802             PREV_LDFLAGS="$LDFLAGS"
30803             LDFLAGS="$FREETYPE2_LIBS"
30804             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
30805 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
30806 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
30807   $as_echo_n "(cached) " >&6
30808 else
30809   ac_check_lib_save_LIBS=$LIBS
30810 LIBS="-lfreetype  $LIBS"
30811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30812 /* end confdefs.h.  */
30813 
30814 /* Override any GCC internal prototype to avoid an error.
30815    Use char because int might match the return type of a GCC
30816    builtin and then its argument prototype would still apply.  */
30817 #ifdef __cplusplus
30818 extern "C"
30819 #endif
30820 char FT_Init_FreeType ();
30821 int
30822 main ()
30823 {
30824 return FT_Init_FreeType ();
30825   ;
30826   return 0;
30827 }
30828 _ACEOF
30829 if ac_fn_cxx_try_link "$LINENO"; then :
30830   ac_cv_lib_freetype_FT_Init_FreeType=yes
30831 else
30832   ac_cv_lib_freetype_FT_Init_FreeType=no
30833 fi
30834 rm -f core conftest.err conftest.$ac_objext \
30835     conftest$ac_exeext conftest.$ac_ext
30836 LIBS=$ac_check_lib_save_LIBS
30837 fi
30838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
30839 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
30840 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
30841   FREETYPE2_FOUND=true
30842 else
30843   as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
30844 fi
30845 
30846             LDFLAGS="$PREV_LDFLAGS"
30847         fi
30848 fi
30849 
30850 
30851 
30852 
30853 
30854 
30855 
30856 
30857 
30858 ###############################################################################
30859 #
30860 # Check for alsa headers and libraries. Used on Linux/GNU systems.


31108         # Put the nasty error message in config.log where it belongs
31109         echo "$ALSA_PKG_ERRORS" >&5
31110 
31111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31112 $as_echo "no" >&6; }
31113                 ALSA_FOUND=no
31114 elif test $pkg_failed = untried; then
31115         ALSA_FOUND=no
31116 else
31117         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
31118         ALSA_LIBS=$pkg_cv_ALSA_LIBS
31119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31120 $as_echo "yes" >&6; }
31121         ALSA_FOUND=yes
31122 fi
31123         fi
31124         if test "x$ALSA_FOUND" = xno; then
31125             for ac_header in alsa/asoundlib.h
31126 do :
31127   ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
31128 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
31129   cat >>confdefs.h <<_ACEOF
31130 #define HAVE_ALSA_ASOUNDLIB_H 1
31131 _ACEOF
31132  ALSA_FOUND=yes
31133                               ALSA_CFLAGS=-Iignoreme
31134                               ALSA_LIBS=-lasound
31135                               DEFAULT_ALSA=yes
31136 else
31137   ALSA_FOUND=no
31138 fi
31139 
31140 done
31141 
31142         fi
31143         if test "x$ALSA_FOUND" = xno; then
31144 
31145     # Print a helpful message on how to acquire the necessary build dependency.
31146     # alsa is the help tag: freetyp2, cups, pulse, alsa etc
31147     MISSING_DEPENDENCY=alsa
31148     PKGHANDLER_COMMAND=


31167     fi
31168 
31169             as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
31170         fi
31171 fi
31172 
31173 
31174 
31175 
31176 
31177 
31178 
31179 ###############################################################################
31180 #
31181 # Check for the jpeg library
31182 #
31183 
31184 USE_EXTERNAL_LIBJPEG=true
31185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
31186 $as_echo_n "checking for main in -ljpeg... " >&6; }
31187 if test "${ac_cv_lib_jpeg_main+set}" = set; then :
31188   $as_echo_n "(cached) " >&6
31189 else
31190   ac_check_lib_save_LIBS=$LIBS
31191 LIBS="-ljpeg  $LIBS"
31192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31193 /* end confdefs.h.  */
31194 
31195 
31196 int
31197 main ()
31198 {
31199 return main ();
31200   ;
31201   return 0;
31202 }
31203 _ACEOF
31204 if ac_fn_cxx_try_link "$LINENO"; then :
31205   ac_cv_lib_jpeg_main=yes
31206 else
31207   ac_cv_lib_jpeg_main=no
31208 fi
31209 rm -f core conftest.err conftest.$ac_objext \
31210     conftest$ac_exeext conftest.$ac_ext
31211 LIBS=$ac_check_lib_save_LIBS
31212 fi
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
31214 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
31215 if test "x$ac_cv_lib_jpeg_main" = x""yes; then :
31216   cat >>confdefs.h <<_ACEOF
31217 #define HAVE_LIBJPEG 1
31218 _ACEOF
31219 
31220   LIBS="-ljpeg $LIBS"
31221 
31222 else
31223    USE_EXTERNAL_LIBJPEG=false
31224                { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
31225 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
31226 
31227 fi
31228 
31229 
31230 
31231 ###############################################################################
31232 #
31233 # Check for the gif library
31234 #
31235 
31236 USE_EXTERNAL_LIBJPEG=true
31237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgif" >&5
31238 $as_echo_n "checking for main in -lgif... " >&6; }
31239 if test "${ac_cv_lib_gif_main+set}" = set; then :
31240   $as_echo_n "(cached) " >&6
31241 else
31242   ac_check_lib_save_LIBS=$LIBS
31243 LIBS="-lgif  $LIBS"
31244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31245 /* end confdefs.h.  */
31246 
31247 
31248 int
31249 main ()
31250 {
31251 return main ();
31252   ;
31253   return 0;
31254 }
31255 _ACEOF
31256 if ac_fn_cxx_try_link "$LINENO"; then :
31257   ac_cv_lib_gif_main=yes
31258 else
31259   ac_cv_lib_gif_main=no
31260 fi
31261 rm -f core conftest.err conftest.$ac_objext \
31262     conftest$ac_exeext conftest.$ac_ext
31263 LIBS=$ac_check_lib_save_LIBS
31264 fi
31265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_main" >&5
31266 $as_echo "$ac_cv_lib_gif_main" >&6; }
31267 if test "x$ac_cv_lib_gif_main" = x""yes; then :
31268   cat >>confdefs.h <<_ACEOF
31269 #define HAVE_LIBGIF 1
31270 _ACEOF
31271 
31272   LIBS="-lgif $LIBS"
31273 
31274 else
31275    USE_EXTERNAL_LIBGIF=false
31276                { $as_echo "$as_me:${as_lineno-$LINENO}: Will use gif decoder bundled with the OpenJDK source" >&5
31277 $as_echo "$as_me: Will use gif decoder bundled with the OpenJDK source" >&6;}
31278 
31279 fi
31280 
31281 
31282 
31283 ###############################################################################
31284 #
31285 # Check for the zlib library
31286 #
31287 
31288 
31289 # Check whether --with-zlib was given.
31290 if test "${with_zlib+set}" = set; then :
31291   withval=$with_zlib;
31292 fi
31293 
31294 
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
31296 $as_echo_n "checking for compress in -lz... " >&6; }
31297 if test "${ac_cv_lib_z_compress+set}" = set; then :
31298   $as_echo_n "(cached) " >&6
31299 else
31300   ac_check_lib_save_LIBS=$LIBS
31301 LIBS="-lz  $LIBS"
31302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31303 /* end confdefs.h.  */
31304 
31305 /* Override any GCC internal prototype to avoid an error.
31306    Use char because int might match the return type of a GCC
31307    builtin and then its argument prototype would still apply.  */
31308 #ifdef __cplusplus
31309 extern "C"
31310 #endif
31311 char compress ();
31312 int
31313 main ()
31314 {
31315 return compress ();
31316   ;
31317   return 0;
31318 }
31319 _ACEOF
31320 if ac_fn_cxx_try_link "$LINENO"; then :
31321   ac_cv_lib_z_compress=yes
31322 else
31323   ac_cv_lib_z_compress=no
31324 fi
31325 rm -f core conftest.err conftest.$ac_objext \
31326     conftest$ac_exeext conftest.$ac_ext
31327 LIBS=$ac_check_lib_save_LIBS
31328 fi
31329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
31330 $as_echo "$ac_cv_lib_z_compress" >&6; }
31331 if test "x$ac_cv_lib_z_compress" = x""yes; then :
31332    ZLIB_FOUND=yes
31333 else
31334    ZLIB_FOUND=no
31335 fi
31336 
31337 
31338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
31339 $as_echo_n "checking for which zlib to use... " >&6; }
31340 
31341 DEFAULT_ZLIB=bundled
31342 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
31343 #
31344 # On macosx default is system...on others default is
31345 #
31346     DEFAULT_ZLIB=system
31347 fi
31348 
31349 if test "x${ZLIB_FOUND}" != "xyes"; then
31350 #
31351 # If we don't find any system...set default to bundled


31404 if ac_fn_cxx_try_link "$LINENO"; then :
31405   has_altzone=yes
31406 else
31407   has_altzone=no
31408 fi
31409 rm -f core conftest.err conftest.$ac_objext \
31410     conftest$ac_exeext conftest.$ac_ext
31411 if test "x$has_altzone" = xyes; then
31412 
31413 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
31414 
31415 fi
31416 
31417 ###############################################################################
31418 #
31419 # Check the maths library
31420 #
31421 
31422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
31423 $as_echo_n "checking for cos in -lm... " >&6; }
31424 if test "${ac_cv_lib_m_cos+set}" = set; then :
31425   $as_echo_n "(cached) " >&6
31426 else
31427   ac_check_lib_save_LIBS=$LIBS
31428 LIBS="-lm  $LIBS"
31429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31430 /* end confdefs.h.  */
31431 
31432 /* Override any GCC internal prototype to avoid an error.
31433    Use char because int might match the return type of a GCC
31434    builtin and then its argument prototype would still apply.  */
31435 #ifdef __cplusplus
31436 extern "C"
31437 #endif
31438 char cos ();
31439 int
31440 main ()
31441 {
31442 return cos ();
31443   ;
31444   return 0;
31445 }
31446 _ACEOF
31447 if ac_fn_cxx_try_link "$LINENO"; then :
31448   ac_cv_lib_m_cos=yes
31449 else
31450   ac_cv_lib_m_cos=no
31451 fi
31452 rm -f core conftest.err conftest.$ac_objext \
31453     conftest$ac_exeext conftest.$ac_ext
31454 LIBS=$ac_check_lib_save_LIBS
31455 fi
31456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
31457 $as_echo "$ac_cv_lib_m_cos" >&6; }
31458 if test "x$ac_cv_lib_m_cos" = x""yes; then :
31459   cat >>confdefs.h <<_ACEOF
31460 #define HAVE_LIBM 1
31461 _ACEOF
31462 
31463   LIBS="-lm $LIBS"
31464 
31465 else
31466 
31467                   { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
31468 $as_echo "$as_me: Maths library was not found" >&6;}
31469 
31470 fi
31471 
31472 
31473 
31474 ###############################################################################
31475 #
31476 # Check for libdl.so
31477 
31478 save_LIBS="$LIBS"
31479 LIBS=""
31480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
31481 $as_echo_n "checking for dlopen in -ldl... " >&6; }
31482 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
31483   $as_echo_n "(cached) " >&6
31484 else
31485   ac_check_lib_save_LIBS=$LIBS
31486 LIBS="-ldl  $LIBS"
31487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31488 /* end confdefs.h.  */
31489 
31490 /* Override any GCC internal prototype to avoid an error.
31491    Use char because int might match the return type of a GCC
31492    builtin and then its argument prototype would still apply.  */
31493 #ifdef __cplusplus
31494 extern "C"
31495 #endif
31496 char dlopen ();
31497 int
31498 main ()
31499 {
31500 return dlopen ();
31501   ;
31502   return 0;
31503 }
31504 _ACEOF
31505 if ac_fn_cxx_try_link "$LINENO"; then :
31506   ac_cv_lib_dl_dlopen=yes
31507 else
31508   ac_cv_lib_dl_dlopen=no
31509 fi
31510 rm -f core conftest.err conftest.$ac_objext \
31511     conftest$ac_exeext conftest.$ac_ext
31512 LIBS=$ac_check_lib_save_LIBS
31513 fi
31514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
31515 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
31516 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
31517   cat >>confdefs.h <<_ACEOF
31518 #define HAVE_LIBDL 1
31519 _ACEOF
31520 
31521   LIBS="-ldl $LIBS"
31522 
31523 fi
31524 
31525 LIBDL="$LIBS"
31526 
31527 LIBS="$save_LIBS"
31528 
31529 
31530 
31531 ###############################################################################
31532 #
31533 # statically link libstdc++ before C++ ABI is stablized on Linux unless
31534 # dynamic build is configured on command line.
31535 #
31536 


32186     fi
32187 fi
32188 
32189 
32190 
32191 
32192 # Setup use of ccache, if available
32193 
32194     # Check whether --enable-ccache was given.
32195 if test "${enable_ccache+set}" = set; then :
32196   enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
32197 else
32198   ENABLE_CCACHE=yes
32199 fi
32200 
32201     if test "x$ENABLE_CCACHE" = xyes; then
32202         # Extract the first word of "ccache", so it can be a program name with args.
32203 set dummy ccache; ac_word=$2
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32205 $as_echo_n "checking for $ac_word... " >&6; }
32206 if test "${ac_cv_path_CCACHE+set}" = set; then :
32207   $as_echo_n "(cached) " >&6
32208 else
32209   case $CCACHE in
32210   [\\/]* | ?:[\\/]*)
32211   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
32212   ;;
32213   *)
32214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32215 for as_dir in $PATH
32216 do
32217   IFS=$as_save_IFS
32218   test -z "$as_dir" && as_dir=.
32219     for ac_exec_ext in '' $ac_executable_extensions; do
32220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32221     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
32222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32223     break 2
32224   fi
32225 done
32226   done


32447         "s/'/'\\\\''/g;
32448           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32449       ;; #(
32450     *)
32451       # `set' quotes correctly as required by POSIX, so do not add quotes.
32452       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32453       ;;
32454     esac |
32455     sort
32456 ) |
32457   sed '
32458      /^ac_cv_env_/b end
32459      t clear
32460      :clear
32461      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32462      t end
32463      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32464      :end' >>confcache
32465 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32466   if test -w "$cache_file"; then
32467     test "x$cache_file" != "x/dev/null" &&
32468       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32469 $as_echo "$as_me: updating cache $cache_file" >&6;}
32470     cat confcache >$cache_file











32471   else
32472     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32473 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32474   fi
32475 fi
32476 rm -f confcache
32477 
32478 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32479 # Let make expand exec_prefix.
32480 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32481 
32482 DEFS=-DHAVE_CONFIG_H
32483 
32484 ac_libobjs=
32485 ac_ltlibobjs=
32486 U=
32487 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32488   # 1. Remove the extension, and $U if already installed.
32489   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32490   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32491   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32492   #    will be set to the directory where LIBOBJS objects are built.
32493   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32494   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32495 done
32496 LIBOBJS=$ac_libobjs
32497 
32498 LTLIBOBJS=$ac_ltlibobjs
32499 
32500 
32501 
32502 : ${CONFIG_STATUS=./config.status}
32503 ac_write_fail=0
32504 ac_clean_files_save=$ac_clean_files
32505 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32506 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32507 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32508 as_write_fail=0
32509 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32510 #! $SHELL
32511 # Generated by $as_me.
32512 # Run this file to recreate the current configuration.
32513 # Compiler output produced by configure, useful for debugging
32514 # configure, is in config.log if it exists.
32515 
32516 debug=false
32517 ac_cs_recheck=false
32518 ac_cs_silent=false
32519 
32520 SHELL=\${CONFIG_SHELL-$SHELL}
32521 export SHELL
32522 _ASEOF


32583 fi
32584 
32585 # The user is always right.
32586 if test "${PATH_SEPARATOR+set}" != set; then
32587   PATH_SEPARATOR=:
32588   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32589     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32590       PATH_SEPARATOR=';'
32591   }
32592 fi
32593 
32594 
32595 # IFS
32596 # We need space, tab and new line, in precisely that order.  Quoting is
32597 # there to prevent editors from complaining about space-tab.
32598 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32599 # splitting by setting IFS to empty value.)
32600 IFS=" ""        $as_nl"
32601 
32602 # Find who we are.  Look in the path if we contain no directory separator.

32603 case $0 in #((
32604   *[\\/]* ) as_myself=$0 ;;
32605   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32606 for as_dir in $PATH
32607 do
32608   IFS=$as_save_IFS
32609   test -z "$as_dir" && as_dir=.
32610     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32611   done
32612 IFS=$as_save_IFS
32613 
32614      ;;
32615 esac
32616 # We did not find ourselves, most probably we were run as `sh COMMAND'
32617 # in which case we are not to be found in the path.
32618 if test "x$as_myself" = x; then
32619   as_myself=$0
32620 fi
32621 if test ! -f "$as_myself"; then
32622   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2


32890 # Sed expression to map a string onto a valid CPP name.
32891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32892 
32893 # Sed expression to map a string onto a valid variable name.
32894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32895 
32896 
32897 exec 6>&1
32898 ## ----------------------------------- ##
32899 ## Main body of $CONFIG_STATUS script. ##
32900 ## ----------------------------------- ##
32901 _ASEOF
32902 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32903 
32904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32905 # Save the log message, to keep $0 and so on meaningful, and to
32906 # report actual input values of CONFIG_FILES etc. instead of their
32907 # values after options handling.
32908 ac_log="
32909 This file was extended by OpenJDK $as_me jdk8, which was
32910 generated by GNU Autoconf 2.67.  Invocation command line was
32911 
32912   CONFIG_FILES    = $CONFIG_FILES
32913   CONFIG_HEADERS  = $CONFIG_HEADERS
32914   CONFIG_LINKS    = $CONFIG_LINKS
32915   CONFIG_COMMANDS = $CONFIG_COMMANDS
32916   $ $0 $@
32917 
32918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32919 "
32920 
32921 _ACEOF
32922 
32923 case $ac_config_files in *"
32924 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32925 esac
32926 
32927 case $ac_config_headers in *"
32928 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32929 esac
32930 


32953       --recheck    update $as_me by reconfiguring in the same conditions
32954       --file=FILE[:TEMPLATE]
32955                    instantiate the configuration file FILE
32956       --header=FILE[:TEMPLATE]
32957                    instantiate the configuration header FILE
32958 
32959 Configuration files:
32960 $config_files
32961 
32962 Configuration headers:
32963 $config_headers
32964 
32965 Report bugs to <build-dev@openjdk.java.net>.
32966 OpenJDK home page: <http://openjdk.java.net>."
32967 
32968 _ACEOF
32969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32970 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32971 ac_cs_version="\\
32972 OpenJDK config.status jdk8
32973 configured by $0, generated by GNU Autoconf 2.67,
32974   with options \\"\$ac_cs_config\\"
32975 
32976 Copyright (C) 2010 Free Software Foundation, Inc.
32977 This config.status script is free software; the Free Software Foundation
32978 gives unlimited permission to copy, distribute and modify it."
32979 
32980 ac_pwd='$ac_pwd'
32981 srcdir='$srcdir'
32982 AWK='$AWK'
32983 test -n "\$AWK" || AWK=awk
32984 _ACEOF
32985 
32986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32987 # The default lists apply if the user does not specify any file.
32988 ac_need_defaults=:
32989 while test $# != 0
32990 do
32991   case $1 in
32992   --*=?*)
32993     ac_option=`expr "X$1" : 'X\([^=]*\)='`


33082 } >&5
33083 
33084 _ACEOF
33085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33086 _ACEOF
33087 
33088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33089 
33090 # Handling of arguments.
33091 for ac_config_target in $ac_config_targets
33092 do
33093   case $ac_config_target in
33094     "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
33095     "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
33096     "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
33097     "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
33098     "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
33099     "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
33100     "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
33101 
33102   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
33103   esac
33104 done
33105 
33106 
33107 # If the user did not use the arguments to specify the items to instantiate,
33108 # then the envvar interface is used.  Set only those that are not.
33109 # We use the long form for the default assignment because of an extremely
33110 # bizarre bug on SunOS 4.1.3.
33111 if $ac_need_defaults; then
33112   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33113   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33114 fi
33115 
33116 # Have a temporary directory for convenience.  Make it in the build tree
33117 # simply because there is no reason against having it here, and in addition,
33118 # creating and moving files from /tmp can sometimes cause problems.
33119 # Hook for its removal unless debugging.
33120 # Note that there is a small window in which the directory will not be cleaned:
33121 # after its creation but before its name has been assigned to `$tmp'.
33122 $debug ||
33123 {
33124   tmp=
33125   trap 'exit_status=$?
33126   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status

33127 ' 0
33128   trap 'as_fn_exit 1' 1 2 13 15
33129 }
33130 # Create a (secure) tmp directory for tmp files.
33131 
33132 {
33133   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33134   test -n "$tmp" && test -d "$tmp"
33135 }  ||
33136 {
33137   tmp=./conf$$-$RANDOM
33138   (umask 077 && mkdir "$tmp")
33139 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5

33140 
33141 # Set up the scripts for CONFIG_FILES section.
33142 # No need to generate them if there are no CONFIG_FILES.
33143 # This happens for instance with `./config.status config.h'.
33144 if test -n "$CONFIG_FILES"; then
33145 
33146 
33147 ac_cr=`echo X | tr X '\015'`
33148 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33149 # But we know of no other shell where ac_cr would be empty at this
33150 # point, so we can use a bashism as a fallback.
33151 if test "x$ac_cr" = x; then
33152   eval ac_cr=\$\'\\r\'
33153 fi
33154 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33155 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33156   ac_cs_awk_cr='\\r'
33157 else
33158   ac_cs_awk_cr=$ac_cr
33159 fi
33160 
33161 echo 'BEGIN {' >"$tmp/subs1.awk" &&
33162 _ACEOF
33163 
33164 
33165 {
33166   echo "cat >conf$$subs.awk <<_ACEOF" &&
33167   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33168   echo "_ACEOF"
33169 } >conf$$subs.sh ||
33170   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33171 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33172 ac_delim='%!_!# '
33173 for ac_last_try in false false false false false :; do
33174   . ./conf$$subs.sh ||
33175     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33176 
33177   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33178   if test $ac_delim_n = $ac_delim_num; then
33179     break
33180   elif $ac_last_try; then
33181     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33182   else
33183     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33184   fi
33185 done
33186 rm -f conf$$subs.sh
33187 
33188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33189 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33190 _ACEOF
33191 sed -n '
33192 h
33193 s/^/S["/; s/!.*/"]=/
33194 p
33195 g
33196 s/^[^!]*!//
33197 :repl
33198 t repl
33199 s/'"$ac_delim"'$//
33200 t delim
33201 :nl
33202 h
33203 s/\(.\{148\}\)..*/\1/
33204 t more1
33205 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33206 p
33207 n
33208 b repl
33209 :more1


33217 s/\(.\{148\}\)..*/\1/
33218 t more2
33219 s/["\\]/\\&/g; s/^/"/; s/$/"/
33220 p
33221 b
33222 :more2
33223 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33224 p
33225 g
33226 s/.\{148\}//
33227 t delim
33228 ' <conf$$subs.awk | sed '
33229 /^[^""]/{
33230   N
33231   s/\n//
33232 }
33233 ' >>$CONFIG_STATUS || ac_write_fail=1
33234 rm -f conf$$subs.awk
33235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33236 _ACAWK
33237 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33238   for (key in S) S_is_set[key] = 1
33239   FS = ""
33240 
33241 }
33242 {
33243   line = $ 0
33244   nfields = split(line, field, "@")
33245   substed = 0
33246   len = length(field[1])
33247   for (i = 2; i < nfields; i++) {
33248     key = field[i]
33249     keylen = length(key)
33250     if (S_is_set[key]) {
33251       value = S[key]
33252       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33253       len += length(value) + length(field[++i])
33254       substed = 1
33255     } else
33256       len += 1 + keylen
33257   }
33258 
33259   print line
33260 }
33261 
33262 _ACAWK
33263 _ACEOF
33264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33265 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33266   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33267 else
33268   cat
33269 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
33270   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33271 _ACEOF
33272 
33273 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33274 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33275 # trailing colons and then remove the whole line if VPATH becomes empty
33276 # (actually we leave an empty line to preserve line numbers).
33277 if test "x$srcdir" = x.; then
33278   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
33279 h
33280 s///
33281 s/^/:/
33282 s/[      ]*$/:/
33283 s/:\$(srcdir):/:/g
33284 s/:\${srcdir}:/:/g
33285 s/:@srcdir@:/:/g
33286 s/^:*//
33287 s/:*$//
33288 x
33289 s/\(=[   ]*\).*/\1/
33290 G
33291 s/\n//
33292 s/^[^=]*=[       ]*$//
33293 }'
33294 fi
33295 
33296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33297 fi # test -n "$CONFIG_FILES"
33298 
33299 # Set up the scripts for CONFIG_HEADERS section.
33300 # No need to generate them if there are no CONFIG_HEADERS.
33301 # This happens for instance with `./config.status Makefile'.
33302 if test -n "$CONFIG_HEADERS"; then
33303 cat >"$tmp/defines.awk" <<\_ACAWK ||
33304 BEGIN {
33305 _ACEOF
33306 
33307 # Transform confdefs.h into an awk script `defines.awk', embedded as
33308 # here-document in config.status, that substitutes the proper values into
33309 # config.h.in to produce config.h.
33310 
33311 # Create a delimiter string that does not exist in confdefs.h, to ease
33312 # handling of long lines.
33313 ac_delim='%!_!# '
33314 for ac_last_try in false false :; do
33315   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33316   if test -z "$ac_t"; then
33317     break
33318   elif $ac_last_try; then
33319     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33320   else
33321     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33322   fi
33323 done
33324 
33325 # For the awk script, D is an array of macro values keyed by name,
33326 # likewise P contains macro parameters if any.  Preserve backslash
33327 # newline sequences.
33328 
33329 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33330 sed -n '
33331 s/.\{148\}/&'"$ac_delim"'/g
33332 t rset
33333 :rset
33334 s/^[     ]*#[    ]*define[       ][      ]*/ /
33335 t def
33336 d


33397     }
33398   }
33399 }
33400 { print }
33401 _ACAWK
33402 _ACEOF
33403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33404   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33405 fi # test -n "$CONFIG_HEADERS"
33406 
33407 
33408 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
33409 shift
33410 for ac_tag
33411 do
33412   case $ac_tag in
33413   :[FHLC]) ac_mode=$ac_tag; continue;;
33414   esac
33415   case $ac_mode$ac_tag in
33416   :[FHL]*:*);;
33417   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
33418   :[FH]-) ac_tag=-:-;;
33419   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33420   esac
33421   ac_save_IFS=$IFS
33422   IFS=:
33423   set x $ac_tag
33424   IFS=$ac_save_IFS
33425   shift
33426   ac_file=$1
33427   shift
33428 
33429   case $ac_mode in
33430   :L) ac_source=$1;;
33431   :[FH])
33432     ac_file_inputs=
33433     for ac_f
33434     do
33435       case $ac_f in
33436       -) ac_f="$tmp/stdin";;
33437       *) # Look for the file first in the build tree, then in the source tree
33438          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33439          # because $ac_f cannot contain `:'.
33440          test -f "$ac_f" ||
33441            case $ac_f in
33442            [\\/$]*) false;;
33443            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33444            esac ||
33445            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
33446       esac
33447       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33448       as_fn_append ac_file_inputs " '$ac_f'"
33449     done
33450 
33451     # Let's still pretend it is `configure' which instantiates (i.e., don't
33452     # use $as_me), people would be surprised to read:
33453     #    /* config.h.  Generated by config.status.  */
33454     configure_input='Generated from '`
33455           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33456         `' by configure.'
33457     if test x"$ac_file" != x-; then
33458       configure_input="$ac_file.  $configure_input"
33459       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33460 $as_echo "$as_me: creating $ac_file" >&6;}
33461     fi
33462     # Neutralize special characters interpreted by sed in replacement strings.
33463     case $configure_input in #(
33464     *\&* | *\|* | *\\* )
33465        ac_sed_conf_input=`$as_echo "$configure_input" |
33466        sed 's/[\\\\&|]/\\\\&/g'`;; #(
33467     *) ac_sed_conf_input=$configure_input;;
33468     esac
33469 
33470     case $ac_tag in
33471     *:-:* | *:-) cat >"$tmp/stdin" \
33472       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
33473     esac
33474     ;;
33475   esac
33476 
33477   ac_dir=`$as_dirname -- "$ac_file" ||
33478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33479          X"$ac_file" : 'X\(//\)[^/]' \| \
33480          X"$ac_file" : 'X\(//\)$' \| \
33481          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33482 $as_echo X"$ac_file" |
33483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33484             s//\1/
33485             q
33486           }
33487           /^X\(\/\/\)[^/].*/{
33488             s//\1/
33489             q
33490           }
33491           /^X\(\/\/\)$/{


33577 # FIXME: do we really want to maintain this feature?
33578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33579 ac_sed_extra="$ac_vpsub
33580 $extrasub
33581 _ACEOF
33582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33583 :t
33584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33585 s|@configure_input@|$ac_sed_conf_input|;t t
33586 s&@top_builddir@&$ac_top_builddir_sub&;t t
33587 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33588 s&@srcdir@&$ac_srcdir&;t t
33589 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33590 s&@top_srcdir@&$ac_top_srcdir&;t t
33591 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33592 s&@builddir@&$ac_builddir&;t t
33593 s&@abs_builddir@&$ac_abs_builddir&;t t
33594 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33595 $ac_datarootdir_hack
33596 "
33597 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
33598   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33599 
33600 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33601   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33602   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&

33603   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33604 which seems to be undefined.  Please make sure it is defined" >&5
33605 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33606 which seems to be undefined.  Please make sure it is defined" >&2;}
33607 
33608   rm -f "$tmp/stdin"
33609   case $ac_file in
33610   -) cat "$tmp/out" && rm -f "$tmp/out";;
33611   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33612   esac \
33613   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33614  ;;
33615   :H)
33616   #
33617   # CONFIG_HEADER
33618   #
33619   if test x"$ac_file" != x-; then
33620     {
33621       $as_echo "/* $configure_input  */" \
33622       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33623     } >"$tmp/config.h" \
33624       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33625     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
33626       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33627 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33628     else
33629       rm -f "$ac_file"
33630       mv "$tmp/config.h" "$ac_file" \
33631         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33632     fi
33633   else
33634     $as_echo "/* $configure_input  */" \
33635       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
33636       || as_fn_error $? "could not create -" "$LINENO" 5
33637   fi
33638  ;;
33639 
33640 
33641   esac
33642 
33643 done # for ac_tag
33644 
33645 
33646 as_fn_exit 0
33647 _ACEOF
33648 ac_clean_files=$ac_clean_files_save
33649 
33650 test $ac_write_fail = 0 ||
33651   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33652 
33653 
33654 # configure is writing to config.log, and then calls config.status.
33655 # config.status does its own redirection, appending to config.log.