Changeset 4909
- Timestamp:
- Dec 31, 2014 10:05:58 AM (6 years ago)
- Location:
- branches/r9
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/r9/Makefile.in
r4872 r4909 17 17 runtime = $(shell cd ../rappture/runtime; pwd) 18 18 TAG = branches/blt4 19 VTK_VERSION = 6.020 TCL_VERSION = @TCL_VERSION@21 TK_VERSION = @TK_VERSION@22 19 23 20 # ------------------------------------------------------------------------ … … 54 51 MKDIR_P = @MKDIR_P@ 55 52 CP = /bin/cp 56 HAVE_VTK = @HAVE_VTK@ 53 54 WITH_R = @WITH_R@ 55 WITH_JAVA = @WITH_JAVA@ 56 WITH_MATLAB = @WITH_MATLAB@ 57 WITH_MKOCTFILE2 = @WITH_MKOCTFILE2@ 58 WITH_MKOCTFILE3 = @WITH_MKOCTFILE3@ 59 WITH_OCTAVE = @WITH_OCTAVE@ 60 WITH_PERL = @WITH_PERL@ 61 WITH_PYTHON = @WITH_PYTHON@ 62 WITH_RUBY = @WITH_RUBY@ 63 WITH_RUBY_SITELIBDIR = @WITH_RUBY_SITELIBDIR@ 64 WITH_TCL = @WITH_TCL@ 65 WITH_VTK = @WITH_VTK@ 57 66 58 67 common_flags = --prefix=$(prefix) --exec_prefix=$(exec_prefix) … … 112 121 tkimg = tkimg1.4 113 122 tls = tls1.6 123 VTK_VERSION = 6.0 114 124 vtk = vtk-6.0.0 115 125 zlib = zlib … … 126 136 $(tls) $(vtk) $(zlib) $(apps) 127 137 128 ifneq ( "$(HAVE_VTK)",)138 ifneq ($(WITH_VTK), "no") 129 139 vtk_timestamp = $(vtk)/timestamp 130 140 cmake_timestamp = $(cmake)/timestamp … … 331 341 332 342 examples_flags = \ 333 --with-tclsh="$(bindir)/tclsh 8.4" \343 --with-tclsh="$(bindir)/tclsh" \ 334 344 --enable-shared \ 335 345 $(common_flags) … … 754 764 lang_flags = \ 755 765 --enable-shared \ 756 $(common_flags) 766 $(common_flags) \ 767 --with-R=${WITH_R} \ 768 --with-java=${WITH_JAVA} \ 769 --with-matlab=${WITH_MATLAB} \ 770 --with-mkoctfile2=${WITH_MKOCTFILE2} \ 771 --with-mkoctfile3=${WITH_MKOCTFILE3} \ 772 --with-octave=${WITH_OCTAVE} \ 773 --with-perl=${WITH_PERL} \ 774 --with-python=${WITH_PYTHON} \ 775 --with-ruby=${WITH_RUBY} \ 776 --with-ruby_sitelibdir=${WITH_RUBY_SITELIBDIR} 757 777 758 778 lang: $(lang)/timestamp … … 837 857 838 858 define clean_lib 839 $(RM) -r $(lib) 859 $(MAKE) -C $(lib) clean 860 $(RM) $(lib)/timestamp 840 861 endef 841 862 define fetch_lib 842 863 endef 843 864 define configure_lib 844 $(MKDIR_P) $(lib)845 cd $(lib); $(srcdir)/lib/configure $(lib_flags)846 865 endef 847 866 define build_lib 848 $(MAKE) 867 $(MAKE) -C $(lib) all 849 868 endef 850 869 define install_lib … … 978 997 + $(touch_packages) 979 998 980 981 999 # ------------------------------------------------------------------------- 982 1000 # SHAPE … … 1147 1165 $(MAKE) -C $(tcl) install 1148 1166 $(RM) $(bindir)/tclsh 1149 ( cd $(bindir); $(LN_S) tclsh$(TCL_VERSION)tclsh)1167 (. ${libdir}/tclConfig.sh ; cd $(bindir); $(LN_S) tclsh$${TCL_VERSION} tclsh) 1150 1168 endef 1151 1169 define touch_tcl … … 1324 1342 $(MAKE) -C $(tk) install 1325 1343 $(RM) $(bindir)/wish 1326 ( cd $(bindir); $(LN_S) wish$(TK_VERSION)wish)1344 (. $(libdir)/tkConfig.sh ; cd $(bindir); $(LN_S) wish$${TK_VERSION} wish) 1327 1345 endef 1328 1346 define touch_tk … … 1459 1477 1460 1478 video_flags = \ 1461 --with-tclsh="$(bindir)/tclsh 8.4" \1479 --with-tclsh="$(bindir)/tclsh" \ 1462 1480 --enable-shared \ 1463 1481 $(common_flags) … … 1633 1651 1634 1652 TRASH = \ 1653 ./bin/bltsh30 \ 1654 ./bin/bltwish30 \ 1635 1655 ./bin/dtplite \ 1636 1656 ./bin/flowvis-test \ … … 1648 1668 ./bin/vtkviewer-test \ 1649 1669 ./bin/vtkvolume-test \ 1650 ./bin/bltsh30 \1651 ./bin/bltwish30 \1652 1670 ./lib/bltConfig.sh \ 1653 1671 ./lib/itclConfig.sh \ -
branches/r9/aclocal.m4
r4870 r4909 1 #builtin(include,./cf/tcl.m4)1 builtin(include,./cf/tcl.m4) -
branches/r9/configure
r4872 r4909 624 624 ac_subst_vars='LTLIBOBJS 625 625 LIBOBJS 626 HAVE_VTK 626 WITH_TCL 627 WITH_RUBY_SITELIBDIR 628 WITH_RUBY 629 WITH_PYTHON 630 WITH_PERL 631 WITH_OCTAVE 632 WITH_MKOCTFILE3 633 WITH_MKOCTFILE2 634 WITH_MATLAB 635 WITH_JAVA 636 WITH_R 637 WITH_VTK 627 638 RAPPTURE_RELEASE_SERIAL 628 639 RAPPTURE_MINOR_VERSION … … 648 659 TCL_LIB_SPEC 649 660 TCL_INC_SPEC 650 STLIB_LD651 661 SIZEOF_VOID_P 652 662 SIZEOF_LONG_LONG 653 663 SIZEOF_LONG 654 664 SIZEOF_INT 655 SHLIB_SUFFIX656 665 SHLIB_LDFLAGS 657 SHLIB_LD658 SHLIB_CFLAGS659 666 RP_BASE 660 667 SVN_VERSION … … 667 674 ENABLE_GUI 668 675 ENABLE_LANG 676 LDFLAGS_DEFAULT 677 CFLAGS_DEFAULT 678 INSTALL_STUB_LIB 679 INSTALL_LIB 680 MAKE_STUB_LIB 681 MAKE_LIB 682 SHLIB_SUFFIX 683 SHLIB_CFLAGS 684 SHLIB_LD_LIBS 685 TK_SHLIB_LD_EXTRAS 686 TCL_SHLIB_LD_EXTRAS 687 SHLIB_LD 688 STLIB_LD 689 LD_SEARCH_FLAGS 690 CC_SEARCH_FLAGS 691 LDFLAGS_OPTIMIZE 692 LDFLAGS_DEBUG 693 CFLAGS_WARNING 669 694 CFLAGS_OPTIMIZE 670 695 CFLAGS_DEBUG 696 PLAT_SRCS 697 PLAT_OBJS 698 DL_OBJS 699 DL_LIBS 700 AR 671 701 CXXCPP 672 702 XMKMF … … 735 765 ac_user_opts=' 736 766 enable_option_checking 737 with_x 767 with_R 768 with_java 769 with_matlab 770 with_mkoctfile2 771 with_mkoctfile3 772 with_octave 773 with_perl 774 with_python 775 with_ruby 776 with_ruby_sitelibdir 777 with_tcl 738 778 with_install 739 with_statsdir740 enable_lang741 enable_gui742 with_ffmpeg743 779 with_vtk 744 780 enable_vtkdicom 781 with_x 782 enable_64bit 783 enable_64bit_vis 784 enable_corefoundation 785 enable_load 786 enable_symbols 745 787 ' 746 788 ac_precious_vars='build_alias … … 1373 1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1374 1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1375 --enable-lang build language bindings [default=yes]1376 --enable-gui build code related to the graphical user interface1377 [default=yes]1378 1417 --enable-vtkdicom Use vtkDICOM package [default=no] 1418 --enable-64bit enable 64bit support (where applicable) 1419 --enable-64bit-vis enable 64bit Sparc VIS support 1420 --enable-corefoundation use CoreFoundation API --enable-corefoundation 1421 --disable-load disallow dynamic loading and "load" command 1422 --enable-symbols build with debugging symbols --disable-symbols 1379 1423 1380 1424 Optional Packages: 1381 1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1382 1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1427 --with-R=DIR location of R interpreter [default=yes] 1428 --with-java=DIR location of java [default=yes] 1429 --with-matlab=DIR location of matlab and mex compiler [default=yes] 1430 --with-mkoctfile2=DIR path of octave compiler `mkoctfile' [default=no] 1431 --with-mkoctfile3=DIR path of octave compiler `mkoctfile' [default=no] 1432 --with-octave=DIR path of default octave compiler `mkoctfile' 1433 [default=yes] 1434 --with-perl=DIR location of perl library [default=yes] 1435 --with-python=DIR location of python library [default=yes] 1436 --with-ruby=PATH path to the ruby interpreter [[ruby]] 1437 --with-ruby-sitelibdir=PATH 1438 path to install ruby scripts [[auto-detect]] 1439 --with-tcl=DIR location of tcl library [default=yes] 1440 --with-install=DIR location of installation [default=yes] 1441 --with-vtk Build VTK for rappture 1383 1442 --with-x use the X Window System 1384 --with-install=DIR location of installation [default=yes]1385 --with-statsdir=DIR Write statistics in DIR1386 --with-vtk Build VTK for rappture1387 --with-ffmpeg=DIR location of ffmpeg [default=yes]1388 --with-vtk=version VTK library version [default=6.1]1389 1443 1390 1444 Some influential environment variables: … … 1873 1927 } # ac_fn_cxx_try_link 1874 1928 1929 # ac_fn_cxx_try_run LINENO 1930 # ------------------------ 1931 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1932 # that executables *can* be run. 1933 ac_fn_cxx_try_run () 1934 { 1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1936 if { { ac_try="$ac_link" 1937 case "(($ac_try" in 1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1939 *) ac_try_echo=$ac_try;; 1940 esac 1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1942 $as_echo "$ac_try_echo"; } >&5 1943 (eval "$ac_link") 2>&5 1944 ac_status=$? 1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1946 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1947 { { case "(($ac_try" in 1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1949 *) ac_try_echo=$ac_try;; 1950 esac 1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1952 $as_echo "$ac_try_echo"; } >&5 1953 (eval "$ac_try") 2>&5 1954 ac_status=$? 1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1956 test $ac_status = 0; }; }; then : 1957 ac_retval=0 1958 else 1959 $as_echo "$as_me: program exited with status $ac_status" >&5 1960 $as_echo "$as_me: failed program was:" >&5 1961 sed 's/^/| /' conftest.$ac_ext >&5 1962 1963 ac_retval=$ac_status 1964 fi 1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1967 as_fn_set_status $ac_retval 1968 1969 } # ac_fn_cxx_try_run 1970 1971 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 1972 # --------------------------------------------------------- 1973 # Tests whether HEADER exists and can be compiled using the include files in 1974 # INCLUDES, setting the cache variable VAR accordingly. 1975 ac_fn_cxx_check_header_compile () 1976 { 1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1979 $as_echo_n "checking for $2... " >&6; } 1980 if eval \${$3+:} false; then : 1981 $as_echo_n "(cached) " >&6 1982 else 1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1984 /* end confdefs.h. */ 1985 $4 1986 #include <$2> 1987 _ACEOF 1988 if ac_fn_cxx_try_compile "$LINENO"; then : 1989 eval "$3=yes" 1990 else 1991 eval "$3=no" 1992 fi 1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1994 fi 1995 eval ac_res=\$$3 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1997 $as_echo "$ac_res" >&6; } 1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1999 2000 } # ac_fn_cxx_check_header_compile 2001 2002 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2003 # ---------------------------------------------- 2004 # Tries to find the compile-time value of EXPR in a program that includes 2005 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2006 # computed 2007 ac_fn_cxx_compute_int () 2008 { 2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2010 if test "$cross_compiling" = yes; then 2011 # Depending upon the size, compute the lo and hi bounds. 2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2013 /* end confdefs.h. */ 2014 $4 2015 int 2016 main () 2017 { 2018 static int test_array [1 - 2 * !(($2) >= 0)]; 2019 test_array [0] = 0; 2020 return test_array [0]; 2021 2022 ; 2023 return 0; 2024 } 2025 _ACEOF 2026 if ac_fn_cxx_try_compile "$LINENO"; then : 2027 ac_lo=0 ac_mid=0 2028 while :; do 2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2030 /* end confdefs.h. */ 2031 $4 2032 int 2033 main () 2034 { 2035 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2036 test_array [0] = 0; 2037 return test_array [0]; 2038 2039 ; 2040 return 0; 2041 } 2042 _ACEOF 2043 if ac_fn_cxx_try_compile "$LINENO"; then : 2044 ac_hi=$ac_mid; break 2045 else 2046 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2047 if test $ac_lo -le $ac_mid; then 2048 ac_lo= ac_hi= 2049 break 2050 fi 2051 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2052 fi 2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2054 done 2055 else 2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2057 /* end confdefs.h. */ 2058 $4 2059 int 2060 main () 2061 { 2062 static int test_array [1 - 2 * !(($2) < 0)]; 2063 test_array [0] = 0; 2064 return test_array [0]; 2065 2066 ; 2067 return 0; 2068 } 2069 _ACEOF 2070 if ac_fn_cxx_try_compile "$LINENO"; then : 2071 ac_hi=-1 ac_mid=-1 2072 while :; do 2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2074 /* end confdefs.h. */ 2075 $4 2076 int 2077 main () 2078 { 2079 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2080 test_array [0] = 0; 2081 return test_array [0]; 2082 2083 ; 2084 return 0; 2085 } 2086 _ACEOF 2087 if ac_fn_cxx_try_compile "$LINENO"; then : 2088 ac_lo=$ac_mid; break 2089 else 2090 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2091 if test $ac_mid -le $ac_hi; then 2092 ac_lo= ac_hi= 2093 break 2094 fi 2095 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2096 fi 2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2098 done 2099 else 2100 ac_lo= ac_hi= 2101 fi 2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2103 fi 2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2105 # Binary search between lo and hi bounds. 2106 while test "x$ac_lo" != "x$ac_hi"; do 2107 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109 /* end confdefs.h. */ 2110 $4 2111 int 2112 main () 2113 { 2114 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2115 test_array [0] = 0; 2116 return test_array [0]; 2117 2118 ; 2119 return 0; 2120 } 2121 _ACEOF 2122 if ac_fn_cxx_try_compile "$LINENO"; then : 2123 ac_hi=$ac_mid 2124 else 2125 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2126 fi 2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2128 done 2129 case $ac_lo in #(( 2130 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2131 '') ac_retval=1 ;; 2132 esac 2133 else 2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135 /* end confdefs.h. */ 2136 $4 2137 static long int longval () { return $2; } 2138 static unsigned long int ulongval () { return $2; } 2139 #include <stdio.h> 2140 #include <stdlib.h> 2141 int 2142 main () 2143 { 2144 2145 FILE *f = fopen ("conftest.val", "w"); 2146 if (! f) 2147 return 1; 2148 if (($2) < 0) 2149 { 2150 long int i = longval (); 2151 if (i != ($2)) 2152 return 1; 2153 fprintf (f, "%ld", i); 2154 } 2155 else 2156 { 2157 unsigned long int i = ulongval (); 2158 if (i != ($2)) 2159 return 1; 2160 fprintf (f, "%lu", i); 2161 } 2162 /* Do not output a trailing newline, as this causes \r\n confusion 2163 on some platforms. */ 2164 return ferror (f) || fclose (f) != 0; 2165 2166 ; 2167 return 0; 2168 } 2169 _ACEOF 2170 if ac_fn_cxx_try_run "$LINENO"; then : 2171 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2172 else 2173 ac_retval=1 2174 fi 2175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2176 conftest.$ac_objext conftest.beam conftest.$ac_ext 2177 rm -f conftest.val 2178 2179 fi 2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2181 as_fn_set_status $ac_retval 2182 2183 } # ac_fn_cxx_compute_int 2184 1875 2185 # ac_fn_cxx_check_func LINENO FUNC VAR 1876 2186 # ------------------------------------ … … 2030 2340 2031 2341 } # ac_fn_cxx_check_header_mongrel 2032 2033 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES2034 # ---------------------------------------------------------2035 # Tests whether HEADER exists and can be compiled using the include files in2036 # INCLUDES, setting the cache variable VAR accordingly.2037 ac_fn_cxx_check_header_compile ()2038 {2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&52041 $as_echo_n "checking for $2... " >&6; }2042 if eval \${$3+:} false; then :2043 $as_echo_n "(cached) " >&62044 else2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2046 /* end confdefs.h. */2047 $42048 #include <$2>2049 _ACEOF2050 if ac_fn_cxx_try_compile "$LINENO"; then :2051 eval "$3=yes"2052 else2053 eval "$3=no"2054 fi2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2056 fi2057 eval ac_res=\$$32058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&52059 $as_echo "$ac_res" >&6; }2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2061 2062 } # ac_fn_cxx_check_header_compile2063 2064 # ac_fn_cxx_try_run LINENO2065 # ------------------------2066 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes2067 # that executables *can* be run.2068 ac_fn_cxx_try_run ()2069 {2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack2071 if { { ac_try="$ac_link"2072 case "(($ac_try" in2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2074 *) ac_try_echo=$ac_try;;2075 esac2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""2077 $as_echo "$ac_try_echo"; } >&52078 (eval "$ac_link") 2>&52079 ac_status=$?2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&52081 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'2082 { { case "(($ac_try" in2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2084 *) ac_try_echo=$ac_try;;2085 esac2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""2087 $as_echo "$ac_try_echo"; } >&52088 (eval "$ac_try") 2>&52089 ac_status=$?2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&52091 test $ac_status = 0; }; }; then :2092 ac_retval=02093 else2094 $as_echo "$as_me: program exited with status $ac_status" >&52095 $as_echo "$as_me: failed program was:" >&52096 sed 's/^/| /' conftest.$ac_ext >&52097 2098 ac_retval=$ac_status2099 fi2100 rm -rf conftest.dSYM conftest_ipa8_conftest.oo2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2102 as_fn_set_status $ac_retval2103 2104 } # ac_fn_cxx_try_run2105 2106 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES2107 # ----------------------------------------------2108 # Tries to find the compile-time value of EXPR in a program that includes2109 # INCLUDES, setting VAR accordingly. Returns whether the value could be2110 # computed2111 ac_fn_cxx_compute_int ()2112 {2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack2114 if test "$cross_compiling" = yes; then2115 # Depending upon the size, compute the lo and hi bounds.2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2117 /* end confdefs.h. */2118 $42119 int2120 main ()2121 {2122 static int test_array [1 - 2 * !(($2) >= 0)];2123 test_array [0] = 0;2124 return test_array [0];2125 2126 ;2127 return 0;2128 }2129 _ACEOF2130 if ac_fn_cxx_try_compile "$LINENO"; then :2131 ac_lo=0 ac_mid=02132 while :; do2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2134 /* end confdefs.h. */2135 $42136 int2137 main ()2138 {2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];2140 test_array [0] = 0;2141 return test_array [0];2142 2143 ;2144 return 0;2145 }2146 _ACEOF2147 if ac_fn_cxx_try_compile "$LINENO"; then :2148 ac_hi=$ac_mid; break2149 else2150 as_fn_arith $ac_mid + 1 && ac_lo=$as_val2151 if test $ac_lo -le $ac_mid; then2152 ac_lo= ac_hi=2153 break2154 fi2155 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val2156 fi2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2158 done2159 else2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2161 /* end confdefs.h. */2162 $42163 int2164 main ()2165 {2166 static int test_array [1 - 2 * !(($2) < 0)];2167 test_array [0] = 0;2168 return test_array [0];2169 2170 ;2171 return 0;2172 }2173 _ACEOF2174 if ac_fn_cxx_try_compile "$LINENO"; then :2175 ac_hi=-1 ac_mid=-12176 while :; do2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2178 /* end confdefs.h. */2179 $42180 int2181 main ()2182 {2183 static int test_array [1 - 2 * !(($2) >= $ac_mid)];2184 test_array [0] = 0;2185 return test_array [0];2186 2187 ;2188 return 0;2189 }2190 _ACEOF2191 if ac_fn_cxx_try_compile "$LINENO"; then :2192 ac_lo=$ac_mid; break2193 else2194 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val2195 if test $ac_mid -le $ac_hi; then2196 ac_lo= ac_hi=2197 break2198 fi2199 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val2200 fi2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2202 done2203 else2204 ac_lo= ac_hi=2205 fi2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2207 fi2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2209 # Binary search between lo and hi bounds.2210 while test "x$ac_lo" != "x$ac_hi"; do2211 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2213 /* end confdefs.h. */2214 $42215 int2216 main ()2217 {2218 static int test_array [1 - 2 * !(($2) <= $ac_mid)];2219 test_array [0] = 0;2220 return test_array [0];2221 2222 ;2223 return 0;2224 }2225 _ACEOF2226 if ac_fn_cxx_try_compile "$LINENO"; then :2227 ac_hi=$ac_mid2228 else2229 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val2230 fi2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2232 done2233 case $ac_lo in #((2234 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;2235 '') ac_retval=1 ;;2236 esac2237 else2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2239 /* end confdefs.h. */2240 $42241 static long int longval () { return $2; }2242 static unsigned long int ulongval () { return $2; }2243 #include <stdio.h>2244 #include <stdlib.h>2245 int2246 main ()2247 {2248 2249 FILE *f = fopen ("conftest.val", "w");2250 if (! f)2251 return 1;2252 if (($2) < 0)2253 {2254 long int i = longval ();2255 if (i != ($2))2256 return 1;2257 fprintf (f, "%ld", i);2258 }2259 else2260 {2261 unsigned long int i = ulongval ();2262 if (i != ($2))2263 return 1;2264 fprintf (f, "%lu", i);2265 }2266 /* Do not output a trailing newline, as this causes \r\n confusion2267 on some platforms. */2268 return ferror (f) || fclose (f) != 0;2269 2270 ;2271 return 0;2272 }2273 _ACEOF2274 if ac_fn_cxx_try_run "$LINENO"; then :2275 echo >>conftest.val; read $3 <conftest.val; ac_retval=02276 else2277 ac_retval=12278 fi2279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \2280 conftest.$ac_objext conftest.beam conftest.$ac_ext2281 rm -f conftest.val2282 2283 fi2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2285 as_fn_set_status $ac_retval2286 2287 } # ac_fn_cxx_compute_int2288 2342 cat >config.log <<_ACEOF 2289 2343 This file contains any messages produced by compilers while … … 2667 2721 2668 2722 2669 2670 RAPPTURE_MAJOR_VERSION=1 2671 RAPPTURE_MINOR_VERSION=4 2672 RAPPTURE_RELEASE_SERIAL=0 2723 ac_config_headers="$ac_config_headers lib/rappture/config.h" 2724 2725 2726 WITH_R=yes 2727 WITH_JAVA=yes 2728 WITH_MATLAB=yes 2729 WITH_MKOCTFILE2=yes 2730 WITH_MKOCTFILE3=yes 2731 WITH_OCTAVE=yes 2732 WITH_PERL=yes 2733 WITH_PYTHON=yes 2734 WITH_RUBY=yes 2735 WITH_RUBY_SITELIBDIR=yes 2736 WITH_TCL=yes 2737 2738 2739 # Check whether --with-R was given. 2740 if test "${with_R+set}" = set; then : 2741 withval=$with_R; WITH_R=${with_val} 2742 else 2743 WITH_R=yes 2744 fi 2745 2746 2747 2748 # Check whether --with-java was given. 2749 if test "${with_java+set}" = set; then : 2750 withval=$with_java; WITH_JAVA=${with_val} 2751 else 2752 WITH_JAVA=yes 2753 fi 2754 2755 2756 2757 # Check whether --with-matlab was given. 2758 if test "${with_matlab+set}" = set; then : 2759 withval=$with_matlab; WITH_MATLAB=${with_val} 2760 else 2761 WITH_MATLAB=yes 2762 fi 2763 2764 2765 2766 # Check whether --with-mkoctfile2 was given. 2767 if test "${with_mkoctfile2+set}" = set; then : 2768 withval=$with_mkoctfile2; WITH_MKOCTFILE2=${with_val} 2769 else 2770 WITH_MKOCTFILE2=no 2771 fi 2772 2773 2774 2775 # Check whether --with-mkoctfile3 was given. 2776 if test "${with_mkoctfile3+set}" = set; then : 2777 withval=$with_mkoctfile3; WITH_MKOCTFILE3=${with_val} 2778 else 2779 WITH_MKOCTFILE3=no 2780 fi 2781 2782 2783 2784 # Check whether --with-octave was given. 2785 if test "${with_octave+set}" = set; then : 2786 withval=$with_octave; WITH_OCTAVE=${with_val} 2787 else 2788 with_octave=yes 2789 fi 2790 2791 2792 2793 # Check whether --with-perl was given. 2794 if test "${with_perl+set}" = set; then : 2795 withval=$with_perl; WITH_PERL=${with_val} 2796 else 2797 WITH_PERL=yes 2798 fi 2799 2800 2801 2802 # Check whether --with-python was given. 2803 if test "${with_python+set}" = set; then : 2804 withval=$with_python; WITH_PYTHON=${with_val} 2805 else 2806 WITH_PYTHON=yes 2807 fi 2808 2809 2810 2811 # Check whether --with-ruby was given. 2812 if test "${with_ruby+set}" = set; then : 2813 withval=$with_ruby; WITH_RUBY=${with_val} 2814 else 2815 WITH_RUBY=yes 2816 fi 2817 2818 2819 2820 # Check whether --with-ruby_sitelibdir was given. 2821 if test "${with_ruby_sitelibdir+set}" = set; then : 2822 withval=$with_ruby_sitelibdir; WITH_RUBY_SITELIBDIR=${with_val} 2823 else 2824 WITH_RUBY_SITELIBDIR=NONE 2825 fi 2826 2827 2828 2829 # Check whether --with-tcl was given. 2830 if test "${with_tcl+set}" = set; then : 2831 withval=$with_tcl; WITH_TCL=${with_val} 2832 else 2833 WITH_TCL=yes 2834 fi 2835 2836 2837 2838 # Check whether --with-install was given. 2839 if test "${with_install+set}" = set; then : 2840 withval=$with_install; WITH_INSTALL=${withval} 2841 else 2842 WITH_INSTALL=yes 2843 fi 2844 2845 2846 2847 # Check whether --with-vtk was given. 2848 if test "${with_vtk+set}" = set; then : 2849 withval=$with_vtk; WITH_VTK=${withval} 2850 else 2851 WITH_VTK=no 2852 fi 2853 2854 2855 # Check whether --enable-vtkdicom was given. 2856 if test "${enable_vtkdicom+set}" = set; then : 2857 enableval=$enable_vtkdicom; 2858 else 2859 enable_vtkdicom=no 2860 fi 2861 2673 2862 2674 2863 #------------------------------------------------------------------------ … … 2776 2965 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2777 2966 2778 2779 2967 if test -n "$ac_tool_prefix"; then 2780 2968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. … … 4945 5133 4946 5134 4947 4948 # Check whether --with-install was given. 4949 if test "${with_install+set}" = set; then : 4950 withval=$with_install; 4951 else 4952 with_install=yes 4953 fi 4954 4955 4956 if test "$with_install" != "yes"; then 4957 INSTALL_PREFIX=$with_install 4958 else 4959 INSTALL_PREFIX=$prefix 4960 fi 4961 4962 if test "${libdir}" != "${prefix}/lib"; then 4963 LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" 4964 else 4965 LIB_SEARCH_DIRS="-L${libdir}" 4966 fi 4967 4968 4969 # Check whether --with-statsdir was given. 4970 if test "${with_statsdir+set}" = set; then : 4971 withval=$with_statsdir; STATSDIR=$withval 4972 else 4973 STATSDIR="/var/tmp/visservers" 4974 fi 4975 4976 4977 HAVE_VTK="" 4978 4979 # Check whether --with-statsdir was given. 4980 if test "${with_statsdir+set}" = set; then : 4981 withval=$with_statsdir; HAVE_VTK=$withval 4982 else 4983 HAVE_VTK="" 4984 fi 4985 4986 4987 for ac_func in sysinfo 4988 do : 4989 ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo" 4990 if test "x$ac_cv_func_sysinfo" = xyes; then : 4991 cat >>confdefs.h <<_ACEOF 4992 #define HAVE_SYSINFO 1 4993 _ACEOF 4994 4995 fi 4996 done 4997 4998 for ac_func in gettimeofday 4999 do : 5000 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 5001 if test "x$ac_cv_func_gettimeofday" = xyes; then : 5002 cat >>confdefs.h <<_ACEOF 5003 #define HAVE_GETTIMEOFDAY 1 5004 _ACEOF 5005 5006 fi 5007 done 5008 5009 ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime" 5010 if test "x$ac_cv_func_localtime" = xyes; then : 5011 5012 else 5013 as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5 5014 fi 5015 5016 ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv" 5017 if test "x$ac_cv_func_getenv" = xyes; then : 5018 5019 else 5020 as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5 5021 fi 5022 5135 # ----------------------------------------------------------------------- 5136 # 5137 # Compiler characteristics: 5138 # Check for existence of types of size_t and pid_t 5139 # 5140 # ----------------------------------------------------------------------- 5023 5141 5024 5142 # On IRIX 5.3, sys/types and inttypes.h are conflicting. … … 5038 5156 done 5039 5157 5040 5041 for ac_header in sys/sysinfo.h5042 do :5043 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"5044 if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :5045 cat >>confdefs.h <<_ACEOF5046 #define HAVE_SYS_SYSINFO_H 15047 _ACEOF5048 5049 fi5050 5051 done5052 5053 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&55055 $as_echo_n "checking for clrtoeol in -lncurses... " >&6; }5056 if ${ac_cv_lib_ncurses_clrtoeol+:} false; then :5057 $as_echo_n "(cached) " >&65058 else5059 ac_check_lib_save_LIBS=$LIBS5060 LIBS="-lncurses $LIBS"5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext5062 /* end confdefs.h. */5063 5064 /* Override any GCC internal prototype to avoid an error.5065 Use char because int might match the return type of a GCC5066 builtin and then its argument prototype would still apply. */5067 #ifdef __cplusplus5068 extern "C"5069 #endif5070 char clrtoeol ();5071 int5072 main ()5073 {5074 return clrtoeol ();5075 ;5076 return 0;5077 }5078 _ACEOF5079 if ac_fn_cxx_try_link "$LINENO"; then :5080 ac_cv_lib_ncurses_clrtoeol=yes5081 else5082 ac_cv_lib_ncurses_clrtoeol=no5083 fi5084 rm -f core conftest.err conftest.$ac_objext \5085 conftest$ac_exeext conftest.$ac_ext5086 LIBS=$ac_check_lib_save_LIBS5087 fi5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&55089 $as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; }5090 if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then :5091 cat >>confdefs.h <<_ACEOF5092 #define HAVE_LIBNCURSES 15093 _ACEOF5094 5095 LIBS="-lncurses $LIBS"5096 5097 else5098 as_fn_error $? "ncurses library missing?" "$LINENO" 55099 fi5100 5101 for ac_header in ncurses.h5102 do :5103 ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"5104 if test "x$ac_cv_header_ncurses_h" = xyes; then :5105 cat >>confdefs.h <<_ACEOF5106 #define HAVE_NCURSES_H 15107 _ACEOF5108 5109 else5110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&55111 $as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;}5112 fi5113 5114 done5115 5116 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&55118 $as_echo_n "checking for main in -lstdc++... " >&6; }5119 if ${ac_cv_lib_stdcpp_main+:} false; then :5120 $as_echo_n "(cached) " >&65121 else5122 ac_check_lib_save_LIBS=$LIBS5123 LIBS="-lstdc++ $LIBS"5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext5125 /* end confdefs.h. */5126 5127 5128 int5129 main ()5130 {5131 return main ();5132 ;5133 return 0;5134 }5135 _ACEOF5136 if ac_fn_cxx_try_link "$LINENO"; then :5137 ac_cv_lib_stdcpp_main=yes5138 else5139 ac_cv_lib_stdcpp_main=no5140 fi5141 rm -f core conftest.err conftest.$ac_objext \5142 conftest$ac_exeext conftest.$ac_ext5143 LIBS=$ac_check_lib_save_LIBS5144 fi5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&55146 $as_echo "$ac_cv_lib_stdcpp_main" >&6; }5147 if test "x$ac_cv_lib_stdcpp_main" = xyes; then :5148 cat >>confdefs.h <<_ACEOF5149 #define HAVE_LIBSTDC__ 15150 _ACEOF5151 5152 LIBS="-lstdc++ $LIBS"5153 5154 else5155 as_fn_error $? "librappture requires libstdc++" "$LINENO" 55156 fi5157 5158 for ac_header in algorithm5159 do :5160 ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default"5161 if test "x$ac_cv_header_algorithm" = xyes; then :5162 cat >>confdefs.h <<_ACEOF5163 #define HAVE_ALGORITHM 15164 _ACEOF5165 5166 else5167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55168 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5169 fi5170 5171 done5172 5173 for ac_header in cctype5174 do :5175 ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default"5176 if test "x$ac_cv_header_cctype" = xyes; then :5177 cat >>confdefs.h <<_ACEOF5178 #define HAVE_CCTYPE 15179 _ACEOF5180 5181 else5182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55183 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5184 fi5185 5186 done5187 5188 for ac_header in cfloat5189 do :5190 ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default"5191 if test "x$ac_cv_header_cfloat" = xyes; then :5192 cat >>confdefs.h <<_ACEOF5193 #define HAVE_CFLOAT 15194 _ACEOF5195 5196 else5197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55198 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5199 fi5200 5201 done5202 5203 for ac_header in cmath5204 do :5205 ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default"5206 if test "x$ac_cv_header_cmath" = xyes; then :5207 cat >>confdefs.h <<_ACEOF5208 #define HAVE_CMATH 15209 _ACEOF5210 5211 else5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55213 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5214 fi5215 5216 done5217 5218 for ac_header in cstdio5219 do :5220 ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default"5221 if test "x$ac_cv_header_cstdio" = xyes; then :5222 cat >>confdefs.h <<_ACEOF5223 #define HAVE_CSTDIO 15224 _ACEOF5225 5226 else5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55228 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5229 fi5230 5231 done5232 5233 for ac_header in cstdlib5234 do :5235 ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default"5236 if test "x$ac_cv_header_cstdlib" = xyes; then :5237 cat >>confdefs.h <<_ACEOF5238 #define HAVE_CSTDLIB 15239 _ACEOF5240 5241 else5242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55243 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5244 fi5245 5246 done5247 5248 for ac_header in cstring5249 do :5250 ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default"5251 if test "x$ac_cv_header_cstring" = xyes; then :5252 cat >>confdefs.h <<_ACEOF5253 #define HAVE_CSTRING 15254 _ACEOF5255 5256 else5257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55258 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5259 fi5260 5261 done5262 5263 for ac_header in fstream5264 do :5265 ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default"5266 if test "x$ac_cv_header_fstream" = xyes; then :5267 cat >>confdefs.h <<_ACEOF5268 #define HAVE_FSTREAM 15269 _ACEOF5270 5271 else5272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55273 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5274 fi5275 5276 done5277 5278 for ac_header in list5279 do :5280 ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default"5281 if test "x$ac_cv_header_list" = xyes; then :5282 cat >>confdefs.h <<_ACEOF5283 #define HAVE_LIST 15284 _ACEOF5285 5286 else5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55288 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5289 fi5290 5291 done5292 5293 for ac_header in iostream5294 do :5295 ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"5296 if test "x$ac_cv_header_iostream" = xyes; then :5297 cat >>confdefs.h <<_ACEOF5298 #define HAVE_IOSTREAM 15299 _ACEOF5300 5301 else5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55303 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5304 fi5305 5306 done5307 5308 for ac_header in iterator5309 do :5310 ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default"5311 if test "x$ac_cv_header_iterator" = xyes; then :5312 cat >>confdefs.h <<_ACEOF5313 #define HAVE_ITERATOR 15314 _ACEOF5315 5316 else5317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55318 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5319 fi5320 5321 done5322 5323 for ac_header in sstream5324 do :5325 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"5326 if test "x$ac_cv_header_sstream" = xyes; then :5327 cat >>confdefs.h <<_ACEOF5328 #define HAVE_SSTREAM 15329 _ACEOF5330 5331 else5332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55333 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5334 fi5335 5336 done5337 5338 for ac_header in stack5339 do :5340 ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default"5341 if test "x$ac_cv_header_stack" = xyes; then :5342 cat >>confdefs.h <<_ACEOF5343 #define HAVE_STACK 15344 _ACEOF5345 5346 else5347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55348 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5349 fi5350 5351 done5352 5353 for ac_header in string5354 do :5355 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"5356 if test "x$ac_cv_header_string" = xyes; then :5357 cat >>confdefs.h <<_ACEOF5358 #define HAVE_STRING 15359 _ACEOF5360 5361 else5362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55363 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5364 fi5365 5366 done5367 5368 for ac_header in vector5369 do :5370 ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"5371 if test "x$ac_cv_header_vector" = xyes; then :5372 cat >>confdefs.h <<_ACEOF5373 #define HAVE_VECTOR 15374 _ACEOF5375 5376 else5377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55378 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5379 fi5380 5381 done5382 5383 5384 for ac_header in assert.h5385 do :5386 ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"5387 if test "x$ac_cv_header_assert_h" = xyes; then :5388 cat >>confdefs.h <<_ACEOF5389 #define HAVE_ASSERT_H 15390 _ACEOF5391 5392 else5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55394 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5395 fi5396 5397 done5398 5399 for ac_header in ctype.h5400 do :5401 ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"5402 if test "x$ac_cv_header_ctype_h" = xyes; then :5403 cat >>confdefs.h <<_ACEOF5404 #define HAVE_CTYPE_H 15405 _ACEOF5406 5407 else5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55409 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5410 fi5411 5412 done5413 5414 for ac_header in errno.h5415 do :5416 ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"5417 if test "x$ac_cv_header_errno_h" = xyes; then :5418 cat >>confdefs.h <<_ACEOF5419 #define HAVE_ERRNO_H 15420 _ACEOF5421 5422 else5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55424 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5425 fi5426 5427 done5428 5429 for ac_header in limits.h5430 do :5431 ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"5432 if test "x$ac_cv_header_limits_h" = xyes; then :5433 cat >>confdefs.h <<_ACEOF5434 #define HAVE_LIMITS_H 15435 _ACEOF5436 5437 else5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55439 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5440 fi5441 5442 done5443 5444 for ac_header in string.h5445 do :5446 ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"5447 if test "x$ac_cv_header_string_h" = xyes; then :5448 cat >>confdefs.h <<_ACEOF5449 #define HAVE_STRING_H 15450 _ACEOF5451 5452 else5453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55454 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5455 fi5456 5457 done5458 5459 for ac_header in stdlib.h5460 do :5461 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"5462 if test "x$ac_cv_header_stdlib_h" = xyes; then :5463 cat >>confdefs.h <<_ACEOF5464 #define HAVE_STDLIB_H 15465 _ACEOF5466 5467 else5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55469 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5470 fi5471 5472 done5473 5474 for ac_header in stddef.h5475 do :5476 ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"5477 if test "x$ac_cv_header_stddef_h" = xyes; then :5478 cat >>confdefs.h <<_ACEOF5479 #define HAVE_STDDEF_H 15480 _ACEOF5481 5482 else5483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55484 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5485 fi5486 5487 done5488 5489 for ac_header in float.h5490 do :5491 ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"5492 if test "x$ac_cv_header_float_h" = xyes; then :5493 cat >>confdefs.h <<_ACEOF5494 #define HAVE_FLOAT_H 15495 _ACEOF5496 5497 else5498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55499 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5500 fi5501 5502 done5503 5504 for ac_header in math.h5505 do :5506 ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"5507 if test "x$ac_cv_header_math_h" = xyes; then :5508 cat >>confdefs.h <<_ACEOF5509 #define HAVE_MATH_H 15510 _ACEOF5511 5512 else5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55514 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5515 fi5516 5517 done5518 5519 for ac_header in malloc.h5520 do :5521 ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"5522 if test "x$ac_cv_header_malloc_h" = xyes; then :5523 cat >>confdefs.h <<_ACEOF5524 #define HAVE_MALLOC_H 15525 _ACEOF5526 5527 else5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55529 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5530 fi5531 5532 done5533 5534 for ac_header in memory.h5535 do :5536 ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"5537 if test "x$ac_cv_header_memory_h" = xyes; then :5538 cat >>confdefs.h <<_ACEOF5539 #define HAVE_MEMORY_H 15540 _ACEOF5541 5542 else5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55544 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5545 fi5546 5547 done5548 5549 for ac_header in unistd.h5550 do :5551 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"5552 if test "x$ac_cv_header_unistd_h" = xyes; then :5553 cat >>confdefs.h <<_ACEOF5554 #define HAVE_UNISTD_H 15555 _ACEOF5556 5557 else5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55559 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5560 fi5561 5562 done5563 5564 5565 for ac_header in inttypes.h5566 do :5567 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"5568 if test "x$ac_cv_header_inttypes_h" = xyes; then :5569 cat >>confdefs.h <<_ACEOF5570 #define HAVE_INTTYPES_H 15571 _ACEOF5572 5573 else5574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55575 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5576 fi5577 5578 done5579 5580 if test "${ac_cv_header_inttypes_h}" = "yes" ; then5581 HAVE_INTTYPES_H=15582 else5583 HAVE_INTTYPES_H=05584 fi5585 5586 5587 SVN_VERSION=`svnversion $srcdir`5588 5589 make_command=""5590 for m in "$MAKE" make gmake gnumake ; do5591 if test "x${m}" != "x" ; then5592 if ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then5593 make_command=$m; break;5594 fi5595 fi5596 done5597 if test "x${make_command}" = "x" ; then5598 as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 55599 fi5600 5601 # Check whether --enable-lang was given.5602 if test "${enable_lang+set}" = set; then :5603 enableval=$enable_lang;5604 else5605 enable_lang=yes5606 fi5607 5608 5609 ENABLE_LANG=5610 if test "$enable_lang" != "no" ; then5611 ENABLE_LANG="yes"5612 fi5613 5614 # Check whether --enable-gui was given.5615 if test "${enable_gui+set}" = set; then :5616 enableval=$enable_gui;5617 else5618 enable_gui=yes5619 fi5620 5621 5622 ENABLE_GUI=5623 if test "$enable_gui" != "no" ; then5624 ENABLE_GUI="yes"5625 fi5626 5627 TCL_VERSION="8.5"5628 TK_VERSION="8.5"5629 5630 for dir in \5631 ${exec_prefix} \5632 ${exec_prefix}/lib ; do5633 tclconfig="${dir}/tclConfig.sh"5634 if test -f "$tclconfig" ; then5635 . $tclconfig5636 break5637 fi5638 done5639 5640 5641 # Check whether --with-ffmpeg was given.5642 if test "${with_ffmpeg+set}" = set; then :5643 withval=$with_ffmpeg;5644 else5645 with_ffmpeg=yes5646 fi5647 5648 5649 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"5650 5651 5652 # Check whether --with-vtk was given.5653 if test "${with_vtk+set}" = set; then :5654 withval=$with_vtk;5655 else5656 with_vtk=yes5657 fi5658 5659 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtk" >&55661 $as_echo_n "checking for vtk... " >&6; }5662 VTK_VERSION=6.15663 VTK_TCL_DIR=""5664 5665 ENABLE_VTK=5666 if test "$with_vtk" != "no" ; then5667 if test "$with_vtk" != "yes" ; then5668 VTK_VERSION=$with_vtk5669 fi5670 if test "x$with_vtk" != "x" ; then5671 ENABLE_VTK=yes5672 for path in \5673 $libdir/tcltk \5674 $exec_prefix/lib/tcltk \5675 $prefix/lib/tcltk \5676 $libdir \5677 $prefix/lib \5678 $exec_prefix/lib \5679 /usr/lib5680 do5681 if test -d "$path/vtk-$VTK_VERSION" ; then5682 VTK_TCL_DIR="$path/vtk-$VTK_VERSION"5683 fi5684 if test "x${VTK_TCL_DIR}" != "x" ; then5685 break5686 fi5687 done5688 fi5689 else5690 if test "${ENABLE_GUI}" = "yes" ; then5691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: VTK missing: Rappture GUI requires VTK for some features" >&55692 $as_echo "$as_me: WARNING: VTK missing: Rappture GUI requires VTK for some features" >&2;}5693 fi5694 fi5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTK_TCL_DIR" >&55696 $as_echo "$VTK_TCL_DIR" >&6; }5697 5698 # Check whether --enable-vtkdicom was given.5699 if test "${enable_vtkdicom+set}" = set; then :5700 enableval=$enable_vtkdicom;5701 else5702 enable_vtkdicom=no5703 fi5704 5705 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtkDICOM" >&55707 $as_echo_n "checking for vtkDICOM... " >&6; }5708 ENABLE_VTK_DICOM=5709 if test "$enable_vtkdicom" != "no" ; then5710 ENABLE_VTK_DICOM="yes"5711 fi5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtkdicom" >&55713 $as_echo "$enable_vtkdicom" >&6; }5714 5715 RP_BASE=`pwd`5716 5717 #--------------------------------------------------------------------5718 # This macro figures out what flags to use with the compiler/linker5719 # when building shared/static debug/optimized objects. This information5720 # is all taken from the tclConfig.sh file.5721 #--------------------------------------------------------------------5722 5723 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then5724 . ${exec_prefix}/lib/tclConfig.sh5725 fi5726 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then5727 . ${exec_prefix}/lib/tkConfig.sh5728 fi5729 5730 # -----------------------------------------------------------------------5731 #5732 # Compiler characteristics:5733 # Check for existence of types of size_t and pid_t5734 #5735 # -----------------------------------------------------------------------5736 5158 5737 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 … … 6098 5520 6099 5521 5522 for ac_func in sysinfo 5523 do : 5524 ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo" 5525 if test "x$ac_cv_func_sysinfo" = xyes; then : 5526 cat >>confdefs.h <<_ACEOF 5527 #define HAVE_SYSINFO 1 5528 _ACEOF 5529 5530 fi 5531 done 5532 5533 for ac_func in gettimeofday 5534 do : 5535 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 5536 if test "x$ac_cv_func_gettimeofday" = xyes; then : 5537 cat >>confdefs.h <<_ACEOF 5538 #define HAVE_GETTIMEOFDAY 1 5539 _ACEOF 5540 5541 fi 5542 done 5543 5544 ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime" 5545 if test "x$ac_cv_func_localtime" = xyes; then : 5546 5547 else 5548 as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5 5549 fi 5550 5551 ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv" 5552 if test "x$ac_cv_func_getenv" = xyes; then : 5553 5554 else 5555 as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5 5556 fi 5557 5558 5559 for ac_header in sys/sysinfo.h 5560 do : 5561 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default" 5562 if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then : 5563 cat >>confdefs.h <<_ACEOF 5564 #define HAVE_SYS_SYSINFO_H 1 5565 _ACEOF 5566 5567 fi 5568 5569 done 5570 5571 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5 5573 $as_echo_n "checking for clrtoeol in -lncurses... " >&6; } 5574 if ${ac_cv_lib_ncurses_clrtoeol+:} false; then : 5575 $as_echo_n "(cached) " >&6 5576 else 5577 ac_check_lib_save_LIBS=$LIBS 5578 LIBS="-lncurses $LIBS" 5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5580 /* end confdefs.h. */ 5581 5582 /* Override any GCC internal prototype to avoid an error. 5583 Use char because int might match the return type of a GCC 5584 builtin and then its argument prototype would still apply. */ 5585 #ifdef __cplusplus 5586 extern "C" 5587 #endif 5588 char clrtoeol (); 5589 int 5590 main () 5591 { 5592 return clrtoeol (); 5593 ; 5594 return 0; 5595 } 5596 _ACEOF 5597 if ac_fn_cxx_try_link "$LINENO"; then : 5598 ac_cv_lib_ncurses_clrtoeol=yes 5599 else 5600 ac_cv_lib_ncurses_clrtoeol=no 5601 fi 5602 rm -f core conftest.err conftest.$ac_objext \ 5603 conftest$ac_exeext conftest.$ac_ext 5604 LIBS=$ac_check_lib_save_LIBS 5605 fi 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5 5607 $as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; } 5608 if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then : 5609 cat >>confdefs.h <<_ACEOF 5610 #define HAVE_LIBNCURSES 1 5611 _ACEOF 5612 5613 LIBS="-lncurses $LIBS" 5614 5615 else 5616 as_fn_error $? "ncurses library missing?" "$LINENO" 5 5617 fi 5618 5619 for ac_header in ncurses.h 5620 do : 5621 ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" 5622 if test "x$ac_cv_header_ncurses_h" = xyes; then : 5623 cat >>confdefs.h <<_ACEOF 5624 #define HAVE_NCURSES_H 1 5625 _ACEOF 5626 5627 else 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5 5629 $as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;} 5630 fi 5631 5632 done 5633 5634 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5 5636 $as_echo_n "checking for main in -lstdc++... " >&6; } 5637 if ${ac_cv_lib_stdcpp_main+:} false; then : 5638 $as_echo_n "(cached) " >&6 5639 else 5640 ac_check_lib_save_LIBS=$LIBS 5641 LIBS="-lstdc++ $LIBS" 5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5643 /* end confdefs.h. */ 5644 5645 5646 int 5647 main () 5648 { 5649 return main (); 5650 ; 5651 return 0; 5652 } 5653 _ACEOF 5654 if ac_fn_cxx_try_link "$LINENO"; then : 5655 ac_cv_lib_stdcpp_main=yes 5656 else 5657 ac_cv_lib_stdcpp_main=no 5658 fi 5659 rm -f core conftest.err conftest.$ac_objext \ 5660 conftest$ac_exeext conftest.$ac_ext 5661 LIBS=$ac_check_lib_save_LIBS 5662 fi 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5 5664 $as_echo "$ac_cv_lib_stdcpp_main" >&6; } 5665 if test "x$ac_cv_lib_stdcpp_main" = xyes; then : 5666 cat >>confdefs.h <<_ACEOF 5667 #define HAVE_LIBSTDC__ 1 5668 _ACEOF 5669 5670 LIBS="-lstdc++ $LIBS" 5671 5672 else 5673 as_fn_error $? "librappture requires libstdc++" "$LINENO" 5 5674 fi 5675 5676 for ac_header in algorithm 5677 do : 5678 ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default" 5679 if test "x$ac_cv_header_algorithm" = xyes; then : 5680 cat >>confdefs.h <<_ACEOF 5681 #define HAVE_ALGORITHM 1 5682 _ACEOF 5683 5684 else 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5686 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5687 fi 5688 5689 done 5690 5691 for ac_header in cctype 5692 do : 5693 ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default" 5694 if test "x$ac_cv_header_cctype" = xyes; then : 5695 cat >>confdefs.h <<_ACEOF 5696 #define HAVE_CCTYPE 1 5697 _ACEOF 5698 5699 else 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5701 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5702 fi 5703 5704 done 5705 5706 for ac_header in cfloat 5707 do : 5708 ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default" 5709 if test "x$ac_cv_header_cfloat" = xyes; then : 5710 cat >>confdefs.h <<_ACEOF 5711 #define HAVE_CFLOAT 1 5712 _ACEOF 5713 5714 else 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5716 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5717 fi 5718 5719 done 5720 5721 for ac_header in cmath 5722 do : 5723 ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default" 5724 if test "x$ac_cv_header_cmath" = xyes; then : 5725 cat >>confdefs.h <<_ACEOF 5726 #define HAVE_CMATH 1 5727 _ACEOF 5728 5729 else 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5731 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5732 fi 5733 5734 done 5735 5736 for ac_header in cstdio 5737 do : 5738 ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default" 5739 if test "x$ac_cv_header_cstdio" = xyes; then : 5740 cat >>confdefs.h <<_ACEOF 5741 #define HAVE_CSTDIO 1 5742 _ACEOF 5743 5744 else 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5746 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5747 fi 5748 5749 done 5750 5751 for ac_header in cstdlib 5752 do : 5753 ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default" 5754 if test "x$ac_cv_header_cstdlib" = xyes; then : 5755 cat >>confdefs.h <<_ACEOF 5756 #define HAVE_CSTDLIB 1 5757 _ACEOF 5758 5759 else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5761 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5762 fi 5763 5764 done 5765 5766 for ac_header in cstring 5767 do : 5768 ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default" 5769 if test "x$ac_cv_header_cstring" = xyes; then : 5770 cat >>confdefs.h <<_ACEOF 5771 #define HAVE_CSTRING 1 5772 _ACEOF 5773 5774 else 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5776 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5777 fi 5778 5779 done 5780 5781 for ac_header in fstream 5782 do : 5783 ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default" 5784 if test "x$ac_cv_header_fstream" = xyes; then : 5785 cat >>confdefs.h <<_ACEOF 5786 #define HAVE_FSTREAM 1 5787 _ACEOF 5788 5789 else 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5791 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5792 fi 5793 5794 done 5795 5796 for ac_header in list 5797 do : 5798 ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default" 5799 if test "x$ac_cv_header_list" = xyes; then : 5800 cat >>confdefs.h <<_ACEOF 5801 #define HAVE_LIST 1 5802 _ACEOF 5803 5804 else 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5806 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5807 fi 5808 5809 done 5810 5811 for ac_header in iostream 5812 do : 5813 ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default" 5814 if test "x$ac_cv_header_iostream" = xyes; then : 5815 cat >>confdefs.h <<_ACEOF 5816 #define HAVE_IOSTREAM 1 5817 _ACEOF 5818 5819 else 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5821 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5822 fi 5823 5824 done 5825 5826 for ac_header in iterator 5827 do : 5828 ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default" 5829 if test "x$ac_cv_header_iterator" = xyes; then : 5830 cat >>confdefs.h <<_ACEOF 5831 #define HAVE_ITERATOR 1 5832 _ACEOF 5833 5834 else 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5836 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5837 fi 5838 5839 done 5840 5841 for ac_header in sstream 5842 do : 5843 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default" 5844 if test "x$ac_cv_header_sstream" = xyes; then : 5845 cat >>confdefs.h <<_ACEOF 5846 #define HAVE_SSTREAM 1 5847 _ACEOF 5848 5849 else 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5851 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5852 fi 5853 5854 done 5855 5856 for ac_header in stack 5857 do : 5858 ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default" 5859 if test "x$ac_cv_header_stack" = xyes; then : 5860 cat >>confdefs.h <<_ACEOF 5861 #define HAVE_STACK 1 5862 _ACEOF 5863 5864 else 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5866 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5867 fi 5868 5869 done 5870 5871 for ac_header in string 5872 do : 5873 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default" 5874 if test "x$ac_cv_header_string" = xyes; then : 5875 cat >>confdefs.h <<_ACEOF 5876 #define HAVE_STRING 1 5877 _ACEOF 5878 5879 else 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5881 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5882 fi 5883 5884 done 5885 5886 for ac_header in vector 5887 do : 5888 ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default" 5889 if test "x$ac_cv_header_vector" = xyes; then : 5890 cat >>confdefs.h <<_ACEOF 5891 #define HAVE_VECTOR 1 5892 _ACEOF 5893 5894 else 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5 5896 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;} 5897 fi 5898 5899 done 5900 5901 5902 for ac_header in assert.h 5903 do : 5904 ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" 5905 if test "x$ac_cv_header_assert_h" = xyes; then : 5906 cat >>confdefs.h <<_ACEOF 5907 #define HAVE_ASSERT_H 1 5908 _ACEOF 5909 5910 else 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 5912 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 5913 fi 5914 5915 done 5916 5917 for ac_header in ctype.h 5918 do : 5919 ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" 5920 if test "x$ac_cv_header_ctype_h" = xyes; then : 5921 cat >>confdefs.h <<_ACEOF 5922 #define HAVE_CTYPE_H 1 5923 _ACEOF 5924 5925 else 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 5927 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 5928 fi 5929 5930 done 5931 5932 for ac_header in errno.h 5933 do : 5934 ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 5935 if test "x$ac_cv_header_errno_h" = xyes; then : 5936 cat >>confdefs.h <<_ACEOF 5937 #define HAVE_ERRNO_H 1 5938 _ACEOF 5939 5940 else 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 5942 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 5943 fi 5944 5945 done 5946 5947 for ac_header in limits.h 5948 do : 5949 ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 5950 if test "x$ac_cv_header_limits_h" = xyes; then : 5951 cat >>confdefs.h <<_ACEOF 5952 #define HAVE_LIMITS_H 1 5953 _ACEOF 5954 5955 else 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 5957 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 5958 fi 5959 5960 done 5961 5962 for ac_header in string.h 5963 do : 5964 ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 5965 if test "x$ac_cv_header_string_h" = xyes; then : 5966 cat >>confdefs.h <<_ACEOF 5967 #define HAVE_STRING_H 1 5968 _ACEOF 5969 5970 else 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 5972 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 5973 fi 5974 5975 done 5976 5977 for ac_header in stdlib.h 5978 do : 5979 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 5980 if test "x$ac_cv_header_stdlib_h" = xyes; then : 5981 cat >>confdefs.h <<_ACEOF 5982 #define HAVE_STDLIB_H 1 5983 _ACEOF 5984 5985 else 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 5987 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 5988 fi 5989 5990 done 5991 5992 for ac_header in stddef.h 5993 do : 5994 ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" 5995 if test "x$ac_cv_header_stddef_h" = xyes; then : 5996 cat >>confdefs.h <<_ACEOF 5997 #define HAVE_STDDEF_H 1 5998 _ACEOF 5999 6000 else 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 6002 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 6003 fi 6004 6005 done 6006 6007 for ac_header in float.h 6008 do : 6009 ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 6010 if test "x$ac_cv_header_float_h" = xyes; then : 6011 cat >>confdefs.h <<_ACEOF 6012 #define HAVE_FLOAT_H 1 6013 _ACEOF 6014 6015 else 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 6017 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 6018 fi 6019 6020 done 6021 6022 for ac_header in math.h 6023 do : 6024 ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" 6025 if test "x$ac_cv_header_math_h" = xyes; then : 6026 cat >>confdefs.h <<_ACEOF 6027 #define HAVE_MATH_H 1 6028 _ACEOF 6029 6030 else 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 6032 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 6033 fi 6034 6035 done 6036 6037 for ac_header in malloc.h 6038 do : 6039 ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 6040 if test "x$ac_cv_header_malloc_h" = xyes; then : 6041 cat >>confdefs.h <<_ACEOF 6042 #define HAVE_MALLOC_H 1 6043 _ACEOF 6044 6045 else 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 6047 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 6048 fi 6049 6050 done 6051 6052 for ac_header in memory.h 6053 do : 6054 ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default" 6055 if test "x$ac_cv_header_memory_h" = xyes; then : 6056 cat >>confdefs.h <<_ACEOF 6057 #define HAVE_MEMORY_H 1 6058 _ACEOF 6059 6060 else 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 6062 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 6063 fi 6064 6065 done 6066 6067 for ac_header in unistd.h 6068 do : 6069 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 6070 if test "x$ac_cv_header_unistd_h" = xyes; then : 6071 cat >>confdefs.h <<_ACEOF 6072 #define HAVE_UNISTD_H 1 6073 _ACEOF 6074 6075 else 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 6077 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 6078 fi 6079 6080 done 6081 6082 6083 for ac_header in inttypes.h 6084 do : 6085 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 6086 if test "x$ac_cv_header_inttypes_h" = xyes; then : 6087 cat >>confdefs.h <<_ACEOF 6088 #define HAVE_INTTYPES_H 1 6089 _ACEOF 6090 6091 else 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5 6093 $as_echo "$as_me: WARNING: C headers missing ?" >&2;} 6094 fi 6095 6096 done 6097 6098 if test "${ac_cv_header_inttypes_h}" = "yes" ; then 6099 HAVE_INTTYPES_H=1 6100 else 6101 HAVE_INTTYPES_H=0 6102 fi 6103 6104 6105 if test "$with_install" != "yes"; then 6106 INSTALL_PREFIX=$with_install 6107 else 6108 INSTALL_PREFIX=$prefix 6109 fi 6110 6111 if test "${libdir}" != "${prefix}/lib"; then 6112 LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" 6113 else 6114 LIB_SEARCH_DIRS="-L${libdir}" 6115 fi 6116 6117 SVN_VERSION=`svnversion $srcdir` 6118 6119 make_command="" 6120 for m in "$MAKE" make gmake gnumake ; do 6121 if test "x${m}" != "x" ; then 6122 if ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then 6123 make_command=$m; break; 6124 fi 6125 fi 6126 done 6127 if test "x${make_command}" = "x" ; then 6128 as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5 6129 fi 6130 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtkDICOM" >&5 6132 $as_echo_n "checking for vtkDICOM... " >&6; } 6133 ENABLE_VTK_DICOM= 6134 if test "$enable_vtkdicom" != "no" ; then 6135 ENABLE_VTK_DICOM="yes" 6136 fi 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtkdicom" >&5 6138 $as_echo "$enable_vtkdicom" >&6; } 6139 6140 RP_BASE=`pwd` 6141 6100 6142 #-------------------------------------------------------------------- 6101 6143 # Set the default compiler switches based on the --enable-symbols … … 6103 6145 #-------------------------------------------------------------------- 6104 6146 6105 SC_ENABLE_SYMBOLS 6147 TCL_VERSION="8.5" 6148 TK_VERSION="8.5" 6149 6150 6151 6152 # Step 0.a: Enable 64 bit support? 6153 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 6155 $as_echo_n "checking if 64bit support is requested... " >&6; } 6156 # Check whether --enable-64bit was given. 6157 if test "${enable_64bit+set}" = set; then : 6158 enableval=$enable_64bit; do64bit=$enableval 6159 else 6160 do64bit=no 6161 fi 6162 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 6164 $as_echo "$do64bit" >&6; } 6165 6166 # Step 0.b: Enable Solaris 64 bit VIS support? 6167 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 6169 $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } 6170 # Check whether --enable-64bit-vis was given. 6171 if test "${enable_64bit_vis+set}" = set; then : 6172 enableval=$enable_64bit_vis; do64bitVIS=$enableval 6173 else 6174 do64bitVIS=no 6175 fi 6176 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 6178 $as_echo "$do64bitVIS" >&6; } 6179 6180 if test "$do64bitVIS" = "yes"; then 6181 # Force 64bit on with VIS 6182 do64bit=yes 6183 fi 6184 6185 # Step 1: set the variable "system" to hold the name and version number 6186 # for the system. 6187 6188 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 6190 $as_echo_n "checking system version... " >&6; } 6191 if ${tcl_cv_sys_version+:} false; then : 6192 $as_echo_n "(cached) " >&6 6193 else 6194 6195 if test -f /usr/lib/NextStep/software_version; then 6196 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 6197 else 6198 tcl_cv_sys_version=`uname -s`-`uname -r` 6199 if test "$?" -ne 0 ; then 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 6201 $as_echo "$as_me: WARNING: can't find uname command" >&2;} 6202 tcl_cv_sys_version=unknown 6203 else 6204 # Special check for weird MP-RAS system (uname returns weird 6205 # results, and the version is kept in special file). 6206 6207 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 6208 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 6209 fi 6210 if test "`uname -s`" = "AIX" ; then 6211 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 6212 fi 6213 fi 6214 fi 6215 6216 fi 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 6218 $as_echo "$tcl_cv_sys_version" >&6; } 6219 system=$tcl_cv_sys_version 6220 6221 6222 # Step 2: check for existence of -ldl library. This is needed because 6223 # Linux can use either -ldl or -ldld for dynamic loading. 6224 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6226 $as_echo_n "checking for dlopen in -ldl... " >&6; } 6227 if ${ac_cv_lib_dl_dlopen+:} false; then : 6228 $as_echo_n "(cached) " >&6 6229 else 6230 ac_check_lib_save_LIBS=$LIBS 6231 LIBS="-ldl $LIBS" 6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6233 /* end confdefs.h. */ 6234 6235 /* Override any GCC internal prototype to avoid an error. 6236 Use char because int might match the return type of a GCC 6237 builtin and then its argument prototype would still apply. */ 6238 #ifdef __cplusplus 6239 extern "C" 6240 #endif 6241 char dlopen (); 6242 int 6243 main () 6244 { 6245 return dlopen (); 6246 ; 6247 return 0; 6248 } 6249 _ACEOF 6250 if ac_fn_cxx_try_link "$LINENO"; then : 6251 ac_cv_lib_dl_dlopen=yes 6252 else 6253 ac_cv_lib_dl_dlopen=no 6254 fi 6255 rm -f core conftest.err conftest.$ac_objext \ 6256 conftest$ac_exeext conftest.$ac_ext 6257 LIBS=$ac_check_lib_save_LIBS 6258 fi 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6260 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6261 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6262 have_dl=yes 6263 else 6264 have_dl=no 6265 fi 6266 6267 6268 # Require ranlib early so we can override it in special cases below. 6269 6270 6271 6272 # Step 3: set configuration options based on system name and version. 6273 6274 do64bit_ok=no 6275 LDFLAGS_ORIG="$LDFLAGS" 6276 TCL_EXPORT_FILE_SUFFIX="" 6277 UNSHARED_LIB_SUFFIX="" 6278 TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' 6279 ECHO_VERSION='`echo ${VERSION}`' 6280 TCL_LIB_VERSIONS_OK=ok 6281 CFLAGS_DEBUG=-g 6282 CFLAGS_OPTIMIZE=-O 6283 if test "$GCC" = "yes" ; then 6284 CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing" 6285 else 6286 CFLAGS_WARNING="" 6287 fi 6288 TCL_NEEDS_EXP_FILE=0 6289 TCL_BUILD_EXP_FILE="" 6290 TCL_EXP_FILE="" 6291 # Extract the first word of "ar", so it can be a program name with args. 6292 set dummy ar; ac_word=$2 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6294 $as_echo_n "checking for $ac_word... " >&6; } 6295 if ${ac_cv_prog_AR+:} false; then : 6296 $as_echo_n "(cached) " >&6 6297 else 6298 if test -n "$AR"; then 6299 ac_cv_prog_AR="$AR" # Let the user override the test. 6300 else 6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6302 for as_dir in $PATH 6303 do 6304 IFS=$as_save_IFS 6305 test -z "$as_dir" && as_dir=. 6306 for ac_exec_ext in '' $ac_executable_extensions; do 6307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6308 ac_cv_prog_AR="ar" 6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6310 break 2 6311 fi 6312 done 6313 done 6314 IFS=$as_save_IFS 6315 6316 fi 6317 fi 6318 AR=$ac_cv_prog_AR 6319 if test -n "$AR"; then 6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6321 $as_echo "$AR" >&6; } 6322 else 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6324 $as_echo "no" >&6; } 6325 fi 6326 6327 6328 if test "${AR}" = "" ; then 6329 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 6330 fi 6331 STLIB_LD='${AR} cr' 6332 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 6333 PLAT_OBJS="" 6334 PLAT_SRCS="" 6335 case $system in 6336 AIX-*) 6337 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then 6338 # AIX requires the _r compiler when gcc isn't being used 6339 case "${CC}" in 6340 *_r) 6341 # ok ... 6342 ;; 6343 *) 6344 CC=${CC}_r 6345 ;; 6346 esac 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 6348 $as_echo "Using $CC for compiling with threads" >&6; } 6349 fi 6350 LIBS="$LIBS -lc" 6351 SHLIB_CFLAGS="" 6352 # Note: need the LIBS below, otherwise Tk won't find Tcl's 6353 # symbols when dynamically loaded into tclsh. 6354 SHLIB_LD_LIBS='${LIBS}' 6355 SHLIB_SUFFIX=".so" 6356 6357 DL_OBJS="tclLoadDl.o" 6358 LD_LIBRARY_PATH_VAR="LIBPATH" 6359 6360 # Check to enable 64-bit flags for compiler/linker on AIX 4+ 6361 if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then 6362 if test "$GCC" = "yes" ; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 6364 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 6365 else 6366 do64bit_ok=yes 6367 CFLAGS="$CFLAGS -q64" 6368 LDFLAGS="$LDFLAGS -q64" 6369 RANLIB="${RANLIB} -X64" 6370 AR="${AR} -X64" 6371 SHLIB_LD_FLAGS="-b64" 6372 fi 6373 fi 6374 6375 if test "`uname -m`" = "ia64" ; then 6376 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 6377 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 6378 # AIX-5 has dl* in libc.so 6379 DL_LIBS="" 6380 if test "$GCC" = "yes" ; then 6381 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6382 else 6383 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 6384 fi 6385 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 6386 else 6387 if test "$GCC" = "yes" ; then 6388 SHLIB_LD="gcc -shared" 6389 else 6390 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" 6391 fi 6392 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" 6393 DL_LIBS="-ldl" 6394 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 6395 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6396 TCL_NEEDS_EXP_FILE=1 6397 TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' 6398 fi 6399 6400 # AIX v<=4.1 has some different flags than 4.2+ 6401 if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then 6402 LIBOBJS="$LIBOBJS tclLoadAix.o" 6403 DL_LIBS="-lld" 6404 fi 6405 6406 # On AIX <=v4 systems, libbsd.a has to be linked in to support 6407 # non-blocking file IO. This library has to be linked in after 6408 # the MATH_LIBS or it breaks the pow() function. The way to 6409 # insure proper sequencing, is to add it to the tail of MATH_LIBS. 6410 # This library also supplies gettimeofday. 6411 # 6412 # AIX does not have a timezone field in struct tm. When the AIX 6413 # bsd library is used, the timezone global and the gettimeofday 6414 # methods are to be avoided for timezone deduction instead, we 6415 # deduce the timezone by comparing the localtime result on a 6416 # known GMT value. 6417 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 6419 $as_echo_n "checking for gettimeofday in -lbsd... " >&6; } 6420 if ${ac_cv_lib_bsd_gettimeofday+:} false; then : 6421 $as_echo_n "(cached) " >&6 6422 else 6423 ac_check_lib_save_LIBS=$LIBS 6424 LIBS="-lbsd $LIBS" 6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6426 /* end confdefs.h. */ 6427 6428 /* Override any GCC internal prototype to avoid an error. 6429 Use char because int might match the return type of a GCC 6430 builtin and then its argument prototype would still apply. */ 6431 #ifdef __cplusplus 6432 extern "C" 6433 #endif 6434 char gettimeofday (); 6435 int 6436 main () 6437 { 6438 return gettimeofday (); 6439 ; 6440 return 0; 6441 } 6442 _ACEOF 6443 if ac_fn_cxx_try_link "$LINENO"; then : 6444 ac_cv_lib_bsd_gettimeofday=yes 6445 else 6446 ac_cv_lib_bsd_gettimeofday=no 6447 fi 6448 rm -f core conftest.err conftest.$ac_objext \ 6449 conftest$ac_exeext conftest.$ac_ext 6450 LIBS=$ac_check_lib_save_LIBS 6451 fi 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 6453 $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } 6454 if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then : 6455 libbsd=yes 6456 else 6457 libbsd=no 6458 fi 6459 6460 if test $libbsd = yes; then 6461 MATH_LIBS="$MATH_LIBS -lbsd" 6462 $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h 6463 6464 fi 6465 ;; 6466 BeOS*) 6467 SHLIB_CFLAGS="-fPIC" 6468 SHLIB_LD="${CC} -nostart" 6469 SHLIB_LD_LIBS='${LIBS}' 6470 SHLIB_SUFFIX=".so" 6471 DL_OBJS="tclLoadDl.o" 6472 DL_LIBS="-ldl" 6473 6474 #----------------------------------------------------------- 6475 # Check for inet_ntoa in -lbind, for BeOS (which also needs 6476 # -lsocket, even if the network functions are in -lnet which 6477 # is always linked to, for compatibility. 6478 #----------------------------------------------------------- 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 6480 $as_echo_n "checking for inet_ntoa in -lbind... " >&6; } 6481 if ${ac_cv_lib_bind_inet_ntoa+:} false; then : 6482 $as_echo_n "(cached) " >&6 6483 else 6484 ac_check_lib_save_LIBS=$LIBS 6485 LIBS="-lbind $LIBS" 6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6487 /* end confdefs.h. */ 6488 6489 /* Override any GCC internal prototype to avoid an error. 6490 Use char because int might match the return type of a GCC 6491 builtin and then its argument prototype would still apply. */ 6492 #ifdef __cplusplus 6493 extern "C" 6494 #endif 6495 char inet_ntoa (); 6496 int 6497 main () 6498 { 6499 return inet_ntoa (); 6500 ; 6501 return 0; 6502 } 6503 _ACEOF 6504 if ac_fn_cxx_try_link "$LINENO"; then : 6505 ac_cv_lib_bind_inet_ntoa=yes 6506 else 6507 ac_cv_lib_bind_inet_ntoa=no 6508 fi 6509 rm -f core conftest.err conftest.$ac_objext \ 6510 conftest$ac_exeext conftest.$ac_ext 6511 LIBS=$ac_check_lib_save_LIBS 6512 fi 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 6514 $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } 6515 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : 6516 LIBS="$LIBS -lbind -lsocket" 6517 fi 6518 6519 ;; 6520 BSD/OS-2.1*|BSD/OS-3*) 6521 SHLIB_CFLAGS="" 6522 SHLIB_LD="shlicc -r" 6523 SHLIB_LD_LIBS='${LIBS}' 6524 SHLIB_SUFFIX=".so" 6525 DL_OBJS="tclLoadDl.o" 6526 DL_LIBS="-ldl" 6527 CC_SEARCH_FLAGS="" 6528 LD_SEARCH_FLAGS="" 6529 ;; 6530 BSD/OS-4.*) 6531 SHLIB_CFLAGS="-export-dynamic -fPIC" 6532 SHLIB_LD="cc -shared" 6533 SHLIB_LD_LIBS='${LIBS}' 6534 SHLIB_SUFFIX=".so" 6535 DL_OBJS="tclLoadDl.o" 6536 DL_LIBS="-ldl" 6537 LDFLAGS="$LDFLAGS -export-dynamic" 6538 CC_SEARCH_FLAGS="" 6539 LD_SEARCH_FLAGS="" 6540 ;; 6541 dgux*) 6542 SHLIB_CFLAGS="-K PIC" 6543 SHLIB_LD="cc -G" 6544 SHLIB_LD_LIBS="" 6545 SHLIB_SUFFIX=".so" 6546 DL_OBJS="tclLoadDl.o" 6547 DL_LIBS="-ldl" 6548 CC_SEARCH_FLAGS="" 6549 LD_SEARCH_FLAGS="" 6550 ;; 6551 HP-UX-*.11.*) 6552 # Use updated header definitions where possible 6553 $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h 6554 # Use the XOPEN network library 6555 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 6556 # Use the XOPEN network library 6557 LIBS="$LIBS -lxnet" # Use the XOPEN network library 6558 6559 if test "`uname -m`" = "ia64" ; then 6560 SHLIB_SUFFIX=".so" 6561 else 6562 SHLIB_SUFFIX=".sl" 6563 fi 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 6565 $as_echo_n "checking for shl_load in -ldld... " >&6; } 6566 if ${ac_cv_lib_dld_shl_load+:} false; then : 6567 $as_echo_n "(cached) " >&6 6568 else 6569 ac_check_lib_save_LIBS=$LIBS 6570 LIBS="-ldld $LIBS" 6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572 /* end confdefs.h. */ 6573 6574 /* Override any GCC internal prototype to avoid an error. 6575 Use char because int might match the return type of a GCC 6576 builtin and then its argument prototype would still apply. */ 6577 #ifdef __cplusplus 6578 extern "C" 6579 #endif 6580 char shl_load (); 6581 int 6582 main () 6583 { 6584 return shl_load (); 6585 ; 6586 return 0; 6587 } 6588 _ACEOF 6589 if ac_fn_cxx_try_link "$LINENO"; then : 6590 ac_cv_lib_dld_shl_load=yes 6591 else 6592 ac_cv_lib_dld_shl_load=no 6593 fi 6594 rm -f core conftest.err conftest.$ac_objext \ 6595 conftest$ac_exeext conftest.$ac_ext 6596 LIBS=$ac_check_lib_save_LIBS 6597 fi 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 6599 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 6600 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6601 tcl_ok=yes 6602 else 6603 tcl_ok=no 6604 fi 6605 6606 if test "$tcl_ok" = yes; then 6607 SHLIB_CFLAGS="+z" 6608 SHLIB_LD="ld -b" 6609 SHLIB_LD_LIBS='${LIBS}' 6610 DL_OBJS="tclLoadShl.o" 6611 DL_LIBS="-ldld" 6612 LDFLAGS="$LDFLAGS -Wl,-E" 6613 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 6614 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 6615 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 6616 fi 6617 if test "$GCC" = "yes" ; then 6618 SHLIB_LD="gcc -shared" 6619 SHLIB_LD_LIBS='${LIBS}' 6620 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6621 fi 6622 6623 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 6624 #CFLAGS="$CFLAGS +DAportable" 6625 6626 # Check to enable 64-bit flags for compiler/linker 6627 if test "$do64bit" = "yes" ; then 6628 if test "$GCC" = "yes" ; then 6629 hpux_arch=`${CC} -dumpmachine` 6630 case $hpux_arch in 6631 hppa64*) 6632 # 64-bit gcc in use. Fix flags for GNU ld. 6633 do64bit_ok=yes 6634 SHLIB_LD="${CC} -shared" 6635 SHLIB_LD_LIBS='${LIBS}' 6636 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6637 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6638 ;; 6639 *) 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 6641 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 6642 ;; 6643 esac 6644 else 6645 do64bit_ok=yes 6646 CFLAGS="$CFLAGS +DD64" 6647 LDFLAGS="$LDFLAGS +DD64" 6648 fi 6649 fi 6650 ;; 6651 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 6652 SHLIB_SUFFIX=".sl" 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 6654 $as_echo_n "checking for shl_load in -ldld... " >&6; } 6655 if ${ac_cv_lib_dld_shl_load+:} false; then : 6656 $as_echo_n "(cached) " >&6 6657 else 6658 ac_check_lib_save_LIBS=$LIBS 6659 LIBS="-ldld $LIBS" 6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6661 /* end confdefs.h. */ 6662 6663 /* Override any GCC internal prototype to avoid an error. 6664 Use char because int might match the return type of a GCC 6665 builtin and then its argument prototype would still apply. */ 6666 #ifdef __cplusplus 6667 extern "C" 6668 #endif 6669 char shl_load (); 6670 int 6671 main () 6672 { 6673 return shl_load (); 6674 ; 6675 return 0; 6676 } 6677 _ACEOF 6678 if ac_fn_cxx_try_link "$LINENO"; then : 6679 ac_cv_lib_dld_shl_load=yes 6680 else 6681 ac_cv_lib_dld_shl_load=no 6682 fi 6683 rm -f core conftest.err conftest.$ac_objext \ 6684 conftest$ac_exeext conftest.$ac_ext 6685 LIBS=$ac_check_lib_save_LIBS 6686 fi 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 6688 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 6689 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6690 tcl_ok=yes 6691 else 6692 tcl_ok=no 6693 fi 6694 6695 if test "$tcl_ok" = yes; then 6696 SHLIB_CFLAGS="+z" 6697 SHLIB_LD="ld -b" 6698 SHLIB_LD_LIBS="" 6699 DL_OBJS="tclLoadShl.o" 6700 DL_LIBS="-ldld" 6701 LDFLAGS="$LDFLAGS -Wl,-E" 6702 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 6703 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 6704 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 6705 fi 6706 ;; 6707 IRIX-4.*) 6708 SHLIB_CFLAGS="-G 0" 6709 SHLIB_SUFFIX=".a" 6710 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 6711 SHLIB_LD_LIBS='${LIBS}' 6712 DL_OBJS="tclLoadAout.o" 6713 DL_LIBS="" 6714 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 6715 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 6716 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6717 SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' 6718 ;; 6719 IRIX-5.*) 6720 SHLIB_CFLAGS="" 6721 SHLIB_LD="ld -shared -rdata_shared" 6722 SHLIB_LD_LIBS='${LIBS}' 6723 SHLIB_SUFFIX=".so" 6724 DL_OBJS="tclLoadDl.o" 6725 DL_LIBS="" 6726 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6727 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 6728 ;; 6729 IRIX-6.*) 6730 SHLIB_CFLAGS="" 6731 SHLIB_LD="ld -n32 -shared -rdata_shared" 6732 SHLIB_LD_LIBS='${LIBS}' 6733 SHLIB_SUFFIX=".so" 6734 DL_OBJS="tclLoadDl.o" 6735 DL_LIBS="" 6736 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6737 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 6738 if test "$GCC" = "yes" ; then 6739 CFLAGS="$CFLAGS -mabi=n32" 6740 LDFLAGS="$LDFLAGS -mabi=n32" 6741 else 6742 case $system in 6743 IRIX-6.3) 6744 # Use to build 6.2 compatible binaries on 6.3. 6745 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 6746 ;; 6747 *) 6748 CFLAGS="$CFLAGS -n32" 6749 ;; 6750 esac 6751 LDFLAGS="$LDFLAGS -n32" 6752 fi 6753 ;; 6754 IRIX64-6.*) 6755 SHLIB_CFLAGS="" 6756 SHLIB_LD="ld -n32 -shared -rdata_shared" 6757 SHLIB_LD_LIBS='${LIBS}' 6758 SHLIB_SUFFIX=".so" 6759 DL_OBJS="tclLoadDl.o" 6760 DL_LIBS="" 6761 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6762 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 6763 6764 # Check to enable 64-bit flags for compiler/linker 6765 6766 if test "$do64bit" = "yes" ; then 6767 if test "$GCC" = "yes" ; then 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 6769 $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 6770 else 6771 do64bit_ok=yes 6772 SHLIB_LD="ld -64 -shared -rdata_shared" 6773 CFLAGS="$CFLAGS -64" 6774 LDFLAGS="$LDFLAGS -64" 6775 fi 6776 fi 6777 ;; 6778 Linux*) 6779 SHLIB_CFLAGS="-fPIC" 6780 SHLIB_LD_LIBS='${LIBS}' 6781 SHLIB_SUFFIX=".so" 6782 6783 CFLAGS_OPTIMIZE=-O2 6784 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 6785 # when you inline the string and math operations. Turn this off to 6786 # get rid of the warnings. 6787 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 6788 6789 if test "$have_dl" = yes; then 6790 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 6791 DL_OBJS="tclLoadDl.o" 6792 DL_LIBS="-ldl" 6793 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 6794 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6795 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6796 else 6797 ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" 6798 if test "x$ac_cv_header_dld_h" = xyes; then : 6799 6800 SHLIB_LD="ld -shared" 6801 DL_OBJS="tclLoadDld.o" 6802 DL_LIBS="-ldld" 6803 CC_SEARCH_FLAGS="" 6804 LD_SEARCH_FLAGS="" 6805 fi 6806 6807 6808 fi 6809 if test "`uname -m`" = "alpha" ; then 6810 CFLAGS="$CFLAGS -mieee" 6811 fi 6812 if test $do64bit = yes; then 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 6814 $as_echo_n "checking if compiler accepts -m64 flag... " >&6; } 6815 if ${tcl_cv_cc_m64+:} false; then : 6816 $as_echo_n "(cached) " >&6 6817 else 6818 6819 hold_cflags=$CFLAGS 6820 CFLAGS="$CFLAGS -m64" 6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6822 /* end confdefs.h. */ 6823 6824 int 6825 main () 6826 { 6827 6828 ; 6829 return 0; 6830 } 6831 _ACEOF 6832 if ac_fn_cxx_try_link "$LINENO"; then : 6833 tcl_cv_cc_m64=yes 6834 else 6835 tcl_cv_cc_m64=no 6836 fi 6837 rm -f core conftest.err conftest.$ac_objext \ 6838 conftest$ac_exeext conftest.$ac_ext 6839 CFLAGS=$hold_cflags 6840 fi 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 6842 $as_echo "$tcl_cv_cc_m64" >&6; } 6843 if test $tcl_cv_cc_m64 = yes; then 6844 CFLAGS="$CFLAGS -m64" 6845 do64bit_ok=yes 6846 fi 6847 fi 6848 6849 # The combo of gcc + glibc has a bug related 6850 # to inlining of functions like strtod(). The 6851 # -fno-builtin flag should address this problem 6852 # but it does not work. The -fno-inline flag 6853 # is kind of overkill but it works. 6854 # Disable inlining only when one of the 6855 # files in compat/*.c is being linked in. 6856 if test x"${LIBOBJS}" != x ; then 6857 CFLAGS="$CFLAGS -fno-inline" 6858 fi 6859 6860 # XIM peeking works under XFree86. 6861 $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h 6862 6863 6864 ;; 6865 GNU*) 6866 SHLIB_CFLAGS="-fPIC" 6867 SHLIB_LD_LIBS='${LIBS}' 6868 SHLIB_SUFFIX=".so" 6869 6870 if test "$have_dl" = yes; then 6871 SHLIB_LD="${CC} -shared" 6872 DL_OBJS="" 6873 DL_LIBS="-ldl" 6874 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 6875 CC_SEARCH_FLAGS="" 6876 LD_SEARCH_FLAGS="" 6877 else 6878 ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" 6879 if test "x$ac_cv_header_dld_h" = xyes; then : 6880 6881 SHLIB_LD="ld -shared" 6882 DL_OBJS="" 6883 DL_LIBS="-ldld" 6884 CC_SEARCH_FLAGS="" 6885 LD_SEARCH_FLAGS="" 6886 fi 6887 6888 6889 fi 6890 if test "`uname -m`" = "alpha" ; then 6891 CFLAGS="$CFLAGS -mieee" 6892 fi 6893 ;; 6894 Lynx*) 6895 SHLIB_CFLAGS="-fPIC" 6896 SHLIB_LD_LIBS='${LIBS}' 6897 SHLIB_SUFFIX=".so" 6898 CFLAGS_OPTIMIZE=-02 6899 SHLIB_LD="${CC} -shared " 6900 DL_OBJS="tclLoadDl.o" 6901 DL_LIBS="-mshared -ldl" 6902 LD_FLAGS="-Wl,--export-dynamic" 6903 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6904 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6905 ;; 6906 MP-RAS-02*) 6907 SHLIB_CFLAGS="-K PIC" 6908 SHLIB_LD="cc -G" 6909 SHLIB_LD_LIBS="" 6910 SHLIB_SUFFIX=".so" 6911 DL_OBJS="tclLoadDl.o" 6912 DL_LIBS="-ldl" 6913 CC_SEARCH_FLAGS="" 6914 LD_SEARCH_FLAGS="" 6915 ;; 6916 MP-RAS-*) 6917 SHLIB_CFLAGS="-K PIC" 6918 SHLIB_LD="cc -G" 6919 SHLIB_LD_LIBS="" 6920 SHLIB_SUFFIX=".so" 6921 DL_OBJS="tclLoadDl.o" 6922 DL_LIBS="-ldl" 6923 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6924 CC_SEARCH_FLAGS="" 6925 LD_SEARCH_FLAGS="" 6926 ;; 6927 NetBSD-*|FreeBSD-[1-2].*) 6928 # Not available on all versions: check for include file. 6929 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 6930 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 6931 6932 # NetBSD/SPARC needs -fPIC, -fpic will not do. 6933 SHLIB_CFLAGS="-fPIC" 6934 SHLIB_LD="ld -Bshareable -x" 6935 SHLIB_LD_LIBS='${LIBS}' 6936 SHLIB_SUFFIX=".so" 6937 DL_OBJS="tclLoadDl.o" 6938 DL_LIBS="" 6939 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6940 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 6942 $as_echo_n "checking for ELF... " >&6; } 6943 if ${tcl_cv_ld_elf+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945 else 6946 6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6948 /* end confdefs.h. */ 6949 6950 #ifdef __ELF__ 6951 yes 6952 #endif 6953 6954 _ACEOF 6955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6956 $EGREP "yes" >/dev/null 2>&1; then : 6957 tcl_cv_ld_elf=yes 6958 else 6959 tcl_cv_ld_elf=no 6960 fi 6961 rm -f conftest* 6962 6963 fi 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 6965 $as_echo "$tcl_cv_ld_elf" >&6; } 6966 if test $tcl_cv_ld_elf = yes; then 6967 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' 6968 else 6969 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 6970 fi 6971 6972 else 6973 6974 SHLIB_CFLAGS="" 6975 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" 6976 SHLIB_LD_LIBS='${LIBS}' 6977 SHLIB_SUFFIX=".a" 6978 DL_OBJS="tclLoadAout.o" 6979 DL_LIBS="" 6980 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 6981 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6982 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 6983 6984 fi 6985 6986 6987 6988 # FreeBSD doesn't handle version numbers with dots. 6989 6990 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 6991 TCL_LIB_VERSIONS_OK=nodots 6992 ;; 6993 OpenBSD-*) 6994 case `arch -s` in 6995 m88k|vax) 6996 SHLIB_CFLAGS="" 6997 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" 6998 SHLIB_LD_LIBS='${LIBS}' 6999 SHLIB_SUFFIX=".a" 7000 DL_OBJS="tclLoadAout.o" 7001 DL_LIBS="" 7002 LDFLAGS="" 7003 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7004 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7005 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 7006 ;; 7007 *) 7008 # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. 7009 case `machine` in 7010 sparc|sparc64) 7011 SHLIB_CFLAGS="-fPIC";; 7012 *) 7013 SHLIB_CFLAGS="-fpic";; 7014 esac 7015 SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" 7016 SHLIB_LD_LIBS='${LIBS}' 7017 SHLIB_SUFFIX=".so" 7018 DL_OBJS="tclLoadDl.o" 7019 DL_LIBS="" 7020 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7021 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7022 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 7024 $as_echo_n "checking for ELF... " >&6; } 7025 if ${tcl_cv_ld_elf+:} false; then : 7026 $as_echo_n "(cached) " >&6 7027 else 7028 7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7030 /* end confdefs.h. */ 7031 7032 #ifdef __ELF__ 7033 yes 7034 #endif 7035 7036 _ACEOF 7037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7038 $EGREP "yes" >/dev/null 2>&1; then : 7039 tcl_cv_ld_elf=yes 7040 else 7041 tcl_cv_ld_elf=no 7042 fi 7043 rm -f conftest* 7044 7045 fi 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 7047 $as_echo "$tcl_cv_ld_elf" >&6; } 7048 if test $tcl_cv_ld_elf = yes; then 7049 LDFLAGS=-Wl,-export-dynamic 7050 else 7051 LDFLAGS="" 7052 fi 7053 ;; 7054 esac 7055 7056 # OpenBSD doesn't do version numbers with dots. 7057 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 7058 TCL_LIB_VERSIONS_OK=nodots 7059 ;; 7060 FreeBSD-*) 7061 # FreeBSD 3.* and greater have ELF. 7062 SHLIB_CFLAGS="-fPIC" 7063 SHLIB_LD="ld -Bshareable -x" 7064 SHLIB_LD_LIBS='${LIBS}' 7065 SHLIB_SUFFIX=".so" 7066 DL_OBJS="tclLoadDl.o" 7067 DL_LIBS="" 7068 LDFLAGS="$LDFLAGS -export-dynamic" 7069 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7070 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7071 if test "${TCL_THREADS}" = "1" ; then 7072 # The -pthread needs to go in the CFLAGS, not LIBS 7073 LIBS=`echo $LIBS | sed s/-pthread//` 7074 CFLAGS="$CFLAGS -pthread" 7075 LDFLAGS="$LDFLAGS -pthread" 7076 fi 7077 case $system in 7078 FreeBSD-3.*) 7079 # FreeBSD-3 doesn't handle version numbers with dots. 7080 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 7081 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' 7082 TCL_LIB_VERSIONS_OK=nodots 7083 ;; 7084 esac 7085 ;; 7086 Darwin-*) 7087 CFLAGS_OPTIMIZE="-Os" 7088 SHLIB_CFLAGS="-fno-common" 7089 # To avoid discrepancies between what headers configure sees during 7090 # preprocessing tests and compiling tests, move any -isysroot and 7091 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 7092 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 7093 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 7094 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 7095 CFLAGS="`echo " ${CFLAGS}" | \ 7096 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 7097 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 7098 if test $do64bit = yes; then 7099 case `arch` in 7100 ppc) 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 7102 $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } 7103 if ${tcl_cv_cc_arch_ppc64+:} false; then : 7104 $as_echo_n "(cached) " >&6 7105 else 7106 7107 hold_cflags=$CFLAGS 7108 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7110 /* end confdefs.h. */ 7111 7112 int 7113 main () 7114 { 7115 7116 ; 7117 return 0; 7118 } 7119 _ACEOF 7120 if ac_fn_cxx_try_link "$LINENO"; then : 7121 tcl_cv_cc_arch_ppc64=yes 7122 else 7123 tcl_cv_cc_arch_ppc64=no 7124 fi 7125 rm -f core conftest.err conftest.$ac_objext \ 7126 conftest$ac_exeext conftest.$ac_ext 7127 CFLAGS=$hold_cflags 7128 fi 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 7130 $as_echo "$tcl_cv_cc_arch_ppc64" >&6; } 7131 if test $tcl_cv_cc_arch_ppc64 = yes; then 7132 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 7133 do64bit_ok=yes 7134 fi;; 7135 i386) 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 7137 $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } 7138 if ${tcl_cv_cc_arch_x86_64+:} false; then : 7139 $as_echo_n "(cached) " >&6 7140 else 7141 7142 hold_cflags=$CFLAGS 7143 CFLAGS="$CFLAGS -arch x86_64" 7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7145 /* end confdefs.h. */ 7146 7147 int 7148 main () 7149 { 7150 7151 ; 7152 return 0; 7153 } 7154 _ACEOF 7155 if ac_fn_cxx_try_link "$LINENO"; then : 7156 tcl_cv_cc_arch_x86_64=yes 7157 else 7158 tcl_cv_cc_arch_x86_64=no 7159 fi 7160 rm -f core conftest.err conftest.$ac_objext \ 7161 conftest$ac_exeext conftest.$ac_ext 7162 CFLAGS=$hold_cflags 7163 fi 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 7165 $as_echo "$tcl_cv_cc_arch_x86_64" >&6; } 7166 if test $tcl_cv_cc_arch_x86_64 = yes; then 7167 CFLAGS="$CFLAGS -arch x86_64" 7168 do64bit_ok=yes 7169 fi;; 7170 *) 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 7172 $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 7173 esac 7174 else 7175 # Check for combined 32-bit and 64-bit fat build 7176 echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ 7177 echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ 7178 fat_32_64=yes 7179 fi 7180 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 7182 $as_echo_n "checking if ld accepts -single_module flag... " >&6; } 7183 if ${tcl_cv_ld_single_module+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185 else 7186 7187 hold_ldflags=$LDFLAGS 7188 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7190 /* end confdefs.h. */ 7191 7192 int 7193 main () 7194 { 7195 int i; 7196 ; 7197 return 0; 7198 } 7199 _ACEOF 7200 if ac_fn_cxx_try_link "$LINENO"; then : 7201 tcl_cv_ld_single_module=yes 7202 else 7203 tcl_cv_ld_single_module=no 7204 fi 7205 rm -f core conftest.err conftest.$ac_objext \ 7206 conftest$ac_exeext conftest.$ac_ext 7207 LDFLAGS=$hold_ldflags 7208 fi 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 7210 $as_echo "$tcl_cv_ld_single_module" >&6; } 7211 if test $tcl_cv_ld_single_module = yes; then 7212 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 7213 fi 7214 SHLIB_LD_LIBS='${LIBS}' 7215 SHLIB_SUFFIX=".dylib" 7216 DL_OBJS="tclLoadDyld.o" 7217 DL_LIBS="" 7218 # Don't use -prebind when building for Mac OS X 10.4 or later only: 7219 test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 7220 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ 7221 LDFLAGS="$LDFLAGS -prebind" 7222 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 7224 $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } 7225 if ${tcl_cv_ld_search_paths_first+:} false; then : 7226 $as_echo_n "(cached) " >&6 7227 else 7228 7229 hold_ldflags=$LDFLAGS 7230 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7232 /* end confdefs.h. */ 7233 7234 int 7235 main () 7236 { 7237 int i; 7238 ; 7239 return 0; 7240 } 7241 _ACEOF 7242 if ac_fn_cxx_try_link "$LINENO"; then : 7243 tcl_cv_ld_search_paths_first=yes 7244 else 7245 tcl_cv_ld_search_paths_first=no 7246 fi 7247 rm -f core conftest.err conftest.$ac_objext \ 7248 conftest$ac_exeext conftest.$ac_ext 7249 LDFLAGS=$hold_ldflags 7250 fi 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 7252 $as_echo "$tcl_cv_ld_search_paths_first" >&6; } 7253 if test $tcl_cv_ld_search_paths_first = yes; then 7254 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 7255 fi 7256 CC_SEARCH_FLAGS="" 7257 LD_SEARCH_FLAGS="" 7258 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 7259 PLAT_OBJS=\$\(MAC\_OSX_OBJS\) 7260 PLAT_SRCS=\$\(MAC\_OSX_SRCS\) 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 7262 $as_echo_n "checking whether to use CoreFoundation... " >&6; } 7263 # Check whether --enable-corefoundation was given. 7264 if test "${enable_corefoundation+set}" = set; then : 7265 enableval=$enable_corefoundation; tcl_corefoundation=$enableval 7266 else 7267 tcl_corefoundation=yes 7268 fi 7269 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 7271 $as_echo "$tcl_corefoundation" >&6; } 7272 if test $tcl_corefoundation = yes; then 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 7274 $as_echo_n "checking for CoreFoundation.framework... " >&6; } 7275 if ${tcl_cv_lib_corefoundation+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277 else 7278 7279 hold_libs=$LIBS 7280 if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do 7281 # On Tiger there is no 64-bit CF, so remove 64-bit archs 7282 # from CFLAGS et al. while testing for presence of CF. 7283 # 64-bit CF is disabled in tclUnixPort.h if necessary. 7284 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 7285 done; fi 7286 LIBS="$LIBS -framework CoreFoundation" 7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7288 /* end confdefs.h. */ 7289 #include <CoreFoundation/CoreFoundation.h> 7290 int 7291 main () 7292 { 7293 CFBundleRef b = CFBundleGetMainBundle(); 7294 ; 7295 return 0; 7296 } 7297 _ACEOF 7298 if ac_fn_cxx_try_link "$LINENO"; then : 7299 tcl_cv_lib_corefoundation=yes 7300 else 7301 tcl_cv_lib_corefoundation=no 7302 fi 7303 rm -f core conftest.err conftest.$ac_objext \ 7304 conftest$ac_exeext conftest.$ac_ext 7305 if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do 7306 eval $v'="$hold_'$v'"' 7307 done; fi; LIBS=$hold_libs 7308 fi 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 7310 $as_echo "$tcl_cv_lib_corefoundation" >&6; } 7311 if test $tcl_cv_lib_corefoundation = yes; then 7312 LIBS="$LIBS -framework CoreFoundation" 7313 $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h 7314 7315 else 7316 tcl_corefoundation=no 7317 fi 7318 if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 7320 $as_echo_n "checking for 64-bit CoreFoundation... " >&6; } 7321 if ${tcl_cv_lib_corefoundation_64+:} false; then : 7322 $as_echo_n "(cached) " >&6 7323 else 7324 7325 for v in CFLAGS CPPFLAGS LDFLAGS; do 7326 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 7327 done 7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7329 /* end confdefs.h. */ 7330 #include <CoreFoundation/CoreFoundation.h> 7331 int 7332 main () 7333 { 7334 CFBundleRef b = CFBundleGetMainBundle(); 7335 ; 7336 return 0; 7337 } 7338 _ACEOF 7339 if ac_fn_cxx_try_link "$LINENO"; then : 7340 tcl_cv_lib_corefoundation_64=yes 7341 else 7342 tcl_cv_lib_corefoundation_64=no 7343 fi 7344 rm -f core conftest.err conftest.$ac_objext \ 7345 conftest$ac_exeext conftest.$ac_ext 7346 for v in CFLAGS CPPFLAGS LDFLAGS; do 7347 eval $v'="$hold_'$v'"' 7348 done 7349 fi 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 7351 $as_echo "$tcl_cv_lib_corefoundation_64" >&6; } 7352 if test $tcl_cv_lib_corefoundation_64 = no; then 7353 $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h 7354 7355 fi 7356 fi 7357 fi 7358 $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h 7359 7360 ;; 7361 NEXTSTEP-*) 7362 SHLIB_CFLAGS="" 7363 SHLIB_LD="cc -nostdlib -r" 7364 SHLIB_LD_LIBS="" 7365 SHLIB_SUFFIX=".so" 7366 DL_OBJS="tclLoadNext.o" 7367 DL_LIBS="" 7368 CC_SEARCH_FLAGS="" 7369 LD_SEARCH_FLAGS="" 7370 ;; 7371 OS/390-*) 7372 CFLAGS_OPTIMIZE="" # Optimizer is buggy 7373 $as_echo "#define _OE_SOCKETS 1" >>confdefs.h 7374 # needed in sys/socket.h 7375 ;; 7376 OSF1-1.0|OSF1-1.1|OSF1-1.2) 7377 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 7378 SHLIB_CFLAGS="" 7379 # Hack: make package name same as library name 7380 SHLIB_LD='ld -R -export :' 7381 SHLIB_LD_LIBS="" 7382 SHLIB_SUFFIX=".so" 7383 DL_OBJS="tclLoadOSF.o" 7384 DL_LIBS="" 7385 CC_SEARCH_FLAGS="" 7386 LD_SEARCH_FLAGS="" 7387 ;; 7388 OSF1-1.*) 7389 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 7390 SHLIB_CFLAGS="-fPIC" 7391 if test "$SHARED_BUILD" = "1" ; then 7392 SHLIB_LD="ld -shared" 7393 else 7394 SHLIB_LD="ld -non_shared" 7395 fi 7396 SHLIB_LD_LIBS="" 7397 SHLIB_SUFFIX=".so" 7398 DL_OBJS="tclLoadDl.o" 7399 DL_LIBS="" 7400 CC_SEARCH_FLAGS="" 7401 LD_SEARCH_FLAGS="" 7402 ;; 7403 OSF1-V*) 7404 # Digital OSF/1 7405 SHLIB_CFLAGS="" 7406 if test "$SHARED_BUILD" = "1" ; then 7407 SHLIB_LD='ld -shared -expect_unresolved "*"' 7408 else 7409 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 7410 fi 7411 SHLIB_LD_LIBS="" 7412 SHLIB_SUFFIX=".so" 7413 DL_OBJS="tclLoadDl.o" 7414 DL_LIBS="" 7415 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7416 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7417 if test "$GCC" = "yes" ; then 7418 CFLAGS="$CFLAGS -mieee" 7419 else 7420 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 7421 fi 7422 # see pthread_intro(3) for pthread support on osf1, k.furukawa 7423 if test "${TCL_THREADS}" = "1" ; then 7424 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 7425 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 7426 LIBS=`echo $LIBS | sed s/-lpthreads//` 7427 if test "$GCC" = "yes" ; then 7428 LIBS="$LIBS -lpthread -lmach -lexc" 7429 else 7430 CFLAGS="$CFLAGS -pthread" 7431 LDFLAGS="$LDFLAGS -pthread" 7432 fi 7433 fi 7434 7435 ;; 7436 QNX-6*) 7437 # QNX RTP 7438 # This may work for all QNX, but it was only reported for v6. 7439 SHLIB_CFLAGS="-fPIC" 7440 SHLIB_LD="ld -Bshareable -x" 7441 SHLIB_LD_LIBS="" 7442 SHLIB_SUFFIX=".so" 7443 DL_OBJS="tclLoadDl.o" 7444 # dlopen is in -lc on QNX 7445 DL_LIBS="" 7446 CC_SEARCH_FLAGS="" 7447 LD_SEARCH_FLAGS="" 7448 ;; 7449 RISCos-*) 7450 SHLIB_CFLAGS="-G 0" 7451 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 7452 SHLIB_LD_LIBS='${LIBS}' 7453 SHLIB_SUFFIX=".a" 7454 DL_OBJS="tclLoadAout.o" 7455 DL_LIBS="" 7456 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 7457 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7458 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7459 ;; 7460 SCO_SV-3.2*) 7461 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 7462 # this test works, since "uname -s" was non-standard in 3.2.4 and 7463 # below. 7464 if test "$GCC" = "yes" ; then 7465 SHLIB_CFLAGS="-fPIC -melf" 7466 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 7467 else 7468 SHLIB_CFLAGS="-Kpic -belf" 7469 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 7470 fi 7471 SHLIB_LD="ld -G" 7472 SHLIB_LD_LIBS="" 7473 SHLIB_SUFFIX=".so" 7474 DL_OBJS="tclLoadDl.o" 7475 DL_LIBS="" 7476 CC_SEARCH_FLAGS="" 7477 LD_SEARCH_FLAGS="" 7478 ;; 7479 SINIX*5.4*) 7480 SHLIB_CFLAGS="-K PIC" 7481 SHLIB_LD="cc -G" 7482 SHLIB_LD_LIBS="" 7483 SHLIB_SUFFIX=".so" 7484 DL_OBJS="tclLoadDl.o" 7485 DL_LIBS="-ldl" 7486 CC_SEARCH_FLAGS="" 7487 LD_SEARCH_FLAGS="" 7488 ;; 7489 SunOS-4*) 7490 SHLIB_CFLAGS="-PIC" 7491 SHLIB_LD="ld" 7492 SHLIB_LD_LIBS="" 7493 SHLIB_SUFFIX=".so" 7494 DL_OBJS="tclLoadDl.o" 7495 DL_LIBS="-ldl" 7496 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7497 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7498 7499 # SunOS can't handle version numbers with dots in them in library 7500 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 7501 # requires an extra version number at the end of .so file names. 7502 # So, the library has to have a name like libtcl75.so.1.0 7503 7504 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 7505 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 7506 TCL_LIB_VERSIONS_OK=nodots 7507 ;; 7508 SunOS-5.[0-6]) 7509 # Careful to not let 5.10+ fall into this case 7510 7511 # Note: If _REENTRANT isn't defined, then Solaris 7512 # won't define thread-safe library routines. 7513 7514 $as_echo "#define _REENTRANT 1" >>confdefs.h 7515 7516 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 7517 7518 7519 SHLIB_CFLAGS="-KPIC" 7520 7521 # Note: need the LIBS below, otherwise Tk won't find Tcl's 7522 # symbols when dynamically loaded into tclsh. 7523 7524 SHLIB_LD_LIBS='${LIBS}' 7525 SHLIB_SUFFIX=".so" 7526 DL_OBJS="tclLoadDl.o" 7527 DL_LIBS="-ldl" 7528 if test "$GCC" = "yes" ; then 7529 SHLIB_LD="$CC -shared" 7530 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7531 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7532 else 7533 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7534 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7535 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7536 fi 7537 ;; 7538 SunOS-5*) 7539 # Note: If _REENTRANT isn't defined, then Solaris 7540 # won't define thread-safe library routines. 7541 7542 $as_echo "#define _REENTRANT 1" >>confdefs.h 7543 7544 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 7545 7546 7547 SHLIB_CFLAGS="-KPIC" 7548 7549 # Check to enable 64-bit flags for compiler/linker 7550 if test "$do64bit" = "yes" ; then 7551 arch=`isainfo` 7552 if test "$arch" = "sparcv9 sparc" ; then 7553 if test "$GCC" = "yes" ; then 7554 if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 7556 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 7557 else 7558 do64bit_ok=yes 7559 CFLAGS="$CFLAGS -m64 -mcpu=v9" 7560 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 7561 SHLIB_CFLAGS="-fPIC" 7562 fi 7563 else 7564 do64bit_ok=yes 7565 if test "$do64bitVIS" = "yes" ; then 7566 CFLAGS="$CFLAGS -xarch=v9a" 7567 LDFLAGS="$LDFLAGS -xarch=v9a" 7568 else 7569 CFLAGS="$CFLAGS -xarch=v9" 7570 LDFLAGS="$LDFLAGS -xarch=v9" 7571 fi 7572 # Solaris 64 uses this as well 7573 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 7574 fi 7575 elif test "$arch" = "amd64 i386" ; then 7576 if test "$GCC" = "yes" ; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 7578 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7579 else 7580 do64bit_ok=yes 7581 CFLAGS="$CFLAGS -xarch=amd64" 7582 LDFLAGS="$LDFLAGS -xarch=amd64" 7583 fi 7584 else 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 7586 $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 7587 fi 7588 fi 7589 7590 # Note: need the LIBS below, otherwise Tk won't find Tcl's 7591 # symbols when dynamically loaded into tclsh. 7592 7593 SHLIB_LD_LIBS='${LIBS}' 7594 SHLIB_SUFFIX=".so" 7595 DL_OBJS="tclLoadDl.o" 7596 DL_LIBS="-ldl" 7597 if test "$GCC" = "yes" ; then 7598 SHLIB_LD="$CC -shared" 7599 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7600 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7601 if test "$do64bit_ok" = "yes" ; then 7602 # We need to specify -static-libgcc or we need to 7603 # add the path to the sparv9 libgcc. 7604 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 7605 # for finding sparcv9 libgcc, get the regular libgcc 7606 # path, remove so name and append 'sparcv9' 7607 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 7608 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 7609 fi 7610 else 7611 case $system in 7612 SunOS-5.[1-9][0-9]*) 7613 SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; 7614 *) 7615 SHLIB_LD="/usr/ccs/bin/ld -G -z text";; 7616 esac 7617 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7618 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7619 fi 7620 ;; 7621 ULTRIX-4.*) 7622 SHLIB_CFLAGS="-G 0" 7623 SHLIB_SUFFIX=".a" 7624 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 7625 SHLIB_LD_LIBS='${LIBS}' 7626 DL_OBJS="tclLoadAout.o" 7627 DL_LIBS="" 7628 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 7629 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 7630 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7631 if test "$GCC" != "yes" ; then 7632 CFLAGS="$CFLAGS -DHAVE_TZSET -std1" 7633 fi 7634 ;; 7635 UNIX_SV* | UnixWare-5*) 7636 SHLIB_CFLAGS="-KPIC" 7637 SHLIB_LD="cc -G" 7638 SHLIB_LD_LIBS="" 7639 SHLIB_SUFFIX=".so" 7640 DL_OBJS="tclLoadDl.o" 7641 DL_LIBS="-ldl" 7642 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 7643 # that don't grok the -Bexport option. Test that it does. 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 7645 $as_echo_n "checking for ld accepts -Bexport flag... " >&6; } 7646 if ${tcl_cv_ld_Bexport+:} false; then : 7647 $as_echo_n "(cached) " >&6 7648 else 7649 7650 hold_ldflags=$LDFLAGS 7651 LDFLAGS="$LDFLAGS -Wl,-Bexport" 7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7653 /* end confdefs.h. */ 7654 7655 int 7656 main () 7657 { 7658 int i; 7659 ; 7660 return 0; 7661 } 7662 _ACEOF 7663 if ac_fn_cxx_try_link "$LINENO"; then : 7664 tcl_cv_ld_Bexport=yes 7665 else 7666 tcl_cv_ld_Bexport=no 7667 fi 7668 rm -f core conftest.err conftest.$ac_objext \ 7669 conftest$ac_exeext conftest.$ac_ext 7670 LDFLAGS=$hold_ldflags 7671 fi 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 7673 $as_echo "$tcl_cv_ld_Bexport" >&6; } 7674 if test $tcl_cv_ld_Bexport = yes; then 7675 LDFLAGS="$LDFLAGS -Wl,-Bexport" 7676 fi 7677 CC_SEARCH_FLAGS="" 7678 LD_SEARCH_FLAGS="" 7679 ;; 7680 esac 7681 7682 if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 7684 $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 7685 fi 7686 7687 7688 7689 7690 # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic 7691 # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, 7692 # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need 7693 # to determine which of several header files defines the a.out file 7694 # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we 7695 # support only a file format that is more or less version-7-compatible. 7696 # In particular, 7697 # - a.out files must begin with `struct exec'. 7698 # - the N_TXTOFF on the `struct exec' must compute the seek address 7699 # of the text segment 7700 # - The `struct exec' must contain a_magic, a_text, a_data, a_bss 7701 # and a_entry fields. 7702 # The following compilation should succeed if and only if either sys/exec.h 7703 # or a.out.h is usable for the purpose. 7704 # 7705 # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the 7706 # `struct exec' includes a second header that contains information that 7707 # duplicates the v7 fields that are needed. 7708 7709 if test "x$DL_OBJS" = "xtclLoadAout.o" ; then 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5 7711 $as_echo_n "checking sys/exec.h... " >&6; } 7712 if ${tcl_cv_sysexec_h+:} false; then : 7713 $as_echo_n "(cached) " >&6 7714 else 7715 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717 /* end confdefs.h. */ 7718 #include <sys/exec.h> 7719 int 7720 main () 7721 { 7722 7723 struct exec foo; 7724 unsigned long seek; 7725 int flag; 7726 #if defined(__mips) || defined(mips) 7727 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 7728 #else 7729 seek = N_TXTOFF (foo); 7730 #endif 7731 flag = (foo.a_magic == OMAGIC); 7732 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 7733 7734 ; 7735 return 0; 7736 } 7737 _ACEOF 7738 if ac_fn_cxx_try_compile "$LINENO"; then : 7739 tcl_cv_sysexec_h=usable 7740 else 7741 tcl_cv_sysexec_h=unusable 7742 fi 7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7744 fi 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5 7746 $as_echo "$tcl_cv_sysexec_h" >&6; } 7747 if test $tcl_cv_sysexec_h = usable; then 7748 $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h 7749 7750 else 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5 7752 $as_echo_n "checking a.out.h... " >&6; } 7753 if ${tcl_cv_aout_h+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755 else 7756 7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758 /* end confdefs.h. */ 7759 #include <a.out.h> 7760 int 7761 main () 7762 { 7763 7764 struct exec foo; 7765 unsigned long seek; 7766 int flag; 7767 #if defined(__mips) || defined(mips) 7768 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 7769 #else 7770 seek = N_TXTOFF (foo); 7771 #endif 7772 flag = (foo.a_magic == OMAGIC); 7773 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 7774 7775 ; 7776 return 0; 7777 } 7778 _ACEOF 7779 if ac_fn_cxx_try_compile "$LINENO"; then : 7780 tcl_cv_aout_h=usable 7781 else 7782 tcl_cv_aout_h=unusable 7783 fi 7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7785 fi 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5 7787 $as_echo "$tcl_cv_aout_h" >&6; } 7788 if test $tcl_cv_aout_h = usable; then 7789 $as_echo "#define USE_A_OUT_H 1" >>confdefs.h 7790 7791 else 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5 7793 $as_echo_n "checking sys/exec_aout.h... " >&6; } 7794 if ${tcl_cv_sysexecaout_h+:} false; then : 7795 $as_echo_n "(cached) " >&6 7796 else 7797 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7799 /* end confdefs.h. */ 7800 #include <sys/exec_aout.h> 7801 int 7802 main () 7803 { 7804 7805 struct exec foo; 7806 unsigned long seek; 7807 int flag; 7808 #if defined(__mips) || defined(mips) 7809 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 7810 #else 7811 seek = N_TXTOFF (foo); 7812 #endif 7813 flag = (foo.a_midmag == OMAGIC); 7814 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 7815 7816 ; 7817 return 0; 7818 } 7819 _ACEOF 7820 if ac_fn_cxx_try_compile "$LINENO"; then : 7821 tcl_cv_sysexecaout_h=usable 7822 else 7823 tcl_cv_sysexecaout_h=unusable 7824 fi 7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7826 fi 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5 7828 $as_echo "$tcl_cv_sysexecaout_h" >&6; } 7829 if test $tcl_cv_sysexecaout_h = usable; then 7830 $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h 7831 7832 else 7833 DL_OBJS="" 7834 fi 7835 fi 7836 fi 7837 fi 7838 7839 # Step 5: disable dynamic loading if requested via a command-line switch. 7840 7841 # Check whether --enable-load was given. 7842 if test "${enable_load+set}" = set; then : 7843 enableval=$enable_load; tcl_ok=$enableval 7844 else 7845 tcl_ok=yes 7846 fi 7847 7848 if test "$tcl_ok" = "no"; then 7849 DL_OBJS="" 7850 fi 7851 7852 if test "x$DL_OBJS" != "x" ; then 7853 BUILD_DLTEST="\$(DLTEST_TARGETS)" 7854 else 7855 echo "Can't figure out how to do dynamic loading or shared libraries" 7856 echo "on this system." 7857 SHLIB_CFLAGS="" 7858 SHLIB_LD="" 7859 SHLIB_SUFFIX="" 7860 DL_OBJS="tclLoadNone.o" 7861 DL_LIBS="" 7862 LDFLAGS="$LDFLAGS_ORIG" 7863 CC_SEARCH_FLAGS="" 7864 LD_SEARCH_FLAGS="" 7865 BUILD_DLTEST="" 7866 fi 7867 7868 # If we're running gcc, then change the C flags for compiling shared 7869 # libraries to the right flags for gcc, instead of those for the 7870 # standard manufacturer compiler. 7871 7872 if test "$DL_OBJS" != "tclLoadNone.o" ; then 7873 if test "$GCC" = "yes" ; then 7874 case $system in 7875 AIX-*) 7876 ;; 7877 BSD/OS*) 7878 ;; 7879 IRIX*) 7880 ;; 7881 NetBSD-*|FreeBSD-*|OpenBSD-*) 7882 ;; 7883 Darwin-*) 7884 ;; 7885 RISCos-*) 7886 ;; 7887 SCO_SV-3.2*) 7888 ;; 7889 ULTRIX-4.*) 7890 ;; 7891 *) 7892 SHLIB_CFLAGS="-fPIC" 7893 ;; 7894 esac 7895 fi 7896 fi 7897 7898 if test "$SHARED_LIB_SUFFIX" = "" ; then 7899 SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' 7900 fi 7901 if test "$UNSHARED_LIB_SUFFIX" = "" ; then 7902 UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' 7903 fi 7904 7905 if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then 7906 LIB_SUFFIX=${SHARED_LIB_SUFFIX} 7907 MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' 7908 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' 7909 else 7910 LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} 7911 7912 if test "$RANLIB" = "" ; then 7913 MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' 7914 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' 7915 else 7916 MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' 7917 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))' 7918 fi 7919 7920 fi 7921 7922 7923 # Stub lib does not depend on shared/static configuration 7924 if test "$RANLIB" = "" ; then 7925 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' 7926 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)' 7927 else 7928 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' 7929 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))' 7930 fi 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 7965 $as_echo_n "checking for build with symbols... " >&6; } 7966 # Check whether --enable-symbols was given. 7967 if test "${enable_symbols+set}" = set; then : 7968 enableval=$enable_symbols; tcl_ok=$enableval 7969 else 7970 tcl_ok=no 7971 fi 7972 7973 # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. 7974 if test "$tcl_ok" = "no"; then 7975 CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' 7976 LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' 7977 DBGX="" 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7979 $as_echo "no" >&6; } 7980 else 7981 CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' 7982 LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' 7983 DBGX=g 7984 if test "$tcl_ok" = "yes"; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5 7986 $as_echo "yes (standard debugging)" >&6; } 7987 fi 7988 fi 7989 7990 7991 7992 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 7993 $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h 7994 7995 fi 7996 7997 if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then 7998 $as_echo "#define TCL_COMPILE_DEBUG 1" >>confdefs.h 7999 8000 $as_echo "#define TCL_COMPILE_STATS 1" >>confdefs.h 8001 8002 fi 8003 8004 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 8005 if test "$tcl_ok" = "all"; then 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem compile debugging" >&5 8007 $as_echo "enabled symbols mem compile debugging" >&6; } 8008 else 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 8010 $as_echo "enabled $tcl_ok debugging" >&6; } 8011 fi 8012 fi 8013 6106 8014 6107 8015 … … 6158 8066 6159 8067 6160 ac_config_files="$ac_config_files Makefile fixrunpaths.tcl apps/Makefile apps/about apps/copy_rappture_examples apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff pkgs/DicomToVtk/Makefile pkgs/DicomToVtk/pkgIndex.tcl pkgs/DxToVtk/Makefile pkgs/DxToVtk/pkgIndex.tcl pkgs/Makefile pkgs/PdbToVtk/Makefile pkgs/PdbToVtk/pkgIndex.tcl pkgs/builder/Makefile pkgs/builder/pkgIndex.tcl pkgs/builder/scripts/Makefile pkgs/diffview/Makefile pkgs/diffview/pkgIndex.tcl pkgs/hotspot/Makefile pkgs/hotspot/pkgIndex.tcl pkgs/listbox/Makefile pkgs/listbox/pkgIndex.tcl pkgs/objects/Makefile pkgs/p2p/Makefile pkgs/placard/Makefile pkgs/placard/pkgIndex.tcl pkgs/readpoints/Makefile pkgs/readpoints/pkgIndex.tcl pkgs/runner/Makefile pkgs/runner/pkgIndex.tcl pkgs/runner/scripts/Makefile pkgs/squeezer/Makefile pkgs/squeezer/pkgIndex.tcl pkgs/system/Makefile pkgs/system/pkgIndex.tcl pkgs/tester/Makefile pkgs/tester/pkgIndex.tcl pkgs/tester/scripts/Makefile" 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 ac_config_files="$ac_config_files Makefile fixrunpaths.tcl apps/Makefile apps/about apps/copy_rappture_examples apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff lib/Makefile lib/objects/Makefile lib/objects/RpHash.h lib/rappture/Makefile lib/rappture2/Makefile lib/rapptureConfig.sh pkgs/DicomToVtk/Makefile pkgs/DicomToVtk/pkgIndex.tcl pkgs/DxToVtk/Makefile pkgs/DxToVtk/pkgIndex.tcl pkgs/Makefile pkgs/PdbToVtk/Makefile pkgs/PdbToVtk/pkgIndex.tcl pkgs/builder/Makefile pkgs/builder/pkgIndex.tcl pkgs/builder/scripts/Makefile pkgs/diffview/Makefile pkgs/diffview/pkgIndex.tcl pkgs/hotspot/Makefile pkgs/hotspot/pkgIndex.tcl pkgs/listbox/Makefile pkgs/listbox/pkgIndex.tcl pkgs/objects/Makefile pkgs/p2p/Makefile pkgs/placard/Makefile pkgs/placard/pkgIndex.tcl pkgs/readpoints/Makefile pkgs/readpoints/pkgIndex.tcl pkgs/runner/Makefile pkgs/runner/pkgIndex.tcl pkgs/runner/scripts/Makefile pkgs/squeezer/Makefile pkgs/squeezer/pkgIndex.tcl pkgs/system/Makefile pkgs/system/pkgIndex.tcl pkgs/tester/Makefile pkgs/tester/pkgIndex.tcl pkgs/tester/scripts/Makefile" 6161 8081 6162 8082 cat >confcache <<\_ACEOF … … 6250 8170 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6251 8171 6252 # Transform confdefs.h into DEFS. 6253 # Protect against shell expansion while executing Makefile rules. 6254 # Protect against Makefile macro expansion. 6255 # 6256 # If the first sed substitution is executed (which looks for macros that 6257 # take arguments), then branch to the quote section. Otherwise, 6258 # look for a macro that doesn't take arguments. 6259 ac_script=' 6260 :mline 6261 /\\$/{ 6262 N 6263 s,\\\n,, 6264 b mline 6265 } 6266 t clear 6267 :clear 6268 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 6269 t quote 6270 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 6271 t quote 6272 b any 6273 :quote 6274 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 6275 s/\[/\\&/g 6276 s/\]/\\&/g 6277 s/\$/$$/g 6278 H 6279 :any 6280 ${ 6281 g 6282 s/^\n// 6283 s/\n/ /g 6284 p 6285 } 6286 ' 6287 DEFS=`sed -n "$ac_script" confdefs.h` 6288 8172 DEFS=-DHAVE_CONFIG_H 6289 8173 6290 8174 ac_libobjs= … … 6721 8605 esac 6722 8606 8607 case $ac_config_headers in *" 8608 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 8609 esac 6723 8610 6724 8611 … … 6726 8613 # Files that config.status was made for. 6727 8614 config_files="$ac_config_files" 8615 config_headers="$ac_config_headers" 6728 8616 6729 8617 _ACEOF … … 6746 8634 --file=FILE[:TEMPLATE] 6747 8635 instantiate the configuration file FILE 8636 --header=FILE[:TEMPLATE] 8637 instantiate the configuration header FILE 6748 8638 6749 8639 Configuration files: 6750 8640 $config_files 8641 8642 Configuration headers: 8643 $config_headers 6751 8644 6752 8645 Report bugs to <rappture@nanohub.org>." … … 6812 8705 as_fn_append CONFIG_FILES " '$ac_optarg'" 6813 8706 ac_need_defaults=false;; 6814 --he | --h | --help | --hel | -h ) 8707 --header | --heade | --head | --hea ) 8708 $ac_shift 8709 case $ac_optarg in 8710 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8711 esac 8712 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8713 ac_need_defaults=false;; 8714 --he | --h) 8715 # Conflict between --help and --header 8716 as_fn_error $? "ambiguous option: \`$1' 8717 Try \`$0 --help' for more information.";; 8718 --help | --hel | -h ) 6815 8719 $as_echo "$ac_cs_usage"; exit ;; 6816 8720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 6868 8772 do 6869 8773 case $ac_config_target in 8774 "lib/rappture/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/rappture/config.h" ;; 6870 8775 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6871 8776 "fixrunpaths.tcl") CONFIG_FILES="$CONFIG_FILES fixrunpaths.tcl" ;; … … 6881 8786 "apps/simsim") CONFIG_FILES="$CONFIG_FILES apps/simsim" ;; 6882 8787 "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;; 8788 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 8789 "lib/objects/Makefile") CONFIG_FILES="$CONFIG_FILES lib/objects/Makefile" ;; 8790 "lib/objects/RpHash.h") CONFIG_FILES="$CONFIG_FILES lib/objects/RpHash.h" ;; 8791 "lib/rappture/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rappture/Makefile" ;; 8792 "lib/rappture2/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rappture2/Makefile" ;; 8793 "lib/rapptureConfig.sh") CONFIG_FILES="$CONFIG_FILES lib/rapptureConfig.sh" ;; 6883 8794 "pkgs/DicomToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/DicomToVtk/Makefile" ;; 6884 8795 "pkgs/DicomToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/DicomToVtk/pkgIndex.tcl" ;; … … 6925 8836 if $ac_need_defaults; then 6926 8837 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8838 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6927 8839 fi 6928 8840 … … 7112 9024 fi # test -n "$CONFIG_FILES" 7113 9025 7114 7115 eval set X " :F $CONFIG_FILES " 9026 # Set up the scripts for CONFIG_HEADERS section. 9027 # No need to generate them if there are no CONFIG_HEADERS. 9028 # This happens for instance with `./config.status Makefile'. 9029 if test -n "$CONFIG_HEADERS"; then 9030 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 9031 BEGIN { 9032 _ACEOF 9033 9034 # Transform confdefs.h into an awk script `defines.awk', embedded as 9035 # here-document in config.status, that substitutes the proper values into 9036 # config.h.in to produce config.h. 9037 9038 # Create a delimiter string that does not exist in confdefs.h, to ease 9039 # handling of long lines. 9040 ac_delim='%!_!# ' 9041 for ac_last_try in false false :; do 9042 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 9043 if test -z "$ac_tt"; then 9044 break 9045 elif $ac_last_try; then 9046 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 9047 else 9048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9049 fi 9050 done 9051 9052 # For the awk script, D is an array of macro values keyed by name, 9053 # likewise P contains macro parameters if any. Preserve backslash 9054 # newline sequences. 9055 9056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9057 sed -n ' 9058 s/.\{148\}/&'"$ac_delim"'/g 9059 t rset 9060 :rset 9061 s/^[ ]*#[ ]*define[ ][ ]*/ / 9062 t def 9063 d 9064 :def 9065 s/\\$// 9066 t bsnl 9067 s/["\\]/\\&/g 9068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9069 D["\1"]=" \3"/p 9070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 9071 d 9072 :bsnl 9073 s/["\\]/\\&/g 9074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9075 D["\1"]=" \3\\\\\\n"\\/p 9076 t cont 9077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 9078 t cont 9079 d 9080 :cont 9081 n 9082 s/.\{148\}/&'"$ac_delim"'/g 9083 t clear 9084 :clear 9085 s/\\$// 9086 t bsnlc 9087 s/["\\]/\\&/g; s/^/"/; s/$/"/p 9088 d 9089 :bsnlc 9090 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 9091 b cont 9092 ' <confdefs.h | sed ' 9093 s/'"$ac_delim"'/"\\\ 9094 "/g' >>$CONFIG_STATUS || ac_write_fail=1 9095 9096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9097 for (key in D) D_is_set[key] = 1 9098 FS = "" 9099 } 9100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 9101 line = \$ 0 9102 split(line, arg, " ") 9103 if (arg[1] == "#") { 9104 defundef = arg[2] 9105 mac1 = arg[3] 9106 } else { 9107 defundef = substr(arg[1], 2) 9108 mac1 = arg[2] 9109 } 9110 split(mac1, mac2, "(") #) 9111 macro = mac2[1] 9112 prefix = substr(line, 1, index(line, defundef) - 1) 9113 if (D_is_set[macro]) { 9114 # Preserve the white space surrounding the "#". 9115 print prefix "define", macro P[macro] D[macro] 9116 next 9117 } else { 9118 # Replace #undef with comments. This is necessary, for example, 9119 # in the case of _POSIX_SOURCE, which is predefined and required 9120 # on some systems where configure will not decide to define it. 9121 if (defundef == "undef") { 9122 print "/*", prefix defundef, macro, "*/" 9123 next 9124 } 9125 } 9126 } 9127 { print } 9128 _ACAWK 9129 _ACEOF 9130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9131 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 9132 fi # test -n "$CONFIG_HEADERS" 9133 9134 9135 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 7116 9136 shift 7117 9137 for ac_tag … … 7332 9352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7333 9353 ;; 7334 9354 :H) 9355 # 9356 # CONFIG_HEADER 9357 # 9358 if test x"$ac_file" != x-; then 9359 { 9360 $as_echo "/* $configure_input */" \ 9361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 9362 } >"$ac_tmp/config.h" \ 9363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9364 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9366 $as_echo "$as_me: $ac_file is unchanged" >&6;} 9367 else 9368 rm -f "$ac_file" 9369 mv "$ac_tmp/config.h" "$ac_file" \ 9370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9371 fi 9372 else 9373 $as_echo "/* $configure_input */" \ 9374 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 9375 || as_fn_error $? "could not create -" "$LINENO" 5 9376 fi 9377 ;; 7335 9378 7336 9379 -
branches/r9/configure.in
r4872 r4909 1 AC_INIT([Rappture],[1.4],[rappture@nanohub.org])2 AC_CONFIG_AUX_DIR(cf)3 4 1 RAPPTURE_MAJOR_VERSION=1 5 2 RAPPTURE_MINOR_VERSION=4 6 3 RAPPTURE_RELEASE_SERIAL=0 4 RAPPTURE_VERSION=${RAPPTURE_MAJOR_VERSION}.${RAPPTURE_MINOR_VERSION} 5 6 AC_INIT([Rappture],[1.4],[rappture@nanohub.org]) 7 AC_CONFIG_AUX_DIR(cf) 8 AC_CONFIG_HEADER(lib/rappture/config.h) 9 10 WITH_R=yes 11 WITH_JAVA=yes 12 WITH_MATLAB=yes 13 WITH_MKOCTFILE2=yes 14 WITH_MKOCTFILE3=yes 15 WITH_OCTAVE=yes 16 WITH_PERL=yes 17 WITH_PYTHON=yes 18 WITH_RUBY=yes 19 WITH_RUBY_SITELIBDIR=yes 20 WITH_TCL=yes 21 22 AC_ARG_WITH( 23 [R], 24 [AS_HELP_STRING([--with-R[=DIR]], 25 [location of R interpreter @<:@default=yes@:>@])], 26 [WITH_R=${with_val}], 27 [WITH_R=yes]) 28 29 AC_ARG_WITH( 30 [java], 31 [AS_HELP_STRING([--with-java[=DIR]], 32 [location of java @<:@default=yes@:>@])], 33 [WITH_JAVA=${with_val}], 34 [WITH_JAVA=yes]) 35 36 AC_ARG_WITH( 37 [matlab], 38 [AS_HELP_STRING([--with-matlab[=DIR]], 39 [location of matlab and mex compiler @<:@default=yes@:>@])], 40 [WITH_MATLAB=${with_val}], 41 [WITH_MATLAB=yes]) 42 43 AC_ARG_WITH( 44 [mkoctfile2], 45 [AS_HELP_STRING([--with-mkoctfile2[=DIR]], 46 [path of octave compiler `mkoctfile' @<:@default=no@:>@])], 47 [WITH_MKOCTFILE2=${with_val}], 48 [WITH_MKOCTFILE2=no]) 49 50 AC_ARG_WITH( 51 [mkoctfile3], 52 [AS_HELP_STRING([--with-mkoctfile3[=DIR]], 53 [path of octave compiler `mkoctfile' @<:@default=no@:>@])], 54 [WITH_MKOCTFILE3=${with_val}], 55 [WITH_MKOCTFILE3=no]) 56 57 AC_ARG_WITH( 58 [octave], 59 [AS_HELP_STRING([--with-octave[=DIR]], 60 [path of default octave compiler `mkoctfile' @<:@default=yes@:>@])], 61 [WITH_OCTAVE=${with_val}], 62 [with_octave=yes]) 63 64 AC_ARG_WITH( 65 [perl], 66 [AS_HELP_STRING([--with-perl[=DIR]], 67 [location of perl library @<:@default=yes@:>@])], 68 [WITH_PERL=${with_val}], 69 [WITH_PERL=yes]) 70 71 AC_ARG_WITH( 72 [python], 73 [AS_HELP_STRING([--with-python[=DIR]], 74 [location of python library @<:@default=yes@:>@])], 75 [WITH_PYTHON=${with_val}], 76 [WITH_PYTHON=yes]) 77 78 AC_ARG_WITH( 79 [ruby], 80 AC_HELP_STRING( 81 --with-ruby=PATH, 82 [ path to the ruby interpreter [[ruby]] ]), 83 [WITH_RUBY=${with_val}], 84 [WITH_RUBY=yes]) 85 86 AC_ARG_WITH( 87 [ruby_sitelibdir], 88 AC_HELP_STRING( 89 --with-ruby-sitelibdir=PATH, 90 [ path to install ruby scripts [[auto-detect]] ]), 91 [WITH_RUBY_SITELIBDIR=${with_val}], 92 [WITH_RUBY_SITELIBDIR=NONE ]) 93 94 AC_ARG_WITH( 95 [tcl], 96 [AS_HELP_STRING([--with-tcl[=DIR]], 97 [location of tcl library @<:@default=yes@:>@])], 98 [WITH_TCL=${with_val}], 99 [WITH_TCL=yes]) 100 101 AC_ARG_WITH( 102 [install], 103 [AS_HELP_STRING([--with-install[=DIR]], 104 [location of installation @<:@default=yes@:>@])], 105 [WITH_INSTALL=${withval}], 106 [WITH_INSTALL=yes]) 107 108 AC_ARG_WITH( 109 [vtk], 110 [AS_HELP_STRING([--with-vtk], 111 [Build VTK for rappture])], 112 [WITH_VTK=${withval}], 113 [WITH_VTK=no]) 114 115 AC_ARG_ENABLE( 116 [vtkdicom], 117 [AS_HELP_STRING([--enable-vtkdicom], 118 [Use vtkDICOM package @<:@default=no@:>@])], 119 [], 120 [enable_vtkdicom=no]) 7 121 8 122 #------------------------------------------------------------------------ … … 17 131 fi 18 132 19 AC_PROG_INSTALL20 133 AC_PROG_INSTALL 21 134 AC_PROG_RANLIB … … 38 151 AC_PATH_X 39 152 40 AC_ARG_WITH( 41 [install], 42 [AS_HELP_STRING([--with-install[=DIR]], 43 [location of installation @<:@default=yes@:>@])], 44 [], 45 [with_install=yes]) 46 47 if test "$with_install" != "yes"; then 48 INSTALL_PREFIX=$with_install 49 else 50 INSTALL_PREFIX=$prefix 51 fi 52 53 if test "${libdir}" != "${prefix}/lib"; then 54 LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" 55 else 56 LIB_SEARCH_DIRS="-L${libdir}" 57 fi 58 59 HAVE_VTK="" 60 AC_ARG_WITH( 61 [vtk], 62 [AS_HELP_STRING([--with-vtk], 63 [Build VTK for rappture])], 64 [HAVE_VTK=$withval], 65 [HAVE_VTK=""]) 153 # ----------------------------------------------------------------------- 154 # 155 # Compiler characteristics: 156 # Check for existence of types of size_t and pid_t 157 # 158 # ----------------------------------------------------------------------- 159 160 AC_C_BIGENDIAN 161 AC_CHECK_SIZEOF(int) 162 AC_CHECK_SIZEOF(long) 163 AC_CHECK_SIZEOF(long long) 164 AC_CHECK_SIZEOF(void *) 165 166 SIZEOF_LONG="${ac_cv_sizeof_long}" 167 SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}" 168 SIZEOF_VOID_P="${ac_cv_sizeof_void_p}" 169 SIZEOF_INT="${ac_cv_sizeof_int}" 170 66 171 67 172 AC_CHECK_FUNCS(sysinfo) … … 114 219 115 220 221 if test "$with_install" != "yes"; then 222 INSTALL_PREFIX=$with_install 223 else 224 INSTALL_PREFIX=$prefix 225 fi 226 227 if test "${libdir}" != "${prefix}/lib"; then 228 LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" 229 else 230 LIB_SEARCH_DIRS="-L${libdir}" 231 fi 232 116 233 SVN_VERSION=`svnversion $srcdir` 117 234 … … 128 245 fi 129 246 130 AC_ARG_ENABLE(131 [lang],132 [AS_HELP_STRING([--enable-lang], [build language bindings @<:@default=yes@:>@])],133 [],134 [enable_lang=yes])135 136 ENABLE_LANG=137 if test "$enable_lang" != "no" ; then138 ENABLE_LANG="yes"139 fi140 141 AC_ARG_ENABLE(142 [gui],143 [AS_HELP_STRING([--enable-gui], [build code related to the graphical user interface @<:@default=yes@:>@])],144 [],145 [enable_gui=yes])146 147 ENABLE_GUI=148 if test "$enable_gui" != "no" ; then149 ENABLE_GUI="yes"150 fi151 152 TCL_VERSION="8.5"153 TK_VERSION="8.5"154 155 for dir in \156 ${exec_prefix} \157 ${exec_prefix}/lib ; do158 tclconfig="${dir}/tclConfig.sh"159 if test -f "$tclconfig" ; then160 . $tclconfig161 break162 fi163 done164 165 AC_ARG_WITH(166 [ffmpeg],167 [AS_HELP_STRING([--with-ffmpeg[=DIR]],168 [location of ffmpeg @<:@default=yes@:>@])],169 [],170 [with_ffmpeg=yes])171 172 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"173 174 AC_ARG_WITH(175 [vtk],176 [AS_HELP_STRING([--with-vtk[=version]],177 [VTK library version @<:@default=6.1@:>@])],178 [],179 [with_vtk=yes])180 181 AC_MSG_CHECKING([for vtk])182 VTK_VERSION=6.1183 VTK_TCL_DIR=""184 185 ENABLE_VTK=186 if test "$with_vtk" != "no" ; then187 if test "$with_vtk" != "yes" ; then188 VTK_VERSION=$with_vtk189 fi190 if test "x$with_vtk" != "x" ; then191 ENABLE_VTK=yes192 for path in \193 $libdir/tcltk \194 $exec_prefix/lib/tcltk \195 $prefix/lib/tcltk \196 $libdir \197 $prefix/lib \198 $exec_prefix/lib \199 /usr/lib200 do201 if test -d "$path/vtk-$VTK_VERSION" ; then202 VTK_TCL_DIR="$path/vtk-$VTK_VERSION"203 fi204 if test "x${VTK_TCL_DIR}" != "x" ; then205 break206 fi207 done208 fi209 else210 if test "${ENABLE_GUI}" = "yes" ; then211 AC_MSG_WARN([VTK missing: Rappture GUI requires VTK for some features])212 fi213 fi214 AC_MSG_RESULT([$VTK_TCL_DIR])215 216 AC_ARG_ENABLE(217 [vtkdicom],218 [AS_HELP_STRING([--enable-vtkdicom],219 [Use vtkDICOM package @<:@default=no@:>@])],220 [],221 [enable_vtkdicom=no])222 223 247 AC_MSG_CHECKING([for vtkDICOM]) 224 248 ENABLE_VTK_DICOM= … … 231 255 232 256 #-------------------------------------------------------------------- 233 # This macro figures out what flags to use with the compiler/linker234 # when building shared/static debug/optimized objects. This information235 # is all taken from the tclConfig.sh file.236 #--------------------------------------------------------------------237 238 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then239 . ${exec_prefix}/lib/tclConfig.sh240 fi241 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then242 . ${exec_prefix}/lib/tkConfig.sh243 fi244 245 # -----------------------------------------------------------------------246 #247 # Compiler characteristics:248 # Check for existence of types of size_t and pid_t249 #250 # -----------------------------------------------------------------------251 252 AC_C_BIGENDIAN253 AC_CHECK_SIZEOF(int)254 AC_CHECK_SIZEOF(long)255 AC_CHECK_SIZEOF(long long)256 AC_CHECK_SIZEOF(void *)257 258 SIZEOF_LONG="${ac_cv_sizeof_long}"259 SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}"260 SIZEOF_VOID_P="${ac_cv_sizeof_void_p}"261 SIZEOF_INT="${ac_cv_sizeof_int}"262 263 264 #--------------------------------------------------------------------265 257 # Set the default compiler switches based on the --enable-symbols 266 258 # option. 267 259 #-------------------------------------------------------------------- 268 260 261 TCL_VERSION="8.5" 262 TK_VERSION="8.5" 263 264 SC_CONFIG_CFLAGS 269 265 SC_ENABLE_SYMBOLS 270 266 … … 319 315 AC_SUBST(RAPPTURE_MINOR_VERSION) 320 316 AC_SUBST(RAPPTURE_RELEASE_SERIAL) 321 AC_SUBST(HAVE_VTK) 317 318 AC_SUBST(WITH_VTK) 319 AC_SUBST(WITH_R) 320 AC_SUBST(WITH_JAVA) 321 AC_SUBST(WITH_MATLAB) 322 AC_SUBST(WITH_MKOCTFILE2) 323 AC_SUBST(WITH_MKOCTFILE3) 324 AC_SUBST(WITH_OCTAVE) 325 AC_SUBST(WITH_PERL) 326 AC_SUBST(WITH_PYTHON) 327 AC_SUBST(WITH_RUBY) 328 AC_SUBST(WITH_RUBY_SITELIBDIR) 329 AC_SUBST(WITH_TCL) 322 330 323 331 dnl read Makefile.in and write Makefile … … 336 344 apps/simsim 337 345 apps/xmldiff 346 lib/Makefile 347 lib/objects/Makefile 348 lib/objects/RpHash.h 349 lib/rappture/Makefile 350 lib/rappture2/Makefile 351 lib/rapptureConfig.sh 352 pkgs/DicomToVtk/Makefile 353 pkgs/DicomToVtk/pkgIndex.tcl 354 pkgs/DxToVtk/Makefile 355 pkgs/DxToVtk/pkgIndex.tcl 356 pkgs/Makefile 357 pkgs/PdbToVtk/Makefile 358 pkgs/PdbToVtk/pkgIndex.tcl 359 pkgs/builder/Makefile 360 pkgs/builder/pkgIndex.tcl 361 pkgs/builder/scripts/Makefile 362 pkgs/diffview/Makefile 363 pkgs/diffview/pkgIndex.tcl 364 pkgs/hotspot/Makefile 365 pkgs/hotspot/pkgIndex.tcl 366 pkgs/listbox/Makefile 367 pkgs/listbox/pkgIndex.tcl 368 pkgs/objects/Makefile 369 pkgs/p2p/Makefile 370 pkgs/placard/Makefile 371 pkgs/placard/pkgIndex.tcl 372 pkgs/readpoints/Makefile 373 pkgs/readpoints/pkgIndex.tcl 374 pkgs/runner/Makefile 375 pkgs/runner/pkgIndex.tcl 376 pkgs/runner/scripts/Makefile 377 pkgs/squeezer/Makefile 378 pkgs/squeezer/pkgIndex.tcl 379 pkgs/system/Makefile 380 pkgs/system/pkgIndex.tcl 381 pkgs/tester/Makefile 382 pkgs/tester/pkgIndex.tcl 383 pkgs/tester/scripts/Makefile 338 384 ]) 339 385 AC_OUTPUT -
branches/r9/lang/Makefile.in
r4870 r4909 17 17 HAVE_RUBY_H = @HAVE_RUBY_H@ 18 18 RUBY = @RUBY@ 19 WITH_RUBY = @WITH_RUBY@ 19 20 PERL = @PERL@ 20 21 TCLSH = @TCLSH@ … … 34 35 LANGS += python 35 36 endif 36 ifneq ($( RUBY),)37 ifneq ($(WITH_RUBY), "no") 37 38 ifeq ($(HAVE_RUBY_H),yes) 38 39 LANGS += ruby … … 52 53 endif 53 54 54 .PHONY: all install test clean distclean $(LANGS) 55 .PHONY: all install test clean distclean $(LANGS) examples 55 56 56 all: 57 all: 57 58 for i in $(LANGS) ; do \ 58 59 $(MAKE) -C $$i all || exit 1 ;\ 59 60 done 60 $(MAKE) -C examples all || exit 161 62 install:63 61 for i in $(LANGS) ; do \ 64 62 $(MAKE) -C $$i install || exit 1 ;\ 65 63 done 64 $(MAKE) -C examples all || exit 1 65 66 install: all 66 67 $(MAKE) -C examples install || exit 1 68 69 test: 70 for i in $(LANGS) ; do \ 71 $(MAKE) -C $$i test || exit 1 ;\ 72 done 67 73 68 74 test: -
branches/r9/lang/cf/rpLangRuby.m4
r4837 r4909 1 1 dnl Get a key from ruby's configuration table 2 AC_DEFUN([RUBY_CONFIG], [3 $RUBY -rrbconfig -e "puts(Config::CONFIG[['$1']] || '')"])4 2 5 3 AC_DEFUN([RP_LANG_RUBY], [ 6 4 7 5 AC_ARG_WITH( 8 ruby,6 [ruby], 9 7 AC_HELP_STRING( 10 8 --with-ruby=PATH, 11 9 [ path to the ruby interpreter [[ruby]] ]), 12 [ RUBY=$withval ], 13 [ RUBY=ruby ]) 10 [WITH_RUBY=$withval], 11 [WITH_RUBY=ruby]) 12 14 13 AC_ARG_WITH( 15 14 ruby_sitelibdir, … … 20 19 [ ruby_sitelibdir=NONE ]) 21 20 21 echo RUBY=$WITH_RUBY 22 if test "$WITH_RUBY" != "no" ; then 23 if test "$WITH_RUBY" = "yes" ; then 24 AC_PATH_PROG(RUBY, [ruby], [no]) 25 fi 26 else 27 RUBY=$WITH_RUBY 28 fi 29 echo "after RUBY=$RUBY" 30 if test "$RUBY" = "no" ; then 31 RUBY="/bin/true" 32 fi 33 AC_SUBST(WITH_RUBY) 22 34 AC_SUBST(RUBY) 35 36 AC_DEFUN([RUBY_CONFIG], [ 37 $RUBY -rrbconfig -e "puts(Config::CONFIG[['$1']] || '')"]) 23 38 24 39 RUBY_VERSION_CODE=`$RUBY -e "puts RUBY_VERSION.gsub(/\./, '')"` -
branches/r9/lang/configure
r4867 r4909 695 695 RUBY_CPPFLAGS 696 696 RUBY_VERSION_CODE 697 WITH_RUBY 697 698 RUBY 698 699 R … … 8936 8937 # Check whether --with-ruby was given. 8937 8938 if test "${with_ruby+set}" = set; then : 8938 withval=$with_ruby; RUBY=$withval 8939 else 8940 RUBY=ruby 8941 fi 8939 withval=$with_ruby; WITH_RUBY=$withval 8940 else 8941 WITH_RUBY=ruby 8942 fi 8943 8942 8944 8943 8945 … … 8950 8952 8951 8953 8954 echo RUBY=$WITH_RUBY 8955 if test "$WITH_RUBY" != "no" ; then 8956 if test "$WITH_RUBY" = "yes" ; then 8957 # Extract the first word of "ruby", so it can be a program name with args. 8958 set dummy ruby; ac_word=$2 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8960 $as_echo_n "checking for $ac_word... " >&6; } 8961 if ${ac_cv_path_RUBY+:} false; then : 8962 $as_echo_n "(cached) " >&6 8963 else 8964 case $RUBY in 8965 [\\/]* | ?:[\\/]*) 8966 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path. 8967 ;; 8968 *) 8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8970 for as_dir in $PATH 8971 do 8972 IFS=$as_save_IFS 8973 test -z "$as_dir" && as_dir=. 8974 for ac_exec_ext in '' $ac_executable_extensions; do 8975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8976 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext" 8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8978 break 2 8979 fi 8980 done 8981 done 8982 IFS=$as_save_IFS 8983 8984 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no" 8985 ;; 8986 esac 8987 fi 8988 RUBY=$ac_cv_path_RUBY 8989 if test -n "$RUBY"; then 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 8991 $as_echo "$RUBY" >&6; } 8992 else 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8994 $as_echo "no" >&6; } 8995 fi 8996 8997 8998 fi 8999 else 9000 RUBY=$WITH_RUBY 9001 fi 9002 echo "after RUBY=$RUBY" 9003 if test "$RUBY" = "no" ; then 9004 RUBY="/bin/true" 9005 fi 9006 9007 9008 8952 9009 8953 9010 … … 8956 9013 8957 9014 RUBY_CONFIG_SO_NAME=` 8958 $RUBY -rrbconfig -e "puts(Config::CONFIG[' RUBY_SO_NAME'] || '')"`9015 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8959 9016 RUBY_CONFIG_ARCHDIR=` 8960 $RUBY -rrbconfig -e "puts(Config::CONFIG[' archdir'] || '')"`9017 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8961 9018 RUBY_CONFIG_ARCH=` 8962 $RUBY -rrbconfig -e "puts(Config::CONFIG[' arch'] || '')"`9019 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8963 9020 RUBY_CONFIG_LIBDIR=` 8964 $RUBY -rrbconfig -e "puts(Config::CONFIG[' libdir'] || '')"`9021 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8965 9022 RUBY_CONFIG_BINDIR=` 8966 $RUBY -rrbconfig -e "puts(Config::CONFIG[' bindir'] || '')"`9023 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8967 9024 RUBY_CONFIG_RUBYHDRDIR=` 8968 $RUBY -rrbconfig -e "puts(Config::CONFIG[' rubyhdrdir'] || '')"`9025 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8969 9026 RUBY_CONFIG_CFLAGS=` 8970 $RUBY -rrbconfig -e "puts(Config::CONFIG[' CFLAGS'] || '')"`9027 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8971 9028 RUBY_CONFIG_LIBS=` 8972 $RUBY -rrbconfig -e "puts(Config::CONFIG[' LIBS'] || '')"`9029 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8973 9030 RUBY_CONFIG_DLDLIBS=` 8974 $RUBY -rrbconfig -e "puts(Config::CONFIG[' DLDLIBS'] || '')"`9031 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8975 9032 RUBY_CONFIG_LDFLAGS=` 8976 $RUBY -rrbconfig -e "puts(Config::CONFIG[' LDFLAGS'] || '')"`9033 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8977 9034 RUBY_CONFIG_LIBRUBYARG=` 8978 $RUBY -rrbconfig -e "puts(Config::CONFIG[' LIBRUBYARG'] || '')"`9035 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8979 9036 RUBY_CONFIG_LIBRUBYARG_STATIC=` 8980 $RUBY -rrbconfig -e "puts(Config::CONFIG[' LIBRUBYARG_STATIC'] || '')"`9037 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8981 9038 RUBY_CONFIG_CCDLFLAGS=` 8982 $RUBY -rrbconfig -e "puts(Config::CONFIG[' CCDLFLAGS'] || '')"`9039 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 8983 9040 8984 9041 if test "x${RUBY_CONFIG_RUBYHDRDIR}x" != "xx"; then … … 9017 9074 then 9018 9075 RUBY_SITELIBDIR=` 9019 $RUBY -rrbconfig -e "puts(Config::CONFIG[' sitelibdir'] || '')"`9076 $RUBY -rrbconfig -e "puts(Config::CONFIG[''] || '')"` 9020 9077 else 9021 9078 sitelibdir_no_prefix=`$RUBY -rrbconfig \ -
branches/r9/lib/configure.in
r4872 r4909 40 40 41 41 42 AC_PROG_INSTALL43 42 AC_PROG_INSTALL 44 43 AC_PROG_RANLIB -
branches/r9/lib/rappture/config.h.in
r4836 r4909 1 /* core/config.h.in. Generated from configure.in by autoheader. */1 /* lib/rappture/config.h.in. Generated from configure.in by autoheader. */ 2 2 3 3 /* Define if building universal (internal helper macro) */ -
branches/r9/lib/rapptureConfig.sh.in
r4873 r4909 14 14 RAPPTURE_RELEASE_SERIAL=@RAPPTURE_RELEASE_SERIAL@ 15 15 RAPPTURE_VERSION="${RAPPTURE_MAJOR_VERSION}.${RAPPTURE_MINOR_VERSION}" 16 17 WITH_R=@WITH_R@ 18 WITH_JAVA=@WITH_JAVA@ 19 WITH_MATLAB=@WITH_MATLAB@ 20 WITH_MKOCTFILE2=@WITH_MKOCTFILE2@ 21 WITH_MKOCTFILE3=@WITH_MKOCTFILE3@ 22 WITH_OCTAVE=@WITH_OCTAVE@ 23 WITH_PERL=@WITH_PERL@ 24 WITH_PYTHON=@WITH_PYTHON@ 25 WITH_RUBY=@WITH_RUBY@ 26 WITH_RUBY_SITELIBDIR=@WITH_RUBY_SITELIBDIR@ 27 WITH_TCL=@WITH_TCL@ -
branches/r9/pkgs/Makefile.in
r4870 r4909 14 14 RM = rm -f 15 15 VPATH = $(srcdir) 16 HAVE_VTK = @HAVE_VTK@16 WITH_VTK = @WITH_VTK@ 17 17 18 18 SUBDIRS = \ … … 29 29 system 30 30 31 if eq ($(HAVE_VTK),yes)31 ifneq ($(WITH_VTK),"no") 32 32 SUBDIRS += DicomToVtk DxToVtk PdbToVtk 33 33 endif
Note: See TracChangeset
for help on using the changeset viewer.