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

Diff of /libtool/libtool.m4

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

revision 1.185 by gary, Sat Jun 30 02:39:18 2001 UTC revision 1.186 by gary, Fri Jul 6 01:08:58 2001 UTC
# Line 473  need_locks="$enable_libtool_lock" Line 473  need_locks="$enable_libtool_lock"
473  #               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])  #               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
474  # ----------------------------------------------------------------  # ----------------------------------------------------------------
475  # Check whether the given compiler option works  # Check whether the given compiler option works
476  AC_DEFUN(AC_LIBTOOL_COMPILER_OPTION,  AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
477  [AC_CACHE_CHECK([$1], [$2],  [AC_CACHE_CHECK([$1], [$2],
478    [$2=no    [$2=no
479    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
# Line 506  fi Line 506  fi
506  #                          [ACTION-SUCCESS], [ACTION-FAILURE])  #                          [ACTION-SUCCESS], [ACTION-FAILURE])
507  # ------------------------------------------------------------  # ------------------------------------------------------------
508  # Check whether the given compiler option works  # Check whether the given compiler option works
509  AC_DEFUN(AC_LIBTOOL_LINKER_OPTION,  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
510  [AC_CACHE_CHECK([$1], [$2],  [AC_CACHE_CHECK([$1], [$2],
511    [$2=no    [$2=no
512     save_LDFLAGS="$LDFLAGS"     save_LDFLAGS="$LDFLAGS"
# Line 584  fi Line 584  fi
584    
585  # _LT_AC_CHECK_DLFCN  # _LT_AC_CHECK_DLFCN
586  # --------------------  # --------------------
587  AC_DEFUN(_LT_AC_CHECK_DLFCN,  AC_DEFUN([_LT_AC_CHECK_DLFCN],
588  [AC_CHECK_HEADERS(dlfcn.h)dnl  [AC_CHECK_HEADERS(dlfcn.h)dnl
589  ])# _LT_AC_CHECK_DLFCN  ])# _LT_AC_CHECK_DLFCN
590    
# Line 592  AC_DEFUN(_LT_AC_CHECK_DLFCN, Line 592  AC_DEFUN(_LT_AC_CHECK_DLFCN,
592  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
593  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
594  # ------------------------------------------------------------------  # ------------------------------------------------------------------
595  AC_DEFUN(_LT_AC_TRY_DLOPEN_SELF,  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
596  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
597  if test "$cross_compiling" = yes; then :  if test "$cross_compiling" = yes; then :
598    [$4]    [$4]
# Line 680  rm -fr conftest* Line 680  rm -fr conftest*
680    
681  # AC_LIBTOOL_DLOPEN_SELF  # AC_LIBTOOL_DLOPEN_SELF
682  # -------------------  # -------------------
683  AC_DEFUN(AC_LIBTOOL_DLOPEN_SELF,  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
684  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
685  if test "x$enable_dlopen" != xyes; then  if test "x$enable_dlopen" != xyes; then
686    enable_dlopen=unknown    enable_dlopen=unknown
# Line 1399  fi Line 1399  fi
1399  ])# _LT_AC_TAGCONFIG  ])# _LT_AC_TAGCONFIG
1400    
1401    
 # _LT_AC_LTCONFIG_HACK([TAGNAME])  
 # -------------------------------  
 # If TAGNAME is not passed, then create an initial libtool configuration  
 # for the default language.  Otherwise make the configuration named by  
 # TAGNAME.  
 AC_DEFUN([_LT_AC_LTCONFIG_HACK],  
 [  
 ## CAVEAT EMPTOR:  
 ## There is no encapsulation within the following macros, do not change  
 ## the running order or otherwise move them around unless you know exactly  
 ## what you are doing...  
 ])# _LT_AC_LTCONFIG_HACK  
   
   
1402  # AC_LIBTOOL_DLOPEN  # AC_LIBTOOL_DLOPEN
1403  # -----------------  # -----------------
1404  # enable checks for dlopen support  # enable checks for dlopen support
# Line 2158  AC_LIBTOOL_SYS_LIB_STRIP Line 2144  AC_LIBTOOL_SYS_LIB_STRIP
2144  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2145  AC_LIBTOOL_DLOPEN_SELF($1)  AC_LIBTOOL_DLOPEN_SELF($1)
2146    
2147  # Report the final consequences.  # Report which librarie types wil actually be built
2148  AC_MSG_CHECKING([if libtool supports shared libraries])  AC_MSG_CHECKING([if libtool supports shared libraries])
2149  AC_MSG_RESULT([$can_build_shared])  AC_MSG_RESULT([$can_build_shared])
2150    
2151    AC_MSG_CHECKING([whether to build shared libraries])
2152    test "$can_build_shared" = "no" && enable_shared=no
2153    
2154    # On AIX, shared libraries and static libraries use the same namespace, and
2155    # are all built from PIC.
2156    case "$host_os" in
2157    aix3*)
2158      test "$enable_shared" = yes && enable_static=no
2159      if test -n "$RANLIB"; then
2160        archive_cmds="$archive_cmds~\$RANLIB \$lib"
2161        postinstall_cmds='$RANLIB $lib'
2162      fi
2163      ;;
2164    
2165    aix4*)
2166      test "$enable_shared" = yes && enable_static=no
2167      ;;
2168    esac
2169    AC_MSG_RESULT([$enable_shared])
2170    
2171    AC_MSG_CHECKING([whether to build static libraries])
2172    # Make sure either enable_shared or enable_static is yes.
2173    test "$enable_shared" = yes || enable_static=yes
2174    AC_MSG_RESULT([$enable_static])
2175    
2176  AC_LIBTOOL_CONFIG($1)  AC_LIBTOOL_CONFIG($1)
2177    
2178  AC_LANG_POP  AC_LANG_POP
# Line 2939  AC_LIBTOOL_SYS_LIB_STRIP Line 2950  AC_LIBTOOL_SYS_LIB_STRIP
2950  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2951  AC_LIBTOOL_DLOPEN_SELF($1)  AC_LIBTOOL_DLOPEN_SELF($1)
2952    
 # Report the final consequences.  
 AC_MSG_CHECKING([if libtool supports shared libraries])  
 AC_MSG_RESULT([$can_build_shared])  
   
2953  AC_LIBTOOL_CONFIG($1)  AC_LIBTOOL_CONFIG($1)
2954    
2955  AC_LANG_POP  AC_LANG_POP
# Line 3147  SHELL=$lt_SHELL Line 3154  SHELL=$lt_SHELL
3154  # Whether or not to build shared libraries.  # Whether or not to build shared libraries.
3155  build_libtool_libs=$enable_shared  build_libtool_libs=$enable_shared
3156    
 # Whether or not to add -lc for building shared libraries.  
 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)  
   
3157  # Whether or not to build static libraries.  # Whether or not to build static libraries.
3158  build_old_libs=$enable_static  build_old_libs=$enable_static
3159    
3160    # Whether or not to add -lc for building shared libraries.
3161    build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
3162    
3163  # Whether or not to optimize for fast installation.  # Whether or not to optimize for fast installation.
3164  fast_install=$enable_fast_install  fast_install=$enable_fast_install
3165    

Legend:
Removed from v.1.185  
changed lines
  Added in v.1.186

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