]> granicus.if.org Git - apache/commitdiff
Allow instdso.sh to be used with a .so file directly rather than requiring
authorJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 18 Sep 2002 23:47:28 +0000 (23:47 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 18 Sep 2002 23:47:28 +0000 (23:47 +0000)
a libtool archive.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96894 13f79535-47bb-0310-9956-ffa450edef68

build/instdso.sh

index 1a476ec18205ebbbf51ce2d509cbd95924d1b111..0751d28a4af8ee3ab9bd2eae21e895ccded54942 100755 (executable)
@@ -49,6 +49,13 @@ DLNAME=`grep "^dlname" $TARGETDIR/$DSOARCHIVE_BASENAME | sed -e "s/dlname='\([^'
 LIBRARY_NAMES=`grep "library_names" $TARGETDIR/$DSOARCHIVE_BASENAME | sed -e "s/dlname='\([^']*\)'/\1/"`
 LIBRARY_NAMES=`echo $LIBRARY_NAMES | sed -e "s/ *$DLNAME//g"`
 
+if test -z "$DLNAME"
+then
+  echo "Warning!  dlname not found in $TARGETDIR/$DSOARCHIVE_BASENAME."
+  echo "Assuming installing a .so rather than a libtool archive."
+  exit 0
+fi
+
 if test -n "$LIBRARY_NAMES"
 then
     for f in $LIBRARY_NAMES