⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 libtool.ac

📁 mysql-5.0.33源码包
💻 AC
📖 第 1 页 / 共 5 页
字号:
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"  compiler_rtti_exceptions=no  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl    # The compiler can only warn and ignore the option if not recognized    # So say no if there are warnings    if test -s conftest.err; then      compiler_rtti_exceptions=no    else      compiler_rtti_exceptions=yes    fi  ])  CFLAGS="$save_CFLAGS"  AC_MSG_RESULT([$compiler_rtti_exceptions])  if test "$compiler_rtti_exceptions" = "yes"; then    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'  else    no_builtin_flag=' -fno-builtin'  fifi#### END FIXME## FIXME: this should be a separate macro### See if the linker supports building shared libraries.AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])allow_undefined_flag=no_undefined_flag=need_lib_prefix=unknownneed_version=unknown# when you set need_version to no, make sure it does not cause -set_version# flags to be left without argumentsarchive_cmds=archive_expsym_cmds=old_archive_from_new_cmds=old_archive_from_expsyms_cmds=export_dynamic_flag_spec=whole_archive_flag_spec=thread_safe_flag_spec=hardcode_into_libs=nohardcode_libdir_flag_spec=hardcode_libdir_separator=hardcode_direct=nohardcode_minus_L=nohardcode_shlibpath_var=unsupportedrunpath_var=link_all_deplibs=unknownalways_export_symbols=noexport_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'# include_expsyms should be a list of space-separated symbols to be *always*# included in the symbol listinclude_expsyms=# exclude_expsyms can be an egrep regular expression of symbols to exclude# it will be wrapped by ` (' and `)$', so one must not match beginning or# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',# as well as any symbol that contains `d'.exclude_expsyms="_GLOBAL_OFFSET_TABLE_"# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out# platforms (ab)use it in PIC code, but their linkers get confused if# the symbol is explicitly referenced.  Since portable code cannot# rely on this symbol name, it's probably fine to never include it in# preloaded symbol tables.extract_expsyms_cmds=case $host_os incygwin* | mingw* | pw32*)  # FIXME: the MSVC++ port hasn't been tested in a loooong time  # When not using gcc, we currently assume that we are using  # Microsoft Visual C++.  if test "$GCC" != yes; then    with_gnu_ld=no  fi  ;;openbsd*)  with_gnu_ld=no  ;;esacld_shlibs=yesif test "$with_gnu_ld" = yes; then  # If archive_cmds runs LD, not CC, wlarc should be empty  wlarc='${wl}'  # See if GNU ld supports shared libraries.  case $host_os in  aix3* | aix4* | aix5*)    # On AIX, the GNU linker is very broken    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.    ld_shlibs=no    cat <<EOF 1>&2*** Warning: the GNU linker, at least up to release 2.9.1, is reported*** to be unable to reliably create shared libraries on AIX.*** Therefore, libtool is disabling shared libraries support.  If you*** really care for shared libraries, you may want to modify your PATH*** so that a non-GNU linker is found, and then restart.EOF    ;;  amigaos*)    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'    hardcode_libdir_flag_spec='-L$libdir'    hardcode_minus_L=yes    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports    # that the semantics of dynamic libraries on AmigaOS, at least up    # to version 4, is to share data among multiple programs linked    # with the same dynamic library.  Since this doesn't match the    # behavior of shared libraries on other platforms, we can use    # them.    ld_shlibs=no    ;;  beos*)    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then      allow_undefined_flag=unsupported      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc      # support --undefined.  This deserves some investigation.  FIXME      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'    else      ld_shlibs=no    fi    ;;  cygwin* | mingw* | pw32*)    # hardcode_libdir_flag_spec is actually meaningless, as there is    # no search path for DLLs.    hardcode_libdir_flag_spec='-L$libdir'    allow_undefined_flag=unsupported    always_export_symbols=yes    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~      test -f $output_objdir/impgen.exe || (cd $output_objdir && \      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \      else $CC -o impgen impgen.c ; fi)~      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'    # cygwin and mingw dlls have different entry points and sets of symbols    # to exclude.    # FIXME: what about values for MSVC?    dll_entry=__cygwin_dll_entry@12    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~    case $host_os in    mingw*)      # mingw values      dll_entry=_DllMainCRTStartup@12      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~      ;;    esac    # mingw and cygwin differ, and it's simplest to just exclude the union    # of the two symbol sets.    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12    # recent cygwin and mingw systems supply a stub DllMain which the user    # can override, but on older systems we have to supply one (in ltdll.c)    if test "x$lt_cv_need_dllmain" = "xyes"; then      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'    else      ltdll_obj=      ltdll_cmds=    fi    # Extract the symbol export list from an `--export-all' def file,    # then regenerate the def file from the symbol export list, so that    # the compiled dll only exports the symbol export list.    # Be careful not to strip the DATA tag left be newer dlltools.    export_symbols_cmds="$ltdll_cmds"'      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~      sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'    # If the export-symbols file already is a .def file (1st line    # is EXPORTS), use it as is.    # If DATA tags from a recent dlltool are present, honour them!    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then	cp $export_symbols $output_objdir/$soname-def;      else	echo EXPORTS > $output_objdir/$soname-def;	_lt_hint=1;	cat $export_symbols | while read symbol; do	 set dummy \$symbol;	 case \[$]# in	   2) echo "   \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;	   *) echo "     \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;	 esac;	 _lt_hint=`expr 1 + \$_lt_hint`;	done;      fi~      '"$ltdll_cmds"'      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'    ;;  netbsd*)    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'      wlarc=    else      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'    fi    ;;  solaris* | sysv5*)    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then      ld_shlibs=no      cat <<EOF 1>&2*** Warning: The releases 2.8.* of the GNU linker cannot reliably*** create shared libraries on Solaris systems.  Therefore, libtool*** is disabling shared libraries support.  We urge you to upgrade GNU*** binutils to release 2.9.1 or newer.  Another option is to modify*** your PATH or compiler configuration so that the native linker is*** used, and then restart.EOF    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'    else      ld_shlibs=no    fi    ;;  sunos4*)    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'    wlarc=    hardcode_direct=yes    hardcode_shlibpath_var=no    ;;  *)    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'    else      ld_shlibs=no    fi    ;;  esac  if test "$ld_shlibs" = yes; then    runpath_var=LD_RUN_PATH    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'    export_dynamic_flag_spec='${wl}--export-dynamic'    case $host_os in    cygwin* | mingw* | pw32*)      # dlltool doesn't understand --whole-archive et. al.      whole_archive_flag_spec=      ;;    *)      # ancient GNU ld didn't support --whole-archive et. al.      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'      else	whole_archive_flag_spec=      fi      ;;    esac  fielse  # PORTME fill in a description of your system's linker (not GNU ld)  case $host_os in  aix3*)    allow_undefined_flag=unsupported    always_export_symbols=yes    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'    # Note: this linker hardcodes the directories in LIBPATH if there    # are no directories specified by -L.    hardcode_minus_L=yes    if test "$GCC" = yes && test -z "$link_static_flag"; then      # Neither direct hardcoding nor static linking is supported with a      # broken collect2.      hardcode_direct=unsupported    fi    ;;  aix4* | aix5*)    if test "$host_cpu" = ia64; then      # On IA64, the linker does run time linking by default, so we don't      # have to do anything special.      aix_use_runtimelinking=no      exp_sym_flag='-Bexport'      no_entry_flag=""    else      aix_use_runtimelinking=no      # Test if we are trying to use run time linking or normal      # AIX style linking. If -brtl is somewhere in LDFLAGS, we      # need to do runtime linking.      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)	for ld_flag in $LDFLAGS; do	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then	    aix_use_runtimelinking=yes	    break	  fi	done      esac      exp_sym_flag='-bexport'      no_entry_flag='-bnoentry'    fi    # When large executables or shared objects are built, AIX ld can    # have problems creating the table of contents.  If linking a library    # or program results in "error TOC overflow" add -mminimal-toc to    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.    hardcode_direct=yes    archive_cmds=''    hardcode_libdir_separator=':'    #### Local change for Sleepycat's Berkeley DB [#5779]:    # Added $aix_export variable to control use of exports file.    # For non-gcc, we don't use exports files, and rather trust    # the binder's -qmkshrobj option to export all the mangled    # symbols we need for C++ and java.    aix_export="\${wl}$exp_sym_flag:\$export_symbols"    if test "$GCC" = yes; then      case $host_os in aix4.[[012]]|aix4.[[012]].*)	collect2name=`${CC} -print-prog-name=collect2`	if test -f "$collect2name" && \	  strings "$collect2name" | grep resolve_lib_name >/dev/null	then	  # We have reworked collect2	  hardcode_direct=yes	else	  # We have old collect2	  hardcode_direct=unsupported	  # It fails to find uninstalled libraries when the uninstalled	  # path is not listed in the libpath.  Setting hardcode_minus_L	  # to unsupported forces relinking	  hardcode_minus_L=yes	  hardcode_libdir_flag_spec='-L$libdir'	  hardcode_libdir_separator=	fi      esac      shared_flag='-shared'    else      # not using gcc      if test "$host_cpu" = ia64; then	shared_flag='${wl}-G'      else	if test "$aix_use_runtimelinking" = yes; then	  shared_flag='${wl}-G'	else	  shared_flag='${wl}-bM:SRE'	fi      fi      # Test for -qmkshrobj and use it if it's available.      # It's superior for determining exportable symbols,      # especially for C++ or JNI libraries, which have      # mangled names.      #      AC_LANG_CONFTEST(void f(){})      if AC_TRY_EVAL(CC -c conftest.c) && AC_TRY_EVAL(CC -o conftest conftest.$ac_objext -qmkshrobj -lC_r); then        lt_cv_aix_mkshrobj=yes      else        lt_cv_aix_mkshrobj=no      fi      if test "$lt_cv_aix_mkshrobj" = yes; then        aix_export="-qmkshrobj"      fi    fi    # It seems that -bexpall can do strange things, so it is better to    # generate a list of symbols to export.    always_export_symbols=yes    if test "$aix_use_runtimelinking" = yes; then      # Warning - without using the other runtime loading flags (-brtl),

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -