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

Diff of /libtool/libtool.m4

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

revision 1.179 by gary, Wed Jun 27 17:56:09 2001 UTC revision 1.180 by gary, Thu Jun 28 22:02:05 2001 UTC
# Line 420  case $host in Line 420  case $host in
420    SAVE_CFLAGS="$CFLAGS"    SAVE_CFLAGS="$CFLAGS"
421    CFLAGS="$CFLAGS -belf"    CFLAGS="$CFLAGS -belf"
422    AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,    AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
423      [AC_LANG_SAVE      [AC_LANG_PUSH(C)
      AC_LANG_C  
424       AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])       AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
425       AC_LANG_RESTORE])       AC_LANG_POP])
426    if test x"$lt_cv_cc_needs_belf" != x"yes"; then    if test x"$lt_cv_cc_needs_belf" != x"yes"; then
427      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
428      CFLAGS="$SAVE_CFLAGS"      CFLAGS="$SAVE_CFLAGS"
# Line 482  AC_DEFUN(AC_LIBTOOL_COMPILER_OPTION, Line 481  AC_DEFUN(AC_LIBTOOL_COMPILER_OPTION,
481       # So say no if there are warnings       # So say no if there are warnings
482       if test -s conftest.err; then       if test -s conftest.err; then
483         # Append any errors to the config.log.         # Append any errors to the config.log.
484         cat conftest.err 1>&AC_FD_CC         cat conftest.err 1>&AS_MESSAGE_LOG_FD()
485       else       else
486         $2=yes         $2=yes
487       fi       fi
# Line 514  AC_DEFUN(AC_LIBTOOL_LINKER_OPTION, Line 513  AC_DEFUN(AC_LIBTOOL_LINKER_OPTION,
513       # So say no if there are warnings       # So say no if there are warnings
514       if test -s conftest.err; then       if test -s conftest.err; then
515         # Append any errors to the config.log.         # Append any errors to the config.log.
516         cat conftest.err 1>&AC_FD_CC         cat conftest.err 1>&AS_MESSAGE_LOG_FD()
517       else       else
518         $2=yes         $2=yes
519       fi       fi
# Line 798  AC_CACHE_CHECK([if $compiler supports -c Line 797  AC_CACHE_CHECK([if $compiler supports -c
797       # So say no if there are warnings       # So say no if there are warnings
798       if test -s out/conftest.err; then       if test -s out/conftest.err; then
799         # Append any errors to the config.log.         # Append any errors to the config.log.
800         cat out/conftest.err 1>&AC_FD_CC         cat out/conftest.err 1>&AS_MESSAGE_LOG_FD()
801       else       else
802         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
803       fi       fi
# Line 833  if test "$_LT_AC_TAGVAR(lt_cv_prog_compi Line 832  if test "$_LT_AC_TAGVAR(lt_cv_prog_compi
832    ln conftest.a conftest.b 2>/dev/null && hard_links=no    ln conftest.a conftest.b 2>/dev/null && hard_links=no
833    AC_MSG_RESULT([$hard_links])    AC_MSG_RESULT([$hard_links])
834    if test "$hard_links" = no; then    if test "$hard_links" = no; then
835      AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])      AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
836      need_locks=warn      need_locks=warn
837    fi    fi
838  else  else
# Line 1329  AC_ARG_WITH(tags, Line 1328  AC_ARG_WITH(tags,
1328    
1329  if test -f "$ltmain" && test -n "$tagnames"; then  if test -f "$ltmain" && test -n "$tagnames"; then
1330    if test ! -f "${ofile}"; then    if test ! -f "${ofile}"; then
1331      AC_MSG_WARN([output file \`$ofile' does not exist])      AC_MSG_WARN([output file `$ofile' does not exist])
1332    fi    fi
1333    
1334    if test -z "$LTCC"; then    if test -z "$LTCC"; then
1335      eval "`$SHELL ${ofile} --config | grep '^LTCC='`"      eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1336      if test -z "$LTCC"; then      if test -z "$LTCC"; then
1337        AC_MSG_WARN([output file \`$ofile' does not look like a libtool script])        AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1338      else      else
1339        AC_MSG_WARN([using \`LTCC=$LTCC', extracted from \`$ofile'])        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1340      fi      fi
1341    fi    fi
1342    
# Line 1627  fi Line 1626  fi
1626  # find a file program which can recognise a shared library  # find a file program which can recognise a shared library
1627  AC_DEFUN([AC_PATH_MAGIC],  AC_DEFUN([AC_PATH_MAGIC],
1628  [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl  [AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
 AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl  
1629  AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin${PATH_SEPARATOR-:}$PATH)  AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin${PATH_SEPARATOR-:}$PATH)
1630  if test -z "$lt_cv_path_MAGIC_CMD"; then  if test -z "$lt_cv_path_MAGIC_CMD"; then
1631    if test -n "$ac_tool_prefix"; then    if test -n "$ac_tool_prefix"; then
# Line 2094  AC_DEFUN([_LT_AC_LANG_GCJ], Line 2092  AC_DEFUN([_LT_AC_LANG_GCJ],
2092  AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])  AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2093  AC_DEFUN([_LT_AC_LANG_C_CONFIG],  AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2094  [lt_save_CC="$CC"  [lt_save_CC="$CC"
2095  AC_LANG_SAVE  AC_LANG_PUSH(C)
 AC_LANG_C  
2096    
2097  # Source file extension for C test sources.  # Source file extension for C test sources.
2098  ac_ext=c  ac_ext=c
# Line 2124  if test "$GCC" = no; then Line 2121  if test "$GCC" = no; then
2121    esac    esac
2122  fi  fi
2123  if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then  if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2124    AC_MSG_WARN([\`$CC' requires \`$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])    AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2125    if echo "$old_CC $old_CFLAGS " | [egrep -e "[         ]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]"] >/dev/null; then :    if echo "$old_CC $old_CFLAGS " | [egrep -e "[         ]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]"] >/dev/null; then :
2126    else    else
2127      AC_MSG_WARN([add \`$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])      AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2128      _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no      _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2129    fi    fi
2130  fi  fi
# Line 2163  AC_MSG_RESULT([$can_build_shared]) Line 2160  AC_MSG_RESULT([$can_build_shared])
2160    
2161  AC_LIBTOOL_CONFIG($1)  AC_LIBTOOL_CONFIG($1)
2162    
2163  AC_LANG_RESTORE  AC_LANG_POP
2164  CC="$lt_save_CC"  CC="$lt_save_CC"
2165  ])# AC_LIBTOOL_LANG_C_CONFIG  ])# AC_LIBTOOL_LANG_C_CONFIG
2166    
# Line 2175  CC="$lt_save_CC" Line 2172  CC="$lt_save_CC"
2172  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2173  AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])  AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2174  AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],  AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2175  [AC_LANG_SAVE  [AC_LANG_PUSH(C++)
 AC_LANG_CPLUSPLUS  
2176  AC_REQUIRE([AC_PROG_CXX])  AC_REQUIRE([AC_PROG_CXX])
2177  AC_REQUIRE([AC_PROG_CXXCPP])  AC_REQUIRE([AC_PROG_CXXCPP])
2178    
# Line 2945  AC_MSG_RESULT([$can_build_shared]) Line 2941  AC_MSG_RESULT([$can_build_shared])
2941    
2942  AC_LIBTOOL_CONFIG($1)  AC_LIBTOOL_CONFIG($1)
2943    
2944  AC_LANG_RESTORE  AC_LANG_POP
2945  CC="$lt_save_CC"  CC="$lt_save_CC"
2946  ])# AC_LIBTOOL_LANG_CXX_CONFIG  ])# AC_LIBTOOL_LANG_CXX_CONFIG
2947    
# Line 3089  ifelse([$1], [], Line 3085  ifelse([$1], [],
3085    [cfgfile="${ofile}T"    [cfgfile="${ofile}T"
3086    trap "$rm \"$cfgfile\"; exit 1" 1 2 15    trap "$rm \"$cfgfile\"; exit 1" 1 2 15
3087    $rm -f "$cfgfile"    $rm -f "$cfgfile"
3088    echo creating $ofile],    AC_MSG_NOTICE([creating $ofile])],
3089    [cfgfile="$ofile"])    [cfgfile="$ofile"])
3090    
3091    cat <<__EOF__ >> "$cfgfile"    cat <<__EOF__ >> "$cfgfile"
# Line 3618  EOF Line 3614  EOF
3614            LIBS="$lt_save_LIBS"            LIBS="$lt_save_LIBS"
3615            CFLAGS="$lt_save_CFLAGS"            CFLAGS="$lt_save_CFLAGS"
3616          else          else
3617            echo "cannot find nm_test_func in $nlist" >&AC_FD_CC            echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD()
3618          fi          fi
3619        else        else
3620          echo "cannot find nm_test_var in $nlist" >&AC_FD_CC          echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD()
3621        fi        fi
3622      else      else
3623        echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC        echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD()
3624      fi      fi
3625    else    else
3626      echo "$progname: failed program was:" >&AC_FD_CC      echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD()
3627      cat conftest.$ac_ext >&5      cat conftest.$ac_ext >&5
3628    fi    fi
3629    rm -f conftest* conftst*    rm -f conftest* conftst*

Legend:
Removed from v.1.179  
changed lines
  Added in v.1.180

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