ltmain.sh
changeset 387 469d5c0da01d
parent 1 cf2af46e9e2a
child 393 84acd4f134e7
     1.1 --- a/ltmain.sh	Sat Jun 01 18:43:51 2002 +0000
     1.2 +++ b/ltmain.sh	Sat Jun 01 18:48:13 2002 +0000
     1.3 @@ -951,6 +951,11 @@
     1.4  	  prev=
     1.5  	  continue
     1.6  	  ;;
     1.7 +	framework)
     1.8 +	  deplibs="$deplibs -framework $arg"
     1.9 +	  prev=
    1.10 +	  continue
    1.11 +	  ;;
    1.12  	release)
    1.13  	  release="-$arg"
    1.14  	  prev=
    1.15 @@ -1037,6 +1042,11 @@
    1.16  	continue
    1.17  	;;
    1.18  
    1.19 +      -framework)
    1.20 +	prev=framework
    1.21 +	continue
    1.22 +	;;
    1.23 +
    1.24        -L*)
    1.25  	dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
    1.26  	# We need an absolute path.
    1.27 @@ -1768,6 +1778,16 @@
    1.28  	  versuffix="-$major-$age-$revision"
    1.29  	  ;;
    1.30  
    1.31 +	darwin)
    1.32 +	  # Like Linux, but with the current version available in
    1.33 +	  # verstring for coding it into the library header
    1.34 +	  major=.`expr $current - $age`
    1.35 +	  versuffix="$major.$age.$revision"
    1.36 +	  # Darwin ld doesn't like 0 for these options...
    1.37 +	  minor_current=`expr $current + 1`
    1.38 +	  verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
    1.39 +	  ;;
    1.40 +
    1.41  	*)
    1.42  	  $echo "$modename: unknown library version type \`$version_type'" 1>&2
    1.43  	  echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
    1.44 @@ -1778,7 +1798,16 @@
    1.45  	# Clear the version info if we defaulted, and they specified a release.
    1.46  	if test -z "$vinfo" && test -n "$release"; then
    1.47  	  major=
    1.48 +	  case "$version_type" in
    1.49 +	  darwin)
    1.50 +	    # we can't check for "0.0" in archive_cmds due to quoting
    1.51 +	    # problems, so we reset it completely
    1.52 +	    verstring=""
    1.53 +	    ;;
    1.54 +	  *)
    1.55  	  verstring="0.0"
    1.56 +	    ;;
    1.57 +	  esac
    1.58  	  if test "$need_version" = no; then
    1.59  	    versuffix=
    1.60  	  else