AC_INIT([tuxbox-cdk],[0]) AC_PREREQ(2.57a) TUXBOX_NEWMAKE_WARNING AC_CANONICAL_BUILD AC_SUBST(build) AC_ARG_ENABLE(uclibc, AS_HELP_STRING(--enable-uclibc, enable rules for creating uclibc linked targets), ,[enable_uclibc=no]) AM_CONDITIONAL(TARGETRULESET_UCLIBC,test "$enable_uclibc" = "yes") if test "$target_alias" = "" ; then if test "$enable_uclibc" = "yes"; then target_alias="powerpc-tuxbox-linux-uclibc" else target_alias="powerpc-tuxbox-linux-gnu" fi fi AC_CANONICAL_TARGET AC_SUBST(target) # automake1.10 comes with verbose warning output, but we don't want them AM_INIT_AUTOMAKE([-Wno-portability]) AM_MAINTAINER_MODE AC_PROG_CC AC_ARG_ENABLE(kernel26, AS_HELP_STRING(--enable-kernel26,set up the CDK to use the 2.6 kernel (experimental)), ,[enable_kernel26=no]) AM_CONDITIONAL(KERNEL26,test "$enable_kernel26" = "yes") AC_ARG_ENABLE(lzma, AS_HELP_STRING(--enable-lzma,use LZMA compression when generating images), ,[enable_lzma=yes]) AM_CONDITIONAL(ENABLE_LZMA,test "$enable_lzma" = "yes") AC_ARG_ENABLE(nptl, AS_HELP_STRING(--disable-nptl,do not use native posix threads for glibc (only meaningful for kernel 2.6.x, default for 2.4.x)), ,[ if test "$enable_kernel26" = "yes"; then enable_nptl=yes else enable_nptl=no fi ]) if test "$enable_nptl" = "yes"; then if test "$enable_kernel26" != "yes"; then AC_MSG_ERROR([Option --enable-nptl (native posix threads) is only supported for a 2.6.x kernel]) fi GLIBC_PTHREADS="nptl" else GLIBC_PTHREADS="linuxthreads" fi AC_SUBST(GLIBC_PTHREADS) AC_ARG_WITH(cpu, [ --with-cpu=MODEL cpu model [[823,405]]], [CPU_MODEL="$withval"],[CPU_MODEL="823"]) AC_SUBST(CPU_MODEL) AC_ARG_WITH(targetruleset, [ --with-targetruleset=NAME OBSOLETE, use --[[enable|disable]]-flashrules instead], [TARGETRULESET="$withval"],[TARGETRULESET="notset"]) if test "$TARGETRULESET" != "notset"; then AC_MSG_WARN([--with-targetruleset is obsolete; use --[[enable|disable]]-flashrules instead]); fi AC_ARG_WITH(assume-kernelsources-old, [ --with-assume-kernelsources-old Do not recompile due to new kernel sources], [assume_kernelsources_old="yes"],[assume_kernelsources_old="no"]) AM_CONDITIONAL(ASSUME_KERNELSOURCES_OLD,test "$assume_kernelsources_old" = "yes") AC_ARG_ENABLE(flashrules, AS_HELP_STRING(--enable-flashrules, enable rules for creating flash targets), ,[enable_flashrules=yes]) AM_CONDITIONAL(TARGETRULESET_FLASH,test "$enable_flashrules" = "yes") if test "$enable_flashrules" = "yes"; then INSTALLRULESETFILE="-flash" else INSTALLRULESETFILE="" fi if test -z "$CFLAGS" ; then CFLAGS="-O2" fi if test -z "$TARGET_CFLAGS" -o -z "$TARGET_CXXFLAGS"; then TARGET_CFLAGS="-pipe" if test "$enable_flashrules" != "yes"; then TARGET_CFLAGS="$TARGET_CFLAGS -O2 -g3 -gdwarf-2" TARGET_LDFLAGS="" else TARGET_CFLAGS="$TARGET_CFLAGS -Os" TARGET_LDFLAGS="-Wl,-O1" fi TARGET_CXXFLAGS="$TARGET_CFLAGS" fi if test "$enable_uclibc" = "yes"; then CFLAGS="$CFLAGS -fPIC" TARGET_CFLAGS="$TARGET_CFLAGS -fPIC" TARGET_CXXFLAGS="$TARGET_CXXFLAGS -fPIC" fi AC_ARG_ENABLE(lirc, AS_HELP_STRING(--enable-lirc, include lirc in yadds and images), [case "${enableval}" in yes) LIRC=lirc ;; esac], [enable_lirc=no]) AM_CONDITIONAL(ENABLE_LIRC,test "$enable_lirc" = "yes") AC_SUBST(LIRC) AC_ARG_ENABLE(cdkVcInfo, AS_HELP_STRING(--enable-cdkVcInfo, include cdkVcInfo in yadds and images), [case "${enableval}" in yes) CDKVCINFO=cdkVcInfo ;; esac],[enable_cdkVcInfo=no]) AM_CONDITIONAL(ENABLE_CDKVCINFO,test "$enable_cdkVcInfo" = "yes") AC_SUBST(CDKVCINFO) AC_ARG_ENABLE(german_keymaps, AS_HELP_STRING(--enable-german-keymaps, include loadkey and German keymaps in yadds and images), [case "${enableval}" in yes) CONSOLE_TOOLS=kbd ;; esac],[enable_german_keymaps=no]) AM_CONDITIONAL(ENABLE_GERMAN_KEYMAPS,test "$enable_german_keymaps" = "yes") AC_SUBST(CONSOLE_TOOLS) AC_ARG_ENABLE(ide, AS_HELP_STRING(--enable-ide, include ide and ext2/ext3 drivers in yadds and images), [],[enable_ide=no]) AC_ARG_ENABLE(ext3, AS_HELP_STRING(--disable-ext3, exclude ext2/ext3 drivers in yadds and images), [],[enable_ext3=yes]) AC_ARG_ENABLE(xfs, AS_HELP_STRING(--enable-xfs, include xfs drivers in yadds and images), [case "${enableval}" in yes) XFSPROGS=xfsprogs ;; esac],[enable_xfs=no]) AC_SUBST(XFSPROGS) if test "$enable_ide" = "no"; then enable_ext3=no enable_xfs=no fi if ! test "$enable_ext3" = "yes" -o "$enable_xfs" = "yes"; then enable_ide=no enable_ext3=no enable_xfs=no fi AM_CONDITIONAL(ENABLE_IDE,test "$enable_ide" = "yes") AM_CONDITIONAL(ENABLE_EXT3,test "$enable_ext3" = "yes") AM_CONDITIONAL(ENABLE_XFS,test "$enable_xfs" = "yes") if test "$enable_uclibc" = "yes" && test "$enable_xfs" = "yes"; then echo echo "*******************************************************************" echo "***** XFS does not work with uClibc yet - use \"--disable-xfs\" *****" echo "*******************************************************************" echo exit 1 fi AC_ARG_ENABLE(nfsserver, AS_HELP_STRING(--enable-nfsserver, enable the dBox NFS server), [case "${enableval}" in yes) NFSSERVER=nfsserver ;; esac],[enable_nfsserver=no]) AM_CONDITIONAL(ENABLE_NFSSERVER,test "$enable_nfsserver" = "yes") AC_SUBST(NFSSERVER) AC_ARG_ENABLE(sambaserver, AS_HELP_STRING(--enable-sambaserver, enable the dBox samba server), [case "${enableval}" in yes) SAMBASERVER=sambaserver ;; esac],[enable_sambaserver=no]) AM_CONDITIONAL(ENABLE_SAMBASERVER,test "$enable_sambaserver" = "yes") AC_SUBST(SAMBASERVER) AC_ARG_ENABLE(dosfstools, AS_HELP_STRING(--enable-dosfstools, enable the dosfstools), [case "${enableval}" in yes) DOSFSTOOLS=dosfstools ;; esac],[enable_dosfstools=no]) AM_CONDITIONAL(ENABLE_DOSFSTOOLS,test "$enable_dosfstools" = "yes") AC_SUBST(DOSFSTOOLS) AC_ARG_ENABLE(upnp, AS_HELP_STRING(--enable-upnp,include upnp support), ,[enable_upnp=no]) AM_CONDITIONAL(ENABLE_UPNP,test "$enable_upnp" = "yes") AC_ARG_ENABLE(flac, AS_HELP_STRING(--enable-flac,include Neutrino flac audio decoder with libFLAC), ,[enable_flac=no]) AM_CONDITIONAL(ENABLE_FLAC,test "$enable_flac" = "yes") if test "$enable_uclibc" = "yes" && test "$enable_flac" = "yes" && test "$enable_flashrules" = "yes"; then echo echo "*********************************************************************" echo "***** FLAC does not work with uClibc yet - use \"--disable-flac\" *****" echo "*********************************************************************" echo exit 1 fi AC_ARG_WITH(rootpartitionsize, [ --with-rootpartitionsize=SIZE size of the root partition], [ROOT_PARTITION_SIZE="$withval"],[ROOT_PARTITION_SIZE="0x660000"]) AC_SUBST(ROOT_PARTITION_SIZE) AC_ARG_WITH(defaultlocale, [ --with-defaultlocale=LOCALE default locale], [DEFAULTLOCALE="$withval"],[DEFAULTLOCALE="deutsch"]) AC_SUBST(DEFAULTLOCALE) AC_SUBST(CFLAGS) AC_SUBST(TARGET_CFLAGS) AC_SUBST(TARGET_CXXFLAGS) AC_SUBST(TARGET_LDFLAGS) AC_PREFIX_DEFAULT(/dbox2) if test "$prefix" = "NONE"; then prefix=/dbox2 fi AC_ARG_WITH(targetprefix, [ --with-targetprefix=DIR prefix for target files [[PREFIX/cdkroot]]], [targetprefix="$with_targetprefix"],[targetprefix="${prefix}/cdkroot"]) AC_ARG_WITH(hostprefix, [ --with-hostprefix=DIR prefix for host files [[PREFIX/cdk]]], [hostprefix="$with_hostprefix"],[hostprefix="${prefix}/cdk"]) AC_ARG_WITH(bootprefix, [ --with-bootprefix=DIR prefix for boot files [[PREFIX/tftpboot]]], [bootprefix="$with_bootprefix"],[bootprefix="${prefix}/tftpboot"]) AC_ARG_WITH(flashprefix, [ --with-flashprefix=DIR prefix for flash files [[PREFIX/cdkflash]] (only used for flash building)], [flashprefix="$with_flashprefix"],[flashprefix="${prefix}/cdkflash"]) AC_ARG_WITH(serversupport, [ --with-serversupport=DIR prefix for server file templates [[PREFIX/serversupport]]], [serversupport="$with_serversupport"],[serversupport="${prefix}/serversupport"]) AC_ARG_WITH(ucodesdir, [ --with-ucodesdir=DIR optional directory containing ucodes [[NONE]]], [ucodesdir="$with_ucodesdir"],[ucodesdir="NONE"]) AC_ARG_WITH(logosdir, [ --with-logosdir=DIR optional directory containing logos [[[CVS/]logos]]], [logosdir="$with_logosdir"],[logosdir="`pwd`/logos"]) AC_ARG_WITH(customizationsdir, [ --with-customizationsdir=DIR optional directory containing customization scripts [[[CVS]]]], [customizationsdir="$with_customizationsdir"],[customizationsdir="`pwd`"]) AC_ARG_WITH(updatehttpprefix, [ --with-updatehttpprefix=URL optional URL containing the URL of a directory with update images [[NONE]]], [updatehttpprefix="$with_updatehttpprefix"],[updatehttpprefix=]) buildprefix=`pwd` AC_SUBST(targetprefix) AC_SUBST(hostprefix) AC_SUBST(buildprefix) AC_SUBST(bootprefix) AC_SUBST(flashprefix) AC_SUBST(serversupport) AC_SUBST(ucodesdir) AC_SUBST(logosdir) AC_SUBST(customizationsdir) AC_SUBST(updatehttpprefix) flashprefix_ro=${flashprefix}/ro AC_SUBST(flashprefix_ro) flashprefix_rw=${flashprefix}/rw AC_SUBST(flashprefix_rw) AC_ARG_WITH(checkImage, [ --with-checkImage=[[none,rename,warn]] How/if to invoke checkImage [[none]]], [CHECKIMAGE_BEHAVIOR="$withval"],[CHECKIMAGE_BEHAVIOR="true"]) if [[ "$withval" = "rename" ]] ; then TUXBOX_CHECKIMAGE='$(hostprefix)/bin/checkImage $@ || mv $@ $@_bad' elif [[ "$withval" = "warn" ]] ; then TUXBOX_CHECKIMAGE='rm -f $@_bad; $(hostprefix)/bin/checkImage $@ || touch $@_bad' else TUXBOX_CHECKIMAGE=@true fi AC_SUBST(TUXBOX_CHECKIMAGE) AC_ARG_WITH(cvsdir, [ --with-cvsdir=DIR where to find the cvs], [cvsdir="$with_cvsdir"],[cvsdir="NONE"]) AC_ARG_WITH(appsdir, [ --with-appsdir=DIR apps dir from cvs [[[CVS/]apps/]]], [appsdir="$with_appsdir"],[appsdir="NONE"]) AC_ARG_WITH(bootdir, [ --with-bootdir=DIR boot dir from cvs [[[CVS/]boot/]]], [bootdir="$with_bootdir"],[bootdir="NONE"]) AC_ARG_WITH(driverdir, [ --with-driverdir=DIR driver dir from cvs [[[CVS/]driver]]], [driverdir="$with_driverdir"],[driverdir="NONE"]) AC_ARG_WITH(hostappsdir, [ --with-hostappsdir=DIR hostapps dir from cvs [[[CVS/]hostapps]]], [hostappsdir="$with_hostappsdir"],[hostappsdir="NONE"]) AC_ARG_WITH(gnuserver, [ --with-gnuserver=ADDRESS the gnu server for gnu-stuff (without ftp://)], [gnuserver="$with_gnuserver"],[gnuserver="NONE"]) AC_ARG_WITH(defaultserver, [ --with-defaultserver=ADDRESS the server that is taken if no server is given/works (without http://)], [defaultserver="$with_defaultserver"],[defaultserver="NONE"]) if test "$cvsdir" = "NONE"; then if test "$appsdir" = "NONE"; then appsdir="$buildprefix/apps" fi if test "$bootdir" = "NONE"; then bootdir="$buildprefix/boot" fi if test "$driverdir" = "NONE"; then driverdir="$buildprefix/driver" fi if test "$hostappsdir" = "NONE"; then hostappsdir="$buildprefix/hostapps" fi else if test "$appsdir" = "NONE"; then appsdir="$cvsdir/apps" fi if test "$bootdir" = "NONE"; then bootdir="$cvsdir/boot" fi if test "$driverdir" = "NONE"; then driverdir="$cvsdir/driver" fi if test "$hostappsdir" = "NONE"; then hostappsdir="$cvsdir/hostapps" fi fi if test "$gnuserver" = "NONE"; then gnuserver="ftp.gwdg.de/pub/misc/gnu/ftp/gnu" fi if test "$defaultserver" = "NONE"; then defaultserver="tuxbox.berlios.de/pub/tuxbox/cdk/src" fi dircheck="ok" AC_MSG_CHECKING([for apps directory]) if test ! -f "$appsdir/dvb/zapit/configure.ac" ; then AC_MSG_WARN([appsdir $appsdir not found]) appsdir="missing" dircheck="fail" else AC_MSG_RESULT([yes]) fi AC_MSG_CHECKING([for boot directory]) if test ! -d "$bootdir/u-boot-tuxbox" ; then AC_MSG_WARN([bootdir $bootdir not found]) bootdir="missing" dircheck="fail" else AC_MSG_RESULT([yes]) fi AC_MSG_CHECKING([for driver directory]) if test ! -f "$driverdir/Makefile" ; then AC_MSG_WARN([driverdir $driverdir not found]) driverdir="missing" dircheck="fail" else AC_MSG_RESULT([yes]) fi AC_MSG_CHECKING([for hostapps directory]) if test ! -f "$hostappsdir/configure.ac" ; then AC_MSG_WARN([hostappsdir $hostappsdir not found]) hostappsdir="missing" dircheck="fail" else AC_MSG_RESULT([yes]) fi AC_SUBST(appsdir) AC_SUBST(bootdir) AC_SUBST(driverdir) AC_SUBST(hostappsdir) AC_SUBST(gnuserver) AC_SUBST(defaultserver) AC_PATH_PROG(M4,m4,no) if test "$M4" = "no"; then AC_MSG_WARN(No m4 found) fi AC_PROG_CXX if test "$CXX" = "g++" -a "$GXX" != "yes"; then AC_MSG_ERROR(No g++ found) fi AC_PROG_LEX if test "$LEX" != "flex"; then AC_MSG_ERROR(No flex found) fi AC_PROG_YACC if test "$YACC" != "bison -y"; then AC_MSG_ERROR(No bison found) fi if test "$enable_flashrules" = "yes"; then if test "$enable_uclibc" = "yes"; then MKLIBS="$hostappsdir/mklibs/mklibs_uclibc.py" else MKLIBS="$hostappsdir/mklibs/mklibs.py" fi [[ -x "$MKLIBS" ] && true || chmod +x "$MKLIBS" ] AC_SUBST(MKLIBS) AC_PATH_PROG(MKCRAMFS,mkcramfs,no) if test "$MKCRAMFS" = "no"; then AC_MSG_WARN(using tuxbox cramfs) MKCRAMFS=$hostprefix/bin/mkcramfs fi AC_PATH_PROG(MKJFFS2,mkjffs2,no) if test "$MKJFFS2" = "no"; then AC_PATH_PROG(MKFSJFFS2,mkfs.jffs2,no) if test "$MKFSJFFS2" = "no"; then AC_MSG_WARN(using tuxbox mkfs.jffs2) MKFSJFFS2="$hostprefix/bin/mkfs.jffs2" fi MKJFFS2="$MKFSJFFS2" fi fi ################################################################ # ccache # AC_ARG_ENABLE(ccache, AS_HELP_STRING(--enable-ccache, enable ccache supported compiling ), [case "${enableval}" in yes) CCACHE=ccache ;; esac],[enable_ccache=no]) AM_CONDITIONAL(ENABLE_CCACHE,test "$enable_ccache" = "yes") # optional ccache settings AC_ARG_WITH(ccachedir, [ --with-ccachedir=DIR directory where ccache is installed ], [ccachedir="$with_ccachedir"], [if [[ -e $hostprefix/bin/ccache ]]; then ccachedir=$hostprefix/bin else ccachedir=$(dirname `which ccache`) fi]) AC_ARG_WITH(maxcachesize, [ --with-maxcachesize=SIZE maximal ccachesize for ccache ], [maxcachesize="$with_maxcachesize"],[maxcachesize="-1"]) AC_ARG_WITH(maxcachefiles, [ --with-maxcachefiles=COUNT maximal count of cachefiles for ccache ], [maxcachefiles="$with_maxcachefiles"],[maxcachefiles="-1"]) if test "$enable_ccache" = "yes"; then if [[ -e $ccachedir/ccache ]]; then if test $maxcachesize != -1; then $ccachedir/ccache -M $maxcachesize fi if test $maxcachefiles != -1; then $ccachedir/ccache -F $maxcachefiles fi ccacheinfo=$($ccachedir/ccache -s) else enable_ccache="no" ccacheinfo="ccache is not installed please run make ccache or install it and configure again" fi fi AC_SUBST(ccachedir) AC_SUBST(maxcachesize) AC_SUBST(maxcachefiles) AC_SUBST(ccacheinfo) # ################################################################ FONTDIR="/share/fonts" AC_SUBST(FONTDIR) UCODEDIR="/var/tuxbox/ucodes" AC_SUBST(UCODEDIR) CLEANUP="rm -rf" AC_SUBST(CLEANUP) DEPSCLEANUP="rm -f" AC_SUBST(DEPSCLEANUP) # # core # AC_SUBST(KERNELVERSION) TUXBOX_NEWMAKE_WARNING TUXBOX_RULES_MAKE(uboot) TUXBOX_RULES_MAKE(linux) TUXBOX_RULES_MAKE(linux24) if test "$enable_kernel26" = "yes"; then KERNELVERSION=$VERSION_linux else KERNELVERSION=$VERSION_linux24 fi TUXBOX_RULES_MAKE_EXDIR(binutils) TUXBOX_RULES_MAKE_EXDIR(bootstrap_gcc) TUXBOX_RULES_MAKE_EXDIR(glibc) TUXBOX_RULES_MAKE_EXDIR(gcc) TUXBOX_RULES_MAKE(uclibc) # # root # TUXBOX_RULES_MAKE(busybox) TUXBOX_RULES_MAKE(automount) TUXBOX_RULES_MAKE(nfs_utils) TUXBOX_RULES_MAKE(fuse) if test "$enable_kernel26" != "yes"; then TUXBOX_RULES_MAKE(fusekernel) fi TUXBOX_RULES_MAKE(djmount) TUXBOX_RULES_MAKE(ftpd) TUXBOX_RULES_MAKE(module_init_tools) TUXBOX_RULES_MAKE(modutils) TUXBOX_RULES_MAKE(netkit_telnet) TUXBOX_RULES_MAKE(portmap) TUXBOX_RULES_MAKE(procps) TUXBOX_RULES_MAKE(udev) TUXBOX_RULES_MAKE(watchdog) TUXBOX_RULES_MAKE(mrouted) TUXBOX_RULES_MAKE(samba) TUXBOX_RULES_MAKE(cramfs) TUXBOX_RULES_MAKE(squashfs) TUXBOX_RULES_MAKE(dosfstools) # # contrib libs # TUXBOX_RULES_MAKE(libboost) TUXBOX_RULES_MAKE(libcommoncplusplus) TUXBOX_RULES_MAKE(libcrypto) TUXBOX_RULES_MAKE(libcurl) TUXBOX_RULES_MAKE(libdirectfb) TUXBOX_RULES_MAKE(libdirectfbpp) TUXBOX_RULES_MAKE(libppdirectfb) TUXBOX_RULES_MAKE(libdvb) TUXBOX_RULES_MAKE(libdvbpsi) TUXBOX_RULES_MAKE(libexpat) TUXBOX_RULES_MAKE(libffi) TUXBOX_RULES_MAKE(libfreetype) TUXBOX_RULES_MAKE(libfribidi) TUXBOX_RULES_MAKE(libid3tag) TUXBOX_RULES_MAKE(libgmp) TUXBOX_RULES_MAKE(libmad) TUXBOX_RULES_MAKE(libncurses) TUXBOX_RULES_MAKE(libjpeg) TUXBOX_RULES_MAKE(libungif) TUXBOX_RULES_MAKE(libpcap) TUXBOX_RULES_MAKE(libpng) TUXBOX_RULES_MAKE(libreadline) TUXBOX_RULES_MAKE(libsdl) TUXBOX_RULES_MAKE(libsigc) TUXBOX_RULES_MAKE(libvorbisidec) TUXBOX_RULES_MAKE(libxml2) TUXBOX_RULES_MAKE(libz) TUXBOX_RULES_MAKE(libglib) TUXBOX_RULES_MAKE(libiconv) TUXBOX_RULES_MAKE(libtool) TUXBOX_RULES_MAKE(libFLAC) TUXBOX_RULES_MAKE(libgettext) # # contrib apps # TUXBOX_RULES_MAKE(bzip2) TUXBOX_RULES_MAKE(console_data) TUXBOX_RULES_MAKE(console_tools) TUXBOX_RULES_MAKE(kbd) TUXBOX_RULES_MAKE(directfb_examples) TUXBOX_RULES_MAKE(fbset) TUXBOX_RULES_MAKE(lirc) TUXBOX_RULES_MAKE(lsof) TUXBOX_RULES_MAKE(ssh) TUXBOX_RULES_MAKE(tcpdump) TUXBOX_RULES_MAKE(bonnie) TUXBOX_RULES_MAKE(vdr) TUXBOX_RULES_MAKE(lufs) TUXBOX_RULES_MAKE(dropbear) TUXBOX_RULES_MAKE(kermit) TUXBOX_RULES_MAKE(wget) TUXBOX_RULES_MAKE(ncftp) TUXBOX_RULES_MAKE(screen) TUXBOX_RULES_MAKE(lzma_utils) # # ide apps # TUXBOX_RULES_MAKE(hdparm) TUXBOX_RULES_MAKE(e2fsprogs) TUXBOX_RULES_MAKE(utillinux) TUXBOX_RULES_MAKE(parted) TUXBOX_RULES_MAKE(hddtemp) TUXBOX_RULES_MAKE(xfsprogs) TUXBOX_RULES_MAKE(smartmontools) # # ccache # TUXBOX_RULES_MAKE(ccache) # # msttf # TUXBOX_RULES_MAKE(cabextract) TUXBOX_RULES_MAKE(msttf) # # additional # TUXBOX_RULES_MAKE(gdb) TUXBOX_RULES_MAKE(insight) TUXBOX_RULES_MAKE(ltrace) TUXBOX_RULES_MAKE(strace) TUXBOX_RULES_MAKE(nano) TUXBOX_RULES_MAKE(mc) TUXBOX_RULES_MAKE(joe) TUXBOX_RULES_MAKE(bash) # # java # TUXBOX_RULES_MAKE(kaffe) TUXBOX_RULES_MAKE(kaffeh) # # fun stuff # TUXBOX_RULES_MAKE(gnuboy) TUXBOX_RULES_MAKE(scummvm) TUXBOX_RULES_MAKE(sdldoom) TUXBOX_RULES_MAKE(tinygl) # # dvb apps # TUXBOX_RULES_MAKE(dvbdate) TUXBOX_RULES_MAKE(dvbstream) TUXBOX_RULES_MAKE(dvbtext) TUXBOX_RULES_MAKE(dvbtune) TUXBOX_RULES_MAKE(vls) # # bluetooth # TUXBOX_RULES_MAKE(bluez_hcidump) TUXBOX_RULES_MAKE(bluez_libs) TUXBOX_RULES_MAKE(bluez_pan) TUXBOX_RULES_MAKE(bluez_sdp) TUXBOX_RULES_MAKE(bluez_utils) # # internal # AC_SUBST_FILE(ARCHIVE) ARCHIVE=Makefile-archive AC_CONFIG_COMMANDS_PRE([ AC_MSG_NOTICE([creating Makefile-archive]) ${srcdir}/rules-archive.pl ${srcdir}/rules-archive > Makefile-archive ]) # # summary # if test "$enable_kernel26" == "yes"; then used_kernelversion="2.6" else used_kernelversion="2.4" fi if test "$enable_uclibc" == "yes"; then used_libc="uclibc" else used_libc="glibc" fi TUXBOX_NEWMAKE_WARNING AC_MSG_RESULT([ summary: ---------------------------------------- target cpu: $CPU_MODEL kernel: $used_kernelversion libc: $used_libc threads: $GLIBC_PTHREADS target: $target host: $host flash rules: $enable_flashrules target prefix: $targetprefix host prefix: $hostprefix boot prefix: $bootprefix build prefix: $buildprefix root partition size: $ROOT_PARTITION_SIZE LZMA support: $enable_lzma default locale: $DEFAULTLOCALE serversupport: $serversupport checkImage: $CHECKIMAGE_BEHAVIOR target apps directory: $appsdir boot directory: $bootdir driver directory: $driverdir host apps directory: $hostappsdir logo directory: $logosdir customization directory: $customizationsdir ucode directory: $ucodesdir GNU server: $gnuserver default server: $defaultserver update http prefix: $updatehttpprefix IDE support: $enable_ide Ext2/3 support for IDE: $enable_ext3 XFS support for IDE: $enable_xfs NFS server: $enable_nfsserver Samba server: $enable_sambaserver dosfstools: $enable_dosfstools Neutrino UPnP-support: $enable_upnp FLAC support: $enable_flac German keymaps: $enable_german_keymaps ---------------------------------------- ccache support: $enable_ccache ccache installdir: $ccachedir $ccacheinfo ---------------------------------------- ]) TUXBOX_NEWMAKE_WARNING if test "$dircheck" = "fail"; then AC_MSG_RESULT([ ****************************************************************** * !!!WARNING!!! * * one or more of your CVS source directories could not be found, * * (for details see above), did you maybe supply an incorrect * * --with-cvsdir argument to configure? * * !!!WARNING!!! * ****************************************************************** ]) fi TUXBOX_CUSTOMIZE='[[ -x $(customizationsdir)/$(notdir $@)-local.sh ] && KERNEL='$used_kernelversion' KERNELVERSION=$(KERNELVERSION) LIBC='$used_libc' $(customizationsdir)/$(notdir $@)-local.sh $(flashprefix) $(buildprefix) || true]' AC_SUBST(TUXBOX_CUSTOMIZE) TUXBOX_YADD_CUSTOMIZE='[[ -x $(customizationsdir)/$(notdir $@)-local.sh ] && KERNEL='$used_kernelversion' KERNELVERSION=$(KERNELVERSION) LIBC='$used_libc' $(customizationsdir)/$(notdir $@)-local.sh $(targetprefix) $(buildprefix) || true]' AC_SUBST(TUXBOX_YADD_CUSTOMIZE) FLASHROOTDIR_MODIFIED='touch $(flashprefix)/root' AC_SUBST(FLASHROOTDIR_MODIFIED) #reset ccacheinfo="" AC_CONFIG_FILES([ Makefile root/Makefile root/etc/Makefile root/etc/init.d/Makefile root/etc/network/Makefile root/share/Makefile root/share/udhcpc/Makefile rules-downcheck.pl ]) AC_CONFIG_COMMANDS([rules-downcheck-chmod],[chmod +x rules-downcheck.pl]) AC_OUTPUT TUXBOX_NEWMAKE_WARNING