comparison configure @ 129:4f6d9621ee00

add multi session streaming & add depending librarys. - libupnp-1.6.6 - libdlna-0.2.3
author Naoya OYAMA <naoya.oyama@gmail.com>
date Sun, 10 Oct 2010 15:33:18 +0900
parents 3a7d8d2f0585
children 2a9ac5ce2c7e
comparison
equal deleted inserted replaced
128:3a7d8d2f0585 129:4f6d9621ee00
37 echo " --disable-dlna disable DLNA support" 37 echo " --disable-dlna disable DLNA support"
38 echo " --disable-nls do not use Native Language Support" 38 echo " --disable-nls do not use Native Language Support"
39 echo " --enable-b25 enable b25 support" 39 echo " --enable-b25 enable b25 support"
40 echo "" 40 echo ""
41 echo "Search paths:" 41 echo "Search paths:"
42 echo " --with-libupnp-dir=DIR check for libupnp installed in DIR" 42 # echo " --with-libupnp-dir=DIR check for libupnp installed in DIR"
43 echo " --with-libdlna-dir=DIR check for libdlna installed in DIR" 43 # echo " --with-libdlna-dir=DIR check for libdlna installed in DIR"
44 echo " --with-b25-dir=DIR check for libarib25 installed in DIR" 44 echo " --with-b25-dir=DIR check for libarib25 installed in DIR"
45 echo "" 45 echo ""
46 echo "Advanced options (experts only):" 46 echo "Advanced options (experts only):"
47 echo " --enable-debug enable debugging symbols" 47 echo " --enable-debug enable debugging symbols"
48 echo " --disable-debug disable debugging symbols" 48 echo " --disable-debug disable debugging symbols"
311 cross_compile="no" 311 cross_compile="no"
312 INSTALL="/usr/bin/install -c" 312 INSTALL="/usr/bin/install -c"
313 VERSION="1.1a" 313 VERSION="1.1a"
314 system_name=`uname -s 2>&1` 314 system_name=`uname -s 2>&1`
315 315
316 ######################################
317 # include libupnp & libdlna
318 ######################################
319 libupnp=`pwd`/libupnp-1.6.6
320 libdlna=`pwd`/libdlna-0.2.3
321 libupnp_build=`pwd`/libupnp-1.6.6/BUILD
322 libdlna_build=`pwd`/libdlna-0.2.3/BUILD
323 libupnp_inc=`pwd`/libupnp-1.6.6/INCLUDE
324 libdlna_inc=`pwd`/libdlna-0.2.3/INCLUDE
325
326 sh -c "cd $libupnp && ./configure --prefix=$libupnp --libdir=$libupnp_build --includedir=$libupnp_inc --disable-shared && make && make install && cd .." || die "$libupnp setup failed."
327 sh -c "cd $libdlna && ./configure --prefix=$libdlna --libdir=$libdlna_build --includedir=$libdlna_inc --disable-shared && make && make install && cd .." || die "$libdlna setup failed."
328
329 add_cflags -I`pwd`
330 add_cflags -I`pwd`/src
331 add_cflags -I$libupnp_inc
332 add_cflags -I$libdlna_inc
333
334 add_ldflags $libupnp_build/libixml.a
335 add_ldflags $libupnp_build/libupnp.a
336 add_ldflags $libupnp_build/libthreadutil.a
337 add_ldflags $libdlna_build/libdlna.a
338 add_extralibs -lavformat
339 add_extralibs -lrt
340
316 ################################################# 341 #################################################
317 # set cpu variable and specific cpu flags 342 # set cpu variable and specific cpu flags
318 ################################################# 343 #################################################
319 case "$cpu" in 344 case "$cpu" in
320 i386|i486|i586|i686|i86pc|BePC) 345 i386|i486|i586|i686|i86pc|BePC)
412 ;; 437 ;;
413 --sysconfdir=*) sysconfdir="$optval"; 438 --sysconfdir=*) sysconfdir="$optval";
414 ;; 439 ;;
415 --localedir=*) localedir="$optval"; 440 --localedir=*) localedir="$optval";
416 ;; 441 ;;
417 --with-libupnp-dir=*) libupnpdir="$optval"; 442 # --with-libupnp-dir=*) libupnpdir="$optval";
418 ;; 443 # ;;
419 --with-libdlna-dir=*) libdlnadir="$optval"; 444 # --with-libdlna-dir=*) libdlnadir="$optval";
420 ;; 445 # ;;
421 --with-b25-dir=*) libb25dir="$optval"; 446 --with-b25-dir=*) libb25dir="$optval";
422 ;; 447 ;;
423 --disable-nls) nls="no" 448 --disable-nls) nls="no"
424 ;; 449 ;;
425 --enable-dlna) dlna="yes" 450 --enable-dlna) dlna="yes"
591 check_cflags -Wall 616 check_cflags -Wall
592 check_cflags -D_LARGEFILE_SOURCE 617 check_cflags -D_LARGEFILE_SOURCE
593 check_cflags -D_FILE_OFFSET_BITS=64 618 check_cflags -D_FILE_OFFSET_BITS=64
594 check_cflags -D_REENTRANT 619 check_cflags -D_REENTRANT
595 linux && add_cflags -D_GNU_SOURCE 620 linux && add_cflags -D_GNU_SOURCE
596 add_extralibs "-lrt"
597 621
598 ################################################# 622 #################################################
599 # check for debug symbols 623 # check for debug symbols
600 ################################################# 624 #################################################
601 if enabled debug; then 625 if enabled debug; then
637 # check for iconv (optional) 661 # check for iconv (optional)
638 ################################################# 662 #################################################
639 echolog "Checking for iconv ..." 663 echolog "Checking for iconv ..."
640 check_lib iconv.h iconv "" && add_cflags -DHAVE_ICONV 664 check_lib iconv.h iconv "" && add_cflags -DHAVE_ICONV
641 665
642 ################################################# 666 ##################################################
643 # check for libupnp and friends (mandatory) 667 ## check for libupnp and friends (mandatory)
644 ################################################# 668 ##################################################
645 if [ -n "$libupnpdir" ]; then 669 #if [ -n "$libupnpdir" ]; then
646 check_cflags -I$libupnpdir/include 670 # check_cflags -I$libupnpdir/include
647 check_ldflags -L$libupnpdir/lib 671 # check_ldflags -L$libupnpdir/lib
648 fi 672 #fi
649 673 #
650 echolog "Checking for libixml ..." 674 #echolog "Checking for libixml ..."
651 check_lib upnp/ixml.h ixmlRelaxParser -lixml || die "Error, can't find libixml !" 675 #check_lib upnp/ixml.h ixmlRelaxParser -lixml || die "Error, can't find libixml !"
652 676 #
653 echolog "Checking for libthreadutil ..." 677 #echolog "Checking for libthreadutil ..."
654 check_lib upnp/ThreadPool.h ThreadPoolAdd "-lthreadutil -lpthread" || die "Error, can't find libthreadutil !" 678 #check_lib upnp/ThreadPool.h ThreadPoolAdd "-lthreadutil -lpthread" || die "Error, can't find libthreadutil !"
655 add_extralibs -lpthread 679 #add_extralibs -lpthread
656 680 #
657 libupnp_min_version="1.4.2" 681 #libupnp_min_version="1.4.2"
658 echolog "Checking for libupnp >= $libupnp_min_version ..." 682 #echolog "Checking for libupnp >= $libupnp_min_version ..."
659 check_lib upnp/upnp.h UpnpSetMaxContentLength -lupnp || die "Error, can't find libupnp !" 683 #check_lib upnp/upnp.h UpnpSetMaxContentLength -lupnp || die "Error, can't find libupnp !"
660 check_lib_version libupnp $libupnp_min_version || die "Error, libupnp < $libupnp_min_version !" 684 #check_lib_version libupnp $libupnp_min_version || die "Error, libupnp < $libupnp_min_version !"
661 add_cflags `pkg-config libupnp --cflags` 685 #add_cflags `pkg-config libupnp --cflags`
662 add_extralibs `pkg-config libupnp --libs` 686 #add_extralibs `pkg-config libupnp --libs`
663 687 #
664 ################################################# 688 ##################################################
665 # check for libdlna (mandatory if enabled) 689 ## check for libdlna (mandatory if enabled)
666 ################################################# 690 ##################################################
667 if test "$dlna" = "yes"; then 691 #if test "$dlna" = "yes"; then
668 libdlna_min_version="0.2.1" 692 # libdlna_min_version="0.2.1"
669 echolog "Checking for libdlna >= $libdlna_min_version ..." 693 # echolog "Checking for libdlna >= $libdlna_min_version ..."
670 if [ -n "$libdlnadir" ]; then 694 # if [ -n "$libdlnadir" ]; then
671 check_cflags -I$libdlnadir/include 695 # check_cflags -I$libdlnadir/include
672 check_ldflags -L$libdlnadir/lib 696 # check_ldflags -L$libdlnadir/lib
673 fi 697 # fi
674 check_lib dlna.h dlna_register_all_media_profiles -ldlna || die "Error, can't find libdlna (install it or use --disable-dlna) !" 698 # check_lib dlna.h dlna_register_all_media_profiles -ldlna || die "Error, can't find libdlna (install it or use --disable-dlna) !"
675 # check_lib_version libdlna $libdlna_min_version || die "Error, libdlna < $libdlna_min_version !" 699 ## check_lib_version libdlna $libdlna_min_version || die "Error, libdlna < $libdlna_min_version !"
676 add_cflags -DHAVE_DLNA 700 # add_cflags -DHAVE_DLNA
677 add_cflags `pkg-config libdlna --cflags` 701 # add_cflags `pkg-config libdlna --cflags`
678 add_extralibs `pkg-config libdlna --libs` 702 # add_extralibs `pkg-config libdlna --libs`
679 fi 703 #fi
680 704
681 ################################################# 705 #################################################
682 # check for libarib25 (mandatory if enabled) 706 # check for libarib25 (mandatory if enabled)
683 ################################################# 707 #################################################
684 if test "$b25" = "yes"; then 708 if test "$b25" = "yes"; then
693 add_cflags -DHAVE_LIBARIB25 717 add_cflags -DHAVE_LIBARIB25
694 add_cflags `pkg-config libarib25 pcsclite --cflags` 718 add_cflags `pkg-config libarib25 pcsclite --cflags`
695 add_extralibs `pkg-config libarib25 pcsclite --libs` 719 add_extralibs `pkg-config libarib25 pcsclite --libs`
696 fi 720 fi
697 721
722 # force use DLNA
723 add_cflags -DHAVE_DLNA
724
698 ################################################# 725 #################################################
699 # logging result 726 # logging result
700 ################################################# 727 #################################################
701 echolog "" 728 echolog ""
702 echolog "recpt1: configure is OK" 729 echolog "recpt1: configure is OK"
703 echolog " version $VERSION" 730 echolog " version $VERSION"
704 echolog " using libupnp `pkg-config libupnp --modversion`" 731 #echolog " using libupnp `pkg-config libupnp --modversion`"
705 test $dlna = yes && echolog " using libdlna `pkg-config libdlna --modversion`" 732 #test $dlna = yes && echolog " using libdlna `pkg-config libdlna --modversion`"
706 test $b25 = yes && echolog " using libb25 `pkg-config libb25 --modversion`" 733 test $b25 = yes && echolog " using libb25 `pkg-config libb25 --modversion`"
707 echolog "configuration:" 734 echolog "configuration:"
708 echolog " install prefix $PREFIX" 735 echolog " install prefix $PREFIX"
709 echolog " configuration dir $sysconfdir" 736 echolog " configuration dir $sysconfdir"
710 echolog " locales dir $localedir" 737 echolog " locales dir $localedir"
711 echolog " NLS support $nls" 738 echolog " NLS support $nls"
712 echolog " DLNA support $dlna" 739 #echolog " DLNA support $dlna"
713 echolog " B25 support $b25" 740 echolog " B25 support $b25"
714 echolog " C compiler $cc" 741 echolog " C compiler $cc"
715 echolog " STRIP $strip" 742 echolog " STRIP $strip"
716 echolog " make $make" 743 echolog " make $make"
717 echolog " CPU $cpu ($tune)" 744 echolog " CPU $cpu ($tune)"