Ignore:
Timestamp:
Oct 9, 2015, 2:20:14 PM (9 years ago)
Author:
gah
Message:

first pass on new build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/gui/configure

    r5862 r5908  
    587587ac_subst_vars='LTLIBOBJS
    588588LIBOBJS
    589 TCL_SHLIB_SUFFIX
    590 TCL_SHLIB_LDFLAGS
    591 TCL_SHLIB_CFLAGS
    592 TCL_SHLIB_LD
    593 TCL_STLIB_LD
    594 TCL_CFLAGS_OPTIMIZE
    595 TCL_CFLAGS_DEBUG
    596 TK_VERSION
    597 TK_XLIBSW
    598 TK_LIB_SPEC
    599 TK_INC_SPEC
    600 TCL_VERSION
    601 TCL_LIB_SPEC
    602 TCL_INC_SPEC
    603589TCLSH
    604 ENABLE_GUI
    605 MAKE
    606 OBJEXT
    607 EXEEXT
    608 ac_ct_CC
    609 CPPFLAGS
    610 LDFLAGS
    611 CFLAGS
    612 CC
    613590SET_MAKE
    614591MKDIR_P
    615592LN_S
    616 RANLIB
    617593INSTALL_DATA
    618594INSTALL_SCRIPT
    619595INSTALL_PROGRAM
    620 LIB_SEARCH_DIRS
    621 target_os
    622 target_vendor
    623 target_cpu
    624 target
    625 host_os
    626 host_vendor
    627 host_cpu
    628 host
    629 build_os
    630 build_vendor
    631 build_cpu
    632 build
    633596target_alias
    634597host_alias
     
    672635ac_user_opts='
    673636enable_option_checking
    674 enable_gui
    675 with_tclsh
    676637'
    677638      ac_precious_vars='build_alias
    678639host_alias
    679 target_alias
    680 CC
    681 CFLAGS
    682 LDFLAGS
    683 LIBS
    684 CPPFLAGS'
     640target_alias'
    685641
    686642
     
    12791235
    12801236  cat <<\_ACEOF
    1281 
    1282 System types:
    1283   --build=BUILD     configure for building on BUILD [guessed]
    1284   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    1285   --target=TARGET   configure for building compilers for TARGET [HOST]
    12861237_ACEOF
    12871238fi
     
    12921243   esac
    12931244  cat <<\_ACEOF
    1294 
    1295 Optional Features:
    1296   --disable-option-checking  ignore unrecognized --enable/--with options
    1297   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    1298   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    1299   --enable-gui            build code related to the graphical user interface
    1300                           [default=yes]
    1301 
    1302 Optional Packages:
    1303   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    1304   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    1305   --with-tclsh=DIR        location of tclsh [default=yes]
    1306 
    1307 Some influential environment variables:
    1308   CC          C compiler command
    1309   CFLAGS      C compiler flags
    1310   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    1311               nonstandard directory <lib dir>
    1312   LIBS        libraries to pass to the linker, e.g. -l<library>
    1313   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
    1314               you have headers in a nonstandard directory <include dir>
    1315 
    1316 Use these variables to override the choices made by `configure' or to help
    1317 it to find libraries and programs with nonstandard names/locations.
    13181245
    13191246Report bugs to <rappture@nanohub.org>.
     
    13931320## Autoconf initialization. ##
    13941321## ------------------------ ##
    1395 
    1396 # ac_fn_c_try_compile LINENO
    1397 # --------------------------
    1398 # Try to compile conftest.$ac_ext, and return whether this succeeded.
    1399 ac_fn_c_try_compile ()
    1400 {
    1401   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1402   rm -f conftest.$ac_objext
    1403   if { { ac_try="$ac_compile"
    1404 case "(($ac_try" in
    1405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1406   *) ac_try_echo=$ac_try;;
    1407 esac
    1408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1409 $as_echo "$ac_try_echo"; } >&5
    1410   (eval "$ac_compile") 2>conftest.err
    1411   ac_status=$?
    1412   if test -s conftest.err; then
    1413     grep -v '^ *+' conftest.err >conftest.er1
    1414     cat conftest.er1 >&5
    1415     mv -f conftest.er1 conftest.err
    1416   fi
    1417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1418   test $ac_status = 0; } && {
    1419          test -z "$ac_c_werror_flag" ||
    1420          test ! -s conftest.err
    1421        } && test -s conftest.$ac_objext; then :
    1422   ac_retval=0
    1423 else
    1424   $as_echo "$as_me: failed program was:" >&5
    1425 sed 's/^/| /' conftest.$ac_ext >&5
    1426 
    1427         ac_retval=1
    1428 fi
    1429   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1430   as_fn_set_status $ac_retval
    1431 
    1432 } # ac_fn_c_try_compile
    14331322cat >config.log <<_ACEOF
    14341323This file contains any messages produced by compilers while
     
    18121701
    18131702
     1703
    18141704#------------------------------------------------------------------------
    18151705# Handle the --prefix=... option
     
    18221712    exec_prefix=$prefix
    18231713fi
    1824 
    1825 if test "${libdir}" != "${prefix}/lib"; then
    1826     LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
    1827 else
    1828     LIB_SEARCH_DIRS="-L${libdir}"
    1829 fi
    1830 # Make sure we can run config.sub.
    1831 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
    1832   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
    1833 
    1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
    1835 $as_echo_n "checking build system type... " >&6; }
    1836 if ${ac_cv_build+:} false; then :
    1837   $as_echo_n "(cached) " >&6
    1838 else
    1839   ac_build_alias=$build_alias
    1840 test "x$ac_build_alias" = x &&
    1841   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    1842 test "x$ac_build_alias" = x &&
    1843   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
    1844 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
    1845   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
    1846 
    1847 fi
    1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
    1849 $as_echo "$ac_cv_build" >&6; }
    1850 case $ac_cv_build in
    1851 *-*-*) ;;
    1852 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
    1853 esac
    1854 build=$ac_cv_build
    1855 ac_save_IFS=$IFS; IFS='-'
    1856 set x $ac_cv_build
    1857 shift
    1858 build_cpu=$1
    1859 build_vendor=$2
    1860 shift; shift
    1861 # Remember, the first character of IFS is used to create $*,
    1862 # except with old shells:
    1863 build_os=$*
    1864 IFS=$ac_save_IFS
    1865 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
    1866 
    1867 
    1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
    1869 $as_echo_n "checking host system type... " >&6; }
    1870 if ${ac_cv_host+:} false; then :
    1871   $as_echo_n "(cached) " >&6
    1872 else
    1873   if test "x$host_alias" = x; then
    1874   ac_cv_host=$ac_cv_build
    1875 else
    1876   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    1877     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
    1878 fi
    1879 
    1880 fi
    1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
    1882 $as_echo "$ac_cv_host" >&6; }
    1883 case $ac_cv_host in
    1884 *-*-*) ;;
    1885 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
    1886 esac
    1887 host=$ac_cv_host
    1888 ac_save_IFS=$IFS; IFS='-'
    1889 set x $ac_cv_host
    1890 shift
    1891 host_cpu=$1
    1892 host_vendor=$2
    1893 shift; shift
    1894 # Remember, the first character of IFS is used to create $*,
    1895 # except with old shells:
    1896 host_os=$*
    1897 IFS=$ac_save_IFS
    1898 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
    1899 
    1900 
    1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
    1902 $as_echo_n "checking target system type... " >&6; }
    1903 if ${ac_cv_target+:} false; then :
    1904   $as_echo_n "(cached) " >&6
    1905 else
    1906   if test "x$target_alias" = x; then
    1907   ac_cv_target=$ac_cv_host
    1908 else
    1909   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
    1910     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
    1911 fi
    1912 
    1913 fi
    1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
    1915 $as_echo "$ac_cv_target" >&6; }
    1916 case $ac_cv_target in
    1917 *-*-*) ;;
    1918 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
    1919 esac
    1920 target=$ac_cv_target
    1921 ac_save_IFS=$IFS; IFS='-'
    1922 set x $ac_cv_target
    1923 shift
    1924 target_cpu=$1
    1925 target_vendor=$2
    1926 shift; shift
    1927 # Remember, the first character of IFS is used to create $*,
    1928 # except with old shells:
    1929 target_os=$*
    1930 IFS=$ac_save_IFS
    1931 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
    1932 
    1933 
    1934 # The aliases save the names the user supplied, while $host etc.
    1935 # will get canonicalized.
    1936 test -n "$target_alias" &&
    1937   test "$program_prefix$program_suffix$program_transform_name" = \
    1938     NONENONEs,x,x, &&
    1939   program_prefix=${target_alias}-
    1940 
    19411714
    19421715# Find a good install program.  We prefer a C program (faster),
     
    20331806test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    20341807
    2035 
    2036 if test -n "$ac_tool_prefix"; then
    2037   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    2038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2040 $as_echo_n "checking for $ac_word... " >&6; }
    2041 if ${ac_cv_prog_RANLIB+:} false; then :
    2042   $as_echo_n "(cached) " >&6
    2043 else
    2044   if test -n "$RANLIB"; then
    2045   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    2046 else
    2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2048 for as_dir in $PATH
    2049 do
    2050   IFS=$as_save_IFS
    2051   test -z "$as_dir" && as_dir=.
    2052     for ac_exec_ext in '' $ac_executable_extensions; do
    2053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2054     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2056     break 2
    2057   fi
    2058 done
    2059   done
    2060 IFS=$as_save_IFS
    2061 
    2062 fi
    2063 fi
    2064 RANLIB=$ac_cv_prog_RANLIB
    2065 if test -n "$RANLIB"; then
    2066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
    2067 $as_echo "$RANLIB" >&6; }
    2068 else
    2069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2070 $as_echo "no" >&6; }
    2071 fi
    2072 
    2073 
    2074 fi
    2075 if test -z "$ac_cv_prog_RANLIB"; then
    2076   ac_ct_RANLIB=$RANLIB
    2077   # Extract the first word of "ranlib", so it can be a program name with args.
    2078 set dummy ranlib; ac_word=$2
    2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2080 $as_echo_n "checking for $ac_word... " >&6; }
    2081 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
    2082   $as_echo_n "(cached) " >&6
    2083 else
    2084   if test -n "$ac_ct_RANLIB"; then
    2085   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    2086 else
    2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2088 for as_dir in $PATH
    2089 do
    2090   IFS=$as_save_IFS
    2091   test -z "$as_dir" && as_dir=.
    2092     for ac_exec_ext in '' $ac_executable_extensions; do
    2093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2094     ac_cv_prog_ac_ct_RANLIB="ranlib"
    2095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2096     break 2
    2097   fi
    2098 done
    2099   done
    2100 IFS=$as_save_IFS
    2101 
    2102 fi
    2103 fi
    2104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    2105 if test -n "$ac_ct_RANLIB"; then
    2106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
    2107 $as_echo "$ac_ct_RANLIB" >&6; }
    2108 else
    2109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2110 $as_echo "no" >&6; }
    2111 fi
    2112 
    2113   if test "x$ac_ct_RANLIB" = x; then
    2114     RANLIB=":"
    2115   else
    2116     case $cross_compiling:$ac_tool_warned in
    2117 yes:)
    2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    2119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    2120 ac_tool_warned=yes ;;
    2121 esac
    2122     RANLIB=$ac_ct_RANLIB
    2123   fi
    2124 else
    2125   RANLIB="$ac_cv_prog_RANLIB"
    2126 fi
    2127 
    21281808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
    21291809$as_echo_n "checking whether ln -s works... " >&6; }
     
    22101890fi
    22111891
    2212 ac_ext=c
    2213 ac_cpp='$CPP $CPPFLAGS'
    2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2217 if test -n "$ac_tool_prefix"; then
    2218   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    2219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2221 $as_echo_n "checking for $ac_word... " >&6; }
    2222 if ${ac_cv_prog_CC+:} false; then :
    2223   $as_echo_n "(cached) " >&6
    2224 else
    2225   if test -n "$CC"; then
    2226   ac_cv_prog_CC="$CC" # Let the user override the test.
    2227 else
    2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2229 for as_dir in $PATH
    2230 do
    2231   IFS=$as_save_IFS
    2232   test -z "$as_dir" && as_dir=.
    2233     for ac_exec_ext in '' $ac_executable_extensions; do
    2234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2235     ac_cv_prog_CC="${ac_tool_prefix}gcc"
    2236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2237     break 2
    2238   fi
    2239 done
    2240   done
    2241 IFS=$as_save_IFS
    2242 
    2243 fi
    2244 fi
    2245 CC=$ac_cv_prog_CC
    2246 if test -n "$CC"; then
    2247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    2248 $as_echo "$CC" >&6; }
    2249 else
    2250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2251 $as_echo "no" >&6; }
    2252 fi
    2253 
    2254 
    2255 fi
    2256 if test -z "$ac_cv_prog_CC"; then
    2257   ac_ct_CC=$CC
    2258   # Extract the first word of "gcc", so it can be a program name with args.
    2259 set dummy gcc; ac_word=$2
    2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2261 $as_echo_n "checking for $ac_word... " >&6; }
    2262 if ${ac_cv_prog_ac_ct_CC+:} false; then :
    2263   $as_echo_n "(cached) " >&6
    2264 else
    2265   if test -n "$ac_ct_CC"; then
    2266   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2267 else
    2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2269 for as_dir in $PATH
    2270 do
    2271   IFS=$as_save_IFS
    2272   test -z "$as_dir" && as_dir=.
    2273     for ac_exec_ext in '' $ac_executable_extensions; do
    2274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2275     ac_cv_prog_ac_ct_CC="gcc"
    2276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2277     break 2
    2278   fi
    2279 done
    2280   done
    2281 IFS=$as_save_IFS
    2282 
    2283 fi
    2284 fi
    2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2286 if test -n "$ac_ct_CC"; then
    2287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    2288 $as_echo "$ac_ct_CC" >&6; }
    2289 else
    2290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2291 $as_echo "no" >&6; }
    2292 fi
    2293 
    2294   if test "x$ac_ct_CC" = x; then
    2295     CC=""
    2296   else
    2297     case $cross_compiling:$ac_tool_warned in
    2298 yes:)
    2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    2300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    2301 ac_tool_warned=yes ;;
    2302 esac
    2303     CC=$ac_ct_CC
    2304   fi
    2305 else
    2306   CC="$ac_cv_prog_CC"
    2307 fi
    2308 
    2309 if test -z "$CC"; then
    2310           if test -n "$ac_tool_prefix"; then
    2311     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    2312 set dummy ${ac_tool_prefix}cc; ac_word=$2
    2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2314 $as_echo_n "checking for $ac_word... " >&6; }
    2315 if ${ac_cv_prog_CC+:} false; then :
    2316   $as_echo_n "(cached) " >&6
    2317 else
    2318   if test -n "$CC"; then
    2319   ac_cv_prog_CC="$CC" # Let the user override the test.
    2320 else
    2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2322 for as_dir in $PATH
    2323 do
    2324   IFS=$as_save_IFS
    2325   test -z "$as_dir" && as_dir=.
    2326     for ac_exec_ext in '' $ac_executable_extensions; do
    2327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2328     ac_cv_prog_CC="${ac_tool_prefix}cc"
    2329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2330     break 2
    2331   fi
    2332 done
    2333   done
    2334 IFS=$as_save_IFS
    2335 
    2336 fi
    2337 fi
    2338 CC=$ac_cv_prog_CC
    2339 if test -n "$CC"; then
    2340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    2341 $as_echo "$CC" >&6; }
    2342 else
    2343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2344 $as_echo "no" >&6; }
    2345 fi
    2346 
    2347 
    2348   fi
    2349 fi
    2350 if test -z "$CC"; then
    2351   # Extract the first word of "cc", so it can be a program name with args.
    2352 set dummy cc; ac_word=$2
    2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2354 $as_echo_n "checking for $ac_word... " >&6; }
    2355 if ${ac_cv_prog_CC+:} false; then :
    2356   $as_echo_n "(cached) " >&6
    2357 else
    2358   if test -n "$CC"; then
    2359   ac_cv_prog_CC="$CC" # Let the user override the test.
    2360 else
    2361   ac_prog_rejected=no
    2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2363 for as_dir in $PATH
    2364 do
    2365   IFS=$as_save_IFS
    2366   test -z "$as_dir" && as_dir=.
    2367     for ac_exec_ext in '' $ac_executable_extensions; do
    2368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2369     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    2370        ac_prog_rejected=yes
    2371        continue
    2372      fi
    2373     ac_cv_prog_CC="cc"
    2374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2375     break 2
    2376   fi
    2377 done
    2378   done
    2379 IFS=$as_save_IFS
    2380 
    2381 if test $ac_prog_rejected = yes; then
    2382   # We found a bogon in the path, so make sure we never use it.
    2383   set dummy $ac_cv_prog_CC
    2384   shift
    2385   if test $# != 0; then
    2386     # We chose a different compiler from the bogus one.
    2387     # However, it has the same basename, so the bogon will be chosen
    2388     # first if we set CC to just the basename; use the full file name.
    2389     shift
    2390     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    2391   fi
    2392 fi
    2393 fi
    2394 fi
    2395 CC=$ac_cv_prog_CC
    2396 if test -n "$CC"; then
    2397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    2398 $as_echo "$CC" >&6; }
    2399 else
    2400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2401 $as_echo "no" >&6; }
    2402 fi
    2403 
    2404 
    2405 fi
    2406 if test -z "$CC"; then
    2407   if test -n "$ac_tool_prefix"; then
    2408   for ac_prog in cl.exe
    2409   do
    2410     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    2411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2413 $as_echo_n "checking for $ac_word... " >&6; }
    2414 if ${ac_cv_prog_CC+:} false; then :
    2415   $as_echo_n "(cached) " >&6
    2416 else
    2417   if test -n "$CC"; then
    2418   ac_cv_prog_CC="$CC" # Let the user override the test.
    2419 else
    2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2421 for as_dir in $PATH
    2422 do
    2423   IFS=$as_save_IFS
    2424   test -z "$as_dir" && as_dir=.
    2425     for ac_exec_ext in '' $ac_executable_extensions; do
    2426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2427     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    2428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2429     break 2
    2430   fi
    2431 done
    2432   done
    2433 IFS=$as_save_IFS
    2434 
    2435 fi
    2436 fi
    2437 CC=$ac_cv_prog_CC
    2438 if test -n "$CC"; then
    2439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    2440 $as_echo "$CC" >&6; }
    2441 else
    2442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2443 $as_echo "no" >&6; }
    2444 fi
    2445 
    2446 
    2447     test -n "$CC" && break
    2448   done
    2449 fi
    2450 if test -z "$CC"; then
    2451   ac_ct_CC=$CC
    2452   for ac_prog in cl.exe
    2453 do
    2454   # Extract the first word of "$ac_prog", so it can be a program name with args.
    2455 set dummy $ac_prog; ac_word=$2
    2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2457 $as_echo_n "checking for $ac_word... " >&6; }
    2458 if ${ac_cv_prog_ac_ct_CC+:} false; then :
    2459   $as_echo_n "(cached) " >&6
    2460 else
    2461   if test -n "$ac_ct_CC"; then
    2462   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2463 else
    2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2465 for as_dir in $PATH
    2466 do
    2467   IFS=$as_save_IFS
    2468   test -z "$as_dir" && as_dir=.
    2469     for ac_exec_ext in '' $ac_executable_extensions; do
    2470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2471     ac_cv_prog_ac_ct_CC="$ac_prog"
    2472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2473     break 2
    2474   fi
    2475 done
    2476   done
    2477 IFS=$as_save_IFS
    2478 
    2479 fi
    2480 fi
    2481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2482 if test -n "$ac_ct_CC"; then
    2483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    2484 $as_echo "$ac_ct_CC" >&6; }
    2485 else
    2486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2487 $as_echo "no" >&6; }
    2488 fi
    2489 
    2490 
    2491   test -n "$ac_ct_CC" && break
    2492 done
    2493 
    2494   if test "x$ac_ct_CC" = x; then
    2495     CC=""
    2496   else
    2497     case $cross_compiling:$ac_tool_warned in
    2498 yes:)
    2499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    2500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    2501 ac_tool_warned=yes ;;
    2502 esac
    2503     CC=$ac_ct_CC
    2504   fi
    2505 fi
    2506 
    2507 fi
    2508 
    2509 
    2510 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2512 as_fn_error $? "no acceptable C compiler found in \$PATH
    2513 See \`config.log' for more details" "$LINENO" 5; }
    2514 
    2515 # Provide some information about the compiler.
    2516 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
    2517 set X $ac_compile
    2518 ac_compiler=$2
    2519 for ac_option in --version -v -V -qversion; do
    2520   { { ac_try="$ac_compiler $ac_option >&5"
    2521 case "(($ac_try" in
    2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2523   *) ac_try_echo=$ac_try;;
    2524 esac
    2525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2526 $as_echo "$ac_try_echo"; } >&5
    2527   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    2528   ac_status=$?
    2529   if test -s conftest.err; then
    2530     sed '10a\
    2531 ... rest of stderr output deleted ...
    2532          10q' conftest.err >conftest.er1
    2533     cat conftest.er1 >&5
    2534   fi
    2535   rm -f conftest.er1 conftest.err
    2536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2537   test $ac_status = 0; }
    2538 done
    2539 
    2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2541 /* end confdefs.h.  */
    2542 
    2543 int
    2544 main ()
    2545 {
    2546 
    2547   ;
    2548   return 0;
    2549 }
    2550 _ACEOF
    2551 ac_clean_files_save=$ac_clean_files
    2552 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    2553 # Try to create an executable without -o first, disregard a.out.
    2554 # It will help us diagnose broken compilers, and finding out an intuition
    2555 # of exeext.
    2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
    2557 $as_echo_n "checking whether the C compiler works... " >&6; }
    2558 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    2559 
    2560 # The possible output files:
    2561 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
    2562 
    2563 ac_rmfiles=
    2564 for ac_file in $ac_files
    2565 do
    2566   case $ac_file in
    2567     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    2568     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
    2569   esac
    2570 done
    2571 rm -f $ac_rmfiles
    2572 
    2573 if { { ac_try="$ac_link_default"
    2574 case "(($ac_try" in
    2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2576   *) ac_try_echo=$ac_try;;
    2577 esac
    2578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2579 $as_echo "$ac_try_echo"; } >&5
    2580   (eval "$ac_link_default") 2>&5
    2581   ac_status=$?
    2582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2583   test $ac_status = 0; }; then :
    2584   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
    2585 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
    2586 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
    2587 # so that the user can short-circuit this test for compilers unknown to
    2588 # Autoconf.
    2589 for ac_file in $ac_files ''
    2590 do
    2591   test -f "$ac_file" || continue
    2592   case $ac_file in
    2593     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    2594         ;;
    2595     [ab].out )
    2596         # We found the default executable, but exeext='' is most
    2597         # certainly right.
    2598         break;;
    2599     *.* )
    2600         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
    2601         then :; else
    2602            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2603         fi
    2604         # We set ac_cv_exeext here because the later test for it is not
    2605         # safe: cross compilers may not add the suffix if given an `-o'
    2606         # argument, so we may need to know it at that point already.
    2607         # Even if this section looks crufty: it has the advantage of
    2608         # actually working.
    2609         break;;
    2610     * )
    2611         break;;
    2612   esac
    2613 done
    2614 test "$ac_cv_exeext" = no && ac_cv_exeext=
    2615 
    2616 else
    2617   ac_file=''
    2618 fi
    2619 if test -z "$ac_file"; then :
    2620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2621 $as_echo "no" >&6; }
    2622 $as_echo "$as_me: failed program was:" >&5
    2623 sed 's/^/| /' conftest.$ac_ext >&5
    2624 
    2625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2627 as_fn_error 77 "C compiler cannot create executables
    2628 See \`config.log' for more details" "$LINENO" 5; }
    2629 else
    2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    2631 $as_echo "yes" >&6; }
    2632 fi
    2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
    2634 $as_echo_n "checking for C compiler default output file name... " >&6; }
    2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
    2636 $as_echo "$ac_file" >&6; }
    2637 ac_exeext=$ac_cv_exeext
    2638 
    2639 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
    2640 ac_clean_files=$ac_clean_files_save
    2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
    2642 $as_echo_n "checking for suffix of executables... " >&6; }
    2643 if { { ac_try="$ac_link"
    2644 case "(($ac_try" in
    2645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2646   *) ac_try_echo=$ac_try;;
    2647 esac
    2648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2649 $as_echo "$ac_try_echo"; } >&5
    2650   (eval "$ac_link") 2>&5
    2651   ac_status=$?
    2652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2653   test $ac_status = 0; }; then :
    2654   # If both `conftest.exe' and `conftest' are `present' (well, observable)
    2655 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
    2656 # work properly (i.e., refer to `conftest.exe'), while it won't with
    2657 # `rm'.
    2658 for ac_file in conftest.exe conftest conftest.*; do
    2659   test -f "$ac_file" || continue
    2660   case $ac_file in
    2661     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    2662     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2663           break;;
    2664     * ) break;;
    2665   esac
    2666 done
    2667 else
    2668   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2670 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
    2671 See \`config.log' for more details" "$LINENO" 5; }
    2672 fi
    2673 rm -f conftest conftest$ac_cv_exeext
    2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
    2675 $as_echo "$ac_cv_exeext" >&6; }
    2676 
    2677 rm -f conftest.$ac_ext
    2678 EXEEXT=$ac_cv_exeext
    2679 ac_exeext=$EXEEXT
    2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2681 /* end confdefs.h.  */
    2682 #include <stdio.h>
    2683 int
    2684 main ()
    2685 {
    2686 FILE *f = fopen ("conftest.out", "w");
    2687  return ferror (f) || fclose (f) != 0;
    2688 
    2689   ;
    2690   return 0;
    2691 }
    2692 _ACEOF
    2693 ac_clean_files="$ac_clean_files conftest.out"
    2694 # Check that the compiler produces executables we can run.  If not, either
    2695 # the compiler is broken, or we cross compile.
    2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
    2697 $as_echo_n "checking whether we are cross compiling... " >&6; }
    2698 if test "$cross_compiling" != yes; then
    2699   { { ac_try="$ac_link"
    2700 case "(($ac_try" in
    2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2702   *) ac_try_echo=$ac_try;;
    2703 esac
    2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2705 $as_echo "$ac_try_echo"; } >&5
    2706   (eval "$ac_link") 2>&5
    2707   ac_status=$?
    2708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2709   test $ac_status = 0; }
    2710   if { ac_try='./conftest$ac_cv_exeext'
    2711   { { case "(($ac_try" in
    2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2713   *) ac_try_echo=$ac_try;;
    2714 esac
    2715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2716 $as_echo "$ac_try_echo"; } >&5
    2717   (eval "$ac_try") 2>&5
    2718   ac_status=$?
    2719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2720   test $ac_status = 0; }; }; then
    2721     cross_compiling=no
    2722   else
    2723     if test "$cross_compiling" = maybe; then
    2724         cross_compiling=yes
    2725     else
    2726         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2728 as_fn_error $? "cannot run C compiled programs.
    2729 If you meant to cross compile, use \`--host'.
    2730 See \`config.log' for more details" "$LINENO" 5; }
    2731     fi
    2732   fi
    2733 fi
    2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
    2735 $as_echo "$cross_compiling" >&6; }
    2736 
    2737 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
    2738 ac_clean_files=$ac_clean_files_save
    2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
    2740 $as_echo_n "checking for suffix of object files... " >&6; }
    2741 if ${ac_cv_objext+:} false; then :
    2742   $as_echo_n "(cached) " >&6
    2743 else
    2744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2745 /* end confdefs.h.  */
    2746 
    2747 int
    2748 main ()
    2749 {
    2750 
    2751   ;
    2752   return 0;
    2753 }
    2754 _ACEOF
    2755 rm -f conftest.o conftest.obj
    2756 if { { ac_try="$ac_compile"
    2757 case "(($ac_try" in
    2758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2759   *) ac_try_echo=$ac_try;;
    2760 esac
    2761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2762 $as_echo "$ac_try_echo"; } >&5
    2763   (eval "$ac_compile") 2>&5
    2764   ac_status=$?
    2765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2766   test $ac_status = 0; }; then :
    2767   for ac_file in conftest.o conftest.obj conftest.*; do
    2768   test -f "$ac_file" || continue;
    2769   case $ac_file in
    2770     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    2771     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    2772        break;;
    2773   esac
    2774 done
    2775 else
    2776   $as_echo "$as_me: failed program was:" >&5
    2777 sed 's/^/| /' conftest.$ac_ext >&5
    2778 
    2779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2781 as_fn_error $? "cannot compute suffix of object files: cannot compile
    2782 See \`config.log' for more details" "$LINENO" 5; }
    2783 fi
    2784 rm -f conftest.$ac_cv_objext conftest.$ac_ext
    2785 fi
    2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
    2787 $as_echo "$ac_cv_objext" >&6; }
    2788 OBJEXT=$ac_cv_objext
    2789 ac_objext=$OBJEXT
    2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
    2791 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    2792 if ${ac_cv_c_compiler_gnu+:} false; then :
    2793   $as_echo_n "(cached) " >&6
    2794 else
    2795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2796 /* end confdefs.h.  */
    2797 
    2798 int
    2799 main ()
    2800 {
    2801 #ifndef __GNUC__
    2802        choke me
    2803 #endif
    2804 
    2805   ;
    2806   return 0;
    2807 }
    2808 _ACEOF
    2809 if ac_fn_c_try_compile "$LINENO"; then :
    2810   ac_compiler_gnu=yes
    2811 else
    2812   ac_compiler_gnu=no
    2813 fi
    2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2815 ac_cv_c_compiler_gnu=$ac_compiler_gnu
    2816 
    2817 fi
    2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
    2819 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
    2820 if test $ac_compiler_gnu = yes; then
    2821   GCC=yes
    2822 else
    2823   GCC=
    2824 fi
    2825 ac_test_CFLAGS=${CFLAGS+set}
    2826 ac_save_CFLAGS=$CFLAGS
    2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
    2828 $as_echo_n "checking whether $CC accepts -g... " >&6; }
    2829 if ${ac_cv_prog_cc_g+:} false; then :
    2830   $as_echo_n "(cached) " >&6
    2831 else
    2832   ac_save_c_werror_flag=$ac_c_werror_flag
    2833    ac_c_werror_flag=yes
    2834    ac_cv_prog_cc_g=no
    2835    CFLAGS="-g"
    2836    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2837 /* end confdefs.h.  */
    2838 
    2839 int
    2840 main ()
    2841 {
    2842 
    2843   ;
    2844   return 0;
    2845 }
    2846 _ACEOF
    2847 if ac_fn_c_try_compile "$LINENO"; then :
    2848   ac_cv_prog_cc_g=yes
    2849 else
    2850   CFLAGS=""
    2851       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2852 /* end confdefs.h.  */
    2853 
    2854 int
    2855 main ()
    2856 {
    2857 
    2858   ;
    2859   return 0;
    2860 }
    2861 _ACEOF
    2862 if ac_fn_c_try_compile "$LINENO"; then :
    2863 
    2864 else
    2865   ac_c_werror_flag=$ac_save_c_werror_flag
    2866          CFLAGS="-g"
    2867          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2868 /* end confdefs.h.  */
    2869 
    2870 int
    2871 main ()
    2872 {
    2873 
    2874   ;
    2875   return 0;
    2876 }
    2877 _ACEOF
    2878 if ac_fn_c_try_compile "$LINENO"; then :
    2879   ac_cv_prog_cc_g=yes
    2880 fi
    2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2882 fi
    2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2884 fi
    2885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2886    ac_c_werror_flag=$ac_save_c_werror_flag
    2887 fi
    2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
    2889 $as_echo "$ac_cv_prog_cc_g" >&6; }
    2890 if test "$ac_test_CFLAGS" = set; then
    2891   CFLAGS=$ac_save_CFLAGS
    2892 elif test $ac_cv_prog_cc_g = yes; then
    2893   if test "$GCC" = yes; then
    2894     CFLAGS="-g -O2"
    2895   else
    2896     CFLAGS="-g"
    2897   fi
    2898 else
    2899   if test "$GCC" = yes; then
    2900     CFLAGS="-O2"
    2901   else
    2902     CFLAGS=
    2903   fi
    2904 fi
    2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
    2906 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    2907 if ${ac_cv_prog_cc_c89+:} false; then :
    2908   $as_echo_n "(cached) " >&6
    2909 else
    2910   ac_cv_prog_cc_c89=no
    2911 ac_save_CC=$CC
    2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2913 /* end confdefs.h.  */
    2914 #include <stdarg.h>
    2915 #include <stdio.h>
    2916 struct stat;
    2917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    2918 struct buf { int x; };
    2919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
    2920 static char *e (p, i)
    2921      char **p;
    2922      int i;
    2923 {
    2924   return p[i];
    2925 }
    2926 static char *f (char * (*g) (char **, int), char **p, ...)
    2927 {
    2928   char *s;
    2929   va_list v;
    2930   va_start (v,p);
    2931   s = g (p, va_arg (v,int));
    2932   va_end (v);
    2933   return s;
    2934 }
    2935 
    2936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
    2937    function prototypes and stuff, but not '\xHH' hex character constants.
    2938    These don't provoke an error unfortunately, instead are silently treated
    2939    as 'x'.  The following induces an error, until -std is added to get
    2940    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    2941    array size at least.  It's necessary to write '\x00'==0 to get something
    2942    that's true only with -std.  */
    2943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
    2944 
    2945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
    2946    inside strings and character constants.  */
    2947 #define FOO(x) 'x'
    2948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    2949 
    2950 int test (int i, double x);
    2951 struct s1 {int (*f) (int a);};
    2952 struct s2 {int (*f) (double a);};
    2953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    2954 int argc;
    2955 char **argv;
    2956 int
    2957 main ()
    2958 {
    2959 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    2960   ;
    2961   return 0;
    2962 }
    2963 _ACEOF
    2964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
    2965         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    2966 do
    2967   CC="$ac_save_CC $ac_arg"
    2968   if ac_fn_c_try_compile "$LINENO"; then :
    2969   ac_cv_prog_cc_c89=$ac_arg
    2970 fi
    2971 rm -f core conftest.err conftest.$ac_objext
    2972   test "x$ac_cv_prog_cc_c89" != "xno" && break
    2973 done
    2974 rm -f conftest.$ac_ext
    2975 CC=$ac_save_CC
    2976 
    2977 fi
    2978 # AC_CACHE_VAL
    2979 case "x$ac_cv_prog_cc_c89" in
    2980   x)
    2981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
    2982 $as_echo "none needed" >&6; } ;;
    2983   xno)
    2984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
    2985 $as_echo "unsupported" >&6; } ;;
    2986   *)
    2987     CC="$CC $ac_cv_prog_cc_c89"
    2988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
    2989 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    2990 esac
    2991 if test "x$ac_cv_prog_cc_c89" != xno; then :
    2992 
    2993 fi
    2994 
    2995 ac_ext=c
    2996 ac_cpp='$CPP $CPPFLAGS'
    2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3000 
    3001 
    3002 #SC_CONFIG_CFLAGS
    3003 #SC_ENABLE_SHARED
    3004 
    3005 gui_with_tcl=""
    3006 
    3007 make_command=""
    3008 for m in "$MAKE" make gmake gnumake ; do
    3009   if test "x${m}" != "x" ; then
    3010     if  ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then
    3011       make_command=$m; break;
    3012     fi
    3013   fi
    3014 done
    3015 if test "x${make_command}" = "x" ; then
    3016   as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5
    3017 fi
    3018 MAKE=${make_command}
    3019 
    3020 
    3021 # Check whether --enable-gui was given.
    3022 if test "${enable_gui+set}" = set; then :
    3023   enableval=$enable_gui;
    3024 else
    3025   enable_gui=yes
    3026 fi
    3027 
    3028 
    3029 ENABLE_GUI=
    3030 if test "$enable_gui" != "no" ; then
    3031     ENABLE_GUI="yes"
    3032 fi
    3033 
    3034 
    3035 with_tclsh="yes"
    3036 
    3037 # Check whether --with-tclsh was given.
    3038 if test "${with_tclsh+set}" = set; then :
    3039   withval=$with_tclsh;
    3040 else
    3041   with_tclsh=yes
    3042 fi
    3043 
    3044 
    3045 TCLSH=
    3046 # -----------------------------------------------------------------------
    3047 #
    3048 #       Find the Tcl build configuration file "tclConfig.sh"
    3049 #
    3050 # -----------------------------------------------------------------------
    3051 
    3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
    3053 $as_echo_n "checking for tclConfig.sh... " >&6; }
    3054 tcl_config_sh=""
    3055 if test "x$gui_with_tcl" != "x" ; then
    3056 
    3057   # Verify that a tclConfig.sh file exists in the directory specified
    3058   # by --with-tcl.
    3059 
    3060   for dir in \
    3061    $gui_with_tcl
    3062   do
    3063     if test -r "$dir/tclConfig.sh" ; then
    3064       tcl_config_sh="$dir/tclConfig.sh"
    3065       break
    3066     elif test -r "$dir/lib/tclConfig.sh" ; then
    3067       tcl_config_sh="$dir/lib/tclConfig.sh"
    3068       break
    3069     fi
    3070   done
    3071 else
    3072 
    3073   # Otherwise, search for Tcl configuration file.
    3074 
    3075   #  1. Search previously named locations.
    3076 
    3077   for dir in \
    3078    $prefix \
    3079    $exec_prefix \
    3080    $gui_cv_tcl_lib
    3081   do
    3082     if test -r "$dir/tclConfig.sh" ; then
    3083       tcl_config_sh="$dir/tclConfig.sh"
    3084       break
    3085     elif test -r "$dir/lib/tclConfig.sh" ; then
    3086       tcl_config_sh="$dir/lib/tclConfig.sh"
    3087       break
    3088     fi
    3089   done
    3090 fi
    3091 
    3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5
    3093 $as_echo "${tcl_config_sh}" >&6; }
    3094 
    3095 if test "x$tcl_config_sh" = "x" ; then
    3096   echo "can't find Tcl configuration script \"tclConfig.sh\""
    3097   exit 1
    3098 fi
    3099 . ${tcl_config_sh}
    3100 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    3101 
    3102 case $target in
    3103   *-*-cygwin*|*-*-mingw*)
    3104     gui_platform="win"
    3105     TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}
    3106     ;;
    3107   *-*-darwin*)
    3108     gui_platform="macosx"
    3109     TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}
    3110     ;;
    3111   *)
    3112     blt_platform="unix"
    3113     TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}
    3114     ;;
    3115 esac
    3116 
     1892
     1893if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
     1894  . ${exec_prefix}/lib/tclConfig.sh
     1895fi
     1896if test -f "${exec_prefix}/lib/tkConfig.sh" ; then
     1897  . ${exec_prefix}/lib/tkConfig.sh
     1898fi
     1899
     1900TCLSH=${bindir}/tclsh${TCL_VERSION}
    31171901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH}" >&5
    31181902$as_echo "${TCLSH}" >&6; }
    31191903
    31201904
    3121 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
    3122   . ${exec_prefix}/lib/tclConfig.sh
    3123 fi
    3124 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then
    3125   . ${exec_prefix}/lib/tkConfig.sh
    3126 fi
    3127 
    3128 
    3129 
    3130 
    3131 
    3132 
    3133 
    3134 
    3135 
    3136 
    3137 
    3138 
    3139 
    3140 
    3141 
    3142 
    3143 ac_config_files="$ac_config_files Makefile pkgIndex.tcl apps/Makefile apps/about apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff scripts/Makefile src/Makefile"
     1905ac_config_files="$ac_config_files Makefile pkgIndex.tcl scripts/Makefile"
    31441906
    31451907cat >confcache <<\_ACEOF
     
    38522614    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    38532615    "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
    3854     "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
    3855     "apps/about") CONFIG_FILES="$CONFIG_FILES apps/about" ;;
    3856     "apps/encodedata") CONFIG_FILES="$CONFIG_FILES apps/encodedata" ;;
    3857     "apps/rappture") CONFIG_FILES="$CONFIG_FILES apps/rappture" ;;
    3858     "apps/rappture-csh.env") CONFIG_FILES="$CONFIG_FILES apps/rappture-csh.env" ;;
    3859     "apps/rappture.env") CONFIG_FILES="$CONFIG_FILES apps/rappture.env" ;;
    3860     "apps/rappture.use") CONFIG_FILES="$CONFIG_FILES apps/rappture.use" ;;
    3861     "apps/rerun") CONFIG_FILES="$CONFIG_FILES apps/rerun" ;;
    3862     "apps/simsim") CONFIG_FILES="$CONFIG_FILES apps/simsim" ;;
    3863     "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;;
    38642616    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
    3865     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    38662617
    38672618  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Note: See TracChangeset for help on using the changeset viewer.