[mythtv] configure v1.51 and above

cythrault at gmail.com cythrault at gmail.com
Sat Apr 23 02:31:15 UTC 2005


On 4/21/05, Daniel Kristjansson <danielk at cat.nyu.edu> wrote:
> On Wed, 2005-04-20 at 23:06 -0400, cythrault at gmail.com wrote:
> > Hi,
> >
> > I just noticed that v1.51 of configure introduced a problem when
> > searching for libs.
> >
> > You can include a path in ld.so.conf:
> 
> Ugh, any chance you could make a patch for this?
> 
> -- Daniel

As requested. ;)

Index: mythtv/configure
===================================================================
RCS file: /var/lib/mythcvs/mythtv/configure,v
retrieving revision 1.54
diff -u -r1.54 configure
--- mythtv/configure    18 Apr 2005 23:51:34 -0000      1.54
+++ mythtv/configure    23 Apr 2005 02:29:50 -0000
@@ -677,9 +677,12 @@
 
 has_library()
 {
-    LIBPATHS=`cat /etc/ld.so.conf | grep -v "#"`
+    LIBPATHS=`cat /etc/ld.so.conf | egrep -v "#|include "`
     LIBPATHS="$LIBPATHS `echo $LD_LIBRARY_PATH | sed s/':'/' '/g` "
     LIBPATHS="`echo $LIBPATHS /lib /usr/lib | sed s/'\/ '/' '/g` "
+    for x in `cat /etc/ld.so.conf | grep -v "#" | grep "include "|
awk '{print $2}'` ; do
+      LIBPATHS=`echo $LIBPATHS $(cat /etc/$x)`
+    done
     HAS_IT="no"
     for LIBPATH in $LIBPATHS ; do
         if test x`ls $LIBPATH/$1* 2> /dev/null | head -n 1` != x"" ; then

-- 
cyth


More information about the mythtv-dev mailing list