Changeset 4870


Ignore:
Timestamp:
Dec 13, 2014 6:19:29 PM (6 years ago)
Author:
gah
Message:
 
Location:
branches/r9
Files:
12 deleted
18 edited
6 moved

Legend:

Unmodified
Added
Removed
  • branches/r9/Makefile.in

    r4869 r4870  
    1818TAG =                   branches/blt4
    1919VTK_VERSION =           6.0
     20TCL_VERSION =           @TCL_VERSION@
     21TK_VERSION =            @TK_VERSION@
     22
    2023# ------------------------------------------------------------------------
    2124#       Source and targer installation directories
     
    6568
    6669targets = \
    67         blt builder cmake examples expat expect gui htmlwidget itcl \
     70        blt cmake examples expat expect gui htmlwidget itcl \
    6871        itk lang lib optimizer shape sqlitetcl tcl tcllib \
    69         tdom tester tk tkimg tls video vtk zlib  packages objects runner
     72        tdom tester tk tkimg tls video vtk zlib  packages \
     73        apps p2p
    7074
    7175.PHONY: $(targets)
     
    7377.NOTPARALLEL:
    7478
    75 all: gui lang all_packages
    76 
    77 all_packages: runner tester objects builder packages video optimizer
     79all: gui lang apps allpackages
     80
     81allpackages: packages video optimizer
    7882
    7983update:
     
    111115vtk = vtk-6.0.0
    112116zlib = zlib
    113 tester = tester
    114 builder = builder
    115117lang = lang
    116118video = video
    117 runner = runner
    118 objects = objects
     119packages = pkgs
     120apps = apps
    119121
    120122subdirs = \
    121         $(blt) $(builder) $(cmake) $(examples) $(expat) $(expect) \
     123        $(blt) $(cmake) $(expat) $(expect) \
    122124        $(gui) $(htmlwidget) $(itcl) $(itk) $(lang) $(lib)  \
    123125        $(optimizer) $(shape) \
    124         $(sqlitetcl) $(tcl) $(tcllib) $(tdom) $(tester) $(tk) $(tkimg) \
    125         $(tls) $(vtk) $(zlib)
     126        $(sqlitetcl) $(tcl) $(tcllib) $(tdom) $(tk) $(tkimg) \
     127        $(tls) $(vtk) $(zlib) $(apps)
    126128
    127129ifeq ("$(HAVE_VTK)", 1)
     
    131133
    132134clean:
    133         $(RM) -r $(subdirs)
     135        $(clean_apps)
     136        $(clean_blt)
     137        $(clean_cmake)
     138        $(clean_expat)
     139        $(clean_expect)
     140        $(clean_gui)
     141        $(clean_htmlwidget)
     142        $(clean_itcl)
     143        $(clean_itk)
     144        $(clean_lang)
     145        $(clean_lib)
     146        $(clean_optimizer)
     147        $(clean_shape)
     148        $(clean_sqlitetcl)
     149        $(clean_tcl)
     150        $(clean_tcllib)
     151        $(clean_tdom)
     152        $(clean_tk)
     153        $(clean_tkimg)
     154        $(clean_tls)
     155        $(clean_vtk)
     156        $(clean_zlib)
     157
     158# -------------------------------------------------------------------------
     159#  APPS
     160# -------------------------------------------------------------------------
     161
     162apps_flags =    \
     163        --enable-shared \
     164        $(common_flags)
     165
     166apps: $(apps)/timestamp
     167
     168clean-apps:
     169        $(clean_apps)
     170fetch-apps:
     171        $(fetch_apps)
     172configure-apps:
     173        $(configure_apps)
     174build-apps:
     175        $(build_apps)
     176install-apps:
     177        $(install_apps)
     178touch-apps:
     179        $(touch_apps)
     180force-apps: $(gui)/timestamp
     181        + $(clean_apps)
     182        + $(fetch_apps)
     183        + $(configure_apps)
     184        + $(build_apps)
     185        + $(install_apps)
     186        + $(touch_apps)
     187
     188define clean_apps
     189        $(MAKE) -C $(apps) clean
     190endef
     191define fetch_apps
     192endef
     193define configure_apps
     194endef
     195define build_apps
     196        $(MAKE) -C $(apps) all
     197endef
     198define install_apps
     199        $(MAKE) -C $(apps) install
     200endef
     201define touch_apps
     202        touch $(apps)/timestamp
     203endef
     204
     205$(apps)/timestamp: $(gui)/timestamp
     206        + $(clean_apps)
     207        + $(fetch_apps)
     208        + $(configure_apps)
     209        + $(build_apps)
     210        + $(install_apps)
     211        + $(touch_apps)
     212
    134213
    135214# -------------------------------------------------------------------------
     
    190269        + $(install_blt)
    191270        + $(touch_blt)
    192 
    193 # -------------------------------------------------------------------------
    194 #  BUILDER
    195 # -------------------------------------------------------------------------
    196 
    197 builder_flags = \
    198         --with-tclsh="$(bindir)/tclsh8.4" \
    199         --enable-shared \
    200         $(common_flags)
    201 
    202 builder: $(builder)/timestamp
    203 
    204 clean-builder:
    205         $(clean_builder)
    206 fetch-builder:
    207         $(fetch_builder)
    208 configure-builder:
    209 build-builder:
    210         $(build_builder)
    211 install-builder:
    212         $(install_builder)
    213 touch-builder:
    214         $(touch_builder)
    215 force-builder: $(gui)/timestamp
    216         + $(clean_builder)
    217         + $(fetch_builder)
    218         + $(configure_builder)
    219         + $(build_builder)
    220         + $(install_builder)
    221         + $(touch_builder)
    222 
    223 define clean_builder
    224         $(MAKE) -C $(builder) clean
    225 endef
    226 define fetch_builder
    227 endef
    228 define build_builder
    229         $(MAKE) -C $(builder) all
    230 endef
    231 define install_builder
    232         $(MAKE) -C $(builder) install
    233 endef
    234 define touch_builder
    235         touch $(builder)/timestamp
    236 endef
    237 
    238 $(builder)/timestamp: $(lib)/timestamp $(itcl)/timestamp $(gui)/timestamp
    239         + $(clean_builder)
    240         + $(fetch_builder)
    241         + $(configure_builder)
    242         + $(build_builder)
    243         + $(install_builder)
    244         + $(touch_builder)
    245271
    246272# -------------------------------------------------------------------------
     
    839865
    840866# -------------------------------------------------------------------------
    841 #  OBJECTS
    842 # -------------------------------------------------------------------------
    843 
    844 objects_flags = \
    845         --enable-shared \
    846         $(common_flags)
    847 
    848 objects: $(objects)/timestamp
    849 
    850 clean-objects:
    851         $(clean_objects)
    852 fetch-objects:
    853         $(fetch_objects)
    854 configure-objects:
    855         $(configure_objects)
    856 build-objects:
    857         $(build_objects)
    858 install-objects:
    859         $(install_objects)
    860 touch-objects:
    861         $(touch_objects)
    862 force-objects:
    863         + $(clean_objects)
    864         + $(fetch_objects)
    865         + $(configure_objects)
    866         + $(build_objects)
    867         + $(install_objects)
    868         + $(touch_objects)
    869 
    870 define clean_objects
    871         $(MAKE) -C $(objects) clean
    872 endef
    873 define fetch_objects
    874 endef
    875 define configure_objects
    876 endef
    877 define build_objects
    878         $(MAKE) -C $(objects) all
    879 endef
    880 define install_objects
    881         $(MAKE) -C $(objects) install
    882 endef
    883 define touch_objects
    884         touch $(objects)/timestamp
    885 endef
    886 
    887 $(objects)/timestamp: $(lib)/timestamp $(itcl)/timestamp
    888         + $(clean_objects)
    889         + $(fetch_objects)
    890         + $(configure_objects)
    891         + $(build_objects)
    892         + $(install_objects)
    893         + $(touch_objects)
    894 
    895 
    896 
    897 # -------------------------------------------------------------------------
    898867#  OPTIMIZER
    899868# -------------------------------------------------------------------------
     
    934903define configure_optimizer
    935904        $(MKDIR_P) $(optimizer)
    936         cd $(optimizer); $(srcdir)/packages/$(optimizer)/configure $(optimizer_flags)
     905        cd $(optimizer); $(srcdir)/pkgs/$(optimizer)/configure $(optimizer_flags)
    937906endef
    938907define build_optimizer
     
    954923        + $(touch_optimizer)
    955924
    956 # -------------------------------------------------------------------------
    957 #  RUNNER
    958 # -------------------------------------------------------------------------
    959 
    960 runner_flags =  \
    961         --enable-shared \
    962         $(common_flags)
    963 
    964 runner: $(runner)/timestamp
    965 
    966 clean-runner:
    967         $(clean_runner)
    968 fetch-runner:
    969         $(fetch_runner)
    970 configure-runner:
    971         $(configure_runner)
    972 build-runner:
    973         $(build_runner)
    974 install-runner:
    975         $(install_runner)
    976 touch-runner:
    977         $(touch_runner)
    978 force-runner:
    979         + $(clean_runner)
    980         + $(fetch_runner)
    981         + $(configure_runner)
    982         + $(build_runner)
    983         + $(install_runner)
    984         + $(touch_runner)
    985 
    986 define clean_runner
    987         $(MAKE) -C $(runner) clean
    988 endef
    989 define fetch_runner
    990 endef
    991 define configure_runner
    992 endef
    993 define build_runner
    994         $(MAKE) -C $(runner) all
    995 endef
    996 define install_runner
    997         $(MAKE) -C $(runner) install
    998 endef
    999 define touch_runner
    1000         touch $(runner)/timestamp
    1001 endef
    1002 
    1003 $(runner)/timestamp: $(lib)/timestamp $(itcl)/timestamp $(gui)/timestamp
    1004         + $(clean_runner)
    1005         + $(fetch_runner)
    1006         + $(configure_runner)
    1007         + $(build_runner)
    1008         + $(install_runner)
    1009         + $(touch_runner)
     925
     926# -------------------------------------------------------------------------
     927#  PACKAGES
     928# -------------------------------------------------------------------------
     929
     930packages_flags =        \
     931        --enable-shared \
     932        $(common_flags)
     933
     934packages: $(packages)/timestamp
     935
     936clean-packages:
     937        $(clean_packages)
     938fetch-packages:
     939        $(fetch_packages)
     940configure-packages:
     941        $(configure_packages)
     942build-packages:
     943        $(build_packages)
     944install-packages:
     945        $(install_packages)
     946touch-packages:
     947        $(touch_packages)
     948force-packages: $(gui)/timestamp
     949        + $(clean_packages)
     950        + $(fetch_packages)
     951        + $(configure_packages)
     952        + $(build_packages)
     953        + $(install_packages)
     954        + $(touch_packages)
     955
     956define clean_packages
     957        $(MAKE) -C $(packages) clean
     958endef
     959define fetch_packages
     960endef
     961define configure_packages
     962endef
     963define build_packages
     964        $(MAKE) -C $(packages) all
     965endef
     966define install_packages
     967        $(MAKE) -C $(packages) install
     968endef
     969define touch_packages
     970        touch $(packages)/timestamp
     971endef
     972
     973$(packages)/timestamp: $(gui)/timestamp
     974        + $(clean_packages)
     975        + $(fetch_packages)
     976        + $(configure_packages)
     977        + $(build_packages)
     978        + $(install_packages)
     979        + $(touch_packages)
    1010980
    1011981
     
    13091279
    13101280# -------------------------------------------------------------------------
    1311 #  TESTER
    1312 # -------------------------------------------------------------------------
    1313 
    1314 tester_flags =  \
    1315         --with-tclsh="$(bindir)/tclsh8.4" \
    1316         --enable-shared \
    1317         $(common_flags)
    1318 
    1319 tester: $(tester)/timestamp
    1320 
    1321 clean-tester:
    1322         $(clean_tester)
    1323 fetch-tester:
    1324         $(fetch_tester)
    1325 configure-tester:
    1326         $(configure_tester)
    1327 build-tester:
    1328         $(build_tester)
    1329 install-tester:
    1330         $(install_tester)
    1331 touch-tester:
    1332         $(touch_tester)
    1333 force-tester: $(gui)/timestamp
    1334         + $(clean_tester)
    1335         + $(fetch_tester)
    1336         + $(configure_tester)
    1337         + $(build_tester)
    1338         + $(install_tester)
    1339         + $(touch_tester)
    1340 
    1341 define clean_tester
    1342         $(MAKE) -C $(tester) clean
    1343 endef
    1344 define fetch_tester
    1345 endef
    1346 define configure_tester
    1347 endef
    1348 define build_tester
    1349         $(MAKE) -C $(tester) all
    1350 endef
    1351 define install_tester
    1352         $(MAKE) -C $(tester) install
    1353 endef
    1354 define touch_tester
    1355         touch $(tester)/timestamp
    1356 endef
    1357 
    1358 $(tester)/timestamp: $(gui)/timestamp
    1359         + $(clean_tester)
    1360         + $(fetch_tester)
    1361         + $(configure_tester)
    1362         + $(build_tester)
    1363         + $(install_tester)
    1364         + $(touch_tester)
    1365 
    1366 # -------------------------------------------------------------------------
    13671281#  TK
    13681282# -------------------------------------------------------------------------
     
    15791493define configure_video
    15801494        $(MKDIR_P) $(video)
    1581         cd $(video); $(srcdir)/packages/$(video)/configure $(video_flags)
     1495        cd $(video); $(srcdir)/pkgs/$(video)/configure $(video_flags)
    15821496endef
    15831497define build_video
     
    17181632        + $(touch_zlib)
    17191633
     1634
     1635TRASH = \
     1636        ./bin/dtplite \
     1637        ./bin/flowvis-test \
     1638        ./bin/mapviewer-test \
     1639        ./bin/nanovis-test \
     1640        ./bin/nns \
     1641        ./bin/nnsd \
     1642        ./bin/nnslog \
     1643        ./bin/page \
     1644        ./bin/tcldocstrip \
     1645        ./bin/vtkglyphs-test \
     1646        ./bin/vtkheightmap-test \
     1647        ./bin/vtkisosurface-test \
     1648        ./bin/vtkstreamlines-test \
     1649        ./bin/vtkviewer-test \
     1650        ./bin/vtkvolume-test \
     1651        ./bin/bltsh30 \
     1652        ./bin/bltwish30 \
     1653        ./lib/bltConfig.sh \
     1654        ./lib/itclConfig.sh \
     1655        ./lib/jpegtclConfig.sh \
     1656        ./lib/libBltTcl30.so \
     1657        ./lib/libBltTk30.so \
     1658        ./lib/pngtclConfig.sh \
     1659        ./lib/tdomConfig.sh \
     1660        ./lib/tifftclConfig.sh \
     1661        ./lib/tkConfig.sh \
     1662        ./lib/tkimgConfig.sh \
     1663        ./lib/zlibtclConfig.sh \
     1664        ./man \
     1665        ./share
     1666
     1667installdir =    rappture_install
     1668tmpdir =        /tmp/$(installdir)
     1669arch =          $(shell uname -m)
     1670package:
     1671        $(RM) -r $(tmpdir)
     1672        $(MKDIR_P) $(tmpdir)
     1673        tar -C $(DESTDIR)$(exec_prefix) -clf - . | tar -C $(tmpdir) -xpf -
     1674        for i in $(TRASH); do \
     1675           $(RM) -r $(tmpdir)/$$i ; \
     1676        done
     1677        $(bindir)/bltsh30 fixrunpaths.tcl $(tmpdir)
     1678        tar -C /tmp -zclf rappture$(version)-linux-$(arch).tar.gz $(installdir)
     1679        $(RM) -r $(tmpdir)
     1680
  • branches/r9/aclocal.m4

    r3277 r4870  
    1 builtin(include,./cf/tcl.m4)
    2 builtin(include,./cf/ax_compare_version.m4)
    3 builtin(include,./cf/ax_ruby_dev_flags.m4)
    4 builtin(include,./cf/ax_prog_ruby_version.m4)
    5 builtin(include,./cf/rpLangPython.m4)
    6 builtin(include,./cf/rpLangPerl.m4)
    7 builtin(include,./cf/rpLangOctave.m4)
    8 builtin(include,./cf/rpLangJava.m4)
    9 builtin(include,./cf/rpLangMatlab.m4)
    10 builtin(include,./cf/rpLangR.m4)
    11 builtin(include,./cf/rpLangRuby.m4)
     1#builtin(include,./cf/tcl.m4)
  • branches/r9/configure

    r4869 r4870  
    624624ac_subst_vars='LTLIBOBJS
    625625LIBOBJS
     626RAPPTURE_RELEASE_SERIAL
     627RAPPTURE_MINOR_VERSION
     628RAPPTURE_MAJOR_VERSION
    626629WORDSIZE
    627630X_LIBRARIES
     
    644647TCL_LIB_SPEC
    645648TCL_INC_SPEC
     649STLIB_LD
    646650SIZEOF_VOID_P
    647651SIZEOF_LONG_LONG
    648652SIZEOF_LONG
    649653SIZEOF_INT
     654SHLIB_SUFFIX
    650655SHLIB_LDFLAGS
     656SHLIB_LD
     657SHLIB_CFLAGS
    651658RP_BASE
    652659SVN_VERSION
     
    659666ENABLE_GUI
    660667ENABLE_LANG
    661 LDFLAGS_DEFAULT
    662 CFLAGS_DEFAULT
    663 INSTALL_STUB_LIB
    664 INSTALL_LIB
    665 MAKE_STUB_LIB
    666 MAKE_LIB
    667 SHLIB_SUFFIX
    668 SHLIB_CFLAGS
    669 SHLIB_LD_LIBS
    670 TK_SHLIB_LD_EXTRAS
    671 TCL_SHLIB_LD_EXTRAS
    672 SHLIB_LD
    673 STLIB_LD
    674 LD_SEARCH_FLAGS
    675 CC_SEARCH_FLAGS
    676 LDFLAGS_OPTIMIZE
    677 LDFLAGS_DEBUG
    678 CFLAGS_WARNING
    679668CFLAGS_OPTIMIZE
    680669CFLAGS_DEBUG
    681 PLAT_SRCS
    682 PLAT_OBJS
    683 DL_OBJS
    684 DL_LIBS
    685 AR
    686670CXXCPP
    687671XMKMF
     
    753737with_install
    754738with_statsdir
    755 enable_64bit
    756 enable_64bit_vis
    757 enable_corefoundation
    758 enable_load
    759739enable_lang
    760740enable_gui
     
    762742with_vtk
    763743enable_vtkdicom
    764 enable_shared
    765 enable_symbols
    766744'
    767745      ac_precious_vars='build_alias
     
    13941372  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    13951373  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    1396   --enable-64bit          enable 64bit support (where applicable)
    1397   --enable-64bit-vis      enable 64bit Sparc VIS support
    1398   --enable-corefoundation use CoreFoundation API --enable-corefoundation
    1399   --disable-load          disallow dynamic loading and "load" command
    14001374  --enable-lang           build language bindings [default=yes]
    14011375  --enable-gui            build code related to the graphical user interface
    14021376                          [default=yes]
    14031377  --enable-vtkdicom       Use vtkDICOM package [default=no]
    1404   --enable-shared         build and link with shared libraries --enable-shared
    1405   --enable-symbols        build with debugging symbols --disable-symbols
    14061378
    14071379Optional Packages:
     
    26942666
    26952667
     2668RAPPTURE_MAJOR_VERSION=1
     2669RAPPTURE_MINOR_VERSION=4
     2670RAPPTURE_RELEASE_SERIAL=0
     2671
    26962672#------------------------------------------------------------------------
    26972673# Handle the --prefix=... option
     
    55985574
    55995575
    5600 
    5601 
    5602     # Step 0.a: Enable 64 bit support?
    5603 
    5604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
    5605 $as_echo_n "checking if 64bit support is requested... " >&6; }
    5606     # Check whether --enable-64bit was given.
    5607 if test "${enable_64bit+set}" = set; then :
    5608   enableval=$enable_64bit; do64bit=$enableval
    5609 else
    5610   do64bit=no
    5611 fi
    5612 
    5613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
    5614 $as_echo "$do64bit" >&6; }
    5615 
    5616     # Step 0.b: Enable Solaris 64 bit VIS support?
    5617 
    5618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
    5619 $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
    5620     # Check whether --enable-64bit-vis was given.
    5621 if test "${enable_64bit_vis+set}" = set; then :
    5622   enableval=$enable_64bit_vis; do64bitVIS=$enableval
    5623 else
    5624   do64bitVIS=no
    5625 fi
    5626 
    5627     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
    5628 $as_echo "$do64bitVIS" >&6; }
    5629 
    5630     if test "$do64bitVIS" = "yes"; then
    5631         # Force 64bit on with VIS
    5632         do64bit=yes
    5633     fi
    5634 
    5635     # Step 1: set the variable "system" to hold the name and version number
    5636     # for the system.
    5637 
    5638 
    5639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
    5640 $as_echo_n "checking system version... " >&6; }
    5641 if ${tcl_cv_sys_version+:} false; then :
    5642   $as_echo_n "(cached) " >&6
    5643 else
    5644 
    5645         if test -f /usr/lib/NextStep/software_version; then
    5646             tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
    5647         else
    5648             tcl_cv_sys_version=`uname -s`-`uname -r`
    5649             if test "$?" -ne 0 ; then
    5650                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
    5651 $as_echo "$as_me: WARNING: can't find uname command" >&2;}
    5652                 tcl_cv_sys_version=unknown
    5653             else
    5654                 # Special check for weird MP-RAS system (uname returns weird
    5655                 # results, and the version is kept in special file).
    5656 
    5657                 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
    5658                     tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
    5659                 fi
    5660                 if test "`uname -s`" = "AIX" ; then
    5661                     tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
    5662                 fi
    5663             fi
    5664         fi
    5665 
    5666 fi
    5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
    5668 $as_echo "$tcl_cv_sys_version" >&6; }
    5669     system=$tcl_cv_sys_version
    5670 
    5671 
    5672     # Step 2: check for existence of -ldl library.  This is needed because
    5673     # Linux can use either -ldl or -ldld for dynamic loading.
    5674 
    5675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
    5676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
    5677 if ${ac_cv_lib_dl_dlopen+:} false; then :
    5678   $as_echo_n "(cached) " >&6
    5679 else
    5680   ac_check_lib_save_LIBS=$LIBS
    5681 LIBS="-ldl  $LIBS"
    5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    5683 /* end confdefs.h.  */
    5684 
    5685 /* Override any GCC internal prototype to avoid an error.
    5686    Use char because int might match the return type of a GCC
    5687    builtin and then its argument prototype would still apply.  */
    5688 #ifdef __cplusplus
    5689 extern "C"
    5690 #endif
    5691 char dlopen ();
    5692 int
    5693 main ()
    5694 {
    5695 return dlopen ();
    5696   ;
    5697   return 0;
    5698 }
    5699 _ACEOF
    5700 if ac_fn_cxx_try_link "$LINENO"; then :
    5701   ac_cv_lib_dl_dlopen=yes
    5702 else
    5703   ac_cv_lib_dl_dlopen=no
    5704 fi
    5705 rm -f core conftest.err conftest.$ac_objext \
    5706     conftest$ac_exeext conftest.$ac_ext
    5707 LIBS=$ac_check_lib_save_LIBS
    5708 fi
    5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
    5710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
    5711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
    5712   have_dl=yes
    5713 else
    5714   have_dl=no
    5715 fi
    5716 
    5717 
    5718     # Require ranlib early so we can override it in special cases below.
    5719 
    5720 
    5721 
    5722     # Step 3: set configuration options based on system name and version.
    5723 
    5724     do64bit_ok=no
    5725     LDFLAGS_ORIG="$LDFLAGS"
    5726     TCL_EXPORT_FILE_SUFFIX=""
    5727     UNSHARED_LIB_SUFFIX=""
    5728     TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
    5729     ECHO_VERSION='`echo ${VERSION}`'
    5730     TCL_LIB_VERSIONS_OK=ok
    5731     CFLAGS_DEBUG=-g
    5732     CFLAGS_OPTIMIZE=-O
    5733     if test "$GCC" = "yes" ; then
    5734         CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
    5735     else
    5736         CFLAGS_WARNING=""
    5737     fi
    5738     TCL_NEEDS_EXP_FILE=0
    5739     TCL_BUILD_EXP_FILE=""
    5740     TCL_EXP_FILE=""
    5741     # Extract the first word of "ar", so it can be a program name with args.
    5742 set dummy ar; ac_word=$2
    5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    5744 $as_echo_n "checking for $ac_word... " >&6; }
    5745 if ${ac_cv_prog_AR+:} false; then :
    5746   $as_echo_n "(cached) " >&6
    5747 else
    5748   if test -n "$AR"; then
    5749   ac_cv_prog_AR="$AR" # Let the user override the test.
    5750 else
    5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    5752 for as_dir in $PATH
    5753 do
    5754   IFS=$as_save_IFS
    5755   test -z "$as_dir" && as_dir=.
    5756     for ac_exec_ext in '' $ac_executable_extensions; do
    5757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    5758     ac_cv_prog_AR="ar"
    5759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    5760     break 2
    5761   fi
    5762 done
    5763   done
    5764 IFS=$as_save_IFS
    5765 
    5766 fi
    5767 fi
    5768 AR=$ac_cv_prog_AR
    5769 if test -n "$AR"; then
    5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
    5771 $as_echo "$AR" >&6; }
    5772 else
    5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    5774 $as_echo "no" >&6; }
    5775 fi
    5776 
    5777 
    5778     if test "${AR}" = "" ; then
    5779         as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
    5780     fi
    5781     STLIB_LD='${AR} cr'
    5782     LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
    5783     PLAT_OBJS=""
    5784     PLAT_SRCS=""
    5785     case $system in
    5786         AIX-*)
    5787             if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
    5788                 # AIX requires the _r compiler when gcc isn't being used
    5789                 case "${CC}" in
    5790                     *_r)
    5791                         # ok ...
    5792                         ;;
    5793                     *)
    5794                         CC=${CC}_r
    5795                         ;;
    5796                 esac
    5797                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
    5798 $as_echo "Using $CC for compiling with threads" >&6; }
    5799             fi
    5800             LIBS="$LIBS -lc"
    5801             SHLIB_CFLAGS=""
    5802             # Note: need the LIBS below, otherwise Tk won't find Tcl's
    5803             # symbols when dynamically loaded into tclsh.
    5804             SHLIB_LD_LIBS='${LIBS}'
    5805             SHLIB_SUFFIX=".so"
    5806 
    5807             DL_OBJS="tclLoadDl.o"
    5808             LD_LIBRARY_PATH_VAR="LIBPATH"
    5809 
    5810             # Check to enable 64-bit flags for compiler/linker on AIX 4+
    5811             if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
    5812                 if test "$GCC" = "yes" ; then
    5813                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
    5814 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    5815                 else
    5816                     do64bit_ok=yes
    5817                     CFLAGS="$CFLAGS -q64"
    5818                     LDFLAGS="$LDFLAGS -q64"
    5819                     RANLIB="${RANLIB} -X64"
    5820                     AR="${AR} -X64"
    5821                     SHLIB_LD_FLAGS="-b64"
    5822                 fi
    5823             fi
    5824 
    5825             if test "`uname -m`" = "ia64" ; then
    5826                 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
    5827                 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
    5828                 # AIX-5 has dl* in libc.so
    5829                 DL_LIBS=""
    5830                 if test "$GCC" = "yes" ; then
    5831                     CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
    5832                 else
    5833                     CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
    5834                 fi
    5835                 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
    5836             else
    5837                 if test "$GCC" = "yes" ; then
    5838                     SHLIB_LD="gcc -shared"
    5839                 else
    5840                     SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
    5841                 fi
    5842                 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
    5843                 DL_LIBS="-ldl"
    5844                 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    5845                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    5846                 TCL_NEEDS_EXP_FILE=1
    5847                 TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
    5848             fi
    5849 
    5850             # AIX v<=4.1 has some different flags than 4.2+
    5851             if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
    5852                 LIBOBJS="$LIBOBJS tclLoadAix.o"
    5853                 DL_LIBS="-lld"
    5854             fi
    5855 
    5856             # On AIX <=v4 systems, libbsd.a has to be linked in to support
    5857             # non-blocking file IO.  This library has to be linked in after
    5858             # the MATH_LIBS or it breaks the pow() function.  The way to
    5859             # insure proper sequencing, is to add it to the tail of MATH_LIBS.
    5860             # This library also supplies gettimeofday.
    5861             #
    5862             # AIX does not have a timezone field in struct tm. When the AIX
    5863             # bsd library is used, the timezone global and the gettimeofday
    5864             # methods are to be avoided for timezone deduction instead, we
    5865             # deduce the timezone by comparing the localtime result on a
    5866             # known GMT value.
    5867 
    5868             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
    5869 $as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
    5870 if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
    5871   $as_echo_n "(cached) " >&6
    5872 else
    5873   ac_check_lib_save_LIBS=$LIBS
    5874 LIBS="-lbsd  $LIBS"
    5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    5876 /* end confdefs.h.  */
    5877 
    5878 /* Override any GCC internal prototype to avoid an error.
    5879    Use char because int might match the return type of a GCC
    5880    builtin and then its argument prototype would still apply.  */
    5881 #ifdef __cplusplus
    5882 extern "C"
    5883 #endif
    5884 char gettimeofday ();
    5885 int
    5886 main ()
    5887 {
    5888 return gettimeofday ();
    5889   ;
    5890   return 0;
    5891 }
    5892 _ACEOF
    5893 if ac_fn_cxx_try_link "$LINENO"; then :
    5894   ac_cv_lib_bsd_gettimeofday=yes
    5895 else
    5896   ac_cv_lib_bsd_gettimeofday=no
    5897 fi
    5898 rm -f core conftest.err conftest.$ac_objext \
    5899     conftest$ac_exeext conftest.$ac_ext
    5900 LIBS=$ac_check_lib_save_LIBS
    5901 fi
    5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
    5903 $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
    5904 if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
    5905   libbsd=yes
    5906 else
    5907   libbsd=no
    5908 fi
    5909 
    5910             if test $libbsd = yes; then
    5911                 MATH_LIBS="$MATH_LIBS -lbsd"
    5912                 $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
    5913 
    5914             fi
    5915             ;;
    5916         BeOS*)
    5917             SHLIB_CFLAGS="-fPIC"
    5918             SHLIB_LD="${CC} -nostart"
    5919             SHLIB_LD_LIBS='${LIBS}'
    5920             SHLIB_SUFFIX=".so"
    5921             DL_OBJS="tclLoadDl.o"
    5922             DL_LIBS="-ldl"
    5923 
    5924             #-----------------------------------------------------------
    5925             # Check for inet_ntoa in -lbind, for BeOS (which also needs
    5926             # -lsocket, even if the network functions are in -lnet which
    5927             # is always linked to, for compatibility.
    5928             #-----------------------------------------------------------
    5929             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
    5930 $as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
    5931 if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
    5932   $as_echo_n "(cached) " >&6
    5933 else
    5934   ac_check_lib_save_LIBS=$LIBS
    5935 LIBS="-lbind  $LIBS"
    5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    5937 /* end confdefs.h.  */
    5938 
    5939 /* Override any GCC internal prototype to avoid an error.
    5940    Use char because int might match the return type of a GCC
    5941    builtin and then its argument prototype would still apply.  */
    5942 #ifdef __cplusplus
    5943 extern "C"
    5944 #endif
    5945 char inet_ntoa ();
    5946 int
    5947 main ()
    5948 {
    5949 return inet_ntoa ();
    5950   ;
    5951   return 0;
    5952 }
    5953 _ACEOF
    5954 if ac_fn_cxx_try_link "$LINENO"; then :
    5955   ac_cv_lib_bind_inet_ntoa=yes
    5956 else
    5957   ac_cv_lib_bind_inet_ntoa=no
    5958 fi
    5959 rm -f core conftest.err conftest.$ac_objext \
    5960     conftest$ac_exeext conftest.$ac_ext
    5961 LIBS=$ac_check_lib_save_LIBS
    5962 fi
    5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
    5964 $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
    5965 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
    5966   LIBS="$LIBS -lbind -lsocket"
    5967 fi
    5968 
    5969             ;;
    5970         BSD/OS-2.1*|BSD/OS-3*)
    5971             SHLIB_CFLAGS=""
    5972             SHLIB_LD="shlicc -r"
    5973             SHLIB_LD_LIBS='${LIBS}'
    5974             SHLIB_SUFFIX=".so"
    5975             DL_OBJS="tclLoadDl.o"
    5976             DL_LIBS="-ldl"
    5977             CC_SEARCH_FLAGS=""
    5978             LD_SEARCH_FLAGS=""
    5979             ;;
    5980         BSD/OS-4.*)
    5981             SHLIB_CFLAGS="-export-dynamic -fPIC"
    5982             SHLIB_LD="cc -shared"
    5983             SHLIB_LD_LIBS='${LIBS}'
    5984             SHLIB_SUFFIX=".so"
    5985             DL_OBJS="tclLoadDl.o"
    5986             DL_LIBS="-ldl"
    5987             LDFLAGS="$LDFLAGS -export-dynamic"
    5988             CC_SEARCH_FLAGS=""
    5989             LD_SEARCH_FLAGS=""
    5990             ;;
    5991         dgux*)
    5992             SHLIB_CFLAGS="-K PIC"
    5993             SHLIB_LD="cc -G"
    5994             SHLIB_LD_LIBS=""
    5995             SHLIB_SUFFIX=".so"
    5996             DL_OBJS="tclLoadDl.o"
    5997             DL_LIBS="-ldl"
    5998             CC_SEARCH_FLAGS=""
    5999             LD_SEARCH_FLAGS=""
    6000             ;;
    6001         HP-UX-*.11.*)
    6002             # Use updated header definitions where possible
    6003             $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
    6004           # Use the XOPEN network library
    6005             $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
    6006  # Use the XOPEN network library
    6007             LIBS="$LIBS -lxnet"               # Use the XOPEN network library
    6008 
    6009             if test "`uname -m`" = "ia64" ; then
    6010                 SHLIB_SUFFIX=".so"
    6011             else
    6012                 SHLIB_SUFFIX=".sl"
    6013             fi
    6014             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
    6015 $as_echo_n "checking for shl_load in -ldld... " >&6; }
    6016 if ${ac_cv_lib_dld_shl_load+:} false; then :
    6017   $as_echo_n "(cached) " >&6
    6018 else
    6019   ac_check_lib_save_LIBS=$LIBS
    6020 LIBS="-ldld  $LIBS"
    6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    6022 /* end confdefs.h.  */
    6023 
    6024 /* Override any GCC internal prototype to avoid an error.
    6025    Use char because int might match the return type of a GCC
    6026    builtin and then its argument prototype would still apply.  */
    6027 #ifdef __cplusplus
    6028 extern "C"
    6029 #endif
    6030 char shl_load ();
    6031 int
    6032 main ()
    6033 {
    6034 return shl_load ();
    6035   ;
    6036   return 0;
    6037 }
    6038 _ACEOF
    6039 if ac_fn_cxx_try_link "$LINENO"; then :
    6040   ac_cv_lib_dld_shl_load=yes
    6041 else
    6042   ac_cv_lib_dld_shl_load=no
    6043 fi
    6044 rm -f core conftest.err conftest.$ac_objext \
    6045     conftest$ac_exeext conftest.$ac_ext
    6046 LIBS=$ac_check_lib_save_LIBS
    6047 fi
    6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
    6049 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    6050 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
    6051   tcl_ok=yes
    6052 else
    6053   tcl_ok=no
    6054 fi
    6055 
    6056             if test "$tcl_ok" = yes; then
    6057                 SHLIB_CFLAGS="+z"
    6058                 SHLIB_LD="ld -b"
    6059                 SHLIB_LD_LIBS='${LIBS}'
    6060                 DL_OBJS="tclLoadShl.o"
    6061                 DL_LIBS="-ldld"
    6062                 LDFLAGS="$LDFLAGS -Wl,-E"
    6063                 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
    6064                 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
    6065                 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
    6066             fi
    6067             if test "$GCC" = "yes" ; then
    6068                 SHLIB_LD="gcc -shared"
    6069                 SHLIB_LD_LIBS='${LIBS}'
    6070                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    6071             fi
    6072 
    6073             # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
    6074             #CFLAGS="$CFLAGS +DAportable"
    6075 
    6076             # Check to enable 64-bit flags for compiler/linker
    6077             if test "$do64bit" = "yes" ; then
    6078                 if test "$GCC" = "yes" ; then
    6079                     hpux_arch=`${CC} -dumpmachine`
    6080                     case $hpux_arch in
    6081                         hppa64*)
    6082                             # 64-bit gcc in use.  Fix flags for GNU ld.
    6083                             do64bit_ok=yes
    6084                             SHLIB_LD="${CC} -shared"
    6085                             SHLIB_LD_LIBS='${LIBS}'
    6086                             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    6087                             LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    6088                             ;;
    6089                         *)
    6090                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
    6091 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    6092                             ;;
    6093                     esac
    6094                 else
    6095                     do64bit_ok=yes
    6096                     CFLAGS="$CFLAGS +DD64"
    6097                     LDFLAGS="$LDFLAGS +DD64"
    6098                 fi
    6099             fi
    6100             ;;
    6101         HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
    6102             SHLIB_SUFFIX=".sl"
    6103             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
    6104 $as_echo_n "checking for shl_load in -ldld... " >&6; }
    6105 if ${ac_cv_lib_dld_shl_load+:} false; then :
    6106   $as_echo_n "(cached) " >&6
    6107 else
    6108   ac_check_lib_save_LIBS=$LIBS
    6109 LIBS="-ldld  $LIBS"
    6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    6111 /* end confdefs.h.  */
    6112 
    6113 /* Override any GCC internal prototype to avoid an error.
    6114    Use char because int might match the return type of a GCC
    6115    builtin and then its argument prototype would still apply.  */
    6116 #ifdef __cplusplus
    6117 extern "C"
    6118 #endif
    6119 char shl_load ();
    6120 int
    6121 main ()
    6122 {
    6123 return shl_load ();
    6124   ;
    6125   return 0;
    6126 }
    6127 _ACEOF
    6128 if ac_fn_cxx_try_link "$LINENO"; then :
    6129   ac_cv_lib_dld_shl_load=yes
    6130 else
    6131   ac_cv_lib_dld_shl_load=no
    6132 fi
    6133 rm -f core conftest.err conftest.$ac_objext \
    6134     conftest$ac_exeext conftest.$ac_ext
    6135 LIBS=$ac_check_lib_save_LIBS
    6136 fi
    6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
    6138 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    6139 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
    6140   tcl_ok=yes
    6141 else
    6142   tcl_ok=no
    6143 fi
    6144 
    6145             if test "$tcl_ok" = yes; then
    6146                 SHLIB_CFLAGS="+z"
    6147                 SHLIB_LD="ld -b"
    6148                 SHLIB_LD_LIBS=""
    6149                 DL_OBJS="tclLoadShl.o"
    6150                 DL_LIBS="-ldld"
    6151                 LDFLAGS="$LDFLAGS -Wl,-E"
    6152                 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
    6153                 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
    6154                 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
    6155             fi
    6156             ;;
    6157         IRIX-4.*)
    6158             SHLIB_CFLAGS="-G 0"
    6159             SHLIB_SUFFIX=".a"
    6160             SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
    6161             SHLIB_LD_LIBS='${LIBS}'
    6162             DL_OBJS="tclLoadAout.o"
    6163             DL_LIBS=""
    6164             LDFLAGS="$LDFLAGS -Wl,-D,08000000"
    6165             CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    6166             LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    6167             SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
    6168             ;;
    6169         IRIX-5.*)
    6170             SHLIB_CFLAGS=""
    6171             SHLIB_LD="ld -shared -rdata_shared"
    6172             SHLIB_LD_LIBS='${LIBS}'
    6173             SHLIB_SUFFIX=".so"
    6174             DL_OBJS="tclLoadDl.o"
    6175             DL_LIBS=""
    6176             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    6177             LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    6178             ;;
    6179         IRIX-6.*)
    6180             SHLIB_CFLAGS=""
    6181             SHLIB_LD="ld -n32 -shared -rdata_shared"
    6182             SHLIB_LD_LIBS='${LIBS}'
    6183             SHLIB_SUFFIX=".so"
    6184             DL_OBJS="tclLoadDl.o"
    6185             DL_LIBS=""
    6186             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    6187             LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    6188             if test "$GCC" = "yes" ; then
    6189                 CFLAGS="$CFLAGS -mabi=n32"
    6190                 LDFLAGS="$LDFLAGS -mabi=n32"
    6191             else
    6192                 case $system in
    6193                     IRIX-6.3)
    6194                         # Use to build 6.2 compatible binaries on 6.3.
    6195                         CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
    6196                         ;;
    6197                     *)
    6198                         CFLAGS="$CFLAGS -n32"
    6199                         ;;
    6200                 esac
    6201                 LDFLAGS="$LDFLAGS -n32"
    6202             fi
    6203             ;;
    6204         IRIX64-6.*)
    6205             SHLIB_CFLAGS=""
    6206             SHLIB_LD="ld -n32 -shared -rdata_shared"
    6207             SHLIB_LD_LIBS='${LIBS}'
    6208             SHLIB_SUFFIX=".so"
    6209             DL_OBJS="tclLoadDl.o"
    6210             DL_LIBS=""
    6211             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    6212             LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    6213 
    6214             # Check to enable 64-bit flags for compiler/linker
    6215 
    6216             if test "$do64bit" = "yes" ; then
    6217                 if test "$GCC" = "yes" ; then
    6218                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
    6219 $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
    6220                 else
    6221                     do64bit_ok=yes
    6222                     SHLIB_LD="ld -64 -shared -rdata_shared"
    6223                     CFLAGS="$CFLAGS -64"
    6224                     LDFLAGS="$LDFLAGS -64"
    6225                 fi
    6226             fi
    6227             ;;
    6228         Linux*)
    6229             SHLIB_CFLAGS="-fPIC"
    6230             SHLIB_LD_LIBS='${LIBS}'
    6231             SHLIB_SUFFIX=".so"
    6232 
    6233             CFLAGS_OPTIMIZE=-O2
    6234             # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
    6235             # when you inline the string and math operations.  Turn this off to
    6236             # get rid of the warnings.
    6237             #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
    6238 
    6239             if test "$have_dl" = yes; then
    6240                 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
    6241                 DL_OBJS="tclLoadDl.o"
    6242                 DL_LIBS="-ldl"
    6243                 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
    6244                 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    6245                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    6246             else
    6247                 ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
    6248 if test "x$ac_cv_header_dld_h" = xyes; then :
    6249 
    6250                     SHLIB_LD="ld -shared"
    6251                     DL_OBJS="tclLoadDld.o"
    6252                     DL_LIBS="-ldld"
    6253                     CC_SEARCH_FLAGS=""
    6254                     LD_SEARCH_FLAGS=""
    6255 fi
    6256 
    6257 
    6258             fi
    6259             if test "`uname -m`" = "alpha" ; then
    6260                 CFLAGS="$CFLAGS -mieee"
    6261             fi
    6262             if test $do64bit = yes; then
    6263                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
    6264 $as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
    6265 if ${tcl_cv_cc_m64+:} false; then :
    6266   $as_echo_n "(cached) " >&6
    6267 else
    6268 
    6269                     hold_cflags=$CFLAGS
    6270                     CFLAGS="$CFLAGS -m64"
    6271                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    6272 /* end confdefs.h.  */
    6273 
    6274 int
    6275 main ()
    6276 {
    6277 
    6278   ;
    6279   return 0;
    6280 }
    6281 _ACEOF
    6282 if ac_fn_cxx_try_link "$LINENO"; then :
    6283   tcl_cv_cc_m64=yes
    6284 else
    6285   tcl_cv_cc_m64=no
    6286 fi
    6287 rm -f core conftest.err conftest.$ac_objext \
    6288     conftest$ac_exeext conftest.$ac_ext
    6289                     CFLAGS=$hold_cflags
    6290 fi
    6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
    6292 $as_echo "$tcl_cv_cc_m64" >&6; }
    6293                 if test $tcl_cv_cc_m64 = yes; then
    6294                     CFLAGS="$CFLAGS -m64"
    6295                     do64bit_ok=yes
    6296                 fi
    6297             fi
    6298 
    6299             # The combo of gcc + glibc has a bug related
    6300             # to inlining of functions like strtod(). The
    6301             # -fno-builtin flag should address this problem
    6302             # but it does not work. The -fno-inline flag
    6303             # is kind of overkill but it works.
    6304             # Disable inlining only when one of the
    6305             # files in compat/*.c is being linked in.
    6306             if test x"${LIBOBJS}" != x ; then
    6307                 CFLAGS="$CFLAGS -fno-inline"
    6308             fi
    6309 
    6310             # XIM peeking works under XFree86.
    6311             $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
    6312 
    6313 
    6314             ;;
    6315         GNU*)
    6316             SHLIB_CFLAGS="-fPIC"
    6317             SHLIB_LD_LIBS='${LIBS}'
    6318             SHLIB_SUFFIX=".so"
    6319 
    6320             if test "$have_dl" = yes; then
    6321                 SHLIB_LD="${CC} -shared"
    6322                 DL_OBJS=""
    6323                 DL_LIBS="-ldl"
    6324                 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
    6325                 CC_SEARCH_FLAGS=""
    6326                 LD_SEARCH_FLAGS=""
    6327             else
    6328                 ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
    6329 if test "x$ac_cv_header_dld_h" = xyes; then :
    6330 
    6331                     SHLIB_LD="ld -shared"
    6332                     DL_OBJS=""
    6333                     DL_LIBS="-ldld"
    6334                     CC_SEARCH_FLAGS=""
    6335                     LD_SEARCH_FLAGS=""
    6336 fi
    6337 
    6338 
    6339             fi
    6340             if test "`uname -m`" = "alpha" ; then
    6341                 CFLAGS="$CFLAGS -mieee"
    6342             fi
    6343             ;;
    6344         Lynx*)
    6345             SHLIB_CFLAGS="-fPIC"
    6346             SHLIB_LD_LIBS='${LIBS}'
    6347             SHLIB_SUFFIX=".so"
    6348             CFLAGS_OPTIMIZE=-02
    6349             SHLIB_LD="${CC} -shared "
    6350             DL_OBJS="tclLoadDl.o"
    6351             DL_LIBS="-mshared -ldl"
    6352             LD_FLAGS="-Wl,--export-dynamic"
    6353             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    6354             LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    6355             ;;
    6356         MP-RAS-02*)
    6357             SHLIB_CFLAGS="-K PIC"
    6358             SHLIB_LD="cc -G"
    6359             SHLIB_LD_LIBS=""
    6360             SHLIB_SUFFIX=".so"
    6361             DL_OBJS="tclLoadDl.o"
    6362             DL_LIBS="-ldl"
    6363             CC_SEARCH_FLAGS=""
    6364             LD_SEARCH_FLAGS=""
    6365             ;;
    6366         MP-RAS-*)
    6367             SHLIB_CFLAGS="-K PIC"
    6368             SHLIB_LD="cc -G"
    6369             SHLIB_LD_LIBS=""
    6370             SHLIB_SUFFIX=".so"
    6371             DL_OBJS="tclLoadDl.o"
    6372             DL_LIBS="-ldl"
    6373             LDFLAGS="$LDFLAGS -Wl,-Bexport"
    6374             CC_SEARCH_FLAGS=""
    6375             LD_SEARCH_FLAGS=""
    6376             ;;
    6377         NetBSD-*|FreeBSD-[1-2].*)
    6378             # Not available on all versions:  check for include file.
    6379             ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
    6380 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
    6381 
    6382                 # NetBSD/SPARC needs -fPIC, -fpic will not do.
    6383                 SHLIB_CFLAGS="-fPIC"
    6384                 SHLIB_LD="ld -Bshareable -x"
    6385                 SHLIB_LD_LIBS='${LIBS}'
    6386                 SHLIB_SUFFIX=".so"
    6387                 DL_OBJS="tclLoadDl.o"
    6388                 DL_LIBS=""
    6389                 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    6390                 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    6391                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
    6392 $as_echo_n "checking for ELF... " >&6; }
    6393 if ${tcl_cv_ld_elf+:} false; then :
    6394   $as_echo_n "(cached) " >&6
    6395 else
    6396 
    6397                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    6398 /* end confdefs.h.  */
    6399 
    6400 #ifdef __ELF__
    6401         yes
    6402 #endif
    6403 
    6404 _ACEOF
    6405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    6406   $EGREP "yes" >/dev/null 2>&1; then :
    6407   tcl_cv_ld_elf=yes
    6408 else
    6409   tcl_cv_ld_elf=no
    6410 fi
    6411 rm -f conftest*
    6412 
    6413 fi
    6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
    6415 $as_echo "$tcl_cv_ld_elf" >&6; }
    6416                 if test $tcl_cv_ld_elf = yes; then
    6417                     SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
    6418                 else
    6419                     SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
    6420                 fi
    6421 
    6422 else
    6423 
    6424                 SHLIB_CFLAGS=""
    6425                 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
    6426                 SHLIB_LD_LIBS='${LIBS}'
    6427                 SHLIB_SUFFIX=".a"
    6428                 DL_OBJS="tclLoadAout.o"
    6429                 DL_LIBS=""
    6430                 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    6431                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    6432                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    6433 
    6434 fi
    6435 
    6436 
    6437 
    6438             # FreeBSD doesn't handle version numbers with dots.
    6439 
    6440             UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    6441             TCL_LIB_VERSIONS_OK=nodots
    6442             ;;
    6443         OpenBSD-*)
    6444             case `arch -s` in
    6445             m88k|vax)
    6446                 SHLIB_CFLAGS=""
    6447                 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
    6448                 SHLIB_LD_LIBS='${LIBS}'
    6449                 SHLIB_SUFFIX=".a"
    6450                 DL_OBJS="tclLoadAout.o"
    6451                 DL_LIBS=""
    6452                 LDFLAGS=""
    6453                 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    6454                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    6455                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    6456                 ;;
    6457             *)
    6458                 # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
    6459                 case `machine` in
    6460                 sparc|sparc64)
    6461                     SHLIB_CFLAGS="-fPIC";;
    6462                 *)
    6463                     SHLIB_CFLAGS="-fpic";;
    6464                 esac
    6465                 SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
    6466                 SHLIB_LD_LIBS='${LIBS}'
    6467                 SHLIB_SUFFIX=".so"
    6468                 DL_OBJS="tclLoadDl.o"
    6469                 DL_LIBS=""
    6470                 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    6471                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    6472                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
    6473                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
    6474 $as_echo_n "checking for ELF... " >&6; }
    6475 if ${tcl_cv_ld_elf+:} false; then :
    6476   $as_echo_n "(cached) " >&6
    6477 else
    6478 
    6479                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    6480 /* end confdefs.h.  */
    6481 
    6482 #ifdef __ELF__
    6483         yes
    6484 #endif
    6485 
    6486 _ACEOF
    6487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    6488   $EGREP "yes" >/dev/null 2>&1; then :
    6489   tcl_cv_ld_elf=yes
    6490 else
    6491   tcl_cv_ld_elf=no
    6492 fi
    6493 rm -f conftest*
    6494 
    6495 fi
    6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
    6497 $as_echo "$tcl_cv_ld_elf" >&6; }
    6498                 if test $tcl_cv_ld_elf = yes; then
    6499                     LDFLAGS=-Wl,-export-dynamic
    6500                 else
    6501                     LDFLAGS=""
    6502                 fi
    6503                 ;;
    6504             esac
    6505 
    6506             # OpenBSD doesn't do version numbers with dots.
    6507             UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    6508             TCL_LIB_VERSIONS_OK=nodots
    6509             ;;
    6510         FreeBSD-*)
    6511             # FreeBSD 3.* and greater have ELF.
    6512             SHLIB_CFLAGS="-fPIC"
    6513             SHLIB_LD="ld -Bshareable -x"
    6514             SHLIB_LD_LIBS='${LIBS}'
    6515             SHLIB_SUFFIX=".so"
    6516             DL_OBJS="tclLoadDl.o"
    6517             DL_LIBS=""
    6518             LDFLAGS="$LDFLAGS -export-dynamic"
    6519             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    6520             LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    6521             if test "${TCL_THREADS}" = "1" ; then
    6522                 # The -pthread needs to go in the CFLAGS, not LIBS
    6523                 LIBS=`echo $LIBS | sed s/-pthread//`
    6524                 CFLAGS="$CFLAGS -pthread"
    6525                 LDFLAGS="$LDFLAGS -pthread"
    6526             fi
    6527             case $system in
    6528             FreeBSD-3.*)
    6529                 # FreeBSD-3 doesn't handle version numbers with dots.
    6530                 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    6531                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
    6532                 TCL_LIB_VERSIONS_OK=nodots
    6533                 ;;
    6534             esac
    6535             ;;
    6536         Darwin-*)
    6537             CFLAGS_OPTIMIZE="-Os"
    6538             SHLIB_CFLAGS="-fno-common"
    6539             # To avoid discrepancies between what headers configure sees during
    6540             # preprocessing tests and compiling tests, move any -isysroot and
    6541             # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
    6542             CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
    6543                 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
    6544                 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
    6545             CFLAGS="`echo " ${CFLAGS}" | \
    6546                 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
    6547                 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
    6548             if test $do64bit = yes; then
    6549                 case `arch` in
    6550                     ppc)
    6551                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
    6552 $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
    6553 if ${tcl_cv_cc_arch_ppc64+:} false; then :
    6554   $as_echo_n "(cached) " >&6
    6555 else
    6556 
    6557                             hold_cflags=$CFLAGS
    6558                             CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
    6559                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    6560 /* end confdefs.h.  */
    6561 
    6562 int
    6563 main ()
    6564 {
    6565 
    6566   ;
    6567   return 0;
    6568 }
    6569 _ACEOF
    6570 if ac_fn_cxx_try_link "$LINENO"; then :
    6571   tcl_cv_cc_arch_ppc64=yes
    6572 else
    6573   tcl_cv_cc_arch_ppc64=no
    6574 fi
    6575 rm -f core conftest.err conftest.$ac_objext \
    6576     conftest$ac_exeext conftest.$ac_ext
    6577                             CFLAGS=$hold_cflags
    6578 fi
    6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
    6580 $as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
    6581                         if test $tcl_cv_cc_arch_ppc64 = yes; then
    6582                             CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
    6583                             do64bit_ok=yes
    6584                         fi;;
    6585                     i386)
    6586                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
    6587 $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
    6588 if ${tcl_cv_cc_arch_x86_64+:} false; then :
    6589   $as_echo_n "(cached) " >&6
    6590 else
    6591 
    6592                             hold_cflags=$CFLAGS
    6593                             CFLAGS="$CFLAGS -arch x86_64"
    6594                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    6595 /* end confdefs.h.  */
    6596 
    6597 int
    6598 main ()
    6599 {
    6600 
    6601   ;
    6602   return 0;
    6603 }
    6604 _ACEOF
    6605 if ac_fn_cxx_try_link "$LINENO"; then :
    6606   tcl_cv_cc_arch_x86_64=yes
    6607 else
    6608   tcl_cv_cc_arch_x86_64=no
    6609 fi
    6610 rm -f core conftest.err conftest.$ac_objext \
    6611     conftest$ac_exeext conftest.$ac_ext
    6612                             CFLAGS=$hold_cflags
    6613 fi
    6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
    6615 $as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
    6616                         if test $tcl_cv_cc_arch_x86_64 = yes; then
    6617                             CFLAGS="$CFLAGS -arch x86_64"
    6618                             do64bit_ok=yes
    6619                         fi;;
    6620                     *)
    6621                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
    6622 $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
    6623                 esac
    6624             else
    6625                 # Check for combined 32-bit and 64-bit fat build
    6626                 echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
    6627                     echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
    6628                     fat_32_64=yes
    6629             fi
    6630             SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
    6631             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
    6632 $as_echo_n "checking if ld accepts -single_module flag... " >&6; }
    6633 if ${tcl_cv_ld_single_module+:} false; then :
    6634   $as_echo_n "(cached) " >&6
    6635 else
    6636 
    6637                 hold_ldflags=$LDFLAGS
    6638                 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
    6639                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    6640 /* end confdefs.h.  */
    6641 
    6642 int
    6643 main ()
    6644 {
    6645 int i;
    6646   ;
    6647   return 0;
    6648 }
    6649 _ACEOF
    6650 if ac_fn_cxx_try_link "$LINENO"; then :
    6651   tcl_cv_ld_single_module=yes
    6652 else
    6653   tcl_cv_ld_single_module=no
    6654 fi
    6655 rm -f core conftest.err conftest.$ac_objext \
    6656     conftest$ac_exeext conftest.$ac_ext
    6657                 LDFLAGS=$hold_ldflags
    6658 fi
    6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
    6660 $as_echo "$tcl_cv_ld_single_module" >&6; }
    6661             if test $tcl_cv_ld_single_module = yes; then
    6662                 SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
    6663             fi
    6664             SHLIB_LD_LIBS='${LIBS}'
    6665             SHLIB_SUFFIX=".dylib"
    6666             DL_OBJS="tclLoadDyld.o"
    6667             DL_LIBS=""
    6668             # Don't use -prebind when building for Mac OS X 10.4 or later only:
    6669             test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
    6670                 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
    6671                 LDFLAGS="$LDFLAGS -prebind"
    6672             LDFLAGS="$LDFLAGS -headerpad_max_install_names"
    6673             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
    6674 $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
    6675 if ${tcl_cv_ld_search_paths_first+:} false; then :
    6676   $as_echo_n "(cached) " >&6
    6677 else
    6678 
    6679                 hold_ldflags=$LDFLAGS
    6680                 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
    6681                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    6682 /* end confdefs.h.  */
    6683 
    6684 int
    6685 main ()
    6686 {
    6687 int i;
    6688   ;
    6689   return 0;
    6690 }
    6691 _ACEOF
    6692 if ac_fn_cxx_try_link "$LINENO"; then :
    6693   tcl_cv_ld_search_paths_first=yes
    6694 else
    6695   tcl_cv_ld_search_paths_first=no
    6696 fi
    6697 rm -f core conftest.err conftest.$ac_objext \
    6698     conftest$ac_exeext conftest.$ac_ext
    6699                 LDFLAGS=$hold_ldflags
    6700 fi
    6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
    6702 $as_echo "$tcl_cv_ld_search_paths_first" >&6; }
    6703             if test $tcl_cv_ld_search_paths_first = yes; then
    6704                 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
    6705             fi
    6706             CC_SEARCH_FLAGS=""
    6707             LD_SEARCH_FLAGS=""
    6708             LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
    6709             PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
    6710             PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
    6711             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
    6712 $as_echo_n "checking whether to use CoreFoundation... " >&6; }
    6713             # Check whether --enable-corefoundation was given.
    6714 if test "${enable_corefoundation+set}" = set; then :
    6715   enableval=$enable_corefoundation; tcl_corefoundation=$enableval
    6716 else
    6717   tcl_corefoundation=yes
    6718 fi
    6719 
    6720             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
    6721 $as_echo "$tcl_corefoundation" >&6; }
    6722             if test $tcl_corefoundation = yes; then
    6723                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
    6724 $as_echo_n "checking for CoreFoundation.framework... " >&6; }
    6725 if ${tcl_cv_lib_corefoundation+:} false; then :
    6726   $as_echo_n "(cached) " >&6
    6727 else
    6728 
    6729                     hold_libs=$LIBS
    6730                     if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
    6731                         # On Tiger there is no 64-bit CF, so remove 64-bit archs
    6732                         # from CFLAGS et al. while testing for presence of CF.
    6733                         # 64-bit CF is disabled in tclUnixPort.h if necessary.
    6734                         eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
    6735                     done; fi
    6736                     LIBS="$LIBS -framework CoreFoundation"
    6737                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    6738 /* end confdefs.h.  */
    6739 #include <CoreFoundation/CoreFoundation.h>
    6740 int
    6741 main ()
    6742 {
    6743 CFBundleRef b = CFBundleGetMainBundle();
    6744   ;
    6745   return 0;
    6746 }
    6747 _ACEOF
    6748 if ac_fn_cxx_try_link "$LINENO"; then :
    6749   tcl_cv_lib_corefoundation=yes
    6750 else
    6751   tcl_cv_lib_corefoundation=no
    6752 fi
    6753 rm -f core conftest.err conftest.$ac_objext \
    6754     conftest$ac_exeext conftest.$ac_ext
    6755                     if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
    6756                         eval $v'="$hold_'$v'"'
    6757                     done; fi; LIBS=$hold_libs
    6758 fi
    6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
    6760 $as_echo "$tcl_cv_lib_corefoundation" >&6; }
    6761                 if test $tcl_cv_lib_corefoundation = yes; then
    6762                     LIBS="$LIBS -framework CoreFoundation"
    6763                     $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
    6764 
    6765                 else
    6766                     tcl_corefoundation=no
    6767                 fi
    6768                 if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
    6769                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
    6770 $as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
    6771 if ${tcl_cv_lib_corefoundation_64+:} false; then :
    6772   $as_echo_n "(cached) " >&6
    6773 else
    6774 
    6775                         for v in CFLAGS CPPFLAGS LDFLAGS; do
    6776                             eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
    6777                         done
    6778                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    6779 /* end confdefs.h.  */
    6780 #include <CoreFoundation/CoreFoundation.h>
    6781 int
    6782 main ()
    6783 {
    6784 CFBundleRef b = CFBundleGetMainBundle();
    6785   ;
    6786   return 0;
    6787 }
    6788 _ACEOF
    6789 if ac_fn_cxx_try_link "$LINENO"; then :
    6790   tcl_cv_lib_corefoundation_64=yes
    6791 else
    6792   tcl_cv_lib_corefoundation_64=no
    6793 fi
    6794 rm -f core conftest.err conftest.$ac_objext \
    6795     conftest$ac_exeext conftest.$ac_ext
    6796                         for v in CFLAGS CPPFLAGS LDFLAGS; do
    6797                             eval $v'="$hold_'$v'"'
    6798                         done
    6799 fi
    6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
    6801 $as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
    6802                     if test $tcl_cv_lib_corefoundation_64 = no; then
    6803                         $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
    6804 
    6805                     fi
    6806                 fi
    6807             fi
    6808             $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
    6809 
    6810             ;;
    6811         NEXTSTEP-*)
    6812             SHLIB_CFLAGS=""
    6813             SHLIB_LD="cc -nostdlib -r"
    6814             SHLIB_LD_LIBS=""
    6815             SHLIB_SUFFIX=".so"
    6816             DL_OBJS="tclLoadNext.o"
    6817             DL_LIBS=""
    6818             CC_SEARCH_FLAGS=""
    6819             LD_SEARCH_FLAGS=""
    6820             ;;
    6821         OS/390-*)
    6822             CFLAGS_OPTIMIZE=""          # Optimizer is buggy
    6823             $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
    6824         # needed in sys/socket.h
    6825             ;;
    6826         OSF1-1.0|OSF1-1.1|OSF1-1.2)
    6827             # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
    6828             SHLIB_CFLAGS=""
    6829             # Hack: make package name same as library name
    6830             SHLIB_LD='ld -R -export :'
    6831             SHLIB_LD_LIBS=""
    6832             SHLIB_SUFFIX=".so"
    6833             DL_OBJS="tclLoadOSF.o"
    6834             DL_LIBS=""
    6835             CC_SEARCH_FLAGS=""
    6836             LD_SEARCH_FLAGS=""
    6837             ;;
    6838         OSF1-1.*)
    6839             # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
    6840             SHLIB_CFLAGS="-fPIC"
    6841             if test "$SHARED_BUILD" = "1" ; then
    6842                 SHLIB_LD="ld -shared"
    6843             else
    6844                 SHLIB_LD="ld -non_shared"
    6845             fi
    6846             SHLIB_LD_LIBS=""
    6847             SHLIB_SUFFIX=".so"
    6848             DL_OBJS="tclLoadDl.o"
    6849             DL_LIBS=""
    6850             CC_SEARCH_FLAGS=""
    6851             LD_SEARCH_FLAGS=""
    6852             ;;
    6853         OSF1-V*)
    6854             # Digital OSF/1
    6855             SHLIB_CFLAGS=""
    6856             if test "$SHARED_BUILD" = "1" ; then
    6857                 SHLIB_LD='ld -shared -expect_unresolved "*"'
    6858             else
    6859                 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
    6860             fi
    6861             SHLIB_LD_LIBS=""
    6862             SHLIB_SUFFIX=".so"
    6863             DL_OBJS="tclLoadDl.o"
    6864             DL_LIBS=""
    6865             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    6866             LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    6867             if test "$GCC" = "yes" ; then
    6868                 CFLAGS="$CFLAGS -mieee"
    6869             else
    6870                 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
    6871             fi
    6872             # see pthread_intro(3) for pthread support on osf1, k.furukawa
    6873             if test "${TCL_THREADS}" = "1" ; then
    6874                 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
    6875                 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
    6876                 LIBS=`echo $LIBS | sed s/-lpthreads//`
    6877                 if test "$GCC" = "yes" ; then
    6878                     LIBS="$LIBS -lpthread -lmach -lexc"
    6879                 else
    6880                     CFLAGS="$CFLAGS -pthread"
    6881                     LDFLAGS="$LDFLAGS -pthread"
    6882                 fi
    6883             fi
    6884 
    6885             ;;
    6886         QNX-6*)
    6887             # QNX RTP
    6888             # This may work for all QNX, but it was only reported for v6.
    6889             SHLIB_CFLAGS="-fPIC"
    6890             SHLIB_LD="ld -Bshareable -x"
    6891             SHLIB_LD_LIBS=""
    6892             SHLIB_SUFFIX=".so"
    6893             DL_OBJS="tclLoadDl.o"
    6894             # dlopen is in -lc on QNX
    6895             DL_LIBS=""
    6896             CC_SEARCH_FLAGS=""
    6897             LD_SEARCH_FLAGS=""
    6898             ;;
    6899         RISCos-*)
    6900             SHLIB_CFLAGS="-G 0"
    6901             SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
    6902             SHLIB_LD_LIBS='${LIBS}'
    6903             SHLIB_SUFFIX=".a"
    6904             DL_OBJS="tclLoadAout.o"
    6905             DL_LIBS=""
    6906             LDFLAGS="$LDFLAGS -Wl,-D,08000000"
    6907             CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    6908             LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    6909             ;;
    6910         SCO_SV-3.2*)
    6911             # Note, dlopen is available only on SCO 3.2.5 and greater. However,
    6912             # this test works, since "uname -s" was non-standard in 3.2.4 and
    6913             # below.
    6914             if test "$GCC" = "yes" ; then
    6915                 SHLIB_CFLAGS="-fPIC -melf"
    6916                 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
    6917             else
    6918                 SHLIB_CFLAGS="-Kpic -belf"
    6919                 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
    6920             fi
    6921             SHLIB_LD="ld -G"
    6922             SHLIB_LD_LIBS=""
    6923             SHLIB_SUFFIX=".so"
    6924             DL_OBJS="tclLoadDl.o"
    6925             DL_LIBS=""
    6926             CC_SEARCH_FLAGS=""
    6927             LD_SEARCH_FLAGS=""
    6928             ;;
    6929         SINIX*5.4*)
    6930             SHLIB_CFLAGS="-K PIC"
    6931             SHLIB_LD="cc -G"
    6932             SHLIB_LD_LIBS=""
    6933             SHLIB_SUFFIX=".so"
    6934             DL_OBJS="tclLoadDl.o"
    6935             DL_LIBS="-ldl"
    6936             CC_SEARCH_FLAGS=""
    6937             LD_SEARCH_FLAGS=""
    6938             ;;
    6939         SunOS-4*)
    6940             SHLIB_CFLAGS="-PIC"
    6941             SHLIB_LD="ld"
    6942             SHLIB_LD_LIBS=""
    6943             SHLIB_SUFFIX=".so"
    6944             DL_OBJS="tclLoadDl.o"
    6945             DL_LIBS="-ldl"
    6946             CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    6947             LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    6948 
    6949             # SunOS can't handle version numbers with dots in them in library
    6950             # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
    6951             # requires an extra version number at the end of .so file names.
    6952             # So, the library has to have a name like libtcl75.so.1.0
    6953 
    6954             SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
    6955             UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    6956             TCL_LIB_VERSIONS_OK=nodots
    6957             ;;
    6958         SunOS-5.[0-6])
    6959             # Careful to not let 5.10+ fall into this case
    6960 
    6961             # Note: If _REENTRANT isn't defined, then Solaris
    6962             # won't define thread-safe library routines.
    6963 
    6964             $as_echo "#define _REENTRANT 1" >>confdefs.h
    6965 
    6966             $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
    6967 
    6968 
    6969             SHLIB_CFLAGS="-KPIC"
    6970 
    6971             # Note: need the LIBS below, otherwise Tk won't find Tcl's
    6972             # symbols when dynamically loaded into tclsh.
    6973 
    6974             SHLIB_LD_LIBS='${LIBS}'
    6975             SHLIB_SUFFIX=".so"
    6976             DL_OBJS="tclLoadDl.o"
    6977             DL_LIBS="-ldl"
    6978             if test "$GCC" = "yes" ; then
    6979                 SHLIB_LD="$CC -shared"
    6980                 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
    6981                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    6982             else
    6983                 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
    6984                 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
    6985                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    6986             fi
    6987             ;;
    6988         SunOS-5*)
    6989             # Note: If _REENTRANT isn't defined, then Solaris
    6990             # won't define thread-safe library routines.
    6991 
    6992             $as_echo "#define _REENTRANT 1" >>confdefs.h
    6993 
    6994             $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
    6995 
    6996 
    6997             SHLIB_CFLAGS="-KPIC"
    6998 
    6999             # Check to enable 64-bit flags for compiler/linker
    7000             if test "$do64bit" = "yes" ; then
    7001                 arch=`isainfo`
    7002                 if test "$arch" = "sparcv9 sparc" ; then
    7003                         if test "$GCC" = "yes" ; then
    7004                             if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
    7005                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
    7006 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
    7007                             else
    7008                                 do64bit_ok=yes
    7009                                 CFLAGS="$CFLAGS -m64 -mcpu=v9"
    7010                                 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
    7011                                 SHLIB_CFLAGS="-fPIC"
    7012                             fi
    7013                         else
    7014                             do64bit_ok=yes
    7015                             if test "$do64bitVIS" = "yes" ; then
    7016                                 CFLAGS="$CFLAGS -xarch=v9a"
    7017                                 LDFLAGS="$LDFLAGS -xarch=v9a"
    7018                             else
    7019                                 CFLAGS="$CFLAGS -xarch=v9"
    7020                                 LDFLAGS="$LDFLAGS -xarch=v9"
    7021                             fi
    7022                             # Solaris 64 uses this as well
    7023                             #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
    7024                         fi
    7025                 elif test "$arch" = "amd64 i386" ; then
    7026                     if test "$GCC" = "yes" ; then
    7027                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
    7028 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    7029                     else
    7030                         do64bit_ok=yes
    7031                         CFLAGS="$CFLAGS -xarch=amd64"
    7032                         LDFLAGS="$LDFLAGS -xarch=amd64"
    7033                     fi
    7034                 else
    7035                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
    7036 $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
    7037                 fi
    7038             fi
    7039 
    7040             # Note: need the LIBS below, otherwise Tk won't find Tcl's
    7041             # symbols when dynamically loaded into tclsh.
    7042 
    7043             SHLIB_LD_LIBS='${LIBS}'
    7044             SHLIB_SUFFIX=".so"
    7045             DL_OBJS="tclLoadDl.o"
    7046             DL_LIBS="-ldl"
    7047             if test "$GCC" = "yes" ; then
    7048                 SHLIB_LD="$CC -shared"
    7049                 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
    7050                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    7051                 if test "$do64bit_ok" = "yes" ; then
    7052                     # We need to specify -static-libgcc or we need to
    7053                     # add the path to the sparv9 libgcc.
    7054                     SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
    7055                     # for finding sparcv9 libgcc, get the regular libgcc
    7056                     # path, remove so name and append 'sparcv9'
    7057                     #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
    7058                     #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
    7059                 fi
    7060             else
    7061                 case $system in
    7062                     SunOS-5.[1-9][0-9]*)
    7063                         SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
    7064                     *)
    7065                         SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
    7066                 esac
    7067                 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
    7068                 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
    7069             fi
    7070             ;;
    7071         ULTRIX-4.*)
    7072             SHLIB_CFLAGS="-G 0"
    7073             SHLIB_SUFFIX=".a"
    7074             SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
    7075             SHLIB_LD_LIBS='${LIBS}'
    7076             DL_OBJS="tclLoadAout.o"
    7077             DL_LIBS=""
    7078             LDFLAGS="$LDFLAGS -Wl,-D,08000000"
    7079             CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    7080             LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    7081             if test "$GCC" != "yes" ; then
    7082                 CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
    7083             fi
    7084             ;;
    7085         UNIX_SV* | UnixWare-5*)
    7086             SHLIB_CFLAGS="-KPIC"
    7087             SHLIB_LD="cc -G"
    7088             SHLIB_LD_LIBS=""
    7089             SHLIB_SUFFIX=".so"
    7090             DL_OBJS="tclLoadDl.o"
    7091             DL_LIBS="-ldl"
    7092             # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
    7093             # that don't grok the -Bexport option.  Test that it does.
    7094             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
    7095 $as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
    7096 if ${tcl_cv_ld_Bexport+:} false; then :
    7097   $as_echo_n "(cached) " >&6
    7098 else
    7099 
    7100                 hold_ldflags=$LDFLAGS
    7101                 LDFLAGS="$LDFLAGS -Wl,-Bexport"
    7102                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7103 /* end confdefs.h.  */
    7104 
    7105 int
    7106 main ()
    7107 {
    7108 int i;
    7109   ;
    7110   return 0;
    7111 }
    7112 _ACEOF
    7113 if ac_fn_cxx_try_link "$LINENO"; then :
    7114   tcl_cv_ld_Bexport=yes
    7115 else
    7116   tcl_cv_ld_Bexport=no
    7117 fi
    7118 rm -f core conftest.err conftest.$ac_objext \
    7119     conftest$ac_exeext conftest.$ac_ext
    7120                 LDFLAGS=$hold_ldflags
    7121 fi
    7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
    7123 $as_echo "$tcl_cv_ld_Bexport" >&6; }
    7124             if test $tcl_cv_ld_Bexport = yes; then
    7125                 LDFLAGS="$LDFLAGS -Wl,-Bexport"
    7126             fi
    7127             CC_SEARCH_FLAGS=""
    7128             LD_SEARCH_FLAGS=""
    7129             ;;
    7130     esac
    7131 
    7132     if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
    7133         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
    7134 $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
    7135     fi
    7136 
    7137 
    7138 
    7139 
    7140     # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
    7141     # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
    7142     # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
    7143     # to determine which of several header files defines the a.out file
    7144     # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
    7145     # support only a file format that is more or less version-7-compatible.
    7146     # In particular,
    7147     #   - a.out files must begin with `struct exec'.
    7148     #   - the N_TXTOFF on the `struct exec' must compute the seek address
    7149     #     of the text segment
    7150     #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
    7151     #     and a_entry fields.
    7152     # The following compilation should succeed if and only if either sys/exec.h
    7153     # or a.out.h is usable for the purpose.
    7154     #
    7155     # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
    7156     # `struct exec' includes a second header that contains information that
    7157     # duplicates the v7 fields that are needed.
    7158 
    7159     if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
    7160         { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
    7161 $as_echo_n "checking sys/exec.h... " >&6; }
    7162 if ${tcl_cv_sysexec_h+:} false; then :
    7163   $as_echo_n "(cached) " >&6
    7164 else
    7165 
    7166         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7167 /* end confdefs.h.  */
    7168 #include <sys/exec.h>
    7169 int
    7170 main ()
    7171 {
    7172 
    7173             struct exec foo;
    7174             unsigned long seek;
    7175             int flag;
    7176 #if defined(__mips) || defined(mips)
    7177             seek = N_TXTOFF (foo.ex_f, foo.ex_o);
    7178 #else
    7179             seek = N_TXTOFF (foo);
    7180 #endif
    7181             flag = (foo.a_magic == OMAGIC);
    7182             return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
    7183 
    7184   ;
    7185   return 0;
    7186 }
    7187 _ACEOF
    7188 if ac_fn_cxx_try_compile "$LINENO"; then :
    7189   tcl_cv_sysexec_h=usable
    7190 else
    7191   tcl_cv_sysexec_h=unusable
    7192 fi
    7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    7194 fi
    7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
    7196 $as_echo "$tcl_cv_sysexec_h" >&6; }
    7197         if test $tcl_cv_sysexec_h = usable; then
    7198             $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
    7199 
    7200         else
    7201             { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
    7202 $as_echo_n "checking a.out.h... " >&6; }
    7203 if ${tcl_cv_aout_h+:} false; then :
    7204   $as_echo_n "(cached) " >&6
    7205 else
    7206 
    7207             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7208 /* end confdefs.h.  */
    7209 #include <a.out.h>
    7210 int
    7211 main ()
    7212 {
    7213 
    7214                 struct exec foo;
    7215                 unsigned long seek;
    7216                 int flag;
    7217 #if defined(__mips) || defined(mips)
    7218                 seek = N_TXTOFF (foo.ex_f, foo.ex_o);
    7219 #else
    7220                 seek = N_TXTOFF (foo);
    7221 #endif
    7222                 flag = (foo.a_magic == OMAGIC);
    7223                 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
    7224 
    7225   ;
    7226   return 0;
    7227 }
    7228 _ACEOF
    7229 if ac_fn_cxx_try_compile "$LINENO"; then :
    7230   tcl_cv_aout_h=usable
    7231 else
    7232   tcl_cv_aout_h=unusable
    7233 fi
    7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    7235 fi
    7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
    7237 $as_echo "$tcl_cv_aout_h" >&6; }
    7238             if test $tcl_cv_aout_h = usable; then
    7239                 $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
    7240 
    7241             else
    7242                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
    7243 $as_echo_n "checking sys/exec_aout.h... " >&6; }
    7244 if ${tcl_cv_sysexecaout_h+:} false; then :
    7245   $as_echo_n "(cached) " >&6
    7246 else
    7247 
    7248                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    7249 /* end confdefs.h.  */
    7250 #include <sys/exec_aout.h>
    7251 int
    7252 main ()
    7253 {
    7254 
    7255                     struct exec foo;
    7256                     unsigned long seek;
    7257                     int flag;
    7258 #if defined(__mips) || defined(mips)
    7259                     seek = N_TXTOFF (foo.ex_f, foo.ex_o);
    7260 #else
    7261                     seek = N_TXTOFF (foo);
    7262 #endif
    7263                     flag = (foo.a_midmag == OMAGIC);
    7264                     return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
    7265 
    7266   ;
    7267   return 0;
    7268 }
    7269 _ACEOF
    7270 if ac_fn_cxx_try_compile "$LINENO"; then :
    7271   tcl_cv_sysexecaout_h=usable
    7272 else
    7273   tcl_cv_sysexecaout_h=unusable
    7274 fi
    7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    7276 fi
    7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
    7278 $as_echo "$tcl_cv_sysexecaout_h" >&6; }
    7279                 if test $tcl_cv_sysexecaout_h = usable; then
    7280                     $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
    7281 
    7282                 else
    7283                     DL_OBJS=""
    7284                 fi
    7285             fi
    7286         fi
    7287     fi
    7288 
    7289     # Step 5: disable dynamic loading if requested via a command-line switch.
    7290 
    7291     # Check whether --enable-load was given.
    7292 if test "${enable_load+set}" = set; then :
    7293   enableval=$enable_load; tcl_ok=$enableval
    7294 else
    7295   tcl_ok=yes
    7296 fi
    7297 
    7298     if test "$tcl_ok" = "no"; then
    7299         DL_OBJS=""
    7300     fi
    7301 
    7302     if test "x$DL_OBJS" != "x" ; then
    7303         BUILD_DLTEST="\$(DLTEST_TARGETS)"
    7304     else
    7305         echo "Can't figure out how to do dynamic loading or shared libraries"
    7306         echo "on this system."
    7307         SHLIB_CFLAGS=""
    7308         SHLIB_LD=""
    7309         SHLIB_SUFFIX=""
    7310         DL_OBJS="tclLoadNone.o"
    7311         DL_LIBS=""
    7312         LDFLAGS="$LDFLAGS_ORIG"
    7313         CC_SEARCH_FLAGS=""
    7314         LD_SEARCH_FLAGS=""
    7315         BUILD_DLTEST=""
    7316     fi
    7317 
    7318     # If we're running gcc, then change the C flags for compiling shared
    7319     # libraries to the right flags for gcc, instead of those for the
    7320     # standard manufacturer compiler.
    7321 
    7322     if test "$DL_OBJS" != "tclLoadNone.o" ; then
    7323         if test "$GCC" = "yes" ; then
    7324             case $system in
    7325                 AIX-*)
    7326                     ;;
    7327                 BSD/OS*)
    7328                     ;;
    7329                 IRIX*)
    7330                     ;;
    7331                 NetBSD-*|FreeBSD-*|OpenBSD-*)
    7332                     ;;
    7333                 Darwin-*)
    7334                     ;;
    7335                 RISCos-*)
    7336                     ;;
    7337                 SCO_SV-3.2*)
    7338                     ;;
    7339                 ULTRIX-4.*)
    7340                     ;;
    7341                 *)
    7342                     SHLIB_CFLAGS="-fPIC"
    7343                     ;;
    7344             esac
    7345         fi
    7346     fi
    7347 
    7348     if test "$SHARED_LIB_SUFFIX" = "" ; then
    7349         SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
    7350     fi
    7351     if test "$UNSHARED_LIB_SUFFIX" = "" ; then
    7352         UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
    7353     fi
    7354 
    7355     if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
    7356         LIB_SUFFIX=${SHARED_LIB_SUFFIX}
    7357         MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
    7358         INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
    7359     else
    7360         LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
    7361 
    7362         if test "$RANLIB" = "" ; then
    7363             MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
    7364             INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
    7365         else
    7366             MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
    7367             INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
    7368         fi
    7369 
    7370     fi
    7371 
    7372 
    7373     # Stub lib does not depend on shared/static configuration
    7374     if test "$RANLIB" = "" ; then
    7375         MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
    7376         INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
    7377     else
    7378         MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
    7379         INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
    7380     fi
    7381 
    7382 
    7383 
    7384 
    7385 
    7386 
    7387 
    7388 
    7389 
    7390 
    7391 
    7392 
    7393 
    7394 
    7395 
    7396 
    7397 
    7398 
    7399 
    7400 
    7401 
    7402 
    7403 
    7404 
    7405 
    7406 
    7407 
    7408 
    7409 
    7410 
    7411 
    7412 
     5576SC_CONFIG_CFLAGS
    74135577
    74145578SVN_VERSION=`svnversion $srcdir`
     
    74535617
    74545618TCL_VERSION="8.5"
     5619TK_VERSION="8.5"
     5620
    74555621for dir in \
    74565622 ${exec_prefix} \
     
    75405706RP_BASE=`pwd`
    75415707
    7542 
    7543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
    7544 $as_echo_n "checking how to build libraries... " >&6; }
    7545     # Check whether --enable-shared was given.
    7546 if test "${enable_shared+set}" = set; then :
    7547   enableval=$enable_shared; tcl_ok=$enableval
    7548 else
    7549   tcl_ok=yes
    7550 fi
    7551 
    7552 
    7553     if test "${enable_shared+set}" = set; then
    7554         enableval="$enable_shared"
    7555         tcl_ok=$enableval
    7556     else
    7557         tcl_ok=yes
    7558     fi
    7559 
    7560     if test "$tcl_ok" = "yes" ; then
    7561         { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
    7562 $as_echo "shared" >&6; }
    7563         SHARED_BUILD=1
    7564     else
    7565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
    7566 $as_echo "static" >&6; }
    7567         SHARED_BUILD=0
    7568         $as_echo "#define STATIC_BUILD 1" >>confdefs.h
    7569 
    7570     fi
    7571 
     5708SC_ENABLE_SHARED
    75725709
    75735710#--------------------------------------------------------------------
     
    79596096#--------------------------------------------------------------------
    79606097
    7961 
    7962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
    7963 $as_echo_n "checking for build with symbols... " >&6; }
    7964     # Check whether --enable-symbols was given.
    7965 if test "${enable_symbols+set}" = set; then :
    7966   enableval=$enable_symbols; tcl_ok=$enableval
    7967 else
    7968   tcl_ok=no
    7969 fi
    7970 
    7971 # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
    7972     if test "$tcl_ok" = "no"; then
    7973         CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
    7974         LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
    7975         DBGX=""
    7976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7977 $as_echo "no" >&6; }
    7978     else
    7979         CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
    7980         LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
    7981         DBGX=g
    7982         if test "$tcl_ok" = "yes"; then
    7983             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
    7984 $as_echo "yes (standard debugging)" >&6; }
    7985         fi
    7986     fi
    7987 
    7988 
    7989 
    7990     if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
    7991         $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
    7992 
    7993     fi
    7994 
    7995     if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then
    7996         $as_echo "#define TCL_COMPILE_DEBUG 1" >>confdefs.h
    7997 
    7998         $as_echo "#define TCL_COMPILE_STATS 1" >>confdefs.h
    7999 
    8000     fi
    8001 
    8002     if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
    8003         if test "$tcl_ok" = "all"; then
    8004             { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem compile debugging" >&5
    8005 $as_echo "enabled symbols mem compile debugging" >&6; }
    8006         else
    8007             { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
    8008 $as_echo "enabled $tcl_ok debugging" >&6; }
    8009         fi
    8010     fi
    8011 
     6098SC_ENABLE_SYMBOLS
    80126099
    80136100
     
    80606147
    80616148
    8062 ac_config_files="$ac_config_files Makefile 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 builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile packages/DicomToVtk/Makefile packages/DicomToVtk/pkgIndex.tcl packages/DxToVtk/Makefile packages/DxToVtk/pkgIndex.tcl packages/Makefile packages/PdbToVtk/Makefile packages/PdbToVtk/pkgIndex.tcl packages/diffview/Makefile packages/diffview/pkgIndex.tcl packages/hotspot/Makefile packages/hotspot/pkgIndex.tcl packages/listbox/Makefile packages/listbox/pkgIndex.tcl packages/placard/Makefile packages/placard/pkgIndex.tcl packages/readpoints/Makefile packages/readpoints/pkgIndex.tcl packages/squeezer/Makefile packages/squeezer/pkgIndex.tcl packages/system/Makefile packages/system/pkgIndex.tcl objects/Makefile runner/Makefile runner/pkgIndex.tcl runner/scripts/Makefile tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile"
     6149
     6150
     6151
     6152ac_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"
    80636153
    80646154cat >confcache <<\_ACEOF
     
    87716861  case $ac_config_target in
    87726862    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     6863    "fixrunpaths.tcl") CONFIG_FILES="$CONFIG_FILES fixrunpaths.tcl" ;;
    87736864    "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
    87746865    "apps/about") CONFIG_FILES="$CONFIG_FILES apps/about" ;;
     
    87826873    "apps/simsim") CONFIG_FILES="$CONFIG_FILES apps/simsim" ;;
    87836874    "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;;
    8784     "builder/Makefile") CONFIG_FILES="$CONFIG_FILES builder/Makefile" ;;
    8785     "builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES builder/pkgIndex.tcl" ;;
    8786     "builder/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES builder/scripts/Makefile" ;;
    8787     "packages/DicomToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES packages/DicomToVtk/Makefile" ;;
    8788     "packages/DicomToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES packages/DicomToVtk/pkgIndex.tcl" ;;
    8789     "packages/DxToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES packages/DxToVtk/Makefile" ;;
    8790     "packages/DxToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES packages/DxToVtk/pkgIndex.tcl" ;;
    8791     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
    8792     "packages/PdbToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES packages/PdbToVtk/Makefile" ;;
    8793     "packages/PdbToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES packages/PdbToVtk/pkgIndex.tcl" ;;
    8794     "packages/diffview/Makefile") CONFIG_FILES="$CONFIG_FILES packages/diffview/Makefile" ;;
    8795     "packages/diffview/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES packages/diffview/pkgIndex.tcl" ;;
    8796     "packages/hotspot/Makefile") CONFIG_FILES="$CONFIG_FILES packages/hotspot/Makefile" ;;
    8797     "packages/hotspot/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES packages/hotspot/pkgIndex.tcl" ;;
    8798     "packages/listbox/Makefile") CONFIG_FILES="$CONFIG_FILES packages/listbox/Makefile" ;;
    8799     "packages/listbox/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES packages/listbox/pkgIndex.tcl" ;;
    8800     "packages/placard/Makefile") CONFIG_FILES="$CONFIG_FILES packages/placard/Makefile" ;;
    8801     "packages/placard/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES packages/placard/pkgIndex.tcl" ;;
    8802     "packages/readpoints/Makefile") CONFIG_FILES="$CONFIG_FILES packages/readpoints/Makefile" ;;
    8803     "packages/readpoints/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES packages/readpoints/pkgIndex.tcl" ;;
    8804     "packages/squeezer/Makefile") CONFIG_FILES="$CONFIG_FILES packages/squeezer/Makefile" ;;
    8805     "packages/squeezer/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES packages/squeezer/pkgIndex.tcl" ;;
    8806     "packages/system/Makefile") CONFIG_FILES="$CONFIG_FILES packages/system/Makefile" ;;
    8807     "packages/system/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES packages/system/pkgIndex.tcl" ;;
    8808     "objects/Makefile") CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;;
    8809     "runner/Makefile") CONFIG_FILES="$CONFIG_FILES runner/Makefile" ;;
    8810     "runner/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES runner/pkgIndex.tcl" ;;
    8811     "runner/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES runner/scripts/Makefile" ;;
    8812     "tester/Makefile") CONFIG_FILES="$CONFIG_FILES tester/Makefile" ;;
    8813     "tester/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES tester/pkgIndex.tcl" ;;
    8814     "tester/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tester/scripts/Makefile" ;;
     6875    "pkgs/DicomToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/DicomToVtk/Makefile" ;;
     6876    "pkgs/DicomToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/DicomToVtk/pkgIndex.tcl" ;;
     6877    "pkgs/DxToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/DxToVtk/Makefile" ;;
     6878    "pkgs/DxToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/DxToVtk/pkgIndex.tcl" ;;
     6879    "pkgs/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/Makefile" ;;
     6880    "pkgs/PdbToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/PdbToVtk/Makefile" ;;
     6881    "pkgs/PdbToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/PdbToVtk/pkgIndex.tcl" ;;
     6882    "pkgs/builder/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/builder/Makefile" ;;
     6883    "pkgs/builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/builder/pkgIndex.tcl" ;;
     6884    "pkgs/builder/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/builder/scripts/Makefile" ;;
     6885    "pkgs/diffview/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/diffview/Makefile" ;;
     6886    "pkgs/diffview/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/diffview/pkgIndex.tcl" ;;
     6887    "pkgs/hotspot/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/hotspot/Makefile" ;;
     6888    "pkgs/hotspot/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/hotspot/pkgIndex.tcl" ;;
     6889    "pkgs/listbox/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/listbox/Makefile" ;;
     6890    "pkgs/listbox/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/listbox/pkgIndex.tcl" ;;
     6891    "pkgs/objects/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/objects/Makefile" ;;
     6892    "pkgs/p2p/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/p2p/Makefile" ;;
     6893    "pkgs/placard/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/placard/Makefile" ;;
     6894    "pkgs/placard/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/placard/pkgIndex.tcl" ;;
     6895    "pkgs/readpoints/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/readpoints/Makefile" ;;
     6896    "pkgs/readpoints/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/readpoints/pkgIndex.tcl" ;;
     6897    "pkgs/runner/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/runner/Makefile" ;;
     6898    "pkgs/runner/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/runner/pkgIndex.tcl" ;;
     6899    "pkgs/runner/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/runner/scripts/Makefile" ;;
     6900    "pkgs/squeezer/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/squeezer/Makefile" ;;
     6901    "pkgs/squeezer/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/squeezer/pkgIndex.tcl" ;;
     6902    "pkgs/system/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/system/Makefile" ;;
     6903    "pkgs/system/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/system/pkgIndex.tcl" ;;
     6904    "pkgs/tester/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/tester/Makefile" ;;
     6905    "pkgs/tester/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/tester/pkgIndex.tcl" ;;
     6906    "pkgs/tester/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/tester/scripts/Makefile" ;;
    88156907
    88166908  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  • branches/r9/configure.in

    r4869 r4870  
    11AC_INIT([Rappture],[1.4],[rappture@nanohub.org])
    22AC_CONFIG_AUX_DIR(cf)
     3
     4RAPPTURE_MAJOR_VERSION=1
     5RAPPTURE_MINOR_VERSION=4
     6RAPPTURE_RELEASE_SERIAL=0
    37
    48#------------------------------------------------------------------------
     
    149153
    150154TCL_VERSION="8.5"
     155TK_VERSION="8.5"
     156
    151157for dir in \
    152158 ${exec_prefix} \
     
    314320AC_SUBST(X_LIBRARIES)
    315321AC_SUBST(WORDSIZE)
     322AC_SUBST(RAPPTURE_MAJOR_VERSION)
     323AC_SUBST(RAPPTURE_MINOR_VERSION)
     324AC_SUBST(RAPPTURE_RELEASE_SERIAL)
    316325
    317326dnl read Makefile.in and write Makefile
    318327AC_CONFIG_FILES([
    319328    Makefile
     329    fixrunpaths.tcl
    320330    apps/Makefile
    321331    apps/about
     
    329339    apps/simsim
    330340    apps/xmldiff
    331     builder/Makefile
    332     builder/pkgIndex.tcl
    333     builder/scripts/Makefile
    334     packages/DicomToVtk/Makefile
    335     packages/DicomToVtk/pkgIndex.tcl
    336     packages/DxToVtk/Makefile
    337     packages/DxToVtk/pkgIndex.tcl
    338     packages/Makefile
    339     packages/PdbToVtk/Makefile
    340     packages/PdbToVtk/pkgIndex.tcl
    341     packages/diffview/Makefile
    342     packages/diffview/pkgIndex.tcl
    343     packages/hotspot/Makefile
    344     packages/hotspot/pkgIndex.tcl
    345     packages/listbox/Makefile
    346     packages/listbox/pkgIndex.tcl
    347     packages/placard/Makefile
    348     packages/placard/pkgIndex.tcl
    349     packages/readpoints/Makefile
    350     packages/readpoints/pkgIndex.tcl
    351     packages/squeezer/Makefile
    352     packages/squeezer/pkgIndex.tcl
    353     packages/system/Makefile
    354     packages/system/pkgIndex.tcl
    355     objects/Makefile
    356     runner/Makefile
    357     runner/pkgIndex.tcl
    358     runner/scripts/Makefile
    359     tester/Makefile
    360     tester/pkgIndex.tcl
    361     tester/scripts/Makefile
     341    pkgs/DicomToVtk/Makefile
     342    pkgs/DicomToVtk/pkgIndex.tcl
     343    pkgs/DxToVtk/Makefile
     344    pkgs/DxToVtk/pkgIndex.tcl
     345    pkgs/Makefile
     346    pkgs/PdbToVtk/Makefile
     347    pkgs/PdbToVtk/pkgIndex.tcl
     348    pkgs/builder/Makefile
     349    pkgs/builder/pkgIndex.tcl
     350    pkgs/builder/scripts/Makefile
     351    pkgs/diffview/Makefile
     352    pkgs/diffview/pkgIndex.tcl
     353    pkgs/hotspot/Makefile
     354    pkgs/hotspot/pkgIndex.tcl
     355    pkgs/listbox/Makefile
     356    pkgs/listbox/pkgIndex.tcl
     357    pkgs/objects/Makefile
     358    pkgs/p2p/Makefile
     359    pkgs/placard/Makefile
     360    pkgs/placard/pkgIndex.tcl
     361    pkgs/readpoints/Makefile
     362    pkgs/readpoints/pkgIndex.tcl
     363    pkgs/runner/Makefile
     364    pkgs/runner/pkgIndex.tcl
     365    pkgs/runner/scripts/Makefile
     366    pkgs/squeezer/Makefile
     367    pkgs/squeezer/pkgIndex.tcl
     368    pkgs/system/Makefile
     369    pkgs/system/pkgIndex.tcl
     370    pkgs/tester/Makefile
     371    pkgs/tester/pkgIndex.tcl
     372    pkgs/tester/scripts/Makefile
    362373])
    363374AC_OUTPUT
  • branches/r9/fetch.sh

    r4852 r4870  
    55destdir=$2
    66pkgdir=$3
    7 echo path=$path
    8 echo destdir=$destdir
    9 echo pkgdir=$pkgdir
    107url="https://nanohub.org/infrastructure"
    118if test -d "$destdir/$pkgdir" ; then
    12   echo svn update $destdir/$pkgdir
    139  svn update $destdir/$pkgdir
    1410else
    15   echo svn co -q $url/rappture-runtime/svn/$path/$pkgdir $destdir/$pkgdir
    1611  svn co -q $url/rappture-runtime/svn/$path/$pkgdir $destdir/$pkgdir
    1712fi
  • branches/r9/lang/Makefile.in

    r4867 r4870  
    5858          $(MAKE) -C $$i all || exit 1 ;\
    5959        done
     60        $(MAKE) -C examples all || exit 1
    6061
    6162install:
     
    6364          $(MAKE) -C $$i install || exit 1 ;\
    6465        done
     66        $(MAKE) -C examples install || exit 1
    6567
    6668test:
     
    7375          $(MAKE) -C $$i clean ;\
    7476        done
     77        $(MAKE) -C examples clean
    7578
    7679distclean:
     
    7881          $(MAKE) -C $$i distclean ;\
    7982        done
     83        $(MAKE) -C examples distclean
    8084        $(RM) Makefile *~
  • branches/r9/lang/examples/app-fermi/cee/Makefile.in

    r2071 r4870  
    2020VPATH           = $(srcdir)
    2121
    22 INCLUDES        = -I$(srcdir)/../../../src/core
    23 LIBS            = -L../../../src/core -lrappture \
    24                   -L$(libdir) -lexpat -lz -lm
     22INCLUDES        = -I$(includedir)
     23LIBS            = -L$(libdir) -lrappture \
     24                  -L$(libdir) -lexpat -lz -lm \
     25                  -Wl,-rpath,'${ORIGIN}../lib'
    2526
    2627CC_SWITCHES     = $(CFLAGS) $(CDEBUGFLAGS) $(DEFINES) $(INCLUDES)
  • branches/r9/lang/examples/app-fermi/fortran/Makefile.in

    r2256 r4870  
    2020VPATH           = $(srcdir)
    2121
    22 INCLUDES        = -I$(srcdir)/../../../src/core
    23 LIBS            = -L../../../src/core -lrappture \
    24                   -L$(libdir) -lexpat -lz -lm
     22INCLUDES        = -I$(includedir)
     23LIBS            = -L$(libdir) -lrappture \
     24                  -L$(libdir) -lexpat -lz -lm \
     25                  -Wl,-rpath,$(libdir)
    2526
    2627FC_SWITCHES     = $(FCFLAGS) $(FCDEBUGFLAGS) $(DEFINES) $(INCLUDES)
  • branches/r9/lang/examples/app-fermi/wrapper/cee/Makefile.in

    r2071 r4870  
    2020VPATH           = $(srcdir)
    2121
    22 INCLUDES        = -I$(srcdir)/../../../../src/core
    23 LIBS            = -L../../../../src/core -lrappture \
    24                   -L$(libdir) -lexpat -lz -lm
     22INCLUDES        = -I$(includedir)
     23LIBS            = -L$(libdir) -lrappture \
     24                  -L$(libdir) -lexpat -lz -lm \
     25                  -Wl,-rpath,'${ORIGIN}../lib'
    2526
    2627CC_SWITCHES     = $(CFLAGS) $(CDEBUGFLAGS) $(DEFINES) $(INCLUDES)
  • branches/r9/lang/tcl/src/RpSwitch.c

    r4868 r4870  
    3434#include <stdlib.h>
    3535#include <tcl.h>
    36 #include "switch.h"
     36#include "RpSwitch.h"
    3737
    3838static void
  • branches/r9/pkgs/Makefile.in

    r4852 r4870  
    1717
    1818SUBDIRS         = \
     19                builder \
     20                tester \
     21                objects \
     22                p2p \
    1923                diffview \
    2024                hotspot \
  • branches/r9/pkgs/builder/scripts/Makefile.in

    r4867 r4870  
    5050
    5151tclIndex: $(FILES)
    52         $(TCLSH) $(srcdir)/../../gui/cf/mkindex.tcl --srcdir $(srcdir) \
     52        $(TCLSH) $(srcdir)/../../../cf/mkindex.tcl --srcdir $(srcdir) \
    5353                --outfile tclIndex
    5454
  • branches/r9/pkgs/objects/Makefile.in

    r4869 r4870  
    7878
    7979install: install-scripts install-objects install-types install-validations
    80         $(TCLSH) $(srcdir)/../cf/mkindex.tcl --srcdir $(destdir) \
     80        $(TCLSH) $(srcdir)/../../cf/mkindex.tcl --srcdir $(destdir) \
    8181                --outfile tclIndex
    82         $(TCLSH) $(srcdir)/../cf/mkobjects.tcl --srcdir $(srcdir) \
     82        $(TCLSH) $(srcdir)/../../cf/mkobjects.tcl --srcdir $(srcdir) \
    8383                $(OBJECTS)
    8484        $(RM) $(destdir)/tclIndex
  • branches/r9/pkgs/p2p/Makefile.in

    r4855 r4870  
     1
     2bindir          = @bindir@
     3datadir         = @datadir@
     4datarootdir     = @datarootdir@
     5exec_prefix     = @exec_prefix@
     6includedir      = @includedir@
     7libdir          = @libdir@
     8mandir          = @mandir@
     9prefix          = @prefix@
     10srcdir          = @srcdir@
     11
     12INSTALL         = @INSTALL@
     13INSTALL_PROGRAM = ${INSTALL} -m 755
     14INSTALL_DATA    = ${INSTALL} -m 644
     15INSTALL_SCRIPT  = ${INSTALL}
     16TCL_VERSION     = @TCL_VERSION@
     17TCLSH           = $(bindir)/tclsh$(TCL_VERSION)
     18VERSION         = @PACKAGE_VERSION@
     19VPATH           = $(srcdir)
     20
     21CXX             = @CXX@
     22CC              = @CC@
     23CFLAGS_DEBUG    = @CFLAGS_DEBUG@
     24CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
     25SHLIB_LD        = @SHLIB_LD@
     26SHLIB_CFLAGS    = @SHLIB_CFLAGS@
     27SHLIB_LDFLAGS   = @SHLIB_LDFLAGS@
     28SHLIB_SUFFIX    = @SHLIB_SUFFIX@
     29CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
     30LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
     31CFLAGS          = @CFLAGS@
     32TCLSH           = $(bindir)/tclsh$(TCL_VERSION)
     33
     34RANLIB          = @RANLIB@
     35MKDIR_P         = @MKDIR_P@
     36AR              = ar
     37RM              = rm -f
     38
     39destdir         = $(prefix)/lib/Rappture$(VERSION)/scripts
     40
    141CC = gcc
    242CFLAGS = -O3
    343
     44SCRIPTS         = \
     45                client.tcl \
     46                foreman.tcl \
     47                handler.tcl \
     48                log.tcl \
     49                options.tcl \
     50                protocols.tcl \
     51                random.tcl \
     52                server.tcl \
     53                statemachine.tcl \
     54                wonks.tcl
    455all:
    5         $(CC) $(CFLAGS) perftest.c -o perftest
    6         ./mkindex handler.tcl server.tcl client.tcl log.tcl random.tcl \
    7                 options.tcl protocols.tcl statemachine.tcl wonks.tcl \
    8                 foreman.tcl
     56        $(CC) $(CFLAGS) $(srcdir)/perftest.c -o perftest
     57        $(TCLSH) $(srcdir)/../../cf/mkindex.tcl --srcdir $(srcdir) \
     58                --outfile tclIndex
     59
     60install:
     61
     62clean:
     63
     64distclean:
  • branches/r9/pkgs/placard/Makefile.in

    r4859 r4870  
    4141LIBS =          \
    4242                $(TCL_LIB_SPEC) \
    43                 $(TK_LIB_SPEC) \
    44 M
     43                $(TK_LIB_SPEC)
     44
    4545version =       @PACKAGE_VERSION@
    4646DEFINES =       -DPACKAGE_VERSION=\"$(version)\"
  • branches/r9/pkgs/runner/scripts/Makefile.in

    r4869 r4870  
    5353            $(INSTALL) -m 0444 $$i $(destdir) ; \
    5454        done
    55         $(TCLSH) $(srcdir)/../../cf/mkindex.tcl --srcdir $(destdir) \
     55        $(TCLSH) $(srcdir)/../../../cf/mkindex.tcl --srcdir $(destdir) \
    5656                --outfile tclIndex
    5757        $(RM) $(destdir)/tclIndex
  • branches/r9/pkgs/tester/scripts/Makefile.in

    r4869 r4870  
    3737all:
    3838
    39 install: install_scripts install_images
    40         $(TCLSH) $(srcdir)/../../cf/mkindex.tcl --srcdir $(srcdir) \
     39install: install-scripts install-images
     40        $(TCLSH) $(srcdir)/../../../cf/mkindex.tcl --srcdir $(srcdir) \
    4141                --outfile tclIndex
    4242        $(RM) $(destdir)/tclIndex
    4343        $(INSTALL) -m 0444 tclIndex $(destdir)
    4444
    45 install_scripts:
     45install-scripts:
    4646        $(MKDIR_P) -m 0755 $(destdir)
    4747        for i in $(FILES); do \
     
    4949            $(INSTALL) -m 444 $$i $(destdir) ; \
    5050        done
    51         $(INSTALL) -m 444 tclIndex $(destdir)
    5251
    53 install_images:
     52install-images:
    5453        $(MKDIR_P) -m 0755 $(destdir)/images
    5554        for i in $(srcdir)/images/*.png; do \
  • branches/r9/pkgs/video/Makefile.in

    r4867 r4870  
    2121SHLIB_LD        = @SHLIB_LD@
    2222SHLIB_CFLAGS    = @SHLIB_CFLAGS@
    23 SHLIB_LDFLAGS   = @SHLIB_LDFLAGS@
     23SHLIB_LDFLAGS   = @CC_SEARCH_FLAGS@
    2424SHLIB_SUFFIX    = @SHLIB_SUFFIX@
    2525CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
     
    2929TCL_LIB_SPEC    = @TCL_LIB_SPEC@
    3030HAVE_FFMPEG     = @HAVE_FFMPEG_LIBS@
     31LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
     32LIB_RUNTIME_DIR = $(libdir)
    3133
    3234CC_SWITCHES     = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES)
Note: See TracChangeset for help on using the changeset viewer.