Changeset 1358 for trunk/packages


Ignore:
Timestamp:
Mar 21, 2009 4:01:51 PM (14 years ago)
Author:
gah
Message:

temporarily add glui to build

Location:
trunk/packages/vizservers
Files:
63 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/Makefile.in

    r1111 r1358  
    1818VPATH           = $(srcdir)
    1919
    20 SUBDIRS         = nanoscale nanovis pymolproxy
     20SUBDIRS         = nanoscale nanovis pymolproxy 
    2121FILES           = \
    2222                start_viz.sh
    2323
    24 .PHONY: nanoscale nanovis pymolproxy
     24.PHONY: nanoscale nanovis pymolproxy 
    2525
    2626all:
  • trunk/packages/vizservers/configure

    r1353 r1358  
    648648TCL_VERSION
    649649SUBDIRS
    650 EGREP
    651 GREP
    652650CXXCPP
    653651ac_ct_CXX
    654652CXXFLAGS
    655653CXX
     654MKDIR_P
     655LN_S
     656INSTALL_DATA
     657INSTALL_SCRIPT
     658INSTALL_PROGRAM
     659SHLIB_LDFLAGS
     660INSTALL_STUB_LIB
     661INSTALL_LIB
     662MAKE_STUB_LIB
     663MAKE_LIB
     664SHLIB_SUFFIX
     665SHLIB_CFLAGS
     666SHLIB_LD_LIBS
     667TK_SHLIB_LD_EXTRAS
     668TCL_SHLIB_LD_EXTRAS
     669SHLIB_LD
     670STLIB_LD
     671LD_SEARCH_FLAGS
     672CC_SEARCH_FLAGS
     673LDFLAGS_OPTIMIZE
     674LDFLAGS_DEBUG
     675CFLAGS_WARNING
     676CFLAGS_OPTIMIZE
     677CFLAGS_DEBUG
     678PLAT_SRCS
     679PLAT_OBJS
     680DL_OBJS
     681DL_LIBS
     682EGREP
     683GREP
    656684CPP
     685AR
     686RANLIB
    657687OBJEXT
    658688EXEEXT
     
    662692CFLAGS
    663693CC
    664 MKDIR_P
    665 LN_S
    666 RANLIB
    667 INSTALL_DATA
    668 INSTALL_SCRIPT
    669 INSTALL_PROGRAM
    670 SHLIB_SUFFIX
    671 SHLIB_LDFLAGS
    672 SHLIB_CFLAGS
    673 SHLIB_LD
    674 STLIB_LD
    675 CFLAGS_OPTIMIZE
    676 CFLAGS_DEBUG
    677694VERSION
    678695target_alias
     
    716733ac_user_opts='
    717734enable_option_checking
     735enable_64bit
     736enable_64bit_vis
     737enable_corefoundation
     738enable_load
    718739with_tcllib
    719740with_rappture
     
    13481369   esac
    13491370  cat <<\_ACEOF
     1371
     1372Optional Features:
     1373  --disable-option-checking  ignore unrecognized --enable/--with options
     1374  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     1375  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     1376  --enable-64bit          enable 64bit support (where applicable)
     1377  --enable-64bit-vis      enable 64bit Sparc VIS support
     1378  --enable-corefoundation use CoreFoundation API --enable-corefoundation
     1379  --disable-load          disallow dynamic loading and "load" command
    13501380
    13511381Optional Packages:
     
    18411871fi
    18421872
    1843 SC_CONFIG_CFLAGS
     1873ac_ext=c
     1874ac_cpp='$CPP $CPPFLAGS'
     1875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1877ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1878if test -n "$ac_tool_prefix"; then
     1879  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1880set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1881{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     1882$as_echo_n "checking for $ac_word... " >&6; }
     1883if test "${ac_cv_prog_CC+set}" = set; then
     1884  $as_echo_n "(cached) " >&6
     1885else
     1886  if test -n "$CC"; then
     1887  ac_cv_prog_CC="$CC" # Let the user override the test.
     1888else
     1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1890for as_dir in $PATH
     1891do
     1892  IFS=$as_save_IFS
     1893  test -z "$as_dir" && as_dir=.
     1894  for ac_exec_ext in '' $ac_executable_extensions; do
     1895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     1896    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1897    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1898    break 2
     1899  fi
     1900done
     1901done
     1902IFS=$as_save_IFS
     1903
     1904fi
     1905fi
     1906CC=$ac_cv_prog_CC
     1907if test -n "$CC"; then
     1908  { $as_echo "$as_me:$LINENO: result: $CC" >&5
     1909$as_echo "$CC" >&6; }
     1910else
     1911  { $as_echo "$as_me:$LINENO: result: no" >&5
     1912$as_echo "no" >&6; }
     1913fi
     1914
     1915
     1916fi
     1917if test -z "$ac_cv_prog_CC"; then
     1918  ac_ct_CC=$CC
     1919  # Extract the first word of "gcc", so it can be a program name with args.
     1920set dummy gcc; ac_word=$2
     1921{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     1922$as_echo_n "checking for $ac_word... " >&6; }
     1923if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1924  $as_echo_n "(cached) " >&6
     1925else
     1926  if test -n "$ac_ct_CC"; then
     1927  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1928else
     1929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1930for as_dir in $PATH
     1931do
     1932  IFS=$as_save_IFS
     1933  test -z "$as_dir" && as_dir=.
     1934  for ac_exec_ext in '' $ac_executable_extensions; do
     1935  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     1936    ac_cv_prog_ac_ct_CC="gcc"
     1937    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1938    break 2
     1939  fi
     1940done
     1941done
     1942IFS=$as_save_IFS
     1943
     1944fi
     1945fi
     1946ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1947if test -n "$ac_ct_CC"; then
     1948  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1949$as_echo "$ac_ct_CC" >&6; }
     1950else
     1951  { $as_echo "$as_me:$LINENO: result: no" >&5
     1952$as_echo "no" >&6; }
     1953fi
     1954
     1955  if test "x$ac_ct_CC" = x; then
     1956    CC=""
     1957  else
     1958    case $cross_compiling:$ac_tool_warned in
     1959yes:)
     1960{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
     1961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     1962ac_tool_warned=yes ;;
     1963esac
     1964    CC=$ac_ct_CC
     1965  fi
     1966else
     1967  CC="$ac_cv_prog_CC"
     1968fi
     1969
     1970if test -z "$CC"; then
     1971          if test -n "$ac_tool_prefix"; then
     1972    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1973set dummy ${ac_tool_prefix}cc; ac_word=$2
     1974{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     1975$as_echo_n "checking for $ac_word... " >&6; }
     1976if test "${ac_cv_prog_CC+set}" = set; then
     1977  $as_echo_n "(cached) " >&6
     1978else
     1979  if test -n "$CC"; then
     1980  ac_cv_prog_CC="$CC" # Let the user override the test.
     1981else
     1982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1983for as_dir in $PATH
     1984do
     1985  IFS=$as_save_IFS
     1986  test -z "$as_dir" && as_dir=.
     1987  for ac_exec_ext in '' $ac_executable_extensions; do
     1988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     1989    ac_cv_prog_CC="${ac_tool_prefix}cc"
     1990    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1991    break 2
     1992  fi
     1993done
     1994done
     1995IFS=$as_save_IFS
     1996
     1997fi
     1998fi
     1999CC=$ac_cv_prog_CC
     2000if test -n "$CC"; then
     2001  { $as_echo "$as_me:$LINENO: result: $CC" >&5
     2002$as_echo "$CC" >&6; }
     2003else
     2004  { $as_echo "$as_me:$LINENO: result: no" >&5
     2005$as_echo "no" >&6; }
     2006fi
     2007
     2008
     2009  fi
     2010fi
     2011if test -z "$CC"; then
     2012  # Extract the first word of "cc", so it can be a program name with args.
     2013set dummy cc; ac_word=$2
     2014{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2015$as_echo_n "checking for $ac_word... " >&6; }
     2016if test "${ac_cv_prog_CC+set}" = set; then
     2017  $as_echo_n "(cached) " >&6
     2018else
     2019  if test -n "$CC"; then
     2020  ac_cv_prog_CC="$CC" # Let the user override the test.
     2021else
     2022  ac_prog_rejected=no
     2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2024for as_dir in $PATH
     2025do
     2026  IFS=$as_save_IFS
     2027  test -z "$as_dir" && as_dir=.
     2028  for ac_exec_ext in '' $ac_executable_extensions; do
     2029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2030    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     2031       ac_prog_rejected=yes
     2032       continue
     2033     fi
     2034    ac_cv_prog_CC="cc"
     2035    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2036    break 2
     2037  fi
     2038done
     2039done
     2040IFS=$as_save_IFS
     2041
     2042if test $ac_prog_rejected = yes; then
     2043  # We found a bogon in the path, so make sure we never use it.
     2044  set dummy $ac_cv_prog_CC
     2045  shift
     2046  if test $# != 0; then
     2047    # We chose a different compiler from the bogus one.
     2048    # However, it has the same basename, so the bogon will be chosen
     2049    # first if we set CC to just the basename; use the full file name.
     2050    shift
     2051    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
     2052  fi
     2053fi
     2054fi
     2055fi
     2056CC=$ac_cv_prog_CC
     2057if test -n "$CC"; then
     2058  { $as_echo "$as_me:$LINENO: result: $CC" >&5
     2059$as_echo "$CC" >&6; }
     2060else
     2061  { $as_echo "$as_me:$LINENO: result: no" >&5
     2062$as_echo "no" >&6; }
     2063fi
     2064
     2065
     2066fi
     2067if test -z "$CC"; then
     2068  if test -n "$ac_tool_prefix"; then
     2069  for ac_prog in cl.exe
     2070  do
     2071    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2072set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2074$as_echo_n "checking for $ac_word... " >&6; }
     2075if test "${ac_cv_prog_CC+set}" = set; then
     2076  $as_echo_n "(cached) " >&6
     2077else
     2078  if test -n "$CC"; then
     2079  ac_cv_prog_CC="$CC" # Let the user override the test.
     2080else
     2081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2082for as_dir in $PATH
     2083do
     2084  IFS=$as_save_IFS
     2085  test -z "$as_dir" && as_dir=.
     2086  for ac_exec_ext in '' $ac_executable_extensions; do
     2087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2088    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     2089    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2090    break 2
     2091  fi
     2092done
     2093done
     2094IFS=$as_save_IFS
     2095
     2096fi
     2097fi
     2098CC=$ac_cv_prog_CC
     2099if test -n "$CC"; then
     2100  { $as_echo "$as_me:$LINENO: result: $CC" >&5
     2101$as_echo "$CC" >&6; }
     2102else
     2103  { $as_echo "$as_me:$LINENO: result: no" >&5
     2104$as_echo "no" >&6; }
     2105fi
     2106
     2107
     2108    test -n "$CC" && break
     2109  done
     2110fi
     2111if test -z "$CC"; then
     2112  ac_ct_CC=$CC
     2113  for ac_prog in cl.exe
     2114do
     2115  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2116set dummy $ac_prog; ac_word=$2
     2117{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2118$as_echo_n "checking for $ac_word... " >&6; }
     2119if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     2120  $as_echo_n "(cached) " >&6
     2121else
     2122  if test -n "$ac_ct_CC"; then
     2123  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2124else
     2125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2126for as_dir in $PATH
     2127do
     2128  IFS=$as_save_IFS
     2129  test -z "$as_dir" && as_dir=.
     2130  for ac_exec_ext in '' $ac_executable_extensions; do
     2131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2132    ac_cv_prog_ac_ct_CC="$ac_prog"
     2133    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2134    break 2
     2135  fi
     2136done
     2137done
     2138IFS=$as_save_IFS
     2139
     2140fi
     2141fi
     2142ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2143if test -n "$ac_ct_CC"; then
     2144  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     2145$as_echo "$ac_ct_CC" >&6; }
     2146else
     2147  { $as_echo "$as_me:$LINENO: result: no" >&5
     2148$as_echo "no" >&6; }
     2149fi
     2150
     2151
     2152  test -n "$ac_ct_CC" && break
     2153done
     2154
     2155  if test "x$ac_ct_CC" = x; then
     2156    CC=""
     2157  else
     2158    case $cross_compiling:$ac_tool_warned in
     2159yes:)
     2160{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
     2161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2162ac_tool_warned=yes ;;
     2163esac
     2164    CC=$ac_ct_CC
     2165  fi
     2166fi
     2167
     2168fi
     2169
     2170
     2171test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     2172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2173{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     2174See \`config.log' for more details." >&5
     2175$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
     2176See \`config.log' for more details." >&2;}
     2177   { (exit 1); exit 1; }; }; }
     2178
     2179# Provide some information about the compiler.
     2180$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
     2181set X $ac_compile
     2182ac_compiler=$2
     2183{ (ac_try="$ac_compiler --version >&5"
     2184case "(($ac_try" in
     2185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2186  *) ac_try_echo=$ac_try;;
     2187esac
     2188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2189$as_echo "$ac_try_echo") >&5
     2190  (eval "$ac_compiler --version >&5") 2>&5
     2191  ac_status=$?
     2192  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2193  (exit $ac_status); }
     2194{ (ac_try="$ac_compiler -v >&5"
     2195case "(($ac_try" in
     2196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2197  *) ac_try_echo=$ac_try;;
     2198esac
     2199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2200$as_echo "$ac_try_echo") >&5
     2201  (eval "$ac_compiler -v >&5") 2>&5
     2202  ac_status=$?
     2203  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2204  (exit $ac_status); }
     2205{ (ac_try="$ac_compiler -V >&5"
     2206case "(($ac_try" in
     2207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2208  *) ac_try_echo=$ac_try;;
     2209esac
     2210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2211$as_echo "$ac_try_echo") >&5
     2212  (eval "$ac_compiler -V >&5") 2>&5
     2213  ac_status=$?
     2214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2215  (exit $ac_status); }
     2216
     2217cat >conftest.$ac_ext <<_ACEOF
     2218/* confdefs.h.  */
     2219_ACEOF
     2220cat confdefs.h >>conftest.$ac_ext
     2221cat >>conftest.$ac_ext <<_ACEOF
     2222/* end confdefs.h.  */
     2223
     2224int
     2225main ()
     2226{
     2227
     2228  ;
     2229  return 0;
     2230}
     2231_ACEOF
     2232ac_clean_files_save=$ac_clean_files
     2233ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
     2234# Try to create an executable without -o first, disregard a.out.
     2235# It will help us diagnose broken compilers, and finding out an intuition
     2236# of exeext.
     2237{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     2238$as_echo_n "checking for C compiler default output file name... " >&6; }
     2239ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     2240
     2241# The possible output files:
     2242ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
     2243
     2244ac_rmfiles=
     2245for ac_file in $ac_files
     2246do
     2247  case $ac_file in
     2248    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     2249    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     2250  esac
     2251done
     2252rm -f $ac_rmfiles
     2253
     2254if { (ac_try="$ac_link_default"
     2255case "(($ac_try" in
     2256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2257  *) ac_try_echo=$ac_try;;
     2258esac
     2259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2260$as_echo "$ac_try_echo") >&5
     2261  (eval "$ac_link_default") 2>&5
     2262  ac_status=$?
     2263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2264  (exit $ac_status); }; then
     2265  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     2266# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     2267# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     2268# so that the user can short-circuit this test for compilers unknown to
     2269# Autoconf.
     2270for ac_file in $ac_files ''
     2271do
     2272  test -f "$ac_file" || continue
     2273  case $ac_file in
     2274    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
     2275        ;;
     2276    [ab].out )
     2277        # We found the default executable, but exeext='' is most
     2278        # certainly right.
     2279        break;;
     2280    *.* )
     2281        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2282        then :; else
     2283           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2284        fi
     2285        # We set ac_cv_exeext here because the later test for it is not
     2286        # safe: cross compilers may not add the suffix if given an `-o'
     2287        # argument, so we may need to know it at that point already.
     2288        # Even if this section looks crufty: it has the advantage of
     2289        # actually working.
     2290        break;;
     2291    * )
     2292        break;;
     2293  esac
     2294done
     2295test "$ac_cv_exeext" = no && ac_cv_exeext=
     2296
     2297else
     2298  ac_file=''
     2299fi
     2300
     2301{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
     2302$as_echo "$ac_file" >&6; }
     2303if test -z "$ac_file"; then
     2304  $as_echo "$as_me: failed program was:" >&5
     2305sed 's/^/| /' conftest.$ac_ext >&5
     2306
     2307{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     2308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2309{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
     2310See \`config.log' for more details." >&5
     2311$as_echo "$as_me: error: C compiler cannot create executables
     2312See \`config.log' for more details." >&2;}
     2313   { (exit 77); exit 77; }; }; }
     2314fi
     2315
     2316ac_exeext=$ac_cv_exeext
     2317
     2318# Check that the compiler produces executables we can run.  If not, either
     2319# the compiler is broken, or we cross compile.
     2320{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2321$as_echo_n "checking whether the C compiler works... " >&6; }
     2322# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     2323# If not cross compiling, check that we can run a simple program.
     2324if test "$cross_compiling" != yes; then
     2325  if { ac_try='./$ac_file'
     2326  { (case "(($ac_try" in
     2327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2328  *) ac_try_echo=$ac_try;;
     2329esac
     2330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2331$as_echo "$ac_try_echo") >&5
     2332  (eval "$ac_try") 2>&5
     2333  ac_status=$?
     2334  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2335  (exit $ac_status); }; }; then
     2336    cross_compiling=no
     2337  else
     2338    if test "$cross_compiling" = maybe; then
     2339        cross_compiling=yes
     2340    else
     2341        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     2342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2343{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
     2344If you meant to cross compile, use \`--host'.
     2345See \`config.log' for more details." >&5
     2346$as_echo "$as_me: error: cannot run C compiled programs.
     2347If you meant to cross compile, use \`--host'.
     2348See \`config.log' for more details." >&2;}
     2349   { (exit 1); exit 1; }; }; }
     2350    fi
     2351  fi
     2352fi
     2353{ $as_echo "$as_me:$LINENO: result: yes" >&5
     2354$as_echo "yes" >&6; }
     2355
     2356rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
     2357ac_clean_files=$ac_clean_files_save
     2358# Check that the compiler produces executables we can run.  If not, either
     2359# the compiler is broken, or we cross compile.
     2360{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     2361$as_echo_n "checking whether we are cross compiling... " >&6; }
     2362{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
     2363$as_echo "$cross_compiling" >&6; }
     2364
     2365{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
     2366$as_echo_n "checking for suffix of executables... " >&6; }
     2367if { (ac_try="$ac_link"
     2368case "(($ac_try" in
     2369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2370  *) ac_try_echo=$ac_try;;
     2371esac
     2372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2373$as_echo "$ac_try_echo") >&5
     2374  (eval "$ac_link") 2>&5
     2375  ac_status=$?
     2376  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2377  (exit $ac_status); }; then
     2378  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     2379# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     2380# work properly (i.e., refer to `conftest.exe'), while it won't with
     2381# `rm'.
     2382for ac_file in conftest.exe conftest conftest.*; do
     2383  test -f "$ac_file" || continue
     2384  case $ac_file in
     2385    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     2386    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2387          break;;
     2388    * ) break;;
     2389  esac
     2390done
     2391else
     2392  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     2393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2394{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
     2395See \`config.log' for more details." >&5
     2396$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
     2397See \`config.log' for more details." >&2;}
     2398   { (exit 1); exit 1; }; }; }
     2399fi
     2400
     2401rm -f conftest$ac_cv_exeext
     2402{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     2403$as_echo "$ac_cv_exeext" >&6; }
     2404
     2405rm -f conftest.$ac_ext
     2406EXEEXT=$ac_cv_exeext
     2407ac_exeext=$EXEEXT
     2408{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
     2409$as_echo_n "checking for suffix of object files... " >&6; }
     2410if test "${ac_cv_objext+set}" = set; then
     2411  $as_echo_n "(cached) " >&6
     2412else
     2413  cat >conftest.$ac_ext <<_ACEOF
     2414/* confdefs.h.  */
     2415_ACEOF
     2416cat confdefs.h >>conftest.$ac_ext
     2417cat >>conftest.$ac_ext <<_ACEOF
     2418/* end confdefs.h.  */
     2419
     2420int
     2421main ()
     2422{
     2423
     2424  ;
     2425  return 0;
     2426}
     2427_ACEOF
     2428rm -f conftest.o conftest.obj
     2429if { (ac_try="$ac_compile"
     2430case "(($ac_try" in
     2431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2432  *) ac_try_echo=$ac_try;;
     2433esac
     2434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2435$as_echo "$ac_try_echo") >&5
     2436  (eval "$ac_compile") 2>&5
     2437  ac_status=$?
     2438  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2439  (exit $ac_status); }; then
     2440  for ac_file in conftest.o conftest.obj conftest.*; do
     2441  test -f "$ac_file" || continue;
     2442  case $ac_file in
     2443    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
     2444    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     2445       break;;
     2446  esac
     2447done
     2448else
     2449  $as_echo "$as_me: failed program was:" >&5
     2450sed 's/^/| /' conftest.$ac_ext >&5
     2451
     2452{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     2453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2454{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
     2455See \`config.log' for more details." >&5
     2456$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
     2457See \`config.log' for more details." >&2;}
     2458   { (exit 1); exit 1; }; }; }
     2459fi
     2460
     2461rm -f conftest.$ac_cv_objext conftest.$ac_ext
     2462fi
     2463{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     2464$as_echo "$ac_cv_objext" >&6; }
     2465OBJEXT=$ac_cv_objext
     2466ac_objext=$OBJEXT
     2467{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2468$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
     2469if test "${ac_cv_c_compiler_gnu+set}" = set; then
     2470  $as_echo_n "(cached) " >&6
     2471else
     2472  cat >conftest.$ac_ext <<_ACEOF
     2473/* confdefs.h.  */
     2474_ACEOF
     2475cat confdefs.h >>conftest.$ac_ext
     2476cat >>conftest.$ac_ext <<_ACEOF
     2477/* end confdefs.h.  */
     2478
     2479int
     2480main ()
     2481{
     2482#ifndef __GNUC__
     2483       choke me
     2484#endif
     2485
     2486  ;
     2487  return 0;
     2488}
     2489_ACEOF
     2490rm -f conftest.$ac_objext
     2491if { (ac_try="$ac_compile"
     2492case "(($ac_try" in
     2493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2494  *) ac_try_echo=$ac_try;;
     2495esac
     2496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2497$as_echo "$ac_try_echo") >&5
     2498  (eval "$ac_compile") 2>conftest.er1
     2499  ac_status=$?
     2500  grep -v '^ *+' conftest.er1 >conftest.err
     2501  rm -f conftest.er1
     2502  cat conftest.err >&5
     2503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2504  (exit $ac_status); } && {
     2505         test -z "$ac_c_werror_flag" ||
     2506         test ! -s conftest.err
     2507       } && test -s conftest.$ac_objext; then
     2508  ac_compiler_gnu=yes
     2509else
     2510  $as_echo "$as_me: failed program was:" >&5
     2511sed 's/^/| /' conftest.$ac_ext >&5
     2512
     2513        ac_compiler_gnu=no
     2514fi
     2515
     2516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2517ac_cv_c_compiler_gnu=$ac_compiler_gnu
     2518
     2519fi
     2520{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2521$as_echo "$ac_cv_c_compiler_gnu" >&6; }
     2522if test $ac_compiler_gnu = yes; then
     2523  GCC=yes
     2524else
     2525  GCC=
     2526fi
     2527ac_test_CFLAGS=${CFLAGS+set}
     2528ac_save_CFLAGS=$CFLAGS
     2529{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2530$as_echo_n "checking whether $CC accepts -g... " >&6; }
     2531if test "${ac_cv_prog_cc_g+set}" = set; then
     2532  $as_echo_n "(cached) " >&6
     2533else
     2534  ac_save_c_werror_flag=$ac_c_werror_flag
     2535   ac_c_werror_flag=yes
     2536   ac_cv_prog_cc_g=no
     2537   CFLAGS="-g"
     2538   cat >conftest.$ac_ext <<_ACEOF
     2539/* confdefs.h.  */
     2540_ACEOF
     2541cat confdefs.h >>conftest.$ac_ext
     2542cat >>conftest.$ac_ext <<_ACEOF
     2543/* end confdefs.h.  */
     2544
     2545int
     2546main ()
     2547{
     2548
     2549  ;
     2550  return 0;
     2551}
     2552_ACEOF
     2553rm -f conftest.$ac_objext
     2554if { (ac_try="$ac_compile"
     2555case "(($ac_try" in
     2556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2557  *) ac_try_echo=$ac_try;;
     2558esac
     2559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2560$as_echo "$ac_try_echo") >&5
     2561  (eval "$ac_compile") 2>conftest.er1
     2562  ac_status=$?
     2563  grep -v '^ *+' conftest.er1 >conftest.err
     2564  rm -f conftest.er1
     2565  cat conftest.err >&5
     2566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2567  (exit $ac_status); } && {
     2568         test -z "$ac_c_werror_flag" ||
     2569         test ! -s conftest.err
     2570       } && test -s conftest.$ac_objext; then
     2571  ac_cv_prog_cc_g=yes
     2572else
     2573  $as_echo "$as_me: failed program was:" >&5
     2574sed 's/^/| /' conftest.$ac_ext >&5
     2575
     2576        CFLAGS=""
     2577      cat >conftest.$ac_ext <<_ACEOF
     2578/* confdefs.h.  */
     2579_ACEOF
     2580cat confdefs.h >>conftest.$ac_ext
     2581cat >>conftest.$ac_ext <<_ACEOF
     2582/* end confdefs.h.  */
     2583
     2584int
     2585main ()
     2586{
     2587
     2588  ;
     2589  return 0;
     2590}
     2591_ACEOF
     2592rm -f conftest.$ac_objext
     2593if { (ac_try="$ac_compile"
     2594case "(($ac_try" in
     2595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2596  *) ac_try_echo=$ac_try;;
     2597esac
     2598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2599$as_echo "$ac_try_echo") >&5
     2600  (eval "$ac_compile") 2>conftest.er1
     2601  ac_status=$?
     2602  grep -v '^ *+' conftest.er1 >conftest.err
     2603  rm -f conftest.er1
     2604  cat conftest.err >&5
     2605  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2606  (exit $ac_status); } && {
     2607         test -z "$ac_c_werror_flag" ||
     2608         test ! -s conftest.err
     2609       } && test -s conftest.$ac_objext; then
     2610  :
     2611else
     2612  $as_echo "$as_me: failed program was:" >&5
     2613sed 's/^/| /' conftest.$ac_ext >&5
     2614
     2615        ac_c_werror_flag=$ac_save_c_werror_flag
     2616         CFLAGS="-g"
     2617         cat >conftest.$ac_ext <<_ACEOF
     2618/* confdefs.h.  */
     2619_ACEOF
     2620cat confdefs.h >>conftest.$ac_ext
     2621cat >>conftest.$ac_ext <<_ACEOF
     2622/* end confdefs.h.  */
     2623
     2624int
     2625main ()
     2626{
     2627
     2628  ;
     2629  return 0;
     2630}
     2631_ACEOF
     2632rm -f conftest.$ac_objext
     2633if { (ac_try="$ac_compile"
     2634case "(($ac_try" in
     2635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2636  *) ac_try_echo=$ac_try;;
     2637esac
     2638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2639$as_echo "$ac_try_echo") >&5
     2640  (eval "$ac_compile") 2>conftest.er1
     2641  ac_status=$?
     2642  grep -v '^ *+' conftest.er1 >conftest.err
     2643  rm -f conftest.er1
     2644  cat conftest.err >&5
     2645  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2646  (exit $ac_status); } && {
     2647         test -z "$ac_c_werror_flag" ||
     2648         test ! -s conftest.err
     2649       } && test -s conftest.$ac_objext; then
     2650  ac_cv_prog_cc_g=yes
     2651else
     2652  $as_echo "$as_me: failed program was:" >&5
     2653sed 's/^/| /' conftest.$ac_ext >&5
     2654
     2655
     2656fi
     2657
     2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2659fi
     2660
     2661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2662fi
     2663
     2664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2665   ac_c_werror_flag=$ac_save_c_werror_flag
     2666fi
     2667{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2668$as_echo "$ac_cv_prog_cc_g" >&6; }
     2669if test "$ac_test_CFLAGS" = set; then
     2670  CFLAGS=$ac_save_CFLAGS
     2671elif test $ac_cv_prog_cc_g = yes; then
     2672  if test "$GCC" = yes; then
     2673    CFLAGS="-g -O2"
     2674  else
     2675    CFLAGS="-g"
     2676  fi
     2677else
     2678  if test "$GCC" = yes; then
     2679    CFLAGS="-O2"
     2680  else
     2681    CFLAGS=
     2682  fi
     2683fi
     2684{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
     2685$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
     2686if test "${ac_cv_prog_cc_c89+set}" = set; then
     2687  $as_echo_n "(cached) " >&6
     2688else
     2689  ac_cv_prog_cc_c89=no
     2690ac_save_CC=$CC
     2691cat >conftest.$ac_ext <<_ACEOF
     2692/* confdefs.h.  */
     2693_ACEOF
     2694cat confdefs.h >>conftest.$ac_ext
     2695cat >>conftest.$ac_ext <<_ACEOF
     2696/* end confdefs.h.  */
     2697#include <stdarg.h>
     2698#include <stdio.h>
     2699#include <sys/types.h>
     2700#include <sys/stat.h>
     2701/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     2702struct buf { int x; };
     2703FILE * (*rcsopen) (struct buf *, struct stat *, int);
     2704static char *e (p, i)
     2705     char **p;
     2706     int i;
     2707{
     2708  return p[i];
     2709}
     2710static char *f (char * (*g) (char **, int), char **p, ...)
     2711{
     2712  char *s;
     2713  va_list v;
     2714  va_start (v,p);
     2715  s = g (p, va_arg (v,int));
     2716  va_end (v);
     2717  return s;
     2718}
     2719
     2720/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     2721   function prototypes and stuff, but not '\xHH' hex character constants.
     2722   These don't provoke an error unfortunately, instead are silently treated
     2723   as 'x'.  The following induces an error, until -std is added to get
     2724   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     2725   array size at least.  It's necessary to write '\x00'==0 to get something
     2726   that's true only with -std.  */
     2727int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     2728
     2729/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     2730   inside strings and character constants.  */
     2731#define FOO(x) 'x'
     2732int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
     2733
     2734int test (int i, double x);
     2735struct s1 {int (*f) (int a);};
     2736struct s2 {int (*f) (double a);};
     2737int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     2738int argc;
     2739char **argv;
     2740int
     2741main ()
     2742{
     2743return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     2744  ;
     2745  return 0;
     2746}
     2747_ACEOF
     2748for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
     2749        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2750do
     2751  CC="$ac_save_CC $ac_arg"
     2752  rm -f conftest.$ac_objext
     2753if { (ac_try="$ac_compile"
     2754case "(($ac_try" in
     2755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2756  *) ac_try_echo=$ac_try;;
     2757esac
     2758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2759$as_echo "$ac_try_echo") >&5
     2760  (eval "$ac_compile") 2>conftest.er1
     2761  ac_status=$?
     2762  grep -v '^ *+' conftest.er1 >conftest.err
     2763  rm -f conftest.er1
     2764  cat conftest.err >&5
     2765  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2766  (exit $ac_status); } && {
     2767         test -z "$ac_c_werror_flag" ||
     2768         test ! -s conftest.err
     2769       } && test -s conftest.$ac_objext; then
     2770  ac_cv_prog_cc_c89=$ac_arg
     2771else
     2772  $as_echo "$as_me: failed program was:" >&5
     2773sed 's/^/| /' conftest.$ac_ext >&5
     2774
     2775
     2776fi
     2777
     2778rm -f core conftest.err conftest.$ac_objext
     2779  test "x$ac_cv_prog_cc_c89" != "xno" && break
     2780done
     2781rm -f conftest.$ac_ext
     2782CC=$ac_save_CC
     2783
     2784fi
     2785# AC_CACHE_VAL
     2786case "x$ac_cv_prog_cc_c89" in
     2787  x)
     2788    { $as_echo "$as_me:$LINENO: result: none needed" >&5
     2789$as_echo "none needed" >&6; } ;;
     2790  xno)
     2791    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
     2792$as_echo "unsupported" >&6; } ;;
     2793  *)
     2794    CC="$CC $ac_cv_prog_cc_c89"
     2795    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
     2796$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
     2797esac
     2798
     2799
     2800ac_ext=c
     2801ac_cpp='$CPP $CPPFLAGS'
     2802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2804ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2805
     2806
     2807if test -n "$ac_tool_prefix"; then
     2808  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2809set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2810{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2811$as_echo_n "checking for $ac_word... " >&6; }
     2812if test "${ac_cv_prog_RANLIB+set}" = set; then
     2813  $as_echo_n "(cached) " >&6
     2814else
     2815  if test -n "$RANLIB"; then
     2816  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     2817else
     2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2819for as_dir in $PATH
     2820do
     2821  IFS=$as_save_IFS
     2822  test -z "$as_dir" && as_dir=.
     2823  for ac_exec_ext in '' $ac_executable_extensions; do
     2824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2825    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2826    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2827    break 2
     2828  fi
     2829done
     2830done
     2831IFS=$as_save_IFS
     2832
     2833fi
     2834fi
     2835RANLIB=$ac_cv_prog_RANLIB
     2836if test -n "$RANLIB"; then
     2837  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
     2838$as_echo "$RANLIB" >&6; }
     2839else
     2840  { $as_echo "$as_me:$LINENO: result: no" >&5
     2841$as_echo "no" >&6; }
     2842fi
     2843
     2844
     2845fi
     2846if test -z "$ac_cv_prog_RANLIB"; then
     2847  ac_ct_RANLIB=$RANLIB
     2848  # Extract the first word of "ranlib", so it can be a program name with args.
     2849set dummy ranlib; ac_word=$2
     2850{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     2851$as_echo_n "checking for $ac_word... " >&6; }
     2852if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2853  $as_echo_n "(cached) " >&6
     2854else
     2855  if test -n "$ac_ct_RANLIB"; then
     2856  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2857else
     2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2859for as_dir in $PATH
     2860do
     2861  IFS=$as_save_IFS
     2862  test -z "$as_dir" && as_dir=.
     2863  for ac_exec_ext in '' $ac_executable_extensions; do
     2864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2865    ac_cv_prog_ac_ct_RANLIB="ranlib"
     2866    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2867    break 2
     2868  fi
     2869done
     2870done
     2871IFS=$as_save_IFS
     2872
     2873fi
     2874fi
     2875ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2876if test -n "$ac_ct_RANLIB"; then
     2877  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
     2878$as_echo "$ac_ct_RANLIB" >&6; }
     2879else
     2880  { $as_echo "$as_me:$LINENO: result: no" >&5
     2881$as_echo "no" >&6; }
     2882fi
     2883
     2884  if test "x$ac_ct_RANLIB" = x; then
     2885    RANLIB=":"
     2886  else
     2887    case $cross_compiling:$ac_tool_warned in
     2888yes:)
     2889{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
     2890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2891ac_tool_warned=yes ;;
     2892esac
     2893    RANLIB=$ac_ct_RANLIB
     2894  fi
     2895else
     2896  RANLIB="$ac_cv_prog_RANLIB"
     2897fi
     2898
     2899ac_ext=c
     2900ac_cpp='$CPP $CPPFLAGS'
     2901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2903ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2904{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     2905$as_echo_n "checking how to run the C preprocessor... " >&6; }
     2906# On Suns, sometimes $CPP names a directory.
     2907if test -n "$CPP" && test -d "$CPP"; then
     2908  CPP=
     2909fi
     2910if test -z "$CPP"; then
     2911  if test "${ac_cv_prog_CPP+set}" = set; then
     2912  $as_echo_n "(cached) " >&6
     2913else
     2914      # Double quotes because CPP needs to be expanded
     2915    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2916    do
     2917      ac_preproc_ok=false
     2918for ac_c_preproc_warn_flag in '' yes
     2919do
     2920  # Use a header file that comes with gcc, so configuring glibc
     2921  # with a fresh cross-compiler works.
     2922  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2923  # <limits.h> exists even on freestanding compilers.
     2924  # On the NeXT, cc -E runs the code through the compiler's parser,
     2925  # not just through cpp. "Syntax error" is here to catch this case.
     2926  cat >conftest.$ac_ext <<_ACEOF
     2927/* confdefs.h.  */
     2928_ACEOF
     2929cat confdefs.h >>conftest.$ac_ext
     2930cat >>conftest.$ac_ext <<_ACEOF
     2931/* end confdefs.h.  */
     2932#ifdef __STDC__
     2933# include <limits.h>
     2934#else
     2935# include <assert.h>
     2936#endif
     2937                     Syntax error
     2938_ACEOF
     2939if { (ac_try="$ac_cpp conftest.$ac_ext"
     2940case "(($ac_try" in
     2941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2942  *) ac_try_echo=$ac_try;;
     2943esac
     2944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2945$as_echo "$ac_try_echo") >&5
     2946  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     2947  ac_status=$?
     2948  grep -v '^ *+' conftest.er1 >conftest.err
     2949  rm -f conftest.er1
     2950  cat conftest.err >&5
     2951  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2952  (exit $ac_status); } >/dev/null && {
     2953         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     2954         test ! -s conftest.err
     2955       }; then
     2956  :
     2957else
     2958  $as_echo "$as_me: failed program was:" >&5
     2959sed 's/^/| /' conftest.$ac_ext >&5
     2960
     2961  # Broken: fails on valid input.
     2962continue
     2963fi
     2964
     2965rm -f conftest.err conftest.$ac_ext
     2966
     2967  # OK, works on sane cases.  Now check whether nonexistent headers
     2968  # can be detected and how.
     2969  cat >conftest.$ac_ext <<_ACEOF
     2970/* confdefs.h.  */
     2971_ACEOF
     2972cat confdefs.h >>conftest.$ac_ext
     2973cat >>conftest.$ac_ext <<_ACEOF
     2974/* end confdefs.h.  */
     2975#include <ac_nonexistent.h>
     2976_ACEOF
     2977if { (ac_try="$ac_cpp conftest.$ac_ext"
     2978case "(($ac_try" in
     2979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2980  *) ac_try_echo=$ac_try;;
     2981esac
     2982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     2983$as_echo "$ac_try_echo") >&5
     2984  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     2985  ac_status=$?
     2986  grep -v '^ *+' conftest.er1 >conftest.err
     2987  rm -f conftest.er1
     2988  cat conftest.err >&5
     2989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2990  (exit $ac_status); } >/dev/null && {
     2991         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     2992         test ! -s conftest.err
     2993       }; then
     2994  # Broken: success on invalid input.
     2995continue
     2996else
     2997  $as_echo "$as_me: failed program was:" >&5
     2998sed 's/^/| /' conftest.$ac_ext >&5
     2999
     3000  # Passes both tests.
     3001ac_preproc_ok=:
     3002break
     3003fi
     3004
     3005rm -f conftest.err conftest.$ac_ext
     3006
     3007done
     3008# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3009rm -f conftest.err conftest.$ac_ext
     3010if $ac_preproc_ok; then
     3011  break
     3012fi
     3013
     3014    done
     3015    ac_cv_prog_CPP=$CPP
     3016
     3017fi
     3018  CPP=$ac_cv_prog_CPP
     3019else
     3020  ac_cv_prog_CPP=$CPP
     3021fi
     3022{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
     3023$as_echo "$CPP" >&6; }
     3024ac_preproc_ok=false
     3025for ac_c_preproc_warn_flag in '' yes
     3026do
     3027  # Use a header file that comes with gcc, so configuring glibc
     3028  # with a fresh cross-compiler works.
     3029  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3030  # <limits.h> exists even on freestanding compilers.
     3031  # On the NeXT, cc -E runs the code through the compiler's parser,
     3032  # not just through cpp. "Syntax error" is here to catch this case.
     3033  cat >conftest.$ac_ext <<_ACEOF
     3034/* confdefs.h.  */
     3035_ACEOF
     3036cat confdefs.h >>conftest.$ac_ext
     3037cat >>conftest.$ac_ext <<_ACEOF
     3038/* end confdefs.h.  */
     3039#ifdef __STDC__
     3040# include <limits.h>
     3041#else
     3042# include <assert.h>
     3043#endif
     3044                     Syntax error
     3045_ACEOF
     3046if { (ac_try="$ac_cpp conftest.$ac_ext"
     3047case "(($ac_try" in
     3048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3049  *) ac_try_echo=$ac_try;;
     3050esac
     3051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3052$as_echo "$ac_try_echo") >&5
     3053  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     3054  ac_status=$?
     3055  grep -v '^ *+' conftest.er1 >conftest.err
     3056  rm -f conftest.er1
     3057  cat conftest.err >&5
     3058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3059  (exit $ac_status); } >/dev/null && {
     3060         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3061         test ! -s conftest.err
     3062       }; then
     3063  :
     3064else
     3065  $as_echo "$as_me: failed program was:" >&5
     3066sed 's/^/| /' conftest.$ac_ext >&5
     3067
     3068  # Broken: fails on valid input.
     3069continue
     3070fi
     3071
     3072rm -f conftest.err conftest.$ac_ext
     3073
     3074  # OK, works on sane cases.  Now check whether nonexistent headers
     3075  # can be detected and how.
     3076  cat >conftest.$ac_ext <<_ACEOF
     3077/* confdefs.h.  */
     3078_ACEOF
     3079cat confdefs.h >>conftest.$ac_ext
     3080cat >>conftest.$ac_ext <<_ACEOF
     3081/* end confdefs.h.  */
     3082#include <ac_nonexistent.h>
     3083_ACEOF
     3084if { (ac_try="$ac_cpp conftest.$ac_ext"
     3085case "(($ac_try" in
     3086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3087  *) ac_try_echo=$ac_try;;
     3088esac
     3089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3090$as_echo "$ac_try_echo") >&5
     3091  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     3092  ac_status=$?
     3093  grep -v '^ *+' conftest.er1 >conftest.err
     3094  rm -f conftest.er1
     3095  cat conftest.err >&5
     3096  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3097  (exit $ac_status); } >/dev/null && {
     3098         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     3099         test ! -s conftest.err
     3100       }; then
     3101  # Broken: success on invalid input.
     3102continue
     3103else
     3104  $as_echo "$as_me: failed program was:" >&5
     3105sed 's/^/| /' conftest.$ac_ext >&5
     3106
     3107  # Passes both tests.
     3108ac_preproc_ok=:
     3109break
     3110fi
     3111
     3112rm -f conftest.err conftest.$ac_ext
     3113
     3114done
     3115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3116rm -f conftest.err conftest.$ac_ext
     3117if $ac_preproc_ok; then
     3118  :
     3119else
     3120  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
     3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3122{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3123See \`config.log' for more details." >&5
     3124$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3125See \`config.log' for more details." >&2;}
     3126   { (exit 1); exit 1; }; }; }
     3127fi
     3128
     3129ac_ext=c
     3130ac_cpp='$CPP $CPPFLAGS'
     3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3133ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3134
     3135
     3136{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
     3137$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
     3138if test "${ac_cv_path_GREP+set}" = set; then
     3139  $as_echo_n "(cached) " >&6
     3140else
     3141  if test -z "$GREP"; then
     3142  ac_path_GREP_found=false
     3143  # Loop through the user's path and test for each of PROGNAME-LIST
     3144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3145for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     3146do
     3147  IFS=$as_save_IFS
     3148  test -z "$as_dir" && as_dir=.
     3149  for ac_prog in grep ggrep; do
     3150    for ac_exec_ext in '' $ac_executable_extensions; do
     3151      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
     3152      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     3153# Check for GNU ac_path_GREP and select it if it is found.
     3154  # Check for GNU $ac_path_GREP
     3155case `"$ac_path_GREP" --version 2>&1` in
     3156*GNU*)
     3157  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
     3158*)
     3159  ac_count=0
     3160  $as_echo_n 0123456789 >"conftest.in"
     3161  while :
     3162  do
     3163    cat "conftest.in" "conftest.in" >"conftest.tmp"
     3164    mv "conftest.tmp" "conftest.in"
     3165    cp "conftest.in" "conftest.nl"
     3166    $as_echo 'GREP' >> "conftest.nl"
     3167    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     3168    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     3169    ac_count=`expr $ac_count + 1`
     3170    if test $ac_count -gt ${ac_path_GREP_max-0}; then
     3171      # Best one so far, save it but keep looking for a better one
     3172      ac_cv_path_GREP="$ac_path_GREP"
     3173      ac_path_GREP_max=$ac_count
     3174    fi
     3175    # 10*(2^10) chars as input seems more than enough
     3176    test $ac_count -gt 10 && break
     3177  done
     3178  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     3179esac
     3180
     3181      $ac_path_GREP_found && break 3
     3182    done
     3183  done
     3184done
     3185IFS=$as_save_IFS
     3186  if test -z "$ac_cv_path_GREP"; then
     3187    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
     3188$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
     3189   { (exit 1); exit 1; }; }
     3190  fi
     3191else
     3192  ac_cv_path_GREP=$GREP
     3193fi
     3194
     3195fi
     3196{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
     3197$as_echo "$ac_cv_path_GREP" >&6; }
     3198 GREP="$ac_cv_path_GREP"
     3199
     3200
     3201{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
     3202$as_echo_n "checking for egrep... " >&6; }
     3203if test "${ac_cv_path_EGREP+set}" = set; then
     3204  $as_echo_n "(cached) " >&6
     3205else
     3206  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
     3207   then ac_cv_path_EGREP="$GREP -E"
     3208   else
     3209     if test -z "$EGREP"; then
     3210  ac_path_EGREP_found=false
     3211  # Loop through the user's path and test for each of PROGNAME-LIST
     3212  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     3214do
     3215  IFS=$as_save_IFS
     3216  test -z "$as_dir" && as_dir=.
     3217  for ac_prog in egrep; do
     3218    for ac_exec_ext in '' $ac_executable_extensions; do
     3219      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
     3220      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     3221# Check for GNU ac_path_EGREP and select it if it is found.
     3222  # Check for GNU $ac_path_EGREP
     3223case `"$ac_path_EGREP" --version 2>&1` in
     3224*GNU*)
     3225  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
     3226*)
     3227  ac_count=0
     3228  $as_echo_n 0123456789 >"conftest.in"
     3229  while :
     3230  do
     3231    cat "conftest.in" "conftest.in" >"conftest.tmp"
     3232    mv "conftest.tmp" "conftest.in"
     3233    cp "conftest.in" "conftest.nl"
     3234    $as_echo 'EGREP' >> "conftest.nl"
     3235    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     3236    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     3237    ac_count=`expr $ac_count + 1`
     3238    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
     3239      # Best one so far, save it but keep looking for a better one
     3240      ac_cv_path_EGREP="$ac_path_EGREP"
     3241      ac_path_EGREP_max=$ac_count
     3242    fi
     3243    # 10*(2^10) chars as input seems more than enough
     3244    test $ac_count -gt 10 && break
     3245  done
     3246  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     3247esac
     3248
     3249      $ac_path_EGREP_found && break 3
     3250    done
     3251  done
     3252done
     3253IFS=$as_save_IFS
     3254  if test -z "$ac_cv_path_EGREP"; then
     3255    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
     3256$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
     3257   { (exit 1); exit 1; }; }
     3258  fi
     3259else
     3260  ac_cv_path_EGREP=$EGREP
     3261fi
     3262
     3263   fi
     3264fi
     3265{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
     3266$as_echo "$ac_cv_path_EGREP" >&6; }
     3267 EGREP="$ac_cv_path_EGREP"
     3268
     3269
     3270{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3271$as_echo_n "checking for ANSI C header files... " >&6; }
     3272if test "${ac_cv_header_stdc+set}" = set; then
     3273  $as_echo_n "(cached) " >&6
     3274else
     3275  cat >conftest.$ac_ext <<_ACEOF
     3276/* confdefs.h.  */
     3277_ACEOF
     3278cat confdefs.h >>conftest.$ac_ext
     3279cat >>conftest.$ac_ext <<_ACEOF
     3280/* end confdefs.h.  */
     3281#include <stdlib.h>
     3282#include <stdarg.h>
     3283#include <string.h>
     3284#include <float.h>
     3285
     3286int
     3287main ()
     3288{
     3289
     3290  ;
     3291  return 0;
     3292}
     3293_ACEOF
     3294rm -f conftest.$ac_objext
     3295if { (ac_try="$ac_compile"
     3296case "(($ac_try" in
     3297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3298  *) ac_try_echo=$ac_try;;
     3299esac
     3300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3301$as_echo "$ac_try_echo") >&5
     3302  (eval "$ac_compile") 2>conftest.er1
     3303  ac_status=$?
     3304  grep -v '^ *+' conftest.er1 >conftest.err
     3305  rm -f conftest.er1
     3306  cat conftest.err >&5
     3307  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3308  (exit $ac_status); } && {
     3309         test -z "$ac_c_werror_flag" ||
     3310         test ! -s conftest.err
     3311       } && test -s conftest.$ac_objext; then
     3312  ac_cv_header_stdc=yes
     3313else
     3314  $as_echo "$as_me: failed program was:" >&5
     3315sed 's/^/| /' conftest.$ac_ext >&5
     3316
     3317        ac_cv_header_stdc=no
     3318fi
     3319
     3320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3321
     3322if test $ac_cv_header_stdc = yes; then
     3323  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3324  cat >conftest.$ac_ext <<_ACEOF
     3325/* confdefs.h.  */
     3326_ACEOF
     3327cat confdefs.h >>conftest.$ac_ext
     3328cat >>conftest.$ac_ext <<_ACEOF
     3329/* end confdefs.h.  */
     3330#include <string.h>
     3331
     3332_ACEOF
     3333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3334  $EGREP "memchr" >/dev/null 2>&1; then
     3335  :
     3336else
     3337  ac_cv_header_stdc=no
     3338fi
     3339rm -f conftest*
     3340
     3341fi
     3342
     3343if test $ac_cv_header_stdc = yes; then
     3344  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3345  cat >conftest.$ac_ext <<_ACEOF
     3346/* confdefs.h.  */
     3347_ACEOF
     3348cat confdefs.h >>conftest.$ac_ext
     3349cat >>conftest.$ac_ext <<_ACEOF
     3350/* end confdefs.h.  */
     3351#include <stdlib.h>
     3352
     3353_ACEOF
     3354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3355  $EGREP "free" >/dev/null 2>&1; then
     3356  :
     3357else
     3358  ac_cv_header_stdc=no
     3359fi
     3360rm -f conftest*
     3361
     3362fi
     3363
     3364if test $ac_cv_header_stdc = yes; then
     3365  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3366  if test "$cross_compiling" = yes; then
     3367  :
     3368else
     3369  cat >conftest.$ac_ext <<_ACEOF
     3370/* confdefs.h.  */
     3371_ACEOF
     3372cat confdefs.h >>conftest.$ac_ext
     3373cat >>conftest.$ac_ext <<_ACEOF
     3374/* end confdefs.h.  */
     3375#include <ctype.h>
     3376#include <stdlib.h>
     3377#if ((' ' & 0x0FF) == 0x020)
     3378# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3379# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3380#else
     3381# define ISLOWER(c) \
     3382                   (('a' <= (c) && (c) <= 'i') \
     3383                     || ('j' <= (c) && (c) <= 'r') \
     3384                     || ('s' <= (c) && (c) <= 'z'))
     3385# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3386#endif
     3387
     3388#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     3389int
     3390main ()
     3391{
     3392  int i;
     3393  for (i = 0; i < 256; i++)
     3394    if (XOR (islower (i), ISLOWER (i))
     3395        || toupper (i) != TOUPPER (i))
     3396      return 2;
     3397  return 0;
     3398}
     3399_ACEOF
     3400rm -f conftest$ac_exeext
     3401if { (ac_try="$ac_link"
     3402case "(($ac_try" in
     3403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3404  *) ac_try_echo=$ac_try;;
     3405esac
     3406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3407$as_echo "$ac_try_echo") >&5
     3408  (eval "$ac_link") 2>&5
     3409  ac_status=$?
     3410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3411  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3412  { (case "(($ac_try" in
     3413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3414  *) ac_try_echo=$ac_try;;
     3415esac
     3416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3417$as_echo "$ac_try_echo") >&5
     3418  (eval "$ac_try") 2>&5
     3419  ac_status=$?
     3420  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3421  (exit $ac_status); }; }; then
     3422  :
     3423else
     3424  $as_echo "$as_me: program exited with status $ac_status" >&5
     3425$as_echo "$as_me: failed program was:" >&5
     3426sed 's/^/| /' conftest.$ac_ext >&5
     3427
     3428( exit $ac_status )
     3429ac_cv_header_stdc=no
     3430fi
     3431rm -rf conftest.dSYM
     3432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3433fi
     3434
     3435
     3436fi
     3437fi
     3438{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3439$as_echo "$ac_cv_header_stdc" >&6; }
     3440if test $ac_cv_header_stdc = yes; then
     3441
     3442cat >>confdefs.h <<\_ACEOF
     3443#define STDC_HEADERS 1
     3444_ACEOF
     3445
     3446fi
     3447
     3448# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3449
     3450
     3451
     3452
     3453
     3454
     3455
     3456
     3457
     3458for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     3459                  inttypes.h stdint.h unistd.h
     3460do
     3461as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3462{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
     3463$as_echo_n "checking for $ac_header... " >&6; }
     3464if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
     3465  $as_echo_n "(cached) " >&6
     3466else
     3467  cat >conftest.$ac_ext <<_ACEOF
     3468/* confdefs.h.  */
     3469_ACEOF
     3470cat confdefs.h >>conftest.$ac_ext
     3471cat >>conftest.$ac_ext <<_ACEOF
     3472/* end confdefs.h.  */
     3473$ac_includes_default
     3474
     3475#include <$ac_header>
     3476_ACEOF
     3477rm -f conftest.$ac_objext
     3478if { (ac_try="$ac_compile"
     3479case "(($ac_try" in
     3480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3481  *) ac_try_echo=$ac_try;;
     3482esac
     3483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3484$as_echo "$ac_try_echo") >&5
     3485  (eval "$ac_compile") 2>conftest.er1
     3486  ac_status=$?
     3487  grep -v '^ *+' conftest.er1 >conftest.err
     3488  rm -f conftest.er1
     3489  cat conftest.err >&5
     3490  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3491  (exit $ac_status); } && {
     3492         test -z "$ac_c_werror_flag" ||
     3493         test ! -s conftest.err
     3494       } && test -s conftest.$ac_objext; then
     3495  eval "$as_ac_Header=yes"
     3496else
     3497  $as_echo "$as_me: failed program was:" >&5
     3498sed 's/^/| /' conftest.$ac_ext >&5
     3499
     3500        eval "$as_ac_Header=no"
     3501fi
     3502
     3503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3504fi
     3505ac_res=`eval 'as_val=${'$as_ac_Header'}
     3506                 $as_echo "$as_val"'`
     3507               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
     3508$as_echo "$ac_res" >&6; }
     3509as_val=`eval 'as_val=${'$as_ac_Header'}
     3510                 $as_echo "$as_val"'`
     3511   if test "x$as_val" = x""yes; then
     3512  cat >>confdefs.h <<_ACEOF
     3513#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     3514_ACEOF
     3515
     3516fi
     3517
     3518done
     3519
     3520
     3521
     3522
     3523    # Step 0.a: Enable 64 bit support?
     3524
     3525    { $as_echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
     3526$as_echo_n "checking if 64bit support is requested... " >&6; }
     3527    # Check whether --enable-64bit was given.
     3528if test "${enable_64bit+set}" = set; then
     3529  enableval=$enable_64bit; do64bit=$enableval
     3530else
     3531  do64bit=no
     3532fi
     3533
     3534    { $as_echo "$as_me:$LINENO: result: $do64bit" >&5
     3535$as_echo "$do64bit" >&6; }
     3536
     3537    # Step 0.b: Enable Solaris 64 bit VIS support?
     3538
     3539    { $as_echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
     3540$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
     3541    # Check whether --enable-64bit-vis was given.
     3542if test "${enable_64bit_vis+set}" = set; then
     3543  enableval=$enable_64bit_vis; do64bitVIS=$enableval
     3544else
     3545  do64bitVIS=no
     3546fi
     3547
     3548    { $as_echo "$as_me:$LINENO: result: $do64bitVIS" >&5
     3549$as_echo "$do64bitVIS" >&6; }
     3550
     3551    if test "$do64bitVIS" = "yes"; then
     3552        # Force 64bit on with VIS
     3553        do64bit=yes
     3554    fi
     3555
     3556    # Step 1: set the variable "system" to hold the name and version number
     3557    # for the system.
     3558
     3559
     3560    { $as_echo "$as_me:$LINENO: checking system version" >&5
     3561$as_echo_n "checking system version... " >&6; }
     3562if test "${tcl_cv_sys_version+set}" = set; then
     3563  $as_echo_n "(cached) " >&6
     3564else
     3565
     3566        if test -f /usr/lib/NextStep/software_version; then
     3567            tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
     3568        else
     3569            tcl_cv_sys_version=`uname -s`-`uname -r`
     3570            if test "$?" -ne 0 ; then
     3571                { $as_echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
     3572$as_echo "$as_me: WARNING: can't find uname command" >&2;}
     3573                tcl_cv_sys_version=unknown
     3574            else
     3575                # Special check for weird MP-RAS system (uname returns weird
     3576                # results, and the version is kept in special file).
     3577
     3578                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
     3579                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
     3580                fi
     3581                if test "`uname -s`" = "AIX" ; then
     3582                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
     3583                fi
     3584            fi
     3585        fi
     3586
     3587fi
     3588{ $as_echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
     3589$as_echo "$tcl_cv_sys_version" >&6; }
     3590    system=$tcl_cv_sys_version
     3591
     3592
     3593    # Step 2: check for existence of -ldl library.  This is needed because
     3594    # Linux can use either -ldl or -ldld for dynamic loading.
     3595
     3596    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     3597$as_echo_n "checking for dlopen in -ldl... " >&6; }
     3598if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     3599  $as_echo_n "(cached) " >&6
     3600else
     3601  ac_check_lib_save_LIBS=$LIBS
     3602LIBS="-ldl  $LIBS"
     3603cat >conftest.$ac_ext <<_ACEOF
     3604/* confdefs.h.  */
     3605_ACEOF
     3606cat confdefs.h >>conftest.$ac_ext
     3607cat >>conftest.$ac_ext <<_ACEOF
     3608/* end confdefs.h.  */
     3609
     3610/* Override any GCC internal prototype to avoid an error.
     3611   Use char because int might match the return type of a GCC
     3612   builtin and then its argument prototype would still apply.  */
     3613#ifdef __cplusplus
     3614extern "C"
     3615#endif
     3616char dlopen ();
     3617int
     3618main ()
     3619{
     3620return dlopen ();
     3621  ;
     3622  return 0;
     3623}
     3624_ACEOF
     3625rm -f conftest.$ac_objext conftest$ac_exeext
     3626if { (ac_try="$ac_link"
     3627case "(($ac_try" in
     3628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3629  *) ac_try_echo=$ac_try;;
     3630esac
     3631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3632$as_echo "$ac_try_echo") >&5
     3633  (eval "$ac_link") 2>conftest.er1
     3634  ac_status=$?
     3635  grep -v '^ *+' conftest.er1 >conftest.err
     3636  rm -f conftest.er1
     3637  cat conftest.err >&5
     3638  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3639  (exit $ac_status); } && {
     3640         test -z "$ac_c_werror_flag" ||
     3641         test ! -s conftest.err
     3642       } && test -s conftest$ac_exeext && {
     3643         test "$cross_compiling" = yes ||
     3644         $as_test_x conftest$ac_exeext
     3645       }; then
     3646  ac_cv_lib_dl_dlopen=yes
     3647else
     3648  $as_echo "$as_me: failed program was:" >&5
     3649sed 's/^/| /' conftest.$ac_ext >&5
     3650
     3651        ac_cv_lib_dl_dlopen=no
     3652fi
     3653
     3654rm -rf conftest.dSYM
     3655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     3656      conftest$ac_exeext conftest.$ac_ext
     3657LIBS=$ac_check_lib_save_LIBS
     3658fi
     3659{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     3660$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
     3661if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
     3662  have_dl=yes
     3663else
     3664  have_dl=no
     3665fi
     3666
     3667
     3668    # Require ranlib early so we can override it in special cases below.
     3669
     3670
     3671
     3672    # Step 3: set configuration options based on system name and version.
     3673
     3674    do64bit_ok=no
     3675    LDFLAGS_ORIG="$LDFLAGS"
     3676    TCL_EXPORT_FILE_SUFFIX=""
     3677    UNSHARED_LIB_SUFFIX=""
     3678    TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
     3679    ECHO_VERSION='`echo ${VERSION}`'
     3680    TCL_LIB_VERSIONS_OK=ok
     3681    CFLAGS_DEBUG=-g
     3682    CFLAGS_OPTIMIZE=-O
     3683    if test "$GCC" = "yes" ; then
     3684        CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
     3685    else
     3686        CFLAGS_WARNING=""
     3687    fi
     3688    TCL_NEEDS_EXP_FILE=0
     3689    TCL_BUILD_EXP_FILE=""
     3690    TCL_EXP_FILE=""
     3691    # Extract the first word of "ar", so it can be a program name with args.
     3692set dummy ar; ac_word=$2
     3693{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     3694$as_echo_n "checking for $ac_word... " >&6; }
     3695if test "${ac_cv_prog_AR+set}" = set; then
     3696  $as_echo_n "(cached) " >&6
     3697else
     3698  if test -n "$AR"; then
     3699  ac_cv_prog_AR="$AR" # Let the user override the test.
     3700else
     3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3702for as_dir in $PATH
     3703do
     3704  IFS=$as_save_IFS
     3705  test -z "$as_dir" && as_dir=.
     3706  for ac_exec_ext in '' $ac_executable_extensions; do
     3707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3708    ac_cv_prog_AR="ar"
     3709    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3710    break 2
     3711  fi
     3712done
     3713done
     3714IFS=$as_save_IFS
     3715
     3716fi
     3717fi
     3718AR=$ac_cv_prog_AR
     3719if test -n "$AR"; then
     3720  { $as_echo "$as_me:$LINENO: result: $AR" >&5
     3721$as_echo "$AR" >&6; }
     3722else
     3723  { $as_echo "$as_me:$LINENO: result: no" >&5
     3724$as_echo "no" >&6; }
     3725fi
     3726
     3727
     3728    if test "${AR}" = "" ; then
     3729        { { $as_echo "$as_me:$LINENO: error: Required archive tool 'ar' not found on PATH." >&5
     3730$as_echo "$as_me: error: Required archive tool 'ar' not found on PATH." >&2;}
     3731   { (exit 1); exit 1; }; }
     3732    fi
     3733    STLIB_LD='${AR} cr'
     3734    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
     3735    PLAT_OBJS=""
     3736    PLAT_SRCS=""
     3737    case $system in
     3738        AIX-*)
     3739            if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
     3740                # AIX requires the _r compiler when gcc isn't being used
     3741                case "${CC}" in
     3742                    *_r)
     3743                        # ok ...
     3744                        ;;
     3745                    *)
     3746                        CC=${CC}_r
     3747                        ;;
     3748                esac
     3749                { $as_echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5
     3750$as_echo "Using $CC for compiling with threads" >&6; }
     3751            fi
     3752            LIBS="$LIBS -lc"
     3753            SHLIB_CFLAGS=""
     3754            # Note: need the LIBS below, otherwise Tk won't find Tcl's
     3755            # symbols when dynamically loaded into tclsh.
     3756            SHLIB_LD_LIBS='${LIBS}'
     3757            SHLIB_SUFFIX=".so"
     3758
     3759            DL_OBJS="tclLoadDl.o"
     3760            LD_LIBRARY_PATH_VAR="LIBPATH"
     3761
     3762            # Check to enable 64-bit flags for compiler/linker on AIX 4+
     3763            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
     3764                if test "$GCC" = "yes" ; then
     3765                    { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
     3766$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
     3767                else
     3768                    do64bit_ok=yes
     3769                    CFLAGS="$CFLAGS -q64"
     3770                    LDFLAGS="$LDFLAGS -q64"
     3771                    RANLIB="${RANLIB} -X64"
     3772                    AR="${AR} -X64"
     3773                    SHLIB_LD_FLAGS="-b64"
     3774                fi
     3775            fi
     3776
     3777            if test "`uname -m`" = "ia64" ; then
     3778                # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
     3779                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
     3780                # AIX-5 has dl* in libc.so
     3781                DL_LIBS=""
     3782                if test "$GCC" = "yes" ; then
     3783                    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     3784                else
     3785                    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
     3786                fi
     3787                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
     3788            else
     3789                if test "$GCC" = "yes" ; then
     3790                    SHLIB_LD="gcc -shared"
     3791                else
     3792                    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
     3793                fi
     3794                SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
     3795                DL_LIBS="-ldl"
     3796                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     3797                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     3798                TCL_NEEDS_EXP_FILE=1
     3799                TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
     3800            fi
     3801
     3802            # AIX v<=4.1 has some different flags than 4.2+
     3803            if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
     3804                LIBOBJS="$LIBOBJS tclLoadAix.o"
     3805                DL_LIBS="-lld"
     3806            fi
     3807
     3808            # On AIX <=v4 systems, libbsd.a has to be linked in to support
     3809            # non-blocking file IO.  This library has to be linked in after
     3810            # the MATH_LIBS or it breaks the pow() function.  The way to
     3811            # insure proper sequencing, is to add it to the tail of MATH_LIBS.
     3812            # This library also supplies gettimeofday.
     3813            #
     3814            # AIX does not have a timezone field in struct tm. When the AIX
     3815            # bsd library is used, the timezone global and the gettimeofday
     3816            # methods are to be avoided for timezone deduction instead, we
     3817            # deduce the timezone by comparing the localtime result on a
     3818            # known GMT value.
     3819
     3820            { $as_echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5
     3821$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
     3822if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
     3823  $as_echo_n "(cached) " >&6
     3824else
     3825  ac_check_lib_save_LIBS=$LIBS
     3826LIBS="-lbsd  $LIBS"
     3827cat >conftest.$ac_ext <<_ACEOF
     3828/* confdefs.h.  */
     3829_ACEOF
     3830cat confdefs.h >>conftest.$ac_ext
     3831cat >>conftest.$ac_ext <<_ACEOF
     3832/* end confdefs.h.  */
     3833
     3834/* Override any GCC internal prototype to avoid an error.
     3835   Use char because int might match the return type of a GCC
     3836   builtin and then its argument prototype would still apply.  */
     3837#ifdef __cplusplus
     3838extern "C"
     3839#endif
     3840char gettimeofday ();
     3841int
     3842main ()
     3843{
     3844return gettimeofday ();
     3845  ;
     3846  return 0;
     3847}
     3848_ACEOF
     3849rm -f conftest.$ac_objext conftest$ac_exeext
     3850if { (ac_try="$ac_link"
     3851case "(($ac_try" in
     3852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3853  *) ac_try_echo=$ac_try;;
     3854esac
     3855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3856$as_echo "$ac_try_echo") >&5
     3857  (eval "$ac_link") 2>conftest.er1
     3858  ac_status=$?
     3859  grep -v '^ *+' conftest.er1 >conftest.err
     3860  rm -f conftest.er1
     3861  cat conftest.err >&5
     3862  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3863  (exit $ac_status); } && {
     3864         test -z "$ac_c_werror_flag" ||
     3865         test ! -s conftest.err
     3866       } && test -s conftest$ac_exeext && {
     3867         test "$cross_compiling" = yes ||
     3868         $as_test_x conftest$ac_exeext
     3869       }; then
     3870  ac_cv_lib_bsd_gettimeofday=yes
     3871else
     3872  $as_echo "$as_me: failed program was:" >&5
     3873sed 's/^/| /' conftest.$ac_ext >&5
     3874
     3875        ac_cv_lib_bsd_gettimeofday=no
     3876fi
     3877
     3878rm -rf conftest.dSYM
     3879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     3880      conftest$ac_exeext conftest.$ac_ext
     3881LIBS=$ac_check_lib_save_LIBS
     3882fi
     3883{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5
     3884$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
     3885if test "x$ac_cv_lib_bsd_gettimeofday" = x""yes; then
     3886  libbsd=yes
     3887else
     3888  libbsd=no
     3889fi
     3890
     3891            if test $libbsd = yes; then
     3892                MATH_LIBS="$MATH_LIBS -lbsd"
     3893                cat >>confdefs.h <<\_ACEOF
     3894#define USE_DELTA_FOR_TZ 1
     3895_ACEOF
     3896
     3897            fi
     3898            ;;
     3899        BeOS*)
     3900            SHLIB_CFLAGS="-fPIC"
     3901            SHLIB_LD="${CC} -nostart"
     3902            SHLIB_LD_LIBS='${LIBS}'
     3903            SHLIB_SUFFIX=".so"
     3904            DL_OBJS="tclLoadDl.o"
     3905            DL_LIBS="-ldl"
     3906
     3907            #-----------------------------------------------------------
     3908            # Check for inet_ntoa in -lbind, for BeOS (which also needs
     3909            # -lsocket, even if the network functions are in -lnet which
     3910            # is always linked to, for compatibility.
     3911            #-----------------------------------------------------------
     3912            { $as_echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5
     3913$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
     3914if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then
     3915  $as_echo_n "(cached) " >&6
     3916else
     3917  ac_check_lib_save_LIBS=$LIBS
     3918LIBS="-lbind  $LIBS"
     3919cat >conftest.$ac_ext <<_ACEOF
     3920/* confdefs.h.  */
     3921_ACEOF
     3922cat confdefs.h >>conftest.$ac_ext
     3923cat >>conftest.$ac_ext <<_ACEOF
     3924/* end confdefs.h.  */
     3925
     3926/* Override any GCC internal prototype to avoid an error.
     3927   Use char because int might match the return type of a GCC
     3928   builtin and then its argument prototype would still apply.  */
     3929#ifdef __cplusplus
     3930extern "C"
     3931#endif
     3932char inet_ntoa ();
     3933int
     3934main ()
     3935{
     3936return inet_ntoa ();
     3937  ;
     3938  return 0;
     3939}
     3940_ACEOF
     3941rm -f conftest.$ac_objext conftest$ac_exeext
     3942if { (ac_try="$ac_link"
     3943case "(($ac_try" in
     3944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3945  *) ac_try_echo=$ac_try;;
     3946esac
     3947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     3948$as_echo "$ac_try_echo") >&5
     3949  (eval "$ac_link") 2>conftest.er1
     3950  ac_status=$?
     3951  grep -v '^ *+' conftest.er1 >conftest.err
     3952  rm -f conftest.er1
     3953  cat conftest.err >&5
     3954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3955  (exit $ac_status); } && {
     3956         test -z "$ac_c_werror_flag" ||
     3957         test ! -s conftest.err
     3958       } && test -s conftest$ac_exeext && {
     3959         test "$cross_compiling" = yes ||
     3960         $as_test_x conftest$ac_exeext
     3961       }; then
     3962  ac_cv_lib_bind_inet_ntoa=yes
     3963else
     3964  $as_echo "$as_me: failed program was:" >&5
     3965sed 's/^/| /' conftest.$ac_ext >&5
     3966
     3967        ac_cv_lib_bind_inet_ntoa=no
     3968fi
     3969
     3970rm -rf conftest.dSYM
     3971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     3972      conftest$ac_exeext conftest.$ac_ext
     3973LIBS=$ac_check_lib_save_LIBS
     3974fi
     3975{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5
     3976$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
     3977if test "x$ac_cv_lib_bind_inet_ntoa" = x""yes; then
     3978  LIBS="$LIBS -lbind -lsocket"
     3979fi
     3980
     3981            ;;
     3982        BSD/OS-2.1*|BSD/OS-3*)
     3983            SHLIB_CFLAGS=""
     3984            SHLIB_LD="shlicc -r"
     3985            SHLIB_LD_LIBS='${LIBS}'
     3986            SHLIB_SUFFIX=".so"
     3987            DL_OBJS="tclLoadDl.o"
     3988            DL_LIBS="-ldl"
     3989            CC_SEARCH_FLAGS=""
     3990            LD_SEARCH_FLAGS=""
     3991            ;;
     3992        BSD/OS-4.*)
     3993            SHLIB_CFLAGS="-export-dynamic -fPIC"
     3994            SHLIB_LD="cc -shared"
     3995            SHLIB_LD_LIBS='${LIBS}'
     3996            SHLIB_SUFFIX=".so"
     3997            DL_OBJS="tclLoadDl.o"
     3998            DL_LIBS="-ldl"
     3999            LDFLAGS="$LDFLAGS -export-dynamic"
     4000            CC_SEARCH_FLAGS=""
     4001            LD_SEARCH_FLAGS=""
     4002            ;;
     4003        dgux*)
     4004            SHLIB_CFLAGS="-K PIC"
     4005            SHLIB_LD="cc -G"
     4006            SHLIB_LD_LIBS=""
     4007            SHLIB_SUFFIX=".so"
     4008            DL_OBJS="tclLoadDl.o"
     4009            DL_LIBS="-ldl"
     4010            CC_SEARCH_FLAGS=""
     4011            LD_SEARCH_FLAGS=""
     4012            ;;
     4013        HP-UX-*.11.*)
     4014            # Use updated header definitions where possible
     4015            cat >>confdefs.h <<\_ACEOF
     4016#define _XOPEN_SOURCE 1
     4017_ACEOF
     4018          # Use the XOPEN network library
     4019            cat >>confdefs.h <<\_ACEOF
     4020#define _XOPEN_SOURCE_EXTENDED 1
     4021_ACEOF
     4022 # Use the XOPEN network library
     4023            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
     4024
     4025            if test "`uname -m`" = "ia64" ; then
     4026                SHLIB_SUFFIX=".so"
     4027            else
     4028                SHLIB_SUFFIX=".sl"
     4029            fi
     4030            { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
     4031$as_echo_n "checking for shl_load in -ldld... " >&6; }
     4032if test "${ac_cv_lib_dld_shl_load+set}" = set; then
     4033  $as_echo_n "(cached) " >&6
     4034else
     4035  ac_check_lib_save_LIBS=$LIBS
     4036LIBS="-ldld  $LIBS"
     4037cat >conftest.$ac_ext <<_ACEOF
     4038/* confdefs.h.  */
     4039_ACEOF
     4040cat confdefs.h >>conftest.$ac_ext
     4041cat >>conftest.$ac_ext <<_ACEOF
     4042/* end confdefs.h.  */
     4043
     4044/* Override any GCC internal prototype to avoid an error.
     4045   Use char because int might match the return type of a GCC
     4046   builtin and then its argument prototype would still apply.  */
     4047#ifdef __cplusplus
     4048extern "C"
     4049#endif
     4050char shl_load ();
     4051int
     4052main ()
     4053{
     4054return shl_load ();
     4055  ;
     4056  return 0;
     4057}
     4058_ACEOF
     4059rm -f conftest.$ac_objext conftest$ac_exeext
     4060if { (ac_try="$ac_link"
     4061case "(($ac_try" in
     4062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4063  *) ac_try_echo=$ac_try;;
     4064esac
     4065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4066$as_echo "$ac_try_echo") >&5
     4067  (eval "$ac_link") 2>conftest.er1
     4068  ac_status=$?
     4069  grep -v '^ *+' conftest.er1 >conftest.err
     4070  rm -f conftest.er1
     4071  cat conftest.err >&5
     4072  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4073  (exit $ac_status); } && {
     4074         test -z "$ac_c_werror_flag" ||
     4075         test ! -s conftest.err
     4076       } && test -s conftest$ac_exeext && {
     4077         test "$cross_compiling" = yes ||
     4078         $as_test_x conftest$ac_exeext
     4079       }; then
     4080  ac_cv_lib_dld_shl_load=yes
     4081else
     4082  $as_echo "$as_me: failed program was:" >&5
     4083sed 's/^/| /' conftest.$ac_ext >&5
     4084
     4085        ac_cv_lib_dld_shl_load=no
     4086fi
     4087
     4088rm -rf conftest.dSYM
     4089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4090      conftest$ac_exeext conftest.$ac_ext
     4091LIBS=$ac_check_lib_save_LIBS
     4092fi
     4093{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
     4094$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
     4095if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
     4096  tcl_ok=yes
     4097else
     4098  tcl_ok=no
     4099fi
     4100
     4101            if test "$tcl_ok" = yes; then
     4102                SHLIB_CFLAGS="+z"
     4103                SHLIB_LD="ld -b"
     4104                SHLIB_LD_LIBS='${LIBS}'
     4105                DL_OBJS="tclLoadShl.o"
     4106                DL_LIBS="-ldld"
     4107                LDFLAGS="$LDFLAGS -Wl,-E"
     4108                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
     4109                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
     4110                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
     4111            fi
     4112            if test "$GCC" = "yes" ; then
     4113                SHLIB_LD="gcc -shared"
     4114                SHLIB_LD_LIBS='${LIBS}'
     4115                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4116            fi
     4117
     4118            # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
     4119            #CFLAGS="$CFLAGS +DAportable"
     4120
     4121            # Check to enable 64-bit flags for compiler/linker
     4122            if test "$do64bit" = "yes" ; then
     4123                if test "$GCC" = "yes" ; then
     4124                    hpux_arch=`${CC} -dumpmachine`
     4125                    case $hpux_arch in
     4126                        hppa64*)
     4127                            # 64-bit gcc in use.  Fix flags for GNU ld.
     4128                            do64bit_ok=yes
     4129                            SHLIB_LD="${CC} -shared"
     4130                            SHLIB_LD_LIBS='${LIBS}'
     4131                            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4132                            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4133                            ;;
     4134                        *)
     4135                            { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
     4136$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
     4137                            ;;
     4138                    esac
     4139                else
     4140                    do64bit_ok=yes
     4141                    CFLAGS="$CFLAGS +DD64"
     4142                    LDFLAGS="$LDFLAGS +DD64"
     4143                fi
     4144            fi
     4145            ;;
     4146        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
     4147            SHLIB_SUFFIX=".sl"
     4148            { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
     4149$as_echo_n "checking for shl_load in -ldld... " >&6; }
     4150if test "${ac_cv_lib_dld_shl_load+set}" = set; then
     4151  $as_echo_n "(cached) " >&6
     4152else
     4153  ac_check_lib_save_LIBS=$LIBS
     4154LIBS="-ldld  $LIBS"
     4155cat >conftest.$ac_ext <<_ACEOF
     4156/* confdefs.h.  */
     4157_ACEOF
     4158cat confdefs.h >>conftest.$ac_ext
     4159cat >>conftest.$ac_ext <<_ACEOF
     4160/* end confdefs.h.  */
     4161
     4162/* Override any GCC internal prototype to avoid an error.
     4163   Use char because int might match the return type of a GCC
     4164   builtin and then its argument prototype would still apply.  */
     4165#ifdef __cplusplus
     4166extern "C"
     4167#endif
     4168char shl_load ();
     4169int
     4170main ()
     4171{
     4172return shl_load ();
     4173  ;
     4174  return 0;
     4175}
     4176_ACEOF
     4177rm -f conftest.$ac_objext conftest$ac_exeext
     4178if { (ac_try="$ac_link"
     4179case "(($ac_try" in
     4180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4181  *) ac_try_echo=$ac_try;;
     4182esac
     4183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4184$as_echo "$ac_try_echo") >&5
     4185  (eval "$ac_link") 2>conftest.er1
     4186  ac_status=$?
     4187  grep -v '^ *+' conftest.er1 >conftest.err
     4188  rm -f conftest.er1
     4189  cat conftest.err >&5
     4190  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4191  (exit $ac_status); } && {
     4192         test -z "$ac_c_werror_flag" ||
     4193         test ! -s conftest.err
     4194       } && test -s conftest$ac_exeext && {
     4195         test "$cross_compiling" = yes ||
     4196         $as_test_x conftest$ac_exeext
     4197       }; then
     4198  ac_cv_lib_dld_shl_load=yes
     4199else
     4200  $as_echo "$as_me: failed program was:" >&5
     4201sed 's/^/| /' conftest.$ac_ext >&5
     4202
     4203        ac_cv_lib_dld_shl_load=no
     4204fi
     4205
     4206rm -rf conftest.dSYM
     4207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4208      conftest$ac_exeext conftest.$ac_ext
     4209LIBS=$ac_check_lib_save_LIBS
     4210fi
     4211{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
     4212$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
     4213if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
     4214  tcl_ok=yes
     4215else
     4216  tcl_ok=no
     4217fi
     4218
     4219            if test "$tcl_ok" = yes; then
     4220                SHLIB_CFLAGS="+z"
     4221                SHLIB_LD="ld -b"
     4222                SHLIB_LD_LIBS=""
     4223                DL_OBJS="tclLoadShl.o"
     4224                DL_LIBS="-ldld"
     4225                LDFLAGS="$LDFLAGS -Wl,-E"
     4226                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
     4227                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
     4228                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
     4229            fi
     4230            ;;
     4231        IRIX-4.*)
     4232            SHLIB_CFLAGS="-G 0"
     4233            SHLIB_SUFFIX=".a"
     4234            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
     4235            SHLIB_LD_LIBS='${LIBS}'
     4236            DL_OBJS="tclLoadAout.o"
     4237            DL_LIBS=""
     4238            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
     4239            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     4240            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4241            SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
     4242            ;;
     4243        IRIX-5.*)
     4244            SHLIB_CFLAGS=""
     4245            SHLIB_LD="ld -shared -rdata_shared"
     4246            SHLIB_LD_LIBS='${LIBS}'
     4247            SHLIB_SUFFIX=".so"
     4248            DL_OBJS="tclLoadDl.o"
     4249            DL_LIBS=""
     4250            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4251            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     4252            ;;
     4253        IRIX-6.*)
     4254            SHLIB_CFLAGS=""
     4255            SHLIB_LD="ld -n32 -shared -rdata_shared"
     4256            SHLIB_LD_LIBS='${LIBS}'
     4257            SHLIB_SUFFIX=".so"
     4258            DL_OBJS="tclLoadDl.o"
     4259            DL_LIBS=""
     4260            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4261            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     4262            if test "$GCC" = "yes" ; then
     4263                CFLAGS="$CFLAGS -mabi=n32"
     4264                LDFLAGS="$LDFLAGS -mabi=n32"
     4265            else
     4266                case $system in
     4267                    IRIX-6.3)
     4268                        # Use to build 6.2 compatible binaries on 6.3.
     4269                        CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
     4270                        ;;
     4271                    *)
     4272                        CFLAGS="$CFLAGS -n32"
     4273                        ;;
     4274                esac
     4275                LDFLAGS="$LDFLAGS -n32"
     4276            fi
     4277            ;;
     4278        IRIX64-6.*)
     4279            SHLIB_CFLAGS=""
     4280            SHLIB_LD="ld -n32 -shared -rdata_shared"
     4281            SHLIB_LD_LIBS='${LIBS}'
     4282            SHLIB_SUFFIX=".so"
     4283            DL_OBJS="tclLoadDl.o"
     4284            DL_LIBS=""
     4285            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4286            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     4287
     4288            # Check to enable 64-bit flags for compiler/linker
     4289
     4290            if test "$do64bit" = "yes" ; then
     4291                if test "$GCC" = "yes" ; then
     4292                    { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5
     4293$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
     4294                else
     4295                    do64bit_ok=yes
     4296                    SHLIB_LD="ld -64 -shared -rdata_shared"
     4297                    CFLAGS="$CFLAGS -64"
     4298                    LDFLAGS="$LDFLAGS -64"
     4299                fi
     4300            fi
     4301            ;;
     4302        Linux*)
     4303            SHLIB_CFLAGS="-fPIC"
     4304            SHLIB_LD_LIBS='${LIBS}'
     4305            SHLIB_SUFFIX=".so"
     4306
     4307            CFLAGS_OPTIMIZE=-O2
     4308            # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
     4309            # when you inline the string and math operations.  Turn this off to
     4310            # get rid of the warnings.
     4311            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
     4312
     4313            if test "$have_dl" = yes; then
     4314                SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
     4315                DL_OBJS="tclLoadDl.o"
     4316                DL_LIBS="-ldl"
     4317                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
     4318                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4319                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4320            else
     4321                if test "${ac_cv_header_dld_h+set}" = set; then
     4322  { $as_echo "$as_me:$LINENO: checking for dld.h" >&5
     4323$as_echo_n "checking for dld.h... " >&6; }
     4324if test "${ac_cv_header_dld_h+set}" = set; then
     4325  $as_echo_n "(cached) " >&6
     4326fi
     4327{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
     4328$as_echo "$ac_cv_header_dld_h" >&6; }
     4329else
     4330  # Is the header compilable?
     4331{ $as_echo "$as_me:$LINENO: checking dld.h usability" >&5
     4332$as_echo_n "checking dld.h usability... " >&6; }
     4333cat >conftest.$ac_ext <<_ACEOF
     4334/* confdefs.h.  */
     4335_ACEOF
     4336cat confdefs.h >>conftest.$ac_ext
     4337cat >>conftest.$ac_ext <<_ACEOF
     4338/* end confdefs.h.  */
     4339$ac_includes_default
     4340#include <dld.h>
     4341_ACEOF
     4342rm -f conftest.$ac_objext
     4343if { (ac_try="$ac_compile"
     4344case "(($ac_try" in
     4345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4346  *) ac_try_echo=$ac_try;;
     4347esac
     4348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4349$as_echo "$ac_try_echo") >&5
     4350  (eval "$ac_compile") 2>conftest.er1
     4351  ac_status=$?
     4352  grep -v '^ *+' conftest.er1 >conftest.err
     4353  rm -f conftest.er1
     4354  cat conftest.err >&5
     4355  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4356  (exit $ac_status); } && {
     4357         test -z "$ac_c_werror_flag" ||
     4358         test ! -s conftest.err
     4359       } && test -s conftest.$ac_objext; then
     4360  ac_header_compiler=yes
     4361else
     4362  $as_echo "$as_me: failed program was:" >&5
     4363sed 's/^/| /' conftest.$ac_ext >&5
     4364
     4365        ac_header_compiler=no
     4366fi
     4367
     4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4369{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4370$as_echo "$ac_header_compiler" >&6; }
     4371
     4372# Is the header present?
     4373{ $as_echo "$as_me:$LINENO: checking dld.h presence" >&5
     4374$as_echo_n "checking dld.h presence... " >&6; }
     4375cat >conftest.$ac_ext <<_ACEOF
     4376/* confdefs.h.  */
     4377_ACEOF
     4378cat confdefs.h >>conftest.$ac_ext
     4379cat >>conftest.$ac_ext <<_ACEOF
     4380/* end confdefs.h.  */
     4381#include <dld.h>
     4382_ACEOF
     4383if { (ac_try="$ac_cpp conftest.$ac_ext"
     4384case "(($ac_try" in
     4385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4386  *) ac_try_echo=$ac_try;;
     4387esac
     4388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4389$as_echo "$ac_try_echo") >&5
     4390  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     4391  ac_status=$?
     4392  grep -v '^ *+' conftest.er1 >conftest.err
     4393  rm -f conftest.er1
     4394  cat conftest.err >&5
     4395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4396  (exit $ac_status); } >/dev/null && {
     4397         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     4398         test ! -s conftest.err
     4399       }; then
     4400  ac_header_preproc=yes
     4401else
     4402  $as_echo "$as_me: failed program was:" >&5
     4403sed 's/^/| /' conftest.$ac_ext >&5
     4404
     4405  ac_header_preproc=no
     4406fi
     4407
     4408rm -f conftest.err conftest.$ac_ext
     4409{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4410$as_echo "$ac_header_preproc" >&6; }
     4411
     4412# So?  What about this header?
     4413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4414  yes:no: )
     4415    { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
     4416$as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4417    { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
     4418$as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
     4419    ac_header_preproc=yes
     4420    ;;
     4421  no:yes:* )
     4422    { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
     4423$as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
     4424    { $as_echo "$as_me:$LINENO: WARNING: dld.h:     check for missing prerequisite headers?" >&5
     4425$as_echo "$as_me: WARNING: dld.h:     check for missing prerequisite headers?" >&2;}
     4426    { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
     4427$as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
     4428    { $as_echo "$as_me:$LINENO: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&5
     4429$as_echo "$as_me: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     4430    { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
     4431$as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
     4432    { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
     4433$as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
     4434    ( cat <<\_ASBOX
     4435## ----------------------------------- ##
     4436## Report this to rappture@nanohub.org ##
     4437## ----------------------------------- ##
     4438_ASBOX
     4439     ) | sed "s/^/$as_me: WARNING:     /" >&2
     4440    ;;
     4441esac
     4442{ $as_echo "$as_me:$LINENO: checking for dld.h" >&5
     4443$as_echo_n "checking for dld.h... " >&6; }
     4444if test "${ac_cv_header_dld_h+set}" = set; then
     4445  $as_echo_n "(cached) " >&6
     4446else
     4447  ac_cv_header_dld_h=$ac_header_preproc
     4448fi
     4449{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
     4450$as_echo "$ac_cv_header_dld_h" >&6; }
     4451
     4452fi
     4453if test "x$ac_cv_header_dld_h" = x""yes; then
     4454
     4455                    SHLIB_LD="ld -shared"
     4456                    DL_OBJS="tclLoadDld.o"
     4457                    DL_LIBS="-ldld"
     4458                    CC_SEARCH_FLAGS=""
     4459                    LD_SEARCH_FLAGS=""
     4460fi
     4461
     4462
     4463            fi
     4464            if test "`uname -m`" = "alpha" ; then
     4465                CFLAGS="$CFLAGS -mieee"
     4466            fi
     4467            if test $do64bit = yes; then
     4468                { $as_echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5
     4469$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
     4470if test "${tcl_cv_cc_m64+set}" = set; then
     4471  $as_echo_n "(cached) " >&6
     4472else
     4473
     4474                    hold_cflags=$CFLAGS
     4475                    CFLAGS="$CFLAGS -m64"
     4476                    cat >conftest.$ac_ext <<_ACEOF
     4477/* confdefs.h.  */
     4478_ACEOF
     4479cat confdefs.h >>conftest.$ac_ext
     4480cat >>conftest.$ac_ext <<_ACEOF
     4481/* end confdefs.h.  */
     4482
     4483int
     4484main ()
     4485{
     4486
     4487  ;
     4488  return 0;
     4489}
     4490_ACEOF
     4491rm -f conftest.$ac_objext conftest$ac_exeext
     4492if { (ac_try="$ac_link"
     4493case "(($ac_try" in
     4494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4495  *) ac_try_echo=$ac_try;;
     4496esac
     4497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4498$as_echo "$ac_try_echo") >&5
     4499  (eval "$ac_link") 2>conftest.er1
     4500  ac_status=$?
     4501  grep -v '^ *+' conftest.er1 >conftest.err
     4502  rm -f conftest.er1
     4503  cat conftest.err >&5
     4504  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4505  (exit $ac_status); } && {
     4506         test -z "$ac_c_werror_flag" ||
     4507         test ! -s conftest.err
     4508       } && test -s conftest$ac_exeext && {
     4509         test "$cross_compiling" = yes ||
     4510         $as_test_x conftest$ac_exeext
     4511       }; then
     4512  tcl_cv_cc_m64=yes
     4513else
     4514  $as_echo "$as_me: failed program was:" >&5
     4515sed 's/^/| /' conftest.$ac_ext >&5
     4516
     4517        tcl_cv_cc_m64=no
     4518fi
     4519
     4520rm -rf conftest.dSYM
     4521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4522      conftest$ac_exeext conftest.$ac_ext
     4523                    CFLAGS=$hold_cflags
     4524fi
     4525{ $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5
     4526$as_echo "$tcl_cv_cc_m64" >&6; }
     4527                if test $tcl_cv_cc_m64 = yes; then
     4528                    CFLAGS="$CFLAGS -m64"
     4529                    do64bit_ok=yes
     4530                fi
     4531            fi
     4532
     4533            # The combo of gcc + glibc has a bug related
     4534            # to inlining of functions like strtod(). The
     4535            # -fno-builtin flag should address this problem
     4536            # but it does not work. The -fno-inline flag
     4537            # is kind of overkill but it works.
     4538            # Disable inlining only when one of the
     4539            # files in compat/*.c is being linked in.
     4540            if test x"${LIBOBJS}" != x ; then
     4541                CFLAGS="$CFLAGS -fno-inline"
     4542            fi
     4543
     4544            # XIM peeking works under XFree86.
     4545            cat >>confdefs.h <<\_ACEOF
     4546#define PEEK_XCLOSEIM 1
     4547_ACEOF
     4548
     4549
     4550            ;;
     4551        GNU*)
     4552            SHLIB_CFLAGS="-fPIC"
     4553            SHLIB_LD_LIBS='${LIBS}'
     4554            SHLIB_SUFFIX=".so"
     4555
     4556            if test "$have_dl" = yes; then
     4557                SHLIB_LD="${CC} -shared"
     4558                DL_OBJS=""
     4559                DL_LIBS="-ldl"
     4560                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
     4561                CC_SEARCH_FLAGS=""
     4562                LD_SEARCH_FLAGS=""
     4563            else
     4564                if test "${ac_cv_header_dld_h+set}" = set; then
     4565  { $as_echo "$as_me:$LINENO: checking for dld.h" >&5
     4566$as_echo_n "checking for dld.h... " >&6; }
     4567if test "${ac_cv_header_dld_h+set}" = set; then
     4568  $as_echo_n "(cached) " >&6
     4569fi
     4570{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
     4571$as_echo "$ac_cv_header_dld_h" >&6; }
     4572else
     4573  # Is the header compilable?
     4574{ $as_echo "$as_me:$LINENO: checking dld.h usability" >&5
     4575$as_echo_n "checking dld.h usability... " >&6; }
     4576cat >conftest.$ac_ext <<_ACEOF
     4577/* confdefs.h.  */
     4578_ACEOF
     4579cat confdefs.h >>conftest.$ac_ext
     4580cat >>conftest.$ac_ext <<_ACEOF
     4581/* end confdefs.h.  */
     4582$ac_includes_default
     4583#include <dld.h>
     4584_ACEOF
     4585rm -f conftest.$ac_objext
     4586if { (ac_try="$ac_compile"
     4587case "(($ac_try" in
     4588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4589  *) ac_try_echo=$ac_try;;
     4590esac
     4591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4592$as_echo "$ac_try_echo") >&5
     4593  (eval "$ac_compile") 2>conftest.er1
     4594  ac_status=$?
     4595  grep -v '^ *+' conftest.er1 >conftest.err
     4596  rm -f conftest.er1
     4597  cat conftest.err >&5
     4598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4599  (exit $ac_status); } && {
     4600         test -z "$ac_c_werror_flag" ||
     4601         test ! -s conftest.err
     4602       } && test -s conftest.$ac_objext; then
     4603  ac_header_compiler=yes
     4604else
     4605  $as_echo "$as_me: failed program was:" >&5
     4606sed 's/^/| /' conftest.$ac_ext >&5
     4607
     4608        ac_header_compiler=no
     4609fi
     4610
     4611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4612{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4613$as_echo "$ac_header_compiler" >&6; }
     4614
     4615# Is the header present?
     4616{ $as_echo "$as_me:$LINENO: checking dld.h presence" >&5
     4617$as_echo_n "checking dld.h presence... " >&6; }
     4618cat >conftest.$ac_ext <<_ACEOF
     4619/* confdefs.h.  */
     4620_ACEOF
     4621cat confdefs.h >>conftest.$ac_ext
     4622cat >>conftest.$ac_ext <<_ACEOF
     4623/* end confdefs.h.  */
     4624#include <dld.h>
     4625_ACEOF
     4626if { (ac_try="$ac_cpp conftest.$ac_ext"
     4627case "(($ac_try" in
     4628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4629  *) ac_try_echo=$ac_try;;
     4630esac
     4631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4632$as_echo "$ac_try_echo") >&5
     4633  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     4634  ac_status=$?
     4635  grep -v '^ *+' conftest.er1 >conftest.err
     4636  rm -f conftest.er1
     4637  cat conftest.err >&5
     4638  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4639  (exit $ac_status); } >/dev/null && {
     4640         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     4641         test ! -s conftest.err
     4642       }; then
     4643  ac_header_preproc=yes
     4644else
     4645  $as_echo "$as_me: failed program was:" >&5
     4646sed 's/^/| /' conftest.$ac_ext >&5
     4647
     4648  ac_header_preproc=no
     4649fi
     4650
     4651rm -f conftest.err conftest.$ac_ext
     4652{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4653$as_echo "$ac_header_preproc" >&6; }
     4654
     4655# So?  What about this header?
     4656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4657  yes:no: )
     4658    { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
     4659$as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4660    { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
     4661$as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
     4662    ac_header_preproc=yes
     4663    ;;
     4664  no:yes:* )
     4665    { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
     4666$as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
     4667    { $as_echo "$as_me:$LINENO: WARNING: dld.h:     check for missing prerequisite headers?" >&5
     4668$as_echo "$as_me: WARNING: dld.h:     check for missing prerequisite headers?" >&2;}
     4669    { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
     4670$as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
     4671    { $as_echo "$as_me:$LINENO: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&5
     4672$as_echo "$as_me: WARNING: dld.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     4673    { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
     4674$as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
     4675    { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
     4676$as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
     4677    ( cat <<\_ASBOX
     4678## ----------------------------------- ##
     4679## Report this to rappture@nanohub.org ##
     4680## ----------------------------------- ##
     4681_ASBOX
     4682     ) | sed "s/^/$as_me: WARNING:     /" >&2
     4683    ;;
     4684esac
     4685{ $as_echo "$as_me:$LINENO: checking for dld.h" >&5
     4686$as_echo_n "checking for dld.h... " >&6; }
     4687if test "${ac_cv_header_dld_h+set}" = set; then
     4688  $as_echo_n "(cached) " >&6
     4689else
     4690  ac_cv_header_dld_h=$ac_header_preproc
     4691fi
     4692{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
     4693$as_echo "$ac_cv_header_dld_h" >&6; }
     4694
     4695fi
     4696if test "x$ac_cv_header_dld_h" = x""yes; then
     4697
     4698                    SHLIB_LD="ld -shared"
     4699                    DL_OBJS=""
     4700                    DL_LIBS="-ldld"
     4701                    CC_SEARCH_FLAGS=""
     4702                    LD_SEARCH_FLAGS=""
     4703fi
     4704
     4705
     4706            fi
     4707            if test "`uname -m`" = "alpha" ; then
     4708                CFLAGS="$CFLAGS -mieee"
     4709            fi
     4710            ;;
     4711        Lynx*)
     4712            SHLIB_CFLAGS="-fPIC"
     4713            SHLIB_LD_LIBS='${LIBS}'
     4714            SHLIB_SUFFIX=".so"
     4715            CFLAGS_OPTIMIZE=-02
     4716            SHLIB_LD="${CC} -shared "
     4717            DL_OBJS="tclLoadDl.o"
     4718            DL_LIBS="-mshared -ldl"
     4719            LD_FLAGS="-Wl,--export-dynamic"
     4720            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4721            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4722            ;;
     4723        MP-RAS-02*)
     4724            SHLIB_CFLAGS="-K PIC"
     4725            SHLIB_LD="cc -G"
     4726            SHLIB_LD_LIBS=""
     4727            SHLIB_SUFFIX=".so"
     4728            DL_OBJS="tclLoadDl.o"
     4729            DL_LIBS="-ldl"
     4730            CC_SEARCH_FLAGS=""
     4731            LD_SEARCH_FLAGS=""
     4732            ;;
     4733        MP-RAS-*)
     4734            SHLIB_CFLAGS="-K PIC"
     4735            SHLIB_LD="cc -G"
     4736            SHLIB_LD_LIBS=""
     4737            SHLIB_SUFFIX=".so"
     4738            DL_OBJS="tclLoadDl.o"
     4739            DL_LIBS="-ldl"
     4740            LDFLAGS="$LDFLAGS -Wl,-Bexport"
     4741            CC_SEARCH_FLAGS=""
     4742            LD_SEARCH_FLAGS=""
     4743            ;;
     4744        NetBSD-*|FreeBSD-[1-2].*)
     4745            # Not available on all versions:  check for include file.
     4746            if test "${ac_cv_header_dlfcn_h+set}" = set; then
     4747  { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
     4748$as_echo_n "checking for dlfcn.h... " >&6; }
     4749if test "${ac_cv_header_dlfcn_h+set}" = set; then
     4750  $as_echo_n "(cached) " >&6
     4751fi
     4752{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
     4753$as_echo "$ac_cv_header_dlfcn_h" >&6; }
     4754else
     4755  # Is the header compilable?
     4756{ $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
     4757$as_echo_n "checking dlfcn.h usability... " >&6; }
     4758cat >conftest.$ac_ext <<_ACEOF
     4759/* confdefs.h.  */
     4760_ACEOF
     4761cat confdefs.h >>conftest.$ac_ext
     4762cat >>conftest.$ac_ext <<_ACEOF
     4763/* end confdefs.h.  */
     4764$ac_includes_default
     4765#include <dlfcn.h>
     4766_ACEOF
     4767rm -f conftest.$ac_objext
     4768if { (ac_try="$ac_compile"
     4769case "(($ac_try" in
     4770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4771  *) ac_try_echo=$ac_try;;
     4772esac
     4773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4774$as_echo "$ac_try_echo") >&5
     4775  (eval "$ac_compile") 2>conftest.er1
     4776  ac_status=$?
     4777  grep -v '^ *+' conftest.er1 >conftest.err
     4778  rm -f conftest.er1
     4779  cat conftest.err >&5
     4780  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4781  (exit $ac_status); } && {
     4782         test -z "$ac_c_werror_flag" ||
     4783         test ! -s conftest.err
     4784       } && test -s conftest.$ac_objext; then
     4785  ac_header_compiler=yes
     4786else
     4787  $as_echo "$as_me: failed program was:" >&5
     4788sed 's/^/| /' conftest.$ac_ext >&5
     4789
     4790        ac_header_compiler=no
     4791fi
     4792
     4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     4794{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4795$as_echo "$ac_header_compiler" >&6; }
     4796
     4797# Is the header present?
     4798{ $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
     4799$as_echo_n "checking dlfcn.h presence... " >&6; }
     4800cat >conftest.$ac_ext <<_ACEOF
     4801/* confdefs.h.  */
     4802_ACEOF
     4803cat confdefs.h >>conftest.$ac_ext
     4804cat >>conftest.$ac_ext <<_ACEOF
     4805/* end confdefs.h.  */
     4806#include <dlfcn.h>
     4807_ACEOF
     4808if { (ac_try="$ac_cpp conftest.$ac_ext"
     4809case "(($ac_try" in
     4810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     4811  *) ac_try_echo=$ac_try;;
     4812esac
     4813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     4814$as_echo "$ac_try_echo") >&5
     4815  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
     4816  ac_status=$?
     4817  grep -v '^ *+' conftest.er1 >conftest.err
     4818  rm -f conftest.er1
     4819  cat conftest.err >&5
     4820  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4821  (exit $ac_status); } >/dev/null && {
     4822         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     4823         test ! -s conftest.err
     4824       }; then
     4825  ac_header_preproc=yes
     4826else
     4827  $as_echo "$as_me: failed program was:" >&5
     4828sed 's/^/| /' conftest.$ac_ext >&5
     4829
     4830  ac_header_preproc=no
     4831fi
     4832
     4833rm -f conftest.err conftest.$ac_ext
     4834{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4835$as_echo "$ac_header_preproc" >&6; }
     4836
     4837# So?  What about this header?
     4838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4839  yes:no: )
     4840    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
     4841$as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4842    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
     4843$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
     4844    ac_header_preproc=yes
     4845    ;;
     4846  no:yes:* )
     4847    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
     4848$as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
     4849    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
     4850$as_echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
     4851    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
     4852$as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
     4853    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
     4854$as_echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     4855    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
     4856$as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
     4857    { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
     4858$as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
     4859    ( cat <<\_ASBOX
     4860## ----------------------------------- ##
     4861## Report this to rappture@nanohub.org ##
     4862## ----------------------------------- ##
     4863_ASBOX
     4864     ) | sed "s/^/$as_me: WARNING:     /" >&2
     4865    ;;
     4866esac
     4867{ $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
     4868$as_echo_n "checking for dlfcn.h... " >&6; }
     4869if test "${ac_cv_header_dlfcn_h+set}" = set; then
     4870  $as_echo_n "(cached) " >&6
     4871else
     4872  ac_cv_header_dlfcn_h=$ac_header_preproc
     4873fi
     4874{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
     4875$as_echo "$ac_cv_header_dlfcn_h" >&6; }
     4876
     4877fi
     4878if test "x$ac_cv_header_dlfcn_h" = x""yes; then
     4879
     4880                # NetBSD/SPARC needs -fPIC, -fpic will not do.
     4881                SHLIB_CFLAGS="-fPIC"
     4882                SHLIB_LD="ld -Bshareable -x"
     4883                SHLIB_LD_LIBS='${LIBS}'
     4884                SHLIB_SUFFIX=".so"
     4885                DL_OBJS="tclLoadDl.o"
     4886                DL_LIBS=""
     4887                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4888                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     4889                { $as_echo "$as_me:$LINENO: checking for ELF" >&5
     4890$as_echo_n "checking for ELF... " >&6; }
     4891if test "${tcl_cv_ld_elf+set}" = set; then
     4892  $as_echo_n "(cached) " >&6
     4893else
     4894
     4895                    cat >conftest.$ac_ext <<_ACEOF
     4896/* confdefs.h.  */
     4897_ACEOF
     4898cat confdefs.h >>conftest.$ac_ext
     4899cat >>conftest.$ac_ext <<_ACEOF
     4900/* end confdefs.h.  */
     4901
     4902#ifdef __ELF__
     4903        yes
     4904#endif
     4905
     4906_ACEOF
     4907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     4908  $EGREP "yes" >/dev/null 2>&1; then
     4909  tcl_cv_ld_elf=yes
     4910else
     4911  tcl_cv_ld_elf=no
     4912fi
     4913rm -f conftest*
     4914
     4915fi
     4916{ $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
     4917$as_echo "$tcl_cv_ld_elf" >&6; }
     4918                if test $tcl_cv_ld_elf = yes; then
     4919                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
     4920                else
     4921                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
     4922                fi
     4923
     4924else
     4925
     4926                SHLIB_CFLAGS=""
     4927                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
     4928                SHLIB_LD_LIBS='${LIBS}'
     4929                SHLIB_SUFFIX=".a"
     4930                DL_OBJS="tclLoadAout.o"
     4931                DL_LIBS=""
     4932                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     4933                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4934                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     4935
     4936fi
     4937
     4938
     4939
     4940            # FreeBSD doesn't handle version numbers with dots.
     4941
     4942            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     4943            TCL_LIB_VERSIONS_OK=nodots
     4944            ;;
     4945        OpenBSD-*)
     4946            case `arch -s` in
     4947            m88k|vax)
     4948                SHLIB_CFLAGS=""
     4949                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
     4950                SHLIB_LD_LIBS='${LIBS}'
     4951                SHLIB_SUFFIX=".a"
     4952                DL_OBJS="tclLoadAout.o"
     4953                DL_LIBS=""
     4954                LDFLAGS=""
     4955                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     4956                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4957                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     4958                ;;
     4959            *)
     4960                # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
     4961                case `machine` in
     4962                sparc|sparc64)
     4963                    SHLIB_CFLAGS="-fPIC";;
     4964                *)
     4965                    SHLIB_CFLAGS="-fpic";;
     4966                esac
     4967                SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
     4968                SHLIB_LD_LIBS='${LIBS}'
     4969                SHLIB_SUFFIX=".so"
     4970                DL_OBJS="tclLoadDl.o"
     4971                DL_LIBS=""
     4972                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4973                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4974                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
     4975                { $as_echo "$as_me:$LINENO: checking for ELF" >&5
     4976$as_echo_n "checking for ELF... " >&6; }
     4977if test "${tcl_cv_ld_elf+set}" = set; then
     4978  $as_echo_n "(cached) " >&6
     4979else
     4980
     4981                    cat >conftest.$ac_ext <<_ACEOF
     4982/* confdefs.h.  */
     4983_ACEOF
     4984cat confdefs.h >>conftest.$ac_ext
     4985cat >>conftest.$ac_ext <<_ACEOF
     4986/* end confdefs.h.  */
     4987
     4988#ifdef __ELF__
     4989        yes
     4990#endif
     4991
     4992_ACEOF
     4993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     4994  $EGREP "yes" >/dev/null 2>&1; then
     4995  tcl_cv_ld_elf=yes
     4996else
     4997  tcl_cv_ld_elf=no
     4998fi
     4999rm -f conftest*
     5000
     5001fi
     5002{ $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5
     5003$as_echo "$tcl_cv_ld_elf" >&6; }
     5004                if test $tcl_cv_ld_elf = yes; then
     5005                    LDFLAGS=-Wl,-export-dynamic
     5006                else
     5007                    LDFLAGS=""
     5008                fi
     5009                ;;
     5010            esac
     5011
     5012            # OpenBSD doesn't do version numbers with dots.
     5013            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     5014            TCL_LIB_VERSIONS_OK=nodots
     5015            ;;
     5016        FreeBSD-*)
     5017            # FreeBSD 3.* and greater have ELF.
     5018            SHLIB_CFLAGS="-fPIC"
     5019            SHLIB_LD="ld -Bshareable -x"
     5020            SHLIB_LD_LIBS='${LIBS}'
     5021            SHLIB_SUFFIX=".so"
     5022            DL_OBJS="tclLoadDl.o"
     5023            DL_LIBS=""
     5024            LDFLAGS="$LDFLAGS -export-dynamic"
     5025            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     5026            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     5027            if test "${TCL_THREADS}" = "1" ; then
     5028                # The -pthread needs to go in the CFLAGS, not LIBS
     5029                LIBS=`echo $LIBS | sed s/-pthread//`
     5030                CFLAGS="$CFLAGS -pthread"
     5031                LDFLAGS="$LDFLAGS -pthread"
     5032            fi
     5033            case $system in
     5034            FreeBSD-3.*)
     5035                # FreeBSD-3 doesn't handle version numbers with dots.
     5036                UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     5037                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
     5038                TCL_LIB_VERSIONS_OK=nodots
     5039                ;;
     5040            esac
     5041            ;;
     5042        Darwin-*)
     5043            CFLAGS_OPTIMIZE="-Os"
     5044            SHLIB_CFLAGS="-fno-common"
     5045            # To avoid discrepancies between what headers configure sees during
     5046            # preprocessing tests and compiling tests, move any -isysroot and
     5047            # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
     5048            CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
     5049                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
     5050                if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
     5051            CFLAGS="`echo " ${CFLAGS}" | \
     5052                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
     5053                if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
     5054            if test $do64bit = yes; then
     5055                case `arch` in
     5056                    ppc)
     5057                        { $as_echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5
     5058$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
     5059if test "${tcl_cv_cc_arch_ppc64+set}" = set; then
     5060  $as_echo_n "(cached) " >&6
     5061else
     5062
     5063                            hold_cflags=$CFLAGS
     5064                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
     5065                            cat >conftest.$ac_ext <<_ACEOF
     5066/* confdefs.h.  */
     5067_ACEOF
     5068cat confdefs.h >>conftest.$ac_ext
     5069cat >>conftest.$ac_ext <<_ACEOF
     5070/* end confdefs.h.  */
     5071
     5072int
     5073main ()
     5074{
     5075
     5076  ;
     5077  return 0;
     5078}
     5079_ACEOF
     5080rm -f conftest.$ac_objext conftest$ac_exeext
     5081if { (ac_try="$ac_link"
     5082case "(($ac_try" in
     5083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5084  *) ac_try_echo=$ac_try;;
     5085esac
     5086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5087$as_echo "$ac_try_echo") >&5
     5088  (eval "$ac_link") 2>conftest.er1
     5089  ac_status=$?
     5090  grep -v '^ *+' conftest.er1 >conftest.err
     5091  rm -f conftest.er1
     5092  cat conftest.err >&5
     5093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5094  (exit $ac_status); } && {
     5095         test -z "$ac_c_werror_flag" ||
     5096         test ! -s conftest.err
     5097       } && test -s conftest$ac_exeext && {
     5098         test "$cross_compiling" = yes ||
     5099         $as_test_x conftest$ac_exeext
     5100       }; then
     5101  tcl_cv_cc_arch_ppc64=yes
     5102else
     5103  $as_echo "$as_me: failed program was:" >&5
     5104sed 's/^/| /' conftest.$ac_ext >&5
     5105
     5106        tcl_cv_cc_arch_ppc64=no
     5107fi
     5108
     5109rm -rf conftest.dSYM
     5110rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5111      conftest$ac_exeext conftest.$ac_ext
     5112                            CFLAGS=$hold_cflags
     5113fi
     5114{ $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5
     5115$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
     5116                        if test $tcl_cv_cc_arch_ppc64 = yes; then
     5117                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
     5118                            do64bit_ok=yes
     5119                        fi;;
     5120                    i386)
     5121                        { $as_echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5
     5122$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
     5123if test "${tcl_cv_cc_arch_x86_64+set}" = set; then
     5124  $as_echo_n "(cached) " >&6
     5125else
     5126
     5127                            hold_cflags=$CFLAGS
     5128                            CFLAGS="$CFLAGS -arch x86_64"
     5129                            cat >conftest.$ac_ext <<_ACEOF
     5130/* confdefs.h.  */
     5131_ACEOF
     5132cat confdefs.h >>conftest.$ac_ext
     5133cat >>conftest.$ac_ext <<_ACEOF
     5134/* end confdefs.h.  */
     5135
     5136int
     5137main ()
     5138{
     5139
     5140  ;
     5141  return 0;
     5142}
     5143_ACEOF
     5144rm -f conftest.$ac_objext conftest$ac_exeext
     5145if { (ac_try="$ac_link"
     5146case "(($ac_try" in
     5147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5148  *) ac_try_echo=$ac_try;;
     5149esac
     5150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5151$as_echo "$ac_try_echo") >&5
     5152  (eval "$ac_link") 2>conftest.er1
     5153  ac_status=$?
     5154  grep -v '^ *+' conftest.er1 >conftest.err
     5155  rm -f conftest.er1
     5156  cat conftest.err >&5
     5157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5158  (exit $ac_status); } && {
     5159         test -z "$ac_c_werror_flag" ||
     5160         test ! -s conftest.err
     5161       } && test -s conftest$ac_exeext && {
     5162         test "$cross_compiling" = yes ||
     5163         $as_test_x conftest$ac_exeext
     5164       }; then
     5165  tcl_cv_cc_arch_x86_64=yes
     5166else
     5167  $as_echo "$as_me: failed program was:" >&5
     5168sed 's/^/| /' conftest.$ac_ext >&5
     5169
     5170        tcl_cv_cc_arch_x86_64=no
     5171fi
     5172
     5173rm -rf conftest.dSYM
     5174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5175      conftest$ac_exeext conftest.$ac_ext
     5176                            CFLAGS=$hold_cflags
     5177fi
     5178{ $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5
     5179$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
     5180                        if test $tcl_cv_cc_arch_x86_64 = yes; then
     5181                            CFLAGS="$CFLAGS -arch x86_64"
     5182                            do64bit_ok=yes
     5183                        fi;;
     5184                    *)
     5185                        { $as_echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
     5186$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
     5187                esac
     5188            else
     5189                # Check for combined 32-bit and 64-bit fat build
     5190                echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
     5191                    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
     5192                    fat_32_64=yes
     5193            fi
     5194            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
     5195            { $as_echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5
     5196$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
     5197if test "${tcl_cv_ld_single_module+set}" = set; then
     5198  $as_echo_n "(cached) " >&6
     5199else
     5200
     5201                hold_ldflags=$LDFLAGS
     5202                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
     5203                cat >conftest.$ac_ext <<_ACEOF
     5204/* confdefs.h.  */
     5205_ACEOF
     5206cat confdefs.h >>conftest.$ac_ext
     5207cat >>conftest.$ac_ext <<_ACEOF
     5208/* end confdefs.h.  */
     5209
     5210int
     5211main ()
     5212{
     5213int i;
     5214  ;
     5215  return 0;
     5216}
     5217_ACEOF
     5218rm -f conftest.$ac_objext conftest$ac_exeext
     5219if { (ac_try="$ac_link"
     5220case "(($ac_try" in
     5221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5222  *) ac_try_echo=$ac_try;;
     5223esac
     5224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5225$as_echo "$ac_try_echo") >&5
     5226  (eval "$ac_link") 2>conftest.er1
     5227  ac_status=$?
     5228  grep -v '^ *+' conftest.er1 >conftest.err
     5229  rm -f conftest.er1
     5230  cat conftest.err >&5
     5231  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5232  (exit $ac_status); } && {
     5233         test -z "$ac_c_werror_flag" ||
     5234         test ! -s conftest.err
     5235       } && test -s conftest$ac_exeext && {
     5236         test "$cross_compiling" = yes ||
     5237         $as_test_x conftest$ac_exeext
     5238       }; then
     5239  tcl_cv_ld_single_module=yes
     5240else
     5241  $as_echo "$as_me: failed program was:" >&5
     5242sed 's/^/| /' conftest.$ac_ext >&5
     5243
     5244        tcl_cv_ld_single_module=no
     5245fi
     5246
     5247rm -rf conftest.dSYM
     5248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5249      conftest$ac_exeext conftest.$ac_ext
     5250                LDFLAGS=$hold_ldflags
     5251fi
     5252{ $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5
     5253$as_echo "$tcl_cv_ld_single_module" >&6; }
     5254            if test $tcl_cv_ld_single_module = yes; then
     5255                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
     5256            fi
     5257            SHLIB_LD_LIBS='${LIBS}'
     5258            SHLIB_SUFFIX=".dylib"
     5259            DL_OBJS="tclLoadDyld.o"
     5260            DL_LIBS=""
     5261            # Don't use -prebind when building for Mac OS X 10.4 or later only:
     5262            test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
     5263                "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
     5264                LDFLAGS="$LDFLAGS -prebind"
     5265            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
     5266            { $as_echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5
     5267$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
     5268if test "${tcl_cv_ld_search_paths_first+set}" = set; then
     5269  $as_echo_n "(cached) " >&6
     5270else
     5271
     5272                hold_ldflags=$LDFLAGS
     5273                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
     5274                cat >conftest.$ac_ext <<_ACEOF
     5275/* confdefs.h.  */
     5276_ACEOF
     5277cat confdefs.h >>conftest.$ac_ext
     5278cat >>conftest.$ac_ext <<_ACEOF
     5279/* end confdefs.h.  */
     5280
     5281int
     5282main ()
     5283{
     5284int i;
     5285  ;
     5286  return 0;
     5287}
     5288_ACEOF
     5289rm -f conftest.$ac_objext conftest$ac_exeext
     5290if { (ac_try="$ac_link"
     5291case "(($ac_try" in
     5292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5293  *) ac_try_echo=$ac_try;;
     5294esac
     5295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5296$as_echo "$ac_try_echo") >&5
     5297  (eval "$ac_link") 2>conftest.er1
     5298  ac_status=$?
     5299  grep -v '^ *+' conftest.er1 >conftest.err
     5300  rm -f conftest.er1
     5301  cat conftest.err >&5
     5302  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5303  (exit $ac_status); } && {
     5304         test -z "$ac_c_werror_flag" ||
     5305         test ! -s conftest.err
     5306       } && test -s conftest$ac_exeext && {
     5307         test "$cross_compiling" = yes ||
     5308         $as_test_x conftest$ac_exeext
     5309       }; then
     5310  tcl_cv_ld_search_paths_first=yes
     5311else
     5312  $as_echo "$as_me: failed program was:" >&5
     5313sed 's/^/| /' conftest.$ac_ext >&5
     5314
     5315        tcl_cv_ld_search_paths_first=no
     5316fi
     5317
     5318rm -rf conftest.dSYM
     5319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5320      conftest$ac_exeext conftest.$ac_ext
     5321                LDFLAGS=$hold_ldflags
     5322fi
     5323{ $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5
     5324$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
     5325            if test $tcl_cv_ld_search_paths_first = yes; then
     5326                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
     5327            fi
     5328            CC_SEARCH_FLAGS=""
     5329            LD_SEARCH_FLAGS=""
     5330            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
     5331            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
     5332            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
     5333            { $as_echo "$as_me:$LINENO: checking whether to use CoreFoundation" >&5
     5334$as_echo_n "checking whether to use CoreFoundation... " >&6; }
     5335            # Check whether --enable-corefoundation was given.
     5336if test "${enable_corefoundation+set}" = set; then
     5337  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
     5338else
     5339  tcl_corefoundation=yes
     5340fi
     5341
     5342            { $as_echo "$as_me:$LINENO: result: $tcl_corefoundation" >&5
     5343$as_echo "$tcl_corefoundation" >&6; }
     5344            if test $tcl_corefoundation = yes; then
     5345                { $as_echo "$as_me:$LINENO: checking for CoreFoundation.framework" >&5
     5346$as_echo_n "checking for CoreFoundation.framework... " >&6; }
     5347if test "${tcl_cv_lib_corefoundation+set}" = set; then
     5348  $as_echo_n "(cached) " >&6
     5349else
     5350
     5351                    hold_libs=$LIBS
     5352                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
     5353                        # On Tiger there is no 64-bit CF, so remove 64-bit archs
     5354                        # from CFLAGS et al. while testing for presence of CF.
     5355                        # 64-bit CF is disabled in tclUnixPort.h if necessary.
     5356                        eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
     5357                    done; fi
     5358                    LIBS="$LIBS -framework CoreFoundation"
     5359                    cat >conftest.$ac_ext <<_ACEOF
     5360/* confdefs.h.  */
     5361_ACEOF
     5362cat confdefs.h >>conftest.$ac_ext
     5363cat >>conftest.$ac_ext <<_ACEOF
     5364/* end confdefs.h.  */
     5365#include <CoreFoundation/CoreFoundation.h>
     5366int
     5367main ()
     5368{
     5369CFBundleRef b = CFBundleGetMainBundle();
     5370  ;
     5371  return 0;
     5372}
     5373_ACEOF
     5374rm -f conftest.$ac_objext conftest$ac_exeext
     5375if { (ac_try="$ac_link"
     5376case "(($ac_try" in
     5377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5378  *) ac_try_echo=$ac_try;;
     5379esac
     5380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5381$as_echo "$ac_try_echo") >&5
     5382  (eval "$ac_link") 2>conftest.er1
     5383  ac_status=$?
     5384  grep -v '^ *+' conftest.er1 >conftest.err
     5385  rm -f conftest.er1
     5386  cat conftest.err >&5
     5387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5388  (exit $ac_status); } && {
     5389         test -z "$ac_c_werror_flag" ||
     5390         test ! -s conftest.err
     5391       } && test -s conftest$ac_exeext && {
     5392         test "$cross_compiling" = yes ||
     5393         $as_test_x conftest$ac_exeext
     5394       }; then
     5395  tcl_cv_lib_corefoundation=yes
     5396else
     5397  $as_echo "$as_me: failed program was:" >&5
     5398sed 's/^/| /' conftest.$ac_ext >&5
     5399
     5400        tcl_cv_lib_corefoundation=no
     5401fi
     5402
     5403rm -rf conftest.dSYM
     5404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5405      conftest$ac_exeext conftest.$ac_ext
     5406                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
     5407                        eval $v'="$hold_'$v'"'
     5408                    done; fi; LIBS=$hold_libs
     5409fi
     5410{ $as_echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation" >&5
     5411$as_echo "$tcl_cv_lib_corefoundation" >&6; }
     5412                if test $tcl_cv_lib_corefoundation = yes; then
     5413                    LIBS="$LIBS -framework CoreFoundation"
     5414                    cat >>confdefs.h <<\_ACEOF
     5415#define HAVE_COREFOUNDATION 1
     5416_ACEOF
     5417
     5418                else
     5419                    tcl_corefoundation=no
     5420                fi
     5421                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
     5422                    { $as_echo "$as_me:$LINENO: checking for 64-bit CoreFoundation" >&5
     5423$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
     5424if test "${tcl_cv_lib_corefoundation_64+set}" = set; then
     5425  $as_echo_n "(cached) " >&6
     5426else
     5427
     5428                        for v in CFLAGS CPPFLAGS LDFLAGS; do
     5429                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
     5430                        done
     5431                        cat >conftest.$ac_ext <<_ACEOF
     5432/* confdefs.h.  */
     5433_ACEOF
     5434cat confdefs.h >>conftest.$ac_ext
     5435cat >>conftest.$ac_ext <<_ACEOF
     5436/* end confdefs.h.  */
     5437#include <CoreFoundation/CoreFoundation.h>
     5438int
     5439main ()
     5440{
     5441CFBundleRef b = CFBundleGetMainBundle();
     5442  ;
     5443  return 0;
     5444}
     5445_ACEOF
     5446rm -f conftest.$ac_objext conftest$ac_exeext
     5447if { (ac_try="$ac_link"
     5448case "(($ac_try" in
     5449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5450  *) ac_try_echo=$ac_try;;
     5451esac
     5452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5453$as_echo "$ac_try_echo") >&5
     5454  (eval "$ac_link") 2>conftest.er1
     5455  ac_status=$?
     5456  grep -v '^ *+' conftest.er1 >conftest.err
     5457  rm -f conftest.er1
     5458  cat conftest.err >&5
     5459  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5460  (exit $ac_status); } && {
     5461         test -z "$ac_c_werror_flag" ||
     5462         test ! -s conftest.err
     5463       } && test -s conftest$ac_exeext && {
     5464         test "$cross_compiling" = yes ||
     5465         $as_test_x conftest$ac_exeext
     5466       }; then
     5467  tcl_cv_lib_corefoundation_64=yes
     5468else
     5469  $as_echo "$as_me: failed program was:" >&5
     5470sed 's/^/| /' conftest.$ac_ext >&5
     5471
     5472        tcl_cv_lib_corefoundation_64=no
     5473fi
     5474
     5475rm -rf conftest.dSYM
     5476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5477      conftest$ac_exeext conftest.$ac_ext
     5478                        for v in CFLAGS CPPFLAGS LDFLAGS; do
     5479                            eval $v'="$hold_'$v'"'
     5480                        done
     5481fi
     5482{ $as_echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation_64" >&5
     5483$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
     5484                    if test $tcl_cv_lib_corefoundation_64 = no; then
     5485                        cat >>confdefs.h <<\_ACEOF
     5486#define NO_COREFOUNDATION_64 1
     5487_ACEOF
     5488
     5489                    fi
     5490                fi
     5491            fi
     5492            cat >>confdefs.h <<\_ACEOF
     5493#define MAC_OSX_TCL 1
     5494_ACEOF
     5495
     5496            ;;
     5497        NEXTSTEP-*)
     5498            SHLIB_CFLAGS=""
     5499            SHLIB_LD="cc -nostdlib -r"
     5500            SHLIB_LD_LIBS=""
     5501            SHLIB_SUFFIX=".so"
     5502            DL_OBJS="tclLoadNext.o"
     5503            DL_LIBS=""
     5504            CC_SEARCH_FLAGS=""
     5505            LD_SEARCH_FLAGS=""
     5506            ;;
     5507        OS/390-*)
     5508            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
     5509            cat >>confdefs.h <<\_ACEOF
     5510#define _OE_SOCKETS 1
     5511_ACEOF
     5512        # needed in sys/socket.h
     5513            ;;
     5514        OSF1-1.0|OSF1-1.1|OSF1-1.2)
     5515            # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
     5516            SHLIB_CFLAGS=""
     5517            # Hack: make package name same as library name
     5518            SHLIB_LD='ld -R -export :'
     5519            SHLIB_LD_LIBS=""
     5520            SHLIB_SUFFIX=".so"
     5521            DL_OBJS="tclLoadOSF.o"
     5522            DL_LIBS=""
     5523            CC_SEARCH_FLAGS=""
     5524            LD_SEARCH_FLAGS=""
     5525            ;;
     5526        OSF1-1.*)
     5527            # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
     5528            SHLIB_CFLAGS="-fPIC"
     5529            if test "$SHARED_BUILD" = "1" ; then
     5530                SHLIB_LD="ld -shared"
     5531            else
     5532                SHLIB_LD="ld -non_shared"
     5533            fi
     5534            SHLIB_LD_LIBS=""
     5535            SHLIB_SUFFIX=".so"
     5536            DL_OBJS="tclLoadDl.o"
     5537            DL_LIBS=""
     5538            CC_SEARCH_FLAGS=""
     5539            LD_SEARCH_FLAGS=""
     5540            ;;
     5541        OSF1-V*)
     5542            # Digital OSF/1
     5543            SHLIB_CFLAGS=""
     5544            if test "$SHARED_BUILD" = "1" ; then
     5545                SHLIB_LD='ld -shared -expect_unresolved "*"'
     5546            else
     5547                SHLIB_LD='ld -non_shared -expect_unresolved "*"'
     5548            fi
     5549            SHLIB_LD_LIBS=""
     5550            SHLIB_SUFFIX=".so"
     5551            DL_OBJS="tclLoadDl.o"
     5552            DL_LIBS=""
     5553            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     5554            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     5555            if test "$GCC" = "yes" ; then
     5556                CFLAGS="$CFLAGS -mieee"
     5557            else
     5558                CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
     5559            fi
     5560            # see pthread_intro(3) for pthread support on osf1, k.furukawa
     5561            if test "${TCL_THREADS}" = "1" ; then
     5562                CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
     5563                CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
     5564                LIBS=`echo $LIBS | sed s/-lpthreads//`
     5565                if test "$GCC" = "yes" ; then
     5566                    LIBS="$LIBS -lpthread -lmach -lexc"
     5567                else
     5568                    CFLAGS="$CFLAGS -pthread"
     5569                    LDFLAGS="$LDFLAGS -pthread"
     5570                fi
     5571            fi
     5572
     5573            ;;
     5574        QNX-6*)
     5575            # QNX RTP
     5576            # This may work for all QNX, but it was only reported for v6.
     5577            SHLIB_CFLAGS="-fPIC"
     5578            SHLIB_LD="ld -Bshareable -x"
     5579            SHLIB_LD_LIBS=""
     5580            SHLIB_SUFFIX=".so"
     5581            DL_OBJS="tclLoadDl.o"
     5582            # dlopen is in -lc on QNX
     5583            DL_LIBS=""
     5584            CC_SEARCH_FLAGS=""
     5585            LD_SEARCH_FLAGS=""
     5586            ;;
     5587        RISCos-*)
     5588            SHLIB_CFLAGS="-G 0"
     5589            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
     5590            SHLIB_LD_LIBS='${LIBS}'
     5591            SHLIB_SUFFIX=".a"
     5592            DL_OBJS="tclLoadAout.o"
     5593            DL_LIBS=""
     5594            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
     5595            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     5596            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     5597            ;;
     5598        SCO_SV-3.2*)
     5599            # Note, dlopen is available only on SCO 3.2.5 and greater. However,
     5600            # this test works, since "uname -s" was non-standard in 3.2.4 and
     5601            # below.
     5602            if test "$GCC" = "yes" ; then
     5603                SHLIB_CFLAGS="-fPIC -melf"
     5604                LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
     5605            else
     5606                SHLIB_CFLAGS="-Kpic -belf"
     5607                LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
     5608            fi
     5609            SHLIB_LD="ld -G"
     5610            SHLIB_LD_LIBS=""
     5611            SHLIB_SUFFIX=".so"
     5612            DL_OBJS="tclLoadDl.o"
     5613            DL_LIBS=""
     5614            CC_SEARCH_FLAGS=""
     5615            LD_SEARCH_FLAGS=""
     5616            ;;
     5617        SINIX*5.4*)
     5618            SHLIB_CFLAGS="-K PIC"
     5619            SHLIB_LD="cc -G"
     5620            SHLIB_LD_LIBS=""
     5621            SHLIB_SUFFIX=".so"
     5622            DL_OBJS="tclLoadDl.o"
     5623            DL_LIBS="-ldl"
     5624            CC_SEARCH_FLAGS=""
     5625            LD_SEARCH_FLAGS=""
     5626            ;;
     5627        SunOS-4*)
     5628            SHLIB_CFLAGS="-PIC"
     5629            SHLIB_LD="ld"
     5630            SHLIB_LD_LIBS=""
     5631            SHLIB_SUFFIX=".so"
     5632            DL_OBJS="tclLoadDl.o"
     5633            DL_LIBS="-ldl"
     5634            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     5635            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     5636
     5637            # SunOS can't handle version numbers with dots in them in library
     5638            # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
     5639            # requires an extra version number at the end of .so file names.
     5640            # So, the library has to have a name like libtcl75.so.1.0
     5641
     5642            SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
     5643            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     5644            TCL_LIB_VERSIONS_OK=nodots
     5645            ;;
     5646        SunOS-5.[0-6])
     5647            # Careful to not let 5.10+ fall into this case
     5648
     5649            # Note: If _REENTRANT isn't defined, then Solaris
     5650            # won't define thread-safe library routines.
     5651
     5652            cat >>confdefs.h <<\_ACEOF
     5653#define _REENTRANT 1
     5654_ACEOF
     5655
     5656            cat >>confdefs.h <<\_ACEOF
     5657#define _POSIX_PTHREAD_SEMANTICS 1
     5658_ACEOF
     5659
     5660
     5661            SHLIB_CFLAGS="-KPIC"
     5662
     5663            # Note: need the LIBS below, otherwise Tk won't find Tcl's
     5664            # symbols when dynamically loaded into tclsh.
     5665
     5666            SHLIB_LD_LIBS='${LIBS}'
     5667            SHLIB_SUFFIX=".so"
     5668            DL_OBJS="tclLoadDl.o"
     5669            DL_LIBS="-ldl"
     5670            if test "$GCC" = "yes" ; then
     5671                SHLIB_LD="$CC -shared"
     5672                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     5673                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     5674            else
     5675                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
     5676                CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
     5677                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     5678            fi
     5679            ;;
     5680        SunOS-5*)
     5681            # Note: If _REENTRANT isn't defined, then Solaris
     5682            # won't define thread-safe library routines.
     5683
     5684            cat >>confdefs.h <<\_ACEOF
     5685#define _REENTRANT 1
     5686_ACEOF
     5687
     5688            cat >>confdefs.h <<\_ACEOF
     5689#define _POSIX_PTHREAD_SEMANTICS 1
     5690_ACEOF
     5691
     5692
     5693            SHLIB_CFLAGS="-KPIC"
     5694
     5695            # Check to enable 64-bit flags for compiler/linker
     5696            if test "$do64bit" = "yes" ; then
     5697                arch=`isainfo`
     5698                if test "$arch" = "sparcv9 sparc" ; then
     5699                        if test "$GCC" = "yes" ; then
     5700                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
     5701                                { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
     5702$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
     5703                            else
     5704                                do64bit_ok=yes
     5705                                CFLAGS="$CFLAGS -m64 -mcpu=v9"
     5706                                LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
     5707                                SHLIB_CFLAGS="-fPIC"
     5708                            fi
     5709                        else
     5710                            do64bit_ok=yes
     5711                            if test "$do64bitVIS" = "yes" ; then
     5712                                CFLAGS="$CFLAGS -xarch=v9a"
     5713                                LDFLAGS="$LDFLAGS -xarch=v9a"
     5714                            else
     5715                                CFLAGS="$CFLAGS -xarch=v9"
     5716                                LDFLAGS="$LDFLAGS -xarch=v9"
     5717                            fi
     5718                            # Solaris 64 uses this as well
     5719                            #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
     5720                        fi
     5721                elif test "$arch" = "amd64 i386" ; then
     5722                    if test "$GCC" = "yes" ; then
     5723                        { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5
     5724$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
     5725                    else
     5726                        do64bit_ok=yes
     5727                        CFLAGS="$CFLAGS -xarch=amd64"
     5728                        LDFLAGS="$LDFLAGS -xarch=amd64"
     5729                    fi
     5730                else
     5731                    { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5
     5732$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
     5733                fi
     5734            fi
     5735
     5736            # Note: need the LIBS below, otherwise Tk won't find Tcl's
     5737            # symbols when dynamically loaded into tclsh.
     5738
     5739            SHLIB_LD_LIBS='${LIBS}'
     5740            SHLIB_SUFFIX=".so"
     5741            DL_OBJS="tclLoadDl.o"
     5742            DL_LIBS="-ldl"
     5743            if test "$GCC" = "yes" ; then
     5744                SHLIB_LD="$CC -shared"
     5745                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     5746                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     5747                if test "$do64bit_ok" = "yes" ; then
     5748                    # We need to specify -static-libgcc or we need to
     5749                    # add the path to the sparv9 libgcc.
     5750                    SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
     5751                    # for finding sparcv9 libgcc, get the regular libgcc
     5752                    # path, remove so name and append 'sparcv9'
     5753                    #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
     5754                    #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
     5755                fi
     5756            else
     5757                case $system in
     5758                    SunOS-5.[1-9][0-9]*)
     5759                        SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
     5760                    *)
     5761                        SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
     5762                esac
     5763                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     5764                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
     5765            fi
     5766            ;;
     5767        ULTRIX-4.*)
     5768            SHLIB_CFLAGS="-G 0"
     5769            SHLIB_SUFFIX=".a"
     5770            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
     5771            SHLIB_LD_LIBS='${LIBS}'
     5772            DL_OBJS="tclLoadAout.o"
     5773            DL_LIBS=""
     5774            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
     5775            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     5776            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     5777            if test "$GCC" != "yes" ; then
     5778                CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
     5779            fi
     5780            ;;
     5781        UNIX_SV* | UnixWare-5*)
     5782            SHLIB_CFLAGS="-KPIC"
     5783            SHLIB_LD="cc -G"
     5784            SHLIB_LD_LIBS=""
     5785            SHLIB_SUFFIX=".so"
     5786            DL_OBJS="tclLoadDl.o"
     5787            DL_LIBS="-ldl"
     5788            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
     5789            # that don't grok the -Bexport option.  Test that it does.
     5790            { $as_echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5
     5791$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
     5792if test "${tcl_cv_ld_Bexport+set}" = set; then
     5793  $as_echo_n "(cached) " >&6
     5794else
     5795
     5796                hold_ldflags=$LDFLAGS
     5797                LDFLAGS="$LDFLAGS -Wl,-Bexport"
     5798                cat >conftest.$ac_ext <<_ACEOF
     5799/* confdefs.h.  */
     5800_ACEOF
     5801cat confdefs.h >>conftest.$ac_ext
     5802cat >>conftest.$ac_ext <<_ACEOF
     5803/* end confdefs.h.  */
     5804
     5805int
     5806main ()
     5807{
     5808int i;
     5809  ;
     5810  return 0;
     5811}
     5812_ACEOF
     5813rm -f conftest.$ac_objext conftest$ac_exeext
     5814if { (ac_try="$ac_link"
     5815case "(($ac_try" in
     5816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5817  *) ac_try_echo=$ac_try;;
     5818esac
     5819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5820$as_echo "$ac_try_echo") >&5
     5821  (eval "$ac_link") 2>conftest.er1
     5822  ac_status=$?
     5823  grep -v '^ *+' conftest.er1 >conftest.err
     5824  rm -f conftest.er1
     5825  cat conftest.err >&5
     5826  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5827  (exit $ac_status); } && {
     5828         test -z "$ac_c_werror_flag" ||
     5829         test ! -s conftest.err
     5830       } && test -s conftest$ac_exeext && {
     5831         test "$cross_compiling" = yes ||
     5832         $as_test_x conftest$ac_exeext
     5833       }; then
     5834  tcl_cv_ld_Bexport=yes
     5835else
     5836  $as_echo "$as_me: failed program was:" >&5
     5837sed 's/^/| /' conftest.$ac_ext >&5
     5838
     5839        tcl_cv_ld_Bexport=no
     5840fi
     5841
     5842rm -rf conftest.dSYM
     5843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5844      conftest$ac_exeext conftest.$ac_ext
     5845                LDFLAGS=$hold_ldflags
     5846fi
     5847{ $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5
     5848$as_echo "$tcl_cv_ld_Bexport" >&6; }
     5849            if test $tcl_cv_ld_Bexport = yes; then
     5850                LDFLAGS="$LDFLAGS -Wl,-Bexport"
     5851            fi
     5852            CC_SEARCH_FLAGS=""
     5853            LD_SEARCH_FLAGS=""
     5854            ;;
     5855    esac
     5856
     5857    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
     5858        { $as_echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
     5859$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
     5860    fi
     5861
     5862
     5863
     5864
     5865    # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
     5866    # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
     5867    # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
     5868    # to determine which of several header files defines the a.out file
     5869    # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
     5870    # support only a file format that is more or less version-7-compatible.
     5871    # In particular,
     5872    #   - a.out files must begin with `struct exec'.
     5873    #   - the N_TXTOFF on the `struct exec' must compute the seek address
     5874    #     of the text segment
     5875    #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
     5876    #     and a_entry fields.
     5877    # The following compilation should succeed if and only if either sys/exec.h
     5878    # or a.out.h is usable for the purpose.
     5879    #
     5880    # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
     5881    # `struct exec' includes a second header that contains information that
     5882    # duplicates the v7 fields that are needed.
     5883
     5884    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
     5885        { $as_echo "$as_me:$LINENO: checking sys/exec.h" >&5
     5886$as_echo_n "checking sys/exec.h... " >&6; }
     5887if test "${tcl_cv_sysexec_h+set}" = set; then
     5888  $as_echo_n "(cached) " >&6
     5889else
     5890
     5891        cat >conftest.$ac_ext <<_ACEOF
     5892/* confdefs.h.  */
     5893_ACEOF
     5894cat confdefs.h >>conftest.$ac_ext
     5895cat >>conftest.$ac_ext <<_ACEOF
     5896/* end confdefs.h.  */
     5897#include <sys/exec.h>
     5898int
     5899main ()
     5900{
     5901
     5902            struct exec foo;
     5903            unsigned long seek;
     5904            int flag;
     5905#if defined(__mips) || defined(mips)
     5906            seek = N_TXTOFF (foo.ex_f, foo.ex_o);
     5907#else
     5908            seek = N_TXTOFF (foo);
     5909#endif
     5910            flag = (foo.a_magic == OMAGIC);
     5911            return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
     5912
     5913  ;
     5914  return 0;
     5915}
     5916_ACEOF
     5917rm -f conftest.$ac_objext
     5918if { (ac_try="$ac_compile"
     5919case "(($ac_try" in
     5920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5921  *) ac_try_echo=$ac_try;;
     5922esac
     5923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5924$as_echo "$ac_try_echo") >&5
     5925  (eval "$ac_compile") 2>conftest.er1
     5926  ac_status=$?
     5927  grep -v '^ *+' conftest.er1 >conftest.err
     5928  rm -f conftest.er1
     5929  cat conftest.err >&5
     5930  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5931  (exit $ac_status); } && {
     5932         test -z "$ac_c_werror_flag" ||
     5933         test ! -s conftest.err
     5934       } && test -s conftest.$ac_objext; then
     5935  tcl_cv_sysexec_h=usable
     5936else
     5937  $as_echo "$as_me: failed program was:" >&5
     5938sed 's/^/| /' conftest.$ac_ext >&5
     5939
     5940        tcl_cv_sysexec_h=unusable
     5941fi
     5942
     5943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5944fi
     5945{ $as_echo "$as_me:$LINENO: result: $tcl_cv_sysexec_h" >&5
     5946$as_echo "$tcl_cv_sysexec_h" >&6; }
     5947        if test $tcl_cv_sysexec_h = usable; then
     5948            cat >>confdefs.h <<\_ACEOF
     5949#define USE_SYS_EXEC_H 1
     5950_ACEOF
     5951
     5952        else
     5953            { $as_echo "$as_me:$LINENO: checking a.out.h" >&5
     5954$as_echo_n "checking a.out.h... " >&6; }
     5955if test "${tcl_cv_aout_h+set}" = set; then
     5956  $as_echo_n "(cached) " >&6
     5957else
     5958
     5959            cat >conftest.$ac_ext <<_ACEOF
     5960/* confdefs.h.  */
     5961_ACEOF
     5962cat confdefs.h >>conftest.$ac_ext
     5963cat >>conftest.$ac_ext <<_ACEOF
     5964/* end confdefs.h.  */
     5965#include <a.out.h>
     5966int
     5967main ()
     5968{
     5969
     5970                struct exec foo;
     5971                unsigned long seek;
     5972                int flag;
     5973#if defined(__mips) || defined(mips)
     5974                seek = N_TXTOFF (foo.ex_f, foo.ex_o);
     5975#else
     5976                seek = N_TXTOFF (foo);
     5977#endif
     5978                flag = (foo.a_magic == OMAGIC);
     5979                return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
     5980
     5981  ;
     5982  return 0;
     5983}
     5984_ACEOF
     5985rm -f conftest.$ac_objext
     5986if { (ac_try="$ac_compile"
     5987case "(($ac_try" in
     5988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     5989  *) ac_try_echo=$ac_try;;
     5990esac
     5991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     5992$as_echo "$ac_try_echo") >&5
     5993  (eval "$ac_compile") 2>conftest.er1
     5994  ac_status=$?
     5995  grep -v '^ *+' conftest.er1 >conftest.err
     5996  rm -f conftest.er1
     5997  cat conftest.err >&5
     5998  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5999  (exit $ac_status); } && {
     6000         test -z "$ac_c_werror_flag" ||
     6001         test ! -s conftest.err
     6002       } && test -s conftest.$ac_objext; then
     6003  tcl_cv_aout_h=usable
     6004else
     6005  $as_echo "$as_me: failed program was:" >&5
     6006sed 's/^/| /' conftest.$ac_ext >&5
     6007
     6008        tcl_cv_aout_h=unusable
     6009fi
     6010
     6011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6012fi
     6013{ $as_echo "$as_me:$LINENO: result: $tcl_cv_aout_h" >&5
     6014$as_echo "$tcl_cv_aout_h" >&6; }
     6015            if test $tcl_cv_aout_h = usable; then
     6016                cat >>confdefs.h <<\_ACEOF
     6017#define USE_A_OUT_H 1
     6018_ACEOF
     6019
     6020            else
     6021                { $as_echo "$as_me:$LINENO: checking sys/exec_aout.h" >&5
     6022$as_echo_n "checking sys/exec_aout.h... " >&6; }
     6023if test "${tcl_cv_sysexecaout_h+set}" = set; then
     6024  $as_echo_n "(cached) " >&6
     6025else
     6026
     6027                cat >conftest.$ac_ext <<_ACEOF
     6028/* confdefs.h.  */
     6029_ACEOF
     6030cat confdefs.h >>conftest.$ac_ext
     6031cat >>conftest.$ac_ext <<_ACEOF
     6032/* end confdefs.h.  */
     6033#include <sys/exec_aout.h>
     6034int
     6035main ()
     6036{
     6037
     6038                    struct exec foo;
     6039                    unsigned long seek;
     6040                    int flag;
     6041#if defined(__mips) || defined(mips)
     6042                    seek = N_TXTOFF (foo.ex_f, foo.ex_o);
     6043#else
     6044                    seek = N_TXTOFF (foo);
     6045#endif
     6046                    flag = (foo.a_midmag == OMAGIC);
     6047                    return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
     6048
     6049  ;
     6050  return 0;
     6051}
     6052_ACEOF
     6053rm -f conftest.$ac_objext
     6054if { (ac_try="$ac_compile"
     6055case "(($ac_try" in
     6056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     6057  *) ac_try_echo=$ac_try;;
     6058esac
     6059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
     6060$as_echo "$ac_try_echo") >&5
     6061  (eval "$ac_compile") 2>conftest.er1
     6062  ac_status=$?
     6063  grep -v '^ *+' conftest.er1 >conftest.err
     6064  rm -f conftest.er1
     6065  cat conftest.err >&5
     6066  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6067  (exit $ac_status); } && {
     6068         test -z "$ac_c_werror_flag" ||
     6069         test ! -s conftest.err
     6070       } && test -s conftest.$ac_objext; then
     6071  tcl_cv_sysexecaout_h=usable
     6072else
     6073  $as_echo "$as_me: failed program was:" >&5
     6074sed 's/^/| /' conftest.$ac_ext >&5
     6075
     6076        tcl_cv_sysexecaout_h=unusable
     6077fi
     6078
     6079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     6080fi
     6081{ $as_echo "$as_me:$LINENO: result: $tcl_cv_sysexecaout_h" >&5
     6082$as_echo "$tcl_cv_sysexecaout_h" >&6; }
     6083                if test $tcl_cv_sysexecaout_h = usable; then
     6084                    cat >>confdefs.h <<\_ACEOF
     6085#define USE_SYS_EXEC_AOUT_H 1
     6086_ACEOF
     6087
     6088                else
     6089                    DL_OBJS=""
     6090                fi
     6091            fi
     6092        fi
     6093    fi
     6094
     6095    # Step 5: disable dynamic loading if requested via a command-line switch.
     6096
     6097    # Check whether --enable-load was given.
     6098if test "${enable_load+set}" = set; then
     6099  enableval=$enable_load; tcl_ok=$enableval
     6100else
     6101  tcl_ok=yes
     6102fi
     6103
     6104    if test "$tcl_ok" = "no"; then
     6105        DL_OBJS=""
     6106    fi
     6107
     6108    if test "x$DL_OBJS" != "x" ; then
     6109        BUILD_DLTEST="\$(DLTEST_TARGETS)"
     6110    else
     6111        echo "Can't figure out how to do dynamic loading or shared libraries"
     6112        echo "on this system."
     6113        SHLIB_CFLAGS=""
     6114        SHLIB_LD=""
     6115        SHLIB_SUFFIX=""
     6116        DL_OBJS="tclLoadNone.o"
     6117        DL_LIBS=""
     6118        LDFLAGS="$LDFLAGS_ORIG"
     6119        CC_SEARCH_FLAGS=""
     6120        LD_SEARCH_FLAGS=""
     6121        BUILD_DLTEST=""
     6122    fi
     6123
     6124    # If we're running gcc, then change the C flags for compiling shared
     6125    # libraries to the right flags for gcc, instead of those for the
     6126    # standard manufacturer compiler.
     6127
     6128    if test "$DL_OBJS" != "tclLoadNone.o" ; then
     6129        if test "$GCC" = "yes" ; then
     6130            case $system in
     6131                AIX-*)
     6132                    ;;
     6133                BSD/OS*)
     6134                    ;;
     6135                IRIX*)
     6136                    ;;
     6137                NetBSD-*|FreeBSD-*|OpenBSD-*)
     6138                    ;;
     6139                Darwin-*)
     6140                    ;;
     6141                RISCos-*)
     6142                    ;;
     6143                SCO_SV-3.2*)
     6144                    ;;
     6145                ULTRIX-4.*)
     6146                    ;;
     6147                *)
     6148                    SHLIB_CFLAGS="-fPIC"
     6149                    ;;
     6150            esac
     6151        fi
     6152    fi
     6153
     6154    if test "$SHARED_LIB_SUFFIX" = "" ; then
     6155        SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
     6156    fi
     6157    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
     6158        UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
     6159    fi
     6160
     6161    if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
     6162        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
     6163        MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
     6164        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
     6165    else
     6166        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
     6167
     6168        if test "$RANLIB" = "" ; then
     6169            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
     6170            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
     6171        else
     6172            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
     6173            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
     6174        fi
     6175
     6176    fi
     6177
     6178
     6179    # Stub lib does not depend on shared/static configuration
     6180    if test "$RANLIB" = "" ; then
     6181        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
     6182        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
     6183    else
     6184        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
     6185        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
     6186    fi
     6187
     6188
     6189
     6190
     6191
     6192
     6193
     6194
     6195
     6196
     6197
     6198
     6199
     6200
     6201
     6202
     6203
     6204
     6205
     6206
     6207
     6208
     6209
     6210
     6211
     6212
     6213
     6214
     6215
     6216
     6217
     6218
    18446219
    18456220
     
    24656840  (exit $ac_status); }
    24666841
    2467 cat >conftest.$ac_ext <<_ACEOF
    2468 /* confdefs.h.  */
    2469 _ACEOF
    2470 cat confdefs.h >>conftest.$ac_ext
    2471 cat >>conftest.$ac_ext <<_ACEOF
    2472 /* end confdefs.h.  */
    2473 
    2474 int
    2475 main ()
    2476 {
    2477 
    2478   ;
    2479   return 0;
    2480 }
    2481 _ACEOF
    2482 ac_clean_files_save=$ac_clean_files
    2483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    2484 # Try to create an executable without -o first, disregard a.out.
    2485 # It will help us diagnose broken compilers, and finding out an intuition
    2486 # of exeext.
    2487 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    2488 $as_echo_n "checking for C compiler default output file name... " >&6; }
    2489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    2490 
    2491 # The possible output files:
    2492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
    2493 
    2494 ac_rmfiles=
    2495 for ac_file in $ac_files
    2496 do
    2497   case $ac_file in
    2498     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    2499     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
    2500   esac
    2501 done
    2502 rm -f $ac_rmfiles
    2503 
    2504 if { (ac_try="$ac_link_default"
    2505 case "(($ac_try" in
    2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2507   *) ac_try_echo=$ac_try;;
    2508 esac
    2509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2510 $as_echo "$ac_try_echo") >&5
    2511   (eval "$ac_link_default") 2>&5
    2512   ac_status=$?
    2513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2514   (exit $ac_status); }; then
    2515   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
    2516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
    2517 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
    2518 # so that the user can short-circuit this test for compilers unknown to
    2519 # Autoconf.
    2520 for ac_file in $ac_files ''
    2521 do
    2522   test -f "$ac_file" || continue
    2523   case $ac_file in
    2524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    2525         ;;
    2526     [ab].out )
    2527         # We found the default executable, but exeext='' is most
    2528         # certainly right.
    2529         break;;
    2530     *.* )
    2531         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
    2532         then :; else
    2533            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2534         fi
    2535         # We set ac_cv_exeext here because the later test for it is not
    2536         # safe: cross compilers may not add the suffix if given an `-o'
    2537         # argument, so we may need to know it at that point already.
    2538         # Even if this section looks crufty: it has the advantage of
    2539         # actually working.
    2540         break;;
    2541     * )
    2542         break;;
    2543   esac
    2544 done
    2545 test "$ac_cv_exeext" = no && ac_cv_exeext=
    2546 
    2547 else
    2548   ac_file=''
    2549 fi
    2550 
    2551 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
    2552 $as_echo "$ac_file" >&6; }
    2553 if test -z "$ac_file"; then
    2554   $as_echo "$as_me: failed program was:" >&5
    2555 sed 's/^/| /' conftest.$ac_ext >&5
    2556 
    2557 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2559 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
    2560 See \`config.log' for more details." >&5
    2561 $as_echo "$as_me: error: C compiler cannot create executables
    2562 See \`config.log' for more details." >&2;}
    2563    { (exit 77); exit 77; }; }; }
    2564 fi
    2565 
    2566 ac_exeext=$ac_cv_exeext
    2567 
    2568 # Check that the compiler produces executables we can run.  If not, either
    2569 # the compiler is broken, or we cross compile.
    2570 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    2571 $as_echo_n "checking whether the C compiler works... " >&6; }
    2572 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    2573 # If not cross compiling, check that we can run a simple program.
    2574 if test "$cross_compiling" != yes; then
    2575   if { ac_try='./$ac_file'
    2576   { (case "(($ac_try" in
    2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2578   *) ac_try_echo=$ac_try;;
    2579 esac
    2580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2581 $as_echo "$ac_try_echo") >&5
    2582   (eval "$ac_try") 2>&5
    2583   ac_status=$?
    2584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2585   (exit $ac_status); }; }; then
    2586     cross_compiling=no
    2587   else
    2588     if test "$cross_compiling" = maybe; then
    2589         cross_compiling=yes
    2590     else
    2591         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    2592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2593 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
    2594 If you meant to cross compile, use \`--host'.
    2595 See \`config.log' for more details." >&5
    2596 $as_echo "$as_me: error: cannot run C compiled programs.
    2597 If you meant to cross compile, use \`--host'.
    2598 See \`config.log' for more details." >&2;}
    2599    { (exit 1); exit 1; }; }; }
    2600     fi
    2601   fi
    2602 fi
    2603 { $as_echo "$as_me:$LINENO: result: yes" >&5
    2604 $as_echo "yes" >&6; }
    2605 
    2606 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
    2607 ac_clean_files=$ac_clean_files_save
    2608 # Check that the compiler produces executables we can run.  If not, either
    2609 # the compiler is broken, or we cross compile.
    2610 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    2611 $as_echo_n "checking whether we are cross compiling... " >&6; }
    2612 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
    2613 $as_echo "$cross_compiling" >&6; }
    2614 
    2615 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
    2616 $as_echo_n "checking for suffix of executables... " >&6; }
    2617 if { (ac_try="$ac_link"
    2618 case "(($ac_try" in
    2619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2620   *) ac_try_echo=$ac_try;;
    2621 esac
    2622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2623 $as_echo "$ac_try_echo") >&5
    2624   (eval "$ac_link") 2>&5
    2625   ac_status=$?
    2626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2627   (exit $ac_status); }; then
    2628   # If both `conftest.exe' and `conftest' are `present' (well, observable)
    2629 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
    2630 # work properly (i.e., refer to `conftest.exe'), while it won't with
    2631 # `rm'.
    2632 for ac_file in conftest.exe conftest conftest.*; do
    2633   test -f "$ac_file" || continue
    2634   case $ac_file in
    2635     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    2636     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2637           break;;
    2638     * ) break;;
    2639   esac
    2640 done
    2641 else
    2642   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2644 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
    2645 See \`config.log' for more details." >&5
    2646 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
    2647 See \`config.log' for more details." >&2;}
    2648    { (exit 1); exit 1; }; }; }
    2649 fi
    2650 
    2651 rm -f conftest$ac_cv_exeext
    2652 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    2653 $as_echo "$ac_cv_exeext" >&6; }
    2654 
    2655 rm -f conftest.$ac_ext
    2656 EXEEXT=$ac_cv_exeext
    2657 ac_exeext=$EXEEXT
    2658 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
    2659 $as_echo_n "checking for suffix of object files... " >&6; }
    2660 if test "${ac_cv_objext+set}" = set; then
    2661   $as_echo_n "(cached) " >&6
    2662 else
    2663   cat >conftest.$ac_ext <<_ACEOF
    2664 /* confdefs.h.  */
    2665 _ACEOF
    2666 cat confdefs.h >>conftest.$ac_ext
    2667 cat >>conftest.$ac_ext <<_ACEOF
    2668 /* end confdefs.h.  */
    2669 
    2670 int
    2671 main ()
    2672 {
    2673 
    2674   ;
    2675   return 0;
    2676 }
    2677 _ACEOF
    2678 rm -f conftest.o conftest.obj
    2679 if { (ac_try="$ac_compile"
    2680 case "(($ac_try" in
    2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2682   *) ac_try_echo=$ac_try;;
    2683 esac
    2684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    2685 $as_echo "$ac_try_echo") >&5
    2686   (eval "$ac_compile") 2>&5
    2687   ac_status=$?
    2688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2689   (exit $ac_status); }; then
    2690   for ac_file in conftest.o conftest.obj conftest.*; do
    2691   test -f "$ac_file" || continue;
    2692   case $ac_file in
    2693     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    2694     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    2695        break;;
    2696   esac
    2697 done
    2698 else
    2699   $as_echo "$as_me: failed program was:" >&5
    2700 sed 's/^/| /' conftest.$ac_ext >&5
    2701 
    2702 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
    2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2704 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
    2705 See \`config.log' for more details." >&5
    2706 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
    2707 See \`config.log' for more details." >&2;}
    2708    { (exit 1); exit 1; }; }; }
    2709 fi
    2710 
    2711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
    2712 fi
    2713 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    2714 $as_echo "$ac_cv_objext" >&6; }
    2715 OBJEXT=$ac_cv_objext
    2716 ac_objext=$OBJEXT
    27176842{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    27186843$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
     
    42728397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    42738398
    4274 
    4275 
    4276 
    4277 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
    4278 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
    4279 if test "${ac_cv_path_GREP+set}" = set; then
    4280   $as_echo_n "(cached) " >&6
    4281 else
    4282   if test -z "$GREP"; then
    4283   ac_path_GREP_found=false
    4284   # Loop through the user's path and test for each of PROGNAME-LIST
    4285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4286 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
    4287 do
    4288   IFS=$as_save_IFS
    4289   test -z "$as_dir" && as_dir=.
    4290   for ac_prog in grep ggrep; do
    4291     for ac_exec_ext in '' $ac_executable_extensions; do
    4292       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    4293       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
    4294 # Check for GNU ac_path_GREP and select it if it is found.
    4295   # Check for GNU $ac_path_GREP
    4296 case `"$ac_path_GREP" --version 2>&1` in
    4297 *GNU*)
    4298   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
    4299 *)
    4300   ac_count=0
    4301   $as_echo_n 0123456789 >"conftest.in"
    4302   while :
    4303   do
    4304     cat "conftest.in" "conftest.in" >"conftest.tmp"
    4305     mv "conftest.tmp" "conftest.in"
    4306     cp "conftest.in" "conftest.nl"
    4307     $as_echo 'GREP' >> "conftest.nl"
    4308     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    4309     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    4310     ac_count=`expr $ac_count + 1`
    4311     if test $ac_count -gt ${ac_path_GREP_max-0}; then
    4312       # Best one so far, save it but keep looking for a better one
    4313       ac_cv_path_GREP="$ac_path_GREP"
    4314       ac_path_GREP_max=$ac_count
    4315     fi
    4316     # 10*(2^10) chars as input seems more than enough
    4317     test $ac_count -gt 10 && break
    4318   done
    4319   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
    4320 esac
    4321 
    4322       $ac_path_GREP_found && break 3
    4323     done
    4324   done
    4325 done
    4326 IFS=$as_save_IFS
    4327   if test -z "$ac_cv_path_GREP"; then
    4328     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
    4329 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
    4330    { (exit 1); exit 1; }; }
    4331   fi
    4332 else
    4333   ac_cv_path_GREP=$GREP
    4334 fi
    4335 
    4336 fi
    4337 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
    4338 $as_echo "$ac_cv_path_GREP" >&6; }
    4339  GREP="$ac_cv_path_GREP"
    4340 
    4341 
    4342 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
    4343 $as_echo_n "checking for egrep... " >&6; }
    4344 if test "${ac_cv_path_EGREP+set}" = set; then
    4345   $as_echo_n "(cached) " >&6
    4346 else
    4347   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
    4348    then ac_cv_path_EGREP="$GREP -E"
    4349    else
    4350      if test -z "$EGREP"; then
    4351   ac_path_EGREP_found=false
    4352   # Loop through the user's path and test for each of PROGNAME-LIST
    4353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4354 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
    4355 do
    4356   IFS=$as_save_IFS
    4357   test -z "$as_dir" && as_dir=.
    4358   for ac_prog in egrep; do
    4359     for ac_exec_ext in '' $ac_executable_extensions; do
    4360       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    4361       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
    4362 # Check for GNU ac_path_EGREP and select it if it is found.
    4363   # Check for GNU $ac_path_EGREP
    4364 case `"$ac_path_EGREP" --version 2>&1` in
    4365 *GNU*)
    4366   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
    4367 *)
    4368   ac_count=0
    4369   $as_echo_n 0123456789 >"conftest.in"
    4370   while :
    4371   do
    4372     cat "conftest.in" "conftest.in" >"conftest.tmp"
    4373     mv "conftest.tmp" "conftest.in"
    4374     cp "conftest.in" "conftest.nl"
    4375     $as_echo 'EGREP' >> "conftest.nl"
    4376     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    4377     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    4378     ac_count=`expr $ac_count + 1`
    4379     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
    4380       # Best one so far, save it but keep looking for a better one
    4381       ac_cv_path_EGREP="$ac_path_EGREP"
    4382       ac_path_EGREP_max=$ac_count
    4383     fi
    4384     # 10*(2^10) chars as input seems more than enough
    4385     test $ac_count -gt 10 && break
    4386   done
    4387   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
    4388 esac
    4389 
    4390       $ac_path_EGREP_found && break 3
    4391     done
    4392   done
    4393 done
    4394 IFS=$as_save_IFS
    4395   if test -z "$ac_cv_path_EGREP"; then
    4396     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
    4397 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
    4398    { (exit 1); exit 1; }; }
    4399   fi
    4400 else
    4401   ac_cv_path_EGREP=$EGREP
    4402 fi
    4403 
    4404    fi
    4405 fi
    4406 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
    4407 $as_echo "$ac_cv_path_EGREP" >&6; }
    4408  EGREP="$ac_cv_path_EGREP"
    4409 
    4410 
    4411 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    4412 $as_echo_n "checking for ANSI C header files... " >&6; }
    4413 if test "${ac_cv_header_stdc+set}" = set; then
    4414   $as_echo_n "(cached) " >&6
    4415 else
    4416   cat >conftest.$ac_ext <<_ACEOF
    4417 /* confdefs.h.  */
    4418 _ACEOF
    4419 cat confdefs.h >>conftest.$ac_ext
    4420 cat >>conftest.$ac_ext <<_ACEOF
    4421 /* end confdefs.h.  */
    4422 #include <stdlib.h>
    4423 #include <stdarg.h>
    4424 #include <string.h>
    4425 #include <float.h>
    4426 
    4427 int
    4428 main ()
    4429 {
    4430 
    4431   ;
    4432   return 0;
    4433 }
    4434 _ACEOF
    4435 rm -f conftest.$ac_objext
    4436 if { (ac_try="$ac_compile"
    4437 case "(($ac_try" in
    4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4439   *) ac_try_echo=$ac_try;;
    4440 esac
    4441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4442 $as_echo "$ac_try_echo") >&5
    4443   (eval "$ac_compile") 2>conftest.er1
    4444   ac_status=$?
    4445   grep -v '^ *+' conftest.er1 >conftest.err
    4446   rm -f conftest.er1
    4447   cat conftest.err >&5
    4448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4449   (exit $ac_status); } && {
    4450          test -z "$ac_cxx_werror_flag" ||
    4451          test ! -s conftest.err
    4452        } && test -s conftest.$ac_objext; then
    4453   ac_cv_header_stdc=yes
    4454 else
    4455   $as_echo "$as_me: failed program was:" >&5
    4456 sed 's/^/| /' conftest.$ac_ext >&5
    4457 
    4458         ac_cv_header_stdc=no
    4459 fi
    4460 
    4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4462 
    4463 if test $ac_cv_header_stdc = yes; then
    4464   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    4465   cat >conftest.$ac_ext <<_ACEOF
    4466 /* confdefs.h.  */
    4467 _ACEOF
    4468 cat confdefs.h >>conftest.$ac_ext
    4469 cat >>conftest.$ac_ext <<_ACEOF
    4470 /* end confdefs.h.  */
    4471 #include <string.h>
    4472 
    4473 _ACEOF
    4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4475   $EGREP "memchr" >/dev/null 2>&1; then
    4476   :
    4477 else
    4478   ac_cv_header_stdc=no
    4479 fi
    4480 rm -f conftest*
    4481 
    4482 fi
    4483 
    4484 if test $ac_cv_header_stdc = yes; then
    4485   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    4486   cat >conftest.$ac_ext <<_ACEOF
    4487 /* confdefs.h.  */
    4488 _ACEOF
    4489 cat confdefs.h >>conftest.$ac_ext
    4490 cat >>conftest.$ac_ext <<_ACEOF
    4491 /* end confdefs.h.  */
    4492 #include <stdlib.h>
    4493 
    4494 _ACEOF
    4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4496   $EGREP "free" >/dev/null 2>&1; then
    4497   :
    4498 else
    4499   ac_cv_header_stdc=no
    4500 fi
    4501 rm -f conftest*
    4502 
    4503 fi
    4504 
    4505 if test $ac_cv_header_stdc = yes; then
    4506   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    4507   if test "$cross_compiling" = yes; then
    4508   :
    4509 else
    4510   cat >conftest.$ac_ext <<_ACEOF
    4511 /* confdefs.h.  */
    4512 _ACEOF
    4513 cat confdefs.h >>conftest.$ac_ext
    4514 cat >>conftest.$ac_ext <<_ACEOF
    4515 /* end confdefs.h.  */
    4516 #include <ctype.h>
    4517 #include <stdlib.h>
    4518 #if ((' ' & 0x0FF) == 0x020)
    4519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    4520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    4521 #else
    4522 # define ISLOWER(c) \
    4523                    (('a' <= (c) && (c) <= 'i') \
    4524                      || ('j' <= (c) && (c) <= 'r') \
    4525                      || ('s' <= (c) && (c) <= 'z'))
    4526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    4527 #endif
    4528 
    4529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    4530 int
    4531 main ()
    4532 {
    4533   int i;
    4534   for (i = 0; i < 256; i++)
    4535     if (XOR (islower (i), ISLOWER (i))
    4536         || toupper (i) != TOUPPER (i))
    4537       return 2;
    4538   return 0;
    4539 }
    4540 _ACEOF
    4541 rm -f conftest$ac_exeext
    4542 if { (ac_try="$ac_link"
    4543 case "(($ac_try" in
    4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4545   *) ac_try_echo=$ac_try;;
    4546 esac
    4547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4548 $as_echo "$ac_try_echo") >&5
    4549   (eval "$ac_link") 2>&5
    4550   ac_status=$?
    4551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    4553   { (case "(($ac_try" in
    4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4555   *) ac_try_echo=$ac_try;;
    4556 esac
    4557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4558 $as_echo "$ac_try_echo") >&5
    4559   (eval "$ac_try") 2>&5
    4560   ac_status=$?
    4561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4562   (exit $ac_status); }; }; then
    4563   :
    4564 else
    4565   $as_echo "$as_me: program exited with status $ac_status" >&5
    4566 $as_echo "$as_me: failed program was:" >&5
    4567 sed 's/^/| /' conftest.$ac_ext >&5
    4568 
    4569 ( exit $ac_status )
    4570 ac_cv_header_stdc=no
    4571 fi
    4572 rm -rf conftest.dSYM
    4573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    4574 fi
    4575 
    4576 
    4577 fi
    4578 fi
    4579 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    4580 $as_echo "$ac_cv_header_stdc" >&6; }
    4581 if test $ac_cv_header_stdc = yes; then
    4582 
    4583 cat >>confdefs.h <<\_ACEOF
    4584 #define STDC_HEADERS 1
    4585 _ACEOF
    4586 
    4587 fi
    4588 
    4589 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    4590 
    4591 
    4592 
    4593 
    4594 
    4595 
    4596 
    4597 
    4598 
    4599 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    4600                   inttypes.h stdint.h unistd.h
    4601 do
    4602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
    4604 $as_echo_n "checking for $ac_header... " >&6; }
    4605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
    4606   $as_echo_n "(cached) " >&6
    4607 else
    4608   cat >conftest.$ac_ext <<_ACEOF
    4609 /* confdefs.h.  */
    4610 _ACEOF
    4611 cat confdefs.h >>conftest.$ac_ext
    4612 cat >>conftest.$ac_ext <<_ACEOF
    4613 /* end confdefs.h.  */
    4614 $ac_includes_default
    4615 
    4616 #include <$ac_header>
    4617 _ACEOF
    4618 rm -f conftest.$ac_objext
    4619 if { (ac_try="$ac_compile"
    4620 case "(($ac_try" in
    4621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    4622   *) ac_try_echo=$ac_try;;
    4623 esac
    4624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
    4625 $as_echo "$ac_try_echo") >&5
    4626   (eval "$ac_compile") 2>conftest.er1
    4627   ac_status=$?
    4628   grep -v '^ *+' conftest.er1 >conftest.err
    4629   rm -f conftest.er1
    4630   cat conftest.err >&5
    4631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4632   (exit $ac_status); } && {
    4633          test -z "$ac_cxx_werror_flag" ||
    4634          test ! -s conftest.err
    4635        } && test -s conftest.$ac_objext; then
    4636   eval "$as_ac_Header=yes"
    4637 else
    4638   $as_echo "$as_me: failed program was:" >&5
    4639 sed 's/^/| /' conftest.$ac_ext >&5
    4640 
    4641         eval "$as_ac_Header=no"
    4642 fi
    4643 
    4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    4645 fi
    4646 ac_res=`eval 'as_val=${'$as_ac_Header'}
    4647                  $as_echo "$as_val"'`
    4648                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
    4649 $as_echo "$ac_res" >&6; }
    4650 as_val=`eval 'as_val=${'$as_ac_Header'}
    4651                  $as_echo "$as_val"'`
    4652    if test "x$as_val" = x""yes; then
    4653   cat >>confdefs.h <<_ACEOF
    4654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4655 _ACEOF
    4656 
    4657 fi
    4658 
    4659 done
    46608399
    46618400
     
    51798918else
    51808919
     8920
    51818921for ac_header in rappture.h
    51828922do
     
    674810488
    674910489
    6750 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile start_viz.sh"
     10490ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanovis/Makefile nanovis/glui/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile start_viz.sh"
    675110491
    675210492cat >confcache <<\_ACEOF
     
    735111091    "nanoscale/Makefile") CONFIG_FILES="$CONFIG_FILES nanoscale/Makefile" ;;
    735211092    "nanovis/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/Makefile" ;;
     11093    "nanovis/glui/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/glui/Makefile" ;;
    735311094    "nanovis/newmat11/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/newmat11/Makefile" ;;
    735411095    "nanovis/R2/src/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/R2/src/Makefile" ;;
  • trunk/packages/vizservers/configure.in

    r1353 r1358  
    234234            nanoscale/Makefile \
    235235            nanovis/Makefile \
     236            nanovis/glui/Makefile \
    236237            nanovis/newmat11/Makefile \
    237238            nanovis/R2/src/Makefile \
  • trunk/packages/vizservers/nanovis/Makefile.in

    r1351 r1358  
    3939# might also need -lavutil
    4040GL_INC_SPEC     = -I/usr/include/GL
    41 GL_LIB_SPEC     = -lGL -lglut -lglui -lGLEW
     41GL_LIB_SPEC     = -lGL -lglut -lGLEW
    4242IMG_DIR         = ./imgLoaders
    4343IMG_INC_SPEC    = -I$(srcdir)/$(IMG_DIR)
     
    5353R2_LIB_SPEC     = $(R2_LIB)
    5454
     55GLUI_DIR          = ./glui
     56GLUI_INC_SPEC     = -I$(srcdir)/$(GLUI_DIR)
     57GLUI_LIB          = $(GLUI_DIR)/libglui.a
     58GLUI_LIB_SPEC     = $(GLUI_LIB)
     59
     60
    5561EXTRA_LIBS      = -lm -lpthread
    5662RP_DIR          =  @RP_DIR@
     
    7884                $(CG_LIB_SPEC) \
    7985                $(GL_LIB_SPEC) \
     86                $(GLUI_LIB_SPEC) \
    8087                $(FF_LIB_SPEC) \
    8188                $(EXTRA_LIBS) \
     
    8592                -I. \
    8693                -I$(srcdir) \
     94                $(R2_INC_SPEC) \
     95                $(IMG_INC_SPEC) \
     96                $(MAT_INC_SPEC) \
     97                $(GLUI_INC_SPEC) \
    8798                $(TCL_INC_SPEC) \
    88                 $(RP_INC_SPEC) \
    8999                $(CG_INC_SPEC) \
    90100                $(GL_INC_SPEC) \
    91                 $(R2_INC_SPEC) \
    92                 $(IMG_INC_SPEC) \
    93                 $(MAT_INC_SPEC)
     101                $(RP_INC_SPEC) \
    94102
    95103CC              = @CC@
     
    180188                $(srcdir)/shaders/zincblende_volume.cg
    181189
    182 all: mat_lib r2_lib img_lib tf_lib nanovis
     190.PHONY: glui newmat11 R2 imgloaders transfer-function nanovis
     191
     192all: glui newmat11 R2 imgloaders transfer-function nanovis
    183193
    184194install: install-nanovis install-resources install-shaders
    185195
    186 mat_lib: $(MAT_LIB)
    187 r2_lib:  $(R2_LIB)
    188 img_lib: $(IMG_LIB)
    189 tf_lib:  $(TF_LIB)
     196glui:                   $(GLUI_LIB)
     197newmat11:               $(MAT_LIB)
     198R2:                     $(R2_LIB)
     199imgloaders:             $(IMG_LIB)
     200transfer-function:      $(TF_LIB)
     201
     202$(GLUI_LIB):
     203        $(MAKE) -C $(GLUI_DIR) all
    190204
    191205$(MAT_LIB):
     
    242256
    243257clean:
     258        $(MAKE) -C $(GLUI_DIR) clean
    244259        $(MAKE) -C $(MAT_DIR) clean
    245260        $(MAKE) -C $(R2_DIR)/src clean
Note: See TracChangeset for help on using the changeset viewer.