version 1.1.1.1.2.2, 2014/07/30 08:40:43
|
version 1.1.1.3, 2021/03/17 01:01:01
|
Line 17 LDCONFIG=ldconfig
|
Line 17 LDCONFIG=ldconfig
|
PROGNAME=`basename $0` |
PROGNAME=`basename $0` |
USAGE="$PROGNAME [-D] -O host_os [-V host_vendor] -d installation-dir [-b bin-dir] -i install-prog [-U] library" |
USAGE="$PROGNAME [-D] -O host_os [-V host_vendor] -d installation-dir [-b bin-dir] -i install-prog [-U] library" |
|
|
# process options | # process options - should use getopts |
|
|
while [ $# -gt 0 ]; do |
while [ $# -gt 0 ]; do |
case "$1" in |
case "$1" in |
Line 73 fi
|
Line 73 fi
|
case "$host_os" in |
case "$host_os" in |
hpux*|darwin*|macosx*|linux*|solaris2*) |
hpux*|darwin*|macosx*|linux*|solaris2*) |
if [ -z "$uninstall" ]; then |
if [ -z "$uninstall" ]; then |
chmod 555 ${INSTALLDIR}/${LIBNAME} | chmod 755 ${INSTALLDIR}/${LIBNAME} |
fi ;; |
fi ;; |
cygwin*|mingw*) |
cygwin*|mingw*) |
IMPLIBNAME=`echo ${LIBNAME} \ |
IMPLIBNAME=`echo ${LIBNAME} \ |
Line 118 INSTALL_LINK2='${echo} cd $INSTALLDIR && ${echo} ${LN}
|
Line 118 INSTALL_LINK2='${echo} cd $INSTALLDIR && ${echo} ${LN}
|
# Create symlinks to the installed library. This section is incomplete. |
# Create symlinks to the installed library. This section is incomplete. |
# |
# |
case "$host_os-$host_vendor" in |
case "$host_os-$host_vendor" in |
*linux*|freebsd*-gentoo) | *linux*|freebsd*|dragonfly*) |
# libname.so.M -> libname.so.M.N |
# libname.so.M -> libname.so.M.N |
${echo} ${RM} ${INSTALLDIR}/$LINK2 |
${echo} ${RM} ${INSTALLDIR}/$LINK2 |
if [ -z "$uninstall" ]; then |
if [ -z "$uninstall" ]; then |
Line 154 solaris2*|aix4.[2-9]*|aix[5-9]*|osf*|irix[56]*|sysv[45
|
Line 154 solaris2*|aix4.[2-9]*|aix[5-9]*|osf*|irix[56]*|sysv[45
|
fi |
fi |
;; |
;; |
|
|
|
|
# FreeBSD 3.x and above can have either a.out or ELF shared libraries |
|
freebsd3*|freebsdaout*) |
|
if [ -x /usr/bin/objformat ] && [ "`/usr/bin/objformat`" = "elf" ]; then |
|
# libname.so -> libname.so.M |
|
${echo} ${RM} ${INSTALLDIR}/$LINK1 |
|
if [ -z "$uninstall" ]; then |
|
eval $INSTALL_LINK1 |
|
fi |
|
else |
|
# libname.so.M -> libname.so.M.N |
|
${echo} ${RM} ${INSTALLDIR}/$LINK2 |
|
if [ -z "$uninstall" ]; then |
|
eval $INSTALL_LINK2 |
|
fi |
|
|
|
# libname.so -> libname.so.M.N |
|
${echo} ${RM} ${INSTALLDIR}/$LINK1 |
|
if [ -z "$uninstall" ]; then |
|
eval $INSTALL_LINK1 |
|
fi |
|
fi |
|
;; |
|
|
|
freebsd[4-9]*|freebsd1[0-9]*|freebsdelf*|dragonfly*) |
|
# libname.so -> libname.so.M |
|
${echo} ${RM} ${INSTALLDIR}/$LINK1 |
|
if [ -z "$uninstall" ]; then |
|
eval $INSTALL_LINK1 |
|
fi |
|
;; |
|
|
|
hpux1*) |
hpux1*) |
# libname.sl -> libname.M |
# libname.sl -> libname.M |
${echo} ${RM} ${INSTALLDIR}/$LINK1.sl |
${echo} ${RM} ${INSTALLDIR}/$LINK1.sl |