Ticket #9258: configure.diff
File configure.diff, 2.4 KB (added by , 13 years ago) |
---|
-
mythplugins/configure
234 234 for opt do 235 235 optval="${opt#*=}" 236 236 case "$opt" in 237 --targetos=*) targetos=`echo $opt | cut -d '=' -f 2` 238 ;; 237 239 --prefix=*) prefix=`echo $opt | cut -d '=' -f 2` 238 240 ;; 239 241 --libdir-name=*) libdir_name=`echo $opt | cut -d '=' -f 2`; … … 315 317 done 316 318 fi 317 319 318 LIBPATHS="`echo $LIBPATHS $ sysroot$prefix/$libdir_name $sysroot/$libdir_name $sysroot/usr/$libdir_name $sysroot/usr/local/$libdir_name $sysroot/usr/X11R6/$libdir_name | sed s/'\/ '/' '/g` "320 LIBPATHS="`echo $LIBPATHS $prefix/$libdir_name $sysroot/$libdir_name $sysroot/usr/$libdir_name $sysroot/usr/local/$libdir_name $sysroot/usr/X11R6/$libdir_name | sed s/'\/ '/' '/g` " 319 321 320 322 HAS_IT="no" 321 323 for LIBPATH in $LIBPATHS ; do … … 328 330 329 331 has_header() 330 332 { 331 HPATHS="$ sysroot$prefix/include $sysroot/usr/local/include $sysroot/usr/include $sysroot/usr/include/g++-v3 $sysroot/usr/X11R6/include $sysroot/"333 HPATHS="$prefix/include $sysroot/usr/local/include $sysroot/usr/include $sysroot/usr/include/g++-v3 $sysroot/usr/X11R6/include $sysroot/" 332 334 INCL=`echo $DYLD_LIBRARY_PATH $LD_LIBRARY_PATH | sed s/':'/' '/g` 333 335 HPATHS="$HPATHS `echo $INCL | sed s/$libdir_name/include/g` " 334 336 … … 503 505 cdaudio="yes" 504 506 fi 505 507 506 if test "$cdaudio" = "no" -a "$targetos" != "Darwin" ; then508 if test "$cdaudio" = "no" -a "$targetos" != "Darwin" -a "`echo ${targetos} | cut -c1-5`" != "MINGW"; then 507 509 echo "MythMusic requires libcdaudio." 508 510 fi 509 511 … … 585 587 ########################################################### 586 588 587 589 # bring in mythtv config 588 if [ -e $ sysroot$prefix/include/mythtv/mythconfig.mak ] ; then590 if [ -e $prefix/include/mythtv/mythconfig.mak ] ; then 589 591 rm mythconfig.mak 2> /dev/null 590 ln -s $ sysroot$prefix/include/mythtv/mythconfig.mak mythconfig.mak592 ln -s $prefix/include/mythtv/mythconfig.mak mythconfig.mak 591 593 else 592 echo "ERROR: mythconfig.mak not found at $ sysroot$prefix/include/mythtv/mythconfig.mak"594 echo "ERROR: mythconfig.mak not found at $prefix/include/mythtv/mythconfig.mak" 593 595 echo "Did you make AND install MythTV first?" 594 echo "Are you using the correct prefix ($prefix) and sysroot ($sysroot)?"596 echo "Are you using the correct prefix ($prefix)?" 595 597 echo "Bailing out!!" 596 598 exit 597 599 fi