Changeset 4146 for trunk/gui/configure


Ignore:
Timestamp:
Jan 22, 2014 8:35:03 PM (8 years ago)
Author:
gah
Message:

revert to last version: remove changes for new build system for rappture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/configure

    r4144 r4146  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.69 for RapptureGUI 1.1.
     3# Generated by GNU Autoconf 2.69 for RapptureGUI 1.4.
    44#
    55# Report bugs to <rappture@nanohub.org>.
     
    198198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    199199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    201 test \$(( 1 + 1 )) = 2 || exit 1"
     200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
    202201  if (eval "$as_required") 2>/dev/null; then :
    203202  as_have_required=yes
     
    581580PACKAGE_NAME='RapptureGUI'
    582581PACKAGE_TARNAME='rappturegui'
    583 PACKAGE_VERSION='1.1'
    584 PACKAGE_STRING='RapptureGUI 1.1'
     582PACKAGE_VERSION='1.4'
     583PACKAGE_STRING='RapptureGUI 1.4'
    585584PACKAGE_BUGREPORT='rappture@nanohub.org'
    586585PACKAGE_URL=''
    587 
    588 # Factoring default headers for most tests.
    589 ac_includes_default="\
    590 #include <stdio.h>
    591 #ifdef HAVE_SYS_TYPES_H
    592 # include <sys/types.h>
    593 #endif
    594 #ifdef HAVE_SYS_STAT_H
    595 # include <sys/stat.h>
    596 #endif
    597 #ifdef STDC_HEADERS
    598 # include <stdlib.h>
    599 # include <stddef.h>
    600 #else
    601 # ifdef HAVE_STDLIB_H
    602 #  include <stdlib.h>
    603 # endif
    604 #endif
    605 #ifdef HAVE_STRING_H
    606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    607 #  include <memory.h>
    608 # endif
    609 # include <string.h>
    610 #endif
    611 #ifdef HAVE_STRINGS_H
    612 # include <strings.h>
    613 #endif
    614 #ifdef HAVE_INTTYPES_H
    615 # include <inttypes.h>
    616 #endif
    617 #ifdef HAVE_STDINT_H
    618 # include <stdint.h>
    619 #endif
    620 #ifdef HAVE_UNISTD_H
    621 # include <unistd.h>
    622 #endif"
    623586
    624587ac_subst_vars='LTLIBOBJS
     
    641604ENABLE_GUI
    642605MAKE
    643 INSTALL_STUB_LIB
    644 INSTALL_LIB
    645 MAKE_STUB_LIB
    646 MAKE_LIB
    647 SHLIB_SUFFIX
    648 SHLIB_CFLAGS
    649 SHLIB_LD_LIBS
    650 TK_SHLIB_LD_EXTRAS
    651 TCL_SHLIB_LD_EXTRAS
    652 SHLIB_LD
    653 STLIB_LD
    654 LD_SEARCH_FLAGS
    655 CC_SEARCH_FLAGS
    656 LDFLAGS_OPTIMIZE
    657 LDFLAGS_DEBUG
    658 CFLAGS_WARNING
    659 CFLAGS_OPTIMIZE
    660 CFLAGS_DEBUG
    661 PLAT_SRCS
    662 PLAT_OBJS
    663 DL_OBJS
    664 DL_LIBS
    665 EGREP
    666 GREP
    667 CPP
    668 AR
    669606OBJEXT
    670607EXEEXT
     
    735672ac_user_opts='
    736673enable_option_checking
    737 enable_64bit
    738 enable_64bit_vis
    739 enable_corefoundation
    740 enable_load
    741 enable_shared
    742674enable_gui
    743675with_tclsh
     
    750682LDFLAGS
    751683LIBS
    752 CPPFLAGS
    753 CPP'
     684CPPFLAGS'
    754685
    755686
     
    12921223  # This message is too long to be a string in the A/UX 3.1 sh.
    12931224  cat <<_ACEOF
    1294 \`configure' configures RapptureGUI 1.1 to adapt to many kinds of systems.
     1225\`configure' configures RapptureGUI 1.4 to adapt to many kinds of systems.
    12951226
    12961227Usage: $0 [OPTION]... [VAR=VALUE]...
     
    13581289if test -n "$ac_init_help"; then
    13591290  case $ac_init_help in
    1360      short | recursive ) echo "Configuration of RapptureGUI 1.1:";;
     1291     short | recursive ) echo "Configuration of RapptureGUI 1.4:";;
    13611292   esac
    13621293  cat <<\_ACEOF
     
    13661297  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    13671298  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    1368   --enable-64bit          enable 64bit support (where applicable)
    1369   --enable-64bit-vis      enable 64bit Sparc VIS support
    1370   --enable-corefoundation use CoreFoundation API --enable-corefoundation
    1371   --disable-load          disallow dynamic loading and "load" command
    1372   --enable-shared         build and link with shared libraries --enable-shared
    13731299  --enable-gui            build code related to the graphical user interface
    13741300                          [default=yes]
     
    13871313  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
    13881314              you have headers in a nonstandard directory <include dir>
    1389   CPP         C preprocessor
    13901315
    13911316Use these variables to override the choices made by `configure' or to help
     
    14551380if $ac_init_version; then
    14561381  cat <<\_ACEOF
    1457 RapptureGUI configure 1.1
     1382RapptureGUI configure 1.4
    14581383generated by GNU Autoconf 2.69
    14591384
     
    15061431
    15071432} # ac_fn_c_try_compile
    1508 
    1509 # ac_fn_c_try_link LINENO
    1510 # -----------------------
    1511 # Try to link conftest.$ac_ext, and return whether this succeeded.
    1512 ac_fn_c_try_link ()
    1513 {
    1514   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1515   rm -f conftest.$ac_objext conftest$ac_exeext
    1516   if { { ac_try="$ac_link"
    1517 case "(($ac_try" in
    1518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1519   *) ac_try_echo=$ac_try;;
    1520 esac
    1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1522 $as_echo "$ac_try_echo"; } >&5
    1523   (eval "$ac_link") 2>conftest.err
    1524   ac_status=$?
    1525   if test -s conftest.err; then
    1526     grep -v '^ *+' conftest.err >conftest.er1
    1527     cat conftest.er1 >&5
    1528     mv -f conftest.er1 conftest.err
    1529   fi
    1530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1531   test $ac_status = 0; } && {
    1532          test -z "$ac_c_werror_flag" ||
    1533          test ! -s conftest.err
    1534        } && test -s conftest$ac_exeext && {
    1535          test "$cross_compiling" = yes ||
    1536          test -x conftest$ac_exeext
    1537        }; then :
    1538   ac_retval=0
    1539 else
    1540   $as_echo "$as_me: failed program was:" >&5
    1541 sed 's/^/| /' conftest.$ac_ext >&5
    1542 
    1543         ac_retval=1
    1544 fi
    1545   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
    1546   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
    1547   # interfere with the next link command; also delete a directory that is
    1548   # left behind by Apple's compiler.  We do this before executing the actions.
    1549   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1550   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1551   as_fn_set_status $ac_retval
    1552 
    1553 } # ac_fn_c_try_link
    1554 
    1555 # ac_fn_c_try_cpp LINENO
    1556 # ----------------------
    1557 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
    1558 ac_fn_c_try_cpp ()
    1559 {
    1560   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1561   if { { ac_try="$ac_cpp conftest.$ac_ext"
    1562 case "(($ac_try" in
    1563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1564   *) ac_try_echo=$ac_try;;
    1565 esac
    1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1567 $as_echo "$ac_try_echo"; } >&5
    1568   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
    1569   ac_status=$?
    1570   if test -s conftest.err; then
    1571     grep -v '^ *+' conftest.err >conftest.er1
    1572     cat conftest.er1 >&5
    1573     mv -f conftest.er1 conftest.err
    1574   fi
    1575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1576   test $ac_status = 0; } > conftest.i && {
    1577          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    1578          test ! -s conftest.err
    1579        }; then :
    1580   ac_retval=0
    1581 else
    1582   $as_echo "$as_me: failed program was:" >&5
    1583 sed 's/^/| /' conftest.$ac_ext >&5
    1584 
    1585     ac_retval=1
    1586 fi
    1587   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1588   as_fn_set_status $ac_retval
    1589 
    1590 } # ac_fn_c_try_cpp
    1591 
    1592 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
    1593 # -------------------------------------------------------
    1594 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
    1595 # the include files in INCLUDES and setting the cache variable VAR
    1596 # accordingly.
    1597 ac_fn_c_check_header_mongrel ()
    1598 {
    1599   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1600   if eval \${$3+:} false; then :
    1601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    1602 $as_echo_n "checking for $2... " >&6; }
    1603 if eval \${$3+:} false; then :
    1604   $as_echo_n "(cached) " >&6
    1605 fi
    1606 eval ac_res=\$$3
    1607                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    1608 $as_echo "$ac_res" >&6; }
    1609 else
    1610   # Is the header compilable?
    1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
    1612 $as_echo_n "checking $2 usability... " >&6; }
    1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1614 /* end confdefs.h.  */
    1615 $4
    1616 #include <$2>
    1617 _ACEOF
    1618 if ac_fn_c_try_compile "$LINENO"; then :
    1619   ac_header_compiler=yes
    1620 else
    1621   ac_header_compiler=no
    1622 fi
    1623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
    1625 $as_echo "$ac_header_compiler" >&6; }
    1626 
    1627 # Is the header present?
    1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
    1629 $as_echo_n "checking $2 presence... " >&6; }
    1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1631 /* end confdefs.h.  */
    1632 #include <$2>
    1633 _ACEOF
    1634 if ac_fn_c_try_cpp "$LINENO"; then :
    1635   ac_header_preproc=yes
    1636 else
    1637   ac_header_preproc=no
    1638 fi
    1639 rm -f conftest.err conftest.i conftest.$ac_ext
    1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
    1641 $as_echo "$ac_header_preproc" >&6; }
    1642 
    1643 # So?  What about this header?
    1644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
    1645   yes:no: )
    1646     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
    1647 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    1648     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    1649 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    1650     ;;
    1651   no:yes:* )
    1652     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
    1653 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    1654     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
    1655 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    1656     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
    1657 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    1658     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
    1659 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    1660     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
    1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    1662 ( $as_echo "## ----------------------------------- ##
    1663 ## Report this to rappture@nanohub.org ##
    1664 ## ----------------------------------- ##"
    1665      ) | sed "s/^/$as_me: WARNING:     /" >&2
    1666     ;;
    1667 esac
    1668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    1669 $as_echo_n "checking for $2... " >&6; }
    1670 if eval \${$3+:} false; then :
    1671   $as_echo_n "(cached) " >&6
    1672 else
    1673   eval "$3=\$ac_header_compiler"
    1674 fi
    1675 eval ac_res=\$$3
    1676                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    1677 $as_echo "$ac_res" >&6; }
    1678 fi
    1679   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1680 
    1681 } # ac_fn_c_check_header_mongrel
    1682 
    1683 # ac_fn_c_try_run LINENO
    1684 # ----------------------
    1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
    1686 # that executables *can* be run.
    1687 ac_fn_c_try_run ()
    1688 {
    1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1690   if { { ac_try="$ac_link"
    1691 case "(($ac_try" in
    1692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1693   *) ac_try_echo=$ac_try;;
    1694 esac
    1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1696 $as_echo "$ac_try_echo"; } >&5
    1697   (eval "$ac_link") 2>&5
    1698   ac_status=$?
    1699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1700   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
    1701   { { case "(($ac_try" in
    1702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1703   *) ac_try_echo=$ac_try;;
    1704 esac
    1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1706 $as_echo "$ac_try_echo"; } >&5
    1707   (eval "$ac_try") 2>&5
    1708   ac_status=$?
    1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1710   test $ac_status = 0; }; }; then :
    1711   ac_retval=0
    1712 else
    1713   $as_echo "$as_me: program exited with status $ac_status" >&5
    1714        $as_echo "$as_me: failed program was:" >&5
    1715 sed 's/^/| /' conftest.$ac_ext >&5
    1716 
    1717        ac_retval=$ac_status
    1718 fi
    1719   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1721   as_fn_set_status $ac_retval
    1722 
    1723 } # ac_fn_c_try_run
    1724 
    1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
    1726 # -------------------------------------------------------
    1727 # Tests whether HEADER exists and can be compiled using the include files in
    1728 # INCLUDES, setting the cache variable VAR accordingly.
    1729 ac_fn_c_check_header_compile ()
    1730 {
    1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    1733 $as_echo_n "checking for $2... " >&6; }
    1734 if eval \${$3+:} false; then :
    1735   $as_echo_n "(cached) " >&6
    1736 else
    1737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1738 /* end confdefs.h.  */
    1739 $4
    1740 #include <$2>
    1741 _ACEOF
    1742 if ac_fn_c_try_compile "$LINENO"; then :
    1743   eval "$3=yes"
    1744 else
    1745   eval "$3=no"
    1746 fi
    1747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1748 fi
    1749 eval ac_res=\$$3
    1750                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    1751 $as_echo "$ac_res" >&6; }
    1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1753 
    1754 } # ac_fn_c_check_header_compile
    17551433cat >config.log <<_ACEOF
    17561434This file contains any messages produced by compilers while
    17571435running configure, to aid debugging if configure makes a mistake.
    17581436
    1759 It was created by RapptureGUI $as_me 1.1, which was
     1437It was created by RapptureGUI $as_me 1.4, which was
    17601438generated by GNU Autoconf 2.69.  Invocation command line was
    17611439
     
    33223000
    33233001
    3324 
    3325 ac_ext=c
    3326 ac_cpp='$CPP $CPPFLAGS'
    3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
    3331 $as_echo_n "checking how to run the C preprocessor... " >&6; }
    3332 # On Suns, sometimes $CPP names a directory.
    3333 if test -n "$CPP" && test -d "$CPP"; then
    3334   CPP=
    3335 fi
    3336 if test -z "$CPP"; then
    3337   if ${ac_cv_prog_CPP+:} false; then :
    3338   $as_echo_n "(cached) " >&6
    3339 else
    3340       # Double quotes because CPP needs to be expanded
    3341     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    3342     do
    3343       ac_preproc_ok=false
    3344 for ac_c_preproc_warn_flag in '' yes
    3345 do
    3346   # Use a header file that comes with gcc, so configuring glibc
    3347   # with a fresh cross-compiler works.
    3348   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    3349   # <limits.h> exists even on freestanding compilers.
    3350   # On the NeXT, cc -E runs the code through the compiler's parser,
    3351   # not just through cpp. "Syntax error" is here to catch this case.
    3352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3353 /* end confdefs.h.  */
    3354 #ifdef __STDC__
    3355 # include <limits.h>
    3356 #else
    3357 # include <assert.h>
    3358 #endif
    3359                      Syntax error
    3360 _ACEOF
    3361 if ac_fn_c_try_cpp "$LINENO"; then :
    3362 
    3363 else
    3364   # Broken: fails on valid input.
    3365 continue
    3366 fi
    3367 rm -f conftest.err conftest.i conftest.$ac_ext
    3368 
    3369   # OK, works on sane cases.  Now check whether nonexistent headers
    3370   # can be detected and how.
    3371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3372 /* end confdefs.h.  */
    3373 #include <ac_nonexistent.h>
    3374 _ACEOF
    3375 if ac_fn_c_try_cpp "$LINENO"; then :
    3376   # Broken: success on invalid input.
    3377 continue
    3378 else
    3379   # Passes both tests.
    3380 ac_preproc_ok=:
    3381 break
    3382 fi
    3383 rm -f conftest.err conftest.i conftest.$ac_ext
    3384 
    3385 done
    3386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3387 rm -f conftest.i conftest.err conftest.$ac_ext
    3388 if $ac_preproc_ok; then :
    3389   break
    3390 fi
    3391 
    3392     done
    3393     ac_cv_prog_CPP=$CPP
    3394 
    3395 fi
    3396   CPP=$ac_cv_prog_CPP
    3397 else
    3398   ac_cv_prog_CPP=$CPP
    3399 fi
    3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
    3401 $as_echo "$CPP" >&6; }
    3402 ac_preproc_ok=false
    3403 for ac_c_preproc_warn_flag in '' yes
    3404 do
    3405   # Use a header file that comes with gcc, so configuring glibc
    3406   # with a fresh cross-compiler works.
    3407   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    3408   # <limits.h> exists even on freestanding compilers.
    3409   # On the NeXT, cc -E runs the code through the compiler's parser,
    3410   # not just through cpp. "Syntax error" is here to catch this case.
    3411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3412 /* end confdefs.h.  */
    3413 #ifdef __STDC__
    3414 # include <limits.h>
    3415 #else
    3416 # include <assert.h>
    3417 #endif
    3418                      Syntax error
    3419 _ACEOF
    3420 if ac_fn_c_try_cpp "$LINENO"; then :
    3421 
    3422 else
    3423   # Broken: fails on valid input.
    3424 continue
    3425 fi
    3426 rm -f conftest.err conftest.i conftest.$ac_ext
    3427 
    3428   # OK, works on sane cases.  Now check whether nonexistent headers
    3429   # can be detected and how.
    3430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3431 /* end confdefs.h.  */
    3432 #include <ac_nonexistent.h>
    3433 _ACEOF
    3434 if ac_fn_c_try_cpp "$LINENO"; then :
    3435   # Broken: success on invalid input.
    3436 continue
    3437 else
    3438   # Passes both tests.
    3439 ac_preproc_ok=:
    3440 break
    3441 fi
    3442 rm -f conftest.err conftest.i conftest.$ac_ext
    3443 
    3444 done
    3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    3446 rm -f conftest.i conftest.err conftest.$ac_ext
    3447 if $ac_preproc_ok; then :
    3448 
    3449 else
    3450   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3452 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
    3453 See \`config.log' for more details" "$LINENO" 5; }
    3454 fi
    3455 
    3456 ac_ext=c
    3457 ac_cpp='$CPP $CPPFLAGS'
    3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3461 
    3462 
    3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
    3464 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
    3465 if ${ac_cv_path_GREP+:} false; then :
    3466   $as_echo_n "(cached) " >&6
    3467 else
    3468   if test -z "$GREP"; then
    3469   ac_path_GREP_found=false
    3470   # Loop through the user's path and test for each of PROGNAME-LIST
    3471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3472 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
    3473 do
    3474   IFS=$as_save_IFS
    3475   test -z "$as_dir" && as_dir=.
    3476     for ac_prog in grep ggrep; do
    3477     for ac_exec_ext in '' $ac_executable_extensions; do
    3478       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
    3479       as_fn_executable_p "$ac_path_GREP" || continue
    3480 # Check for GNU ac_path_GREP and select it if it is found.
    3481   # Check for GNU $ac_path_GREP
    3482 case `"$ac_path_GREP" --version 2>&1` in
    3483 *GNU*)
    3484   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
    3485 *)
    3486   ac_count=0
    3487   $as_echo_n 0123456789 >"conftest.in"
    3488   while :
    3489   do
    3490     cat "conftest.in" "conftest.in" >"conftest.tmp"
    3491     mv "conftest.tmp" "conftest.in"
    3492     cp "conftest.in" "conftest.nl"
    3493     $as_echo 'GREP' >> "conftest.nl"
    3494     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    3495     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    3496     as_fn_arith $ac_count + 1 && ac_count=$as_val
    3497     if test $ac_count -gt ${ac_path_GREP_max-0}; then
    3498       # Best one so far, save it but keep looking for a better one
    3499       ac_cv_path_GREP="$ac_path_GREP"
    3500       ac_path_GREP_max=$ac_count
    3501     fi
    3502     # 10*(2^10) chars as input seems more than enough
    3503     test $ac_count -gt 10 && break
    3504   done
    3505   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
    3506 esac
    3507 
    3508       $ac_path_GREP_found && break 3
    3509     done
    3510   done
    3511   done
    3512 IFS=$as_save_IFS
    3513   if test -z "$ac_cv_path_GREP"; then
    3514     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    3515   fi
    3516 else
    3517   ac_cv_path_GREP=$GREP
    3518 fi
    3519 
    3520 fi
    3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
    3522 $as_echo "$ac_cv_path_GREP" >&6; }
    3523  GREP="$ac_cv_path_GREP"
    3524 
    3525 
    3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
    3527 $as_echo_n "checking for egrep... " >&6; }
    3528 if ${ac_cv_path_EGREP+:} false; then :
    3529   $as_echo_n "(cached) " >&6
    3530 else
    3531   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
    3532    then ac_cv_path_EGREP="$GREP -E"
    3533    else
    3534      if test -z "$EGREP"; then
    3535   ac_path_EGREP_found=false
    3536   # Loop through the user's path and test for each of PROGNAME-LIST
    3537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
    3539 do
    3540   IFS=$as_save_IFS
    3541   test -z "$as_dir" && as_dir=.
    3542     for ac_prog in egrep; do
    3543     for ac_exec_ext in '' $ac_executable_extensions; do
    3544       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
    3545       as_fn_executable_p "$ac_path_EGREP" || continue
    3546 # Check for GNU ac_path_EGREP and select it if it is found.
    3547   # Check for GNU $ac_path_EGREP
    3548 case `"$ac_path_EGREP" --version 2>&1` in
    3549 *GNU*)
    3550   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
    3551 *)
    3552   ac_count=0
    3553   $as_echo_n 0123456789 >"conftest.in"
    3554   while :
    3555   do
    3556     cat "conftest.in" "conftest.in" >"conftest.tmp"
    3557     mv "conftest.tmp" "conftest.in"
    3558     cp "conftest.in" "conftest.nl"
    3559     $as_echo 'EGREP' >> "conftest.nl"
    3560     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    3561     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    3562     as_fn_arith $ac_count + 1 && ac_count=$as_val
    3563     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
    3564       # Best one so far, save it but keep looking for a better one
    3565       ac_cv_path_EGREP="$ac_path_EGREP"
    3566       ac_path_EGREP_max=$ac_count
    3567     fi
    3568     # 10*(2^10) chars as input seems more than enough
    3569     test $ac_count -gt 10 && break
    3570   done
    3571   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
    3572 esac
    3573 
    3574       $ac_path_EGREP_found && break 3
    3575     done
    3576   done
    3577   done
    3578 IFS=$as_save_IFS
    3579   if test -z "$ac_cv_path_EGREP"; then
    3580     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    3581   fi
    3582 else
    3583   ac_cv_path_EGREP=$EGREP
    3584 fi
    3585 
    3586    fi
    3587 fi
    3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
    3589 $as_echo "$ac_cv_path_EGREP" >&6; }
    3590  EGREP="$ac_cv_path_EGREP"
    3591 
    3592 
    3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
    3594 $as_echo_n "checking for ANSI C header files... " >&6; }
    3595 if ${ac_cv_header_stdc+:} false; then :
    3596   $as_echo_n "(cached) " >&6
    3597 else
    3598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3599 /* end confdefs.h.  */
    3600 #include <stdlib.h>
    3601 #include <stdarg.h>
    3602 #include <string.h>
    3603 #include <float.h>
    3604 
    3605 int
    3606 main ()
    3607 {
    3608 
    3609   ;
    3610   return 0;
    3611 }
    3612 _ACEOF
    3613 if ac_fn_c_try_compile "$LINENO"; then :
    3614   ac_cv_header_stdc=yes
    3615 else
    3616   ac_cv_header_stdc=no
    3617 fi
    3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    3619 
    3620 if test $ac_cv_header_stdc = yes; then
    3621   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    3622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3623 /* end confdefs.h.  */
    3624 #include <string.h>
    3625 
    3626 _ACEOF
    3627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3628   $EGREP "memchr" >/dev/null 2>&1; then :
    3629 
    3630 else
    3631   ac_cv_header_stdc=no
    3632 fi
    3633 rm -f conftest*
    3634 
    3635 fi
    3636 
    3637 if test $ac_cv_header_stdc = yes; then
    3638   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    3639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3640 /* end confdefs.h.  */
    3641 #include <stdlib.h>
    3642 
    3643 _ACEOF
    3644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    3645   $EGREP "free" >/dev/null 2>&1; then :
    3646 
    3647 else
    3648   ac_cv_header_stdc=no
    3649 fi
    3650 rm -f conftest*
    3651 
    3652 fi
    3653 
    3654 if test $ac_cv_header_stdc = yes; then
    3655   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    3656   if test "$cross_compiling" = yes; then :
    3657   :
    3658 else
    3659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3660 /* end confdefs.h.  */
    3661 #include <ctype.h>
    3662 #include <stdlib.h>
    3663 #if ((' ' & 0x0FF) == 0x020)
    3664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    3665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    3666 #else
    3667 # define ISLOWER(c) \
    3668                    (('a' <= (c) && (c) <= 'i') \
    3669                      || ('j' <= (c) && (c) <= 'r') \
    3670                      || ('s' <= (c) && (c) <= 'z'))
    3671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    3672 #endif
    3673 
    3674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    3675 int
    3676 main ()
    3677 {
    3678   int i;
    3679   for (i = 0; i < 256; i++)
    3680     if (XOR (islower (i), ISLOWER (i))
    3681         || toupper (i) != TOUPPER (i))
    3682       return 2;
    3683   return 0;
    3684 }
    3685 _ACEOF
    3686 if ac_fn_c_try_run "$LINENO"; then :
    3687 
    3688 else
    3689   ac_cv_header_stdc=no
    3690 fi
    3691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
    3692   conftest.$ac_objext conftest.beam conftest.$ac_ext
    3693 fi
    3694 
    3695 fi
    3696 fi
    3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
    3698 $as_echo "$ac_cv_header_stdc" >&6; }
    3699 if test $ac_cv_header_stdc = yes; then
    3700 
    3701 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
    3702 
    3703 fi
    3704 
    3705 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    3706 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    3707                   inttypes.h stdint.h unistd.h
    3708 do :
    3709   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    3710 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
    3711 "
    3712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    3713   cat >>confdefs.h <<_ACEOF
    3714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    3715 _ACEOF
    3716 
    3717 fi
    3718 
    3719 done
    3720 
    3721 
    3722 
    3723 
    3724     # Step 0.a: Enable 64 bit support?
    3725 
    3726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
    3727 $as_echo_n "checking if 64bit support is requested... " >&6; }
    3728     # Check whether --enable-64bit was given.
    3729 if test "${enable_64bit+set}" = set; then :
    3730   enableval=$enable_64bit; do64bit=$enableval
    3731 else
    3732   do64bit=no
    3733 fi
    3734 
    3735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
    3736 $as_echo "$do64bit" >&6; }
    3737 
    3738     # Step 0.b: Enable Solaris 64 bit VIS support?
    3739 
    3740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
    3741 $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
    3742     # Check whether --enable-64bit-vis was given.
    3743 if test "${enable_64bit_vis+set}" = set; then :
    3744   enableval=$enable_64bit_vis; do64bitVIS=$enableval
    3745 else
    3746   do64bitVIS=no
    3747 fi
    3748 
    3749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
    3750 $as_echo "$do64bitVIS" >&6; }
    3751 
    3752     if test "$do64bitVIS" = "yes"; then
    3753         # Force 64bit on with VIS
    3754         do64bit=yes
    3755     fi
    3756 
    3757     # Step 1: set the variable "system" to hold the name and version number
    3758     # for the system.
    3759 
    3760 
    3761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
    3762 $as_echo_n "checking system version... " >&6; }
    3763 if ${tcl_cv_sys_version+:} false; then :
    3764   $as_echo_n "(cached) " >&6
    3765 else
    3766 
    3767         if test -f /usr/lib/NextStep/software_version; then
    3768             tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
    3769         else
    3770             tcl_cv_sys_version=`uname -s`-`uname -r`
    3771             if test "$?" -ne 0 ; then
    3772                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
    3773 $as_echo "$as_me: WARNING: can't find uname command" >&2;}
    3774                 tcl_cv_sys_version=unknown
    3775             else
    3776                 # Special check for weird MP-RAS system (uname returns weird
    3777                 # results, and the version is kept in special file).
    3778 
    3779                 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
    3780                     tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
    3781                 fi
    3782                 if test "`uname -s`" = "AIX" ; then
    3783                     tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
    3784                 fi
    3785             fi
    3786         fi
    3787 
    3788 fi
    3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
    3790 $as_echo "$tcl_cv_sys_version" >&6; }
    3791     system=$tcl_cv_sys_version
    3792 
    3793 
    3794     # Step 2: check for existence of -ldl library.  This is needed because
    3795     # Linux can use either -ldl or -ldld for dynamic loading.
    3796 
    3797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
    3798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
    3799 if ${ac_cv_lib_dl_dlopen+:} false; then :
    3800   $as_echo_n "(cached) " >&6
    3801 else
    3802   ac_check_lib_save_LIBS=$LIBS
    3803 LIBS="-ldl  $LIBS"
    3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3805 /* end confdefs.h.  */
    3806 
    3807 /* Override any GCC internal prototype to avoid an error.
    3808    Use char because int might match the return type of a GCC
    3809    builtin and then its argument prototype would still apply.  */
    3810 #ifdef __cplusplus
    3811 extern "C"
    3812 #endif
    3813 char dlopen ();
    3814 int
    3815 main ()
    3816 {
    3817 return dlopen ();
    3818   ;
    3819   return 0;
    3820 }
    3821 _ACEOF
    3822 if ac_fn_c_try_link "$LINENO"; then :
    3823   ac_cv_lib_dl_dlopen=yes
    3824 else
    3825   ac_cv_lib_dl_dlopen=no
    3826 fi
    3827 rm -f core conftest.err conftest.$ac_objext \
    3828     conftest$ac_exeext conftest.$ac_ext
    3829 LIBS=$ac_check_lib_save_LIBS
    3830 fi
    3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
    3832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
    3833 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
    3834   have_dl=yes
    3835 else
    3836   have_dl=no
    3837 fi
    3838 
    3839 
    3840     # Require ranlib early so we can override it in special cases below.
    3841 
    3842 
    3843 
    3844     # Step 3: set configuration options based on system name and version.
    3845 
    3846     do64bit_ok=no
    3847     LDFLAGS_ORIG="$LDFLAGS"
    3848     TCL_EXPORT_FILE_SUFFIX=""
    3849     UNSHARED_LIB_SUFFIX=""
    3850     TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
    3851     ECHO_VERSION='`echo ${VERSION}`'
    3852     TCL_LIB_VERSIONS_OK=ok
    3853     CFLAGS_DEBUG=-g
    3854     CFLAGS_OPTIMIZE=-O
    3855     if test "$GCC" = "yes" ; then
    3856         CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
    3857     else
    3858         CFLAGS_WARNING=""
    3859     fi
    3860     TCL_NEEDS_EXP_FILE=0
    3861     TCL_BUILD_EXP_FILE=""
    3862     TCL_EXP_FILE=""
    3863     # Extract the first word of "ar", so it can be a program name with args.
    3864 set dummy ar; ac_word=$2
    3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    3866 $as_echo_n "checking for $ac_word... " >&6; }
    3867 if ${ac_cv_prog_AR+:} false; then :
    3868   $as_echo_n "(cached) " >&6
    3869 else
    3870   if test -n "$AR"; then
    3871   ac_cv_prog_AR="$AR" # Let the user override the test.
    3872 else
    3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3874 for as_dir in $PATH
    3875 do
    3876   IFS=$as_save_IFS
    3877   test -z "$as_dir" && as_dir=.
    3878     for ac_exec_ext in '' $ac_executable_extensions; do
    3879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3880     ac_cv_prog_AR="ar"
    3881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    3882     break 2
    3883   fi
    3884 done
    3885   done
    3886 IFS=$as_save_IFS
    3887 
    3888 fi
    3889 fi
    3890 AR=$ac_cv_prog_AR
    3891 if test -n "$AR"; then
    3892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
    3893 $as_echo "$AR" >&6; }
    3894 else
    3895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    3896 $as_echo "no" >&6; }
    3897 fi
    3898 
    3899 
    3900     if test "${AR}" = "" ; then
    3901         as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
    3902     fi
    3903     STLIB_LD='${AR} cr'
    3904     LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
    3905     PLAT_OBJS=""
    3906     PLAT_SRCS=""
    3907     case $system in
    3908         AIX-*)
    3909             if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
    3910                 # AIX requires the _r compiler when gcc isn't being used
    3911                 case "${CC}" in
    3912                     *_r)
    3913                         # ok ...
    3914                         ;;
    3915                     *)
    3916                         CC=${CC}_r
    3917                         ;;
    3918                 esac
    3919                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
    3920 $as_echo "Using $CC for compiling with threads" >&6; }
    3921             fi
    3922             LIBS="$LIBS -lc"
    3923             SHLIB_CFLAGS=""
    3924             # Note: need the LIBS below, otherwise Tk won't find Tcl's
    3925             # symbols when dynamically loaded into tclsh.
    3926             SHLIB_LD_LIBS='${LIBS}'
    3927             SHLIB_SUFFIX=".so"
    3928 
    3929             DL_OBJS="tclLoadDl.o"
    3930             LD_LIBRARY_PATH_VAR="LIBPATH"
    3931 
    3932             # Check to enable 64-bit flags for compiler/linker on AIX 4+
    3933             if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
    3934                 if test "$GCC" = "yes" ; then
    3935                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
    3936 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    3937                 else
    3938                     do64bit_ok=yes
    3939                     CFLAGS="$CFLAGS -q64"
    3940                     LDFLAGS="$LDFLAGS -q64"
    3941                     RANLIB="${RANLIB} -X64"
    3942                     AR="${AR} -X64"
    3943                     SHLIB_LD_FLAGS="-b64"
    3944                 fi
    3945             fi
    3946 
    3947             if test "`uname -m`" = "ia64" ; then
    3948                 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
    3949                 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
    3950                 # AIX-5 has dl* in libc.so
    3951                 DL_LIBS=""
    3952                 if test "$GCC" = "yes" ; then
    3953                     CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
    3954                 else
    3955                     CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
    3956                 fi
    3957                 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
    3958             else
    3959                 if test "$GCC" = "yes" ; then
    3960                     SHLIB_LD="gcc -shared"
    3961                 else
    3962                     SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
    3963                 fi
    3964                 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
    3965                 DL_LIBS="-ldl"
    3966                 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    3967                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    3968                 TCL_NEEDS_EXP_FILE=1
    3969                 TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
    3970             fi
    3971 
    3972             # AIX v<=4.1 has some different flags than 4.2+
    3973             if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
    3974                 LIBOBJS="$LIBOBJS tclLoadAix.o"
    3975                 DL_LIBS="-lld"
    3976             fi
    3977 
    3978             # On AIX <=v4 systems, libbsd.a has to be linked in to support
    3979             # non-blocking file IO.  This library has to be linked in after
    3980             # the MATH_LIBS or it breaks the pow() function.  The way to
    3981             # insure proper sequencing, is to add it to the tail of MATH_LIBS.
    3982             # This library also supplies gettimeofday.
    3983             #
    3984             # AIX does not have a timezone field in struct tm. When the AIX
    3985             # bsd library is used, the timezone global and the gettimeofday
    3986             # methods are to be avoided for timezone deduction instead, we
    3987             # deduce the timezone by comparing the localtime result on a
    3988             # known GMT value.
    3989 
    3990             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
    3991 $as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
    3992 if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
    3993   $as_echo_n "(cached) " >&6
    3994 else
    3995   ac_check_lib_save_LIBS=$LIBS
    3996 LIBS="-lbsd  $LIBS"
    3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    3998 /* end confdefs.h.  */
    3999 
    4000 /* Override any GCC internal prototype to avoid an error.
    4001    Use char because int might match the return type of a GCC
    4002    builtin and then its argument prototype would still apply.  */
    4003 #ifdef __cplusplus
    4004 extern "C"
    4005 #endif
    4006 char gettimeofday ();
    4007 int
    4008 main ()
    4009 {
    4010 return gettimeofday ();
    4011   ;
    4012   return 0;
    4013 }
    4014 _ACEOF
    4015 if ac_fn_c_try_link "$LINENO"; then :
    4016   ac_cv_lib_bsd_gettimeofday=yes
    4017 else
    4018   ac_cv_lib_bsd_gettimeofday=no
    4019 fi
    4020 rm -f core conftest.err conftest.$ac_objext \
    4021     conftest$ac_exeext conftest.$ac_ext
    4022 LIBS=$ac_check_lib_save_LIBS
    4023 fi
    4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
    4025 $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
    4026 if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
    4027   libbsd=yes
    4028 else
    4029   libbsd=no
    4030 fi
    4031 
    4032             if test $libbsd = yes; then
    4033                 MATH_LIBS="$MATH_LIBS -lbsd"
    4034                 $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
    4035 
    4036             fi
    4037             ;;
    4038         BeOS*)
    4039             SHLIB_CFLAGS="-fPIC"
    4040             SHLIB_LD="${CC} -nostart"
    4041             SHLIB_LD_LIBS='${LIBS}'
    4042             SHLIB_SUFFIX=".so"
    4043             DL_OBJS="tclLoadDl.o"
    4044             DL_LIBS="-ldl"
    4045 
    4046             #-----------------------------------------------------------
    4047             # Check for inet_ntoa in -lbind, for BeOS (which also needs
    4048             # -lsocket, even if the network functions are in -lnet which
    4049             # is always linked to, for compatibility.
    4050             #-----------------------------------------------------------
    4051             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
    4052 $as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
    4053 if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
    4054   $as_echo_n "(cached) " >&6
    4055 else
    4056   ac_check_lib_save_LIBS=$LIBS
    4057 LIBS="-lbind  $LIBS"
    4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4059 /* end confdefs.h.  */
    4060 
    4061 /* Override any GCC internal prototype to avoid an error.
    4062    Use char because int might match the return type of a GCC
    4063    builtin and then its argument prototype would still apply.  */
    4064 #ifdef __cplusplus
    4065 extern "C"
    4066 #endif
    4067 char inet_ntoa ();
    4068 int
    4069 main ()
    4070 {
    4071 return inet_ntoa ();
    4072   ;
    4073   return 0;
    4074 }
    4075 _ACEOF
    4076 if ac_fn_c_try_link "$LINENO"; then :
    4077   ac_cv_lib_bind_inet_ntoa=yes
    4078 else
    4079   ac_cv_lib_bind_inet_ntoa=no
    4080 fi
    4081 rm -f core conftest.err conftest.$ac_objext \
    4082     conftest$ac_exeext conftest.$ac_ext
    4083 LIBS=$ac_check_lib_save_LIBS
    4084 fi
    4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
    4086 $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
    4087 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
    4088   LIBS="$LIBS -lbind -lsocket"
    4089 fi
    4090 
    4091             ;;
    4092         BSD/OS-2.1*|BSD/OS-3*)
    4093             SHLIB_CFLAGS=""
    4094             SHLIB_LD="shlicc -r"
    4095             SHLIB_LD_LIBS='${LIBS}'
    4096             SHLIB_SUFFIX=".so"
    4097             DL_OBJS="tclLoadDl.o"
    4098             DL_LIBS="-ldl"
    4099             CC_SEARCH_FLAGS=""
    4100             LD_SEARCH_FLAGS=""
    4101             ;;
    4102         BSD/OS-4.*)
    4103             SHLIB_CFLAGS="-export-dynamic -fPIC"
    4104             SHLIB_LD="cc -shared"
    4105             SHLIB_LD_LIBS='${LIBS}'
    4106             SHLIB_SUFFIX=".so"
    4107             DL_OBJS="tclLoadDl.o"
    4108             DL_LIBS="-ldl"
    4109             LDFLAGS="$LDFLAGS -export-dynamic"
    4110             CC_SEARCH_FLAGS=""
    4111             LD_SEARCH_FLAGS=""
    4112             ;;
    4113         dgux*)
    4114             SHLIB_CFLAGS="-K PIC"
    4115             SHLIB_LD="cc -G"
    4116             SHLIB_LD_LIBS=""
    4117             SHLIB_SUFFIX=".so"
    4118             DL_OBJS="tclLoadDl.o"
    4119             DL_LIBS="-ldl"
    4120             CC_SEARCH_FLAGS=""
    4121             LD_SEARCH_FLAGS=""
    4122             ;;
    4123         HP-UX-*.11.*)
    4124             # Use updated header definitions where possible
    4125             $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
    4126           # Use the XOPEN network library
    4127             $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
    4128  # Use the XOPEN network library
    4129             LIBS="$LIBS -lxnet"               # Use the XOPEN network library
    4130 
    4131             if test "`uname -m`" = "ia64" ; then
    4132                 SHLIB_SUFFIX=".so"
    4133             else
    4134                 SHLIB_SUFFIX=".sl"
    4135             fi
    4136             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
    4137 $as_echo_n "checking for shl_load in -ldld... " >&6; }
    4138 if ${ac_cv_lib_dld_shl_load+:} false; then :
    4139   $as_echo_n "(cached) " >&6
    4140 else
    4141   ac_check_lib_save_LIBS=$LIBS
    4142 LIBS="-ldld  $LIBS"
    4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4144 /* end confdefs.h.  */
    4145 
    4146 /* Override any GCC internal prototype to avoid an error.
    4147    Use char because int might match the return type of a GCC
    4148    builtin and then its argument prototype would still apply.  */
    4149 #ifdef __cplusplus
    4150 extern "C"
    4151 #endif
    4152 char shl_load ();
    4153 int
    4154 main ()
    4155 {
    4156 return shl_load ();
    4157   ;
    4158   return 0;
    4159 }
    4160 _ACEOF
    4161 if ac_fn_c_try_link "$LINENO"; then :
    4162   ac_cv_lib_dld_shl_load=yes
    4163 else
    4164   ac_cv_lib_dld_shl_load=no
    4165 fi
    4166 rm -f core conftest.err conftest.$ac_objext \
    4167     conftest$ac_exeext conftest.$ac_ext
    4168 LIBS=$ac_check_lib_save_LIBS
    4169 fi
    4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
    4171 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    4172 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
    4173   tcl_ok=yes
    4174 else
    4175   tcl_ok=no
    4176 fi
    4177 
    4178             if test "$tcl_ok" = yes; then
    4179                 SHLIB_CFLAGS="+z"
    4180                 SHLIB_LD="ld -b"
    4181                 SHLIB_LD_LIBS='${LIBS}'
    4182                 DL_OBJS="tclLoadShl.o"
    4183                 DL_LIBS="-ldld"
    4184                 LDFLAGS="$LDFLAGS -Wl,-E"
    4185                 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
    4186                 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
    4187                 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
    4188             fi
    4189             if test "$GCC" = "yes" ; then
    4190                 SHLIB_LD="gcc -shared"
    4191                 SHLIB_LD_LIBS='${LIBS}'
    4192                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    4193             fi
    4194 
    4195             # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
    4196             #CFLAGS="$CFLAGS +DAportable"
    4197 
    4198             # Check to enable 64-bit flags for compiler/linker
    4199             if test "$do64bit" = "yes" ; then
    4200                 if test "$GCC" = "yes" ; then
    4201                     hpux_arch=`${CC} -dumpmachine`
    4202                     case $hpux_arch in
    4203                         hppa64*)
    4204                             # 64-bit gcc in use.  Fix flags for GNU ld.
    4205                             do64bit_ok=yes
    4206                             SHLIB_LD="${CC} -shared"
    4207                             SHLIB_LD_LIBS='${LIBS}'
    4208                             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    4209                             LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    4210                             ;;
    4211                         *)
    4212                             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
    4213 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    4214                             ;;
    4215                     esac
    4216                 else
    4217                     do64bit_ok=yes
    4218                     CFLAGS="$CFLAGS +DD64"
    4219                     LDFLAGS="$LDFLAGS +DD64"
    4220                 fi
    4221             fi
    4222             ;;
    4223         HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
    4224             SHLIB_SUFFIX=".sl"
    4225             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
    4226 $as_echo_n "checking for shl_load in -ldld... " >&6; }
    4227 if ${ac_cv_lib_dld_shl_load+:} false; then :
    4228   $as_echo_n "(cached) " >&6
    4229 else
    4230   ac_check_lib_save_LIBS=$LIBS
    4231 LIBS="-ldld  $LIBS"
    4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4233 /* end confdefs.h.  */
    4234 
    4235 /* Override any GCC internal prototype to avoid an error.
    4236    Use char because int might match the return type of a GCC
    4237    builtin and then its argument prototype would still apply.  */
    4238 #ifdef __cplusplus
    4239 extern "C"
    4240 #endif
    4241 char shl_load ();
    4242 int
    4243 main ()
    4244 {
    4245 return shl_load ();
    4246   ;
    4247   return 0;
    4248 }
    4249 _ACEOF
    4250 if ac_fn_c_try_link "$LINENO"; then :
    4251   ac_cv_lib_dld_shl_load=yes
    4252 else
    4253   ac_cv_lib_dld_shl_load=no
    4254 fi
    4255 rm -f core conftest.err conftest.$ac_objext \
    4256     conftest$ac_exeext conftest.$ac_ext
    4257 LIBS=$ac_check_lib_save_LIBS
    4258 fi
    4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
    4260 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
    4261 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
    4262   tcl_ok=yes
    4263 else
    4264   tcl_ok=no
    4265 fi
    4266 
    4267             if test "$tcl_ok" = yes; then
    4268                 SHLIB_CFLAGS="+z"
    4269                 SHLIB_LD="ld -b"
    4270                 SHLIB_LD_LIBS=""
    4271                 DL_OBJS="tclLoadShl.o"
    4272                 DL_LIBS="-ldld"
    4273                 LDFLAGS="$LDFLAGS -Wl,-E"
    4274                 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
    4275                 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
    4276                 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
    4277             fi
    4278             ;;
    4279         IRIX-4.*)
    4280             SHLIB_CFLAGS="-G 0"
    4281             SHLIB_SUFFIX=".a"
    4282             SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
    4283             SHLIB_LD_LIBS='${LIBS}'
    4284             DL_OBJS="tclLoadAout.o"
    4285             DL_LIBS=""
    4286             LDFLAGS="$LDFLAGS -Wl,-D,08000000"
    4287             CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    4288             LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    4289             SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
    4290             ;;
    4291         IRIX-5.*)
    4292             SHLIB_CFLAGS=""
    4293             SHLIB_LD="ld -shared -rdata_shared"
    4294             SHLIB_LD_LIBS='${LIBS}'
    4295             SHLIB_SUFFIX=".so"
    4296             DL_OBJS="tclLoadDl.o"
    4297             DL_LIBS=""
    4298             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    4299             LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    4300             ;;
    4301         IRIX-6.*)
    4302             SHLIB_CFLAGS=""
    4303             SHLIB_LD="ld -n32 -shared -rdata_shared"
    4304             SHLIB_LD_LIBS='${LIBS}'
    4305             SHLIB_SUFFIX=".so"
    4306             DL_OBJS="tclLoadDl.o"
    4307             DL_LIBS=""
    4308             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    4309             LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    4310             if test "$GCC" = "yes" ; then
    4311                 CFLAGS="$CFLAGS -mabi=n32"
    4312                 LDFLAGS="$LDFLAGS -mabi=n32"
    4313             else
    4314                 case $system in
    4315                     IRIX-6.3)
    4316                         # Use to build 6.2 compatible binaries on 6.3.
    4317                         CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
    4318                         ;;
    4319                     *)
    4320                         CFLAGS="$CFLAGS -n32"
    4321                         ;;
    4322                 esac
    4323                 LDFLAGS="$LDFLAGS -n32"
    4324             fi
    4325             ;;
    4326         IRIX64-6.*)
    4327             SHLIB_CFLAGS=""
    4328             SHLIB_LD="ld -n32 -shared -rdata_shared"
    4329             SHLIB_LD_LIBS='${LIBS}'
    4330             SHLIB_SUFFIX=".so"
    4331             DL_OBJS="tclLoadDl.o"
    4332             DL_LIBS=""
    4333             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    4334             LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    4335 
    4336             # Check to enable 64-bit flags for compiler/linker
    4337 
    4338             if test "$do64bit" = "yes" ; then
    4339                 if test "$GCC" = "yes" ; then
    4340                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
    4341 $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
    4342                 else
    4343                     do64bit_ok=yes
    4344                     SHLIB_LD="ld -64 -shared -rdata_shared"
    4345                     CFLAGS="$CFLAGS -64"
    4346                     LDFLAGS="$LDFLAGS -64"
    4347                 fi
    4348             fi
    4349             ;;
    4350         Linux*)
    4351             SHLIB_CFLAGS="-fPIC"
    4352             SHLIB_LD_LIBS='${LIBS}'
    4353             SHLIB_SUFFIX=".so"
    4354 
    4355             CFLAGS_OPTIMIZE=-O2
    4356             # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
    4357             # when you inline the string and math operations.  Turn this off to
    4358             # get rid of the warnings.
    4359             #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
    4360 
    4361             if test "$have_dl" = yes; then
    4362                 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
    4363                 DL_OBJS="tclLoadDl.o"
    4364                 DL_LIBS="-ldl"
    4365                 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
    4366                 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    4367                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    4368             else
    4369                 ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
    4370 if test "x$ac_cv_header_dld_h" = xyes; then :
    4371 
    4372                     SHLIB_LD="ld -shared"
    4373                     DL_OBJS="tclLoadDld.o"
    4374                     DL_LIBS="-ldld"
    4375                     CC_SEARCH_FLAGS=""
    4376                     LD_SEARCH_FLAGS=""
    4377 fi
    4378 
    4379 
    4380             fi
    4381             if test "`uname -m`" = "alpha" ; then
    4382                 CFLAGS="$CFLAGS -mieee"
    4383             fi
    4384             if test $do64bit = yes; then
    4385                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
    4386 $as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
    4387 if ${tcl_cv_cc_m64+:} false; then :
    4388   $as_echo_n "(cached) " >&6
    4389 else
    4390 
    4391                     hold_cflags=$CFLAGS
    4392                     CFLAGS="$CFLAGS -m64"
    4393                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4394 /* end confdefs.h.  */
    4395 
    4396 int
    4397 main ()
    4398 {
    4399 
    4400   ;
    4401   return 0;
    4402 }
    4403 _ACEOF
    4404 if ac_fn_c_try_link "$LINENO"; then :
    4405   tcl_cv_cc_m64=yes
    4406 else
    4407   tcl_cv_cc_m64=no
    4408 fi
    4409 rm -f core conftest.err conftest.$ac_objext \
    4410     conftest$ac_exeext conftest.$ac_ext
    4411                     CFLAGS=$hold_cflags
    4412 fi
    4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
    4414 $as_echo "$tcl_cv_cc_m64" >&6; }
    4415                 if test $tcl_cv_cc_m64 = yes; then
    4416                     CFLAGS="$CFLAGS -m64"
    4417                     do64bit_ok=yes
    4418                 fi
    4419             fi
    4420 
    4421             # The combo of gcc + glibc has a bug related
    4422             # to inlining of functions like strtod(). The
    4423             # -fno-builtin flag should address this problem
    4424             # but it does not work. The -fno-inline flag
    4425             # is kind of overkill but it works.
    4426             # Disable inlining only when one of the
    4427             # files in compat/*.c is being linked in.
    4428             if test x"${LIBOBJS}" != x ; then
    4429                 CFLAGS="$CFLAGS -fno-inline"
    4430             fi
    4431 
    4432             # XIM peeking works under XFree86.
    4433             $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
    4434 
    4435 
    4436             ;;
    4437         GNU*)
    4438             SHLIB_CFLAGS="-fPIC"
    4439             SHLIB_LD_LIBS='${LIBS}'
    4440             SHLIB_SUFFIX=".so"
    4441 
    4442             if test "$have_dl" = yes; then
    4443                 SHLIB_LD="${CC} -shared"
    4444                 DL_OBJS=""
    4445                 DL_LIBS="-ldl"
    4446                 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
    4447                 CC_SEARCH_FLAGS=""
    4448                 LD_SEARCH_FLAGS=""
    4449             else
    4450                 ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
    4451 if test "x$ac_cv_header_dld_h" = xyes; then :
    4452 
    4453                     SHLIB_LD="ld -shared"
    4454                     DL_OBJS=""
    4455                     DL_LIBS="-ldld"
    4456                     CC_SEARCH_FLAGS=""
    4457                     LD_SEARCH_FLAGS=""
    4458 fi
    4459 
    4460 
    4461             fi
    4462             if test "`uname -m`" = "alpha" ; then
    4463                 CFLAGS="$CFLAGS -mieee"
    4464             fi
    4465             ;;
    4466         Lynx*)
    4467             SHLIB_CFLAGS="-fPIC"
    4468             SHLIB_LD_LIBS='${LIBS}'
    4469             SHLIB_SUFFIX=".so"
    4470             CFLAGS_OPTIMIZE=-02
    4471             SHLIB_LD="${CC} -shared "
    4472             DL_OBJS="tclLoadDl.o"
    4473             DL_LIBS="-mshared -ldl"
    4474             LD_FLAGS="-Wl,--export-dynamic"
    4475             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    4476             LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    4477             ;;
    4478         MP-RAS-02*)
    4479             SHLIB_CFLAGS="-K PIC"
    4480             SHLIB_LD="cc -G"
    4481             SHLIB_LD_LIBS=""
    4482             SHLIB_SUFFIX=".so"
    4483             DL_OBJS="tclLoadDl.o"
    4484             DL_LIBS="-ldl"
    4485             CC_SEARCH_FLAGS=""
    4486             LD_SEARCH_FLAGS=""
    4487             ;;
    4488         MP-RAS-*)
    4489             SHLIB_CFLAGS="-K PIC"
    4490             SHLIB_LD="cc -G"
    4491             SHLIB_LD_LIBS=""
    4492             SHLIB_SUFFIX=".so"
    4493             DL_OBJS="tclLoadDl.o"
    4494             DL_LIBS="-ldl"
    4495             LDFLAGS="$LDFLAGS -Wl,-Bexport"
    4496             CC_SEARCH_FLAGS=""
    4497             LD_SEARCH_FLAGS=""
    4498             ;;
    4499         NetBSD-*|FreeBSD-[1-2].*)
    4500             # Not available on all versions:  check for include file.
    4501             ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
    4502 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
    4503 
    4504                 # NetBSD/SPARC needs -fPIC, -fpic will not do.
    4505                 SHLIB_CFLAGS="-fPIC"
    4506                 SHLIB_LD="ld -Bshareable -x"
    4507                 SHLIB_LD_LIBS='${LIBS}'
    4508                 SHLIB_SUFFIX=".so"
    4509                 DL_OBJS="tclLoadDl.o"
    4510                 DL_LIBS=""
    4511                 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    4512                 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    4513                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
    4514 $as_echo_n "checking for ELF... " >&6; }
    4515 if ${tcl_cv_ld_elf+:} false; then :
    4516   $as_echo_n "(cached) " >&6
    4517 else
    4518 
    4519                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4520 /* end confdefs.h.  */
    4521 
    4522 #ifdef __ELF__
    4523         yes
    4524 #endif
    4525 
    4526 _ACEOF
    4527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4528   $EGREP "yes" >/dev/null 2>&1; then :
    4529   tcl_cv_ld_elf=yes
    4530 else
    4531   tcl_cv_ld_elf=no
    4532 fi
    4533 rm -f conftest*
    4534 
    4535 fi
    4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
    4537 $as_echo "$tcl_cv_ld_elf" >&6; }
    4538                 if test $tcl_cv_ld_elf = yes; then
    4539                     SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
    4540                 else
    4541                     SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
    4542                 fi
    4543 
    4544 else
    4545 
    4546                 SHLIB_CFLAGS=""
    4547                 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
    4548                 SHLIB_LD_LIBS='${LIBS}'
    4549                 SHLIB_SUFFIX=".a"
    4550                 DL_OBJS="tclLoadAout.o"
    4551                 DL_LIBS=""
    4552                 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    4553                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    4554                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    4555 
    4556 fi
    4557 
    4558 
    4559 
    4560             # FreeBSD doesn't handle version numbers with dots.
    4561 
    4562             UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    4563             TCL_LIB_VERSIONS_OK=nodots
    4564             ;;
    4565         OpenBSD-*)
    4566             case `arch -s` in
    4567             m88k|vax)
    4568                 SHLIB_CFLAGS=""
    4569                 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
    4570                 SHLIB_LD_LIBS='${LIBS}'
    4571                 SHLIB_SUFFIX=".a"
    4572                 DL_OBJS="tclLoadAout.o"
    4573                 DL_LIBS=""
    4574                 LDFLAGS=""
    4575                 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    4576                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    4577                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    4578                 ;;
    4579             *)
    4580                 # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
    4581                 case `machine` in
    4582                 sparc|sparc64)
    4583                     SHLIB_CFLAGS="-fPIC";;
    4584                 *)
    4585                     SHLIB_CFLAGS="-fpic";;
    4586                 esac
    4587                 SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
    4588                 SHLIB_LD_LIBS='${LIBS}'
    4589                 SHLIB_SUFFIX=".so"
    4590                 DL_OBJS="tclLoadDl.o"
    4591                 DL_LIBS=""
    4592                 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    4593                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    4594                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
    4595                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
    4596 $as_echo_n "checking for ELF... " >&6; }
    4597 if ${tcl_cv_ld_elf+:} false; then :
    4598   $as_echo_n "(cached) " >&6
    4599 else
    4600 
    4601                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4602 /* end confdefs.h.  */
    4603 
    4604 #ifdef __ELF__
    4605         yes
    4606 #endif
    4607 
    4608 _ACEOF
    4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4610   $EGREP "yes" >/dev/null 2>&1; then :
    4611   tcl_cv_ld_elf=yes
    4612 else
    4613   tcl_cv_ld_elf=no
    4614 fi
    4615 rm -f conftest*
    4616 
    4617 fi
    4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
    4619 $as_echo "$tcl_cv_ld_elf" >&6; }
    4620                 if test $tcl_cv_ld_elf = yes; then
    4621                     LDFLAGS=-Wl,-export-dynamic
    4622                 else
    4623                     LDFLAGS=""
    4624                 fi
    4625                 ;;
    4626             esac
    4627 
    4628             # OpenBSD doesn't do version numbers with dots.
    4629             UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    4630             TCL_LIB_VERSIONS_OK=nodots
    4631             ;;
    4632         FreeBSD-*)
    4633             # FreeBSD 3.* and greater have ELF.
    4634             SHLIB_CFLAGS="-fPIC"
    4635             SHLIB_LD="ld -Bshareable -x"
    4636             SHLIB_LD_LIBS='${LIBS}'
    4637             SHLIB_SUFFIX=".so"
    4638             DL_OBJS="tclLoadDl.o"
    4639             DL_LIBS=""
    4640             LDFLAGS="$LDFLAGS -export-dynamic"
    4641             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    4642             LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    4643             if test "${TCL_THREADS}" = "1" ; then
    4644                 # The -pthread needs to go in the CFLAGS, not LIBS
    4645                 LIBS=`echo $LIBS | sed s/-pthread//`
    4646                 CFLAGS="$CFLAGS -pthread"
    4647                 LDFLAGS="$LDFLAGS -pthread"
    4648             fi
    4649             case $system in
    4650             FreeBSD-3.*)
    4651                 # FreeBSD-3 doesn't handle version numbers with dots.
    4652                 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    4653                 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
    4654                 TCL_LIB_VERSIONS_OK=nodots
    4655                 ;;
    4656             esac
    4657             ;;
    4658         Darwin-*)
    4659             CFLAGS_OPTIMIZE="-Os"
    4660             SHLIB_CFLAGS="-fno-common"
    4661             # To avoid discrepancies between what headers configure sees during
    4662             # preprocessing tests and compiling tests, move any -isysroot and
    4663             # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
    4664             CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
    4665                 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
    4666                 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
    4667             CFLAGS="`echo " ${CFLAGS}" | \
    4668                 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
    4669                 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
    4670             if test $do64bit = yes; then
    4671                 case `arch` in
    4672                     ppc)
    4673                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
    4674 $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
    4675 if ${tcl_cv_cc_arch_ppc64+:} false; then :
    4676   $as_echo_n "(cached) " >&6
    4677 else
    4678 
    4679                             hold_cflags=$CFLAGS
    4680                             CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
    4681                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4682 /* end confdefs.h.  */
    4683 
    4684 int
    4685 main ()
    4686 {
    4687 
    4688   ;
    4689   return 0;
    4690 }
    4691 _ACEOF
    4692 if ac_fn_c_try_link "$LINENO"; then :
    4693   tcl_cv_cc_arch_ppc64=yes
    4694 else
    4695   tcl_cv_cc_arch_ppc64=no
    4696 fi
    4697 rm -f core conftest.err conftest.$ac_objext \
    4698     conftest$ac_exeext conftest.$ac_ext
    4699                             CFLAGS=$hold_cflags
    4700 fi
    4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
    4702 $as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
    4703                         if test $tcl_cv_cc_arch_ppc64 = yes; then
    4704                             CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
    4705                             do64bit_ok=yes
    4706                         fi;;
    4707                     i386)
    4708                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
    4709 $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
    4710 if ${tcl_cv_cc_arch_x86_64+:} false; then :
    4711   $as_echo_n "(cached) " >&6
    4712 else
    4713 
    4714                             hold_cflags=$CFLAGS
    4715                             CFLAGS="$CFLAGS -arch x86_64"
    4716                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4717 /* end confdefs.h.  */
    4718 
    4719 int
    4720 main ()
    4721 {
    4722 
    4723   ;
    4724   return 0;
    4725 }
    4726 _ACEOF
    4727 if ac_fn_c_try_link "$LINENO"; then :
    4728   tcl_cv_cc_arch_x86_64=yes
    4729 else
    4730   tcl_cv_cc_arch_x86_64=no
    4731 fi
    4732 rm -f core conftest.err conftest.$ac_objext \
    4733     conftest$ac_exeext conftest.$ac_ext
    4734                             CFLAGS=$hold_cflags
    4735 fi
    4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
    4737 $as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
    4738                         if test $tcl_cv_cc_arch_x86_64 = yes; then
    4739                             CFLAGS="$CFLAGS -arch x86_64"
    4740                             do64bit_ok=yes
    4741                         fi;;
    4742                     *)
    4743                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
    4744 $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
    4745                 esac
    4746             else
    4747                 # Check for combined 32-bit and 64-bit fat build
    4748                 echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
    4749                     echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
    4750                     fat_32_64=yes
    4751             fi
    4752             SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
    4753             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
    4754 $as_echo_n "checking if ld accepts -single_module flag... " >&6; }
    4755 if ${tcl_cv_ld_single_module+:} false; then :
    4756   $as_echo_n "(cached) " >&6
    4757 else
    4758 
    4759                 hold_ldflags=$LDFLAGS
    4760                 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
    4761                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4762 /* end confdefs.h.  */
    4763 
    4764 int
    4765 main ()
    4766 {
    4767 int i;
    4768   ;
    4769   return 0;
    4770 }
    4771 _ACEOF
    4772 if ac_fn_c_try_link "$LINENO"; then :
    4773   tcl_cv_ld_single_module=yes
    4774 else
    4775   tcl_cv_ld_single_module=no
    4776 fi
    4777 rm -f core conftest.err conftest.$ac_objext \
    4778     conftest$ac_exeext conftest.$ac_ext
    4779                 LDFLAGS=$hold_ldflags
    4780 fi
    4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
    4782 $as_echo "$tcl_cv_ld_single_module" >&6; }
    4783             if test $tcl_cv_ld_single_module = yes; then
    4784                 SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
    4785             fi
    4786             SHLIB_LD_LIBS='${LIBS}'
    4787             SHLIB_SUFFIX=".dylib"
    4788             DL_OBJS="tclLoadDyld.o"
    4789             DL_LIBS=""
    4790             # Don't use -prebind when building for Mac OS X 10.4 or later only:
    4791             test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
    4792                 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
    4793                 LDFLAGS="$LDFLAGS -prebind"
    4794             LDFLAGS="$LDFLAGS -headerpad_max_install_names"
    4795             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
    4796 $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
    4797 if ${tcl_cv_ld_search_paths_first+:} false; then :
    4798   $as_echo_n "(cached) " >&6
    4799 else
    4800 
    4801                 hold_ldflags=$LDFLAGS
    4802                 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
    4803                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4804 /* end confdefs.h.  */
    4805 
    4806 int
    4807 main ()
    4808 {
    4809 int i;
    4810   ;
    4811   return 0;
    4812 }
    4813 _ACEOF
    4814 if ac_fn_c_try_link "$LINENO"; then :
    4815   tcl_cv_ld_search_paths_first=yes
    4816 else
    4817   tcl_cv_ld_search_paths_first=no
    4818 fi
    4819 rm -f core conftest.err conftest.$ac_objext \
    4820     conftest$ac_exeext conftest.$ac_ext
    4821                 LDFLAGS=$hold_ldflags
    4822 fi
    4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
    4824 $as_echo "$tcl_cv_ld_search_paths_first" >&6; }
    4825             if test $tcl_cv_ld_search_paths_first = yes; then
    4826                 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
    4827             fi
    4828             CC_SEARCH_FLAGS=""
    4829             LD_SEARCH_FLAGS=""
    4830             LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
    4831             PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
    4832             PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
    4833             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
    4834 $as_echo_n "checking whether to use CoreFoundation... " >&6; }
    4835             # Check whether --enable-corefoundation was given.
    4836 if test "${enable_corefoundation+set}" = set; then :
    4837   enableval=$enable_corefoundation; tcl_corefoundation=$enableval
    4838 else
    4839   tcl_corefoundation=yes
    4840 fi
    4841 
    4842             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
    4843 $as_echo "$tcl_corefoundation" >&6; }
    4844             if test $tcl_corefoundation = yes; then
    4845                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
    4846 $as_echo_n "checking for CoreFoundation.framework... " >&6; }
    4847 if ${tcl_cv_lib_corefoundation+:} false; then :
    4848   $as_echo_n "(cached) " >&6
    4849 else
    4850 
    4851                     hold_libs=$LIBS
    4852                     if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
    4853                         # On Tiger there is no 64-bit CF, so remove 64-bit archs
    4854                         # from CFLAGS et al. while testing for presence of CF.
    4855                         # 64-bit CF is disabled in tclUnixPort.h if necessary.
    4856                         eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
    4857                     done; fi
    4858                     LIBS="$LIBS -framework CoreFoundation"
    4859                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4860 /* end confdefs.h.  */
    4861 #include <CoreFoundation/CoreFoundation.h>
    4862 int
    4863 main ()
    4864 {
    4865 CFBundleRef b = CFBundleGetMainBundle();
    4866   ;
    4867   return 0;
    4868 }
    4869 _ACEOF
    4870 if ac_fn_c_try_link "$LINENO"; then :
    4871   tcl_cv_lib_corefoundation=yes
    4872 else
    4873   tcl_cv_lib_corefoundation=no
    4874 fi
    4875 rm -f core conftest.err conftest.$ac_objext \
    4876     conftest$ac_exeext conftest.$ac_ext
    4877                     if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
    4878                         eval $v'="$hold_'$v'"'
    4879                     done; fi; LIBS=$hold_libs
    4880 fi
    4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
    4882 $as_echo "$tcl_cv_lib_corefoundation" >&6; }
    4883                 if test $tcl_cv_lib_corefoundation = yes; then
    4884                     LIBS="$LIBS -framework CoreFoundation"
    4885                     $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
    4886 
    4887                 else
    4888                     tcl_corefoundation=no
    4889                 fi
    4890                 if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
    4891                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
    4892 $as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
    4893 if ${tcl_cv_lib_corefoundation_64+:} false; then :
    4894   $as_echo_n "(cached) " >&6
    4895 else
    4896 
    4897                         for v in CFLAGS CPPFLAGS LDFLAGS; do
    4898                             eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
    4899                         done
    4900                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    4901 /* end confdefs.h.  */
    4902 #include <CoreFoundation/CoreFoundation.h>
    4903 int
    4904 main ()
    4905 {
    4906 CFBundleRef b = CFBundleGetMainBundle();
    4907   ;
    4908   return 0;
    4909 }
    4910 _ACEOF
    4911 if ac_fn_c_try_link "$LINENO"; then :
    4912   tcl_cv_lib_corefoundation_64=yes
    4913 else
    4914   tcl_cv_lib_corefoundation_64=no
    4915 fi
    4916 rm -f core conftest.err conftest.$ac_objext \
    4917     conftest$ac_exeext conftest.$ac_ext
    4918                         for v in CFLAGS CPPFLAGS LDFLAGS; do
    4919                             eval $v'="$hold_'$v'"'
    4920                         done
    4921 fi
    4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
    4923 $as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
    4924                     if test $tcl_cv_lib_corefoundation_64 = no; then
    4925                         $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
    4926 
    4927                     fi
    4928                 fi
    4929             fi
    4930             $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
    4931 
    4932             ;;
    4933         NEXTSTEP-*)
    4934             SHLIB_CFLAGS=""
    4935             SHLIB_LD="cc -nostdlib -r"
    4936             SHLIB_LD_LIBS=""
    4937             SHLIB_SUFFIX=".so"
    4938             DL_OBJS="tclLoadNext.o"
    4939             DL_LIBS=""
    4940             CC_SEARCH_FLAGS=""
    4941             LD_SEARCH_FLAGS=""
    4942             ;;
    4943         OS/390-*)
    4944             CFLAGS_OPTIMIZE=""          # Optimizer is buggy
    4945             $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
    4946         # needed in sys/socket.h
    4947             ;;
    4948         OSF1-1.0|OSF1-1.1|OSF1-1.2)
    4949             # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
    4950             SHLIB_CFLAGS=""
    4951             # Hack: make package name same as library name
    4952             SHLIB_LD='ld -R -export :'
    4953             SHLIB_LD_LIBS=""
    4954             SHLIB_SUFFIX=".so"
    4955             DL_OBJS="tclLoadOSF.o"
    4956             DL_LIBS=""
    4957             CC_SEARCH_FLAGS=""
    4958             LD_SEARCH_FLAGS=""
    4959             ;;
    4960         OSF1-1.*)
    4961             # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
    4962             SHLIB_CFLAGS="-fPIC"
    4963             if test "$SHARED_BUILD" = "1" ; then
    4964                 SHLIB_LD="ld -shared"
    4965             else
    4966                 SHLIB_LD="ld -non_shared"
    4967             fi
    4968             SHLIB_LD_LIBS=""
    4969             SHLIB_SUFFIX=".so"
    4970             DL_OBJS="tclLoadDl.o"
    4971             DL_LIBS=""
    4972             CC_SEARCH_FLAGS=""
    4973             LD_SEARCH_FLAGS=""
    4974             ;;
    4975         OSF1-V*)
    4976             # Digital OSF/1
    4977             SHLIB_CFLAGS=""
    4978             if test "$SHARED_BUILD" = "1" ; then
    4979                 SHLIB_LD='ld -shared -expect_unresolved "*"'
    4980             else
    4981                 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
    4982             fi
    4983             SHLIB_LD_LIBS=""
    4984             SHLIB_SUFFIX=".so"
    4985             DL_OBJS="tclLoadDl.o"
    4986             DL_LIBS=""
    4987             CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
    4988             LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
    4989             if test "$GCC" = "yes" ; then
    4990                 CFLAGS="$CFLAGS -mieee"
    4991             else
    4992                 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
    4993             fi
    4994             # see pthread_intro(3) for pthread support on osf1, k.furukawa
    4995             if test "${TCL_THREADS}" = "1" ; then
    4996                 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
    4997                 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
    4998                 LIBS=`echo $LIBS | sed s/-lpthreads//`
    4999                 if test "$GCC" = "yes" ; then
    5000                     LIBS="$LIBS -lpthread -lmach -lexc"
    5001                 else
    5002                     CFLAGS="$CFLAGS -pthread"
    5003                     LDFLAGS="$LDFLAGS -pthread"
    5004                 fi
    5005             fi
    5006 
    5007             ;;
    5008         QNX-6*)
    5009             # QNX RTP
    5010             # This may work for all QNX, but it was only reported for v6.
    5011             SHLIB_CFLAGS="-fPIC"
    5012             SHLIB_LD="ld -Bshareable -x"
    5013             SHLIB_LD_LIBS=""
    5014             SHLIB_SUFFIX=".so"
    5015             DL_OBJS="tclLoadDl.o"
    5016             # dlopen is in -lc on QNX
    5017             DL_LIBS=""
    5018             CC_SEARCH_FLAGS=""
    5019             LD_SEARCH_FLAGS=""
    5020             ;;
    5021         RISCos-*)
    5022             SHLIB_CFLAGS="-G 0"
    5023             SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
    5024             SHLIB_LD_LIBS='${LIBS}'
    5025             SHLIB_SUFFIX=".a"
    5026             DL_OBJS="tclLoadAout.o"
    5027             DL_LIBS=""
    5028             LDFLAGS="$LDFLAGS -Wl,-D,08000000"
    5029             CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    5030             LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    5031             ;;
    5032         SCO_SV-3.2*)
    5033             # Note, dlopen is available only on SCO 3.2.5 and greater. However,
    5034             # this test works, since "uname -s" was non-standard in 3.2.4 and
    5035             # below.
    5036             if test "$GCC" = "yes" ; then
    5037                 SHLIB_CFLAGS="-fPIC -melf"
    5038                 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
    5039             else
    5040                 SHLIB_CFLAGS="-Kpic -belf"
    5041                 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
    5042             fi
    5043             SHLIB_LD="ld -G"
    5044             SHLIB_LD_LIBS=""
    5045             SHLIB_SUFFIX=".so"
    5046             DL_OBJS="tclLoadDl.o"
    5047             DL_LIBS=""
    5048             CC_SEARCH_FLAGS=""
    5049             LD_SEARCH_FLAGS=""
    5050             ;;
    5051         SINIX*5.4*)
    5052             SHLIB_CFLAGS="-K PIC"
    5053             SHLIB_LD="cc -G"
    5054             SHLIB_LD_LIBS=""
    5055             SHLIB_SUFFIX=".so"
    5056             DL_OBJS="tclLoadDl.o"
    5057             DL_LIBS="-ldl"
    5058             CC_SEARCH_FLAGS=""
    5059             LD_SEARCH_FLAGS=""
    5060             ;;
    5061         SunOS-4*)
    5062             SHLIB_CFLAGS="-PIC"
    5063             SHLIB_LD="ld"
    5064             SHLIB_LD_LIBS=""
    5065             SHLIB_SUFFIX=".so"
    5066             DL_OBJS="tclLoadDl.o"
    5067             DL_LIBS="-ldl"
    5068             CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    5069             LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    5070 
    5071             # SunOS can't handle version numbers with dots in them in library
    5072             # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
    5073             # requires an extra version number at the end of .so file names.
    5074             # So, the library has to have a name like libtcl75.so.1.0
    5075 
    5076             SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
    5077             UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
    5078             TCL_LIB_VERSIONS_OK=nodots
    5079             ;;
    5080         SunOS-5.[0-6])
    5081             # Careful to not let 5.10+ fall into this case
    5082 
    5083             # Note: If _REENTRANT isn't defined, then Solaris
    5084             # won't define thread-safe library routines.
    5085 
    5086             $as_echo "#define _REENTRANT 1" >>confdefs.h
    5087 
    5088             $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
    5089 
    5090 
    5091             SHLIB_CFLAGS="-KPIC"
    5092 
    5093             # Note: need the LIBS below, otherwise Tk won't find Tcl's
    5094             # symbols when dynamically loaded into tclsh.
    5095 
    5096             SHLIB_LD_LIBS='${LIBS}'
    5097             SHLIB_SUFFIX=".so"
    5098             DL_OBJS="tclLoadDl.o"
    5099             DL_LIBS="-ldl"
    5100             if test "$GCC" = "yes" ; then
    5101                 SHLIB_LD="$CC -shared"
    5102                 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
    5103                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    5104             else
    5105                 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
    5106                 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
    5107                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    5108             fi
    5109             ;;
    5110         SunOS-5*)
    5111             # Note: If _REENTRANT isn't defined, then Solaris
    5112             # won't define thread-safe library routines.
    5113 
    5114             $as_echo "#define _REENTRANT 1" >>confdefs.h
    5115 
    5116             $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
    5117 
    5118 
    5119             SHLIB_CFLAGS="-KPIC"
    5120 
    5121             # Check to enable 64-bit flags for compiler/linker
    5122             if test "$do64bit" = "yes" ; then
    5123                 arch=`isainfo`
    5124                 if test "$arch" = "sparcv9 sparc" ; then
    5125                         if test "$GCC" = "yes" ; then
    5126                             if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
    5127                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
    5128 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
    5129                             else
    5130                                 do64bit_ok=yes
    5131                                 CFLAGS="$CFLAGS -m64 -mcpu=v9"
    5132                                 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
    5133                                 SHLIB_CFLAGS="-fPIC"
    5134                             fi
    5135                         else
    5136                             do64bit_ok=yes
    5137                             if test "$do64bitVIS" = "yes" ; then
    5138                                 CFLAGS="$CFLAGS -xarch=v9a"
    5139                                 LDFLAGS="$LDFLAGS -xarch=v9a"
    5140                             else
    5141                                 CFLAGS="$CFLAGS -xarch=v9"
    5142                                 LDFLAGS="$LDFLAGS -xarch=v9"
    5143                             fi
    5144                             # Solaris 64 uses this as well
    5145                             #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
    5146                         fi
    5147                 elif test "$arch" = "amd64 i386" ; then
    5148                     if test "$GCC" = "yes" ; then
    5149                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
    5150 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
    5151                     else
    5152                         do64bit_ok=yes
    5153                         CFLAGS="$CFLAGS -xarch=amd64"
    5154                         LDFLAGS="$LDFLAGS -xarch=amd64"
    5155                     fi
    5156                 else
    5157                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
    5158 $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
    5159                 fi
    5160             fi
    5161 
    5162             # Note: need the LIBS below, otherwise Tk won't find Tcl's
    5163             # symbols when dynamically loaded into tclsh.
    5164 
    5165             SHLIB_LD_LIBS='${LIBS}'
    5166             SHLIB_SUFFIX=".so"
    5167             DL_OBJS="tclLoadDl.o"
    5168             DL_LIBS="-ldl"
    5169             if test "$GCC" = "yes" ; then
    5170                 SHLIB_LD="$CC -shared"
    5171                 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
    5172                 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    5173                 if test "$do64bit_ok" = "yes" ; then
    5174                     # We need to specify -static-libgcc or we need to
    5175                     # add the path to the sparv9 libgcc.
    5176                     SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
    5177                     # for finding sparcv9 libgcc, get the regular libgcc
    5178                     # path, remove so name and append 'sparcv9'
    5179                     #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
    5180                     #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
    5181                 fi
    5182             else
    5183                 case $system in
    5184                     SunOS-5.[1-9][0-9]*)
    5185                         SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
    5186                     *)
    5187                         SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
    5188                 esac
    5189                 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
    5190                 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
    5191             fi
    5192             ;;
    5193         ULTRIX-4.*)
    5194             SHLIB_CFLAGS="-G 0"
    5195             SHLIB_SUFFIX=".a"
    5196             SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
    5197             SHLIB_LD_LIBS='${LIBS}'
    5198             DL_OBJS="tclLoadAout.o"
    5199             DL_LIBS=""
    5200             LDFLAGS="$LDFLAGS -Wl,-D,08000000"
    5201             CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
    5202             LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
    5203             if test "$GCC" != "yes" ; then
    5204                 CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
    5205             fi
    5206             ;;
    5207         UNIX_SV* | UnixWare-5*)
    5208             SHLIB_CFLAGS="-KPIC"
    5209             SHLIB_LD="cc -G"
    5210             SHLIB_LD_LIBS=""
    5211             SHLIB_SUFFIX=".so"
    5212             DL_OBJS="tclLoadDl.o"
    5213             DL_LIBS="-ldl"
    5214             # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
    5215             # that don't grok the -Bexport option.  Test that it does.
    5216             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
    5217 $as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
    5218 if ${tcl_cv_ld_Bexport+:} false; then :
    5219   $as_echo_n "(cached) " >&6
    5220 else
    5221 
    5222                 hold_ldflags=$LDFLAGS
    5223                 LDFLAGS="$LDFLAGS -Wl,-Bexport"
    5224                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    5225 /* end confdefs.h.  */
    5226 
    5227 int
    5228 main ()
    5229 {
    5230 int i;
    5231   ;
    5232   return 0;
    5233 }
    5234 _ACEOF
    5235 if ac_fn_c_try_link "$LINENO"; then :
    5236   tcl_cv_ld_Bexport=yes
    5237 else
    5238   tcl_cv_ld_Bexport=no
    5239 fi
    5240 rm -f core conftest.err conftest.$ac_objext \
    5241     conftest$ac_exeext conftest.$ac_ext
    5242                 LDFLAGS=$hold_ldflags
    5243 fi
    5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
    5245 $as_echo "$tcl_cv_ld_Bexport" >&6; }
    5246             if test $tcl_cv_ld_Bexport = yes; then
    5247                 LDFLAGS="$LDFLAGS -Wl,-Bexport"
    5248             fi
    5249             CC_SEARCH_FLAGS=""
    5250             LD_SEARCH_FLAGS=""
    5251             ;;
    5252     esac
    5253 
    5254     if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
    5255         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
    5256 $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
    5257     fi
    5258 
    5259 
    5260 
    5261 
    5262     # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
    5263     # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
    5264     # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
    5265     # to determine which of several header files defines the a.out file
    5266     # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
    5267     # support only a file format that is more or less version-7-compatible.
    5268     # In particular,
    5269     #   - a.out files must begin with `struct exec'.
    5270     #   - the N_TXTOFF on the `struct exec' must compute the seek address
    5271     #     of the text segment
    5272     #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
    5273     #     and a_entry fields.
    5274     # The following compilation should succeed if and only if either sys/exec.h
    5275     # or a.out.h is usable for the purpose.
    5276     #
    5277     # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
    5278     # `struct exec' includes a second header that contains information that
    5279     # duplicates the v7 fields that are needed.
    5280 
    5281     if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
    5282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
    5283 $as_echo_n "checking sys/exec.h... " >&6; }
    5284 if ${tcl_cv_sysexec_h+:} false; then :
    5285   $as_echo_n "(cached) " >&6
    5286 else
    5287 
    5288         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    5289 /* end confdefs.h.  */
    5290 #include <sys/exec.h>
    5291 int
    5292 main ()
    5293 {
    5294 
    5295             struct exec foo;
    5296             unsigned long seek;
    5297             int flag;
    5298 #if defined(__mips) || defined(mips)
    5299             seek = N_TXTOFF (foo.ex_f, foo.ex_o);
    5300 #else
    5301             seek = N_TXTOFF (foo);
    5302 #endif
    5303             flag = (foo.a_magic == OMAGIC);
    5304             return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
    5305 
    5306   ;
    5307   return 0;
    5308 }
    5309 _ACEOF
    5310 if ac_fn_c_try_compile "$LINENO"; then :
    5311   tcl_cv_sysexec_h=usable
    5312 else
    5313   tcl_cv_sysexec_h=unusable
    5314 fi
    5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    5316 fi
    5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
    5318 $as_echo "$tcl_cv_sysexec_h" >&6; }
    5319         if test $tcl_cv_sysexec_h = usable; then
    5320             $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
    5321 
    5322         else
    5323             { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
    5324 $as_echo_n "checking a.out.h... " >&6; }
    5325 if ${tcl_cv_aout_h+:} false; then :
    5326   $as_echo_n "(cached) " >&6
    5327 else
    5328 
    5329             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    5330 /* end confdefs.h.  */
    5331 #include <a.out.h>
    5332 int
    5333 main ()
    5334 {
    5335 
    5336                 struct exec foo;
    5337                 unsigned long seek;
    5338                 int flag;
    5339 #if defined(__mips) || defined(mips)
    5340                 seek = N_TXTOFF (foo.ex_f, foo.ex_o);
    5341 #else
    5342                 seek = N_TXTOFF (foo);
    5343 #endif
    5344                 flag = (foo.a_magic == OMAGIC);
    5345                 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
    5346 
    5347   ;
    5348   return 0;
    5349 }
    5350 _ACEOF
    5351 if ac_fn_c_try_compile "$LINENO"; then :
    5352   tcl_cv_aout_h=usable
    5353 else
    5354   tcl_cv_aout_h=unusable
    5355 fi
    5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    5357 fi
    5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
    5359 $as_echo "$tcl_cv_aout_h" >&6; }
    5360             if test $tcl_cv_aout_h = usable; then
    5361                 $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
    5362 
    5363             else
    5364                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
    5365 $as_echo_n "checking sys/exec_aout.h... " >&6; }
    5366 if ${tcl_cv_sysexecaout_h+:} false; then :
    5367   $as_echo_n "(cached) " >&6
    5368 else
    5369 
    5370                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    5371 /* end confdefs.h.  */
    5372 #include <sys/exec_aout.h>
    5373 int
    5374 main ()
    5375 {
    5376 
    5377                     struct exec foo;
    5378                     unsigned long seek;
    5379                     int flag;
    5380 #if defined(__mips) || defined(mips)
    5381                     seek = N_TXTOFF (foo.ex_f, foo.ex_o);
    5382 #else
    5383                     seek = N_TXTOFF (foo);
    5384 #endif
    5385                     flag = (foo.a_midmag == OMAGIC);
    5386                     return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
    5387 
    5388   ;
    5389   return 0;
    5390 }
    5391 _ACEOF
    5392 if ac_fn_c_try_compile "$LINENO"; then :
    5393   tcl_cv_sysexecaout_h=usable
    5394 else
    5395   tcl_cv_sysexecaout_h=unusable
    5396 fi
    5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    5398 fi
    5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
    5400 $as_echo "$tcl_cv_sysexecaout_h" >&6; }
    5401                 if test $tcl_cv_sysexecaout_h = usable; then
    5402                     $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
    5403 
    5404                 else
    5405                     DL_OBJS=""
    5406                 fi
    5407             fi
    5408         fi
    5409     fi
    5410 
    5411     # Step 5: disable dynamic loading if requested via a command-line switch.
    5412 
    5413     # Check whether --enable-load was given.
    5414 if test "${enable_load+set}" = set; then :
    5415   enableval=$enable_load; tcl_ok=$enableval
    5416 else
    5417   tcl_ok=yes
    5418 fi
    5419 
    5420     if test "$tcl_ok" = "no"; then
    5421         DL_OBJS=""
    5422     fi
    5423 
    5424     if test "x$DL_OBJS" != "x" ; then
    5425         BUILD_DLTEST="\$(DLTEST_TARGETS)"
    5426     else
    5427         echo "Can't figure out how to do dynamic loading or shared libraries"
    5428         echo "on this system."
    5429         SHLIB_CFLAGS=""
    5430         SHLIB_LD=""
    5431         SHLIB_SUFFIX=""
    5432         DL_OBJS="tclLoadNone.o"
    5433         DL_LIBS=""
    5434         LDFLAGS="$LDFLAGS_ORIG"
    5435         CC_SEARCH_FLAGS=""
    5436         LD_SEARCH_FLAGS=""
    5437         BUILD_DLTEST=""
    5438     fi
    5439 
    5440     # If we're running gcc, then change the C flags for compiling shared
    5441     # libraries to the right flags for gcc, instead of those for the
    5442     # standard manufacturer compiler.
    5443 
    5444     if test "$DL_OBJS" != "tclLoadNone.o" ; then
    5445         if test "$GCC" = "yes" ; then
    5446             case $system in
    5447                 AIX-*)
    5448                     ;;
    5449                 BSD/OS*)
    5450                     ;;
    5451                 IRIX*)
    5452                     ;;
    5453                 NetBSD-*|FreeBSD-*|OpenBSD-*)
    5454                     ;;
    5455                 Darwin-*)
    5456                     ;;
    5457                 RISCos-*)
    5458                     ;;
    5459                 SCO_SV-3.2*)
    5460                     ;;
    5461                 ULTRIX-4.*)
    5462                     ;;
    5463                 *)
    5464                     SHLIB_CFLAGS="-fPIC"
    5465                     ;;
    5466             esac
    5467         fi
    5468     fi
    5469 
    5470     if test "$SHARED_LIB_SUFFIX" = "" ; then
    5471         SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
    5472     fi
    5473     if test "$UNSHARED_LIB_SUFFIX" = "" ; then
    5474         UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
    5475     fi
    5476 
    5477     if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
    5478         LIB_SUFFIX=${SHARED_LIB_SUFFIX}
    5479         MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
    5480         INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
    5481     else
    5482         LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
    5483 
    5484         if test "$RANLIB" = "" ; then
    5485             MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
    5486             INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
    5487         else
    5488             MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
    5489             INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
    5490         fi
    5491 
    5492     fi
    5493 
    5494 
    5495     # Stub lib does not depend on shared/static configuration
    5496     if test "$RANLIB" = "" ; then
    5497         MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
    5498         INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
    5499     else
    5500         MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
    5501         INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
    5502     fi
    5503 
    5504 
    5505 
    5506 
    5507 
    5508 
    5509 
    5510 
    5511 
    5512 
    5513 
    5514 
    5515 
    5516 
    5517 
    5518 
    5519 
    5520 
    5521 
    5522 
    5523 
    5524 
    5525 
    5526 
    5527 
    5528 
    5529 
    5530 
    5531 
    5532 
    5533 
    5534 
    5535 
    5536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
    5537 $as_echo_n "checking how to build libraries... " >&6; }
    5538     # Check whether --enable-shared was given.
    5539 if test "${enable_shared+set}" = set; then :
    5540   enableval=$enable_shared; tcl_ok=$enableval
    5541 else
    5542   tcl_ok=yes
    5543 fi
    5544 
    5545 
    5546     if test "${enable_shared+set}" = set; then
    5547         enableval="$enable_shared"
    5548         tcl_ok=$enableval
    5549     else
    5550         tcl_ok=yes
    5551     fi
    5552 
    5553     if test "$tcl_ok" = "yes" ; then
    5554         { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
    5555 $as_echo "shared" >&6; }
    5556         SHARED_BUILD=1
    5557     else
    5558         { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
    5559 $as_echo "static" >&6; }
    5560         SHARED_BUILD=0
    5561         $as_echo "#define STATIC_BUILD 1" >>confdefs.h
    5562 
    5563     fi
    5564 
     3002#SC_CONFIG_CFLAGS
     3003#SC_ENABLE_SHARED
    55653004
    55663005gui_with_tcl=""
     
    62463685# values after options handling.
    62473686ac_log="
    6248 This file was extended by RapptureGUI $as_me 1.1, which was
     3687This file was extended by RapptureGUI $as_me 1.4, which was
    62493688generated by GNU Autoconf 2.69.  Invocation command line was
    62503689
     
    62993738ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    63003739ac_cs_version="\\
    6301 RapptureGUI config.status 1.1
     3740RapptureGUI config.status 1.4
    63023741configured by $0, generated by GNU Autoconf 2.69,
    63033742  with options \\"\$ac_cs_config\\"
Note: See TracChangeset for help on using the changeset viewer.