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

📄 ltmain.sh

📁 网络MPEG4IP流媒体开发源代码
💻 SH
📖 第 1 页 / 共 5 页
字号:
	      case $libdir in	      -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`		   case " $xrpath " in		   *" $temp_xrpath "*) ;;		   *) xrpath="$xrpath $temp_xrpath";;		   esac;;	      *) temp_deplibs="$temp_deplibs $libdir";;	      esac	    done	    dependency_libs="$temp_deplibs"	  fi	  newlib_search_path="$newlib_search_path $absdir"	  # Link against this library	  test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"	  # ... and its dependency_libs	  tmp_libs=	  for deplib in $dependency_libs; do	    newdependency_libs="$deplib $newdependency_libs"	    if test "X$duplicate_deps" = "Xyes" ; then	      case "$tmp_libs " in	      *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;	      esac	    fi	    tmp_libs="$tmp_libs $deplib"	  done	  if test $link_all_deplibs != no; then	    # Add the search paths of all dependency libraries	    for deplib in $dependency_libs; do	      case $deplib in	      -L*) path="$deplib" ;;	      *.la)		dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`		test "X$dir" = "X$deplib" && dir="."		# We need an absolute path.		case $dir in		[\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;		*)		  absdir=`cd "$dir" && pwd`		  if test -z "$absdir"; then		    $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2		    absdir="$dir"		  fi		  ;;		esac		if grep "^installed=no" $deplib > /dev/null; then		  path="-L$absdir/$objdir"		else		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`		  if test -z "$libdir"; then		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2		    exit 1		  fi		  if test "$absdir" != "$libdir"; then		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2		  fi		  path="-L$absdir"		fi		;;	      *) continue ;;	      esac	      case " $deplibs " in	      *" $path "*) ;;	      *) deplibs="$deplibs $path" ;;	      esac	    done	  fi # link_all_deplibs != no	fi # linkmode = lib      done # for deplib in $libs      if test $pass = dlpreopen; then	# Link the dlpreopened libraries before other libraries	for deplib in $save_deplibs; do	  deplibs="$deplib $deplibs"	done      fi      if test $pass != dlopen; then	test $pass != scan && dependency_libs="$newdependency_libs"	if test $pass != conv; then	  # Make sure lib_search_path contains only unique directories.	  lib_search_path=	  for dir in $newlib_search_path; do	    case "$lib_search_path " in	    *" $dir "*) ;;	    *) lib_search_path="$lib_search_path $dir" ;;	    esac	  done	  newlib_search_path=	fi	if test "$linkmode,$pass" != "prog,link"; then	  vars="deplibs"	else	  vars="compile_deplibs finalize_deplibs"	fi	for var in $vars dependency_libs; do	  # Add libraries to $var in reverse order	  eval tmp_libs=\"\$$var\"	  new_libs=	  for deplib in $tmp_libs; do	    case $deplib in	    -L*) new_libs="$deplib $new_libs" ;;	    *)	      case " $specialdeplibs " in	      *" $deplib "*) new_libs="$deplib $new_libs" ;;	      *)		case " $new_libs " in		*" $deplib "*) ;;		*) new_libs="$deplib $new_libs" ;;		esac		;;	      esac	      ;;	    esac	  done	  tmp_libs=	  for deplib in $new_libs; do	    case $deplib in	    -L*)	      case " $tmp_libs " in	      *" $deplib "*) ;;	      *) tmp_libs="$tmp_libs $deplib" ;;	      esac	      ;;	    *) tmp_libs="$tmp_libs $deplib" ;;	    esac	  done	  eval $var=\"$tmp_libs\"	done # for var      fi      if test "$pass" = "conv" &&       { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then	libs="$deplibs" # reset libs	deplibs=      fi    done # for pass    if test $linkmode = prog; then      dlfiles="$newdlfiles"      dlprefiles="$newdlprefiles"    fi    case $linkmode in    oldlib)      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then	$echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2      fi      if test -n "$rpath"; then	$echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2      fi      if test -n "$xrpath"; then	$echo "$modename: warning: \`-R' is ignored for archives" 1>&2      fi      if test -n "$vinfo"; then	$echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2      fi      if test -n "$release"; then	$echo "$modename: warning: \`-release' is ignored for archives" 1>&2      fi      if test -n "$export_symbols" || test -n "$export_symbols_regex"; then	$echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2      fi      # Now set the variables for building old libraries.      build_libtool_libs=no      oldlibs="$output"      objs="$objs$old_deplibs"      ;;    lib)      # Make sure we only generate libraries of the form `libNAME.la'.      case $outputname in      lib*)	name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`	eval libname=\"$libname_spec\"	;;      *)	if test "$module" = no; then	  $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2	  $echo "$help" 1>&2	  exit 1	fi	if test "$need_lib_prefix" != no; then	  # Add the "lib" prefix for modules if required	  name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`	  eval libname=\"$libname_spec\"	else	  libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`	fi	;;      esac      if test -n "$objs"; then	if test "$deplibs_check_method" != pass_all; then	  $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1	  exit 1	else	  echo	  echo "*** Warning: Linking the shared library $output against the non-libtool"	  echo "*** objects $objs is not portable!"	  libobjs="$libobjs $objs"	fi      fi      if test "$dlself" != no; then	$echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2      fi      set dummy $rpath      if test $# -gt 2; then	$echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2      fi      install_libdir="$2"      oldlibs=      if test -z "$rpath"; then	if test "$build_libtool_libs" = yes; then	  # Building a libtool convenience library.	  libext=al	  oldlibs="$output_objdir/$libname.$libext $oldlibs"	  build_libtool_libs=convenience	  build_old_libs=yes	fi	if test -n "$vinfo"; then	  $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2	fi	if test -n "$release"; then	  $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2	fi      else	# Parse the version information argument.	save_ifs="$IFS"; IFS=':'	set dummy $vinfo 0 0 0	IFS="$save_ifs"	if test -n "$8"; then	  $echo "$modename: too many parameters to \`-version-info'" 1>&2	  $echo "$help" 1>&2	  exit 1	fi	current="$2"	revision="$3"	age="$4"	# Check that each of the things are valid numbers.	case $current in	0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;	*)	  $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2	  exit 1	  ;;	esac	case $revision in	0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;	*)	  $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2	  exit 1	  ;;	esac	case $age in	0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;	*)	  $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2	  exit 1	  ;;	esac	if test $age -gt $current; then	  $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2	  exit 1	fi	# Calculate the version variables.	major=	versuffix=	verstring=	case $version_type in	none) ;;	darwin)	  # Like Linux, but with the current version available in	  # verstring for coding it into the library header	  major=.`expr $current - $age`	  versuffix="$major.$age.$revision"	  # Darwin ld doesn't like 0 for these options...	  minor_current=`expr $current + 1`	  verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"	  ;;	freebsd-aout)	  major=".$current"	  versuffix=".$current.$revision";	  ;;	freebsd-elf)	  major=".$current"	  versuffix=".$current";	  ;;	irix | nonstopux)	  major=`expr $current - $age + 1`	  case $version_type in	    nonstopux) verstring_prefix=nonstopux ;;	    *)         verstring_prefix=sgi ;;	  esac	  verstring="$verstring_prefix$major.$revision"	  # Add in all the interfaces that we are compatible with.	  loop=$revision	  while test $loop != 0; do	    iface=`expr $revision - $loop`	    loop=`expr $loop - 1`	    verstring="$verstring_prefix$major.$iface:$verstring"	  done	  # Before this point, $major must not contain `.'.	  major=.$major	  versuffix="$major.$revision"	  ;;	linux)	  major=.`expr $current - $age`	  versuffix="$major.$age.$revision"	  ;;	osf)	  major=.`expr $current - $age`	  versuffix=".$current.$age.$revision"	  verstring="$current.$age.$revision"	  # Add in all the interfaces that we are compatible with.	  loop=$age	  while test $loop != 0; do	    iface=`expr $current - $loop`	    loop=`expr $loop - 1`	    verstring="$verstring:${iface}.0"	  done	  # Make executables depend on our current version.	  verstring="$verstring:${current}.0"	  ;;	sunos)	  major=".$current"	  versuffix=".$current.$revision"	  ;;	windows)	  # Use '-' rather than '.', since we only want one	  # extension on DOS 8.3 filesystems.	  major=`expr $current - $age`	  versuffix="-$major"	  ;;	*)	  $echo "$modename: unknown library version type \`$version_type'" 1>&2	  echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2	  exit 1	  ;;	esac	# Clear the version info if we defaulted, and they specified a release.	if test -z "$vinfo" && test -n "$release"; then	  major=	  verstring="0.0"	  case $version_type in	  darwin)	    # we can't check for "0.0" in archive_cmds due to quoting	    # problems, so we reset it completely	    verstring=""	    ;;	  *)	    verstring="0.0"	    ;;	  esac	  if test "$need_version" = no; then	    versuffix=	  else	    versuffix=".0.0"	  fi	fi	# Remove version info from name if versioning should be avoided	if test "$avoid_version" = yes && test "$need_version" = no; then	  major=	  versuffix=	  verstring=""	fi	# Check to see if the archive will have undefined symbols.	if test "$allow_undefined" = yes; then	  if test "$allow_undefined_flag" = unsupported; then	    $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2	    build_libtool_libs=no	    build_old_libs=yes	  fi	else	  # Don't allow undefined symbols.	  allow_undefined_flag="$no_undefined_flag"	fi      fi      if test "$mode" != relink; then	# Remove our outputs.	$show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"	$run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*      fi      # Now set the variables for building old libraries.      if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then	oldlibs="$oldlibs $output_objdir/$libname.$libext"	# Transform .lo files to .o files.	oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`      fi      # Eliminate all temporary directories.      for path in $notinst_path; do	lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`	deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`	dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`      done      if test -n "$xrpath"; then	# If the user specified any rpath flags, then add them.	temp_xrpath=	for libdir in $xrpath; do	  temp_xrpath="$temp_xrpath -R$libdir"	  case "$finalize_rpath " in	  *" $libdir "*) ;;	  *) finalize_rpath="$finalize_rpath $libdir" ;;	  esac	done	if test $hardcode_into_libs != yes || test $build_old_libs = yes; then	  dependency_libs="$temp_xrpath $dependency_libs"	fi      fi      # Make sure dlfiles contains only unique files that won't be dlpreopened      old_dlfiles="$dlfiles"      dlfiles=      for lib in $old_dlfiles; do	case " $dlprefiles $dlfiles " in	*" $lib "*) ;;	*) dlfiles="$dlfiles $lib" ;;	esac      done      # Make sure dlprefiles contains only unique files      old_dlprefiles="$dlprefiles"      dlprefiles=      for lib in $old_dlprefiles; do	case "$dlprefiles " in	*" $lib "*) ;;	*) dlprefiles="$dlprefiles $lib" ;;	esac      done      if test "$build_libtool_libs" = yes; then	if test -n "$rpath"; then	  case $host in	  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)	    # these systems don't actually have a c library (as such)!	    ;;	  *-*-rhapsody* | *-*-darwin1.[012])	    # Rhapsody C library is in the System framework	    deplibs="$deplibs -framework System"	    ;;	  *-*-netbsd*)	    # Don't link with libc until the a.out ld.so is fixed.	    ;;	  *-*-openbsd* | *-*-freebsd*)	    # Do not include libc due to us having libc/libc_r.	    ;;	  *)	    # Add libc to deplibs on all other systems if necessary.	    if tes

⌨️ 快捷键说明

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