/[libtool]/libtool/libtool.m4
ViewVC logotype

Diff of /libtool/libtool.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.171 by gary, Sun Jun 24 17:55:52 2001 UTC revision 1.172 by gary, Sun Jun 24 20:13:04 2001 UTC
# Line 225  AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARA Line 225  AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARA
225  if test "X${PATH_SEPARATOR+set}" != Xset; then  if test "X${PATH_SEPARATOR+set}" != Xset; then
226    UNAME=${UNAME-`uname 2>/dev/null`}    UNAME=${UNAME-`uname 2>/dev/null`}
227    case X$UNAME in    case X$UNAME in
228      *-DOS) lt_cv_sys_path_separator=';' ;;      *-DOS) PATH_SEPARATOR=';' ;;
229      *)     lt_cv_sys_path_separator=':' ;;      *)     PATH_SEPARATOR=':' ;;
230    esac    esac
231  fi  fi
232  ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR  ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
# Line 545  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d Line 545  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
545    i=0    i=0
546    testring="ABCD"    testring="ABCD"
547    
548    # If test is not a shell built-in, we'll probably end up computing a    case $host_os in
549    # maximum length that is only half of the actual maximum length, but    msdosdjgpp*)
550    # we can't tell.      # On DJGPP, this test can blow up pretty badly due to problems in libc
551    while test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \      # (any single argument exceeding 2000 bytes causes a buffer overrun
552               = "XX$testring" &&      # during glob expansion).  Even if it were fixed, the result of this
553            new_result=`expr "X$testring" : ".*" 2>&1` &&      # check would be larger than it should be.
554            lt_cv_sys_max_cmd_len=$new_result &&      lt_cv_sys_max_cmd_len=12288;    # 12K is about right
555            test $i != 18 # 1 MB should be enough      ;;
556    do      
557      i=`expr $i + 1`    *)
558      testring=$testring$testring      # If test is not a shell built-in, we'll probably end up computing a
559    done      # maximum length that is only half of the actual maximum length, but
560    testring=      # we can't tell.
561    # add a significant safety factor because C++ compilers can tack on massive      while test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
562    # amounts of additional arguments before passing them to the linker.  1/4                 = "XX$testring" &&
563    # should be good.              new_result=`expr "X$testring" : ".*" 2>&1` &&
564    len=`expr $lt_cv_sys_max_cmd_len \/ 4`              lt_cv_sys_max_cmd_len=$new_result &&
565    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`              test $i != 18 # 1 MB should be enough
566        do
567          i=`expr $i + 1`
568          testring=$testring$testring
569        done
570        testring=
571        # add a significant safety factor because C++ compilers can tack on massive
572        # amounts of additional arguments before passing them to the linker.  1/4
573        # should be good.
574        len=`expr $lt_cv_sys_max_cmd_len \/ 4`
575        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`
576        ;;
577      esac
578  ])  ])
579  if test -n $lt_cv_sys_max_cmd_len ; then  if test -n $lt_cv_sys_max_cmd_len ; then
580    AC_MSG_RESULT($lt_cv_sys_max_cmd_len)    AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
# Line 1309  test "$dynamic_linker" = no && can_build Line 1321  test "$dynamic_linker" = no && can_build
1321  # _LT_AC_TAGCONFIG  # _LT_AC_TAGCONFIG
1322  # ----------------  # ----------------
1323  AC_DEFUN([_LT_AC_TAGCONFIG],  AC_DEFUN([_LT_AC_TAGCONFIG],
1324  [AC_ARG_WITH(tags,  [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
1325    AC_ARG_WITH(tags,
1326    [  --with-tags=TAGS        include additional configurations [CXX,GCJ]],    [  --with-tags=TAGS        include additional configurations [CXX,GCJ]],
1327    [tagnames="$withval"],    [tagnames="$withval"],
1328    [tagnames="CXX,GCJ"])    [tagnames="CXX,GCJ"])
# Line 1332  if test -f "$ltmain" && test -n "$tagnam Line 1345  if test -f "$ltmain" && test -n "$tagnam
1345    # Note that this assumes the entire list is on one line.    # Note that this assumes the entire list is on one line.
1346    available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`    available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1347    
1348    IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}:,"    IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
1349    for tagname in $tagnames; do    for tagname in $tagnames; do
1350      # Check whether tagname contains only valid characters      # Check whether tagname contains only valid characters
1351      [case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in]      [case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in]
# Line 1416  AC_DEFUN([AC_LIBTOOL_WIN32_DLL], Line 1429  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1429  # implement the --enable-shared flag  # implement the --enable-shared flag
1430  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1431  AC_DEFUN([AC_ENABLE_SHARED],  AC_DEFUN([AC_ENABLE_SHARED],
1432  [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl  [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
1433    define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1434  AC_ARG_ENABLE(shared,  AC_ARG_ENABLE(shared,
1435  changequote(<<, >>)dnl  changequote(<<, >>)dnl
1436  <<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],  <<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
# Line 1428  no) enable_shared=no ;; Line 1442  no) enable_shared=no ;;
1442  *)  *)
1443    enable_shared=no    enable_shared=no
1444    # Look at the argument we got.  We use all the common list separators.    # Look at the argument we got.  We use all the common list separators.
1445    IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}:,"    IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
1446    for pkg in $enableval; do    for pkg in $enableval; do
1447      if test "X$pkg" = "X$p"; then      if test "X$pkg" = "X$p"; then
1448        enable_shared=yes        enable_shared=yes
# Line 1455  AC_ENABLE_SHARED(no) Line 1469  AC_ENABLE_SHARED(no)
1469  # implement the --enable-static flag  # implement the --enable-static flag
1470  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1471  AC_DEFUN([AC_ENABLE_STATIC],  AC_DEFUN([AC_ENABLE_STATIC],
1472  [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl  [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
1473    define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1474  AC_ARG_ENABLE(static,  AC_ARG_ENABLE(static,
1475  changequote(<<, >>)dnl  changequote(<<, >>)dnl
1476  <<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],  <<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
# Line 1467  no) enable_static=no ;; Line 1482  no) enable_static=no ;;
1482  *)  *)
1483    enable_static=no    enable_static=no
1484    # Look at the argument we got.  We use all the common list separators.    # Look at the argument we got.  We use all the common list separators.
1485    IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}:,"    IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
1486    for pkg in $enableval; do    for pkg in $enableval; do
1487      if test "X$pkg" = "X$p"; then      if test "X$pkg" = "X$p"; then
1488        enable_static=yes        enable_static=yes
# Line 1494  AC_ENABLE_STATIC(no) Line 1509  AC_ENABLE_STATIC(no)
1509  # implement the --enable-fast-install flag  # implement the --enable-fast-install flag
1510  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1511  AC_DEFUN([AC_ENABLE_FAST_INSTALL],  AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1512  [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl  [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
1513    define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1514  AC_ARG_ENABLE(fast-install,  AC_ARG_ENABLE(fast-install,
1515  changequote(<<, >>)dnl  changequote(<<, >>)dnl
1516  <<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],  <<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
# Line 1506  no) enable_fast_install=no ;; Line 1522  no) enable_fast_install=no ;;
1522  *)  *)
1523    enable_fast_install=no    enable_fast_install=no
1524    # Look at the argument we got.  We use all the common list separators.    # Look at the argument we got.  We use all the common list separators.
1525    IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}:,"    IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
1526    for pkg in $enableval; do    for pkg in $enableval; do
1527      if test "X$pkg" = "X$p"; then      if test "X$pkg" = "X$p"; then
1528        enable_fast_install=yes        enable_fast_install=yes
# Line 1542  pic_mode=ifelse($#,1,$1,default) Line 1558  pic_mode=ifelse($#,1,$1,default)
1558  # -------------------  # -------------------
1559  # find a file program which can recognise shared library  # find a file program which can recognise shared library
1560  AC_DEFUN([AC_PATH_TOOL_PREFIX],  AC_DEFUN([AC_PATH_TOOL_PREFIX],
1561  [AC_MSG_CHECKING([for $1])  [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
1562    AC_MSG_CHECKING([for $1])
1563  AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,  AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
1564  [case $MAGIC_CMD in  [case $MAGIC_CMD in
1565    /*)  [\\/*] |  ?:[\\/]*)
1566    lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.    lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1567    ;;    ;;
1568    ?:/*)  *)
   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.  
   ;;  
   *)  
1569    lt_save_MAGIC_CMD="$MAGIC_CMD"    lt_save_MAGIC_CMD="$MAGIC_CMD"
1570    IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS=":"    IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}"
1571  dnl $ac_dummy forces splitting on constant user-supplied paths.  dnl $ac_dummy forces splitting on constant user-supplied paths.
1572  dnl POSIX.2 word splitting is done only on the output of word expansions,  dnl POSIX.2 word splitting is done only on the output of word expansions,
1573  dnl not every word.  This closes a longstanding sh security hole.  dnl not every word.  This closes a longstanding sh security hole.
# Line 1606  fi Line 1620  fi
1620  # -------------  # -------------
1621  # find a file program which can recognise a shared library  # find a file program which can recognise a shared library
1622  AC_DEFUN([AC_PATH_MAGIC],  AC_DEFUN([AC_PATH_MAGIC],
1623  [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl  [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
1624  AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)  AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
1625    AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin${PATH_SEPARATOR-:}$PATH)
1626  if test -z "$lt_cv_path_MAGIC_CMD"; then  if test -z "$lt_cv_path_MAGIC_CMD"; then
1627    if test -n "$ac_tool_prefix"; then    if test -n "$ac_tool_prefix"; then
1628      AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)      AC_PATH_TOOL_PREFIX(file, /usr/bin${PATH_SEPARATOR-:}$PATH)
1629    else    else
1630      MAGIC_CMD=:      MAGIC_CMD=:
1631    fi    fi
# Line 1628  AC_DEFUN([AC_PROG_LD], Line 1643  AC_DEFUN([AC_PROG_LD],
1643  AC_REQUIRE([AC_PROG_CC])dnl  AC_REQUIRE([AC_PROG_CC])dnl
1644  AC_REQUIRE([AC_CANONICAL_HOST])dnl  AC_REQUIRE([AC_CANONICAL_HOST])dnl
1645  AC_REQUIRE([AC_CANONICAL_BUILD])dnl  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1646    AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
1647  ac_prog=ld  ac_prog=ld
1648  if test "$GCC" = yes; then  if test "$GCC" = yes; then
1649    # Check if gcc -print-prog-name=ld gives a path.    # Check if gcc -print-prog-name=ld gives a path.
# Line 1641  if test "$GCC" = yes; then Line 1657  if test "$GCC" = yes; then
1657    esac    esac
1658    case $ac_prog in    case $ac_prog in
1659      # Accept absolute paths.      # Accept absolute paths.
1660      [[\\/]* | [A-Za-z]:[\\/]*)]      [[\\/]]* | ?:[[\\/]]*)
1661        [re_direlt='/[^/][^/]*/\.\./']        [re_direlt='/[^/][^/]*/\.\./']
1662        # Canonicalize the path of ld        # Canonicalize the path of ld
1663        ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`        ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
# Line 1907  test -z "$deplibs_check_method" && depli Line 1923  test -z "$deplibs_check_method" && depli
1923  # find the path to a BSD-compatible name lister  # find the path to a BSD-compatible name lister
1924  AC_DEFUN([AC_PROG_NM],  AC_DEFUN([AC_PROG_NM],
1925  [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,  [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
1926  [if test -n "$NM"; then  [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
1927    if test -n "$NM"; then
1928    # Let the user override the test.    # Let the user override the test.
1929    lt_cv_path_NM="$NM"    lt_cv_path_NM="$NM"
1930  else  else
# Line 3585  EOF Line 3602  EOF
3602            lt_save_CFLAGS="$CFLAGS"            lt_save_CFLAGS="$CFLAGS"
3603            LIBS="conftstm.$ac_objext"            LIBS="conftstm.$ac_objext"
3604            CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"            CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3605            if AC_TRY_EVAL(ac_link) && test -s conftest; then            if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3606              pipe_works=yes              pipe_works=yes
3607            fi            fi
3608            LIBS="$lt_save_LIBS"            LIBS="$lt_save_LIBS"
# Line 3670  if test "$GCC" = yes; then Line 3687  if test "$GCC" = yes; then
3687      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3688      ;;      ;;
3689    
3690    *djgpp*)    msdosdjgpp*)
3691      # DJGPP does not support shared libraries at all      # Just because we use GCC doesn't mean we suddenly get shared libraries
3692      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=      # on systems that don't support them.
3693        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3694        enable_shared=no
3695      ;;      ;;
3696    
3697    sysv4*MP*)    sysv4*MP*)

Legend:
Removed from v.1.171  
changed lines
  Added in v.1.172

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26