pax_global_header00006660000000000000000000000064114000330100014470gustar00rootroot0000000000000052 comment=ef7ce4e7e8b8fe8e7b08b782d8abed22cf66c5dc dvd95/000077500000000000000000000000001140003301000117675ustar00rootroot00000000000000dvd95/.gitignore000066400000000000000000000005061140003301000137600ustar00rootroot00000000000000*.[oa] *.lo *.so .protect/* */.protect/* */*/.protect/* */*/*/.protect/* err err[1-9] *gz *.err *.log *.new.* *.old.* *.sos.* *.sos *.old *.dbg *.bak *~ src/dvd95 autom4te.cache/* dvdauthor/.deps/* .deps/* src/.deps/* *.gmo *.orig *.la Makefile stamp-it *.patch intltool* libtool config.h config.status src/sos stamp-h1 INFOS dvd95/AUTHORS000066400000000000000000000000141140003301000130320ustar00rootroot00000000000000J.F. COULON dvd95/BuildDeb.sh000077500000000000000000000001651140003301000140020ustar00rootroot00000000000000#!/bin/bash # Debian builder # make dist # Archive=`ls -ltr dvd95**.tar.gz | tail -1` dpkg-buildpackage -rfakeroot dvd95/BuildRpm.sh000077500000000000000000000005401140003301000140430ustar00rootroot00000000000000#!/bin/bash if [ ! -d ~/rpm ] ; then mkdir ~/rpm mkdir ~/rpm/SOURCES mkdir ~/rpm/SPECS mkdir ~/rpm/BUILD mkdir ~/rpm/RPMS mkdir ~/rpm/RPMS/i386 mkdir ~/rpm/SRPMS fi if [ ! -f ~/.rpmmacros ] ; then echo "%_topdir $HOME/rpm" >> ~/.rpmmacros fi make dist cp dvd95*.tar.gz ~/rpm/SOURCES rpmbuild -ba dvd95.spec echo "RPMS build at $HOME/rpm/RPMS" dvd95/COPYING000077700000000000000000000000001140003301000202262/usr/share/automake-1.11/COPYINGustar00rootroot00000000000000dvd95/ChangeLog000066400000000000000000000165661140003301000135570ustar00rootroot00000000000000un fév 6 23:48:52 CET 2006 - Correction d'un bug d'init des variable du requantizer (requant_varinit()) provoquait des saccades video (requant.c) * Passage en version 1.0p3 lun fév 13 22:39:12 CET 2006 - Ajout du bouton PAUSE * Passage en version 1.0p4 mar fév 14 22:50:54 CET 2006 - Ajout vitesse de lecture du DVD - Mise de windows en modal * Passage en version 1.0B5p0 jeu fév 16 23:39:53 CET 2006 - Refait la methode dvdcopy (copy sans les menus) avec vaporize et dvdauthor * Passage en version 1.0B6p0 mar fév 21 23:25:01 CET 2006 - Ajout algorithme de calcul dynamique du facteur de requant pour le mode COPY. (dvd2vob.c) * Passage en version 1.0B7p0 jeu fév 23 00:30:47 CET 2006 jef - Option de compilation -O3 - Legere optims dans le requant - Correction pour obtenir l'id de stream audio (dvdcopy.c+dvdbackup.c) * Passage en version 1.0B7p1 Fri Feb 24 00:58:24 CET 2006 jef - Internationalisation (en) * Passage en version 1.0B8p0 lun fév 27 22:04:03 CET 2006 - Reprise du code de dvdauthor0.6-11 avec correction pb d'offset Creation d'une librairie pour appeler directement dvdauthor - Ajout parametrage mode qualit dynamique - Ajout gestion qualit dynamique en mode backup * Passage en version 1.0B9p0 mar fév 28 23:38:57 CET 2006 jef - Ajout Patient() - Ajout son echec/success * Passage en version 1.0B10p0 jeu mar 23 21:40:36 CET 2006 - Ajout icone aux fenetres - Refait la gestion de la destruction des fenetres mar mar 28 00:15:49 CEST 2006 - Correction bug dans dvdauthor * Passage en version 1.0B10p1 mar mai 30 21:21:32 CEST 2006 - Correction bug lors du gravage, le device n'est pas fermer donc eject impossible (src/dvd2vob.c + dvdbackup.c) - Le toggle graver est passer en config pour avoir de la memoire (src/callbacks.c) - Verification que les rep tmp et iso ne sont pas les memes ! (src/gconfig.c) * Passage en version 1.0p0 jeu jui 6 22:21:28 CEST 2006 - Gestion erreur de lecture dans DVDReadBlocks * Passage en version 1.1p0 jeu oct 12 23:18:40 CEST 2006 - Correction d'erreur de format IFO pour certain DVD (Entraine un refus de faire l'image iso avec mkisofs (image a zero)) (src/ifo.c+dvdbackup.c) * Passage en version 1.1p1 mer oct 18 22:55:16 CEST 2006 - Correction d'erreur dans le format IFO (vts_c_adt) (src/dvdbackup.c-UpdateIfo) - Ajout trace pour debug (src/dvdbackup.c) lun oct 30 22:46:06 CET 2006 - Mise de l'interface au carre (fc6) - Prise en compte de la taille des menus restant dans le calcul dynamique. (Phenomene des DVD > 4.7gigas) - Correction de bug memoire (merci valgrind) (Plantage sur certain dvd 'coredump') * Passage en version 1.1p2 mer nov 1 22:50:41 CET 2006 - Correction sur taille des menus dans le calcul dynamique (src/dvdbackup.c) lun nov 6 20:54:52 CET 2006 - Correction suite a mail de k9copy sur updatePGCI_UT (src/ifo.c) ven nov 10 00:20:15 CET 2006 - Refait le requant en mode dynamique pour les dvd tres longs (src/vaporize.c+requant.c) mer nov 22 00:38:56 CET 2006 - Refait l'analyse de la structure du DVD avec memorisation lors du scanning. (src/dvdcopy.c+dvdtools.c+dvdcells.c) mar jan 23 23:12:16 CET 2007 - Refait completement interface - Ajout option pour le generique de fin * Passage en version 1.2p0 mar fév 13 20:54:26 CET 2007 - Ajout gestion des loop devices - Patch to allow zero sub or zero audio in dvd2vob.c mar avr 10 21:55:52 CEST 2007 - Added cs el pt_BR translations jeu mai 10 21:29:08 CEST 2007 - Corrected cell selection problem (src/dvdcell.c+dvdcopy.c) * Passage en version 1.2p1 ven jun 1 21:42:18 CEST 2007 - Corrected bug with lpcm tracks in dvdauthor mode - Added Deutch language ( Thanks to : Stefan Nagy ) - Added ee_ET translation mer jun 20 22:52:46 CEST 2007 - Vamps: some fatal error switched to warning in check_video_packet (this arrives with an old dvd) mar aoû 7 23:06:44 CEST 2007 - Added zeroing of region code in VIDEO_TS.IFO (src/ifo.c) jeu aoû 9 22:27:42 CEST 2007 - Added 60 seconds timeout to second phase message - Added config option for sound alerts ven sep 28 21:32:13 CEST 2007 - Added display of requanted mpeg2 stream - Management of read errors for some corrupted DVD - Correction of subtitles string definition - Added dutch translation nl.po (netherland) (Thanks to: Harry van der Wolf) * Passage en version 1.3p0 mar déc 18 01:08:57 CET 2007 - Changes in BuildCells to select the right cell list with some DVDs. - Added option --disable-libmpeg2 to configure to compile without libmpeg2 support. - Added language configuration option - Rework on quality estimation - Adjust DVD5 size to 4.6 gigs for better quality on long videos * Passage en version 1.3p1 jeu jan 10 21:17:03 CET 2008 - Adjust DVD5 size to 4.37 gigs to avoid too large iso image files - Rework media detection with facility to load an iso file * Passage en version 1.3p2 mer jui 16 23:29:11 CEST 2008 - Added GIT repository to handle changes - Applied Matthias Ringwald MAC OSX patches lun aoû 4 23:39:26 CEST 2008 - Changes in DVD sizes to accomodate DVD+R format modified: src/const.h - Add support to "nolang" option in dvdauthor when language is not set modified: src/dvd2vob.c - Added --dvddir option to pass a dvddump tree modified: src/main.c modified: src/systools.c modified: src/dvdinfo.c - Fix a weird dvd stream structure modified: src/vaporize.c - Changed message when no enought space to convert media modified: po/cs.po modified: po/de.po modified: po/el.po modified: po/en.po modified: po/es.po modified: po/et_EE.po modified: po/hu.po modified: po/it.po modified: po/nl.po modified: po/pt_BR.po modified: src/dvd2vob.c modified: src/dvdbackup.c - Added Italian translation po/it.gmo modified: src/interface.c modified: src/main.c modified: dvd95.glade modified: po/Makefile modified: po/Makefile.in modified: configure.in * Passage en version 1.4p0 jeu. janv. 22 23:07:40 CET 2009 - Added AVI MPEG4/X264 support - Added PSP MPEG4 support - 'Some' bugs fix WARNING: Need libdvdread > 0.9.4 (Fedora 9&10 libdvdread seems broken when converting to dvd with menus) Ubuntu 8.10 : In order to encode mpeg4 videos we need mpeg4 codec in ffmpeg so : sudo apt-get purge ffmpeg sudo apt-get update sudo apt-get install libavcodec-unstripped-51 libavdevice-unstripped-52 libavformat-unstripped-52 libavutil-unstripped-49 libpostproc-unstripped-51 libswscale-unstripped-0 ffmpeg * Passage en version 1.5p0 lun. mai 18 21:40:41 CEST 2009 - Corrected profile handling when a codec is no more present in mencoder. - In ISO file open dialog handle files with ".ISO" suffix. * Passage en version 1.5p1 jeu. juin 4 21:12:23 CEST 2009 - More precise description of audio track type - Added support for -aid audioId option in mencoder * Passage en version 1.5p2 ven. juil. 3 21:52:00 CEST 2009 - Now can handle certain badly mastered DVDs - Correct profile selection when not 1/1 with profile.c - Rollback to 9.0.4 for libdvdread version requirement - Added little README for Ubuntu 9.04 compile and install - Correct configuration options ISODIR default to $HOME freeDevice is called avec gtk_widget_show() player default to mplayer * Passage en version 1.5p3 jeu. févr. 4 22:53:50 CET 2010 - Added Fifo method to rip DVD2Avi without temporary file active on all mencoder on pass profiles dvd95/INSTALL000077700000000000000000000000001140003301000202222/usr/share/automake-1.11/INSTALLustar00rootroot00000000000000dvd95/Makefile.am000066400000000000000000000020501140003301000140200ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in SUBDIRS = dvdauthor src po EXTRA_DIST = \ autogen.sh \ ltmain.sh \ libtool \ dvd95.glade \ dvd95.gladep \ dvd95.spec \ debian \ dvd95.desktop install-data-local: @$(NORMAL_INSTALL) if test -d $(srcdir)/pixmaps; then \ $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \ for pixmap in $(srcdir)/pixmaps/*; do \ if test -f $$pixmap; then \ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \ fi \ done \ fi ; \ $(mkinstalldirs) $(DESTDIR)$(datadir)/applications; \ $(INSTALL_DATA) dvd95.desktop $(DESTDIR)$(datadir)/applications/dvd95.desktop; dist-hook: if test -d pixmaps; then \ mkdir $(distdir)/pixmaps; \ for pixmap in pixmaps/*; do \ if test -f $$pixmap; then \ cp -p $$pixmap $(distdir)/pixmaps; \ fi \ done \ fi ; \ if test -d debian; then \ mkdir $(distdir)/debian; \ for i in debian/*; do \ if test -f $$i; then \ cp -p $$i $(distdir)/debian; \ fi \ done \ fi dvd95/Makefile.in000066400000000000000000000600371140003301000140420ustar00rootroot00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ TODO acconfig.h config.guess config.sub depcomp install-sh \ ltmain.sh missing mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FFMPEG_PROG = @FFMPEG_PROG@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAUTHOR_CFLAGS = @LIBAUTHOR_CFLAGS@ LIBAUTHOR_LIBS = @LIBAUTHOR_LIBS@ LIBDVDREAD_CFLAGS = @LIBDVDREAD_CFLAGS@ LIBDVDREAD_LIBS = @LIBDVDREAD_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MENCODER_PROG = @MENCODER_PROG@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MPLAYER_PROG = @MPLAYER_PROG@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = dvdauthor src po EXTRA_DIST = \ autogen.sh \ ltmain.sh \ libtool \ dvd95.glade \ dvd95.gladep \ dvd95.spec \ debian \ dvd95.desktop all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(top_srcdir)/acconfig.h ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-data-local install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \ dist-zip distcheck distclean distclean-generic distclean-hdr \ distclean-libtool distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-data-local install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am install-data-local: @$(NORMAL_INSTALL) if test -d $(srcdir)/pixmaps; then \ $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \ for pixmap in $(srcdir)/pixmaps/*; do \ if test -f $$pixmap; then \ $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \ fi \ done \ fi ; \ $(mkinstalldirs) $(DESTDIR)$(datadir)/applications; \ $(INSTALL_DATA) dvd95.desktop $(DESTDIR)$(datadir)/applications/dvd95.desktop; dist-hook: if test -d pixmaps; then \ mkdir $(distdir)/pixmaps; \ for pixmap in pixmaps/*; do \ if test -f $$pixmap; then \ cp -p $$pixmap $(distdir)/pixmaps; \ fi \ done \ fi ; \ if test -d debian; then \ mkdir $(distdir)/debian; \ for i in debian/*; do \ if test -f $$i; then \ cp -p $$i $(distdir)/debian; \ fi \ done \ fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dvd95/NEWS000066400000000000000000000000001140003301000124540ustar00rootroot00000000000000dvd95/README000066400000000000000000000007421140003301000126520ustar00rootroot00000000000000Compilation and installation for Ubuntu 9.04 : sudo apt-get install intltool libgnomeui-dev libdvdread-dev libmpeg2-4-dev mplayer mencoder ffmpeg ./configure make sudo make install Compilation and installation for Fedora 11 : With root rights : Enable rpmfusion free and non free repo (see http://rpmfusion.org/Configuration) yum install gcc intltool libgnomeui-devel libdvdread-devel libmpeg2-devel mplayer mencoder ffmpeg With user rights : make With root rights : make install dvd95/TODO000066400000000000000000000000001140003301000124450ustar00rootroot00000000000000dvd95/acconfig.h000066400000000000000000000002161140003301000137100ustar00rootroot00000000000000#undef ENABLE_NLS #undef HAVE_CATGETS #undef HAVE_GETTEXT #undef GETTEXT_PACKAGE #undef HAVE_LC_MESSAGES #undef HAVE_STPCPY #undef HAVE_LIBSM dvd95/aclocal.m4000066400000000000000000012516751140003301000136500ustar00rootroot00000000000000# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, [m4_warning([this file was generated for autoconf 2.65. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # Copyright (C) 1995-2002 Free Software Foundation, Inc. # Copyright (C) 2001-2003,2004 Red Hat, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # # Macro to add for using GNU gettext. # Ulrich Drepper , 1995, 1996 # # Modified to never use included libintl. # Owen Taylor , 12/15/1998 # # Major rework to remove unused code # Owen Taylor , 12/11/2002 # # Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor 5/30/3002 # # Modified to require ngettext # Matthias Clasen 08/06/2004 # # We need this here as well, since someone might use autoconf-2.5x # to configure GLib then an older version to configure a package # using AM_GLIB_GNU_GETTEXT AC_PREREQ(2.53) dnl dnl We go to great lengths to make sure that aclocal won't dnl try to pull in the installed version of these macros dnl when running aclocal in the glib directory. dnl m4_copy([AC_DEFUN],[glib_DEFUN]) m4_copy([AC_REQUIRE],[glib_REQUIRE]) dnl dnl At the end, if we're not within glib, we'll define the public dnl definitions in terms of our private definitions. dnl # GLIB_LC_MESSAGES #-------------------- glib_DEFUN([GLIB_LC_MESSAGES], [AC_CHECK_HEADERS([locale.h]) if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi fi]) # GLIB_PATH_PROG_WITH_TEST #---------------------------- dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) # GLIB_WITH_NLS #----------------- glib_DEFUN([GLIB_WITH_NLS], dnl NLS is obligatory [USE_NLS=yes AC_SUBST(USE_NLS) gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= AC_CHECK_HEADER(libintl.h, [gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, [AC_TRY_LINK([ #include ], [return !ngettext ("","", 1)], gt_cv_func_ngettext_libc=yes, gt_cv_func_ngettext_libc=no) ]) if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, [AC_TRY_LINK([ #include ], [return !dgettext ("","")], gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no) ]) fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CHECK_FUNCS(bind_textdomain_codeset) fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dgettext, gt_cv_func_dgettext_libintl=yes)])]) if test "$gt_cv_func_dgettext_libintl" != "yes" ; then AC_MSG_CHECKING([if -liconv is needed to use gettext]) AC_MSG_RESULT([]) AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dcgettext, [gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv], :,-liconv)], :,-liconv) fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset AC_CHECK_FUNCS(bind_textdomain_codeset) LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT,1, [Define if the GNU gettext() function is already present or preinstalled.]) GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" AC_CHECK_FUNCS(dcgettext) MSGFMT_OPTS= AC_MSG_CHECKING([if msgfmt accepts -c]) GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Project-Id-Version: test 1.0\n" "PO-Revision-Date: 2007-02-15 12:01+0100\n" "Last-Translator: test \n" "Language-Team: C \n" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) AC_SUBST(MSGFMT_OPTS) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [CATOBJEXT=.gmo DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share and dnl and CATOBJEXT=.gmo in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [CATOBJEXT=.gmo DATADIRNAME=share], [CATOBJEXT=.mo DATADIRNAME=lib]) ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac]) LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi ]) if test "$gt_cv_have_gettext" = "yes" ; then AC_DEFINE(ENABLE_NLS, 1, [always defined to indicate that i18n is enabled]) fi dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is not GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po AC_OUTPUT_COMMANDS( [case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac]) dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.in. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(DATADIRNAME) AC_SUBST(GMOFILES) AC_SUBST(INSTOBJEXT) AC_SUBST(INTLLIBS) AC_SUBST(PO_IN_DATADIR_TRUE) AC_SUBST(PO_IN_DATADIR_FALSE) AC_SUBST(POFILES) AC_SUBST(POSUB) ]) # AM_GLIB_GNU_GETTEXT # ------------------- # Do checks necessary for use of gettext. If a suitable implementation # of gettext is found in either in libintl or in the C library, # it will set INTLLIBS to the libraries needed for use of gettext # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() # on various variables needed by the Makefile.in.in installed by # glib-gettextize. dnl glib_DEFUN([GLIB_GNU_GETTEXT], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_HEADER_STDC])dnl GLIB_LC_MESSAGES GLIB_WITH_NLS if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but ($top_srcdir). dnl Try to locate is. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) dnl Generate list of files to be processed by xgettext which will dnl be included in po/Makefile. test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES ]) # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) # ------------------------------- # Define VARIABLE to the location where catalog files will # be installed by po/Makefile. glib_DEFUN([GLIB_DEFINE_LOCALEDIR], [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl glib_save_prefix="$prefix" glib_save_exec_prefix="$exec_prefix" glib_save_datarootdir="$datarootdir" test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix=$prefix datarootdir=`eval echo "${datarootdir}"` if test "x$CATOBJEXT" = "x.mo" ; then localedir=`eval echo "${libdir}/locale"` else localedir=`eval echo "${datadir}/locale"` fi prefix="$glib_save_prefix" exec_prefix="$glib_save_exec_prefix" datarootdir="$glib_save_datarootdir" AC_DEFINE_UNQUOTED($1, "$localedir", [Define the location where the catalogs will be installed]) ]) dnl dnl Now the definitions that aclocal will find dnl ifdef(glib_configure_in,[],[ AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) ])dnl # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) # # Create a temporary file with TEST-FILE as its contents and pass the # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with # 0 and perform ACTION-IF-FAIL for any other exit status. AC_DEFUN([GLIB_RUN_PROG], [cat >conftest.foo <<_ACEOF $2 _ACEOF if AC_RUN_LOG([$1 conftest.foo]); then m4_ifval([$3], [$3], [:]) m4_ifvaln([$4], [else $4])dnl echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD fi]) dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) # serial 40 IT_PROG_INTLTOOL AC_DEFUN([IT_PROG_INTLTOOL], [ AC_PREREQ([2.50])dnl AC_REQUIRE([AM_NLS])dnl case "$am__api_version" in 1.[01234]) AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) ;; *) ;; esac if test -n "$1"; then AC_MSG_CHECKING([for intltool >= $1]) INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` ] AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) fi AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) fi INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' _IT_SUBST(INTLTOOL_DESKTOP_RULE) _IT_SUBST(INTLTOOL_DIRECTORY_RULE) _IT_SUBST(INTLTOOL_KEYS_RULE) _IT_SUBST(INTLTOOL_PROP_RULE) _IT_SUBST(INTLTOOL_OAF_RULE) _IT_SUBST(INTLTOOL_PONG_RULE) _IT_SUBST(INTLTOOL_SERVER_RULE) _IT_SUBST(INTLTOOL_SHEET_RULE) _IT_SUBST(INTLTOOL_SOUNDLIST_RULE) _IT_SUBST(INTLTOOL_UI_RULE) _IT_SUBST(INTLTOOL_XAM_RULE) _IT_SUBST(INTLTOOL_KBD_RULE) _IT_SUBST(INTLTOOL_XML_RULE) _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) _IT_SUBST(INTLTOOL_CAVES_RULE) _IT_SUBST(INTLTOOL_SCHEMAS_RULE) _IT_SUBST(INTLTOOL_THEME_RULE) _IT_SUBST(INTLTOOL_SERVICE_RULE) _IT_SUBST(INTLTOOL_POLICY_RULE) # Check the gettext tools to make sure they are GNU AC_PATH_PROG(XGETTEXT, xgettext) AC_PATH_PROG(MSGMERGE, msgmerge) AC_PATH_PROG(MSGFMT, msgfmt) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) fi xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) fi AC_PATH_PROG(INTLTOOL_PERL, perl) if test -z "$INTLTOOL_PERL"; then AC_MSG_ERROR([perl not found]) fi AC_MSG_CHECKING([for perl >= 5.8.1]) $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 if test $? -ne 0; then AC_MSG_ERROR([perl 5.8.1 is required for intltool]) else IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" AC_MSG_RESULT([$IT_PERL_VERSION]) fi if test "x$2" != "xno-xml"; then AC_MSG_CHECKING([for XML::Parser]) if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then AC_MSG_RESULT([ok]) else AC_MSG_ERROR([XML::Parser perl module is required for intltool]) fi fi # Substitute ALL_LINGUAS so we can use it in po/Makefile AC_SUBST(ALL_LINGUAS) # Set DATADIRNAME correctly if it is not set yet # (copied from glib-gettext.m4) if test -z "$DATADIRNAME"; then AC_LINK_IFELSE( [AC_LANG_PROGRAM([[]], [[extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr]])], [DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share dnl in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [DATADIRNAME=share], [DATADIRNAME=lib]) ;; *) [DATADIRNAME=lib] ;; esac]) fi AC_SUBST(DATADIRNAME) IT_PO_SUBDIR([po]) ]) # IT_PO_SUBDIR(DIRNAME) # --------------------- # All po subdirs have to be declared with this macro; the subdir "po" is # declared by IT_PROG_INTLTOOL. # AC_DEFUN([IT_PO_SUBDIR], [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. dnl dnl The following CONFIG_COMMANDS should be exetuted at the very end dnl of config.status. AC_CONFIG_COMMANDS_PRE([ AC_CONFIG_COMMANDS([$1/stamp-it], [ if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) fi rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" >"$1/stamp-it.tmp" [sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" ] [sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r $1/POTFILES } ' "$1/Makefile.in" >"$1/Makefile"] rm -f "$1/Makefile.tmp" mv "$1/stamp-it.tmp" "$1/stamp-it" ]) ])dnl ]) # _IT_SUBST(VARIABLE) # ------------------- # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST # AC_DEFUN([_IT_SUBST], [ AC_SUBST([$1]) m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) ] ) # deprecated macros AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) # A hint is needed for aclocal from Automake <= 1.9.4: # AC_DEFUN([AC_PROG_INTLTOOL], ...) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 56 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl _LT_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "X$" | $Xsed -e "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\[$]0 --fallback-echo"')dnl " lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` ;; esac _LT_OUTPUT_LIBTOOL_INIT ]) # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) cat >"$CONFIG_LT" <<_LTEOF #! $SHELL # Generated by $as_me. # Run this file to recreate a libtool stub with the current configuration. lt_cl_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2008 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. if test "$no_create" != yes; then lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) fi ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_XSI_SHELLFNS sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES # -------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(whole_archive_flag_spec, $1)='' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=echo _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX # ----------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. m4_defun([_LT_PROG_ECHO_BACKSLASH], [_LT_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac ECHO=${lt_ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then # Yippee, $ECHO works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF [$]* _LT_EOF exit 0 fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(lt_ECHO) ]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that does not interpret backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [AC_CHECK_TOOL(AR, ar, false) test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1]) AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line __oline__ "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[[3-9]]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method == "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ const struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC*) # IBM XL 8.0 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl*) # IBM XL C 8.0/Fortran 10.1 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' ;; linux* | k*bsd*-gnu) _LT_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu) _LT_TAGVAR(link_all_deplibs, $1)=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag= tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi _LT_TAGVAR(link_all_deplibs, $1)=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE(int foo(void) {}, _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ) LDFLAGS="$save_LDFLAGS" else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then _LT_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], [[If ld is used when linking, flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [fix_srcfile_path], [1], [Fix the shell variable $srcfile for the compiler]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_PROG_CXX # ------------ # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ # compiler, we have our own version here. m4_defun([_LT_PROG_CXX], [ pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) AC_PROG_CXX if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_CXX dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_CXX], []) # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [AC_REQUIRE([_LT_PROG_CXX])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 will use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; xl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=echo else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ]) dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_PROG_F77 # ------------ # Since AC_PROG_F77 is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_F77], [ pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) AC_PROG_F77 if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_F77 dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_F77], []) # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_REQUIRE([_LT_PROG_F77])dnl AC_LANG_PUSH(Fortran 77) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${F77-"f77"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_PROG_FC # ----------- # Since AC_PROG_FC is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_FC], [ pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) AC_PROG_FC if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_FC dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_FC], []) # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_REQUIRE([_LT_PROG_FC])dnl AC_LANG_PUSH(Fortran) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${FC-"f95"} compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC="$lt_save_CC" ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC= CC=${RC-"windres"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC="$lt_save_CC" ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_XSI_SHELLFNS # --------------------- # Bourne and XSI compatible variants of some useful shell functions. m4_defun([_LT_PROG_XSI_SHELLFNS], [case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $[*] )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } dnl func_dirname_and_basename dnl A portable version of this function is already defined in general.m4sh dnl so there is no need for it here. # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[[^=]]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$[@]"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]+=\$[2]" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]=\$$[1]\$[2]" } _LT_EOF ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [0], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # Generated from ltversion.in. # serial 3017 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.2.6b]) m4_define([LT_PACKAGE_REVISION], [1.3017]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.2.6b' macro_revision='1.3017' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 4 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) # nls.m4 serial 3 (gettext-0.15) dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ(2.50) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE(nls, [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT($USE_NLS) AC_SUBST(USE_NLS) ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # This was merged into AC_PROG_CC in Autoconf. AU_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC AC_DIAGNOSE([obsolete], [$0: your code should no longer depend upon `am_cv_prog_cc_stdc', but upon `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when you adjust the code. You can also remove the above call to AC_PROG_CC if you already called it elsewhere.]) am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc ]) AU_DEFUN([fp_PROG_CC_STDC]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_MAINTAINER_MODE([DEFAULT-MODE]) # ---------------------------------- # Control maintainer-specific portions of Makefiles. # Default is to disable them, unless `enable' is passed literally. # For symmetry, `disable' may be passed as well. Anyway, the user # can override the default with the --enable/--disable switch. AC_DEFUN([AM_MAINTAINER_MODE], [m4_case(m4_default([$1], [disable]), [enable], [m4_define([am_maintainer_other], [disable])], [disable], [m4_define([am_maintainer_other], [enable])], [m4_define([am_maintainer_other], [enable]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) dnl maintainer-mode's default is 'disable' unless 'enable' is passed AC_ARG_ENABLE([maintainer-mode], [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful (and sometimes confusing) to the casual installer], [USE_MAINTAINER_MODE=$enableval], [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST([MAINT])dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR dvd95/autogen.sh000077500000000000000000000106301140003301000137700ustar00rootroot00000000000000#!/bin/sh # Run this to generate all the initial makefiles, etc. srcdir=`dirname $0` test -z "$srcdir" && srcdir=. DIE=0 if [ -n "$GNOME2_DIR" ]; then ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS" LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH" PATH="$GNOME2_DIR/bin:$PATH" export PATH export LD_LIBRARY_PATH fi (test -f $srcdir/configure.in) || { echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" echo " top-level package directory" exit 1 } (autoconf --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`autoconf' installed." echo "Download the appropriate package for your distribution," echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" DIE=1 } (grep "^AC_PROG_INTLTOOL" $srcdir/configure.in >/dev/null) && { (intltoolize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`intltool' installed." echo "You can get it from:" echo " ftp://ftp.gnome.org/pub/GNOME/" DIE=1 } } (grep "^AM_PROG_XML_I18N_TOOLS" $srcdir/configure.in >/dev/null) && { (xml-i18n-toolize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`xml-i18n-toolize' installed." echo "You can get it from:" echo " ftp://ftp.gnome.org/pub/GNOME/" DIE=1 } } (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && { (libtool --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`libtool' installed." echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/" DIE=1 } } (grep "^AM_GLIB_GNU_GETTEXT" $srcdir/configure.in >/dev/null) && { (grep "sed.*POTFILES" $srcdir/configure.in) > /dev/null || \ (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`glib' installed." echo "You can get it from: ftp://ftp.gtk.org/pub/gtk" DIE=1 } } (automake --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`automake' installed." echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/" DIE=1 NO_AUTOMAKE=yes } # if no automake, don't bother testing for aclocal test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: Missing \`aclocal'. The version of \`automake'" echo "installed doesn't appear recent enough." echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/" DIE=1 } if test "$DIE" -eq 1; then exit 1 fi if test -z "$*"; then echo "**Warning**: I am going to run \`configure' with no arguments." echo "If you wish to pass any to it, please specify them on the" echo \`$0\'" command line." echo fi case $CC in xlc ) am_opt=--include-deps;; esac for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.in -print` do dr=`dirname $coin` if test -f $dr/NO-AUTO-GEN; then echo skipping $dr -- flagged as no auto-gen else echo processing $dr ( cd $dr aclocalinclude="$ACLOCAL_FLAGS" if grep "^AM_GLIB_GNU_GETTEXT" configure.in >/dev/null; then echo "Creating $dr/aclocal.m4 ..." test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 echo "Running glib-gettextize... Ignore non-fatal messages." echo "no" | glib-gettextize --force --copy echo "Making $dr/aclocal.m4 writable ..." test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 fi if grep "^AC_PROG_INTLTOOL" configure.in >/dev/null; then echo "Running intltoolize..." intltoolize --copy --force --automake fi if grep "^AM_PROG_XML_I18N_TOOLS" configure.in >/dev/null; then echo "Running xml-i18n-toolize..." xml-i18n-toolize --copy --force --automake fi if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then if test -z "$NO_LIBTOOLIZE" ; then echo "Running libtoolize..." libtoolize --force --copy fi fi echo "Running aclocal $aclocalinclude ..." aclocal $aclocalinclude if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then echo "Running autoheader..." autoheader fi echo "Running automake --gnu $am_opt ..." automake --add-missing --gnu $am_opt echo "Running autoconf ..." autoconf ) fi done conf_flags="--enable-maintainer-mode" if test x$NOCONFIGURE = x; then echo Running $srcdir/configure $conf_flags "$@" ... $srcdir/configure $conf_flags "$@" \ && echo Now type \`make\' to compile. || exit 1 else echo Skipping configure process. fi dvd95/chenv.sh000066400000000000000000000001621140003301000134250ustar00rootroot00000000000000PATH=.:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/xbin:/u/assql/bin:/u/jef/bin:/u/jef/bin dvd95/config.guess000077500000000000000000001275341140003301000143230ustar00rootroot00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-01-23' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: dvd95/config.h.in000066400000000000000000000071311140003301000140140ustar00rootroot00000000000000/* config.h.in. Generated from configure.in by autoheader. */ #undef ENABLE_NLS #undef HAVE_CATGETS #undef HAVE_GETTEXT #undef GETTEXT_PACKAGE #undef HAVE_LC_MESSAGES #undef HAVE_STPCPY #undef HAVE_LIBSM /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD /* Define if your machine is PPC based */ #undef ARCH_PPC /* Define if your machine is x86 based */ #undef ARCH_X86 /* Define if your machine is AMD64 based */ #undef ARCH_X86_64 /* always defined to indicate that i18n is enabled */ #undef ENABLE_NLS /* Define if your CPU understands 3DNow instructions */ #undef HAVE_3DNOW /* Define if your CPU understands ASM 3DNow instructions */ #undef HAVE_ASM_3DNOW /* Define if your CPU understands ASM MMX instructions */ #undef HAVE_ASM_MMX /* Define if your CPU understands ASM SSE instructions */ #undef HAVE_ASM_SSE /* Define if your CPU understands ASM SSE2 instructions */ #undef HAVE_ASM_SSE2 /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #undef HAVE_BIND_TEXTDOMAIN_CODESET /* Define to 1 if you have the `dcgettext' function. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have the `mpeg2' library (-lmpeg2). */ #undef HAVE_LIBMPEG2 /* Define to 1 if you have the `mpeg2convert' library (-lmpeg2convert). */ #undef HAVE_LIBMPEG2CONVERT /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define if your CPU understands MMX instructions */ #undef HAVE_MMX /* Define if your CPU understands SSE instructions */ #undef HAVE_SSE /* Define if your CPU understands SSE2 instructions */ #undef HAVE_SSE2 /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ #if defined AC_APPLE_UNIVERSAL_BUILD # if defined __BIG_ENDIAN__ # define WORDS_BIGENDIAN 1 # endif #else # ifndef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN # endif #endif dvd95/config.sub000077500000000000000000001011531140003301000137530ustar00rootroot00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-01-16' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: dvd95/configure000077500000000000000000017065241140003301000137150ustar00rootroot00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error ERROR [LINENO LOG_FD] # --------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with status $?, using 1 if that was 0. as_fn_error () { as_status=$?; test $as_status -eq 0 && as_status=1 if test "$3"; then as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 fi $as_echo "$as_me: error: $1" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac ECHO=${lt_ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then # Yippee, $ECHO works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF $* _LT_EOF exit 0 fi # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="configure.in" ac_unique_file="src/main.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS FFMPEG_PROG MENCODER_PROG MPLAYER_PROG LIBAUTHOR_LIBS LIBAUTHOR_CFLAGS LIBDVDREAD_LIBS LIBDVDREAD_CFLAGS HAVE_SSE2_FALSE HAVE_SSE2_TRUE HAVE_SSE_FALSE HAVE_SSE_TRUE HAVE_3DNOW_FALSE HAVE_3DNOW_TRUE HAVE_MMX_FALSE HAVE_MMX_TRUE ARCH_PPC_FALSE ARCH_PPC_TRUE ARCH_X86_64_FALSE ARCH_X86_64_TRUE ARCH_X86_FALSE ARCH_X86_TRUE MKINSTALLDIRS POSUB POFILES PO_IN_DATADIR_FALSE PO_IN_DATADIR_TRUE INTLLIBS INSTOBJEXT GMOFILES CATOBJEXT CATALOGS MSGFMT_OPTS GETTEXT_PACKAGE PACKAGE_LIBS PACKAGE_CFLAGS PKG_CONFIG DATADIRNAME ALL_LINGUAS INTLTOOL_PERL GMSGFMT MSGFMT MSGMERGE XGETTEXT INTLTOOL_POLICY_RULE INTLTOOL_SERVICE_RULE INTLTOOL_THEME_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_CAVES_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_XML_RULE INTLTOOL_KBD_RULE INTLTOOL_XAM_RULE INTLTOOL_UI_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_SHEET_RULE INTLTOOL_SERVER_RULE INTLTOOL_PONG_RULE INTLTOOL_OAF_RULE INTLTOOL_PROP_RULE INTLTOOL_KEYS_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_DESKTOP_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE USE_NLS CPP OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL lt_ECHO RANLIB AR OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED LIBTOOL am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC target_os target_vendor target_cpu target host_os host_vendor host_cpu host build_os build_vendor build_cpu build MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_maintainer_mode enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_gnu_ld enable_libtool_lock enable_nls enable_mmx enable_3dnow enable_sse enable_sse2 enable_libmpeg2 ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error "unrecognized option: \`$ac_option' Try \`$0 --help' for more information." ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-nls do not use Native Language Support --enable-mmx enable MMX code portions (yes) --enable-3dnow enable 3DNow code portions (yes) --enable-sse enable SSE code portions (yes) --enable-sse2 enable SSE2 code portions (yes) --disable-libmpeg2 disable LIBMPEG2 support Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility PACKAGE_CFLAGS C compiler flags for PACKAGE, overriding pkg-config PACKAGE_LIBS linker flags for PACKAGE, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.65 Copyright (C) 2009 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_header_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_func # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_header_mongrel cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.65. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then ac_site_file1=$CONFIG_SITE elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.11' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do for ac_t in install-sh install.sh shtool; do if test -f "$ac_dir/$ac_t"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/$ac_t -c" break 2 fi done done if test -z "$ac_aux_dir"; then as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AWK+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=dvd95 VERSION=1.6p0 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE ac_config_headers="$ac_config_headers config.h" # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if test "${ac_cv_build+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if test "${ac_cv_host+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 $as_echo_n "checking target system type... " >&6; } if test "${ac_cv_target+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 $as_echo "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error "no acceptable C compiler found in \$PATH See \`config.log' for more details." "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { as_fn_set_status 77 as_fn_error "C compiler cannot create executables See \`config.log' for more details." "$LINENO" 5; }; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if test "${ac_cv_objext+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error "cannot compute suffix of object files: cannot compile See \`config.log' for more details." "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 $as_echo_n "checking for library containing strerror... " >&6; } if test "${ac_cv_search_strerror+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); int main () { return strerror (); ; return 0; } _ACEOF for ac_lib in '' cposix; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_strerror=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if test "${ac_cv_search_strerror+set}" = set; then : break fi done if test "${ac_cv_search_strerror+set}" = set; then : else ac_cv_search_strerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 $as_echo "$ac_cv_search_strerror" >&6; } ac_res=$ac_cv_search_strerror if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi CFLAGS="-Wall -O3" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error "no acceptable C compiler found in \$PATH See \`config.log' for more details." "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error "no acceptable C compiler found in \$PATH See \`config.log' for more details." "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.2.6b' macro_revision='1.3017' ltmain="$ac_aux_dir/ltmain.sh" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if test "${ac_cv_path_SED+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if test "${ac_cv_path_GREP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if test "${ac_cv_path_EGREP+set}" = set; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if test "${ac_cv_path_FGREP+set}" = set; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if test "${lt_cv_path_LD+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test "${lt_cv_path_NM+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$ac_tool_prefix"; then for ac_prog in "dumpbin -symbols" "link -dump -symbols" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_DUMPBIN+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in "dumpbin -symbols" "link -dump -symbols" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if test "${lt_cv_nm_interface+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:6016: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:6019: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:6022: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then : $as_echo_n "(cached) " >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OBJDUMP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ const struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 7227 "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_NMEDIT+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_LIPO+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OTOOL+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_OTOOL64+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if test "${lt_cv_apple_cc_single_mod+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " eval as_val=\$$as_ac_Header if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if test "${lt_cv_objdir+set}" = set; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8753: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8757: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl*) # IBM XL C 8.0/Fortran 10.1 on PPC lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 $as_echo "$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:9092: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:9096: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if test "${lt_cv_prog_compiler_static_works+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:9197: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:9201: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:9252: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:9256: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu) link_all_deplibs=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag= tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld='-rpath $libdir' archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi link_all_deplibs=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=echo archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo(void) {} _ACEOF if ac_fn_c_try_link "$LINENO"; then : archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 $as_echo "$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = x""yes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = x""yes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if test "${lt_cv_dlopen_self+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line 11636 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line 11732 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ac_config_commands="$ac_config_commands libtool" # Only expand once: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 $as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } case "$am__api_version" in 1.01234) as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 ;; *) ;; esac if test -n ""; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= " >&5 $as_echo_n "checking for intltool >= ... " >&6; } INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || as_fn_error "Your intltool is too old. You need intltool or later." "$LINENO" 5 fi # Extract the first word of "intltool-update", so it can be a program name with args. set dummy intltool-update; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_UPDATE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE if test -n "$INTLTOOL_UPDATE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 $as_echo "$INTLTOOL_UPDATE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "intltool-merge", so it can be a program name with args. set dummy intltool-merge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_MERGE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE if test -n "$INTLTOOL_MERGE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 $as_echo "$INTLTOOL_MERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "intltool-extract", so it can be a program name with args. set dummy intltool-extract; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_EXTRACT in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT if test -n "$INTLTOOL_EXTRACT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 $as_echo "$INTLTOOL_EXTRACT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then as_fn_error "The intltool scripts were not found. Please install intltool." "$LINENO" 5 fi INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' # Check the gettext tools to make sure they are GNU # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_XGETTEXT+set}" = set; then : $as_echo_n "(cached) " >&6 else case $XGETTEXT in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi XGETTEXT=$ac_cv_path_XGETTEXT if test -n "$XGETTEXT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_MSGMERGE+set}" = set; then : $as_echo_n "(cached) " >&6 else case $MSGMERGE in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MSGMERGE=$ac_cv_path_MSGMERGE if test -n "$MSGMERGE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 $as_echo "$MSGMERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_MSGFMT+set}" = set; then : $as_echo_n "(cached) " >&6 else case $MSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MSGFMT=$ac_cv_path_MSGFMT if test -n "$MSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_GMSGFMT+set}" = set; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5 fi xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5 fi # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_PERL in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL if test -n "$INTLTOOL_PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 $as_echo "$INTLTOOL_PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$INTLTOOL_PERL"; then as_fn_error "perl not found" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 $as_echo_n "checking for perl >= 5.8.1... " >&6; } $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 if test $? -ne 0; then as_fn_error "perl 5.8.1 is required for intltool" "$LINENO" 5 else IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 $as_echo "$IT_PERL_VERSION" >&6; } fi if test "x" != "xno-xml"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 $as_echo_n "checking for XML::Parser... " >&6; } if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } else as_fn_error "XML::Parser perl module is required for intltool" "$LINENO" 5 fi fi # Substitute ALL_LINGUAS so we can use it in po/Makefile # Set DATADIRNAME correctly if it is not set yet # (copied from glib-gettext.m4) if test -z "$DATADIRNAME"; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : DATADIRNAME=share else case $host in *-*-solaris*) ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : DATADIRNAME=share else DATADIRNAME=lib fi ;; *) DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi pkg_modules="libgnomeui-2.0 libxml-2.0" if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PACKAGE" >&5 $as_echo_n "checking for PACKAGE... " >&6; } if test -n "$PKG_CONFIG"; then if test -n "$PACKAGE_CFLAGS"; then pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS" else if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$PACKAGE_LIBS"; then pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS" else if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"` else PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"` fi # Put the nasty error message in config.log where it belongs echo "$PACKAGE_PKG_ERRORS" >&5 as_fn_error "Package requirements ($pkg_modules) were not met: $PACKAGE_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " "$LINENO" 5 elif test $pkg_failed = untried; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details." "$LINENO" 5; } else PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } : fi GETTEXT_PACKAGE=dvd95 cat >>confdefs.h <<_ACEOF #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" _ACEOF ALL_LINGUAS="en hu el cs pt_BR de et_EE nl es it" for ac_header in locale.h do : ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" if test "x$ac_cv_header_locale_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LOCALE_H 1 _ACEOF fi done if test $ac_cv_header_locale_h = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 $as_echo_n "checking for LC_MESSAGES... " >&6; } if test "${am_cv_val_LC_MESSAGES+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_val_LC_MESSAGES=yes else am_cv_val_LC_MESSAGES=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 $as_echo "$am_cv_val_LC_MESSAGES" >&6; } if test $am_cv_val_LC_MESSAGES = yes; then $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h fi fi USE_NLS=yes gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" if test "x$ac_cv_header_libintl_h" = x""yes; then : gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5 $as_echo_n "checking for ngettext in libc... " >&6; } if test "${gt_cv_func_ngettext_libc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return !ngettext ("","", 1) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_ngettext_libc=yes else gt_cv_func_ngettext_libc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5 $as_echo "$gt_cv_func_ngettext_libc" >&6; } if test "$gt_cv_func_ngettext_libc" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5 $as_echo_n "checking for dgettext in libc... " >&6; } if test "${gt_cv_func_dgettext_libc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return !dgettext ("","") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_dgettext_libc=yes else gt_cv_func_dgettext_libc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5 $as_echo "$gt_cv_func_dgettext_libc" >&6; } fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then for ac_func in bind_textdomain_codeset do : ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_BIND_TEXTDOMAIN_CODESET 1 _ACEOF fi done fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; } if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bindtextdomain (); int main () { return bindtextdomain (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_bindtextdomain=yes else ac_cv_lib_intl_bindtextdomain=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 $as_echo_n "checking for ngettext in -lintl... " >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_ngettext=yes else ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 $as_echo "$ac_cv_lib_intl_ngettext" >&6; } if test "x$ac_cv_lib_intl_ngettext" = x""yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 $as_echo_n "checking for dgettext in -lintl... " >&6; } if test "${ac_cv_lib_intl_dgettext+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dgettext (); int main () { return dgettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_dgettext=yes else ac_cv_lib_intl_dgettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : gt_cv_func_dgettext_libintl=yes fi fi fi if test "$gt_cv_func_dgettext_libintl" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 $as_echo_n "checking for ngettext in -lintl... " >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_ngettext=yes else ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 $as_echo "$ac_cv_lib_intl_ngettext" >&6; } if test "x$ac_cv_lib_intl_ngettext" = x""yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5 $as_echo_n "checking for dcgettext in -lintl... " >&6; } if test "${ac_cv_lib_intl_dcgettext+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dcgettext (); int main () { return dcgettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_dcgettext=yes else ac_cv_lib_intl_dcgettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; } if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then : gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv else : fi else : fi fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset for ac_func in bind_textdomain_codeset do : ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_BIND_TEXTDOMAIN_CODESET 1 _ACEOF fi done LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs" fi if test "$gt_cv_have_gettext" = "yes"; then $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_MSGFMT+set}" = set; then : $as_echo_n "(cached) " >&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" for ac_func in dcgettext do : ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" if test "x$ac_cv_func_dcgettext" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DCGETTEXT 1 _ACEOF fi done MSGFMT_OPTS= { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5 $as_echo_n "checking if msgfmt accepts -c... " >&6; } cat >conftest.foo <<_ACEOF msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Project-Id-Version: test 1.0\n" "PO-Revision-Date: 2007-02-15 12:01+0100\n" "Last-Translator: test \n" "Language-Team: C \n" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" _ACEOF if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } echo "$as_me: failed input was:" >&5 sed 's/^/| /' conftest.foo >&5 fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_GMSGFMT+set}" = set; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_XGETTEXT+set}" = set; then : $as_echo_n "(cached) " >&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : CATOBJEXT=.gmo DATADIRNAME=share else case $host in *-*-solaris*) ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : CATOBJEXT=.gmo DATADIRNAME=share else CATOBJEXT=.mo DATADIRNAME=lib fi ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi fi if test "$gt_cv_have_gettext" = "yes" ; then $as_echo "#define ENABLE_NLS 1" >>confdefs.h fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po ac_config_commands="$ac_config_commands default-1" for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 $as_echo_n "checking for catalogs to be installed... " >&6; } NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 $as_echo "$LINGUAS" >&6; } fi if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if test "${ac_cv_c_bigendian+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main () { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac case "$host_os" in darwin*) LIBS="-framework Cocoa -framework IOKit $LIBS" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build architecture" >&5 $as_echo_n "checking for build architecture... " >&6; } have_x86cpu=false have_x86_64cpu=false have_ppccpu=false case x"$host_cpu" in xi?86*|xk6*) have_x86cpu=true { $as_echo "$as_me:${as_lineno-$LINENO}: result: Intel Pentium architecture (IA32)" >&5 $as_echo "Intel Pentium architecture (IA32)" >&6; } $as_echo "#define ARCH_X86 1" >>confdefs.h ;; xx86_64*|xamd64*) have_x86_64cpu=true { $as_echo "$as_me:${as_lineno-$LINENO}: result: AMD64 architecture (AMD64)" >&5 $as_echo "AMD64 architecture (AMD64)" >&6; } $as_echo "#define ARCH_X86_64 1" >>confdefs.h ;; xpowerpc*) have_ppccpu=true { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac PPC architecture (PPC)" >&5 $as_echo "Mac PPC architecture (PPC)" >&6; } $as_echo "#define ARCH_PPC 1" >>confdefs.h ;; *) ;; esac if test x"$have_x86cpu" = x"true"; then ARCH_X86_TRUE= ARCH_X86_FALSE='#' else ARCH_X86_TRUE='#' ARCH_X86_FALSE= fi if test x"$have_x86_64cpu" = x"true"; then ARCH_X86_64_TRUE= ARCH_X86_64_FALSE='#' else ARCH_X86_64_TRUE='#' ARCH_X86_64_FALSE= fi if test x"$have_ppccpu" = x"true"; then ARCH_PPC_TRUE= ARCH_PPC_FALSE='#' else ARCH_PPC_TRUE='#' ARCH_PPC_FALSE= fi # Check whether --enable-mmx was given. if test "${enable_mmx+set}" = set; then : enableval=$enable_mmx; case "${enableval}" in yes) use_mmx=yes ;; no) use_mmx=no ;; *) as_fn_error "bad value ${enableval} for --enable-mmx" "$LINENO" 5 ;; esac else if test x"$have_x86cpu" = x"true" -o x"$have_x86_64cpu" = x"true" ; then use_mmx=yes else use_mmx=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \$CC groks MMX inline assembly" >&5 $as_echo_n "checking if \$CC groks MMX inline assembly... " >&6; } have_asm_mmx="no" if test x"$use_mmx" = x"yes" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p)); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : have_asm_mmx="yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test x"$have_asm_mmx" = x"yes" ; then $as_echo "#define HAVE_ASM_MMX 1" >>confdefs.h $as_echo "#define HAVE_MMX 1" >>confdefs.h fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_asm_mmx" >&5 $as_echo "$have_asm_mmx" >&6; } if test x"$have_asm_mmx" = x"yes"; then HAVE_MMX_TRUE= HAVE_MMX_FALSE='#' else HAVE_MMX_TRUE='#' HAVE_MMX_FALSE= fi if test x"$have_asm_mmx" = x"no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** All of mmx dependent parts will be disabled ***" >&5 $as_echo "$as_me: WARNING: *** All of mmx dependent parts will be disabled ***" >&2;} fi # Check whether --enable-3dnow was given. if test "${enable_3dnow+set}" = set; then : enableval=$enable_3dnow; case "${enableval}" in yes) use_3dnow=yes ;; no) use_3dnow=no ;; *) as_fn_error "bad value ${enableval} for --enable-3dnow" "$LINENO" 5 ;; esac else if test x"$have_x86cpu" = x"true" -o x"$have_x86_64cpu" = x"true" ; then use_3dnow=yes else use_3dnow=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support of 3DNow in assembly code" >&5 $as_echo_n "checking for support of 3DNow in assembly code... " >&6; } have_asm_3dnow="no" if test x"$use_3dnow" = x"yes" ; then cat > conftest.S <>confdefs.h $as_echo "#define HAVE_3DNOW 1" >>confdefs.h have_asm_3dnow="yes" else echo "configure: failed program was:" >&5 cat conftest.S >&5 rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_asm_3dnow" >&5 $as_echo "$have_asm_3dnow" >&6; } if test x"$have_asm_3dnow" = x"yes"; then HAVE_3DNOW_TRUE= HAVE_3DNOW_FALSE='#' else HAVE_3DNOW_TRUE='#' HAVE_3DNOW_FALSE= fi if test x"$have_asm_3dnow" = x"no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** All of 3DNow dependent parts will be disabled ***" >&5 $as_echo "$as_me: WARNING: *** All of 3DNow dependent parts will be disabled ***" >&2;} fi # Check whether --enable-sse was given. if test "${enable_sse+set}" = set; then : enableval=$enable_sse; case "${enableval}" in yes) use_sse=yes ;; no) use_sse=no ;; *) as_fn_error "bad value ${enableval} for --enable-sse" "$LINENO" 5 ;; esac else if test x"$have_x86cpu" = x"true" -o x"$have_x86_64cpu" = x"true" ; then use_sse=yes else use_sse=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \$CC groks SSE inline assembly" >&5 $as_echo_n "checking if \$CC groks SSE inline assembly... " >&6; } have_asm_sse="no" if test x"$use_sse" = x"yes" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { void *p; asm volatile("movntps %%xmm0, 0"::"r"(p)); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : have_asm_sse=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test x"$have_asm_sse" = x"yes" ; then $as_echo "#define HAVE_ASM_SSE 1" >>confdefs.h $as_echo "#define HAVE_SSE 1" >>confdefs.h fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_asm_sse" >&5 $as_echo "$have_asm_sse" >&6; } if test x"$have_asm_sse" = x"yes"; then HAVE_SSE_TRUE= HAVE_SSE_FALSE='#' else HAVE_SSE_TRUE='#' HAVE_SSE_FALSE= fi if test x"$have_asm_sse" = x"no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** All of sse dependent parts will be disabled ***" >&5 $as_echo "$as_me: WARNING: *** All of sse dependent parts will be disabled ***" >&2;} fi # Check whether --enable-sse2 was given. if test "${enable_sse2+set}" = set; then : enableval=$enable_sse2; case "${enableval}" in yes) use_sse2=yes ;; no) use_sse2=no ;; *) as_fn_error "bad value ${enableval} for --enable-sse2" "$LINENO" 5 ;; esac else if test x"$have_x86cpu" = x"true" -o x"$have_x86_64cpu" = x"true" ; then use_sse2=yes else use_sse2=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \$CC can handle SSE2 inline asm" >&5 $as_echo_n "checking if \$CC can handle SSE2 inline asm... " >&6; } have_asm_sse2="no" if test x"$use_sse2" = x"yes" ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { void *p; asm volatile("movdqa %%xmm2, %%xmm3"::"r"(p)); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : have_asm_sse2=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test x"$have_asm_sse2" = x"yes" ; then $as_echo "#define HAVE_ASM_SSE2 1" >>confdefs.h $as_echo "#define HAVE_SSE2 1" >>confdefs.h fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_asm_sse2" >&5 $as_echo "$have_asm_sse2" >&6; } if test x"$have_asm_sse2" = x"yes"; then HAVE_SSE2_TRUE= HAVE_SSE2_FALSE='#' else HAVE_SSE2_TRUE='#' HAVE_SSE2_FALSE= fi if test x"$have_asm_sse2" = x"no" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** All of sse2 dependent parts will be disabled ***" >&5 $as_echo "*** All of sse2 dependent parts will be disabled ***" >&6; } fi if test -d contrib/libdvdread ; then { $as_echo "$as_me:${as_lineno-$LINENO}: Using built-in libdvdread !" >&5 $as_echo "$as_me: Using built-in libdvdread !" >&6;} LIBDVDREAD_CFLAGS="-I\$(top_srcdir)/contrib/libdvdread/src" LIBDVDREAD_LIBS="\$(top_builddir)/contrib/libdvdread/src/libdvdread.la" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DVDOpen in -ldvdread" >&5 $as_echo_n "checking for DVDOpen in -ldvdread... " >&6; } if test "${ac_cv_lib_dvdread_DVDOpen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldvdread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char DVDOpen (); int main () { return DVDOpen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dvdread_DVDOpen=yes else ac_cv_lib_dvdread_DVDOpen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dvdread_DVDOpen" >&5 $as_echo "$ac_cv_lib_dvdread_DVDOpen" >&6; } if test "x$ac_cv_lib_dvdread_DVDOpen" = x""yes; then : LIBDVDREAD_CFLAGS="" LIBDVDREAD_LIBS="-ldvdread" else as_fn_error "libdvdread not found!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dvdread/ifo_read.h" >&5 $as_echo_n "checking for dvdread/ifo_read.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include \n#include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error "Header files for dvdread not found" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error "cannot run test program while cross compiling See \`config.log' for more details." "$LINENO" 5; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #include int main(void) { if (DVDREAD_VERSION < 904) return 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else as_fn_error "Unable to find libdvdread >= 0.9.4" "$LINENO" 5 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi LIBAUTHOR_CFLAGS="-I\$(top_srcdir)/dvdauthor" LIBAUTHOR_LIBS="\$(top_builddir)/dvdauthor/libauthor.la" # Check whether --enable-libmpeg2 was given. if test "${enable_libmpeg2+set}" = set; then : enableval=$enable_libmpeg2; have_libmpeg2="$enableval" else have_libmpeg2="yes" fi if test x"$have_libmpeg2" != x"no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg2_init in -lmpeg2" >&5 $as_echo_n "checking for mpeg2_init in -lmpeg2... " >&6; } if test "${ac_cv_lib_mpeg2_mpeg2_init+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmpeg2 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char mpeg2_init (); int main () { return mpeg2_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_mpeg2_mpeg2_init=yes else ac_cv_lib_mpeg2_mpeg2_init=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpeg2_mpeg2_init" >&5 $as_echo "$ac_cv_lib_mpeg2_mpeg2_init" >&6; } if test "x$ac_cv_lib_mpeg2_mpeg2_init" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBMPEG2 1 _ACEOF LIBS="-lmpeg2 $LIBS" else as_fn_error "libmpeg2 not found!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg2dec/mpeg2.h" >&5 $as_echo_n "checking for mpeg2dec/mpeg2.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include \n#include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error "Header files for libmpeg2 not found" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg2_convert in -lmpeg2convert" >&5 $as_echo_n "checking for mpeg2_convert in -lmpeg2convert... " >&6; } if test "${ac_cv_lib_mpeg2convert_mpeg2_convert+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmpeg2convert $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char mpeg2_convert (); int main () { return mpeg2_convert (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_mpeg2convert_mpeg2_convert=yes else ac_cv_lib_mpeg2convert_mpeg2_convert=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpeg2convert_mpeg2_convert" >&5 $as_echo "$ac_cv_lib_mpeg2convert_mpeg2_convert" >&6; } if test "x$ac_cv_lib_mpeg2convert_mpeg2_convert" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBMPEG2CONVERT 1 _ACEOF LIBS="-lmpeg2convert $LIBS" else as_fn_error "libmpeg2convert not found!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpeg2dec/mpeg2convert.h" >&5 $as_echo_n "checking for mpeg2dec/mpeg2convert.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include \n#include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error "Header files for libmpeg2convert not found" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # Extract the first word of "mplayer", so it can be a program name with args. set dummy mplayer; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_MPLAYER_PROG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $MPLAYER_PROG in [\\/]* | ?:[\\/]*) ac_cv_path_MPLAYER_PROG="$MPLAYER_PROG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_MPLAYER_PROG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MPLAYER_PROG=$ac_cv_path_MPLAYER_PROG if test -n "$MPLAYER_PROG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPLAYER_PROG" >&5 $as_echo "$MPLAYER_PROG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test x"$MPLAYER_PROG" = x; then as_fn_error "Unable to find mplayer in the PATH. You need mplayer to use DVD95. Find it on http://www.mplayerhq.hu" "$LINENO" 5 fi # Extract the first word of "mencoder", so it can be a program name with args. set dummy mencoder; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_MENCODER_PROG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $MENCODER_PROG in [\\/]* | ?:[\\/]*) ac_cv_path_MENCODER_PROG="$MENCODER_PROG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_MENCODER_PROG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MENCODER_PROG=$ac_cv_path_MENCODER_PROG if test -n "$MENCODER_PROG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MENCODER_PROG" >&5 $as_echo "$MENCODER_PROG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test x"$MENCODER_PROG" = x; then as_fn_error "Unable to find mencoder in the PATH. You need mencoder to use DVD95. Find it on http://www.mplayerhq.hu" "$LINENO" 5 fi # Extract the first word of "ffmpeg", so it can be a program name with args. set dummy ffmpeg; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_FFMPEG_PROG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $FFMPEG_PROG in [\\/]* | ?:[\\/]*) ac_cv_path_FFMPEG_PROG="$FFMPEG_PROG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_FFMPEG_PROG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi FFMPEG_PROG=$ac_cv_path_FFMPEG_PROG if test -n "$FFMPEG_PROG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG_PROG" >&5 $as_echo "$FFMPEG_PROG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test x"$FFMPEG_PROG" = x; then as_fn_error "Unable to find ffmpeg in the PATH. You need ffmpeg to use DVD95. Find it on http://www.ffmpeg.org/" "$LINENO" 5 fi ac_config_files="$ac_config_files Makefile src/Makefile dvdauthor/Makefile po/Makefile.in" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi ac_config_commands="$ac_config_commands po/stamp-it" if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then as_fn_error "conditional \"ARCH_X86\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then as_fn_error "conditional \"ARCH_X86_64\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then as_fn_error "conditional \"ARCH_PPC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_MMX_TRUE}" && test -z "${HAVE_MMX_FALSE}"; then as_fn_error "conditional \"HAVE_MMX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_3DNOW_TRUE}" && test -z "${HAVE_3DNOW_FALSE}"; then as_fn_error "conditional \"HAVE_3DNOW\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then as_fn_error "conditional \"HAVE_SSE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then as_fn_error "conditional \"HAVE_SSE2\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : ${CONFIG_STATUS=./config.status} ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error ERROR [LINENO LOG_FD] # --------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with status $?, using 1 if that was 0. as_fn_error () { as_status=$?; test $as_status -eq 0 && as_status=1 if test "$3"; then as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 fi $as_echo "$as_me: error: $1" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.65. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.65, with options \\"\$ac_cs_config\\" Copyright (C) 2009 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ AR \ AR_FLAGS \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ SHELL \ ECHO \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ fix_srcfile_path \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` ;; esac ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "dvdauthor/Makefile") CONFIG_FILES="$CONFIG_FILES dvdauthor/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ || as_fn_error "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_t=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_t"; then break elif $ac_last_try; then as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin" \ || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ || as_fn_error "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out" && rm -f "$tmp/out";; *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; esac \ || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" } >"$tmp/config.h" \ || as_fn_error "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$tmp/config.h" "$ac_file" \ || as_fn_error "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="" # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == "file_magic". file_magic_cmd=$lt_file_magic_cmd # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name of the directory that contains temporary libtool files. objdir=$objdir # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that does not interpret backslashes. ECHO=$lt_ECHO # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $* )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[^=]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$@"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1+=\$2" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1=\$$1\$2" } _LT_EOF ;; esac sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac ;; "po/stamp-it":C) if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then as_fn_error "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 fi rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" >"po/stamp-it.tmp" sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r po/POTFILES } ' "po/Makefile.in" >"po/Makefile" rm -f "po/Makefile.tmp" mv "po/stamp-it.tmp" "po/stamp-it" ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit $? fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi dvd95/configure.in000066400000000000000000000216201140003301000143010ustar00rootroot00000000000000dnl Process this file with autoconf to produce a configure script. AC_INIT(configure.in) AC_CONFIG_SRCDIR(src/main.c) AM_INIT_AUTOMAKE(dvd95, 1.6p0) AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) dnl Detect the canonical host and target build environment AC_CANONICAL_SYSTEM AC_ISC_POSIX dnl dnl warning flags; always add -Wall dnl CFLAGS="-Wall -O3" AC_PROG_CC AM_PROG_CC_STDC AC_PROG_INSTALL AC_PROG_LIBTOOL AM_PROG_LIBTOOL AC_PROG_INTLTOOL AC_HEADER_STDC pkg_modules="libgnomeui-2.0 libxml-2.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) GETTEXT_PACKAGE=dvd95 AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE") dnl Add the languages which your application supports here. ALL_LINGUAS="en hu el cs pt_BR de et_EE nl es it" AM_GLIB_GNU_GETTEXT dnl dnl Architecture specific instructions dnl dnl test endianess - important for libdvdread includes and bswap.h AC_C_BIGENDIAN case "$host_os" in darwin*) LIBS="-framework Cocoa -framework IOKit $LIBS" ;; esac AC_MSG_CHECKING([for build architecture]) have_x86cpu=false have_x86_64cpu=false have_ppccpu=false case x"$host_cpu" in xi?86*|xk6*) have_x86cpu=true AC_MSG_RESULT([Intel Pentium architecture (IA32)]) AC_DEFINE([ARCH_X86], 1, [Define if your machine is x86 based]) ;; xx86_64*|xamd64*) have_x86_64cpu=true AC_MSG_RESULT([AMD64 architecture (AMD64)]) AC_DEFINE([ARCH_X86_64], 1, [Define if your machine is AMD64 based]) ;; xpowerpc*) have_ppccpu=true AC_MSG_RESULT([Mac PPC architecture (PPC)]) AC_DEFINE([ARCH_PPC], 1, [Define if your machine is PPC based]) ;; *) ;; esac AM_CONDITIONAL(ARCH_X86, test x"$have_x86cpu" = x"true") AM_CONDITIONAL(ARCH_X86_64, test x"$have_x86_64cpu" = x"true") AM_CONDITIONAL(ARCH_PPC, test x"$have_ppccpu" = x"true") dnl x86 & x86_64 architectures dnl MMX support dnl AC_ARG_ENABLE(mmx, AC_HELP_STRING([--enable-mmx], [enable MMX code portions (yes)]), [case "${enableval}" in yes) use_mmx=yes ;; no) use_mmx=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-mmx) ;; esac], [if test x"$have_x86cpu" = x"true" -o x"$have_x86_64cpu" = x"true" ; then use_mmx=yes else use_mmx=no fi]) AC_MSG_CHECKING([if \$CC groks MMX inline assembly]) have_asm_mmx="no" if test x"$use_mmx" = x"yes" ; then AC_TRY_COMPILE([], [void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));], [have_asm_mmx="yes"]) if test x"$have_asm_mmx" = x"yes" ; then AC_DEFINE([HAVE_ASM_MMX], 1, [Define if your CPU understands ASM MMX instructions]) AC_DEFINE([HAVE_MMX], 1, [Define if your CPU understands MMX instructions]) fi fi AC_MSG_RESULT($have_asm_mmx) AM_CONDITIONAL(HAVE_MMX, test x"$have_asm_mmx" = x"yes") if test x"$have_asm_mmx" = x"no" ; then AC_MSG_WARN(*** All of mmx dependent parts will be disabled ***) fi dnl 3DNow support dnl AC_ARG_ENABLE(3dnow, AC_HELP_STRING([--enable-3dnow], [enable 3DNow code portions (yes)]), [case "${enableval}" in yes) use_3dnow=yes ;; no) use_3dnow=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-3dnow) ;; esac], [if test x"$have_x86cpu" = x"true" -o x"$have_x86_64cpu" = x"true" ; then use_3dnow=yes else use_3dnow=no fi]) AC_MSG_CHECKING([for support of 3DNow in assembly code]) have_asm_3dnow="no" if test x"$use_3dnow" = x"yes" ; then cat > conftest.S <&AC_FD_CC cat conftest.S >&AC_FD_CC rm -f conftest.* fi fi AC_MSG_RESULT($have_asm_3dnow) AM_CONDITIONAL(HAVE_3DNOW, test x"$have_asm_3dnow" = x"yes") if test x"$have_asm_3dnow" = x"no" ; then AC_MSG_WARN(*** All of 3DNow dependent parts will be disabled ***) fi dnl SSE support dnl AC_ARG_ENABLE(sse, AC_HELP_STRING([--enable-sse], [enable SSE code portions (yes)]), [case "${enableval}" in yes) use_sse=yes ;; no) use_sse=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-sse) ;; esac], [if test x"$have_x86cpu" = x"true" -o x"$have_x86_64cpu" = x"true" ; then use_sse=yes else use_sse=no fi]) AC_MSG_CHECKING([if \$CC groks SSE inline assembly]) have_asm_sse="no" if test x"$use_sse" = x"yes" ; then AC_TRY_COMPILE([], [void *p; asm volatile("movntps %%xmm0, 0"::"r"(p));], [have_asm_sse=yes]) if test x"$have_asm_sse" = x"yes" ; then AC_DEFINE([HAVE_ASM_SSE], 1, [Define if your CPU understands ASM SSE instructions]) AC_DEFINE([HAVE_SSE], 1, [Define if your CPU understands SSE instructions]) fi fi AC_MSG_RESULT($have_asm_sse) AM_CONDITIONAL(HAVE_SSE, test x"$have_asm_sse" = x"yes") if test x"$have_asm_sse" = x"no" ; then AC_MSG_WARN(*** All of sse dependent parts will be disabled ***) fi dnl SSE2 support dnl AC_ARG_ENABLE(sse2, AC_HELP_STRING([--enable-sse2], [enable SSE2 code portions (yes)]), [case "${enableval}" in yes) use_sse2=yes ;; no) use_sse2=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-sse2) ;; esac], [if test x"$have_x86cpu" = x"true" -o x"$have_x86_64cpu" = x"true" ; then use_sse2=yes else use_sse2=no fi]) AC_MSG_CHECKING([if \$CC can handle SSE2 inline asm]) have_asm_sse2="no" if test x"$use_sse2" = x"yes" ; then AC_TRY_COMPILE([], [void *p; asm volatile("movdqa %%xmm2, %%xmm3"::"r"(p));], [have_asm_sse2=yes]) if test x"$have_asm_sse2" = x"yes" ; then AC_DEFINE([HAVE_ASM_SSE2], 1, [Define if your CPU understands ASM SSE2 instructions]) AC_DEFINE([HAVE_SSE2], 1, [Define if your CPU understands SSE2 instructions]) fi fi AC_MSG_RESULT($have_asm_sse2) AM_CONDITIONAL(HAVE_SSE2, test x"$have_asm_sse2" = x"yes") if test x"$have_asm_sse2" = x"no" ; then AC_MSG_RESULT(*** All of sse2 dependent parts will be disabled ***) fi dnl dnl libdvdread: check wich version to use dnl if test -d contrib/libdvdread ; then AC_MSG_NOTICE([Using built-in libdvdread !]) LIBDVDREAD_CFLAGS="-I\$(top_srcdir)/contrib/libdvdread/src" LIBDVDREAD_LIBS="\$(top_builddir)/contrib/libdvdread/src/libdvdread.la" AC_SUBST(LIBDVDREAD_CFLAGS) AC_SUBST(LIBDVDREAD_LIBS) else AC_CHECK_LIB(dvdread, DVDOpen, [ LIBDVDREAD_CFLAGS="" LIBDVDREAD_LIBS="-ldvdread" AC_SUBST(LIBDVDREAD_CFLAGS) AC_SUBST(LIBDVDREAD_LIBS) ], AC_MSG_ERROR([libdvdread not found!])) AC_MSG_CHECKING([for dvdread/ifo_read.h]) AC_TRY_COMPILE([#include \n#include ], , AC_MSG_RESULT([yes]), AC_MSG_RESULT([no]) AC_MSG_ERROR([Header files for dvdread not found])) dnl Check libdvdread version (0.9.4 seems broken on FC9/10 AC_LANG(C) AC_TRY_RUN([ #include #include #include #include #include int main(void) { if (DVDREAD_VERSION < 904) return 1; return 0; } ],,AC_MSG_ERROR(Unable to find libdvdread >= 0.9.4)) fi dnl dnl libauthor dnl LIBAUTHOR_CFLAGS="-I\$(top_srcdir)/dvdauthor" LIBAUTHOR_LIBS="\$(top_builddir)/dvdauthor/libauthor.la" AC_SUBST(LIBAUTHOR_CFLAGS) AC_SUBST(LIBAUTHOR_LIBS) dnl dnl libmpeg2 dnl AC_ARG_ENABLE(libmpeg2, AC_HELP_STRING([--disable-libmpeg2], [disable LIBMPEG2 support]), [have_libmpeg2="$enableval"], [have_libmpeg2="yes"]) if test x"$have_libmpeg2" != x"no"; then AC_CHECK_LIB(mpeg2, mpeg2_init, , AC_MSG_ERROR([libmpeg2 not found!])) AC_MSG_CHECKING([for mpeg2dec/mpeg2.h]) AC_TRY_COMPILE([#include \n#include ], , AC_MSG_RESULT([yes]), AC_MSG_RESULT([no]) AC_MSG_ERROR([Header files for libmpeg2 not found])) AC_CHECK_LIB(mpeg2convert, mpeg2_convert, , AC_MSG_ERROR([libmpeg2convert not found!])) AC_MSG_CHECKING([for mpeg2dec/mpeg2convert.h]) AC_TRY_COMPILE([#include \n#include ], , AC_MSG_RESULT([yes]), AC_MSG_RESULT([no]) AC_MSG_ERROR([Header files for libmpeg2convert not found])) fi dnl ************************************************************** AC_PATH_PROG(MPLAYER_PROG, mplayer) if test x"$MPLAYER_PROG" = x; then AC_MSG_ERROR(Unable to find mplayer in the PATH. You need mplayer to use DVD95. Find it on http://www.mplayerhq.hu) fi dnl ************************************************************** AC_PATH_PROG(MENCODER_PROG, mencoder) if test x"$MENCODER_PROG" = x; then AC_MSG_ERROR(Unable to find mencoder in the PATH. You need mencoder to use DVD95. Find it on http://www.mplayerhq.hu) fi dnl ************************************************************** AC_PATH_PROG(FFMPEG_PROG, ffmpeg) if test x"$FFMPEG_PROG" = x; then AC_MSG_ERROR(Unable to find ffmpeg in the PATH. You need ffmpeg to use DVD95. Find it on http://www.ffmpeg.org/) fi AC_OUTPUT([ Makefile src/Makefile dvdauthor/Makefile po/Makefile.in ]) dvd95/debian/000077500000000000000000000000001140003301000132115ustar00rootroot00000000000000dvd95/debian/changelog000066400000000000000000000002161140003301000150620ustar00rootroot00000000000000dvd95 (1.5p0-1) unstable; urgency=low * Initial release -- JF COULON Mon, 26 Jan 2009 18:24:02 +0100 dvd95/debian/compat000066400000000000000000000000021140003301000144070ustar00rootroot000000000000007 dvd95/debian/control000066400000000000000000000005231140003301000146140ustar00rootroot00000000000000Source: dvd95 Section: unknown Priority: extra Maintainer: jf.coulon@sourceforge.net Build-Depends: debhelper (>= 7), autotools-dev Standards-Version: 3.7.3 Homepage: http://dvd95.sourceforge.net Package: dvd95 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: A dvd9 to dvd5 converter using GNOME UI dvd95/debian/copyright000066400000000000000000000007211140003301000151440ustar00rootroot00000000000000This package was debianized by JF COULON on Mon, 26 Jan 2009 18:24:02 +0100. It was downloaded from Upstream Author(s): JF COULON Copyright: License: Released under GPL license, see gnu.org The Debian packaging is (C) 2009, alpha User and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. dvd95/debian/cron.d.ex000066400000000000000000000001751140003301000147350ustar00rootroot00000000000000# # Regular cron jobs for the dvd95 package # 0 4 * * * root [ -x /usr/bin/dvd95_maintenance ] && /usr/bin/dvd95_maintenance dvd95/debian/dirs000066400000000000000000000000211140003301000140660ustar00rootroot00000000000000usr/bin usr/sbin dvd95/debian/docs000066400000000000000000000000211140003301000140550ustar00rootroot00000000000000NEWS README TODO dvd95/debian/dvd95.default.ex000066400000000000000000000003451140003301000161270ustar00rootroot00000000000000# Defaults for dvd95 initscript # sourced by /etc/init.d/dvd95 # installed at /etc/default/dvd95 by the maintainer scripts # # This is a POSIX shell fragment # # Additional options that are passed to the Daemon. DAEMON_OPTS="" dvd95/debian/dvd95.doc-base.EX000066400000000000000000000007571140003301000160670ustar00rootroot00000000000000Document: dvd95 Title: Debian dvd95 Manual Author: Abstract: This manual describes what dvd95 is and how it can be used to manage online manuals on Debian systems. Section: unknown Format: debiandoc-sgml Files: /usr/share/doc/dvd95/dvd95.sgml.gz Format: postscript Files: /usr/share/doc/dvd95/dvd95.ps.gz Format: text Files: /usr/share/doc/dvd95/dvd95.text.gz Format: HTML Index: /usr/share/doc/dvd95/html/index.html Files: /usr/share/doc/dvd95/html/*.html dvd95/debian/dvd95.substvars000066400000000000000000000012611140003301000161220ustar00rootroot00000000000000shlibs:Depends=libart-2.0-2 (>= 2.3.18), libatk1.0-0 (>= 1.20.0), libbonobo2-0 (>= 2.15.0), libbonoboui2-0 (>= 2.15.1), libc6 (>= 2.4), libcairo2 (>= 1.2.4), libdvdread3 (>= 0.9.7), libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.3.5), libgconf2-4 (>= 2.13.5), libglib2.0-0 (>= 2.16.0), libgnome2-0 (>= 2.17.3), libgnomecanvas2-0 (>= 2.11.1), libgnomeui-0 (>= 2.22.0), libgnomevfs2-0 (>= 1:2.17.90), libgtk2.0-0 (>= 2.14.1), libice6 (>= 1:1.0.0), libmpeg2-4, liborbit2 (>= 1:2.14.10), libpango1.0-0 (>= 1.21.6), libpixman-1-0, libpng12-0 (>= 1.2.13-4), libpopt0 (>= 1.14), libsm6, libx11-6, libxcb-render-util0, libxcb-render0, libxcb1, libxml2 (>= 2.6.27), libxrender1, zlib1g (>= 1:1.1.4) dvd95/debian/dvd95/000077500000000000000000000000001140003301000141445ustar00rootroot00000000000000dvd95/debian/dvd95/DEBIAN/000077500000000000000000000000001140003301000150665ustar00rootroot00000000000000dvd95/debian/dvd95/DEBIAN/control000066400000000000000000000016411140003301000164730ustar00rootroot00000000000000Package: dvd95 Version: 1.5p0-1 Architecture: i386 Maintainer: jf.coulon@sourceforge.net Installed-Size: 768 Depends: libart-2.0-2 (>= 2.3.18), libatk1.0-0 (>= 1.20.0), libbonobo2-0 (>= 2.15.0), libbonoboui2-0 (>= 2.15.1), libc6 (>= 2.4), libcairo2 (>= 1.2.4), libdvdread3 (>= 0.9.7), libfontconfig1 (>= 2.4.0), libfreetype6 (>= 2.3.5), libgconf2-4 (>= 2.13.5), libglib2.0-0 (>= 2.16.0), libgnome2-0 (>= 2.17.3), libgnomecanvas2-0 (>= 2.11.1), libgnomeui-0 (>= 2.22.0), libgnomevfs2-0 (>= 1:2.17.90), libgtk2.0-0 (>= 2.14.1), libice6 (>= 1:1.0.0), libmpeg2-4, liborbit2 (>= 1:2.14.10), libpango1.0-0 (>= 1.21.6), libpixman-1-0, libpng12-0 (>= 1.2.13-4), libpopt0 (>= 1.14), libsm6, libx11-6, libxcb-render-util0, libxcb-render0, libxcb1, libxml2 (>= 2.6.27), libxrender1, zlib1g (>= 1:1.1.4) Section: unknown Priority: extra Homepage: http://dvd95.sourceforge.net Description: A dvd9 to dvd5 converter using GNOME UI dvd95/debian/dvd95/DEBIAN/md5sums000066400000000000000000000031121140003301000164030ustar00rootroot00000000000000f348097defbc273c9e7a8bf9ea27d452 usr/share/pixmaps/dvd95/run.png 279b52350c2328163b3216b8de76609c usr/share/pixmaps/dvd95/properties.png 132c320e96dff41f9d2a35fd907a09e4 usr/share/pixmaps/dvd95/copy.png b72c966faa04da3649bbbffa9ecf132a usr/share/pixmaps/dvd95/dvd.png 412a73bc831159f01c7e69e8609f24af usr/share/pixmaps/dvd95/dvd9548.png e97b72638c5e5520be7b74698b12b740 usr/share/doc/dvd95/README.Debian 1ad4a8e3c844dd1125b830a83a917067 usr/share/doc/dvd95/TODO b2bd0c4c5a6e0251badbd923076fe2af usr/share/doc/dvd95/changelog.gz 8c601a4c1581728dd51364cc5d62a921 usr/share/doc/dvd95/README 23bc15c0111748f6564d8979f5e0fe38 usr/share/doc/dvd95/copyright 40584f5d90ebae0e8284eb814862c265 usr/share/doc/dvd95/changelog.Debian.gz 697328427a99380efece1c339eab2c4c usr/share/locale/es/LC_MESSAGES/dvd95.mo 1ec6392bd90aece1a6a67a602deb28c8 usr/share/locale/cs/LC_MESSAGES/dvd95.mo 0d1a2122404dd7c54d98ffeaa8679331 usr/share/locale/et_EE/LC_MESSAGES/dvd95.mo b922e9b0e5288e3da3fac68b604a697b usr/share/locale/en/LC_MESSAGES/dvd95.mo a1be0af3b3aa6b298994889dd347fffa usr/share/locale/nl/LC_MESSAGES/dvd95.mo f4122e1e58908fd5a6c9fccd1525cdf4 usr/share/locale/el/LC_MESSAGES/dvd95.mo b3ecd52cd004174431b7baf4994c4858 usr/share/locale/pt_BR/LC_MESSAGES/dvd95.mo 149a6ca44a9c9283e96575149fa23969 usr/share/locale/de/LC_MESSAGES/dvd95.mo 8954222a0ac7438ce5cbf27312bced4b usr/share/locale/it/LC_MESSAGES/dvd95.mo 07707db28e6c5c9e9ab1ab14c26737a9 usr/share/locale/hu/LC_MESSAGES/dvd95.mo 3f892b0681b0029c64f79a1ba0b76e55 usr/share/applications/dvd95.desktop b73d6058a63fd2f42ce0c253d3d2a616 usr/bin/dvd95 dvd95/debian/dvd95/usr/000077500000000000000000000000001140003301000147555ustar00rootroot00000000000000dvd95/debian/dvd95/usr/bin/000077500000000000000000000000001140003301000155255ustar00rootroot00000000000000dvd95/debian/dvd95/usr/bin/dvd95000077500000000000000000014625141140003301000164230ustar00rootroot00000000000000ELFp4`4 (444  TTT,B,BL   L`M` ` 00hhh PtdA  QtdRtdL  /lib/ld-linux.so.2GNUI_WC#we<Bi>6bSokconfLTL]H"'@=(Mudrc V:9Y8JtzQxDm|| Ez2@[;6x4s0$guh}jO9flXBZv#5p,1?-&&\ma~?KR8S2GqM{NTWA7%$3d y4s`. ( * F3O'R7E".-YCQ}_]/+N0jZqJHD^)<,{G1k>V KIe5tP;%y:U  *nA l+P)Xv^a [p~`U /=gF!!hirbw\ 4B( 0DHLR?J2nuϋ< qXK|l{F70$tkBE9]Ȗ<ֽݣk- { ;Y'VuG_k rL +I f`f nHb0Xtw} k3  a6S@ {+u 1 O- Z  Um Z W J$  P-N b I x\M j?- 9 1 Q ^qESN=]  5B <<o)>*)p!zb  (jN;W 9I ( H ly$}      U! BlD]}|tPD5*+dCz _btCD=h1 -  +`Xd ("< t#|"D8 t 9 _N9 4S6 <E>~l.>\_  mz);x ;x;;x D $L<HF@`mzD $  X  h4P?x{S z8libgnomeui-2.so.0g_freegtk_label_set_use_markupgtk_text_view_get_typegtk_label_set_line_wrapgtk_entry_newgtk_progress_bar_get_typegtk_box_get_typegtk_window_newgtk_widget_refg_slist_freegtk_image_set_from_filegnome_program_initg_object_get_datagdk_pixbuf_new_from_filegtk_toggle_button_get_active__gmon_start___Jv_RegisterClassesgtk_button_box_get_typeg_object_unrefgtk_label_newgtk_dialog_responsegtk_table_get_typegtk_vbox_newg_strdupgtk_entry_set_textgtk_alignment_newgtk_window_set_icon_namegtk_maingtk_widget_get_typegtk_widget_destroygtk_image_new_from_stockgtk_button_new_with_mnemonicg_object_set_data_fullgtk_file_chooser_get_typegtk_progress_bar_set_fractiongtk_file_filter_newgtk_dialog_get_typegtk_scrolled_window_set_policygtk_accel_group_newgtk_table_newgtk_menu_get_typegtk_message_dialog_newgtk_entry_get_textgtk_frame_newgconf_client_get_defaultgtk_text_view_set_editablegtk_text_view_newgtk_widget_show_allgtk_range_get_typegtk_widget_set_sensitivegtk_frame_set_shadow_typeg_assertion_message_exprgtk_container_get_typeg_slist_appendgtk_menu_get_attach_widgetgnome_program_locate_filegtk_window_set_titlegtk_adjustment_get_typegtk_widget_set_eventsgtk_window_get_typeg_object_set_datagtk_window_movegtk_text_buffer_get_end_itergtk_image_new_from_fileg_thread_initgtk_widget_add_acceleratorgtk_widget_grab_defaultgtk_window_set_positiong_object_setgtk_dialog_set_has_separatorgtk_file_chooser_get_filenamegtk_image_newgtk_adjustment_newgtk_dialog_add_action_widgetgtk_window_add_accel_groupgtk_label_get_typegtk_object_get_typegtk_progress_bar_newg_type_check_instance_is_agtk_widget_set_size_requestgtk_table_set_col_spacingsgtk_alignment_get_typegconf_client_set_stringgtk_toolbar_set_stylegtk_button_box_set_layoutgtk_main_quitgtk_entry_get_typeg_source_removeg_signal_connect_datagtk_window_set_resizableg_type_check_instance_castgtk_widget_showgtk_main_iterationgtk_dialog_rungtk_window_set_modalgconf_client_get_stringgtk_hbox_newgtk_frame_get_typegtk_container_addgtk_text_view_get_buffergtk_toggle_button_set_activegtk_file_chooser_dialog_newgtk_toggle_button_get_typegtk_scrolled_window_newgtk_box_pack_startgtk_toolbar_newgtk_table_attachgtk_misc_get_typegtk_widget_set_namegtk_tree_view_get_typegtk_button_new_with_labelgtk_button_new_from_stockgtk_widget_unrefgtk_scrolled_window_get_typegtk_tree_view_get_selectiong_error_freegtk_table_set_row_spacingsgtk_hseparator_newgtk_toolbar_get_typegtk_bin_get_typegtk_image_get_typeg_loggtk_alignment_set_paddinggtk_window_set_transient_forgtk_container_set_border_widthgtk_about_dialog_set_url_hookgtk_misc_set_alignmentlibgnomeui_module_info_getlibSM.so.6_finilibICE.so.6libbonoboui-2.so.0gtk_tree_view_get_modelgtk_tool_button_newgtk_window_get_positiongtk_cell_renderer_text_newgtk_tooltips_newgtk_tool_item_get_typegtk_file_chooser_set_current_foldergtk_tree_model_get_typegtk_tree_selection_get_selectedgtk_tooltips_set_tipgtk_tool_item_set_tooltipgtk_toolbar_set_show_arrowgtk_tree_model_getgtk_tree_selection_set_modeg_timeout_addgtk_check_button_new_with_mnemonicgtk_window_get_sizegtk_tool_item_set_is_importantgtk_tree_selection_select_iterlibgnomevfs-2.so.0g_spawn_asynclibgnomecanvas-2.so.0gdk_pixbuf_unrefgtk_text_buffer_set_textgtk_text_buffer_newlibgnome-2.so.0gnome_sound_playgnome_sound_initlibpopt.so.0libbonobo-2.so.0libbonobo-activation.so.4libORBit-2.so.0libart_lgpl_2.so.2libgtk-x11-2.0.so.0atk_action_get_n_actionsatk_action_set_descriptionatk_action_get_nameg_utf8_collategtk_about_dialog_set_translator_creditsgtk_progress_bar_set_pulse_stepgtk_range_get_valuegtk_hscale_newgtk_file_chooser_add_filtergtk_about_dialog_set_namegtk_about_dialog_set_commentsgtk_expander_get_typegtk_object_set_data_fullgtk_tree_store_appendgtk_frame_set_label_widgetgtk_window_resizegtk_window_maximizegtk_toolbar_get_icon_sizegtk_about_dialog_set_documentersgtk_tool_button_new_from_stockgtk_about_dialog_set_authorsgtk_tree_view_get_columngtk_about_dialog_set_artistsgtk_about_dialog_get_typegtk_combo_box_entry_new_textgtk_combo_box_append_textgtk_dialog_newgtk_text_view_set_cursor_visiblegtk_scale_set_value_posgtk_about_dialog_set_logogtk_fixed_newgtk_tree_sortable_set_sort_funcgtk_tree_view_remove_columngtk_fixed_get_typegtk_tree_view_newgtk_tree_path_freegtk_combo_box_get_activegtk_scale_get_typegtk_file_filter_set_namegtk_widget_set_upositiongtk_file_filter_add_patterngtk_expander_set_label_widgetgtk_tree_store_setgtk_widget_show_nowgtk_about_dialog_set_versiongtk_tree_path_new_from_stringgtk_window_set_destroy_with_parentgtk_tree_view_set_reorderablegtk_check_button_newgtk_combo_box_set_activegtk_signal_connect_fullgtk_tree_view_set_modelgtk_range_set_valuegtk_combo_box_new_textgtk_about_dialog_set_website_labelgtk_window_set_type_hintgtk_expander_newgtk_text_view_set_buffergtk_about_dialog_newgtk_fixed_putgtk_cell_renderer_toggle_newgtk_combo_box_get_active_textgtk_tree_view_set_rules_hintgtk_entry_set_invisible_chargtk_object_set_datagtk_frame_set_label_aligngtk_tree_sortable_get_typegtk_tree_view_column_new_with_attributesgtk_widget_set_usizegtk_tree_model_foreachgtk_tree_store_newgtk_check_button_get_typegtk_text_buffer_insert_at_cursorgtk_text_view_set_justificationgtk_progress_bar_set_textgtk_window_set_icongtk_file_chooser_button_newgtk_combo_box_get_typegtk_file_chooser_get_current_foldergtk_about_dialog_set_websitegtk_tree_model_get_itergtk_tree_view_column_set_sort_column_idgtk_text_view_scroll_to_itergtk_events_pendinggtk_tree_store_get_typegtk_about_dialog_set_licensegtk_tree_view_append_columngtk_window_set_urgency_hintlibgdk-x11-2.0.so.0gdk_threads_initlibatk-1.0.so.0libpangoft2-1.0.so.0libgdk_pixbuf-2.0.so.0libpangocairo-1.0.so.0libgio-2.0.so.0libcairo.so.2libpixman-1.so.0libpng12.so.0libxcb-render-util.so.0libxcb-render.so.0libxcb.so.1libXrender.so.1libX11.so.6libpango-1.0.so.0libfreetype.so.6libz.so.1libfontconfig.so.1libgconf-2.so.4libgthread-2.0.so.0librt.so.1libgmodule-2.0.so.0libgobject-2.0.so.0libglib-2.0.so.0libxml2.so.2xmlNewTextReaderFilenamexmlTextReaderReadxmlTextReaderNodeTypexmlTextReaderDepthxmlTextReaderValuexmlTextReaderNamexmlTextReaderIsEmptyElementxmlTextReaderMoveToNextAttributexmlReaderForFdlibm.so.6sqrtfloorlrintlibmpeg2convert.so.0mpeg2convert_rgb24libmpeg2.so.0mpeg2_parsempeg2_buffermpeg2_tag_picturempeg2_convertmpeg2_initmpeg2_infompeg2_closelibdvdread.so.3DVDReadBlocksDVDCloseFileDVDOpenFileDVDOpenifoCloseDVDISOVolumeInfoDVDCloseDVDUDFVolumeInfonavRead_PCIifoOpenDVDReadBytesnavRead_DSIlibdl.so.2pthread_cancellibpthread.so.0sem_postpthread_condattr_initsem_initpthread_mutex_unlockpthread_joinpthread_create__errno_locationforkpthread_cond_signalpthread_mutex_locklseek64pthread_cond_waitpthread_mutexattr_initsem_waitlongjmppthread_cond_initsystempthread_testcancelfcntlpthread_mutex_initlibc.so.6_IO_stdin_usedstrcpy__printf_chk_IO_putcsetlocalesrandfopenoptindstrrchrpipe__strdupdcgettextclosedirftellputstime__stack_chk_failunlinkmkdirreallocabortstdin_exitpopengetpidkillbind_textdomain_codeset__assert_failstrtodstrtokstrtolfgetcfgetscallocstrlenmemsetstrstrfseekdup2environ_setjmp__fprintf_chkstdoutfputcmemcpyfclose__vsnprintf_chkmallocstrcatstrcasecmpnl_langinfoopendir__xstat64getenv__ctype_b_locsscanfoptargstderrioctl__memset_chkfscanfexecvegetopt_longstrncasecmp__xmknodfilenopcloseusleepfwritefreadgettimeofdaystatfs__memcpy_chkstrchriconvfdopenreaddir64iconv_open__strcpy_chk__ctype_tolower_locsetvbuf__sprintf_chk__xstatmemmovefopen64bindtextdomainaccess_IO_getc__strcat_chksetbufstrcmpstrerror__libc_start_mainferrorsysconf_edata__bss_start_endparser_acceptbodyparser_errdvdvmlvaljumppadpstypesdvdvmindvd_vm_parsed_cmddvdvmtextdvdvmlengparser_bodydvdvmchardvdvmnerrsentriesdvdvmoutGLIBC_2.1GLIBC_2.0GLIBC_2.2GLIBC_2.3.2GLIBC_2.4GLIBC_2.3GLIBC_2.3.4          /0ii ii Pii ii ii ri ii ii ii ii ii ti                  X    r          $  (  ,  0  4 8 < @ D H L P T X \ ` d h l p t x |  ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I$ J( K, L0 M4 N8 O< P@ QD RH SL TP UT VX W\ X` Yd Zh [l \p ]t ^x _| ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~           $ ( , 0 4 8 < @ D H L P T X \ ` d h l p t x |                                          $ ( , 0 4 8 < @ D H L P T X \ ` d h l p t x |                                             $  (  , 0 4 8 < @ D H L P T X \ ` d h l p t  x !| " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K$ L( M, N0 O4 P8 Q< R@ SD TH UL VP WT YX Z\ [` \d ]h ^l _p `t ax b| c d e  f g h i j k l m n o p q r s t u v w x y z { | } ~             US[Lt=(X[5 % % h% h% h% h% h % h(% h0% h8p% h@`%$ hHP%( hP@%, hX0%0 h` %4 hh%8 hp%< hx%@ h%D h%H h%L h%P h%T h%X h%\ hp%` h`%d hP%h h@%l h0%p h %t h%x h%| h% h% h% h% h% h % h(% h0% h8p% h@`% hHP% hP@% hX0% h` % hh% hp% hx% h% h% h% h% h% h% h% hp% h`% hP% h@% h0% h % h% h% h% h% h% h% h% h % h(% h0% h8p% h@`%$ hHP%( hP@%, hX0%0 h` %4 hh%8 hp%< hx%@ h%D h%H h%L h%P h%T h%X h%\ hp%` h`%d hP%h h@%l h0%p h %t h%x h%| h% h% h% h% h% h % h(% h0% h8p% h@`% hHP% hP@% hX0% h` % hh% hp% hx% h% h% h% h% h% h% h% hp% h`% hP% h@% h0% h % h% h% h% h% h% h% h% h % h(% h0% h8p% h@`%$ hHP%( hP@%, hX0%0 h` %4 hh%8 hp%< hx%@ h%D h%H h%L h%P h%T h%X h%\ hp%` h`%d hP%h h@%l h0%p h %t h%x h%| h% h% h% h% h% h % h(% h0% h8p% h@`% hHP% hP@% hX0% h` % hh% hp% hx% h% h% h% h% h% h% h% hp% h`% hP% h@% h0% h % h% h% h% h% h% h% h% h % h(% h0% h8p% h@`%$ hHP%( hP@%, hX0%0 h` %4 hh%8 hp%< hx%@ h%D h%H h%L h%P h%T h%X h%\ hp%` h`%d hP%h h@%l h0%p h %t h%x h%| h% h% h% h% h% h % h(% h0% h8p% h@`% hHP% hP@% hX0% h` % hh% hp% hx% h% h% h% h% h% h% h% hp% h`% hP% h@% h0% h % h% h% h% h% h% h% h% h % h(% h0% h8p% h@`%$ hHP%( hP@%, hX0%0 h` %4 hh%8 hp%< hx%@ h%D h%H h%L h%P h%T h%X h%\ hp%` h`%d hP%h h@%l h0%p h %t h%x h%| h% h % h % h % h % h % h( % h0 % h8 p% h@ `% hH P% hP @% hX 0% h` % hh % hp % hx % h % h % h % h % h % h % h % h p% h `% h P% h @% h 0% h % h % h % h % h % h % h % h % h % h( % h0 % h8 p% h@ `%$ hH P%( hP @%, hX 0%0 h` %4 hh %8 hp %< hx %@ h %D h %H h %L h %P h %T h %X h %\ h p%` h `%d h P%h h @%l h 0%p h %t h %x h %| h % h % h % h % h % h % h( % h0 % h8 p% h@ `% hH P% hP @% hX 0% h` % hh % hp % hx % h % h % h % h % h % h % h % h p% h `% h P% h @% h 0% h % h % h % h % h % h % h % h % h % h( % h0 % h8 p% h@ `1^PTRh` hp QVh;US=$ u@(  - X9sB(  ( 9r$ []Ív'U tt $ ÐUWVS@$蘙v4$ÉD$WD$H ${\$$3D$$\$4$D$P $k\$$D$$\$4$D$Z ${[GA\$$D$$y\$4$D$b $1AG\$$_D$$/\$4$CD$j $'\$$D$$\$4$D$v $\$$D$$\$4$D$ $gG}\$$D$$e4$[^_]Ð\$$hD$$8&\$$@D$$&\$$D$$4$[^_]Ít&D$ D$ / D$>D$ $t&D$ D$ / D$AD$ $Xt&D$ D$ / D$DD$ $(t&D$ D$ / D$HD$ $t&D$ D$ / D$OD$ $t&D$ D$ / D$VD$ $t&D$ D$ / D$ZD$ $ht&D$ D$ / D$^D$ $8UWVS }${tg"D$$ÉD$p vt&t@t$$$Vu${Yủ$x [^_]N$b$v'L$qUWVSQHIeU1҉$D$ $ D$( $ $ A@$D$MGD$D$ D$ t$D$D$ $ |$ @$ D$$ $ Tt 8D$q $D$$ D$D$${[{$襻1:v   tL9~n u${덐t&D$D${D$9FQD$$ M$蓒=Cw4$'[D$D$ $d\$$D$ " D$D$D$6D$4$\$$>4$D$D$H $tt\$$D$$|\$4$D$P $4d\$$lD$$<\$4$PD$Z $T\$$,D$$\$4$D$j $D\$$D$$\$4$D$v $t4\$$D$$|\$4$D$ $4$\$$lD$$<4$D#4$r1}e3=!HY[^_]aÐt&D$D${D$z4f$謇$oD$ D$ * D$D$ $Vf  މD$ $D$ $zD$. $ID$@ $D$U $D$k $D$} $D$ $vt[D$ $bt1D$ $ND$ $D$ $yD$ $cD$ $MbD$q $41D$_ $D$I $D$4 $D$" $mD$ $U1$ÉD$6UD$D$ D$T$$U܋Ẻ$D$D$$mD$$ D$ E$E$U܉\$$UD$D$ D$T$$EEԉD$E$nt$t$$nD$D$ $r$ZD$ E$gU$ E܉\$$ UD$D$ D$T$$ÉD$E$D$$U\$$D$$aUEԉ$D$t$t$$EЉ<$D$pD$ E$U$` D$$3D$ E$PU$U܋E$D$UT$$贻UE$D$Ҵ` vD$E$跴D$D$$迻蚺D$ lj$Ȼ<$pUET$$n|$$2U<$T$S` 致<$ÉD$9D$$Y\$<$D$$轺D$D$ $!$ D$ E$E$U܉$D$跳UT$$3D$E$蔳D$D$$茽U4$T$mD$ E$蔺E$9U$D$5D$$$ YD$+ E$FE$U4$T$UD$T$$UE$D$ò` $ D$1 E$ݹE$U4$T$胲UD$T$$UE$D$Z` ED$D$D$ D$ rD$: $谹UD$D$D$ $D$qD$Z }ED$D$D$ D$qD$Z $J4$D$P誱t$D$l $V4$D$P膱UD$ T$$/Eȉ$D4$D$PR\$D$ D$ $Ủ$ 4$D$P\$D$ D$ $轮EЉ$4$D$P\$D$ D$ $脮Uԉ$4$D$P觰\$D$ D$ $KE؉$`4$D$Pn\$D$ D$ $U܉$'4$D$P5\$D$ D$ $٭E$4$D$P\$D$ D$ $蠭<$4$D$PƯ\$D$ D$ $jU$4$D$P药\$D$ D$ $14$D$PaUD$ T$$ E$4$D$P-\$D$ D$+ $ѬU$4$D$P\$D$ D$1 $蘬\[^_]fUWVS蛬E賻D$B lj$<$@D$芮D$$D$D$L $莬<$ÉD$It$?$ش\$<$,D$$,\$<$D$Y $`\$<$D$$褪迹<$DD$ͭD$$蝰D<$D$諭D$h h$ϴh$q$ED$u l$蟴l$A謴h$HD$4lD$D$ D$T$$ʵuLD$l$D$D$$%LlT$$转D$$mD$ ?D$?D$$D$| p$賳p$Ul@$D$MpT$$ ֻPD$p$D$D$ D$D$$fD$D$$ D$ t$t$覺p@$D$螫tT$$\t@$D$tD$ $OTD$t$GD$$7TtT$$D$$迭 D$Z5 x$4x$ֹtT$D$ΪxD$$D$ D$T$D$$D$D$D$ D$gXD$x$_D$" $ϺD$D$ $c$KD$ |$U|$tT$D$|D$$D$ D$T$D$$D$D$D$ D$ (\D$|$耩t$D$$|D$D$ $耧$hD$ E$uU$tT$D$UD$$D$ D$T$D$$D$D$D$ D$3U\$D$讨t$D$$課D$D$ $讦$薮D$ E$裯E$HTtT$$@UD$$D$ D$T$D$$D$D$D$ D$aU\$D$ܧt$D$$رD$D$ $ܥ$ĭD$ E$ѮE$vTtT$$nUD$$D$ D$T$D$$D$D$D$ D$菸U\$D$ t$D$$D$D$ $ $D$ E$E$褵TtT$$蜦UD$$D$ D$T$D$$D$D$D$ D$轷U\$D$8t$D$$4D$D$ $8D$$HD$- E$%E$ʴTtT$$¥UD$$D$ D$T$D$$D$D$D$ D$D$D$ $臣D$$藪D$5 E$tE$TtT$$UD$$D$ D$T$D$$D$D$D$ D$2譫D$< E$E$菳TtT$$臤UD$$D$ D$T$D$$D$D$D$ D$訵3D$D E$`E$@ET$$UT$$ED$ $讲D$D$Y $XT$ËE$諣\$$XET$$芣D$" $eD$_ E$袪U$GtT$D$?UD$$D$ D$T$D$$D$D$D$ D$`D$f E$E$轱@ET$$踢UT$$yED$ $fD$D${ $誠XT$ËE$c\$$觮XET$$BD$" $貲D$D$ $F$.D$ E$;U$tT$D$ءUD$$D$ D$T$D$$D$D$D$ D$U\$D$tt$D$$p+D$36 E$舨E$-TtT$$%UD$$D$ D$T$D$$D$D$D$ D$FD$$ rD$ E$E$蔯@ET$$菠UT$$PD$D$ $蔞$|D$ E$艧E$.TtT$$&UD$$D$ D$T$D$$D$D$D$ D$GU\$D$Ÿt$D$$辩虦D$ E$֦E${TtT$$sUD$$D$ D$T$D$$D$D$D$ D$蔰D$D$ $81ƉD$E$\$$脣D$D$ $Ut$$跞\$$KD$D$ $远t$ËE$~\$$D$D$ $膜Ut$$E\$$٢D$D$. $Mt$ËE$ \$$蠢D$D$@ $Ut$$ӝ\$$gD$D$U $ۛt$ËE$蚝\$$.D$D$k $袛Ut$$a\$$D$D$} $it$ËE$(\$$輡D$D$ $0Ut$$\$$胡D$D$ $t$ËE$趜\$$JD$D$ $辚Ut$$}\$$D$D$ $腚$mD$ E$zE$LlT$$UT$$訣3`D$E$D$$讫\ET$$ɛD$D$$$uD$ E$ҢU$whH$D$oUD$D$ D$T$$UL$D$3D$D$$kUL$D$D$$趭D$ ?D$?D$$BD$ Eĉ$Eĉ$褩@ET$$蟚UĉT$$`UċP$D${D$D$ D$D$$ÛD$D$$gD$ Ɖ$e4$ Uċ@$D$t$$̠@4$D$D$ $ZT4$T$șD$$踛T4$D$覙D$$FD$D$ $誗$D$ Eȉ$蟠Uȉ$DT4$D$BUD$$D$ D$T$D$$D$D$D$ D$c.ÉD$Eȉ$ݘ` D$D$ $UD$ T$D$E$輣Uȉ$dD$肘D$$D$D$5 $膖$ޛD$J Ẻ${Ẻ$ T4$T$UD$$D$ D$T$D$$D$D$D$ D$?Ẻ\$$` D$D$ $͕UD$ T$D$E$蟢dẺT$$jD$$ʣD$D$P $n$ƚD$L EЉ$cUЉ$T4$D$UD$$D$ D$T$D$$D$D$D$ D$'EЉ\$$訖` D$D$ $赔UD$ T$D$E$臡D$D$^ ${$әD$q Eԉ$pUԉ$T4$D$UD$$D$ D$T$D$$D$D$D$ D$4Eԉ\$$赕` D$D$ $“UD$ T$D$E$蔠dEԉT$$_D$$迡:D$y E؉$wU؉$T4$D$UD$$D$ D$T$D$$D$D$D$ D$;D$D$ $ߒ$ǚD$ E܉$ԛE܉$yT4$T$wUD$$D$ D$T$D$$D$D$D$ D$蘥U܋\$D$D$?D$?$ D$D$ $$gD$ E$E$詢T4$T$觓UD$$D$ D$T$D$$D$D$D$ D$ȤE\$$I` D$D$( $VUD$ T$D$E$(dET$$D$$SD$D$` $$ߘD$ E$U$葡UL$D$茒UT$$U䋅`$D$hD$$(U䋅\$D$C1҉T$T$$AD<$D$D$ E$FU$薦D$E$D$$G$I  D$ E$U$蝠D<$D$蛑UD$T$$败E\$$u` <$D$D$D$ D$rD$ ΘUD$D$D$ $D$sD$ 蛘ED$D$D$ D$tD$ $hUD$D$D$ $D$wD$Z 5<$D$P蕐|$D$B $A<$D$PqhD$h T$$l$)<$D$P7\$D$ D$u $ۍp$<$D$P\$D$ D$| $蟍t$豢<$D$P迏\$D$ D$ $cx$u<$D$P胏\$D$ D$Z5 $'|$9<$D$PG\$D$ D$ $U$<$D$P\$D$ D$ $貌E$ǡ<$D$PՎ\$D$ D$ $yU$莡<$D$P蜎\$D$ D$ $@E$U<$D$Pc\$D$ D$ $U$<$D$P*\$D$ D$- $΋E$<$D$P\$D$ D$5 $蕋U$誠<$D$P踍\$D$ D$< $\E$q<$D$P\$D$ D$D $#U$8<$D$PF\$D$ D$_ $E$<$D$P \$D$ D$f $豊U$Ɵ<$D$PԌ\$D$ D$ $xE$荟<$D$P蛌\$D$ D$36 $?U$T<$D$Pb\$D$ D$ $E$<$D$P)\$D$ D$ $͉U$<$D$P\$D$ D$ $蔉E$詞<$D$P跋\$D$ D$ $[U$p<$D$P~\$D$ D$ $"Eĉ$7<$D$PE\$D$ D$ $4$<$D$P\$D$ D$ $賈Uȉ$ȝ<$D$P֊\$D$ D$ $zẺ$菝<$D$P蝊\$D$ D$J $AUЉ$V<$D$Pd\$D$ D$L $Eԉ$<$D$P+\$D$ D$q $χU؉$<$D$P\$D$ D$y $薇E܉$諜<$D$P蹉\$D$ D$ $]U$r<$D$P耉\$D$ D$ $$E$9<$D$PG\$D$ D$ $<$D$PUD$ T$$ėE$ٛ<$D$P\$D$ D$ $苆<$D$P軈UD$ T$$d[^_]Ít&'UWVS[$EܒD$ lj$蚏D$D$ $n<$ƉD$)\$$轎$ t t$<$\$$$ۍD$$藏D$o E$E$詖<$dD$袇UT$$c.D$ E$軎E$`ˎU$hD$VUD$D$ D$T$$蚚ÉD$E$D$$هU\$$D$$躎E\$$ۆ$$Y EtD$ l$l$萕Ud$D$苆lT$$ID$D$ $荄ƉD$l$BU\$D$ T$$藃lt$$D$$$ 詓D$P p$#p$ŔUd$D$pT$$~D$D$ $ƒt$Ëp$~U\$D$ T$$ӂE$ D$É$6D$D$- $Z$D$辊D$Z t$Ht$Ud$D$tT$$裋D$D$6 $t$Ët$裄U\$D$ T$$$w ,D$H x$見x$HdET$$CxT$$D$D$T $Et$Ëx$U\$D$ T$$Vxt$$ԃD$$褓$e hD$o |$|$脒Ud$D$|T$$=D$ $D$u E$膊E$+hET$$&UD$D$ D$T$$迋Ud$D$D$ $ZD$D$$D${ E$E$萑hET$$苂UD$D$ D$T$$$OƉD$E$ND$$>Ut$$/D$$τ: T$(\$ \$ \$T$$~\$$$(D$b E$E$誐Ut$$諁UD$$D$ D$T$D$$D$D$D$ D$̒藏ED$E$E` U$D$*D$$D$ E$BE$Ut$$UD$$D$ D$T$D$$D$D$D$ D$ D$D$ $~UD$ $D$ED$JD$E$KD$" $軐D$D$ $O~$7D$ E$DU$Et$$UD$$D$ D$T$D$$D$D$D$ D$ &ED$E$D$D$?$|D$D$ $}$hD$ E$uU$Et$$UD$$D$ D$T$D$$D$D$D$ D$ ED$E$W}D$D$ D$D$$~D$$+D$ E$HU$Ud$D$|UT$$詃UE$D$|` kƉD$E$|D$D$$貃xD$j Eĉ$躃Uĉ$_Ud$D$Z|UĉT$$D$D$ $_zUD$ $D$EĉD$1LED$Eĉ${D$$誈D$D$ $y$D$ Eȉ$Uȉ$蘊E\$${UȉT$$*zED$Eȉ$s{D$$3UEȉT$$Q{D$D$$I$yD$ Ẻ$ZỦ$Uh$D$zUD$D$ D$T$$蓃ED$xD$$xỦ\$$zD$D$$Ẻ\$$zD$$2D$ ?D$?D$$xD$! EЉ${UЉ$ Űd$D$zUЉT$$܀UЋE$D$yD$D$ D$D$$B{D$$~D$, Eԉ$Eԉ$萈dEЉT$$yUԉT$$LUԋE$D$jy` Eԉt$$TyD$D$$\uD$v E؉$dU؉$ Uԋd$D$yU؉T$$D$D$< $ wUD$ $D$E؉D$ۃU؋E$D$xD$$YD$D$Y $v$~D$f E܉$E܉$GỦ\$$HxU܉T$$U܋E$D$'xD$$U܋E$D$xD$D$$$vD$r E$E$賆hET$$wUD$D$ D$T$$GED$D$$,~U\$$]wD$D$$蕊E\$$6wD$$D$ ?D$?D$$ruD$y E$/~U$ԅUd$D$vUT$$}UE$D$vD$D$ D$D$$wD$${D$ E$}E$DdET$$?vUT$$}UE$D$v` Et$$vD$D$$};rD$ Ɖ$}4$dET$$ut$$|D$D$ $sUt$D$ $D$虀E4$D$juD$$D$D$ $ns$V{D$ E$c|U$E\$$ uUT$$|UE$D$tD$$訄UE$D$tD$D$$~<$D$D$D$ D$rD$ |<$D$D$D$ D$`rD$ {lD$D$D$ D$ D$Z ${pD$D$D$ $D$D$Z r{tD$D$D$ D$zD$Z $<{xD$D$D$ $D$ |D$Z {|D$D$D$ D$rD$Z $zUD$D$D$ $D$PqD$ zED$D$D$ D$uD$ $jzUD$D$D$ $D$`qD$ 7zED$D$D$ D$D$ $z4$D$D$D$ D$pqD$ y4$D$D$D$ D$pD$ y<$D$Pr|$D$ $谀U$ń<$D$Pq\$D$ D$o $woE$茄<$D$Pq\$D$ D$ $>ol$P<$D$P^q\$D$ D$ $op$<$D$P"q\$D$ D$P $nt$؃<$D$Pp\$D$ D$Z $nx$蜃<$D$Pp\$D$ D$H $Nn|$`<$D$Pnp\$D$ D$o $nE$'<$D$P5p\$D$ D$u $mU$<$D$Po\$D$ D${ $mE$赂<$D$Po\$D$ D$b $gmU$|<$D$Po\$D$ D$ $.mE$C<$D$PQo\$D$ D$ $lU$ <$D$Po\$D$ D$ $lE$с<$D$Pn\$D$ D$ $lU$蘁<$D$Pn\$D$ D$ $JlE$_<$D$Pmn\$D$ D$ $lUĉ$&<$D$P4n\$D$ D$j $kEȉ$<$D$Pm\$D$ D$ $kỦ$贀<$D$Pm\$D$ D$ $fkEЉ${<$D$Pm\$D$ D$! $-kUԉ$B<$D$PPm\$D$ D$, $jE؉$ <$D$Pm\$D$ D$v $jU܉$<$D$Pl\$D$ D$f $jE$<$D$Pl\$D$ D$r $IjU$^<$D$Pll\$D$ D$y $jE$%<$D$P3l\$D$ D$ $i4$~<$D$Pk\$D$ D$ $iU$~<$D$Pk\$D$ D$ $hi<$D$PkUD$ T$$Az[^_]ÐU1]É'U1]É'U1]É'U]Ít&'U@ ]Ð1=D UD ]Ív'U]Ít&'U]Ít&'U` ]ÐU` ]ÐU]Ít&'U]Ít&'UE$~tEt&E t&'U{$?tzÐU]cz&U]Sz&US褐D$D$$sRmu$D$i$)x4i$D$iE[]Kr U8E E EE$fmD$D$D$D$D$ EED$D$$mE$sÍ&Uuu}]4$"vt@xs4$D$h\$@D$h]} u}E]uf]u}]ÍvUuu}]4$ut@xPs4$D$h\$@D$uh]} u}E]tf]u}]Ív{UE] U8]]EuuD$ D$D$\$4$wzEt8ED$ D$D$\$4$MzE(  ]1u]U8]]EuuD$D$ D$\$4$yUt8ED$ D$D$\$4$yE  ]1u]UVS@u\q]4$D$ g$sU\$T$$rt5ED$ ED$D$\$$HyE4$D$-.@1[^]Ít&Uu]}謪mD$D$ $d$D$vD$ $od*o4$D$l$fp뢐&UVS ud4$ÉD$e$*?\$4$ze$8t1\$4$aeD$B $tE [^]mv [^]ÐD$B D$ D D$D$ $vU+W VS1< D$H 4$}rd<$D$d\$$d@ u <[^_]ÐD$j 4$0vn$]܉ljD$\d$TpU\$T$$pt.ED$D$ D$\$E$vE죀 D$v 4$賉)|$$c$o$|$c$MgÉE$oEЉD$$cD$D$u$aD$ 4$8|$$pc$fE!UЉ$T$NcD$D$t$a<[^_]fD$ D$  D$kD$ $tt&D$ D$  D$pD$ $tt&D$ D$  D$|D$ $`tt&D$ D$  D$D$ $0tt&D$ D$  D$D$ $tt&D$ D$  D$D$ $st&UVS0_aD$E$aD$ $蔇D$$ 3ۉ ~ET$$D$t$D$ D$ G$D$b 'u p ]fe$D$JaE\$$j$#p0[^]D$D$< $@_$0[^]Ðt&D$ D$  D$D$ $rt&D$ D$  D$D$ $`rt&UWVSueE1_4$ÉD$o`D$ $AT\$4$D`D$b $F5d$D$`$lٞ؃= p ݝx $D1Cv"݅xD$$ a1A ݅x\$D$ D$ D$<$螂= ]$4b \$ D$ D$$_oD$D$ $*]$֖At&=p = ݝxD$D$< $\$蓖Ee3KĜ[^_]SD$ D$ <$D$ D$^ƀ= <O뛍 ݅x\$D$ D$ D$<$-뭐D$ D$  D$iD$ $ot&D$ D$  D$mD$ $xot&D$D$d $[$t&D$ D$  D$|D$ $ot&/gvUS\D$E$1]D$ $Ղt7 tD$ D$ D$$1[]Ít&D$ D$  D$UD$ $xnUS\D$E$\D$ $5t7z tD$ D$ D$$d1[]Ít&D$ D$ D$ED$ $mUa[D$E$[D$ $薁 tE^D$D$< $YE郓vUWVS,eE1ZD$E$q[D$ $+$cKD$$ -Ɖ$U [C$$) [D$D$ $ Y\$D$ " D$D$$D$]in<$D$Z\$$1a<$t tD$ D$ D$<$pEe3,[^_]Ðt&4$4vD$4 D$ W D$D$ $kt&D$ D$ W D$D$ $kt&$t1&cD$ D$ W D$D$ $;kU0 4 ]U8 < ]UT0]ÐU, ]ÍUS]u:, 0  4 8 *< []Ít;$tbP@, 4 0 8 < []Í, 0 4 8 >< [] jUWVS,]eE1$W$Z 2>&f@1= D$1+ $d t$D$<$xYt< t]< tW&D$%$_tD$$k5p $3[y4$Sf3< t< u4$t&S1uPUe3,[^_]á \$D$  D$t D$$3g밀= t&t T$D$  D$ D$$fpv`vUHM]]u}1QA[ik<AE졤{@@T{U @(E,tE1E}E]UMىÀ= 4tBUD$Et$ D$  T$U D$ D$ D$T$$e؋u]}]ÍvU8D$H6 ]]u}H6 eE1$ &u~\$D$ D$D$4$XX= t) t$D$  D$t D$$6e4$gue35ug]u}]Ð t48vuǀxluxcuxu\$D$ Kt&\$D$ 5V^v'U8D$H6 ]u}H6 eE1$ %Ɖtu 8vD${\$D$ D$D$$ W$fEe3]u}]ÐD${D$ D$D$$V$~f몀xlt&bxcRxBED${D$ D$7vED${D$ D$\UWVS\E$EEEE̋Ű@REЅ҉U"EUEEEEEt&E̋TUBJZƒ‰%i‰%k<U}tzE}11EUĐUԀ|2 tPU1۹,t1ۋEUЉEEEEU‹EUUEU܃;uuEU9UE tUE E؋U܃\[^_]Í&'UE$PE DB Ƀ USE$PE T1x []ÍvÃt,ƉtЃuڃ[]ÍvЉكuꐍt&Ɖˉuߍ&UWVSdX={Dž`\t&`\x(@0LftHtDp11ۍ&DxtLG`d 9͋X`;`yd11ۍ&ӃE9u Ĩ ډ[^_]Ðt&UWVSEU ulEhd`D$$ |hx$H=  CEEEUU EU9U h$EEEpPEUuDEEEEE\ŰuTUBJZƒ‰%i‰%k<U}E}11EUfU|2 teU1۹,t1ۋEUЉTEቅHTL‹HLLEUă;\uEU9U= H E}EE׋dƋ U1۹EԀ,tEԀ1ۉ؉ЉTETU€= UUET$$]D$ UD$D$ w D$d T$D$$+T= t3EU$T$]D$] D$D$ $SdRU1۹ E؀,tE؀1ۉ؉ЉTTE]= $\$\D$ UD$D$ w D$d T$D$$:D$D$ $2\$D$D$ D$ $3L$Ë$3\$$60$D$&79D$D$ $1\$D$D$ D$ $_3 $T$3\$$/$D$6D9D$D$ $1\$D$D$ D$ $2$ËD$2\$$9 L$$.T$$.D$D$ D$0D$$8 L$$-T$$-D$D$ D$0D$$8 L$$r-T$$`-D$D$ D$D$$H8tZL$$-$0 D$D$D$ D$0D$: $d4L$$,$8D$$d/$: $;$D$p,D$ $R$ $L$@,D$$@*$$D$,D$$1t$$L$$+\$$-$T$ $+D$$F1t$$D$$+\$$-$L$$t+D$$0t$$T$ $F+\$$Z-$$D$"+D$$0t$$L$$*\$$-$T$ $*D$$P0t$$D$$*\$$,$L$$~*D$$/t$$T$ $P*\$$d,$$D$,*D$$/t$$L$$)\$$,D$D$@D$@D$ @D$@D$$V'(C:D$D$ \$,$4,D$D$ D$ D$$$ )$ $T$7)\$$%v/D$D$T $8'\$D$D$ D$ $)$$ËD$(\$$n%$D$^,.D$D$ $&\$D$D$ D$ $(L$Ë$$M(\$$$$D$+|.D$D$ $>&\$D$D$ D$ $($T$ $'\$$t$D$$d+Uƒ;wO0|tˋXD$  D$D$ĉT$D$ $F*(D$D$$c#D$D$? $$|$D$D$4$D$ )(L$D$t$ $D$+$D$D$' $y$\$D$D$4$D$ Y)(L$D$t$ $D$=+[D$D$' $  #D$D$\$4$D$ ((L$D$t$ $D$*(T$ L$$D$D$*0(D$D$T$ L$$]*= td1ۋT$\$0D$DL$ D$ D$D$ $4D$$X#t;(D$D$ D$D$$)DŽ8UvfDžxxƅ&vÃu˃ƃu؉Ӄ v($D$#L$Ë$$#\$$~#$ $T$#$/D$$N&($D$v#L$$d#D$D$ D$АD$$L.($D$$#L$$#D$D$ D$`D$$-($D$"L$$"D$D$ D$`D$$-$$D$"$% ,D$D$D$ $D$D$: )$$`0($21D$ D$D$ $Z){1DžPf: Dž\DžHDžLfLHBT{$]= Lۋ\@S({H{0 PBD Yy AHB= p@WC,W{P,vB@@G= @E 1t&= #9|X t؋  $D$  D$ĉT$D$D$rUD$$ 9yBƒ‹iHXȃ%k<‰%؀= 8BLB= .B1Dž,Dž4Dž,Dž0;44D(;0DžX00DžXDƍR<X;(N`H@˃)À= <8t1 T$$/<8D$  D$ T$ 4L$D$`D$T$D$ $;%Bf00DD0X,4B94,= t@1 $T$=.D$  D$ D$D$ $$,q 1U1tt&|Qtу9틕ųx|$D$㸉 i ΋ $$7LD$D$? $@LD$D$$T$D$ |$D$\$ $D$ k$ĉ\$ $D$$D$G|$D$\$ $D$4{H@@tD$D$? $t$D$D$$D$ |$D$\$ $D$D$D$' $UT$D$D$$D$ m|$D$\$ $D$WD$D$? $t$D$D$$D$ |$D$\$ $D$ D$D$' $4 D$D$t$$D$ |$D$\$ $D$m|$D$T$ D$ $A;\xh|lpt{H LP9@/\ \$ D$ D$$ 1fA({H@@D\$L$ D$e D$ D$$ }MT$D$d $ $ D$ D$D$ $ D$  D$ D$$Ut$ D$ D$D$ $( L$\$D$D$D D$D$LD$ $= EBD$ D$D$ $= {W$ƉD$3L$ËP$\$$ P $T$ $D$$(t$Ë$ \$$ D$D$ D$D$$t$$~ \$$r D$D$ D$D$$Zt$ $8 \$$, D$D$ D$D$$t$$ \$$ D$D$ D$D$$t$$ \$$ D$D$ D$D$$t$ $f \$$Z D$D$ D$D$$BP$L $1Ue3[[^_]ÍED$dD$ $&: D$ D$$ D$ [P$D$ $hT$$L$$.D$6 D$  D$D$ $D$ D$  D$D$ $D$ D$  D$D$ $D$D$ $$B|D$D$ $D${$OBUUE]   Í&UWVS,ɉUM1:vW8 Eiڸ_0CW8E+C9u܉C EG~i]$uE$D$iG8H_0trt5uE$^Ht&D$, ${D$\$$ = ED$D$ $S|$\$$<$?1ېt&9ߍv"T$\$$~D$D$$T$ y=uf   T$ $$`Qkd9S$?&$Y$+:t& |$\$D$  D$p D$$  $T$= vu w |$D$  D$< D$ D$$= c |$D$  D$ D$D$D$ $Et&U]É}׉u@$9S}=s K9t $D$t$KS$K ST$ $ CC C$uCC ]u}]Í&'UXuE u]1ۉ}}F$eU1҅u2t ~ ?u]Ue3ؐ]u}]Ðt&9lj*\$)ߋF $D$ ^ )^$랉ҍt&F D$FD$F$kui} F D$$ F9DžD$F $AF@@<‹t[JVDž 1;v( ;;rӀ= ?t1FD$  D$ D$D$ $?F DžF$$t$ F $ɉ1ۀ=  1D$  D$  D$$1F= t8 L$D$  D$ D$$R 1F ‰qF 1Dž(v9vOL$FDD$F$Xu$DžV$$$ twF F F|$4$L$VV P,V0$T$$eF $EDžZF %F뉉'U(ueE1 ]Ӊ}υt< \$t$$  = 1&u 4$D$$  x =?t D$D$4$D$ /=t$Ue3]u}]f  x   $T$4 D$ $  @   - D$D$4$ 1FD$4$aOt $| x t |$D$ %   D$p D$D$$D$7D$, $wt x k t&UWVS u} E8t&)]~+߁~EڋHWyEE [^_]ÐUWVSÃ\UċM?%E؉%@?%@ۉE܉UЉ] Z]ȋE1ۅHE1EEԋrEfN4Eu*1ۃ<;}rE̅f\[^_]ËF0P9UԉEU%E]9]wڋ]i9PrMx1i¸ËC9Eu?xt&U9Mg]]i¸ËC9E>;EwƍJǐ]ԍ&= 6UUЋED$  D$( D$ЉD$ $ = ED$  D$ D$D$ $ iٸU;P˃]i¸EEE̋@9EԉEuCvUU9U{Ei¸EX9]ԉẺ]YE9ErU뾋E̅ŰB+C]܉1) E ]؋U؋Eĉ\[^_]Í&UWVSӁ\}eE1= cD$D$Y $o\$t$$\$$t$|$D$ % D$D$-$D$u h $LdDžt&D$D$4$T$ t%<$$4$腷v:T$4$!Dž DžP҉~%H1ۍ&Q4<9 D$ D$y D$$Dž.t&?9uDž.?6Dž2?v?9uDžfDžDžDžDžfDžt&9u$D$?D$ȉt$!<$|$ D$D$$I.=?tW ;~214$Q }e3=\[^_]9~D$D$<$$~ 9@딍q0;~i¸;Pi¸@9DžG9i¸@9tp9r볍v%Dž T$t$D$  D$A D$$ kxR G .ڹ9u狅ڹ62vڹ9u狅ufx#f=?tP1!ffx#f=?t1V!ffx#f=?t1W!ffx#f=?tP1!ffx#f=?t1V !ffx#f=?t1W$!ffx#f=?tP(1!ffx#f=?t1V,!f1ɍvx,=?t%=t1T0!‰ uI UWVS|p $a= @0R8[UJ9Q(u㋕<QPQMPA9|ƒE]ăE 9rVf= t,D$ D$  D$ D$$@ DžDžE1Dž|Bɉeuv~"}1ۋOQ4<9烅9w9s4V9wۉS fA5 Eu}ȋPfzREDž&MIɉ~(]K1ۍ&Q4<;|狝WB;n]M9}4 t&VB9MfJE;ED$p $D$.|[^_]Íq0P;~` i¸;P\i¸EЋ@9DžXHX\9\\i¸`EЋ@9P9PrX벐t&PDžL&q0;~u6i¸;P#Ui¸E@9E9EU9EEi¸EE@9E9rU뾋A0;pE^i;8PKU?i¸EE@9ƉEBUE9EEEi¸Ep9E9rU뮋y0$;G0oi;7P\,Mi¸E̋@9$Dž(N,(9, (,i¸0E̋@9$C9$r(D$ D$  D$ D$$i{Dž|$Dž "UЋDždR LqLYht&TG@~!1ۋQ4<;|狕BBAAABBBUЋB BFE܋FEFEF EFEFEhDždBfq0h;~x[i¸;PHt9i¸l‹B9DžpQlpt9tti¸lx‹B9htO9hrlp멋 D$  D$ t$D$$.B ddΉYD$ D$  D$ D$$Uu% BuhUR ||V:E̋Dž4@ Z ۉJ8y8Dž4F<~ 1ۍvQ4ur<;<|닝CCFFFCCCűF FFE܋FEFEF EFEFEA08;pHvi;8PcDTHi¸ƋF98tnDž@OD@9D @DHi¸ƋF98t98r@뭋V 44Y ID~IDvUWVS\eE1B;p t ts$t  x  s; %  ڡp 4$yۻ GXxۋ p x  Aңp BB X$h ; p {x XP $V¡p BA B ujBB O_J(Z, G= uG 1ۅMUe36\[^_]ÍvJċA;BuABfGL$D$  D$9 D$ D$$D뇡{@@ X= q@R)Љ X$D$D$ $\$T$$Q $D$GD${$1׹ 󫉵AT$1҉ $T$,SËt$d<$@ HY$D$D$t $\$|$$JG\$L$D$  D$ D$H D$$wPAD$BD${$tY|$$\$舢Lt <$u \$<$袠 x x   0\$$ǀ D$ $  D$$1Ʌ 1BB B DB 4$D (w&Bt$D$  D$D$D$$D$, $t <C|$D$4$$u <$t&K tVx    t D$D$<$D$ =~Wt D$D$<$D$ =Myt&'UWVS1UMEE<ݝ08@D$V eE1$[ D$V $s DD$$ H = vD$`É观)օD$$ ǭFD$@$D$ $x$D$$D$$ D$$` yU |$` D$` $M1d󫋍@p  t  $x     V$` ¡{@@>D$$ \褬$&$` 認D$D$ $\$$`D$D$ $$<DD$ D$  D$\$D$$`$&%^L$}D$  D$(D$4$4$\$D$  D$(D$4$4$~D$ 5 D$dD$<$D$DD$D$D$$@(.< $ݝD$5 ݅݅0ٞ^8 ݕ0= HݝD$D$P $݅\$$g݅ݝ0x   S$ǙDžTDžPX:,ftbt&l ~;,1ҋph N9t9~9u,@9FTǃ 9T|XT$D$ $= t&;   ډ$p yDžLfr  9EL$$D$D$t $7\$$}DžLx $4\D$$ 臝H $D$ T$D$  D$D$$)D$D$ $e$L$\$D$ D$  D$(D$4$'4$rOD$$9 袜D$$ 耜rD$$9 ^Pt&t>vuD$D$, $~L$$ vD$D$ $HT$$ D$D$S $$D${D$ e D$(D$4$4$\$D$ n D$(D$4$4$g${?ݝݝD$ D$ D$ T$$R݅݅F\$D$  D$(D$4$4$\$D$  D$(D$4$4$D$D$ $\$$tDžLzDžL9Mv|D$ D$ D$ T$$@= xD$ D$ D$ T$$= tD$ D$ D$ T$$= CpD$ D$ D$ T$$t`d‹|ˉΉ߉ ً$T$\$ L$= D$ T$D$ D$$x ً$T$\$ L$= D$ T$D$ D$$Lt ً$T$\$ L$= D$ T$D$ D$$p ً$T$\$ L$~= ÉkD$ T$D$ D$$TAƉǡ  t$ |$D$ D$$= xD$ D$ D$ T$$= @tD$ D$ D$ T$$= pD$ D$ D$ T$$P=  ‰Ƌ ơ  L$ \$D$1 D$$= B  D$M D$D$ T$$ D$ D$ - D$B D$$oHD$ D$ - D$B D$$AD$ D$ - D$B D$$D$ D$ - D$B D$$D$ D$ - D$B D$$D$ D$ - D$B D$$DD$ D$ - D$B D$$[D$ D$ - D$B D$$-D$i D$D$ T$$=  D$ T$ L$D$$= x|D$ D$D$ T$$v= Ept D$ T$ L$D$$81Ҁ=  \$ t$D$ D$$++x|+pt+hl1߭VS,$=  T$ ݝD$ D$$ ݅p ݝۃމ$t$D$D$ $D\$T$$DžLmDždDž`DžDž@  ݅\$ ݝD$, D$$݅t&'UW` VSMU]E $D$V eE1$[ |D$$ 4袐vD@D$$$蠾D$ $Dy$D$}$西D$$ D$$` ErU t$D$` $t1d}p   1󫋍$}t x   $     4D$ D$  D$\$D$$[\$D$ 5 D$dD$<$D$D$D$`$@ D=l   tH~%11ېh ؃$p;5l |h $_h l $` pMe3 U [^_]Í  C B s  Z Kl R CK1 t& thtM \$ $j= u4$ Ǎ&D$ D$  D$Y D$$Đt&$D$ <$=d 1Dž8~H11Dž8f` ʋZtB+B8<9ZB|΋8ٽfR$ H f=  fd٭d۝`٭f`$1莿$6Dž<g=d k<` Cu-Ct&= CC+C<9<|D$D$ $kt$$4$苹1d 11v<9=d 5` މFtfv뾋E D$$;h= G $ D$ D$D$ $= f pD$ tD$xD$|$g = w8Ɖ‹<׉(‹|, ً,($T$\$ L$HLx ً,($T$\$ L$PTt ً,($T$\$ L$CX\p ً,($T$\$ L$É֋= tvA^+PT+X\߭H)R1P,$= E' p ؋1t&]+PT+X\+@D߭H)R1P,$= 5p   f T$ ݝD$ D$$ ݅-|D$ D$ D$ T$$= ExD$ D$ D$ T$$d= tD$ D$ D$ T$$ = pD$ D$ D$ T$$8<։щ(‹|,ω‰ ً,($T$\$ L$g= HLyD$ T$D$ D$$3x ً,($T$\$ L$= PTGD$ T$D$ D$$t ً,($T$\$ L$e= X\D$ T$D$ D$$1p ً,($T$\$ L$= ÉD$ T$D$ D$$ \$ ݝD$ D$$݅p  T$ ݝD$ D$$F ݅ T$ ݝD$ D$$  ݅E D$$5$[]~D$U$`D$b $,HD$ D$$RP,$- P ٞ$]Ex P EvUWVS|8UMEEݝD$V eE1$[ 1wD$V $s wD$$ Aw= <$薽ÉK)օ$D$$ vt9$[X\K)X\\!GD$$դD$ $y讴$D$貤$ڥD$$  D$$ zXM D$ T$ $MZ   $    i$ VD$$ ƍXu$D$ VD$D$ $\$$~D$D$ $辡$ZD$  |$D$  D$D$$脦$Jw6$D$D$  D$(D$4$T$$D$  D$(D$$ĵ蟣M $|$D$ 5 D$dD$D$ĥ|$D$  D$ f D$D$$蒥|$D$ p D$D$<$bE |$$gD$D$2$0.V C@AA GwzsXH1 t; t} \$<$P= ] 4$ uD$$o rDžD$݅$E$w EDždDžTS&BF B(FB,B F dT<;d T5 s $U¡ BF B qJċA;BbAB[^D$D$ $L$$U RT t$蟱 $$$ܱD$D$ $Z$\$D$  D$(D$$($=   tK~(11ۍt& ؃$R;= |ࡨ $'  $ kRK.}e3=f+|8[^_]Í&D$D$ $X$M $yf$ Stdvda@uthof@r$*t f-t@ƅ3} D$<$^D$D$$ӥ$D$D$ 赥D$<$ib8 D$<$PbD$ $D$r_E D$$e]$D$D$' $D$D$  ] D$$a8 D$$aD$<$D$äI%] D$$\D$<$D$xD$D$ <$`D$$a8G D$$`D$<$D$#W  E D$$\$D$D$أ $D$D$ 躣] D$$k`8 D$$L`D$<$D$tA ] D$$a[D$<$D$)D$D$ <$D$$_8> D$$_D$<$D$ԢG E D$$Z$D$D$艢 $D$D$ k] D$$_8 D$$^D$<$D$%A ] D$$ZD$<$D$ڡD$D$ <$¡D$$v^81 D$$]^D$<$D$腡Gs U D$$rY $D$D$4D$D$ $} D$<$]8D$D$ $$蚩 8$軚t&t f-a@ DžDDžlDž`Džh $Zt f-c@$-t f-v@DDž` Džd {Džh Džl Džp @Džt DžP DžT @DžX Dž\ Dž@ DžD DžH DžL T{H(`;4uPD$\$D$  D$@D$D$pD$$ə=  $莧l$赘t f-p@` $Mhƅ12M \$ $ZD$D$$K t7t뀽tD$D$ $뙐$辦t88$t&t f-s@$贗t f-o@ $_wL$yt f-f@^<$~1DŽ&9~8= tD$ D$D$ $9ȋ$諩$É֣  $5  5   D$<$P R 1 Ɛt&$誟9$萦$肦t&D$ D$  D$Y D$$u T$D$  D$ D$$ǣPD$\$D$  D$@D$$D$pD$TD$D$@ $3$ϒ$ ?tdvda@uthof@rx$t f-T@|$t f-o@$薣$xD$$rx։$ٝ|$˝$轝$话N $蜤$莤<$LJD$$ c$D$  D$  D$D$D$軔 $A^D$D$ $}$|$D$D$  D$  D$(D$$?$86D$$9 bD$$ b~D$$9 b]t&$t&'v$ DžDDžlDž`Džh5D$D$ $}D$D$  $ZU D$$UD$ $D$(;D$D$ $=D$D$  $D$D$ $迗FD$D$  $蜗D$D$ $yOSv&D$D$, $ T$$1D$D$@ $όT$$qD$D$ $訖D$D$ $腖,D$D$ $bD$D$ $?5D$D$ $D$D$ $D$D$ $֕j ݅\$D$  D$ D$$膝D$D$ $O\$$D$D$S $$诌ZD${D$ e D$(D$$ޏ$覟L$D$ n D$(D$$謏$t${LZ}D$D$t $w$Dž%U D$$:= t)D$ D$  D$B D$$)$ed} D$<$]:= t)D$ D$  D$B D$$՛$M D$ $ := t)D$ D$  D$B D$$聛$E D$$9= t)D$ D$  D$B D$$-$i5] D$$a9= t)D$ D$  D$B D$$ٚ$U D$$ 9= t)D$ D$  D$B D$$腚$k} D$<$8= t)D$ D$  D$B D$$1$mM D$ $e8= t)D$ D$  D$B D$$ݙ$D$ D$|D$x$= /   9EL$$D$D$t $B\$$ T1R= v|VF^$D$D$ )Љ$\$L$$t$&D$FD${$1 󫉝(FT$1҉ , $T$[Nj0t$蓓$;F CFaN H 11DžBt B+B40z tB+B<9|Vۅ$8 xD$ |D$D$$q|= @x D$$=  8‹< ً<8$T$\$ L$贜04 ً<8$T$\$ L$e(,| ً<8$T$\$ L$ $x ً<8$T$\$ L$ǛÉ֋鉅04鉅(|,鉅 x $ 鉅u+É+ 5 =  ++ +߭ݝVS,$ܽݝ݅ٞC݅ p ݝHt' ݅H\$ D$ D$$]݅ ݅$D$݅ܥٞ8 ݅ ݝ,L$D$  D$(D$$覆$nD$D$  D$(D$$t$< 9ؐ1v)֋É$Q\$t$D$p D$D$ T$$蚻X\\X\ $\$_D$D$ $轀\$\$$[xD$ D$ D$ T$${= |D$ D$ D$ T$$7= D$ D$ D$ T$$= OD$ D$ D$ T$$译FD$FD$FD$  D$H D$D$ $pEfۃމ$t$軚D$D$ $\$|$$轸jL$D$ i D$D$$ԃD$, $4  F    BB X$ r5  { XPݝp ݝH$L$蠙D$# D$D$ $ = T$$ZD$< D$D$ $ŏ=  $L$D$U D$D$ $= nT$$ΘD$n D$D$ $91Ҁ= -$t$蒘D$ D$D$ $++ +1߭ݝVS,$ܽ= ݝ ݅\$ D$ D$$胎 D$D$P $K|݅H\$$} ݅ݝx@  T$$sD$ D$D$ $ލ=  T$$'D$ D$D$ $蒍= f| T$$ۖD$ D$D$ $F= x T$$舖D$ D$D$ $8‹< ً<8$T$\$ L$菒= 04T$$D$ D$D$ $S ً<8$T$\$ L$= (,T$$_D$ D$D$ $ʋ| ً<8$T$\$ L$}=  $ZT$$֔D$ D$D$ $Ax ً<8$T$\$ L$= É $T$WD$ D$D$ $Š T$$D$ D$D$ $`=  T$$詓D$ D$D$ $= | T$$]D$ D$D$ $ȉ= yx T$$D$ D$D$ $|= -@  Ӊ Ӊ $\$藒D$ D$D$ $=   T$$RD$  D$D$ $轈v1DžP{@@ XUWVS˃,$(UpzE`w4G,D$(D$E$w~UD$(D$+ $,E$az]u7&t!<%ua<w$ E,[^_]fUB$D$ ? D$D$D$z$yfUB$D$ ? D$D$D$Jz$yT&C$D$ ? D$D$D$ z$cyUB$D$ډ$By&UB$D$貉$y&U$D$苉$xUB$D$j$x&UB $D$ ? D$D$D$:y$xD&E@\$$D$ ; D$D$x$Rx&w0t&t&'U]É}׉u@$9S}=s K9t $D$t$複KS$K ST$ $誉CC C$uCC ]u}]Í&'UXuE u]1ۉ}}F$eU1҅u2t ~ ?u]Ue3ؐ]u}]Ðt&9lj*\$)ߋF $D$ ^ )^$랉ҍt&F D$FD$F$ 8ui~F D$$|vF9DžD$F $5F@@<‹t[JVDž 1;v( ;;rӀ= ?t1FD$ K D$ D$D$ $u?F DžF$$r$|ɉ1ۀ=  1D$ D D$  D$$F= t&t8 L$D$ K D$ D$$衂R 1F ‰F 1Dž%9vOL$FDD$F$t5ku$4DžV$$p$2{*t*F F F|$4$L$-iF %FֺF $ 4Džo&'UWVSu} E? \$|$$  = )]~o߁~ uu }$.t= D$D$D$ E$$r=t'EE[^_]ËED$$뮡     $ T$o  - D$ED$E$ E EUWVS\]eE1$n$q 2>&f@1= D$1+ $dD$$$ݝ1t1t&${t th tduԅtTv؋$@= #Ue37\[^_]Ít& u1\t&D$^ $l$x Pu : tD$$E ݅ٞv*$ݝq݅ݝv虣&U \$D$ Y T$D$@ D$$}8D$ D$ Y D$c D$$}'wt&'UWVS\]eE1$l$o 2>&f@1= dD$1+ $ƇD$$~ݝ1t1t&$vyt t` t\uԅuN1ۋ$= tUe3\[^_]f u1dt&D$s $j,$D$E ݅ٞv#$ݝco݅xzݝgU \$D$ i T$D$@ D$${g \$D$ i D$c D$$p{ػvtt&'UWVSUEe M1ɋ]D$V PT$[ _<D$V $s `E<D$$ dk<$h= t"tDžpj`4$蔂= X1\1҅~5  11At A+A40<9 X\)օd$֋t+ZrP1>vPkPP_?PPI PP~PPwPPYPPNst^D$D$x $9g$Džpv}e3=p[^_]Í&'hT<$D$hD$ $Yx$D$h$iD$$  D$n$ ZU hD$ $D$-<$      Yj$ tA$Lg$ D$D$ $e\$$gD$D$ $e$bgih`D$ 5 D$dD$t$u4$D$j`D$  D$  D$|$D$$JjtdB8L$<$D$  D$D$  D$D$j`$D$  D$ f D$D$D$i`D$  D$  D$L$D$<$i$!{0D$, <$z D$D$k$gNPQP@PAP@ PAQPxPY PH 5D$$蓷4$ ~ODžlDž04f05 VUl0<9l|ӍxD$ tD$pD$l$'=  DžpDžxPЍPNoPЍPYCЋPЍPwЋPЍP~ЋPЍPI ЋPЍP_D$D$ $8bT$$Džx' $ev|= N~^$D$D$ )$a\$T$$Qc $cD$FD${$v41 󫉝FT$1҉ $T$8|t$ln$b|F DžpDžxj t$t *p1d= tMt&~&11f ؃$8;5 |ࡨ $m  $ pe0xe4$ptp 4$Utt&M |D$ $u vL{L@@T8{Dž\ Dž` Džd Džh @(\84 P tݝۅ|h@ x @< | 5 $m=  T$ƅD$D$xD$  D$D$$cD$D$ $h= + D$1+ $B{D$D$ $d^$`$_D$ $rݝ1t7v$lt!  u̅1ۋ$1w= t) \$D$ & D$c D$$olD$pD$tD$ xD$D$ $\tDžxDžt@ ݝ8{LDž\  ݕ@@tDž` xݕH@Džd ݝPDžh  ݝ ݝ  ݕ(ݝ0T{H(\84R ݄ܴ8ݝP ݝS$i4$ݕ$ݕ݅ܵ$ݝ$5 ܵ5` zt$t&gv h $bqp ݕ݅ h $>qp ݅ٞs݅݅r݅ݝ݅= ٽt@  f٭۝٭^,݅٭۝ ٭Džp8b  tDžp@1Džp]t&D$D$k $PZ\$$[|4$D$v4$gt9Yt= tD$ D$G D$$kdt&[xD$D$ $Y$inwv \$D$  D$y D$$kkX lD$ D$ D$ T$$$k= pD$ D$ D$ T$$j= tD$ D$ D$ T$$j= yxD$ D$ D$ T$$XjDžpDžxTv u1t&D$ $~Xt]H@<)t&u<)u1f<)uL$D$ $_D$ 4$X?x Pu f: tD$$,m% 5 ٞry؍t&؍t&݅ݝ&LD$D$ $VT$$舏 $jWt&tVvuNtz~BD$D$~ $ZV$&uWDžpt&DžpU D$$v=  $O@} D$<$G= $ U D$$= R$} D$<$= $¨U D$$= $蓨@} D$<$= $dU D$$\= N$5} D$<$-= $݅ٞ~$ݝ8Z݅8nػt& ݅\$ݝ8D$ 4 D$ D$$Gf= ݅8ء ݅\$D$ 4 D$  D$$f= ݅8ء ݅\$D$ 4 D$ D$$e= ݅8Q \$D$ 4 D$& D$$e= ݅8ء ݅\$D$ 4 D$3 D$$?e݅8݄ܴ8ݝX ݝth= D$D$X $R$ET|$D$#$p_t_, \$D$ & D$t D$$ZdD$ D$ D$$4dFD$FD$FD$  D$H D$D$ $ct&D$ D$G D$$cD$ D$  D$B D$$c:D$ D$  D$B D$$hcD$ D$  D$B D$$:cD$ D$  D$B D$$ c#D$ D$  D$B D$$bD$ D$  D$B D$$bD$ D$  D$B D$$bD$ D$  D$B D$$Tb'[Êۃމ$t$kD$D$ $O`\$|$$蜉Džphۃމ$t$EkD$D$ $Od\$L$$ADžpZ D$D$ $]O|$$@SDžpFt5R U` ]Í` UMt)9ʸ` u t&9ʍtDu1]fU Wb VS<eE1R,8tue35<[^_]fB(t$$D$ D$D$D$!S$1D$1+ \tt&|$D$4$`Qt0B(4$D$gNtϻ<$KfEt3EUD$ w) D$' D$ T$D$$ZEYMEIEv{]C(]= J{@@ExpP,9RvDE€= BX}W09R[= DEptxƒ}EE]E M}[Mw]X1t&<9M;Hu};xr;pw݃E]E9]uE}9}EmU J˃x2k<4~FAk<Bփ<,y= ,EEEEEEM 1]}ء 9\$ D$-( D$$WG+GËG ]uD$ D$6( D$$WGD$GD$?( D$D$ $W$t$`D$R( D$D$ $VWGD$\( D$D$ $2W} EEE<9GUM$L$}`D$j( D$D$ $VČ1[^_]Í&9u CM k=( uf( xx( ( ÍU{ER@RT{P(E D$  D$D$ĉT$D$$( =( Ít&UD$D$$) JÍUVS{ER@B{H@@J0R,B@@ApD$, E $kN5$D$* D$D$ I$D$* D$D$ I$D$* D$D$ I$D$* D$D$ I$D$* D$D$ wI$D$* D$D$ UI$D$* D$D$ 3I$D$* D$D$ I$D$* D$D$ H$D$* D$D$ H$D$* D$D$ H$D$* D$D$ H$D$* D$D$ gH$D$* D$D$ EH$D$* D$D$ #H$D$* D$D$ H][^]I&[^]É'UWVSEeU1ҋ{@RB{H@@J0R,B@@A@4P)Ѓ$r9,00:0@0:00@.000@ 4Q4Dž8Dž<Dž@DžD<9D0L98O88Tϋ4RpfSVNŠ* ^ɉЃ%Љʁi6i`‰%i ٞvcSQ$ٽ^Ѓ0Љ$^$  f\٭\۝X٭^Xt&؉@D;L88DT809<|A4<Q;<LUe3,f[^_]Ív@DD$D$ $T$LDD$D$ L$T$,@D$($JD$<D$ $T$x []Ív{D$D$ D$!\$$AyUNKN1COWN빐U.¸t E D$ $D$ED$821Ð&Uu}}eE1].ƸtGU (D$ ? D$D$T$$1D$ \$|$4$11Ue3u ]u}]W8t&'US] .tUD$$T$0tÉ؃[]Ð&US] -t5UD$$T$0tD$ D$$8É؃[]UVS-t_D$D$[ $30tAX-ftDD$D$s $ 0t&4$B$B[^]Ð-V uV Ӎt&'UWS,tgD$D$G5 $/tI` 1@:*u&zu ߹@[_]Ðƀ` u[_]ú$ 밐UWVSn,JD$D$ $/E'>,.D$D$[ $. ,D$D$s $.|$1ۉ4$0$`5 D4$Dvt-D$D$6 $ *t$$c<$Ct-D$D$6 $)|$$wcE$?[^_]ÍE{ ++V V D$D$h5 $K)$bfD$D$h6 $)$bfD$D${5 $(UT$$b+t&'UVSueE1>>4$ÉD$p*T$ T$$8\$4$H*$T$(T$$\. )tF\$,D$ ? D$D$$!-D$ \$D$5 4$,z)tF\$,D$ ? D$D$$,D$ \$D$5 4$,(#)tF\$,D$ ? D$D$$s,D$ \$D$5 4$G,$(tF\$,D$ ? D$D$$,D$ \$D$5 4$+Ee3u [^]Í2vUWVSEEH(D$D$5 $*D$ D$$2EE'D$D$5 $*nD$ D$$2E'1D$D$5 $]*D$ D$$]2f'tbD$D$5 $*tFD$ D$$2ۉ~(~$/;D$U$`'t$\$$+}t}uP&t9D$D$6 $)tD$ D$$1tu[^_]Ðt&:D$E$&|$UT$$=&뇍&E&vEE=G:D$E$x&E[^_],'UWVSEeU1҉p%Ƹ%D$Njp$&D$_ $K 5t0$xD$%tT$@D$%$&D$ D$ 4$ÉD$(\$D$${+p|$$m%D$- $K..$|D$<%$#D$ D$[ 4$D$8(p|$$%D$ $Jxg/$ED$$$ 9 t T$D$ D$ 4$'p|$$$D$J $7J7U$T$l$$8 t T$D$ D$ 4$Y'p|$$'$D$L $IU$T$$$H8 t T$D$ D$9 4$&p|$$#D$q $_IU$T$#$7 t T$D$ D$o 4$&p|$$O#D$ $HU$T$(#$p7 t T$D$ D$ 4$&p|$$"D$5 $HG|$T$"$a!D$ D$s 4$D$%p|$$"D$< $'Hx$T$Y"tT$@D$D"$l#D$ D$ 4$D$@%p|$$"D$ $Gx$T$!tT$@D$!$"D$ D$ 4$D$$p|$$!D$Z5 $=GMt$T$o!$"D$ D$G5 4$D$k$p|$$9!D$36 $FU$T$!$Z5 t T$D$ D$ 6 4$#p|$$ D$y $qF%$]D$ $0D$ ? D$dD$$D$#D$ \$D$ 4$w#1Ue3}Ĝ[^_]ÍD$ D$ 6 D$9D$96 $1t&D$ D$ 6 D$>D$96 $1t&D$ D$ 6 D$D$96 $h1t&D$ D$ 6 D$D$96 $81t&D$ D$ 6 D$D$96 $1t&D$ D$ 6 D$D$96 $0t&D$ D$ 6 D$D$96 $0t&D$ D$ 6 D$ D$96 $x0t&D$ D$ 6 D$$D$96 $H0t&D$ D$ 6 D$(D$96 $0t&D$ D$ 6 D$-D$96 $/t&D$ D$ 6 D$3D$96 $/t&D$ D$ 6 D$BD$96 $/'&UWVSL^EԋuԸbEĉD$E$D$_ $(CE ;UD$D$ $EE7 U܅ ["E]1E 3U4$T$!u}U؋E$D$t$${![uE܉$.E~!UE؉T$$UT$$,ET'ẺD$E؉$UȉT$@D$pUT$$(E؉$F+UD$D$[ $ UEĉ$D$D$- $A$$EЉD$t$$5.$*ED$D$ $B| UċET$$D$ $JA&$ljD$y>1lD$$'$H*UD$D$ $UEĉ$D$!D$J $@|$$>1D$$R'$)ED$D$9 $?UċET$$D$L $G@]|$$}>1D$$&$L)UD$D$o ${UEĉ$D$%D$q $?|$$>1:D$$V&$(ED$D$ $C UċET$$D$ $K?|$$>1D$$%$P(UD$D$s $UEĉ$D$)D$5 $>EЉ$D$t$$D+$'UD$D$ $QUEĉ$D$D$ $Y>ËẺ$D$UȉT$@D$t$$$$^'ED$D$ $MUċET$$7D$< $=Ủ$T$UȉT$@D$\$$@$$H6 0t! 4$D$D$H6 $_$ W0$C6 C0k$G6 /0$Y 0$M6 0$ /4$/&ED$D$G5 $.UċET$$D$Z5 $<Uȉ$T$t$$##$%ED$D$ 6 $0UċET$$D$36 $8<|$$n>1D$$"$=%UD$D$ $EUEĉ$D$D$y $;E~ 8Ǎ&D>ftWFD$FD$V6 D$D$ $%FtŋE^D|$$\$$>uUD$ D$$|$ËE$G\$$1L[^_]Ðt&W4$D$D$C6 $$G6 -t"4$D$D$G6 $v$Y n-S4$D$D$Y $A$M6 9-24$D$|D$M6 $ $ -4$D$GD$ $W4$D$D$ $[fD$$d vD$$L vD$$4 [vD$$ vD$$ 'vD$$"vD$ D$ 6 D$dD$96 $%t&D$ D$ 6 D$D$96 $$t&V ]܅E܋EMu܅ɉE&UE؋T$$\$$TvuًE܉$$D$ D$ 6 D$D$96 $0$t&D$ D$ 6 D$D$96 $$t& D$ D$ 6 D$D$96 $#t& =D$ D$ 6 D$D$96 $#t& { D$ D$ 6 D$D$96 $0#t&D$ D$ 6 D$D$96 $#t&V D$ D$ 6 D$D$96 $"t&H6 $ D$ D$ 6 D$D$96 $p"t&D$ D$ 6 D$D$96 $@"t&D$ D$ 6 D$D$96 $"t&E t& z$ [ lU܉$!a-Ǎ&|vU]u}} a#<$D$\$4$|$$&4$4$4$"u]}]]U U] Í'USD8$D$-$u$D$$[]Ív'U t$u 1Ít&'U=$ D1 UWVS E` {`C <D$$ÉD$ 1ƍvt$$@$` t $D$$<$"`  [^_]Ðt&UVSueE1 Xۉ t}D$D$6 $ \$]D$dD$$D$ M!4$D$ \$$Ue3u?Đ[^]Í` %4$D$9 D$$ 1t&US t>f $D$ $  t$g []Ít&'UWVSLeE1ED$E $ D$ D$D$D$7$<$D$7 |$D$6 $D$D$7 $7 <$D$ \$$<$D$ D$$ <$T$ D$$ni $k<$D$y D$ D$ 7 T$$$9<$D$8 T$$!É$<$D$ \$D$ D$7 $I$|$D$ \$D$ D$$h$D$D$$D$D$ $D$ƍD$4$ $D$? t$$É$<$T$ D$ \$D$7 $V$$D$ D$ D$\$$zD$D$$D$D$$ D$D$&7 $$&Ɖ$<<$D$J D$ t$D$)7 $4$T$$ D$ D$t$$D$D$4$:D$(D$4$RD$D$D$ T$D$Z 4$EHD$D$3 $$" É$8<$D$FD$ \$D$37 $$T$$ D$ D$\$$D$D$$6 D$(D$$ND$D$D$ T$D$Z $$D$zD$D$D$|$D$ D$D$Z $.4$T$,D$D$D$|$D$ D$pD$Z $4$<$D$T$$tH t2$T$<$ËD$\$$<$mUe3 u L[^_]7t&'UD$E $2$ J&'UaD$E $$z  &'UWVS< eE1ut>$D$$  t$ E t$$D$D$ D$D$ $A$ D$P$D$A7 T$$D$D$I7 $D$$\$$C T$$D$$kT$$cD$$#lj$$D$P$,\$D$ D$V7 $<$cD$$|$$ É$D$P$t$D$ D$ $b$5 <$D$D$ D$\$$-D$0D$$ $ƉD$BD$$bt$$&D$$$D$Nj<$D$. t$$|$$  t7$T$ËD$ $\$$  $ &OvGuUe3t&u<[^_]t& U]@  D  H  L  P  T  X  \  ` $ d ( h , l 0 p 4 t 8 x Ðt&@ U] D  H  L  P  T  X  \  `  d $ h ( l , p 0 t 4 x 8 Ðt&UE]  1Ðt&UE] 1 ÍUEU ], 0 Ív'UE]4 ÍvU@ ]ÐU@ ]ÍUED$$    v  UWVSleE1E D$ED$ D$D$D$$|$$ $݅ ,=@ Ue3l[^_]Í&ݝt&7 vD$ D$ 7 D$JD$]7 $Pt&D$ D$ 7 D$`D$]7 $ ; UWVSl   eE11% RP,$ݝ ܽݝ݅vݝ؍1D$$+$ P+( $$$57 8 ݅% ٞ7 8 ݝ4 ܽݝ݅v ݝf؉+ + ٽP$7 $ f$ݕ݅7 ٭۝٭i$$8 ٭۝٭k<$E$ɉT$L$٭\$٭D$ j7 D$dD$ݝ$M7 ܽٽ f٭۝٭iP$ܭ8 ٭۝٭k<$$T$L$٭\$٭D$ j7 D$dD$$݅7 ٽ f٭۝٭iP$8 ٭۝٭k<$$T$L$٭\$٭D$ j7 D$dD$$D$ $D$ $;Ux$ƉD$j݅\$$   ݅QR,$57 ܵݝD$D$7 $-D$D$<$ٽ݅\$8 ܍D$ f٭\$٭$t$|$$$D$ $nD$ $Xt$$H݅\$$D$D$|7 $JT$D$D$<$ٽ8 ܍D$  f٭\$٭t$$|$$$݅ $ ( =d tgD$ $ZD$ $$D$/D$7 $$7 d ua@ u3 D u[v$'D tC%@ tܸUe3l[^_]Ít&s%v땍1Ǎ7 "v-ݝ:t&D$ D$ 7 D$#D$]7 $D$ D$ 7 D$D$]7 $D$ D$ 7 D$D$]7 $U$T ~øf UųVS uD$ 8 D$dD$$ 2 )i\$)kĉT$ȉD$I [^]ÐUVSut &Xt$sۉuu[^]vUVSeE1ED$$1x+hD$D$L4$!4$1Ue3u Ġ[^]5'UWVS }Et^1EEtCЃt7EDXuIht;mt&suu1ufE [^_]Ðt&k<1E륍i1E뒍t&'U]]eE1uD$\$$5u=%=@t=u+Ue3]u]Ðt&D$$mxD$D$&S$t@hD$D$L4$p4$v4$1l4$UUxED$E$D$<1҅u"E%=t1=`TRÍt&UxED$E$D$1҅u"E%=t1=`TRÍt&UxED$E$D$11ɅxŰMЉЉÍUSt]ED$$\$[uE1%=@tD$$ƒt[]UWVSE eU1ҋ}ED$<$<$)čt$<$)č\$$|$ $D$  u)a\$4$XD$ $t:E$D$/tӀ>t‰4$&f,t&릍4$|Ue3ue[^_]Í<$T֍t&'U(eE1]]}} u$|$t($Ue3up]u}]Ð$\<$RD )čt$\$4$>u|$4$%4$뗍&4$ f,fMUVS {D$u$EE$]uu4$y~9uU [^]Ð9tEt&'UxED$E$D$1҅uE1%=@TUXED$E]1ۉu$1Ʌx"E1҉UËEEuڋuȋ]]Ív'UWVS,EeU1҉8/$(8 6t{vtk<:uiЀz/t/BD$4$D$D$4$tV<:uu1Ue3u;,[^_]<:ut&덉t&D$$:뽰7t&'UHm |8 sd 8 ٞriD$D$88 ]$,E\$D$ D$D$$  fD$D$-8 f]D$D$C8 $E 8 \$돐&UE$1Ít&'U(ED$ EEED$D$$ɃÐUH}}uu ]tt rE$ED$D$$lt$$LÅ${{FD$ D$D$${Ẹ{%D$$D$$D$$D$$>wtvED$$D$ËE$ ؅yz$E$ED$D$$OEt$$0ED$$v럋E1ۉ$GE$<(E$,E$!{EV8 EN8 }D$EED$$Q8 M78EЋED$ $K1>rD$E$~9EuEЉ8fvUWVS|eE1T$D${ $uW%=tE=`u>$ Nt./dev@/dvd@D$$t&Dža}t$D$ Y8 D$dD$<$D$|$$Fu~%=tl=`uc! t€u҃)A$pt&|$$.\$$f{4D$D$ c8 D$dD$<$D$|$$vu~%=tl=`ue! t€ ҃)A$t(|$$`\$$.t&D$D$ c8 D$dD$<$,D$|$$uz%=th=`ua! t€ ҃)A$t$|$$\$$jD$D$ c8 D$dD$<$lD$|$$uz%=th=`ua! t€8 ҃)A$t$|$$\$$D$D$ c8 D$dD$<$D$|$$2uz%=th=`ua! t€ ҃)A$^t$|$$\$$D$D$ c8 D$dD$<$D$|$$ruz%=th=`ua! t€ ҃)A$t$|$$\\$$*D$D$ c8 D$dD$<$,D$|$$uz%=th=`ua! t€$ ҃)A$t$|$$\$$jD$D$ c8 D$dD$<$lD$|$$uz%=th=`ua! t€o ҃)A$t$|$$\$$D$D$ c8 D$dD$<$D$|$$2uz%=th=`ua! t€҃)A$^t$|$$\$$D$D$ c8 D$dD$<$D$|$$ruz%=th=`ua! t€҃)A$t$|$$\\$$*D$ D$ c8 D$dD$<$,D$|$$uz%=th=`u_! t€P҃)A$t$|$$\$$jD$D$ m8 D$dD$<$lD$|$$ub%=tP=`uID$<$Ux3D$D$L4$u4$~&D$D$ m8 D$dD$<$T$|$$Jub%=tP=`uID$<$x3D$D$L4$4$S &D$D$ m8 D$dD$<$D$|$$ub%=tP=`uID$<$x3D$D$L4$%4$ &D$D$ m8 D$dD$<$tT$|$$ub%=tP=`uID$<$]x3D$D$L4$}4$O &D$D$ m8 D$dD$<$D$|$$Rub%=tP=`uID$<$x3D$D$L4$4$[&D$D$ m8 D$dD$<$$T$|$$ub%=tP=`uID$<$ x3D$D$L4$-4$&D$D$ m8 D$dD$<$|D$|$$ub%=tP=`uID$<$ex3D$D$L4$4$ J&D$D$ m8 D$dD$<$T$|$$Zub%=tP=`uID$<$x3D$D$L4$4$c&D$D$ m8 D$dD$<$,D$|$$ub%=tP=`uID$<$x3D$D$L4$54$&D$ D$ m8 D$dD$<$T$|$$ ub%=tP=`uID$<$mx3D$D$L4$4$E&Ue3O|[^_]D2g;T$|$$g%=Q=`F! t€u҃)A$|$$\$$D$|$$L%==`}! t€u҃)A$j<|$$$\$$T$|$$I%=3=`(! t€u҃)A$|$$u\$$CD$|$$%==`! t€u҃)A$ |$$\$$eT$|$$?%==`z! t€u҃)A$]7|$$\$$D$|$$D%=.=`#! t€u҃)A$|$$h\$$6T$|$$%==`! t€u҃)A$|$$\$$`D$|$$2%==`u! t€u҃)A$P2|$$ \$$ T$|$$?%=)=`! t€u҃)A$|$$[\$$)D$|$$%==`! t€u҃)A$|$$\$$z[JU(uu]]}} t9EtjE|$D$ 8 D$D$D$$30t&u\ED$ 8 D$D$D$$]u}]É|$D$ 8 D$D$$fED$ 8 D$D$D$$뢍&$t$D$ 8 D$D$x$'Ut&uɐt& UE]u} >D$D$ $$D$$D$ o4$ljD$\$$K4$D$_$t4$؋u]}]Í&|$4$($ÉD$E$/$1뱍&UVS0eE1E D$E$D$ D$D$D$mD${$\$D$ D$D$$Q$D$e$$D$J$1Ue3u 0[^]vUS4eE1E D$E$D$ D$D$D$D${$\$D$ D$D$$r$D$$$D$m$1Ue3u 4[])'UD$$ 6 u$8 u $8 t$8 `f$8 Pɍv UD$$ 6 膘u$9 du $8 Tt$8 f$9 ɍvÐUWVS?LljMfEfeEff]f9E fffEMEf]ffEEffEEffEEffEEffEffffffffffffff ff vȉ9u;E}ȉEEȉEEȉEEȉEEȉEEȉEEȉEEȉEEȉEEȉEEȉEEȉEEȉEċEȉEȋEȉE̋EȉEL[^_]fu܋EVEffEEUffUыUffEEэzEAfFfVfNҋT$L$$EfET$U$T$EffuUv$L$Nj<$D$Ht:^BȉBB ȉB BȉBBȉB9u֋ET$|$$<$\]fM$T$L$Ɖ$t1fff9틕Et$T$$O4$]6<F |$D$$F$D$L$UWVSEEUME$ MuYfˋNfXHMMY$$ ƋEf8tRE1U ZSFffFEʉVKC$EUME9E|u[^_]|UWVSEUE$ N^ffHMMˉXY$.^$ vuǸ҉UtRE1U\1U@PWHffɉWOSGC 9uw}[^_]U]Éu@օt9u]u]Ðt&K $]u]Ít&C(tʋutK8ËK ؉$C(ډ'UWVS˃EUE$KʉHMu$x<$ƋC|$4$D$(t11t&9ˉwMU|$t$D$u[^_]at&U]Éu@օt9u]u]Ðt&K$ $]u]Ít&C(tʋutK<ËK$ ؉$C(ډ'UWVS,E@U> EE@$ DUZKHSf@ɉHP]ff]K$D$ MQf:tqM1EE|BRffʉSWUBUH H@E$EEEP9E|$,[^_]Ðt&= t D$ U9 D$'9 D$$&ËMA(t멍&'Uuu EUe M1Ʌ]}@@Dž/VIDDžEO_TDžS/VIXDžDEO_DžTS.IfDžFOƅDž/VIDDžEO_TDžS/VIDžDEO_DžTS.BfDžUPƅ 1ۉUe3u]u}]Ít&@(@t$D$ D$XD$ $蝾t$D$ <9 D$D$<$sb{D$t$$øH$S$T$D$; $7_󥋕fB;sʉRʉffff0ff0VVȉRrȉrvȉvȉȉȉȉȉȉȉȉffJffJf@#J $ACtD$  D$|$D$D$4$蓻D$, 4$ D$ D$L$<$$=D$  D$T$D$D$4$D$, 4$Y D$ D$L$<$苹$<$+1$عw(lj@;sC 1ȉC CȉCC"ȉC"ȉȉȉȉȉȉȉȉȉȉȉffXffXffffffff&ff&.ff.6ff6>ff>t&XffXuዽ$NB(tHA($詷[4SWCʉGC G A(W ff$(G T$D$ $öft1҉ˋȉ9$ζB\$D$ $if;Dž)1&9DffD 3FBȉBDfy$׵BD\$D$$hBf|tWڋDž|ȉF|A@L|9$l$ KIffɉHK$ B44$ŴËA@ t$$D$gHf9t1ҋȉ9|t$\$D:$*$袽A7 $ ?WËJKByC<$ƋC|$4$D$ijf;t:V1ɉffBffBBȉB ;|ԋ|$t$D$d4$ܼffSʉSQ$诼 SBABAB A BA&$ )SJOBɉOGffGffGC J$ Ȳf?tn1L01RP RffSffSCA;|$脻$|A$"K,YXQˉPQ P W(ff XY$ G(\$|$$T<$̺$辺B+ȉBA$荺9 J0$> $U$<$;f$!UU u  1]Í&B1]Ív'UU u { 1]ÍB{1]Ív'UEE 1Ðt&UU$M t$]ut\ t` td th $t$]UUM t\ t ({]É'U䆻t$赸䆻{t$蚸{ t$ $r 1Ð&US4]eE1 D$ hA D$c9 D$$ϼE \$D$D$ D$D$$. \$ D$ D$$}D$$ ٭'US4]eE1 D$ hA D$o9 D$$E \$D$D$ D$D$$~ \$ D$ D$$ͻEe3u 4[]Ít&OvU t$E$Z$ ͽ1Í'U 1W{ǀ rE p  E  E  \ `   d h $Ҭ䆻 $=䆻£{u _]1t_]ÍUWVS5  )W@)؉D$ T$$  {{5 V F F tGu=H  T$ {$H: )á{)ډD$T$F%@t1 {$l: )á{)ډD$T$IF t5D$ {$: )á{)ډD$T$ F~VE<%vW {t$$@< )á{)ډD$T$ f= 5 Gt&$? $9 ڋ5  {{mf\$t$${ { {£  ÁbĜ[^_]Í&G G t5 T$ {$: )á{)ډD$T$GW ЃEG%t1 {$: )á{)ډD$T$VGEЉ%=t5 T$ {$; )á{)ډD$T$OT D  D D E tp{E1}=}OW G G G ЁpUԍD=t9 T$ {t$$; )á{)ډD$T$u= -=?5   \ =  D$@D$$ @9t菪$ų$9 D$@ ' u= -=?5   ` =t&WG  T$ {$< )á{)ډD$T$t&OMGt F{PA9 u ]T B` = -=?5   F= -=?5   h FvfxvQ`v< {t$ $; )á{)ډT$D$J1ɺ)΋ c=  {D$D$$: )á{D$)ȉD$ ډT$$ղ5  Y& \$D$$ 9ty$诰$9 D$s 90(0 䆻EMMCv +E{|$á{$@< )ډD$T$ fUЉU܉ы  MЉ)9}Q,@)؉D$ T$$  {{u5 V F F tGu=H  T$ {$H: )á{)ډD$T$F%@t1 {$l: )á{)ډD$T$F t5D$ {$: )á{)ډD$T$xE܅t0^]FE<%:$8@ \ FMV A A t5 T$ {$: )ȉá{)ډD$T$]CS ЃEC%t1 {$: )؉á{)ډD$T$UBEЉ%=t6 T$ {+E$; á{)ډD$T$0]KT D  D D E tp{E1u}|uNV F F F ЁxtC|$E؉L$ $d; D$ )Ћ{á{)ډD$T$U؍D=t9 T$ {|$$; )á{)ډD$T$]܅tMM}+=䆻YA A p)Q;9U\$D2D$M $苟]&{t=Avt&EP@ m T$ {+E$< á{)ډD$T$2f]{Ct F{bvh (t&$9  {{\$D$${ { {£ &Fv.xv`))֋E+䆻p{ą{v]܅bEofWG t5 T$ {$< )á{)ډD$T$n= E]9]5 F~N={@=^= -=?Y  = u D$@D$$ =@t蕟$˨$9 D$@E]9]  Á< \$D$$ 9t$M$9 D$ Ĝ[^_]Ív D$䆻$䆻 D${$ݭ䆻ң{{=䆻}=  {D$D$$: )á{D$)ȉD$ ډT$$: Bf u= -=?5   ` G^]Ft F!{P u MT Bxd = -=?5   $8$< D$a y t$ {+E$; á{)ډT$D$1ҹ$}9 5 =   FvfxvQ`v< {t$ $; )á{)ډT$D$1ҹ)֋h`` $}9 = 5Ep{pA ɡP tA  $ʉ$$0E=xA = EvE]؍v=ą{E=膻솻=p t 䆻? 5{;f? B$p  膻솻,5Ѕ{ ԅ{El{؅{̅{=h{d{܅{-ȅ{]솻E-膻b]E0 A A }E fEm= m$ ؐ$p 輜$  d{u fD$ $@ 萣d{t$ z؉`{Ѕ{ԅ{x {| E`{EE܅E5 F~VȃE<%M {)á{)ډD$T$ ]$@< \$= EM9M낉t$EԉL$ $d; D$ )Ћ{á{)ډD$T$5d 0$}9 _= *t&}E fEm= m$-$4ً=ą{]=膻솻=p t 䆻|$D${$ ą{`{I|A |A oE\$ D$< T$ D$$ٝx藢مxH$@ ]+]]G%=6GEȹ E9]C9E[UT$M$L$MUDGDGEUȈUMD lj)ЍHx{|{MGGGGOE~{E+EEЃ;EvE1ɅD9w9EtE])É]̍tD19r9]t@9M]M u= -=?~$}9 = 5   ` WG  T$ {$< )á{)ډD$T$Yg= h -=?~$}9 -5 =   Gt F{P uGT Bd = -=?~$}9 = 5   t$}9 U= b$}9 >= $}9 '= $}9 =   FvfxvQ`v< {t$ $; )á{)ډT$D$1ɺ)΋h h Q D$@D$$ @9t$4$9 D$@ ` +]D$x{|{\$$͝U]T$MD $L$`GGEȈ]= -=?~$}9 T= ]\$U$T$ GGMEȈ멍WUOM)˃ v'UWVSlu= } $ E] { {  {{x{|{膻솻Ѕ{ԅ{ ą{`{0{p{(,h{d{ ؅{܅{$ $l{u\$$ \$]$@ $\$$p J\$$ :5ȅ{5 p t x | =̅{FD$1+ 4$#, $D$ D$ott$$< ~ $D$ D$@tt$$< O $D$ D$tt$$<   $D$ D$tt$$<  $D$ D$賒tt$$<  $D$$ D$脒tt$$< , $D$0 D$Utt$$< d8 $D$< D$&tt$$< 5D $D$H D$tt$$< P $D$T D$ȑtt$$< \ $D$` D$虑tt$$< h $D$l D$juA$mED$ D$"D$$*Et#Eăl[^_]Ét$$< 8뭍$ 谍E9  p ]Ԁ= E$  D$, $@[ ttf PD$4$T$D$ D$著t$$ Ou PD$4$T$D$ D$Ct$$ 裖 QY PD$4$T$D$ D$t$$ Q / PD$4$T$D$ D$蟖t$$  . PD$4$T$D$  D$Mt$$ 譕 c PD$4$T$D$ $ D$t$$ [( 4, PD$4$T$D$ 0 D$評t$$ 4  8 PD$4$T$D$ < D$Wt$$ 跔@ mD PD$4$T$D$ H D$t$$ eL  P PD$4$T$D$ T D$賔t$$ X \ PD$4$T$D$ ` D$at$$ d wh PD$4$T$D$ l D$t$$ o4$וt$l= v=   + t%t(D$ D$9 D$$螓  -t0D$ D$: D$$b ҋ5p =t  x | tSp \$$ WV,$SQ,$L$\$t$ |$D$P? D$$\$E$!D$E$Eăl[^_]Í& \$D$ D$9 D$$茒v T$ D$ = D$$]`ERt& D$4$D$ D$0& D$4$D$ D$&{{D$9 D$D$ T$$đ= D$= D$D$ T$$臑= p{D$= D$D$ $T= p(D$= D$D$ $!= ={ {Q $ $P,$]ȉEȉ D$ T$D$(> D$$ p \$衐= { {Q $ $P,${]ȉEȉ D$ T$D$t> D$$ p \$!= =|{x{RP,$E]ȋ E- ]ED$ T$D$> D$$ p \$訏1Ҁ= {-{]ȡE-]ȡ ED$> D$$\$ D1Ҁ= e솻-膻,]ȡԅ{E-Ѕ{]ȡ ED$? D$$\$ & D$4$D$ D$谎& D$4$D$ D$耎V$茌\$$D= D$L} D$4$D$  D$/ D$4$D$ $ D$|A |A |A z|A |A ]|A 9|A |A , D$4$D$ 0 D$腍8 D$4$D$ < D$\D D$4$D$ H D$3)h D$4$D$ l D$ \ D$4$D$ ` D${P D$4$D$ T D$踌UWVS U9|\ 5 t&)]M 1҈M!ǃ}  5 Et M+]  [^_]fUWVS = 5 )5 = g E))}m‰E؍XEE)Ív 9uEM5 TM D  [^_]Ðt&UVS0 5$D$dD$ $t$ 5 $D$2D$ $t$  l{   z=      5}5lp E fE pp tp m m  m mxp m m |p tA  p p   ؃0[^]Í& \$t$\$D$ A D$A D$$軉fp  p      0[^]Í&} tA E fE`p m m dp m m m mp p   hp p   f  A  U i 0[^]Ð 1 U W                          x   $ ( , _0 4 8 < @ D H L P T X \ ` d h l p x t  |      ] UWVS$U؋ EEE'@Qn EE}?@E֋= H)5 }= gE )}mXE)UE)Ð 9uUԋM5 DUУ |}= MQ1Љ} Xf6u 5 5 +M ƒ~5   '@Qk EE}?t& 45 P 7 )v ƃ~ 5  U܋EfB$[^_]Ðt&vPD@k k E}?M"M?\?]d ;vw8fD@Ѝf f E}?MfD@荈,l ,l E}?M뉋MfAE*EEM܉E,t& 1)3 )9E؋U   D@Ѝf f E}?M }t= pftMfAE؈M܉] l  1)3 )9}E؋U5   R@g E@g E}?~   'UWVS  EEE'@Qn EE}?;E֋= H)5 }= jE )}mXE)UE)Ít& 9uU؋M5 DUԣ |}= MQ1ЉЋ Bf6u 5 7 +Mf ƒ~5   '@Qk EE}?t& 45 P 7 )v ƃ~ 5  U܋EfB [^_]Ðt&vPD@k k E}?M'M?L?Md ;vw8fv~D@Ѝf f E}?M뷍D@荈,l ,l E}?M뉋UfBE*EMU܉M*t&D@Ѝf f E}?M;*  BftUfBEEMU܉M  R@g E[@g E}?~   t&U WVS E䡜 +Mu‰M)U]=  gEع)]m)ٍXE U)ÉEܐ 9u]M= T ]M܉ D   9E}E|[  M؉+u 1҈!ǃE   t )u؋]  E[^_]ÍU‰WVS E( D!o  o 9ډU|Z 5 f)]M 1҈M!ǃ}  5 ut M+]  E =@ U5  = E)оe E!ƒEυ  = ui[^_]Ã=@ uD uEtmeE[^_]v D uNjE%밍& )މ5  У [^_]Ð&UWVSà ?UEw Љ1)ud  [^_]Ð}v25   U)e E!ǃEυ  wE}ыEe E)Ё d  t&)‰e E!ǃE҅   )e }M裘 1 'Dh Nt& щ)Ӻ }E5 Et&)ډىe E!ǃEυ  5 M 1[^_]Ív )ֺ E| E荴&E)eѾ E!EEЅ҉ $}E,(ikEЍg PQ5 89  Et&)e E!ǃEυ  ?}E)e }E  1kEЍ@h ~ p>~>d S$ tA $M}E fEm]mM>>`ƒVfCua>~ p>~>d S$ lt&>Fs>F>6v>t&s>~>먍vWvvvSl $ @vCt`>~ p>~>d [vSl $ vۉt&~>s>~>S$ Fۉ+!t&Sl $ hxUWVS E҉E EЋ  a p))E= ]]  DžP))PP‰E؉؍XPL) 9uPM؋L= DU \]  9Ɖ8^  t&8+8E 1҈!EDž8Ʌ   Dž|E  +M]+]ljM] 5 ~ DžX))XX‰Eԉ؍XXT)Ív 9uTMX5 DUԣ D  9M8| &8)EM 1҈MDž8!ǃ}ƋE   Dž|Dž|Mӥ|E |)8|8  g&й a ׍p)] = )]]  Dž@))@@‰E؍X@<)Ð 9u@M<= DU \]  9Ɖ8  t&8+8E 1҈!EDž8Ʌ   Dž|EfM I҉My Mй a ׍p)] = )]]  Džp))pp‰Eȉ؍Xpl)Ív 9upMȋl= DU \]  980| t&8+8E 1҈!EDž8Ʌ   ]t&ļ[^_]Ðt& E)88 ËE|  8  +M]+]ljM] 5 } DžH))HH‰E܉؍XHD)Ð 9u]܋H5 T ]D D   9E8| &8)MM 1҈MDž8!ǃ}Ev E)88 ËE|  vй a ׍p)] = )]]  Dž`))``‰EЉ؍X`\)Ð 9u`MЋ\= DU \]  9Ɖ8| t&8+8E 1҈!EDž8Ʌ   oM  +M]+]ljM] 5 | Džh))hh‰Ẻ؍Xhd)Ð 9udMh5 DỤ D  9M8|s  v8)EM 1҈MDž8!ǃ}ƋU    M])8 8 ļ[^_]Dž|]ӥ| |)8M|8ɣ  ]TDž|]ӥ| |)8]|8ۣ    +M]+]ljM] 5  Džx))xx‰Eĉ؍Xxt)Í 9u]ċx5 T ]t D   9E8w  &8)MM 1҈MDž8!ǃ}v 45 X 6 )f ƃ~ 5   Dž8| Dž8)88 1҈8!Ǹ8ŋ8   Dž|8ӥ| ||+8  t& 45 X 6 )f ƃ~ 5   Dž8  Dž8)88 1҈8!Ǹ8ŋ8   Dž|C 8+8 |  UWVSt Ǎ  p5 7 )v Ã~5    Dž  Džv) 1҈!Ǹ‹   DžH ҉ < 0Jй a x))Ủ 5  Dž))ډ]ЍX)Ít& E9uMЋDU̍t5    9ω + 1҈!DžÅ   Džw I  + + lj  5  Dž))‰Eȉ؍X)Ív 9u 5 DUȣ D  9  )00 1҈0Dž!ǃ00   DžDž0ӥ0 )  f +   vй a x))(U؉ $5  Dž))ډ]܍X)f E9uM܋DU؍t$5    9ω+ +( 1҈!(DžÅ   Dž  I҉  P й a ׍p)8 = )4]  Dž))‰E؍X)Ít& 9uM= D4 \]  9Ɖ f+8 1҈!8DžÅ   Dž'b Ǎ  p5 9 )t& Ã~5    Dž Džv) 1҈!Ǹ‹   Džt4Džӥ +   ҉Ew pй a x))\U X5  Dž))ډ]X)Í& E9uMDUtX5    9ω +\ 1҈!\DžÅ   DžOut& I҉M Mwй a ׍p)x = )t]  Dž))‰E؍X)f 9uM= Dt \]  9  f+x 1҈!xDžÅ   Y u t[^_]Ðt&й a ׍p)] = )]]  Dž))‰E؍X)Ð 9uM= DU \]  9  t&+E 1҈!EDžɅ    ]  +M]+]ljM] 5 | Dž))‰E؍X)Ð 9uM5 DU D  9M䉍|s  v)EM 1҈MDž!ǃ}ƋM   i M])  t[^_]Éй a x))hU d5  Dž))ډ]X)f E9uMDUtd5    9ω +h 1҈!hDžÅ   Dž/]D  +Md+]ljMl 5  Dž))‰E؍X)Í& 9ul5 DU D  9M t&)pp 1҈pDž!ǃpp   DžDžpӥp )  fй a ׍p)H = )D@  Dž))‰Eĉ؍X) 9uMċ= DD \@  9ƉJ &+H 1҈!HDžÅ   DžY  +@+ljL 5  Dž))‰E؍X)Ív 9u]5 T L D   9 )PP 1҈PDž!ǃPP   DžDžPӥP )  t&DžHӥ )ۣ  _fDžhӥ )]ۣ  t&Dž(ӥ ) ۣ    + $+ lj , 5  Dž))‰Eԉ؍X)Ð 9u,5 DUԣ D  9 l )00 1҈0Dž!ǃ0t&Džӥ )   IfDž]ӥ )]䋅ۣ  EDž8ӥ)     +]+lj< 5  Dž))‰E؍X)Ít& 9u<5 DU D  9 )PP 1҈PDž!ǃPAt&Džxӥ) u䋅  r  +M]+]ljM䉝| 5  Dž))‰E؍X) 9u]5 T | D   9E䉅<  t&)MM 1҈MDž!ǃ}vDž\ӥ )u  z  +MX+]ljM` 5  Dž))‰E؍X)Ðt& 9u`5 DU D  9M t&)pp 1҈pDž!ǃp3t& 45 X 6 )f ƃ~ 5   Dž Dž) 1҈!Ǹŋ   Dž{Džӥ +  Bf^<T=  5 ) ǃ~ =    t&)ljT 1҈!Tх   Dž-DžT)ӥ   &^<=  5 ) ǃ~ =    t&)lj 1҈!х   DžDž)ӥ   w& 45 X 6 )f ƃ~ 5   Dž Dž) 1҈!Ǹŋ   uDžӥ +   45 X 6 )f ƃ~ 5   Dž4x Dž4)44 1҈4!Ǹ4ŋ4   Džx4ӥx xx+4  t&^<E=  8 )t& ǃ~ =   yx t&)ljE 1҈!Eׅ   DžxSDžx])ӥx xx   &UWVSt Ǎ  p5 7 )v Ã~5    Dž  Džv) 1҈!Ǹ‹   DžH ҉ < 0Jй a x))Ủ 5  Dž))ډ]ЍX)Ít& E9uMЋDU̍t5    9ω + 1҈!DžÅ   Džw I  + + lj  5  Dž))‰Eȉ؍X)Ív 9u 5 DUȣ D  9  )00 1҈0Dž!ǃ00   DžDž0ӥ0 )  f +   vй a x))(U؉ $5  Dž))ډ]܍X)f E9uM܋DU؍t$5    9ω+ +( 1҈!(DžÅ   Dž  I҉  P й a ׍p)8 = )4]  Dž))‰E؍X)Ít& 9uM= D4 \]  9Ɖ f+8 1҈!8DžÅ   Dž'b Ǎ  p5 9 )t& Ã~5    Dž Džv) 1҈!Ǹ‹   Džt4Džӥ +   ҉Ew pй a x))\U X5  Dž))ډ]X)Í& E9uMDUtX5    9ω +\ 1҈!\DžÅ   DžOut& I҉M Mwй a ׍p)x = )t]  Dž))‰E؍X)f 9uM= Dt \]  9  f+x 1҈!xDžÅ   Y u t[^_]Ðt&й a ׍p)] = )]]  Dž))‰E؍X)Ð 9uM= DU \]  9  t&+E 1҈!EDžɅ    ]  +M]+]ljM] 5 | Dž))‰E؍X)Ð 9uM5 DU D  9M䉍|s  v)EM 1҈MDž!ǃ}ƋM   i M])  t[^_]Éй a x))hU d5  Dž))ډ]X)f E9uMDUtd5    9ω +h 1҈!hDžÅ   Dž/]D  +Md+]ljMl 5  Dž))‰E؍X)Í& 9ul5 DU D  9M t&)pp 1҈pDž!ǃpp   DžDžpӥp )  fй a ׍p)H = )D@  Dž))‰Eĉ؍X) 9uMċ= DD \@  9ƉJ &+H 1҈!HDžÅ   DžY  +@+ljL 5  Dž))‰E؍X)Ív 9u]5 T L D   9 )PP 1҈PDž!ǃPP   DžDžPӥP )  t&DžHӥ )ۣ  _fDžhӥ )]ۣ  t&Dž(ӥ ) ۣ    + $+ lj , 5  Dž))‰Eԉ؍X)Ð 9u,5 DUԣ D  9 l )00 1҈0Dž!ǃ0t&Džӥ )   IfDž]ӥ )]䋅ۣ  EDž8ӥ)     +]+lj< 5  Dž))‰E؍X)Ít& 9u<5 DU D  9 )PP 1҈PDž!ǃPAt&Džxӥ) u䋅  r  +M]+]ljM䉝| 5  Dž))‰E؍X) 9u]5 T | D   9E䉅<  t&)MM 1҈MDž!ǃ}vDž\ӥ )u  z  +MX+]ljM` 5  Dž))‰E؍X)Ðt& 9u`5 DU D  9M t&)pp 1҈pDž!ǃp3t& 45 X 6 )f ƃ~ 5   Dž Dž) 1҈!Ǹŋ   Dž{Džӥ +  Bf^<T=  5 ) ǃ~ =    t&)ljT 1҈!Tх   Dž-DžT)ӥ   &^<=  5 ) ǃ~ =    t&)lj 1҈!х   DžDž)ӥ   w& 45 X 6 )f ƃ~ 5   Dž Dž) 1҈!Ǹŋ   uDžӥ +  5  "EkߍD߉EE5 n n 9|g = ,)оӥ, ,!ƒ Dž, = t )މ5  У E| nE=L l E`l  Dž,| 5 Dž,t&),, 1҈, !ǃ,5 , t! ,+,  Ep 4+0҉D5 1 t& \=Dž,Y&),, 1҈, !ø,,t,+, ڣ ;Di5  8Dž, ),9,|n 5 ),⋅X, 1҈, !X, 5 ,t% ,+, X  EIt B; t V 1#&t* t S6vv   P 1 )f    ~ۋ !^<_ DžLP_ O  )ʃ 3 )ѐ    ~ Aɣ (  5 a` ) 5 8 )5    ~`` =@ U EDEt&Ux $ 9‰x t (t ; t u뷋x $ 9‰x t | 6P` J )ʃ  8 )э    ~ۡD 6P` u=@   EYE   P 4 )f    ~ۅu d fL   a Eh >h a;p l uEH|   ʉt 9‰ vd t!5  tf Dž, Y&),, 1ۈ, !¸,,t,+, ӣ !!lt>5  "⋅tkߍD߉tt5 n n 9|k = ,t&)оӥ, ,!ƒ Dž, = t )މ5  У H| ;fHL l ҉< < Dž,1 5 Dž,),, 1҈, !ǃ,, 5  M E),, MH=( ut M 9= iLf= L =( ut 8 9( Lf= YLR=( ut  9 Kf= L=( ut r 9b zKf= L=( ut w 9g /Kf= DžL JT=( ut  9 Jf= L ,+,  %5D uIE % EP@ELs=D tfEf0M$x  +Et , xE4 {x= X= yEvRE&[t f h DžL+ ӥLMl      f D f x  ` D D D1 D D1Ҹ D C9 | 't&'UWVS| 5$l{UD$d D$ $t$X \ `  5 D$2D$ $t$  Eɣ ى  EU  A  U  ix fB=uf1A *EUMU  B MA Uk*M؉EE ؉Et&UԿMB EUC E5}=~UMfzʉ}rCE̋ESU)ȉ1ƋEE))ȉ1)9~]ȉƋEE)ȉ1)9c][p  p      9uyu y     )ȃ t4$  + $@ d{w$ [$p =h{uD$p $ 05h{th{,h{$p  D   ܅{ l{ $   ؅{   衾   yyyyvyzyjyAvZ9&` r fAB   P  )ȅM9   ɉEܣ n  )ȃU܅t4$  + $@ d{}$ a$p ſh{uD$p $ 8h{th{,h{$p  D   ܅{ l{ $   ؅{   誼   A( X `     t&<G<kX ^\ Q5` CE+    MRP,$y|A  ] 5 E)ȉE؉U+EUEUmy|A ]E5 }E fEm}mEU    9UEH  )9U w 9E É{ ؉RP,$]uVS,$ ڞ#  ء(       d     A A   A A   A A  ƒ   ƒt,  )td ) ѡ %  )  tNˡ  +    ƅt) %   +E܉+U9d TT$EЋU܉D$$ֲ U܉+EE)M)UУ EЉ)   t&EE})EJt4$  + $@ d{t$ X$p 輺h{u$D$p $ ( h{th{,h{$p  D   ܅{ l{ $   ؅{   虷   X I @ H   )ȃ E܅t4$ 蠹 + $@ d{$$ $p lh{u$&D$p $ ؽh{th{,h{$p  D   ܅{ l{ $   ؅{   J   A É QA =p$ wc@w[vS ڃuF\ X  ` QP   \ 븋  )ȅ<N )ȃ t4$ 起 + $@ d{9$ $p 職 h{uD$p $ h{th{,h{$p  D   ܅{ l{ $   ؅{   d   B , AF0 YC4 AG8 A< A@ AD AH AL AP AT FCG@ s`  QP     )ȃE܅t4$ 脵 + $@ d{$ $p Ph{u vD$p $ h{th{,h{$p  D   ܅{ l{ $   ؅{   2       U` E܅t4$ K + $@ d{ϥ$ 賱$p =h{uD$p $ 艸5h{th{,h{$p  D   ܅{ l{ $   ؅{      j9v  A   %ٞv|&o1A o 5 C EٞE} tA E fE`p m m dp m m m mp p   hp p   .E}5lp E fE pp tp m m  m mxp m m |p tA  p p   UWVS Mut{>tvA :tuӉ׉))t=M 1ttu+u > [^_]ÍE $٨ [^_]É띍U8]u}eE1X5 PX91ޅ]]1ۅEuUME~OމЉf%f҃fۃ MtPtˀ=Ewy1ދu̿p  E@tEȅxyE@tEtt&1ۋUe3]u}]Í&މUtt&=5t& t&zvu̿p  uEtxu̿p  ]HU= t f  Ít&US=   D$p D$Pq $@& &&&&&$q 課t&$p 蘲[]Í$p 耲[]Í$p h[]Í$p Pf $p ([]Í$p s&$q t&Wv$q t&?v$q ȱt&'vU]]}} u:ufp uL۾p xC@p u9p u/ p u%p uq uq uq f]u}]Ð$ u@f&R &&&&uv 8t = uø )عq C Kvtu $t&= K D$@D$Hq $ $i&D$@D$Cq $ 5&D$@D$;q $ &D$@D$4q $ &D$@D$*q $ &D$@D$%q $ \U&D$@D$q $ 4"&D$@D$q $  & U4$M|$u }SW@9)Q=)⤤)tf?r?)ƅFF))uooNoVo^of on(ov0o~8OW_g o(w08Ju듉=)⥥=)⤤w_[4$|$]ÐU4$M|$u }SW@r})>>)⤤)@sʃq&9GЅDDƀ1o@9r)у@slj>)⥥>)⤤w_[4$|$]ÍvUvq E  t =q DDt5EuÍt&T$ D$q D$ $軭Ðt& >p 뺐UE]wÍvUS$]D$$4wd w$w(w,w0w2D$D$$wv$\$$wD$ wD$pCD$$w蚤$[]Ð&USwt$w(w+,w0w~ 1[]Ív|=wD$ $ƜËE $yU CT$U$T$ E $w莦1$ww(wt1wXw$w$w蟬1[]Ívwwύv'UWVSLD$wT$$螩w$ѡEt.w$藜 wv$r L[^_]Í&EԋxtUD$$OE+4wwPE+8w$$$57 tA j5w\Uԋd BۋE̋PE9U֍RU܉$ќM؅ɉE~[1vEĉU~6M1EЋU@t&fA B9EăE9}D$q $7 舮tSU؉t$ D$q D$T$$UȋE܉\$ D$$D$衛$٫d Eȉ$4;vwD$D$$D$ D$q D$$蓩fUWVS,>wwv$w[wt$w薣wE܋@w$wM܋wyE b5ȝwEwnvw|$߉\$$ =wu=wu =œwwwœwwÜwœw)~E)9}D$w|$$ E)]ܣȝw[v1,w0w$TU܉$IE ȝw)9ϋu)w )t$|$$w M 5ȝwYqEȝw)9|)u=ȝw)fw'UnM+]ȝwY+Eȝw $lwt$苧w$7 E,1[^_]Ë]}uC{ED$Zm$Ջ'USK$[]ÍUWVS$,l[m$l[m҉Zm~[1Zm0;l[m}{[mu,OTǃ[mǃ[m[m[]Í&D$D$D$ D$躄[]ÍUSSǃ[m[m[]ÍvUS~û[mD$[mD$[m$@ǃ[m[]ÍUS.k[mt:[mt0D$[mD$[m$^ǃ[mǃ[m[]Ít&US [mtL[m[mD$[mD$[m$TYǃ[mǃ[m[]fޥ$.[muD$%D$D$ d$[mtWv$<=[mKUSU%:it&D$ D$$jx[m[]fznuԀzfu΀zvux[m[]Ív'US~ûU[m[mu+D$ [mT$D$$h[]Í&D$ [mT$D$$h[]ÍUS;U[m[mu+D$ [mT$D$$o[]Í&D$ [mT$D$$n[]ÍUS~ûE[mu!D$[mD$$u[]ÐD$[mD$$Fu[]US[E$[m[]Í&US+E$ǃ[mǃt[mۏ|[m[]ÍvUSE$s"D$[m$:[]Ít&'USnëE$3"[m[]Í&US>{ED$D$[m$蝄[]Ít&'US;$݃[mٞrL݃[m\$ \$D$x[mD$[mD$[m$O>ǃx[m$[]؍[]Í&'US.k[m[m$D8ƃ[mǃ[mǃ[mǃ[mfǃ[men[m[]Ív'UWVS ~t.֍t&t&<,t$< ftuT$<$8 [^_]T$<$8u&N~UU][msvU])f~uu4$N!t)t[mt ǃ[m]u]fD$t$ D$$$n]u]Ít&U]}uu4$ tt ǃ[m]u]ÐD$t$ D$$膊$]u]Ít&UWVS\E0P}y1U]EU;Eȉ؋'f]P$EأP]ȃEEԋM4D$:}lj<$|t|CыDPu<:uE؋@E]]렐t&T$EԉD$UT$ MD$L$$s$YED$<$E]u,E؋@E؃\[^_]E؋@Eȃ\[^_]Ít&D$MԉL$ED$D$ ̔D$$݈$E떍&'USnë{E6ݛ[m[]Ív'US>{{Eݛ[m[]Ív'UW1VSLD{U]tnt5, uv,t&tv vtnu1EٞwWEuzuE\$ D$EE|$\$D$$8L[^_]Éq떋ET$ E\$|$]ȿD$D$$7E]뀍t&US;z$[mtDt[mtbx[m\$ D$1D$[mD$\$$Q7[mD$[m$I2ǃ[m$[]Ðx[m[m|[m $Nǃt[mfU]IÆyuu4$ntQt ]u]f@D$t$ D$$>$]u]Ít&(]u]É'UWVSLxEԀ:&& D$4$8xE܋M܅z4$xCM܍}|$t$ $k~ED$D$Eԉ$6U܉|$t$$>~MԋED$ $D$6E܉|$t$$~UԋED$$D$[6M܉|$t$ $}ED$D$Eԉ$.6U܉|$t$$}MԋED$ $D$6E܉|$t$$}UԋED$$D$5M܉|$t$ $]}ED$D$Eԉ$5U܉|$t$$0}MԋED$ $D$z5E܉|$t$$}UԋED$$D$M5M܉|$t$ $|ED$ D$Eԉ$ 5U܉|$t$$|MԋED$ $D$4E܉|$t$$||UԋED$ $D$4M܉|$t$ $O|ED$ D$Eԉ$4U܉|$t$$"|MԋED$ $D$l4E܉|$t$${EUD$D$$?4M܉|$t$ ${ED$D$Eԉ$4U܉$賄L[^_]Í&/|VNDP $D$ D$| T$$1zEt&D$D$~EEEЉU̍t&MЋU܋ẺL$$D$zMkbMȍt@iMbkiɷUiַiliאi1MbU}Mb+U UE)ʋM U؋U؉$L$UT$2E}r`D$t$ D$$*$O'sUU][mvUWVSs|ǃt[mǃx[mǃ|[miD$D$D$ $&rEd 1UEE-EEEEEEEUUUEDED$UT$ ED$U T$E$BoW xv6T$ D$D$$|[^_]ÍvX}MЅG UąY EEľ>1UE̅\ }uvMЅ0 Uą +ǃt[mE̋7$U̾uMЅɐt&OfvuvMЅɐt&wfvD$FD$D$ $o|[^_]ËuUЅD 0Et&tr4$D$+ut|$D$EЉ$ctÉ|$ UD$T$$}$"uvEEątEĉD$UD$(ǃt[mEE3EEЅ0tEEt&<,< u1t&u4$D$+qttU܉T$ ED$D$UЉ$TtU܉T$ED$ UD$T$$s|$u{EPE%EątEĉD$UD$@'ǃt[mEEfEEEWEȅ((EȋD$Eȉ$Y.|E~EЅt&Eą0E̅9UD$Ẻ$'t[mN\$ D$D$D$\$Ẻ$l+U̾T$Eĉ$e&ED$ D$D$ $[l$#Eu|EЅEąvEZMEEЅt&/}ąA0D$=4$q1҅tpt$T$Eĉ$!)E }Ѕt&[8*|EE<,x< pu1t&u4$D$+qtUԉT$ ED$D$UЉ$`XtUԉT$E؉D$ UD$T$$y$u{XEPuFUЅEą18tD$=<$RptiD$<$unD$<$t14|$ D$D$$Gx$"ffvf+D$D$D$ $i|[^_]ËED$D$D$ K$JiM뾋EJf뮋E$[mL D$ D$ |[^_]ËMcEfKҍ&sf3Eqfǃt[mt$Eľ$)rd\$ D$D$D$\$Ẻ$&lE̅D$.D$D$ 0$gt$Uľ$(E+E$ "UDz"Efk"EE+E$!UDEątEĉD$UD$ E1EuEu$!EEU9SD$BD$D$ `$f!Eč&v!EE+E$ UDi!EE+E$ UEЉDE+E$ UD !EE+E$ UEЉDRE+E$f UEЉDE+E$F UDE+E$) UDN ELE$aftUD8/}!ED$E4$D$`;1.D$)D$D$ $KeD$FD$D$ 4$eD$4D$D$ T$dD$%D$D$ $d^D$+D$D$ ${d*Et$D$Uȉ$>1 E$E3ƋE4$D$5D$ ޥ$TED$ D$D$ $c$v"vUS eUǃ[m:it$D$ D$$@lx[m[]ÀznuրzfuЀzvu‰x[m[]fUSUXÕd:it6D$ D$$kD$[m$ []ÍznuĀzfuzt&t렍USd[mt[mǃ[m[m[]Íޥ$ [műD$%D$D$ d$Rb딐&USNËcE[mu!D$[mD$$wV[]ÐD$[mD$$V[]US+cE[mu!D$[mD$$V[]ÐD$[mD$$U[]USbE[mu!D$[mD$$U[]ÐD$[mD$$VU[]US.kbE[mu!D$[mD$$WU[]ÐD$[mD$$T[]US bU[m[mu+D$ [mT$D$$M[]Í&D$ [mT$D$$bM[]ÍUSNËaU[m[mu+D$ [mT$D$$mM[]Í&D$ [mT$D$$L[]ÍUS aU[m[mu+D$ [mT$D$$L[]Í&D$ [mT$D$$bL[]ÍU(]IÆ`uu4$_uEcEhEE􋳌[m[mu/D$ ED$D$[m$FL]u]Ít&D$ ED$D$[m$K]u]Í'US_U[m[mu+D$ [mT$D$$K[]Í&D$ [mT$D$$2K[]ÐUWVSY_,E$^EE$6^4$EǍED$ED$ ED$ED$-dt,E<$:^<$D$o,[^_]Í&`$iD$D$ED$ D$$k$늍W`00D$$+\D$ TD$D$$-k#D$$[$#jD$D$ ƍ@D$$j4D$4$audt$ D$D$$j$DvD$D$$jj#D$$$[@D$&D$D$ $[$ &'Uuu]}\>1t+?D$4$Efu]Ћu}]Ð~t͍eD$4$ft̓0t5iD$4$etMD$4$eu1똀~t&u1ҍt&농UWVSu0\>& 4$bEE&EEUU$OYM $evBE$eD$ pD$D$$hČ[^_]Ðt&U$!lM D̍4FtЋvEUuEE&t&M $q[E8_W<$.ZU$!Z<$DD$kUT$$SMMtv>E 8ƃEEf>EuMEI9Mu܋U$-^|$$[uM $_EE$jUEB tЋLE$XM $]EE$)ZUEtiM։׃ M  tMU$T$ZuGM$L$ZűE$W`MD$D$ED$ D$$"fMl΍ Eu KM$D$3ZuۋUMBL$D$D$ $e붍UUE$\D$D$ 8D$$}eU ֍Mt&u U M9JuD$ ED$D$$$eƍ^VNDP $D$ D$K_D$ D$t$$TEU$eEE~Ut51ҍ&< t< t< t < t&pMuԋMM*D$D$D$ m$UD$D$D$ $UUt$ ̪%}ttUBtЋ0M t&1D$D$D$ ȩ$ UEMUD̋RU듍ЫD$ D$D$K$dfUW1VSVث$Y$[m0U$TE썃ݫt$D$ D$D$E$U=KD$E$TEt&ED$<$D$StmD$=<$YƋE<$D$Vu4$T~ D8 tUE$c4$bNjE$Y][^_]ÍvE$cE1$4][^_]Í릐UExT@,u̵]Í'UESKÈTH,u̵ []Ð&UU VuLdt DPD^]ÍUE UEBEBEBEBE BE$BE(B]É'UU MAAQ]Ít&'UU MQ]Ít&'UM]A Q Q Ív'UU]B ÍUWVUJȃExXB u z ;w|DkEh;t8<1;M}5Ukh;t8v9щU}kh;t8~EEJɐ1Ƀ^_]Ðt&U]EvóRuu }1$t$OMt$1 $E;9EtMkhAkMhtԋ|+t4|8]u}]ÍUWVE Uu;uEUMkEhI9T8M}ukhM};|@9u}q}MT7}kh;| 8U|6}VU9ƉE~`UM}‰kh;| 8}+MMpU9T4vt&mE^_]f};| 4r9ƉEEE^_]Ív};| 4rufU;T<&0uE^_]Ív'UWVS,EQEEE~{UBU؋PE~\EM܍ɍ<Exw;w}+t&Ut$B $EU9wMQE9U|EE;MEU,[^_]Ðt&UU EP]f?PU勁]Ít&UWVSLE܋PEt MuEE~?M܉ẺUȍ&uAp(E uVu܉щ#N thfu܉ЋN !Ȩ !Ȩ!Ȩd!Ȩ!Ȩ !Ȩ@hE#U5uE#FUE#BuE#F*UE#BuE#F xUE#B@EBuEFU܋M B 1E؋dMԉE]&tK@1xt@E1U؋D$D$ T$$[UMB@@9}R MMAHuUMԉT$UЋL$D$D$ $ZM9|vM܃EU9Qu܋N tFtE܃@tU܃Btu܃FtE܃@ tU܃B@tu܃FyE܃@Et $蘿L[^_]ËU䋋T$AD$D$ D$$YEP&EŰMȉD$BD$D$ D$$YuE܋VH W&ED$@D$D$ D$$VYMu܋QN ED$@D$D$ D$$YMu܋QN ED$@ D$D$ D$$XMu܋QN Uu䋃t$@D$D$ D$$~XEu܋PN ED$@D$D$ D$$6XMQN t&ED$D$D$ D$$WMQZM܋D$@D$D$ 4D$$WfM܋D$@D$D$ 4D$$[WU&E܋D$@D$D$ 4D$$ WBfM܋D$@D$D$ 4D$$VfE܋D$@ D$D$ 4D$${VfM܋D$@D$D$ 4D$$3V7fE܋D$@D$D$ 4D$$UfM܋D$D$D$ 4D$$Uv@TBB@&U(]u֋OHta19tPM91tDMD$D$E D$D$ D$$UU2]u]Ð01]u]fUuu]胼GFD$F$XVM FV]u]ÐUuu]3pGD$F$zXM F]u]Ít&US+GE $TU[]Ð&U]蹻Fu}$E1rEt]u}]Í&$PET‰NjEVˉ'U]9vF}$0yE 1Ћ]}]Ít&US;F$>E@@@ []ÐUWVS輺Eu G4$D$POG 4$D$4OG4$D$OG4$D$NtoG4$D$NtWG4$D$NtU w ΋U 7ORDWED]u}]Ív'UWVS{BFD D$F$]]~SV ҃Vك0M}Nw EpUEM9 U}EE9lj}EEE}}B,EMBE@ EE~~t&E1ҋ} x9Lt&x ;}8A};x uA,uۋ}>@,A,x ;|ύ&EU9U|MEM; YE}9}U!EEE9EE@,A,x ;|ύ&EU9U|MċEM; PE}9}EE9E<}9 E|}ԋMԋM܋J,EBME@ EȋEt&M1E̋E؋t&E؃;:}kBMȋ;H uJ,U܋;H,tϋM̃uԋ|L$t$ D$D$$(9ME؋q;:|t&URUуE9MP}܋>E};:EE9EĜ[^_]Ëu}vu} MQ URUM܋@,B,Mz&UWVS,i+< dmD$D$D$ $)MD$ $E&E4$D$D$D$D$ *4$D$ &UͲ4$D$ D$T$D$*4$D$%ME E2MEMEyt&uD71EP@D0ExT7Bu tJJ x$tBHJ ɀJ BT7BtB uBHJ Bt&UEE9fE M QE H M܍ hmEt&$a8dt=UM܉t$D$T$L$ D$<$B)E؉<$D$(u t$$aUt$ `mD$ D$T$D$4$(MAPU D$B4$D$ӴM A$UU B1EHyu0E PBABAB A B$A$B(A(B,A,B0A0$ D$&ED$4$MAPtD$D$4$SU D$B4$D$9<[^_]ÐD$D$4$UB$vMA6D$D$D$ ٲ$B&$ t&D$HD$D$ @$&$JM $D$5D$U&UWVSܛ'U EU苋umEEoU~~M Eyt&uD7E P@D0E xT7Ju t!B ut BHB BB M EU9U dmD$+D$D$ $$MD$ $7!ED$D$4$D$D$ %D$4$ UͲD$ D$D$T$4$%D$4$ MD$L D$ $2EEtBE oD$4$D$(òD$D$4$U*4$ 3E lmUЍqmt&9uM $.3U|EExM $+A~<$ $ uۋUF$T$.uŋMD$<$L$ uFVBUEk<4t9MU|$D$4xt$ D$$51$蝖E؅u/|U|$ D$L$$0$g|$4$3MD$HD$D$ @$U"$D$5D$E $U E$-qmlm1M oUԍ8EEUMEfUԀ:.MT$EUD$ $D$T$ D$"EUMD$D$ T$$/ D$E$+"Eto,MċED$D$L$ $NoMỦ $iEUoE o$MiUU|D .oD$D$UEčrD$ 4$4$UMD $ UMD D 1ҍ M~`U1uMUv4$UEȋELU+UЋUMȃMMD9|iEMto$+EEĉ$ 0EoE}doU BxMD$D$D$ z$jEUD$D$D$$D$ M D$AD$E$腬U B$M AU$ D$M D$AD$E$UMUuD$ D$ $T$D$UE4$T$D$iMD$ ED$D$L$$UM4$T$L$iĜ[^_]ÍviEM%fUD$D$D$ e$$ő'!$]*UMD$T$ D$KD$$,${B}cfu܍}UkkEEE &EctEMЋUt$ D$L$D$$+$뱋UMD$D$D$ `$$讐3'UWVSE֒u @,ut uft$M $+'uۋEP,19taM;yHtTt$D$D$dzD$ D$$[*ExH[^_]Ít&1[^_]ÍD$D$ D$$*x,1[^_]ÍvUWVS,M 薑9HE ƉȃFtS"E D$UD$D$T$ $)$,[^_]Ívt$E$%uۋU MRE‹P9EtaME;tOt$D$D$ҳD$ D$$(uEt&E,[^_]Ðt&E$U M4RT$ҳT$1$1PEEXtRE8u U v U2XuVYPPE>Yu몍t&'UEMU @M MM]fUEMU @M MM]fUWVS,9v}:UEuVt$U$#uۋMA]9EtZU E;ztKt$D$D$D$ D$$&M EyvE,[^_]Ðt&}3}}}Z8t&4t$U$"uۋMA9EfU E;zSt$4D$D$!D$ D$$%M Ey}uJ}tDMD$D$L$ $w%$ߊ,[^_]Í&E$uET$T$U $UEfztEU MQMQUB2f}@H.t$E$ !uۋUB9EM E;yt$D$D$D$ D$$,$E Exn}dvpt& Lt$E$+ uۋUB 9EM E;y t$ D$D$D$ D$$L#E Ex xvtt$E$kuۋUf9E/M E;9t$tD$D$D$ D$$"E E8}ubfNt$U$uۋMA9EnU E;z[t$D$D$D$ D$$!M EyyEzEz E:EfyEyE'USEU2H;|BED$ E D$PD$DP$t[]Í&'USEU蕈H;|BED$ E D$PD$DP$[]Í&'UWVS,9v} u Et} ty} 9} v} } MD$D$L$ $$e,[^_]Ðt&XvTt$M $uۋEP 9EtZME;yu+&t~E$G]Ћu}]f\D$t$ D$$$&~롍t&$, ‰lj떍&D$t$ D$$^$}KUWVSU }. )‰Ћ9ΉEsI t&9v9:uBur9EE}эFB9wfE U )L$D$$/[^_]Ív'UWV0E܉U-8E-EԋU܋R$҉U:UR$҉U}:iUR$҉U?:'UR$҉U:UR$҉U:UR$҉Ut}:tiUz$tM?_w$u%4F$UvFv(t>uދU9V.(uE@(Et8uUE9BUR(҉UtE8]UE9BE@(EtE8UE9BUR(҉UtE8UE9BE@(EtE8UE9BtjUR(҉UtE8YUE9BtFE܋@(Et@E܃8E؋U-9B0^_]ÍE9G1vٍUWVS\UԋUE|-_5 , v  &&UEB$x(tw?tYE-Ečt&w$u&5&F$Uvv(t>uދU9V(t?uE-9GMA$u܉…t 9ʉ$UԋEUE؋B$@(EiMԍܶEЃMỦUQ|M1}EpD$ D$D$L$|$D$ D$ED$U؉$[Ft$ MD$L$Uȋ$[$xvEE@(EM9/} E ~}cuMMM $UEE؋E82>MEpD$ D$t$T$L$D$ D$ED$U؉$VGZ|$ MD$L$$S$wvE}D$ D$D$D$D$D$ D$D$qM؉ $述UJ$y(uԃ(B(J(ƒ:u9ruB(EMA$Q$B(E-9A3Q((:y(t%v.R(ҍv:~(t&uBփ|܅y؋B(MA$Q$B(fM؀ U؀ E؀ M؀ U؀ E؀M؀ U؀ uE؀jfU9U`M1E`f} 0uԃU$E؉D$ D$D$D$ED$ D$D$aD$<$GEuND$ D$D$D$D$D$ D$D$q$莮}؋E؃\[^_]ËU̾D$:D$D$ $ $tEhM؀ U؀ E؀ M؀ U؀ E؀M؀ U؀ E؀E9E}1E`J9E7UpD$t$|$D$ D$T$D$ D$M؉ $5E؀E؋E؃\[^_]ËU$Eغ D$ D$D$ D$Eԉ4$D$ D$D$D$a辬u؋E؃\[^_]ËD$:D$D$ $R$sE$EGD$ D$D$WUԿ`1&UWVS uI<}EU܋EvFED$D$ HD$$ $qrE܃<[^_]Ít&E M$EM 댍&$G(wfu܃}uD$ lD$D$$\ EEČ[^_]Ív,t&D$ D$D$D$D$D$ D$D$ E$轧E1v(O{D$ D$D$D$D$D$ D$D$E$YE'MEMЉEԉEU܉U؋UT$ML$ F$@(@$D$E D$U$UЋEOV$NjB(}܋@(UOMT$MD$L$ E D$U$UE +UE܉<$D$ D$D$D$D$D$ D$D$ZV$}MԉL$EЉ$D$UEV9EЉM;}ԉ}MظMMt&VBD$ cvD$ D$D$D$D$D$ D$D$0M $腥~U} ~D$6D$D$ $E~~O~}E ~w F @ VЅ yw&j&Zx& D$ D$ED$D$ D$D$BD$D$0U$GfGV>fvFvfV$:t&uF考$E D$ D$D$D$D$lj$D$ D$D$A荣FD1}N  ybF M% D$‰D$D$ D$D$D$ D$D$qM $UD$ D$F D$$D$D$D$ D$D$q訢UD$ D$D$BFD$D$ D$D$ BN 7M ] D$‰D$D$ D$D$D$ D$D$qM $UD$ D$F D$$D$D$D$ D$D$q袡U}D$ D$D$BD$D$D$ D$D$0$LEv\N ɍvb }&y&V ҉UE  }Y }( D$!D$D$ 8$\E[t&F4&}t&<~FO~}5t& JF$$EE1`&V$:uhF考v]R‰D$D$ D$D$D$D$ D$D$VU$詟t&$E pD$ D$D$ D$D$ǃ$D$ D$D$FC1}yҐt&b&&fvFf4,&x&UBɉM~y@EEGEUMDP҉U~F@MEċ@E1et&MċMH9UEE9E D$ MAQ @D@9tD$|$ D$D$$EEČ[^_]Ív}D$&D$D$ $XEWGD$ D$D$FD$D$ D$D$xSw1yftGD$ D$D$FD$D$ D$D$D$0E$ٜzD$ D$D$QD$D$D$ D$D$E$MFʀTMGȃyu1D$ D$D$D$D$D$ D$D$0E$OpGEfUBR @DP҉U~?xM@TE1et&MH&9U}wC}veMD$D$D$L$ D$D$ D$D$ E$4rtuxtpwvD$ D$D$D$D$D$ D$D$0M $Κ F{E{FzBfKFf}N G}t ҃D$ D$D$D$|$D$ T$D$ D$D$FD$ D$D$0D$‰D$M $(FzBD$,D$D$ ̹$yExD$AD$D$ P$CEBD$ D$D$D$D$D$ D$D$FE$!_D$0D$D$ $ED$*D$D$ $EMWIAM9:N tE@@9EGD$ D$D$D$eED$ D$D$0D$U$YD$=D$D$ $D$9D$D$ |$ED$:D$D$ @$SERUЉF}MAQ @D}@U 1҅u QM9KED$D$D$D$ GD$D$ D$D$ 8D$D$D$ }$jEiUB6Q EaQSEEuwt&x‰D$D$ D$D$D$D$ D$D$qM $UD$ D$D$FD$D$ D$D$D$0$蠕1ED$8D$D$ 0$7E6D$T$ WU D$ D$*D$D$ $ED$T$L$ D$D$$D$ \T$L$UW1VSE ]þU D$ED$ ED$ED$E$EqEE MU +Ut|щxpE }䋕|Mȉd9dUt&EȋdEPU ɈMu;ddUqp`aU2fd9E sm@<w`BpuXtT9} U 1t& 9s):uBuB9E9rfd9tE%At5}VEEd9dļ[^_]Ít&~uU:u~uM9} MsKU E t&9s):uBuB9EE9rؐEXdB tBdA tAdB tBt$~> vVBvtFfE9} EsMU E 9s):uBuB9EE9rؐEdzuBBtdU $EL$Dx)dxxxxrxbxR;}č&uL9} vsDU 1 9s':uBuB9E9rمdT$tU E $dxIMdQ9U<UШu8E9} EsJU E v9s):uBuB9EE9rؐE-dddMdEUQ A A ‰Ёƃ1ƋA ։ʃBAABuT8u8tUEMUxEdQыEdAQUxppD$ D$L$$$ Ux0US>W{oBJ$oo o[]Ít&'U$V&t$uo9t4to oA$oAoaǃ(o$t$]ÍUSUxVõt0BBB@B;oBB$Bt[]ÐvU]VVuu4$~E F F]u]ÐUSUD$ D$ĩD$$$\S[]ÍU]U} u}w1]u}]Í&UE |uۀ|u$(ljtKE UGG WWGGGG G$<$wf릍UWVST E E$E E ~!} w[1ҐMM9U vUE DM$L$F[^_]Í&E EuE9Evcu 11<t$MM9r9} rE1ҍ<E4t&9E IE9E닍t&CvU1SUvSó:t t&<uD$${[]Ðt&U]9Svu}} $(stQG~ $_Ft,E4$FD$]u}]Í&DǍvDt&띍&'USRot$ED$o$O*[]Ít&D$@$oUuu]3Rpt;ot*Nu4$]u]ÐF$vǃoʍt&UWVSQ|1EUEUo oMuou0o,oUuffKt UM܉UK0S 9tK~ fStEu댍t&U܋EM,o։0oEsuE)ȋM ooGvloǃu ǃot>t&ot4Mu΋D$@$o벸*f|[^_]ËK2UD$t$$X> vʋMD$ pD$D$$<똸"둸't&놸({.k/[6K5;4+3uD$K2D$$~ $0&:{9k8[7K ;+;! %12UM+EE ooF$uF$oF$~$oo9M#MD9E MvGD$ ĩD$D$$r$JooEF U)U}v$oEΉuoo9EEЉua0oNj,ouUMut EfCt}EM܉KʍS 9E7USU~ 뼸 5K2UD$t$$>MD$ 4u$ & ou0o,oMEU܉MЋMЋu܉Mx#OE;+ It&1 { k-[+K,;)+vMS9ωU܉M^uE0o,ot&EM)ɉM~# y1ҋM9Uo~$EV ЅEĩMEPV F F D$F$Ft=+}~oMoF ɉMNFVoUuFEMUD$D$L$ $=$F뒍v} ~E Ff1$  o@E0;u|ˉ$o$o1ɋoFЉF E zE9w G9EdU1U1҅t!M;Uru9uA1ҋu 9E%ǃ$oF}4F$VE$o$oVDvEuЉ0MMuЉM9uoo0o,ou؋uEԉỦuUؿt fKt u؉M̉uK0S 9tK~ ʋuE9uSurEԋỦ0o,oUuuoM$oUǃ(oooPGuo6Eu9Ɖo,o0oEuuЉMt fStuUSEMK 9tS~ϋE ‹EK9rMu艋0o,ofSt ,o0oS 0K 9tS~ Ktu0o,ouEoуEo?o@E0 J$8ϻ(UT$D$D$ EF$$oto1ɉF$lϻmU]9Dv}$,y 1Ћ]}]Ít&U]uƉ}C.9Uu%@$f‹@(uEB(]u}]f$, 1r$E}~(č'UWVS|CùUE$, Ɖ1UV$, E1EUE-}Bu*B$&‹@(u}z(}~$[^_]Ð$,0 E1}EUx$EUG(׉U~$[^_]Í'UWVSB,eE1@DžDžDž`։$f>DJ9(')ѽѥ'v Dž'D!)čD$$?T$$D$$c$D$(L$4$:$)$ )Ƌ)ЍG9()‰KщtT>=<w iwL9Lʅɉ, )M19Dž Dž,L Dž Džt& 9M9utۋ $ D &}e3=H e[^_]t&Í&uR9~uAt&$9tCtċ=iwLut Dž1Dž ,<$ nD8)čD$ &quqtqu9L00009~\89u׃uЃτu틅0,t&qu돋$Y7t&Dž> q 1t$赹1>$荹89:WG$ #WBGBGBG BGdyVD2xG$P(B(B$xBR$ YVF$9xSNjBG$r7F(A@(AP(B$Jzo4$D$_4$_D$$y_}D$D$4$|$ 趱E}$EU f}1UH <D$Lo}E܉$_U}܋iH  D$G$^UH ~.}1U܉|$D$|^U9H ׋}EUD$|$ D$$ڰ}H ToEE؍vUD$$^}iuPoE7}D$ D$UD$$V}EUԁE9H e+u} :t"UBPE}GPEuE$&<[^_]f@@@E6&t$$]UD$$T$ct&$t$\UB@xx0@4DVtmt&0VXy1EE䍳Xo4$D$\}}GPwfG$t$Q\UBP1ED$G $-\}GPz~)r11ҐH9| U4Et&}D$ t$D$<$]Et$D$<$D$ 2 |$}D$<$~t&Fx:pe&#vkhF@&Mt=ƃ@o0ƃAoƃBoƃCoƃDoƃEoBƃFoƃGofUH tC8t=ƃ@o0ƃAoƃBoƃCoƃDoƃEoƃFoƃGoƃ@o0ƃAoƃBoƃCoƃDoƃEoƃFoƃGoD$ D$D$ $Ǭ$ uU,D$D$$蹃M$Љ;|r;mfjkTLt:B;A@ | ;y<$;r &f|(;zR@\ы1R; 9~}D7\kh;<|E&9~6\Љkh; 8}у9ZD$$.,9JnF+D$$.hDžI=txt&lpAD$AiȯD$ ȯʋQ4I8T$D$$x/A;hD$Ai8PD$ 8P)拵F4V8<$D$T$/~kt9~Z9hDƃ9|9khyD8 =JkhT h#9~1?x[;P}J@kh4B;Au'z +ҁ1) ֍t$4$,~qx9}`9hB9|?xkhD8 ;JkhT &h9~1?x[;J}JBkh4B;Au'z +ҁ1) ֍t$4$+xtD$ dB4$ L$D$迅D$4$|$}ndp;Hh,9w Orv(9 t&Q99f?t&(;<fv\‹@@hT$ D$t$|$$蔊q4y8D$ZD$ 4$|$`D$D$ $T$ԑ4$|$D$_D$ D$$ D$t$D$ $ D$D$D$ ${1=v$;B t&(;Jv9Xh@94Bkh 8B;Av+1)%^=X9hL f@ kTLTʋB;G@ |L;O<CR`R1`I;99D2‹`kh;9|B9Z`Љkh;<}̓뀋D(9Hk4F;BV+1) D4F;B~ +с1) ?|D$|D$ D$ D$$T:D$$D&F@4D$$%D$$%D$$%D$$%@DLx@Qy A  ‰% ={@F|fzzzzzr$|1% ~kLNB BkX)ʉ4@ G@ fzzzzzkAhqh$@ GrRND)σ:VTH) (,<8HH$@T󥋵 B,$8$L$|$m;uˋTB 9(~S1΀>u6~u0~u*8$D$T$ $;uFuLJD$D$4$KF99$H󥋅 NvF8kBhprǃfǃƃ8D$T$4$84$|$L$8|$4$D$8|$4$T$8|$4$L$n84$D$|$F|$4$T$$ǃfǃƃt"FLLXFLDžDžP1DžTD> t5D>P 9TH|9Psȉ։PTL uT PDžLpBtj DždDžxDž|Dž`FDVHhƉ+x|X\IPى($4004$T$t$|$ n‰׋0,׉4Ћ0Ɖx|131 q`uLDž`~X\x|(h‰׋0׉4Ћ0Ɖx|1qTyPA$ADQ(QH)8 $ljD+x|@Ƌ@׋D4$|$D$T$ mDϋ@Љ<@׉ϋx|131 `uLDž`ƅcx|8@щ֋Dϋ@׉ϋhx|1LA,Q0 hG$W(G4G,W8W0G89z}gJ1 Aʃ9}T;|鋵 pthLh ttpt i# t/z 2t9ljp|9rzv2zptypt!Ѓp<$hlvhq4y8D$T$ +pt׉4$|$"j)Ƌ;x@$$D$ xD$D$3$ev<14$1D$^D$D$ S$lpp4x8A\9΋lVhʋr BB4R8l;W86}/$D$ xD$D$F$dt&;G4v̋llAO$X<|$ D$|$D$$Z$h9Zh<|$lD$t$D$|$ D$$3Z ["vN$-X11VTBыR9~+AkGhD$G$\Gkxhwp1FDFHFPN VFTFLFF $JFdkFhFx󥋽GuSx~1ɋr1ҋH9󋵄F L$D$ D$H$跾DžDžDžgGkBhxzǃfǃƃ88<$D$L$y;uыǃfǃƃbGLHtXGLDžGFGPt0GPGDGDG@ <tpw<wGDG@ GDt&<t&frj$脲txׁHT9׉,+q94A9lj4Q 9׉L+q9*+A9lj+Q9׉*q9S4A 9lj.4Q$9׉ 4q(93A,9lj3q093Q49׉{3Q89\3A<9lj7332222b2>221111j1F1v#1)<D$4D$ $D$ L<$t +RT:9B9Qr9񉵨~)z 9Y)B94)r9񉵴)z9)B9)r 9)z$9k)B(9F)r,9!)r09)z49(B89*B<9v*U*1* *)))})\);))(((&())<D$4D$ $D$ 9$蔭t ׁHT9׉p1)q9t)A9ljxy)Q 9׉|W)q95)A9lj)Q9׉)q9)A 9lj)Q$9׉`)q(9;)A,9lj)q09(Q49׉*Q89*A<9ljk*pJ*t&*x*|)))r)N)*))(((%$v#/'<D$4D$ $D$ \7$$t  % RT:9@A#B9D#r9H"z 9L"B9P"r9T"z9Xc"B9\>"r 9`"z$9d!B(9h!r,9l!r09!z49{!B89Y!B<9%!@!D H L Pt TP X, \ `dhlx~&Z9<D$4D$ $D$ 4$褨t ׁHT9׉?q9_A9lj=Q 9׉3q9 A9lj$Q9׉(q9,A 9lj0zQ$9׉4Uq(980A,9lj<q09Q49׉Q89A<9lj`? $(g,C048<9  v+<D$4D$ $D$ l2$4t ! RT:9B9xr9񉵤 z 9 B9 r9 z9^ B9B r 9 r$9z(9Kz,9&z09z49z89z<9wS=vD<D$4D$ $D$ /$t!ׁHT9׉q9q9A 9ljtQ9׉OA9lj*Q9׉A9ljQ 9A$9ljy A(9ljT A,9lj/ A09lj A49ljA89ljA<9ljzV9b j F "    <D$4D$ $D$ -$St !;txt|+\녉  B@,AT | 1AQ  Q Ћ2;u΃~ 4X t7  4#Dž $: $W, BqHɉ@ 110; :L$$-u110; :L$$-uύDv0 t8D2~ A9 4 Dž<Dž+Dž Dž +H@@HDfQ@AkDLD$ D$DHD$D($ DPP?5kPL‹J B$9|8B$kPLF$D$F$^4N FkPLT1(,40|4kPLP H| t | @ 8rxXc|D t $.%8(0f &DžDDlpǃlpppt$lp$FppppD$E䋃lpUD$$*U M UABQ M~}E1E萍4rUBfMЃ$L$譚E Ux EED$F$E M EEQ;:|uFD$E$X;lpEtMEt$D$L$ $ ,[^_]ÍEU D$B1҉$E dflpivE1E쐍t&4rUfF@ BMЃ$L$萙E x EED$F$E M EEQ9:D$ D$D$$NUWV(} EUuE؉UEM܅҉EЉu}u9}v61uv;U11ȋMt؃ڃ(^_]fuu1҉uEu1ҋMuƉufMރEkE؋UU؃Vf҃Uu;Er M9Me1]M}uЋU +MM MEMԉEEMM Љ։EԋEe9։r"tM1EM9svM1UWVHUEEUU E}uE҉}ĉuMMč}։}̋}E܉EɉMu9vAủF9U}̉WEЅt ]U]EUH^_]Ðu 1lj1E륍t&M؃Egu}ރ߉u}O&EEu,9Ur;}w U)uUM̋}q9X&U M+EEMԉM ЉEuMM؉EEMM ЋUuU9Us:)UM)щMM؉UuMM ЋUVfu9sf뼐U]Ít&'UWVS<^y  )t$1ED$E D$E$ 9rރ [^_]ÐUS]US t fЋu[]ÐUS[lY[EncoderViewPisteEvaluerQualitePistesVideoPistesAudioSousTitresmain.citem/usr/share/localedvd95/usr/shareapp-datadir1.5p0localhost/apps/dvd95/config/langFrançaisfr_FR.UTF-8Englishen_US.UTF-8Deutschde_DE.UTF-8Greekel_GR.UTF-8Estonianet_EE.UTF-8Hungarianhu_HU.UTF-8Dutchnl_NL.UTF-8Portuguesept_BR.UTF-8Czechcs_CZ.UTF-8Spanishes_ES.UTF-8Italianit_IT.UTF-8/apps/dvd95/config/dev--iso--isofile--dvddir/apps/dvd95/config/mediaDVD 9 to 5%s : %smainEnableAndScanCouldn't find pixmap file: %sGladeParentKeyWidget not found: %sFailed to load pixbuf file: %s: %s JF CoulonJF Fortintranslator-creditsDvd95http://dvd95.sourceforge.netdvd95/dvd9548.pngalerte_termineTerminégtk-dialog-infohbox4image4label15hbuttonbox2gtk-closefermerclickedalerte_analyseAnalyse en courshbox3image3label14hbuttonbox1gtk-stoparreteralerte_deuxiemephasePremière phase terminéedialog_vbox6hbox2image2label13dialog_action_area6gtk-media-playlecturegtk-go-backrevenirgtk-go-forwardavanceralerte_mediumAucun medium détectégtk-dialog-warningdialog_vbox5hbox1image1label2dialog_action_area5Fichier ISOchoixisogtk-quitquittergtk-refreshrafraichirChoix du fichier ISOChoixFichierdialog_vbox4dialog_action_area4gtk-cancelbutton1gtk-openbutton2Avancementgtk-convertdialog_vbox3hbox5gtk-zoom-inmpeg2imagevisumpegtotalprogressstreamprogressexpander1scrolledwindow1textview1Détailslabel1dialog_action_area3gtk-media-pausePauseavCanceltoggledproprietePropriétésgtk-propertiesdialog_vbox1frame4alignment4table5Périphérique DVD :label6Espace temporaire :label7Espace des ISO :label8Lecteur multimédia :label9Niveau de trace :label10Sélectionner un dossiercfgtempcfgisocfgvisucomboboxentry_entry1totemcfgdevcomboboxentry_entry3/dev/dvdIndications sonoreslabel16gnome-stock-volumeimage5Languelabel17DefaultSystèmelabel4frame5alignment5table1Garder les menusUseMenuConserver les menus du DVDCréer une image ISODoIsoGraver le DVDQualité dynamiquedynqualcfgmediaCapacité du DVD :label11Couper le génériquelabel5dialog_action_area1cfgsavedestroychangedtooltipsmaintoolbar1proprietesEcran des propiétésLecture du DVDÉvaluerCalculer la qualité au mieuxConvertir le DVDgtk-aboutAboutvbox2table2titreNom du DVD et du fichier ISOÉvaluation de qualité :label12Titre du film :label3frame1alignment1scrolledwindow2Vidéolabel_videoframe2alignment2scrolledwindow3Selectioner les pistes audioAudiolabel_audioframe3alignment3scrolledwindow4Selectioner les sous titresSous-titreslabel_subtitlesdelete_eventbutton_press_eventbutton_release_eventa GNOME application to convert DVD9 to DVD5Dvd95 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Dvd95 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Dvd95; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 2111-1307 USA Encodage terminé La conversion s'est déroulée avec succès.Analyse en cours Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Extraction du contenu terminée Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.Aucun médium détecté Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Créer une image ISO apres convertionGraver un DVD apres convertionConvertir avec une qualité d'image dynamiqueNe pas conserver le dernier chapitre de la piste vidéoParamètres de créationSelectionner la piste a convertir ABgnome-openFichiers ISO*.isocallbacks.cmodel/apps/dvd95/config/usemenuformeTemps de traitement: %s Erreur de conversion ........parentVeuillez selectionner une piste videoVeuillez lancer un calcul de qualiton_Evaluer_clickedGetSelectedon_Encoder_clickedon_SousTitres_button_release_eventon_PistesAudio_button_release_eventon_cfgsave_clickedon_proprietes_clickedB%s: executing (%s) %s: retCode=%d /apps/dvd95/config/playerxine "dvd://%s"mplayervlc "dvd://%s@0:1"xine dvd:/%svlc dvd://%s@%d:1%s %s/apps/dvd95/config/subtitle/apps/dvd95/config/audio%s: noPisteVideo: %d DureeVideo: %s audioSize: %s %s: totalSize: %s totalAudioSize: %s %s: menuSize: %s %s: Video2Requant: %s %s: VideoSizeAllocated: %s %s: factor: %f dvdcopy.cfrxalignactivetextFormatCanaux%c%cExtSubp%d=0x%x %s ID: %d treestoreDuréeChapitresLanguesSous-titrestitle%d ifo: %p ifo#: %d vts_ttn: %d nr_of_srpts: %d #cells: %d ,Unavailable audio track %d sec=%s %s:> %s: total=%s Piste%d: no vtsi_mat Scan end. AC-3MPEG1MPEG2LPCM SDDS DTSNormalLargeChildrenreservedNormal_CCLarge_CCChildren_CCForcedLarge_DirectorChildren_Director4:316:9"?:?"%s: pisteAudio %d KPS: %d duree: %d size: %lld mplayer -dvd-device "%s" dvd://1mplayer -dvd-device %s dvd://%d%s: totalSize: %lld < %lld(DVDSize) totalAudioSize: %lld duree: %d secondes %s: pisteAudio %d KPS: %d size: %s Audio%d=0x%x %s (0x%x) Id: %d Channels: %d Lecture de la structure impossible !Lecture du titre de %s impossible!#title_sets: %d NrTitles: %d ifo_zero->tt_srpt->nr_of_srpts: %d Piste: %d nr_of_pgci_srp: %d ifo: %p Pgc: %p Audio#: %d %s: i=%d cell: %d secSize=%s from: %u to: %u ExecuteMkIsoFsVisuDvdStructAudioSize       $ $ + 1 : C M V : b : : : o i x ScanPisteUpdDefFactorDefaultRequantFactor    ScanDvdGetSector?@@HC%s/VIDEO_TS/VIDEO_TS.VOB%s/VIDEO_TS/VTS_%02d_0.VOB%s: size: %u secteurs !!!! %s: no sectors in DSI ! %s/VIDEO_TS/VTS_%02d_%d.VOB%s: vts: %d vobNum: %d Mise à jours du vob %d-%d r+bremapVobu failed for %d %s: VTS %d %s:(1) pgc->nr_of_cells=%d %s: (2) pgc->nr_of_cells=%d %s:>> c_adt->nr_of_vobs=%d %s:>> nrVobs=%d %s: c_adt->nr_of_vobs=%d %s/VIDEO_TS/VTS_%02d_1.VOB%s: startSector: %u vts: %d /tmp/apps/dvd95/config/temp/apps/dvd95/config/iso/apps/dvd95/config/generique/apps/dvd95/config/mkisoCopie de %d cellules. %s/%srm -rf "%s/VIDEO_TS"rm -rf "%s/AUDIO_TS"mkdir -p "%s/VIDEO_TS"mkdir -p "%s/AUDIO_TS"%s/vapinj.%d%s: VaporizeAudio(%d) %s: VaporizeSubp(%d) /apps/dvd95/config/qualdynMenuSize(%d,%d)=%u RemainMenuSize SIZE: %lld 0) VAPORIZE VIDEO SIZE: %lld 0) VAPORIZE AUDIO SIZE: %lld 0) VAPORIZE SUBP SIZE: %lld 0) VAPORIZE NAV SIZE: %lld THEORICAL TOTAL SIZE: %lld PRATICAL TOTAL SIZE : %lld 3) REMAIN VIDEOSIZE: %lld 3) REMAIN AUDIOSIZE: %lld 3) REMAIN SUBSIZE: %lld 3) REMAIN NAVSIZE: %lld 3) REMAIN DVDSIZE: %lld dFactor0: %f New Quality: %f%% %s/%s.isoConstruction de l'image ISO. /apps/dvd95/config/graverGravage sur DVD. eject %sk3b "%s/VIDEO_TS" -videodvdEffacement des fichiers. rm -rf "%s"Selecting cell %d Analyse de %d cellules. menuSize: %lld dFactor: %f Qualite: %f%% %s: size: %u secteurs open(%s) failed errno: %d %s: size: %u secteurs DVDOpenFile failed errno: %d %s: vts: %d size: %u secteurs Copie des menus vob%2d (%d secteurs) %s: returning next vobu at sector: %d %s: nextvobu notfound for sector: %d %s: vobu1 sector not found %u %s: vobu2 sector not found %u %s: startSector: %u lastSector: %u vts: %d Analyse de la cellule %d (%d secteurs) Copie de la cellule %d (%d secteurs) Pas assez de place sur %s Il manque %s octets !Effacement des anciens fichiers. Le repertoire %s existe. L'effacer ?%s n'est pas un repertoire ! Veuillez l'effacer.Ajustement automatique de la qualité. 2) ESTIMATED TOTAL VIDEOSIZE: %lld 2) ESTIMATED TOTAL AUDIOSIZE: %lld 2) ESTIMATED TOTAL SUBSIZE: %lld 2) ESTIMATED TOTAL NAVSIZE: %lld Ajustement requant factor: %.2f%% Ajustement de qualité à %.2f%%. Fichier VOB trop gros (%s) ! Désirez vous continuer ?Le fichier %s existe. Le re-creer ?mkisofs -dvd-video -V "%s" -o "%s" "%s"Erreur de construction. Effacer les fichiers ?%s n'est pas un fichier ! Veuillez l'effacer.totalSectors: %d pctSectors: %d 2) ESTIMATED TOTAL SUBSIZE: %lld 2) ESTIMATED TOTAL NAVSIZE: %lld CpuBackupQualityCopyMenuCopyCellUpdateIfoUpdateVobRemapOffsetCopyEmptyPgcReadin_FindNextVobuBackupDvd{Gz?{Gz>Fixation de la structure du DVD. FsFree(%lld) GetWantedBytes(%lld) 2) ESTIMATED TOTAL VIDEOSIZE: %s 2) ESTIMATED TOTAL AUDIOSIZE: %s 2) ESTIMATED TOTAL SUBSIZE: %s 2) ESTIMATED TOTAL NAVSIZE: %s Création de la structure du DVD. Ajout de la table des matières. at %s/%s.vob%s/palette.txt0) VAPORIZE VIDEO SIZE: %s 0) VAPORIZE AUDIO SIZE: %s 0) VAPORIZE SUBP SIZE: %s 0) VAPORIZE NAV SIZE: %s THEORICAL TOTAL SIZE: %s PRATICAL TOTAL SIZE : %s 3) REMAIN VIDEOSIZE: %s 3) REMAIN AUDIOSIZE: %s 3) REMAIN SUBSIZE: %s 3) REMAIN NAVSIZE: %s 3) REMAIN DVDSIZE: %s New Quality: %f +nolangntscpal480576720704352%s+%s+%sx%s%s+%s+nopanscan+%sx%s%s: (%s) CopyDvdCopyCellBuildFormatStringReadin_FindNextVobu%.5f%s: executing (%s) duree: %d Pos:%s: result= %d time=%s: format: %d %s/%s.%s%s/%s.logCréation de %s impossible !Bitrate: %dK 2>&1Détection des bandes noires crop=V:%d:%d:%d:%d%s: ARa=%f %s: PRdvd=%f %s: ARc=%f %s: ResX=%f %s: ResY=%f ffmpegCOMMANDLINE: %s Encodage mencoderEncodage passe %d Continuer en passe 2 ?Conserver le fichier %s ?ff`feeeee@feeeeefeeeeeeeexe@eDvdToAviCopyCellCropDetectionGetPictureSizesReadin_FindNextVobuExecuteMencoderExecuteFfmpegSélectionnez qu'un seule piste audio !Le fichier %s existe. L'utiliser ?mplayer -vo null -ao null -ss %d -frames %d -nosound -speed 100 -vf cropdetect %sConserver le fichier vob pour un autre encodage ?qq?UUUUUU?333333??0@>AzDBpBCD4D0DCA%s -ovc help | grep %s%s -oac help | grep %s4.7 GiOac3mpeg2none8.5 GiOmp3lamelavcaviAVI 1Go mp3-128k MPEG4 1PassAVI 1Go mp3-128k X264 1Passx264AVI 2Go AC3 MPEG4 1PasscopyAVI 2Go AC3 X264 1PassPSP 300Mofaacmpeg4mp4PSP 500Mo%s: profile %s videoCodec: %s notfound ! %s: profile %s audioCodec: %s notfound ! AVI 700Mo mp3-128k MPEG4 2Pass'%i' -o /dev/null -passlogfile '%p' -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:vhq:vbitrate=%b:vpass=1:turbo -ofps 25.0 -aspect %a -oac mp3lame -lameopts br=128:q=9:aq=9:cbr:mode=1 -vf crop=%c,scale=%x:%y'%i' -o '%o' -passlogfile '%p' -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:mbd=2:trell:vbitrate=%b:vpass=2 -ofps 25.0 -aspect %a -oac mp3lame -lameopts br=128:q=9:aq=9:cbr:mode=1 -vf crop=%c,scale=%x:%y'%i' -o '%o' -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:vhq:vbitrate=%b -ofps 25.0 -aspect %a -oac mp3lame -lameopts br=128:q=9:aq=9:cbr:mode=1 -vf crop=%c,scale=%x:%y'%i' -o '%o' -ovc x264 -x264encopts threads=%u:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:bitrate=%b -ofps 25.0 -aspect %a -oac mp3lame -lameopts br=128:q=9:aq=9:cbr:mode=1 -vf crop=%c,scale=%x:%yAVI 1.5Go mp3-128k MPEG4 1Pass'%i' -o '%o' -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:vhq:vbitrate=%b -ofps 25.0 -aspect %a -oac copy -vf crop=%c,scale=%x:%y'%i' -o '%o' -ovc x264 -x264encopts threads=%u:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:bitrate=%b -ofps 25.0 -aspect %a -oac copy -vf crop=%c,scale=%x:%y-i '%i' -y -threads %u -acodec libfaac -ab 128kb -vcodec mpeg4 -b %bkb -ar 24000 -mbd 2 -flags +4mv -trellis 2 -ac 2 -cmp 2 -subcmp 2 -s 320x240 -r 30000/1001 -f psp '%o'VerifProfileVobus: number: %d Vobus%d: (%u)=>(%u,%u) %s: nrTS=%d noPisteVideo=%d VTS: %d PGCS: %d ifo: %p nr_of_srpts=%d (nbChapter) nr_of_ptts=%d NrOfCells: %d NrCells: %d Cell%d: vts: %d start: %u end: %u size: %s selected: %d Total size: %s dvdcell.ctitle_set_nr=%d vts_ttn=%d pgcIndex=%d nbPgc=%d %s: rejected because vts %d != c->vts %d %s: (%u-%u) rejected because not in range %s: vts_pgcit->nr_of_pgci_srp=%d vts_ttn <= Ifo[title_set_nr]->vts_ptt_srpt->nr_of_srptsBuildCellsBuildCellsIsSelected%s: demux error! %02x %02x %02x (should be 0x000001) Erreur de lecture ! Ignorer les erreurs ?%s: bad streamid 0x%x %s: bad sector: %d %06x ,%02lld:%02lld:%02lld.%03lldmpeg1lpcmsdds dtsVerifNavPackMyDVDRead1Block  @*  F* K* Q* 9@Q=@%s: langCode(%s) unknown! InconnuLoading %d ifos %s: seek error %d %s: read error %d Not SpecifiedaaAfarabAbkhazianafAfrikaansAmharicArabicAssameseAymaraazAzerbaijaniBashkirbeByelorussianbgBulgarianbhBihariBislamabnBengali; BanglaboTibetanbrBretoncaCatalancoCorsicancscyWelshDanskdedzBhutaniEsperantoEspanoleuBasquefaPersianfiSuomifjFijiFaroeseFrancaisfyFrisiangdScots GaelicglGalicianGuaraniGujaratihaHausaheHebrewHindihrHrvatskihuMagyarhyArmenianInterlinguaidIndonesianieInterlingueInupiakIslenskaItalianoiuInuktitutiwjaJapaneseYiddishjwJavaneseGeorgiankkKazakhklGreenlandickmCambodianknKannadakoKoreanksKashmirikuKurdishkyKirghizLatinlnLingalaloLaothianLithuanianlvLatvian, LettishmgMalagasyMaorimkMacedonianMalayalammnMongolianMoldavianmrMarathimsMalaymtMaltesemyBurmeseNauruNepalinlNederlandsNorskOccitanomOromoOriyapaPunjabiplPolishPashto, PushtoPortuguesquQuechuarmRhaeto-RomancernKirundiroRomanianRussianrwKinyarwandaSanskritsdSindhisgSanghoSerbo-CroatiansiSinhaleseSlovakSlovenianSamoansnShonaSomalisqAlbaniansrSerbianSiswatiSesothoSundanesesvSvenskaswSwahiliTamilTelugutgTajikthThaiTigrinyatkTurkmentlTagalogtnSetswanaTongatrTurkishTsongaTatartwTwiugUighurUkrainianUrduuzUzbekVietnamesevoVolapukwoWolofxhXhosayiyoYorubazaZhuangzhChinesezuZuluxxUnknown+ + ++ .+ 3+ 6+ @+ C+  . M+ 0+ U+ @8 \+ 4. e+ l+ o+ h0 {+ + + + + + + . + + + + + + + + + + + +  + + w- + ,  ,  , 7 . )  s , e ,  @ #, &, -, 0, 8, ;, A, D, % I,  Q, Z, ], / n, e, h, u, x,  , / , , , , , / , , , , , , ,  , , , , , / ,  , W, , / - - - - ,  - #- F, ,- 4- 7- - @- I- L- S- V- b- e- o- r- z- }- - - - - - - - - - - - -  - - - - - >, - - -  .  . . |. . #. &. .. 1. 7. :. B. E. / M. S6 S. Z. ].  - h.  n. v. y. ʆ . . . . . ` . Ӭ . . . . . . . . . P. . . . [0 . /  / / / V8 / */ -/ , 7/  >/ q H/ O/ R/ M X/ _/ b/ k/ n/ q! v/  ~/ A / / / / / 9 / Ó / / / / / , / / / / / / / . / / / R* 0 F 0  0 0 0 0 I0 0 0 (0 -0 00  60 A0 D0 L0 O0 U0 X0 ^0 ,- a0 d0 k0 n0 u0 x0 0 0 0 0 0 DvdLangCode2StringGetDVDTitle/apps/dvd95/config/tracemkisofsmkisofs manquant !Le fichier %s n'existe pas !/apps/dvd95/config/main-sx/apps/dvd95/config/main-sy/apps/dvd95/config/main-px/apps/dvd95/config/main-py/apps/dvd95/config/main-max/apps/dvd95/config/soundgconfig.cvlcgxinekaffeineProfile %s = %d Les repertoires temporaire et iso doivent etre differents !Le repertoire %s n'existe pas !SaveConfigLoadConfigPremière phase terminée (%d)alerteAlertefixed5text2hseparator2Okalerte_okalerte_cancelpatientInformationsfixed1avancement.c%2.2d:%2.2d:%2.2d%d%% (%s restant)Total %d%% a %.2fx/tmp/dvd95.ppmAvancementUi2AvancementUiNewStep$tIaEMbP?MbPA`"5A @N@?Y@%02dh%02dm%02dsPATH%.2f gigas%.2f megas%.2f kilos-c/bin/sh/dev/hd%c/dev/sr%d/dev/loop%d05:%d h %d m %d s%d m0 m %d s/usr/share/sounds/error.wav/usr/share/sounds/info.wav/usr/share/sounds/k3b_error1.wav/usr/share/sounds/k3b_success1.wav%s: no pgci_ut !!!! /VIDEO_TS/VTS_%02d_0.BUPUpdatePGCI_UT%s: Fatal: %s: Warning: Write buffer overflowwrite to stdout: %sPremature EOFVaporize: dynF=%d factor=%f Info: Total bytes read: %llu ##BUG: unread char %d ##BUG; unwrite char %d %lluBad pack start code at %llu: %08lx Bad pack start code at %llu: %08lxNot an MPEG2 program stream pack at %lluNon-zero pack stuffing length at %llu: %d Bad video packet start code at %llu: %08lxNot an MPEG2 video packet at %lluFirst video packet in sequence starting at %llu misses PTS or DTS, flags=%02xBad padding packet start code at %llu: %08x vid_packet_length: %d pad_packet_length: %dBad video packet length at %llu: vpl=%d ppl=%dUnknown private stream 1 type at %llu: %02xBad padding packet length at %llu: %dEncountered stream ID %02x at %llu, probably bad MPEG2 program streamReallocation of video buffers failed: %sInfo: Target video ES vaporization factor: %.3f wanted vap_fact: %f Bad format of injections file: %sNew Requant factor Corrected: %f Failed creating injections file: %s: %sFailed writing injections file: %s: %sInfo: Total bytes written: %llu Info: Total sequence headers in video stream: %d Info: Total navigation packs (system headers/PCI/DSI): %d Info: Total bytes vaporized in audio and subpicture streams: %llu (%.2f%%) Info: Total bytes vaporized in video stream: %llu (%.2f%%) Info: Total padding bytes in video stream: %llu (%.2f%%) Info: Total vaporization factor: %.3f Info: Average actual video ES vaporization factor: %.3f VideoInputSize: %lld VideoOutputSize: %lld realFactor: %f Correction: %f 83P873777777773333333333333333333333334(@:??:P?P?P?P?P?P?P?P?::::::::::::::::::::::::<LHLILHKKKKKKKKHHHHHHHHHHHHHHHHHHHHHHHHzJvamps D?_E_%s: fact_x=%f orim2vsize=%lld requant_factorchange  "$&(*,.02468:<>@HPX`hp  !!""##$$$$$$$$%%%%%%%%&&&&&&&&''''''''(((((((()))))))) , L l      , L l      ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll ,Ll , L l      !,!L!l!!!!! ","L"l""""" #,#L#l##### $,$L$l$$$$$ %,%L%l%%%%% &,&L&l&&&&& ','L'l''''' (,(L(l((((( ),)L)l))))) *,*L*l***** +,+L+l+++++ ,,,L,l,,,,, -,-L-l----- .,.L.l..... /,/L/l///// 0,0L0l00000 1,1L1l11111 2,2L2l22222 3,3L3l33333 4,4L4l44444 5,5L5l55555 6,6L6l66666 7,7L7l77777 8,8L8l88888 9,9L9l99999 :,:L:l::::: ;,;L;l;;;;; <,<L<l<<<<< =,=L=l===== >,>L>l>>>>> ?,?L?l????? @,@L@l@@@@@ A,ALAlAAAAA B,BLBlBBBBB C,CLClCCCCC D,DLDlDDDDD E,ELElEEEEE F,FLFlFFFFF G,GLGlGGGGG H,HLHlHHHHH I,ILIlIIIII J,JLJlJJJJJ K,KLKlKKKKK L,LLLlLLLLL M,MLMlMMMMM N,NLNlNNNNN O,OLOlOOOOO P,PLPlPPPPP Q,QLQlQQQQQ R,RLRlRRRRR S,SLSlSSSSS T,TLTlTTTTT U,ULUlUUUUU V,VLVlVVVVV W,WLWlWWWWW X,XLXlXXXXX Y,YLYlYYYYY Z,ZLZlZZZZZ [,[L[l[[[[[ \,\L\l\\\\\ ],]L]l]]]]] ^,^L^l^^^^^ _,_L_l_____ `,`L`l````` a,aLalaaaaa b,bLblbbbbb c,cLclccccc d,dLdlddddd e,eLeleeeee f,fLflfffff g,gLglggggg h,hLhlhhhhh i,iLiliiiii j,jLjljjjjj k,kLklkkkkk l,lLlllllll m,mLmlmmmmm n,nLnlnnnnn o,oLolooooo p,pLplppppp q,qLqlqqqqq r,rLrlrrrrr s,sLslsssss t,tLtlttttt u,uLuluuuuu v,vLvlvvvvv w,wLwlww                                                                                                      $(,048@HPX`hp          AAAA                                                                      ('&%$#"!         {|#"y'   &!         %      &        x z !%$                $          ' #"              AAAA                  $(,048@HPX`hp" ! ??$$>>>>====88884444,,,,((((0000            <<<<<<<<<<<<<<<< '  ; 7 /  ::66..9955--&&%%++33**22))11  ##           # " !                             @A@HBpA4B?333333?433333ӿffffffֿffffff?AuthenticAMDCentaurHaulsCyrixInsteadcputest.c sse3 sse2 sse 3dnowext 3dnow mmxext mmx 64asm 32asm Csse3 sse2 sse 3dnowext 3dnow mmxext mmx asm (%s) available multimedia extensions:libc-memmovetc_memcpy: using %s for memcpy ##mpeg2_parse: %d wbP6 %d %d 255 ##weird pack header ##too much stuffing A CXAXAXAXAXAAAXAA ##looks like a video stream, not system stream %s: sector %u is bad! MAX_BAD_SECTORS: too low badsector.txt%d BadSectors loaded IsBadSectorERR: Attempting to define too many subpicture streams for this PGC group ERR: Attempting to define too many audio streams for this PGC group ERR: Already defined video characteristics for this PGC group ERR: Cannot have titles in a VMGM ERR: Can only specify under ERR: Can only define one VMGM ERR: Must specify working directory ERR: Unknown program cmd '%s' ERR: Unknown chapter cmd '%s' ERR1: Cannot parse chapter timestamp '%s' i=%d *last=%d ERR2: Cannot parse chapter timestamp '%s' s[%d]=%d ERR: Unknown jumppad cmd '%s' ERR: Cannot open palette file '%s' DVDAuthor::dvdauthor, version 0.6.11. Build options: gnugetopt iconv freetype Send bugs to syntax: dvdauthor [-o VTSBASE] [options] VOBFILE(s) -x XMLFILE where XMLFILE is a configuration file describing the structure of the DVD to create. If you use a config file, then you do not need to specify any other options, except -o. --video=VOPTS or -v VOPTS where VOPTS is a plus (+) separated list of video options. dvdauthor will try to infer any unspecified options. pal, ntsc, 4:3, 16:9, 720xfull, 720x576, 720x480, 704xfull, 704x576, 704x480, 352xfull, 352x576, 352x480, 352xhalf, 352x288, 352x240, nopanscan, noletterbox. Default is ntsc, 4:3, 720xfull --audio=AOPTS or -a AOPTS where AOPTS is a plus (+) separated list of options for an audio track, with each track separated by a comma (,). For example -a ac3+en,mp2+de specifies two audio tracks: the first is an English track encoded in AC3, the second is a German track encoded using MPEG-1 layer 2 compression. ac3, mp2, pcm, dts, 16bps, 20bps, 24bps, drc, surround, nolang, 1ch, 2ch, 3ch, 4ch, 5ch, 6ch, 7ch, 8ch, and any two letter ISO 639 language abbreviation. Default is 1 track, mp2, 20bps, nolang, 2ch. 'ac3' implies drc, 6ch. --subpictures=SOPTS or -s SOPTS where SOPTS is a plus (+) separated list of options for a subpicture track, with each track separated by a comma (,). nolang and any two letter language abbreviation (see -a) Default is no subpicture tracks. --palette[=FILE] or -p FILE or -P where FILE specifies where to get the subpicture palette. Settable per title and per menu. If the filename ends in .rgb (case insensitive) then it is assumed to be RGB, otherwise it is YUV. Entries should be 6 hexadecimal digits. FILE defaults to xste-palette.dat --file=FILE or -f FILE or FILE where FILE is either a file, a pipe, or a shell command ending in | which supplies an MPEG-2 system stream with VOB sectors inserted in the appropriate places (using mplex -f 8 to generate) --chapter[s][=COPTS] or -c COPTS or -C where COPTS is a comma (,) separated list of chapter markers. Each marker is of the form [[h:]mm:]ss[.frac] and is relative to the SCR of the next file listed (independent of any timestamp transposing that occurs within dvdauthor). The chapter markers ONLY apply to the next file listed. COPTS defaults to 0 --menu or -m creates a menu. --title or -t creates a title. --toc or -T creates the table of contents file instead of a titleset. If this option is used, it should be listed first, and you may not specify any titles. --entry=EOPTS or -e EOPTS makes the current menu the default for certain circumstances. EOPTS is a comma separated list of any of: for TOC menus: title for VTS menus: root, ptt, audio, subtitle, angle --button or -b DEST specifies what command to issue for each button. See --instructions or -i for a description of DEST. --instructions or -i post=DEST executes the DEST instructions at the end of the title. --fpc or -F CMD sets the commands to be executed when the disc is first inserted. --jumppad or -j enables the creation of jumppads, which allow greater flexibility in choosing jump/call desinations. --help or -h displays this screen. ERR: Cannot specify XML config file after using command line options ERR: TOC (-T) option must come first because I am a lazy programmer. ERR: Audio option '%s' on track %d overrides previous option ERR: Video option '%s' overrides previous option ERR: Subpicture option '%s' on track %d overrides previous option Unknown instruction block: %s ERR: You may only specify FPC commands on the VMGM ERR: FPC commands already specified ERR: Cannot specify an entry for a title. ERR: cannot list -c twice for one file. ERR: getopt returned bad code %d ERR: Chapters defined without a file source. ERR: bad version of getopt; please precede all sources with '-f' ERR: Titles already defined ERR: Already defined WORKDIRdvdcli.ccell_starttime>=0vobbasic!=1rb.rgb%xERR: No arguments! -f:o:v:a:s:hc:Cp:Pmtb:Ti:e:x:ERR: TOC cannot have titles postprexste-palette.datsubpicturespalettechaptershelpbuttontocinstructionsentryfpcjumppaddvdauthortitlesetvmgmsubpicturepgccelldeststartchapterprogramnameaspectresolutionwidescreencaptionquantdolbysamplerate6x66666666666666666666666666666666666666666666666666666666666666666Í669666666666w666666666666666̍6^x6#66ϐ666q66|cell_endcell_start@BINFO: Locale=%s yesoffERR: Read premature EOF ERR: Error in parsing XML readxml.c!parser_bodyERR: %s ERR: text not allowed here ERR: Cannot set numeric locale to C! WARN: Error reading locale (%m), assuming C INFO: Converting filenames to %s ERR: Cannot generate charset conversion from UTF8 to %s ERR: Cannot convert UTF8 string '%s': %s ERR: Unable to open XML file %s ERR: Cannot match attribute '%s' in tag '%s'. Valid attributes are: ERR: Cannot match start tag '%s'. Valid tags are: ERR: Unknown XML node type %d :l:::::::::readxmlHOME%s/.dvdauthorrcERR: Multiple definitions for entry %s, 2nd occurance in PGC #%d ERR: Entry %s is not allowed for menu type %s WARN: Source has no cells (%s) in PGC %d WARN: First cell is not marked as a chapter in PGC %d, setting chapter flag WARN: attempt to update %s from %s to %s; skipping ERR: Defined entry '%s' multiple times for the same PGC ERR: Menu language '%s' is not two letters. ERR: Limit of up to 36 buttons WARN: video mpeg version was not autodetected WARN: video resolution was not autodetected WARN: video format was not autodetected WARN: aspect ratio was not autodetected WARN: audio stream %d was not autodetected INFO: Generating %s with the following video attributes: INFO: Audio ch %d format: %s/%s, %s %sWARN: Audio ch %d is not used! WARN: Conflict in colormap between PGC %d and %d WARN: The use of jumppad requires a menu; creating a dummy ENGLISH menu INFO: dvdauthor creating table of contents ERR: Two different names for the same titleset: %s and %s ERR: Cannot have titleset #0 (%s) ERR: Titleset #%d (%s) does not immediately follow the last titleset ERR: No .IFO files to process WARN: not a valid DVD frame rate: %s ERR: Cannot parse subpicture option '%s' on track %d ERR: Cannot parse audio option '%s' ERR: Cannot parse video option '%s' 24000.0/1001.0 (NTSC 3:2 pulldown converted FILM)25.0 (PAL/SECAM VIDEO / converted FILM)60000.0/1001.0 (NTSC FIELD RATE)ERR: Unknown entry '%s' dvdauthor.cindex>=0 && index<16!p->posti!p->preiaudio quantizationnumber of channelssampling rateINFO: MPEG version: %s INFO: TV standard: %s INFO: Aspect ratio: %s INFO: Resolution: %dx%d , surround, '%c%c'INFO: dvdauthor creating VTS %s/VIDEO_TS%s/AUDIO_TSERR: no titles defined %s/VIDEO_TS/VTS_%02d_0.IFOPicking VTS %02d%s/VIDEO_TS/VTS_%02dVTS_INFO: Scanning %s ERR: cannot open %s: %s ERR: Too many VTSs INFO: Creating menu for TOC %s/VIDEO_TS.VOB%s/VIDEO_TS.IFO%s/VIDEO_TS.BUPframe ratesubpicture languageaudio formataudio languagempeg formattv formataspect ratio16:9 disallowfield1field2highrootanglepttVTSVTSMVMGM16bps20bps24bpsdrc1ch2ch3ch4ch5ch6ch7ch8ch48khz96khzmp2noletterboxnopanscan720xfull704xfull352xfull352xhalf24.0 (NATIVE FILM)30000.0/1001.0 (NTSC VIDEO)30.050.0 (PAL FIELD RATE)60.0pgc_set_colorpgc_set_postpgc_set_pre________2<<ȯGERR: Parse error '%s' on token '%s' ERR: Parser failed on code '%s'. ERR: Nothing parsed from '%s' ERR: Expression is too complicated, ran out of registers ERR: Unknown op in compileop: %d ERR: Cannot jump to a menu from a title, use 'call' instead ERR: Cannot specify chapter when jumping to another menu ERR: Cannot omit menu/title if specifying vmgm/titleset ERR: VMGM must be specified with FPC ERR: That form of jumping is not allowed ERR: Cannot jump to a chapter from a FPC ERR: Menus do not have chapters ERR: Cannot jump to %s %d, only %d exist ERR: Cannot find PGC with entry %s ERR: Cannot jump to menu PGC #%d, only %d exist ERR: Cannot jump to title #%d, only %d exist ERR: Cannot jump to chapter %d of title %d, only %d exist ERR: Cannot 'call' a menu from another menu, use 'jump' instead ERR: Cannot 'call' another title, use 'jump' instead ERR: Cannot 'call' a chatper within a menu ERR: Cannot call to a menu in another titleset ERR: Cannot call to a specific menu PGC, only an entry ERR: Unsupported VM opcode %d ERR: Unhandled applyif scenario (%x), file bug OD9.# DD,#\ ERR: Unknown bool op: %d ERR: Cannot set SPRM %d ERR: Nop jump statement bad buffer in yy_scan_bytes()flex scanner jammedinput in flex scanner failedout of dynamic memory in yy_scan_buffer()out of dynamic memory in yy_scan_bytes()out of dynamic memory in yy_create_buffer()ERR: Can only access g0-g12 (%s) ERR: Can only access s0-s23 (%s) fatal flex scanner internal error--end of buffer missedfatal error - scanner input buffer overflowfatal flex scanner internal error--no action found9))&& &%I*(9*)*** *)Y*y*)))i*$(>%3%k))u)))))&),%"#)Y%I%&&%%%,%%%y%i%i&Y&I&9&*>%Y*y*i*$&&3%&&y&)(%$((%%)&)    !"#$%&'()*+,-FD :&'>?$"#%@;7!5C)CCCCCCCCCCCCCCCCCC<(= 3.8/,*+-@624C1CCCCCCCC CCA CCCCCCCBCCCC09CCCCCCCCC CCCCCCCCCCCCC CCCCCC CCCCCCCCC,.,o s({lz&m)6tpm5I/uelktb`invcaZ^XX[neS^SXYNUTOXKHKEQCCBIGMCB<6;?@C:AD?0004498)K ## !$%*;!;$,,%~}y*wtsrponmljhgedcba`_^]YXWVUTSRQOMJFEDBA@?>=<5('&"    !"#$%&'()*+,,,,/;>FKQ?R<@0ANBGSCULZ\OD]T,,9HV[~}|{zyxwvutsrqponUmlkjihgFfedcba`_^5YXWPMJIE=:87654321.-syntax error, unexpected , expecting or syntax errorparser stack overflow$end$undefinedNUM_TOKG_TOKS_TOKID_TOKANGLE_TOKAUDIO_TOKBUTTON_TOKCALL_TOKCELL_TOKCHAPTER_TOKCLOSEBRACE_TOKCLOSEPAREN_TOKELSE_TOKENTRY_TOKEXIT_TOKFPC_TOKIF_TOKJUMP_TOKMENU_TOKOPENBRACE_TOKOPENPAREN_TOKPROGRAM_TOKPTT_TOKRESUME_TOKROOT_TOKSUBTITLE_TOKTITLESET_TOKVMGM_TOKBOR_TOKLOR_TOKXOR_TOK_OR_TOKBAND_TOKLAND_TOK_AND_TOKNOT_TOKNE_TOKEQ_TOKLT_TOKGT_TOKGE_TOKSUB_TOKADD_TOKMOD_TOKDIV_TOKMUL_TOKADDSET_TOKSUBSET_TOKMULSET_TOKDIVSET_TOKMODSET_TOKANDSET_TOKXORSET_TOKSEMICOLON_TOKERROR_TOK$acceptfinalparsestatementsjtsljtmljcljumpstatementresumelcallstatementregregornumexpressionboolexprsetstatementifstatementifelsestatement4449<99p:^:9P:9; ;99:x; @??????999;;;99 :9i=====c=D=%==<<:<<|<?>>>>{>^>:>U?5?:;u??::$;9:##)#Z1MpNPH         # hQpp5CQ v{jf70                #ppppEKG666111111((  !"#$%&'()*+,-./0123456789:;<="#$%&'()* +<2 23<< "$&' +OPQRSTUVWXYZ[\]^_`abc/0123123&'"$ &'!#$% '_)*+,-./0123!#$%<' /0123<<< :456789:;!(#$%!'#$%'/0123/0123?@ABCDEF_GLMN-qr.Hg`/a!bcs tuv|}~{+zZ[\]^\]^bc,8`9a;bcOzPQRJSTUVWXYZ[\]^IOwPQRdS1"Z[\]^ex:f2 #$%&'()*O3PQROSPQRSZ[\]^Z[\]^hOiPQROSPQRSZ[\]^Z[\]^jOkPQROSPQRSZ[\]^Z[\]^lOmPQROSPQRSZ[\]^Z[\]^1nOoPQRS@!>?@@AAAAAAABBBCCCCCCCCCCCDDEEEFFGHHHHHHIIJJJJJJJJJJJJKKKKKKKKKKKKLLLLLLLLLMNN|gL 0Ky4567dvdifo.cp<=(16*2048)p<=2048ERR: in FPC i<=128%s_0.IFO%s_0.BUPERR: FPC can ONLY contain prei commands, nothing else TocGenCreate_TT_SRPTCreateCallAdrCreate_PTT_SRPT%d.%03ddvdvob.c(vcid&255)==(w?v->numcells:1)WARN: unknown frame rate %d %dx%d%s_%d.VOB ERR: Error opening %s: %s STAT: Processing %s... ERR: Error writing data ERR: Menu VOB reached 1gb dvdauthor-dataVOBU %d at %dMB, %d PGCS%dch%dkhzWARN: Previous sector: - WARN: Current sector: p>=s->vi[i-1].sectpts[1]p>vi->sectpts[0] INFO: Video pts = .. INFO: Audio[%d] pts = ??WARN: Transition from non-audio to audio VOB; assuming discontinuity. WARN: Do not know how to compute the audio gap, assuming discontinuity. WARN: unknown mpeg1 aspect ratio %d WARN: unknown mpeg2 aspect ratio %d WARN: GOP is not closed on cell %d of source %s of pgc %d ERR: VOB %s has too many cells (%d, 256 allowed) ERR: PGC %d has too many programs (%d, 256 allowed) WARN: audio sector out of range: %d (vobu #%d, pts Fixing VOBU at %dMB (%d/%d, %d%%)STAT: fixed %d VOBUS ERR: Error while reading: %s WARN: Partial sector read (%d bytes); discarding data. ERR: dvd info packet is version %d ERR: color map full, unable to allocate new colors. ERR: Cannot find button '%s' as referenced by the subtitle ERR: dvd info packet command within subtitle: %d ERR: unknown dvd info packet type: %d WARN: SCR reset. backoffs=%lld lastscr=%lld WARN: SCR reset. New back offset = %lld ERR: SCR moves backwards, remultiplex input. (%lld < %lld) WARN: System header found, but PCI/DSI information is not where expected (make sure your system header is 18 bytes!) WARN: Skipping sector, waiting for first VOBU... WARN: Unknown AC3 sample rate: %d WARN: Invalid audio channel %d WARN: Discontinuity in audio channel %d; please remultiplex input. WARN: Audio pts for channel %d moves backwards; please remultiplex input. ERR: procremap encountered unknown subtitle command: %d ERR: Error reading from file: %s ERR: Error reading from pipe: %s WARN: Video PTS does not line up on a multiple of a field. WARN: Cannot detect pts for VOBU if there is no audio or video WARN: Using SCR instead. ERR: Cannot infer pts for VOBU if there is no audio or video and it is the ERR: first VOBU. hM/ û<ֶ J <xgetcellvideoptsgetcellaudioptsFindVobus 08@P`p@procremapERR: Too many pre/post/cell commands. Reduce complexity and/or disable jumppad. ERR: in %s pgc %d, button %s ERR: Cell command can only compile to one VM instruction. ERR: in %s pgc %d,
ERR:  in %s pgc %d, 
dvdpgc.ccd-(buf+d)-8<=128*8ph<=bigwritebuflenCreatePGCgenpgc;<142TzR|1AB
E<p2AB
E



ɪ
Ϫ
ժ
ܪ






(
7
@
J
S
[
b
k
t





w


ū
ҫ
۫








%
,
ߪ
3
:
A
I
Q
Y
a
i
t







Ĭ
ά
֬

^







"
+
6
?
L
X



A
s





%5CTbz$8L]/Jr{
	o@h

 
HTooor`
"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRbr"2BRb
 

 
 
 
$
$
B

 

 
 
 
$
$
B
!
)\(?+ 
 
b
"
"
 
?!
333333?> 
 
b
#
$
 
?!
?> 
;!
b
x$
$
 
?`%
333333?] 
 
b
#
$
 
?@!
333333?}X!
 
b
%
$
 
?]!
?}X!
;!
b
&
$
 
?t!
{Gz?]~!
!
@
&
$
!
?	!
{Gz?@]~!
!
@
&
$
!
?D{{?{:
:
x{:
膻:
Ѕ{:
0?
?
?
{?
?
p{?
(?
? 
vS
aw
s
p	f
c
h
m

t
b
T
i
e
F
jÆ
Z͆
ZZֆ
pY{
WX
V	`0Z
VS
Uۆ
0U
WVb
TX]
T@`
U_l
0Ye
P_^Æ

@^Æ

`f		p^l
	^l

]l
%	z

pd

@d

b

a
%	[


]

0]

}

 }
!
|
,
`|S

`~S
4
}S
:
\S
	S

`S
@
~ۆ
	0\

`a

k
%	P{$
$


:


S
?
E
I
M
R
$
W
]
c
i
$

$
m
q
u
y
}



$


$
@*
 
$


$


$
 

F*
Q*
$

	$


$


Ŕ
Δ
$
$
ה
X




!
.shstrtab.interp.note.ABI-tag.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rel.dyn.rel.plt.init.text.fini.rodata.eh_frame_hdr.eh_frame.ctors.dtors.jcr.data.rel.ro.dynamic.got.got.plt.data.bssTThh %
!o@@+
P3hh'
 ;orrGJHoJW	K`	TTLHiX0dXoppqu	w{@	@wt 
A
A\
L
L
L 
 L@ `
`M0
OP
O0@
@V	  
`, `dvd95/debian/dvd95/usr/share/000077500000000000000000000000001140003301000160575ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/applications/000077500000000000000000000000001140003301000205455ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/applications/dvd95.desktop000066400000000000000000000003741140003301000230770ustar00rootroot00000000000000[Desktop Entry]
Name=Dvd95
Comment=DVD9 to DVD5 converter
Comment[fr]=Convertisseur DVD9 vers DVD5
Exec=dvd95
Icon=dvd95/dvd9548.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Application;AudioVideo;
X-Desktop-File-Install-Version=0.10

dvd95/debian/dvd95/usr/share/doc/000077500000000000000000000000001140003301000166245ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/doc/dvd95/000077500000000000000000000000001140003301000175575ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/doc/dvd95/README000066400000000000000000000000121140003301000204300ustar00rootroot00000000000000TODO ;-)

dvd95/debian/dvd95/usr/share/doc/dvd95/README.Debian000066400000000000000000000002501140003301000216150ustar00rootroot00000000000000dvd95 for Debian
----------------



 -- alpha User   Mon, 26 Jan 2009 18:24:02 +0100
dvd95/debian/dvd95/usr/share/doc/dvd95/TODO000066400000000000000000000025411140003301000202510ustar00rootroot00000000000000----**************** VERIFIER LE SCANNER DE STRUCTURE DVD

- Prendre en compte le cut du generique dans DefaultRequantFactor
- Memorisation taille et position
- TESTER gtk urgency hint au lien du son gtk_window_set_urgency_hint

=============================================
	DVD BACKUP
=============================================
*********** Tester avec d'autre DVD


==> Requant des video dans les menus ===> CF K9COPY
==> Update des vobs 
	- Ajouter long vobPos a la structure vobu
	- AddVobus: vobu->vobPos = OutSize;
	Gerer dans UpdateVob => On peut gagner qq minutes ?

=============================================
	DVD COPY
=============================================
==> libdvdauthor : Reste a fermer les FILE * mais la ????
=============================================
	DVD 2 AVI
=============================================
==> TODO
transcode -i /data/bourne.iso -y xvid4 -V -Z 512x288 -w 910 -T 1,1 -a 1 -o bourne.avi
a 1 => audio chanel
-T 1,1 : video 1 chapter 1
-w 910: bitrate
-Z : resize

=============================================
	OPTIMS
=============================================
==> Regarder le resultat du oprofile (penser au multi-cpu)
==> Instrumenter les memcpy dans vaporise.c
==> Essayer d'ameliorer le BitEngine de requant.c => putbits

=============================================
	OTHER
=============================================

dvd95/debian/dvd95/usr/share/doc/dvd95/copyright000066400000000000000000000012121140003301000215060ustar00rootroot00000000000000This package was debianized by alpha User  on
Mon, 26 Jan 2009 18:24:02 +0100.

It was downloaded from 

Upstream Author(s):

    
    

Copyright:

    
    

License:

    

The Debian packaging is (C) 2009, alpha User  and
is licensed under the GPL, see `/usr/share/common-licenses/GPL'.

# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
dvd95/debian/dvd95/usr/share/locale/000077500000000000000000000000001140003301000173165ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/cs/000077500000000000000000000000001140003301000177235ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/cs/LC_MESSAGES/000077500000000000000000000000001140003301000215105ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/cs/LC_MESSAGES/dvd95.mo000066400000000000000000000175761140003301000230200ustar00rootroot00000000000000l|0	
1	
<	
G	R	U	g	-j	0				o	R
Q
*
!*'L"t'
%
,
3
	F
P
e

-


%
%@^"t%
!	+.Et)6(!5W^o
#$8X$n"<7Vh!8D]fv#%%+%8>QBk			"%-6=IDgDu;!=	[e"{#5(Nw"$ $@T
t
")+F_
f;q	%	/9?*Fq"
	G'o
$8Hck}($CIgI
;=%\i2'$EVLWH<]9 XK*h,e8	f[G"B7TQlRM
F#.d:`+6(D&1SCg>POZ^3)4N!j-@0Ykab_c?5A/JU%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours

Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté

Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé

La conversion s'est déroulée avec succès.Extraction du contenu terminée

Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières.
Ajustement automatique de la qualité.
Ajustement de qualité à %.2f%%.
AlerteAnalyse de %d cellules.
Analyse de la cellule %d (%d secteurs)
Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO.
Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules.
Copie de la cellule %d (%d secteurs)
Copie des menus vob%2d (%d secteurs)
Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD.
Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DuréeDvd95DétailsEcran des propiétésEffacement des anciens fichiers.
Effacement des fichiers.
Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :ExtFichier ISOFichier VOB trop gros (%s) !
Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD.
FormatGarder les menusGravage sur DVD.
Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents  !Mise à jours du vob %d-%d
Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% a %.2fxVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !totemtranslator-creditsÉvaluation de qualité :Project-Id-Version: dvd95
Report-Msgid-Bugs-To: 
POT-Creation-Date: 2009-01-23 20:56+0100
PO-Revision-Date: 2007-04-10 21:35+0100
Last-Translator: jf.coulon 
Language-Team: 
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: Czech
%.2f giga%.2f kilo%.2f mega%d%d%% (%s zbývá)%s%s není soubor ! Prosím smažte.%s není adresář ! Prosím smažte./dev/dvd4.7 GB8.5 GBAnalyzuji

Prosím počkejte na analýzu DVD struktury.Médium nebylo nalezeno

Prosím vložte video DVD, nebo určete ISO soubor s image. Kódování dokončeno

Konverze byla úspěšná.Extrakce dokončena

Před vytvořením ISO image nebo vypálením si můžete přehrát výsledek.AudioVytvářecí parametryTitulkySystémVideoPřidávám obsah.
Nastavení automatické kvality.
Nastavuji kvalitu na %.2f%%.
VýstrahaAnalyzuji %d buněk.
Analyzuji buňku %d (%d sektorů)
Probíhá analýza.Médium nebylo nalezenoSpočítat nejlepší kvalituKanályZrušitKapacita DVD :KapitolyVyberte ISO souborVčetně DVD menuVytvářím ISO soubor.
Konvertovat s dynamickou kvalitou obrazuKonvertovat DVDKopíruji %d buněk.
Kopíruji buňku %d (%d sektorů)
Kopíruji menu vob%2d (%d sektorů)
Nelze nalézt soubor pixmapy: %sOdebrat závěrečné titulkyVytvářím DVD strukturu.
Vytvořit ISO imageVytvořit ISO image po konverziDVD 9 na 5DélkaDvd95DetailyVlastnostiMažu staré soubory.
Mažu soubory.
Chyba sestavení. Smazat soubory ?Chyba konverze ........Chyba čtení ! Ignorovat chyby čtení ?Umístění ISO souborů :Dočasné úložiště :přípISO souborVOB soubor je příliš velký (%s) !
Přesto pokračovat ?ISO souboryOpravuji DVD strukturu.
FormátVčetně DVD menuVypalování DVD.
Vypálit DVDVypálit DVD po konverziNeznámýInformaceJazykJazykySoubor %s již existuje. Vytvořit znovu ?Soubor %s neexistuje !Adresář %s neexistuje !Adresář %s neexistuje !Přehrávač multimédií :Chyba při čtení DVD struktury !Přehrát DVDChyba při čtení titulu %s!Dočasný adresář a adresář pro ISO soubory musí být rozdílné !Aktualizuji vob %d-%d
Přeskočit poslední kapitoluTrace úroveň :Název DVD a ISO souboruBudižStopaPrvní fáze dokončenaVlastnostiDVD zařízení :Dynamická kvalitaVyberte audio stopyVyberte titulkyVyberte stopu pro konverziTitulkyVyberte adresářHotovoNázev DVD :Celkem %d%% a %.2fxProsím spusťte test kvalityProsím vyberte audio stopuProsím vyberte video stopuGNOME aplikace pro konverzi DVD9 na DVD5mkisofs není nainstalováno !totemDušan Hokův Spočítaná kvalita :dvd95/debian/dvd95/usr/share/locale/de/000077500000000000000000000000001140003301000177065ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/de/LC_MESSAGES/000077500000000000000000000000001140003301000214735ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/de/LC_MESSAGES/dvd95.mo000066400000000000000000000226551140003301000227750ustar00rootroot00000000000000nP	
Q	
\	
g	r	u		-	0				o
r
Q
J,
<!J'l"'
'
E
L
S
	f
p


-


%%:`~"%

!. )>hy6!

-;Zbov#~$$?"N<q714:Tav!	"#5%Y%+A bjrz}$$ZQK$&"< _,$	,)6`h{#)'$@ew/
fX ` w  $   !!0!	4!,>!	k!u!!!!!'!	!
!"
"/"F"0d""""""?"?#/W##9####
#
#$%$9$ L$
m$x$$
$$)$$$9%'R%z%%%%J
3>%]j2'$FWMXI=^:n YL*i,f9	g\<"C8URmSN
HG#.e;a+7(E&1TDh?QP[_4)5O!k-A0Zlbc`d@6B/KV%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours

Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté

Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé

La conversion s'est déroulée avec succès.Extraction du contenu terminée

Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières.
Ajustement automatique de la qualité.
Ajustement de qualité à %.2f%%.
AlerteAnalyse de %d cellules.
Analyse de la cellule %d (%d secteurs)
Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO.
Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules.
Copie de la cellule %d (%d secteurs)
Copie des menus vob%2d (%d secteurs)
Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD.
Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DuréeDvd95Dvd95 is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Dvd95 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Dvd95;
if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 2111-1307  USA
DétailsEcran des propiétésEffacement des anciens fichiers.
Effacement des fichiers.
Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :ExtFichier ISOFichier VOB trop gros (%s) !
Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD.
FormatGarder les menusGravage sur DVD.
Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents  !Mise à jours du vob %d-%d
Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% a %.2fxVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !totemtranslator-creditsÉvaluation de qualité :ÉvaluerProject-Id-Version: DVD95 1.2p1
Report-Msgid-Bugs-To: 
POT-Creation-Date: 2009-01-23 20:56+0100
PO-Revision-Date: 2007-06-06 01:22+0100
Last-Translator: Stefan Nagy 
Language-Team: 
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: German
%.2f GB%.2f KB%.2f MB%d%d%% (%s verbleiben)%s%s ist keine Datei! Bitte entfernen.%s ist kein Ordner! Bitte entfernen./dev/dvd4,7 GB8,5 GBDVD wird analysiert

Bitte warten. Die Struktur der DVD wird untersucht.DVD kann nicht gefunden werden

Bitte lege eine Video-DVD in das Laufwerk oder gib das zu verwendende ISO-Abbild an.Kodierung beendet

Die Konvertierung verlief erfolgreich.Extraktion des Inhalts beendet

Vor der Erstellung des ISO-Abbildes bzw. dem Brennen kannst du dir eine Vorschau des Resultats ansehen.AudioOptionenUntertitelSystemeinstellungenVideoInhaltsverzeichnis wird hinzugefügt.
Automatische Qualitätsanpassung.
Qualitätsanpassung auf %.2f%%.
WarnungAnalysiere %d Video-Dateien.
Analysiere Video-Datei %d (%d Datenblöcke)
DVD wird analysiertDVD kann nicht gefunden werdenDie beste Qualität berechnenKanäleAbbrechenSpeicherkapazität des Zieldatenträgers:KapitelISO-Abbild öffnenDVD-Menüs erhaltenErzeuge ISO-Abbild.
Konvertierung mit variabler BitrateDVD konvertierenKopiere %d Dateien.
Kopiere Video-Datei %d (%d Datenblöcke)
Kopiere Menü VOB%2d (%d Datenblöcke)
Konnte Pixmap-Datei nicht finden: %sAbspann entfernenErstellung der DVD-Struktur.
ISO-Abbild erstellenNach der Konvertierung ein ISO-Abbild erstellenDVD 9 to 5DauerDVD95DVD95 ist Freie Software; Sie dürfen sie weitergeben und/oder
verändern unter den Bedingungen der GNU General Public License,
Version 2 oder (wenn Sie wollen) einer neueren Version.
DVD95 wird in der Hoffnung verteilt, dass es nützlich ist,
aber OHNE IRGENDEINE GARANTIE; besonders ohne Garantie,
dass sie für einen bestimmten Zweck geeignet ist.
Für weitere Details lesen Sie die GNU General Public License.
Sie sollten eine Kopie der GNU General Public License mit
DVD95 erhalten haben;
wenn nicht, schreiben Sie an die Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307 USA
DetailsEinstellungen anzeigenAlte Daten werden gelöscht.
Lösche Dateien.
Erstellungsfehler. Dateien löschen?Konvertierungsfehler...Lesefehler! Fehler ignorieren?Ordner für ISO-Dateien:Temporärer Ordner:ExtISO-DateiVOB-Datei zu groß (%s)!
Dennoch fortfahren?ISO-DateiFixierung der DVD-Struktur.
FormatMenüs beibehaltenBrenne DVD.
DVD brennenNach der Konvertierung eine DVD brennenUnbekanntInformationenSpracheSprachenDie Datei %s existiert bereits. Überschreiben?Die Datei %s existiert nicht!Der Ordner %s existiert bereits. Überschreiben?Der Ordner %s existiert nicht!Media PlayerStruktur nicht lesbar!DVD wiedergebenTitel %s nicht lesbar!Der temporäre Ordner darf nicht ident mit dem ISO-Ordner sein!Aktualisiere VOB %d-%d
Letztes Kapitel des Video-Titels nicht erhaltenTrace LevelDatenträgerbezeichnung bzw. Bezeichnung des ISO-AbbildesOKTitelErste Phase beendetEinstellungenDVD-Laufwerk:Dynamische QualitätsanpassungAudiospuren wählenUntertitel wählenZu konvertierenden Titel wählenUntertitelOrdner wählenBeendenFilmtitel:Insgesamt %d%% bei %.2fxBitte führe die Qualitätsberechnung ausBitte wähle eine AudiospurBitte wähle einen Video-TitelEine GNOME-Anwendung zur Konvertierung von DVD-9 zu DVD-5Kann das Programm mkisofs nicht finden!totemStefan NagyQualitätsanpassung:Evaluierungdvd95/debian/dvd95/usr/share/locale/el/000077500000000000000000000000001140003301000177165ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/el/LC_MESSAGES/000077500000000000000000000000001140003301000215035ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/el/LC_MESSAGES/dvd95.mo000066400000000000000000000230151140003301000227740ustar00rootroot00000000000000c4Lp
q
|
-0	o	|	Q
T

#6
F!T'v"'	1OV]	pz-
%
%D
j

"

%

!"D.^)6=!Jls
#$(Mm$"<73k}!+MYr{#%%+:MDg		QS67pmZ2j846O 1+<3p
(()
H4}$57F'*n%'H0AX.k!P-
_;'$SM!^1  ( 5 bD + + + /+![!y!B!}!U"6s"#":"	#
#0##T#g#!{##%#<#$1$O$V$"h$C$7$;%KC%R%*%8_S!1*M)Z4N[cQKGP&E$B6C@27>bD^aX]H=0U'O VRJLA:(+3	/FY5`T%?9\W"I,-.

<;#%.2f gigas%.2f kilos%.2f megas%d%% (%s restant)%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvdAnalyse en cours

Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté

Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé

La conversion s'est déroulée avec succès.Extraction du contenu terminée

Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières.
Ajustement automatique de la qualité.
Ajustement de qualité à %.2f%%.
AlerteAnalyse de %d cellules.
Analyse de la cellule %d (%d secteurs)
Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO.
Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules.
Copie de la cellule %d (%d secteurs)
Copie des menus vob%2d (%d secteurs)
Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD.
Créer une image ISOCréer une image ISO apres convertionDuréeDétailsEcran des propiétésEffacement des anciens fichiers.
Effacement des fichiers.
Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :Fichier ISOFichier VOB trop gros (%s) !
Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD.
FormatGarder les menusGravage sur DVD.
Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents  !Mise à jours du vob %d-%d
Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% a %.2fxVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !Évaluation de qualité :Project-Id-Version: dvd95
Report-Msgid-Bugs-To: 
POT-Creation-Date: 2009-01-23 20:56+0100
PO-Revision-Date: 2007-03-06 21:27+0100
Last-Translator: jf.coulon 
Language-Team: 
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: English
%.2f gigs%.2f kbs%.2f megs%d%% (%s υπόλοιπο)Το %s δεν είναι αρχείο! Παρακαλώ διαγράψτε το.Το %s δεν είναι φάκελος! Παρακαλώ διαγράψτε το./dev/rdsk/c1t0d0s2Γίνεται ανάλυση

Παρακαλώ περιμένετε όσο γίνεται ανάλυση της δομής του DVD.Δεν βρέθηκε κανένα μέσο

Παρακαλώ εισαγάγετε ένα video DVD ή, εναλλακτικά, προσδιορίστε μια εικόνα ISO. Η κωδικοποιήση τελείωσε

Η μετατροπή ήταν επιτυχής.Η εξαγωγή ολοκληρώθηκε

Πριν τη δημιουργία του αρχείου ISO ή το κάψιμο του DVD ίσως θα έπρεπε να αναπαράγετε το αποτέλεσμα.ΉχοςΠαράμετροι δημιουργίαςΥπότιτλοιΣύστημαΒίντεοΠρόσθεση πίνακα περιεχομένων.
Αυτόματη επιλογή ποιότητος.
Θέτοντας την ποιότητα σε %.2f%%.
ΠροσοχήΑνάλυση %d κελιών.
Ανάλυση κελιού %d (%d τομείς)
Γίνεται ανάλυση.Δεν βρέθηκε κανένα μέσοΥπολογισμός καλύτερης ποιότηταςΔίαυλοςΆκυροΧωρητικότητα DVDΚεφάλαιαΕπιλέξτε ένα αρχείο ISOΔιατήρηση μενού του DVDΔημιουργία αρχείου ISO.
Μετατροπή με δυναμική ποιότητα εικόναςΜετατροπή DVDΑντιγραφή %d κελιών.
Αντιγραφή κελιού %d (%d τομείς)
Αντιγραφή μενού vob%2d (%d τομείς)
Αδύνατη η εύρεση του αρχείου εικόνας %sΔιαγραφή τίτλων τέλουςΔημιουργία δομής DVD.
Δημιουργία εικόνας ISOΔημιουργία εικόνας ISO μετά τη μετατροπήΔιάρκειαΛεπτομέριεςΙδιότητεςΔιαγραφή παλιών αρχείων.
Διαγραφή αρχείων.
Λάθος στη δημιουργία. Να διαγράψω τα αρχεία;Λάθος στη μετατροπή ........Λάθος στην ανάγνωση! Να αγνοηθούν τα λάθη ανάγνωσης;Φάκελος για αρχεία ISO:Προσωρινός φάκελος:Αρχείο ISOΤο αρχείο VOB είναι πολύ μεγάλο (%s)!
Να συνεχίσω;Αρχεία ISOΔιόρθωση δομής DVD.
ΔιομόρφσηΜαζί με μενούΚάψιμο DVD.
Κάψιμο DVDΚάψιμο DVD μετά τη μετατροπήΆγνωστοΠληροφορίεςΓλώσσαΓλώσσεςΤο αρχείο %s υπάρχει ήδη. Θέλετε να το ξαναδημιουργήσω;Το αρχείο %s δεν υπάρχει!Ο φάκελος %s δεν υπάρχει!Ο φάκελος %s δεν υπάρχει!Αναπαραγωγέας πολυμέσων :Error reading DVD structure !Αναπαραγωγή DVDΠρόβλημα στην ανάγνωση του τίτλου %s!Ο προσωρινός φάκελος και ο φάκελος του ISO δεν πρέπει να είναι ο ίδιος!Ενημέρωση vob %d-%d
Αγνόηση τελευταίου κεφαλαίουΕπίπεδο του ίχνους:Όνομα DVD και όνομα του αρχείου ISOΕντάξειΠίσταΠρώτο σκέλος ολοκληρώθηκεΙδιότητεςΣυσκευή DVD:Δυναμική ποιότηταΕπιλέξτε πίστεςΕπιλέξτε υπότιτλουςΕπιλέξτε μια πίστα για μετατροπήΥπότιτλοιΕπιλέξτε φάκελοFinishΤίτλος DVD:Συνολικά %d%% από %.2fxΠαρακαλώ ξεκινήστε έλεγχο ποιότηταςΠαρακαλώ επιλέξετε πίστα ήχουΠαρακαλώ επιλέξετε πίστα βίντεομια εφαρμογή GNOME για τη μετατροπή DVD9 σε DVD5Δεν μπορώ να χρησιμοποιήσω το πρόγραμμα mkisofs!Υπολογισμός ποιότητας:dvd95/debian/dvd95/usr/share/locale/en/000077500000000000000000000000001140003301000177205ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/en/LC_MESSAGES/000077500000000000000000000000001140003301000215055ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/en/LC_MESSAGES/dvd95.mo000066400000000000000000000176131140003301000230050ustar00rootroot00000000000000kt 	
!	
,	
7	B	-T	0			o	3
Q

!' "Hkr'
	

2
1L
~


-


%$%Jp"%
:!Pr	.) 1E6Q!
#07"?#b$$#"2<U7/EKe! '9aj#z%%D emu}!&Db*@e4O
`n{-BKXaq&"$?_u

	&0B^"x+	

,9OW^k	t~"&.LU;m+#)?
Zeq	
'D`tE
;X<"Ii?%2CV_G@^9k* K!(51)f8gHF\TQj6RMDZ,:a4&B$c	/S=
Ah7]`O+[0'NP#.YbdWe>3L-JU%.2f gigas%.2f kilos%.2f megas%d%% (%s restant)%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer.4.7 GiO8.5 GiOAnalyse en cours

Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté

Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé

La conversion s'est déroulée avec succès.Extraction du contenu terminée

Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.Paramètres de créationSous-titresSystèmeVidéoAjout de la table des matières.
Ajustement automatique de la qualité.
Ajustement de qualité à %.2f%%.
AlerteAnalyse de %d cellules.
Analyse de la cellule %d (%d secteurs)
Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCapacité du DVD :ChapitresChoix du fichier ISOConserver le fichier %s ?Conserver le fichier vob pour un autre encodage ?Conserver les menus du DVDConstruction de l'image ISO.
Continuer en passe 2 ?Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules.
Copie de la cellule %d (%d secteurs)
Copie des menus vob%2d (%d secteurs)
Couper le génériqueCréation de %s impossible !Création de la structure du DVD.
Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DuréeDétailsDétection des bandes noires
Ecran des propiétésEffacement des anciens fichiers.
Effacement des fichiers.
Encodage
Encodage passe %d
Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :Fichier ISOFichier VOB trop gros (%s) !
Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD.
Garder les menusGravage sur DVD.
Graver le DVDGraver un DVD apres convertionInconnuIndications sonoresInformationsLangueLanguesLe fichier %s existe. L'utiliser ?Le fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents  !Mise à jours du vob %d-%d
Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOPas assez de place sur %s
Il manque %s octets !PistePremière phase terminéePremière phase terminée (%d)PropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierSélectionnez qu'un seule piste audio !TerminéTitre du film :Veuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videomkisofs manquant !Évaluation de qualité :ÉvaluerProject-Id-Version: dvd95
Report-Msgid-Bugs-To: 
POT-Creation-Date: 2009-01-23 20:56+0100
PO-Revision-Date: 2009-01-23 21:06+0100
Last-Translator: jf.coulon 
Language-Team: 
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: English
%.2f GB%.2f KB%.2f MB%d%% (%s remain)%s is not a file ! Please remove.%s is not a directory ! Please remove.4.7 GB4.7 GBAnalyzing

Please wait for DVD structure analysis.No medium found

Please insert a video DVD, or specify an ISO image file to use.Encoding finished

Conversion was successfull.Extraction finished

Before building ISO image or burning, you may play the result.Creation parametersSubtitlesSystemVideoAdding table of content.
Automatic quality setting.
Setting quality to %.2f%%.
AlertAnalyzing %d cells.
Analyzing cell %d (%d sectors)
Analyze in progress.No medium foundCompute best qualityChannelsDVD capacityChaptersChoose ISO fileKeep file %s ?Keep the vob file to another encoding?With DVD menusBuilding ISO file.
Continue with stage 2 ?Convert with dynamic image qualityConvert DVDCopying %d cells.
Copy cell %d (%d sectors)
Copy menus vob%2d (%d sectors)
Remove ending creditsCould not create %s!Creating DVD structure.
Create ISO imageCreate ISO imageDVD 9 to 5DurationDetailsCropping detection
PropertiesRemoving old files.
Removing files.
Encoding
Encoding pass %d
Build error. Remove files ?Conversion error ........Reading error! Ignore read errors?ISO files space:Temporary space:ISO fileVOB file too large (%s) !
Continue anyway ?ISO filesFixing DVD structure.
With menusDVD burning.
Burn the DVDBurn after conversionUnknownSoundsInformationsLanguageLanguagesFile %s already exist. Use it ?File %s already exist. Re-create ?File %s doesn't exist!Directory %s already exist ! Erase it?Directory %s doesn't exist!Multimedia player:Error reading DVD structure !Play DVDError reading title %s!Temporary directory and ISO directory must not be the same!Updating vob %d-%d
Skip last chapterTrace level:DVD name and ISO file nameNot enough space on %s
Need %s more bytes !TrackFirst stage completedFirst stage completed (%d)PropertiesDVD device:Dynamic qualitySelect audio tracksSelect subtitlesSelect track to convertSubtitlesSelect a directorySelect on one audio track !FinishedDVD title:Please start a quality scanPlease select an audio trackPlease select a video trackmkisofs is missing!Compute quality:Checkdvd95/debian/dvd95/usr/share/locale/es/000077500000000000000000000000001140003301000177255ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/es/LC_MESSAGES/000077500000000000000000000000001140003301000215125ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/es/LC_MESSAGES/dvd95.mo000066400000000000000000000227141140003301000230100ustar00rootroot00000000000000nP	
Q	
\	
g	r	u		-	0				o
r
Q
J,
<!J'l"'
'
E
L
S
	f
p


-


%%:`~"%

!. )>hy6!

-;Zbov#~$$?"N<q714:Tav!	"#5%Y%+J ks{*.[wjS6

(>^{%0&/
BM^{+$"
0O$a/
	Y@ I $]  (  * !!1!5!7A!y!$!!!!
!%!"""%"+-"Y",t""" ""#> #_#6y## ####$$$+$H$"`$$$	$$$$$%0;%+l%%%%%J
3>%]j2'$FWMXI=^:n YL*i,f9	g\<"C8URmSN
HG#.e;a+7(E&1TDh?QP[_4)5O!k-A0Zlbc`d@6B/KV%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours

Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté

Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé

La conversion s'est déroulée avec succès.Extraction du contenu terminée

Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières.
Ajustement automatique de la qualité.
Ajustement de qualité à %.2f%%.
AlerteAnalyse de %d cellules.
Analyse de la cellule %d (%d secteurs)
Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO.
Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules.
Copie de la cellule %d (%d secteurs)
Copie des menus vob%2d (%d secteurs)
Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD.
Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DuréeDvd95Dvd95 is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Dvd95 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Dvd95;
if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 2111-1307  USA
DétailsEcran des propiétésEffacement des anciens fichiers.
Effacement des fichiers.
Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :ExtFichier ISOFichier VOB trop gros (%s) !
Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD.
FormatGarder les menusGravage sur DVD.
Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents  !Mise à jours du vob %d-%d
Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% a %.2fxVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !totemtranslator-creditsÉvaluation de qualité :ÉvaluerProject-Id-Version: DVD95 1.2p1
Report-Msgid-Bugs-To: 
POT-Creation-Date: 2009-01-23 20:56+0100
PO-Revision-Date: 2007-10-04 20:57+0100
Last-Translator: jf.coulon 
Language-Team: 
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: Spanish
%.2f GB%.2f KB%.2f MB%d%d%% (%s restantes)%s¡%s no es un archivo! Bórrelo por favor.¡%s no es un directorio! Bórrelo, por favor./dev/dvd4,7 GB8,5 GBAnálisis del DVD

Por favor, espere mientras el programa estudia el DVD.No se detecta DVD

Por favor, ponga un DVD en la unidad o especifique la imagen ISO queva a utilizar.Terminada la codificación

La conversión ha sido satisfactoria.Terminada la extracción del contenido

Antes de la generación del archivo ISO o la grabación, puede previsualizarel resultado.SonidoOpcionesSubtítulosPropiedades del sistemaVídeoAñadido el índice.
Ajusto automático de calidad.
Ajuste de calidad a %.2f%%.
AdvertenciaAnálisis de %d archivos de vídeos.
Análisis de archivo de vídeo %d (%d sectores)
Análisis del DVDNo se encuentra DVDCalcular la mejor calidadCanalesCancelarCapacidad del DVD:CapítulosAbrir imagen ISOConservar los menús del DVDGeneración de imagen ISO.
Conversión con calidad de imagen dinámicaCovertir el DVDCopia de %d pistas.
Copia de la pista  %d (%d sectores)
Copiar menú VOB%2d (%d sectores)
No se encuentra el archivo: %sAbspann entfernenCreación de la estructura del DVD.
Crear una imagen ISOCrear una imagen ISO después de la conversiónDVD 9 to 5DuraciónDVD95DVD95 es software libre; puede redistribuirlo y/o modificarlo
cumpliendo las condiciones de la GNU General Public License,
versión 2 o (si así lo desea) una versión posterior.
DVD95 se distribuye con la esperanza de que sea útil,
pero SIN GARANTÍA ALGUNA; especialmente sin la garantía implícita,
de COMERCIALIDAD o ADECUACIÓN A UN FIN CONCRETO.
Vea la GNU General Public License para más detalles.
Debe haber recibido una copia de la GNU General Public License con DVD95;
en caso contrario, escriba a la Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307 USA
DetallesMostrar propiedadesLos ficheros antiguos se borrarán.
Borrar archivos.
Error de generación. ¿Borrar archivos?Error de conversión...¡Error de lectura! ¿Ignorar los errores?Directorio de archivos ISO:Directorio temporal:ExtArchivo ISO¡Archivo VOB demasiado grande (%s)!
¿Desea continuar?Archivo ISOFijación de la estructura del DVD.
FormatoConservar los menúsGrabar DVD.
Grabar DVDGrabar DVD después de la conversiónDesconocidoInformaciónIdiomaIdiomasEl archivo %s ya existe. ¿Sobreescribirlo?¡El archivo %s no existe!El directorio %s ya existe. ¿Sobreescribir?¡El directorio %s no existe!Lector multimedia¡No puede leerse la estructura!Reproducir DVD¡No puede leerse la pista %s!¡El directorio temporal debe ser distinto del directorio ISO!Actualización VOB %d-%d
No mantener el último capítulo de la pista de vídeoNivel de trazaNombre del DVD y del archivo ISOOKPistaTerminada primera fasePropiedadesUnidad DVD:Cualidad dinámicaSeleccionar pistas de sonidoSeleccionar subtítulosSeleccione la pista para convertirSubtítulosSeleccionar un directorioTerminadoTítulo de la película:Total %d%% de %.2fxEjecute el cáculo de calidadSeleccione una pista de audioSeleccione una pista de vídeouna aplicación GNOME para convertir DVD9 a DVD%¡No puede encontrarse el programa mkisofs!totemPablo RodríguezCálculo de calidad:Evaluardvd95/debian/dvd95/usr/share/locale/et_EE/000077500000000000000000000000001140003301000202775ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/et_EE/LC_MESSAGES/000077500000000000000000000000001140003301000220645ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/et_EE/LC_MESSAGES/dvd95.mo000066400000000000000000000220541140003301000233570ustar00rootroot00000000000000nP	
Q	
\	
g	r	u		-	0				o
r
Q
J,
<!J'l"'
'
E
L
S
	f
p


-


%%:`~"%

!. )>hy6!

-;Zbov#~$$?"N<q714:Tav!	"#5%Y%+b 			!
M__@z
{#)&Cjv	
%	
/:#Q)u0!
0;BNH' ) H \ k o 9x 
     !!)!
2!@!E!%L!r!!!!%!
!
"2$"W"n"
""""""""
###
2#	=#G#O#\##o###,####$	"$J
3>%]j2'$FWMXI=^:n YL*i,f9	g\<"C8URmSN
HG#.e;a+7(E&1TDh?QP[_4)5O!k-A0Zlbc`d@6B/KV%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours

Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté

Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé

La conversion s'est déroulée avec succès.Extraction du contenu terminée

Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières.
Ajustement automatique de la qualité.
Ajustement de qualité à %.2f%%.
AlerteAnalyse de %d cellules.
Analyse de la cellule %d (%d secteurs)
Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO.
Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules.
Copie de la cellule %d (%d secteurs)
Copie des menus vob%2d (%d secteurs)
Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD.
Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DuréeDvd95Dvd95 is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Dvd95 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Dvd95;
if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 2111-1307  USA
DétailsEcran des propiétésEffacement des anciens fichiers.
Effacement des fichiers.
Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :ExtFichier ISOFichier VOB trop gros (%s) !
Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD.
FormatGarder les menusGravage sur DVD.
Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents  !Mise à jours du vob %d-%d
Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% a %.2fxVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !totemtranslator-creditsÉvaluation de qualité :ÉvaluerProject-Id-Version: et_EE
Report-Msgid-Bugs-To: 
POT-Creation-Date: 2009-01-23 20:56+0100
PO-Revision-Date: 2008-01-11 20:32+0200
Last-Translator: Hans 
Language-Team: Estonian 
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: Estonian
X-Generator: KBabel 1.11.4
%.2f giga%.2f kilo%.2f mega%d%d%% (%s jäänud)%s%s pole fail ! Palun eemalda.%s pole kataloog ! Palun eemalda./dev/dvd4.7 GB8.5 GBAnalüüsin

Palun oota DVD struktuuri analüüsi tulemust.Meediat ei leitud

Palun sisesta video DVD, või määra kasutatav ISO fail. Kodeerimine lõpetatud

Muundamine oli edukas.Sisu lahtiharutamine lõpetatud

Enne ISO tõmmise loomist või kirjutamist saad tulemuse läbi vaadata.HäälLoomise seadedTiitridSüsteemPiltLisan sisukorra.
Automaatne kvaliteedi määramine.
Määran kvaliteedi %.2f%%.
TähelepanuAnalüüsin %d elementi.
Analüüsin elementi %d (%d sektorit)
AnalüüsinMeediat (plaati) ei leitudArvuta parim kvaliteetKanaleidLoobuDVD mahutavus :PeatükkeVali ISO failSäilita DVD menüüdTekitan ISO faili.
Muunda dünaamilise pildikvaliteedigaMuunda DVDKopeerin %d elementi.
Kopeerin elementi %d (%d sektorit)
Kopeerin menüüsid vob%2d (%d sektorit)
ei suuda leida väljundkaardi (pixmap) faili %s!Eemalda lõpust tiitridLoon DVD struktuuri.
Loo ISO tõmmisPeale muundamist loo ISO tõmmis DVD 9 -> 5KestusDvd95Dvd95 on vabakasutusega tarkvara: võid seda jagada ja muuta
"GNU General Public Licence", edaspidi Litsents, tingimusi järgides.
Dvd95 tarkavara jagatakse lootuses, et see on kellelegi mingil
määral kasulik, kuid selle juures peab arvestama et dvd95 tarkavaral
puudub igasugune toimivuse ja kasulikkuse garantii.
Lisainfo saamiseks vaata "Litsentsi" tingimusi.
Selle tarkvaraga kaasas peaks olema "Litsentsi" tekstiline koopia.
Kui Litsentsi tekstiline koopia puudub siis kirjuta sellest aadressile:
Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 2111-1307  USA
DetailidEkraani seadedVanade failide eemaldamine.
Eemaldan faile.
Viga DVD tekitamisel. Eemaldan failid ?Muundamise viga ........Lugemise viga ! Ignoreeri lugemise vigu ?ISO faili asukoht :Ajutine ruum :ExtISO failVOB fail on liiga suur (%s) !
Jätkan sellest hoolimata ?ISO failidParandan DVD struktuuri.
FormaatKoos menüügaDVD kirjutamine.
Kirjuta DVDKirjuta DVD peale muundamistTundmatuInformatsioonKeelKeeledFail %s on juba olemas. Loon uuesti ?Faili %s pole olemas !Kataloogi %s pole olemas !Kataloogi %s pole olemas !Multimeedia taasesitaja :DVD struktuuri lugemine ebaõnnestus!Näita DVD%s lugemine ebaõnnestus!Ajutine - ja ISO faili kataloog ei tohi olla sama!Värskendan vob %d-%d
Jäta viimane peatükk vaheleTrace level :DVD nimi ja ISO faili nimiOkRadaEsimene etapp lõpetatudSeadedDVD seade :Dünaamiline kvaliteetVali hääledVali subtiitridVali muundatav radaSubtiitridVali failLõpetaFilmi nimi :Kokku %d%% / %.2fxPalun alusta kvaliteedi tuvastamistPalun vali häälPalun vali videoDVD9 -> DVD5 muundamise programm GNOME jaokspuudub mkisofs !totemTänud tõlkijateleMäära kvaliteet :Kontrollidvd95/debian/dvd95/usr/share/locale/hu/000077500000000000000000000000001140003301000177325ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/hu/LC_MESSAGES/000077500000000000000000000000001140003301000215175ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/hu/LC_MESSAGES/dvd95.mo000066400000000000000000000175071140003301000230210ustar00rootroot00000000000000eDl


-0#	+	o3		Q)
{
*J]
m!{'"'0AXv}	-
.
%E
%k


"

%
#*3!Ik.)
!6-d!q
#2$Ot$"<>7Z3!Oq}#%%+2^qD		!$;`fPlmD+vp %
5C%c#%"*
MX`	pz("%5 [|

*3Dx@	39!E	g	q{


5.Lj$6$?Uqv!	.
;F,Y0	 89_S"2&N*Z5O[cQLH'F%C7D+38?bE^aVX]I>1U(P!ARKMB;), 4
0GdY6`	
@:\WeT#J-./=<$%.2f gigas%.2f kilos%.2f megas%d%% (%s restant)%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer.4.7 GiO8.5 GiOAnalyse en cours

Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté

Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé

La conversion s'est déroulée avec succès.Extraction du contenu terminée

Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières.
Ajustement automatique de la qualité.
Ajustement de qualité à %.2f%%.
AlerteAnalyse de %d cellules.
Analyse de la cellule %d (%d secteurs)
Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO.
Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules.
Copie de la cellule %d (%d secteurs)
Copie des menus vob%2d (%d secteurs)
Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD.
Créer une image ISOCréer une image ISO apres convertionDuréeDétailsEcran des propiétésEffacement des anciens fichiers.
Effacement des fichiers.
Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :Fichier ISOFichier VOB trop gros (%s) !
Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD.
FormatGarder les menusGravage sur DVD.
Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents  !Mise à jours du vob %d-%d
Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOPistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% a %.2fxVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !translator-creditsÉvaluation de qualité :ÉvaluerProject-Id-Version: dvd95
Report-Msgid-Bugs-To: 
POT-Creation-Date: 2009-01-23 20:56+0100
PO-Revision-Date: 2007-02-13 21:10+0100
Last-Translator: jf.coulon 
Language-Team: 
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: English
%.2f giga%.2f kb%.2f mega%d%% (%s maradt)A %s nem fájl! Kérem törölje.%s nem könyvtár! Kérem törölje.4.7GB8.5GBAnalizálás

Kérem várja meg a DVD struktúra analízisét.Nincs lemez a meghajtóban

Kérem tegyen be egy videó DVD-t vagy adjon meg ISO képmást.Átkódolás befejezve

A konverzió sikeres volt.Kicsomagolás befejezve

Az ISO fájl felépítése vagy kiírása előtt az eredmény megnézhető.HangLétrehozás paramétereiFeliratokRendszerVideóTartalomjegyzék hozzáadása.
Minőség automatikus beállítása.
Minőség beállítása %.2f%%-ra.
Figyelem%d cellát analizálok.
%d. cella analizálása (%d szektor)
Analizálás folyamatban.Nincs lemez a meghajtóbanA legjobb minőség kiszámításaCsatornákMégsemDVD kapacitás:FejezetekVálasszon ISO fájltDVD menük megőrzéseISO fájl felépítése.
Konvertálás dinamikus képminőséggelDVD konvertálás%d cellát másolok.
%d. cella másolása (%d szektor)
Menü vob%2d másolása (%d szektor)
Nem találom a pixmap fájlt: %sVégcím eltávolításaDVD struktúra létrehozása.
ISO képmás létrehozásaISO képmás létrehozásaHosszRészletekTulajdonságokRégi fájlok eltávolítása.
Fájlok eltávolítása.
Hiba a felépítésben. Eltávolítsam a fájlokat?Konverziós hiba ........Olvasási hiba! Figyelmen kívül hagyjam az olvasási hibákat?ISO fájlok helye:Ideiglenes terület:ISO fájlVOB fájl túl nagy! (%s)
Mindenképpen folytassuk?ISO fájlokDVD struktúra véglegesítése.
FormátumMenükkelDVD kiírása.
DVD kiírásaKonvertálás után DVD írásIsmeretlenInformációkNyelvNyelvekA %s nevű fájl már létezik. Újra készítsem el?A %s fájl nem létezik!A %s könyvtár nem létezik!A %s könyvtár nem létezik!Multimédia lejátszó:Olvasási hiba a DVD struktúrában!DVD lejátszásaOlvasási hiba a %s címben!Az ideiglenes és az ISO könyvtár nem lehet ugyanaz!VOB %d-%d frissítése
Utolsó fejezet kihagyásaNyomkövetési szint:DVD név és ISO fájl névSávElső fázis befejezveTulajdonságokDVD eszköz:Dinamikus minőségVálasszon hangsávotVálasszon feliratokatVálasszon konvertálandó sávotFeliratokVálasszon könyvtáratLeállításDVD címe:%d%% totál, %.2fxKérem indítsa el a minőség felderítéstKérem válasszon hangsávotKérem, válasszon videosávotGNOME alkalmazás DVD9 DVD5-re konvertálásáraHiányzik az mkisofs!Zoltán BöszörményiMinőség számítása:Kiértékelésdvd95/debian/dvd95/usr/share/locale/it/000077500000000000000000000000001140003301000177325ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/it/LC_MESSAGES/000077500000000000000000000000001140003301000215175ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/it/LC_MESSAGES/dvd95.mo000066400000000000000000000176371140003301000230250ustar00rootroot00000000000000m@	
A	
L	
W	b	e	w	-z	0				o	b
Q
:	
,!:'\"'

5
<
C
	V
`
u

-


%%*Pn"%
!;.U)68!Egn
#$#Hh$~"<7.fx
!&HTmv#%%+	5HNa{H$BKR[YeFsb# 0%Qw
 "+=FYu 0 Ij&}	
)$'>fu1
#BN[b i)H4} 
-H"Z}"
+'Shn	I
;=%\i2'$EVLWH<]9m XK*h,e8	f[G"B7TQlRM
F#.d:`+6(D&1SCg>POZ^3)4N!j-@0Ykab_c?5A/JU%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours

Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté

Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé

La conversion s'est déroulée avec succès.Extraction du contenu terminée

Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières.
Ajustement automatique de la qualité.
Ajustement de qualité à %.2f%%.
AlerteAnalyse de %d cellules.
Analyse de la cellule %d (%d secteurs)
Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO.
Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules.
Copie de la cellule %d (%d secteurs)
Copie des menus vob%2d (%d secteurs)
Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD.
Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DuréeDvd95DétailsEcran des propiétésEffacement des anciens fichiers.
Effacement des fichiers.
Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :ExtFichier ISOFichier VOB trop gros (%s) !
Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD.
FormatGarder les menusGravage sur DVD.
Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents  !Mise à jours du vob %d-%d
Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% a %.2fxVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !totemtranslator-creditsÉvaluation de qualité :ÉvaluerProject-Id-Version: dvd95
Report-Msgid-Bugs-To: 
POT-Creation-Date: 2009-01-23 20:56+0100
PO-Revision-Date: 2008-05-18 19:16+0100
Last-Translator: Matteo Pettenuzzo 
Language-Team: 
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: Italian
%.2f Gb%.2f Kb%.2f Mb%d%d%% (%s rimanente)%s%s non è un file. Rimuovere.%s non è una directory ! Rimuovere./dev/dvd4.7 Gb8.5 GbAnalisi in corso

Attendere mentre viene analizzata la struttura del DVD.Nessun media trovato

Inserisci un vidio DVD oppure specifica un file ISO da usare.Codifica terminata

Codifica terminata con successo.Estrazione terminata

Prima della realizzazione del file ISO è possibile visionare il risultato.AudioParametri di creazioneSottotitoliSistemaVideoAggiungi tabella dei contenuti.
Settaggio automatico della qualità.
Settaggio qualità a %.2f%%.
AttenzioneAAnalisi %d cellule.
Analisi Cellule %d (%d secttori
Analisi in corso.Nessun media trovatoCalcola la qualità miglioreCanaliCancellaCapacità del DVDCapitoliScegli il file ISOConservare il menù del DVDCostruzione dell'immagine ISO.
Converti con qualità dinamicaConverti DVDCopia %d cellule.
Copia cellula %d (%d sectors)
Copia menù vob%2d (%d sectors)
Pixmap file non trovato: %sRimuovi i titoli di codaCCreazione della struttura DVD.
Creare un file ISOCreare un file iso dopo la conversioneDVD 9 a 5DurataDvd95DettagliProprietàRimozione vecchi file.
Rimuovere i file.
Errore di costruzione. Rimuovere i file ?Errore di conversione ...Errore di Lettura! Ignorare gli errori?Spazio di ISO:Spazio temporaneo:UscitaFile ISOFile VOB troppo grande (%s) !
Volete continuare ?File ISOFissaggio struttura DVD
FormatoConservare il menùScrittura DVD.
Scrivi DVDMasterizza dopo la conversioneSconosciutoInformazioniLinguaLinguaIl file %s esiste già. Ricreo ?File %s non esiste!La directory %s non esiste !Directory %s non esiste!Player multimediale:Lettura della struttura DVD impossibile !Play DVDError reading title %s!La directory temporanea e la directory ISO non possono essere le stesse!Uaggiornamento vob %d-%d
Rimuovi l'ultimo capitoloLivello traccie:Nome del DVD e nome del file ISOOKPistaPrima fase ultimataProprietàPeriferica DVD:Qualità dinamicaSeleziona la traccia audioSelezionare i DVDSeleziona la traccia da convertireSottotitoliSelezionare la directoryFinitoTitolo DVD:Totale  %d%% a %.2fxInizia la scansione della qualitàSelezionare la traccia audioSelezionare la traccia videoa GNOME application to convert DVD9 to DVD5mkisofs non trovato!totemtranslator-creditsControllo qualità:Controlladvd95/debian/dvd95/usr/share/locale/nl/000077500000000000000000000000001140003301000177275ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/nl/LC_MESSAGES/000077500000000000000000000000001140003301000215145ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/nl/LC_MESSAGES/dvd95.mo000066400000000000000000000223451140003301000230120ustar00rootroot00000000000000nP	
Q	
\	
g	r	u		-	0				o
r
Q
J,
<!J'l"'
'
E
L
S
	f
p


-


%%:`~"%

!. )>hy6!

-;Zbov#~$$?"N<q714:Tav!	"#5%Y%+` 	$"JkcGw #+KS!k)5_o$"
#4R	_io
  . )F p %     + 
!!!=!	E!O!a!n!!
!!!&!!'!
"&":"Y"f"?"""
"# ###)#
A#O#^#s##"###### $-$K$5i$$$$$	$J
3>%]j2'$FWMXI=^:n YL*i,f9	g\<"C8URmSN
HG#.e;a+7(E&1TDh?QP[_4)5O!k-A0Zlbc`d@6B/KV%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours

Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté

Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé

La conversion s'est déroulée avec succès.Extraction du contenu terminée

Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières.
Ajustement automatique de la qualité.
Ajustement de qualité à %.2f%%.
AlerteAnalyse de %d cellules.
Analyse de la cellule %d (%d secteurs)
Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO.
Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules.
Copie de la cellule %d (%d secteurs)
Copie des menus vob%2d (%d secteurs)
Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD.
Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DuréeDvd95Dvd95 is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Dvd95 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Dvd95;
if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 2111-1307  USA
DétailsEcran des propiétésEffacement des anciens fichiers.
Effacement des fichiers.
Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :ExtFichier ISOFichier VOB trop gros (%s) !
Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD.
FormatGarder les menusGravage sur DVD.
Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents  !Mise à jours du vob %d-%d
Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% a %.2fxVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !totemtranslator-creditsÉvaluation de qualité :ÉvaluerProject-Id-Version: dvd95
Report-Msgid-Bugs-To: 
POT-Creation-Date: 2009-01-23 20:56+0100
PO-Revision-Date: 2007-10-01 20:54+0100
Last-Translator: jf.coulon 
Language-Team: 
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: Dutch
X-Poedit-Country: NETHERLANDS
%.2f giga%.2f kbs%.2f meg%d%d%% (%s resterend)%s%s is geen  bestand ! Verwijder aub.%s is geen folder ! Verwijder aub./dev/dvd4.7 GiO8.5 GiOAnalyse bezig

Wacht op de analyse van de DVD structuur.Geen medium gevonden

Plaats een video DVD, of selecteer een te converteren ISO bestand. Encoderen is beeindigd

Conversie succesvol afgerond.Extractie beeindigd

Voordat de ISO geschreven of gebrand wordt, kunt u eerst het resultaat bekijken.AudioParameters voor conversieOndertitelsSysteemVideoInhoudsiopgave toevoegen.
Automatische kwaliteit instelling.
Kwaliteit instellen op %.2f%%.
OpgeletAnalyse van %d cellen.
Analyse van cel %d (%d sectoren)
Analyse bezig.Geen medium gevondenBerekenen van beste kwaliteitKanalenAnnuleerDVD capaciteit:HoofdstukkenKies ISO bestandBewaar DVD menusISO bestand opslaan.
Converteer met dynamische beeld kwaliteitDVD converterenCopieren van  %d cellen.
Copie van cel %d (%d sectoren)
Menus vob%2d (%d sectoren) kopieren
Kan pixmap bestand: %s niet vindenVerwijder credits aan eindeDVD structuur maken.
Maak ISO bestandMaak ISO bestand na conversieDVD 9 naar 5tijdsduurDvd95Dvd95 is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Dvd95 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Dvd95;
if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 2111-1307  USA
DetailseigenschappenOude bestanden verwijderen.
Bestanden verwijderen.
Fout bij creeren. Bestanden verwijderen ?Conversie fout ........Lees fout ! Negeren van lees fouten ?ISO bestands opslag :Tijdelijke opslag:ExtISO bestandVOB bestand te groot (%s) !
Toch doorgaan ?ISO bestandenHerstel van DVD structuur.
FormaatMet menusBranden van DVD.
Brand de DVDBrand DVD na conversieOnbekendInformatieTaalTalenBestand %s bestaat al. Overschrijven ?Bestand %s bestaat niet !folder %s bestaat niet ! Folder maken ?Folder %s bestaat niet !Multimedia speler :Fout bij lezen DVD structuur !Afspelen DVDFout bij lezen van titel %s!TDe tijdelijke folder en de Iso folder mogen niet gelijk zijn !Bijwerken vob %d-%d
Laatste hoofdstuk overslaanTrace niveau:DVD naam en ISO bestands naamOkTrackEerste stadium afgerondEigenschappenDVD apparaat :Dynamische kwaliteitSelecteer audio tracksSelecteer ondertitelsSelecteer een track voor conversieOndertitelsSelecteer een folderKlaarDVD titel :Totaal %d%% aan %.2fxStart aub een kwaliteits analyseSelecteer aub een audio trackSelecteer aub een video trackEen GNOME applicatie om DVD9 te converteren naar DVD5mkisofs mist !totemVertaler-creditsBerekenen kwaliteit :Evaluerendvd95/debian/dvd95/usr/share/locale/pt_BR/000077500000000000000000000000001140003301000203245ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/pt_BR/LC_MESSAGES/000077500000000000000000000000001140003301000221115ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/locale/pt_BR/LC_MESSAGES/dvd95.mo000066400000000000000000000171341140003301000234070ustar00rootroot00000000000000^


-,0ZoQ		u





!
'
"@G'`	"-@n%%"
%0
V
]
f
!|

.

)/@T6`!
%29#Ae$$"<4q7!6If!#%%,+R~
1
<
GR)f,QRy
\j
)$%#>bx
+DTk!'	 *3@](r,7&^k 
"&$Af C*A]!p#=F	_i+z''4+D#SN
ZH	:]1?R<\XM=@>C8$.U4E%FT+P!BIJVL,^3-KG52D
WY(/&Q60'O)[";9*A7 %.2f gigas%.2f kilos%.2f megas%d%% (%s restant)%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer.Analyse en cours

Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté

Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé

La conversion s'est déroulée avec succès.Extraction du contenu terminée

Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières.
Ajustement automatique de la qualité.
Ajustement de qualité à %.2f%%.
AlerteAnalyse de %d cellules.
Analyse de la cellule %d (%d secteurs)
Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO.
Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules.
Copie de la cellule %d (%d secteurs)
Copie des menus vob%2d (%d secteurs)
Couper le génériqueCréation de la structure du DVD.
Créer une image ISOCréer une image ISO apres convertionDuréeDétailsEcran des propiétésEffacement des anciens fichiers.
Effacement des fichiers.
Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :Fichier ISOFichier VOB trop gros (%s) !
Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD.
FormatGarder les menusGravage sur DVD.
Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents  !Mise à jours du vob %d-%d
Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOPistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Veuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !Évaluation de qualité :Project-Id-Version: dvd95-pt_BR
Report-Msgid-Bugs-To: 
POT-Creation-Date: 2009-01-23 20:56+0100
PO-Revision-Date: 2007-04-10 21:24+0100
Last-Translator: jf.coulon 
Language-Team: Português do Brasil 
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: English
X-Generator: KBabel 1.11.4
%.2f gigas%.2f kilos%.2f megas%d%% (%s restantes)%s não é um arquivo ! Por favor remova.%s não é um diretório ! Por favor remova.Analisando

Por favor espere pela análise de estrutura do DVD.Mídia não detectada

Por favor insira um DVD de vídeo, ou especifique um arquivo de imagem ISO para usar. Codificação terminada

A conversão foi terminada com sucesso.Extração terminada

Antes de construir a imagem ISO ou gravação, você pode reproduzir o resultado.ÁudioParâmetros de criaçãoLegendasSistemaVídeoAdicionando o índice.
Configuração de qualidade automática.
Configurandp qualidade para %.2f%%.
AlertaAnalisando %d células.
Analisando célula %d (%d setores)
Análise em progressoMídia não detectadaCalcular a melhor qualidadeCanaisCapacidade do DVD :CapítulosEscolher o arquivo ISOConservar menus do DVDConstruindo arquivo ISO.
Converter com qualidade dinâmica de imagemConverter o DVDCopiando %d células.
Copiar célula %d (%d setores)
Copiar menus vob%2d (%d setores)
Remover créditos finaisCreando a estrutura do DVD.
Criar uma imagem ISOCriar uma imagem ISO após a conversãoDuraçãoDetalhesPropriedadesRemovendo arquivos antigos.
Removendo arquivos.
Erro de construção. Remover arquivos ?Error de conversão ........Erro de leitura ! Ignorar erros de leitura ?Espaço para os arquivos ISO :Espaço temporário :Arquivo ISOArquivo VOB muito grande (%s) !
Continuar mesmo assim ?Arquivos ISOFixando estrutura do DVD.
FormatoSalvar os menusGravar DVD.
Gravar o DVDGravar um DVD após a conversãoDesconhecidoInformaçõesIdiomaIdiomasO arquivo %s já existe. Recriar ?O arquivo %s não existe !O diretório %s existe. Removê-lo ?O directório %s não existe !Reprodutor Multimídia :Erro ao ler a estrutura de DVD !Reproduzir DVDErro ao ler título %s!O diretório temporário e o diretório Iso não deve ser o mesmo !Atualizando vob %d-%d
Ignorar o último capítuloNível de traço :Nome do DVD e nome de arquivo ISOFaixaPrimeiro estágio completoPropriedadesDispositivo de DVD :Qualidade dinâmicaSelecionar faixas de áudioSelecionar legendasSelecionar uma faixa para converterLegendasSelecionar um diretórioTerminadoTítulo do DVD :Por favor inicie uma varredura de qualidadePor favor selecione uma faixa de áudioPor favor selecione uma faixa de vídeoUma aplicação GNOME para converter  DVD9 para DVD5mkisofs está faltando !Cálculo de qualidade :dvd95/debian/dvd95/usr/share/pixmaps/000077500000000000000000000000001140003301000175405ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/pixmaps/dvd95/000077500000000000000000000000001140003301000204735ustar00rootroot00000000000000dvd95/debian/dvd95/usr/share/pixmaps/dvd95/copy.png000066400000000000000000000063461140003301000221640ustar00rootroot00000000000000PNG


IHDR4+7	pHYs~IDATxݙ{lTW~?yό&61`l8K̓$m[T9v6l
1HMU;TdYeK`RjQvLa5xb`=XOqŝ/*kiX|ѵ;vn57Tʕ+%s=Gii)ea6.rx;w~mpb%ն]dQ>,!2W
t]GuBòin* rHP ^oQKkqAxwQ&֯_ϯ/(3"5"t!L\uB_pa)㇟oy?8իW4FrFö8pd([Y8D"(֭cTVVRWW'R<D"),)nqz҃[0ARҥ躎i$lGpU`&iZ>O#{<n7p@{de+(0zdnu߫b޽=zPJ.H:̬ͤQ@(80s̟?H$†
hjj"JI'^/s)<FBU(OBg@4 +8]'v'ג2t:i1LYaaN)sSO^ikk68|0/xݸ.#d;먪ȼ	( ˲8qLt
I[%$0\SqB^dy\VUU}j*6oL0$+<-r…
̳ܪpo}ʇj!0VWC"Rߢ07v!ićz$PL_PFK򯻶ODzYn0\Xa`Ii:OBQTUc^޳7%e]nj57xF?PS4"+>yLG޻eUE4E:.9STz1mXCC膃iInAGGG;hnnL)3,~1tP| ND@@%+@Apߴ0Hxzn`)RC!P?/+
>dݺ[oso]_*kP,OU?ŠŞraC4NGXPMұSq0;SWBj>\D]].ѹ!ҥK9!ny%9
I0)``&
IHB ۶m۶0u$P,<|Dϕ*m*.]iɓGzરJG(*%fjii+V᧪(+.),GuP6Hl,Ƒ6m`*}tttw^&MĊ+ܪlݺUtttpM=}龘1iEő ˲q:RF{9s&hef޾};>ӧgJHٳy=d2qF@rzawWŨW۹&UVyfB#e)tF;S]m7=y2|5\ۉDt:Ôض룰b2~wR/H0*R6Jۏ?OBxR.sT߸϶^b;vLiG}(v)x=
B߼S\xla9Yg^A%yE"e/0
榀Btuuɓ'ON2s57RO_cJTAgRNUA)z!чFO-p')}(˱Zs
Uu~7
t5^WTTT߿fϚ)&YY%xr$ٳ%9Ky۶v^]/r]K䢐ǰo eRV|K8{DMMloo'f7MTJ:O\_Xf:a*m#R}
;">Cs36̡̰h)1og؈7()766ox?=ŴGyd@h*%G|AKY~.38'M|_Ÿz;)o۶p8|ݞrzk+>-BAӴ'_+>FұAZ $`qC|1'@c",23?m L4!*.TdnZT	IENDB`dvd95/debian/dvd95/usr/share/pixmaps/dvd95/dvd.png000066400000000000000000002173071140003301000217700ustar00rootroot00000000000000PNG


IHDR,`.7	pHYsgR IDATxiGr6GDfUuD NÛ!Gsi4+ɤѫ}ͤ]۵5[_֤5oH'$иudF~̬Hã`ʬx/\5^[45^cxA8^5^cxA8^5^cxA8^5^cxA8^_4ʾiˌ/WjImaqfenyy<ޫj$IӴl6
kT{ZBp;x-r9pʕoܸq+Wߘϲ^zu!8ٻwZIx#&#4eSSSSSSm\f5k7l4555њl6A21߸q굹/;wիgΞysչb!s91TٷfjkķHD,.v<2qCsy[PE6ikfֵS7n^~nݰaӺu릦Z>db79N;n;v+Ϝ9uٹ׮]vZ\6DnONM4ukj5
c1ZkU0J @OԩΝÏ?s-vnP=ٚm
ֵ-6{>D$UUD$y2HYUCTcM+=G"P8"Nr._?usUVUc5wulݺ6c~ ͅٳgO8oܸffjr]vڱ}5 @laɀa4ڦ"RQ5T「(""hQE%E@PU/$^qԙN^pDkj-wu]w޳{6o	? #^/;{g}9rҥKכMYvwھyӆDZǨT"PM:\PȚxA*짪Ʒ+_E""RU5"X&uA;{|r6ڹwv'7ݻI;aBxѣG\zϟ?3fggnۼkזɩDS5
skUQnT~"AMcupKR
TGWUFz}ENӦ
	pencgN_X~m?իcv5e1 Ox?(kNv{޳gO{}0(f#A! "hPA@!%DaI#G@(h.ay${"M4iP^EhM2,>}vͺtynf͆{{wcǮF1-JBދIpʕq  #r(mxBg.)D3K%KAL٨6u\fh/D칋=~53zw-[ǻhDggΜzO>pmm޻mmteQSuDB ij}BTQUQ!eFԂ\MB*?G
Jdvt)^%ryXh˘Ly% >iIzVsܹcNH'yǿ?{vK:|>x;gϝF33Svܽgך5ӠιUknb&ƚs!cɲAĐ;nj7DT@A t%2 F!RcD2EUZf&"D̲s/Bȍl/]{|鱓'Lλ{v!cۓ'_|!٭/~:=3nM(7HlP5&@DWӆE!2%ݯu'H
@E|A5 "*A\
0L@1"KQcs5ѰvB$A)RzUPɳo|ӣ'֭[w~G}{;o3fc>O~kpssGy;wz4lm!*3!rt:T(aLT^	(_Fƥ!O[(!eAXn:hD!Fa,YgM*<  P `3^}n݆?|{}|:1kʕ}O?'^|׮?oǮibD3̐WE
U
%IeY3mYkEbՊ]T :>F@H5hK;
l_+"HdkQr"Ԉ((&8Dx$De.gL"DPA+ nfM”~/sSkx~cB>|}ׯ_~Gyl4Mӓ ]AcQEオD&ykX[7JH$kA t
{*"+pa<$Ub=眈 2)BSBDQFF#ϟ۴i=C=c~KAIr̉g/=;w5}޵|Ȝ˚gfJPTD.|'i:^[z_zͷ^t=pܱydӲv:"l2gL@n-##?11IC,;*(J% 5b	/BE!@!"D5_#r4 :acqE
>QhPUffs"9ED՜:{⻇,w?>UYpٗ_}.ϝ۶mؽs+`I; a	DF쨂
"D0I~Eg&1.xXwyUA"A*@B"s{>K\E$jq'*~*zXWUx*
( 0==%K4m4''sݫ.5mqw{kʥ#G۷ 6zYׯ=/~|tߕ6HBXU9"`f+"DܞBhZƴ텅B$hKj
lL"ϠJ`A;%bBx(v9KAXBDcalJ9@tYe.Ic Oo.GDddBs^,"޹\	:֛=?OjNAM
;3>/\r~lظIDsCd )jD	(
hD*cIeee-<^t$P4JytE9W%M+!.c)	hGU*"l6,D٪zFQ~z*d_Uc?٘@OxgmG?[UMG`k/?~͛$)QĐEHBHDD "!h*E0DH QiD,\K,9R.zma
&&H1SVaހ]d1["R,D!JDѵ.X$D,{]D 1 *xiM7ojON>\?۷!0x[X~zPEЊEbI`'
"AYCKZEz!!0OS]Y
##7	߄</g~ع?+!  APMRZ*ҿ+nH%B'HrV"23aX̅{xmϖ('1O"BK:+KR0DFx/+{ UQUETJjUbvΩ̦=1ysjMl>?t?_nݦM_/gΞ|s433|wr,a׀1z <
VQ"1Ec"&ϯ+ 1X>8a̞G*A7\
º2"R'X(S­UzF)A\>3koƩ''fnacs?{ߝ=<=tړ-B :*"
WPf};Rjm]8!&"RJ@H%4+b}t@ಔ2 ,󘦯zuk7|{.GX!x4%6Y`D΢@}-[szjޖ$o=g>ӿ}7%,TEIY??~qG#d,CzXK=?-O?t0m]t'տ˟ڽZi
AԇJiHЪ`|LRu,YhVb/U׹J0ҍ,ĩ.'^$WDRH"8l!8f-QdPRU"ILAlOPɀj@a$fq% 032X*؏Gb^%(3%$՜`^HA" !0];ff3
wy״G	/|aK/f?6NOM}b$@Rm5*Ā$"^	 Ty)"
#IZ܊/hSU`QcLGR˔/Šhl"!*taP@Ks5@Aвk\8uxu0Pjv\TU$CĊ+l1S\q#]SBיYv_:qپ}k~B}moO6~'vlgKY
-,<sR1%%ޗ_*Q✋MJQVcE#Ee/,):4)GPZ)ݘY	K誎*Ƙ$ID$8F@npm[{~Oz1SO.v{;gGDmTa{}"bB/B8Fi8h2tO	_̂0r#iZC-:CYyʸH	6[1_@]߹잻W
Ϳ7n[\[alO6<6
Ui:fV^7󜙭D,Bᑚ_tUee3>_P+}_;C')ޘl6命#=U!*z՚4MDfIsM$2\j+P@R3D% -Im#`Ip IDATط\<rPQOZJ+/$Yb"
'\#N5HS
E2)BP	$YoO!ܹg=p駞}#1c=zN3rM~
!d	y	W`aYFPLSjIEXk<!ۤ,WDW	: h,sY55\I "j7[̸ h!殜Ϛ EPPl1ؚf9=3g|(_~dAeN魷z+׮_{ضعj-US[5z1^}Q0;fCd:n߯􊃉Ke@xˀjxC%UOU˱\tƍ47jRD}EwUVc b(i4s29ٞ$k7(H~{1O?ÇqՍW
'Oz7;ޱ[hOYdϜ2SmS-弢-Dkk_%b6-R,U
a_"jrvexLwőN5C8eGUC?@9@N
ɠBY#G"`^*T@MxBе	PPEML4,s7sADF3Lsu}G>:†j 2]k쳿]olFֈJZcRQ^@
ۦ! xEOȊȠU 2P  !bC"ADbs
DE4(iID$sU%fOH(A|]ɇe9`B@ؗ= 0s,-IU
R
\HDL.4!y
M6)"@@VZ|8#-1ēMӞPATE&F@(>g[1
4)Ml0y ˂
2*j@$ĚzDDLG>qG+V{߿ivMӓS	'd,[Z> P@!()dX
@U2.jlIțGR3DWkV%ZV Y/4FMX8+[]a	h̳)Z֋R/2'!$yW._BJN(jPVe@@q1&!I .01*{!Ad4GZC!^`ѳ=
bFVUNT|AcUeGL[qjV.oy(sdlGR|,V2I~9=rJ
U`QQHD!8kyjmݸq=3rKeUѯD
0cmmڷѫ7/X^_{WmuM"X2b@"Fg)f
wςHJDȄK^P:BGf^^.q&T<ª7[UD<[G˴^U_qEe
Tf"lCu'G(	}n B*#6$i$i6E0h
$l۱MFQ#ljfä	2,(!4!	ٻk
}o|B8?ϻܻM5UUnIRW
u#{ER"$z2aTR%wzj˞Lzkr'i)d"A%\aD2NtbPŏA@UQ
HGuW_j0ƴ̸xěrt0"ZY""%24{b_~cl…ou]{9lRS-#ÁLTPJEʩEJWc"6J|yx#bkC֚VPCy2P%[UJʵoZE|4}dMu5[
xQEk]:LRY'.j-_ϲ0)wy3r 4b1:"rJeHKHI@[cοW/}A&=vknMh}4:QD	3׷fwnvMQbYN
"5
yGywb-}ي:YT\E%anf%e-/SIM%Ie3OA͋cD,t)X"6I#K1rϬ6={w̴ʧ~b}{Ax_|qvIW"ZU[TƂ1oQĉUDPьF-QOhB,6MRQ*Z^%T/.'%VH`#H,T۠몷ed[GG;8rSMLvۦ5mўo61D-e_@XNB,g͗ipGiAorX҆DT^)[!༊~jl=/zWΜ9sG>zg?cq4D~4M+e}(U3"P!ZOCeʈ"Ho5sBpdl;{̬zև.^N[%\6,%5;\ഈP*ƺv"/Oȥ֌/QFB!&Q	Uٮ]hC1?عz}w~ÇG[“>3رY6733i?rIfՑGHh-U@/Z\A0e_Vؔ6RQ_q
Zeʱ\a-%Hoo5*:g9
@1EӴ48G2qLA
W%dRu\|=ʤPECTeԤ
HMD71
맦&wݵkzfW^O3J[ C>v{noONp.\ ={id͉o}鋯!V谜hf<#Vb%/Rւ^[ɗBU]
+(o+DĈ81Ifc˽^/^ZLRj4̞=Ν;o^~[B":ywNR~ZD5^z?F$"lX[TZaD2ELDE4V `bEC;1&562cz*>d+V3cZ7KaՃCykdJ$&MmCfY]wr2U5W28l	%Jh
6`~+q30DY7v۶m6m:r{O8{-oZ5OSCYj4~>[03*Ci(ۧ`EU#
3"XhJ*KԸ)2kT>	;~`91dW.5	Pr&|rgb}kI	4IKWyT
'.,j
WI!8̖Ml7eEA_A* bL@QSq rxJ/'+`@e&i$z׮O7u0!-4L;c^77;^?؜r6ٶ^&C?z(݅n}f,i;m&zN<R	!Gbtm K)aCPp!yP('@|w=TZ9h11d4(j0K@U$
E`A4:bvXU~3mcH8ՠт%L9B$C*Q~[Q@2\_ԧ
} E5_UГ/b%,3y>ٞLe.@5@$
MĞ"c|D)Q$ *+M*5F,PU`Vqƽq&M	dZt)ÉUrA{$	Rgם֦^7#;wnuij21xgY癈0'i4@_rwG8R$ "YP(~3"Ā' Ra	{O{/	k-z!xA\E?h-gRT<
+18W@ZJ!jY"Po[y(Kkcy#M$AaePC`Qx/ýC͕1Y~/B5{Jf32z
 80v+,?JZquQ	1VJBKl)=ey/2Tu2{XC)1&M={vM[iJ!(S*EPw1Z	(4j6(1rULQ^`ɢV'BiL0h!Y|	4
senIM(j̫,ebr71^!2k
)~8ȑiRFDTsb
!AQ3'
(QP%Cpwm߲vkp7lŋ?٭Md$I)j	GwrȌYBBd%9Q DD`eTD)ۈT%$IR(^W\EǓQ$n@KBzD2
3eM(Q=8ose&ApEempkTG5;j_ݎj`F03ƒN@Eg\E
aiG!8ֲ*ǐ,b>gy˲^E-!3ZGʖQ	
#VB
νw:}c4/:tvc0/	TAŏPŮUS
DW		*_:,qFFDԫ`Z',kP22ČA$>%Ih4PARtAB,Y+W{xtQWuN!?s!B">aͺ@	cBrֲy1EPD<3[.S/Cت+61ٮJQ< 1ETS5!>d&$T!Ը!B~H
6ah-훧gZy(i/.:tnLLZ_V
|f2H0*|fl
ٗ@n,Ik5FVGË`X䢈(f	7~ÆM")Ȁy64cZ+#+`H(2KƲI$,٠ "jPYjF֖V#w̗&])\`Q7)VU$h
@)R5">.^bcHiIE爀Pب}?3&o IDATsoݻsfnjR_wblKDy
QBeݞ%n
C,"`wSf!(+HLtekX`t1|3A!8I,ۄBtH66.ˢ,'u(
(
~*fSTy֒hؐIriP"n@6IyQh3TyC66YNd&ش3S^.D06RL$RT0sblql9qYNgng!$FUDz+;[>)92rf2L&dUtU5rԐ\ڍԲѶ6d7`mCnwɒJ*$9D<ᜳZQ%~b<$s޻^{}9&jT";(
U5V`&qϫ~t/xP$B!iW3t1jI u+0PJPMCZ/Y",^K]P-?粩͵[
ԇnY@JyϦ
F䁷1zu 
{0ǨGWv@:-""UĒ
~AĪ;}:"0`H
dY
ZCDn]+#VTVUPiZgQhv6n^,5sNNL"L^ݵOBDE5
\H>Zy&iNh"˲ݝ, >^,K`]I0s DA\?T2UPiE(qWL
*1HX VaW)#Pj4g@
b65PD#`x1=3yvgofz^|ዐ߻G

}I:fI@cPX\T*~)DU?0"BECFGh\M̐c쟱U07_~җZ#c`&hss{?99YE"255.^۹~{=X|СCcccSSj,%Z;Y-mH&PqRrJejf	,^ 3Il	L5NӘ9UB]'E@x`p{,qz8͌^uw:_"ظvӉh]pTcHG85-"552C~)J&$aǎ
/ѝ8Q13AwA?erAbƤ'3$( Mk ϻ%*	%.Qﻝ&ƧVWGFF+Ots.νTkލ[K\tee:=ӧOzn{oooÇO>mګ{iK߾G?]{xVL'r>H&UU	8ιZv{>);3x;s
3\i04`&fA"9r
تU>K=XJA+Q<0(@tz@=yPMӴ-Zsaa{׮x;\xեNeZ332ɂ
DTl˄bU|]	g!U`3_Gǜ0+5u	E1rX	WUA~e@J:25nCsqbdi4I-A\Z֞
_ڥ70ZF.uڣ';wΟ;]8zGNԼIͽwy{[fї|ԩK˿ɳ>no=z^F]L4H$-sr؁#s.MӨQ;P5e A29CXl?wUUUYq1Yhϯn)`6׃i9T9iu~bb>|ѫ߽/X__+Y--1pʴ/~`:7c*AX| )3iLA%HG)Q4
UQzJQ
B@i*ϒ}fTFtk֗?~;_/tYVVZceBJrܝ;O]6pl<Ro6znSd댍O
nln6[u腥eY[_iw;W~޽w_-[d|٬g
TfL.$CRMM?QTT 1T:B_ Rfy}~-
ql&	$hZ:tד<<7Z_"ٺxLEB%eY"aUR@0"$ÛJA:c0djD&L.M%A	ȑUX$#@ZF$)zSERdfN|)fĜ0/'MSd^r՚7ߑ_8M0^P:(<_P
c#Ӕ_x.˲4677J.gzvLLիn~3]xkSӣ#5NSȦЧH&Q&S'\ j%RѨ'	SfD,1&sȪ"f2;`1qfbUtC՘$cxZe4eB+%Y>%ea?sGyZ}!0oC$tљN"Nȼ((!B@fT! JuA}P*
s
scYCePω2!:e$\+S (H0P>5vַ$^iƔ8mLNMݹxW_y~׏>s폮fNPO;zc.¡ٙu{{+OG|xc3vGOt/yjr7ޅ/~W?u(MlnO=xxѨ3xÃ#5m*>hdJH|]Jn/4V=[Y=zޒZVJظ`q^_____thً
aT4M{^:Mdvvرc^xU@d~hoGOff'oֻLJ#O[^y\k&i;Y"pkQ0?^)Q:'ՊMI 	 aB5YC)k
-M&`T*0.#4fHpv$qIj^Bzю$(CztN_"񋋋^9̈/5]^JY&fS98Y,qPP
:N|jjL#5#`ƃh\" 7JUѡ#J=Wk6?^y?Y~wݞљW^|lmG;;;Y=v̩'g4]~&IRFkkk[[[[[[n(w9rǏ/ޛ;455s1`$O~鍋cǏ$_w{g_esS߻sΛݷYVICCHI1ԅC0@HՆjU
` (E?P	)"(#G)0Aw	Y
pŊ5$$&\qZgj\xEj@
Xh@Hvjnt/̿rdϜɿƟeSΜ9ҹnT}'js/tnx$	3u:^755ŕ̕rv||{᥹Ç^GMNNZ\\LӴh 8)e{홙ξI-νʵ޽Ϟ=Mo?s*L|'ٹ?EfS-8^!bR!TQ	ML:NE\4đњ-L#Qh?H BK"DAc3LzjfViQEՃDb%<;?ti/z	Δ3''r"|Gǎ/	'B/>~Zaƈp 	d8NL		PQ*0 #"*F(hPQh&(ՔGi6
j<1s8!0`fKyٝ?]\8G^?RoN}v?ϮzW^0uN~SY<7Ѭ("1WlMcD$P6nll<ܡC!Y-;FO>ldxRܹ;=3Cozԫ_;:2R]?V
03#2%_Zj>1OiR&f`+.4f
„f1b8@DP|V¨5@gf,
!t:N{/s8fgTZ}TmJ.uiw.Iڃ	.^P)¢{[O?gFVMH^0س|/IEUoϴ|evf}GJNE`9
Q͑{%=9Jp"y@؁0ؑ1#fU
wK"j"*!v>(?:gT#5~Qq~h $"nwӴ+ǧMQ[7$;q"@IXF?H<jߞa[U&H3DNQAU4h~`\jeDP$H"Rc60p+(2vZuѽgnyhjΜ-L^z?f,Nϝ|ԩӧ'gY:B+g5y3+Kͺ1S9411:^[]ݕgjabblfvPR67ϝ=?5=}ZP"כ^6jLJ0##&vuh	9FĜ)'BlB&%djBFfmI=.oѬBH?d`7ٗi,uHRvsCGMEȉ{ַssS#MbIkXO]L6=0XA@?F>
BjA->#EYPw2$Ҕ"KMC!(LH.ЂBTfsӁӻۥgb_>\hWj^9wanvnhxDsBDZ6*LPzfhBbG):1'I677g`3/ncccOϻ+vԷV&nolxrw+'Ms&ʦDiPEdͱ3N
dd2u
	%}	U+2#Q4&+-pVɵ㐝"*	D@ql
bGUJ@"D	,hყs_8}q/ IDATBb/_GZ5"q)War6l`Ϛb`]iTDC&" Qe B B}TƵHDKN

Ճ/5oZ%ihWv,Ghb<Sw~×|>1߻|GZc~`/}y5ByQeC@B lSs
.N?tБ7@h(CY,9[[k;;333Sŋ^ov~ժ߾s{||,D={!KZysh
L
"X	K`=ȊU(J_,`h(k{U=ƭ/<smVd |!Hɓ'+D׾nc>"_<9|tJ%qx\Y€/
=bpkb_!SK45S2c34Ⱦ3
v4ԂH&C <9$drAT}nEفuZĘ$j煪)$GT?ePU!ŠMDb, } Jt||ޝOK?
ylyyyccchh(Mhb`}0|?ol;+&)bA͘WMLⶰ/uӥ}DW9@SP1PU13ׇL,e/}Ws/_wKKKEI#K.5^mf`e+n* }{-_g
 x;U"
G7ַÇϜ9so߿sڵ:ungwlbziygbj[K]jҺIإ	Fu,y$-W='&"zPu 
}Ӿ)DVWj](sDiD	Y~$PP
T$1Q4Ç%/Um}}ι;i zH`Zi>(-*o,HCD:-bh	%j2~'dUX:1
HjF}hF*8"2JiHEz+@[壻'7_&Zc_y%pܙϞ|{io$k?r[cz=DsEjJJTx	G2Z5@@u*#cSĥ
A@ǎh1}c}kbrԩSZZ'|OG~W;Ӥlٟ}/Okj[k뭱b2z8Wbøً.4=zQ'fr`L)1"hb&`l``4"T:Iӊ;4 b!>yfΛE4HL"94Ңi-
Q-E"1aY=&!ʘ">K1(A9,Y#4($*sDY@	H=`&YIJ!ʙzmnm߼~KgB-w?XLCfsmy$6nPuq
CL-C<ĂT4sL0%F@714@&rjv#_&ѡ[c.H\;pxkϿֿUGN\Q`RKA 3)}%	'Y,&gΛ'F d(DDbKA$>ay	An=l6f`C2$Lb뎦@RMK-FtHPDߐUؕ1,@թ+}˘>z=-BN'O	YkiH AbcJJ
Pe#Cf
\#)#"`AՋ>v~i(	q5#^M+UG H&ş%1XZc݅0rS_o9qvm}N}O[L/,\S9H" JPV5U3X艆m3"$)	Z@qNUw	`a-h̬aՐV[ȡgS3k/ĊB,.T'S㳳s3̥&%.v*FW	/"4M4")x
AT'	'&ڗDT.WJѪtָHQGp(X@-dfDXkmwoo	9~xz"vB͠scAʲ,lnnloow]p$FchhhhhhpDZ^^t:L1@~'$ZPȲl@GwvF;)J>X~k/ٹ?p!g)fJy"C8*q3dUHL9 -.
E-	haSMj FHD1`?UBP7cr,of1)ѓ'+_8ssy?!ۻNƚ`h5FFF4e9Ewz"BTCOAcBxeYGJ*hhjT2Mb9b
teMHdb"lck*fVZ@vsۏ‰hl可>[߼|g_| b(}=0EO$A,tޗeYN!˲fh֢>2"{{{SSSEQloo?y{?111;;=EQec9b
AMwc#/]8֝W^:ttgDxw{'ƈI1Aā9
D4ؽ 0C
JS*.:Q2*BRB0DǪQ'ScXVꌎc2-//ާ{'dt:,i
z`VWV9ηz99:fND$̈Hu_%R~̡F"(Yǭemdl5O?Uol?^_QG'uN-IYD3/bgggyyyiiiaaavvĉ=$9GA$H\#q<3222::v޽;wzÇj5}ۍ
{O,dsv-䓏~GO9u+/\t7ӤL A}#rM$x#`j
@j4HF)UchP	*؂7Ck_BfHUUt0A4(5,\c4M4)^Z%Hs<!A%5
Eʷwh!b<'CIDEm6T/c$dVD
Vf22#@DR4!@VHWPMrԪ/[MwݱًcrXQ0"R0,!lllܹs,'N9sfaaarr2Z*7â({^ۤmcbN%.~Ǐ$#s94V{k+KO^{{νOp舳렷BSc5RU8&쐀SLDEDT$q	JeCJ adUj}!qBĪ$,)`BjmBVܪU=pi'K"摑fk8cj%=U;y!:{mHhbAīAT(;;;#O?eYeBPLB)' )I32aBsH`*
iVsДK[k~^`O'Oܸs5Mp1Hm0"@,ˣG={ĉV bkKKK@;wm6\՘;DD*pǏÇ,*t̆ggg'Ư~vܹsy{山'N<7tgi3cŒ|YH@fb9=P6h
d!|ևyc6y1X\]`fILz/*ڏ+Jlι4jZ @n{wgm{tiuyuf>=aYnoo'	`樽:5~x@*ׯވp$I(;B#U@Ӥd* L*e	RA8Cc7vRwɫ_~G?^zC'l[Rx4J]ZY%*ʂ?~:77w'O:ى<ϛ&,}ieٳÇN3;UI5$qܛ6Yr]b{8'3\CWU#	p(|'϶r
+ЋP?zhG1`NyfݪA[5<}^{;F~54dݜ$Nszyiyi_C~w7n7\˟?]vPR2sޗy+(B('D\REU	qkj#xTl"$b|vP	G"/c$;]Vf$q"E(x<1"5jۻwtӒ	=,EY:e5ZABS
Փ-z4h4lZs4ʇ}},:n 4b%DL)J<'T 49!q59;݃!*W^./^^\bQ3 fIT6*߾}{ff駟~衇ֿn-F133cA$I|p?ݵvb$i+߾yfn۵o%2I;x`4Is`R1JX6Qʈn'UU&j61HHWs٦=HNE$
0c#ke͆>idIU~`gow8@"CICCQ!rooooojr~2!x<!qoaT(x<2r5{Q=w( 1j=JDXEڀ.ѨVo4
SZ]Q=Haww0c֘J2)#qB!5\^Ɲz__Ν;_6o_K+K[&QR"0QC,rwww}}9?#F#Ƙ~0Yޟ:u1a}140F,..F㍍
U={lHĠ.]ܼu֖!Yߖs^D9r8&V_{,[wַbQE݅rW jɹ,*QD4D)*`rNb")#QvB -pW'*͞:uhj ]eagiSrWUTVU`T&<ϝ+a[f43fN7=[s"_Hy)S4=lrelcܑhyQ&l6Yʼ2V8P(@ԻԍA??}%uN`k{Cio8{ٹYBL7Di"1
oŋ>%4Q~M3'y1gu{i/]-:]^*ֈXZE#?s?i3/?w`R+\=S"1*ڴB+kvXIvbT`Nd¨|LI	1~#"Fx#'Iec+}81J$<1LcPQ IDATYS{;O"TWYMX\ijܡm
Ȯps|(aȓF?Z-wNUUAE@H6Ɏevv\:׾|{hqaa7eY!E&Q	!777gff._<77g,ݻwCss1|^oݻwsfhx~7|s{{{}jAhBcQ0"Dtfu駞?֛_B.\:HBy03WbfF'
=VaHNY2(0aNn
V>(#FB@:[@XJ)@*jWU	44Y~2a'6EY rQBEZiGFC@40ʙ4y5OmHDq^RXȓa@n$Ea77b&X"
,Q<0;'0cЙM3.kwzsHr^iseYviQW0Ѳϟ?lo9in'Ċ$LnmmmI9ŋ޽zCCUcόMMDfgg?襴k73g S7*K%H PN*(cj!`NaT
FңЩBԨJqEDXZ_e45B!*"Ds<
AIEPa"123cQYIr3'ė@5zHP4D	+, UQA*{ ctb)e@	AD͡Khk3O"!jQFe'%}
cձH,q(%;yT!ΦO=s~a5?[{.=mwގK\92Y);B2X۸{WD}f`0{L~66O/8/("RQRE9*GR4
D@rHUd@+P!jvb(8bgb*LԁTc-K5)Q 1
KR!e$̘$I窐$Ylc$)=e9it'7B$w+ D ⩞!GO+m**O0@4u$佣!
6eZAfgbY Fԏ|8Z_8q~B2qan׀ߢvvm6$T.p4- IFa@ H0V1bi
LX98Ҕ@gF{S""rhu}  ࡼބ'8{yQ(a;!PZ$"4og~B?36~j+ڦYu}xU7tމ'xl{ډhtQ+Uı?a67zvΉPѐ\	5ְ0Zf62I|'y`u*Ya#ud<Q@Q,*Fnc1{FQd  v(Sk1fK}
`8ۗD
j~Ӊ'Dۭ]k{1=>M1S|z_2yEBU$qe$C85nkʩ[.X-ERx-:I( eYhfA""I4gG.6}
E^C$
M羽ͯ	2^5Є4(x1 OY;*LҲ,4]^J}JoY2ӯ߻auPo}蘹b˯xg[{+˪$IM{fNJu[ӆgYm[heDTע$0R®w++_CE_Onl\湕S^;;GŨ"?V HE
QB4  ;b@/x rÑ.$D723kpZO'	k}$y^[
Oue޷(e&$%R%R4?Zw{	؟Y!,
ֿgLЦ&_ۈA0zZKJ#@Pwi5Hz3LF\PXj2VH6(obn]50sz3~L8YxDnkOdxĂMi{c1ǖIHm} |@VXBUG\BqYl.Zhiƹ1{ԳBvMuB㽷oaVF8*)4)bh6N?,C͝2?8c
!xeBDERVю4T@=h={r k죩O&}Ǯa59AXw
u^Uz-㾏pwrBY;s9etϽ6l6á5dmF [kn]9[L]sէ%Y"zOgjDp21cw3$u~Q#mt.t1(꽷:gZOҜ4u$;'|3͇bec,FOn0+@-F/>eʒklV`??{ñuf庝vvv`ub/"KM7lz5"@\D斗ۗBLĦQAj%e8]c|M?|@z\|Ua*	/8t21m{j-0oV>xʯL"AֶaJ4o{]ǒm-mMf497V`MЗ~?M*ntQzbQn7I@$r%I0TsNQ4ZS޳^6JWQ>yPN;XIۑ||(ɊpH&Th65[>*G4-cW>~?O0{KY!Ȉ $	"nnm͜ot/xzix!N/{c>$QVkffʕ+{{{1Fuڌ՝;wʲffk5V+۷֗
S!#%@D`:*f-fSo?1%կ܎?q;I˄`{"N_'ct𓜠>&NkimWghZ*VHco4kRRuTJQu"	3m}$J	6+&C`Y__?88jl'_"yn7"-;U~+O#JYVC1sossro[-@GgrZ*(ǟj{#&~+m3Gfaf\H*`¶iHO:*D!rQn51捌C,*Q1M۲V?DŽ1=WH
"HP(6@@xx 0MT)0#3GZTf~10q#Q3ix~O|ON.-޹6嵍f x\QV	k%u&NϖW;N6n߾|z񄛄S`(b,Wloγ(hAʢ,Z&D,!Kep8LSƝ077>>?vvouI9F3	JP&cDY*үѬ'	l$D`7MGӝu]Kh<.2Ǔ1#ɢ1(*pPQBfdL$qb?E4CAPVu됫Ņ{鱃c9ԗ45pnґߡ,KG8;82;DvZ!~ggg4"9L؆"	!@$wbwiz.~񩅹ٷ{Ce9777ZN+++[[[W^}7N>;;=^[[k̽^PZEfYS/)c~3louaiդ_N-EIP`2VZ*x1`_J8AH	v=6G&p_4@UM)8Dvv:L'j: †Us.ƂFVo?45]^ž)MxѲ!h
Iy}µM(%P!E>7o#H'P!wש[U!EՔ}k_\[KfABX9uhyvGU=}kzw??3HD3~^ʕ+~~~~Nu*1!%Vr=n/nA~0jP q{dAAQgȞ~
*(9Nwr&^xH=ÒIfzA 2GaTՀ$I4ͲO.ewjKD*X,|/cQS!@ofd9kpVx1F!\ pU*B}5>fа]$ILDާ8Q=G08lJ;GsF0(2kDAǡL@LCzkn׽y3K2/MQקܹsY=c=eY,zoٲ,wvv}ݲ,MJDvovS'?鵅ӃaH2AJ_~A%IXM˘T`JFDL!Npz$B'@Fˁ8][A tOxqvvV5b`ow7ZwDeYvn<4R"ۿ=3}>h6V@ F8 68N)$Ih&;w܂2Bifb9U^H-CE.h 1PZ4vPH(RX~sOr{瞼4wի~uAL[GsSO=o~//a`ZO}F㰴$6ۭ~s{뮞YC֕c:'A9DyP3n6^}g|d4G0Q":%U@@=4[
GO.B>JkW5is;:fTmVU#q&!7	LBcuwcc]D$H1@3;77w啕xm$Iz^>:(ct(E4QX!)!WǑ̖!N2[>v_	SGֶAT6Dm<:
J̾¸Sv
")z$ ܸ[;KkYw2#T(	=7b(X c$q !򭭭>;x$D!
0{mWT$H4*ˤ	l=+&@QrԑC)TI&Ap9G"`0LCS@(H(E^Z&p.j3\<bc֫.s>0J2,->5LRrqEQiXyҎq8渎BTw5H%+jr&"ՔgZVbԡƢ4md
(A^wOtv[+{g.;|qӧOۭ=UU狢q__~IӴH|0w0il×_~ogϞ=N53	Pl`p#p\l—~ϟ~Ze*q`/i'T)4md~VbP
q2JT#vuJPb
Cٲ#1V#yHeE-T0;D!FbC$3C|ӹa"hoy楟:~+?[jw.ݸcO۟g[f_03_-9/baa!MFqʕW/}XAo޼mx])jܩvtʲwkzΝ;}tYug=:FDNbvEogΆ>xh4^XXpR+-@㨌CW`se6O|lp1(.8:"F1cKJ!2imE1\9"NF&LsY""B$tL,R(fLX2{PV!jȋ4k9Eep"U|x-쫊m%ϊ*!V6s0k D+ͽ⛻'/[KϝADHHtH IDAT "A%Gk3k!1D1T윕"(aD U:d!*PÓK?4:9ZƪH$ڥ؍N$	FeBHdii)|\h$"a>I`ZUcՌXHf
&Ris+xSUcmhJLIJQ#2`BcԑHpn/מK77̝=.+=iC[HZ"Inoss{_OW_}g-*YU@O[XqhmRfW)?NO,,:}tɲ3^ZE6UvOXF#"j4fVCSD84
r;֞}/8	Y]\[ѵ[3AA Q<# y`iHDDG
EQLS-UVZSP'͕.;>Z(q˔FN"zJhJ-DONxgBz@"(XRlׁbqz:>@&D\1ED4	z4~$:F( *+!1#%	.#8L%@(1K`ۭo޸8;ե?O/\077h41-D!Վϟ?wooY+/lQg3uKtWWL˰n,--X7^?jqd$9ps3-o>?ُNwܖRcŽ`(T-}"#;BDQ qfr+Y>
"0ruYԄ$->uewT&"QٗE4ÉXJȥ[!l6Rϐޤ(ţ*.˄L.%sj?l>J=EDf	`(T)
*)c+#Cq,sKOq;76y
=䓖oCtŽ_0QvZ&63,[]]]>l6WM	wv]ŭ[(2Jj0+{+/߾sV^޼suvcf@d,AeII1(QX"8 
BTAPjAr>Q0VD
褏1
:&8#0-K4OVV>z~eʲLRR5͏DH+jvF"&=:ԉǴCu!dwv‹"QD릪|DDvΥq, DȂ"(Kt9cH]'Pe`Ȉw6{Eɋow?;=K;D"QTunw)Bs>I!4
(&4jV!1].
kٷT~CUcD$S\ah/Oga&(	䱔%`
1%zR|T[;O=b2/˼?w3gO?s `$81؀0%JģѨl6Ͳ,2WxaFlY}}
Ͳly֬]C!=͵2wfnnoC.;f{<|;ߺ{niՏ:N
	D$QL}Ԑ2sE#	GRUшQgf"P5KTPT3WDBԓ={Xu5c<"3A#DW7BD/#-22I Bf$lF/ŋ^暈r!2$Q!DtD!ʞ3:APTեRs}Da\@Pb gQ(FD*PLH($D"d$hX;)YH=3cD Бr12jB`޶!".ud'
jZB  T)kA%!@jspa(b$̈)p^:E&D$FFa05ucR:-JFe
DE(L:e?)&N)k>
4cYssQ(kn_~ngg?p8lvEQ[snsssBG&nDk*4*VzXzp
P(YAV|ږ,{^~S+&DxŷzG/_ݹ<`c}6|!YdWbcH ,
c
CJ\HY.	4QM@@^[WAf{Աs!BlF9J%D$yv!8g*u`jۈh^W;8羢} k$?lbf9ĖOYRB9`q,GQƠ4XBY@@9f
+P@$]^SxʠX$ ''2
 MlDP#0"20ZC_Q<勓%TAv'	qU8Āx?#5.rU4@1Hj3hHYU%H[k$3,#Ff52F-sn)kucʡ"alUA	䩋8C""%8.Gn3ƫo<|qk,k~k^z?η6noH(E'L Uka*q;Ȕ jWƎۼ}^wj
يR,Ke^g}oa/̓.-i,/?|kՔbna\BD
@AQ)BdETPcj'SU2F@ĠND-:DrUp&B8S EH	TQJDXCښN9X5.--}ڃPE,dyy7;|'I)ǹ A
@#@UzfFENLAmZHI `VRG	'	5p|cc}8
#s(5(9,#1hNB
 HQX+ʊ"fNqTnb\uo|{77+o೟R;OWv,p<fJjyS{0rJXVvV
nq4!?{嗝sz_{ﮮ+Scmo~t"qe,)H HD"b@)@cD2WNU@J f&B	 
!T$9 AH4
.IdX+ ّ@`bn*R~ɧ!&:J&4yz7VHRKO0TP1	gY"((QI$FHUJrj;:RA,M
TB|ccD	DDQJ(10u(%W%
T^1#P)O0$dz]cf$w͛;_Wz݅,rҘ7UL*9g4ؚ`N_a7{0D B2^TB,bvvW^я~2כ?Yګgf:gϞs"P%L?GUkq\^aHD+j
"j5~Ν;G_ÕU$<[F#<-/W$\[O	,2;8$@^ XM8pP1zE.D1LbizNH1B&X
* H*(fD:)(IR%\2oan'͞$3ϹƖ{m(V(,"p"Ei$RFɺy1yC[K2v%
Rr'A,$V[VfVfDr=>Fd@Rj?ۦw0\n:!pUU_O_^QJRpęF!0C#$eur#BT!c"
1493+<CUl	ߚMnMggDMYRȔE	M$	ZKp4Du1
p2uk9z=>~}{swO\Ϟ9Cݽ~{{<^Y[[k*VM8 %xWs\iZZ&"pa݅YD->ϒ6h)'?_,.~{{ӒŨW8UO~oг^
i[j22^``
w0YPnM->XT-1sb3vՠ
j:Ϧ
Í`f_0s55"PKL	Ly)9 N޼z,?9`Ez|Ԥkk(ư1,Iϝ\,$LPJ`K$ܖ !"+
qa\ެi橮ۦ5s0JH[Җ-%zᑝY-ĩ P*
C
bP!Eż0/<S[㣃?\ٳwkpX_mxמ~S;77Fh4fyz;?ܠ2_N!Fj7K2'9ԖE0Kl2~N:}4_җxi~tX4gNLD`C
U$Aܵs`W*8+FN'r!b&!	μ
7gz~LpYPrOEܽmj3X@45j5^Ï=ǝNf~̋\A?_~/rVA*yٞތȋ$p w&fa:9KC9vXPQxr[ly!GɍN\WcP[~P2+Gb9p) j!7H1Z(A,$Т(ش׾=Y<{jg+'.f=ݧ.j{TY6SJ7o6MMBEbA$)	nnD1"FMmC	pS3cfQٳk{gysυ{|.1QJm=Y6o\~3M.-B`affB~)0EٮĉAnp!SRZ2qDNmyҖs}׭Vۦmn\Wml"dEqQDNf 32٢Q+_~΂wƻǼMzկ}SZrNr!tKp$&Q204XRq)HZr8llG{MEr&ɬDWZ<
!xљz4bCP{,s^8H. !pmڍ5K/]z䑋/~ozxt.'[ۏ?֣K/zgO3g2t2L|1g4p`'3*O;-x/n|/kNO/~玧uQfN_|ϾG!6ennT~ȃHV00;|n@*}gĤ+iR7wdRNhn{$Q$pV*ei[	Fvvڶ-b,b1L]
)R&% 4ݚLUP#.t3:B_ܻ?/g6lƒS!AD8C{:n쐂"pd*/Ly	6Ѱ}ИoA?Te2Z_[rS%sKɬ#7GB
उL+^`9ͪPKhp."L],lM]g~w`>}σ?\~{
e|[/|<
wc^,"jf2=>O"t^2gdFܷmXHW^z;]_VS/^|ߣ'%ߖԦ)P̬kI5'^Sd̴"@@Lf!i2k	,1hn'E`uX쀪檗nMVaւ- Ȅ:k^y5=:̃S L!]BnĢ6$w,E3~w/up89sO=3L61b6K.\xvww_y?onnFkD4Lq6QXzG;m/Mk;;w.`C|?/{>t|f8
vse̎@-1Lʬ5ݴ'tNÙrs\:i1PbWr
n3Mߺ{ 2	-.ڠkƵ{ƩSׯ1T|633'i?	,U.I9tc 3$q
dE@ptCL(>?kYh=@HV\HdSXO@mJBe[L#y #[d0,
8im+9) d3)Pt<!jnmϮ/?_<̞٣~իE0+O9}:Zoܸ{>>>^Գ,MNc*sΝ;[_?OgQ:؟|OM&{x<?{vv֠'g쯝0McLgvUC	p3w",+NJafǏ6'DdPS##AL0U"B uw#n\%5gKY"-bGí^ow8OiMlm}ӱ˲$…~\jŕ-kגJʒBB8(2BhPz$սc=Ir8s[4Y!YiNuO#Vs
07`gd	Ĥ.@BRÈ
%d-sEcg8^&^5^z=7uKի_̓{LΟ}_|#@[cQg_~}휽qn>d2Y
|s}mmm_}/^N^?E_͑[[&AJQ8EhcЪNn͜#U
ɗRʪf
kݲce9TQ̕Ovp\VP5z	(ne|r4
Fnus$\e,K}o^ym6llO
[[8?s}qgLkWnLg_{}n2
\۽3Ew_}Ň/T0lkk4<ҍkW׮+q]ۃaQ/W!i[!2?s6bL,:bd>&AhϕܡOfvGtj]Kޭ#[&Q."}؉%"8{$|ی܅Lp)Z(b,˦iz2mn<Ιs+\?ዏwl{(Yc6)Gʲ7YL|6)X|wWS[9LaI8:\=cyPab$,90Ւ!r++l֪'L,@\Dz/uN(LQ	
m:>ʟ_|>^/I&y3oFݛ^zrQFƨ(ngFfs4uRrQf(zٳN3gμ=wֳ|HX"b>AHLi\ffSh9~רHtQVur;`.L.b\dʗûCFV .
buwrqtL5nS/\; 7'(9	a+M$HJG/^kn:SA;	ߩEMRG?ܳOMYbbH(ʲXcZrmZjo^
""-`y3Ptk'(MlL 1=C0@p653
zE.Ddm}hho(F$rvߚIғq"ն<3"Hm9P5.ESzc߽ujMGf16Ӆ_8wשp<7Q#Eh^0w=Wz{vQOA6ꦓ3GwXV3s;Yt(1{Sr3vqrx=,MaY=L)8qV2瓣C!Sf1D֩
e/|6}%:ZmeӴ/=vݻa!*AJNެoj6;~鸮°sRKȽIFi!*
k	{",,n02&#G{ lc{(t>5JdcFak>w܈dN%h9e,b찌)"&
UdmsAřsk>==nyy{[gΜڼ2wp`g,ÓXbI_wcW^>.z=?ٸFEoEDR&5I$s<\ܗK":P0()`@b
Yڟb(5@j.&lbnd`8gVem6vvJ rp9L@`&Q7jw~={4N?7>(l|u3R6CFBR!72MSĦɡ<=9`9l&*D,q	~HCE@^!Y{85YLF06YpVv=	{i)W,u,ZsW޺I8ZYpaݗCsM7vF;UoP"g^7woәCUukcR(16,"zEJm)ei],.ê̘3gX=˵֚$Ɲ8Գw
$Ad5411u+HeIbD R@2@1G'QRX.uP Y'W怃1$rKwDT8nsxC?^7)HrF|?ouZGG!h_~r+
˶uVBi.1~"JdF0Mɓ/` s/%9<8	 'Dgf!½*psl"oRmRmH@Kߎ'X%xUl $"$"H(![4u0Q1;[{kWo6&+z:bv
a"p~
YjCJDnMU0:oz6 mSLm";Ž[k]uET&+\Y
(u]he
r=a[69'JBm{Bn>`pXzp"b2su,ƴhZ{L-ޚX׏_vG0*)J7G7F}n#u,Ԑ@A)%MVLZk5W+60wS1DN1۾^*b^Y
wp݂r`̓ZfP>fYƴpFCXzIOÜ/Wrr	Z6]6Sv\0wGM'-/l>gU([S`0QErL!8L)g3Ȼ'g{ݯ]NN65E̠
,0]ΝrPC;oΜ9s\v8>q5(c׺1+)ϱz屹_/C\LYF<5p~('T֦w!PS]eJUKn<͝Yt	;wE.'O!ZrwK~	sv0w]2Ca[sǼ5+.=gK'lx<߿UMݶMFŜiYnL&PAbKd-uKDTXLȉ,9?wci"w	NBA{?ܿW킃C6 ;2d]em"uɋL]r}izZD"]7EBI(%rE|#X~ҧ/Cc:_""ϴ3|1FyUL`أX$~XNjpˀ!r6II&{/<߻Ev&mFYEjTp{yjT2LVX`wRiP|pt<>^|9i4xWI.'?/?z>tVoPn՚NF@ҙ*!
s|bbʧP(CAp6uO\Tq4mll\߽֤O操AoOb@-d2]'^VnSKwZіLٺ%DF;3{wdD3&r.]'bgY)!{Zm='=}ޕЅ:EթYL!Oe$vh{gɡLdD3+0򟶫R#8S#9>f	aokgs6x&ӱ^xc-WI'QeĻ`n-o;y֯zNre,	يGdDIS6G/=~`m&J(y|am-!!%PFKZd93nbFS˂a.nܸگWXP()q,'i˝ɜmLyKkMUꗞ$~bv)V[v7yplF3p9$;VfK9%kv{4yO?{|xy`P]K؅L\	&Pں6KJ\/(PmpkӪLQm|єԙ3۴ikkR[2v>Q[[ձԵ++/= KhTJș^!AZ#8ujнkɭ"0kLI{0-hTvƞf,d(i*Nu-φS&fԱ&fsYBfԅRf>ahQenCU=@etGgZvx{~K]&FsN.y[365wK>dAYOb\Z1[Lujg֢Y^gE"8qt\, IDATUƳؑ&Ʈ+Az^UUK*t8	dK̡;ۂޝEѕt)as*
8z-۟-{uϏ3;/I9W-I,;BW>ߓ%2̽dyY
޹SR!nSq~S<AY_ӣK/xpsosc̙sZ[,"jTZrmTbiQSO'>Ȫst$~y0k"pY/TMd+Mvg0/ҹ|b1SKa0m6͠_mlE1nݺUuڶs $!PnZ?bf&1w)^+Stľ3w=w:Y)~_ϳt}+W>j+˾߸o91[=[>퇹ϧ\|4
}>923GH;]D0nQm~eb|wϞ9RҪ1l61dM4]u6MjO|g%0T"fF${SKo~-H--m,{EНVG9/ɂs)}9A^<ꛋzVl	P#7Ik`-34BCQ"!C>ͼKr^i[?{h~r};˼3\};nJ}૟$~r7!*P$<
5aWmʹ"94%1
Ʀ_vͽx"ԎUQB -|Vfn-d2gi"0
z6m>|υBtV5EZЉ	Z޺|)͏Y1]^2֋-X̦c7-c z1Kڔ4bN0d'1RGtbEU2s]7EM$y-g*b'\3ÓoUaluZ9I&~^iè$=ϞccX``]M;rbY,B/kducGyQuMwzW6~o\rso\gmYnE	=Xw.ա<ힴ%hYU|>ݽq<9$*ޮs%kG+Cg:~D9#T`5
B@f)K<!"5ԅawaiԨw>*L֤VԚ}Ko|c}sO|˗gE۴m;=GO~NmH(!Puk­#᪮U;Nem$;Zqp46lwxXJ2"VIVȥcF܏־E!"m۶v`֖&3,i.&t"A?'WlPYHRƣ9&u<&dY@ҭ[GwsD2W_h woepE1Ng~=sʕMc	P`)9"XgmczMh<O&#OA֬؁Ln+?^ydmUguZ'e䟷Qq]>Ǐz>xٮ8pmzREQz&ibUVZ	 `gR%eJkD]8[0p<إW/TI/.%]gϜ:=NvNڦԀTDNbp7Mogm!1DL9m1/ (ɹsYoq`oڶe^+78t"d"z㣃T.b+\c`Rk9RJ^lBƝy9Kd52Mȵ܅BUoIBoН)ٌE '?rӝ.|#q߶+Uh%w% Z[7Պ%FN»IAr~៳RھU6q'qp4˯3?Q$~_(cQ׮xG~ʛG3_QӧGիWoe$^RRˌ*%Pj:1mpɝ>2$59dfb9"鎞[`ߢ y˘C&a	߲>iY"^QJNڶԘ%a"v8O@	T&fɳp2#wLKÜ#wCMŭý/|]|tm_'ڑm۶mǓ^|aDUUc~"2O׆#2vML,0KN1H:8S(.yYИ] 0	K29)l'\~.CG`yWrUu-oHcv4-CC)kٻKMHAb({/L0"o*ԂEI4Pj-ɣ%MmnjmwL>e9s{7u-k"+ڗ{ވ2P@228u
 2+3q#>K^{8E%
%gF/~Yȣ}C,LqlΎ1_z\f;fv&Hյ U
4ͲeH6䙇yDt309XQ!(&ZNQ&APN7e1&u>dz,r\ܐ_^sȾ}}#f|βiRWIYګBrPM
`
SVexJMfc"ˋ,WJ5gZV8sV$lud#1$(27+:W6.\xv;8p/Bi&vΡťLkuc=p"
=/OY?;Ry*VRiUB "ǧy潯˙k9SiT6H?!qā]V=iJ>ק)MBiDDU9'}҉塽D%+X1FA
Q8NTPHk$At@LDֱ2A/>}?L[;DpCōrd4_4Q'嵵^MP0*D<'P`zD6c9d"\_s{:PTWHM@oMs-}km	UԿZۍΆrJ+؞8!""ql6ıG),(-aTR=l
Q^:}?ٙ8I mnuIӂŏ Nq %է0"\.Iـ( RJ)"9GT	l$TW-sȁe`^M{#@,M^m"bK	A'TQ4[5|t;D֊|eCE:cx15&VO&,	DqVٗOo:_WN{v<+O,"JӴzw}'>/v}4Q?˭jb+^0I $ߩ\&A\ '6QDA
:5r:a$8`s^y"kט8L_"`;iFQT.B	Zvم~w-"DHW
hP,J:Xh:nq:Τ3.mm|C|xuc
+0nHCsffmc#n4?G9{qyAnυI!(]Oʇ2+R(A0J4v.QؠHJuk_y1
0":{+!x,Pjχ{zEE7BPU i5Pƞ(p3-$6"v5!y玽ITqdQk
MWA`Z""ܣtV>~FFCESPJZºFso|sر{VɅ,sQ@R"L_:Sh*x̊u
]ɼQɇIw9FXz:1|My^ު*Aq!TH+z^*x'
doA|l'h4`v+jC;*W/RΥͥ'>c&MYS^#3(vo}ˤ.Q/
YID`?d7O)EZe EQw&qڧ}W^AHaz͉樌"SJ`9
oRf*
ŃtX׼
$0Cbg\	yW|.D$PiDhKuZ#@꠶B@"FhMl*(NM{n&jQ
aaF38)3:Jr%m5ex"!@9M,7w[//Q34wZ)7zԹT:PBE:B].Hi
{u-4y9_ɀP
-pVexe?i2B)]-al4i"j!lTQƺT\JTs kM;ݝ܏3퍓hJ^cnqDg1׿~]wml43TKMAxC$NݮuSs<ŞtwI2:Ȉ	K	mUv`m&@WXg-Bh1PiPJ5}I/&i*])~[/3ޫ@Qy^GUJ)e(d9WkU|*BV@m'vL9hΰ1=Kg{?"׃CE4s.'׶w^^YGy%NJ f`$(r+#BC*:
A׺$˶_^U&^P!_?vZs.hVZI8e$q>mm@; i|ʲaJ[(v?S]^~u["nAAfFCLKV/nV(> KhyFk$1ƺG(`*TZa4x]
BJNx׋}Mnkk/ȝ&H!"IQ=ݲt%*E-r׷Vu:taKkzQkfnfȥ+|\X^yYb&
p0C,v [pMQ2hPf3+0-zr-"&5nTprδ:ֆֺd+I*L|D2Z
ocxgpa4ıi6VWWGy&J7\g>q:]Lh LA:sOM4љWz{:HJ_5hBh앪g9L"@l(B&,9GjνK\!t}gB"E>~{T8pXaұ(qҕ8m⅗=|LW7ڇEinAmD*v]<|_zW3+WBLHA)bH^FQ>"#UUfɒ{#FR
Eس;^{%R׽sű:5`R}|*
s@Z)8%fatͩv^+
˲=пxk?#.F7oD.t$h3Fѭ'Os߻/\ZS5[޹>"RIieDXkIʌ0)%
	1p&?b^jA0
U)]Q*c1Ji\%t "e%	cAڇVqVH@sz7@C7" a*/a91Hi	>LDAkB3zTtawE"BVB\_=83RӇV
:UBV\bPp A
-$6}a7pJG>_*\4]7[兆v`cc{y]}ɿk|݇b(r,1j:;L,zJ.kjR1HU[{_ӈr&1,+	rR`Re@H8M.)s]bfP@@Jߪ	U/VM$
mnCGl?7_(:EƠ{^}TQHA=s'm~"mt='"_Z~G~SXZ:BhoMv?uw_|ѳ_SFyAD*n$M=wii6ϴSQ@j@]S	JW4"	DfŕV/r] ܛs~S nT{2RmʷR!gRF<80;Q!)
{TS
TȢDN=z.l'͆T*9oo+\7s(tci쯞r>1B27EF]bcc
)eaTJKƠAn[a-WP')(JQ:'_\7:JڎH^A!K+Cx`ã
cJHc|Lb{=C'!d8Ȕ9D"J(BDaq"oC9_Xr[]
x3>w?w,ϣHk_5x	ؘ/_Gr=w3sDq"[o)}h϶6vf{q߻{_zј('0gdR/s4(dDdD)C[/IhW	Đ#dKףRPj璔J
B0]f60sNiu$^	\Q"J`ģLF9>Wq_ׇytksirHD-@'J&Q6׷Cx޹ňI$J) a!BBpN*WW~TUeg[ȱ,DaE|EW.*D',8#
vɓPgk^p_BB
RXk
@ZDEy[_
*PG7,⍭ķ_.,rrnCza	Bve!n-F.[\衇,/~LFibXg
CB*$c*+5$X
z.h^Ug	gBCVϏ!=('<'^L3QIX*c@"
En:+uϿxO=˭w?WSAm7xb	8$VHz==vzO>3ϬR	
^rL\:OrmQ8qey;WVSR?՗ʆ-2!dci,85GÔB<0QNzQOHD8Шs)"TYy̬sӧ=7=vȑC[o9y{.Io7wŀ3`S
i؈h6gRMz!L -ҤyF4>HDմY̌\^[D#UD)c\Xkk-0J˝ (^{I
49sss~֥rE@ཀGaEzz/!RQE2U3Ӟ^Rc,>""+س*bfyA3m`}cW'~fÿɿλޑ;εgg0 ♰V׻x(6OZ[m=V@/3Y!DFvy23"" BE>D	> 3+@"
*!L@6P
LhHk"#e3!cM5}+Ov]Ñ=q{;J"S-2ុkkY6Z?u1N[Z &IlךUu#g6(x3C_vW	("rZ^u&fz5dBX4-
7"})үGDA"cO4<6y}胣aq9Ӟmboxہz¡E?'OCV#՚M\]mIɲK]-=G
5yR-	(`f "7:FE1ɓ;?so=wL4QQR
+<+D]x>	5pd@2dHI{X),JJ(~Lb$vbVEV穧|y?=h{vʕ++*c1<"/6VCkg"t(ҥ;Er!(EdQj	˄,.0	Bya"Ξ3!3"(	/DFǣQn=gYcmnN9v->~뮙K+`4E&mb0Ә;nQʹ4?;;Ο={t\}wo'Fű2dWK0v`9JWD9Y3kf^8tCxFEQ[P!b7\]]=Ki~}zz3iL}Мw71v[fSN:uʻ}ϞW.sOSF&N/s6L=Q) cCO\p_9Zg}IiO²N&΃0,ܑWW6}LQw󭅅'>'
z]e
QpUU>d1XM	MeWiLfh
: ꌌօdD9Q1~w~h4;hi6Q♂
>+2nS뛍F:n/,,,.#/;}칗^~t^-{nvsƘvn8S"ɋ`0(Bk=;;4מA~{_ꙧ3g:ؑvth~6M!pD,&|QT2q5BP ^	{8.c*]"(" [* F{/+E7Q6??;q]NJӦR*`owQ[VZ-崙o,v ˲0XXXY\\l6,.^:K/-/_~'www7V~#Gz뭋I"I'D"TJXUֻjclQR`J9J 1giT$4ZQ!(Dv4ʺap4m!Go9v{;yԩ0tR@ٜi7x
)o4h4<Fy[k$YXXXZZ"K.;wٗϞ={⹭
1Iv5;;3;;;;n$IDڐ
bJ#
0sV3v\"
 @eaag}w^w@u;v;{9z]0&v`{{{{{{0$IBDQ5vmfbo
27YQh8yɓ'(jFCigO\8~eeͲy)jI5FiӤ98(1e,r֍eVDqo6q}Q9w{_dyy%uX&"uPCAQDX<2YĘjgL86LW̦ |k)Ѩp6sփŠIwEaiSR*X(g}yw~}Ƞ6!pji^7$!nz؛$I1;кiIENDB`dvd95/debian/dvd95/usr/share/pixmaps/dvd95/dvd9548.png000066400000000000000000000107671140003301000223230ustar00rootroot00000000000000PNG


IHDR00WbKGD	pHYs7˭IDATxyWy9z;3w
dIŦ @vc
D6RVRQ
U#HR88(Q!+!6Vb(@$.}{zsΛ?zf@@Wuuyys仹~5ٔh*RȐonO:p1Rԓ@fð0+-LhYjzڣ3oϿ0QKcI_%=Of

"q
4$r:(H,Yl(E FPdO"rPd#lH+$
ҳL$
eho;cԃ꬙	B"Ұ'8ũQV#LNkjy68pDr2H<cZɘLY9^Q=eͧtVb|){Yg?ʲrو 8@C.Wrbzgq҈s
GC'@jO
(TAa}-a
	eb)ed;٧~hK}kB搔	}Zlk=5:,{eE1&b{oJ૟tݤZbHP1!7C%UUΞ,7I(
5K?ҮKƧsΎrBFTpsOj	(17T{߲9;_.jiLꆦB@D0`DpΑ&	YhZs7z]w=m}2u^sPtVz±F37RU)RhB{ysk2WMяGOyͭ[fe/%
|YbZK$$M;GiJ(y2<6w>}ꓟ
	/cbG?fi(%Y<}ҞCsWwj/=hxs[5U
t0T6bYK>)Ҕ9bp<շ'8z^WDZp2y.m[P',pct+v^F3y0"oϒZXc<޻Q4&I0Ɛn$sZyN8:x睵= Z;+H(A"Ef̷НSV"gq`JoIq5Ђ~ެ?XiXطNGNq.M1`/~$6x,1!.yYJDuD	LcGPǎ;%L,S6KglYdIc?IbꍦZQ-:qǙ9}p9F^4w~6ILm;3"ش"NsH3rՋ
N
8uk\3?I1>6xDUK@#UQ@0%B	]*
2VH+EaW`RU^N>rvc\+KY׌uL#Iދ/W`kcv<:`QtCI\nDf<2,A6qs,>4T!RM,K4eq`(cn޾eIޯ;RK>j$M
"6.A!ZTq	pj3VNi=,Ѧ9{K`40jU!5IUZ
wsF?%V
C1Gb(	j1AqE~D<˘th9|7١|ovkk%M\f	b`?0]11}(S)>6 0zY+qI3W@qAN7.qnq~8_{H +uW^bϋɓ*"WbzGJ
bvO8:;
CmjWb1`xrH~/}^&"~KB	lz1ٱ.O@@5MJ 0"?=1jh8qjB̸H52 0ϴV,Vt:
!;>3=W}b@ѨN'li'{7mt4Oe+d0a	`7+>SimmWLVM-GŢBUTKH,;b?A4~q>6끇4NP"0"v?z稡Qчx5d쬫1AUՕ+qP,e%͢R}p@o֝m-Mƒ"
KX0xqtu`ЛY||^w^esR;.}J 
>"UxJGoЗgڒϜ"d2)-9QРAsB2˖khm95cyN@evUJe2^9q-ngGՖmׇG5b"DCzPUABB2K'ia{cV_@FP\Xā q4
A2{TO?y96
ȴ1.'FHeGY|"?=5t=hL*rś49z+R\3&=C":xUٖV%'FvvV&ٌOWW+,(--mk)"^QrO%i5:GKfO$$ݲSBD.m*g[ۆ?
J
zQON^k:&Io{DM;F5r}?K$&賿,JJJZp=ŷ/Mҙ<دI8/~LҮR[)SIАX4BiҬV:޴'~Ϋ)EFz~7]`}I>@ ͚̦qFB!gRSHfκ!W_Tl;8o!a@QI9j4B(bѢE}	W ?t)Gyi	s}h
E`D_,XL`x/̝=7FАK(gמ=>/|RSu~
PGM|
K+2LOf3*P\<_n,6DBA?38)eS-F G@kzUqsU
c'ќM*d]^:{:KDUF?ctѶZ/qt$+啕D#1纘mg>/7l9S0qͧn_D{sseB0}8|ǎ
D	8W=A|;וQ!)ǚےkN(eew/pxŶۅPcn_TZC~Q19ya
ru\)'vԂ۴/U?.!#u=v"àSwmmF=C;SҗE<ǛlÆk/.#+;`8D@^[)(/Ğw^=EP(z7;{}Q%-rܛ*k[$}zK-D`MUTMUAi$rr	Q4P2xYx}	UWC芋mc*(Ozy۠VRVD{a/DaY	%eA"L+H#7M/psyNەPT,P()ed#;S^C &Q=GxF.m6r3ԣ
-]j,Tؔx.Lq6qAp3Ot`K10qt}^IM01AFA.RDX42_nP;ƢըocZ	rxO^6D>Go?ջ:&e1bv/_ww1ΔM)	 "$	dSJFvY3nY
#\/\%^.	@U#j``hh$BM(h$7NJB{&6~<
GW#S#^xٽ>=8]81^ =9;F/Qc~^﷤Y4w3w04݇P/b>4us	9r3?lr{mnEasߍPIENDB`dvd95/debian/dvd95/usr/share/pixmaps/dvd95/run.png000066400000000000000000000046111140003301000220070ustar00rootroot00000000000000PNG


IHDR00WgAMAabKGD	pHYs)ItIMEC(	IDATxyp?nfsr*HDLdJflGюvmXKOuVV+A!H"T"k"#f~ˤ\mg=s~c
]+tNF7aV@B'ׁ;VrB۶m@_ѼB5Y4P}W@RbLP___|}|z΁.b>aKٷo!gg;@ ,|Xh^`߾}tuus0YWoǜ\^=
@pȢVZZ۹x)IddL(\O㒉ҥikԩ6z{S b*ndw9Ȭg3}ƍ]-3,{8IzχOsS@.zF
FU/ygdҫz
RM/Y914{nA7"naZY7]Wsj68d. 8u9Mc1oߜ[EMfD#gJ!!үLvN?^P9!1tڴb|AG*1R*s6#Hqrce_4oDuG|
tـr cǞs־֖i|r0M
Nl6RR|m111H`rB!~7QHdWq
Q?~xiq舃6>HI		Iow3y9u	Gmsk*OGx)i!Z[@N>pRYx}&c͚dff1c,i3SezRyKU:cT<N^#-3C{DDD!DB! 
H=v<i4斓LBA6oTsrH!\I4K#,Arr"@3],a"Ĵ$RJ@:kes
	['}WK
fqDFj\3OW
\,1{-w[2vUPu3%*4[/=5nG'"*J\3
!K/f)@sqʕKhEAvD&MHn8sɪ]`SY߶`y|M6e?_~<	uTǔ	4$Ͱa	=48e
 U\
m(.y
\L;_biÏ;@}}C#d:`j	A}O*7pHK7?o݆-k!U	
t/W{uScwiEq][aBxSB,0o1
ؕU=*8U:2Ct+/UkS)Q
|T9U_GJ簜,Z)313RKU	ߤ-ͦ.GO>,֔2I/T0aY}%	)6U(PW9b]:GWSyv
7?+^O<%)IENDB`dvd95/debian/emacsen-install.ex000066400000000000000000000023171140003301000166310ustar00rootroot00000000000000#! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/dvd95

# Written by Jim Van Zandt , borrowing heavily
# from the install scripts for gettext by Santiago Vila
#  and octave by Dirk Eddelbuettel .

FLAVOR=$1
PACKAGE=dvd95

if [ ${FLAVOR} = emacs ]; then exit 0; fi

echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}

#FLAVORTEST=`echo $FLAVOR | cut -c-6`
#if [ ${FLAVORTEST} = xemacs ] ; then
#    SITEFLAG="-no-site-file"
#else
#    SITEFLAG="--no-site-file"
#fi
FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"

ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}

# Install-info-altdir does not actually exist.
# Maybe somebody will write it.
if test -x /usr/sbin/install-info-altdir; then
    echo install/${PACKAGE}: install Info links for ${FLAVOR}
    install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz
fi

install -m 755 -d ${ELCDIR}
cd ${ELDIR}
FILES=`echo *.el`
cp ${FILES} ${ELCDIR}
cd ${ELCDIR}

cat << EOF > path.el
(setq load-path (cons "." load-path) byte-compile-warnings nil)
EOF
${FLAVOR} ${FLAGS} ${FILES}
rm -f *.el path.el

exit 0
dvd95/debian/emacsen-remove.ex000066400000000000000000000007211140003301000164550ustar00rootroot00000000000000#!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/dvd95

FLAVOR=$1
PACKAGE=dvd95

if [ ${FLAVOR} != emacs ]; then
    if test -x /usr/sbin/install-info-altdir; then
        echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
        install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/dvd95.info.gz
    fi

    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
fi
dvd95/debian/emacsen-startup.ex000066400000000000000000000021411140003301000166600ustar00rootroot00000000000000;; -*-emacs-lisp-*-
;;
;; Emacs startup file, e.g.  /etc/emacs/site-start.d/50dvd95.el
;; for the Debian dvd95 package
;;
;; Originally contributed by Nils Naumann 
;; Modified by Dirk Eddelbuettel 
;; Adapted for dh-make by Jim Van Zandt 

;; The dvd95 package follows the Debian/GNU Linux 'emacsen' policy and
;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
;; xemacs19, emacs20, xemacs20...).  The compiled code is then
;; installed in a subdirectory of the respective site-lisp directory.
;; We have to add this to the load-path:
(let ((package-dir (concat "/usr/share/"
                           (symbol-name flavor)
                           "/site-lisp/dvd95")))
;; If package-dir does not exist, the dvd95 package must have
;; removed but not purged, and we should skip the setup.
  (when (file-directory-p package-dir)
        (setq load-path (cons package-dir load-path))
       (autoload 'dvd95-mode "dvd95-mode"
         "Major mode for editing dvd95 files." t)
       (add-to-list 'auto-mode-alist '("\\.dvd95$" . dvd95-mode))))

dvd95/debian/files000066400000000000000000000000451140003301000142350ustar00rootroot00000000000000dvd95_1.5p0-1_i386.deb unknown extra
dvd95/debian/init.d.ex000066400000000000000000000077521140003301000147470ustar00rootroot00000000000000#! /bin/sh
#
# skeleton	example file to build /etc/init.d/ scripts.
#		This file should be used to construct scripts for /etc/init.d.
#
#		Written by Miquel van Smoorenburg .
#		Modified for Debian
#		by Ian Murdock .
#               Further changes by Javier Fernandez-Sanguino 
#
# Version:	@(#)skeleton  1.9  26-Feb-2001  miquels@cistron.nl
#

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/dvd95
NAME=dvd95
DESC=dvd95

test -x $DAEMON || exit 0

LOGDIR=/var/log/dvd95
PIDFILE=/var/run/$NAME.pid
DODTIME=1                   # Time to wait for the server to die, in seconds
                            # If this value is set too low you might not
                            # let some servers to die gracefully and
                            # 'restart' will not work

# Include dvd95 defaults if available
if [ -f /etc/default/dvd95 ] ; then
	. /etc/default/dvd95
fi

set -e

running_pid()
{
    # Check if a given process pid's cmdline matches a given name
    pid=$1
    name=$2
    [ -z "$pid" ] && return 1
    [ ! -d /proc/$pid ] &&  return 1
    cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
    # Is this the expected child?
    [ "$cmd" != "$name" ] &&  return 1
    return 0
}

running()
{
# Check if the process is running looking at /proc
# (works for all users)

    # No pidfile, probably no daemon present
    [ ! -f "$PIDFILE" ] && return 1
    # Obtain the pid and check it against the binary name
    pid=`cat $PIDFILE`
    running_pid $pid $DAEMON || return 1
    return 0
}

force_stop() {
# Forcefully kill the process
    [ ! -f "$PIDFILE" ] && return
    if running ; then
        kill -15 $pid
        # Is it really dead?
        [ -n "$DODTIME" ] && sleep "$DODTIME"s
        if running ; then
            kill -9 $pid
            [ -n "$DODTIME" ] && sleep "$DODTIME"s
            if running ; then
                echo "Cannot kill $LABEL (pid=$pid)!"
                exit 1
            fi
        fi
    fi
    rm -f $PIDFILE
    return 0
}

case "$1" in
  start)
	echo -n "Starting $DESC: "
	start-stop-daemon --start --quiet --pidfile $PIDFILE \
		--exec $DAEMON -- $DAEMON_OPTS
        if running ; then
            echo "$NAME."
        else
            echo " ERROR."
        fi
	;;
  stop)
	echo -n "Stopping $DESC: "
	start-stop-daemon --stop --quiet --pidfile $PIDFILE \
		--exec $DAEMON
	echo "$NAME."
	;;
  force-stop)
	echo -n "Forcefully stopping $DESC: "
        force_stop
        if ! running ; then
            echo "$NAME."
        else
            echo " ERROR."
        fi
	;;
  #reload)
	#
	#	If the daemon can reload its config files on the fly
	#	for example by sending it SIGHUP, do it here.
	#
	#	If the daemon responds to changes in its config file
	#	directly anyway, make this a do-nothing entry.
	#
	# echo "Reloading $DESC configuration files."
	# start-stop-daemon --stop --signal 1 --quiet --pidfile \
	#	/var/run/$NAME.pid --exec $DAEMON
  #;;
  force-reload)
	#
	#	If the "reload" option is implemented, move the "force-reload"
	#	option to the "reload" entry above. If not, "force-reload" is
	#	just the same as "restart" except that it does nothing if the
	#   daemon isn't already running.
	# check wether $DAEMON is running. If so, restart
	start-stop-daemon --stop --test --quiet --pidfile \
		/var/run/$NAME.pid --exec $DAEMON \
	&& $0 restart \
	|| exit 0
	;;
  restart)
    echo -n "Restarting $DESC: "
	start-stop-daemon --stop --quiet --pidfile \
		/var/run/$NAME.pid --exec $DAEMON
	[ -n "$DODTIME" ] && sleep $DODTIME
	start-stop-daemon --start --quiet --pidfile \
		/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
	echo "$NAME."
	;;
  status)
    echo -n "$LABEL is "
    if running ;  then
        echo "running"
    else
        echo " not running."
        exit 1
    fi
    ;;
  *)
	N=/etc/init.d/$NAME
	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
	echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
	exit 1
	;;
esac

exit 0
dvd95/debian/init.d.lsb.ex000066400000000000000000000220331140003301000155130ustar00rootroot00000000000000#!/bin/sh
#
# Example init.d script with LSB support.
#
# Please read this init.d carefully and modify the sections to
# adjust it to the program you want to run.
#
# Copyright (c) 2007 Javier Fernandez-Sanguino 
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.
#
# This is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License with
# the Debian operating system, in /usr/share/common-licenses/GPL;  if
# not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
#
### BEGIN INIT INFO
# Provides:          dvd95
# Required-Start:    $network $local_fs
# Required-Stop:
# Should-Start:      $named
# Should-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: 
# Description:       
#                    <...>
#                    <...>
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

DAEMON=/usr/sbin/dvd95 # Introduce the server's location here
NAME=#PACKAGE              # Introduce the short server's name here
DESC=#PACKAGE              # Introduce a short description here
LOGDIR=/var/log/dvd95  # Log directory to use

PIDFILE=/var/run/$NAME.pid

test -x $DAEMON || exit 0

. /lib/lsb/init-functions

# Default options, these can be overriden by the information
# at /etc/default/$NAME
DAEMON_OPTS=""          # Additional options given to the server

DIETIME=10              # Time to wait for the server to die, in seconds
                        # If this value is set too low you might not
                        # let some servers to die gracefully and
                        # 'restart' will not work

#STARTTIME=2             # Time to wait for the server to start, in seconds
                        # If this value is set each time the server is
                        # started (on start or restart) the script will
                        # stall to try to determine if it is running
                        # If it is not set and the server takes time
                        # to setup a pid file the log message might 
                        # be a false positive (says it did not start
                        # when it actually did)
                        
LOGFILE=$LOGDIR/$NAME.log  # Server logfile
#DAEMONUSER=dvd95   # Users to run the daemons as. If this value
                        # is set start-stop-daemon will chuid the server

# Include defaults if available
if [ -f /etc/default/$NAME ] ; then
	. /etc/default/$NAME
fi

# Use this if you want the user to explicitly set 'RUN' in
# /etc/default/
#if [ "x$RUN" != "xyes" ] ; then
#    log_failure_msg "$NAME disabled, please adjust the configuration to your needs "
#    log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it."
#    exit 1
#fi

# Check that the user exists (if we set a user)
# Does the user exist?
if [ -n "$DAEMONUSER" ] ; then
    if getent passwd | grep -q "^$DAEMONUSER:"; then
        # Obtain the uid and gid
        DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
        DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
    else
        log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
        exit 1
    fi
fi


set -e

running_pid() {
# Check if a given process pid's cmdline matches a given name
    pid=$1
    name=$2
    [ -z "$pid" ] && return 1
    [ ! -d /proc/$pid ] &&  return 1
    cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
    # Is this the expected server
    [ "$cmd" != "$name" ] &&  return 1
    return 0
}

running() {
# Check if the process is running looking at /proc
# (works for all users)

    # No pidfile, probably no daemon present
    [ ! -f "$PIDFILE" ] && return 1
    pid=`cat $PIDFILE`
    running_pid $pid $DAEMON || return 1
    return 0
}

start_server() {
# Start the process using the wrapper
        if [ -z "$DAEMONUSER" ] ; then
            start_daemon -p $PIDFILE $DAEMON -- $DAEMON_OPTS
            errcode=$?
        else
# if we are using a daemonuser then change the user id
            start-stop-daemon --start --quiet --pidfile $PIDFILE \
                        --chuid $DAEMONUSER \
                        --exec $DAEMON -- $DAEMON_OPTS
            errcode=$?
        fi
	return $errcode
}

stop_server() {
# Stop the process using the wrapper
        if [ -z "$DAEMONUSER" ] ; then
            killproc -p $PIDFILE $DAEMON
            errcode=$?
        else
# if we are using a daemonuser then look for process that match
            start-stop-daemon --stop --quiet --pidfile $PIDFILE \
                        --user $DAEMONUSER \
                        --exec $DAEMON
            errcode=$?
        fi

	return $errcode
}

reload_server() {
    [ ! -f "$PIDFILE" ] && return 1
    pid=pidofproc $PIDFILE # This is the daemon's pid
    # Send a SIGHUP
    kill -1 $pid
    return $?
}

force_stop() {
# Force the process to die killing it manually
	[ ! -e "$PIDFILE" ] && return
	if running ; then
		kill -15 $pid
	# Is it really dead?
		sleep "$DIETIME"s
		if running ; then
			kill -9 $pid
			sleep "$DIETIME"s
			if running ; then
				echo "Cannot kill $NAME (pid=$pid)!"
				exit 1
			fi
		fi
	fi
	rm -f $PIDFILE
}


case "$1" in
  start)
	log_daemon_msg "Starting $DESC " "$NAME"
        # Check if it's running first
        if running ;  then
            log_progress_msg "apparently already running"
            log_end_msg 0
            exit 0
        fi
        if start_server ; then
            # NOTE: Some servers might die some time after they start,
            # this code will detect this issue if STARTTIME is set
            # to a reasonable value
            [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time 
            if  running ;  then
                # It's ok, the server started and is running
                log_end_msg 0
            else
                # It is not running after we did start
                log_end_msg 1
            fi
        else
            # Either we could not start it
            log_end_msg 1
        fi
	;;
  stop)
        log_daemon_msg "Stopping $DESC" "$NAME"
        if running ; then
            # Only stop the server if we see it running
			errcode=0
            stop_server || errcode=$?
            log_end_msg $errcode
        else
            # If it's not running don't do anything
            log_progress_msg "apparently not running"
            log_end_msg 0
            exit 0
        fi
        ;;
  force-stop)
        # First try to stop gracefully the program
        $0 stop
        if running; then
            # If it's still running try to kill it more forcefully
            log_daemon_msg "Stopping (force) $DESC" "$NAME"
			errcode=0
            force_stop || errcode=$?
            log_end_msg $errcode
        fi
	;;
  restart|force-reload)
        log_daemon_msg "Restarting $DESC" "$NAME"
		errcode=0
        stop_server || errcode=$?
        # Wait some sensible amount, some server need this
        [ -n "$DIETIME" ] && sleep $DIETIME
        start_server || errcode=$?
        [ -n "$STARTTIME" ] && sleep $STARTTIME
        running || errcode=$?
        log_end_msg $errcode
	;;
  status)

        log_daemon_msg "Checking status of $DESC" "$NAME"
        if running ;  then
            log_progress_msg "running"
            log_end_msg 0
        else
            log_progress_msg "apparently not running"
            log_end_msg 1
            exit 1
        fi
        ;;
  # Use this if the daemon cannot reload
  reload)
        log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
        log_warning_msg "cannot re-read the config file (use restart)."
        ;;
  # And this if it cann
  #reload)
          #
          # If the daemon can reload its config files on the fly
          # for example by sending it SIGHUP, do it here.
          #
          # If the daemon responds to changes in its config file
          # directly anyway, make this a do-nothing entry.
          #
          # log_daemon_msg "Reloading $DESC configuration files" "$NAME"
          # if running ; then
          #    reload_server
          #    if ! running ;  then
          # Process died after we tried to reload
          #       log_progress_msg "died on reload"
          #       log_end_msg 1
          #       exit 1
          #    fi
          # else
          #    log_progress_msg "server is not running"
          #    log_end_msg 1
          #    exit 1
          # fi
                                                                                    #;;

  *)
	N=/etc/init.d/$NAME
	echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
	exit 1
	;;
esac

exit 0
dvd95/debian/manpage.1.ex000066400000000000000000000033371140003301000153240ustar00rootroot00000000000000.\"                                      Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH DVD95 SECTION "January 26, 2009"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp     insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
dvd95 \- program to do something
.SH SYNOPSIS
.B dvd95
.RI [ options ] " files" ...
.br
.B bar
.RI [ options ] " files" ...
.SH DESCRIPTION
This manual page documents briefly the
.B dvd95
and
.B bar
commands.
.PP
.\" TeX users may be more comfortable with the \fB\fP and
.\" \fI\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBdvd95\fP is a program convert DVD9 to DVD5 or AVI
.SH OPTIONS
These programs follow the usual GNU command line syntax, with long
options starting with two dashes (`-').
A summary of options is included below.
For a complete description, see the Info files.
.TP
.B \-h, \-\-help
Show summary of options.
.TP
.B \-v, \-\-version
Show version of program.
.SH SEE ALSO
.BR bar (1),
.BR baz (1).
.br
The programs are documented fully by
.IR "The Rise and Fall of a Fooish Bar" ,
available via the Info system.
.SH AUTHOR
dvd95 was written by JF.COULON.
.PP
This manual page was written by JF.COULON ,
for the Debian project (but may be used by others).
dvd95/debian/manpage.sgml.ex000066400000000000000000000110271140003301000161210ustar00rootroot00000000000000 manpage.1'.  You may view
     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
     less'.  A typical entry in a Makefile or Makefile.am is:

manpage.1: manpage.sgml
	docbook-to-man $< > $@


	The docbook-to-man binary is found in the docbook-to-man package.
	Please remember that if you create the nroff version in one of the
	debian/rules file targets (such as build), you will need to include
	docbook-to-man in your Build-Depends control field.

  -->

  
  FIRSTNAME">
  SURNAME">
  
  January 26, 2009">
  
  SECTION">
  alpha@unknown">
  
  DVD95">
  

  Debian">
  GNU">
  GPL">
]>


  
    
&dhemail;
&dhfirstname; &dhsurname; 2003 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; program to do something &dhpackage; DESCRIPTION This manual page documents briefly the &dhpackage; and bar commands. This manual page was written for the &debian; distribution because the original program does not have a manual page. Instead, it has documentation in the &gnu; Info format; see below. &dhpackage; is a program that... OPTIONS These programs follow the usual &gnu; command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. Show summary of options. Show version of program. SEE ALSO bar (1), baz (1). The programs are documented fully by The Rise and Fall of a Fooish Bar available via the Info system. AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
dvd95/debian/manpage.xml.ex000066400000000000000000000253411140003301000157630ustar00rootroot00000000000000 .
will be generated. You may view the manual page with: nroff -man .
| less'. A typical entry in a Makefile or Makefile.am is: DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" manpage.1: manpage.xml $(XP) $(DB2MAN) $< The xsltproc binary is found in the xsltproc package. The XSL files are in docbook-xsl. A description of the parameters you can use can be found in the docbook-xsl-doc-* packages. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include xsltproc and docbook-xsl in your Build-Depends control field. Alternatively use the xmlto command/package. That will also automatically pull in xsltproc and docbook-xsl. Notes for using docbook2x: docbook2x-man does not automatically create the AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as ... . To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be found in the docbook-xsl-doc-html package. Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` General documentation about man-pages and man-page-formatting: man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ --> ]> &dhtitle; &dhpackage; &dhfirstname; &dhsurname; Wrote this manpage for the Debian system.
&dhemail;
2007 &dhusername; This manual page was written for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
&dhucpackage; &dhsection; &dhpackage; program to do something &dhpackage; this this that &dhpackage; DESCRIPTION This manual page documents briefly the &dhpackage; and bar commands. This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has documentation in the GNU info 1 format; see below. &dhpackage; is a program that... OPTIONS The program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the info 1 files. Does this and that. Show summary of options. Show version of program. FILES /etc/foo.conf The system-wide configuration file to control the behaviour of &dhpackage;. See foo.conf 5 for further details. ${HOME}/.foo.conf The per-user configuration file to control the behaviour of &dhpackage;. See foo.conf 5 for further details. ENVIONMENT FOO_CONF If used, the defined file is used as configuration file (see also ). DIAGNOSTICS The following diagnostics may be issued on stderr: Bad configuration file. Exiting. The configuration file seems to contain a broken configuration line. Use the option, to get more info. &dhpackage; provides some return codes, that can be used in scripts: Code Diagnostic 0 Program exited successfully. 1 The configuration file seems to be broken. BUGS The program is currently limited to only work with the foobar library. The upstreams BTS can be found at . SEE ALSO bar 1 , baz 1 , foo.conf 5 The programs are documented fully by The Rise and Fall of a Fooish Bar available via the info 1 system.
dvd95/debian/menu.ex000066400000000000000000000001701140003301000145110ustar00rootroot00000000000000?package(dvd95):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\ title="dvd95" command="/usr/bin/dvd95" dvd95/debian/postinst.ex000066400000000000000000000016751140003301000154430ustar00rootroot00000000000000#!/bin/sh # postinst script for dvd95 # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 dvd95/debian/postrm.ex000066400000000000000000000016421140003301000150760ustar00rootroot00000000000000#!/bin/sh # postrm script for dvd95 # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 dvd95/debian/preinst.ex000066400000000000000000000012621140003301000152340ustar00rootroot00000000000000#!/bin/sh # preinst script for dvd95 # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in install|upgrade) ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 dvd95/debian/prerm.ex000066400000000000000000000015551140003301000147020ustar00rootroot00000000000000#!/bin/sh # prerm script for dvd95 # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade|deconfigure) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 dvd95/debian/rules000077500000000000000000000050201140003301000142660ustar00rootroot00000000000000#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) else CROSS= --build $(DEB_BUILD_GNU_TYPE) endif config.status: configure dh_testdir # Add here commands to configure the package. ifneq "$(wildcard /usr/share/misc/config.sub)" "" cp -f /usr/share/misc/config.sub config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" build: build-stamp build-stamp: config.status dh_testdir # Add here commands to compile the package. $(MAKE) #docbook-to-man debian/dvd95.sgml > dvd95.1 touch $@ clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean rm -f config.sub config.guess dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/dvd95. $(MAKE) DESTDIR=$(CURDIR)/debian/dvd95 install # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples # dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_python # dh_installinit # dh_installcron # dh_installinfo dh_installman dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install dvd95/debian/watch.ex000066400000000000000000000014011140003301000146510ustar00rootroot00000000000000# Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 # Uncomment to examine a Webpage # #http://www.example.com/downloads.php dvd95-(.*)\.tar\.gz # Uncomment to examine a Webserver directory #http://www.example.com/pub/dvd95-(.*)\.tar\.gz # Uncommment to examine a FTP server #ftp://ftp.example.com/pub/dvd95-(.*)\.tar\.gz debian uupdate # Uncomment to find new files on sourceforge, for devscripts >= 2.9 # http://sf.net/dvd95/dvd95-(.*)\.tar\.gz # Uncomment to find new files on GooglePages # http://example.googlepages.com/foo.html dvd95-(.*)\.tar\.gz dvd95/depcomp000077700000000000000000000000001140003301000210642/usr/share/automake-1.11/depcompustar00rootroot00000000000000dvd95/dvd95-1.glade000066400000000000000000002227301140003301000140640ustar00rootroot00000000000000 True Dvd95 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER False False True dvd9548.png True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False 1 640 True 16 311 True 192 64 199 16 True 0 104 287 271 True dvd.png 0.5 0.5 0 0 304 88 200 70 True Convertion DVD vers DVD 8.5 gigas True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-cdrom 4 0.5 0.5 0 0 0 False False True Convertion en DVD_9 True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 0 192 200 70 True Convertion DVD vers DVD 4.7 gigas True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-cdrom 4 0.5 0.5 0 0 0 False False True _Convertion en DVD5 True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 0 120 200 40 True Quitter DVD95 True gtk-quit True GTK_RELIEF_NORMAL True 440 416 200 40 True True gtk-properties True GTK_RELIEF_NORMAL True 0 416 199 39 True False Convertion de DVD -> DVD True True GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 64 639 32 True False False False GTK_JUSTIFY_CENTER False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 0 639 31 True False False False GTK_JUSTIFY_CENTER False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 32 True Proprietes GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER True False True properties.png True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False True 320 25 True True True True 0 /tmp True * False 128 48 32 25 True True True True 0 fr True * False 128 80 32 25 True True True True 0 fr True * False 264 80 320 25 True True True True 0 /tmp True * False 128 112 80 25 True Sous titre False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 176 80 152 25 True True Garder les menus True GTK_RELIEF_NORMAL True False False True 320 80 158 24 True True True True 0 True * False 128 240 120 25 True Espace temporaire False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 48 120 25 True Piste audio False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 80 120 25 True Espace des ISO False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 112 183 25 True English Francais False True True 128 152 120 25 True Language False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 152 120 25 True Visualisateur False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 192 183 25 True xine mplayer vlc False True True 128 192 120 24 True Niveau de trace False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 240 120 25 True Périphérique DVD False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 16 160 40 True True Vérifier la configuration True GTK_RELIEF_NORMAL True 144 504 104 40 True True gtk-quit True GTK_RELIEF_NORMAL True 456 504 183 25 True /dev/dvd /dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/hde False True True 128 16 120 40 True True gtk-save True GTK_RELIEF_NORMAL True 0 504 128 32 True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-cdrom 4 0.5 0.5 0 0 0 False False True Fichier ISO True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 320 16 True Choix des chapitres GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER True False True copy.png True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False 549 True 552 24 True Titre du DVD True True True 0 True * False 72 8 64 24 True Titre False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 8 50 50 True 352 88 50 50 True 400 192 56 32 True Facteur de requantisation True True True 0 -1 True * False 232 440 104 40 True True gtk-quit True GTK_RELIEF_NORMAL True 632 504 466 368 True 0 0.5 GTK_SHADOW_ETCHED_IN True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT True True False False False True False False False True False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 279 64 272 128 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT True Pistes audio, CTRL+click pour multi selection True False False False True False False False 0 72 272 208 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT True Sous titres, CTRL+click pour multi selection True False False False True False False False 0 224 150 20 True Ajustement dynamique de la qualité True Qualité dynamique True GTK_RELIEF_NORMAL True False False True 8 528 150 20 True Conserver les menu du DVD True Garder les menus True GTK_RELIEF_NORMAL True False False True 8 440 150 20 True Visualiser le DVD avant création image ISO True Visualiser True GTK_RELIEF_NORMAL True False False True 8 462 150 20 True Creer l'image ISO True Faire l'image ISO True GTK_RELIEF_NORMAL True False False True 8 482 150 20 True Creer l'image ISO True Graver le DVD True GTK_RELIEF_NORMAL True False False True 8 504 48 32 True Qualité False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 168 440 152 32 True Calculer le facteur au plus juste True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-execute 4 0.5 0.5 0 0 0 False False True Calculer _qualité True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 168 480 152 32 True Lancer la convertion du DVD True gtk-convert True GTK_RELIEF_NORMAL True 368 440 152 32 True Lancer la convertion du DVD True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-print-preview 4 0.5 0.5 0 0 0 False False True _Voir la piste True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 368 480 248 24 True Sous titres False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 8 200 272 24 True Pistes audio False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 48 464 24 True Pistes vidéo False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 280 48 64 32 True False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 288 440 True Avancement GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ALWAYS True False False run.png True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False True 432 32 True GTK_PROGRESS_LEFT_TO_RIGHT 0 0.10000000149 Progression PANGO_ELLIPSIZE_NONE 0 272 432 32 True GTK_PROGRESS_LEFT_TO_RIGHT 0 0.10000000149 Avancement total PANGO_ELLIPSIZE_NONE 0 208 24 16 True - False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 352 216 16 True False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 24 360 432 200 True True GTK_POLICY_ALWAYS GTK_POLICY_ALWAYS GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT True True True False True GTK_JUSTIFY_LEFT GTK_WRAP_NONE True 0 0 0 0 0 0 0 8 432 16 True False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 248 80 32 True True gtk-stop True GTK_RELIEF_NORMAL True 352 352 72 32 True True GTK_RELIEF_NORMAL True True 0.5 0.5 0 0 0 0 0 0 True False 2 True gtk-execute 4 0.5 0.5 0 0 0 False False True _Pause True False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False 272 352 432 16 True False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 312 432 16 True False False GTK_JUSTIFY_LEFT False False 0.5 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 336 True GTK_FILE_CHOOSER_ACTION_OPEN True False False False Choix du fichier ISO GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER True True False True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False True False 24 True GTK_BUTTONBOX_END True True True gtk-cancel True GTK_RELIEF_NORMAL True -6 True True True True gtk-open True GTK_RELIEF_NORMAL True -5 0 False True GTK_PACK_END dvd95/dvd95.desktop000066400000000000000000000003741140003301000143210ustar00rootroot00000000000000[Desktop Entry] Name=Dvd95 Comment=DVD9 to DVD5 converter Comment[fr]=Convertisseur DVD9 vers DVD5 Exec=dvd95 Icon=dvd95/dvd9548.png Terminal=false Type=Application Encoding=UTF-8 Categories=Application;AudioVideo; X-Desktop-File-Install-Version=0.10 dvd95/dvd95.glade000066400000000000000000002331201140003301000137210ustar00rootroot00000000000000 DVD 9 to 5 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False dvd9548.png True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True False True False 0 True GTK_ORIENTATION_HORIZONTAL GTK_TOOLBAR_BOTH True False True Ecran des propiétés gtk-properties True True True False True True Lecture du DVD gtk-media-play True True False False True True Calculer la qualité au mieux Évaluer True gtk-dialog-info True True False False True True Convertir le DVD gtk-convert True True True False True True gtk-about True True False False True 0 False True 12 True False 12 True 2 2 False 6 6 True True GTK_POS_RIGHT 1 GTK_UPDATE_CONTINUOUS False 0 0 110 1 10 10 1 2 1 2 True Nom du DVD et du fichier ISO True True True 0 True False 1 2 0 1 True Évaluation de qualité : False False GTK_JUSTIFY_LEFT False False 1 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 1 2 True Titre du film : False False GTK_JUSTIFY_LEFT False False 1 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 0 1 0 False True 200 True 0 0 GTK_SHADOW_NONE True 0 0 1 1 0 0 12 0 True GTK_POLICY_NEVER GTK_POLICY_AUTOMATIC GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT True Selectionner la piste a convertir True True False True True False False False True <b>Vidéo</b> False True GTK_JUSTIFY_LEFT False False 0 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 True True 120 True 0 0 GTK_SHADOW_NONE True 0 0 1 1 0 0 12 0 True GTK_POLICY_NEVER GTK_POLICY_AUTOMATIC GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT True Selectioner les pistes audio True True False True True False False False True <b>Audio</b> False True GTK_JUSTIFY_LEFT False False 0 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 False True 150 True 0 0 GTK_SHADOW_NONE True 0 0 1 1 0 0 12 0 True GTK_POLICY_NEVER GTK_POLICY_AUTOMATIC GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT True Selectioner les sous titres True True False True True False False False True <b>Sous-titres</b> False True GTK_JUSTIFY_LEFT False False 0 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 False True 0 True True 5 Propriétés GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False False gtk-properties True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False False True False 2 True GTK_BUTTONBOX_END True gtk-close True GTK_RELIEF_NORMAL True 0 0 False True GTK_PACK_END True 0 0 GTK_SHADOW_NONE True 0 0 1 1 0 0 12 0 12 True 7 2 False 6 6 True True True True 0 True False 1 2 4 5 True Périphérique DVD : False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 0 1 True Espace temporaire : False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 1 2 True Espace des ISO : False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 2 3 True Lecteur multimédia : False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 3 4 True Niveau de trace : False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 4 5 True Sélectionner un dossier GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER True False False -1 1 2 1 2 True Sélectionner un dossier GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER True False False -1 1 2 2 3 True False True True True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK True True 0 totem True False 1 2 3 4 True False True True True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK True True 0 /dev/dvd True False 1 2 0 1 True Indications sonores False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 5 6 fill True True GTK_RELIEF_NORMAL True False False True True gnome-stock-volume 4 0.5 0.5 0 0 1 2 5 6 fill True Langue False False GTK_JUSTIFY_LEFT False False 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 6 7 fill True Default Français English Deutsch Greek Estonian Hungarian Dutch Portuguese Czech Spanish Italian False True True 1 2 6 7 fill fill True <b>Système</b> False True GTK_JUSTIFY_LEFT False False 0 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 True True True 0 0 GTK_SHADOW_NONE True 0 0 1 1 0 0 12 0 12 True 4 2 False 6 6 True Conserver les menus du DVD Garder les menus True GTK_RELIEF_NORMAL True True False True 0 1 0 1 True Créer une image ISO apres convertion Créer une image ISO True GTK_RELIEF_NORMAL True True False True 1 2 0 1 True Graver un DVD apres convertion Graver le DVD True GTK_RELIEF_NORMAL True False False True 1 2 1 2 True Convertir avec une qualité d'image dynamique Qualité dynamique True GTK_RELIEF_NORMAL True True False True 0 1 1 2 True False True 1 2 3 4 True Capacité du DVD : False False GTK_JUSTIFY_LEFT False False 1 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 1 3 4 True Ne pas conserver le dernier chapitre de la piste vidéo Couper le générique True GTK_RELIEF_NORMAL True True False True 0 1 2 3 True <b>Paramètres de création</b> False True GTK_JUSTIFY_LEFT False False 0 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 True True 5 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT True True False gtk-convert True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False False True False 6 True GTK_BUTTONBOX_END True gtk-media-pause True GTK_RELIEF_NORMAL True 0 True gtk-stop True GTK_RELIEF_NORMAL True 0 0 False True GTK_PACK_END True False 0 180 144 True gtk-zoom-in 4 0.5 0.5 0 0 0 True True True True True GTK_RELIEF_NORMAL True False False True 0 False False 0 True True True GTK_PROGRESS_LEFT_TO_RIGHT 0 0 PANGO_ELLIPSIZE_NONE 0 False True True GTK_PROGRESS_LEFT_TO_RIGHT 0 0 PANGO_ELLIPSIZE_NONE 0 False True True False 0 True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT True False False True GTK_JUSTIFY_LEFT GTK_WRAP_NONE False 0 0 0 0 0 0 True Détails False False GTK_JUSTIFY_LEFT False False 0 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 label_item 0 True True 5 True GTK_FILE_CHOOSER_ACTION_OPEN True False False False Choix du fichier ISO GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False True False True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True False True False 24 True GTK_BUTTONBOX_END True True True gtk-cancel True GTK_RELIEF_NORMAL True -6 True True True True gtk-open True GTK_RELIEF_NORMAL True -5 0 False True GTK_PACK_END 6 Aucun medium détecté GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT True False True gtk-dialog-warning True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True True False True False 12 True GTK_BUTTONBOX_END True Fichier ISO True GTK_RELIEF_NORMAL True -5 True gtk-quit True GTK_RELIEF_NORMAL True -7 True gtk-refresh True GTK_RELIEF_NORMAL True -5 True True True gtk-preferences True GTK_RELIEF_NORMAL True 0 0 False True GTK_PACK_END 6 True False 12 True gtk-dialog-warning 6 0 0 0 0 0 True True True <b><big>Aucun médium détecté</big></b> Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. False True GTK_JUSTIFY_LEFT True False 0 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True 0 True True 6 Première phase terminée GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT True False True gtk-dialog-info True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True True False True False 12 True GTK_BUTTONBOX_END True gtk-media-play True GTK_RELIEF_NORMAL True 0 True gtk-go-back True GTK_RELIEF_NORMAL True 1 True gtk-go-forward True GTK_RELIEF_NORMAL True 2 0 False True GTK_PACK_END 6 True False 12 True gtk-dialog-info 6 0 0 0 0 0 True True True <b><big>Extraction du contenu terminée</big></b> Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat. False True GTK_JUSTIFY_LEFT True False 0 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True 0 True True 6 Analyse en cours GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT True False True gtk-dialog-info True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True True False True False 12 True GTK_BUTTONBOX_END True gtk-stop True GTK_RELIEF_NORMAL True 0 0 False True GTK_PACK_END 6 True False 12 True gtk-dialog-info 6 0 0 0 0 0 True True True <b><big>Analyse en cours</big></b> Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure. False True GTK_JUSTIFY_LEFT True False 0 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True 0 True True 6 Terminé GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER_ON_PARENT True False True gtk-dialog-info True False False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST True True False True False 12 True GTK_BUTTONBOX_END True gtk-close True GTK_RELIEF_NORMAL True -7 0 False True GTK_PACK_END 6 True False 12 True gtk-dialog-info 6 0 0 0 0 0 True True True <b><big>Encodage terminé</big></b> La conversion s'est déroulée avec succès. False True GTK_JUSTIFY_LEFT True False 0 0 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 True True 0 True True 5 True False Dvd95 a GNOME application to convert DVD9 to DVD5 Dvd95 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Dvd95 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Dvd95; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 2111-1307 USA False http://dvd95.sourceforge.net Dvd95 JF Coulon JF Fortin JF Fortin translator-credits dvd9548.png dvd95/dvd95.gladep000066400000000000000000000005041140003301000140770ustar00rootroot00000000000000 Dvd95 dvd95 TRUE TRUE dvd95/dvd95.spec000066400000000000000000000045771140003301000136130ustar00rootroot00000000000000# Note that this is NOT a relocatable package Name: dvd95 Version: 1.6p0 Release: 1%{?dist} Summary: A dvd9 to dvd5 converter using GNOME UI Group: Applications/Multimedia License: GPL URL: http://dvd95.sourceforge.net/ Packager: JF COULON Source: %{name}-%{version}.tar.gz BuildRequires: libgnomeui-devel, libdvdread-devel >= 0.9.7, libmpeg2-devel >= 0.5.1 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: mencoder >= 1.0, mplayer >= 1.0, ffmpeg >= 0.4.9 Requires: libdvdread >= 0.9.7, libmpeg2 >= 0.5.1 %description DVD95 is an gnome application to convert DVD9 to DVD5 (4,7Gigas), AVI or PSP files. It need no additionnals packages, an onboard version of vamps and dvdauthor is used, to be as fast as possible. Interface is pretty simple yo use. Shrinking factor may be computed for best results, or an adaptive compression ratio method may be used. Dvd can be converted to file tree or iso file. Result can be seen through xine, vlc, or mplayer. Burning is achieved by third party software (k3b). DVD95 support two copy modes : - Menus less, one video tiltle set, multiple audios and subtiltles. - With menus, one video tiltle set, multiple audios and subtiltles. DVD95 support simples profiles to encode : - AVI (MPEG4 and X264) files using mencoder,mplayer. - PSP (MPEG4) files using ffmpeg. See the file COPYING for license details. %prep %setup -q %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir} make %{?_smp_mflags} %install #------------- ab hier bald unnuetz ------------- perl -pi -e "s|MOD_PATH = /|MOD_PATH = $RPM_BUILD_ROOT|" */Makefile #------------- bis hier bald unnuetz ------------ make install prefix=$RPM_BUILD_ROOT%{_prefix} \ MOD_PATH=$RPM_BUILD_ROOT%{_libdir}/%{name} \ pkgdir=$RPM_BUILD_ROOT%{_libdir}/%{name} \ mandir=$RPM_BUILD_ROOT%{_mandir} %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README %{_bindir}/* %{_datadir}/locale/* %{_datadir}/pixmaps/* %{_datadir}/applications/dvd95.desktop %changelog * Sun Jul 22 2007 J.F. COULON - bump up to 1.2p1 - adjust build requirements to F7 * Thu Mar 2 2006 J.F. COULON - Wrote this specfile; first build dvd95/dvdauthor/000077500000000000000000000000001140003301000137675ustar00rootroot00000000000000dvd95/dvdauthor/Makefile.am000066400000000000000000000007511140003301000160260ustar00rootroot00000000000000# # Process this file with automake to produce Makefile.in. AM_CPPFLAGS = \ $(PTHREAD_CFLAGS) -DSYSCONFDIR="@sysconfdir@" INCLUDES = \ @PACKAGE_CFLAGS@ noinst_LTLIBRARIES = libauthor.la libauthor_la_SOURCES = \ libauthor.c libauthor.h proto.h \ dvdauthor.c dvdauthor.h da-internal.h \ dvdcompile.c dvdvm.h dvdvml.c dvdvmy.c dvdvmy.h \ dvdifo.c dvdvob.c dvdpgc.c \ dvdcli.c readxml.c readxml.h \ conffile.c conffile.h compat.c compat.h rgb.h EXTRA_DIST = \ libauthor.h dvd95/dvdauthor/Makefile.in000066400000000000000000000400271140003301000160370ustar00rootroot00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # # Process this file with automake to produce Makefile.in. VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ subdir = dvdauthor DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in TODO ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libauthor_la_LIBADD = am_libauthor_la_OBJECTS = libauthor.lo dvdauthor.lo dvdcompile.lo \ dvdvml.lo dvdvmy.lo dvdifo.lo dvdvob.lo dvdpgc.lo dvdcli.lo \ readxml.lo conffile.lo compat.lo libauthor_la_OBJECTS = $(am_libauthor_la_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libauthor_la_SOURCES) DIST_SOURCES = $(libauthor_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FFMPEG_PROG = @FFMPEG_PROG@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAUTHOR_CFLAGS = @LIBAUTHOR_CFLAGS@ LIBAUTHOR_LIBS = @LIBAUTHOR_LIBS@ LIBDVDREAD_CFLAGS = @LIBDVDREAD_CFLAGS@ LIBDVDREAD_LIBS = @LIBDVDREAD_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MENCODER_PROG = @MENCODER_PROG@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MPLAYER_PROG = @MPLAYER_PROG@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CPPFLAGS = \ $(PTHREAD_CFLAGS) -DSYSCONFDIR="@sysconfdir@" INCLUDES = \ @PACKAGE_CFLAGS@ noinst_LTLIBRARIES = libauthor.la libauthor_la_SOURCES = \ libauthor.c libauthor.h proto.h \ dvdauthor.c dvdauthor.h da-internal.h \ dvdcompile.c dvdvm.h dvdvml.c dvdvmy.c dvdvmy.h \ dvdifo.c dvdvob.c dvdpgc.c \ dvdcli.c readxml.c readxml.h \ conffile.c conffile.h compat.c compat.h rgb.h EXTRA_DIST = \ libauthor.h all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu dvdauthor/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu dvdauthor/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libauthor.la: $(libauthor_la_OBJECTS) $(libauthor_la_DEPENDENCIES) $(LINK) $(libauthor_la_OBJECTS) $(libauthor_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compat.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/conffile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdauthor.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdcli.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdcompile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdifo.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdpgc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdvml.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdvmy.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdvob.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libauthor.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readxml.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dvd95/dvdauthor/TODO000066400000000000000000000000441140003301000144550ustar00rootroot00000000000000dvdpgc.c: __init dvdvob.c : __init dvd95/dvdauthor/compat.c000066400000000000000000000012071140003301000154160ustar00rootroot00000000000000#include "config.h" #include "compat.h" static const char RCSID[]="$Id: //depot/dvdauthor/src/compat.c#2 $"; #if defined(__sun) #undef HAVE_STRSEP #endif #ifndef HAVE_STRSEP /* Match STRING against the filename pattern PATTERN, returning zero if it matches, nonzero if not. */ char *strsep(char **stringp, const char *delim) { char *res; if(!stringp || !*stringp || !**stringp) return (char*)0; res = *stringp; while(**stringp && !strchr(delim,**stringp)) (*stringp)++; if(**stringp) { **stringp = '\0'; (*stringp)++; } return res; } #endif /* HAVE_STRSEP */ dvd95/dvdauthor/compat.h000066400000000000000000000035211140003301000154240ustar00rootroot00000000000000// basic headers #include #define HAVE_STRSEP #ifdef HAVE_STDLIB_H #include #endif #ifdef HAVE_STDINT_H #include #endif #ifdef HAVE_STRINGS_H #include #endif #ifdef HAVE_STRING_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #ifdef HAVE_INTTYPES_H #include #endif #ifdef HAVE_MEMORY_H #include #endif #ifdef HAVE_SYS_STAT_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_GETOPT_H #include #endif #ifdef HAVE_IO_H #include #endif // this doesn't really belong here, but it was easiest #ifdef HAVE_MAGICK #define BUILDSPEC_MAGICK " magick" #else #define BUILDSPEC_MAGICK "" #endif #ifdef HAVE_GETOPT_LONG #define BUILDSPEC_GETOPT " gnugetopt" #else #define BUILDSPEC_GETOPT "" #endif #ifdef HAVE_ICONV #define BUILDSPEC_ICONV " iconv" #else #define BUILDSPEC_ICONV "" #endif #ifdef HAVE_FREETYPE #define BUILDSPEC_FREETYPE " freetype" #else #define BUILDSPEC_FREETYPE "" #endif #ifdef HAVE_FRIBIDI #define BUILDSPEC_FRIBIDI " fribidi" #else #define BUILDSPEC_FRIBIDI "" #endif #define BUILDSPEC BUILDSPEC_GETOPT BUILDSPEC_MAGICK BUILDSPEC_ICONV BUILDSPEC_FREETYPE BUILDSPEC_FRIBIDI #ifndef HAVE_STRSEP char *strsep(char **stringp,const char *delim); #endif #if !HAVE_DECL_O_BINARY #define O_BINARY 0 #endif #if defined(HAVE_SETMODE) && HAVE_DECL_O_BINARY #define win32_setmode setmode #else #define win32_setmode(x,y) #endif #define PACKAGE_HEADER(x) PACKAGE_NAME "::" x ", version " PACKAGE_VERSION ".\nBuild options:" BUILDSPEC "\nSend bugs to <" PACKAGE_BUGREPORT ">\n\n" #ifdef ICONV_CONV #define ICONV_CAST (const char **) #else #define ICONV_CAST (char **) #endif #ifndef HAVE_FT2BUILD_H #define FT_FREETYPE_H #define FT_GLYPH_H #endif dvd95/dvdauthor/conffile.c000066400000000000000000000033141140003301000157210ustar00rootroot00000000000000/* * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #include "config.h" #include "compat.h" #include "conffile.h" static char *readconfentryfromfile(const char *s,const char *fname) { FILE *h; static char buf[1000]; h=fopen(fname,"r"); if( !h ) return 0; while(fgets(buf,sizeof(buf),h)) { char *p=strchr(buf,'='); p[0]=0; if(!strcmp(buf,s)) { int l; p++; l=strlen(p); if( l>0 && p[l-1]==10 ) p[l-1]=0; fclose(h); return strdup(p); } } fclose(h); return 0; } char *readconfentry(const char *s) { char *r; char *hd,*hdn; hd=getenv("HOME"); if( hd ) { hdn=malloc(strlen(hd)+30); sprintf(hdn,"%s/.dvdauthorrc",hd); r=readconfentryfromfile(s,hdn); free(hdn); if( r ) return r; } /* r=readconfentryfromfile(s,SYSCONFDIR "/dvdauthor.conf"); if( r ) return r; */ return 0; } dvd95/dvdauthor/conffile.h000066400000000000000000000000441140003301000157230ustar00rootroot00000000000000char *readconfentry(const char *s); dvd95/dvdauthor/config.h000066400000000000000000000057171140003301000154170ustar00rootroot00000000000000/* src/config.h. Generated by configure. */ /* src/config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the declaration of `O_BINARY', and to 0 if you don't. */ #define HAVE_DECL_O_BINARY 0 /* Whether FreeType is available */ #define HAVE_FREETYPE 1 /* Whether FriBiDi is available */ /* #undef HAVE_FRIBIDI */ /* Define to 1 if you have the header file. */ #define HAVE_FT2BUILD_H 1 /* Define to 1 if you have the header file. */ #define HAVE_GETOPT_H 1 /* Define to 1 if you have the `getopt_long' function. */ #define HAVE_GETOPT_LONG 1 /* Define if you have the iconv() function. */ #define HAVE_ICONV 1 /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_IO_H */ /* Define if you have and nl_langinfo(CODESET). */ #define HAVE_LANGINFO_CODESET 1 /* Define to 1 if you have the `dvdread' library (-ldvdread). */ #define HAVE_LIBDVDREAD 1 /* Define to 1 if you have the `gnugetopt' library (-lgnugetopt). */ /* #undef HAVE_LIBGNUGETOPT */ /* Whether the ImageMagick or GraphicsMagick libraries are available */ /* #undef HAVE_MAGICK */ /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the `setmode' function. */ /* #undef HAVE_SETMODE */ /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the `strsep' function. */ #define HAVE_STRSEP 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define as const if the declaration of iconv() needs const. */ #define ICONV_CONST /* Name of package */ #define PACKAGE "dvdauthor" /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "dvdauthor-users@lists.sourceforge.net" /* Define to the full name of this package. */ #define PACKAGE_NAME "DVDAuthor" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "DVDAuthor 0.6.11" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "dvdauthor" /* Define to the version of this package. */ #define PACKAGE_VERSION "0.6.11" /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Version number of package */ #define VERSION "0.6.11" /* Number of bits in a file offset, on hosts where this is settable. */ #define _FILE_OFFSET_BITS 64 /* Define for large files, on AIX-style hosts. */ /* #undef _LARGE_FILES */ dvd95/dvdauthor/da-internal.h000066400000000000000000000134301140003301000163370ustar00rootroot00000000000000/* * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #ifndef __DA_INTERNAL_H_ #define __DA_INTERNAL_H_ enum {VM_NONE=0,VM_MPEG1=1,VM_MPEG2=2}; enum {VS_NONE=0,VS_720H=1,VS_704H=2,VS_352H=3,VS_352L=4}; enum {VF_NONE=0,VF_NTSC=1,VF_PAL=2}; enum {VA_NONE=0,VA_4x3=1,VA_16x9=2}; enum {VD_NONE=0,VD_LETTERBOX=1,VD_PANSCAN=2}; enum {VR_NONE=0,VR_NTSCFILM=1,VR_FILM=2,VR_PAL=3,VR_NTSC=4,VR_30=5,VR_PALFIELD=6,VR_NTSCFIELD=7,VR_60=8}; enum {AF_NONE=0,AF_AC3=1,AF_MP2=2,AF_PCM=3,AF_DTS=4}; enum {AQ_NONE=0,AQ_16=1,AQ_20=2,AQ_24=3,AQ_DRC=4}; enum {AD_NONE=0,AD_SURROUND=1}; enum {AL_NONE=0,AL_NOLANG=1,AL_LANG=2}; enum {AS_NONE=0,AS_48KHZ=1,AS_96KHZ=2}; enum {COMPILE_PRE=0,COMPILE_CELL=1,COMPILE_POST=2}; typedef int64_t pts_t; struct vobuinfo { int sector,lastsector,fsect,fnum,vobcellid,firstvobuincell,lastvobuincell,hasseqend,hasvideo; pts_t videopts[2],sectpts[2],firstvideopts; int numref, firstIfield, numfields, lastrefsect[3]; // why on earth do they want the LAST sector of the ref (I, P) frame? unsigned char *sectdata; // so we don't have to reread it }; struct colorinfo { int colors[16]; }; struct videodesc { int vmpeg,vres,vformat,vaspect,vdisallow,vframerate,vcaption; }; struct audiodesc { int aformat,aquant,adolby; int achannels,alangp,aid,asample; char lang[2]; }; struct subpicdesc { int slangp,sid; char lang[2]; }; struct cell { pts_t startpts,endpts; int ischapter,pauselen; // ischapter: 1 = chapter&program, 2=program only int scellid,ecellid; struct vm_statement *cs; }; struct source { char *fname; int numcells; struct cell *cells; struct vob *vob; }; struct audpts { pts_t pts[2]; int sect; }; struct audchannel { struct audpts *audpts; int numaudpts,maxaudpts; struct audiodesc ad,adwarn; // use for quant and channels }; struct vob { char *fname; int numvobus,maxvobus; int vobid,numcells; struct pgc *p; // used for colorinfo and buttons struct vobuinfo *vi; // 0-31: top two bits are the audio type, bottom 3 bits are the channel id // 32-63: bottom five bits are subpicture id struct audchannel audch[64]; unsigned char buttoncoli[24]; }; struct button { char *name; int autoaction; int x1,y1,x2,y2; char *up,*down,*left,*right; int grp; struct vm_statement *cs; }; struct pgc { int numsources, numbuttons; int numchapters,numprograms,numcells,entries,pauselen; struct source **sources; struct button *buttons; struct vm_statement *prei,*posti; struct colorinfo *ci; }; struct pgcgroup { int pstype; // 0 - vts, 1 - vtsm, 2 - vmgm struct pgc **pgcs; int numpgcs,allentries,numentries; struct vobgroup *vg; // only valid for pstype==0 }; struct langgroup { char lang[3]; struct pgcgroup *pg; }; struct menugroup { int numgroups; struct langgroup *groups; struct vobgroup *vg; }; struct vobgroup { int numaudiotracks, numsubpicturetracks, numvobs, numallpgcs; struct pgc **allpgcs; struct vob **vobs; struct videodesc vd,vdwarn; struct audiodesc ad[8],adwarn[8]; struct subpicdesc sp[32],spwarn[32]; }; struct vtsdef { int hasmenu,numtitles,*numchapters,numsectors; char vtssummary[0x300],vtscat[4]; }; // keeps TT_SRPT within 1 sector #define MAXVTS 170 struct toc_summary { struct vtsdef vts[MAXVTS]; int numvts; }; struct workset { struct toc_summary *ts; struct menugroup *menus; struct pgcgroup *titles; int curmenu; }; extern char *entries[]; extern int jumppad; extern char *pstypes[]; void write8(unsigned char *p,unsigned char d0,unsigned char d1, unsigned char d2,unsigned char d3, unsigned char d4,unsigned char d5, unsigned char d6,unsigned char d7); void write4(unsigned char *p,unsigned int v); void write2(unsigned char *p,unsigned int v); unsigned int read4(unsigned char *p); unsigned int read2(unsigned char *p); int getratedenom(struct vobgroup *va); int findvobu(struct vob *va,pts_t pts,int l,int h); pts_t getptsspan(struct pgc *ch); pts_t getframepts(struct vobgroup *va); unsigned int buildtimeeven(struct vobgroup *va,int64_t num); unsigned int getaudch(struct vobgroup *va,int a); int findcellvobu(struct vob *va,int cellid); pts_t getcellpts(struct vob *va,int cellid); int vobgroup_set_video_attr(struct vobgroup *va,int attr,char *s); int vobgroup_set_video_framerate(struct vobgroup *va,int rate); int audiodesc_set_audio_attr(struct audiodesc *ad,struct audiodesc *adwarn,int attr,char *s); unsigned char *vm_compile(unsigned char *obuf,unsigned char *buf,struct workset *ws,int thispgc,struct vm_statement *cs,int ismenu,int prepost); struct vm_statement *vm_parse(const char *b); void WriteIFOs(char *fbase,struct workset *ws); void TocGen(struct workset *ws,struct pgc *fpc,char *fname); int CreatePGC(FILE *h,struct workset *ws,int ismenu); int FindVobus(char *fbase,struct vobgroup *va,int ismenu); void MarkChapters(struct vobgroup *va); void FixVobus(char *fbase,struct vobgroup *va,int ismenu); int calcaudiogap(struct vobgroup *va,int vcid0,int vcid1,int ach); #endif dvd95/dvdauthor/dvdauthor.c000066400000000000000000000776751140003301000161610ustar00rootroot00000000000000/* * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #include "config.h" #include "compat.h" #include #include #include #include #include #include "dvdauthor.h" #include "da-internal.h" #include "libauthor.h" static const char RCSID[]="$Id: //depot/dvdauthor/src/dvdauthor.c#73 $"; // with this enabled, extra PGC commands will be generated to allow // jumping/calling to a wider number of destinations int jumppad=0; static char *vmpegdesc[4]={"","mpeg1","mpeg2",0}; static char *vresdesc[6]={"","720xfull","704xfull","352xfull","352xhalf",0}; static char *vformatdesc[4]={"","ntsc","pal",0}; static char *vaspectdesc[4]={"","4:3","16:9",0}; static char *vdisallowdesc[4]={"","noletterbox","nopanscan",0}; // taken from mjpegtools, also GPL static char *vratedesc[9]={"", "24000.0/1001.0 (NTSC 3:2 pulldown converted FILM)", "24.0 (NATIVE FILM)", "25.0 (PAL/SECAM VIDEO / converted FILM)", "30000.0/1001.0 (NTSC VIDEO)", "30.0", "50.0 (PAL FIELD RATE)", "60000.0/1001.0 (NTSC FIELD RATE)", "60.0" }; static char *aformatdesc[6]={"","ac3","mp2","lpcm","dts",0}; /*jef pcm->lpcm to match BuildAUdioFormat */ static char *aquantdesc[6]={"","16bps","20bps","24bps","drc",0}; static char *adolbydesc[3]={"","surround",0}; static char *alangdesc[4]={"","nolang","lang",0}; static char *achanneldesc[10]={"","1ch","2ch","3ch","4ch","5ch","6ch","7ch","8ch",0}; static char *asampledesc[4]={"","48khz","96khz",0}; char *entries[9]={"","","title","root","subtitle","audio","angle","ptt",0}; char *pstypes[3]={"VTS","VTSM","VMGM"}; static const int colors[16]={ 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000, 0x1000000 }; static int ratedenom[9]={0,90090,90000,90000,90090,90000,90000,90090,90000}; static int evenrate[9]={0, 24, 24, 25, 30, 30, 50, 60, 60}; static int getratecode(struct vobgroup *va) { if( va->vd.vframerate ) return va->vd.vframerate; else return 4; } int getratedenom(struct vobgroup *va) { return ratedenom[getratecode(va)]; } pts_t getframepts(struct vobgroup *va) { int rc=getratecode(va); return ratedenom[rc]/evenrate[rc]; } static int tobcd(int v) { return (v/10)*16+v%10; } static unsigned int buildtimehelper(struct vobgroup *va,int64_t num,int64_t denom) { int hr,min,sec,fr,rc; int64_t frate; if( denom==90090 ) { frate=30; rc=3; } else { frate=25; rc=1; } num+=denom/(frate*2)+1; sec=num/denom; min=sec/60; hr=tobcd(min/60); min=tobcd(min%60); sec=tobcd(sec%60); num%=denom; fr=tobcd(num*frate/denom); return (hr<<24)|(min<<16)|(sec<<8)|fr|(rc<<6); } unsigned int buildtimeeven(struct vobgroup *va,int64_t num) { int rc=getratecode(va); return buildtimehelper(va,num,ratedenom[rc]); } unsigned int getaudch(struct vobgroup *va,int a) { if( !va->ad[a].aid ) return -1; return va->ad[a].aid-1+(va->ad[a].aformat-1)*8; } void write8(unsigned char *p,unsigned char d0,unsigned char d1,unsigned char d2,unsigned char d3,unsigned char d4,unsigned char d5,unsigned char d6,unsigned char d7) { p[0]=d0; p[1]=d1; p[2]=d2; p[3]=d3; p[4]=d4; p[5]=d5; p[6]=d6; p[7]=d7; } void write4(unsigned char *p,unsigned int v) { p[0]=(v>>24)&255; p[1]=(v>>16)&255; p[2]=(v>>8)&255; p[3]=v&255; } void write2(unsigned char *p,unsigned int v) { p[0]=(v>>8)&255; p[1]=v&255; } unsigned int read4(unsigned char *p) { return (p[0]<<24)|(p[1]<<16)|(p[2]<<8)|p[3]; } unsigned int read2(unsigned char *p) { return (p[0]<<8)|p[1]; } static int warnupdate(int *oldval,int newval,int *warnval,char *desc,char **lookup) { if( oldval[0]==0 ) { oldval[0]=newval; return 0; } if (oldval[0]==newval ) return 0; else if( warnval[0]!=newval ) { fprintf(stderr,"WARN: attempt to update %s from %s to %s; skipping\n",desc,lookup[oldval[0]],lookup[newval]); warnval[0]=newval; } return 1; } static int scanandwarnupdate(int *oldval,char *newval,int *warnval,char *desc,char **lookup) { int i; for( i=1; lookup[i]; i++ ) if( !strcasecmp(newval,lookup[i]) ) return warnupdate(oldval,i,warnval,desc,lookup)+1; return 0; } int vobgroup_set_video_framerate(struct vobgroup *va,int rate) { int w; if( !va->vd.vframerate && rate!=3 && rate!=4 ) fprintf(stderr,"WARN: not a valid DVD frame rate: %s\n",vratedesc[rate]); w=scanandwarnupdate(&va->vd.vframerate,vratedesc[rate],&va->vdwarn.vframerate,"frame rate",vratedesc); if(w) return w-1; return 0; } #define ATTRMATCH(a) (attr==0 || attr==(a)) int vobgroup_set_video_attr(struct vobgroup *va,int attr,char *s) { int w; if( ATTRMATCH(VIDEO_MPEG) ) { w=scanandwarnupdate(&va->vd.vmpeg,s,&va->vdwarn.vmpeg,"mpeg format",vmpegdesc); if(w) return w-1; } if( ATTRMATCH(VIDEO_FORMAT) ) { w=scanandwarnupdate(&va->vd.vformat,s,&va->vdwarn.vformat,"tv format",vformatdesc); if(w) return w-1; } if( ATTRMATCH(VIDEO_ASPECT) ) { w=scanandwarnupdate(&va->vd.vaspect,s,&va->vdwarn.vaspect,"aspect ratio",vaspectdesc); if(w) return w-1; } if( ATTRMATCH(VIDEO_WIDESCREEN) ) { w=scanandwarnupdate(&va->vd.vdisallow,s,&va->vdwarn.vdisallow,"16:9 disallow",vdisallowdesc); if(w) return w-1; } if( ATTRMATCH(VIDEO_CAPTION) ) { if( !strcasecmp(s,"field1") ) va->vd.vcaption|=1; else if( !strcasecmp(s,"field2") ) va->vd.vcaption|=2; } if( ATTRMATCH(VIDEO_RESOLUTION) && strstr(s,"x") ) { int h=atoi(s),v,r,w; char *s2=strstr(s,"x")+1; if(isdigit(s2[0])) v=atoi(s2); else if(!strcasecmp(s2,"full") || !strcasecmp(s2,"high")) v=384; else v=383; if( h>704 ) r=VS_720H; else if( h>352 ) r=VS_704H; else if( v>=384 ) r=VS_352H; else r=VS_352L; w=warnupdate(&va->vd.vres,r,&va->vdwarn.vres,"resolution",vresdesc); if( va->vd.vformat==VF_NONE ) { if( !(v%5) ) va->vd.vformat=VF_NTSC; else if( !(v%9) ) va->vd.vformat=VF_PAL; } return w; } fprintf(stderr,"ERR: Cannot parse video option '%s'\n",s); Exit(1); } int audiodesc_set_audio_attr(struct audiodesc *ad,struct audiodesc *adwarn,int attr,char *s) { int w; if (ATTRMATCH(AUDIO_FORMAT)) { w=scanandwarnupdate(&ad->aformat,s,&adwarn->aformat,"audio format",aformatdesc); if(w) return w-1; } if (ATTRMATCH(AUDIO_QUANT)) { w=scanandwarnupdate(&ad->aquant,s,&adwarn->aquant,"audio quantization",aquantdesc); if(w) return w-1; } if (ATTRMATCH(AUDIO_DOLBY)) { w=scanandwarnupdate(&ad->adolby,s,&adwarn->adolby,"surround",adolbydesc); if(w) return w-1; } if (ATTRMATCH(AUDIO_ANY)) { w=scanandwarnupdate(&ad->alangp,s,&adwarn->alangp,"audio language",alangdesc); if(w) return w-1; } if (ATTRMATCH(AUDIO_CHANNELS)) { w=scanandwarnupdate(&ad->achannels,s,&adwarn->achannels,"number of channels",achanneldesc); if(w) return w-1; } if (ATTRMATCH(AUDIO_SAMPLERATE)) { w=scanandwarnupdate(&ad->asample,s,&adwarn->asample,"sampling rate",asampledesc); if(w) return w-1; } if (ATTRMATCH(AUDIO_LANG) && 2==strlen(s)) { w=warnupdate(&ad->alangp,AL_LANG,&adwarn->alangp,"audio language",alangdesc); if(ad->lang[0] || ad->lang[1]) w=1; ad->lang[0]=tolower(s[0]); ad->lang[1]=tolower(s[1]); return w; } fprintf(stderr,"ERR: Cannot parse audio option '%s'\n",s); Exit(1); } static int vobgroup_set_audio_attr(struct vobgroup *va,int attr,char *s,int ch) { if( ch>=va->numaudiotracks ) va->numaudiotracks=ch+1; return audiodesc_set_audio_attr(&va->ad[ch],&va->adwarn[ch],attr,s); } static int vobgroup_set_subpic_attr(struct vobgroup *va,int attr,char *s,int ch) { int w; if( ch>=va->numsubpicturetracks ) va->numsubpicturetracks=ch+1; if (ATTRMATCH(SPU_ANY)) { w=scanandwarnupdate(&va->sp[ch].slangp,s,&va->spwarn[ch].slangp,"subpicture language",alangdesc); if(w) return w-1; } if(ATTRMATCH(SPU_LANG) && 2==strlen(s)) { w=warnupdate(&va->sp[ch].slangp,AL_LANG,&va->spwarn[ch].slangp,"subpicture language",alangdesc); if(va->sp[ch].lang[0] || va->sp[ch].lang[1]) w=1; va->sp[ch].lang[0]=tolower(s[0]); va->sp[ch].lang[1]=tolower(s[1]); return w; } fprintf(stderr,"ERR: Cannot parse subpicture option '%s' on track %d\n",s,ch); Exit(1); } static void inferattr(int *a,int def) { if( a[0]!=0 ) return; a[0]=def; } static void setattr(struct vobgroup *va,int pstype) { int i; if( va->vd.vmpeg==VM_NONE ) fprintf(stderr,"WARN: video mpeg version was not autodetected\n"); if( va->vd.vres==VS_NONE ) fprintf(stderr,"WARN: video resolution was not autodetected\n"); if( va->vd.vformat==VF_NONE ) fprintf(stderr,"WARN: video format was not autodetected\n"); if( va->vd.vaspect==VA_NONE ) fprintf(stderr,"WARN: aspect ratio was not autodetected\n"); inferattr(&va->vd.vmpeg, VM_MPEG2); inferattr(&va->vd.vres, VS_720H); inferattr(&va->vd.vformat,VF_NTSC); inferattr(&va->vd.vaspect,VA_4x3); if( va->vd.vaspect==VA_4x3 ) va->vd.vdisallow=VD_LETTERBOX|VD_PANSCAN; // if you are 4:3 then you don't need letterbox or pan&scan for( i=0; i<32; i++ ) { int id=(i>>2)+1, f=(i&3)+1, j,fnd; // note this does not follow the normal stream order struct audchannel *fad=0; int matchidx,matchcnt; fnd=0; for( j=0; jnumvobs; j++ ) { fad=&va->vobs[j]->audch[id-1+(f-1)*8]; if( fad->numaudpts ) { fnd=1; break; } } if( !fnd ) continue; // do we already know about this stream? fnd=0; for( j=0; jnumaudiotracks; j++ ) if( va->ad[j].aformat==f && va->ad[j].aid==id ) fnd=1; if( fnd ) continue; matchcnt=-1; matchidx=-1; // maybe we know about this type of stream but haven't matched the id yet? for( j=0; jnumaudiotracks; j++ ) if( va->ad[j].aid==0 ) { int c=0; #define ACMPV(setting,val) \ if( va->ad[j].setting!=0 && val!=0 && va->ad[j].setting!=val ) continue; \ if( va->ad[j].setting==val ) c++ #define ACMP(setting) ACMPV(setting,fad->ad.setting) ACMPV(aformat,f); ACMP(aquant); ACMP(adolby); ACMP(achannels); ACMP(asample); #undef ACMP #undef ACMPV if( c>matchcnt ) { matchcnt=c; matchidx=j; } fnd=1; } if( !fnd ) { // guess we need to add this stream j=va->numaudiotracks++; } else j=matchidx; va->ad[j].aformat=f; va->ad[j].aid=id; warnupdate(&va->ad[j].aquant, fad->ad.aquant, &va->adwarn[j].aquant, "audio quantization", aquantdesc); warnupdate(&va->ad[j].adolby, fad->ad.adolby, &va->adwarn[j].adolby, "surround", adolbydesc); warnupdate(&va->ad[j].achannels, fad->ad.achannels, &va->adwarn[j].achannels, "number of channels", achanneldesc); warnupdate(&va->ad[j].asample, fad->ad.asample, &va->adwarn[j].asample, "sampling rate", asampledesc); } for( i=0; inumaudiotracks; i++ ) { if( va->ad[i].aformat==AF_NONE ) { fprintf(stderr,"WARN: audio stream %d was not autodetected\n",i); } inferattr(&va->ad[i].aformat,AF_MP2); switch(va->ad[i].aformat) { case AF_AC3: case AF_DTS: inferattr(&va->ad[i].aquant,AQ_DRC); inferattr(&va->ad[i].achannels,6); break; case AF_MP2: inferattr(&va->ad[i].aquant,AQ_20); inferattr(&va->ad[i].achannels,2); break; case AF_PCM: inferattr(&va->ad[i].achannels,2); inferattr(&va->ad[i].aquant,AQ_16); break; } inferattr(&va->ad[i].asample,AS_48KHZ); } for( i=32; i<64; i++ ) { int id=i-32+1, j, fnd; fnd=0; for( j=0; jnumvobs; j++ ) if( va->vobs[j]->audch[i].numaudpts ) fnd=1; if( !fnd ) continue; // do we already know about this stream? fnd=0; for( j=0; jnumsubpicturetracks; j++ ) if( va->sp[j].sid==id ) fnd=1; if( fnd ) continue; // maybe we know about this type of stream but haven't matched the id yet? for( j=0; jnumsubpicturetracks; j++ ) if( va->sp[j].sid==0 ) { va->sp[j].sid=id; fnd=1; break; } if( fnd ) continue; // guess we need to add this stream va->sp[va->numsubpicturetracks].sid=id; va->numsubpicturetracks++; } fprintf(stderr,"INFO: Generating %s with the following video attributes:\n",pstypes[pstype]); fprintf(stderr,"INFO: MPEG version: %s\n",vmpegdesc[va->vd.vmpeg]); fprintf(stderr,"INFO: TV standard: %s\n",vformatdesc[va->vd.vformat]); fprintf(stderr,"INFO: Aspect ratio: %s\n",vaspectdesc[va->vd.vaspect]); fprintf(stderr,"INFO: Resolution: %dx%d\n", va->vd.vres!=VS_720H?(va->vd.vres==VS_704H?704:352):720, (va->vd.vres==VS_352L?240:480)*(va->vd.vformat==VF_PAL?6:5)/5); for( i=0; inumaudiotracks; i++ ) { fprintf(stderr,"INFO: Audio ch %d format: %s/%s, %s %s",i,aformatdesc[va->ad[i].aformat],achanneldesc[va->ad[i].achannels],asampledesc[va->ad[i].asample],aquantdesc[va->ad[i].aquant]); if( va->ad[i].adolby==AD_SURROUND ) fprintf(stderr,", surround"); if( va->ad[i].alangp==AL_LANG ) fprintf(stderr,", '%c%c'",va->ad[i].lang[0],va->ad[i].lang[1]); fprintf(stderr,"\n"); if( !va->ad[i].aid ) fprintf(stderr,"WARN: Audio ch %d is not used!\n",i); } } int findcellvobu(struct vob *va,int cellid) { int l=0,h=va->numvobus-1; if( hvobid*256); if( cellidvi[0].vobcellid ) return 0; if( cellid>va->vi[h].vobcellid ) return h+1; while(lvi[m].vobcellid ) h=m; else l=m+1; } return l; } pts_t getcellpts(struct vob *va,int cellid) { int s=findcellvobu(va,cellid),e=findcellvobu(va,cellid+1); if( s==e ) return 0; return va->vi[e-1].sectpts[1]-va->vi[s].sectpts[0]; } int findvobu(struct vob *va,pts_t pts,int l,int h) { // int l=0,h=va->numvobus-1; if( hvi[l].sectpts[0] ) return l-1; if( pts>=va->vi[h].sectpts[1] ) return h+1; while(lvi[m].sectpts[0] ) h=m-1; else l=m; } return l; } pts_t getptsspan(struct pgc *ch) { int s,c,ci; pts_t ptsspan=0; for( s=0; snumsources; s++ ) { struct source *sc=ch->sources[s]; for( c=0; cnumcells; c++ ) { struct cell *cl=&sc->cells[c]; for( ci=cl->scellid; ciecellid; ci++ ) ptsspan+=getcellpts(sc->vob,ci); } } return ptsspan; } static char *makevtsdir(char *s) { static char fbuf[1000]; if( !s ) return 0; strcpy(fbuf,s); strcat(fbuf,"/VIDEO_TS"); return strdup(fbuf); } // jumppad requires the existance of a menu to operate // if no languages exist, create an english one static void jp_force_menu(struct menugroup *mg,int type) { struct pgcgroup *pg; if( !jumppad ) return; if( mg->numgroups ) return; fprintf(stderr,"WARN: The use of jumppad requires a menu; creating a dummy ENGLISH menu\n"); pg=pgcgroup_new(type); menugroup_add_pgcgroup(mg,"en",pg); } static void ScanIfo(struct toc_summary *ts,char *ifo) { static unsigned char buf[2048]; struct vtsdef *vd; int i,first; FILE *h=fopen(ifo,"rb"); if( !h ) { fprintf(stderr,"ERR: cannot open %s: %s\n",ifo,strerror(errno)); Exit(1); } if( ts->numvts+1 >= MAXVTS ) { fprintf(stderr,"ERR: Too many VTSs\n"); Exit(1); } fread(buf,1,2048,h); vd=&ts->vts[ts->numvts]; if( read4(buf+0xc0)!=0 ) vd->hasmenu=1; else vd->hasmenu=0; vd->numsectors=read4(buf+0xc)+1; memcpy(vd->vtscat,buf+0x22,4); memcpy(vd->vtssummary,buf+0x100,0x300); fread(buf,1,2048,h); // VTS_PTT_SRPT is 2nd sector // we only need to read the 1st sector of it because we only need the // pgc pointers vd->numtitles=read2(buf); vd->numchapters=(int *)malloc(sizeof(int)*vd->numtitles); first=8+vd->numtitles*4; for( i=0; inumtitles-1; i++ ) { int n=read4(buf+12+i*4); vd->numchapters[i]=(n-first)/4; first=n; } vd->numchapters[i]=(read4(buf+4)+1-first)/4; fclose(h); ts->numvts++; } static void forceaddentry(struct pgcgroup *va,int entry) { if( !va->numpgcs && !jumppad ) return; if( !(va->allentries&entry) ) { if( va->numpgcs ) va->pgcs[0]->entries|=entry; va->allentries|=entry; va->numentries++; } } static void checkaddentry(struct pgcgroup *va,int entry) { if( va->numpgcs ) forceaddentry(va,entry); } static int getvtsnum(char *fbase) { static char realfbase[1000]; int i; for( i=1; i<=99; i++ ) { FILE *h; sprintf(realfbase,"%s/VIDEO_TS/VTS_%02d_0.IFO",fbase,i); h=fopen(realfbase,"rb"); if( !h ) break; fclose(h); } AuthorStatus("Picking VTS %02d",i); return i; } static void initdir(char *fbase) { static char realfbase[1000]; mkdir(fbase,0777); sprintf(realfbase,"%s/VIDEO_TS",fbase); mkdir(realfbase,0777); sprintf(realfbase,"%s/AUDIO_TS",fbase); mkdir(realfbase,0777); } static struct colorinfo *colorinfo_new() { struct colorinfo *ci=malloc(sizeof(struct colorinfo)); memcpy(ci->colors,colors,16*sizeof(int)); return ci; } static struct vobgroup *vobgroup_new() { struct vobgroup *vg=malloc(sizeof(struct vobgroup)); memset(vg,0,sizeof(struct vobgroup)); return vg; } static void vobgroup_addvob(struct vobgroup *pg,struct pgc *p,struct source *s) { int i,forcenew; struct vob *v; forcenew=(p->numbuttons!=0); if( !forcenew ) { for( i=0; inumvobs; i++ ) if( !strcmp(pg->vobs[i]->fname,s->fname) && pg->vobs[i]->p->numbuttons==0 ) { s->vob=pg->vobs[i]; return; } } pg->vobs=realloc(pg->vobs,(pg->numvobs+1)*sizeof(struct vob *)); v=malloc(sizeof(struct vob)); pg->vobs[pg->numvobs++]=v; memset(v,0,sizeof(struct vob)); v->fname=strdup(s->fname); v->p=p; s->vob=v; } static void pgcgroup_pushci(struct pgcgroup *p,int warn) { int i,j,ii,jj; for( i=0; inumpgcs; i++ ) { if( !p->pgcs[i]->ci ) continue; for( j=0; jpgcs[i]->numsources; j++ ) { struct vob *v=p->pgcs[i]->sources[j]->vob; for( ii=0; iinumpgcs; ii++ ) for( jj=0; jjpgcs[ii]->numsources; jj++ ) if( v==p->pgcs[ii]->sources[jj]->vob ) { if( !p->pgcs[ii]->ci ) p->pgcs[ii]->ci=p->pgcs[i]->ci; else if( p->pgcs[ii]->ci!=p->pgcs[i]->ci && warn) { fprintf(stderr,"WARN: Conflict in colormap between PGC %d and %d\n",i,ii); } } } } } static void pgcgroup_createvobs(struct pgcgroup *p,struct vobgroup *v) { int i,j; v->allpgcs=(struct pgc **)realloc(v->allpgcs,(v->numallpgcs+p->numpgcs)*sizeof(struct pgc *)); memcpy(v->allpgcs+v->numallpgcs,p->pgcs,p->numpgcs*sizeof(struct pgc *)); v->numallpgcs+=p->numpgcs; for( i=0; inumpgcs; i++ ) for( j=0; jpgcs[i]->numsources; j++ ) vobgroup_addvob(v,p->pgcs[i],p->pgcs[i]->sources[j]); pgcgroup_pushci(p,0); for( i=0; inumpgcs; i++ ) if( !p->pgcs[i]->ci ) { p->pgcs[i]->ci=colorinfo_new(); pgcgroup_pushci(p,0); } pgcgroup_pushci(p,1); } static void validatesummary(struct pgcgroup *va) { int i,err=0,allowedentries; switch(va->pstype) { case 1: allowedentries=0xf8; break; case 2: allowedentries=4; break; // case 0: default: allowedentries=0; break; } for( i=0; inumpgcs; i++ ) { struct pgc *p=va->pgcs[i]; if( !p->posti && p->numsources ) { struct source *s=p->sources[p->numsources-1]; s->cells[s->numcells-1].pauselen=255; } if( va->allentries & p->entries ) { int j; for( j=0; j<8; j++ ) if( va->allentries & p->entries & (1<entries & ~allowedentries ) { int j; for( j=0; j<8; j++ ) if( p->entries & (~allowedentries) & (1<pstype]); err=1; } va->allentries|=p->entries; if( p->numsources ) { int j,first; first=1; for( j=0; jnumsources; j++ ) { if( !p->sources[j]->numcells ) fprintf(stderr,"WARN: Source has no cells (%s) in PGC %d\n",p->sources[j]->fname,i); else if( first ) { if( p->sources[j]->cells[0].ischapter!=1 ) { fprintf(stderr,"WARN: First cell is not marked as a chapter in PGC %d, setting chapter flag\n",i); p->sources[j]->cells[0].ischapter=1; } first=0; } } } } for( i=1; i<256; i<<=1 ) if( va->allentries&i ) va->numentries++; if(err) Exit(1); } struct source *source_new() { struct source *v=malloc(sizeof(struct source)); memset(v,0,sizeof(struct source)); return v; } int source_add_cell(struct source *v,double starttime,double endtime,int chap,int pause,const char *cmd) { struct cell *c; v->cells=realloc(v->cells,(v->numcells+1)*sizeof(struct cell)); c=v->cells+v->numcells; v->numcells++; c->startpts=starttime*90000+.5; c->endpts=endtime*90000+.5; c->ischapter=chap; c->pauselen=pause; if( cmd ) c->cs=vm_parse(cmd); else c->cs=0; return 0; } void source_set_filename(struct source *v,const char *s) { v->fname=strdup(s); } struct pgc *pgc_new() { struct pgc *p=malloc(sizeof(struct pgc)); memset(p,0,sizeof(struct pgc)); return p; } void pgc_set_pre(struct pgc *p,const char *cmd) { assert(!p->prei); p->prei=vm_parse(cmd); // this will initialize prei } void pgc_set_post(struct pgc *p,const char *cmd) { assert(!p->posti); p->posti=vm_parse(cmd); // this will initialize posti } void pgc_set_color(struct pgc *p,int index,int color) { assert(index>=0 && index<16); if( !p->ci ) p->ci=colorinfo_new(); p->ci->colors[index]=color; } void pgc_set_stilltime(struct pgc *p,int still) { p->pauselen=still; } void pgc_add_entry(struct pgc *p,char *entry) { int i; for( i=2; i<8; i++ ) if( !strcasecmp(entry,entries[i])) { int v=1<entries&v ) { fprintf(stderr,"ERR: Defined entry '%s' multiple times for the same PGC\n",entry); Exit(1); } p->entries|=1<sources=(struct source **)realloc(p->sources,(p->numsources+1)*sizeof(struct source *)); p->sources[p->numsources++]=v; } int pgc_add_button(struct pgc *p,const char *name,const char *cmd) { struct button *bs; if( p->numbuttons==36 ) { fprintf(stderr,"ERR: Limit of up to 36 buttons\n"); Exit(1); } p->buttons=(struct button *)realloc(p->buttons,(p->numbuttons+1)*sizeof(struct button)); bs=&p->buttons[p->numbuttons++]; memset(bs,0,sizeof(struct button)); if( name ) bs->name=strdup(name); else { char nm[10]; sprintf(nm,"%d",p->numbuttons); bs->name=strdup(nm); } bs->cs=vm_parse(cmd); return 0; } struct pgcgroup *pgcgroup_new(int type) { struct pgcgroup *ps=malloc(sizeof(struct pgcgroup)); memset(ps,0,sizeof(struct pgcgroup)); ps->pstype=type; if( !type ) ps->vg=vobgroup_new(); return ps; } void pgcgroup_add_pgc(struct pgcgroup *ps,struct pgc *p) { ps->pgcs=(struct pgc **)realloc(ps->pgcs,(ps->numpgcs+1)*sizeof(struct pgc *)); ps->pgcs[ps->numpgcs++]=p; } int pgcgroup_set_video_attr(struct pgcgroup *va,int attr,char *s) { return vobgroup_set_video_attr(va->vg,attr,s); } int pgcgroup_set_audio_attr(struct pgcgroup *va,int attr,char *s,int ch) { return vobgroup_set_audio_attr(va->vg,attr,s,ch); } int pgcgroup_set_subpic_attr(struct pgcgroup *va,int attr,char *s,int ch) { return vobgroup_set_subpic_attr(va->vg,attr,s,ch); } struct menugroup *menugroup_new() { struct menugroup *mg=malloc(sizeof(struct menugroup)); memset(mg,0,sizeof(struct menugroup)); mg->vg=vobgroup_new(); return mg; } void menugroup_add_pgcgroup(struct menugroup *mg,char *lang,struct pgcgroup *pg) { mg->groups=(struct langgroup *)realloc(mg->groups,(mg->numgroups+1)*sizeof(struct langgroup)); if( strlen(lang)!=2 ) { fprintf(stderr,"ERR: Menu language '%s' is not two letters.\n",lang); Exit(1); } mg->groups[mg->numgroups].lang[0]=tolower(lang[0]); mg->groups[mg->numgroups].lang[1]=tolower(lang[1]); mg->groups[mg->numgroups].pg=pg; mg->numgroups++; } int menugroup_set_video_attr(struct menugroup *va,int attr,char *s) { return vobgroup_set_video_attr(va->vg,attr,s); } int menugroup_set_audio_attr(struct menugroup *va,int attr,char *s,int ch) { return vobgroup_set_audio_attr(va->vg,attr,s,ch); } int menugroup_set_subpic_attr(struct menugroup *va,int attr,char *s,int ch) { return vobgroup_set_subpic_attr(va->vg,attr,s,ch); } void dvdauthor_enable_jumppad() { jumppad=1; } void dvdauthor_vmgm_gen(struct pgc *fpc,struct menugroup *menus,char *fbase) { DIR *d; struct dirent *de; char *vtsdir; int i; static struct toc_summary ts; static char fbuf[1000]; static char ifonames[101][14]; struct workset ws; ws.ts=&ts; ws.menus=menus; ws.titles=0; jp_force_menu(menus,2); for( i=0; inumgroups; i++ ) { validatesummary(menus->groups[i].pg); pgcgroup_createvobs(menus->groups[i].pg,menus->vg); forceaddentry(menus->groups[i].pg,4); } fprintf(stderr,"INFO: dvdauthor creating table of contents\n"); initdir(fbase); // create base entry, if not already existing memset(&ts,0,sizeof(struct toc_summary)); vtsdir=makevtsdir(fbase); for( i=0; i<101; i++ ) ifonames[i][0]=0; d=opendir(vtsdir); while ((de=readdir(d))!=0) { i=strlen(de->d_name); if( i==12 && !strcasecmp(de->d_name+i-6,"_0.IFO") && !strncasecmp(de->d_name,"VTS_",4)) { i=(de->d_name[4]-'0')*10+(de->d_name[5]-'0'); if( ifonames[i][0] ) { fprintf(stderr,"ERR: Two different names for the same titleset: %s and %s\n",ifonames[i],de->d_name); Exit(1); } if( !i ) { fprintf(stderr,"ERR: Cannot have titleset #0 (%s)\n",de->d_name); Exit(1); } strcpy(ifonames[i],de->d_name); } } closedir(d); for( i=1; i<=99; i++ ) { if( !ifonames[i][0] ) break; sprintf(fbuf,"%s/%s",vtsdir,ifonames[i]); fprintf(stderr,"INFO: Scanning %s\n",fbuf); ScanIfo(&ts,fbuf); } for( ; i<=99; i++ ) if( ifonames[i][0] ) { fprintf(stderr,"ERR: Titleset #%d (%s) does not immediately follow the last titleset\n",i,ifonames[i]); Exit(1); } if( !ts.numvts ) { fprintf(stderr,"ERR: No .IFO files to process\n"); Exit(1); } if( menus->vg->numvobs ) { fprintf(stderr,"INFO: Creating menu for TOC\n"); sprintf(fbuf,"%s/VIDEO_TS.VOB",vtsdir); FindVobus(fbuf,menus->vg,2); MarkChapters(menus->vg); setattr(menus->vg,2); fprintf(stderr,"\n"); FixVobus(fbuf,menus->vg,2); } sprintf(fbuf,"%s/VIDEO_TS.IFO",vtsdir); TocGen(&ws,fpc,fbuf); sprintf(fbuf,"%s/VIDEO_TS.BUP",vtsdir); TocGen(&ws,fpc,fbuf); } void dvdauthor_vts_gen(struct menugroup *menus,struct pgcgroup *titles,char *fbase) { int vtsnum,i; static char realfbase[1000]; struct workset ws; fprintf(stderr,"INFO: dvdauthor creating VTS\n"); initdir(fbase); ws.ts=0; ws.menus=menus; ws.titles=titles; jp_force_menu(menus,1); for( i=0; inumgroups; i++ ) { validatesummary(menus->groups[i].pg); pgcgroup_createvobs(menus->groups[i].pg,menus->vg); forceaddentry(menus->groups[i].pg,0x80); checkaddentry(menus->groups[i].pg,0x08); } validatesummary(titles); pgcgroup_createvobs(titles,titles->vg); if( titles->numpgcs==0 ) { fprintf(stderr,"ERR: no titles defined\n"); Exit(1); } vtsnum=getvtsnum(fbase); sprintf(realfbase,"%s/VIDEO_TS/VTS_%02d",fbase,vtsnum); if( menus->vg->numvobs ) { FindVobus(realfbase,menus->vg,1); MarkChapters(menus->vg); setattr(menus->vg,1); } FindVobus(realfbase,titles->vg,0); MarkChapters(titles->vg); setattr(titles->vg,0); if( !menus->vg->numvobs ) { // for undefined menus, we'll just copy the video type of the title menus->vg->vd=titles->vg->vd; } fprintf(stderr,"\n"); WriteIFOs(realfbase,&ws); if( menus->vg->numvobs ) FixVobus(realfbase,menus->vg,1); FixVobus(realfbase,titles->vg,0); } dvd95/dvdauthor/dvdauthor.h000066400000000000000000000053441140003301000161460ustar00rootroot00000000000000/* * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #ifndef __DVDAUTHOR_H_ #define __DVDAUTHOR_H_ #ifdef __cplusplus extern "C" { #endif struct menugroup; struct pgcgroup; struct pgc; struct source; struct cell; struct pgc *pgc_new(); int pgc_add_button(struct pgc *p,const char *name,const char *cmd); void pgc_add_entry(struct pgc *p,char *entry); void pgc_add_source(struct pgc *p,struct source *v); void pgc_set_pre(struct pgc *p,const char *cmd); void pgc_set_post(struct pgc *p,const char *cmd); void pgc_set_color(struct pgc *p,int index,int color); #if 0 void pgc_set_buttongroup(struct pgc *p,int index,unsigned char *map); #endif void pgc_set_stilltime(struct pgc *p,int still); enum { VIDEO_ANY=0, VIDEO_MPEG, VIDEO_FORMAT, VIDEO_ASPECT, VIDEO_RESOLUTION, VIDEO_WIDESCREEN, VIDEO_FRAMERATE, VIDEO_CAPTION }; enum { AUDIO_ANY=0, AUDIO_FORMAT, AUDIO_QUANT, AUDIO_DOLBY, AUDIO_LANG, AUDIO_CHANNELS, AUDIO_SAMPLERATE }; enum { SPU_ANY=0, SPU_LANG }; struct pgcgroup *pgcgroup_new(int type); void pgcgroup_add_pgc(struct pgcgroup *ps,struct pgc *p); int pgcgroup_set_video_attr(struct pgcgroup *va,int attr,char *s); int pgcgroup_set_audio_attr(struct pgcgroup *va,int attr,char *s,int ch); int pgcgroup_set_subpic_attr(struct pgcgroup *va,int attr,char *s,int ch); struct menugroup *menugroup_new(); void menugroup_add_pgcgroup(struct menugroup *mg,char *lang,struct pgcgroup *pg); int menugroup_set_video_attr(struct menugroup *va,int attr,char *s); int menugroup_set_audio_attr(struct menugroup *va,int attr,char *s,int ch); int menugroup_set_subpic_attr(struct menugroup *va,int attr,char *s,int ch); struct source *source_new(); int source_add_cell(struct source *v,double starttime,double endtime,int chap,int pause,const char *cmd); void source_set_filename(struct source *v,const char *s); void dvdauthor_enable_jumppad(); void dvdauthor_vts_gen(struct menugroup *menus,struct pgcgroup *titles,char *fbase); void dvdauthor_vmgm_gen(struct pgc *fpc,struct menugroup *menus,char *fbase); #ifdef __cplusplus } #endif #endif dvd95/dvdauthor/dvdcli.c000066400000000000000000000656201140003301000154110ustar00rootroot00000000000000/* * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #include "config.h" #include "compat.h" #include #include #include "conffile.h" #include "dvdauthor.h" #include "readxml.h" #include "rgb.h" static const char RCSID[]="$Id: //depot/dvdauthor/src/dvdcli.c#52 $"; #define RGB2YCrCb(R,G,B) ((((int)RGB2Y(R,G,B))<<16)|(((int)RGB2Cr(R,G,B))<<8)|(((int)RGB2Cb(R,G,B)))) static int readdvdauthorxml(const char *xmlfile,char *fb); static int hadchapter=0,pauselen=0; static char *chapters=0; static void parsevideoopts(struct pgcgroup *va,char *o) { char *s; while(NULL!=(s=strsep(&o,"+"))) { if(pgcgroup_set_video_attr(va,VIDEO_ANY,s)) { fprintf(stderr,"ERR: Video option '%s' overrides previous option\n",s); Exit(1); } } } static void parseaudiotrack(struct pgcgroup *va,char *o,int c) { char *s; while(NULL!=(s=strsep(&o,"+"))) { if(pgcgroup_set_audio_attr(va,AUDIO_ANY,s,c)) { fprintf(stderr,"ERR: Audio option '%s' on track %d overrides previous option\n",s,c); Exit(1); } } } static void parseaudioopts(struct pgcgroup *va,char *o) { char *s; int ch=0; while(NULL!=(s=strsep(&o,", "))) { parseaudiotrack(va,s,ch); ch++; } } static void parsesubpicturetrack(struct pgcgroup *va,char *o,int c) { char *s; while(NULL!=(s=strsep(&o,"+"))) { if(pgcgroup_set_subpic_attr(va,SPU_ANY,s,c)) { fprintf(stderr,"ERR: Subpicture option '%s' on track %d overrides previous option\n",s,c); Exit(1); } } } static void parsesubpictureopts(struct pgcgroup *va,char *o) { char *s; int ch=0; while(NULL!=(s=strsep(&o,", "))) { parsesubpicturetrack(va,s,ch); ch++; } } static void parsebutton(struct pgc *va,char *b) { char *bnm=0; if( strchr(b,'=') ) { char *p=strchr(b,'='); p[0]=0; bnm=b; b=p+1; } pgc_add_button(va,bnm,b); } static void parseinstructions(struct pgc *va,char *b) { char *c=strsep(&b,"="); if(!strcasecmp(c,"post")) { pgc_set_post(va,b); } else if(!strcasecmp(c,"pre")) { pgc_set_pre(va,b); } else { fprintf(stderr,"Unknown instruction block: %s\n",c); Exit(1); } } static void parseentries(struct pgc *p,char *b) { char *v; while(NULL!=(v=strsep(&b,", "))) pgc_add_entry(p,v); } static double parsechapter(char *s) { double total=0,field=0; int i; for( i=0; s[i]; i++ ) { if(!strchr(s+i,':')) { char *last; field=strtod(s+i,&last); if( *last ) { fprintf(stderr,"ERR1: Cannot parse chapter timestamp '%s' i=%d *last=%d\n",s,i,*last); Exit(1); } break; } else if(isdigit(s[i])) field=field*10+s[i]-'0'; else if(s[i]==':') { total=total*60+field; field=0; } else { fprintf(stderr,"ERR2: Cannot parse chapter timestamp '%s' s[%d]=%d\n",s,i, s[i]); Exit(1); } } return total*60+field; } static void parsechapters(char *o,struct source *src,int pauselen) { char *s; double last=0; int lastchap=0; while(NULL!=(s=strsep(&o,", "))) { double total=parsechapter(s); if( total>last ) { source_add_cell(src,last,total,lastchap,0,0); last=total; lastchap=1; } else if( total==last ) lastchap=1; } source_add_cell(src,last,-1,lastchap,pauselen,0); } static void readpalette(struct pgc *p,const char *fname) { int i,rgbf; FILE *h; if(fname[0] == '&' && isdigit(fname[1]) ) h=fdopen(atoi(&fname[1]),"rb"); else h=fopen(fname,"rb"); if( !h ) { fprintf(stderr,"ERR: Cannot open palette file '%s'\n",fname); Exit(1); } /* write out colors, the hex is the 0yuv combined in one integer 00yyuuvv */ i=strlen(fname); rgbf=( i>=4 && !strcasecmp(fname+i-4,".rgb") ); for( i=0; i<16; i++ ) { int pcolor; fscanf(h, "%x", &pcolor); if( rgbf ) { int r=(pcolor>>16)&255, g=(pcolor>>8)&255, b=(pcolor)&255; pcolor=RGB2YCrCb(r,g,b); } pgc_set_color(p,i,pcolor); } #if 0 int b; unsigned char groups[24]; memset(groups,0,24); i=0; while(fscanf(h,"%x",&b) == 1 && i<24 ) { groups[i++]=b>>24; groups[i++]=b>>16; groups[i++]=b>>8; groups[i++]=b; if( !(i&7) ) pgc_set_buttongroup(p,(i-8)/8,groups+(i-8)); } #endif fclose(h); } static void usage() { #ifdef HAVE_GETOPT_LONG #define LONGOPT(x) x #define LONGOPT2(x,y) x #else #define LONGOPT(x) #define LONGOPT2(x,y) y #endif fprintf(stderr, "syntax: dvdauthor [-o VTSBASE] [options] VOBFILE(s)\n" "\n\t-x XMLFILE where XMLFILE is a configuration file describing the\n" "\t structure of the DVD to create. If you use a config file, then you\n" "\t do not need to specify any other options, except -o.\n" "\n\t" LONGOPT("--video=VOPTS or ") "-v VOPTS where VOPTS is a plus (+) separated list of\n" "\t video options. dvdauthor will try to infer any unspecified options.\n" "\t\tpal, ntsc, 4:3, 16:9, 720xfull, 720x576, 720x480, 704xfull,\n" "\t\t704x576, 704x480, 352xfull, 352x576, 352x480, 352xhalf,\n" "\t\t352x288, 352x240, nopanscan, noletterbox.\n" "\t Default is ntsc, 4:3, 720xfull\n" "\n\t" LONGOPT("--audio=AOPTS or ") "-a AOPTS where AOPTS is a plus (+) separated list of\n" "\t options for an audio track, with each track separated by a\n" "\t comma (,). For example -a ac3+en,mp2+de specifies two audio\n" "\t tracks: the first is an English track encoded in AC3, the second is\n" "\t a German track encoded using MPEG-1 layer 2 compression.\n" "\t\tac3, mp2, pcm, dts, 16bps, 20bps, 24bps, drc, surround, nolang,\n" "\t\t1ch, 2ch, 3ch, 4ch, 5ch, 6ch, 7ch, 8ch, and any two letter\n" "\t\tISO 639 language abbreviation.\n" "\t Default is 1 track, mp2, 20bps, nolang, 2ch.\n" "\t 'ac3' implies drc, 6ch.\n" "\n\t" LONGOPT("--subpictures=SOPTS or ") "-s SOPTS where SOPTS is a plus (+) separated list\n" "\t of options for a subpicture track, with each track separated by a\n" "\t comma (,).\n" "\t\tnolang and any two letter language abbreviation (see -a)\n" "\t Default is no subpicture tracks.\n" "\n\t" LONGOPT("--palette[=FILE] or ") "-p FILE or -P where FILE specifies where to get the\n" "\t subpicture palette. Settable per title and per menu. If the\n" "\t filename ends in .rgb (case insensitive) then it is assumed to be\n" "\t RGB, otherwise it is YUV. Entries should be 6 hexadecimal digits.\n" "\t FILE defaults to xste-palette.dat\n" "\n\t" LONGOPT2("--file=FILE or -f FILE or FILE","-f FILE") " where FILE is either a file, a pipe, or a\n" "\t shell command ending in | which supplies an MPEG-2 system stream\n" "\t with VOB sectors inserted in the appropriate places\n" "\t (using mplex -f 8 to generate)\n" "\n\t" LONGOPT("--chapter[s][=COPTS] or ") "-c COPTS or -C where COPTS is a comma (,)\n" "\t separated list of chapter markers. Each marker is of the form\n" "\t [[h:]mm:]ss[.frac] and is relative to the SCR of the next file\n" "\t listed (independent of any timestamp transposing that occurs within\n" "\t dvdauthor). The chapter markers ONLY apply to the next file listed.\n" "\t COPTS defaults to 0\n" "\n\t" LONGOPT("--menu or ") "-m creates a menu.\n" "\n\t" LONGOPT("--title or ") "-t creates a title.\n" "\n\t" LONGOPT("--toc or ") "-T creates the table of contents file instead of a titleset.\n" "\t If this option is used, it should be listed first, and you may not\n" "\t specify any titles.\n" "\n\t" LONGOPT("--entry=EOPTS or ") "-e EOPTS makes the current menu the default for\n" "\t certain circumstances. EOPTS is a comma separated list of any of:\n" "\t\tfor TOC menus: title\n" "\t\tfor VTS menus: root, ptt, audio, subtitle, angle\n" "\n\t" LONGOPT("--button or ") "-b DEST specifies what command to issue for each button.\n" "\t See " LONGOPT("--instructions or ") "-i for a description of\n" "\t DEST.\n" "\n\t" LONGOPT("--instructions or ") "-i post=DEST executes the DEST instructions at the\n" "\t end of the title.\n" "\n\t" LONGOPT("--fpc or ") "-F CMD sets the commands to be executed when the disc is first\n" "\t inserted.\n" "\n\t" LONGOPT("--jumppad or ") "-j enables the creation of jumppads, which allow greater\n" "\t flexibility in choosing jump/call desinations.\n" "\n\t" LONGOPT("--help or ") "-h displays this screen.\n" ); Exit(1); } #define MAINDEF \ if( istoc && curva ) { \ fprintf(stderr,"ERR: TOC cannot have titles\n"); \ return 1; \ } \ usedtocflag=1; \ if( !vc ) { \ va[curva]=vc=pgcgroup_new(istoc+1-curva); \ } #define MAINDEFPGC \ MAINDEF; \ if( !curpgc ) \ curpgc=pgc_new(); #define MAINDEFVOB \ MAINDEFPGC; \ if( !curvob ) \ curvob=source_new(); #define FLUSHPGC \ if( curpgc ) { \ pgcgroup_add_pgc(va[curva],curpgc); \ curpgc=0; \ } int _DvdAuthorMain(int argc,char **argv) { struct pgcgroup *va[2]; struct menugroup *mg; char *fbase=0; int curva=1,istoc=0,l, usedtocflag=0; // whether the 'istoc' value has been used or not struct pgc *curpgc=0,*fpc=0; struct source *curvob=0; #ifdef HAVE_GETOPT_LONG static struct option longopts[]={ {"video",1,0,'v'}, {"audio",1,0,'a'}, {"subpictures",1,0,'s'}, {"palette",2,0,'p'}, {"file",1,0,'f'}, {"chapters",2,0,'c'}, {"help",0,0,'h'}, {"menu",0,0,'m'}, {"title",0,0,'t'}, {"button",1,0,'b'}, {"toc",0,0,'T'}, {"instructions",1,0,'i'}, {"entry",1,0,'e'}, {"fpc",1,0,'F'}, {"jumppad",0,0,'j'}, {0,0,0,0} }; #define GETOPTFUNC(x,y,z) getopt_long(x,y,"-" z,longopts,NULL) #else #define GETOPTFUNC(x,y,z) getopt(x,y,z) #endif /*VarInit*/ hadchapter=0; pauselen=0; chapters=0; dvdpgc__init(); dvdvob__init(); fputs(PACKAGE_HEADER("dvdauthor"),stderr); if( argc<1 ) { fprintf(stderr,"ERR: No arguments!\n"); return 1; } memset(va,0,sizeof(struct pgcgroup *)*2); /* init getopt */ /* Seems not defined anywhere on my linux libc !*/ #ifdef __APPLE__ optreset = 1; #endif optind = 1; while(1) { struct pgcgroup *vc=va[curva]; int c=GETOPTFUNC(argc,argv,"f:o:v:a:s:hc:Cp:Pmtb:Ti:e:x:"); if( c == -1 ) break; switch(c) { case 'h': usage(); break; case 'x': if( usedtocflag ) { fprintf(stderr,"ERR: Cannot specify XML config file after using command line options\n"); return 1; } return readdvdauthorxml(optarg,fbase); case 'j': dvdauthor_enable_jumppad(); break; case 'T': if( usedtocflag ) { fprintf(stderr,"ERR: TOC (-T) option must come first because I am a lazy programmer.\n"); return 1; } istoc=1; usedtocflag=1; // just for completeness (also see -x FOO) break; case 'o': fbase=optarg; break; case 'm': FLUSHPGC; usedtocflag=1; // force -T to occur before -m hadchapter=0; curva=0; break; case 't': if( istoc ) { fprintf(stderr,"ERR: TOC cannot have titles\n"); return 1; } FLUSHPGC; usedtocflag=1; hadchapter=0; curva=1; break; case 'a': MAINDEF; parseaudioopts(vc,optarg); break; case 'v': MAINDEF; parsevideoopts(vc,optarg); break; case 's': MAINDEF; parsesubpictureopts(vc,optarg); break; case 'b': MAINDEFPGC; parsebutton(curpgc,optarg); break; case 'i': MAINDEFPGC; parseinstructions(curpgc,optarg); break; case 'F': if( !istoc ) { fprintf(stderr,"ERR: You may only specify FPC commands on the VMGM\n"); return 1; } usedtocflag=1; if( fpc ) { fprintf(stderr,"ERR: FPC commands already specified\n"); return 1; } fpc=pgc_new(); pgc_set_pre(fpc,optarg); break; case 'e': MAINDEFPGC; if( curva ) { fprintf(stderr,"ERR: Cannot specify an entry for a title.\n"); return 1; } parseentries(curpgc,optarg); break; case 'P': optarg=0; case 'p': MAINDEFPGC; readpalette(curpgc,optarg?optarg:"xste-palette.dat"); break; case 1: case 'f': MAINDEFVOB; source_set_filename(curvob,optarg); if( hadchapter==2 ) hadchapter=1; else source_add_cell(curvob,0,-1,!hadchapter,0,0); pgc_add_source(curpgc,curvob); curvob=0; break; case 'C': optarg=0; case 'c': if( curvob ) { fprintf(stderr,"ERR: cannot list -c twice for one file.\n"); return 1; } MAINDEFVOB; hadchapter=2; if( optarg ) parsechapters(optarg,curvob,0); else source_add_cell(curvob,0,-1,1,0,0); break; default: fprintf(stderr,"ERR: getopt returned bad code %d\n",c); return 1; } } if( curvob ) { fprintf(stderr,"ERR: Chapters defined without a file source.\n"); return 1; } FLUSHPGC; if( !va[0] ) { va[0]=pgcgroup_new(istoc+1); mg=menugroup_new(); menugroup_add_pgcgroup(mg,"en",va[0]); } else mg=0; if( !va[1] && !istoc ) va[1]=pgcgroup_new(0); if( !fbase ) { fbase=readconfentry("WORKDIR"); if( !fbase ) usage(); } if( optind != argc ) { fprintf(stderr,"ERR: bad version of getopt; please precede all sources with '-f'\n"); return 1; } l=strlen(fbase); if( l && fbase[l-1]=='/' ) fbase[l-1]=0; if( istoc ) dvdauthor_vmgm_gen(fpc,mg,fbase); else dvdauthor_vts_gen(mg,va[1],fbase); return 0; } static struct pgcgroup *titles=0, *curgroup=0; static struct menugroup *mg=0, *vmgmmenus=0; static struct pgc *curpgc=0,*fpc=0; static struct source *curvob=0; static char *fbase=0,*buttonname=0; static int ismenuf=0,istoc=0,setvideo=0,setaudio=0,setsubpicture=0,hadtoc=0; static int vobbasic,cell_chapter; static double cell_starttime,cell_endtime; static char menulang[3]; static void set_video_attr(int attr,char *s) { if( ismenuf ) menugroup_set_video_attr(mg,attr,s); else pgcgroup_set_video_attr(titles,attr,s); } static void set_audio_attr(int attr,char *s,int ch) { if( ismenuf ) menugroup_set_audio_attr(mg,attr,s,ch); else pgcgroup_set_audio_attr(titles,attr,s,ch); } static void set_subpic_attr(int attr,char *s,int ch) { if( ismenuf ) menugroup_set_subpic_attr(mg,attr,s,ch); else pgcgroup_set_subpic_attr(titles,attr,s,ch); } static int parse_pause(char *f) { if( !strcmp(f,"inf") ) return 255; else return atoi(f); } static void dvdauthor_workdir(char *s) { fbase=utf8tolocal(s); } static void dvdauthor_jumppad(char *s) { int i=xml_ison(s); if( i==1 ) dvdauthor_enable_jumppad(); else if( i==-1 ) { fprintf(stderr,"ERR: Unknown jumppad cmd '%s'\n",s); Exit(1); } } static void getfbase() { if( !fbase ) { fbase=readconfentry("WORKDIR"); if( !fbase ) { fprintf(stderr,"ERR: Must specify working directory\n"); parser_err=1; } } } static void dvdauthor_end() { if( fbase && hadtoc ) { dvdauthor_vmgm_gen(fpc,vmgmmenus,fbase); vmgmmenus=0; fpc=0; } } static void titleset_start() { mg=menugroup_new(); istoc=0; } static void titleset_end() { getfbase(); if( fbase ) { if( !titles ) titles=pgcgroup_new(0); dvdauthor_vts_gen(mg,titles,fbase); mg=0; titles=0; } } static void vmgm_start() { if( hadtoc ) { fprintf(stderr,"ERR: Can only define one VMGM\n"); parser_err=1; return; } mg=menugroup_new(); istoc=1; hadtoc=1; } static void vmgm_end() { getfbase(); // we put off compilation of vmgm until after the titlesets vmgmmenus=mg; mg=0; } static void fpc_start() { if( !istoc ) { fprintf(stderr,"ERR: Can only specify under \n"); parser_err=1; return; } if( fpc ) { fprintf(stderr,"ERR: Already defined \n"); parser_err=1; return; } fpc=pgc_new(); parser_acceptbody=1; } static void fpc_end() { pgc_set_pre(fpc,parser_body); } static void pgcgroup_start() { setvideo=0; setaudio=-1; setsubpicture=-1; } static void titles_start() { if( titles ) { fprintf(stderr,"ERR: Titles already defined\n"); parser_err=1; } else if( istoc ) { fprintf(stderr,"ERR: Cannot have titles in a VMGM\n"); parser_err=1; } else { titles=pgcgroup_new(0); curgroup=titles; ismenuf=0; pgcgroup_start(); } } static void menus_start() { ismenuf=(istoc?2:1); curgroup=pgcgroup_new(ismenuf); pgcgroup_start(); strcpy(menulang,"en"); } static void menus_lang(char *lang) { strcpy(menulang,lang); } static void menus_end() { menugroup_add_pgcgroup(mg,menulang,curgroup); curgroup=0; } static void video_start() { if( setvideo ) { fprintf(stderr,"ERR: Already defined video characteristics for this PGC group\n"); parser_err=1; } else setvideo=1; } static void video_format(char *c) { set_video_attr(VIDEO_FORMAT,c); } static void video_aspect(char *c) { set_video_attr(VIDEO_ASPECT,c); } static void video_resolution(char *c) { set_video_attr(VIDEO_RESOLUTION,c); } static void video_widescreen(char *c) { set_video_attr(VIDEO_WIDESCREEN,c); } static void video_caption(char *c) { set_video_attr(VIDEO_CAPTION,c); } static void audio_start() { setaudio++; if( setaudio>=8 ) { fprintf(stderr,"ERR: Attempting to define too many audio streams for this PGC group\n"); parser_err=1; } } static void audio_format(char *c) { set_audio_attr(AUDIO_FORMAT,c,setaudio); } static void audio_quant(char *c) { set_audio_attr(AUDIO_QUANT,c,setaudio); } static void audio_dolby(char *c) { set_audio_attr(AUDIO_DOLBY,c,setaudio); } static void audio_lang(char *c) { set_audio_attr(AUDIO_LANG,c,setaudio); } static void audio_samplerate(char *c) { set_audio_attr(AUDIO_SAMPLERATE,c,setaudio); } static void audio_channels(char *c) { char ch[4]; if( strlen(c) == 1 ) { ch[0]=c[0]; ch[1]='c'; ch[2]='h'; ch[3]=0; c=ch; } set_audio_attr(AUDIO_CHANNELS,ch,setaudio); } static void subattr_start() { setsubpicture++; if( setsubpicture>=32 ) { fprintf(stderr,"ERR: Attempting to define too many subpicture streams for this PGC group\n"); parser_err=1; } } static void subattr_lang(char *c) { set_subpic_attr(SPU_LANG,c,setsubpicture); } static void pgc_start() { curpgc=pgc_new(); hadchapter=0; } static void pgc_entry(char *e) { // xml attributes can only be defined once, so entry="foo" entry="bar" won't work // instead, use parseentries... parseentries(curpgc,e); } static void pgc_palette(char *p) { readpalette(curpgc,p); } static void pgc_pause(char *c) { pgc_set_stilltime(curpgc,parse_pause(c)); } static void pgc_end() { pgcgroup_add_pgc(curgroup,curpgc); curpgc=0; } static void pre_start() { parser_acceptbody=1; } static void pre_end() { pgc_set_pre(curpgc,parser_body); } static void post_start() { parser_acceptbody=1; } static void post_end() { pgc_set_post(curpgc,parser_body); } static void vob_start() { curvob=source_new(); pauselen=0; vobbasic=0; cell_endtime=0; } static void vob_file(char *f) { source_set_filename(curvob,utf8tolocal(f)); } static void vob_chapters(char *c) { vobbasic=1; hadchapter=2; chapters=strdup(c); } static void vob_pause(char *c) { vobbasic=1; pauselen=parse_pause(c); } static void vob_end() { if( vobbasic!=2 ) { if( hadchapter==2 ) { parsechapters(chapters,curvob,pauselen); hadchapter=1; } else source_add_cell(curvob,0,-1,!hadchapter,pauselen,0); } pgc_add_source(curpgc,curvob); curvob=0; } static void cell_start() { parser_acceptbody=1; assert(vobbasic!=1); vobbasic=2; cell_starttime=cell_endtime; cell_endtime=-1; cell_chapter=0; pauselen=0; hadchapter=1; } static void cell_parsestart(char *f) { cell_starttime=parsechapter(f); } static void cell_parseend(char *f) { cell_endtime=parsechapter(f); } static void cell_parsechapter(char *f) { int i=xml_ison(f); if(i==-1) { fprintf(stderr,"ERR: Unknown chapter cmd '%s'\n",f); Exit(1); } else if (i) cell_chapter=1; } static void cell_parseprogram(char *f) { int i=xml_ison(f); if(i==-1) { fprintf(stderr,"ERR: Unknown program cmd '%s'\n",f); Exit(1); } else if (i && cell_chapter!=1 ) cell_chapter=2; } static void cell_pauselen(char *f) { pauselen=parse_pause(f); } static void cell_end() { assert( cell_starttime>=0 ); source_add_cell(curvob,cell_starttime,cell_endtime,cell_chapter,pauselen,parser_body); pauselen=0; } static void button_start() { parser_acceptbody=1; buttonname=0; } static void button_name(char *f) { buttonname=strdup(f); } static void button_end() { pgc_add_button(curpgc,buttonname,parser_body); if(buttonname) free(buttonname); } enum { DA_BEGIN=0, DA_ROOT, DA_SET, DA_PGCGROUP, DA_PGC, DA_VOB, DA_NOSUB }; static struct elemdesc elems[]={ {"dvdauthor", DA_BEGIN, DA_ROOT, 0, dvdauthor_end}, {"titleset", DA_ROOT, DA_SET, titleset_start, titleset_end}, {"vmgm", DA_ROOT, DA_SET, vmgm_start, vmgm_end}, {"fpc", DA_SET, DA_NOSUB, fpc_start, fpc_end}, {"titles", DA_SET, DA_PGCGROUP,titles_start, 0}, {"menus", DA_SET, DA_PGCGROUP,menus_start, menus_end}, {"video", DA_PGCGROUP,DA_NOSUB, video_start, 0}, {"audio", DA_PGCGROUP,DA_NOSUB, audio_start, 0}, {"subpicture",DA_PGCGROUP,DA_NOSUB, subattr_start, 0}, {"pgc", DA_PGCGROUP,DA_PGC, pgc_start, pgc_end}, {"pre", DA_PGC, DA_NOSUB, pre_start, pre_end}, {"post", DA_PGC, DA_NOSUB, post_start, post_end}, {"button", DA_PGC, DA_NOSUB, button_start, button_end}, {"vob", DA_PGC, DA_VOB, vob_start, vob_end}, {"cell", DA_VOB, DA_NOSUB, cell_start, cell_end}, {0,0,0,0,0} }; static struct elemattr attrs[]={ {"dvdauthor","dest",dvdauthor_workdir}, {"dvdauthor","jumppad",dvdauthor_jumppad}, {"menus","lang",menus_lang}, {"vob","file",vob_file}, {"vob","chapters",vob_chapters}, {"vob","pause",vob_pause}, {"cell","start",cell_parsestart}, {"cell","end",cell_parseend}, {"cell","chapter",cell_parsechapter}, {"cell","program",cell_parseprogram}, {"cell","pause",cell_pauselen}, {"button","name",button_name}, {"video","format",video_format}, {"video","aspect",video_aspect}, {"video","resolution",video_resolution}, {"video","widescreen",video_widescreen}, {"video","caption",video_caption}, {"audio","format",audio_format}, {"audio","quant",audio_quant}, {"audio","dolby",audio_dolby}, {"audio","lang",audio_lang}, {"audio","channels",audio_channels}, {"audio","samplerate",audio_samplerate}, {"subpicture","lang",subattr_lang}, {"pgc","entry",pgc_entry}, {"pgc","palette",pgc_palette}, {"pgc","pause",pgc_pause}, {0,0,0} }; static int readdvdauthorxml(const char *xmlfile,char *fb) { fbase=fb; return readxml(xmlfile,elems,attrs); } dvd95/dvdauthor/dvdcompile.c000066400000000000000000000745701140003301000162760ustar00rootroot00000000000000/* * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #include "config.h" #include "compat.h" #include "dvdauthor.h" #include "da-internal.h" #include "dvdvm.h" static const char RCSID[]="$Id: //depot/dvdauthor/src/dvdcompile.c#15 $"; struct vm_statement *dvd_vm_parsed_cmd; static int negatecompare(int compareop) { return compareop^1^((compareop&4)>>1); } static int swapcompare(int compareop) { if( compareop < 4 ) return compareop; else return compareop^3; } static int compile_usesreg(struct vm_statement *cs,int target) { while(cs) { if( cs->op==VM_VAL ) return cs->i1==target-256; if( compile_usesreg(cs->param,target )) return 1; cs=cs->next; } return 0; } static int nexttarget(int t) { if( t<13 ) return 13; t++; if( t==16 ) { fprintf(stderr,"ERR: Expression is too complicated, ran out of registers\n"); Exit(1); } return t; } static unsigned char *compileop(unsigned char *buf,int target,int op,int val) { if( op==VM_VAL && target==val+256 ) return buf; write8(buf,val>=0?0x70:0x60,0x00,0x00,target, val>=0?(val>>8):0x00,val,0x00,0x00); switch(op) { case VM_VAL: buf[0]|=1; break; case VM_ADD: buf[0]|=3; break; case VM_SUB: buf[0]|=4; break; case VM_MUL: buf[0]|=5; break; case VM_DIV: buf[0]|=6; break; case VM_MOD: buf[0]|=7; break; case VM_AND: buf[0]|=9; break; case VM_OR: buf[0]|=10; break; case VM_XOR: buf[0]|=11; break; default: fprintf(stderr,"ERR: Unknown op in compileop: %d\n",op); Exit(1); } return buf+8; } static int issprmval(struct vm_statement *v) { return v->op==VM_VAL && v->i1>=-128 && v->i1<0; } static unsigned char *compileexpr(unsigned char *buf,int target,struct vm_statement *cs) { struct vm_statement *v,**vp; int isassoc,canusesprm; if( cs->op==VM_VAL ) return compileop(buf,target,VM_VAL,cs->i1); isassoc=( cs->op==VM_ADD || cs->op==VM_MUL || cs->op==VM_AND || cs->op==VM_OR || cs->op==VM_XOR ); canusesprm=( cs->op==VM_AND || cs->op==VM_OR || cs->op==VM_XOR ); // if the target is an operator, move it to the front if( isassoc ) { for( vp=&cs->param->next; *vp; vp=&(vp[0]->next) ) if( vp[0]->op==VM_VAL && vp[0]->i1==target-256 ) { v=*vp; *vp=v->next; v->next=cs->param; cs->param=v; break; } } if( compile_usesreg(cs->param->next,target) ) { int t2=nexttarget(target); buf=compileexpr(buf,t2,cs); write8(buf,0x61,0x00,0x00,target,0x00,t2,0x00,0x00); buf+=8; if( t2==15 ) { write8(buf,0x71,0x00,0x00,0x0f,0x00,0x00,0x00,0x00); buf+=8; } return buf; } if( isassoc && cs->param->op==VM_VAL && cs->param->i1!=target-256 ) { // if the first param is a value, then try to move a complex operation farther up or an SPRM access (if SPRM ops are not allowed) for( vp=&cs->param->next; *vp; vp=&(vp[0]->next) ) if( vp[0]->op!=VM_VAL || issprmval(vp[0]) ) { v=*vp; *vp=v->next; v->next=cs->param; cs->param=v; break; } } buf=compileexpr(buf,target,cs->param); for( v=cs->param->next; v; v=v->next ) { if( v->op==VM_VAL && !issprmval(v)) buf=compileop(buf,target,cs->op,v->i1); else { int t2=nexttarget(target); buf=compileexpr(buf,t2,v); buf=compileop(buf,target,cs->op,t2-256); if( t2==15 ) { write8(buf,0x71,0x00,0x00,0x0f,0x00,0x00,0x00,0x00); buf+=8; } } } return buf; } static unsigned char *compilebool(unsigned char *obuf,unsigned char *buf,struct vm_statement *cs,unsigned char *iftrue,unsigned char *iffalse) { switch( cs->op ) { case VM_EQ: case VM_NE: case VM_GTE: case VM_GT: case VM_LTE: case VM_LT: { int r1,r2,op; op=cs->op-VM_EQ+2; if( cs->param->op==VM_VAL ) r1=cs->param->i1; else { r1=13-256; buf=compileexpr(buf,r1,cs->param); } if( cs->param->next->op==VM_VAL && (r1<0 || cs->param->next->i1<0) ) r2=cs->param->next->i1; else { if( r1==13-256 ) r2=14-256; else r2=13-256; buf=compileexpr(buf,r2,cs->param->next); } if( r1>=0 ) { int t; t=r1; r1=r2; r2=t; op=swapcompare(op); } if( iffalse > iftrue ) { unsigned char *t; t=iftrue; iftrue=iffalse; iffalse=t; op=negatecompare(op); } if( r2>=0 ) write8(buf,0x00,0x81|(op<<4),0x00,r1,r2>>8,r2,0x00,0x00); else write8(buf,0x00,0x01|(op<<4),0x00,r1,0x00,r2,0x00,0x00); buf[7]=(iftrue-obuf)/8+1; buf+=8; if( iffalse>buf ) { write8(buf,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00); buf[7]=(iffalse-obuf)/8+1; buf+=8; } break; } case VM_LOR: case VM_LAND: { int op=cs->op; cs=cs->param; while(cs->next) { unsigned char *n=buf+8; while(1) { unsigned char *nn=compilebool(obuf,buf,cs,op==VM_LAND?n:iftrue,op==VM_LOR?n:iffalse); if( nn==n ) break; n=nn; } buf=n; cs=cs->next; } buf=compilebool(obuf,buf,cs,iftrue,iffalse); break; } case VM_NOT: return compilebool(obuf,buf,cs->param,iffalse,iftrue); default: fprintf(stderr,"ERR: Unknown bool op: %d\n",cs->op); Exit(1); } return buf; } static unsigned char *compilecs(unsigned char *obuf,unsigned char *buf,struct workset *ws,int thispgc,struct vm_statement *cs,int ismenu,int prepost) { int lastif=0; while(cs) { lastif=0; switch(cs->op) { case VM_SET: switch( cs->i1 ) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 11: case 12: // set GPRM buf=compileexpr(buf,cs->i1,cs->param); break; case 128+1: // audio case 128+2: // subtitle case 128+3: // angle if( cs->param->op==VM_VAL && !( cs->i2>=-128 && cs->i2<0 )) { int v=cs->param->i1; write8(buf,v<0?0x41:0x51,0x00,0x00,0x00,0x00,0x00,0x00,0x00); buf[(cs->i1-128)+2]=128|v; // doesn't matter whether this is a register or a value buf+=8; } else { buf=compileexpr(buf,13,cs->param); write8(buf,0x41,0x00,0x00,0x00,0x00,0x00,0x00,0x00); buf[(cs->i1-128)+2]=128|13; buf+=8; } break; case 128+8: // button if( cs->param->op==VM_VAL && !( cs->i2>=-128 && cs->i2<0 )) { int v=cs->param->i1; if( v<0 ) write8(buf,0x46,0x00,0x00,0x00,0x00,v,0x00,0x00); else write8(buf,0x56,0x00,0x00,0x00,v/256,v,0x00,0x00); buf+=8; } else { buf=compileexpr(buf,13,cs->param); write8(buf,0x46,0x00,0x00,0x00,0x00,13,0x00,0x00); buf+=8; } break; default: fprintf(stderr,"ERR: Cannot set SPRM %d\n",cs->i1-128); return 0; } break; case VM_IF: { unsigned char *iftrue=buf+8,*iffalse=buf+16,*end=buf+16; while(1) { unsigned char *lp,*ib,*e; lp=compilecs(obuf,iftrue,ws,thispgc,cs->param->next->param,ismenu,prepost); if( cs->param->next->next ) { e=compilecs(obuf,lp+8,ws,thispgc,cs->param->next->next,ismenu,prepost); write8(lp,0x00,0x01,0x00,0x00,0x00,0x00,0x00,(e-obuf)/8+1); lp+=8; } else e=lp; ib=compilebool(obuf,buf,cs->param,iftrue,iffalse); if( !lp ) return 0; if( ib==iftrue && lp==iffalse ) break; iftrue=ib; iffalse=lp; end=e; } buf=end; lastif=1; break; } case VM_EXIT: write8(buf,0x30,0x01,0x00,0x00,0x00,0x00,0x00,0x00); buf+=8; break; case VM_RESUME: write8(buf,0x20,0x01,0x00,0x00,0x00,0x00,0x00,0x10); buf+=8; break; case VM_JUMP: if( cs->i1==1 && ismenu==2 ) { // VMGM VMGM NOPGC NOCH // VMGM VMGM NOPGC CHXX // VMGM VMGM MPGC NOCH // VMGM VMGM MPGC CHXX // VMGM VMGM MEPGC NOCH // VMGM VMGM MEPGC CHXX // VMGM VMGM TPGC NOCH // VMGM VMGM TPGC CHXX cs->i1=0; } if( ((cs->i2>0 && cs->i2<128) || (cs->i2==0 && cs->i1==1)) && !ismenu ) { // VTS NONE MPGC NOCH // VTS VMGM MPGC NOCH // VTS TS MPGC NOCH // VTS NONE MPGC CHXX // VTS VMGM MPGC CHXX // VTS TS MPGC CHXX // VTS NONE MEPGC NOCH // VTS VMGM MEPGC NOCH // VTS TS MEPGC NOCH // VTS NONE MEPGC CHXX // VTS VMGM MEPGC CHXX // VTS TS MEPGC CHXX // VTS VMGM NOPGC NOCH // VTS VMGM NOPGC CHXX fprintf(stderr,"ERR: Cannot jump to a menu from a title, use 'call' instead\n"); return 0; } if( cs->i2>0 && cs->i2<128 && cs->i3 && ismenu ) { // VMGM NONE MPGC CHXX // VMGM TS MPGC CHXX // VMGM NONE MEPGC CHXX // VMGM TS MEPGC CHXX // VTSM NONE MPGC CHXX // VTSM VMGM MPGC CHXX // VTSM TS MPGC CHXX // VTSM NONE MEPGC CHXX // VTSM VMGM MEPGC CHXX // VTSM TS MEPGC CHXX fprintf(stderr,"ERR: Cannot specify chapter when jumping to another menu\n"); return 0; } if( cs->i1 && !cs->i2 ) { // VTSM VMGM NOPGC CHXX // VTS TS NOPGC CHXX // VTSM TS NOPGC CHXX // VMGM TS NOPGC CHXX // VTS TS NOPGC NOCH // VTSM TS NOPGC NOCH // VMGM TS NOPGC NOCH fprintf(stderr,"ERR: Cannot omit menu/title if specifying vmgm/titleset\n"); return 0; } if( !cs->i1 && !cs->i2 && !cs->i3 ) { // VTS NONE NOPGC NOCH // VTSM NONE NOPGC NOCH // VMGM NONE NOPGC NOCH fprintf(stderr,"ERR: Nop jump statement\n"); return 0; } if( cs->i2==121 && (cs->i1>=2 || (cs->i1==0 && ismenu!=2)) ) { fprintf(stderr,"ERR: VMGM must be specified with FPC\n"); return 0; } // *** ACTUAL COMPILING if( cs->i1>=2 && cs->i2>=120 && cs->i2<128 ) { // VTSM TS MEPGC NOCH // VMGM TS MEPGC NOCH if( cs->i2==120 ) cs->i2=123; write8(buf,0x30,0x06,0x00,0x01,cs->i1-1,0x80+(cs->i2-120),0x00,0x00); buf+=8; } else if( cs->i1>=2 || ( cs->i1==1 && cs->i2>=128 ) || ( ismenu==2 && cs->i2>=128 && cs->i3 )) { // VMGM TS TPGC CHXX // VTSM TS MPGC NOCH // VMGM TS MPGC NOCH // VTS TS TPGC NOCH // VTSM TS TPGC NOCH // VMGM TS TPGC NOCH // VTS TS TPGC CHXX // VTSM TS TPGC CHXX // VTS VMGM TPGC NOCH // VTSM VMGM TPGC NOCH // VTS VMGM TPGC CHXX // VTSM VMGM TPGC CHXX // VMGM NONE TPGC CHXX if( jumppad ) { if( !cs->i1 ) cs->i1=1; write8(buf,0x71,0x00,0x00,0x0F,cs->i2,cs->i1,0x00,0x00); buf+=8; write8(buf,0x71,0x00,0x00,0x0E,0x00,cs->i3,0x00,0x00); buf+=8; write8(buf,0x30,ismenu?0x06:0x08,0x00,0x00,0x00,0x42,0x00,0x00); buf+=8; } else { fprintf(stderr,"ERR: That form of jumping is not allowed\n"); return 0; } } else if( cs->i1==1 || cs->i2==121 ) { // VTSM VMGM NOPGC NOCH // VTSM VMGM MPGC NOCH // VTSM VMGM MEPGC NOCH // cannot error check jumps to the vmgm menu if( !cs->i2 || cs->i2==120 ) cs->i2=122; if( cs->i2<120 ) write8(buf,0x30,0x06,0x00,cs->i2,0x00,0xC0,0x00,0x00); else write8(buf,0x30,0x06,0x00,0x00,0x00,cs->i2==121?0:(0x40+cs->i2-120),0x00,0x00); buf+=8; } else if( !cs->i1 && !cs->i2 && cs->i3 ) { int numc; struct pgc *p; char *des; // VTS NONE NOPGC CHXX // VTSM NONE NOPGC CHXX // VMGM NONE NOPGC CHXX if( thispgc<0 ) { fprintf(stderr,"ERR: Cannot jump to a chapter from a FPC\n"); return 0; } if( cs->i3<65536 && ismenu ) { fprintf(stderr,"ERR: Menus do not have chapters\n"); return 0; } p=(ismenu?ws->menus->groups[ws->curmenu].pg:ws->titles)->pgcs[thispgc]; switch(cs->i3>>16) { case 0: numc=p->numchapters; des="chapter"; break; case 1: numc=p->numprograms; des="program"; break; case 2: numc=p->numcells; des="cell"; break; default: numc=0; des=""; break; } if( (cs->i3&65535)>numc ) { fprintf(stderr,"ERR: Cannot jump to %s %d, only %d exist\n",des,cs->i3&65535,numc); return 0; } write8(buf,0x20,0x05+(cs->i3>>16),0x00,0x00,0x00,0x00,0x00,cs->i3); buf+=8; } else if( cs->i2<128 ) { // VTSM NONE MPGC NOCH // VMGM NONE MPGC NOCH // VTSM NONE MEPGC NOCH // VMGM NONE MEPGC NOCH if( cs->i2>=120 && cs->i2<128 ) { int i; for( i=0; imenus->groups[ws->curmenu].pg->numpgcs; i++ ) if( ws->menus->groups[ws->curmenu].pg->pgcs[i]->entries&(1<<(cs->i2-120)) ) { cs->i2=i+1; break; } if( cs->i2>=120 ) { fprintf(stderr,"ERR: Cannot find PGC with entry %s\n",entries[cs->i2-120]); return 0; } } else { if( cs->i2>ws->menus->groups[ws->curmenu].pg->numpgcs ) { fprintf(stderr,"ERR: Cannot jump to menu PGC #%d, only %d exist\n",cs->i2,ws->menus->groups[ws->curmenu].pg->numpgcs); return 0; } } if( ismenu==2 ) { // In case we are jumping from a FP to VMGM, we need to use a JumpSS // instruction write8(buf,0x30,0x06,0x00,cs->i2&127,0x00,0xc0,0x00,0x00); // JumpSS VMGM pgcn } else write8(buf,0x20,0x04,0x00,0x00,0x00,0x00,0x00,cs->i2&127); // LinkPGCN buf+=8; } else { // VMGM NONE TPGC NOCH // VTS NONE TPGC NOCH // VTSM NONE TPGC NOCH // VTS NONE TPGC CHXX // VTSM NONE TPGC CHXX if( ismenu<2 ) { if( cs->i2-128>ws->titles->numpgcs ) { fprintf(stderr,"ERR: Cannot jump to title #%d, only %d exist\n",cs->i2-128,ws->titles->numpgcs); return 0; } if( cs->i3 && cs->i3>ws->titles->pgcs[cs->i2-128-1]->numchapters ) { fprintf(stderr,"ERR: Cannot jump to chapter %d of title %d, only %d exist\n",cs->i3,cs->i2-128,ws->titles->pgcs[cs->i2-128-1]->numchapters); return 0; } } write8(buf,0x30,ismenu==2?0x02:(cs->i3?0x05:0x03),0x00,cs->i3,0x00,cs->i2-128,0x00,0x00); buf+=8; } break; case VM_CALL: // CALL's from MUST have a resume cell if( !cs->i4 ) cs->i4=1; if( ismenu ) { // VTSM NONE NOPGC NOCH // VMGM NONE NOPGC NOCH // VTSM VMGM NOPGC NOCH // VMGM VMGM NOPGC NOCH // VTSM TS NOPGC NOCH // VMGM TS NOPGC NOCH // VTSM NONE NOPGC CHXX // VMGM NONE NOPGC CHXX // VTSM VMGM NOPGC CHXX // VMGM VMGM NOPGC CHXX // VTSM TS NOPGC CHXX // VMGM TS NOPGC CHXX // VTSM NONE MPGC NOCH // VMGM NONE MPGC NOCH // VTSM VMGM MPGC NOCH // VMGM VMGM MPGC NOCH // VTSM TS MPGC NOCH // VMGM TS MPGC NOCH // VTSM NONE MPGC CHXX // VMGM NONE MPGC CHXX // VTSM VMGM MPGC CHXX // VMGM VMGM MPGC CHXX // VTSM TS MPGC CHXX // VMGM TS MPGC CHXX // VTSM NONE MEPGC NOCH // VMGM NONE MEPGC NOCH // VTSM VMGM MEPGC NOCH // VMGM VMGM MEPGC NOCH // VTSM TS MEPGC NOCH // VMGM TS MEPGC NOCH // VTSM NONE MEPGC CHXX // VMGM NONE MEPGC CHXX // VTSM VMGM MEPGC CHXX // VMGM VMGM MEPGC CHXX // VTSM TS MEPGC CHXX // VMGM TS MEPGC CHXX // VTSM NONE TPGC NOCH // VMGM NONE TPGC NOCH // VTSM VMGM TPGC NOCH // VMGM VMGM TPGC NOCH // VTSM TS TPGC NOCH // VMGM TS TPGC NOCH // VTSM NONE TPGC CHXX // VMGM NONE TPGC CHXX // VTSM VMGM TPGC CHXX // VMGM VMGM TPGC CHXX // VTSM TS TPGC CHXX // VMGM TS TPGC CHXX fprintf(stderr,"ERR: Cannot 'call' a menu from another menu, use 'jump' instead\n"); return 0; } if( cs->i2==0 || cs->i2>=128 ) { // VTS NONE NOPGC NOCH // VTS VMGM NOPGC NOCH // VTS TS NOPGC NOCH // VTS NONE NOPGC CHXX // VTS VMGM NOPGC CHXX // VTS TS NOPGC CHXX // VTS NONE TPGC NOCH // VTS VMGM TPGC NOCH // VTS TS TPGC NOCH // VTS NONE TPGC CHXX // VTS VMGM TPGC CHXX // VTS TS TPGC CHXX fprintf(stderr,"ERR: Cannot 'call' another title, use 'jump' instead\n"); return 0; } if( cs->i3!=0 ) { // VTS NONE MPGC CHXX // VTS VMGM MPGC CHXX // VTS TS MPGC CHXX // VTS NONE MEPGC CHXX // VTS VMGM MEPGC CHXX // VTS TS MEPGC CHXX fprintf(stderr,"ERR: Cannot 'call' a chatper within a menu\n"); return 0; } if( cs->i2==121 && (cs->i1>=2 || (cs->i1==0 && ismenu!=2)) ) { fprintf(stderr,"ERR: VMGM must be specified with FPC\n"); return 0; } if( cs->i1>=2 ) { // VTS TS MPGC NOCH // VTS TS MEPGC NOCH if( jumppad ) { write8(buf,0x71,0x00,0x00,0x0F,cs->i2,cs->i1,0x00,0x00); buf+=8; write8(buf,0x71,0x00,0x00,0x0E,0x00,cs->i3,0x00,0x00); buf+=8; write8(buf,0x30,0x08,0x00,0x00,cs->i4,0x42,0x00,0x00); buf+=8; } else { fprintf(stderr,"ERR: Cannot call to a menu in another titleset\n"); return 0; } } else if( cs->i1==0 && cs->i2<120 ) { // VTS NONE MPGC NOCH if( jumppad ) { write8(buf,0x71,0x00,0x00,0x0F,cs->i2,0x00,0x00,0x00); buf+=8; write8(buf,0x30,0x08,0x00,0x00,cs->i4,0x87,0x00,0x00); buf+=8; } else { fprintf(stderr,"ERR: Cannot call to a specific menu PGC, only an entry\n"); return 0; } } else if( cs->i1==1 ) { // VTS VMGM MPGC NOCH // VTS VMGM MEPGC NOCH // we cannot provide error checking when jumping to a VMGM if( cs->i2==120 ) cs->i2=122; if( cs->i2<120 ) write8(buf,0x30,0x08,0x00,cs->i2,cs->i4,0xC0,0x00,0x00); else write8(buf,0x30,0x08,0x00,0x00,cs->i4,cs->i2==121?0:(0x40+cs->i2-120),0x00,0x00); buf+=8; } else { int i,j; // VTS NONE MEPGC NOCH if( cs->i2==120 ) cs->i2=127; for( j=0; jmenus->numgroups; j++ ) { struct pgcgroup *pg=ws->menus->groups[j].pg; for( i=0; inumpgcs; i++ ) if( pg->pgcs[i]->entries&(1<<(cs->i2-120)) ) goto foundpgc; } fprintf(stderr,"ERR: Cannot find PGC with entry %s\n",entries[cs->i2-120]); return 0; foundpgc: write8(buf,0x30,0x08,0x00,0x00,cs->i4,0x80+cs->i2-120,0x00,0x00); buf+=8; } break; case VM_NOP: break; default: fprintf(stderr,"ERR: Unsupported VM opcode %d\n",cs->op); return 0; } cs=cs->next; } if( lastif ) { write8(buf,0,0,0,0,0,0,0,0); buf+=8; } return buf; } static unsigned int extractif(unsigned char *b) { switch(b[0]>>4) { case 0: case 1: case 2: return ((b[1]>>4)<<24)| (b[3]<<16)| (b[4]<<8)| b[5]; default: fprintf(stderr,"ERR: Unhandled extractif scenario (%x), file bug\n",b[0]); Exit(1); } } static unsigned int negateif(unsigned int ifs) { return (ifs&0x8ffffff)|(negatecompare((ifs>>24)&7)<<24); } static void applyif(unsigned char *b,unsigned int ifs) { switch(b[0]>>4) { case 0: case 1: case 2: b[5]=ifs; b[4]=ifs>>8; b[3]=ifs>>16; b[1]|=(ifs>>24)<<4; break; case 3: case 4: case 5: b[7]=ifs; b[6]=ifs>>16; b[1]|=(ifs>>24)<<4; break; case 6: case 7: b[7]=ifs; b[6]=ifs>>8; b[2]=ifs>>16; b[1]=(ifs>>24)<<4; break; default: fprintf(stderr,"ERR: Unhandled applyif scenario (%x), file bug\n",b[0]); Exit(1); } } static int ifcombinable(unsigned char b0,unsigned char b1,unsigned char b8) { int iftype=-1; switch(b0>>4) { case 0: case 1: case 2: case 6: case 7: iftype=b1>>7; break; case 3: case 4: case 5: iftype=0; break; default: return 0; } switch(b8>>4) { case 0: case 1: case 2: case 6: case 7: return 1; case 3: case 4: case 5: return iftype==0; default: return 0; } } static int countreferences(unsigned char *obuf,unsigned char *buf,unsigned char *end,int linenum) { unsigned char *b; int numref=0; for( b=buf; blinenum ) b2[7]--; memmove(b,b+8,*end-(b+8)); *end-=8; } static int vm_optimize(unsigned char *obuf,unsigned char *buf,unsigned char **end) { unsigned char *b; for( b=buf; b<*end; b+=8 ) { int curline=(b-obuf)/8+1; // if // 1. this is a jump over one statement // 2. we can combine the statement with the if // 3. there are no references to the statement // then // combine statement with if, negate if, and replace statement with nop if( b[0]==0 && (b[1]&0x70)!=0 && (b[1]&15)==1 && b[7]==curline+2 && // step 1 ifcombinable(b[0],b[1],b[8]) && // step 2 countreferences(obuf,buf,*end,curline+1)==0 ) // step 3 { unsigned int ifs=negateif(extractif(b)); memcpy(b,b+8,8); // move statement memset(b+8,0,8); // replace with nop applyif(b,ifs); return 1; } // if // 1. this is a NOP instruction // 2. there are more instructions after this OR there are no references here // then // delete instruction, fix goto labels if( b[0]==0 && b[1]==0 && b[2]==0 && b[3]==0 && b[4]==0 && b[5]==0 && b[6]==0 && b[7]==0 && (b+8!=*end || countreferences(obuf,buf,*end,curline)==0) ) { deleteinstruction(obuf,buf,end,b); return 1; } // if // 1. the prev instruction is an UNCONDITIONAL jump/goto // 2. there are no references to the statement // then // delete instruction, fix goto labels if( b>buf && (b[-8]>>4)<=3 && (b[-7]&0x70)==0 && (b[-7]&15)!=0 && countreferences(obuf,buf,*end,curline)==0 ) { deleteinstruction(obuf,buf,end,b); return 1; } // if // 1. this instruction sets subtitle/angle/audio // 2. the next instruction sets subtitle/angle/audio // 3. they both set them the same way (i.e. immediate/indirect) // 4. there are no references to the second instruction // then // combine if( b+8!=*end && (b[0]&0xEF)==0x41 && b[1]==0 && // step 1 b[0]==b[8] && b[1]==b[9] && // step 2 & 3 countreferences(obuf,buf,*end,curline+1)==0 ) { if( b[8+3] ) b[3]=b[8+3]; if( b[8+4] ) b[4]=b[8+4]; if( b[8+5] ) b[5]=b[8+5]; deleteinstruction(obuf,buf,end,b+8); return 1; } // if // 1. this instruction sets the button directly // 2. the next instruction is a link command (not NOP, not PGCN) // 3. there are no references to the second instruction // then // combine if( b+8!=*end && b[0]==0x56 && b[1]==0x00 && b[8]==0x20 && ((b[8+1]&0xf)==5 || (b[8+1]&0xf)==6 || (b[8+1]&0xf)==7 || ((b[8+1]&0xf)==1 && (b[8+7]&0x1f)!=0)) && countreferences(obuf,buf,*end,curline+1)==0 ) { if( b[8+6]==0 ) b[8+6]=b[4]; deleteinstruction(obuf,buf,end,b); return 1; } } return 0; } unsigned char *vm_compile(unsigned char *obuf,unsigned char *buf,struct workset *ws,int thispgc,struct vm_statement *cs,int ismenu,int prepost) { unsigned char *end=compilecs(obuf,buf,ws,thispgc,cs,ismenu,prepost); if( !end ) return end; while(vm_optimize(obuf,buf,&end)); return end; } void dvdvmerror(char *s) { extern char *dvdvmtext; fprintf(stderr,"ERR: Parse error '%s' on token '%s'\n",s,dvdvmtext); } struct vm_statement *vm_parse(const char *b) { if( b ) { char *cmd=strdup(b); dvd_vm_parsed_cmd=0; dvdvm_scan_string(cmd); if( dvdvmparse() ) { fprintf(stderr,"ERR: Parser failed on code '%s'.\n",b); Exit(1); } if( !dvd_vm_parsed_cmd ) { fprintf(stderr,"ERR: Nothing parsed from '%s'\n",b); Exit(1); } free(cmd); return dvd_vm_parsed_cmd; } else { // pieces of code in dvdauthor rely on a non-null vm_statement // meaning something significant. so if we parse an empty string, // we should return SOMETHING not null. // also, since the xml parser strips whitespace, we treat a // NULL string as an empty string struct vm_statement *v=statement_new(); v->op=VM_NOP; return v; } } dvd95/dvdauthor/dvdifo.c000066400000000000000000000347431140003301000154210ustar00rootroot00000000000000/* * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #include "config.h" #include "compat.h" #include #include "dvdauthor.h" #include "da-internal.h" static const char RCSID[]="$Id: //depot/dvdauthor/src/dvdifo.c#19 $"; #define BIGWRITEBUFLEN (16*2048) static unsigned char bigwritebuf[BIGWRITEBUFLEN]; static struct vobuinfo *globalfindvobu(struct pgc *ch,int pts) { int s,c,ci; for( s=0; snumsources; s++ ) { struct source *sc=ch->sources[s]; for( c=0; cnumcells; c++ ) { struct cell *cl=&sc->cells[c]; int span=0; int fv=findcellvobu(sc->vob,cl->scellid); if( pts < 0 ) return &sc->vob->vi[fv]; for( ci=cl->scellid; ciecellid; ci++ ) span+=getcellpts(sc->vob,ci); if( ptsvob,pts+sc->vob->vi[fv].sectpts[0], fv,sc->vob->numvobus-1); return &sc->vob->vi[r]; } pts-=span; } } // return last vob // if( ch->numsources ) { // struct vob *s=ch->sources[ch->numsources-1]; // return &s->vi[s->numvobus-1]; // } return 0; } static int getvoblen(struct vobgroup *va) { int i; for( i=va->numvobs-1; i>=0; i-- ) if( va->vobs[i]->numvobus ) return va->vobs[i]->vi[va->vobs[i]->numvobus-1].lastsector+1; return 0; } static unsigned int getptssec(struct vobgroup *va,int nsec) { return nsec*getratedenom(va); } static unsigned int findptssec(struct vobgroup *va,int pts) { return pts/getratedenom(va); } static int numsec(struct pgcgroup *va,int c) { return findptssec(va->vg,getptsspan(va->pgcs[c])); } static int secunit(int ns) { const int maxunits=2040; if(!ns) return 1; return (ns+maxunits-1)/maxunits; } static int tmapt_block_size(struct pgcgroup *va,int pgc) { int v=numsec(va,pgc); v=v/secunit(v); return v*4+4; } static int sizeTMAPT(struct pgcgroup *va) { int s=0,i; for( i=0; inumpgcs; i++ ) s+=tmapt_block_size(va,i); return s+va->numpgcs*4+8; } static int numsectTMAPT(struct pgcgroup *va) { return (sizeTMAPT(va)+2047)/2048; } static void CreateTMAPT(FILE *h,struct pgcgroup *va) { int i,mapblock; unsigned char buf[8]; write2(buf,va->numpgcs); write2(buf+2,0); write4(buf+4,sizeTMAPT(va)-1); fwrite(buf,1,8,h); mapblock=8+4*va->numpgcs; for( i=0; inumpgcs; i++ ) { write4(buf,mapblock); fwrite(buf,1,4,h); mapblock+=tmapt_block_size(va,i); } for( i=0; inumpgcs; i++ ) { int numtmapt=numsec(va,i), ptsbase, j, lastsrc=-1; int units=secunit(numtmapt); struct pgc *p=va->pgcs[i]; numtmapt/=units; buf[0]=units; buf[1]=0; if( numtmapt>0 ) { write2(buf+2,numtmapt); ptsbase=-getframepts(va->vg); for( j=0; jvg,(j+1)*units)); if( vobu->vobcellid!=lastsrc ) { if( lastsrc!=-1 ) buf[0]|=0x80; lastsrc=vobu->vobcellid; } fwrite(buf,1,4,h); write4(buf,vobu->sector); } } else write2(buf+2,0); fwrite(buf,1,4,h); } i=(-sizeTMAPT(va))&2047; if( i ) { memset(buf,0,8); while(i>=8) { fwrite(buf,1,8,h); i-=8; } if( i ) fwrite(buf,1,i,h); } } static int numsectVOBUAD(struct vobgroup *va) { int nv=0, i; for( i=0; inumvobs; i++ ) nv+=va->vobs[i]->numvobus; return (4+nv*4+2047)/2048; } static int CreateCallAdr(FILE *h,struct vobgroup *va) { unsigned char *buf=bigwritebuf; int i,p,k; memset(buf,0,BIGWRITEBUFLEN); p=8; for( k=0; knumvobs; k++ ) { struct vob *c=va->vobs[k]; for( i=0; inumvobus; i++ ) { if( !i || c->vi[i].vobcellid!=c->vi[i-1].vobcellid ) { if( i ) { write4(buf+p+8,c->vi[i-1].lastsector); p+=12; } write2(buf+p,c->vi[i].vobcellid>>8); buf[p+2]=c->vi[i].vobcellid; write4(buf+p+4,c->vi[i].sector); } } write4(buf+p+8,c->vi[i-1].lastsector); p+=12; } write4(buf+4,p-1); write2(buf,(p-8)/12); assert(p<=BIGWRITEBUFLEN); p=(p+2047)&(-2048); if(h) fwrite(buf,1,p,h); return p/2048; } static void CreateVOBUAD(FILE *h,struct vobgroup *va) { int i,j,nv; unsigned char buf[16]; nv=0; for( i=0; inumvobs; i++ ) nv+=va->vobs[i]->numvobus; write4(buf,nv*4+3); fwrite(buf,1,4,h); for( j=0; jnumvobs; j++ ) { struct vob *p=va->vobs[j]; for( i=0; inumvobus; i++ ) { write4(buf,p->vi[i].sector); fwrite(buf,1,4,h); } } i=(-(4+nv*4))&2047; if( i ) { memset(buf,0,16); while(i>=16) { fwrite(buf,1,16,h); i-=16; } if( i ) fwrite(buf,1,i,h); } } static int Create_PTT_SRPT(FILE *h,struct pgcgroup *t) { unsigned char *buf=bigwritebuf; int i,j,p; memset(buf,0,BIGWRITEBUFLEN); write2(buf,t->numpgcs); // # of titles p=8+t->numpgcs*4; assert(p<=2048); // need to make sure all the pgc pointers fit in the first sector because of dvdauthor.c:ScanIfo for( j=0; jnumpgcs; j++ ) { struct pgc *pgc=t->pgcs[j]; int pgm=1,k; write4(buf+8+j*4,p); for( i=0; inumsources; i++ ) for( k=0; ksources[i]->numcells; k++ ) { struct cell *c=&pgc->sources[i]->cells[k]; if( c->scellid!=c->ecellid ) switch(c->ischapter ) { case 1: buf[1+p]=j+1; buf[3+p]=pgm; p+=4; case 2: pgm++; } } } write4(buf+4,p-1); assert(p<=BIGWRITEBUFLEN); p=(p+2047)&(-2048); if(h) fwrite(buf,1,p,h); return p/2048; } static int Create_TT_SRPT(FILE *h,struct toc_summary *ts,int vtsstart) { unsigned char *buf=bigwritebuf; int i,j,k,p,tn; memset(buf,0,BIGWRITEBUFLEN); j=vtsstart; tn=0; p=8; for( i=0; inumvts; i++ ) { for( k=0; kvts[i].numtitles; k++ ) { buf[0 + p]=0x3c; // title type buf[1 + p]=0x1; // number of angles write2(buf+2+p,ts->vts[i].numchapters[k]); // number of chapters buf[6 + p]=i+1; // VTS # buf[7 + p]=k+1; // title # within VTS write4(buf+8+p,j); // start sector for VTS tn++; p+=12; } j+=ts->vts[i].numsectors; } write2(buf,tn); // # of titles write4(buf+4,p-1); // last byte of entry assert(p<=BIGWRITEBUFLEN); p=(p+2047)&(-2048); if(h) fwrite(buf,1,p,h); return p/2048; } static void BuildAVInfo(unsigned char *buf,struct vobgroup *va) { int i; write2(buf, (va->vd.vmpeg==2?0x4000:0) |(va->vd.vdisallow<<8) |(va->vd.vformat==VF_PAL?0x1000:0) |(va->vd.vaspect==VA_16x9?0xc00:0) |((va->vd.vcaption&1)?0x80:0) |((va->vd.vcaption&2)?0x40:0) |((va->vd.vres-1)<<2)); buf[3]=va->numaudiotracks; for( i=0; inumaudiotracks; i++ ) { buf[4+i*8]=(va->ad[i].aformat-1)<<6; if( va->ad[i].alangp==AL_LANG ) { buf[4+i*8]|=4; memcpy(buf+6+i*8,va->ad[i].lang,2); } if( va->ad[i].adolby==AD_SURROUND ) { buf[4+i*8]|=2; buf[11+i*8]=8; } buf[5+i*8]= ((va->ad[i].aquant-1)<<6) | ((va->ad[i].asample-1)<<4) | (va->ad[i].achannels-1); } buf[0x55]=va->numsubpicturetracks; for( i=0; inumsubpicturetracks; i++ ) { if( va->sp[i].slangp==AL_LANG ) { buf[0x56+i*6]=1; memcpy(buf+0x58+i*6,va->sp[i].lang,2); } } } static int needmenus(struct menugroup *mg) { if (!mg ) return 0; if( !mg->numgroups ) return 0; if( !mg->groups[0].pg->numpgcs ) return 0; return 1; } static void WriteIFO(FILE *h,struct workset *ws) { static unsigned char buf[2048]; int i,forcemenus=needmenus(ws->menus); // sect 0: VTS toplevel memset(buf,0,2048); memcpy(buf,"DVDVIDEO-VTS",12); buf[33]=0x11; write4(buf+128,0x7ff); i=1; buf[0xCB]=i; // VTS_PTT_SRPT i+=Create_PTT_SRPT(0,ws->titles); buf[0xCF]=i; // VTS_PGCI i+=CreatePGC(0,ws,0); if( jumppad || forcemenus ) { buf[0xD3]=i; // VTSM_PGCI i+=CreatePGC(0,ws,1); } buf[0xD7]=i; // VTS_TMAPT i+=numsectTMAPT(ws->titles); if( jumppad || forcemenus ) { buf[0xDB]=i; // VTSM_C_ADT i+=CreateCallAdr(0,ws->menus->vg); buf[0xDF]=i; // VTSM_VOBU_ADMAP i+=numsectVOBUAD(ws->menus->vg); } buf[0xE3]=i; // VTS_C_ADT i+=CreateCallAdr(0,ws->titles->vg); buf[0xE7]=i; // VTS_VOBU_ADMAP i+=numsectVOBUAD(ws->titles->vg); buf[31]=i-1; if( jumppad || forcemenus ) { buf[0xC3]=i; i+=getvoblen(ws->menus->vg); } write4(buf+0xC4,i); if( ws->titles->numpgcs ) i+=getvoblen(ws->titles->vg); i+=buf[31]; write4(buf+12,i); if( jumppad || forcemenus ) BuildAVInfo(buf+256,ws->menus->vg); BuildAVInfo(buf+512,ws->titles->vg); fwrite(buf,1,2048,h); // sect 1: VTS_PTT_SRPT Create_PTT_SRPT(h,ws->titles); // sect 2: VTS_PGCIT CreatePGC(h,ws,0); if( jumppad || forcemenus ) CreatePGC(h,ws,1); // sect 3: ??? VTS_TMAPT CreateTMAPT(h,ws->titles); if( jumppad || forcemenus ) { CreateCallAdr(h,ws->menus->vg); CreateVOBUAD(h,ws->menus->vg); } CreateCallAdr(h,ws->titles->vg); CreateVOBUAD(h,ws->titles->vg); } void WriteIFOs(char *fbase,struct workset *ws) { FILE *h; static char buf[1000]; sprintf(buf,"%s_0.IFO",fbase); h=fopen(buf,"wb"); WriteIFO(h,ws); fclose(h); sprintf(buf,"%s_0.BUP",fbase); h=fopen(buf,"wb"); WriteIFO(h,ws); fclose(h); } void TocGen(struct workset *ws,struct pgc *fpc,char *fname) { static unsigned char buf[2048]; int i,j,vtsstart,forcemenus=needmenus(ws->menus); FILE *h; h=fopen(fname,"wb"); memset(buf,0,2048); memcpy(buf,"DVDVIDEO-VMG",12); buf[0x21]=0x11; buf[0x27]=1; buf[0x29]=1; buf[0x2a]=1; write2(buf+0x3e,ws->ts->numvts); strncpy((char *)(buf+0x40),PACKAGE_STRING,31); buf[0x86]=4; i=1; write4(buf+0xc4,i); // TT_SRPT i+=Create_TT_SRPT(0,ws->ts,0); if( jumppad || forcemenus ) { // PGC write4(buf+0xc8,i); i+=CreatePGC(0,ws,2); } write4(buf+0xd0,i); // VTS_ATRT i+=(8+ws->ts->numvts*0x30c+2047)/2048; if( jumppad || forcemenus ) { write4(buf+0xd8,i); // C_ADT i+=CreateCallAdr(0,ws->menus->vg); write4(buf+0xdc,i); // VOBU_ADMAP i+=numsectVOBUAD(ws->menus->vg); } write4(buf+0x1c,i-1); vtsstart=i*2; if( jumppad || forcemenus ) { write4(buf+0xc0,i); vtsstart+=getvoblen(ws->menus->vg); } write4(buf+0xc,vtsstart-1); if( forcemenus ) BuildAVInfo(buf+256,ws->menus->vg); buf[0x407]=0xc0; buf[0x4e5]=0xec; // pointer to command table // command table buf[0x4ed]=1; // # pre commands // commands start at 0x4f4 i=0x4f4; if( fpc ) { unsigned char *pi; if( fpc->posti || fpc->numsources || fpc->numbuttons || fpc->entries ) { fprintf(stderr,"ERR: FPC can ONLY contain prei commands, nothing else\n"); Exit(1); } pi=vm_compile(buf+i,buf+i,ws,-1,fpc->prei,2,COMPILE_PRE); if( !pi ) { fprintf(stderr,"ERR: in FPC\n"); Exit(1); } i=(pi-buf-i)/8; assert(i<=128); buf[0x4ed]=i; } else if( forcemenus ) { buf[i+0]=0x30; // jump to VMGM 1 buf[i+1]=0x06; buf[i+2]=0x00; buf[i+3]=0x00; buf[i+4]=0x00; buf[i+5]=0x42; buf[i+6]=0x00; buf[i+7]=0x00; } else if( ws->ts->numvts && ws->ts->vts[0].hasmenu ) { buf[i+0]=0x30; // jump to VTSM vts=1, ttn=1, menu=1 buf[i+1]=0x06; buf[i+2]=0x00; buf[i+3]=0x01; buf[i+4]=0x01; buf[i+5]=0x83; buf[i+6]=0x00; buf[i+7]=0x00; } else { buf[i+0]=0x30; // jump to title 1 buf[i+1]=0x02; buf[i+2]=0x00; buf[i+3]=0x00; buf[i+4]=0x00; buf[i+5]=0x01; buf[i+6]=0x00; buf[i+7]=0x00; } write2(buf+0x4f2,7+buf[0x4ed]*8); write2(buf+0x82,0x4ec+read2(buf+0x4f2)); fwrite(buf,1,2048,h); Create_TT_SRPT(h,ws->ts,vtsstart); // PGC if( jumppad || forcemenus ) CreatePGC(h,ws,2); // VMG_VTS_ATRT memset(buf,0,2048); j=8+ws->ts->numvts*4; write2(buf,ws->ts->numvts); write4(buf+4,ws->ts->numvts*0x30c+8-1); for( i=0; its->numvts; i++ ) write4(buf+8+i*4,j+i*0x308); fwrite(buf,1,j,h); for( i=0; its->numvts; i++ ) { write4(buf,0x307); memcpy(buf+4,ws->ts->vts[i].vtscat,4); memcpy(buf+8,ws->ts->vts[i].vtssummary,0x300); fwrite(buf,1,0x308,h); j+=0x308; } j=2048-(j&2047); if( j < 2048 ) { memset(buf,0,j); fwrite(buf,1,j,h); } if( jumppad || forcemenus ) { CreateCallAdr(h,ws->menus->vg); CreateVOBUAD(h,ws->menus->vg); } fclose(h); } dvd95/dvdauthor/dvdpgc.c000066400000000000000000000335111140003301000154050ustar00rootroot00000000000000/* * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #include "config.h" #include "compat.h" #include #include "dvdauthor.h" #include "da-internal.h" static const char RCSID[]="$Id: //depot/dvdauthor/src/dvdpgc.c#20 $"; #define MAXCELLS 4096 #define MAXPGCSIZE (236+128*8+256+MAXCELLS*(24+4)) #define BUFFERPAD (MAXPGCSIZE+1024) static int bigwritebuflen=0; static unsigned char *bigwritebuf=0; /*------------------------------------------------------------------------------ DVDPGC__INIT- Linux!jef 2006/02/27 21:08:20 ------------------------------------------------------------------------------*/ void dvdpgc__init() { bigwritebuflen = 0; bigwritebuf = 0; } /* titleset X: 2-255 vmgm: 1 menu Y: 1-119 menu entry Y: 120-127 title Y: 129-255 chapter Z: 1-255 need 3 bytes plus jump command for VMGM menu: [vmgm | titleset X] -> g[15] low [menu [entry] Y | title Y] -> g[15] high [chapter Z] -> g[14] low for VTSM root menu: [menu [entry] Y | title Y] -> g[15] high [chapter Z] -> g[15] low */ static int jumppgc(unsigned char *buf,int pgc,struct workset *ws) { int base=0xEC,ncmd,offs,i,j,k; offs=base+8; if( ws && ws->ts && ws->menus ) { // *** VMGM jumppad // remap all VMGM TITLE X -> TITLESET X TITLE Y k=129; for( i=0; its->numvts; i++ ) for( j=0; jts->vts[i].numtitles; j++ ) { write8(buf+offs,0x71,0xA0,0x0F,0x0F,j+129,i+2,k,1); offs+=8; k++; } // move TITLE out of g[15] into g[14] (to mate up with CHAPTER) // then put title/chapter into g[15], and leave titleset in g[14] write8(buf+offs,0x63,0x00,0x00,0x0E,0x00,0x0F,0x00,0x00); offs+=8; // g[14]+=g[15] write8(buf+offs,0x79,0x00,0x00,0x0F,0x00,0xFF,0x00,0x00); offs+=8; // g[15]&=255 write8(buf+offs,0x64,0x00,0x00,0x0E,0x00,0x0F,0x00,0x00); offs+=8; // g[14]-=g[15] write8(buf+offs,0x62,0x00,0x00,0x0E,0x00,0x0F,0x00,0x00); offs+=8; // g[14]<->g[15] // For each titleset, delegate to the appropriate submenu for( i=0; its->numvts; i++ ) { write8(buf+offs,0x71,0x00,0x00,0x0D,0x00,i+2,0x00,0x00); offs+=8; // g[13]=(i+1)*256; write8(buf+offs,0x30,0x26,0x00,0x01,i+1,0x87,0x0E,0x0D); offs+=8; // if g[14]==g[13] then JumpSS VTSM i+1, ROOT } // set g[15]=0 so we don't leak dirty registers to other PGC's write8(buf+offs,0x71,0x00,0x00,0x0F,0x00,0x00,0x00,0x00); offs+=8; // g[15]=0; } else if( ws && ws->menus && ws->titles ) { struct pgcgroup *mpg=ws->menus->groups[ws->curmenu].pg; // *** VTSM jumppad write8(buf+offs,0x61,0x00,0x00,0x0E,0x00,0x0F,0x00,0x00); offs+=8; // g[14]=g[15]; write8(buf+offs,0x71,0x00,0x00,0x0F,0x00,0x00,0x00,0x00); offs+=8; // g[15]=0; // menu entry jumptable for( i=2; i<8; i++ ) { for( j=0; jnumpgcs; j++ ) if( mpg->pgcs[j]->entries&(1<numpgcs; i++ ) { write8(buf+offs,0x20,0xA4,0x00,0x0E,i+1,0x00,0x00,i+1); offs+=8; // if g[14]==0xXX00 then LinkPGCN XX } // title/chapter jumptable for( i=0; ititles->numpgcs; i++ ) { write8(buf+offs,0x71,0x00,0x00,0x0D,i+129,0,0x00,0x00); offs+=8; // g[13]=(i+1)*256; write8(buf+offs,0x30,0x23,0x00,0x00,0x00,i+1,0x0E,0x0D); offs+=8; // if g[15]==g[13] then JumpSS VTSM i+1, ROOT for( j=0; jtitles->pgcs[i]->numchapters; j++ ) { write8(buf+offs,0x71,0x00,0x00,0x0D,i+129,j+1,0x00,0x00); offs+=8; // g[13]=(i+1)*256; write8(buf+offs,0x30,0x25,0x00,j+1,0x00,i+1,0x0E,0x0D); offs+=8; // if g[15]==g[13] then JumpSS VTSM i+1, ROOT } } } if( pgc>0 ) write8(buf+offs,0x20,0x04,0x00,0x00,0x00,0x00,0x00,pgc); // LinkPGCN pgc else write8(buf+offs,0x30,0x06,0x00,0x00,0x00,0x00,0x00,0x00); // JumpSS FP offs+=8; ncmd=(offs-base)/8-1; if( ncmd>128 ) { fprintf(stderr,"ERR: Too many pre/post/cell commands. Reduce complexity and/or disable\njumppad.\n"); Exit(1); } buf[0xE5]=base; buf[base+1]=ncmd; buf[base+7]=7+8*ncmd; return offs; } static int genpgc(unsigned char *buf,struct workset *ws,int pgc,int ismenu) { struct vobgroup *va=(ismenu?ws->menus->vg:ws->titles->vg); struct pgc *p=(ismenu?ws->menus->groups[ws->curmenu].pg:ws->titles)->pgcs[pgc]; int i,j,d; // PGC header starts at buf[16] buf[2]=p->numprograms; buf[3]=p->numcells; write4(buf+4,buildtimeeven(va,getptsspan(p))); for( i=0; inumaudiotracks; i++ ) { if( va->ad[i].aid ) buf[12+i*2]=0x80|(va->ad[i].aid-1); } for( i=0; inumsubpicturetracks; i++ ) { int id=va->sp[i].sid-1; buf[28+i*4]=0x80|id; buf[29+i*4]=id; buf[30+i*4]=id; buf[31+i*4]=id; } buf[163]=p->pauselen; // PGC stilltime for( i=0; i<16; i++ ) write4(buf+164+i*4,p->ci->colors[i]<0x1000000?p->ci->colors[i]:0x108080); d=0xEC; // command table { unsigned char *cd=buf+d+8,*preptr,*postptr,*cellptr; preptr=cd; if( p->prei ) { cd=vm_compile(preptr,cd,ws,pgc,p->prei,ismenu,COMPILE_PRE); if(!cd) { fprintf(stderr,"ERR: in %s pgc %d,
\n",pstypes[ismenu],pgc);
                Exit(1);
            }
        } else if( p->numbuttons ) {
            write8(cd,0x56,0x00,0x00,0x00,4*1,0x00,0x00,0x00); cd+=8; // set active button to be #1
        }

        postptr=cd;
        if( p->numbuttons ) {
            write8(cd,0x61,0x00,0x00,0x0E,0x00,0x0F,0x00,0x00);  // g[14]=g[15]
            write8(cd+8,0x71,0x00,0x00,0x0F,0x00,0x00,0x00,0x00); // g[15]=0
            cd+=8*(p->numbuttons+2);
        }
        if( p->posti ) {
            cd=vm_compile(postptr,cd,ws,pgc,p->posti,ismenu,COMPILE_POST);
            if(!cd) {
                fprintf(stderr,"ERR:  in %s pgc %d, \n",pstypes[ismenu],pgc);
                Exit(1);
            }
        } else {
            write8(cd,0x30,0x01,0x00,0x00,0x00,0x00,0x00,0x00); // exit
            cd+=8;
        }
        for( i=0; inumbuttons; i++ ) {
            struct button *b=&p->buttons[i];
            
            write8(postptr+i*8+16,0x00,0xa1,0x00,0x0E,0x00,i+1,0x00,(cd-postptr)/8+1);
            cd=vm_compile(postptr,cd,ws,pgc,b->cs,ismenu,COMPILE_POST);
            if(!cd) {
                fprintf(stderr,"ERR:  in %s pgc %d, button %s\n",pstypes[ismenu],pgc,b->name);
                Exit(1);
            }
        }

        cellptr=cd;
        for( i=0; inumsources; i++ )
            for( j=0; jsources[i]->numcells; j++ ) {
                struct cell *c=&p->sources[i]->cells[j];
                if( c->cs ) {
                    unsigned char *cdd=vm_compile(postptr,cd,ws,pgc,c->cs,ismenu,COMPILE_CELL);
                    if( cdd!=cd+8 ) {
                        fprintf(stderr,"ERR:  Cell command can only compile to one VM instruction.\n");
                        Exit(1);
                    }
                    cd=cdd;
                }
            }
        
        write2(buf+228,d);
        assert(cd-(buf+d)-8<=128*8); // can only have 128 commands
        write2(buf+d,(postptr-preptr)/8); // # pre commands
        write2(buf+d+2,(cellptr-postptr)/8); // # post command
        write2(buf+d+4,(cd-cellptr)/8); // # cell command
        write2(buf+d+6,cd-(buf+d)-1); // last byte
        d=cd-buf;
    }

    if( p->numsources ) {
        int cellline,notseamless;

        // program map entry
        write2(buf+230,d);
        j=1;
        for( i=0; inumsources; i++ ) {
            int k;
            struct source *si=p->sources[i];

            for( k=0; knumcells; k++ ) {
                if( si->cells[k].scellid==si->cells[k].ecellid )
                    continue;
                if( si->cells[k].ischapter )
                    buf[d++]=j;
                j+=si->cells[k].ecellid-si->cells[k].scellid;
            }
        }
        d+=d&1;

        // cell playback information table
        write2(buf+232,d);
        j=-1;
        cellline=1;
        notseamless=1;
        for( i=0; inumsources; i++ ) {
            int k,l,m,firsttime;
            struct source *s=p->sources[i];

            for( k=0; knumcells; k++ )
                for( l=s->cells[k].scellid; lcells[k].ecellid; l++ ) {
                    int id=s->vob->vobid*256+l,vi;
                    for( m=0; mnumaudiotracks; m++ )
                        if( j>=0 && getaudch(va,m)>=0 && calcaudiogap(va,j,id,getaudch(va,m)) )
                            notseamless=1;
                    buf[d]=(notseamless?0:8)|(j+1!=id?2:0); // if this is the first cell of the source, then set 'STC_discontinuity', otherwise set 'seamless presentation'
                    notseamless=0;
                    // you can't set the seamless presentation on the first cell or else a/v sync problems will occur
                    j=id;

                    vi=findcellvobu(s->vob,l);
                    firsttime=s->vob->vi[vi].sectpts[0];
                    write4(buf+8+d,s->vob->vi[vi].sector);
                    vi=findcellvobu(s->vob,l+1)-1;
                    if( l==s->cells[k].ecellid-1 ) {
                        if( s->cells[k].pauselen>0 ) {
                            buf[2+d]=s->cells[k].pauselen; // still time
                            notseamless=1; // cells with stilltime are not seamless
                        }
                        if( s->cells[k].cs ) {
                            buf[3+d]=cellline++;
                            notseamless=1; // cells with commands are not seamless
                        }
                    }
                    write4(buf+4+d,buildtimeeven(va,s->vob->vi[vi].sectpts[1]-firsttime));
                    write4(buf+16+d,s->vob->vi[vi].sector);
                    write4(buf+20+d,s->vob->vi[vi].lastsector);
                    d+=24;
                }
        }

        // cell position information table
        write2(buf+234,d);
        for( i=0; inumsources; i++ ) {
            int j,k;
            struct source *s=p->sources[i];

            for( j=0; jnumcells; j++ )
                for( k=s->cells[j].scellid; kcells[j].ecellid; k++ ) {
                    buf[1+d]=s->vob->vobid;
                    buf[3+d]=k;
                    d+=4;
                }
        }
    }

    return d;
}

static int createpgcgroup(struct workset *ws,int ismenu,struct pgcgroup *va,unsigned char *buf)
{
    int len,i,pgcidx;

    len=va->numpgcs+va->numentries;
    write2(buf,len);
    len=len*8+8;
    pgcidx=8;

    for( i=0; inumpgcs; i++ ) {
        if( buf+len+BUFFERPAD-bigwritebuf > bigwritebuflen )
            return -1;
        if( !ismenu )
            buf[pgcidx]=0x81+i;
        write4(buf+pgcidx+4,len);
        len+=genpgc(buf+len,ws,i,ismenu);
        pgcidx+=8;
    }

    for( i=2; i<8; i++ ) {
        if( va->allentries&(1< bigwritebuflen )
                return -1;

            for( j=0; jnumpgcs; j++ )
                if( va->pgcs[j]->entries&(1<numpgcs )
                j++;
            else
                j=-1;
            buf[pgcidx]=0x80|i;
            write4(buf+pgcidx+4,len);
            if( jumppad && ((ismenu==1 && i==7) || 
                            (ismenu==2 && i==2) ))
                len+=jumppgc(buf+len,j,ws);
            else
                len+=jumppgc(buf+len,j,0);
            pgcidx+=8;
        }
    }

    write4(buf+4,len-1); // last byte rel to buf
    return len;
}

int CreatePGC(FILE *h,struct workset *ws,int ismenu)
{
    unsigned char *buf;
    int len,ph,i,in_it;

    in_it=!bigwritebuflen;
 retry:
    if( in_it ) {
        if( bigwritebuflen==0 )
            bigwritebuflen=128*1024;
        else
            bigwritebuflen<<=1;
        if( bigwritebuf )
            free(bigwritebuf);
        bigwritebuf=malloc(bigwritebuflen);
    }
    in_it=1;
    buf=bigwritebuf;
    memset(buf,0,bigwritebuflen);
    ph=0;
    if( ismenu ) {
        buf[1]=ws->menus->numgroups; // # of language units
        ph=8+8*ws->menus->numgroups;

        for( i=0; imenus->numgroups; i++ ) {
            unsigned char *plu=buf+8+8*i;
            struct langgroup *lg=&ws->menus->groups[i];

            memcpy(plu,lg->lang,2);
            if( ismenu==1 )
                plu[3]=lg->pg->allentries;
            else
                plu[3]=0x80; // menu system contains entry for title
            write4(plu+4,ph);

            ws->curmenu=i;
            len=createpgcgroup(ws,ismenu,lg->pg,buf+ph);
            if( len<0 )
                goto retry;
            ph+=len;            
        }
        write4(buf+4,ph-1);
    } else {
        len=createpgcgroup(ws,0,ws->titles,buf);
        if( len<0 )
            goto retry;
        ph=len;
    }

    assert(ph<=bigwritebuflen);
    ph=(ph+2047)&(-2048);
    if( h )
        fwrite(buf,1,ph,h);
    return ph/2048;
}
dvd95/dvdauthor/dvdvm.h000066400000000000000000000041021140003301000152550ustar00rootroot00000000000000#include 
#include 

#ifdef YY_END_OF_BUFFER_CHAR
#define dvdvm_buffer_state YY_BUFFER_STATE
#else
typedef void *dvdvm_buffer_state;
#endif

extern void dvdvmerror(char *s);
extern int dvdvmlex(void);
extern dvdvm_buffer_state dvdvm_scan_string(const char *s);
extern int dvdvmparse(void);

struct vm_statement {
    int op;
    int i1,i2,i3,i4;
    char *s1,*s2,*s3,*s4;
    struct vm_statement *param;
    struct vm_statement *next;
};

extern struct vm_statement *dvd_vm_parsed_cmd;

enum { VM_NOP=0,
       VM_JUMP,
       VM_CALL,
       VM_EXIT,
       VM_RESUME,

       VM_SET,
       VM_IF,
       VM_ADD,
       VM_SUB,
       VM_MUL,

       VM_DIV,
       VM_MOD,
       VM_AND,
       VM_OR,
       VM_XOR,

       VM_VAL,
       VM_EQ, // EQ .. LT are all in a specific order
       VM_NE,
       VM_GTE,
       VM_GT,

       VM_LTE,
       VM_LT,
       VM_LAND,
       VM_LOR,
       VM_NOT,
       
       VM_MAX_OPCODE
};

static inline struct vm_statement *statement_new()
{
    struct vm_statement *s=malloc(sizeof(struct vm_statement));
    memset(s,0,sizeof(struct vm_statement));
    return s;
}

static inline struct vm_statement *statement_expression(struct vm_statement *v1,int op,struct vm_statement *v2)
{
    struct vm_statement *v;

    if( v1->op==op ) {
        v=v1->param;
        while(v->next) v=v->next;
        v->next=v2;
        return v1;
    } else {
        v=statement_new();
        v->op=op;
        v->param=v1;
        v1->next=v2;
        return v;
    }
}

static inline struct vm_statement *statement_setop(int reg,int op,struct vm_statement *vp)
{
    struct vm_statement *v,*v2;

    v=statement_new();
    v->op=VM_SET;
    v->i1=reg;
    v2=statement_new();
    v2->op=VM_VAL;
    v2->i1=reg-256;
    v->param=statement_expression(v2,op,vp);
    return v;
}

static inline void statement_free(struct vm_statement *s)
{
    if( s->s1 ) free(s->s1);
    if( s->s2 ) free(s->s2);
    if( s->s3 ) free(s->s3);
    if( s->s4 ) free(s->s4);
    if( s->param ) statement_free(s->param);
    if( s->next ) statement_free(s->next);
    free(s);
}
dvd95/dvdauthor/dvdvml.c000066400000000000000000001363631140003301000154430ustar00rootroot00000000000000#define yy_create_buffer dvdvm_create_buffer
#define yy_delete_buffer dvdvm_delete_buffer
#define yy_scan_buffer dvdvm_scan_buffer
#define yy_scan_string dvdvm_scan_string
#define yy_scan_bytes dvdvm_scan_bytes
#define yy_flex_debug dvdvm_flex_debug
#define yy_init_buffer dvdvm_init_buffer
#define yy_flush_buffer dvdvm_flush_buffer
#define yy_load_buffer_state dvdvm_load_buffer_state
#define yy_switch_to_buffer dvdvm_switch_to_buffer
#define yyin dvdvmin
#define yyleng dvdvmleng
#define yylex dvdvmlex
#define yyout dvdvmout
#define yyrestart dvdvmrestart
#define yytext dvdvmtext

#line 19 "dvdvml.c"
/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
 */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#include 
#include 


/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif


#ifdef __cplusplus

#include 

/* Use prototypes in function declarations. */
#define YY_USE_PROTOS

/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST

#else	/* ! __cplusplus */

#if __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

#endif	/* __STDC__ */
#endif	/* ! __cplusplus */

#ifdef __TURBOC__
 #pragma warn -rch
 #pragma warn -use
#include 
#include 
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif

#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif


#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif

/* Returned upon end-of-file. */
#define YY_NULL 0

/* Promotes a possibly negative, possibly signed char to an unsigned
 * integer for use as an array index.  If the signed char is negative,
 * we want to instead treat it as an 8-bit unsigned char, hence the
 * double cast.
 */
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)

/* Enter a start condition.  This macro really ought to take a parameter,
 * but we do it the disgusting crufty way forced on us by the ()-less
 * definition of BEGIN.
 */
#define BEGIN yy_start = 1 + 2 *

/* Translate the current start state into a value that can be later handed
 * to BEGIN to return to the state.  The YYSTATE alias is for lex
 * compatibility.
 */
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START

/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)

/* Special action meaning "start processing a new file". */
#define YY_NEW_FILE yyrestart( yyin )

#define YY_END_OF_BUFFER_CHAR 0

/* Size of default input buffer. */
#define YY_BUF_SIZE 16384

typedef struct yy_buffer_state *YY_BUFFER_STATE;

extern int yyleng;
extern FILE *yyin, *yyout;

#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2

/* The funky do-while in the following #define is used to turn the definition
 * int a single C statement (which needs a semi-colon terminator).  This
 * avoids problems with code like:
 *
 * 	if ( condition_holds )
 *		yyless( 5 );
 *	else
 *		do_something_else();
 *
 * Prior to using the do-while the compiler would get upset at the
 * "else" because it interpreted the "if" statement as being all
 * done when it reached the ';' after the yyless() call.
 */

/* Return all but the first 'n' matched characters back to the input stream. */

#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
		*yy_cp = yy_hold_char; \
		YY_RESTORE_YY_MORE_OFFSET \
		yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
		YY_DO_BEFORE_ACTION; /* set up yytext again */ \
		} \
	while ( 0 )

#define unput(c) yyunput( c, yytext_ptr )

/* The following is because we cannot portably get our hands on size_t
 * (without autoconf's help, which isn't available because we want
 * flex-generated scanners to compile on their own).
 */
typedef unsigned int yy_size_t;


struct yy_buffer_state
	{
	FILE *yy_input_file;

	char *yy_ch_buf;		/* input buffer */
	char *yy_buf_pos;		/* current position in input buffer */

	/* Size of input buffer in bytes, not including room for EOB
	 * characters.
	 */
	yy_size_t yy_buf_size;

	/* Number of characters read into yy_ch_buf, not including EOB
	 * characters.
	 */
	int yy_n_chars;

	/* Whether we "own" the buffer - i.e., we know we created it,
	 * and can realloc() it to grow it, and should free() it to
	 * delete it.
	 */
	int yy_is_our_buffer;

	/* Whether this is an "interactive" input source; if so, and
	 * if we're using stdio for input, then we want to use getc()
	 * instead of fread(), to make sure we stop fetching input after
	 * each newline.
	 */
	int yy_is_interactive;

	/* Whether we're considered to be at the beginning of a line.
	 * If so, '^' rules will be active on the next match, otherwise
	 * not.
	 */
	int yy_at_bol;

	/* Whether to try to fill the input buffer when we reach the
	 * end of it.
	 */
	int yy_fill_buffer;

	int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
	/* When an EOF's been seen but there's still some text to process
	 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
	 * shouldn't try reading from the input source any more.  We might
	 * still have a bunch of tokens to match, though, because of
	 * possible backing-up.
	 *
	 * When we actually see the EOF, we change the status to "new"
	 * (via yyrestart()), so that the user can continue scanning by
	 * just pointing yyin at a new input file.
	 */
#define YY_BUFFER_EOF_PENDING 2
	};

static YY_BUFFER_STATE yy_current_buffer = 0;

/* We provide macros for accessing buffer states in case in the
 * future we want to put the buffer states in a more general
 * "scanner state".
 */
#define YY_CURRENT_BUFFER yy_current_buffer


/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;

static int yy_n_chars;		/* number of characters read into yy_ch_buf */


int yyleng;

/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 1;		/* whether we need to initialize */
static int yy_start = 0;	/* start state number */

/* Flag which is used to allow yywrap()'s to do buffer switches
 * instead of setting up a fresh yyin.  A bit of a hack ...
 */
static int yy_did_buffer_switch_on_eof;

void yyrestart YY_PROTO(( FILE *input_file ));

void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )

YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));

static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void yy_flex_free YY_PROTO(( void * ));

#define yy_new_buffer yy_create_buffer

#define yy_set_interactive(is_interactive) \
	{ \
	if ( ! yy_current_buffer ) \
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
	yy_current_buffer->yy_is_interactive = is_interactive; \
	}

#define yy_set_bol(at_bol) \
	{ \
	if ( ! yy_current_buffer ) \
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
	yy_current_buffer->yy_at_bol = at_bol; \
	}

#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)


#define yywrap() 1
#define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern char *yytext;
#define yytext_ptr yytext

static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));

/* Done after the current pattern has been matched and before the
 * corresponding action - sets up yytext.
 */
#define YY_DO_BEFORE_ACTION \
	yytext_ptr = yy_bp; \
	yyleng = (int) (yy_cp - yy_bp); \
	yy_hold_char = *yy_cp; \
	*yy_cp = '\0'; \
	yy_c_buf_p = yy_cp;

#define YY_NUM_RULES 69
#define YY_END_OF_BUFFER 70
static yyconst short int yy_accept[153] =
    {   0,
        0,    0,   70,   68,   32,   32,   58,   38,   39,   62,
       63,   36,   34,   35,   37,   64,   59,   55,   33,   53,
       67,   41,   67,   67,   67,   67,   67,   67,   67,   67,
       67,   67,   67,   67,   67,   67,   67,   67,   67,   67,
       60,   40,   61,   32,   51,   46,   56,   47,   44,   42,
       43,   45,   64,   54,   50,   52,   67,   49,   67,   67,
       67,   67,   67,   67,   67,   67,   10,   67,   67,   65,
       13,   14,   15,   67,   17,   18,   67,   20,   67,   22,
       67,   67,   67,   67,   66,   67,   67,   67,   67,   48,
       57,    1,   67,   67,   67,   67,   67,   67,   67,   67,

       67,   12,   67,   67,   21,   67,   24,   67,   67,   67,
       67,   67,   31,   67,   67,   67,    5,    6,   67,    8,
       67,   11,   16,   19,   67,   67,   26,   67,   67,   30,
        2,    3,   67,   67,    9,   67,   67,   67,   28,    4,
       67,   67,   25,   67,   67,    7,   23,   67,   67,   27,
       29,    0
    } ;

static yyconst int yy_ec[256] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    2,    4,    1,    1,    1,    5,    6,    1,    7,
        8,    9,   10,    1,   11,    1,   12,   13,   13,   13,
       13,   13,   13,   13,   13,   13,   13,    1,   14,   15,
       16,   17,    1,    1,   18,   18,   18,   18,   18,   18,
       18,   18,   18,   18,   18,   18,   18,   18,   18,   18,
       18,   18,   18,   18,   18,   18,   18,   18,   18,   18,
        1,    1,    1,   19,   18,    1,   20,   21,   22,   23,

       24,   25,   26,   27,   28,   29,   18,   30,   31,   32,
       33,   34,   35,   36,   37,   38,   39,   40,   18,   41,
       42,   18,   43,   44,   45,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,

        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1
    } ;

static yyconst int yy_meta[46] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    2,    1,    1,    1,    1,    2,    1,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    2,    2,    2,    2,    2,    2,    2,    2,
        2,    2,    1,    1,    1
    } ;

static yyconst short int yy_base[154] =
    {   0,
        0,    0,  162,  163,   44,   46,  145,  144,   44,  163,
      163,  143,  142,  141,  140,  142,  163,  138,  137,  136,
        0,  135,   19,  111,   32,   31,  115,   40,  123,  108,
       30,  122,   38,  109,   19,   41,   54,  116,  112,  109,
      163,   53,  163,   73,  163,  163,  163,  163,  163,  163,
      163,  163,  128,  163,  163,  163,    0,  163,   47,  117,
      101,  108,  107,  116,   98,   96,    0,  105,  110,  118,
        0,    0,    0,   99,    0,    0,   97,    0,   90,    0,
       94,   88,   88,   91,  110,  101,   83,   94,   83,  163,
      163,    0,   88,   89,   78,   85,   84,   79,   88,   75,

       72,    0,   75,   69,    0,   81,    0,   67,   67,   66,
       73,   71,    0,   77,   67,   66,    0,    0,   60,    0,
       54,    0,    0,    0,   59,   63,    0,   64,   67,    0,
        0,    0,   58,   65,    0,   68,   63,   48,   48,    0,
       48,   52,    0,   52,   57,    0,    0,   56,   41,    0,
        0,  163,   75
    } ;

static yyconst short int yy_def[154] =
    {   0,
      152,    1,  152,  152,  152,  152,  152,  152,  152,  152,
      152,  152,  152,  152,  152,  152,  152,  152,  152,  152,
      153,  152,  153,  153,  153,  153,  153,  153,  153,  153,
      153,  153,  153,  153,  153,  153,  153,  153,  153,  153,
      152,  152,  152,  152,  152,  152,  152,  152,  152,  152,
      152,  152,  152,  152,  152,  152,  153,  152,  153,  153,
      153,  153,  153,  153,  153,  153,  153,  153,  153,  153,
      153,  153,  153,  153,  153,  153,  153,  153,  153,  153,
      153,  153,  153,  153,  153,  153,  153,  153,  153,  152,
      152,  153,  153,  153,  153,  153,  153,  153,  153,  153,

      153,  153,  153,  153,  153,  153,  153,  153,  153,  153,
      153,  153,  153,  153,  153,  153,  153,  153,  153,  153,
      153,  153,  153,  153,  153,  153,  153,  153,  153,  153,
      153,  153,  153,  153,  153,  153,  153,  153,  153,  153,
      153,  153,  153,  153,  153,  153,  153,  153,  153,  153,
      153,    0,  152
    } ;

static yyconst short int yy_nxt[209] =
    {   0,
        4,    5,    6,    7,    8,    9,   10,   11,   12,   13,
       14,   15,   16,   17,   18,   19,   20,   21,   22,   23,
       24,   25,   21,   26,   27,   28,   21,   29,   30,   31,
       32,   33,   34,   35,   21,   36,   37,   38,   21,   39,
       40,   21,   41,   42,   43,   44,   44,   44,   44,   47,
       59,   62,   70,   75,   81,   63,   82,   60,   64,   48,
       65,   78,   66,   71,   83,   67,   85,   76,   90,   92,
       79,   68,   93,   84,   44,   44,   57,   72,  151,  150,
      149,  148,  147,  146,  145,  144,  143,  142,  141,  140,
      139,  138,   86,  137,  136,  135,   91,  134,  133,  132,

      131,  130,  129,  128,  127,  126,  125,  124,  123,  122,
      121,  120,  119,  118,  117,  116,  115,  114,  113,  112,
      111,  110,   85,  109,  108,  107,  106,  105,  104,  103,
       70,  102,  101,  100,   99,   98,   97,   96,   95,   94,
       53,   89,   88,   87,   80,   77,   74,   73,   69,   61,
       58,   56,   55,   54,   53,   52,   51,   50,   49,   46,
       45,  152,    3,  152,  152,  152,  152,  152,  152,  152,
      152,  152,  152,  152,  152,  152,  152,  152,  152,  152,
      152,  152,  152,  152,  152,  152,  152,  152,  152,  152,
      152,  152,  152,  152,  152,  152,  152,  152,  152,  152,

      152,  152,  152,  152,  152,  152,  152,  152
    } ;

static yyconst short int yy_chk[209] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    5,    5,    6,    6,    9,
       23,   25,   28,   31,   35,   25,   35,   23,   25,    9,
       26,   33,   26,   28,   36,   26,   37,   31,   42,   59,
       33,   26,   59,   36,   44,   44,  153,   28,  149,  148,
      145,  144,  142,  141,  139,  138,  137,  136,  134,  133,
      129,  128,   37,  126,  125,  121,   42,  119,  116,  115,

      114,  112,  111,  110,  109,  108,  106,  104,  103,  101,
      100,   99,   98,   97,   96,   95,   94,   93,   89,   88,
       87,   86,   85,   84,   83,   82,   81,   79,   77,   74,
       70,   69,   68,   66,   65,   64,   63,   62,   61,   60,
       53,   40,   39,   38,   34,   32,   30,   29,   27,   24,
       22,   20,   19,   18,   16,   15,   14,   13,   12,    8,
        7,    3,  152,  152,  152,  152,  152,  152,  152,  152,
      152,  152,  152,  152,  152,  152,  152,  152,  152,  152,
      152,  152,  152,  152,  152,  152,  152,  152,  152,  152,
      152,  152,  152,  152,  152,  152,  152,  152,  152,  152,

      152,  152,  152,  152,  152,  152,  152,  152
    } ;

static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;

/* The intent behind this definition is that it'll catch
 * any uses of REJECT which flex missed.
 */
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "dvdvml.l"
#define INITIAL 0
#line 2 "dvdvml.l"

/*
 * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 */

#include "dvdvm.h"
#include "dvdvmy.h"

static const char RCSID[]="$Id: //depot/dvdauthor/src/dvdvml.l#2 $";

#define YY_NEVER_INTERACTIVE 1
#define YY_NO_UNPUT 1
#line 508 "dvdvml.c"

/* Macros after this point can all be overridden by user definitions in
 * section 1.
 */

#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif

#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif

#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif

#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif

#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
#endif

#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif

#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif

#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#if __STDC__
#ifndef __cplusplus
#include 
#endif
#else
/* Just try to get by without declaring the routines.  This will fail
 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
 * or sizeof(void*) != sizeof(int).
 */
#endif
#endif

/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif

/* Copy whatever the last rule matched to the standard output. */

#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
 * we now use fwrite().
 */
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif

/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
 * is returned in "result".
 */
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
	if ( yy_current_buffer->yy_is_interactive ) \
		{ \
		int c = '*', n; \
		for ( n = 0; n < max_size && \
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
			buf[n] = (char) c; \
		if ( c == '\n' ) \
			buf[n++] = (char) c; \
		if ( c == EOF && ferror( yyin ) ) \
			YY_FATAL_ERROR( "input in flex scanner failed" ); \
		result = n; \
		} \
	else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
		  && ferror( yyin ) ) \
		YY_FATAL_ERROR( "input in flex scanner failed" );
#endif

/* No semi-colon after return; correct usage is to write "yyterminate();" -
 * we don't want an extra ';' after the "return" because that will cause
 * some compilers to complain about unreachable statements.
 */
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif

/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif

/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif

/* Default declaration of generated scanner - a define so the user can
 * easily add parameters.
 */
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif

/* Code executed at the beginning of each rule, after yytext and yyleng
 * have been set up.
 */
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif

/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif

#define YY_RULE_SETUP \
	YY_USER_ACTION

YY_DECL
	{
	register yy_state_type yy_current_state;
	register char *yy_cp = NULL, *yy_bp = NULL;
	register int yy_act;

#line 40 "dvdvml.l"


#line 662 "dvdvml.c"

	if ( yy_init )
		{
		yy_init = 0;

#ifdef YY_USER_INIT
		YY_USER_INIT;
#endif

		if ( ! yy_start )
			yy_start = 1;	/* first start state */

		if ( ! yyin )
			yyin = stdin;

		if ( ! yyout )
			yyout = stdout;

		if ( ! yy_current_buffer )
			yy_current_buffer =
				yy_create_buffer( yyin, YY_BUF_SIZE );

		yy_load_buffer_state();
		}

	while ( 1 )		/* loops until end-of-file is reached */
		{
		yy_cp = yy_c_buf_p;

		/* Support of yytext. */
		*yy_cp = yy_hold_char;

		/* yy_bp points to the position in yy_ch_buf of the start of
		 * the current run.
		 */
		yy_bp = yy_cp;

		yy_current_state = yy_start;
yy_match:
		do
			{
			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
			if ( yy_accept[yy_current_state] )
				{
				yy_last_accepting_state = yy_current_state;
				yy_last_accepting_cpos = yy_cp;
				}
			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
				{
				yy_current_state = (int) yy_def[yy_current_state];
				if ( yy_current_state >= 153 )
					yy_c = yy_meta[(unsigned int) yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
			++yy_cp;
			}
		while ( yy_current_state != 152 );
		yy_cp = yy_last_accepting_cpos;
		yy_current_state = yy_last_accepting_state;

yy_find_action:
		yy_act = yy_accept[yy_current_state];

		YY_DO_BEFORE_ACTION;


do_action:	/* This label is used only to access EOF actions. */


		switch ( yy_act )
	{ /* beginning of action switch */
			case 0: /* must back up */
			/* undo the effects of YY_DO_BEFORE_ACTION */
			*yy_cp = yy_hold_char;
			yy_cp = yy_last_accepting_cpos;
			yy_current_state = yy_last_accepting_state;
			goto yy_find_action;

case 1:
YY_RULE_SETUP
#line 42 "dvdvml.l"
{ return _AND_TOK; }
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 43 "dvdvml.l"
{ return ANGLE_TOK; }
	YY_BREAK
case 3:
YY_RULE_SETUP
#line 44 "dvdvml.l"
{ return AUDIO_TOK; }
	YY_BREAK
case 4:
YY_RULE_SETUP
#line 45 "dvdvml.l"
{ return BUTTON_TOK; }
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 46 "dvdvml.l"
{ return CALL_TOK; }
	YY_BREAK
case 6:
YY_RULE_SETUP
#line 47 "dvdvml.l"
{ return CELL_TOK; }
	YY_BREAK
case 7:
YY_RULE_SETUP
#line 48 "dvdvml.l"
{ return CHAPTER_TOK; }
	YY_BREAK
case 8:
YY_RULE_SETUP
#line 49 "dvdvml.l"
{ return ELSE_TOK; }
	YY_BREAK
case 9:
YY_RULE_SETUP
#line 50 "dvdvml.l"
{ return ENTRY_TOK; }
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 51 "dvdvml.l"
{ return EQ_TOK; }
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 52 "dvdvml.l"
{ return EXIT_TOK; }
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 53 "dvdvml.l"
{ return FPC_TOK; }
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 54 "dvdvml.l"
{ return GE_TOK; }
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 55 "dvdvml.l"
{ return GT_TOK; }
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 56 "dvdvml.l"
{ return IF_TOK; }
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 57 "dvdvml.l"
{ return JUMP_TOK; }
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 58 "dvdvml.l"
{ return LE_TOK; }
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 59 "dvdvml.l"
{ return LT_TOK; }
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 60 "dvdvml.l"
{ return MENU_TOK; }
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 61 "dvdvml.l"
{ return NE_TOK; }
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 62 "dvdvml.l"
{ return NOT_TOK; }
	YY_BREAK
case 22:
YY_RULE_SETUP
#line 63 "dvdvml.l"
{ return _OR_TOK; }
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 64 "dvdvml.l"
{ return PROGRAM_TOK; }
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 65 "dvdvml.l"
{ return PTT_TOK; }
	YY_BREAK
case 25:
YY_RULE_SETUP
#line 66 "dvdvml.l"
{ return RESUME_TOK; }
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 67 "dvdvml.l"
{ return ROOT_TOK; }
	YY_BREAK
case 27:
YY_RULE_SETUP
#line 68 "dvdvml.l"
{ return SUBTITLE_TOK; }
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 69 "dvdvml.l"
{ return TITLE_TOK; }
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 70 "dvdvml.l"
{ return TITLESET_TOK; }
	YY_BREAK
case 30:
YY_RULE_SETUP
#line 71 "dvdvml.l"
{ return VMGM_TOK; }
	YY_BREAK
case 31:
YY_RULE_SETUP
#line 72 "dvdvml.l"
{ return XOR_TOK; }
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 75 "dvdvml.l"
;
	YY_BREAK
case 33:
YY_RULE_SETUP
#line 77 "dvdvml.l"
{ return SET_TOK; }
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 79 "dvdvml.l"
{ return ADD_TOK; }
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 80 "dvdvml.l"
{ return SUB_TOK; }
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 81 "dvdvml.l"
{ return MUL_TOK; }
	YY_BREAK
case 37:
YY_RULE_SETUP
#line 82 "dvdvml.l"
{ return DIV_TOK; }
	YY_BREAK
case 38:
YY_RULE_SETUP
#line 83 "dvdvml.l"
{ return MOD_TOK; }
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 84 "dvdvml.l"
{ return BAND_TOK; }
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 85 "dvdvml.l"
{ return BOR_TOK;  }
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 86 "dvdvml.l"
{ return XOR_TOK; }
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 88 "dvdvml.l"
{ return ADDSET_TOK; }
	YY_BREAK
case 43:
YY_RULE_SETUP
#line 89 "dvdvml.l"
{ return SUBSET_TOK; }
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 90 "dvdvml.l"
{ return MULSET_TOK; }
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 91 "dvdvml.l"
{ return DIVSET_TOK; }
	YY_BREAK
case 46:
YY_RULE_SETUP
#line 92 "dvdvml.l"
{ return MODSET_TOK; }
	YY_BREAK
case 47:
YY_RULE_SETUP
#line 93 "dvdvml.l"
{ return ANDSET_TOK; }
	YY_BREAK
case 48:
YY_RULE_SETUP
#line 94 "dvdvml.l"
{ return ORSET_TOK;  }
	YY_BREAK
case 49:
YY_RULE_SETUP
#line 95 "dvdvml.l"
{ return XORSET_TOK; }
	YY_BREAK
case 50:
YY_RULE_SETUP
#line 97 "dvdvml.l"
{ return EQ_TOK; }
	YY_BREAK
case 51:
YY_RULE_SETUP
#line 98 "dvdvml.l"
{ return NE_TOK; }
	YY_BREAK
case 52:
YY_RULE_SETUP
#line 99 "dvdvml.l"
{ return GE_TOK; }
	YY_BREAK
case 53:
YY_RULE_SETUP
#line 100 "dvdvml.l"
{ return GT_TOK; }
	YY_BREAK
case 54:
YY_RULE_SETUP
#line 101 "dvdvml.l"
{ return LE_TOK; }
	YY_BREAK
case 55:
YY_RULE_SETUP
#line 102 "dvdvml.l"
{ return LT_TOK; }
	YY_BREAK
case 56:
YY_RULE_SETUP
#line 104 "dvdvml.l"
{ return LAND_TOK; }
	YY_BREAK
case 57:
YY_RULE_SETUP
#line 105 "dvdvml.l"
{ return LOR_TOK; }
	YY_BREAK
case 58:
YY_RULE_SETUP
#line 106 "dvdvml.l"
{ return NOT_TOK; }
	YY_BREAK
case 59:
YY_RULE_SETUP
#line 108 "dvdvml.l"
{ return SEMICOLON_TOK; }
	YY_BREAK
case 60:
YY_RULE_SETUP
#line 109 "dvdvml.l"
{ return OPENBRACE_TOK; }
	YY_BREAK
case 61:
YY_RULE_SETUP
#line 110 "dvdvml.l"
{ return CLOSEBRACE_TOK; }
	YY_BREAK
case 62:
YY_RULE_SETUP
#line 111 "dvdvml.l"
{ return OPENPAREN_TOK; }
	YY_BREAK
case 63:
YY_RULE_SETUP
#line 112 "dvdvml.l"
{ return CLOSEPAREN_TOK; }
	YY_BREAK
case 64:
YY_RULE_SETUP
#line 114 "dvdvml.l"
{ sscanf((char *)yytext,"%d",&dvdvmlval.int_val);
                  return NUM_TOK; }
	YY_BREAK
case 65:
YY_RULE_SETUP
#line 117 "dvdvml.l"
{ sscanf((char *)yytext+1,"%d",&dvdvmlval.int_val);
		  if( dvdvmlval.int_val<0 || dvdvmlval.int_val>=13 ) {
			fprintf(stderr,"ERR:  Can only access g0-g12 (%s)\n",yytext);
			return ERROR_TOK;
		  }
		  return G_TOK; }
	YY_BREAK
case 66:
YY_RULE_SETUP
#line 124 "dvdvml.l"
{ sscanf((char *)yytext+1,"%d",&dvdvmlval.int_val);
		  if( dvdvmlval.int_val<0 || dvdvmlval.int_val>23 ) {
			fprintf(stderr,"ERR:  Can only access s0-s23 (%s)\n",yytext);
			return ERROR_TOK;
		  }		
		  return S_TOK; }
	YY_BREAK
case 67:
YY_RULE_SETUP
#line 131 "dvdvml.l"
{ dvdvmlval.str_val = strdup((char *)yytext);
                  return ID_TOK; }
	YY_BREAK
case 68:
YY_RULE_SETUP
#line 135 "dvdvml.l"
{ return ERROR_TOK; }
	YY_BREAK
case 69:
YY_RULE_SETUP
#line 137 "dvdvml.l"
YY_FATAL_ERROR( "flex scanner jammed" );
	YY_BREAK
#line 1098 "dvdvml.c"
case YY_STATE_EOF(INITIAL):
	yyterminate();

	case YY_END_OF_BUFFER:
		{
		/* Amount of text matched not including the EOB char. */
		int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;

		/* Undo the effects of YY_DO_BEFORE_ACTION. */
		*yy_cp = yy_hold_char;
		YY_RESTORE_YY_MORE_OFFSET

		if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
			{
			/* We're scanning a new file or input source.  It's
			 * possible that this happened because the user
			 * just pointed yyin at a new source and called
			 * yylex().  If so, then we have to assure
			 * consistency between yy_current_buffer and our
			 * globals.  Here is the right place to do so, because
			 * this is the first action (other than possibly a
			 * back-up) that will match for the new input source.
			 */
			yy_n_chars = yy_current_buffer->yy_n_chars;
			yy_current_buffer->yy_input_file = yyin;
			yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
			}

		/* Note that here we test for yy_c_buf_p "<=" to the position
		 * of the first EOB in the buffer, since yy_c_buf_p will
		 * already have been incremented past the NUL character
		 * (since all states make transitions on EOB to the
		 * end-of-buffer state).  Contrast this with the test
		 * in input().
		 */
		if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			{ /* This was really a NUL. */
			yy_state_type yy_next_state;

			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state();

			/* Okay, we're now positioned to make the NUL
			 * transition.  We couldn't have
			 * yy_get_previous_state() go ahead and do it
			 * for us because it doesn't know how to deal
			 * with the possibility of jamming (and we don't
			 * want to build jamming into it because then it
			 * will run more slowly).
			 */

			yy_next_state = yy_try_NUL_trans( yy_current_state );

			yy_bp = yytext_ptr + YY_MORE_ADJ;

			if ( yy_next_state )
				{
				/* Consume the NUL. */
				yy_cp = ++yy_c_buf_p;
				yy_current_state = yy_next_state;
				goto yy_match;
				}

			else
				{
				yy_cp = yy_last_accepting_cpos;
				yy_current_state = yy_last_accepting_state;
				goto yy_find_action;
				}
			}

		else switch ( yy_get_next_buffer() )
			{
			case EOB_ACT_END_OF_FILE:
				{
				yy_did_buffer_switch_on_eof = 0;

				if ( yywrap() )
					{
					/* Note: because we've taken care in
					 * yy_get_next_buffer() to have set up
					 * yytext, we can now set up
					 * yy_c_buf_p so that if some total
					 * hoser (like flex itself) wants to
					 * call the scanner after we return the
					 * YY_NULL, it'll still work - another
					 * YY_NULL will get returned.
					 */
					yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

				else
					{
					if ( ! yy_did_buffer_switch_on_eof )
						YY_NEW_FILE;
					}
				break;
				}

			case EOB_ACT_CONTINUE_SCAN:
				yy_c_buf_p =
					yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_match;

			case EOB_ACT_LAST_MATCH:
				yy_c_buf_p =
				&yy_current_buffer->yy_ch_buf[yy_n_chars];

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_find_action;
			}
		break;
		}

	default:
		YY_FATAL_ERROR(
			"fatal flex scanner internal error--no action found" );
	} /* end of action switch */
		} /* end of scanning one token */
	} /* end of yylex */


/* yy_get_next_buffer - try to read in a new buffer
 *
 * Returns a code representing an action:
 *	EOB_ACT_LAST_MATCH -
 *	EOB_ACT_CONTINUE_SCAN - continue scanning from current position
 *	EOB_ACT_END_OF_FILE - end of file
 */

static int yy_get_next_buffer()
	{
	register char *dest = yy_current_buffer->yy_ch_buf;
	register char *source = yytext_ptr;
	register int number_to_move, i;
	int ret_val;

	if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
		YY_FATAL_ERROR(
		"fatal flex scanner internal error--end of buffer missed" );

	if ( yy_current_buffer->yy_fill_buffer == 0 )
		{ /* Don't try to fill the buffer, so this is an EOF. */
		if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
			{
			/* We matched a single character, the EOB, so
			 * treat this as a final EOF.
			 */
			return EOB_ACT_END_OF_FILE;
			}

		else
			{
			/* We matched some text prior to the EOB, first
			 * process it.
			 */
			return EOB_ACT_LAST_MATCH;
			}
		}

	/* Try to read more data. */

	/* First move last chars to start of buffer. */
	number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;

	for ( i = 0; i < number_to_move; ++i )
		*(dest++) = *(source++);

	if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
		/* don't do the read, it's not guaranteed to return an EOF,
		 * just force an EOF
		 */
		yy_current_buffer->yy_n_chars = yy_n_chars = 0;

	else
		{
		int num_to_read =
			yy_current_buffer->yy_buf_size - number_to_move - 1;

		while ( num_to_read <= 0 )
			{ /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
			YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else

			/* just a shorter name for the current buffer */
			YY_BUFFER_STATE b = yy_current_buffer;

			int yy_c_buf_p_offset =
				(int) (yy_c_buf_p - b->yy_ch_buf);

			if ( b->yy_is_our_buffer )
				{
				int new_size = b->yy_buf_size * 2;

				if ( new_size <= 0 )
					b->yy_buf_size += b->yy_buf_size / 8;
				else
					b->yy_buf_size *= 2;

				b->yy_ch_buf = (char *)
					/* Include room in for 2 EOB chars. */
					yy_flex_realloc( (void *) b->yy_ch_buf,
							 b->yy_buf_size + 2 );
				}
			else
				/* Can't grow it, we don't own it. */
				b->yy_ch_buf = 0;

			if ( ! b->yy_ch_buf )
				YY_FATAL_ERROR(
				"fatal error - scanner input buffer overflow" );

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

			num_to_read = yy_current_buffer->yy_buf_size -
						number_to_move - 1;
#endif
			}

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

		/* Read in more data. */
		YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
			yy_n_chars, num_to_read );

		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

	if ( yy_n_chars == 0 )
		{
		if ( number_to_move == YY_MORE_ADJ )
			{
			ret_val = EOB_ACT_END_OF_FILE;
			yyrestart( yyin );
			}

		else
			{
			ret_val = EOB_ACT_LAST_MATCH;
			yy_current_buffer->yy_buffer_status =
				YY_BUFFER_EOF_PENDING;
			}
		}

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

	yy_n_chars += number_to_move;
	yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
	yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;

	yytext_ptr = &yy_current_buffer->yy_ch_buf[0];

	return ret_val;
	}


/* yy_get_previous_state - get the state just before the EOB char was reached */

static yy_state_type yy_get_previous_state()
	{
	register yy_state_type yy_current_state;
	register char *yy_cp;

	yy_current_state = yy_start;

	for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
		{
		register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
		if ( yy_accept[yy_current_state] )
			{
			yy_last_accepting_state = yy_current_state;
			yy_last_accepting_cpos = yy_cp;
			}
		while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
			{
			yy_current_state = (int) yy_def[yy_current_state];
			if ( yy_current_state >= 153 )
				yy_c = yy_meta[(unsigned int) yy_c];
			}
		yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
		}

	return yy_current_state;
	}


/* yy_try_NUL_trans - try to make a transition on the NUL character
 *
 * synopsis
 *	next_state = yy_try_NUL_trans( current_state );
 */

#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
	{
	register int yy_is_jam;
	register char *yy_cp = yy_c_buf_p;

	register YY_CHAR yy_c = 1;
	if ( yy_accept[yy_current_state] )
		{
		yy_last_accepting_state = yy_current_state;
		yy_last_accepting_cpos = yy_cp;
		}
	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
		{
		yy_current_state = (int) yy_def[yy_current_state];
		if ( yy_current_state >= 153 )
			yy_c = yy_meta[(unsigned int) yy_c];
		}
	yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
	yy_is_jam = (yy_current_state == 152);

	return yy_is_jam ? 0 : yy_current_state;
	}


#ifndef YY_NO_UNPUT
#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
	{
	register char *yy_cp = yy_c_buf_p;

	/* undo effects of setting up yytext */
	*yy_cp = yy_hold_char;

	if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
		{ /* need to shift things up to make room */
		/* +2 for EOB chars. */
		register int number_to_move = yy_n_chars + 2;
		register char *dest = &yy_current_buffer->yy_ch_buf[
					yy_current_buffer->yy_buf_size + 2];
		register char *source =
				&yy_current_buffer->yy_ch_buf[number_to_move];

		while ( source > yy_current_buffer->yy_ch_buf )
			*--dest = *--source;

		yy_cp += (int) (dest - source);
		yy_bp += (int) (dest - source);
		yy_current_buffer->yy_n_chars =
			yy_n_chars = yy_current_buffer->yy_buf_size;

		if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
			YY_FATAL_ERROR( "flex scanner push-back overflow" );
		}

	*--yy_cp = (char) c;


	yytext_ptr = yy_bp;
	yy_hold_char = *yy_cp;
	yy_c_buf_p = yy_cp;
	}
#endif	/* ifndef YY_NO_UNPUT */


#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
	{
	int c;

	*yy_c_buf_p = yy_hold_char;

	if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
		{
		/* yy_c_buf_p now points to the character we want to return.
		 * If this occurs *before* the EOB characters, then it's a
		 * valid NUL; if not, then we've hit the end of the buffer.
		 */
		if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			/* This was really a NUL. */
			*yy_c_buf_p = '\0';

		else
			{ /* need more input */
			int offset = yy_c_buf_p - yytext_ptr;
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
				{
				case EOB_ACT_LAST_MATCH:
					/* This happens because yy_g_n_b()
					 * sees that we've accumulated a
					 * token and flags that we need to
					 * try matching the token before
					 * proceeding.  But for input(),
					 * there's no matching to consider.
					 * So convert the EOB_ACT_LAST_MATCH
					 * to EOB_ACT_END_OF_FILE.
					 */

					/* Reset buffer status. */
					yyrestart( yyin );

					/* fall through */

				case EOB_ACT_END_OF_FILE:
					{
					if ( yywrap() )
						return EOF;

					if ( ! yy_did_buffer_switch_on_eof )
						YY_NEW_FILE;
#ifdef __cplusplus
					return yyinput();
#else
					return input();
#endif
					}

				case EOB_ACT_CONTINUE_SCAN:
					yy_c_buf_p = yytext_ptr + offset;
					break;
				}
			}
		}

	c = *(unsigned char *) yy_c_buf_p;	/* cast for 8-bit char's */
	*yy_c_buf_p = '\0';	/* preserve yytext */
	yy_hold_char = *++yy_c_buf_p;


	return c;
	}


#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
	{
	if ( ! yy_current_buffer )
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );

	yy_init_buffer( yy_current_buffer, input_file );
	yy_load_buffer_state();
	}


#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
	{
	if ( yy_current_buffer == new_buffer )
		return;

	if ( yy_current_buffer )
		{
		/* Flush out information for old buffer. */
		*yy_c_buf_p = yy_hold_char;
		yy_current_buffer->yy_buf_pos = yy_c_buf_p;
		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

	yy_current_buffer = new_buffer;
	yy_load_buffer_state();

	/* We don't actually know whether we did this switch during
	 * EOF (yywrap()) processing, but the only time this flag
	 * is looked at is after yywrap() is called, so it's safe
	 * to go ahead and always set it.
	 */
	yy_did_buffer_switch_on_eof = 1;
	}


#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
	{
	yy_n_chars = yy_current_buffer->yy_n_chars;
	yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
	yyin = yy_current_buffer->yy_input_file;
	yy_hold_char = *yy_c_buf_p;
	}


#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
	{
	YY_BUFFER_STATE b;

	b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

	b->yy_buf_size = size;

	/* yy_ch_buf has to be 2 characters longer than the size given because
	 * we need to put in 2 end-of-buffer characters.
	 */
	b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
	if ( ! b->yy_ch_buf )
		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

	b->yy_is_our_buffer = 1;

	yy_init_buffer( b, file );

	return b;
	}


#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
	{
	if ( ! b )
		return;

	if ( b == yy_current_buffer )
		yy_current_buffer = (YY_BUFFER_STATE) 0;

	if ( b->yy_is_our_buffer )
		yy_flex_free( (void *) b->yy_ch_buf );

	yy_flex_free( (void *) b );
	}



#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif


	{
	yy_flush_buffer( b );

	b->yy_input_file = file;
	b->yy_fill_buffer = 1;

#if YY_ALWAYS_INTERACTIVE
	b->yy_is_interactive = 1;
#else
#if YY_NEVER_INTERACTIVE
	b->yy_is_interactive = 0;
#else
	b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
#endif
	}


#ifdef YY_USE_PROTOS
void yy_flush_buffer( YY_BUFFER_STATE b )
#else
void yy_flush_buffer( b )
YY_BUFFER_STATE b;
#endif

	{
	if ( ! b )
		return;

	b->yy_n_chars = 0;

	/* We always need two end-of-buffer characters.  The first causes
	 * a transition to the end-of-buffer state.  The second causes
	 * a jam in that state.
	 */
	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;

	b->yy_buf_pos = &b->yy_ch_buf[0];

	b->yy_at_bol = 1;
	b->yy_buffer_status = YY_BUFFER_NEW;

	if ( b == yy_current_buffer )
		yy_load_buffer_state();
	}


#ifndef YY_NO_SCAN_BUFFER
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
#else
YY_BUFFER_STATE yy_scan_buffer( base, size )
char *base;
yy_size_t size;
#endif
	{
	YY_BUFFER_STATE b;

	if ( size < 2 ||
	     base[size-2] != YY_END_OF_BUFFER_CHAR ||
	     base[size-1] != YY_END_OF_BUFFER_CHAR )
		/* They forgot to leave room for the EOB's. */
		return 0;

	b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );

	b->yy_buf_size = size - 2;	/* "- 2" to take care of EOB's */
	b->yy_buf_pos = b->yy_ch_buf = base;
	b->yy_is_our_buffer = 0;
	b->yy_input_file = 0;
	b->yy_n_chars = b->yy_buf_size;
	b->yy_is_interactive = 0;
	b->yy_at_bol = 1;
	b->yy_fill_buffer = 0;
	b->yy_buffer_status = YY_BUFFER_NEW;

	yy_switch_to_buffer( b );

	return b;
	}
#endif


#ifndef YY_NO_SCAN_STRING
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
#else
YY_BUFFER_STATE yy_scan_string( yy_str )
yyconst char *yy_str;
#endif
	{
	int len;
	for ( len = 0; yy_str[len]; ++len )
		;

	return yy_scan_bytes( yy_str, len );
	}
#endif


#ifndef YY_NO_SCAN_BYTES
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
#else
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
yyconst char *bytes;
int len;
#endif
	{
	YY_BUFFER_STATE b;
	char *buf;
	yy_size_t n;
	int i;

	/* Get memory for full buffer, including space for trailing EOB's. */
	n = len + 2;
	buf = (char *) yy_flex_alloc( n );
	if ( ! buf )
		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );

	for ( i = 0; i < len; ++i )
		buf[i] = bytes[i];

	buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;

	b = yy_scan_buffer( buf, n );
	if ( ! b )
		YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );

	/* It's okay to grow etc. this buffer, and we should throw it
	 * away when we're done.
	 */
	b->yy_is_our_buffer = 1;

	return b;
	}
#endif


#ifndef YY_NO_PUSH_STATE
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
	{
	if ( yy_start_stack_ptr >= yy_start_stack_depth )
		{
		yy_size_t new_size;

		yy_start_stack_depth += YY_START_STACK_INCR;
		new_size = yy_start_stack_depth * sizeof( int );

		if ( ! yy_start_stack )
			yy_start_stack = (int *) yy_flex_alloc( new_size );

		else
			yy_start_stack = (int *) yy_flex_realloc(
					(void *) yy_start_stack, new_size );

		if ( ! yy_start_stack )
			YY_FATAL_ERROR(
			"out of memory expanding start-condition stack" );
		}

	yy_start_stack[yy_start_stack_ptr++] = YY_START;

	BEGIN(new_state);
	}
#endif


#ifndef YY_NO_POP_STATE
static void yy_pop_state()
	{
	if ( --yy_start_stack_ptr < 0 )
		YY_FATAL_ERROR( "start-condition stack underflow" );

	BEGIN(yy_start_stack[yy_start_stack_ptr]);
	}
#endif


#ifndef YY_NO_TOP_STATE
static int yy_top_state()
	{
	return yy_start_stack[yy_start_stack_ptr - 1];
	}
#endif

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

#ifdef YY_USE_PROTOS
static void yy_fatal_error( yyconst char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
	{
	(void) fprintf( stderr, "%s\n", msg );
	Exit( YY_EXIT_FAILURE );
	}



/* Redefine yyless() so it works in section 3 code. */

#undef yyless
#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
		yytext[yyleng] = yy_hold_char; \
		yy_c_buf_p = yytext + n; \
		yy_hold_char = *yy_c_buf_p; \
		*yy_c_buf_p = '\0'; \
		yyleng = n; \
		} \
	while ( 0 )


/* Internal utility routines. */

#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
yyconst char *s2;
int n;
#endif
	{
	register int i;
	for ( i = 0; i < n; ++i )
		s1[i] = s2[i];
	}
#endif

#ifdef YY_NEED_STRLEN
#ifdef YY_USE_PROTOS
static int yy_flex_strlen( yyconst char *s )
#else
static int yy_flex_strlen( s )
yyconst char *s;
#endif
	{
	register int n;
	for ( n = 0; s[n]; ++n )
		;

	return n;
	}
#endif


#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
	{
	return (void *) malloc( size );
	}

#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
	{
	/* The cast to (char *) in the following accommodates both
	 * implementations that use char* generic pointers, and those
	 * that use void* generic pointers.  It works with the latter
	 * because both ANSI C and C++ allow castless assignment from
	 * any pointer type to void*, and deal with argument conversions
	 * as though doing an assignment.
	 */
	return (void *) realloc( (char *) ptr, size );
	}

#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
	{
	free( ptr );
	}

#if YY_MAIN
int main()
	{
	yylex();
	return 0;
	}
#endif
#line 137 "dvdvml.l"

dvd95/dvdauthor/dvdvmy.c000066400000000000000000001577721140003301000154670ustar00rootroot00000000000000/* A Bison parser, made by GNU Bison 1.875d.  */

/* Skeleton parser for Yacc-like parsing with Bison,
   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */

/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */

/* Written by Richard Stallman by simplifying the original so called
   ``semantic'' parser.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Identify Bison output.  */
#define YYBISON 1

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 0

/* Using locations.  */
#define YYLSP_NEEDED 0

/* If NAME_PREFIX is specified substitute the variables and functions
   names.  */
#define yyparse dvdvmparse
#define yylex   dvdvmlex
#define yyerror dvdvmerror
#define yylval  dvdvmlval
#define yychar  dvdvmchar
#define yydebug dvdvmdebug
#define yynerrs dvdvmnerrs


/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     NUM_TOK = 258,
     G_TOK = 259,
     S_TOK = 260,
     ID_TOK = 261,
     ANGLE_TOK = 262,
     AUDIO_TOK = 263,
     BUTTON_TOK = 264,
     CALL_TOK = 265,
     CELL_TOK = 266,
     CHAPTER_TOK = 267,
     CLOSEBRACE_TOK = 268,
     CLOSEPAREN_TOK = 269,
     ELSE_TOK = 270,
     ENTRY_TOK = 271,
     EXIT_TOK = 272,
     FPC_TOK = 273,
     IF_TOK = 274,
     JUMP_TOK = 275,
     MENU_TOK = 276,
     OPENBRACE_TOK = 277,
     OPENPAREN_TOK = 278,
     PROGRAM_TOK = 279,
     PTT_TOK = 280,
     RESUME_TOK = 281,
     ROOT_TOK = 282,
     SET_TOK = 283,
     SUBTITLE_TOK = 284,
     TITLE_TOK = 285,
     TITLESET_TOK = 286,
     VMGM_TOK = 287,
     BOR_TOK = 288,
     LOR_TOK = 289,
     XOR_TOK = 290,
     _OR_TOK = 291,
     BAND_TOK = 292,
     LAND_TOK = 293,
     _AND_TOK = 294,
     NOT_TOK = 295,
     NE_TOK = 296,
     EQ_TOK = 297,
     LT_TOK = 298,
     LE_TOK = 299,
     GT_TOK = 300,
     GE_TOK = 301,
     SUB_TOK = 302,
     ADD_TOK = 303,
     MOD_TOK = 304,
     DIV_TOK = 305,
     MUL_TOK = 306,
     ADDSET_TOK = 307,
     SUBSET_TOK = 308,
     MULSET_TOK = 309,
     DIVSET_TOK = 310,
     MODSET_TOK = 311,
     ANDSET_TOK = 312,
     ORSET_TOK = 313,
     XORSET_TOK = 314,
     SEMICOLON_TOK = 315,
     ERROR_TOK = 316
   };
#endif
#define NUM_TOK 258
#define G_TOK 259
#define S_TOK 260
#define ID_TOK 261
#define ANGLE_TOK 262
#define AUDIO_TOK 263
#define BUTTON_TOK 264
#define CALL_TOK 265
#define CELL_TOK 266
#define CHAPTER_TOK 267
#define CLOSEBRACE_TOK 268
#define CLOSEPAREN_TOK 269
#define ELSE_TOK 270
#define ENTRY_TOK 271
#define EXIT_TOK 272
#define FPC_TOK 273
#define IF_TOK 274
#define JUMP_TOK 275
#define MENU_TOK 276
#define OPENBRACE_TOK 277
#define OPENPAREN_TOK 278
#define PROGRAM_TOK 279
#define PTT_TOK 280
#define RESUME_TOK 281
#define ROOT_TOK 282
#define SET_TOK 283
#define SUBTITLE_TOK 284
#define TITLE_TOK 285
#define TITLESET_TOK 286
#define VMGM_TOK 287
#define BOR_TOK 288
#define LOR_TOK 289
#define XOR_TOK 290
#define _OR_TOK 291
#define BAND_TOK 292
#define LAND_TOK 293
#define _AND_TOK 294
#define NOT_TOK 295
#define NE_TOK 296
#define EQ_TOK 297
#define LT_TOK 298
#define LE_TOK 299
#define GT_TOK 300
#define GE_TOK 301
#define SUB_TOK 302
#define ADD_TOK 303
#define MOD_TOK 304
#define DIV_TOK 305
#define MUL_TOK 306
#define ADDSET_TOK 307
#define SUBSET_TOK 308
#define MULSET_TOK 309
#define DIVSET_TOK 310
#define MODSET_TOK 311
#define ANDSET_TOK 312
#define ORSET_TOK 313
#define XORSET_TOK 314
#define SEMICOLON_TOK 315
#define ERROR_TOK 316




/* Copy the first part of user declarations.  */
#line 1 "dvdvmy.y"


/*
 * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 */

#include "dvdvm.h"

static const char RCSID[]="$Id: //depot/dvdauthor/src/dvdvmy.y#2 $";

#define YYERROR_VERBOSE



/* Enabling traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif

/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif

#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
#line 79 "dvdvmy.y"
typedef union YYSTYPE {
    int int_val;
    char *str_val;
    struct vm_statement *statement;
} YYSTYPE;
/* Line 191 of yacc.c.  */
#line 242 "dvdvmy.c"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif



/* Copy the second part of user declarations.  */


/* Line 214 of yacc.c.  */
#line 254 "dvdvmy.c"

#if ! defined (yyoverflow) || YYERROR_VERBOSE

# ifndef YYFREE
#  define YYFREE free
# endif
# ifndef YYMALLOC
#  define YYMALLOC malloc
# endif

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   define YYSTACK_ALLOC alloca
#  endif
# else
#  if defined (alloca) || defined (_ALLOCA_H)
#   define YYSTACK_ALLOC alloca
#  else
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning. */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# else
#  if defined (__STDC__) || defined (__cplusplus)
#   include  /* INFRINGES ON USER NAME SPACE */
#   define YYSIZE_T size_t
#  endif
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
# endif
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */


#if (! defined (yyoverflow) \
     && (! defined (__cplusplus) \
	 || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  short int yyss;
  YYSTYPE yyvs;
  };

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (sizeof (short int) + sizeof (YYSTYPE))			\
      + YYSTACK_GAP_MAXIMUM)

/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined (__GNUC__) && 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)		\
      do					\
	{					\
	  register YYSIZE_T yyi;		\
	  for (yyi = 0; yyi < (Count); yyi++)	\
	    (To)[yyi] = (From)[yyi];		\
	}					\
      while (0)
#  endif
# endif

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack)					\
    do									\
      {									\
	YYSIZE_T yynewbytes;						\
	YYCOPY (&yyptr->Stack, Stack, yysize);				\
	Stack = &yyptr->Stack;						\
	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
	yyptr += yynewbytes / sizeof (*yyptr);				\
      }									\
    while (0)

#endif

#if defined (__STDC__) || defined (__cplusplus)
   typedef signed char yysigned_char;
#else
   typedef short int yysigned_char;
#endif

/* YYFINAL -- State number of the termination state. */
#define YYFINAL  32
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   361

/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS  62
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS  17
/* YYNRULES -- Number of rules. */
#define YYNRULES  77
/* YYNRULES -- Number of states. */
#define YYNSTATES  148

/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
#define YYUNDEFTOK  2
#define YYMAXUTOK   316

#define YYTRANSLATE(YYX) 						\
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const unsigned char yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    56,    57,    58,    59,    60,    61
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const unsigned short int yyprhs[] =
{
       0,     0,     3,     5,     7,    10,    12,    14,    17,    20,
      22,    26,    28,    31,    33,    34,    37,    39,    43,    47,
      51,    55,    59,    63,    65,    68,    69,    72,    73,    79,
      84,    89,    92,    93,   100,   102,   104,   106,   108,   110,
     112,   114,   116,   120,   122,   126,   130,   134,   138,   142,
     146,   150,   154,   158,   162,   166,   170,   174,   178,   182,
     186,   190,   194,   198,   202,   206,   209,   214,   219,   224,
     229,   234,   239,   244,   249,   254,   260,   262
};

/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yysigned_char yyrhs[] =
{
      63,     0,    -1,    64,    -1,    65,    -1,    65,    64,    -1,
      69,    -1,    71,    -1,    17,    60,    -1,    26,    60,    -1,
      76,    -1,    22,    64,    13,    -1,    78,    -1,    31,     3,
      -1,    32,    -1,    -1,    21,     3,    -1,    21,    -1,    21,
      16,    30,    -1,    21,    16,    27,    -1,    21,    16,    29,
      -1,    21,    16,     8,    -1,    21,    16,     7,    -1,    21,
      16,    25,    -1,    18,    -1,    30,     3,    -1,    -1,    12,
       3,    -1,    -1,    20,    66,    67,    68,    60,    -1,    20,
      11,     3,    60,    -1,    20,    24,     3,    60,    -1,    26,
       3,    -1,    -1,    10,    66,    67,    68,    70,    60,    -1,
       4,    -1,     5,    -1,     8,    -1,    29,    -1,     7,    -1,
       9,    -1,    72,    -1,     3,    -1,    23,    74,    14,    -1,
      73,    -1,    74,    48,    74,    -1,    74,    47,    74,    -1,
      74,    51,    74,    -1,    74,    50,    74,    -1,    74,    49,
      74,    -1,    74,    37,    74,    -1,    74,    33,    74,    -1,
      74,    39,    74,    -1,    74,    36,    74,    -1,    74,    35,
      74,    -1,    23,    75,    14,    -1,    74,    42,    74,    -1,
      74,    41,    74,    -1,    74,    46,    74,    -1,    74,    45,
      74,    -1,    74,    44,    74,    -1,    74,    43,    74,    -1,
      75,    34,    75,    -1,    75,    38,    75,    -1,    75,    36,
      75,    -1,    75,    39,    75,    -1,    40,    75,    -1,    72,
      28,    74,    60,    -1,    72,    52,    74,    60,    -1,    72,
      53,    74,    60,    -1,    72,    54,    74,    60,    -1,    72,
      55,    74,    60,    -1,    72,    56,    74,    60,    -1,    72,
      57,    74,    60,    -1,    72,    58,    74,    60,    -1,    72,
      59,    74,    60,    -1,    19,    23,    75,    14,    65,    -1,
      77,    -1,    77,    15,    65,    -1
};

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const unsigned short int yyrline[] =
{
       0,    90,    90,    95,    98,   104,   107,   110,   114,   118,
     121,   124,   129,   132,   135,   140,   143,   146,   149,   152,
     155,   158,   161,   164,   167,   170,   175,   178,   183,   190,
     195,   202,   205,   210,   220,   223,   226,   229,   232,   235,
     240,   243,   248,   251,   256,   259,   262,   265,   268,   271,
     274,   277,   280,   283,   288,   291,   294,   297,   300,   303,
     306,   309,   312,   315,   318,   321,   328,   334,   337,   340,
     343,   346,   349,   352,   355,   360,   370,   373
};
#endif

#if YYDEBUG || YYERROR_VERBOSE
/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
  "$end", "error", "$undefined", "NUM_TOK", "G_TOK", "S_TOK", "ID_TOK",
  "ANGLE_TOK", "AUDIO_TOK", "BUTTON_TOK", "CALL_TOK", "CELL_TOK",
  "CHAPTER_TOK", "CLOSEBRACE_TOK", "CLOSEPAREN_TOK", "ELSE_TOK",
  "ENTRY_TOK", "EXIT_TOK", "FPC_TOK", "IF_TOK", "JUMP_TOK", "MENU_TOK",
  "OPENBRACE_TOK", "OPENPAREN_TOK", "PROGRAM_TOK", "PTT_TOK", "RESUME_TOK",
  "ROOT_TOK", "SET_TOK", "SUBTITLE_TOK", "TITLE_TOK", "TITLESET_TOK",
  "VMGM_TOK", "BOR_TOK", "LOR_TOK", "XOR_TOK", "_OR_TOK", "BAND_TOK",
  "LAND_TOK", "_AND_TOK", "NOT_TOK", "NE_TOK", "EQ_TOK", "LT_TOK",
  "LE_TOK", "GT_TOK", "GE_TOK", "SUB_TOK", "ADD_TOK", "MOD_TOK", "DIV_TOK",
  "MUL_TOK", "ADDSET_TOK", "SUBSET_TOK", "MULSET_TOK", "DIVSET_TOK",
  "MODSET_TOK", "ANDSET_TOK", "ORSET_TOK", "XORSET_TOK", "SEMICOLON_TOK",
  "ERROR_TOK", "$accept", "finalparse", "statements", "statement", "jtsl",
  "jtml", "jcl", "jumpstatement", "resumel", "callstatement", "reg",
  "regornum", "expression", "boolexpr", "setstatement", "ifstatement",
  "ifelsestatement", 0
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
static const unsigned short int yytoknum[] =
{
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
     315,   316
};
# endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const unsigned char yyr1[] =
{
       0,    62,    63,    64,    64,    65,    65,    65,    65,    65,
      65,    65,    66,    66,    66,    67,    67,    67,    67,    67,
      67,    67,    67,    67,    67,    67,    68,    68,    69,    69,
      69,    70,    70,    71,    72,    72,    72,    72,    72,    72,
      73,    73,    74,    74,    74,    74,    74,    74,    74,    74,
      74,    74,    74,    74,    75,    75,    75,    75,    75,    75,
      75,    75,    75,    75,    75,    75,    76,    76,    76,    76,
      76,    76,    76,    76,    76,    77,    78,    78
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const unsigned char yyr2[] =
{
       0,     2,     1,     1,     2,     1,     1,     2,     2,     1,
       3,     1,     2,     1,     0,     2,     1,     3,     3,     3,
       3,     3,     3,     1,     2,     0,     2,     0,     5,     4,
       4,     2,     0,     6,     1,     1,     1,     1,     1,     1,
       1,     1,     3,     1,     3,     3,     3,     3,     3,     3,
       3,     3,     3,     3,     3,     3,     3,     3,     3,     3,
       3,     3,     3,     3,     3,     2,     4,     4,     4,     4,
       4,     4,     4,     4,     4,     5,     1,     3
};

/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
   STATE-NUM when YYTABLE doesn't specify something else to do.  Zero
   means the default is an error.  */
static const unsigned char yydefact[] =
{
       0,    34,    35,    38,    36,    39,    14,     0,     0,    14,
       0,     0,    37,     0,     2,     3,     5,     6,     0,     9,
      76,    11,     0,    13,    25,     7,     0,     0,     0,    25,
       0,     8,     1,     4,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,    12,    23,    16,     0,    27,    41,
       0,     0,    40,    43,     0,     0,     0,     0,    27,    10,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
      77,    15,     0,    24,     0,    32,     0,     0,    65,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
      29,    30,     0,     0,    66,    67,    68,    69,    70,    71,
      72,    73,    74,    21,    20,    22,    18,    19,    17,    26,
       0,     0,    42,    54,    50,    53,    52,    49,    51,    56,
      55,    60,    59,    58,    57,    45,    44,    48,    47,    46,
      75,    61,    63,    62,    64,    28,    31,    33
};

/* YYDEFGOTO[NTERM-NUM]. */
static const yysigned_char yydefgoto[] =
{
      -1,    13,    14,    15,    24,    48,    75,    16,   121,    17,
      52,    53,    54,    55,    19,    20,    21
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -47
static const short int yypact[] =
{
     291,   -47,   -47,   -47,   -47,   -47,    -3,   -46,    -7,     7,
     291,   -35,   -47,    41,   -47,   291,   -47,   -47,    90,   -47,
      49,   -47,    77,   -47,     3,   -47,   112,    78,    80,     3,
      72,   -47,   -47,   -47,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   291,   -47,   -47,    10,   104,    81,   -47,
     112,   112,   -47,   -47,   286,    -2,    53,    67,    81,   -47,
     265,   118,   123,   149,   154,   180,   185,   211,   216,   242,
     -47,   -47,    15,   -47,   106,   102,    55,    48,   -47,   265,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   265,   291,   112,   112,   112,   112,
     -47,   -47,    69,    75,   -47,   -47,   -47,   -47,   -47,   -47,
     -47,   -47,   -47,   -47,   -47,   -47,   -47,   -47,   -47,   -47,
     127,    71,   -47,   -47,   310,   310,   310,    23,    23,   305,
     305,   305,   305,   305,   305,    26,    26,   -47,   -47,   -47,
     -47,    40,    40,   -47,   -47,   -47,   -47,   -47
};

/* YYPGOTO[NTERM-NUM].  */
static const yysigned_char yypgoto[] =
{
     -47,   -47,    20,   -32,   124,   103,    76,   -47,   -47,   -47,
       0,   -47,   -33,   -31,   -47,   -47,   -47
};

/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -1
static const unsigned char yytable[] =
{
      18,    61,    62,    63,    64,    65,    66,    67,    68,    69,
      18,    70,    95,    71,    25,    18,    26,    76,    27,    77,
      78,    45,   113,   114,    46,    31,    72,   103,    22,    23,
      30,    28,    96,    47,    97,    33,    98,    99,    22,    23,
     115,    32,   116,    18,   117,   118,   124,   125,   126,   127,
     128,   129,   130,   131,   132,   133,   134,   135,   136,   137,
     138,   139,   123,   140,    43,   141,   142,   143,   144,   122,
      90,    91,    92,    93,    94,    92,    93,    94,    98,    99,
      44,    56,    96,    57,    97,    59,    98,    99,    79,   122,
      80,    81,    82,    74,    83,    18,    84,    85,    86,    87,
      88,    89,    90,    91,    92,    93,    94,    73,    79,   119,
      80,    81,    82,   100,    83,    49,     1,     2,    34,     3,
       4,     5,    90,    91,    92,    93,    94,   101,   120,   145,
     146,   147,    58,    29,   102,    50,     0,     0,     0,     0,
       0,    12,    35,    36,    37,    38,    39,    40,    41,    42,
       0,    79,    51,    80,    81,    82,    79,    83,    80,    81,
      82,     0,    83,     0,     0,    90,    91,    92,    93,    94,
      90,    91,    92,    93,    94,     0,     0,     0,   104,     0,
       0,     0,    79,   105,    80,    81,    82,    79,    83,    80,
      81,    82,     0,    83,     0,     0,    90,    91,    92,    93,
      94,    90,    91,    92,    93,    94,     0,     0,     0,   106,
       0,     0,     0,    79,   107,    80,    81,    82,    79,    83,
      80,    81,    82,     0,    83,     0,     0,    90,    91,    92,
      93,    94,    90,    91,    92,    93,    94,     0,     0,     0,
     108,     0,     0,     0,    79,   109,    80,    81,    82,    79,
      83,    80,    81,    82,     0,    83,     0,     0,    90,    91,
      92,    93,    94,    90,    91,    92,    93,    94,    49,     1,
       2,   110,     3,     4,     5,    79,   111,    80,    81,    82,
       0,    83,     0,     0,     0,     0,     0,     0,    60,    90,
      91,    92,    93,    94,    12,     1,     2,     0,     3,     4,
       5,     6,   112,     0,     0,     0,     0,     0,     7,     0,
       8,     9,     0,    10,     0,     0,     0,    11,     0,    79,
      12,    80,    81,    82,     0,    83,     0,    84,    85,    86,
      87,    88,    89,    90,    91,    92,    93,    94,    79,     0,
      80,     0,    82,     0,     0,     0,     0,    82,     0,    83,
       0,     0,    90,    91,    92,    93,    94,    90,    91,    92,
      93,    94
};

static const yysigned_char yycheck[] =
{
       0,    34,    35,    36,    37,    38,    39,    40,    41,    42,
      10,    43,    14,     3,    60,    15,    23,    50,    11,    50,
      51,    18,     7,     8,    21,    60,    16,    60,    31,    32,
      10,    24,    34,    30,    36,    15,    38,    39,    31,    32,
      25,     0,    27,    43,    29,    30,    79,    80,    81,    82,
      83,    84,    85,    86,    87,    88,    89,    90,    91,    92,
      93,    94,    14,    95,    15,    96,    97,    98,    99,    14,
      47,    48,    49,    50,    51,    49,    50,    51,    38,    39,
       3,     3,    34,     3,    36,    13,    38,    39,    33,    14,
      35,    36,    37,    12,    39,    95,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,     3,    33,     3,
      35,    36,    37,    60,    39,     3,     4,     5,    28,     7,
       8,     9,    47,    48,    49,    50,    51,    60,    26,    60,
       3,    60,    29,     9,    58,    23,    -1,    -1,    -1,    -1,
      -1,    29,    52,    53,    54,    55,    56,    57,    58,    59,
      -1,    33,    40,    35,    36,    37,    33,    39,    35,    36,
      37,    -1,    39,    -1,    -1,    47,    48,    49,    50,    51,
      47,    48,    49,    50,    51,    -1,    -1,    -1,    60,    -1,
      -1,    -1,    33,    60,    35,    36,    37,    33,    39,    35,
      36,    37,    -1,    39,    -1,    -1,    47,    48,    49,    50,
      51,    47,    48,    49,    50,    51,    -1,    -1,    -1,    60,
      -1,    -1,    -1,    33,    60,    35,    36,    37,    33,    39,
      35,    36,    37,    -1,    39,    -1,    -1,    47,    48,    49,
      50,    51,    47,    48,    49,    50,    51,    -1,    -1,    -1,
      60,    -1,    -1,    -1,    33,    60,    35,    36,    37,    33,
      39,    35,    36,    37,    -1,    39,    -1,    -1,    47,    48,
      49,    50,    51,    47,    48,    49,    50,    51,     3,     4,
       5,    60,     7,     8,     9,    33,    60,    35,    36,    37,
      -1,    39,    -1,    -1,    -1,    -1,    -1,    -1,    23,    47,
      48,    49,    50,    51,    29,     4,     5,    -1,     7,     8,
       9,    10,    60,    -1,    -1,    -1,    -1,    -1,    17,    -1,
      19,    20,    -1,    22,    -1,    -1,    -1,    26,    -1,    33,
      29,    35,    36,    37,    -1,    39,    -1,    41,    42,    43,
      44,    45,    46,    47,    48,    49,    50,    51,    33,    -1,
      35,    -1,    37,    -1,    -1,    -1,    -1,    37,    -1,    39,
      -1,    -1,    47,    48,    49,    50,    51,    47,    48,    49,
      50,    51
};

/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
static const unsigned char yystos[] =
{
       0,     4,     5,     7,     8,     9,    10,    17,    19,    20,
      22,    26,    29,    63,    64,    65,    69,    71,    72,    76,
      77,    78,    31,    32,    66,    60,    23,    11,    24,    66,
      64,    60,     0,    64,    28,    52,    53,    54,    55,    56,
      57,    58,    59,    15,     3,    18,    21,    30,    67,     3,
      23,    40,    72,    73,    74,    75,     3,     3,    67,    13,
      23,    74,    74,    74,    74,    74,    74,    74,    74,    74,
      65,     3,    16,     3,    12,    68,    74,    75,    75,    33,
      35,    36,    37,    39,    41,    42,    43,    44,    45,    46,
      47,    48,    49,    50,    51,    14,    34,    36,    38,    39,
      60,    60,    68,    74,    60,    60,    60,    60,    60,    60,
      60,    60,    60,     7,     8,    25,    27,    29,    30,     3,
      26,    70,    14,    14,    74,    74,    74,    74,    74,    74,
      74,    74,    74,    74,    74,    74,    74,    74,    74,    74,
      65,    75,    75,    75,    75,    60,     3,    60
};

#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
# define YYSIZE_T __SIZE_TYPE__
#endif
#if ! defined (YYSIZE_T) && defined (size_t)
# define YYSIZE_T size_t
#endif
#if ! defined (YYSIZE_T)
# if defined (__STDC__) || defined (__cplusplus)
#  include  /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# endif
#endif
#if ! defined (YYSIZE_T)
# define YYSIZE_T unsigned int
#endif

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		(-2)
#define YYEOF		0

#define YYACCEPT	goto yyacceptlab
#define YYABORT		goto yyabortlab
#define YYERROR		goto yyerrorlab


/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */

#define YYFAIL		goto yyerrlab

#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)					\
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    {								\
      yychar = (Token);						\
      yylval = (Value);						\
      yytoken = YYTRANSLATE (yychar);				\
      YYPOPSTACK;						\
      goto yybackup;						\
    }								\
  else								\
    { 								\
      yyerror ("syntax error: cannot back up");\
      YYERROR;							\
    }								\
while (0)

#define YYTERROR	1
#define YYERRCODE	256

/* YYLLOC_DEFAULT -- Compute the default location (before the actions
   are run).  */

#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)		\
   ((Current).first_line   = (Rhs)[1].first_line,	\
    (Current).first_column = (Rhs)[1].first_column,	\
    (Current).last_line    = (Rhs)[N].last_line,	\
    (Current).last_column  = (Rhs)[N].last_column)
#endif

/* YYLEX -- calling `yylex' with the right arguments.  */

#ifdef YYLEX_PARAM
# define YYLEX yylex (YYLEX_PARAM)
#else
# define YYLEX yylex ()
#endif

/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include  /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)			\
do {						\
  if (yydebug)					\
    YYFPRINTF Args;				\
} while (0)

# define YYDSYMPRINT(Args)			\
do {						\
  if (yydebug)					\
    yysymprint Args;				\
} while (0)

# define YYDSYMPRINTF(Title, Token, Value, Location)		\
do {								\
  if (yydebug)							\
    {								\
      YYFPRINTF (stderr, "%s ", Title);				\
      yysymprint (stderr, 					\
                  Token, Value);	\
      YYFPRINTF (stderr, "\n");					\
    }								\
} while (0)

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
`------------------------------------------------------------------*/

#if defined (__STDC__) || defined (__cplusplus)
static void
yy_stack_print (short int *bottom, short int *top)
#else
static void
yy_stack_print (bottom, top)
    short int *bottom;
    short int *top;
#endif
{
  YYFPRINTF (stderr, "Stack now");
  for (/* Nothing. */; bottom <= top; ++bottom)
    YYFPRINTF (stderr, " %d", *bottom);
  YYFPRINTF (stderr, "\n");
}

# define YY_STACK_PRINT(Bottom, Top)				\
do {								\
  if (yydebug)							\
    yy_stack_print ((Bottom), (Top));				\
} while (0)


/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/

#if defined (__STDC__) || defined (__cplusplus)
static void
yy_reduce_print (int yyrule)
#else
static void
yy_reduce_print (yyrule)
    int yyrule;
#endif
{
  int yyi;
  unsigned int yylno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
             yyrule - 1, yylno);
  /* Print the symbols being reduced, and their result.  */
  for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
    YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
  YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
}

# define YY_REDUCE_PRINT(Rule)		\
do {					\
  if (yydebug)				\
    yy_reduce_print (Rule);		\
} while (0)

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YYDSYMPRINT(Args)
# define YYDSYMPRINTF(Title, Token, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */


/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef	YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).

   Do not make this value too large; the results are undefined if
   SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
# undef YYMAXDEPTH
#endif

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif



#if YYERROR_VERBOSE

# ifndef yystrlen
#  if defined (__GLIBC__) && defined (_STRING_H)
#   define yystrlen strlen
#  else
/* Return the length of YYSTR.  */
static YYSIZE_T
#   if defined (__STDC__) || defined (__cplusplus)
yystrlen (const char *yystr)
#   else
yystrlen (yystr)
     const char *yystr;
#   endif
{
  register const char *yys = yystr;

  while (*yys++ != '\0')
    continue;

  return yys - yystr - 1;
}
#  endif
# endif

# ifndef yystpcpy
#  if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
#   define yystpcpy stpcpy
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
static char *
#   if defined (__STDC__) || defined (__cplusplus)
yystpcpy (char *yydest, const char *yysrc)
#   else
yystpcpy (yydest, yysrc)
     char *yydest;
     const char *yysrc;
#   endif
{
  register char *yyd = yydest;
  register const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
}
#  endif
# endif

#endif /* !YYERROR_VERBOSE */



#if YYDEBUG
/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

#if defined (__STDC__) || defined (__cplusplus)
static void
yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
#else
static void
yysymprint (yyoutput, yytype, yyvaluep)
    FILE *yyoutput;
    int yytype;
    YYSTYPE *yyvaluep;
#endif
{
  /* Pacify ``unused variable'' warnings.  */
  (void) yyvaluep;

  if (yytype < YYNTOKENS)
    {
      YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
# ifdef YYPRINT
      YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# endif
    }
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  switch (yytype)
    {
      default:
        break;
    }
  YYFPRINTF (yyoutput, ")");
}

#endif /* ! YYDEBUG */
/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

#if defined (__STDC__) || defined (__cplusplus)
static void
yydestruct (int yytype, YYSTYPE *yyvaluep)
#else
static void
yydestruct (yytype, yyvaluep)
    int yytype;
    YYSTYPE *yyvaluep;
#endif
{
  /* Pacify ``unused variable'' warnings.  */
  (void) yyvaluep;

  switch (yytype)
    {

      default:
        break;
    }
}


/* Prevent warnings from -Wmissing-prototypes.  */

#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
int yyparse (void *YYPARSE_PARAM);
# else
int yyparse ();
# endif
#else /* ! YYPARSE_PARAM */
#if defined (__STDC__) || defined (__cplusplus)
int yyparse (void);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */



/* The lookahead symbol.  */
int yychar;

/* The semantic value of the lookahead symbol.  */
YYSTYPE yylval;

/* Number of syntax errors so far.  */
int yynerrs;



/*----------.
| yyparse.  |
`----------*/

#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
int yyparse (void *YYPARSE_PARAM)
# else
int yyparse (YYPARSE_PARAM)
  void *YYPARSE_PARAM;
# endif
#else /* ! YYPARSE_PARAM */
#if defined (__STDC__) || defined (__cplusplus)
int
yyparse (void)
#else
int
yyparse ()

#endif
#endif
{
  
  register int yystate;
  register int yyn;
  int yyresult;
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  /* Lookahead token as an internal (translated) token number.  */
  int yytoken = 0;

  /* Three stacks and their tools:
     `yyss': related to states,
     `yyvs': related to semantic values,
     `yyls': related to locations.

     Refer to the stacks thru separate pointers, to allow yyoverflow
     to reallocate them elsewhere.  */

  /* The state stack.  */
  short int yyssa[YYINITDEPTH];
  short int *yyss = yyssa;
  register short int *yyssp;

  /* The semantic value stack.  */
  YYSTYPE yyvsa[YYINITDEPTH];
  YYSTYPE *yyvs = yyvsa;
  register YYSTYPE *yyvsp;



#define YYPOPSTACK   (yyvsp--, yyssp--)

  YYSIZE_T yystacksize = YYINITDEPTH;

  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;


  /* When reducing, the number of symbols on the RHS of the reduced
     rule.  */
  int yylen;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yystate = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yychar = YYEMPTY;		/* Cause a token to be read.  */

  /* Initialize stack pointers.
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */

  yyssp = yyss;
  yyvsp = yyvs;


  goto yysetstate;

/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
 yynewstate:
  /* In all cases, when you get here, the value and location stacks
     have just been pushed. so pushing a state here evens the stacks.
     */
  yyssp++;

 yysetstate:
  *yyssp = yystate;

  if (yyss + yystacksize - 1 <= yyssp)
    {
      /* Get the current used size of the three stacks, in elements.  */
      YYSIZE_T yysize = yyssp - yyss + 1;

#ifdef yyoverflow
      {
	/* Give user a chance to reallocate the stack. Use copies of
	   these so that the &'s don't force the real ones into
	   memory.  */
	YYSTYPE *yyvs1 = yyvs;
	short int *yyss1 = yyss;


	/* Each stack pointer address is followed by the size of the
	   data in use in that stack, in bytes.  This used to be a
	   conditional around just the two extra args, but that might
	   be undefined if yyoverflow is a macro.  */
	yyoverflow ("parser stack overflow",
		    &yyss1, yysize * sizeof (*yyssp),
		    &yyvs1, yysize * sizeof (*yyvsp),

		    &yystacksize);

	yyss = yyss1;
	yyvs = yyvs1;
      }
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
      goto yyoverflowlab;
# else
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
	goto yyoverflowlab;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
	yystacksize = YYMAXDEPTH;

      {
	short int *yyss1 = yyss;
	union yyalloc *yyptr =
	  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
	if (! yyptr)
	  goto yyoverflowlab;
	YYSTACK_RELOCATE (yyss);
	YYSTACK_RELOCATE (yyvs);

#  undef YYSTACK_RELOCATE
	if (yyss1 != yyssa)
	  YYSTACK_FREE (yyss1);
      }
# endif
#endif /* no yyoverflow */

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;


      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
		  (unsigned long int) yystacksize));

      if (yyss + yystacksize - 1 <= yyssp)
	YYABORT;
    }

  YYDPRINTF ((stderr, "Entering state %d\n", yystate));

  goto yybackup;

/*-----------.
| yybackup.  |
`-----------*/
yybackup:

/* Do appropriate processing given the current state.  */
/* Read a lookahead token if we need one and don't already have one.  */
/* yyresume: */

  /* First try to decide what to do without reference to lookahead token.  */

  yyn = yypact[yystate];
  if (yyn == YYPACT_NINF)
    goto yydefault;

  /* Not known => get a lookahead token if don't already have one.  */

  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      yychar = YYLEX;
    }

  if (yychar <= YYEOF)
    {
      yychar = yytoken = YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else
    {
      yytoken = YYTRANSLATE (yychar);
      YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
    }

  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
  yyn = yytable[yyn];
  if (yyn <= 0)
    {
      if (yyn == 0 || yyn == YYTABLE_NINF)
	goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  /* Shift the lookahead token.  */
  YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));

  /* Discard the token being shifted unless it is eof.  */
  if (yychar != YYEOF)
    yychar = YYEMPTY;

  *++yyvsp = yylval;


  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

  yystate = yyn;
  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- Do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     `$$ = $1'.

     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
        case 2:
#line 90 "dvdvmy.y"
    {
    dvd_vm_parsed_cmd=yyval.statement;
;}
    break;

  case 3:
#line 95 "dvdvmy.y"
    {
    yyval.statement=yyvsp[0].statement;
;}
    break;

  case 4:
#line 98 "dvdvmy.y"
    {
    yyval.statement=yyvsp[-1].statement;
    yyval.statement->next=yyvsp[0].statement;
;}
    break;

  case 5:
#line 104 "dvdvmy.y"
    {
    yyval.statement=yyvsp[0].statement;
;}
    break;

  case 6:
#line 107 "dvdvmy.y"
    {
    yyval.statement=yyvsp[0].statement;
;}
    break;

  case 7:
#line 110 "dvdvmy.y"
    {
    yyval.statement=statement_new();
    yyval.statement->op=VM_EXIT;
;}
    break;

  case 8:
#line 114 "dvdvmy.y"
    {
    yyval.statement=statement_new();
    yyval.statement->op=VM_RESUME;
;}
    break;

  case 9:
#line 118 "dvdvmy.y"
    {
    yyval.statement=yyvsp[0].statement;
;}
    break;

  case 10:
#line 121 "dvdvmy.y"
    {
    yyval.statement=yyvsp[-1].statement;
;}
    break;

  case 11:
#line 124 "dvdvmy.y"
    {
    yyval.statement=yyvsp[0].statement;
;}
    break;

  case 12:
#line 129 "dvdvmy.y"
    {
    yyval.int_val=(yyvsp[0].int_val)+1;
;}
    break;

  case 13:
#line 132 "dvdvmy.y"
    {
    yyval.int_val=1;
;}
    break;

  case 14:
#line 135 "dvdvmy.y"
    {
    yyval.int_val=0;
;}
    break;

  case 15:
#line 140 "dvdvmy.y"
    {
    yyval.int_val=yyvsp[0].int_val;
;}
    break;

  case 16:
#line 143 "dvdvmy.y"
    {
    yyval.int_val=120; // default entry
;}
    break;

  case 17:
#line 146 "dvdvmy.y"
    {
    yyval.int_val=122;
;}
    break;

  case 18:
#line 149 "dvdvmy.y"
    {
    yyval.int_val=123;
;}
    break;

  case 19:
#line 152 "dvdvmy.y"
    {
    yyval.int_val=124;
;}
    break;

  case 20:
#line 155 "dvdvmy.y"
    {
    yyval.int_val=125;
;}
    break;

  case 21:
#line 158 "dvdvmy.y"
    {
    yyval.int_val=126;
;}
    break;

  case 22:
#line 161 "dvdvmy.y"
    {
    yyval.int_val=127;
;}
    break;

  case 23:
#line 164 "dvdvmy.y"
    {
    yyval.int_val=121;
;}
    break;

  case 24:
#line 167 "dvdvmy.y"
    {
    yyval.int_val=(yyvsp[0].int_val)|128;
;}
    break;

  case 25:
#line 170 "dvdvmy.y"
    {
    yyval.int_val=0;
;}
    break;

  case 26:
#line 175 "dvdvmy.y"
    {
    yyval.int_val=yyvsp[0].int_val;
;}
    break;

  case 27:
#line 178 "dvdvmy.y"
    {
    yyval.int_val=0;
;}
    break;

  case 28:
#line 183 "dvdvmy.y"
    {
    yyval.statement=statement_new();
    yyval.statement->op=VM_JUMP;
    yyval.statement->i1=yyvsp[-3].int_val;
    yyval.statement->i2=yyvsp[-2].int_val;
    yyval.statement->i3=yyvsp[-1].int_val;
;}
    break;

  case 29:
#line 190 "dvdvmy.y"
    {
    yyval.statement=statement_new();
    yyval.statement->op=VM_JUMP;
    yyval.statement->i3=2*65536+yyvsp[-1].int_val;
;}
    break;

  case 30:
#line 195 "dvdvmy.y"
    {
    yyval.statement=statement_new();
    yyval.statement->op=VM_JUMP;
    yyval.statement->i3=65536+yyvsp[-1].int_val;
;}
    break;

  case 31:
#line 202 "dvdvmy.y"
    {
    yyval.int_val=yyvsp[0].int_val;
;}
    break;

  case 32:
#line 205 "dvdvmy.y"
    {
    yyval.int_val=0;
;}
    break;

  case 33:
#line 210 "dvdvmy.y"
    {
    yyval.statement=statement_new();
    yyval.statement->op=VM_CALL;
    yyval.statement->i1=yyvsp[-4].int_val;
    yyval.statement->i2=yyvsp[-3].int_val;
    yyval.statement->i3=yyvsp[-2].int_val;
    yyval.statement->i4=yyvsp[-1].int_val;
;}
    break;

  case 34:
#line 220 "dvdvmy.y"
    {
    yyval.int_val=yyvsp[0].int_val;
;}
    break;

  case 35:
#line 223 "dvdvmy.y"
    {
    yyval.int_val=yyvsp[0].int_val+0x80;
;}
    break;

  case 36:
#line 226 "dvdvmy.y"
    {
    yyval.int_val=0x81;
;}
    break;

  case 37:
#line 229 "dvdvmy.y"
    {
    yyval.int_val=0x82;
;}
    break;

  case 38:
#line 232 "dvdvmy.y"
    {
    yyval.int_val=0x83;
;}
    break;

  case 39:
#line 235 "dvdvmy.y"
    {
    yyval.int_val=0x88;
;}
    break;

  case 40:
#line 240 "dvdvmy.y"
    {
    yyval.int_val=yyvsp[0].int_val-256;
;}
    break;

  case 41:
#line 243 "dvdvmy.y"
    {
    yyval.int_val=yyvsp[0].int_val;
;}
    break;

  case 42:
#line 248 "dvdvmy.y"
    {
    yyval.statement=yyvsp[-1].statement;
;}
    break;

  case 43:
#line 251 "dvdvmy.y"
    {
    yyval.statement=statement_new();
    yyval.statement->op=VM_VAL;
    yyval.statement->i1=yyvsp[0].int_val;
;}
    break;

  case 44:
#line 256 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_ADD,yyvsp[0].statement);
;}
    break;

  case 45:
#line 259 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_SUB,yyvsp[0].statement);
;}
    break;

  case 46:
#line 262 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_MUL,yyvsp[0].statement);
;}
    break;

  case 47:
#line 265 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_DIV,yyvsp[0].statement);
;}
    break;

  case 48:
#line 268 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_MOD,yyvsp[0].statement);
;}
    break;

  case 49:
#line 271 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_AND,yyvsp[0].statement);
;}
    break;

  case 50:
#line 274 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_OR, yyvsp[0].statement);
;}
    break;

  case 51:
#line 277 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_AND,yyvsp[0].statement);
;}
    break;

  case 52:
#line 280 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_OR, yyvsp[0].statement);
;}
    break;

  case 53:
#line 283 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_XOR,yyvsp[0].statement);
;}
    break;

  case 54:
#line 288 "dvdvmy.y"
    {
    yyval.statement=yyvsp[-1].statement;
;}
    break;

  case 55:
#line 291 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_EQ,yyvsp[0].statement);
;}
    break;

  case 56:
#line 294 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_NE,yyvsp[0].statement);
;}
    break;

  case 57:
#line 297 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_GTE,yyvsp[0].statement);
;}
    break;

  case 58:
#line 300 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_GT,yyvsp[0].statement);
;}
    break;

  case 59:
#line 303 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_LTE,yyvsp[0].statement);
;}
    break;

  case 60:
#line 306 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_LT,yyvsp[0].statement);
;}
    break;

  case 61:
#line 309 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_LOR,yyvsp[0].statement);
;}
    break;

  case 62:
#line 312 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_LAND,yyvsp[0].statement);
;}
    break;

  case 63:
#line 315 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_LOR,yyvsp[0].statement);
;}
    break;

  case 64:
#line 318 "dvdvmy.y"
    {
    yyval.statement=statement_expression(yyvsp[-2].statement,VM_LAND,yyvsp[0].statement);
;}
    break;

  case 65:
#line 321 "dvdvmy.y"
    {
    yyval.statement=statement_new();
    yyval.statement->op=VM_NOT;
    yyval.statement->param=yyvsp[0].statement;
;}
    break;

  case 66:
#line 328 "dvdvmy.y"
    {
    yyval.statement=statement_new();
    yyval.statement->op=VM_SET;
    yyval.statement->i1=yyvsp[-3].int_val;
    yyval.statement->param=yyvsp[-1].statement;
;}
    break;

  case 67:
#line 334 "dvdvmy.y"
    {
    yyval.statement=statement_setop(yyvsp[-3].int_val,VM_ADD,yyvsp[-1].statement);
;}
    break;

  case 68:
#line 337 "dvdvmy.y"
    {
    yyval.statement=statement_setop(yyvsp[-3].int_val,VM_SUB,yyvsp[-1].statement);
;}
    break;

  case 69:
#line 340 "dvdvmy.y"
    {
    yyval.statement=statement_setop(yyvsp[-3].int_val,VM_MUL,yyvsp[-1].statement);
;}
    break;

  case 70:
#line 343 "dvdvmy.y"
    {
    yyval.statement=statement_setop(yyvsp[-3].int_val,VM_DIV,yyvsp[-1].statement);
;}
    break;

  case 71:
#line 346 "dvdvmy.y"
    {
    yyval.statement=statement_setop(yyvsp[-3].int_val,VM_MOD,yyvsp[-1].statement);
;}
    break;

  case 72:
#line 349 "dvdvmy.y"
    {
    yyval.statement=statement_setop(yyvsp[-3].int_val,VM_AND,yyvsp[-1].statement);
;}
    break;

  case 73:
#line 352 "dvdvmy.y"
    {
    yyval.statement=statement_setop(yyvsp[-3].int_val,VM_OR,yyvsp[-1].statement);
;}
    break;

  case 74:
#line 355 "dvdvmy.y"
    {
    yyval.statement=statement_setop(yyvsp[-3].int_val,VM_XOR,yyvsp[-1].statement);
;}
    break;

  case 75:
#line 360 "dvdvmy.y"
    {
    yyval.statement=statement_new();
    yyval.statement->op=VM_IF;
    yyval.statement->param=yyvsp[-2].statement;
    yyvsp[-2].statement->next=statement_new();
    yyvsp[-2].statement->next->op=VM_IF;
    yyvsp[-2].statement->next->param=yyvsp[0].statement;
;}
    break;

  case 76:
#line 370 "dvdvmy.y"
    {
    yyval.statement=yyvsp[0].statement;
;}
    break;

  case 77:
#line 373 "dvdvmy.y"
    {
    yyval.statement=yyvsp[-2].statement;
    yyval.statement->param->next->next=yyvsp[0].statement;
;}
    break;


    }

/* Line 1010 of yacc.c.  */
#line 1879 "dvdvmy.c"

  yyvsp -= yylen;
  yyssp -= yylen;


  YY_STACK_PRINT (yyss, yyssp);

  *++yyvsp = yyval;


  /* Now `shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */

  yyn = yyr1[yyn];

  yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTOKENS];

  goto yynewstate;


/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if YYERROR_VERBOSE
      yyn = yypact[yystate];

      if (YYPACT_NINF < yyn && yyn < YYLAST)
	{
	  YYSIZE_T yysize = 0;
	  int yytype = YYTRANSLATE (yychar);
	  const char* yyprefix;
	  char *yymsg;
	  int yyx;

	  /* Start YYX at -YYN if negative to avoid negative indexes in
	     YYCHECK.  */
	  int yyxbegin = yyn < 0 ? -yyn : 0;

	  /* Stay within bounds of both yycheck and yytname.  */
	  int yychecklim = YYLAST - yyn;
	  int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
	  int yycount = 0;

	  yyprefix = ", expecting ";
	  for (yyx = yyxbegin; yyx < yyxend; ++yyx)
	    if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
	      {
		yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
		yycount += 1;
		if (yycount == 5)
		  {
		    yysize = 0;
		    break;
		  }
	      }
	  yysize += (sizeof ("syntax error, unexpected ")
		     + yystrlen (yytname[yytype]));
	  yymsg = (char *) YYSTACK_ALLOC (yysize);
	  if (yymsg != 0)
	    {
	      char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
	      yyp = yystpcpy (yyp, yytname[yytype]);

	      if (yycount < 5)
		{
		  yyprefix = ", expecting ";
		  for (yyx = yyxbegin; yyx < yyxend; ++yyx)
		    if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
		      {
			yyp = yystpcpy (yyp, yyprefix);
			yyp = yystpcpy (yyp, yytname[yyx]);
			yyprefix = " or ";
		      }
		}
	      yyerror (yymsg);
	      YYSTACK_FREE (yymsg);
	    }
	  else
	    yyerror ("syntax error; also virtual memory exhausted");
	}
      else
#endif /* YYERROR_VERBOSE */
	yyerror ("syntax error");
    }



  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse lookahead token after an
	 error, discard it.  */

      if (yychar <= YYEOF)
        {
          /* If at end of input, pop the error token,
	     then the rest of the stack, then return failure.  */
	  if (yychar == YYEOF)
	     for (;;)
	       {
		 YYPOPSTACK;
		 if (yyssp == yyss)
		   YYABORT;
		 YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
		 yydestruct (yystos[*yyssp], yyvsp);
	       }
        }
      else
	{
	  YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
	  yydestruct (yytoken, &yylval);
	  yychar = YYEMPTY;

	}
    }

  /* Else will try to reuse lookahead token after shifting the error
     token.  */
  goto yyerrlab1;


/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:

#ifdef __GNUC__
  /* Pacify GCC when the user code never invokes YYERROR and the label
     yyerrorlab therefore never appears in user code.  */
  if (0)
     goto yyerrorlab;
#endif

  yyvsp -= yylen;
  yyssp -= yylen;
  yystate = *yyssp;
  goto yyerrlab1;


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;	/* Each real token shifted decrements this.  */

  for (;;)
    {
      yyn = yypact[yystate];
      if (yyn != YYPACT_NINF)
	{
	  yyn += YYTERROR;
	  if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
	    {
	      yyn = yytable[yyn];
	      if (0 < yyn)
		break;
	    }
	}

      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
	YYABORT;

      YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
      yydestruct (yystos[yystate], yyvsp);
      YYPOPSTACK;
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  YYDPRINTF ((stderr, "Shifting error token, "));

  *++yyvsp = yylval;


  yystate = yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturn;

/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturn;

#ifndef yyoverflow
/*----------------------------------------------.
| yyoverflowlab -- parser overflow comes here.  |
`----------------------------------------------*/
yyoverflowlab:
  yyerror ("parser stack overflow");
  yyresult = 2;
  /* Fall through.  */
#endif

yyreturn:
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
  return yyresult;
}



dvd95/dvdauthor/dvdvmy.h000066400000000000000000000102601140003301000154500ustar00rootroot00000000000000/* A Bison parser, made by GNU Bison 1.875d.  */

/* Skeleton parser for Yacc-like parsing with Bison,
   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */

/* As a special exception, when this file is copied by Bison into a
   Bison output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison.  */

/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     NUM_TOK = 258,
     G_TOK = 259,
     S_TOK = 260,
     ID_TOK = 261,
     ANGLE_TOK = 262,
     AUDIO_TOK = 263,
     BUTTON_TOK = 264,
     CALL_TOK = 265,
     CELL_TOK = 266,
     CHAPTER_TOK = 267,
     CLOSEBRACE_TOK = 268,
     CLOSEPAREN_TOK = 269,
     ELSE_TOK = 270,
     ENTRY_TOK = 271,
     EXIT_TOK = 272,
     FPC_TOK = 273,
     IF_TOK = 274,
     JUMP_TOK = 275,
     MENU_TOK = 276,
     OPENBRACE_TOK = 277,
     OPENPAREN_TOK = 278,
     PROGRAM_TOK = 279,
     PTT_TOK = 280,
     RESUME_TOK = 281,
     ROOT_TOK = 282,
     SET_TOK = 283,
     SUBTITLE_TOK = 284,
     TITLE_TOK = 285,
     TITLESET_TOK = 286,
     VMGM_TOK = 287,
     BOR_TOK = 288,
     LOR_TOK = 289,
     XOR_TOK = 290,
     _OR_TOK = 291,
     BAND_TOK = 292,
     LAND_TOK = 293,
     _AND_TOK = 294,
     NOT_TOK = 295,
     NE_TOK = 296,
     EQ_TOK = 297,
     LT_TOK = 298,
     LE_TOK = 299,
     GT_TOK = 300,
     GE_TOK = 301,
     SUB_TOK = 302,
     ADD_TOK = 303,
     MOD_TOK = 304,
     DIV_TOK = 305,
     MUL_TOK = 306,
     ADDSET_TOK = 307,
     SUBSET_TOK = 308,
     MULSET_TOK = 309,
     DIVSET_TOK = 310,
     MODSET_TOK = 311,
     ANDSET_TOK = 312,
     ORSET_TOK = 313,
     XORSET_TOK = 314,
     SEMICOLON_TOK = 315,
     ERROR_TOK = 316
   };
#endif
#define NUM_TOK 258
#define G_TOK 259
#define S_TOK 260
#define ID_TOK 261
#define ANGLE_TOK 262
#define AUDIO_TOK 263
#define BUTTON_TOK 264
#define CALL_TOK 265
#define CELL_TOK 266
#define CHAPTER_TOK 267
#define CLOSEBRACE_TOK 268
#define CLOSEPAREN_TOK 269
#define ELSE_TOK 270
#define ENTRY_TOK 271
#define EXIT_TOK 272
#define FPC_TOK 273
#define IF_TOK 274
#define JUMP_TOK 275
#define MENU_TOK 276
#define OPENBRACE_TOK 277
#define OPENPAREN_TOK 278
#define PROGRAM_TOK 279
#define PTT_TOK 280
#define RESUME_TOK 281
#define ROOT_TOK 282
#define SET_TOK 283
#define SUBTITLE_TOK 284
#define TITLE_TOK 285
#define TITLESET_TOK 286
#define VMGM_TOK 287
#define BOR_TOK 288
#define LOR_TOK 289
#define XOR_TOK 290
#define _OR_TOK 291
#define BAND_TOK 292
#define LAND_TOK 293
#define _AND_TOK 294
#define NOT_TOK 295
#define NE_TOK 296
#define EQ_TOK 297
#define LT_TOK 298
#define LE_TOK 299
#define GT_TOK 300
#define GE_TOK 301
#define SUB_TOK 302
#define ADD_TOK 303
#define MOD_TOK 304
#define DIV_TOK 305
#define MUL_TOK 306
#define ADDSET_TOK 307
#define SUBSET_TOK 308
#define MULSET_TOK 309
#define DIVSET_TOK 310
#define MODSET_TOK 311
#define ANDSET_TOK 312
#define ORSET_TOK 313
#define XORSET_TOK 314
#define SEMICOLON_TOK 315
#define ERROR_TOK 316




#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
#line 79 "dvdvmy.y"
typedef union YYSTYPE {
    int int_val;
    char *str_val;
    struct vm_statement *statement;
} YYSTYPE;
/* Line 1285 of yacc.c.  */
#line 165 "dvdvmy.h"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif

extern YYSTYPE dvdvmlval;



dvd95/dvdauthor/dvdvob.c000066400000000000000000001674321140003301000154340ustar00rootroot00000000000000/*
 * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 */
#define __USE_LARGEFILE64
#define _LARGEFILE64_SOURCE

#include "config.h"

#include "compat.h"

#include 
#include 
#include 
#include 

#if defined(__sun)
typedef uint32_t u_int32_t;
#endif

#ifdef __APPLE__
/* fopen is 64-bit aware on Mac OS X */
#define fopen64(A,B) fopen(A,B)
#endif

#include "dvdauthor.h"
#include "da-internal.h"
#include "libauthor.h"

static const char RCSID[]="$Id: //depot/dvdauthor/src/dvdvob.c#55 $";


struct colorremap {
    int newcolors[16];
    int state,curoffs,maxlen,nextoffs,skip;
    struct colorinfo *origmap;
};

struct vscani {
    int lastrefsect;
    int firstgop,firsttemporal,lastadjust,adjustfields;
};

static pts_t timeline[19]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
                           20,60,120,240};

#define BIGWRITEBUFLEN (16*2048)
static unsigned char bigwritebuf[BIGWRITEBUFLEN];
static int writebufpos=0;
static int writefile=-1;

static unsigned char videoslidebuf0[15]={255,255,255,255, 255,255,255, 0,0,0,0, 0,0,0,0};
static unsigned char videoslidebuf[15]={255,255,255,255, 255,255,255, 0,0,0,0, 0,0,0,0};

/*------------------------------------------------------------------------------
	DVDVOB__INIT-
Linux!jef 2006/02/27 21:09:18
------------------------------------------------------------------------------*/

void dvdvob__init()
{
	writebufpos = 0;
	writefile = -1;
	memcpy( videoslidebuf, videoslidebuf0, sizeof(videoslidebuf0));
}


static pts_t calcpts(struct vobgroup *va,int cancomplain,int *didcomplain,pts_t *align,pts_t basepts,int nfields)
{
    // I assume pts should round down?  That seems to be how mplex deals with it
    // also see later comment

    int fpts=getframepts(va);
    int bpframe=(basepts*2-*align+fpts/2)/fpts;
    if( (*align+(pts_t)bpframe*fpts)/2 != basepts ) {
        if( !*didcomplain ) {
            if( cancomplain )
                fprintf(stderr,"WARN: Video PTS does not line up on a multiple of a field.\n");
            *didcomplain=1;
        }
        *align=basepts *2 ;/*here *2*/
    } else
        nfields += bpframe;
    return (*align+(pts_t)nfields*fpts)/2;
}

static int findnextvideo(struct vob *va, int cur, int dir)
{
    // find next (dir=1) or previous(dir=-1) vobu with video
    int i, numvobus;

    numvobus = va->numvobus;
    switch(dir){
    case 1:  // forward
        for(i = cur+1; i < numvobus; i++) if(va->vi[i].hasvideo) return i;
        return -1;
    case -1: // backward
        for(i = cur-1; i > -1; i--) if(va->vi[i].hasvideo) return i;
        return -1;
    default:
        // ??
        return -1;
    }
}

static int findaudsect(struct vob *va,int aind,pts_t pts0,pts_t pts1)
{
    struct audchannel *ach=&va->audch[aind];
    int l=0,h=ach->numaudpts-1;

    if( hl) {
        int m=(l+h+1)/2;
        if( pts0audpts[m].pts[0] )
            h=m-1;
        else
            l=m;
    }
    if( ach->audpts[l].pts[0] > pts1 )
        return -1;
    return ach->audpts[l].sect;
}

static int findvobubysect(struct vob *va,int sect)
{
    int l=0,h=va->numvobus-1;

    if( h<0 )
        return -1;
    if( sectvi[0].sector )
        return -1;
    while(lvi[m].sector )
            h=m-1;
        else
            l=m;
    }
    return l;
}

static int findspuidx(struct vob *va,int ach,pts_t pts0)
{
    int l=0,h=va->audch[ach].numaudpts-1;

    if( hl) {
        int m=(l+h+1)/2;
        if( pts0audch[ach].audpts[m].pts[0] )
            h=m-1;
        else
            l=m;
    }
    return l;
}

static unsigned int getsect(struct vob *va,int curvobnum,int jumpvobnum,int skip,unsigned notfound)
{
    if( skip ) {
        int l,h,i;

        // only set skip bit if one of hte VOBU's from here to there contain video
        if( curvobnumvi[i].hasvideo )
                break;
        if( i<=h )
            skip=0x40000000;
        else
            skip=0;
    }
    if( jumpvobnum < 0 || jumpvobnum >= va->numvobus ||
        va->vi[jumpvobnum].vobcellid != va->vi[curvobnum].vobcellid )
        return notfound|skip;
    return abs(va->vi[jumpvobnum].sector-va->vi[curvobnum].sector)
        |(va->vi[jumpvobnum].hasvideo?0x80000000:0)
        |skip;
}

static pts_t readscr(const unsigned char *buf)
{
    return (((pts_t)(buf[0]&0x38))<<27)|
        ((buf[0]&3)<<28)|
        (buf[1]<<20)|
        ((buf[2]&0xf8)<<12)|
        ((buf[2]&3)<<13)|
        (buf[3]<<5)|
        ((buf[4]&0xf8)>>3);
}

static void writescr(unsigned char *buf,pts_t scr)
{
    buf[0]=((scr>>27)&0x38)|((scr>>28)&3)|68;
    buf[1]=scr>>20;
    buf[2]=((scr>>12)&0xf8)|((scr>>13)&3)|4;
    buf[3]=scr>>5;
    buf[4]=((scr<<3)&0xf8)|(buf[4]&7);
}

static pts_t readpts(const unsigned char *buf)
{
    int a1,a2,a3;
    a1=(buf[0]&0xe)>>1;
    a2=((buf[1]<<8)|buf[2])>>1;
    a3=((buf[3]<<8)|buf[4])>>1;

    return (((pts_t)a1)<<30)|
        (a2<<15)|
        a3;
}


static void writepts(unsigned char *buf,pts_t pts)
{
    buf[0]=((pts>>29)&0xe)|(buf[0]&0xf1); // this preserves the PTS / DTS / PTSwDTS top bits
    write2(buf+1,(pts>>14)|1);
    write2(buf+3,(pts<<1)|1);
}

static int findbutton(struct pgc *pg,char *dest,int dflt)
{
    int i;

    if( !dest )
        return dflt;
    for( i=0; inumbuttons; i++ )
        if( !strcmp(pg->buttons[i].name,dest) )
            return i+1;
    return dflt;
}

static void transpose_ts(unsigned char *buf,pts_t tsoffs)
{
    // pack scr
    if( buf[0] == 0 &&
        buf[1] == 0 &&
        buf[2] == 1 &&
        buf[3] == 0xba )
    {
    	pts_t ts = readscr(buf+4);
// fprintf(stderr,"transpose: %lld => %lld\n", ts, ts+tsoffs );
        writescr(buf+4,ts+tsoffs);

        // video/audio?
        // pts?
        if( buf[14] == 0 &&
            buf[15] == 0 &&
            buf[16] == 1 &&
            (buf[17]==0xbd || (buf[17]>=0xc0 && buf[17]<=0xef)) &&
            (buf[21] & 128))
        {
            writepts(buf+23,readpts(buf+23)+tsoffs);
            // dts?
            if( buf[21] & 64 ) {
                writepts(buf+28,readpts(buf+28)+tsoffs);
            }
        }
    }
}

static int mpa_valid(unsigned char *b)
{
    unsigned int v=(b[0]<<24)|(b[1]<<16)|(b[2]<<8)|b[3];
    int t;

    // sync, mpeg1, layer2, 48khz
    if( (v&0xFFFE0C00) != 0xFFFC0400 )
        return 0;
    // bitrate 1..14
    t=(v>>12)&15;
    if( t==0 || t==15 )
        return 0;
    // emphasis reserved
    if( (v&3)==2 )
        return 0;
    return 1;
}


static int mpa_len(unsigned char *b)
{
    static int bitratetable[16]={0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,0};
    int padding=(b[2]>>1)&1;
    int bitrate=bitratetable[(b[2]>>4)&15];

    return 3*bitrate+padding; // 144*bitrate/sampling; 144/48=3
}

static void writeflush()
{
	if( !writebufpos ) return;
/*
	if( write(writefile,bigwritebuf,writebufpos) != writebufpos ) {
		fprintf(stderr,"ERR:  Error writing data errno:%d\n", errno );
		Exit(1);
	}
*/
	{
		unsigned char * b = bigwritebuf;
		int len = writebufpos;

		while( len ) {
			int l = write( writefile, b, len );
			if( l < 0 ) {
				fprintf(stderr,"ERR: Error writing data handle=%d len=%d errno:%d\n",
						writefile,
						len,
						errno );
				Exit(1);
			}
			len -= l;
			b += l;
		}
	}
	writebufpos=0;
}

static unsigned char *writegrabbuf()
{
    unsigned char *buf;
    if( writebufpos == BIGWRITEBUFLEN )
        writeflush();
    buf=bigwritebuf+writebufpos;
    writebufpos+=2048;
    return buf;
}

static void writeundo()
{
    writebufpos-=2048;
}

static void writeclose()
{
    writeflush();
    if( writefile!=-1 ) {
        close(writefile);
        writefile=-1;
    }
}

static void writeopen(const char *newname)
{
    writefile=open(newname,O_CREAT|O_WRONLY|O_BINARY|O_LARGEFILE,0666);
    if( writefile < 0 ) {
        fprintf(stderr,"ERR:  Error opening %s: %s\n",newname,strerror(errno));
        Exit(1);
    }
}

static void closelastref(struct vobuinfo *thisvi,struct vscani *vsi,int cursect)
{
    if( vsi->lastrefsect && thisvi->numref < 3 ) {
        thisvi->lastrefsect[thisvi->numref++]=cursect;
        vsi->lastrefsect=0;
    }
}

// this function is allowed to update buf[7] and gaurantee it will end up
// in the output stream
// prevbytesect is the sector for the byte immediately preceding buf[0]
static void scanvideoptr(struct vobgroup *va,unsigned char *buf,struct vobuinfo *thisvi,int prevbytesect,struct vscani *vsi)
{
    if( buf[0]==0 &&
        buf[1]==0 &&
        buf[2]==1 ) {
        switch(buf[3]) {
        case 0: {
            int ptype=(buf[5]>>3)&7;
            int temporal=(buf[4]<<2)|(buf[5]>>6);

            closelastref(thisvi,vsi,prevbytesect);
            if( vsi->firsttemporal==-1 )
                vsi->firsttemporal=temporal;
            vsi->lastadjust=( temporal < vsi->firsttemporal );
            if( ptype == 1 || ptype == 2 ) // I or P frame
                vsi->lastrefsect=1;

            if( va->vd.vmpeg==VM_MPEG1) {
                thisvi->numfields+=2;
                if(vsi->lastadjust && vsi->firstgop==2)
                    thisvi->firstIfield+=2;
            }

            // fprintf(stderr,"INFO: frame type %d, tempref=%d, prevsect=%d\n",ptype,temporal,prevbytesect);
            break;
        }

        case 0xb3: { // sequence header
            int hsize,vsize,aspect,frame,newaspect;
            char sizestring[30];

            closelastref(thisvi,vsi,prevbytesect);

            hsize=(buf[4]<<4)|(buf[5]>>4);
            vsize=((buf[5]<<8)&0xf00)|buf[6];
            aspect=buf[7]>>4;
            frame=buf[7]&0xf;

            vobgroup_set_video_framerate(va,frame);
            switch(frame) {
            case 1:
            case 4:
            case 7:
                vobgroup_set_video_attr(va,VIDEO_FORMAT,"ntsc");
                break;

            case 3:
            case 6:
                vobgroup_set_video_attr(va,VIDEO_FORMAT,"pal");
                break;

            default:
                fprintf(stderr,"WARN: unknown frame rate %d\n",frame);
                break;
            }

            sprintf(sizestring,"%dx%d",hsize,vsize);
            vobgroup_set_video_attr(va,VIDEO_RESOLUTION,sizestring);

            if( va->vd.vmpeg==VM_MPEG1) {
                switch( aspect ) {
                case 3:
                    vobgroup_set_video_attr(va,VIDEO_ASPECT,"16:9");
                    vobgroup_set_video_attr(va,VIDEO_FORMAT,"pal");
                    break;
                case 6:
                    vobgroup_set_video_attr(va,VIDEO_ASPECT,"16:9");
                    vobgroup_set_video_attr(va,VIDEO_FORMAT,"ntsc");
                    break;
                case 8:
                    vobgroup_set_video_attr(va,VIDEO_ASPECT,"4:3");
                    vobgroup_set_video_attr(va,VIDEO_FORMAT,"pal");
                    break;
                case 12:
                    vobgroup_set_video_attr(va,VIDEO_ASPECT,"4:3");
                    vobgroup_set_video_attr(va,VIDEO_FORMAT,"ntsc");
                    break;
                default:
                    fprintf(stderr,"WARN: unknown mpeg1 aspect ratio %d\n",aspect);
                    break;
                }
                newaspect=3+
                    (va->vd.vaspect==VA_4x3)*5+
                    (va->vd.vformat==VF_NTSC)*3;
                if( newaspect==11 ) newaspect++;
                buf[7]=(buf[7]&0xf)|(newaspect<<4); // reset the aspect ratio
            } else if( va->vd.vmpeg==VM_MPEG2 ) {
                if( aspect==2 )
                    vobgroup_set_video_attr(va,VIDEO_ASPECT,"4:3");
                else if( aspect==3 )
                    vobgroup_set_video_attr(va,VIDEO_ASPECT,"16:9");
                else
                    fprintf(stderr,"WARN: unknown mpeg2 aspect ratio %d\n",aspect);
                buf[7]=(buf[7]&0xf)|(va->vd.vaspect==VA_4x3?2:3)<<4; // reset the aspect ratio
            }
            break;
        }

        case 0xb5: { // extension header
            vobgroup_set_video_attr(va,VIDEO_MPEG,"mpeg2");
            switch(buf[4]&0xF0) {
            case 0x10: // sequence extension
                closelastref(thisvi,vsi,prevbytesect);
                break;

            case 0x20: // sequence display extension
                closelastref(thisvi,vsi,prevbytesect);
                switch(buf[4]&0xE) {
                case 2: vobgroup_set_video_attr(va,VIDEO_FORMAT,"pal"); break;
                case 4: vobgroup_set_video_attr(va,VIDEO_FORMAT,"ntsc"); break;
                    // case 6: // secam
                    // case 10: // unspecified
                }
                break;

            case 0x80: { // picture coding extension
                int padj=1; // default field pic

                if( (buf[6]&3)==3 ) padj++; // adj for frame pic
                if( buf[7]&2 )      padj++; // adj for repeat flag

                thisvi->numfields+=padj;
                if(vsi->lastadjust && vsi->firstgop==2)
                    thisvi->firstIfield+=padj;
                // fprintf(stderr,"INFO: repeat flag=%d, cursect=%d\n",buf[7]&2,cursect);
                break;
            }

            }
            break;
        }

        case 0xb7: { // sequence end code
            thisvi->hasseqend=1;
            break;
        }

        case 0xb8: // gop header
            closelastref(thisvi,vsi,prevbytesect);
            if( vsi->firstgop==1 ) {
                vsi->firstgop=2;
                vsi->firsttemporal=-1;
                vsi->lastadjust=0;
                vsi->adjustfields=0;
            } else if( vsi->firstgop==2 ) {
                vsi->firstgop=0;
            }
            break;

        /*
        case 0xb8: { // gop header
            int hr,mi,se,fr;

            hr=(buf[4]>>2)&31;
            mi=((buf[4]&3)<<4)|(buf[5]>>4);
            se=((buf[5]&7)<<3)|(buf[6]>>5);
            fr=((buf[6]&31)<<1)|(buf[7]>>7);
            fprintf(stderr,"INFO: GOP header, %d:%02d:%02d:%02d, drop=%d\n",hr,mi,se,fr,(buf[4]>>7));
            break;
        }
        */

        }
    }
}

static void scanvideoframe(struct vobgroup *va,unsigned char *buf,struct vobuinfo *thisvi,int cursect,int prevsect,struct vscani *vsi)
{
    int i,f=0x17+buf[0x16],l=0x14+buf[0x12]*256+buf[0x13];
    int mpf;
    struct vobuinfo oldtvi;
    struct vscani oldvsi;

    if( l-f<8 ) {
        memcpy(videoslidebuf+7,buf+f,l-f);
        for( i=0; ivd.vmpeg;
    oldtvi=*thisvi;
    oldvsi=*vsi;

    // copy the first 7 bytes to use with the prev 7 bytes in hdr detection
    memcpy(videoslidebuf+7,buf+f,8); // we scan the first header using the slide buffer
    for( i=0; i<=7; i++ )
        scanvideoptr(va,videoslidebuf+i,thisvi,prevsect,vsi);
    memcpy(buf+f,videoslidebuf+7,8);

    // quickly scan all but the last 7 bytes for a hdr
    // buf[f]... was already scanned in the videoslidebuffer to give the correct sector
    for( i=f+1; ivd.vmpeg )
        vobgroup_set_video_attr(va,VIDEO_MPEG,"mpeg1");
    // if the mpeg version changed, then rerun scanvideoframe, because
    // scanvideoptr updates the aspect ratio in the sequence header
    if( mpf != va->vd.vmpeg ) {
        *thisvi=oldtvi; // we must undo all the frame pointer changes
        *vsi=oldvsi;
        goto rescan;
    }

    // use the last 7 bytes in the next iteration
    memcpy(videoslidebuf,buf+l-7,7);
}

static void finishvideoscan(struct vobgroup *va,int vob,int prevsect,struct vscani *vsi)
{
    struct vobuinfo *lastvi=&va->vobs[vob]->vi[va->vobs[vob]->numvobus-1];
    int i;

    memset(videoslidebuf+7,0,7);
    for( i=0; i<7; i++ )
        scanvideoptr(va,videoslidebuf+i,lastvi,prevsect,vsi);
    memset(videoslidebuf,255,7);
    closelastref(lastvi,vsi,prevsect);
}

static void printpts(pts_t pts)
{
    fprintf(stderr,"%d.%03d",(int)(pts/90000),(int)((pts/90)%1000));
}

static FILE *openvob(char *f,int *ispipe)
{
    FILE *h;
    int l=strlen(f);

    if( l>0 && f[l-1]=='|' ) {
        char *str;
        int i;

        f[l-1]=0;
        str=(char *)malloc(l*2+1+10);
        strcpy(str,"sh -c \"");
        l=strlen(str);
        for( i=0; f[i]; i++ ) {
            if( f[i]=='\"' || f[i]=='\'' )
                str[l++]='\\';
            str[l++]=f[i];
        }
        str[l]=0;
        strcpy(str+l,"\"");
        h=popen(str,"r");
        free(str);
        ispipe[0]=1;
    } else if( !strcmp(f,"-") ) {
        h=stdin;
        ispipe[0]=2;
    } else if( f[0]=='&' && isdigit(f[1]) ) {
        h=fdopen(atoi(&f[1]),"rb");
        ispipe[0]=0;
    } else {
        h=fopen64(f,"rb"); /*here*/
        ispipe[0]=0;
    }
    if( !h ) {
        fprintf(stderr,"ERR:  Error opening %s: %s\n",f,strerror(errno));
        Exit(1);
    }
    return h;
}

enum { CR_BEGIN0,   CR_BEGIN1,    CR_BEGIN2,    CR_BEGIN3, CR_SKIP0,
       CR_SKIP1,    CR_NEXTOFFS0, CR_NEXTOFFS1, CR_WAIT,   CR_CMD,
       CR_SKIPWAIT, CR_COL0,      CR_COL1};

static char *readpstr(char *b,int *i)
{
    char *s=strdup(b+i[0]);
    i[0]+=strlen(s)+1;
    return s;
}

static void initremap(struct colorremap *cr)
{
    int i;

    for( i=0; i<16; i++ )
        cr->newcolors[i]=i;
    cr->state=CR_BEGIN0;
    cr->origmap=0;
}

static int remapcolor(struct colorremap *cr,int idx)
{
    int i,nc;

    if( cr->newcolors[idx] < 16 )
        return cr->newcolors[idx];

    nc=cr->newcolors[idx]&0xffffff;
    for( i=0; i<16; i++ )
        if( cr->origmap->colors[i]==nc ) {
            cr->newcolors[idx]=i;
            return i;
        }
    for( i=0; i<16; i++ )
        if( cr->origmap->colors[i]==0x1000000 ) {
            cr->origmap->colors[i]=nc;
            cr->newcolors[idx]=i;
            return i;
        }
    fprintf(stderr,"ERR: color map full, unable to allocate new colors.\n");
    Exit(1);
}

static void remapbyte(struct colorremap *cr,unsigned char *b)
{
    b[0]=remapcolor(cr,b[0]&15)|(remapcolor(cr,b[0]>>4)<<4);
}

static void procremap(struct colorremap *cr,unsigned char *b,int l,pts_t *timespan)
{
    while(l) {
        // fprintf(stderr,"INFO: state=%d, byte=%02x (%d)\n",cr->state,*b,*b);
        switch(cr->state) {
        case CR_BEGIN0: cr->curoffs=0; cr->skip=0; cr->maxlen=b[0]*256; cr->state=CR_BEGIN1; break;
        case CR_BEGIN1: cr->maxlen+=b[0]; cr->state=CR_BEGIN2; break;
        case CR_BEGIN2: cr->nextoffs=b[0]*256; cr->state=CR_BEGIN3; break;
        case CR_BEGIN3: cr->nextoffs+=b[0]; cr->state=CR_WAIT; break;

        case CR_WAIT:
            if( cr->curoffs==cr->maxlen ) {
                cr->state=CR_BEGIN0;
                continue; // execute BEGIN0 right away
            }
            if( cr->curoffs!=cr->nextoffs )
                break;
            cr->state=CR_SKIP0;
            // fall through to CR_SKIP0
        case CR_SKIP0: *timespan+=1024*b[0]*256; cr->state=CR_SKIP1; break;
        case CR_SKIP1: *timespan+=1024*b[0]; cr->state=CR_NEXTOFFS0; break;
        case CR_NEXTOFFS0: cr->nextoffs=b[0]*256; cr->state=CR_NEXTOFFS1; break;
        case CR_NEXTOFFS1: cr->nextoffs+=b[0]; cr->state=CR_CMD; break;
        case CR_SKIPWAIT:
            if( cr->skip ) {
                cr->skip--;
                break;
            }
            cr->state=CR_CMD;
            // fall through to CR_CMD
        case CR_CMD:
            switch(*b) {
            case 0: break;
            case 1: break;
            case 2: break;
            case 3: cr->state=CR_COL0; break;
            case 4: cr->skip=2; cr->state=CR_SKIPWAIT; break;
            case 5: cr->skip=6; cr->state=CR_SKIPWAIT; break;
            case 6: cr->skip=4; cr->state=CR_SKIPWAIT; break;
            case 255: cr->state=CR_WAIT; break;
            default:
                fprintf(stderr,"ERR: procremap encountered unknown subtitle command: %d\n",*b);
                Exit(1);
            }
            break;

        case CR_COL0:
            remapbyte(cr,b);
            cr->state=CR_COL1;
            break;

        case CR_COL1:
            remapbyte(cr,b);
            cr->state=CR_CMD;
            break;

        default:
            assert(0);
        }
        cr->curoffs++;
        b++;
        l--;
    }
}

static void printvobustatus(struct vobgroup *va,int cursect)
{
    int j,nv=0;

    for( j=0; jnumvobs; j++ )
        nv+=va->vobs[j]->numvobus;

    // fprintf(stderr,"STAT: VOBU %d at %dMB, %d PGCS, %d:%02d:%02d\r",nv,cursect/512,va->numallpgcs,total/324000000,(total%324000000)/5400000,(total%5400000)/90000);
    AuthorStatus("VOBU %d at %dMB, %d PGCS",nv,cursect/512,va->numallpgcs);
}

static void audio_scan_ac3(struct audchannel *ach,unsigned char *buf,int sof,int len)
{
    u_int32_t parse;
    int acmod,lfeon,nch=0;
    char attr[4];

    if( sof+8>len ) // check if there's room to parse all the interesting info
        return;
    if( buf[sof]!=0x0b || buf[sof+1]!=0x77 ) // verify ac3 sync
        return;
    parse=read4(buf+sof+4);
    if( (parse>>30)!=0 ) { // must be 48kHz
        fprintf(stderr,"WARN: Unknown AC3 sample rate: %d\n",parse>>30);
    }
    audiodesc_set_audio_attr(&ach->ad,&ach->adwarn,AUDIO_SAMPLERATE,"48khz");
    parse<<=8;
    // check bsid
    if( (parse>>27)!=8 && (parse>>27)!=6 ) // must be v6 or v8
        return;
    parse<<=5;
    // ignore bsmod
    parse<<=3;
    // acmod gives # of channels
    acmod=(parse>>29);
    parse<<=3;
    // skip cmixlev?
    if( (acmod&1) && (acmod!=1) )
        parse<<=2;
    // skip surmixlev?
    if( acmod&4 )
        parse<<=2;
    // dsurmod
    if( acmod==2 ) {
        if( (parse>>30)==2 )
            audiodesc_set_audio_attr(&ach->ad,&ach->adwarn,AUDIO_DOLBY,"surround");
        // else if( (parse>>30)==1 )
        // audiodesc_set_audio_attr(&ach->ad,&ach->adwarn,AUDIO_DOLBY,"nosurround");
        parse<<=2;
    }
    // lfeon
    lfeon=(parse>>31);

    // calc # channels
    switch(acmod) {
    case 0: nch=2; break;
    case 1: nch=1; break;
    case 2: nch=2; break;
    case 3: nch=3; break;
    case 4: nch=3; break;
    case 5: nch=4; break;
    case 6: nch=4; break;
    case 7: nch=5; break;
    }
    if( lfeon ) nch++;
    sprintf(attr,"%dch",nch);
    audiodesc_set_audio_attr(&ach->ad,&ach->adwarn,AUDIO_CHANNELS,attr);
}

static void audio_scan_dts(struct audchannel *ach,unsigned char *buf,int sof,int len)
{
}

static void audio_scan_pcm(struct audchannel *ach,unsigned char *buf,int len)
{
    char attr[6];

    switch(buf[1]>>6) {
    case 0: audiodesc_set_audio_attr(&ach->ad,&ach->adwarn,AUDIO_QUANT,"16bps"); break;
    case 1: audiodesc_set_audio_attr(&ach->ad,&ach->adwarn,AUDIO_QUANT,"20bps"); break;
    case 2: audiodesc_set_audio_attr(&ach->ad,&ach->adwarn,AUDIO_QUANT,"24bps"); break;
    }
    sprintf(attr,"%dkhz",48*(1+((buf[1]>>4)&1)));
    audiodesc_set_audio_attr(&ach->ad,&ach->adwarn,AUDIO_SAMPLERATE,attr);
    sprintf(attr,"%dch",(buf[1]&7)+1);
    audiodesc_set_audio_attr(&ach->ad,&ach->adwarn,AUDIO_CHANNELS,attr);
}

int FindVobus(char *fbase,struct vobgroup *va,int ismenu)
{
    unsigned char *buf;
    FILE *h;
    int cursect=0,fsect=-1,vnum,outnum=-ismenu+1;
    int ispipe,vobid=0;
    struct mp2info {
        int hdrptr;
        unsigned char buf[6];
    } mp2hdr[8];
    struct colorremap *crs;

    crs=malloc(sizeof(struct colorremap)*32);
    for( vnum=0; vnumnumvobs; vnum++ ) {
        int i,j;
        int hadfirstvobu=0;
        pts_t backoffs=0, lastscr=0;
        struct vob *s=va->vobs[vnum];
        int prevvidsect=-1;
        struct vscani vsi;

        vsi.lastrefsect=0;
        for( i=0; i<32; i++ )
            initremap(crs+i);

        vobid++;
        s->vobid=vobid;
        vsi.firstgop=1;

        fprintf(stderr,"\nSTAT: Processing %s...\n",s->fname);
        h=openvob(s->fname,&ispipe);
        memset(mp2hdr,0,8*sizeof(struct mp2info));
        while(1) {
            if( fsect == 524272 ) {
                writeclose();
                if( outnum<=0 ) {
                    fprintf(stderr,"\nERR:  Menu VOB reached 1gb\n");
                    Exit(1);
                }
                outnum++;
                fsect=-1;
            }
            buf=writegrabbuf();

            i=fread(buf,1,2048,h);
            if( i!=2048 ) {
                if( i==-1 ) {
                    fprintf(stderr,"\nERR:  Error while reading: %s\n",strerror(errno));
                    Exit(1);
                } else if( i>0 )
                    fprintf(stderr,"\nWARN: Partial sector read (%d bytes); discarding data.\n",i);
                writeundo();
                break;
            }
            if( buf[14]==0 && buf[15]==0 && buf[16]==1 && buf[17]==0xbe && !strcmp(buf+20,"dvdauthor-data")) {
                // private dvdauthor data, should be removed from the final stream
                int i=35;
                if( buf[i]!=1 ) {
                    fprintf(stderr,"ERR: dvd info packet is version %d\n",buf[i]);
                    Exit(1);
                }
                switch(buf[i+1]) { // packet type

                case 1: // subtitle/menu color and button information
                {
                    int st=buf[i+2]&31;
                    i+=3;
                    i+=8; // skip start pts and end pts
                    while(buf[i]!=0xff) {
                        switch(buf[i]) {
                        case 1: // new colormap
                        {
                            int j;
                            crs[st].origmap=s->p->ci;
                            for( j=0; jbuttoncoli,buf+i+2,buf[i+1]*8);
                            for( j=0; jbuttoncoli+j*8+0);
                                remapbyte(&crs[st],s->buttoncoli+j*8+1);
                                remapbyte(&crs[st],s->buttoncoli+j*8+4);
                                remapbyte(&crs[st],s->buttoncoli+j*8+5);
                            }
                            i+=2+8*buf[i+1];
                            break;
                        }
                        case 3: // button position information
                        {
                            int j,k;

                            k=buf[i+1];
                            i+=2;
                            for( j=0; jp,st,0) ) {
                                    fprintf(stderr,"ERR:  Cannot find button '%s' as referenced by the subtitle\n",st);
                                    Exit(1);
                                }
                                b=&s->p->buttons[findbutton(s->p,st,0)-1];

                                i+=2; // skip modifier
                                b->autoaction=buf[i++];
                                if( !b->autoaction ) {
                                    b->grp=buf[i];
                                    b->x1=read2(buf+i+1);
                                    b->y1=read2(buf+i+3);
                                    b->x2=read2(buf+i+5);
                                    b->y2=read2(buf+i+7);
                                    i+=9;
                                    // up down left right
                                    b->up=readpstr(buf,&i);
                                    b->down=readpstr(buf,&i);
                                    b->left=readpstr(buf,&i);
                                    b->right=readpstr(buf,&i);
                                }
                            }
                            break;
                        }
                        default:
                            fprintf(stderr,"ERR: dvd info packet command within subtitle: %d\n",buf[i]);
                            Exit(1);
                        }
                    }

                    break;
                }

                default:
                    fprintf(stderr,"ERR: unknown dvd info packet type: %d\n",buf[i+1]);
                    Exit(1);
                }

                writeundo();
                continue;
            }
            if( buf[0]==0 && buf[1]==0 && buf[2]==1 && buf[3]==0xba ) {
                pts_t newscr=readscr(buf+4);
// fprintf(stderr,"NewScr: %lld BackOffs: %lld\n", newscr, backoffs );
                if((newscr==0)&&(lastscr>0))
                {
                  fprintf(stderr,"\nWARN:  SCR reset. backoffs=%lld  lastscr=%lld\n",(long long int)backoffs,(long long int)lastscr);
                  backoffs-=lastscr;
                  fprintf(stderr,"\nWARN:  SCR reset. New back offset = %lld \n",(long long int)backoffs);
                } else if( newscr < lastscr ) {
                    fprintf(stderr,"ERR:  SCR moves backwards, remultiplex input. (%lld < %lld)\n", (long long int)newscr, (long long int)lastscr );
//                    Exit(1);
                }
                lastscr=newscr;
                if( !hadfirstvobu )
                    backoffs=newscr;
            }
            transpose_ts(buf,-backoffs);
            if( fsect == -1 ) {
                char newname[200];
                fsect=0;
                if( outnum>=0 )
                    sprintf(newname,"%s_%d.VOB",fbase,outnum);
                else
                    strcpy(newname,fbase);
                writeopen(newname);
            }
            if( buf[14] == 0 &&
                buf[15] == 0 &&
                buf[16] == 1 &&
                buf[17] == 0xbb ) // system header
            {
                if( buf[38] == 0 &&
                    buf[39] == 0 &&
                    buf[40] == 1 &&
                    buf[41] == 0xbf && // 1st private2
                    buf[1024] == 0 &&
                    buf[1025] == 0 &&
                    buf[1026] == 1 &&
                    buf[1027] == 0xbf ) // 2nd private2
                {
                    struct vobuinfo *vi;
                    if( s->numvobus )
                        finishvideoscan(va,vnum,prevvidsect,&vsi);
                    // fprintf(stderr,"INFO: vobu\n");
                    hadfirstvobu=1;
                    s->numvobus++;
                    if( s->numvobus > s->maxvobus ) {
                        if( !s->maxvobus )
                            s->maxvobus=1;
                        else
                            s->maxvobus<<=1;
                        s->vi=(struct vobuinfo *)realloc(s->vi,s->maxvobus*sizeof(struct vobuinfo));
                    }
                    vi=&s->vi[s->numvobus-1];
                    memset(vi,0,sizeof(struct vobuinfo));
                    vi->sector=cursect;
                    vi->fsect=fsect;
                    vi->fnum=outnum;
                    vi->firstvideopts=-1;
                    vi->firstIfield=0;
                    vi->numfields=0;
                    vi->numref=0;
                    vi->hasseqend=0;
                    vi->hasvideo=0;
                    vi->sectdata=(unsigned char *)malloc(2048);
                    memcpy(s->vi[s->numvobus-1].sectdata,buf,2048);
                    if( !(s->numvobus&15) )
                        printvobustatus(va,cursect);
                    vsi.lastrefsect=0;
                    vsi.firstgop=1;
                } else {
                    fprintf(stderr,"WARN: System header found, but PCI/DSI information is not where expected\n\t(make sure your system header is 18 bytes!)\n");
                }
            }
            if( !hadfirstvobu ) {
                fprintf(stderr,"WARN: Skipping sector, waiting for first VOBU...\n");
                writeundo();
                continue;
            }
            s->vi[s->numvobus-1].lastsector=cursect;

            i=14;
            j=-1;
            while(i<=2044) {
                if( buf[i]==0 && buf[i+1]==0 && buf[i+2]==1 ) {
                    if (buf[i+3]>=0xBD && buf[i+3]<=0xEF ) {
                        j=i;
                        i+=6+read2(buf+i+4);
                        continue;
                    } else if( buf[i+3]==0xB9 && j>=14 && buf[j+3]==0xBE ) {
                        write2(buf+j+4,read2(buf+j+4)+4);
                        memset(buf+i,0,4); // mplex uses 0 for padding, so will I
                    }
                }
                break;
            }

            if( buf[0] == 0 &&
                buf[1] == 0 &&
                buf[2] == 1 &&
                buf[3] == 0xba &&
                buf[14] == 0 &&
                buf[15] == 0 &&
                buf[16] == 1 &&
                buf[17] == 0xe0 ) { // video
                struct vobuinfo *vi=&s->vi[s->numvobus-1];
                vi->hasvideo=1;
                scanvideoframe(va,buf,vi,cursect,prevvidsect,&vsi);
                if( (buf[21] & 128) && vi->firstvideopts==-1 ) { // check whether there's a pts
                    vi->firstvideopts=readpts(buf+23);
                }
                prevvidsect=cursect;
            }
            if( buf[0] == 0 &&
                buf[1] == 0 &&
                buf[2] == 1 &&
                buf[3] == 0xba &&
                buf[14] == 0 &&
                buf[15] == 0 &&
                buf[16] == 1 &&
                ((buf[17] & 0xf8) == 0xc0 || buf[17]==0xbd) &&
                buf[21] & 128 ) {
                pts_t pts0=readpts(buf+23),pts1,backpts1;
                int dptr=buf[22]+23,endop=read2(buf+18)+20;
                int audch;
                pts1=pts0;
                backpts1=0;
                if( buf[17]==0xbd ) {
                    int sid=buf[dptr],offs=read2(buf+dptr+2);

                    switch(sid&0xf8) {
                    case 0x20:                          // subpicture
                    case 0x28:                          // subpicture
                    case 0x30:                          // subpicture
                    case 0x38: audch=sid; break;        // subpicture
                    case 0x80:                          // ac3
                        pts1+=2880*buf[dptr+1];
                        audch=sid&7;
                        audio_scan_ac3(&s->audch[audch],buf+dptr+4,offs-1,endop-(dptr+4));
                        break;
                    case 0x88:                          // dts
                        audch=24|(sid&7);
                        audio_scan_dts(&s->audch[audch],buf+dptr+4,offs-1,endop-(dptr+4));
                        break;
                    case 0xa0:                          // pcm
                        pts1+=150*buf[dptr+1];
                        audch=16|(sid&7);
                        audio_scan_pcm(&s->audch[audch],buf+dptr+4,endop-(dptr+4));
                        break;
                    default:   audch=-1; break;         // unknown
                    }
                } else {
                    int len=endop-dptr;
                    int index=buf[17]&7;
                    audch=8|index;                      // mp2
                    memcpy(mp2hdr[index].buf+3,buf+dptr,3);
                    while(mp2hdr[index].hdrptr+4<=len) {
                        unsigned char *h;

                        if( mp2hdr[index].hdrptr < 0 )
                            h=mp2hdr[index].buf+3+mp2hdr[index].hdrptr;
                        else
                            h=buf+dptr+mp2hdr[index].hdrptr;

                        if( !mpa_valid(h) ) {
                            mp2hdr[index].hdrptr++;
                            continue;
                        }
                        if( mp2hdr[index].hdrptr<0 )
                            backpts1+=2160;
                        else
                            pts1+=2160;
                        mp2hdr[index].hdrptr+=mpa_len(h);
                    }
                    mp2hdr[index].hdrptr-=len;
                    memcpy(mp2hdr[index].buf,buf+dptr+len-3,3);
                    audiodesc_set_audio_attr(&s->audch[audch].ad,&s->audch[audch].adwarn,AUDIO_SAMPLERATE,"48khz");
                }
                // fprintf(stderr,"aud ch=%d pts %d - %d\n",audch,pts0,pts1);
                // fprintf(stderr,"pts[%d] %d (%02x %02x %02x %02x %02x)\n",va->numaudpts,pts,buf[23],buf[24],buf[25],buf[26],buf[27]);
                if( audch<0 || audch>=64 ) {
                    fprintf(stderr,"WARN: Invalid audio channel %d\n",audch);
                } else {
                    struct audchannel *ach=&s->audch[audch];

                    if( ach->numaudpts>=ach->maxaudpts ) {
                        if( ach->maxaudpts )
                            ach->maxaudpts<<=1;
                        else
                            ach->maxaudpts=1;
                        ach->audpts=(struct audpts *)realloc(ach->audpts,ach->maxaudpts*sizeof(struct audpts));
                    }
                    if( ach->numaudpts ) {
                        // we cannot compute the length of a DTS audio packet
                        // so just backfill if it is one
                        // otherwise, for mp2 add any pts to the previous
                        // sector for a header that spanned two sectors
                        if( (audch&0x38) == 0x18 ) // is this DTS?
                            ach->audpts[ach->numaudpts-1].pts[1]=pts0;
                        else
                            ach->audpts[ach->numaudpts-1].pts[1]+=backpts1;

                        if( ach->audpts[ach->numaudpts-1].pts[1]=32 )
                                goto noshow;
                            fprintf(stderr,"WARN: Discontinuity in audio channel %d; please remultiplex input.\n",audch);
                        } else if( ach->audpts[ach->numaudpts-1].pts[1]>pts0 )
                            fprintf(stderr,"WARN: Audio pts for channel %d moves backwards; please remultiplex input.\n",audch);
                        else
                            goto noshow;
                        fprintf(stderr,"WARN: Previous sector: ");
                        printpts(ach->audpts[ach->numaudpts-1].pts[0]);
                        fprintf(stderr," - ");
                        printpts(ach->audpts[ach->numaudpts-1].pts[1]);
                        fprintf(stderr,"\nWARN: Current sector: ");
                        printpts(pts0);
                        fprintf(stderr," - ");
                        printpts(pts1);
                        fprintf(stderr,"\n");
                        ach->audpts[ach->numaudpts-1].pts[1]=pts0;
                    }
                noshow:
                    ach->audpts[ach->numaudpts].pts[0]=pts0;
                    ach->audpts[ach->numaudpts].pts[1]=pts1;
                    ach->audpts[ach->numaudpts].sect=cursect;
                    ach->numaudpts++;
                }
            }
            // the following code scans subtitle code in order to
            // remap the colors and update the end pts
            if( buf[0] == 0 &&
                buf[1] == 0 &&
                buf[2] == 1 &&
                buf[3] == 0xba &&
                buf[14] == 0 &&
                buf[15] == 0 &&
                buf[16] == 1 &&
                buf[17] == 0xbd) {
                int dptr=buf[22]+23,ml=read2(buf+18)+20;
                int st=buf[dptr];
                dptr++;
                if( (st&0xf8)==0x20 ) { // subtitle
                    procremap(&crs[st&31],buf+dptr,ml-dptr,&s->audch[st].audpts[s->audch[st].numaudpts-1].pts[1]);
                }
            }
            cursect++;
            fsect++;
        }
        switch(ispipe) {
        case 0:
            if (fclose(h)) {
                fprintf(stderr,"\nERR:  Error reading from file: %s\n",strerror(errno));
                Exit(1);
            }
            break;
        case 1:
            if (pclose(h)) {
                fprintf(stderr,"\nERR:  Error reading from pipe: %s\n",strerror(errno));
                Exit(1);
            }
            break;
        case 2: break;
        }
        if( s->numvobus ) {
            int i;
            pts_t finalaudiopts;

            finishvideoscan(va,vnum,prevvidsect,&vsi);
            // find end of audio
            finalaudiopts=-1;
            for( i=0; i<32; i++ ) {
                struct audchannel *ach=s->audch+i;
                if( ach->numaudpts &&
                    ach->audpts[ach->numaudpts-1].pts[1] > finalaudiopts )
                    finalaudiopts=ach->audpts[ach->numaudpts-1].pts[1];
            }

            // pin down all video vobus
            // note: we make two passes; one assumes that the PTS for the
            // first frame is exact; the other assumes that the PTS for
            // the first frame is off by 1/2.  If both fail, then the third pass
            // assumes things are exact and throws a warning
            for( i=0; i<3; i++ ) {
                pts_t pts_align=-1;
                int complain=0, j;

                for( j=0; jnumvobus; j++ ) {
                    struct vobuinfo *vi=s->vi+j;

                    if( vi->hasvideo ) {
                        if( pts_align==-1 && vi->firstvideopts != -1 ) { /*here*/
                            pts_align=vi->firstvideopts*2;
                            if( i==1 ) {
                                // I assume pts should round down?  That seems to be how mplex deals with it
                                // also see earlier comment

                                // since pts round down, then the alternative base we should try is
                                // firstvideopts+0.5, thus increment
                                pts_align++;
                            }
                            // MarkChapters will complain if firstIfield!=0
                        }

                        vi->videopts[0]=calcpts(va,i==2,&complain,&pts_align,vi->firstvideopts,-vi->firstIfield);
                        vi->videopts[1]=calcpts(va,i==2,&complain,&pts_align,vi->firstvideopts,-vi->firstIfield+vi->numfields);
                        // if this looks like a dud, abort and try the next pass
                        if( complain && i<2 )
                            break;

                        vi->sectpts[0]=vi->videopts[0];
                        vi->sectpts[1]=vi->videopts[1];
                    }
                }
                if( !complain )
                    break;
            }

            // guess at non-video vobus
            for( i=0; inumvobus; i++ ) {
                struct vobuinfo *vi=s->vi+i;
                if( !vi->hasvideo ) {
                    int j,k;
                    pts_t firstaudiopts=-1,p = 0; /*here*/

                    for( j=0; j<32; j++ ) {
                        struct audchannel *ach=s->audch+j;
                        for( k=0; knumaudpts; k++ )
                            if( ach->audpts[k].sect>=vi->sector ) {
                                if( firstaudiopts==-1 || ach->audpts[k].pts[0]audpts[k].pts[0];
                                break;
                            }
                    }
                    if( firstaudiopts==-1 ) {
                        fprintf(stderr,"WARN: Cannot detect pts for VOBU if there is no audio or video\nWARN: Using SCR instead.\n");
                        firstaudiopts=readscr(vi->sectdata+4)+4*147; // 147 is roughly the minumum pts that must transpire between packets; we give a couple packets of buffer to allow the dvd player to process the data
                    }
                    if( i ) {
                        pts_t frpts=getframepts(va);
                        p=firstaudiopts-s->vi[i-1].sectpts[0];
                        // ensure this is a multiple of a framerate, just to be nice
                        p+=frpts-1;
                        p-=p%frpts;
                        p+=s->vi[i-1].sectpts[0];
                        assert(p>=s->vi[i-1].sectpts[1]);
                        s->vi[i-1].sectpts[1]=p;
                    } else {
                        fprintf(stderr,"ERR:  Cannot infer pts for VOBU if there is no audio or video and it is the\nERR:  first VOBU.\n");
                        Exit(1);
                    }
                    vi->sectpts[0]=p;

                    // if we can easily predict the end pts of this sector,
                    // then fill it in.  otherwise, let the next iteration do it
                    if( i+1==s->numvobus ) { // if this is the end of the vob, use the final audio pts as the last pts
                        if( finalaudiopts>vi->sectpts[0] )
                            p=finalaudiopts;
                        else
                            p=vi->sectpts[0]+getframepts(va); // add one frame of a buffer, so we don't have a zero (or less) length vobu
                    } else if( s->vi[i+1].hasvideo ) // if the next vobu has video, use the start of the video as the end of this vobu
                        p=s->vi[i+1].sectpts[0];
                    else // the next vobu is an audio only vobu, and will backfill the pts as necessary
                        continue;
                    assert(p>vi->sectpts[0]);
                    vi->sectpts[1]=p;
                }
            }

            fprintf(stderr,"\nINFO: Video pts = ");
            printpts(s->vi[0].videopts[0]);
            fprintf(stderr," .. ");
            for( i=s->numvobus-1; i>=0; i-- )
                if( s->vi[i].hasvideo ) {
                    printpts(s->vi[i].videopts[1]);
                    break;
                }
            if( i<0 )
                fprintf(stderr,"??");
            for( i=0; i<64; i++ ) {
                struct audchannel *ach=&s->audch[i];

                if( ach->numaudpts ) {
                    fprintf(stderr,"\nINFO: Audio[%d] pts = ",i);
                    printpts(ach->audpts[0].pts[0]);
                    fprintf(stderr," .. ");
                    printpts(ach->audpts[ach->numaudpts-1].pts[1]);
                }
            }
            fprintf(stderr,"\n");
        }
    }
    writeclose();
    printvobustatus(va,cursect);
    fprintf(stderr,"\n");
    free(crs);
    return 1;
}

static pts_t pabs(pts_t pts)
{
    if( pts<0 )
        return -pts;
    return pts;
}

static int findnearestvobu(struct vobgroup *pg,struct vob *va,pts_t pts)
{
    int l=0,h=va->numvobus-1,i;

    if( h<0 )
        return -1;
    pts+=va->vi[0].sectpts[0];
    i=findvobu(va,pts,l,h);
    if( i+1numvobus && i>=0 &&
        pabs(pts-va->vi[i+1].sectpts[0])vi[i].sectpts[0]) )
        i++;
    return i;
}

void MarkChapters(struct vobgroup *va)
{
    int i,j,k,lastcellid;

    // mark start and stop points
    lastcellid=-1;
    for( i=0; inumallpgcs; i++ )
        for( j=0; jallpgcs[i]->numsources; j++ ) {
            struct source *s=va->allpgcs[i]->sources[j];

            for( k=0; knumcells; k++ ) {
                int v;

                v=findnearestvobu(va,s->vob,s->cells[k].startpts);
                if( v>=0 && vvob->numvobus )
                    s->vob->vi[v].vobcellid=1;
                s->cells[k].scellid=v;

                if( lastcellid!=v &&
                    s->vob->vi[v].firstIfield!=0) {
                    fprintf(stderr,"WARN: GOP is not closed on cell %d of source %s of pgc %d\n",k+1,s->fname,i+1);
                }

                if( s->cells[k].endpts>=0 ) {
                    v=findnearestvobu(va,s->vob,s->cells[k].endpts);
                    if( v>=0 && vvob->numvobus )
                        s->vob->vi[v].vobcellid=1;
                } else
                    v=s->vob->numvobus;
                s->cells[k].ecellid=v;

                lastcellid=v;
            }
        }
    // tally up actual cells
    for( i=0; inumvobs; i++ ) {
        int cellvobu=0;
        int cellid=0;
        va->vobs[i]->vi[0].vobcellid=1;
        for( j=0; jvobs[i]->numvobus; j++ ) {
            struct vobuinfo *v=&va->vobs[i]->vi[j];
            if( v->vobcellid ) {
                cellid++;
                cellvobu=j;
            }
            v->vobcellid=cellid+va->vobs[i]->vobid*256;
            v->firstvobuincell=cellvobu;
        }
        cellvobu=va->vobs[i]->numvobus-1;
        for( j=cellvobu; j>=0; j-- ) {
            struct vobuinfo *v=&va->vobs[i]->vi[j];
            v->lastvobuincell=cellvobu;
            if(v->firstvobuincell==j )
                cellvobu=j-1;
        }
        va->vobs[i]->numcells=cellid;
        if( cellid>=256 ) {
            fprintf(stderr,"ERR:  VOB %s has too many cells (%d, 256 allowed)\n",va->vobs[i]->fname,cellid);
            Exit(1);
        }
    }

    // now compute scellid and ecellid
    for( i=0; inumallpgcs; i++ )
        for( j=0; jallpgcs[i]->numsources; j++ ) {
            struct source *s=va->allpgcs[i]->sources[j];

            for( k=0; knumcells; k++ ) {
                struct cell *c=&s->cells[k];

                if( c->scellid<0 )
                    c->scellid=1;
                else if( c->scellidvob->numvobus )
                    c->scellid=s->vob->vi[c->scellid].vobcellid&255;
                else
                    c->scellid=s->vob->numcells+1;

                if( c->ecellid<0 )
                    c->ecellid=1;
                else if( c->ecellidvob->numvobus )
                    c->ecellid=s->vob->vi[c->ecellid].vobcellid&255;
                else
                    c->ecellid=s->vob->numcells+1;

                va->allpgcs[i]->numcells+=c->ecellid-c->scellid;
                if( c->scellid!=c->ecellid && c->ischapter ) {
                    va->allpgcs[i]->numprograms++;
                    if( c->ischapter==1 )
                        va->allpgcs[i]->numchapters++;
                    if( va->allpgcs[i]->numprograms>=256 ) {
                        fprintf(stderr,"ERR:  PGC %d has too many programs (%d, 256 allowed)\n",i+1,va->allpgcs[i]->numprograms);
                        Exit(1);
                    }
                    // if numprograms<256, then numchapters<256, so
                    // no need to doublecheck
                }
            }
        }
}

static pts_t getcellaudiopts(struct vobgroup *va,int vcid,int ach,int w)
{
    struct vob *v=va->vobs[(vcid>>8)-1];
    struct audchannel *a=&v->audch[ach];
    int ai=0;

    assert((vcid&255)==(w?v->numcells:1));
    if( w )
        ai=a->numaudpts-1;
    return a->audpts[ai].pts[w];
}

static int hasaudio(struct vobgroup *va,int vcid,int ach,int w)
{
    struct vob *v=va->vobs[(vcid>>8)-1];
    struct audchannel *a=&v->audch[ach];

    assert((vcid&255)==(w?v->numcells:1));

    return a->numaudpts!=0;
}

static pts_t getcellvideopts(struct vobgroup *va,int vcid,int w)
{
    struct vob *v=va->vobs[(vcid>>8)-1];
    int vi=0;

    assert((vcid&255)==(w?v->numcells:1));
    if( w )
        vi=v->numvobus-1;
    // we use sectpts instead of videopts because sometimes you will
    // present the last video frame for a long time; we want to know
    // the last presented time stamp: sectpts
    return v->vi[vi].sectpts[w];
}

static pts_t calcaudiodiff(struct vobgroup *va,int vcid,int ach,int w)
{
    return getcellvideopts(va,vcid,w)-getcellaudiopts(va,vcid,ach,w);
}

int calcaudiogap(struct vobgroup *va,int vcid0,int vcid1,int ach)
{
    if( vcid0==-1 || vcid1==-1 )
        return 0;
    if( vcid1==vcid0+1 )
        return 0;
    if( (vcid1&255)==1 && va->vobs[(vcid0>>8)-1]->numcells==(vcid0&255) ) {
        int g1,g2;

        // there is no discontinuity if there is no audio in the second half
        if( !hasaudio(va,vcid1,ach,0) )
            return 0;

        // we have problems if the second half has audio but the first doesn't
        if( !hasaudio(va,vcid0,ach,1) && hasaudio(va,vcid1,ach,0) ) {
            fprintf(stderr,"WARN: Transition from non-audio to audio VOB; assuming discontinuity.\n");
            return 1;
        }

        g1=calcaudiodiff(va,vcid0,ach,1);
        g2=calcaudiodiff(va,vcid1,ach,0);
        return g1!=g2;
    }
    fprintf(stderr,"WARN: Do not know how to compute the audio gap, assuming discontinuity.\n");
    return 1;
}

void FixVobus(char *fbase,struct vobgroup *va,int ismenu)
{
    int h=-1;
    int i,j,pn,fnum=-2;
    pts_t scr;
    int vff,vrew,totvob,curvob;
    unsigned char *buf;

    totvob=0;
    for( pn=0; pnnumvobs; pn++ )
        totvob+=va->vobs[pn]->numvobus;
    curvob=0;

    for( pn=0; pnnumvobs; pn++ ) {
        struct vob *p=va->vobs[pn];

        for( i=0; inumvobus; i++ ) {
            struct vobuinfo *vi=&p->vi[i];

            if( vi->fnum!=fnum ) {
                char fname[200];
                if( h >= 0 )
                    close(h);
                fnum=vi->fnum;
                if( fnum==-1 )
                    strcpy(fname,fbase);
                else
                    sprintf(fname,"%s_%d.VOB",fbase,fnum);
                h=open(fname,O_WRONLY|O_BINARY);
                if( h < 0 ) {
                    fprintf(stderr,"\nERR:  Error opening %s: %s\n",fname,strerror(errno));
                    Exit(1);
                }
            }
            buf=vi->sectdata;
            memset(buf+0x2d,0,0x400-0x2d);
            memset(buf+0x407,0,0x7ff-0x407);

            scr=readscr(buf+4);

            buf[0x2c]=0;
            write4(buf+0x2d,vi->sector);
            write4(buf+0x39,vi->sectpts[0]); // vobu_s_ptm
            write4(buf+0x3d,vi->sectpts[1]); // vobu_e_ptm
            if( vi->hasseqend ) // if sequence_end_code
                write4(buf+0x41,vi->videopts[1]); // vobu_se_e_ptm
            write4(buf+0x45,buildtimeeven(va,vi->sectpts[0]-p->vi[vi->firstvobuincell].sectpts[0])); // total guess

            if( p->p->numbuttons ) {
                struct pgc *pg=p->p;

                write2(buf+0x8d,1);
                write4(buf+0x8f,p->vi[0].sectpts[0]);
                write4(buf+0x93,-1);
                write4(buf+0x97,-1);
                write2(buf+0x9b,0x1000);
                buf[0x9e]=pg->numbuttons;
                buf[0x9f]=pg->numbuttons;
                memcpy(buf+0xa3,p->buttoncoli,24);
                for( j=0; jnumbuttons; j++ ) {
                    struct button *b=pg->buttons+j;
                    if( b->autoaction ) {
                        buf[0xbb+j*18+3]=64;
                    } else {
                        buf[0xbb+j*18+0]=(b->grp*64)|(b->x1>>4);
                        buf[0xbb+j*18+1]=(b->x1<<4)|(b->x2>>8);
                        buf[0xbb+j*18+2]=b->x2;
                        buf[0xbb+j*18+3]=(b->y1>>4);
                        buf[0xbb+j*18+4]=(b->y1<<4)|(b->y2>>8);
                        buf[0xbb+j*18+5]=b->y2;
                        buf[0xbb+j*18+6]=findbutton(pg,b->up,(j==0)?pg->numbuttons:j);
                        buf[0xbb+j*18+7]=findbutton(pg,b->down,(j+1==pg->numbuttons)?1:j+2);
                        buf[0xbb+j*18+8]=findbutton(pg,b->left,(j==0)?pg->numbuttons:j);
                        buf[0xbb+j*18+9]=findbutton(pg,b->right,(j+1==pg->numbuttons)?1:j+2);
                    }
                    write8(buf+0xbb+j*18+10,0x71,0x01,0x00,0x0F,0x00,j+1,0x00,0x0d); // g[0]=j && linktailpgc
                }
            }

            buf[0x406]=1;
            write4(buf+0x407,scr);
            write4(buf+0x40b,vi->sector); // current lbn
            for( j=0; jnumref; j++ )
                write4(buf+0x413+j*4,vi->lastrefsect[j]-vi->sector);
            write2(buf+0x41f,vi->vobcellid>>8);
            buf[0x422]=vi->vobcellid;
            write4(buf+0x423,read4(buf+0x45));
            write4(buf+0x433,p->vi[0].sectpts[0]);
            write4(buf+0x437,p->vi[p->numvobus-1].sectpts[1]);

            write4(buf+0x4f1,getsect(p,i,findnextvideo(p,i,1),0,0xbfffffff));
            write4(buf+0x541,getsect(p,i,i+1,0,0x3fffffff));
            write4(buf+0x545,getsect(p,i,i-1,0,0x3fffffff));
            write4(buf+0x595,getsect(p,i,findnextvideo(p,i,-1),0,0xbfffffff));
            for( j=0; jnumaudiotracks; j++ ) {
                int s=getaudch(va,j);

                if( s>=0 )
                    s=findaudsect(p,s,vi->sectpts[0],vi->sectpts[1]);

                if( s>=0 ) {
                    s=s-vi->sector;
                    if( s > 0x1fff || s < -(0x1fff)) {
                        fprintf(stderr,"\nWARN: audio sector out of range: %d (vobu #%d, pts ",s,i);
                        printpts(vi->sectpts[0]);
                        fprintf(stderr,")\n");
                        s=0;
                    }
                    if( s < 0 )
                        s=(-s)|0x8000;
                } else
                    s=0x3fff;
                write2(buf+0x599+j*2,s);
            }
            for( j=0; jnumsubpicturetracks; j++ ) {
                struct audchannel *ach=&p->audch[j|32];
                int s;

                if( ach->numaudpts ) {
                    int id=findspuidx(p,j|32,vi->sectpts[0]);

                    // if overlaps A, point to A
                    // else if (A before here or doesn't exist) and (B after here or doesn't exist), point to here
                    // else point to B

                    if( id>=0 &&
                        ach->audpts[id].pts[0]sectpts[1] &&
                        ach->audpts[id].pts[1]>=vi->sectpts[0] )
                        s=findvobubysect(p,ach->audpts[id].sect);
                    else if( (id<0 || ach->audpts[id].pts[1]sectpts[0]) &&
                             (id+1==ach->numaudpts || ach->audpts[id+1].pts[0]>=vi->sectpts[1]) )
                        s=i;
                    else
                        s=findvobubysect(p,ach->audpts[id+1].sect);
                    id=(slastsector-vi->sector);
            vff=i;
            vrew=i;
            for( j=0; j<19; j++ ) {
                int nff,nrew;

                nff=findvobu(p,vi->sectpts[0]+timeline[j]*45000,
                             vi->firstvobuincell,
                             vi->lastvobuincell);
                // a hack -- the last vobu in the cell shouldn't have any forward ptrs
                if( i==vi->lastvobuincell )
                    nff=i+1;
                nrew=findvobu(p,vi->sectpts[0]-timeline[j]*45000,
                              vi->firstvobuincell,
                              vi->lastvobuincell);
                write4(buf+0x53d-j*4,getsect(p,i,nff,j>=15 && nff>vff+1,0x3fffffff));
                write4(buf+0x549+j*4,getsect(p,i,nrew,j>=15 && nrewfsect*2048,SEEK_SET);
            write(h,buf,2048);
            curvob++;
            if( !(curvob&15) )
                AuthorStatus("Fixing VOBU at %dMB (%d/%d, %d%%)",vi->sector/512,curvob+1,totvob,curvob*100/totvob);
        }
    }
    if( h>=0 )
        close(h);
    if( totvob>0 )
        fprintf(stderr,"STAT: fixed %d VOBUS                         ",totvob);
    fprintf(stderr,"\n");
}

dvd95/dvdauthor/libauthor.c000066400000000000000000000100031140003301000161160ustar00rootroot00000000000000/*==========================[ (c) ALPHA SOFT ]==================================

FICHIER     : [dummy.c]

DATE        : 2006/02/0024 21:17:45

CREATEUR    : [Linux!jef]

COMMENTAIRE :

================================================================================

==============================================================================*/
#define __USE_LARGEFILE64
#define _LARGEFILE64_SOURCE
#ifdef HAVE_CONFIG_H
#  include 
#endif
#include 
#include 
#include 
#include 
#include 
#include 

#ifdef __APPLE__
/* fopen and lseek are 64-bit aware on Mac OS X */
#define fopen64(A,B) fopen(A,B)
#define lseek64(A,B,C) lseek(A,B,C)
#endif

#define CTEST(x)		/* Traces futiles */


// extern int optind;

static jmp_buf	JmpEnv;

static void ( * StatusFunction)();

static char * FileTable =  NULL;
static int NrFile;

extern int _DvdAuthorMain(int argc,char **argv);

/*@$#[libauthor.c] static proto. AutoProtoSigV1.1. date: 106/02/27 21:33:00 */
#include "proto.h"
#ifdef __cplusplus
extern "C" {
#endif
static void ScanOpenFiles PROTO((void));
#ifdef __cplusplus
}
#endif
/*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/


/*------------------------------------------------------------------------------
	SCANOPENFILES-
Linux!jef 2006/02/27 21:30:42
------------------------------------------------------------------------------*/

static void ScanOpenFiles()
{
	int nr = sysconf( _SC_OPEN_MAX );
	int i;

	CTEST(fprintf(stderr,"OpenMax: %d\n", nr ););

	NrFile = nr;
	FileTable = malloc( nr );
	for( i = 0; i < NrFile; i++ ) {
		if( lseek64( i, 0LL, SEEK_CUR ) == -1LL ) {
			FileTable[i] = 0;
		}
		else {
			FileTable[i] = 1;
		}
	}
}
/*------------------------------------------------------------------------------
	CLOSEFILETABLE-
Linux!jef 2006/02/27 21:37:07
------------------------------------------------------------------------------*/

static void CloseFileTable()
{
	int i;
	for( i = 0; i < NrFile; i++ ) {
		if( !FileTable[i] ) {
			if( lseek64( i, 0LL, SEEK_CUR ) != -1LL ) {
				CTEST(fprintf(stderr,"ForceClose(%d)\n", i ););
				close( i );
			}
		}
	}
}
/*------------------------------------------------------------------------------
	DESTROYFILETABLE-
Linux!jef 2006/02/27 21:37:07
------------------------------------------------------------------------------*/

static void DestroyFileTable()
{
	free( FileTable );
}

/*------------------------------------------------------------------------------
	STATUS-
Linux!jef 2006/02/24 22:07:37
------------------------------------------------------------------------------*/

void AuthorStatus( char * format, ... )
{
	va_list args;
	char buffer[4096];

	va_start( args, format );
	vsnprintf( buffer, sizeof(buffer), format, args );
	if( StatusFunction ) 	(*StatusFunction)( buffer );
	va_end( args );
}
/*------------------------------------------------------------------------------
	SETSTATUSFUNCTION-
Linux!jef 2006/02/24 22:09:01
------------------------------------------------------------------------------*/

void SetStatusFunction( void (*stFun)() )
{
	StatusFunction = stFun;
}
/*------------------------------------------------------------------------------
	DVDAUTHORMAIN-
Linux!jef 2006/02/24 22:14:00
------------------------------------------------------------------------------*/

int DvdAuthorMain( int argc, char ** argv )
{
	int ret;

	ScanOpenFiles();
	ret = setjmp( JmpEnv );
	if( ret )	goto out;
	optind = 0;
	ret = _DvdAuthorMain( argc, argv );
out:;
	CloseFileTable();
	DestroyFileTable();
	return( ret );
}
/*------------------------------------------------------------------------------
	EXIT-
Linux!jef 2006/02/24 22:16:36
------------------------------------------------------------------------------*/

void Exit( int retCode )
{
	longjmp( JmpEnv, retCode );
}
/*------------------------------------------------------------------------------
	EXITAUTHOR-
Linux!jef 2006/02/24 23:02:14
------------------------------------------------------------------------------*/

void ExitAuthor()
{
	Exit( 1 );
}

dvd95/dvdauthor/libauthor.h000066400000000000000000000015551140003301000161370ustar00rootroot00000000000000/*==========================[ (c) ALPHA SOFT ]==================================

FICHIER     : [libauthor.h]

DATE        : 2006/02/0024 21:20:14

CREATEUR    : [Linux!jef]

COMMENTAIRE :

================================================================================

==============================================================================*/

#ifndef __LIBAUTHOR_H__
#define __LIBAUTHOR_H__
/*@$#[libauthor.c] global proto. AutoProtoSigV1.1. date: 106/02/24 23:02:39 */
#include "proto.h"
#ifdef __cplusplus
extern "C" {
#endif
void AuthorStatus PROTO((char *format, ...));
void SetStatusFunction PROTO((void (*stFun)()));
int DvdAuthorMain PROTO((int argc, char **argv));
void Exit PROTO((int retCode));
void ExitAuthor PROTO((void));
#ifdef __cplusplus
}
#endif
/*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/
#endif	/* __LIBAUTHOR_H__ */

dvd95/dvdauthor/proto.h000066400000000000000000000007741140003301000153130ustar00rootroot00000000000000/*==============================================================================

FICHIER     : [proto.h]

DATE        : 95/09/08 22:16:51

CREATEUR    : [JEF!jef]

COMMENTAIRE : 

================================================================================

==============================================================================*/

#ifndef _PROTO_H_
#define _PROTO_H_
#ifndef PROTO
#	ifndef _NO_PROTOTYPE
#		define PROTO( x )	x
#	else
#		define PROTO( x )
#	endif
#endif
#endif	/* _PROTO_H_ */

dvd95/dvdauthor/readxml.c000066400000000000000000000173421140003301000155760ustar00rootroot00000000000000/*
 * Copyright (C) 2002 Scott Smith (trckjunky@users.sourceforge.net)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 */

#include "config.h"

#include "compat.h"

#include 
#include 
#include 

#include 

#include "readxml.h"

#ifdef HAVE_LANGINFO_CODESET
#include 
#include 
#endif

static const char RCSID[]="$Id: //depot/dvdauthor/src/readxml.c#17 $";

int parser_err=0, parser_acceptbody=0;
char *parser_body=0;

int readxml(const char *xmlfile,struct elemdesc *elems,struct elemattr *attrs)
{
    int curstate=0,statehistory[10];
    xmlTextReaderPtr f;

    if( xmlfile[0]=='&' && isdigit(xmlfile[1]) )
        f=xmlReaderForFd(atoi(xmlfile+1),xmlfile,NULL,0);
    else
        f=xmlNewTextReaderFilename(xmlfile);
    if(!f) {
        fprintf(stderr,"ERR:  Unable to open XML file %s\n",xmlfile);
        return 1;
    }

    while(1) {
        int r=xmlTextReaderRead(f);
        int i;

        if( !r ) {
            fprintf(stderr,"ERR:  Read premature EOF\n");
            return 1;
        }
        if( r!=1 ) {
            fprintf(stderr,"ERR:  Error in parsing XML\n");
            return 1;
        }
        switch(xmlTextReaderNodeType(f)) {
        case XML_READER_TYPE_SIGNIFICANT_WHITESPACE:
        case XML_READER_TYPE_WHITESPACE:
        case XML_READER_TYPE_COMMENT:
            break;

        case XML_READER_TYPE_ELEMENT:
            assert(!parser_body);
            for( i=0; elems[i].elemname; i++ )
                if( curstate==elems[i].parentstate &&
                    !strcmp(xmlTextReaderName(f),elems[i].elemname) ) {
                    // reading the attributes causes these values to change
                    // so if you want to use them later, save them now
                    int empty=xmlTextReaderIsEmptyElement(f),
                        depth=xmlTextReaderDepth(f);
                    if( elems[i].start ) {
                        elems[i].start();
                        if( parser_err )
                            return 1;
                    }
                    while(xmlTextReaderMoveToNextAttribute(f)) {
                        char *nm=xmlTextReaderName(f),*v=xmlTextReaderValue(f);
                        int j;

                        for( j=0; attrs[j].elem; j++ )
                            if( !strcmp(attrs[j].elem,elems[i].elemname) &&
                                !strcmp(attrs[j].attr,nm )) {
                                attrs[j].f(v);
                                if( parser_err )
                                    return 1;
                                break;
                            }
                        if( !attrs[j].elem ) {
                            fprintf(stderr,"ERR:  Cannot match attribute '%s' in tag '%s'.  Valid attributes are:\n",nm,elems[i].elemname);
                            for( j=0; attrs[j].elem; j++ )
                                if( !strcmp(attrs[j].elem,elems[i].elemname) )
                                    fprintf(stderr,"ERR:      %s\n",attrs[j].attr);
                            return 1;
                        }
                    }
                    if( empty ) {
                        if( elems[i].end ) {
                            elems[i].end();
                            if( parser_err )
                                return 1;
                        }
                    } else {
                        statehistory[depth]=i;
                        curstate=elems[i].newstate;
                    }
                    break;
                }
            if( !elems[i].elemname ) {
                fprintf(stderr,"ERR:  Cannot match start tag '%s'.  Valid tags are:\n",xmlTextReaderName(f));
                for( i=0; elems[i].elemname; i++ )
                    if( curstate==elems[i].parentstate )
                        fprintf(stderr,"ERR:      %s\n",elems[i].elemname);
                return 1;
            }
            break;

        case XML_READER_TYPE_END_ELEMENT:
            i=statehistory[xmlTextReaderDepth(f)];
            if( elems[i].end ) {
                elems[i].end();
                if( parser_err )
                    return 1;
            }
            curstate=elems[i].parentstate;
            parser_body=0;
            parser_acceptbody=0;
            if( !curstate )
                goto done_parsing;
            break;

        case XML_READER_TYPE_TEXT: {
            char *v=xmlTextReaderValue(f);

            if( !parser_body ) {
                // stupid buggy libxml2 2.5.4 that ships with RedHat 9.0!
                // we must manually check if this is just whitespace
                for( i=0; v[i]; i++ )
                    if( v[i]!='\r' &&
                        v[i]!='\n' &&
                        v[i]!=' '  &&
                        v[i]!='\t' )
                        goto has_nonws_body;
                break;
            }
        has_nonws_body:
            if( !parser_acceptbody ) {
                fprintf(stderr,"ERR:  text not allowed here\n");
                return 1;
            }

            if( !parser_body )
                parser_body=strdup(v);
            else {
                parser_body=realloc(parser_body,strlen(parser_body)+strlen(v)+1);
                strcat(parser_body,v);
            }
            break;
        }

        default:
            fprintf(stderr,"ERR:  Unknown XML node type %d\n",xmlTextReaderNodeType(f));
            return 1;
        }
    }
 done_parsing:

    return 0;
}

int xml_ison(const char *s)
{
    if( !strcmp(s,"1") || !strcasecmp(s,"on") || !strcasecmp(s,"yes") )
        return 1;
    if( !strcmp(s,"0") || !strcasecmp(s,"off") || !strcasecmp(s,"no") )
        return 0;
    return -1;
}

#if defined(HAVE_ICONV) && defined(HAVE_LANGINFO_CODESET)

static iconv_t get_conv()
{
    static iconv_t ic=(iconv_t)-1;

    if( ic==((iconv_t)-1) ) {
        char *enc;

        errno=0;
        enc=setlocale(LC_ALL,"");
        if( enc ) {
            fprintf(stderr,"INFO: Locale=%s\n",enc);
            if( !setlocale(LC_NUMERIC,"C") ) {
                fprintf(stderr,"ERR:  Cannot set numeric locale to C!\n");
                Exit(1);
            }
        } else {
            fprintf(stderr,"WARN: Error reading locale (%m), assuming C\n");
	    setlocale(LC_NUMERIC,"C"); /* Do not mess LC_NUMERIC if failed */
        }
        enc=nl_langinfo(CODESET);
        fprintf(stderr,"INFO: Converting filenames to %s\n",enc);
        ic=iconv_open(enc,"UTF-8");
        if( ic==((iconv_t)-1) ) {
            fprintf(stderr,"ERR:  Cannot generate charset conversion from UTF8 to %s\n",enc);
            Exit(1);
        }
    }
    return ic;
}

char *utf8tolocal(const char *in)
{
    iconv_t c=get_conv();
    size_t inlen=strlen(in);
    size_t outlen=inlen*5;
    char *r=malloc(outlen+1);
    char *out=r;
    size_t v;

    v=iconv(c,ICONV_CAST &in,&inlen,&out,&outlen);
    if(v==-1) {
        fprintf(stderr,"ERR:  Cannot convert UTF8 string '%s': %s\n",in,strerror(errno));
        Exit(1);
    }
    *out=0;

    r=realloc(r,strlen(r)+1); // reduce memory requirements
    
    return r;
}
#else
char *utf8tolocal(const char *in)
{
    return strdup(in);
}
#endif
dvd95/dvdauthor/readxml.h000066400000000000000000000006711140003301000156000ustar00rootroot00000000000000typedef void (*parserfunc)(void);
typedef void (*attrfunc)(char *);

struct elemdesc {
    char *elemname;
    int parentstate,newstate;
    parserfunc start,end;
};

struct elemattr {
    char *elem,*attr;
    attrfunc f;
};

int readxml(const char *xmlfile,struct elemdesc *elems,struct elemattr *attrs);
int xml_ison(const char *v);
char *utf8tolocal(const char *in);

extern int parser_err, parser_acceptbody;
extern char *parser_body;

dvd95/dvdauthor/rgb.h000066400000000000000000000013701140003301000147130ustar00rootroot00000000000000static inline int RGB2Y(int r,int g,int b)
{
    return ( 257*r+504*g+ 98*b+ 16500)/1000;
}

static inline int RGB2Cr(int r,int g,int b)
{
    return ( 439*r-368*g- 71*b+128500)/1000;
}

static inline int RGB2Cb(int r,int g,int b)
{
    return (-148*r-291*g+439*b+128500)/1000;
}

static inline int RGBclamp(int x)
{
    if( x<0 ) return 0;
    if( x>255 ) return 255;
    return x;
}

static inline int YCrCb2R(int Y,int Cr,int Cb)
{
    return RGBclamp((500+1164*(Y-16)+1596*(Cr-128)              )/1000);
}

static inline int YCrCb2G(int Y,int Cr,int Cb)
{
    return RGBclamp((500+1164*(Y-16)- 813*(Cr-128)- 391*(Cb-128))/1000);
}

static inline int YCrCb2B(int Y,int Cr,int Cb)
{
    return RGBclamp((500+1164*(Y-16)              +2018*(Cb-128))/1000);
}
dvd95/htdocs/000077500000000000000000000000001140003301000132535ustar00rootroot00000000000000dvd95/htdocs/basic.css000066400000000000000000000073501140003301000150530ustar00rootroot00000000000000html
{
  overflow: hidden;
  height: 99%;
}
                         
body
{
  background: rgb(211, 226, 195);
  height: 99%;
  margin: 0;
  padding: 0;
  line-height: 150%;
  text-align: center;
}

*
{
  font-size: 8pt; 
  font-family: Tahoma, Verdana, sans-serif; 
  color: #000000;
  text-align: left;
}

.list
{
  margin: 5px;
  border-top: 1px solid white;
  border-bottom: 1px solid white;
}




/* === Containers === */



#first_container
{
  margin: 0 auto 0 auto; 
  display: table; 
  height: 100%;  
  position: relative; 
  overflow: hidden; 
  width: 660px;
}

#second_container
{
  position: absolute; 
  top: 30%;
  vertical-align: middle;
  width: 100%; 
}

#third_container
{
  position: relative; 
  top: -163px; 
  width: 660px;
}



/* === Menu === */



#menu
{
  height: 31px;
  padding-right: 2px;
  margin: 0;
  list-style: none;   
}

#menu li
{
  float: right;
  display: block;
  width: 82px;  height: 31px;  
}

#menu a
{
  display: block;
  width: 82px;  height: 31px;  
  background-color: inherit;
  text-decoration: none;
  line-height: 31px;
  text-align: center;
}

#menu a:link, #menu a:visited
{
  color: #749942; 
  background-color: #D3E2C3;
}

#menu a:hover, #menu a:active
{
  background-image: url('images/taba2.jpg');
  color: #ffffff; 
}

#menuselected
{
  display: block;
  width: 82px;  height: 31px;  
  background-image: url('images/taba.jpg');    
  text-decoration: none;
  line-height: 31px;
  color: #ffffff;
  text-align: center;
}



/* === Language menu === */



#submenu
{
  float: left;
  height: 31px;
  width: 300px;
  padding-left: 10px;
  margin: 0;
  list-style: none;   

}

#submenu li
{
  float: left;
  display: block;
  width: 82px;  height: 31px;  
}

#submenu a
{
  display: block;
  width: 82px;  height: 31px;  
  background-color: inherit;
  text-decoration: none;
  line-height: 25px;
  text-align: center;
}

#submenu a:link, #submenu a:visited
{
  color: #749942; 
  background-color: #D3E2C3;
}

#submenu a:hover, #submenu a:active
{
  background-image: url('images/tabb2.jpg');
  color: #ffffff; 
}

#submenuselected
{
  display: block;
  width: 82px;  height: 31px;  
  background-image: url('images/tabb.jpg');    
  text-decoration: none;
  line-height: 25px;
  color: #ffffff;
  text-align: center;
}



/* === Other Divs === */
 


.border
{
  background-color: #ffffff;
  padding: 15px 15px 15px 146px;
  height: 450px;/*232px;*/
  background-image: url('images/back.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  text-align: left;
}

.title
{
  position: absolute;
  margin-left: 15px;
  margin-top: 15px; 
  width: 32px;
  height: 450px;/*232px;*/
  background-image: url('images/vanero.gif');
}

.content
{
  height: 435px; /*217px;*/
  overflow: auto;
  padding: 7px;
}

.designinfo
{
  margin-top: 5px;
  text-align: right;
  color: #749942;
  background-color: inherit;
}



/* === Inline Text Styles === */



h1
{
  margin: 10px 0 -40px -2px;
  padding: 0 10px 40px 9px;
  font-size: 16px;
  color: #ffffff;
  background-color: inherit;
  border-left: 5px solid rgb(211, 226, 195);

}

.details
{
  display: none;
  font-size: 9px;
  color: #6E7468;
}

.text
{
  display: block;
  margin: 5px 5px 20px 12px;
}

.text a
{
  color: #666F53;
  text-decoration: none;
  font-weight: bold;
}

.text a:hover, .text a:active
{
  color: #000000;
}

blockquote
{
  margin: 3px 0 3px 0;
  padding: 5px 10px 5px 10px;
}

.note
{
  	display: block;
	margin: 10px 15px 10px 15px;
	color: #555555;
}

.bold
{
  font-weight: bold;
}
dvd95/htdocs/go.sh000066400000000000000000000000651140003301000142150ustar00rootroot00000000000000#!/bin/bash
sftp jf-coulon,dvd95@web.sourceforge.net
dvd95/htdocs/index.php000066400000000000000000000041411140003301000150730ustar00rootroot00000000000000




    DVD95<?php if(isset($go)){echo (" - ".$go) ;}else{echo " - simple DVD9 to DVD5 converter";} ?>
    
    



A DVD9 to DVD5 converter

valid XHTML | valid CSS | Page last modified:
dvd95/htdocs/page_accueil.htm000066400000000000000000000022071140003301000163670ustar00rootroot00000000000000

DVD95 is a GNOME application to convert DVD9 to DVD5 (4.7 GB), AVI or PSP files. The user interface is aimed at being simple and elegant to use. DVD95 is free and open-source software licensed under the terms of the GNU GPL v2.

The shrinking factor may be computed for best results, or an adaptive compression ratio method may be used. DVDs can be converted to a file tree or ISO file. Results can be played back through xine, VLC, mplayer, etc. Burning can be used with the support of third party software (K3B). DVD95 needs no additionnals packages, as an onboard version of vamps and dvdauthor are used, to be as fast as possible.

DVD95 is provided "as-is". We cannot be held responsible for the usage of this software. By using DVD95, you confirm that you are using it for fair-use purposes depending on your area.
Conformément aux dispositions de la loi DADVSI, DVD95 ne contient pas de code permettant de contourner la protection des DVD vidéos, ce qui rend impossible la copie des DVD commerciaux.
dvd95/htdocs/page_contact.htm000066400000000000000000000003361140003301000164160ustar00rootroot00000000000000

Where do I send compliments to the Chef?

  • Creator, developer: jf-coulon at users.sourceforge.net
  • User Interface Nazi, Webmaster: nekohayo at gmail.com
dvd95/htdocs/page_download.htm000066400000000000000000000004631140003301000165730ustar00rootroot00000000000000

Get it while it's hot.

You can grab the tarballs and packages here. If you would like to package DVD95 for your distribution and provide us with packages, feel free to tell us about them so we can mention them here!

dvd95/htdocs/page_features.htm000066400000000000000000000010621140003301000165760ustar00rootroot00000000000000

Damn, this thing is cool!

  • clean user interface
  • ISO, file tree or burning output
  • AVI (MPEG4 and X264) output files via profiles, using mencoder,mplayer
  • PSP (MPEG4) output files using ffmpeg
  • multiple audio tracks and subtitles support
  • menus support
  • can trim the length of movies to make overall quality better
  • few dependencies (some libraries are bundled with DVD95)
  • available in Mint flavour paste.
screenshot dvd95/index.htm000066400000000000000000000035531140003301000136160ustar00rootroot00000000000000 Welcom to DVD95

Description

DVD95 is an gnome application to convert DVD9 to DVD5 (4,7Gigas).
It need no additionnals packages, an onboard version of vamps and dvdauthor
is used, to be as fast as possible. Interface is pretty simple yo use.
Shrinking factor may be computed for best results, or an adaptive
compression ratio method may be used.
Dvd can be converted to file tree or iso file. Result can be seen
through xine, vlc, or mplayer. Burning is achived by third party software (k3b).
DVD95 support two copy modes :
 - Menus less, one video tiltle set, multiple audios an subtiltles.
 - With menus, one video tiltle set, multiple audios an subtiltles.
Download versions at : DVD95

Screen Shots





Support This Project dvd95/install-sh000077700000000000000000000000001140003301000221422/usr/share/automake-1.11/install-shustar00rootroot00000000000000dvd95/ltmain.sh000077500000000000000000007334151140003301000136270ustar00rootroot00000000000000# Generated from ltmain.m4sh. # ltmain.sh (GNU libtool) 2.2.6b # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print informational messages (default) # --version print version information # -h, --help print short or long help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . PROGRAM=ltmain.sh PACKAGE=libtool VERSION="2.2.6b Debian-2.2.6b-2ubuntu1" TIMESTAMP="" package_revision=1.3017 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # NLS nuisances: We save the old values to restore during execute mode. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done $lt_unset CDPATH : ${CP="cp -f"} : ${ECHO="echo"} : ${EGREP="/bin/grep -E"} : ${FGREP="/bin/grep -F"} : ${GREP="/bin/grep"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SED="/bin/sed"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # Generated shell functions inserted here. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: # In the unlikely event $progname began with a '-', it would play havoc with # func_echo (imagine progname=-n), so we prepend ./ in that case: func_dirname_and_basename "$progpath" progname=$func_basename_result case $progname in -*) progname=./$progname ;; esac # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=: for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname${mode+: }$mode: $*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` done my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "X$my_tmpdir" | $Xsed } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "X$1" | $Xsed \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_version # Echo version message to standard output and exit. func_version () { $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $SED -n '/^# Usage:/,/# -h/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" $ECHO $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help # Echo long help message to standard output and exit. func_help () { $SED -n '/^# Usage:/,/# Report bugs to/ { s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ p }' < "$progpath" exit $? } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { func_error "missing argument for $1" exit_cmd=exit } exit_cmd=: # Check that we have a working $ECHO. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then # Yippee, $ECHO works! : else # Restart under the correct shell, and then maybe $ECHO will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # Parse options once, thoroughly. This comes as soon as possible in # the script to make things like `libtool --version' happen quickly. { # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Parse non-mode specific arguments: while test "$#" -gt 0; do opt="$1" shift case $opt in --config) func_config ;; --debug) preserve_args="$preserve_args $opt" func_echo "enabling shell trace mode" opt_debug='set -x' $opt_debug ;; -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break execute_dlfiles="$execute_dlfiles $1" shift ;; --dry-run | -n) opt_dry_run=: ;; --features) func_features ;; --finish) mode="finish" ;; --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break case $1 in # Valid mode arguments: clean) ;; compile) ;; execute) ;; finish) ;; install) ;; link) ;; relink) ;; uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac mode="$1" shift ;; --preserve-dup-deps) opt_duplicate_deps=: ;; --quiet|--silent) preserve_args="$preserve_args $opt" opt_silent=: ;; --verbose| -v) preserve_args="$preserve_args $opt" opt_silent=false ;; --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break preserve_args="$preserve_args $opt $1" func_enable_tag "$1" # tagname is set here shift ;; # Separate optargs to long options: -dlopen=*|--mode=*|--tag=*) func_opt_split "$opt" set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} shift ;; -\?|-h) func_usage ;; --help) opt_help=: ;; --version) func_version ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) nonopt="$opt" break ;; esac done case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_duplicate_deps ;; esac # Having warned about all mis-specified options, bail out if # anything was wrong. $exit_cmd $EXIT_FAILURE } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } ## ----------- ## ## Main. ## ## ----------- ## $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi test -z "$mode" && func_fatal_error "error: you must specify a MODE." # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$mode' for more information." } # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_ltwrapper_scriptname_result="" if func_ltwrapper_executable_p "$1"; then func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" fi } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case "$@ " in " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T <?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi removelist="$removelist $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist removelist="$removelist $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir command="$command -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then command="$command -o $obj" fi # Suppress compiler output if we already did a PIC compilation. command="$command$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$mode'" ;; esac $ECHO $ECHO "Try \`$progname --help' for more information about other modes." exit $? } # Now that we've collected a possible --mode arg, show help if necessary $opt_help && func_mode_help # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $execute_dlfiles; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_quote_for_eval "$file" args="$args $func_quote_for_eval_result" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" $ECHO "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS $ECHO "X----------------------------------------------------------------------" | $Xsed $ECHO "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done $ECHO $ECHO "If you ever happen to want to link against installed libraries" $ECHO "in a given directory, LIBDIR, you must either use libtool, and" $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" $ECHO "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" $ECHO " during execution" fi if test -n "$runpath_var"; then $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" $ECHO " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $ECHO $ECHO "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" $ECHO "pages." ;; *) $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac $ECHO "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS } test "$mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $ECHO "X$nonopt" | $GREP shtool >/dev/null; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" install_prog="$install_prog$func_quote_for_eval_result" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" install_prog="$install_prog $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for progfile in $progfiles; do func_verbose "extracting global C symbols from \`$progfile'" $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" } done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" fi $ECHO >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; " case $host in *cygwin* | *mingw* | *cegcc* ) $ECHO >> "$output_objdir/$my_dlsyms" "\ /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */" lt_dlsym_const= ;; *osf5*) echo >> "$output_objdir/$my_dlsyms" "\ /* This system does not cope well with relocations in const data */" lt_dlsym_const= ;; *) lt_dlsym_const=const ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ extern $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) symtab_cflags="$symtab_cflags $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper_part1 [arg=no] # # Emit the first part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part1 () { func_emit_wrapper_part1_arg1=no if test -n "$1" ; then func_emit_wrapper_part1_arg1=$1 fi $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then ECHO=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then # Yippee, \$ECHO works! : else # Restart under the correct shell, and then maybe \$ECHO will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $ECHO "\ # Find the directory that this script lives in. thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done " } # end: func_emit_wrapper_part1 # func_emit_wrapper_part2 [arg=no] # # Emit the second part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part2 () { func_emit_wrapper_part2_arg1=no if test -n "$1" ; then func_emit_wrapper_part2_arg1=$1 fi $ECHO "\ # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # end: func_emit_wrapper_part2 # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=no if test -n "$1" ; then func_emit_wrapper_arg1=$1 fi # split this up so that func_emit_cwrapperexe_src # can call each part independently. func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" } # func_to_host_path arg # # Convert paths to host format when used with build tools. # Intended for use with "native" mingw (where libtool itself # is running under the msys shell), or in the following cross- # build environments: # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # where wine is equipped with the `winepath' executable. # In the native mingw case, the (msys) shell automatically # converts paths for any non-msys applications it launches, # but that facility isn't available from inside the cwrapper. # Similar accommodations are necessary for $host mingw and # $build cygwin. Calling this function does no harm for other # $host/$build combinations not listed above. # # ARG is the path (on $build) that should be converted to # the proper representation for $host. The result is stored # in $func_to_host_path_result. func_to_host_path () { func_to_host_path_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' case $build in *mingw* ) # actually, msys # awkward: cmd appends spaces to result lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_path_tmp1=`( cmd //c echo "$1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_path_tmp1=`cygpath -w "$1"` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # Unfortunately, winepath does not exit with a non-zero # error code, so we are forced to check the contents of # stdout. On the other hand, if the command is not # found, the shell will set an exit code of 127 and print # *an error message* to stdout. So we must check for both # error code of zero AND non-empty stdout, which explains # the odd construction: func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` else # Allow warning below. func_to_host_path_result="" fi ;; esac if test -z "$func_to_host_path_result" ; then func_error "Could not determine host path corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_path_result="$1" fi ;; esac fi } # end: func_to_host_path # func_to_host_pathlist arg # # Convert pathlists to host format when used with build tools. # See func_to_host_path(), above. This function supports the # following $build/$host combinations (but does no harm for # combinations not listed here): # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # # Path separators are also converted from $build format to # $host format. If ARG begins or ends with a path separator # character, it is preserved (but converted to $host format) # on output. # # ARG is a pathlist (on $build) that should be converted to # the proper representation on $host. The result is stored # in $func_to_host_pathlist_result. func_to_host_pathlist () { func_to_host_pathlist_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_to_host_pathlist_tmp2="$1" # Once set for this call, this variable should not be # reassigned. It is used in tha fallback case. func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e 's|^:*||' -e 's|:*$||'` case $build in *mingw* ) # Actually, msys. # Awkward: cmd appends spaces to result. lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # unfortunately, winepath doesn't convert pathlists func_to_host_pathlist_result="" func_to_host_pathlist_oldIFS=$IFS IFS=: for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do IFS=$func_to_host_pathlist_oldIFS if test -n "$func_to_host_pathlist_f" ; then func_to_host_path "$func_to_host_pathlist_f" if test -n "$func_to_host_path_result" ; then if test -z "$func_to_host_pathlist_result" ; then func_to_host_pathlist_result="$func_to_host_path_result" else func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" fi fi fi IFS=: done IFS=$func_to_host_pathlist_oldIFS ;; esac if test -z "$func_to_host_pathlist_result" ; then func_error "Could not determine the host path(s) corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This may break if $1 contains DOS-style drive # specifications. The fix is not to complicate the expression # below, but for the user to provide a working wine installation # with winepath so that path translation in the cross-to-mingw # case works properly. lt_replace_pathsep_nix_to_dos="s|:|;|g" func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_replace_pathsep_nix_to_dos"` fi # Now, add the leading and trailing path separators back case "$1" in :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" ;; esac case "$1" in *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" ;; esac ;; esac fi } # end: func_to_host_pathlist # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include # define setmode _setmode #else # include # include # ifdef __CYGWIN__ # include # define HAVE_SETENV # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif # endif #endif #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif #ifdef _MSC_VER # define S_IXUSR _S_IEXEC # define stat _stat # ifndef _INTPTR_T_DEFINED # define intptr_t int # endif #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifdef __CYGWIN__ # define FOPEN_WB "wb" #endif #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #undef LTWRAPPER_DEBUGPRINTF #if defined DEBUGWRAPPER # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args static void ltwrapper_debugprintf (const char *fmt, ...) { va_list args; va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } #else # define LTWRAPPER_DEBUGPRINTF(args) #endif const char *program_name = NULL; void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_fatal (const char *message, ...); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_opt_process_env_set (const char *arg); void lt_opt_process_env_prepend (const char *arg); void lt_opt_process_env_append (const char *arg); int lt_split_name_value (const char *arg, char** name, char** value); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); static const char *script_text_part1 = EOF func_emit_wrapper_part1 yes | $SED -e 's/\([\\"]\)/\\\1/g' \ -e 's/^/ "/' -e 's/$/\\n"/' echo ";" cat <"))); for (i = 0; i < newargc; i++) { LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : ""))); } EOF case $host_os in mingw*) cat <<"EOF" /* execv doesn't actually work on mingw as expected on unix */ rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); if (rval == -1) { /* failed to start process */ LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); return 127; } return rval; EOF ;; *) cat <<"EOF" execv (lt_argv_zero, newargz); return rval; /* =127, but avoids unused variable warning */ EOF ;; esac cat <<"EOF" } void * xmalloc (size_t num) { void *p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char) name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable (const char *path) { struct stat st; LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", tmp_pathspec)); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { char *errstr = strerror (errno); lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal ("Could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } void lt_setenv (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", (name ? name : ""), (value ? value : ""))); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } int lt_split_name_value (const char *arg, char** name, char** value) { const char *p; int len; if (!arg || !*arg) return 1; p = strchr (arg, (int)'='); if (!p) return 1; *value = xstrdup (++p); len = strlen (arg) - strlen (*value); *name = XMALLOC (char, len); strncpy (*name, arg, len-1); (*name)[len - 1] = '\0'; return 0; } void lt_opt_process_env_set (const char *arg) { char *name = NULL; char *value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); } lt_setenv (name, value); XFREE (name); XFREE (value); } void lt_opt_process_env_prepend (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); } new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_opt_process_env_append (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); } new_value = lt_extend_str (getenv (name), value, 1); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_update_exe_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", (name ? name : ""), (value ? value : ""))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", (name ? name : ""), (value ? value : ""))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF } # end: func_emit_cwrapperexe_src # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) deplibs="$deplibs $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) weak_libs="$weak_libs $arg" prev= continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname '-L' '' "$arg" dir=$func_stripname_result if test -z "$dir"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" linker_flags="$linker_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" compiler_flags="$compiler_flags $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_duplicate_deps ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= case $lib in *.la) func_source "$lib" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` case " $weak_libs " in *" $deplib_base "*) ;; *) deplibs="$deplibs $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" dir=$func_stripname_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $ECHO $ECHO "*** Warning: Trying to link with static lib archive $deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because the file extensions .$libext of this argument makes me believe" $ECHO "*** that it is just a static archive that I should not use here." else $ECHO $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) temp_rpath="$temp_rpath$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded notinst_deplibs="$notinst_deplibs $lib" need_relink=no ;; *) if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then $ECHO if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $ECHO $ECHO "*** And there doesn't seem to be a static archive available" $ECHO "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $ECHO $ECHO "*** Warning: This system can not link to static lib archive $lib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $ECHO "*** But as you try to build a module library, libtool will still create " $ECHO "*** a static module, that should work as long as the dlopening application" $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path="$deplib" ;; *.la) func_dirname "$deplib" "" "." dir="$func_dirname_result" # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else $ECHO $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type \`$version_type'" ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" libobjs="$libobjs $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` done fi if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | $GREP . >/dev/null; then $ECHO if test "X$deplibs_check_method" = "Xnone"; then $ECHO "*** Warning: inter-library dependencies are not supported in this platform." else $ECHO "*** Warning: inter-library dependencies are not known to be supported." fi $ECHO "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $ECHO $ECHO "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" $ECHO "*** a static module, that should work as long as the dlopening" $ECHO "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $ECHO "*** The inter-library dependencies that have been dropped here will be" $ECHO "*** automatically added whenever a program is linked with this library" $ECHO "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $ECHO $ECHO "*** Since this library must not contain undefined symbols," $ECHO "*** because either the platform does not support them or" $ECHO "*** it was explicitly requested with -no-undefined," $ECHO "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" delfiles="$delfiles $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" func_len " $cmd" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then func_show_eval "$cmd" 'exit $?' skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$ECHO "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" $ECHO 'INPUT (' > $output for obj in $save_libobjs do $ECHO "$obj" >> $output done $ECHO ')' >> $output delfiles="$delfiles $output" elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do $ECHO "$obj" >> $output done delfiles="$delfiles $output" output=$firstobj\"$file_list_spec$output\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=$obj func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi delfiles="$delfiles $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *cegcc) # Disable wrappers for cegcc, we are cross compiling anyway. wrappers_required=no ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $ECHO for shipping. if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then oldobjs="$oldobjs $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles oldobjs="$oldobjs $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else $ECHO "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlfiles="$newdlfiles $libdir/$name" ;; *) newdlfiles="$newdlfiles $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlprefiles="$newdlprefiles $libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$mode" = link || test "$mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) RM="$RM $arg"; rmforce=yes ;; -*) RM="$RM $arg" ;; *) files="$files $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= origobjdir="$objdir" for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then objdir="$origobjdir" else objdir="$dir/$origobjdir" fi func_basename "$file" name="$func_basename_result" test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result rmfiles="$rmfiles $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$mode" = uninstall || test "$mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 dvd95/missing000077700000000000000000000000001140003301000211302/usr/share/automake-1.11/missingustar00rootroot00000000000000dvd95/mkinstalldirs000077500000000000000000000037041140003301000146010ustar00rootroot00000000000000#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" 1>&2 exit 0 ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac case $dirmode in '') if mkdir -p -- . 2>/dev/null; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" fi ;; *) if mkdir -m "$dirmode" -p -- . 2>/dev/null; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" fi ;; esac for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr="" chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp="$pathcomp/" done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # End: # mkinstalldirs ends here dvd95/pixmaps/000077500000000000000000000000001140003301000134505ustar00rootroot00000000000000dvd95/pixmaps/copy.png000066400000000000000000000063461140003301000151410ustar00rootroot00000000000000PNG  IHDR4+7 pHYs  ~ IDATxݙ{lTW~?yό&61`l8K̓$m[T9v6l 1HMU;TdYeK`RjQvLa5xb`=XOqŝ/*kiX|ѵ;vn57Tʕ+%s=Gii)ea6.rx;w~mpb%ն]dQ>,!2W t]GuBòin* rH P ^oQKkqAxwQ&֯_ϯ/(3"5"t!L\uB_pa)㇟oy?8իW4FrFö8pd([Y8D"(֭cTVVRWW'R<D"), )nqz҃[0ARҥ躎i$lG pU`&iZ>O#{<n7p@{de+(0 zdnu߫b޽=zPJ.H:̬ͤ Q@(80s̟?H$† hjj"JI'^/s )<FBU(OBg@4 +8]'v'ג2 t:i1LYaaN)sSO^ikk68|0/xݸ.#d;먪ȼ ( ˲8qLt I[ %$0\SqB^dy\VUU}j*6oL0$+<-r… ̳ܪpo}ʇj!0VWC"Rߢ07v!ićz$PL_PFK򯻶ODz Yn0\Xa`Ii:OBQTUc^޳7%e]nj57xF?PS4"+>yLG޻eUE4E:.9STz1mXCC膃iInAGGG;hnnL)3,~1tP| N D@@%+@Apߴ0Hxzn`)RC!P?/+ >dݺ[os o]_*kP,OU?ŠŞraC4 NGXPMұSq0;SWBj>\D]].ѹ!ҥK9!ny%9 I0)``& IHB ۶m۶0u$P,<|Dϕ*m*.]iɓGzરJG(*%fjii+V᧪(+.), GuP6Hl,Ƒ6m`*}tttw^&MĊ+ܪlݺUtttpM=}龘1iEő  ˲q:RF{9s&hef޾};>ӧgJHٳy=d2qF@rzawWŨW۹&UVyfB#e)tF;S]m7=y2|5\ۉDt:Ôض룰b2~wR/H0*R6Jۏ?OBxR.sT߸϶^b;vLiG}(v)x= B߼S\xla9Yg^A%yE"e/0 榀Btuuɓ'ON2s57RO_cJTAgRNUA)z!чFO-p')}(˱Zs Uu~7 t5^WTTT߿fϚ)&YY%xr$ٳ%9Ky۶v^]/r]K䢐ǰo eRV| K8{DMMloo'f7MTJ:O\_Xf:a*m#R} ;">Cs36̡̰h)1og؈7()766ox?=ŴGyd@h*%G|A KY~.38'M|_Ÿz;)o۶p8|ݞrzk+>-BAӴ'_+>FұAZ $`qC|1'@c",23?m L4!*.TdnZT IENDB`dvd95/pixmaps/dvd.png000066400000000000000000002173071140003301000147450ustar00rootroot00000000000000PNG  IHDR,`.7 pHYsgR IDATxiGr6GDfUuD NÛ!Gsi4+ɤѫ}ͤ]۵5[_֤5oH'$иudF~̬Hã`ʬx/\5^[45^cxA8^5^cxA8^5^cxA8^5^cxA8^_4ʾiˌ/WjImaqfenyy <ޫj$IӴl6 kT{ZBp;x-r9pʕoܸq+Wߘϲ^zu!8ٻwZIx#&#4eSSSSSSm\f5k7l4555њl6A21߸q굹/;wիgΞysչb!s91TٷfjkķHD,.v<2qCsy[PE6ikfֵS7n^~nݰaӺu릦Z>db79N;n;v+Ϝ9uٹ׮]vZ\6DnONM4ukj5 c1ZkU0J @OԩΝÏ?s-vnP=ٚm ֵ-6{>D$UUD$y2H YUCTcM+=G"P8"Nr._?usUVUc5wulݺ6c~ ͅٳgO8oܸffjr]vڱ}5  @ laɀa4ڦ"RQ5T「(""hQE%E@PU/$^qԙN^pDkj-wu]w޳{6o ? #^/;{g}9rҥK כMYvwھyӆDZǨT"PM: \PȚxA*짪Ʒ+_E""RU5"X&uA;{|r 6ڹwv'7ݻI;a BxѣG\zϟ?3fggnۼkזɩDS5 skUQnT~"AMcupKR TG WUFz}ENӦ pencgN_X~m?իcv5e1 Ox?(kNv{޳gO{}0(f#A! "hPA@!%DaI#G@(h.ay${"M4iP^EhM2,>}vͺtynf͆{{wcǮF1-JBދIpʕq #r(mxBg.)D3K%KAL٨6u\fh/D칋=~53zw-[ǻh DggΜzO>pmm޻mmteQSuDB ij}BTQUQ!eFԂ\MB*?G Jdvt)^%ryXh˘Ly% >iIzVsܹ cNH'yǿ?{vK:|>x;gϝF33Svܽgך5Ӡι U knb&ƚs!cɲAĐ;nj7DT@A t%2 F!RcD2EUZf&"D̲ s/Bȍl/]{|鱓'Lλ{v!cۓ'_|!٭/~:=3nM(7HlP5&@DWӆE!2%ݯu'H @E|A5 "* A\ 0L@1"KQcs5ѰvB$A)RzUPɳo|ӣ'֭[w~G}{;o3fc>O~kpssGy;wz4lm!*3!rt:T(aLT^ (_Fƥ!O[(!eAXn:hD!Fa,YgM*< P `3^}n݆?|{}|:1kʕ}O?'^|׮?oǮibD3̐WE U %IeY3mYkEbՊ]T :>F@H5hK; l_+"HdkQr"Ԉ((&8Dx$De.gL"DPA+ nfM”~/sSkx~cB>|} ׯ_~Gyl4Mӓ ]AcQEオD&yk X[7JH$kA t {*"+pa<$Ub=眈 2)BSBDQFF#ϟ۴i=C=c~KAIr̉g/=;w5}޵|Ȝ˚gfJPTD.|'i:^[z_zͷ^t=pܱydӲv: "l2gL@n-##?11IC,;*(J% 5b /BE!@!"D5_#r4 :acqE >QhPUffs"9ED՜:{⻇,w?>UYpٗ_}.ϝ۶mؽs+`I; a DF쨂 "D0I~Eg&1.xXwyUA"A* @B"s{>K\E$jq'*~*zXWUx* ( 0==%K4m4''sݫ.5mqw{kʥ#G۷ 6zYׯ=/~|tߕ6HBX U9"`f+"DܞBhZƴ텅B$hKj lL"ϠJ`A;%bBx(v9KAXBDcalJ9@tYe.Ic Oo.GDddBs^,"޹\ :֛=?OjNAM ;3>/\r~lظIDsCd )jD ( hD*cIeee-<^t$P4JytE9W%M+!.c) hGU*"l6,D٪zFQ~z *d_Uc?٘@OxgmG?[UMG`k/?~͛$)QĐEHBHDD "!h*E0DH QiD,\K,9R. zma &&H1SVaހ]d1["R,D!JDѵ.X$D, {]D 1 *xiM7ojON>\?۷!0x[X~zPEЊEbI`' "AYCKZE z!!0OS]Y ##7 ߄</g~ع?+!  APMRZ*ҿ+nH%B 'HrV"23aX̅{xmϖ('1O"BK:+KR0DFx/+{ UQUETJjUbvΩ̦=1ysjMl>?t?_nݦM_/gΞ|s433|wr,a׀1z < VQ"1Ec "&ϯ+ 1X>8a̞G* A7\ º2"R'X(S­UzF)A\>3koƩ''fnacs?{ߝ=<=tړ-B :*" WPf};Rjm]8!&"RJ@H%4+b}t@ಔ2 ,󘦯z uk7|{.GX!x4%6Y`D΢@}-[szjޖ$o=g>ӿ}7%,TEIY??~qG#d,CzXK=?-O?t0m]t'տ˟ڽZi AԇJi HЪ`|LRu,YhVb/U׹J0ҍ,ĩ.'^$WDRH"8l!8f-QdPRU"ILAlOPɀj@a$fq% 032X *؏Gb^%(3%$՜`^HA" !0];ff3 wy״G /|aK/f?6NOM}b$@Rm5*Ā$"^ Ty)" #IZ܊/hSU`QcL GR˔/Šhl"!*taP@Ks5@Aвk\8uxu0Pjv\TU$CĊ+l1S\ q#]S BיYv_:qپ}k~B}moO6~'vlgKY -,<sR1%%ޗ_*Q✋MJQVcE#Ee/,):4)GPZ)ݘY K誎*Ƙ$ID$8F@ npm[{~Oz1S O.v{;gGDmT a{}"bB/B8Fi8h2tO _̂0r#iZC-:CYyʸH 6[1_@]߹잻W Ϳ7n[\[alO6<6 Ui:fV^7󜙭D,Bᑚ_tUee3>_P+}_;C')ޘl6命#=U !*z՚4MDfIsM$2\j+P@R3D% -Im#`Ip IDATط\<rPQOZJ+/$Yb" '\#N5HS E2)BP $YoO!ܹg=p駞}#1c=zN3rM~ !d y W`aYFPLSjIEXk<!ۤ,WDW : h,sY55\I "j7[̸ h!殜Ϛ EPPl1ؚf9=3g|(_~dAeN魷z+׮_{ضعj-US[5z1^}Q0;fCd:n߯􊃉Ke@xˀjxC%UOU˱\tƍ47jRD}EwUVc b(i4s29ٞ$k7(H~{1O?ÇqՍW 'Oz7;ޱ[hOYdϜ2SmS-弢-Dkk_%b6-R,U a_"jrv exLw őN5C8eGUC?@9@N ɠBY#G"`^*T@MxBе PPEML4,s 7sADF3Lsu }G>:†j 2]k쳿]olFֈJZcRQ^@ ۦ! xEOȊȠU  2P !bC"ADbs DE4(iID$sU%fOH(A|]ɇe9`B@ؗ= 0s,-I U R \HDL.4!y M6)"@@VZ|8#-1ēMӞPATE&F@(>g[1 4)Ml0y ˂ 2*j@$ĚzDDLG>qG+V{߿ivMӓS 'd,[Z> P@!()dX @U2.jlIțGR3DWkV%ZV Y/4FMX8+[]a h̳)Z֋R/2'!$yW._BJN(jPVe@@q1&!I .01*{!Ad4GZC!^`ѳ= bFVUNT|AcUeGL[qjV.oy(sdlGR|,V2I~9=rJ U`QQHD!8kyjm ݸq=3rK eUѯ D 0cmmڷѫ7/X^_{WmuM"X2b@"Fg)f wςHJDȄK^P:BGf^^.q&T<ª7[UD<[G˴^U_qEe Tf"lCu'G( }n B*#6$i$i6E0h $l۱MFQ#ljfä 2,(!4 ! ٻk }o| B8?ϻܻM5UUnIRW u#{ER"$z2aTR%wzj˞Lzkr'i)d"A%\aD2NtbPŏA@UQ HGuW_j0ƴ̸xěrt0"ZY ""%24{b_~cl…ou]{9 lRS-#ÁLTPJEʩEJWc"6J|yx#bkC֚V PCy2P%[UJʵoZE|4}dMu5[ xQEk]:LR Y'.j-_ϲ0)wy3r 4b1:"rJeHKHI@[cοW/}A&=vknMh}4:QD 3׷fwnvMQbYN "5 yGywb-}ي:YT\E%anf%e-/SIM%Ie3OA͋cD,t) X"6I#K 1rϬ6={w̴ʧ~b }{Ax_|qvIW"ZU [TƂ1oQĉUDPьF-QOhB,6MRQ*Z^%T/.'%VH`#H,T۠몷ed[GG;8rSMLvۦ5mўo61D-e_@XNB,g͗ipGiAorX҆DT^)[!༊~jl=/zWΜ9sG>zg?cq4D~4M+e}(U3"P!ZOCe ʈ"Ho5sBpdl;{̬zև.^N[%\6,%5;\ഈP*ƺv"/Oȥ֌/QFB!&Q Uٮ]hC1?عz}w~ÇG[“>3رY6733i?rIfՑGHh-U@/Z\A0e_Vؔ6RQ_q Zeʱ\a-%Hoo5*:g9 @1EӴ48G2qLA W%dRu\|=ʤPECTeԤ HMD71 맦&wݵkzfW^O3J[ C>v{noONp.\ ={id͉o}鋯!V谜hf<#V b%/Rւ^[ɗBU] +(o+DĈ81Ifc˽^/^ZLRj4̞=Ν;o^~[B":ywNR~ZD5^z?F$"lX[TZaD2ELDE4V `bEC;1&562cz*>d+V3cZ7KaՃCykdJ$&MmCfY]wr2U5W28l %Jh 6`~+q30DY7v۶m6m:r{ O8{-oZ5OSCYj4~>[03*Ci(ۧ`EU# 3"XhJ*KԸ)2kT> ;~`91dW.5 Pr&|rgb}kI 4IKWyT '.,j WI!8̖Ml7eEA_A* bL@QSq rxJ/'+`@e&i$z׮O7u0!-4L;c^77;^?؜r6ٶ^&C?z(݅n}f,i;m&zN<R !G btm K)aCPp!yP('@|w=TZ9h11d4(j0K@U$ E`A4:bvXU~3mcH8ՠт%L9B$C*Q~[Q@2\_ԧ } E5_UГ/b %,3y>ٞLe.@5@$ MĞ"c|D)Q$ *+M*5F,PU`Vqƽq&M dZt)ÉUrA{$ Rgם֦^7#;wnuij2 1xgY癈0'i4@_rwG8R$ "YP(~3"Ā' Ra {O{/ k-z!xA\E?h-gRT< +18W@ZJ!jY" Po[y(Kkcy#M$ AaePC`Qx/ýC͕1Y~/B5{Jf32z 80v+,?JZquQ 1VJBKl)=ey/2Tu2{XC)1&M={vM[iJ!(S*EPw1Z (4j6(1rULQ^`ɢV'BiL0h!Y| 4 senIM(j̫,ebr71^!2k )~8ȑiR FDTsb !AQ3' (QP%Cpwm߲vkp7lŋ?٭Md$I)j GwrȌYB Bd%9 Q DD`eTD)ۈT%$IR(^W\EǓQ$n@KBzD2 3eM(Q=8ose&ApEempkTG5;j_ݎj`F03ƒN@Eg\E aiG!8ֲ*ǐ,b>gy˲^E-!3ZGʖQ #VB νw:}c4/:tvc0/ T AŏPŮUS DW *_:,qFFDԫ`Z',kP22ČA$>%Ih4PARtAB,Y+W{xtQWuN!?s!B">aͺ@ cBrֲy1EPD<3[ .S/Cت+61ٮJQ< 1ET S5! >d&$T!Ը!B~H 6ah-훧gZy(i/.:tnLLZ_V |f2H0*|fl ٗ@n,Ik5FVGË`X䢈(f 7~ÆM" )Ȁy64cZ+#+`H(2KƲI$,٠ "jPYjF֖V#w̗&])\`Q7) VU$h @)R5">.^bcHiIE爀Pب}?3&o IDATsoݻsfn jR_ wblKDy QBeݞ%n C,"`wSf!(+HLtekX`t1|3A!8I,ۄBtH66.ˢ,'u( ( ~*fSTy֒hؐIriP"n@6IyQh3TyC66YNd&ش3S^.D06RL$RT0sblql9qYNgng!$FUDz+;[>)92rf2L&dUtU5rԐ\ڍԲѶ6d7` mCnwɒJ*$9D<ᜳZQ%~b<$s޻^{}9&jT";( U5V`&qϫ~t/xP$B!iW3t1jI u+0PJPMCZ/Y",^K]P-?粩͵[ ԇnY@JyϦ F䁷1zu {0ǨGWv@:-""UĒ ~AĪ;}:"0`H dY ZCDn]+#VTVUPiZgQhv6n^,5sNNL"L^ݵOBDE5 \H>Zy&iNh"˲ݝ, >^,K`]I0s DA\?T2UPiE(qWL *1HX VaW)#Pj4g@ b65PD#`x1=3yvgofz^|ዐ߻G }I:fI@cPX\T*~)DU?0"BECFGh\M̐c쟱U07 _~җZ#c`&hss{?99YE"255.^۹~{=X|СCcccSS j,%Z;Y-mH&PqRrJejf ,^ 3Il L5NӘ9UB]'E@x`p{,qz8͌^uw:_"ظvӉh]pTcHG85-"552C~)J&$aǎ /ѝ8Q13AwA?erAbƤ'3$( Mk ϻ%* %.Qﻝ&ƧVWGFF+Ots.νTkލ[K\tee:=ӧOzn{oooÇO>mګ{iK߾G?]{xVL'r>H&UU 8 ιZv{>);3x;s 3\i04`&fA"9r تU>K=XJA+Q<0(@tz@=yPMӴ-Zsaa{׮x; \xեNeZ332ɂ DTl˄bU|] g!U`3_Gǜ0+5u E1rX WUA~e@J:25nCsqbdi4I- A\Z֞ _ڥ70ZF.uڣ';wΟ;]8zGNԼIͽwy{[fї|ԩK˿ɳ>no=z^F]L4H$-sr؁#s.MӨQ;P5e A29CXl?wUUUYq1Yhϯn)`6׃i9T9 iu~bb>|ѫ߽/X__+Y--1pʴ/~`:7c*AX | )3iLA%HG) Q4 UQzJQ B@i*ϒ}fTFtk֗?~;_/tYVVZceBJrܝ;O]6pl< Ro6znSd댍O nln6[u腥eY[_iw;W~޽w_-[d|٬g TfL .$CRMM?QTT 1T :B_ Rfy}~- ql& $hZ:tד<<7Z_"ٺxLEB%eY"aUR@0"$ÛJA:c0djD&L.M%A ȑUX$#@ZF$)zSERdfN|)fĜ0/' MSd^r՚7ߑ_8M0^P:(<_P c#Ӕ_x.˲4677J.gzvLLիn~3]xkSӣ#5NSȦЧH&Q&S'\ j%RѨ' SfD,1&sȪ"f2 ;`1qfbUtC՘$cxZe4eB+%Y>%ea? sGyZ}!0oC$tљN"Nȼ((!B@fT! JuA}P* s scYCePω2!:e$\+S (H0P>5vַ$^iƔ8mLNMݹxW_y~׏>s폮fNPO;zc.¡ٙu{{+OG|xc3vGOt/yjr7ޅ/~W?u(MlnO=xxѨ3xÃ#5m*>hdJH|]Jn/4V=[Y=zޒZVJظ`q^_____thً aT4M{^:Mdvvرc^xU@d~hoGOff'oֻLJ#O[^y\k&i;Y"pkQ0?^)Q:'ՊMI  aB5YC)k -M&`T*0.#4fHpv$qIj^Bzю$(CztN_"񋋋^9̈/5]^JY&fS98Y,q PP :N|jjL#5#`ƃh\" 7JUѡ#J=Wk6?^y?Y~wݞљW^|lmG;;;Y=v̩'g4]~&IRFkkk[[[[[[n(w9rǏ/ޛ;455s1`$O~鍋cǏ$_w{g_esS߻sΛݷY VICCHI1ԅC0@HՆjU ` (E?P )"(#G)0Aw Y pŊ5$$&\qZgj\xE j@ Xh@Hvjnt/̿rdϜɿƟeSΜ9ҹnT}'js/tnx$ 3u:^755ŕ̕r v||{᥹Ç^GMNNZ\\LӴh 8)e{홙ξI-νʵ޽Ϟ=Mo?s*L|'ٹ?EfS- 8^!bR!TQ ML:NE\4đњ-L#Qh?H BK"DAc3L zjfViQEՃDb%<;?ti/z Δ3''r"|Gǎ/ 'B/>~Zaƈp  d8NL PQ*0 #"*F(hPQh&(ՔGi6 j<1s8!0`fKyٝ?]\8G^?RoN}v?ϮzW^0uN~SY<7Ѭ("1WlMcD$P6nll<ܡC !Y-;FO>ldxRܹ;=3Cozԫ_;:2R]?V 03#2%_Zj>1OiR&f`+.4f „f1b8@DP|V¨5@gf, !t:N{/s8fgTZ}TmJ.uiw.Iڃ .^P)¢{[O?gFVMH^0س|/IEUoϴ|evf}GJNE`9 Q͑{%=9Jp"y@؁0ؑ1# fU wK"j"*!v>(?:gT#5~Qq~h $"nwӴ+ǧMQ[7$;q"@IXF?H<jߞa[U&H3DNQAU4h~`\jeDP$H"Rc60p+(2vZuѽgnyhjΜ-L^z?f,Nϝ|ԩӧ'gY:B+g 5y3+Kͺ1S9411:^[]ݕgjabblfvPR67ϝ=?5=}ZP"כ^6jLJ0##&vuh 9FĜ)'BlB&%djBFfmI=.oѬBH?d`7ٗi,uHRvsC GMEȉ{ַssS#MbIkXO]L6=0XA@?F> Bj A->#EYPw2$Ҕ"KMC!(LH.ЂBTfsӁӻۥgb_>\hWj^9wanvnhxDsBDZ6*LPzfhBbG):1'I677g`3/ncccOϻ+vԷV&nolxrw+'Ms&ʦDiPEdͱ3N dd2u  %} U+2#Q4&+-pVɵ㐝"* D@ql bGUJ@"D ,hყs_8}q/ IDATBb/_GZ5"q)War6l`Ϛb`]iTDC&" Qe B B}TƵH DKN Ճ/5oZ%ihWv,Ghb< Sw~×|>1߻|GZc~`/}y5ByQeC@B lSs .N?tБ7@h(CY,9[[k;;333Sŋ^ov~ժ߾s{||,D={!KZysh L "X K`=ȊU(J_,`h(k{U=ƭ/<smVd |!Hɓ'+D׾nc>"_<9|tJ%qx\Y€/ =bpkb_!SK45S2c34Ⱦ3 v4ԂH&C < 9$drAT}nEفuZĘ$j煪)$GT?ePU!ŠMDb, } Jt||ޝOK? ylyyyccchh(Mhb`}0|?ol;+&)bA͘WMLⶰ/uӥ}DW9@SP1PU13ׇL,e/}Ws/_wKKKEI#K.5^mf`e+n* }{-_g x;U" G7ַÇϜ9so߿sڵ:ungwlbziygbj[K]jҺIإ Fu,y$-W='&"zPu }Ӿ)DVWj](sDiD Y~$PP T$1Q4Ç%/Um}}ι;i zH`Zi>(-*o,HCD:-bh %j2~'dUX:1 HjF}hF*8"2JiHEz+@[壻'7_&Zc_y%pܙϞ|{io$k?r[cz=DsEjJJTx G2Z5@@u*#cSĥ A@ǎh1}c}kbrԩSZZ'|OG~W;Ӥlٟ}/Okj[k뭱 b2z8Wbøً.4 =zQ  'fr`L)1"hb&`l``4 "T:Iӊ;4 b!>yfΛE4HL"94Ңi- Q-E"1aY=&!ʘ">K1(A9,Y#4($*sD Y@ H=`&YIJ!ʙzmnm߼~KgB-w?XLCfsmy$6nPuq CL-C<ĂT4sL0%F@714@&rjv#_&ѡ[c.H\;pxkϿֿUGN\Q`RKA 3)}% 'Y,&gΛ'F d(DDbKA$>ay An=l6f` C2$Lb뎦@RMK-FtHPDߐUؕ1,@թ+}˘>z=-BN'O YkiH AbcJJ Pe#Cf \#)#"`AՋ>v~i( q5#^M+UG H&ş%1XZc݅0rS_o9qvm}N}O[L/,\S9H" JPV5U3X 艆m3"$) Z@qNUw `a-h̬aՐV [ȡgS3k/ĊB,.T'S㳳s3̥&%.v*FW /"4M4")x AT' '&ڗDT.WJѪtָHQGp(X@-dfDXkmwoo 9~xz"v B͠scAʲ,lnnloow]p$FchhhhhhpDZ^^t:L1@~'$ZPȲl@GwvF;)J>X~k/ٹ?p!g)fJy"C8*q3dUHL 9 -. E- haSMj FHD1`?UBP7cr,of1)ѓ'+_8ssy?!ۻNƚ`h5FFF4e9Ewz"B TCOAcBxeYGJ*hhjT2M b9b teMHdb"lck*fVZ@vsۏ‰hl可>[߼|g_| b(}=0EO$A,tޗeYN!˲fh֢>2"{{{SSSEQloo?y{?111;;=EQec9b AMwc#/]8֝W^:ttgDxw{'ƈI1Aā9 D4ؽ 0C JS*.:Q2*BRB0DǪQ'ScX Vꌎc2-//ާ{'dt:,i z`VWV9ηz99:fND$̈Hu_%R~ ̡F"(Yǭemdl5O?Uol?^_QG 'uN-IYD 3/bgggyyyiiiaaavvĉ=$9GA$H\#q<3222::v޽;wzÇj5}ۍ {O,dsv-䓏~GO9u+/\t7ӤL A}#rM$x#`j @j4HF)UchP *؂7Ck_BfHUUt 0A4(5,\c4M4)^Z%Hs<!A%5 Eʷwh!b<'CIDEm6T/c$dVD Vf22#@DR4!@VHWPMrԪ/[MwݱًcrXQ0"R0 ,!lllܹs,'N9sfaaarr2Z*7â({^ۤmcbN %.~Ǐ$#s94V {k+KO^{{νOp舳렷BSc5RU8&쐀SLDEDT$q JeCJ adUj}!qBĪ$,)`BjmBVܪU=pi'K"摑fk8cj%=U;y!:{mHhbAīAT(;;;#O?eYeBPLB)' )I32a BsH`* iVsДK[k~^`O'Oܸs5Mp1Hm0"@,ˣG={ĉV bkKKK@;wm6\՘;DD*pǏÇ,*t ̆ggg'Ư~vܹs y{山'N<7tgi3cŒ|YH@fb9=P6h d!|ևyc6y1X\]`fILz/*ڏ+Jlι4jZ @n{wgm{tiuyuf>=aYnoo' `樽:5~x@*ׯވp$I(;B#U@Ӥd* L*e RA8Cc7vRwɫ_~G?^zC 'l[Rx4J]ZY%*ʂ?~:77w'O:ى<ϛ&,}ieٳÇN3;UI5$qܛ6Yr]b{8'3\CWU# p(|'϶r +ЋP?zhG1`NyfݪA[5<}^{;F~54dݜ$Nszyiyi_C~w7n7\˟?]vPR2sޗy+(B( 'D\REU qkj#xTl"$b|vP G"/c$;]Vf$q"E(x< 1"5jۻwtӒ =,EY:e5ZABS Փ-z4h4lZs4ʇ}},:n 4b%DL)J<'T 49!q59;݃!*W^./^^\bQ3 fIT6*߾}{ff駟~衇ֿn-F133cA$I|p?ݵvb$i+߾yfn۵o%2I;x`4Is`R1JX6Qʈn'UU&j61HHWs٦=HNE$ 0c#ke͆>idIU~`gow8@"CICCQ!rooooojr~2!x<!qoaT(x<2r5{Q=w( 1j=JD XEڀ.ѨVo4 SZ]Q=Haww0c֘J2)#qB!5\^Ɲz__Ν;_6o_K +K[&QR"0QC,rwww}}9?#F#Ƙ~0Yޟ:u1a}140F,..F㍍ U={lHĠ.]ܼu֖!Yߖs^D9r8&V_{,[wַbQE݅rW jɹ,*QD4D) *`rNb")#QvB - pW'*͞:uhj ]eagiSrWUTVU`T&<ϝ+a[f43fN7=[s"_Hy)S4=lrelcܑhyQ&l6Yʼ2V8P(@ԻԍA??}%uN`k{Cio8{ٹYBL7Di"1 oŋ>%4Q~M3'y1gu{i/]-:]^*ֈXZE#?s?i3/?w`R+\=S"1*ڴB+kvXIvbT` Nd¨|LI 1~#"Fx#'Iec+}81J$<1L cPQ IDATYS{;O"TWYMX\ijܡm Ȯps|(aȓF?Z-wNUUAE@H6Ɏ evv\:׾|{ hqaa7eY!E&Q !777gff._<77g,ݻwCss1|^oݻwsfhx~7|s{{{}jAhBcQ 0"Dtfu駞?֛_B .\:HBy03Wbf F' =VaHNY2(0aNn V>(#FB@:[@XJ)@*jWU 44 Y~2a'6EY rQBEZiGFC@40ʙ4y5OmHDq^RXȓa@n$Ea77b&X" ,Q<0;'0cЙM3.kwzsHr^iseYviQ W0Ѳϟ?lo9in'Ċ$LnmmmI9ŋ޽zCCUcόMMDfgg ?襴k73g S7*K%H PN*(c j!`NaT FңЩBԨJqEDXZ_e45B!*"Ds< AIEPa"123cQYIr3'ė@5zHP4D + , UQA*{ ctb)e@ AD͡Khk3O"!jQFe'%} cձH, q(%;yT!ΦO=s~a5?[{.=mwގK\92Y);B2X۸{WD}f`0{L~66O/8/("RQRE9*GR4 D@rHUd@+P!jvb(8bgb*LԁTc-K5)Q 1 KR!e$̘$I窐$Ylc$)=e9it'7B$w+ D ⩞!GO+m**O0@4u$佣! 6eZAfgbY Fԏ|8Z_8q~B2qan׀ߢvvm6$T.p4- IFa@ H0V1bi LX98Ҕ@gF{S""rhu} ࡼބ'8{yQ(a;!PZ$"4og~B?36~j+ڦYu}xU7tމ'xl{ډhtQ+Uı?a67zvΉPѐ\ 5ְ0Zf62I| 'y`u*Ya#ud<Q@Q,*Fnc1{FQd v(Sk1fK} `8ۗD j~Ӊ'Dۭ]k{1=>M1S|z_2yEBU$qe$C85nkʩ[.X-ERx-:I( eYhfA""I4gG.6} E^C$ M羽ͯ 2^5Є4(x1 OY;*LҲ,4]^J}JoY2ӯ߻auPo}蘹b˯xg[{+˪$IM{fNJu[ӆgYm[heDTע$0R®w++_CE _Onl\湕S^;;GŨ"?V HE QB4 ;b@/x rÑ.$D723kpZO' k}$y^[ Oue޷(e&$%R%R4?Zw{ ؟Y!, ֿgLЦ&_ۈA0zZKJ#@Pwi5Hz3LF\PXj2VH6(obn]50sz3~L8YxDnkOdxĂMi{c1ǖIHm} |@VXBUG\BqYl.Zhiƹ1{ԳBvM uB㽷oaVF8*)4)bh6N?,C͝2? 8c !xeBDERVю4T@=h={r k죩O&}Ǯa59AXw u^Uz-㾏pwrBY;s9etϽ6l6á5dmF [kn]9[L]s է%Y"zOgjDp21cw3$u~Q#mt.t1(꽷:gZOҜ4u$;'|3͇bec,FOn0+@-F/>eʒklV`??{ñuf庝vvv`ub/"KM7lz5"@\D斗ۗBLĦQAj%e 8]c|M?|@z\|Ua* /8t21m{j-0oV>xʯL"AֶaJ4 o{]ǒm-mMf497V`MЗ~?M*ntQzbQn7I@$r%I0TsNQ4ZS޳^6JWQ>yPN;XIۑ||(ɊpH&Th65[>*G4-cW>~?O0{KY!Ȉ $ "nnm͜ot/xzix!N/{c>$QVkffʕ+{{{1Fuڌ՝;wʲffk5V+۷֗ S !#%@D`:*f-fSo?1%կ܎?q;I˄`{"N_'ct𓜠>&NkimWghZ*VHco4kRRuTJQu" 3m}$J 6+&C`Y__?88jl'_"yn7"-;U~+O#JYVC1sossro[-@GgrZ*(ǟj{#&~+m3Gfaf\H*`¶iHO:*D!rQn51捌C,*Q1M۲V?DŽ1=WH "HP(6@@xx 0MT)0#3GZTf~10q#Q3i x~O|ON.-޹6嵍f x\QV k%u&NϖW;N6n߾|z񄛄S`(b,Wloγ(hAʢ,Z&D,!Kep8LSƝ077>>?vvouI9F3 JP&cD Y*үѬ' l$D`7MGӝu]Kh<.2Ǔ1#ɢ1(*pPQBfdL$qb?E4CAPVu됫Ņ{鱃c9ԗ45pnґߡ,KG8;82;DvZ!~ggg4"9L؆" !@$wbwiz.~񩅹ٷ{Ce9777ZN+++[[[W^}7N>;;=^[[k̽^PZEfYS/)c~3louaiդ_N-EIP`2VZ*x1`_J8AH v=6G&p_4@UM)8Dvv:L'j: †Us.ƂFVo?45]^ž)MxѲ!h Iy}µM(%P!E>7o#H 'P!wש[U!EՔ}k_\[KfABX9uhyv GU=}kzw??3HD3~^ʕ+~~~~Nu*1!%Vr=n/nA~0jP q{dAAQgȞ~ *(9Nwr&^xH=ÒIfzA 2GaTՀ$I4ͲO.ewjKD*X,|/cQS!@ofd9kpVx1F!\ pU *B}5>fа]$ILDާ8Q=G 08lJ;GsF0(2kDAǡL@LCzkn׽y3K2/MQקܹsY=c=eY,zoٲ,wvv}ݲ,MJDvovS'?鵅ӃaH2AJ_~A%IXM˘T`JFDL!Npz$B'@Fˁ8][ A tOxqvvV5b`ow7ZwDeYvn<4R"ۿ=3}>h6V@ F8 68N)$Ih&;w܂2Bifb9U^H-CE.h 1PZ4vPH(RX~sOr{瞼4wի~uAL[GsSO=o~//a`ZO}F㰴$6ۭ~s{뮞YC֕c:'A9DyP3n6^}g|d4G 0Q":%U@@=4[ GO.B>JkW5is;:fTm VU#q&!7 LBcuwcc]D$H1@3;77w啕xm $Iz^>:(ct(E4QX!)!WǑ̖ !N2[>v_ SGֶAT6Dm<: J̾¸Sv ")z$ ܸ[;KkYw2#T ( =7b(X c$q !򭭭>;x$D! 0{mWT$H4*ˤ l=+&@QrԑC)TI&Ap9G"`0LCS@(H(E^Z&p.j3\<bc֫.s>0J2,->5LRrqEQiXyҎq8渎BTw5H%+jr&"ՔgZVbԡƢ4md (A^wOtv[+{g.;|qӧOۭ=UU狢q__~IӴH|0w0il×_~ogϞ=N53 Pl`p#p\l—~ϟ~Ze*q`/i'T)4md~VbP q2JT#vuJPb Cٲ#1V#yHeE-T0;D!FbC$3C|ӹa"hoy楟:~+?[jw.ݸcO۟g[f_03_-9/baa!MFqʕW/}XAo޼mx])jܩvtʲwkzΝ;}tYug=:FDNbvEogΆ>xh4^XXpR+-@㨌CW` se6O|lp1(.8:"F1cKJ !2imE1\9"NF&LsY""B$tL,R(fLX2{PV!jȋ4k9Eep"U|x-쫊m%ϊ*!V6s0k D+ ͽ⛻'/[KϝADHHtH IDAT "A%Gk3 k!1D1T윕"(aD U:d!*PÓK?4:9ZƪH$ڥ؍N$ FeBHdii)|\h$"a>I`ZUcՌXHf &Ris+xSUcmhJLIJQ#2`BcԑHpn/מK77̝= .+=iC[HZ"I noss{_OW_}g-*YU@O[XqhmRfW)?NO,,:}tɲ3^ZE6UvOXF#"j4fVCSD84 r;֞} /8 Y]\[ѵ[3AA Q<# y` iHDDG EQLS-UVZSP'͕.;>Z(q˔FN"z JhJ-DONxgBz@"(XRlׁbqz:>@&D\1ED4 z4~$:F( *+!1#% .#8L%@(1K`ۭo޸8 ;ե?O/\077h41-D !Վϟ?wooY+/lQg3uKtWWL˰n,--X7^?jqd$ 9ps3-o>?ُNwܖRcŽ`(T-}"#;BDQ qfr +Y> "0ruYԄ$->uewT&"QٗE4ÉXJ ȥ[!l6Rϐޤ(ţ*.˄L.%sj?l>J=EDf `(T) *)c+# Cq,sKOq;76y =䓖 o CtŽ_0QvZ&63,[]]]>l6WM wv]ŭ[(2Jj0+{+/߾s V^޼suvcf@d,AeII1(QX"8 BTAPjAr>Q0VD 褏1 :&8#0-K4 OVV>z~eʲLRR5͏DH+jvF"&=:ԉǴCu!dwv‹"QD릪|DDvΥq, DȂ"(Kt9cH]'Pe`Ȉw6{Eɋow?;=K;D"QTunw)Bs>I !4 (&4jV!1]. kٷT~CUcD$S\ah/Oga&( 䱔%` 1%zR|T[;O=b2/˼?w3gO?s `$81؀0%JģѨl6Ͳ,2WxaFlY}} Ͳly֬]C!=͵2wfnnoC.;f{<|;ߺ{niՏ:N D$QL}Ԑ2sE# GRUшQgf"P5KTPT3WDBԓ={Xu5c<"3A#DW7BD/#-22I Bf$lF/ŋ^暈r!2$Q!DtD!ʞ3:APTեRs}Da\@Pb gQ(FD*PLH($D"d$hX;)YH=3cD Бr12jB`޶!".ud' jZB  T)kA%!@jspa(b$̈)p^ :E&D$FFa05ucR:-JFe DE(L:e?)&N)k> 4cYssQ(kn_~ngg?p8lvEQ[snsssBG&nDk*4*VzXzp P(YAV|ږ,{^~S+&DxŷzG/_ݹ<`c}6|!YdWbcH , c CJ\HY. 4QM@@^[WA f {Աs!BlF9J%D$y v!8g*u`jۈh^W;8羢} k$?lbf9ĖOYR B9`q,GQƠ4XBY@@9f +P@$]^SxʠX$ ''2 MlDP#0"20ZC_Q <勓%TAv' qU8Āx?#5.rU4@1H j3hHYU%H[k$3,#Ff52F- sn)kucʡ"alUA 䩋8C""%8.Gn3ƫo<|qk,k~k^z?η6noH(E'L Uka*q;Ȕ jWƎۼ}^wj يR,Ke^g}oa/̓.-i,/?|kՔbna\BD @AQ)BdETPcj'SU2F@ĠND-:DrUp&B8S EH TQJDXCښN9X5.--}ڃPE,dyy7;|'I)ǹ A @#@UzfFENLAmZHI `VRG ' 5p|cc}8 #s(5(9,#1hNB  HQX+ʊ"fNqTnb\uo|{77+o೟R;OWv,p<fJ jyS{0rJXVvV nq4!?{嗝sz_{ﮮ+Scmo~t"qe,)H HD"b@)@cD2WNU@J f&B  !T$9 AH4 .IdX+ ّ@`bn*R~ɧ!&:J&4yz7VHRKO0TP1 gY"((QI$FHUJrj;:RA,M TB|ccD DDQJ(10u(%W% T^1#P)O0$dz]cf$w͛;_Wz݅,rҘ7UL*9g4ؚ`N_a7{0D B2^TB,bvvW^я~2כ?Yګgf:gϞs"P%L?GUkq\^aHD+j "j5~Ν;G_ÕU$<[F#<-/W$\[O ,2; 8$@^ XM8pP1zE.D1Lb izNH1B&X * H*(fD:)(IR%\2oan'͞$3ϹƖ{m(V(,"p"Ei$RFɺy1yC[K2v% Rr'A,$V[VfVfDr=>Fd@Rj?ۦw0\n:!pUU_O_^QJRpęF!0C#$eur#BT!c" 1493+<CUl ߚMnMggDMYRȔE M$ ZKp4Du1 p2uk9z =>~}{swO\Ϟ9Cݽ~{{<^Y[[k*VM8 %xWs\iZZ&"pa݅YD->ϒ6h)'?_,.~{{ӒŨW8UO~oг^ i[j22^`` w0YPnM->XT-1sb3vՠ j:Ϧ Í`f_0s55"PKL Ly )9 N޼z,?9`Ez|Ԥkk(ư1,Iϝ\,$LPJ`K$ܖ !"+ qa\ެi橮ۦ5s0JH[Җ-%zᑝY-ĩ P* C bP!Eż0/<S[㣃?\ٳwkpX_mxמ~S;77Fh4fyz;?ܠ2_N!Fj7K2'9ԖE0Kl2~N:}4_җxi~tX4gNLD`C U$ Aܵs`W*8 +FN 'r!b&! μ 7gz~LpYPrOEܽmj3X@45j5^Ï=ǝNf~̋\A?_~/rVA*yٞތȋ$p w&fa:9 KC9vXPQxr[ly!GɍN\WcP[~P2+Gb9p) j!7H1Z(A,$Т(ش׾=Y<{jg+'.f=ݧ.j{TY6SJ7o6MMBEbA$) nnD1"FMmC pS3cfQٳk{gysυ{|.1QJm=Y6o\~3M.-B`affB~)0EٮĉAnp!SRZ2qDNmyҖs}׭Vۦmn\Wml"dEqQDNf 32٢Q+_~ ΂wƻǼMzկ}SZrNr!tKp$&Q204XRq)HZr8ll G{ MEr&ɬDWZ< !xљz4bCP{,s^8H. !pmڍ5K/]z䑋/~ozxt.'[ۏ?֣K/zgO3g2t2L|1g4p`'3*O ;-x/n|/kNO/~玧uQfN_|ϾG!6ennT~ȃHV00;|n@*}gĤ+iR7wdRNhn{$Q$pV*ei[ Fvvڶ-b,b 1L] )R&% 4ݚLUP#.t3:B_ܻ?/g6lƒS!AD8C{:n쐂"pd*/Ly 6Ѱ}ИoA?Te2Z_[rS%sKɬ#7GB उL+^`9ͪPKhp."L],lM]g~w`>}σ?\~{ e|[/|< wc^,"jf2=>O"t^2gdFܷmXHW^z;]_VS/^|ߣ'%ߖԦ)P̬kI5'^S d̴"@@L f!i2k ,1hn'E`uX쀪檗nMVaւ- Ȅ:k^y 5=:̃S L!]BnĢ6$w,E3~w/ up89sO=3L61b6K.\xvww_y?onnFkD4Lq6QXzG;m/Mk;;w.`C|?/{>t|f8 vse̎@-1Lʬ5ݴ'tNÙrs\:i1PbWr n3Mߺ{ 2 -.ڠkƵ{ƩSׯ1T|633'i? ,U.I9tc 3$q dE@ptCL (>?kYh=@HV\HdSX O@m JBe[L#y #[d0, 8im+9) d3)Pt<!jnmϮ/?_<̞٣~իE0+O9}:Zoܸ{>>>^Գ,MNc*sΝ;[_?OgQ:؟|OM&{x<?{vv֠'g쯝0M cLgvUC p3w",+NJafǏ6'DdPS##AL0U"B uw#n\ %5gKY"-bGí^ow8OiMlm} ӱ˲$…~\jŕ-k גJʒBB8( 2BhPz$սc=Ir8s[4Y!YiNuO#Vs 07`gd Ĥ.@BRÈ %d-sEcg8^&^5^z=7uKի_̓{LΟ}_|#@[cQg_~}휽qn>d2Y |s}mmm_ }/^N^?E_͑[[&AJQ8EhcЪNn͜#U ɗRʪf kݲce9TQ̕Ovp\VP5z (ne|r4 Fnus$\e,K}o^ym6llO [[ 8?s}qgLkWnLg_{}n2 \۽3Ew_}Ň/T0lkk4< ҍkW׮+q]ۃaQ/W!i[!2?s6bL,:bd>&AhϕܡOfvGtj]Kޭ#[&Q."}؉%"8{$ |ی܅Lp)Z(b,˦iz2mn<Ιs+\?ዏwl{(Yc6)Gʲ7YL|6)X|wWS[9LaI8:\=cyPab$,90Ւ!r++l֪'L,@\Dz/uN(L Q  m:>ʟ_|>^/I&y3oFݛ^zrQFƨ(ngFfs4uRrQf(zٳN3gμ=wֳ|HX"b>AHLi\ffSh9~רHtQVur; `.L.b\dʗûCFV . buwrqtL5nS/\; 7'(9 a+M$HJG/^kn:SA; ߩEMRG?ܳOMYbbH(ʲXcZrmZjo^ ""-`y3Ptk'(MlL 1=C0@p653 zE.Ddm}hho(F$rvߚIғq"ն<3"Hm9P5.ESzc߽ujMGf16Ӆ_8wשp<7Q#Eh^0w=Wz{vQOA6ꦓ3Gw XV3s;Yt(1{Sr3vqrx=,MaY=L)8qV2瓣 C!Sf1D֩ e/|6}%:ZmeӴ/=vݻa!*AJNެoj6;~鸮°sR KȽIFi!* k {",,n02&#G{ lc{(t>5JdcFak>w܈dN%h9e,b찌)"& UdmsAřsk>==nyy{[gΜڼ2wp`g,ÓXbI_wcW^>.z=?ٸFEoEDR&5I$s <\ܗK":P0()`@b Yڟb(5@j.&lbnd`8gVem6vvJ rp9L@`&Q7jw~={4N?7>(l|u3R 6CFBR!72MSĦɡ<=9`9l&*D,q ~HC E@^!Y{85YLF06YpVv= {i)W,u,ZsW޺I8ZYpaݗCsM7vF;UoP"g^7woәCUukcR(16,"zEJm)ei],.ê̘3gX=˵֚$Ɲ8Գw $Ad541 1u+HeIbD R@2@1G'QRX.uP Y'W怃 1$r KwDT8nsxC?^7)HrF|?ouZGG!h_~r+ ˶uVBi.1~" JdF0Mɓ/` s/%9<8 'Dgf!½*psl"oRmRmH@Kߎ'X%xUl $"$"H(![4u0Q1;[{kWo6& +z:bv a"p~ YjCJDnMU0:oz6 mSLm";Ž[k]uET&+ \ Y (u]he r=a[69'JBm{Bn>`pXzp"b2su ,ƴhZ{L-ޚX׏_vG0*)J7G7F}n#u,Ԑ@A)%MVLZk5W+60wS1DN1۾^*b^Y wp݂r`̓ZfP>fYƴpFCXzIOÜ/Wrr Z6]6Sv\0wGM'-/l>gU([S`0QErL!8L)g3Ȼ'g{ݯ]NN65E̠ ,0]ΝrPC;oΜ9s\v8>q5(c׺1+)ϱz屹_/C\LYF<5p~('T֦w!PS]eJUKn<͝Yt ;wE.'O!ZrwK~ sv0w]2Ca[ sǼ5+.=gK'l x<߿UMݶMFŜiYnL&PAbKd-uKDTXLȉ,9?wci"w NBA{?ܿW킃C6 ;2d]em" uɋL]r}izZD"]7EBI(%rE|#X~ҧ/Cc: _""ϴ3|1FyUL`أX$~XNjpˀ!r6II&{/<߻Ev&mFYEjTp{yjT2LVX`wRiP|pt<>^|9i4xWI.'?/?z>tVoPn՚NF@ҙ *! s|bbʧP(CAp6uO\Tq4mll\߽֤O操AoOb@-d2]'^VnSKwZіLٺ%DF;3{wdD3 &r.]'bgY)!{Zm='=}ޕЅ:EթYL!Oe$vh{gɡLdD3+0򟶫R#8S#9>f aokgs6x&ӱ^xc-WI'QeĻ`n-o;y֯zN re, يGdDIS6G/=~`m&J(y|am-!!%PFKZd93nbFS˂a.nܸگWXP()q,'i˝ɜmLyKkMUꗞ$~bv)V[v7yplF3p9$;VfK9%kv{4yO?{|xy`P]K؅L\ &Pں6K J\/(PmpkӪLQm|єԙ3۴ikkR[2v>Q[[ձԵ++/= KhTJș^!AZ#8ujнkɭ"0kLI{0 -hTvƞf, d(i*Nu-φS&fԱ&fsYBfԅRf>ahQenCU=@etGgZvx{~K ]&FsN.y[365wK>dAYOb\Z1[Lujg֢Y^gE"8qt\, IDATUƳؑ&Ʈ+Az^UUK*t8 dK̡;ۂޝEѕt)as* 8z-۟-{uϏ3;/I9W-I, ;BW>ߓ%2̽dyY ޹SR!nSq~S<AY_ӣK/xpsosc̙sZ[,"jTZrm TbiQSO'>Ȫst$~y0k"pY/TMd+Mvg0/ҹ|b1SKa0m6͠_mlE1nݺUuڶs $!PnZ?bf&1w)^+Stľ 3w=w:Y)~_ϳt}+W>j+˾߸o91[=[>퇹ϧ\|4 }>923GH;]D0nQm~eb|wϞ9RҪ1l61dM4]u6MjO|g%0T"fF${SKo~-H--m,{EНVG9/ɂs)}9A^<ꛋzVl P#7Ik`-34BCQ"!C>ͼKr^i[? {h~r};˼3\};n J}૟$~r7!*P$< 5aWmʹ"94%1 Ʀ_vͽx"ԎUQB -|Vfn-d2gi"0 z6m> |υBtV5EZЉ Z޺|)͏Y1]^2֋-X̦c7-c z1Kڔ4bN0d'1RGtbEU2s]7EM$y-g*b'\3ÓoUaluZ9I&~^iè$= ϞccX` `]M;rbY,B/kducGyQuMwzW6~o\rso\gmYnE =Xw.ա<ힴ%hYU|>ݽq<9$*ޮs%kG+Cg:~D9#T`5 B@f)K<!"5ԅawaiԨw>*L֤VԚ}Ko|c}sO|˗gE۴m;=GO~NmH(!Puk­#᪮U;Nem$;Zq p46lwxXJ2"VIVȥcF܏־E!"m۶v`֖&3,i.&t"A?'WlPYHRƣ9&u<&dY@ҭ[GwsD2W_h woepE1Ng~=sʕMc P`)9"XgmczMh<O&#OA֬؁Ln+?^ydmUguZ'e䟷Qq]>Ǐz>xٮ8pmzREQz&ibUVZ `gR%eJkD]8[0p<إW/TI/.%]gϜ:=NvNڦԀTDNbp7Mogm!1DL9m1/ (ɹsYoq`oڶe^+78t"d" z㣃T.b+\c`Rk9RJ^lBƝy9Kd52Mȵ܅BUoIBoН)ٌE '?rӝ.|#q߶+Uh%w% Z[7Պ%FN»IAr~៳RھU6q'qp4˯3?Q$~_(cQ׮xG~ʛG3_QӧGիWoe$^RRˌ*%Pj:1mpɝ>2$59dfb9"鎞[`ߢ y˘C&a ߲>iY"^QJNڶԘ%a"v8O@ T&fɳp2#wLKÜ#wCMŭý/| ]|tm_'ڑm۶mǓ^|aDU Uc~"2O׆#2vML,0KN1H:8S(.y YИ] 0 K29)l'\~.CG`yWrUu-oHcv4-CC)kٻ KMHAb({/L0"o*ԂEI4Pj-ɣ%MmnjmwL>e9s{7u-k"+ڗ{ވ2P@228u 2+3q#>K^ {8E%  %gF/~Yȣ}C,LqlΎ1_z\f;fv&Hյ U 4ͲeH6䙇yDt309XQ!(&ZNQ&APN7e1&u>dz,r\ܐ_^sȾ}}#f|βiRWIYګBrPM ` SVexJMfc"ˋ,WJ5gZV8sV$lud#1$(27+:W6.\xv;8p/Bi&vΡťLkuc=p" =/OY?;Ry*VRiUB  "ǧy潯˙k9SiT6H?!qā]V=iJ>ק)MBiDDU9'}҉塽D%+X1FA Q8NTPHk$At@LDֱ2A/>}?L[;DpCōrd4_4Q'嵵^MP0*D<' P`zD6c9d"\_s{:PTWHM@oMs-}km UԿZۍΆrJ+؞8!""ql6ıG),(-aTR=l Q^:}?ٙ8I mnuIӂŏ Nq %է0"\.Iـ(  RJ)"9GT l$TW-sȁe` ^M{#@,M^m"bK A'TQ4[5|t;D֊|eCE:cx15&VO&, DqVٗOo:_WN{v<+O,"JӴzw}'>/v}4Q?˭jb+^0I $ߩ\&A\ '6QDA :5r:a$8`s^y"kט8L_"`;iFQT.B Zvم~w-"DHW hP,J:Xh:nq:Τ3.mm|C|xuc +0nHCsffmc#n4?G9{qyAn υI!(]Oʇ2+R(A0J4v.QؠHJuk_y1 0":{+!x,Pjχ{zEE7B PU i5Pƞ(p3-$6"v5!y玽ITqdQk MWA`Z""ܣtV>~FFCESPJZºFso|sر{VɅ,sQ@R"L_:Sh*x̊u ]ɼQɇIw9FXz:1|My^ު*Aq!TH+z^*x' doA|l'h4`v+jC;*W/RΥͥ'>c&MYS^#3(vo}ˤ.Q/ YID `?d7O)EZe EQw&qڧ}W^AHaz͉樌"SJ`9 oRf* ŃtX׼ $0Cbg\ yW|.D$PiDhKuZ#@꠶B@"FhMl*(NM{n&jQ aaF38)3:Jr%m5ex"!@9M,7w[//Q 34wZ)7zԹT:PBE:B].Hi {u-4y9_ɀP -pVexe?i2B)]-al4i"j!lTQƺT\JTs kM;ݝ܏3퍓hJ^cnqDg1׿~]wml43TKMAxC$NݮuSs<ŞtwI2:Ȉ K mUv`m&@WXg-Bh1PiPJ5}I/&i* ])~[/3ޫ@Qy^GUJ)e(d9Wk U|*BV@m'vL9hΰ1=Kg{? "׃CE4s.'׶w^^YGy%NJ  f`$(r+#BC*: A׺$˶_^U&^P!_?vZs.hVZI8e$q>mm@; i|ʲaJ[(v?S]^~u["nAAfFCLKV/nV(> KhyFk$1ƺG(`*TZa4x] BJNx׋}Mnkk/ȝ&H!"IQ=ݲt%*E- r׷Vu:taKkzQkfnfȥ+|\X^yYb& p0C,v [pMQ2hPf3+0-zr-"&5nTprδ:ֆֺd+I*L|D2Z oc xgpa4ıi6VWWGy&J7\g>q:]Lh LA:sOM4љ Wz{: HJ_5hBh앪g9L"@l(B&,9Gjν K\!t}gB"E>~{T8pXaұ(qҕ8m ⅗=|LW7ڇEinAmD*v]<|_zW3+WBLHA)bH^FQ>"#UUfɒ{#FR Eس;^{%R׽sű:5`R}|* s@Z)8%fatͩv^+ ˲=пxk?#.F7 oD.t$h3Fѭ'Os߻/\ZS5[޹>"RIieDXkIʌ0)% 1p&?b ^jA0 U)]Q*c1Ji\%t "e% cAڇVqVH @sz7@C7" a* /a91Hi >LDAkB3zTtawE"BVB\_= 83RӇV :UBV\bPp A -$6}a7pJG>_*\4]7[兆v`cc{y]}ɿk|݇b(r,1 j:;L,zJ.kjR1HU[{_ӈr&1,+ rR`Re@H8M.)s]bfP@@Jߪ U/VM$ mnCGl?7_(:EƠ{^}TQH A=s'm~"mt='"_Z~G~SXZ:BhoMv?uw_|ѳ_SFyAD*n$M=wii6ϴSQ@j@]S JW4" DfŕV/r] ܛs~S nT{2RmʷR!gRF<80;Q!)  {TS TȢD N=z.l'͆T*9oo+\7s(tci쯞r>1B27EF]bcc )eaTJKƠAn[a-WP')(JQ:'_\7:JڎH^A!K+Cx`ã cJHc|Lb{=C'!d8Ȕ9D"J(BDaq"oC9_Xr[] x3>w?w,ϣHk_5x ؘ/_Gr=w3sDq"[o)}h϶6vf{q߻{_zј(' 0gdR/s4(dD dD)C[/IhW Đ#dKףRPj璔J B0]f60sNiu$^ \Q"J`ģLF9>Wq_ׇytksirHD-@'J&Q6׷Cx޹ňI$J) a!BBpN*WW~TUeg[ȱ,DaE|EW.*D',8# vɓPgk ^p_BB RXk @ZDEy[_ *PG7,⍭ķ_.,rrnC za Bve!n-F.[\衇,/~LFibXg CB*$c*+5$X z.h^Ug gBCVϏ!=('<'^L3QIX*c@" En:+u ϿxO=˭w?WSAm7xb 8$VHz==vzO>3ϬR ^rL\:OrmQ8qey;WVSR?՗ʆ-2!dci,85GÔB<0QNzQOHD8Шs)"TYy̬sӧ=7=vȑC[o9y{.Io7wŀ3`S i؈h6gRMz!L -ҤyF4>HDմY̌\^[D#UD)c\Xkk-0J˝ (^{I 49sss~֥rE@ཀGaEzz/!RQE2U3Ӟ^Rc,>""+س*bfyA3m`}cW'~fÿɿλޑ;εgg0 ♰V׻x(6OZ[m=V @/3Y!DF vy23"" BE>D > 3+@" *!L@6P LhHk"#e3!cM5}+Ov]Ñ=q{;J"S-2ុkkY6Z?u1N[Z &IlךU u#g6(x3C_vW ("rZ^u&fz5dBX4- 7"})үGDA"cO4<6y}胣aq9Ӟmboxہz¡E?'OCV#՚M\]mIɲK]-=G 5yR- (`f "7 :FE1ɓ;?so=wL4QQR +<+D]x> 5pd@2dHI{X),JJ(~Lb$vbVEV穧|y?=h{vʕ++*c1<"/6VCkg"t(ҥ;Er!(EdQj ˄,.0 Bya"Ξ3!3"( /DFǣQn=gYcmnN9v->~뮙K+`4E&mb0Ә;nQʹ4?;;Ο={t\}wo'Fű2dWK0v`9JWD9Y3kf^8tCxFEQ[P!b7\]]=Ki~}zz3iL}Мw71v[fSN:uʻ}ϞW.sOSF&N /s6L=Q) cCO\p_9Zg}IiO²N& ΃0,ܑWW6}LQw 󭅅'>' z]e QpUU>d1XM MeWiLfh : ꌌօdD 9Q1~w~h4;hi6Q♂ >+2nS뛍F:n/,,,.#/;}칗^~t^-{nvsƘvn8S"ɋ`0(Bk=;;4מA~{_ꙧ3g:ؑvth~6M!pD,&|QT2q5BP ^ {8.c*]"(" [* F{/+E7Q6??;q]NJӦR*`ow Q[VZ-崙o,v ˲0 XXXY\\l6,.^:K/-/_~'www7V~#Gz뭋 I"I'D"TJXUֻjclQR`J9J 1giT$4ZQ!(Dv4ʺap4m! Go9v{;yԩ0tR@ٜi7x )o4h4 <Fy[k$YXXXZZ"K.;wٗϞ={⹭ 1Iv5;;3;;;;n$IDڐ bJ# 0sV3v\" @eaag}w^w@u;v;{9z]0&v`{{{{{{0$IBDQ5vmfbo 27YQh8yɓ'(jFCigO\8~eeͲy)jI5FiӤ98(1e,r֍eVDqo6q}Q9w{_dyy%uX&"uPCAQDX<2YĘjgL86LW̦ |k)Ѩp6sփŠIwEaiSR*X(g}yw~}Ƞ6!pji^7$!nz؛$I1;кiIENDB`dvd95/pixmaps/dvd9548.png000066400000000000000000000107671140003301000153000ustar00rootroot00000000000000PNG  IHDR00WbKGD pHYs 7˭IDATxyWy9z;3w dIŦ @v c D6RVRQ U#HR88(Q!+!6Vb (@$.}{zsΛ?zf@@Wuuyys仹~5ٔh*RȐonO:p1Rԓ@fð0+-LhYjzڣ3oϿ0QKcI_%=Of "q 4$r:(H,Yl(E FPdO"rPd#lH+$ ҳL$ eho;cԃ꬙ B"Ұ'8ũQ V#LNkjy68pDr2H<cZɘLY9^Q=eͧ tVb|){Yg?ʲrو 8@ C.Wrbzgq҈s GC'@jO (TAa}-a eb)ed;٧~hK}kB搔 }Zlk=5:,{e E1&b{oJ૟tݤZbHP1!7C%UUΞ,7I( 5K?ҮKƧsΎrBFTpsOj (17T{߲9;_.ji LꆦB@D0`DpΑ& YhZs7z]w=m}2u^sPtVz±F37RU)RhB{y sk2WMяGOyͭ[fe/ % |YbZK$$M;GiJ(y2<6w>}ꓟ /cbG?fi(%Y<}ҞCsWwj/=hxs[5U t0T6bYK>)Ҕ9bp<շ'8z^WDZp2y.m[P',pct+v^F3y0"oϒZXc<޻Q4&I0Ɛn$sZyN8:x睵= Z;+H(A"Ef̷НSV"gq`JoI q5Ђ~ެ? XiXطNGNq.M1`/~$6x,1!.yYJDuD LcGPǎ;%L,S6KglYdIc?IbꍦZQ-:qǙ9}p9F^4w~6ILm;3"ش"NsH3rՋ N 8uk\3? I1>6xDUK@#UQ@0%B ]* 2VH+EaW`RU^N>rvc\ +KY׌uL#Iދ/W`kcv<:`QtCI\nDf<2,A6qs,>4T!RM,K4eq`(cn޾eIޯ;RK>j$M "6.A!ZTq pj3VNi=,Ѧ9 {K`40jU!5IUZ wsF?%V C1Gb( j1AqE~D<˘th9|7١|ovkk%M\f b`?0]11}(S) >6 0zY+qI3W@qAN7.qnq~8_{H +uW^b ϋɓ*"WbzGJ bvO8:; CmjWb1`xrH~/}^&"~KB lz1ٱ.O@@5MJ 0"?=1jh8qjB̸H52 0 ϴV,Vt: !;>3=W}b@ѨN'li'{7mt4 Oe+d0a `7+>SimmWLVM-GŢBUTKH,;b?A4~q >6끇4NP"0"v?z稡Qчx5d쬫1AUՕ+qP,e%͢R}p@o֝m-Mƒ" KX0xqtu`ЛY||^w^esR;.}J  >"UxJ GoЗgڒϜ"d2)- 9QРAsB2˖khm95cyN@e vUJe2^9q-ngGՖmׇG5b"DC zPUABB2K'ia{cV_@FP\Xā q4 A2{TO?y96 ȴ1.' FHeG Y|"?=5t=hL*rś 49z+R\3&=C":xUٖV%'FvvV&ٌOWW+,(--mk)"^ QrO%i5:GKfO$$ݲSBD.m*g[ۆ? J zQON^k:&Io{DM;F5r}?K$&賿,JJJZp=ŷ/Mҙ<دI8/~LҮR[)SIАX4BiҬV:޴'~Ϋ)EFz~7]`}I>@ ͚̦qFB!gRSHfκ!W_Tl;8o!a@QI9j4B(bѢE} W ?t)Gyi s}h E`D_,XL`x/̝=7FАK(gמ=>/|R Su ~ PGM| K+2LOf3*P \<_n,6DBA?38)eS- F G@kzUqsU c'ќM*d]^:{:KDUF?ctѶZ/qt$ +啕D#1纘mg>/7l9S0qͧn_D{sseB0}8|ǎ D 8W=A|;וQ!)ǚےkN(eew/pxŶۅPcn_TZC~Q19ya ru\)'vԂ۴/U?.!#u=v"àSwmmF=C;SҗE< Ǜ lÆk/.#+;`8D@^[)(/Ğw^=EP(z7;{}Q%-rܛ*k[$}zK-D`MUTMUAi$rr Q4P2 xYx} UWC芋mc*(Ozy۠VRVD{a/DaY %eA"L+H#7M/psyNەPT,P()ed#;S^C &Q=GxF.m6r3ԣ -]j,Tؔx.Lq6qAp3Ot`K10qt}^IM01AFA.RDX42_nP;ƢըocZ rxO^6D>Go?ջ:&e1bv/_ww1ΔM) "$ dSJFvY3nY #\/\%^. @U#j``hh$BM(h$7NJB{&6~< GW#S#^xٽ>=8]81^ =9;F/Qc~^﷤Y4w3w04݇P/b>4us 9r3?lr{mnEasߍPIENDB`dvd95/pixmaps/run.png000066400000000000000000000046111140003301000147640ustar00rootroot00000000000000PNG  IHDR00WgAMA abKGD pHYs )ItIMEC( IDATxyp?nfsr*HDLdJflGюvmXKOuVV+A!H"T"k"#f~ˤ\mg=s~c ]+tNF7aV@B'ׁ;VrB۶m@_ѼB5Y4P}W@RbLP___|}|z΁.b>aKٷo! gg;@ ,|X h^`߾}tuus0YW oǜ\^= @pȢVZZ۹x)IddL(\O㒉ҥikԩ6z{S b*ndw9Ȭg3}ƍ]-3,{8IzχOsS@.zF FU/ygdҫz RM/Y914{nA7"naZY7]Wsj68d. 8u9Mc1oߜ[EMfD#gJ!!үLvN?^P9!1tڴb|AG*1R*s6#Hqrce_4oDuG| tـr cǞs־֖i|r0M N l6RR|m111H`rB!~7QHdWq Q?~xiq舃6>HI  Iow3y9u Gmsk*OGx)i!Z[@N>pRYx}&c͚dff1c,i3SezRyKU:cT<N^#-3C{DDD!DB! H=v<i4斓LBA6oTsrH!\I4K#,Arr"@3],a"Ĵ$RJ@:kes ['}WK fqDFj\3OW \,1{-w[2vUPu3%*4[/=5nG'"*J\3 !K/f)@sqʕKhEAvD&MHn8sɪ]`SY߶`y|M6e?_~< uTǔ 4$Ͱa =48e U\ m(.y \L;_biÏ;@}}C#d:`j A}O*7pHK7?o݆-k!U t/W{uScwiEq][aBxSB,0o1 ؕU=*8U:2Ct+/UkS)Q |T9U_GJ簜,Z)313RKU ߤ-ͦ .GO>,֔2I/T 0aY}% )6U(PW9b]:GWSyv 7?+^O<%)IENDB`dvd95/po/000077500000000000000000000000001140003301000124055ustar00rootroot00000000000000dvd95/po/ChangeLog000066400000000000000000000003501140003301000141550ustar00rootroot00000000000000mar fév 13 21:10:32 CET 2007 - Added hungarian hu.po mar avr 10 21:55:05 CEST 2007 - Added cs el pt_BR translations lun oct 1 21:02:49 CEST 2007 - Added dutch translation nl.po (netherland) (Thanks to: Harry van der Wolf) dvd95/po/LINGUAS000066400000000000000000000000441140003301000134300ustar00rootroot00000000000000en hu el cs pt_BR de et_EE nl es it dvd95/po/Makefile.in000066400000000000000000000154301140003301000144550ustar00rootroot00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # Copyright (C) 2004-2008 Rodney Dawes # # This file may be copied and used freely without restrictions. It may # be used in projects which are not available under a GNU Public License, # but which still want to provide support for the GNU gettext functionality. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize # # - Modified by Rodney Dawes for use with intltool # # We have the following line for use by intltoolize: # INTLTOOL_MAKEFILE GETTEXT_PACKAGE = dvd95 PACKAGE = dvd95 VERSION = 1.6p0 SHELL = /bin/bash srcdir = . top_srcdir = .. top_builddir = .. prefix = /usr/local exec_prefix = ${prefix} datadir = ${datarootdir} datarootdir = ${prefix}/share libdir = ${exec_prefix}/lib DATADIRNAME = share itlocaledir = $(prefix)/$(DATADIRNAME)/locale subdir = po install_sh = ${SHELL} /u/jef/dvd95/install-sh # Automake >= 1.8 provides /bin/mkdir -p. # Until it can be supposed, use the safe fallback: mkdir_p = $(install_sh) -d INSTALL = /usr/bin/install -c INSTALL_DATA = ${INSTALL} -m 644 GMSGFMT = /usr/bin/msgfmt MSGFMT = /usr/bin/msgfmt XGETTEXT = /usr/bin/xgettext INTLTOOL_UPDATE = /usr/bin/intltool-update INTLTOOL_EXTRACT = /usr/bin/intltool-extract MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot ALL_LINGUAS = en hu el cs pt_BR de et_EE nl es it PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi) USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) DISTFILES = Makefile.in.in POTFILES.in $(POFILES) EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS POTFILES = \ # This comment gets stripped out CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) .SUFFIXES: .SUFFIXES: .po .pox .gmo .mo .msg .cat .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(MSGFMT) -o $@ $< .po.gmo: file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && gencat $@ $*.msg all: all-yes all-yes: $(CATALOGS) all-no: $(GETTEXT_PACKAGE).pot: $(POTFILES) $(GENPOT) install: install-data install-data: install-data-yes install-data-no: all install-data-yes: all linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $$dir; \ if test -r $$lang.gmo; then \ $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \ else \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $(srcdir)/$$lang.gmo as" \ "$$dir/$(GETTEXT_PACKAGE).mo"; \ fi; \ if test -r $$lang.gmo.m; then \ $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ if test -r $(srcdir)/$$lang.gmo.m ; then \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \ $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $(srcdir)/$$lang.gmo.m as" \ "$$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ true; \ fi; \ fi; \ done # Empty stubs to satisfy archaic automake needs dvi info ctags tags CTAGS TAGS ID: # Define this as empty until I found a useful application. install-exec installcheck: uninstall: linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ done check: all $(GETTEXT_PACKAGE).pot rm -f missing notexist srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m if [ -r missing -o -r notexist ]; then \ exit 1; \ fi mostlyclean: rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp rm -f .intltool-merge-cache clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES stamp-it rm -f *.mo *.msg *.cat *.cat.m *.gmo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f Makefile.in.in distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(DISTFILES) dists="$(DISTFILES)"; \ extra_dists="$(EXTRA_DISTFILES)"; \ for file in $$extra_dists; do \ test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \ done; \ for file in $$dists; do \ test -f $$file || file="$(srcdir)/$$file"; \ ln $$file $(distdir) 2> /dev/null \ || cp -p $$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ echo "$$lang:"; \ result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ if $$result; then \ if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.gmo failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done Makefile POTFILES: stamp-it @if test ! -f $@; then \ rm -f stamp-it; \ $(MAKE) stamp-it; \ fi stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dvd95/po/Makefile.in.in000066400000000000000000000153771140003301000150740ustar00rootroot00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # Copyright (C) 2004-2008 Rodney Dawes # # This file may be copied and used freely without restrictions. It may # be used in projects which are not available under a GNU Public License, # but which still want to provide support for the GNU gettext functionality. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize # # - Modified by Rodney Dawes for use with intltool # # We have the following line for use by intltoolize: # INTLTOOL_MAKEFILE GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ datarootdir = @datarootdir@ libdir = @libdir@ DATADIRNAME = @DATADIRNAME@ itlocaledir = $(prefix)/$(DATADIRNAME)/locale subdir = po install_sh = @install_sh@ # Automake >= 1.8 provides @mkdir_p@. # Until it can be supposed, use the safe fallback: mkdir_p = $(install_sh) -d INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot ALL_LINGUAS = @ALL_LINGUAS@ PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi) USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) DISTFILES = Makefile.in.in POTFILES.in $(POFILES) EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS POTFILES = \ # This comment gets stripped out CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) .SUFFIXES: .SUFFIXES: .po .pox .gmo .mo .msg .cat .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(MSGFMT) -o $@ $< .po.gmo: file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && gencat $@ $*.msg all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: $(GETTEXT_PACKAGE).pot: $(POTFILES) $(GENPOT) install: install-data install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $$dir; \ if test -r $$lang.gmo; then \ $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \ else \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $(srcdir)/$$lang.gmo as" \ "$$dir/$(GETTEXT_PACKAGE).mo"; \ fi; \ if test -r $$lang.gmo.m; then \ $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ if test -r $(srcdir)/$$lang.gmo.m ; then \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \ $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $(srcdir)/$$lang.gmo.m as" \ "$$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ true; \ fi; \ fi; \ done # Empty stubs to satisfy archaic automake needs dvi info ctags tags CTAGS TAGS ID: # Define this as empty until I found a useful application. install-exec installcheck: uninstall: linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ done check: all $(GETTEXT_PACKAGE).pot rm -f missing notexist srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m if [ -r missing -o -r notexist ]; then \ exit 1; \ fi mostlyclean: rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp rm -f .intltool-merge-cache clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES stamp-it rm -f *.mo *.msg *.cat *.cat.m *.gmo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f Makefile.in.in distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(DISTFILES) dists="$(DISTFILES)"; \ extra_dists="$(EXTRA_DISTFILES)"; \ for file in $$extra_dists; do \ test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \ done; \ for file in $$dists; do \ test -f $$file || file="$(srcdir)/$$file"; \ ln $$file $(distdir) 2> /dev/null \ || cp -p $$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ echo "$$lang:"; \ result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ if $$result; then \ if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.gmo failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done Makefile POTFILES: stamp-it @if test ! -f $@; then \ rm -f stamp-it; \ $(MAKE) stamp-it; \ fi stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dvd95/po/POTFILES000066400000000000000000000007451140003301000135630ustar00rootroot00000000000000 ../src/avancement.c \ ../src/callbacks.c \ ../src/cputest.c \ ../src/dvd2vob.c \ ../src/dvdbackup.c \ ../src/dvdcell.c \ ../src/dvdcopy.c \ ../src/dvdformat.c \ ../src/dvdinfo.c \ ../src/dvdtools.c \ ../src/gconfig.c \ ../src/ifo.c \ ../src/interface.c \ ../src/main.c \ ../src/message.c \ ../src/requant.c \ ../src/support.c \ ../src/systools.c \ ../src/tampon.c \ ../src/tcmemcpy.c \ ../src/uitools.c \ ../src/vaporize.c \ ../src/profile.c \ ../src/dvd2avi.c dvd95/po/POTFILES.in000066400000000000000000000006171140003301000141660ustar00rootroot00000000000000# List of source files containing translatable strings. src/avancement.c src/callbacks.c src/cputest.c src/dvd2vob.c src/dvdbackup.c src/dvdcell.c src/dvdcopy.c src/dvdformat.c src/dvdinfo.c src/dvdtools.c src/gconfig.c src/ifo.c src/interface.c src/main.c src/message.c src/requant.c src/support.c src/systools.c src/tampon.c src/tcmemcpy.c src/uitools.c src/vaporize.c src/profile.c src/dvd2avi.c dvd95/po/cs.mo000066400000000000000000000205711140003301000133540ustar00rootroot00000000000000sL    - 05 f o w o Qu i v    ! ' " : A 'Z        #-Ao%%":%O u8!.!P)n 6 !3:BS es #$<$Rw"<7:Li1l !, NZs|#%%+9ex~B     !."1%TzIgDCu  )8 GT]!q " >FN]fy("$ ;\z 8 #.E"Ux) ; <Haiq   *9S"o G<Mf;m   6 > P W d }     ( !>!D!b!`Vic"E.Fa0;UY@rj2\4G^k(JK<QsCP'q:We[Zm B? hln!/%5I*Sg-> 6)T=L# NMHXbA3o_]O&8pDRf+179,$d%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%d%% a %.2fx%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé La conversion s'est déroulée avec succès.Extraction du contenu terminée Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAUCUNAjout de la table des matières. Ajustement automatique de la qualité. Ajustement de qualité à %.2f%%. AlerteAnalyse de %d cellules. Analyse de la cellule %d (%d secteurs) Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO. Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules. Copie de la cellule %d (%d secteurs) Copie des menus vob%2d (%d secteurs) Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD. Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULONDuréeDvd95DétailsEcran des propiétésEffacement des anciens fichiers. Effacement des fichiers. Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :ExtFichier ISOFichier VOB trop gros (%s) ! Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD. FormatGNU GPLGarder les menusGravage sur DVD. Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents !Mise à jours du vob %d-%d Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPas assez de place sur %s Il manque %lld octets !PistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% (%s restant)Total %d%% a %.2fxVersion: %s du %sVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !totemtranslator-creditsÉvaluation de qualité :Project-Id-Version: dvd95 Report-Msgid-Bugs-To: POT-Creation-Date: 2007-01-25 22:39+0100 PO-Revision-Date: 2007-04-10 21:35+0100 Last-Translator: jf.coulon Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Czech %.2f giga%.2f kilo%.2f mega%d%d%% (%s zbývá)%d%% a %.2fx%s%s není soubor ! Prosím smažte.%s není adresář ! Prosím smažte./dev/dvd4.7 GB8.5 GBAnalyzuji Prosím počkejte na analýzu DVD struktury.Médium nebylo nalezeno Prosím vložte video DVD, nebo určete ISO soubor s image. Kódování dokončeno Konverze byla úspěšná.Extrakce dokončena Před vytvořením ISO image nebo vypálením si můžete přehrát výsledek.AudioVytvářecí parametryTitulkySystémVideoŽÁDNÉPřidávám obsah. Nastavení automatické kvality. Nastavuji kvalitu na %.2f%%. VýstrahaAnalyzuji %d buněk. Analyzuji buňku %d (%d sektorů) Probíhá analýza.Médium nebylo nalezenoSpočítat nejlepší kvalituKanályZrušitKapacita DVD :KapitolyVyberte ISO souborVčetně DVD menuVytvářím ISO soubor. Konvertovat s dynamickou kvalitou obrazuKonvertovat DVDKopíruji %d buněk. Kopíruji buňku %d (%d sektorů) Kopíruji menu vob%2d (%d sektorů) Nelze nalézt soubor pixmapy: %sOdebrat závěrečné titulkyVytvářím DVD strukturu. Vytvořit ISO imageVytvořit ISO image po konverziDVD 9 na 5DVD95: soukromá kopie DVD 9 na DVD 5 napsal J.F. COULONDélkaDvd95DetailyVlastnostiMažu staré soubory. Mažu soubory. Chyba sestavení. Smazat soubory ?Chyba konverze ........Chyba čtení ! Ignorovat chyby čtení ?Umístění ISO souborů :Dočasné úložiště :přípISO souborVOB soubor je příliš velký (%s) ! Přesto pokračovat ?ISO souboryOpravuji DVD strukturu. FormátGNU GPLVčetně DVD menuVypalování DVD. Vypálit DVDVypálit DVD po konverziNeznámýInformaceJazykJazykySoubor %s již existuje. Vytvořit znovu ?Soubor %s neexistuje !Adresář %s neexistuje !Adresář %s neexistuje !Přehrávač multimédií :Chyba při čtení DVD struktury !Přehrát DVDChyba při čtení titulu %s!Dočasný adresář a adresář pro ISO soubory musí být rozdílné !Aktualizuji vob %d-%d Přeskočit poslední kapitoluTrace úroveň :Název DVD a ISO souboruBudižNedostatek místa na %s Je potřeba %lld dalších bajtů !StopaPrvní fáze dokončenaVlastnostiDVD zařízení :Dynamická kvalitaVyberte audio stopyVyberte titulkyVyberte stopu pro konverziTitulkyVyberte adresářHotovoNázev DVD :Celkem %d%% (%s zbývá)Celkem %d%% a %.2fxVerze: %s z %sProsím spusťte test kvalityProsím vyberte audio stopuProsím vyberte video stopuGNOME aplikace pro konverzi DVD9 na DVD5mkisofs není nainstalováno !totemDušan Hokův Spočítaná kvalita :dvd95/po/cs.po000066400000000000000000000421131140003301000133530ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: dvd95\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-11-27 21:13+0100\n" "PO-Revision-Date: 2007-04-10 21:35+0100\n" "Last-Translator: jf.coulon \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Czech\n" #: ../src/avancement.c:308 ../src/avancement.c:396 #, c-format msgid "Total %d%% a %.2fx" msgstr "Celkem %d%% a %.2fx" #: ../src/avancement.c:319 ../src/avancement.c:386 #, c-format msgid "%d%% (%s restant)" msgstr "%d%% (%s zbývá)" #: ../src/callbacks.c:178 ../src/interface.c:70 ../src/main.c:306 msgid "DVD 9 to 5" msgstr "DVD 9 na 5" #: ../src/callbacks.c:197 ../src/callbacks.c:374 ../src/callbacks.c:458 msgid "Veuillez selectionner une piste video" msgstr "Prosím vyberte video stopu" #: ../src/callbacks.c:273 ../src/uitools.c:148 msgid "Fichiers ISO" msgstr "ISO soubory" #: ../src/callbacks.c:378 ../src/callbacks.c:462 msgid "Veuillez selectionner une piste audio" msgstr "Prosím vyberte audio stopu" #: ../src/callbacks.c:394 msgid "Veuillez lancer un calcul de qualit" msgstr "Prosím spusťte test kvality" #: ../src/callbacks.c:418 msgid "Erreur de conversion ........" msgstr "Chyba konverze ........" #: ../src/dvd2vob.c:462 ../src/dvdbackup.c:1144 ../src/dvd2avi.c:349 #, c-format msgid "Copie de la cellule %d (%d secteurs)\n" msgstr "Kopíruji buňku %d (%d sektorů)\n" #: ../src/dvd2vob.c:649 ../src/dvd2vob.c:696 msgid "Fixation de la structure du DVD.\n" msgstr "Opravuji DVD strukturu.\n" #: ../src/dvd2vob.c:874 ../src/dvd2vob.c:883 ../src/dvdbackup.c:1378 #: ../src/dvdbackup.c:1386 ../src/dvd2avi.c:808 ../src/dvd2avi.c:815 #, fuzzy, c-format msgid "" "Pas assez de place sur %s\n" "Il manque %s octets !" msgstr "" "Nedostatek místa na %s\n" "Je potřeba %s dalších bajtů !" #: ../src/dvd2vob.c:907 ../src/dvdbackup.c:1415 ../src/dvd2avi.c:855 #, c-format msgid "Copie de %d cellules.\n" msgstr "Kopíruji %d buněk.\n" #. Create empty filesystem tree #: ../src/dvd2vob.c:909 ../src/dvdbackup.c:1417 ../src/dvd2avi.c:857 msgid "Effacement des anciens fichiers.\n" msgstr "Mažu staré soubory.\n" #: ../src/dvd2vob.c:914 ../src/dvdbackup.c:1422 #, c-format msgid "Le repertoire %s existe. L'effacer ?" msgstr "Adresář %s neexistuje !" #: ../src/dvd2vob.c:924 ../src/dvdbackup.c:1432 #, c-format msgid "%s n'est pas un repertoire ! Veuillez l'effacer." msgstr "%s není adresář ! Prosím smažte." #: ../src/dvd2vob.c:965 ../src/dvdbackup.c:1466 msgid "Ajustement automatique de la qualité.\n" msgstr "Nastavení automatické kvality.\n" #: ../src/dvd2vob.c:992 ../src/dvdbackup.c:1498 #, c-format msgid "Ajustement de qualité à %.2f%%.\n" msgstr "Nastavuji kvalitu na %.2f%%.\n" #: ../src/dvd2vob.c:1017 ../src/dvdbackup.c:1511 #, c-format msgid "" "Fichier VOB trop gros (%s) !\n" "Désirez vous continuer ?" msgstr "" "VOB soubor je příliš velký (%s) !\n" "Přesto pokračovat ?" #: ../src/dvd2vob.c:1043 msgid "Création de la structure du DVD.\n" msgstr "Vytvářím DVD strukturu.\n" #: ../src/dvd2vob.c:1089 msgid "Ajout de la table des matières.\n" msgstr "Přidávám obsah.\n" #: ../src/dvd2vob.c:1125 ../src/dvdbackup.c:1548 #, c-format msgid "Le fichier %s existe. Le re-creer ?" msgstr "Soubor %s již existuje. Vytvořit znovu ?" #: ../src/dvd2vob.c:1128 ../src/dvdbackup.c:1551 msgid "Construction de l'image ISO.\n" msgstr "Vytvářím ISO soubor.\n" #: ../src/dvd2vob.c:1138 ../src/dvdbackup.c:1566 #, c-format msgid "%s n'est pas un fichier ! Veuillez l'effacer." msgstr "%s není soubor ! Prosím smažte." #: ../src/dvd2vob.c:1145 ../src/dvdbackup.c:1573 msgid "Gravage sur DVD.\n" msgstr "Vypalování DVD.\n" #: ../src/dvd2vob.c:1159 ../src/dvdbackup.c:1587 msgid "Effacement des fichiers.\n" msgstr "Mažu soubory.\n" #: ../src/dvdbackup.c:171 #, c-format msgid "Copie des menus vob%2d (%d secteurs)\n" msgstr "Kopíruji menu vob%2d (%d sektorů)\n" #: ../src/dvdbackup.c:772 #, c-format msgid "Mise à jours du vob %d-%d\n" msgstr "Aktualizuji vob %d-%d\n" #: ../src/dvdbackup.c:1142 #, c-format msgid "Analyse de la cellule %d (%d secteurs)\n" msgstr "Analyzuji buňku %d (%d sektorů)\n" #: ../src/dvdbackup.c:1559 msgid "Erreur de construction. Effacer les fichiers ?" msgstr "Chyba sestavení. Smazat soubory ?" #: ../src/dvdbackup.c:1713 #, c-format msgid "Analyse de %d cellules.\n" msgstr "Analyzuji %d buněk.\n" #: ../src/dvdcopy.c:107 msgid "AC3" msgstr "" #: ../src/dvdcopy.c:108 ../src/dvdcopy.c:115 msgid "?" msgstr "" #: ../src/dvdcopy.c:109 msgid "MPEG1" msgstr "" #: ../src/dvdcopy.c:110 msgid "MPEG2" msgstr "" #: ../src/dvdcopy.c:111 msgid "LPCM" msgstr "" #: ../src/dvdcopy.c:112 msgid "SDDS" msgstr "" #: ../src/dvdcopy.c:113 msgid "DTS" msgstr "" #: ../src/dvdcopy.c:133 ../src/dvdcopy.c:156 #, fuzzy msgid "Normal" msgstr "Formát" #: ../src/dvdcopy.c:134 msgid "Impaired" msgstr "" #: ../src/dvdcopy.c:135 msgid "Director's comments" msgstr "" #: ../src/dvdcopy.c:136 msgid "Alternate director's comments" msgstr "" #: ../src/dvdcopy.c:157 #, fuzzy msgid "Large" msgstr "Jazyk" #: ../src/dvdcopy.c:158 msgid "Enfants" msgstr "" #: ../src/dvdcopy.c:159 msgid "Reserved" msgstr "" #: ../src/dvdcopy.c:160 msgid "Légende normale" msgstr "" #: ../src/dvdcopy.c:161 msgid "Légende large" msgstr "" #: ../src/dvdcopy.c:162 msgid "Légende enfants" msgstr "" #: ../src/dvdcopy.c:163 ../src/dvdcopy.c:165 ../src/dvdcopy.c:166 #: ../src/dvdcopy.c:167 msgid "reserved" msgstr "" #: ../src/dvdcopy.c:164 #, fuzzy msgid "Forcé" msgstr "Formát" #: ../src/dvdcopy.c:168 msgid "Réalisateur" msgstr "" #: ../src/dvdcopy.c:169 msgid "Réalisateur large" msgstr "" #: ../src/dvdcopy.c:170 msgid "Réalisateur enfants" msgstr "" #: ../src/dvdcopy.c:300 msgid "Lecture de la structure impossible !" msgstr "Chyba při čtení DVD struktury !" #: ../src/dvdcopy.c:306 #, c-format msgid "Lecture du titre de %s impossible!" msgstr "Chyba při čtení titulu %s!" # #: ../src/dvdcopy.c:344 ../src/dvdcopy.c:1007 ../src/dvdcopy.c:1193 msgid "Piste" msgstr "Stopa" #: ../src/dvdcopy.c:356 msgid "Durée" msgstr "Délka" #: ../src/dvdcopy.c:368 msgid "Chapitres" msgstr "Kapitoly" #: ../src/dvdcopy.c:380 msgid "Langues" msgstr "Jazyky" # #: ../src/dvdcopy.c:392 msgid "Sous-titres" msgstr "Titulky" #: ../src/dvdcopy.c:404 ../src/dvdcopy.c:1027 msgid "Format" msgstr "Formát" #: ../src/dvdcopy.c:488 ../src/dvdcopy.c:495 ../src/dvdcopy.c:501 #: ../src/dvdcopy.c:1082 ../src/dvdcopy.c:1094 ../src/dvdcopy.c:1241 #, c-format msgid "%d" msgstr "%d" #: ../src/dvdcopy.c:498 ../src/dvdcopy.c:504 ../src/dvdcopy.c:1085 #: ../src/dvdcopy.c:1244 #, c-format msgid "%s" msgstr "%s" #: ../src/dvdcopy.c:1017 ../src/dvdcopy.c:1203 ../src/interface.c:540 msgid "Langue" msgstr "Jazyk" #: ../src/dvdcopy.c:1038 msgid "Extension" msgstr "" #: ../src/dvdcopy.c:1049 msgid "Canaux" msgstr "Kanály" #: ../src/dvdcopy.c:1213 msgid "Ext" msgstr "příp" #: ../src/dvdinfo.c:205 msgid "Inconnu" msgstr "Neznámý" #: ../src/dvdtools.c:365 msgid "Erreur de lecture ! Ignorer les erreurs ?" msgstr "Chyba čtení ! Ignorovat chyby čtení ?" #: ../src/gconfig.c:466 #, fuzzy msgid "Les répertoires temporaire et iso doivent être différents !" msgstr "Dočasný adresář a adresář pro ISO soubory musí být rozdílné !" #: ../src/gconfig.c:470 msgid "mkisofs manquant !" msgstr "mkisofs není nainstalováno !" #: ../src/gconfig.c:474 ../src/gconfig.c:482 #, fuzzy, c-format msgid "Le répertoire %s n'existe pas !" msgstr "Adresář %s neexistuje !" #: ../src/gconfig.c:478 ../src/gconfig.c:486 #, c-format msgid "Pas d'accès en écriture au répertoire %s !" msgstr "" #: ../src/gconfig.c:491 #, c-format msgid "Le fichier %s n'existe pas !" msgstr "Soubor %s neexistuje !" # #: ../src/interface.c:95 msgid "Ecran des propiétés" msgstr "Vlastnosti" #: ../src/interface.c:102 msgid "Lecture du DVD" msgstr "Přehrát DVD" #: ../src/interface.c:106 msgid "Évaluer" msgstr "" #: ../src/interface.c:110 msgid "Calculer la qualité au mieux" msgstr "Spočítat nejlepší kvalitu" #: ../src/interface.c:116 msgid "Convertir le DVD" msgstr "Konvertovat DVD" # #: ../src/interface.c:152 msgid "Nom du DVD et du fichier ISO" msgstr "Název DVD a ISO souboru" #: ../src/interface.c:155 msgid "Évaluation de qualité :" msgstr "Spočítaná kvalita :" #: ../src/interface.c:163 msgid "Titre du film :" msgstr "Název DVD :" #: ../src/interface.c:196 msgid "Selectionner la piste a convertir" msgstr "Vyberte stopu pro konverzi" #: ../src/interface.c:199 msgid "Vidéo" msgstr "Video" #: ../src/interface.c:231 msgid "Selectioner les pistes audio" msgstr "Vyberte audio stopy" #: ../src/interface.c:234 msgid "Audio" msgstr "Audio" #: ../src/interface.c:266 msgid "Selectioner les sous titres" msgstr "Vyberte titulky" #: ../src/interface.c:269 msgid "Sous-titres" msgstr "Titulky" # #: ../src/interface.c:397 msgid "Propriétés" msgstr "Vlastnosti" #: ../src/interface.c:436 msgid "Périphérique DVD :" msgstr "DVD zařízení :" #: ../src/interface.c:444 msgid "Espace temporaire :" msgstr "Dočasné úložiště :" #: ../src/interface.c:452 msgid "Espace des ISO :" msgstr "Umístění ISO souborů :" #: ../src/interface.c:460 msgid "Lecteur multimédia :" msgstr "Přehrávač multimédií :" #: ../src/interface.c:468 msgid "Niveau de trace :" msgstr "Trace úroveň :" #: ../src/interface.c:476 ../src/interface.c:483 msgid "Sélectionner un dossier" msgstr "Vyberte adresář" #: ../src/interface.c:502 msgid "totem" msgstr "totem" #: ../src/interface.c:517 msgid "/dev/dvd" msgstr "/dev/dvd" #: ../src/interface.c:520 msgid "Indications sonores" msgstr "" #: ../src/interface.c:554 msgid "Default" msgstr "" #: ../src/interface.c:555 msgid "Français" msgstr "" #: ../src/interface.c:556 msgid "English" msgstr "" #: ../src/interface.c:557 msgid "Deutsch" msgstr "" #: ../src/interface.c:558 msgid "Greek" msgstr "" #: ../src/interface.c:559 msgid "Estonian" msgstr "" #: ../src/interface.c:560 msgid "Hungarian" msgstr "" #: ../src/interface.c:561 msgid "Dutch" msgstr "" #: ../src/interface.c:562 msgid "Portuguese" msgstr "" #: ../src/interface.c:563 msgid "Czech" msgstr "" #: ../src/interface.c:564 msgid "Spanish" msgstr "" #: ../src/interface.c:565 msgid "Italian" msgstr "" #: ../src/interface.c:567 msgid "Système" msgstr "Systém" #: ../src/interface.c:595 msgid "Garder les menus" msgstr "Včetně DVD menu" #: ../src/interface.c:602 msgid "Conserver les menus du DVD" msgstr "Včetně DVD menu" # #: ../src/interface.c:605 msgid "Créer une image ISO" msgstr "Vytvořit ISO image" # #: ../src/interface.c:612 msgid "Créer une image ISO apres convertion" msgstr "Vytvořit ISO image po konverzi" #: ../src/interface.c:615 msgid "Graver le DVD" msgstr "Vypálit DVD" #: ../src/interface.c:622 msgid "Graver un DVD apres convertion" msgstr "Vypálit DVD po konverzi" # #: ../src/interface.c:624 msgid "Qualité dynamique" msgstr "Dynamická kvalita" #: ../src/interface.c:631 msgid "Convertir avec une qualité d'image dynamique" msgstr "Konvertovat s dynamickou kvalitou obrazu" #: ../src/interface.c:641 msgid "Capacité du DVD :" msgstr "Kapacita DVD :" #: ../src/interface.c:649 msgid "Couper le générique" msgstr "Odebrat závěrečné titulky" #: ../src/interface.c:656 msgid "Ne pas conserver le dernier chapitre de la piste vidéo" msgstr "Přeskočit poslední kapitolu" #: ../src/interface.c:659 msgid "Paramètres de création" msgstr "Vytvářecí parametry" #: ../src/interface.c:812 msgid "Détails" msgstr "Detaily" # #: ../src/interface.c:873 msgid "Choix du fichier ISO" msgstr "Vyberte ISO soubor" #: ../src/interface.c:926 msgid "Aucun medium détecté" msgstr "Médium nebylo nalezeno" #: ../src/interface.c:952 msgid "" "Aucun médium détecté\n" "\n" "Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à " "utiliser. " msgstr "" "Médium nebylo nalezeno\n" "\n" "Prosím vložte video DVD, nebo určete ISO soubor s image. " #: ../src/interface.c:965 msgid "Fichier ISO" msgstr "ISO soubor" #: ../src/interface.c:1023 msgid "Première phase terminée" msgstr "První fáze dokončena" #: ../src/interface.c:1049 msgid "" "Extraction du contenu terminée\n" "\n" "Avant de procéder à la construction d'une image ISO ou une gravure, vous " "pouvez prévisualiser le résultat." msgstr "" "Extrakce dokončena\n" "\n" "Před vytvořením ISO image nebo vypálením si můžete přehrát výsledek." # #: ../src/interface.c:1118 msgid "Analyse en cours" msgstr "Probíhá analýza." #: ../src/interface.c:1144 msgid "" "Analyse en cours\n" "\n" "Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure." msgstr "" "Analyzuji\n" "\n" "Prosím počkejte na analýzu DVD struktury." #: ../src/interface.c:1193 msgid "Terminé" msgstr "Hotovo" #: ../src/interface.c:1219 msgid "" "Encodage terminé\n" "\n" "La conversion s'est déroulée avec succès." msgstr "" "Kódování dokončeno\n" "\n" "Konverze byla úspěšná." #. TRANSLATORS: Replace this string with your names, one name per line. #: ../src/interface.c:1271 msgid "translator-credits" msgstr "Dušan Hokův " #: ../src/interface.c:1278 ../src/interface.c:1282 msgid "Dvd95" msgstr "Dvd95" #: ../src/interface.c:1279 msgid "a GNOME application to convert DVD9 to DVD5" msgstr "GNOME aplikace pro konverzi DVD9 na DVD5" #: ../src/interface.c:1280 msgid "" "Dvd95 is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" "Dvd95 is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty\n" "of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n" "See the GNU General Public License for more details.\n" "You should have received a copy of the GNU General Public License\n" "along with Dvd95;\n" "if not, write to the Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" msgstr "" #: ../src/message.c:116 msgid "Alerte" msgstr "Výstraha" #: ../src/message.c:149 msgid "Ok" msgstr "Budiž" #: ../src/message.c:161 msgid "Cancel" msgstr "Zrušit" #: ../src/message.c:240 msgid "Informations" msgstr "Informace" #: ../src/message.c:317 #, fuzzy, c-format msgid "Première phase terminée (%d)" msgstr "První fáze dokončena" #: ../src/support.c:60 ../src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "Nelze nalézt soubor pixmapy: %s" #: ../src/systools.c:134 #, c-format msgid "%.2f gigas" msgstr "%.2f giga" #: ../src/systools.c:139 #, c-format msgid "%.2f megas" msgstr "%.2f mega" #: ../src/systools.c:143 #, c-format msgid "%.2f kilos" msgstr "%.2f kilo" #: ../src/profile.c:46 msgid "4.7 GiO" msgstr "4.7 GB" #: ../src/profile.c:62 msgid "8.5 GiO" msgstr "8.5 GB" #: ../src/profile.c:78 msgid "AVI 700Mo mp3-128k MPEG4 2Pass" msgstr "" #: ../src/profile.c:94 msgid "AVI 1Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:110 msgid "AVI 1Go mp3-128k X264 1Pass" msgstr "" #: ../src/profile.c:126 msgid "AVI 1.5Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:142 msgid "AVI 2Go AC3 MPEG4 1Pass" msgstr "" #: ../src/profile.c:158 msgid "AVI 2Go AC3 X264 1Pass" msgstr "" #: ../src/profile.c:174 msgid "PSP 300Mo" msgstr "" #: ../src/profile.c:191 msgid "PSP 500Mo" msgstr "" #: ../src/profile.c:208 msgid "AVI 2Go AC3 X264 2Pass High Quality" msgstr "" #: ../src/dvd2avi.c:623 msgid "Détection des bandes noires\n" msgstr "" #: ../src/dvd2avi.c:821 #, c-format msgid "Pas le droit de créer de fichier dans %s !" msgstr "" #: ../src/dvd2avi.c:833 #, fuzzy msgid "Sélectionnez qu'un seule piste audio !" msgstr "Vyberte audio stopy" #: ../src/dvd2avi.c:866 #, fuzzy, c-format msgid "Le fichier %s existe. L'utiliser ?" msgstr "Soubor %s již existuje. Vytvořit znovu ?" #: ../src/dvd2avi.c:876 #, fuzzy, c-format msgid "Création de %s impossible !" msgstr "Chyba při čtení titulu %s!" #: ../src/dvd2avi.c:982 msgid "Encodage\n" msgstr "" #: ../src/dvd2avi.c:994 #, c-format msgid "Encodage passe %d\n" msgstr "" #: ../src/dvd2avi.c:999 msgid "Continuer en passe 2 ?" msgstr "" #: ../src/dvd2avi.c:1017 msgid "Conserver le fichier vob pour un autre encodage ?" msgstr "" #: ../src/dvd2avi.c:1023 #, fuzzy, c-format msgid "Conserver le fichier %s ?" msgstr "Včetně DVD menu" #~ msgid "DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULON" #~ msgstr "DVD95: soukromá kopie DVD 9 na DVD 5 napsal J.F. COULON" #~ msgid "Version: %s du %s" #~ msgstr "Verze: %s z %s" #~ msgid "Total %d%% (%s restant)" #~ msgstr "Celkem %d%% (%s zbývá)" #~ msgid "%d%% a %.2fx" #~ msgstr "%d%% a %.2fx" #~ msgid "AUCUN" #~ msgstr "ŽÁDNÉ" #~ msgid "GNU GPL" #~ msgstr "GNU GPL" dvd95/po/de.mo000066400000000000000000000233001140003301000133300ustar00rootroot00000000000000q,    - 0 ! * 2 o: Q0 $ 1 Q d t ! ' "   ' 7 H _ }      - $5%L%r"% *85nu{!&H.b) 6 E!Rt{  #$0Uu$"<7;s1 ,I!e #%%4+Z$$ChqxZKa GTdv &"  ,/\p )#-Qb)w'$/3 c;nf!%!5)8oM$Cp,b Tf'L+]ZR! / g1N%iAe0H3k &7cEnqK Y@9DQ%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé La conversion s'est déroulée avec succès.Extraction du contenu terminée Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières. Ajustement automatique de la qualité. Ajustement de qualité à %.2f%%. AlerteAnalyse de %d cellules. Analyse de la cellule %d (%d secteurs) Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO. Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules. Copie de la cellule %d (%d secteurs) Copie des menus vob%2d (%d secteurs) Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD. Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULONDuréeDvd95Dvd95 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Dvd95 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Dvd95; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 2111-1307 USA DétailsEcran des propiétésEffacement des anciens fichiers. Effacement des fichiers. Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :ExtFichier ISOFichier VOB trop gros (%s) ! Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD. FormatGarder les menusGravage sur DVD. Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents !Mise à jours du vob %d-%d Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPas assez de place sur %s Il manque %lld octets !PistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% a %.2fxVersion: %s du %sVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !totemtranslator-creditsÉvaluation de qualité :ÉvaluerProject-Id-Version: DVD95 1.2p1 POT-Creation-Date: PO-Revision-Date: 2007-06-06 01:22+0100 Last-Translator: Stefan Nagy Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: German %.2f GB%.2f KB%.2f MB%d%d%% (%s verbleiben)%s%s ist keine Datei! Bitte entfernen.%s ist kein Ordner! Bitte entfernen./dev/dvd4,7 GB8,5 GBDVD wird analysiert Bitte warten. Die Struktur der DVD wird untersucht.DVD kann nicht gefunden werden Bitte lege eine Video-DVD in das Laufwerk oder gib das zu verwendende ISO-Abbild an.Kodierung beendet Die Konvertierung verlief erfolgreich.Extraktion des Inhalts beendet Vor der Erstellung des ISO-Abbildes bzw. dem Brennen kannst du dir eine Vorschau des Resultats ansehen.AudioOptionenUntertitelSystemeinstellungenVideoInhaltsverzeichnis wird hinzugefügt. Automatische Qualitätsanpassung. Qualitätsanpassung auf %.2f%%. WarnungAnalysiere %d Video-Dateien. Analysiere Video-Datei %d (%d Datenblöcke) DVD wird analysiertDVD kann nicht gefunden werdenDie beste Qualität berechnenKanäleAbbrechenSpeicherkapazität des Zieldatenträgers:KapitelISO-Abbild öffnenDVD-Menüs erhaltenErzeuge ISO-Abbild. Konvertierung mit variabler BitrateDVD konvertierenKopiere %d Dateien. Kopiere Video-Datei %d (%d Datenblöcke) Kopiere Menü VOB%2d (%d Datenblöcke) Konnte Pixmap-Datei nicht finden: %sAbspann entfernenErstellung der DVD-Struktur. ISO-Abbild erstellenNach der Konvertierung ein ISO-Abbild erstellenDVD 9 to 5DVD95: Privates Kopieren von DVD-9 zu DVD-5 von J.F. COULONDauerDVD95DVD95 ist Freie Software; Sie dürfen sie weitergeben und/oder verändern unter den Bedingungen der GNU General Public License, Version 2 oder (wenn Sie wollen) einer neueren Version. DVD95 wird in der Hoffnung verteilt, dass es nützlich ist, aber OHNE IRGENDEINE GARANTIE; besonders ohne Garantie, dass sie für einen bestimmten Zweck geeignet ist. Für weitere Details lesen Sie die GNU General Public License. Sie sollten eine Kopie der GNU General Public License mit DVD95 erhalten haben; wenn nicht, schreiben Sie an die Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA DetailsEinstellungen anzeigenAlte Daten werden gelöscht. Lösche Dateien. Erstellungsfehler. Dateien löschen?Konvertierungsfehler...Lesefehler! Fehler ignorieren?Ordner für ISO-Dateien:Temporärer Ordner:ExtISO-DateiVOB-Datei zu groß (%s)! Dennoch fortfahren?ISO-DateiFixierung der DVD-Struktur. FormatMenüs beibehaltenBrenne DVD. DVD brennenNach der Konvertierung eine DVD brennenUnbekanntInformationenSpracheSprachenDie Datei %s existiert bereits. Überschreiben?Die Datei %s existiert nicht!Der Ordner %s existiert bereits. Überschreiben?Der Ordner %s existiert nicht!Media PlayerStruktur nicht lesbar!DVD wiedergebenTitel %s nicht lesbar!Der temporäre Ordner darf nicht ident mit dem ISO-Ordner sein!Aktualisiere VOB %d-%d Letztes Kapitel des Video-Titels nicht erhaltenTrace LevelDatenträgerbezeichnung bzw. Bezeichnung des ISO-AbbildesOKNicht genug Speicherkapazität auf %s Es fehlen %lld BytesTitelErste Phase beendetEinstellungenDVD-Laufwerk:Dynamische QualitätsanpassungAudiospuren wählenUntertitel wählenZu konvertierenden Titel wählenUntertitelOrdner wählenBeendenFilmtitel:Insgesamt %d%% bei %.2fxVersion: %s von %sBitte führe die Qualitätsberechnung ausBitte wähle eine AudiospurBitte wähle einen Video-TitelEine GNOME-Anwendung zur Konvertierung von DVD-9 zu DVD-5Kann das Programm mkisofs nicht finden!totemStefan NagyQualitätsanpassung:Evaluierungdvd95/po/de.po000066400000000000000000000431311140003301000133370ustar00rootroot00000000000000msgid "" msgstr "" "Project-Id-Version: DVD95 1.2p1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-11-27 21:13+0100\n" "PO-Revision-Date: 2007-06-06 01:22+0100\n" "Last-Translator: Stefan Nagy \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: German\n" #: ../src/avancement.c:308 ../src/avancement.c:396 #, c-format msgid "Total %d%% a %.2fx" msgstr "Insgesamt %d%% bei %.2fx" #: ../src/avancement.c:319 ../src/avancement.c:386 #, c-format msgid "%d%% (%s restant)" msgstr "%d%% (%s verbleiben)" #: ../src/callbacks.c:178 ../src/interface.c:70 ../src/main.c:306 msgid "DVD 9 to 5" msgstr "DVD 9 to 5" #: ../src/callbacks.c:197 ../src/callbacks.c:374 ../src/callbacks.c:458 msgid "Veuillez selectionner une piste video" msgstr "Bitte wähle einen Video-Titel" #: ../src/callbacks.c:273 ../src/uitools.c:148 msgid "Fichiers ISO" msgstr "ISO-Datei" #: ../src/callbacks.c:378 ../src/callbacks.c:462 msgid "Veuillez selectionner une piste audio" msgstr "Bitte wähle eine Audiospur" #: ../src/callbacks.c:394 msgid "Veuillez lancer un calcul de qualit" msgstr "Bitte führe die Qualitätsberechnung aus" #: ../src/callbacks.c:418 msgid "Erreur de conversion ........" msgstr "Konvertierungsfehler..." #: ../src/dvd2vob.c:462 ../src/dvdbackup.c:1144 ../src/dvd2avi.c:349 #, c-format msgid "Copie de la cellule %d (%d secteurs)\n" msgstr "Kopiere Video-Datei %d (%d Datenblöcke)\n" #: ../src/dvd2vob.c:649 ../src/dvd2vob.c:696 msgid "Fixation de la structure du DVD.\n" msgstr "Fixierung der DVD-Struktur.\n" #: ../src/dvd2vob.c:874 ../src/dvd2vob.c:883 ../src/dvdbackup.c:1378 #: ../src/dvdbackup.c:1386 ../src/dvd2avi.c:808 ../src/dvd2avi.c:815 #, fuzzy, c-format msgid "" "Pas assez de place sur %s\n" "Il manque %s octets !" msgstr "" "Nicht genug Speicherkapazität auf %s\n" "Es fehlen %s Bytes" #: ../src/dvd2vob.c:907 ../src/dvdbackup.c:1415 ../src/dvd2avi.c:855 #, c-format msgid "Copie de %d cellules.\n" msgstr "Kopiere %d Dateien.\n" #. Create empty filesystem tree #: ../src/dvd2vob.c:909 ../src/dvdbackup.c:1417 ../src/dvd2avi.c:857 msgid "Effacement des anciens fichiers.\n" msgstr "Alte Daten werden gelöscht.\n" #: ../src/dvd2vob.c:914 ../src/dvdbackup.c:1422 #, c-format msgid "Le repertoire %s existe. L'effacer ?" msgstr "Der Ordner %s existiert bereits. Überschreiben?" #: ../src/dvd2vob.c:924 ../src/dvdbackup.c:1432 #, c-format msgid "%s n'est pas un repertoire ! Veuillez l'effacer." msgstr "%s ist kein Ordner! Bitte entfernen." #: ../src/dvd2vob.c:965 ../src/dvdbackup.c:1466 msgid "Ajustement automatique de la qualité.\n" msgstr "Automatische Qualitätsanpassung.\n" #: ../src/dvd2vob.c:992 ../src/dvdbackup.c:1498 #, c-format msgid "Ajustement de qualité à %.2f%%.\n" msgstr "Qualitätsanpassung auf %.2f%%.\n" #: ../src/dvd2vob.c:1017 ../src/dvdbackup.c:1511 #, c-format msgid "" "Fichier VOB trop gros (%s) !\n" "Désirez vous continuer ?" msgstr "" "VOB-Datei zu groß (%s)!\n" "Dennoch fortfahren?" #: ../src/dvd2vob.c:1043 msgid "Création de la structure du DVD.\n" msgstr "Erstellung der DVD-Struktur.\n" #: ../src/dvd2vob.c:1089 msgid "Ajout de la table des matières.\n" msgstr "Inhaltsverzeichnis wird hinzugefügt.\n" #: ../src/dvd2vob.c:1125 ../src/dvdbackup.c:1548 #, c-format msgid "Le fichier %s existe. Le re-creer ?" msgstr "Die Datei %s existiert bereits. Überschreiben?" #: ../src/dvd2vob.c:1128 ../src/dvdbackup.c:1551 msgid "Construction de l'image ISO.\n" msgstr "Erzeuge ISO-Abbild.\n" #: ../src/dvd2vob.c:1138 ../src/dvdbackup.c:1566 #, c-format msgid "%s n'est pas un fichier ! Veuillez l'effacer." msgstr "%s ist keine Datei! Bitte entfernen." #: ../src/dvd2vob.c:1145 ../src/dvdbackup.c:1573 msgid "Gravage sur DVD.\n" msgstr "Brenne DVD.\n" #: ../src/dvd2vob.c:1159 ../src/dvdbackup.c:1587 msgid "Effacement des fichiers.\n" msgstr "Lösche Dateien.\n" #: ../src/dvdbackup.c:171 #, c-format msgid "Copie des menus vob%2d (%d secteurs)\n" msgstr "Kopiere Menü VOB%2d (%d Datenblöcke)\n" #: ../src/dvdbackup.c:772 #, c-format msgid "Mise à jours du vob %d-%d\n" msgstr "Aktualisiere VOB %d-%d\n" #: ../src/dvdbackup.c:1142 #, c-format msgid "Analyse de la cellule %d (%d secteurs)\n" msgstr "Analysiere Video-Datei %d (%d Datenblöcke)\n" #: ../src/dvdbackup.c:1559 msgid "Erreur de construction. Effacer les fichiers ?" msgstr "Erstellungsfehler. Dateien löschen?" #: ../src/dvdbackup.c:1713 #, c-format msgid "Analyse de %d cellules.\n" msgstr "Analysiere %d Video-Dateien.\n" #: ../src/dvdcopy.c:107 msgid "AC3" msgstr "" #: ../src/dvdcopy.c:108 ../src/dvdcopy.c:115 msgid "?" msgstr "" #: ../src/dvdcopy.c:109 msgid "MPEG1" msgstr "" #: ../src/dvdcopy.c:110 msgid "MPEG2" msgstr "" #: ../src/dvdcopy.c:111 msgid "LPCM" msgstr "" #: ../src/dvdcopy.c:112 msgid "SDDS" msgstr "" #: ../src/dvdcopy.c:113 msgid "DTS" msgstr "" #: ../src/dvdcopy.c:133 ../src/dvdcopy.c:156 #, fuzzy msgid "Normal" msgstr "Format" #: ../src/dvdcopy.c:134 msgid "Impaired" msgstr "" #: ../src/dvdcopy.c:135 msgid "Director's comments" msgstr "" #: ../src/dvdcopy.c:136 msgid "Alternate director's comments" msgstr "" #: ../src/dvdcopy.c:157 #, fuzzy msgid "Large" msgstr "Sprache" #: ../src/dvdcopy.c:158 msgid "Enfants" msgstr "" #: ../src/dvdcopy.c:159 msgid "Reserved" msgstr "" #: ../src/dvdcopy.c:160 msgid "Légende normale" msgstr "" #: ../src/dvdcopy.c:161 msgid "Légende large" msgstr "" #: ../src/dvdcopy.c:162 msgid "Légende enfants" msgstr "" #: ../src/dvdcopy.c:163 ../src/dvdcopy.c:165 ../src/dvdcopy.c:166 #: ../src/dvdcopy.c:167 msgid "reserved" msgstr "" #: ../src/dvdcopy.c:164 #, fuzzy msgid "Forcé" msgstr "Format" #: ../src/dvdcopy.c:168 msgid "Réalisateur" msgstr "" #: ../src/dvdcopy.c:169 msgid "Réalisateur large" msgstr "" #: ../src/dvdcopy.c:170 msgid "Réalisateur enfants" msgstr "" #: ../src/dvdcopy.c:300 msgid "Lecture de la structure impossible !" msgstr "Struktur nicht lesbar!" #: ../src/dvdcopy.c:306 #, c-format msgid "Lecture du titre de %s impossible!" msgstr "Titel %s nicht lesbar!" #: ../src/dvdcopy.c:344 ../src/dvdcopy.c:1007 ../src/dvdcopy.c:1193 msgid "Piste" msgstr "Titel" #: ../src/dvdcopy.c:356 msgid "Durée" msgstr "Dauer" #: ../src/dvdcopy.c:368 msgid "Chapitres" msgstr "Kapitel" #: ../src/dvdcopy.c:380 msgid "Langues" msgstr "Sprachen" #: ../src/dvdcopy.c:392 msgid "Sous-titres" msgstr "Untertitel" #: ../src/dvdcopy.c:404 ../src/dvdcopy.c:1027 msgid "Format" msgstr "Format" #: ../src/dvdcopy.c:488 ../src/dvdcopy.c:495 ../src/dvdcopy.c:501 #: ../src/dvdcopy.c:1082 ../src/dvdcopy.c:1094 ../src/dvdcopy.c:1241 #, c-format msgid "%d" msgstr "%d" #: ../src/dvdcopy.c:498 ../src/dvdcopy.c:504 ../src/dvdcopy.c:1085 #: ../src/dvdcopy.c:1244 #, c-format msgid "%s" msgstr "%s" #: ../src/dvdcopy.c:1017 ../src/dvdcopy.c:1203 ../src/interface.c:540 msgid "Langue" msgstr "Sprache" #: ../src/dvdcopy.c:1038 msgid "Extension" msgstr "" #: ../src/dvdcopy.c:1049 msgid "Canaux" msgstr "Kanäle" #: ../src/dvdcopy.c:1213 msgid "Ext" msgstr "Ext" #: ../src/dvdinfo.c:205 msgid "Inconnu" msgstr "Unbekannt" #: ../src/dvdtools.c:365 msgid "Erreur de lecture ! Ignorer les erreurs ?" msgstr "Lesefehler! Fehler ignorieren?" #: ../src/gconfig.c:466 #, fuzzy msgid "Les répertoires temporaire et iso doivent être différents !" msgstr "Der temporäre Ordner darf nicht ident mit dem ISO-Ordner sein!" #: ../src/gconfig.c:470 msgid "mkisofs manquant !" msgstr "Kann das Programm mkisofs nicht finden!" #: ../src/gconfig.c:474 ../src/gconfig.c:482 #, fuzzy, c-format msgid "Le répertoire %s n'existe pas !" msgstr "Der Ordner %s existiert nicht!" #: ../src/gconfig.c:478 ../src/gconfig.c:486 #, c-format msgid "Pas d'accès en écriture au répertoire %s !" msgstr "" #: ../src/gconfig.c:491 #, c-format msgid "Le fichier %s n'existe pas !" msgstr "Die Datei %s existiert nicht!" #: ../src/interface.c:95 msgid "Ecran des propiétés" msgstr "Einstellungen anzeigen" #: ../src/interface.c:102 msgid "Lecture du DVD" msgstr "DVD wiedergeben" #: ../src/interface.c:106 msgid "Évaluer" msgstr "Evaluierung" #: ../src/interface.c:110 msgid "Calculer la qualité au mieux" msgstr "Die beste Qualität berechnen" #: ../src/interface.c:116 msgid "Convertir le DVD" msgstr "DVD konvertieren" #: ../src/interface.c:152 msgid "Nom du DVD et du fichier ISO" msgstr "Datenträgerbezeichnung bzw. Bezeichnung des ISO-Abbildes" #: ../src/interface.c:155 msgid "Évaluation de qualité :" msgstr "Qualitätsanpassung:" #: ../src/interface.c:163 msgid "Titre du film :" msgstr "Filmtitel:" #: ../src/interface.c:196 msgid "Selectionner la piste a convertir" msgstr "Zu konvertierenden Titel wählen" #: ../src/interface.c:199 msgid "Vidéo" msgstr "Video" #: ../src/interface.c:231 msgid "Selectioner les pistes audio" msgstr "Audiospuren wählen" #: ../src/interface.c:234 msgid "Audio" msgstr "Audio" #: ../src/interface.c:266 msgid "Selectioner les sous titres" msgstr "Untertitel wählen" #: ../src/interface.c:269 msgid "Sous-titres" msgstr "Untertitel" #: ../src/interface.c:397 msgid "Propriétés" msgstr "Einstellungen" #: ../src/interface.c:436 msgid "Périphérique DVD :" msgstr "DVD-Laufwerk:" #: ../src/interface.c:444 msgid "Espace temporaire :" msgstr "Temporärer Ordner:" #: ../src/interface.c:452 msgid "Espace des ISO :" msgstr "Ordner für ISO-Dateien:" #: ../src/interface.c:460 msgid "Lecteur multimédia :" msgstr "Media Player" #: ../src/interface.c:468 msgid "Niveau de trace :" msgstr "Trace Level" #: ../src/interface.c:476 ../src/interface.c:483 msgid "Sélectionner un dossier" msgstr "Ordner wählen" #: ../src/interface.c:502 msgid "totem" msgstr "totem" #: ../src/interface.c:517 msgid "/dev/dvd" msgstr "/dev/dvd" #: ../src/interface.c:520 msgid "Indications sonores" msgstr "" #: ../src/interface.c:554 msgid "Default" msgstr "" #: ../src/interface.c:555 msgid "Français" msgstr "" #: ../src/interface.c:556 msgid "English" msgstr "" #: ../src/interface.c:557 msgid "Deutsch" msgstr "" #: ../src/interface.c:558 msgid "Greek" msgstr "" #: ../src/interface.c:559 msgid "Estonian" msgstr "" #: ../src/interface.c:560 msgid "Hungarian" msgstr "" #: ../src/interface.c:561 msgid "Dutch" msgstr "" #: ../src/interface.c:562 msgid "Portuguese" msgstr "" #: ../src/interface.c:563 msgid "Czech" msgstr "" #: ../src/interface.c:564 msgid "Spanish" msgstr "" #: ../src/interface.c:565 msgid "Italian" msgstr "" #: ../src/interface.c:567 msgid "Système" msgstr "Systemeinstellungen" #: ../src/interface.c:595 msgid "Garder les menus" msgstr "Menüs beibehalten" #: ../src/interface.c:602 msgid "Conserver les menus du DVD" msgstr "DVD-Menüs erhalten" #: ../src/interface.c:605 msgid "Créer une image ISO" msgstr "ISO-Abbild erstellen" #: ../src/interface.c:612 msgid "Créer une image ISO apres convertion" msgstr "Nach der Konvertierung ein ISO-Abbild erstellen" #: ../src/interface.c:615 msgid "Graver le DVD" msgstr "DVD brennen" #: ../src/interface.c:622 msgid "Graver un DVD apres convertion" msgstr "Nach der Konvertierung eine DVD brennen" #: ../src/interface.c:624 msgid "Qualité dynamique" msgstr "Dynamische Qualitätsanpassung" #: ../src/interface.c:631 msgid "Convertir avec une qualité d'image dynamique" msgstr "Konvertierung mit variabler Bitrate" #: ../src/interface.c:641 msgid "Capacité du DVD :" msgstr "Speicherkapazität des Zieldatenträgers:" #: ../src/interface.c:649 msgid "Couper le générique" msgstr "Abspann entfernen" #: ../src/interface.c:656 msgid "Ne pas conserver le dernier chapitre de la piste vidéo" msgstr "Letztes Kapitel des Video-Titels nicht erhalten" #: ../src/interface.c:659 msgid "Paramètres de création" msgstr "Optionen" #: ../src/interface.c:812 msgid "Détails" msgstr "Details" #: ../src/interface.c:873 msgid "Choix du fichier ISO" msgstr "ISO-Abbild öffnen" #: ../src/interface.c:926 msgid "Aucun medium détecté" msgstr "DVD kann nicht gefunden werden" #: ../src/interface.c:952 msgid "" "Aucun médium détecté\n" "\n" "Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à " "utiliser. " msgstr "" "DVD kann nicht gefunden werden\n" "\n" "Bitte lege eine Video-DVD in das Laufwerk oder gib das zu verwendende ISO-" "Abbild an." #: ../src/interface.c:965 msgid "Fichier ISO" msgstr "ISO-Datei" #: ../src/interface.c:1023 msgid "Première phase terminée" msgstr "Erste Phase beendet" #: ../src/interface.c:1049 msgid "" "Extraction du contenu terminée\n" "\n" "Avant de procéder à la construction d'une image ISO ou une gravure, vous " "pouvez prévisualiser le résultat." msgstr "" "Extraktion des Inhalts beendet\n" "\n" "Vor der Erstellung des ISO-Abbildes bzw. dem Brennen kannst du dir eine " "Vorschau des Resultats ansehen." #: ../src/interface.c:1118 msgid "Analyse en cours" msgstr "DVD wird analysiert" #: ../src/interface.c:1144 msgid "" "Analyse en cours\n" "\n" "Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure." msgstr "" "DVD wird analysiert\n" "\n" "Bitte warten. Die Struktur der DVD wird untersucht." #: ../src/interface.c:1193 msgid "Terminé" msgstr "Beenden" #: ../src/interface.c:1219 msgid "" "Encodage terminé\n" "\n" "La conversion s'est déroulée avec succès." msgstr "" "Kodierung beendet\n" "\n" "Die Konvertierung verlief erfolgreich." #. TRANSLATORS: Replace this string with your names, one name per line. #: ../src/interface.c:1271 msgid "translator-credits" msgstr "Stefan Nagy" #: ../src/interface.c:1278 ../src/interface.c:1282 msgid "Dvd95" msgstr "DVD95" #: ../src/interface.c:1279 msgid "a GNOME application to convert DVD9 to DVD5" msgstr "Eine GNOME-Anwendung zur Konvertierung von DVD-9 zu DVD-5" #: ../src/interface.c:1280 msgid "" "Dvd95 is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" "Dvd95 is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty\n" "of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n" "See the GNU General Public License for more details.\n" "You should have received a copy of the GNU General Public License\n" "along with Dvd95;\n" "if not, write to the Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" msgstr "" "DVD95 ist Freie Software; Sie dürfen sie weitergeben und/oder\n" "verändern unter den Bedingungen der GNU General Public License,\n" "Version 2 oder (wenn Sie wollen) einer neueren Version.\n" "DVD95 wird in der Hoffnung verteilt, dass es nützlich ist,\n" "aber OHNE IRGENDEINE GARANTIE; besonders ohne Garantie,\n" "dass sie für einen bestimmten Zweck geeignet ist.\n" "Für weitere Details lesen Sie die GNU General Public License.\n" "Sie sollten eine Kopie der GNU General Public License mit\n" "DVD95 erhalten haben;\n" "wenn nicht, schreiben Sie an die Free Software Foundation, Inc.,\n" "59 Temple Place - Suite 330, Boston, MA 02111-1307 USA\n" #: ../src/message.c:116 msgid "Alerte" msgstr "Warnung" #: ../src/message.c:149 msgid "Ok" msgstr "OK" #: ../src/message.c:161 msgid "Cancel" msgstr "Abbrechen" #: ../src/message.c:240 msgid "Informations" msgstr "Informationen" #: ../src/message.c:317 #, fuzzy, c-format msgid "Première phase terminée (%d)" msgstr "Erste Phase beendet" #: ../src/support.c:60 ../src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "Konnte Pixmap-Datei nicht finden: %s" #: ../src/systools.c:134 #, c-format msgid "%.2f gigas" msgstr "%.2f GB" #: ../src/systools.c:139 #, c-format msgid "%.2f megas" msgstr "%.2f MB" #: ../src/systools.c:143 #, c-format msgid "%.2f kilos" msgstr "%.2f KB" #: ../src/profile.c:46 msgid "4.7 GiO" msgstr "4,7 GB" #: ../src/profile.c:62 msgid "8.5 GiO" msgstr "8,5 GB" #: ../src/profile.c:78 msgid "AVI 700Mo mp3-128k MPEG4 2Pass" msgstr "" #: ../src/profile.c:94 msgid "AVI 1Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:110 msgid "AVI 1Go mp3-128k X264 1Pass" msgstr "" #: ../src/profile.c:126 msgid "AVI 1.5Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:142 msgid "AVI 2Go AC3 MPEG4 1Pass" msgstr "" #: ../src/profile.c:158 msgid "AVI 2Go AC3 X264 1Pass" msgstr "" #: ../src/profile.c:174 msgid "PSP 300Mo" msgstr "" #: ../src/profile.c:191 msgid "PSP 500Mo" msgstr "" #: ../src/profile.c:208 msgid "AVI 2Go AC3 X264 2Pass High Quality" msgstr "" #: ../src/dvd2avi.c:623 msgid "Détection des bandes noires\n" msgstr "" #: ../src/dvd2avi.c:821 #, c-format msgid "Pas le droit de créer de fichier dans %s !" msgstr "" #: ../src/dvd2avi.c:833 #, fuzzy msgid "Sélectionnez qu'un seule piste audio !" msgstr "Audiospuren wählen" #: ../src/dvd2avi.c:866 #, fuzzy, c-format msgid "Le fichier %s existe. L'utiliser ?" msgstr "Die Datei %s existiert bereits. Überschreiben?" #: ../src/dvd2avi.c:876 #, fuzzy, c-format msgid "Création de %s impossible !" msgstr "Titel %s nicht lesbar!" #: ../src/dvd2avi.c:982 msgid "Encodage\n" msgstr "" #: ../src/dvd2avi.c:994 #, c-format msgid "Encodage passe %d\n" msgstr "" #: ../src/dvd2avi.c:999 msgid "Continuer en passe 2 ?" msgstr "" #: ../src/dvd2avi.c:1017 msgid "Conserver le fichier vob pour un autre encodage ?" msgstr "" #: ../src/dvd2avi.c:1023 #, fuzzy, c-format msgid "Conserver le fichier %s ?" msgstr "DVD-Menüs erhalten" #~ msgid "DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULON" #~ msgstr "DVD95: Privates Kopieren von DVD-9 zu DVD-5 von J.F. COULON" #~ msgid "Version: %s du %s" #~ msgstr "Version: %s von %s" dvd95/po/el.po000066400000000000000000000464131140003301000133550ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: dvd95\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-11-27 21:13+0100\n" "PO-Revision-Date: 2007-03-06 21:27+0100\n" "Last-Translator: jf.coulon \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: English\n" #: ../src/avancement.c:308 ../src/avancement.c:396 #, c-format msgid "Total %d%% a %.2fx" msgstr "Συνολικά %d%% από %.2fx" #: ../src/avancement.c:319 ../src/avancement.c:386 #, c-format msgid "%d%% (%s restant)" msgstr "%d%% (%s υπόλοιπο)" #: ../src/callbacks.c:178 ../src/interface.c:70 ../src/main.c:306 msgid "DVD 9 to 5" msgstr "" #: ../src/callbacks.c:197 ../src/callbacks.c:374 ../src/callbacks.c:458 msgid "Veuillez selectionner une piste video" msgstr "Παρακαλώ επιλέξετε πίστα βίντεο" #: ../src/callbacks.c:273 ../src/uitools.c:148 msgid "Fichiers ISO" msgstr "Αρχεία ISO" #: ../src/callbacks.c:378 ../src/callbacks.c:462 msgid "Veuillez selectionner une piste audio" msgstr "Παρακαλώ επιλέξετε πίστα ήχου" #: ../src/callbacks.c:394 msgid "Veuillez lancer un calcul de qualit" msgstr "Παρακαλώ ξεκινήστε έλεγχο ποιότητας" #: ../src/callbacks.c:418 msgid "Erreur de conversion ........" msgstr "Λάθος στη μετατροπή ........" #: ../src/dvd2vob.c:462 ../src/dvdbackup.c:1144 ../src/dvd2avi.c:349 #, c-format msgid "Copie de la cellule %d (%d secteurs)\n" msgstr "Αντιγραφή κελιού %d (%d τομείς)\n" #: ../src/dvd2vob.c:649 ../src/dvd2vob.c:696 msgid "Fixation de la structure du DVD.\n" msgstr "Διόρθωση δομής DVD.\n" #: ../src/dvd2vob.c:874 ../src/dvd2vob.c:883 ../src/dvdbackup.c:1378 #: ../src/dvdbackup.c:1386 ../src/dvd2avi.c:808 ../src/dvd2avi.c:815 #, fuzzy, c-format msgid "" "Pas assez de place sur %s\n" "Il manque %s octets !" msgstr "" "Δεν υπάρχει αρκετός χώρος στο %s\n" "Απαιτούνται %s περισσότερα bytes!" #: ../src/dvd2vob.c:907 ../src/dvdbackup.c:1415 ../src/dvd2avi.c:855 #, c-format msgid "Copie de %d cellules.\n" msgstr "Αντιγραφή %d κελιών.\n" #. Create empty filesystem tree #: ../src/dvd2vob.c:909 ../src/dvdbackup.c:1417 ../src/dvd2avi.c:857 msgid "Effacement des anciens fichiers.\n" msgstr "Διαγραφή παλιών αρχείων.\n" #: ../src/dvd2vob.c:914 ../src/dvdbackup.c:1422 #, c-format msgid "Le repertoire %s existe. L'effacer ?" msgstr "Ο φάκελος %s δεν υπάρχει!" #: ../src/dvd2vob.c:924 ../src/dvdbackup.c:1432 #, c-format msgid "%s n'est pas un repertoire ! Veuillez l'effacer." msgstr "Το %s δεν είναι φάκελος! Παρακαλώ διαγράψτε το." #: ../src/dvd2vob.c:965 ../src/dvdbackup.c:1466 msgid "Ajustement automatique de la qualité.\n" msgstr "Αυτόματη επιλογή ποιότητος.\n" #: ../src/dvd2vob.c:992 ../src/dvdbackup.c:1498 #, c-format msgid "Ajustement de qualité à %.2f%%.\n" msgstr "Θέτοντας την ποιότητα σε %.2f%%.\n" #: ../src/dvd2vob.c:1017 ../src/dvdbackup.c:1511 #, c-format msgid "" "Fichier VOB trop gros (%s) !\n" "Désirez vous continuer ?" msgstr "" "Το αρχείο VOB είναι πολύ μεγάλο (%s)!\n" "Να συνεχίσω;" #: ../src/dvd2vob.c:1043 msgid "Création de la structure du DVD.\n" msgstr "Δημιουργία δομής DVD.\n" #: ../src/dvd2vob.c:1089 msgid "Ajout de la table des matières.\n" msgstr "Πρόσθεση πίνακα περιεχομένων.\n" #: ../src/dvd2vob.c:1125 ../src/dvdbackup.c:1548 #, c-format msgid "Le fichier %s existe. Le re-creer ?" msgstr "Το αρχείο %s υπάρχει ήδη. Θέλετε να το ξαναδημιουργήσω;" #: ../src/dvd2vob.c:1128 ../src/dvdbackup.c:1551 msgid "Construction de l'image ISO.\n" msgstr "Δημιουργία αρχείου ISO.\n" #: ../src/dvd2vob.c:1138 ../src/dvdbackup.c:1566 #, c-format msgid "%s n'est pas un fichier ! Veuillez l'effacer." msgstr "Το %s δεν είναι αρχείο! Παρακαλώ διαγράψτε το." #: ../src/dvd2vob.c:1145 ../src/dvdbackup.c:1573 msgid "Gravage sur DVD.\n" msgstr "Κάψιμο DVD.\n" #: ../src/dvd2vob.c:1159 ../src/dvdbackup.c:1587 msgid "Effacement des fichiers.\n" msgstr "Διαγραφή αρχείων.\n" #: ../src/dvdbackup.c:171 #, c-format msgid "Copie des menus vob%2d (%d secteurs)\n" msgstr "Αντιγραφή μενού vob%2d (%d τομείς)\n" #: ../src/dvdbackup.c:772 #, c-format msgid "Mise à jours du vob %d-%d\n" msgstr "Ενημέρωση vob %d-%d\n" #: ../src/dvdbackup.c:1142 #, c-format msgid "Analyse de la cellule %d (%d secteurs)\n" msgstr "Ανάλυση κελιού %d (%d τομείς)\n" #: ../src/dvdbackup.c:1559 msgid "Erreur de construction. Effacer les fichiers ?" msgstr "Λάθος στη δημιουργία. Να διαγράψω τα αρχεία;" #: ../src/dvdbackup.c:1713 #, c-format msgid "Analyse de %d cellules.\n" msgstr "Ανάλυση %d κελιών.\n" #: ../src/dvdcopy.c:107 msgid "AC3" msgstr "" #: ../src/dvdcopy.c:108 ../src/dvdcopy.c:115 msgid "?" msgstr "" #: ../src/dvdcopy.c:109 msgid "MPEG1" msgstr "" #: ../src/dvdcopy.c:110 msgid "MPEG2" msgstr "" #: ../src/dvdcopy.c:111 msgid "LPCM" msgstr "" #: ../src/dvdcopy.c:112 msgid "SDDS" msgstr "" #: ../src/dvdcopy.c:113 msgid "DTS" msgstr "" #: ../src/dvdcopy.c:133 ../src/dvdcopy.c:156 #, fuzzy msgid "Normal" msgstr "Διομόρφση" #: ../src/dvdcopy.c:134 msgid "Impaired" msgstr "" #: ../src/dvdcopy.c:135 msgid "Director's comments" msgstr "" #: ../src/dvdcopy.c:136 msgid "Alternate director's comments" msgstr "" #: ../src/dvdcopy.c:157 #, fuzzy msgid "Large" msgstr "Γλώσσα" #: ../src/dvdcopy.c:158 msgid "Enfants" msgstr "" #: ../src/dvdcopy.c:159 msgid "Reserved" msgstr "" #: ../src/dvdcopy.c:160 msgid "Légende normale" msgstr "" #: ../src/dvdcopy.c:161 msgid "Légende large" msgstr "" #: ../src/dvdcopy.c:162 msgid "Légende enfants" msgstr "" #: ../src/dvdcopy.c:163 ../src/dvdcopy.c:165 ../src/dvdcopy.c:166 #: ../src/dvdcopy.c:167 msgid "reserved" msgstr "" #: ../src/dvdcopy.c:164 #, fuzzy msgid "Forcé" msgstr "Διομόρφση" #: ../src/dvdcopy.c:168 msgid "Réalisateur" msgstr "" #: ../src/dvdcopy.c:169 msgid "Réalisateur large" msgstr "" #: ../src/dvdcopy.c:170 msgid "Réalisateur enfants" msgstr "" #: ../src/dvdcopy.c:300 msgid "Lecture de la structure impossible !" msgstr "Error reading DVD structure !" #: ../src/dvdcopy.c:306 #, c-format msgid "Lecture du titre de %s impossible!" msgstr "Πρόβλημα στην ανάγνωση του τίτλου %s!" # #: ../src/dvdcopy.c:344 ../src/dvdcopy.c:1007 ../src/dvdcopy.c:1193 msgid "Piste" msgstr "Πίστα" #: ../src/dvdcopy.c:356 msgid "Durée" msgstr "Διάρκεια" #: ../src/dvdcopy.c:368 msgid "Chapitres" msgstr "Κεφάλαια" #: ../src/dvdcopy.c:380 msgid "Langues" msgstr "Γλώσσες" # #: ../src/dvdcopy.c:392 msgid "Sous-titres" msgstr "Υπότιτλοι" #: ../src/dvdcopy.c:404 ../src/dvdcopy.c:1027 msgid "Format" msgstr "Διομόρφση" #: ../src/dvdcopy.c:488 ../src/dvdcopy.c:495 ../src/dvdcopy.c:501 #: ../src/dvdcopy.c:1082 ../src/dvdcopy.c:1094 ../src/dvdcopy.c:1241 #, c-format msgid "%d" msgstr "" #: ../src/dvdcopy.c:498 ../src/dvdcopy.c:504 ../src/dvdcopy.c:1085 #: ../src/dvdcopy.c:1244 #, c-format msgid "%s" msgstr "" #: ../src/dvdcopy.c:1017 ../src/dvdcopy.c:1203 ../src/interface.c:540 msgid "Langue" msgstr "Γλώσσα" #: ../src/dvdcopy.c:1038 msgid "Extension" msgstr "" #: ../src/dvdcopy.c:1049 msgid "Canaux" msgstr "Δίαυλος" #: ../src/dvdcopy.c:1213 msgid "Ext" msgstr "" #: ../src/dvdinfo.c:205 msgid "Inconnu" msgstr "Άγνωστο" #: ../src/dvdtools.c:365 msgid "Erreur de lecture ! Ignorer les erreurs ?" msgstr "Λάθος στην ανάγνωση! Να αγνοηθούν τα λάθη ανάγνωσης;" #: ../src/gconfig.c:466 #, fuzzy msgid "Les répertoires temporaire et iso doivent être différents !" msgstr "" "Ο προσωρινός φάκελος και ο φάκελος του ISO δεν πρέπει να είναι ο ίδιος!" #: ../src/gconfig.c:470 msgid "mkisofs manquant !" msgstr "Δεν μπορώ να χρησιμοποιήσω το πρόγραμμα mkisofs!" #: ../src/gconfig.c:474 ../src/gconfig.c:482 #, fuzzy, c-format msgid "Le répertoire %s n'existe pas !" msgstr "Ο φάκελος %s δεν υπάρχει!" #: ../src/gconfig.c:478 ../src/gconfig.c:486 #, c-format msgid "Pas d'accès en écriture au répertoire %s !" msgstr "" #: ../src/gconfig.c:491 #, c-format msgid "Le fichier %s n'existe pas !" msgstr "Το αρχείο %s δεν υπάρχει!" # #: ../src/interface.c:95 msgid "Ecran des propiétés" msgstr "Ιδιότητες" #: ../src/interface.c:102 msgid "Lecture du DVD" msgstr "Αναπαραγωγή DVD" #: ../src/interface.c:106 msgid "Évaluer" msgstr "" #: ../src/interface.c:110 msgid "Calculer la qualité au mieux" msgstr "Υπολογισμός καλύτερης ποιότητας" #: ../src/interface.c:116 msgid "Convertir le DVD" msgstr "Μετατροπή DVD" # #: ../src/interface.c:152 msgid "Nom du DVD et du fichier ISO" msgstr "Όνομα DVD και όνομα του αρχείου ISO" #: ../src/interface.c:155 msgid "Évaluation de qualité :" msgstr "Υπολογισμός ποιότητας:" #: ../src/interface.c:163 msgid "Titre du film :" msgstr "Τίτλος DVD:" #: ../src/interface.c:196 msgid "Selectionner la piste a convertir" msgstr "Επιλέξτε μια πίστα για μετατροπή" #: ../src/interface.c:199 msgid "Vidéo" msgstr "Βίντεο" #: ../src/interface.c:231 msgid "Selectioner les pistes audio" msgstr "Επιλέξτε πίστες" #: ../src/interface.c:234 msgid "Audio" msgstr "Ήχος" #: ../src/interface.c:266 msgid "Selectioner les sous titres" msgstr "Επιλέξτε υπότιτλους" #: ../src/interface.c:269 msgid "Sous-titres" msgstr "Υπότιτλοι" # #: ../src/interface.c:397 msgid "Propriétés" msgstr "Ιδιότητες" #: ../src/interface.c:436 msgid "Périphérique DVD :" msgstr "Συσκευή DVD:" #: ../src/interface.c:444 msgid "Espace temporaire :" msgstr "Προσωρινός φάκελος:" #: ../src/interface.c:452 msgid "Espace des ISO :" msgstr "Φάκελος για αρχεία ISO:" #: ../src/interface.c:460 msgid "Lecteur multimédia :" msgstr "Αναπαραγωγέας πολυμέσων :" #: ../src/interface.c:468 msgid "Niveau de trace :" msgstr "Επίπεδο του ίχνους:" #: ../src/interface.c:476 ../src/interface.c:483 msgid "Sélectionner un dossier" msgstr "Επιλέξτε φάκελο" #: ../src/interface.c:502 msgid "totem" msgstr "" #: ../src/interface.c:517 msgid "/dev/dvd" msgstr "/dev/rdsk/c1t0d0s2" #: ../src/interface.c:520 msgid "Indications sonores" msgstr "" #: ../src/interface.c:554 msgid "Default" msgstr "" #: ../src/interface.c:555 msgid "Français" msgstr "" #: ../src/interface.c:556 msgid "English" msgstr "" #: ../src/interface.c:557 msgid "Deutsch" msgstr "" #: ../src/interface.c:558 msgid "Greek" msgstr "" #: ../src/interface.c:559 msgid "Estonian" msgstr "" #: ../src/interface.c:560 msgid "Hungarian" msgstr "" #: ../src/interface.c:561 msgid "Dutch" msgstr "" #: ../src/interface.c:562 msgid "Portuguese" msgstr "" #: ../src/interface.c:563 msgid "Czech" msgstr "" #: ../src/interface.c:564 msgid "Spanish" msgstr "" #: ../src/interface.c:565 msgid "Italian" msgstr "" #: ../src/interface.c:567 msgid "Système" msgstr "Σύστημα" #: ../src/interface.c:595 msgid "Garder les menus" msgstr "Μαζί με μενού" #: ../src/interface.c:602 msgid "Conserver les menus du DVD" msgstr "Διατήρηση μενού του DVD" # #: ../src/interface.c:605 msgid "Créer une image ISO" msgstr "Δημιουργία εικόνας ISO" # #: ../src/interface.c:612 msgid "Créer une image ISO apres convertion" msgstr "Δημιουργία εικόνας ISO μετά τη μετατροπή" #: ../src/interface.c:615 msgid "Graver le DVD" msgstr "Κάψιμο DVD" #: ../src/interface.c:622 msgid "Graver un DVD apres convertion" msgstr "Κάψιμο DVD μετά τη μετατροπή" # #: ../src/interface.c:624 msgid "Qualité dynamique" msgstr "Δυναμική ποιότητα" #: ../src/interface.c:631 msgid "Convertir avec une qualité d'image dynamique" msgstr "Μετατροπή με δυναμική ποιότητα εικόνας" #: ../src/interface.c:641 msgid "Capacité du DVD :" msgstr "Χωρητικότητα DVD" #: ../src/interface.c:649 msgid "Couper le générique" msgstr "Διαγραφή τίτλων τέλους" #: ../src/interface.c:656 msgid "Ne pas conserver le dernier chapitre de la piste vidéo" msgstr "Αγνόηση τελευταίου κεφαλαίου" #: ../src/interface.c:659 msgid "Paramètres de création" msgstr "Παράμετροι δημιουργίας" #: ../src/interface.c:812 msgid "Détails" msgstr "Λεπτομέριες" # #: ../src/interface.c:873 msgid "Choix du fichier ISO" msgstr "Επιλέξτε ένα αρχείο ISO" #: ../src/interface.c:926 msgid "Aucun medium détecté" msgstr "Δεν βρέθηκε κανένα μέσο" #: ../src/interface.c:952 msgid "" "Aucun médium détecté\n" "\n" "Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à " "utiliser. " msgstr "" "Δεν βρέθηκε κανένα μέσο\n" "\n" "Παρακαλώ εισαγάγετε ένα video DVD ή, εναλλακτικά, προσδιορίστε μια εικόνα " "ISO. " #: ../src/interface.c:965 msgid "Fichier ISO" msgstr "Αρχείο ISO" #: ../src/interface.c:1023 msgid "Première phase terminée" msgstr "Πρώτο σκέλος ολοκληρώθηκε" #: ../src/interface.c:1049 msgid "" "Extraction du contenu terminée\n" "\n" "Avant de procéder à la construction d'une image ISO ou une gravure, vous " "pouvez prévisualiser le résultat." msgstr "" "Η εξαγωγή ολοκληρώθηκε\n" "\n" "Πριν τη δημιουργία του αρχείου ISO ή το κάψιμο του DVD ίσως θα έπρεπε να " "αναπαράγετε το αποτέλεσμα." # #: ../src/interface.c:1118 msgid "Analyse en cours" msgstr "Γίνεται ανάλυση." #: ../src/interface.c:1144 msgid "" "Analyse en cours\n" "\n" "Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure." msgstr "" "Γίνεται ανάλυση\n" "\n" "Παρακαλώ περιμένετε όσο γίνεται ανάλυση της δομής του DVD." #: ../src/interface.c:1193 msgid "Terminé" msgstr "Finish" #: ../src/interface.c:1219 msgid "" "Encodage terminé\n" "\n" "La conversion s'est déroulée avec succès." msgstr "" "Η κωδικοποιήση τελείωσε\n" "\n" "Η μετατροπή ήταν επιτυχής." #. TRANSLATORS: Replace this string with your names, one name per line. #: ../src/interface.c:1271 msgid "translator-credits" msgstr "" #: ../src/interface.c:1278 ../src/interface.c:1282 msgid "Dvd95" msgstr "" #: ../src/interface.c:1279 msgid "a GNOME application to convert DVD9 to DVD5" msgstr "μια εφαρμογή GNOME για τη μετατροπή DVD9 σε DVD5" #: ../src/interface.c:1280 msgid "" "Dvd95 is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" "Dvd95 is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty\n" "of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n" "See the GNU General Public License for more details.\n" "You should have received a copy of the GNU General Public License\n" "along with Dvd95;\n" "if not, write to the Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" msgstr "" #: ../src/message.c:116 msgid "Alerte" msgstr "Προσοχή" #: ../src/message.c:149 msgid "Ok" msgstr "Εντάξει" #: ../src/message.c:161 msgid "Cancel" msgstr "Άκυρο" #: ../src/message.c:240 msgid "Informations" msgstr "Πληροφορίες" #: ../src/message.c:317 #, fuzzy, c-format msgid "Première phase terminée (%d)" msgstr "Πρώτο σκέλος ολοκληρώθηκε" #: ../src/support.c:60 ../src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "Αδύνατη η εύρεση του αρχείου εικόνας %s" #: ../src/systools.c:134 #, c-format msgid "%.2f gigas" msgstr "%.2f gigs" #: ../src/systools.c:139 #, c-format msgid "%.2f megas" msgstr "%.2f megs" #: ../src/systools.c:143 #, c-format msgid "%.2f kilos" msgstr "%.2f kbs" #: ../src/profile.c:46 msgid "4.7 GiO" msgstr "" #: ../src/profile.c:62 msgid "8.5 GiO" msgstr "" #: ../src/profile.c:78 msgid "AVI 700Mo mp3-128k MPEG4 2Pass" msgstr "" #: ../src/profile.c:94 msgid "AVI 1Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:110 msgid "AVI 1Go mp3-128k X264 1Pass" msgstr "" #: ../src/profile.c:126 msgid "AVI 1.5Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:142 msgid "AVI 2Go AC3 MPEG4 1Pass" msgstr "" #: ../src/profile.c:158 msgid "AVI 2Go AC3 X264 1Pass" msgstr "" #: ../src/profile.c:174 msgid "PSP 300Mo" msgstr "" #: ../src/profile.c:191 msgid "PSP 500Mo" msgstr "" #: ../src/profile.c:208 msgid "AVI 2Go AC3 X264 2Pass High Quality" msgstr "" #: ../src/dvd2avi.c:623 msgid "Détection des bandes noires\n" msgstr "" #: ../src/dvd2avi.c:821 #, c-format msgid "Pas le droit de créer de fichier dans %s !" msgstr "" #: ../src/dvd2avi.c:833 #, fuzzy msgid "Sélectionnez qu'un seule piste audio !" msgstr "Επιλέξτε πίστες" #: ../src/dvd2avi.c:866 #, fuzzy, c-format msgid "Le fichier %s existe. L'utiliser ?" msgstr "Το αρχείο %s υπάρχει ήδη. Θέλετε να το ξαναδημιουργήσω;" #: ../src/dvd2avi.c:876 #, fuzzy, c-format msgid "Création de %s impossible !" msgstr "Πρόβλημα στην ανάγνωση του τίτλου %s!" #: ../src/dvd2avi.c:982 msgid "Encodage\n" msgstr "" #: ../src/dvd2avi.c:994 #, c-format msgid "Encodage passe %d\n" msgstr "" #: ../src/dvd2avi.c:999 msgid "Continuer en passe 2 ?" msgstr "" #: ../src/dvd2avi.c:1017 msgid "Conserver le fichier vob pour un autre encodage ?" msgstr "" #: ../src/dvd2avi.c:1023 #, fuzzy, c-format msgid "Conserver le fichier %s ?" msgstr "Διατήρηση μενού του DVD" #~ msgid "DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULON" #~ msgstr "" #~ "DVD95: εργαλείο προς ιδιωτική αντιγραφή DVD 9 σε DVD 5, του J.F. COULON" #~ msgid "Version: %s du %s" #~ msgstr "Έκδοση: %s of %s" #~ msgid "Total %d%% (%s restant)" #~ msgstr "Σύνολο %d%% (%s υπόλοιπο)" #~ msgid "%d%% a %.2fx" #~ msgstr "%d%% από %.2fx" #~ msgid "AUCUN" #~ msgstr "ΚΑΝΕΝΑ" dvd95/po/en.mo000066400000000000000000000253151140003301000133520ustar00rootroot00000000000000Dl   -"0Po Q  $@X#o!'"&D']  1%Wr-%%#Ig}"%  18>DMk! .)7ar  6 ! '8 JXw } "#"$?d$z"7*bt  /-+ 9 ?Jd  !4 Vbj'#%%!+GsD (+<!?&aDb?Gh  ) 7 D F J i    #  !.!J!f!n!!!!!!!" """"2"'A"i"x" """ """ #*#H#^#s##### ########$ $'$<$ M$W$i$~$$$$$$ %% %#%+,% X%b%y%% % % % %%% %%%% &&&& %&"/& R&"s&&&&&&''&')B'l'{'''' '''' ' '+'!#(E(d( j(u(( ( (((.( ).&)U)Z)n)) ))))) ))*!*>*+Z**** ***]Pw'$9!@1o<gH"ZMBiv8 #4kC c}VtlQ~aqG.6R)35+ U{mJ*fbL^eFID =s;_YX`?rW-u>0N/ KzO\[%7Ej(A2xS:|hTnyd ,p&%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé La conversion s'est déroulée avec succès.Extraction du contenu terminée Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéo?AC3AVI 1.5Go mp3-128k MPEG4 1PassAVI 1Go mp3-128k MPEG4 1PassAVI 1Go mp3-128k X264 1PassAVI 2Go AC3 MPEG4 1PassAVI 2Go AC3 X264 1PassAVI 2Go AC3 X264 2Pass High QualityAVI 700Mo mp3-128k MPEG4 2PassAjout de la table des matières. Ajustement automatique de la qualité. Ajustement de qualité à %.2f%%. AlerteAlternate director's commentsAnalyse de %d cellules. Analyse de la cellule %d (%d secteurs) Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver le fichier %s ?Conserver le fichier vob pour un autre encodage ?Conserver les menus du DVDConstruction de l'image ISO. Continuer en passe 2 ?Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules. Copie de la cellule %d (%d secteurs) Copie des menus vob%2d (%d secteurs) Couldn't find pixmap file: %sCouper le génériqueCréation de %s impossible !Création de la structure du DVD. Créer une image ISOCréer une image ISO apres convertionCzechDTSDVD 9 to 5DefaultDeutschDirector's commentsDuréeDutchDvd95DétailsDétection des bandes noires Ecran des propiétésEffacement des anciens fichiers. Effacement des fichiers. Encodage Encodage passe %d EnfantsEnglishErreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :EstonianExtExtensionFichier ISOFichier VOB trop gros (%s) ! Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD. ForcéFormatFrançaisGarder les menusGravage sur DVD. Graver le DVDGraver un DVD apres convertionGreekHungarianImpairedInconnuIndications sonoresInformationsItalianLPCMLangueLanguesLargeLe fichier %s existe. L'utiliser ?Le fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Légende enfantsLégende largeLégende normaleMPEG1MPEG2Mise à jours du vob %d-%d Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISONormalOkPSP 300MoPSP 500MoPas assez de place sur %s Il manque %s octets !Pas d'accès en écriture au répertoire %s !Pas le droit de créer de fichier dans %s !PistePortuguesePremière phase terminéePremière phase terminée (%d)PropriétésPériphérique DVD :Qualité dynamiqueReservedRéalisateurRéalisateur enfantsRéalisateur largeSDDSSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSpanishSélectionner un dossierSélectionnez qu'un seule piste audio !TerminéTitre du film :Total %d%% a %.2fxVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !reservedtotemtranslator-creditsÉvaluation de qualité :ÉvaluerProject-Id-Version: dvd95 Report-Msgid-Bugs-To: POT-Creation-Date: 2009-11-27 21:13+0100 PO-Revision-Date: 2009-11-27 21:39+0100 Last-Translator: jf.coulon Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: English %.2f GB%.2f KB%.2f MB%d%d%% (%s remain)%s%s is not a file ! Please remove.%s is not a directory ! Please remove./dev/dvd4.7 GB8.5 GBAnalyzing Please wait for DVD structure analysis.No medium found Please insert a video DVD, or specify an ISO image file to use.Encoding finished Conversion was successful.Extraction finished Before building ISO image or burning, you may preview the result.AudioCreation parametersSubtitlesSystemVideo?AC3AVI 1.5Go mp3-128k MPEG4 1PassAVI 1Go mp3-128k MPEG4 1PassAVI 1Go mp3-128k X264 1PassAVI 2Go AC3 MPEG4 1PassAVI 2Go AC3 X264 1PassAVI 2Go AC3 X264 2Pass High QualityAVI 700Mo mp3-128k MPEG4 2PassAdding table of content. Automatic quality setting. Setting quality to %.2f%%. WarningAlternate director's commentsAnalyzing %d cells. Analyzing cell %d (%d sectors) Analysis in progress.No medium foundCompute best qualityChannelsCancelDVD capacityChaptersChoose ISO fileKeep file %s ?Keep the VOB file for another encoding?Keep DVD menusBuilding ISO file. Continue with the second stage ?Convert with dynamic image qualityConvert DVDCopying %d cells. Copy cell %d (%d sectors) Copy menus vob%2d (%d sectors) Couldn't find pixmap file: %sRemove ending creditsCould not create %s!Creating DVD structure. Create ISO imageCreate ISO imageCzechDTSDVD 9 to 5DefaultDeutschDirector's commentsDurationDutchDvd95DetailsDetecting letterboxing PropertiesRemoving old files. Removing files. Encoding Encoding pass %d Caption for childrenEnglishBuild error. Remove files ?Conversion error ........Read error! Ignore read errors?ISO files directory:Temporary files directory:EstonianExtExtensionISO fileVOB file too large (%s) ! Continue anyway ?ISO filesFixing DVD structure. Forced captionFormatFrançaisKeep menusDVD burning. Burn to DVDBurn to DVD after conversionGreekHungarianImpairedUnknownSoundsInformationItalianLPCMLanguageLanguagesCaption with bigger size characterFile %s already exists. Use it ?File %s already exist. Re-create ?File %s doesn't exist!Directory %s already exist ! Erase it?Multimedia player:Error reading DVD structure !Play DVDError reading title %s!Closed caption for childrenClosed caption with bigger size characterClosed CaptionMPEG1MPEG2Updating vob %d-%d Skip last chapterTrace level:DVD name and ISO file nameNormalOkPSP (300MB)PSP (500MB)Not enough space on %s Need %s more bytes !No write access to directory %s !Could not create files in %s !TrackPortugueseFirst stage completedFirst stage completed (%d)PropertiesDVD device:Dynamic qualityReservedDirector's comments with normal size characterDirector's comments for childrenDirector's comments with bigger size characterSDDSSelect audio tracksSelect subtitlesSelect track to convertSubtitlesSpanishSelect a directoryOnly select one audio track !FinishedDVD title:Progress: %d%% (%.2fx)Please start a quality scanPlease select an audio trackPlease select a video tracka GNOME application to convert DVD9 to DVD5mkisofs is missing!ReservedtotemDries HarnieCompute quality:Checkdvd95/po/en.po000066400000000000000000000431571140003301000133610ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: dvd95\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-11-27 21:13+0100\n" "PO-Revision-Date: 2009-11-27 21:39+0100\n" "Last-Translator: jf.coulon \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: English\n" #: ../src/avancement.c:308 #: ../src/avancement.c:396 #, c-format msgid "Total %d%% a %.2fx" msgstr "Progress: %d%% (%.2fx)" #: ../src/avancement.c:319 #: ../src/avancement.c:386 #, c-format msgid "%d%% (%s restant)" msgstr "%d%% (%s remain)" #: ../src/callbacks.c:178 #: ../src/interface.c:70 #: ../src/main.c:306 msgid "DVD 9 to 5" msgstr "DVD 9 to 5" #: ../src/callbacks.c:197 #: ../src/callbacks.c:374 #: ../src/callbacks.c:458 msgid "Veuillez selectionner une piste video" msgstr "Please select a video track" #: ../src/callbacks.c:273 #: ../src/uitools.c:148 msgid "Fichiers ISO" msgstr "ISO files" #: ../src/callbacks.c:378 #: ../src/callbacks.c:462 msgid "Veuillez selectionner une piste audio" msgstr "Please select an audio track" #: ../src/callbacks.c:394 msgid "Veuillez lancer un calcul de qualit" msgstr "Please start a quality scan" #: ../src/callbacks.c:418 msgid "Erreur de conversion ........" msgstr "Conversion error ........" #: ../src/dvd2vob.c:462 #: ../src/dvdbackup.c:1144 #: ../src/dvd2avi.c:349 #, c-format msgid "Copie de la cellule %d (%d secteurs)\n" msgstr "Copy cell %d (%d sectors)\n" #: ../src/dvd2vob.c:649 #: ../src/dvd2vob.c:696 msgid "Fixation de la structure du DVD.\n" msgstr "Fixing DVD structure.\n" #: ../src/dvd2vob.c:874 #: ../src/dvd2vob.c:883 #: ../src/dvdbackup.c:1378 #: ../src/dvdbackup.c:1386 #: ../src/dvd2avi.c:808 #: ../src/dvd2avi.c:815 #, c-format msgid "" "Pas assez de place sur %s\n" "Il manque %s octets !" msgstr "" "Not enough space on %s\n" "Need %s more bytes !" #: ../src/dvd2vob.c:907 #: ../src/dvdbackup.c:1415 #: ../src/dvd2avi.c:855 #, c-format msgid "Copie de %d cellules.\n" msgstr "Copying %d cells.\n" #. Create empty filesystem tree #: ../src/dvd2vob.c:909 #: ../src/dvdbackup.c:1417 #: ../src/dvd2avi.c:857 msgid "Effacement des anciens fichiers.\n" msgstr "Removing old files.\n" #: ../src/dvd2vob.c:914 #: ../src/dvdbackup.c:1422 #, c-format msgid "Le repertoire %s existe. L'effacer ?" msgstr "Directory %s already exist ! Erase it?" #: ../src/dvd2vob.c:924 #: ../src/dvdbackup.c:1432 #, c-format msgid "%s n'est pas un repertoire ! Veuillez l'effacer." msgstr "%s is not a directory ! Please remove." #: ../src/dvd2vob.c:965 #: ../src/dvdbackup.c:1466 msgid "Ajustement automatique de la qualité.\n" msgstr "Automatic quality setting.\n" #: ../src/dvd2vob.c:992 #: ../src/dvdbackup.c:1498 #, c-format msgid "Ajustement de qualité à %.2f%%.\n" msgstr "Setting quality to %.2f%%.\n" #: ../src/dvd2vob.c:1017 #: ../src/dvdbackup.c:1511 #, c-format msgid "" "Fichier VOB trop gros (%s) !\n" "Désirez vous continuer ?" msgstr "" "VOB file too large (%s) !\n" "Continue anyway ?" #: ../src/dvd2vob.c:1043 msgid "Création de la structure du DVD.\n" msgstr "Creating DVD structure.\n" #: ../src/dvd2vob.c:1089 msgid "Ajout de la table des matières.\n" msgstr "Adding table of content.\n" #: ../src/dvd2vob.c:1125 #: ../src/dvdbackup.c:1548 #, c-format msgid "Le fichier %s existe. Le re-creer ?" msgstr "File %s already exist. Re-create ?" #: ../src/dvd2vob.c:1128 #: ../src/dvdbackup.c:1551 msgid "Construction de l'image ISO.\n" msgstr "Building ISO file.\n" #: ../src/dvd2vob.c:1138 #: ../src/dvdbackup.c:1566 #, c-format msgid "%s n'est pas un fichier ! Veuillez l'effacer." msgstr "%s is not a file ! Please remove." #: ../src/dvd2vob.c:1145 #: ../src/dvdbackup.c:1573 msgid "Gravage sur DVD.\n" msgstr "DVD burning.\n" #: ../src/dvd2vob.c:1159 #: ../src/dvdbackup.c:1587 msgid "Effacement des fichiers.\n" msgstr "Removing files.\n" #: ../src/dvdbackup.c:171 #, c-format msgid "Copie des menus vob%2d (%d secteurs)\n" msgstr "Copy menus vob%2d (%d sectors)\n" #: ../src/dvdbackup.c:772 #, c-format msgid "Mise à jours du vob %d-%d\n" msgstr "Updating vob %d-%d\n" #: ../src/dvdbackup.c:1142 #, c-format msgid "Analyse de la cellule %d (%d secteurs)\n" msgstr "Analyzing cell %d (%d sectors)\n" #: ../src/dvdbackup.c:1559 msgid "Erreur de construction. Effacer les fichiers ?" msgstr "Build error. Remove files ?" #: ../src/dvdbackup.c:1713 #, c-format msgid "Analyse de %d cellules.\n" msgstr "Analyzing %d cells.\n" #: ../src/dvdcopy.c:107 msgid "AC3" msgstr "AC3" #: ../src/dvdcopy.c:108 #: ../src/dvdcopy.c:115 msgid "?" msgstr "?" #: ../src/dvdcopy.c:109 msgid "MPEG1" msgstr "MPEG1" #: ../src/dvdcopy.c:110 msgid "MPEG2" msgstr "MPEG2" #: ../src/dvdcopy.c:111 msgid "LPCM" msgstr "LPCM" #: ../src/dvdcopy.c:112 msgid "SDDS" msgstr "SDDS" #: ../src/dvdcopy.c:113 msgid "DTS" msgstr "DTS" #: ../src/dvdcopy.c:133 #: ../src/dvdcopy.c:156 msgid "Normal" msgstr "Normal" #: ../src/dvdcopy.c:134 msgid "Impaired" msgstr "Impaired" #: ../src/dvdcopy.c:135 msgid "Director's comments" msgstr "Director's comments" #: ../src/dvdcopy.c:136 msgid "Alternate director's comments" msgstr "Alternate director's comments" #: ../src/dvdcopy.c:157 msgid "Large" msgstr "Caption with bigger size character" #: ../src/dvdcopy.c:158 msgid "Enfants" msgstr "Caption for children" #: ../src/dvdcopy.c:159 msgid "Reserved" msgstr "Reserved" #: ../src/dvdcopy.c:160 msgid "Légende normale" msgstr "Closed Caption" #: ../src/dvdcopy.c:161 msgid "Légende large" msgstr "Closed caption with bigger size character" #: ../src/dvdcopy.c:162 msgid "Légende enfants" msgstr "Closed caption for children" #: ../src/dvdcopy.c:163 #: ../src/dvdcopy.c:165 #: ../src/dvdcopy.c:166 #: ../src/dvdcopy.c:167 msgid "reserved" msgstr "Reserved" #: ../src/dvdcopy.c:164 msgid "Forcé" msgstr "Forced caption" #: ../src/dvdcopy.c:168 msgid "Réalisateur" msgstr "Director's comments with normal size character" #: ../src/dvdcopy.c:169 msgid "Réalisateur large" msgstr "Director's comments with bigger size character" #: ../src/dvdcopy.c:170 msgid "Réalisateur enfants" msgstr "Director's comments for children" #: ../src/dvdcopy.c:300 msgid "Lecture de la structure impossible !" msgstr "Error reading DVD structure !" #: ../src/dvdcopy.c:306 #, c-format msgid "Lecture du titre de %s impossible!" msgstr "Error reading title %s!" # #: ../src/dvdcopy.c:344 #: ../src/dvdcopy.c:1007 #: ../src/dvdcopy.c:1193 msgid "Piste" msgstr "Track" #: ../src/dvdcopy.c:356 msgid "Durée" msgstr "Duration" #: ../src/dvdcopy.c:368 msgid "Chapitres" msgstr "Chapters" #: ../src/dvdcopy.c:380 msgid "Langues" msgstr "Languages" # #: ../src/dvdcopy.c:392 msgid "Sous-titres" msgstr "Subtitles" #: ../src/dvdcopy.c:404 #: ../src/dvdcopy.c:1027 msgid "Format" msgstr "Format" #: ../src/dvdcopy.c:488 #: ../src/dvdcopy.c:495 #: ../src/dvdcopy.c:501 #: ../src/dvdcopy.c:1082 #: ../src/dvdcopy.c:1094 #: ../src/dvdcopy.c:1241 #, c-format msgid "%d" msgstr "%d" #: ../src/dvdcopy.c:498 #: ../src/dvdcopy.c:504 #: ../src/dvdcopy.c:1085 #: ../src/dvdcopy.c:1244 #, c-format msgid "%s" msgstr "%s" #: ../src/dvdcopy.c:1017 #: ../src/dvdcopy.c:1203 #: ../src/interface.c:540 msgid "Langue" msgstr "Language" #: ../src/dvdcopy.c:1038 msgid "Extension" msgstr "Extension" #: ../src/dvdcopy.c:1049 msgid "Canaux" msgstr "Channels" #: ../src/dvdcopy.c:1213 msgid "Ext" msgstr "Ext" #: ../src/dvdinfo.c:205 msgid "Inconnu" msgstr "Unknown" #: ../src/dvdtools.c:365 msgid "Erreur de lecture ! Ignorer les erreurs ?" msgstr "Read error! Ignore read errors?" #: ../src/gconfig.c:466 #, fuzzy msgid "Les répertoires temporaire et iso doivent être différents !" msgstr "Temporary directory and ISO directory must not be the same!" #: ../src/gconfig.c:470 msgid "mkisofs manquant !" msgstr "mkisofs is missing!" #: ../src/gconfig.c:474 #: ../src/gconfig.c:482 #, fuzzy, c-format msgid "Le répertoire %s n'existe pas !" msgstr "Directory %s doesn't exist!" #: ../src/gconfig.c:478 #: ../src/gconfig.c:486 #, c-format msgid "Pas d'accès en écriture au répertoire %s !" msgstr "No write access to directory %s !" #: ../src/gconfig.c:491 #, c-format msgid "Le fichier %s n'existe pas !" msgstr "File %s doesn't exist!" # #: ../src/interface.c:95 msgid "Ecran des propiétés" msgstr "Properties" #: ../src/interface.c:102 msgid "Lecture du DVD" msgstr "Play DVD" #: ../src/interface.c:106 msgid "Évaluer" msgstr "Check" #: ../src/interface.c:110 msgid "Calculer la qualité au mieux" msgstr "Compute best quality" #: ../src/interface.c:116 msgid "Convertir le DVD" msgstr "Convert DVD" # #: ../src/interface.c:152 msgid "Nom du DVD et du fichier ISO" msgstr "DVD name and ISO file name" #: ../src/interface.c:155 msgid "Évaluation de qualité :" msgstr "Compute quality:" #: ../src/interface.c:163 msgid "Titre du film :" msgstr "DVD title:" #: ../src/interface.c:196 msgid "Selectionner la piste a convertir" msgstr "Select track to convert" #: ../src/interface.c:199 msgid "Vidéo" msgstr "Video" #: ../src/interface.c:231 msgid "Selectioner les pistes audio" msgstr "Select audio tracks" #: ../src/interface.c:234 msgid "Audio" msgstr "Audio" #: ../src/interface.c:266 msgid "Selectioner les sous titres" msgstr "Select subtitles" #: ../src/interface.c:269 msgid "Sous-titres" msgstr "Subtitles" # #: ../src/interface.c:397 msgid "Propriétés" msgstr "Properties" #: ../src/interface.c:436 msgid "Périphérique DVD :" msgstr "DVD device:" #: ../src/interface.c:444 msgid "Espace temporaire :" msgstr "Temporary files directory:" #: ../src/interface.c:452 msgid "Espace des ISO :" msgstr "ISO files directory:" #: ../src/interface.c:460 msgid "Lecteur multimédia :" msgstr "Multimedia player:" #: ../src/interface.c:468 msgid "Niveau de trace :" msgstr "Trace level:" #: ../src/interface.c:476 #: ../src/interface.c:483 msgid "Sélectionner un dossier" msgstr "Select a directory" #: ../src/interface.c:502 msgid "totem" msgstr "totem" #: ../src/interface.c:517 msgid "/dev/dvd" msgstr "/dev/dvd" #: ../src/interface.c:520 msgid "Indications sonores" msgstr "Sounds" #: ../src/interface.c:554 msgid "Default" msgstr "Default" #: ../src/interface.c:555 msgid "Français" msgstr "Français" #: ../src/interface.c:556 msgid "English" msgstr "English" #: ../src/interface.c:557 msgid "Deutsch" msgstr "Deutsch" #: ../src/interface.c:558 msgid "Greek" msgstr "Greek" #: ../src/interface.c:559 msgid "Estonian" msgstr "Estonian" #: ../src/interface.c:560 msgid "Hungarian" msgstr "Hungarian" #: ../src/interface.c:561 msgid "Dutch" msgstr "Dutch" #: ../src/interface.c:562 msgid "Portuguese" msgstr "Portuguese" #: ../src/interface.c:563 msgid "Czech" msgstr "Czech" #: ../src/interface.c:564 msgid "Spanish" msgstr "Spanish" #: ../src/interface.c:565 msgid "Italian" msgstr "Italian" #: ../src/interface.c:567 msgid "Système" msgstr "System" #: ../src/interface.c:595 msgid "Garder les menus" msgstr "Keep menus" #: ../src/interface.c:602 msgid "Conserver les menus du DVD" msgstr "Keep DVD menus" # #: ../src/interface.c:605 msgid "Créer une image ISO" msgstr "Create ISO image" # #: ../src/interface.c:612 msgid "Créer une image ISO apres convertion" msgstr "Create ISO image" #: ../src/interface.c:615 msgid "Graver le DVD" msgstr "Burn to DVD" #: ../src/interface.c:622 msgid "Graver un DVD apres convertion" msgstr "Burn to DVD after conversion" # #: ../src/interface.c:624 msgid "Qualité dynamique" msgstr "Dynamic quality" #: ../src/interface.c:631 msgid "Convertir avec une qualité d'image dynamique" msgstr "Convert with dynamic image quality" #: ../src/interface.c:641 msgid "Capacité du DVD :" msgstr "DVD capacity" #: ../src/interface.c:649 msgid "Couper le générique" msgstr "Remove ending credits" #: ../src/interface.c:656 msgid "Ne pas conserver le dernier chapitre de la piste vidéo" msgstr "Skip last chapter" #: ../src/interface.c:659 msgid "Paramètres de création" msgstr "Creation parameters" #: ../src/interface.c:812 msgid "Détails" msgstr "Details" # #: ../src/interface.c:873 msgid "Choix du fichier ISO" msgstr "Choose ISO file" #: ../src/interface.c:926 msgid "Aucun medium détecté" msgstr "No medium found" #: ../src/interface.c:952 msgid "" "Aucun médium détecté\n" "\n" "Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. " msgstr "" "No medium found\n" "\n" "Please insert a video DVD, or specify an ISO image file to use." #: ../src/interface.c:965 msgid "Fichier ISO" msgstr "ISO file" #: ../src/interface.c:1023 msgid "Première phase terminée" msgstr "First stage completed" #: ../src/interface.c:1049 msgid "" "Extraction du contenu terminée\n" "\n" "Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat." msgstr "" "Extraction finished\n" "\n" "Before building ISO image or burning, you may preview the result." # #: ../src/interface.c:1118 msgid "Analyse en cours" msgstr "Analysis in progress." #: ../src/interface.c:1144 msgid "" "Analyse en cours\n" "\n" "Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure." msgstr "" "Analyzing\n" "\n" "Please wait for DVD structure analysis." #: ../src/interface.c:1193 msgid "Terminé" msgstr "Finished" #: ../src/interface.c:1219 msgid "" "Encodage terminé\n" "\n" "La conversion s'est déroulée avec succès." msgstr "" "Encoding finished\n" "\n" "Conversion was successful." #. TRANSLATORS: Replace this string with your names, one name per line. #: ../src/interface.c:1271 msgid "translator-credits" msgstr "Dries Harnie" #: ../src/interface.c:1278 #: ../src/interface.c:1282 msgid "Dvd95" msgstr "Dvd95" #: ../src/interface.c:1279 msgid "a GNOME application to convert DVD9 to DVD5" msgstr "a GNOME application to convert DVD9 to DVD5" #: ../src/interface.c:1280 msgid "" "Dvd95 is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" "Dvd95 is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty\n" "of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n" "See the GNU General Public License for more details.\n" "You should have received a copy of the GNU General Public License\n" "along with Dvd95;\n" "if not, write to the Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" msgstr "" #: ../src/message.c:116 msgid "Alerte" msgstr "Warning" #: ../src/message.c:149 msgid "Ok" msgstr "Ok" #: ../src/message.c:161 msgid "Cancel" msgstr "Cancel" #: ../src/message.c:240 msgid "Informations" msgstr "Information" #: ../src/message.c:317 #, c-format msgid "Première phase terminée (%d)" msgstr "First stage completed (%d)" #: ../src/support.c:60 #: ../src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "Couldn't find pixmap file: %s" #: ../src/systools.c:134 #, c-format msgid "%.2f gigas" msgstr "%.2f GB" #: ../src/systools.c:139 #, c-format msgid "%.2f megas" msgstr "%.2f MB" #: ../src/systools.c:143 #, c-format msgid "%.2f kilos" msgstr "%.2f KB" #: ../src/profile.c:46 msgid "4.7 GiO" msgstr "4.7 GB" #: ../src/profile.c:62 msgid "8.5 GiO" msgstr "8.5 GB" #: ../src/profile.c:78 msgid "AVI 700Mo mp3-128k MPEG4 2Pass" msgstr "AVI 700Mo mp3-128k MPEG4 2Pass" #: ../src/profile.c:94 msgid "AVI 1Go mp3-128k MPEG4 1Pass" msgstr "AVI 1Go mp3-128k MPEG4 1Pass" #: ../src/profile.c:110 msgid "AVI 1Go mp3-128k X264 1Pass" msgstr "AVI 1Go mp3-128k X264 1Pass" #: ../src/profile.c:126 msgid "AVI 1.5Go mp3-128k MPEG4 1Pass" msgstr "AVI 1.5Go mp3-128k MPEG4 1Pass" #: ../src/profile.c:142 msgid "AVI 2Go AC3 MPEG4 1Pass" msgstr "AVI 2Go AC3 MPEG4 1Pass" #: ../src/profile.c:158 msgid "AVI 2Go AC3 X264 1Pass" msgstr "AVI 2Go AC3 X264 1Pass" #: ../src/profile.c:174 msgid "PSP 300Mo" msgstr "PSP (300MB)" #: ../src/profile.c:191 msgid "PSP 500Mo" msgstr "PSP (500MB)" #: ../src/profile.c:208 msgid "AVI 2Go AC3 X264 2Pass High Quality" msgstr "AVI 2Go AC3 X264 2Pass High Quality" #: ../src/dvd2avi.c:623 msgid "Détection des bandes noires\n" msgstr "Detecting letterboxing\n" #: ../src/dvd2avi.c:821 #, c-format msgid "Pas le droit de créer de fichier dans %s !" msgstr "Could not create files in %s !" #: ../src/dvd2avi.c:833 msgid "Sélectionnez qu'un seule piste audio !" msgstr "Only select one audio track !" #: ../src/dvd2avi.c:866 #, c-format msgid "Le fichier %s existe. L'utiliser ?" msgstr "File %s already exists. Use it ?" #: ../src/dvd2avi.c:876 #, c-format msgid "Création de %s impossible !" msgstr "Could not create %s!" #: ../src/dvd2avi.c:982 msgid "Encodage\n" msgstr "Encoding\n" #: ../src/dvd2avi.c:994 #, c-format msgid "Encodage passe %d\n" msgstr "Encoding pass %d\n" #: ../src/dvd2avi.c:999 msgid "Continuer en passe 2 ?" msgstr "Continue with the second stage ?" #: ../src/dvd2avi.c:1017 msgid "Conserver le fichier vob pour un autre encodage ?" msgstr "Keep the VOB file for another encoding?" #: ../src/dvd2avi.c:1023 #, c-format msgid "Conserver le fichier %s ?" msgstr "Keep file %s ?" #~ msgid "DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULON" #~ msgstr "DVD95: private copy of DVD 9 to DVD 5 by J.F. COULON" #~ msgid "Version: %s du %s" #~ msgstr "Version: %s of %s" #~ msgid "Total %d%% (%s restant)" #~ msgstr "Total %d%% (%s remain)" #~ msgid "AUCUN" #~ msgstr "NONE" dvd95/po/es.mo000066400000000000000000000233741140003301000133620ustar00rootroot00000000000000q,    - 0 ! * 2 o: Q0 $ 1 Q d t ! ' "   ' 7 H _ }      - $5%L%r"% *85nu{!&H.b) 6 E!Rt{  #$0Uu$"<7;s1 ,I!e #%%4+ZJ (08;O*R.}[wS   0%<0b 0+Lx$"$;/P 5 Y+!4!$H!m!(!!*!!"" "7," d"$p""" " "%" " " ##+#D#,_### ###> $J$6d$$ $$1$%% % )%5%H%e%"}% %% %%%%&.&L&0k&+&&&&&S6lI*VPX?2-.=J` [j:m4#(<UOWGd\hB_aF"^;>5)8oM$Cp,b Tf'L+]ZR! / g1N%iAe0H3k &7cEnqK Y@9DQ%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé La conversion s'est déroulée avec succès.Extraction du contenu terminée Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières. Ajustement automatique de la qualité. Ajustement de qualité à %.2f%%. AlerteAnalyse de %d cellules. Analyse de la cellule %d (%d secteurs) Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO. Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules. Copie de la cellule %d (%d secteurs) Copie des menus vob%2d (%d secteurs) Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD. Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULONDuréeDvd95Dvd95 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Dvd95 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Dvd95; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 2111-1307 USA DétailsEcran des propiétésEffacement des anciens fichiers. Effacement des fichiers. Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :ExtFichier ISOFichier VOB trop gros (%s) ! Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD. FormatGarder les menusGravage sur DVD. Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents !Mise à jours du vob %d-%d Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPas assez de place sur %s Il manque %lld octets !PistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% a %.2fxVersion: %s du %sVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !totemtranslator-creditsÉvaluation de qualité :ÉvaluerProject-Id-Version: DVD95 1.2p1 Report-Msgid-Bugs-To: POT-Creation-Date: 2007-02-13 21:08+0100 PO-Revision-Date: 2007-10-04 20:57+0100 Last-Translator: jf.coulon Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Spanish %.2f GB%.2f KB%.2f MB%d%d%% (%s restantes)%s¡%s no es un archivo! Bórrelo por favor.¡%s no es un directorio! Bórrelo, por favor./dev/dvd4,7 GB8,5 GBAnálisis del DVD Por favor, espere mientras el programa estudia el DVD.No se detecta DVD Por favor, ponga un DVD en la unidad o especifique la imagen ISO queva a utilizar.Terminada la codificación La conversión ha sido satisfactoria.Terminada la extracción del contenido Antes de la generación del archivo ISO o la grabación, puede previsualizarel resultado.SonidoOpcionesSubtítulosPropiedades del sistemaVídeoAñadido el índice. Ajusto automático de calidad. Ajuste de calidad a %.2f%%. AdvertenciaAnálisis de %d archivos de vídeos. Análisis de archivo de vídeo %d (%d sectores) Análisis del DVDNo se encuentra DVDCalcular la mejor calidadCanalesCancelarCapacidad del DVD:CapítulosAbrir imagen ISOConservar los menús del DVDGeneración de imagen ISO. Conversión con calidad de imagen dinámicaCovertir el DVDCopia de %d pistas. Copia de la pista %d (%d sectores) Copiar menú VOB%2d (%d sectores) No se encuentra el archivo: %sAbspann entfernenCreación de la estructura del DVD. Crear una imagen ISOCrear una imagen ISO después de la conversiónDVD 9 to 5DVD95: copia privada de DVD-9 a DVD-5 por J.F. COULONDuraciónDVD95DVD95 es software libre; puede redistribuirlo y/o modificarlo cumpliendo las condiciones de la GNU General Public License, versión 2 o (si así lo desea) una versión posterior. DVD95 se distribuye con la esperanza de que sea útil, pero SIN GARANTÍA ALGUNA; especialmente sin la garantía implícita, de COMERCIALIDAD o ADECUACIÓN A UN FIN CONCRETO. Vea la GNU General Public License para más detalles. Debe haber recibido una copia de la GNU General Public License con DVD95; en caso contrario, escriba a la Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA DetallesMostrar propiedadesLos ficheros antiguos se borrarán. Borrar archivos. Error de generación. ¿Borrar archivos?Error de conversión...¡Error de lectura! ¿Ignorar los errores?Directorio de archivos ISO:Directorio temporal:ExtArchivo ISO¡Archivo VOB demasiado grande (%s)! ¿Desea continuar?Archivo ISOFijación de la estructura del DVD. FormatoConservar los menúsGrabar DVD. Grabar DVDGrabar DVD después de la conversiónDesconocidoInformaciónIdiomaIdiomasEl archivo %s ya existe. ¿Sobreescribirlo?¡El archivo %s no existe!El directorio %s ya existe. ¿Sobreescribir?¡El directorio %s no existe!Lector multimedia¡No puede leerse la estructura!Reproducir DVD¡No puede leerse la pista %s!¡El directorio temporal debe ser distinto del directorio ISO!Actualización VOB %d-%d No mantener el último capítulo de la pista de vídeoNivel de trazaNombre del DVD y del archivo ISOOKNo hay suficiente espacio en %s Faltan %lld bytesPistaTerminada primera fasePropiedadesUnidad DVD:Cualidad dinámicaSeleccionar pistas de sonidoSeleccionar subtítulosSeleccione la pista para convertirSubtítulosSeleccionar un directorioTerminadoTítulo de la película:Total %d%% de %.2fxVersión: %s de %sEjecute el cáculo de calidadSeleccione una pista de audioSeleccione una pista de vídeouna aplicación GNOME para convertir DVD9 a DVD%¡No puede encontrarse el programa mkisofs!totemPablo RodríguezCálculo de calidad:Evaluardvd95/po/es.po000066400000000000000000000431771140003301000133700ustar00rootroot00000000000000msgid "" msgstr "" "Project-Id-Version: DVD95 1.2p1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-11-27 21:13+0100\n" "PO-Revision-Date: 2007-10-04 20:57+0100\n" "Last-Translator: jf.coulon \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Spanish\n" #: ../src/avancement.c:308 ../src/avancement.c:396 #, c-format msgid "Total %d%% a %.2fx" msgstr "Total %d%% de %.2fx" #: ../src/avancement.c:319 ../src/avancement.c:386 #, c-format msgid "%d%% (%s restant)" msgstr "%d%% (%s restantes)" #: ../src/callbacks.c:178 ../src/interface.c:70 ../src/main.c:306 msgid "DVD 9 to 5" msgstr "DVD 9 to 5" #: ../src/callbacks.c:197 ../src/callbacks.c:374 ../src/callbacks.c:458 msgid "Veuillez selectionner une piste video" msgstr "Seleccione una pista de vídeo" #: ../src/callbacks.c:273 ../src/uitools.c:148 msgid "Fichiers ISO" msgstr "Archivo ISO" #: ../src/callbacks.c:378 ../src/callbacks.c:462 msgid "Veuillez selectionner une piste audio" msgstr "Seleccione una pista de audio" #: ../src/callbacks.c:394 msgid "Veuillez lancer un calcul de qualit" msgstr "Ejecute el cáculo de calidad" #: ../src/callbacks.c:418 msgid "Erreur de conversion ........" msgstr "Error de conversión..." #: ../src/dvd2vob.c:462 ../src/dvdbackup.c:1144 ../src/dvd2avi.c:349 #, c-format msgid "Copie de la cellule %d (%d secteurs)\n" msgstr "Copia de la pista %d (%d sectores)\n" #: ../src/dvd2vob.c:649 ../src/dvd2vob.c:696 msgid "Fixation de la structure du DVD.\n" msgstr "Fijación de la estructura del DVD.\n" #: ../src/dvd2vob.c:874 ../src/dvd2vob.c:883 ../src/dvdbackup.c:1378 #: ../src/dvdbackup.c:1386 ../src/dvd2avi.c:808 ../src/dvd2avi.c:815 #, fuzzy, c-format msgid "" "Pas assez de place sur %s\n" "Il manque %s octets !" msgstr "" "No hay suficiente espacio en %s\n" "Faltan %s bytes" #: ../src/dvd2vob.c:907 ../src/dvdbackup.c:1415 ../src/dvd2avi.c:855 #, c-format msgid "Copie de %d cellules.\n" msgstr "Copia de %d pistas.\n" #. Create empty filesystem tree #: ../src/dvd2vob.c:909 ../src/dvdbackup.c:1417 ../src/dvd2avi.c:857 msgid "Effacement des anciens fichiers.\n" msgstr "Los ficheros antiguos se borrarán.\n" #: ../src/dvd2vob.c:914 ../src/dvdbackup.c:1422 #, c-format msgid "Le repertoire %s existe. L'effacer ?" msgstr "El directorio %s ya existe. ¿Sobreescribir?" #: ../src/dvd2vob.c:924 ../src/dvdbackup.c:1432 #, c-format msgid "%s n'est pas un repertoire ! Veuillez l'effacer." msgstr "¡%s no es un directorio! Bórrelo, por favor." #: ../src/dvd2vob.c:965 ../src/dvdbackup.c:1466 msgid "Ajustement automatique de la qualité.\n" msgstr "Ajusto automático de calidad.\n" #: ../src/dvd2vob.c:992 ../src/dvdbackup.c:1498 #, c-format msgid "Ajustement de qualité à %.2f%%.\n" msgstr "Ajuste de calidad a %.2f%%.\n" #: ../src/dvd2vob.c:1017 ../src/dvdbackup.c:1511 #, c-format msgid "" "Fichier VOB trop gros (%s) !\n" "Désirez vous continuer ?" msgstr "" "¡Archivo VOB demasiado grande (%s)!\n" "¿Desea continuar?" #: ../src/dvd2vob.c:1043 msgid "Création de la structure du DVD.\n" msgstr "Creación de la estructura del DVD.\n" #: ../src/dvd2vob.c:1089 msgid "Ajout de la table des matières.\n" msgstr "Añadido el índice.\n" #: ../src/dvd2vob.c:1125 ../src/dvdbackup.c:1548 #, c-format msgid "Le fichier %s existe. Le re-creer ?" msgstr "El archivo %s ya existe. ¿Sobreescribirlo?" #: ../src/dvd2vob.c:1128 ../src/dvdbackup.c:1551 msgid "Construction de l'image ISO.\n" msgstr "Generación de imagen ISO.\n" #: ../src/dvd2vob.c:1138 ../src/dvdbackup.c:1566 #, c-format msgid "%s n'est pas un fichier ! Veuillez l'effacer." msgstr "¡%s no es un archivo! Bórrelo por favor." #: ../src/dvd2vob.c:1145 ../src/dvdbackup.c:1573 msgid "Gravage sur DVD.\n" msgstr "Grabar DVD.\n" #: ../src/dvd2vob.c:1159 ../src/dvdbackup.c:1587 msgid "Effacement des fichiers.\n" msgstr "Borrar archivos.\n" #: ../src/dvdbackup.c:171 #, c-format msgid "Copie des menus vob%2d (%d secteurs)\n" msgstr "Copiar menú VOB%2d (%d sectores)\n" #: ../src/dvdbackup.c:772 #, c-format msgid "Mise à jours du vob %d-%d\n" msgstr "Actualización VOB %d-%d\n" #: ../src/dvdbackup.c:1142 #, c-format msgid "Analyse de la cellule %d (%d secteurs)\n" msgstr "Análisis de archivo de vídeo %d (%d sectores)\n" #: ../src/dvdbackup.c:1559 msgid "Erreur de construction. Effacer les fichiers ?" msgstr "Error de generación. ¿Borrar archivos?" #: ../src/dvdbackup.c:1713 #, c-format msgid "Analyse de %d cellules.\n" msgstr "Análisis de %d archivos de vídeos.\n" #: ../src/dvdcopy.c:107 msgid "AC3" msgstr "" #: ../src/dvdcopy.c:108 ../src/dvdcopy.c:115 msgid "?" msgstr "" #: ../src/dvdcopy.c:109 msgid "MPEG1" msgstr "" #: ../src/dvdcopy.c:110 msgid "MPEG2" msgstr "" #: ../src/dvdcopy.c:111 msgid "LPCM" msgstr "" #: ../src/dvdcopy.c:112 msgid "SDDS" msgstr "" #: ../src/dvdcopy.c:113 msgid "DTS" msgstr "" #: ../src/dvdcopy.c:133 ../src/dvdcopy.c:156 #, fuzzy msgid "Normal" msgstr "Formato" #: ../src/dvdcopy.c:134 msgid "Impaired" msgstr "" #: ../src/dvdcopy.c:135 msgid "Director's comments" msgstr "" #: ../src/dvdcopy.c:136 msgid "Alternate director's comments" msgstr "" #: ../src/dvdcopy.c:157 #, fuzzy msgid "Large" msgstr "Idioma" #: ../src/dvdcopy.c:158 msgid "Enfants" msgstr "" #: ../src/dvdcopy.c:159 msgid "Reserved" msgstr "" #: ../src/dvdcopy.c:160 msgid "Légende normale" msgstr "" #: ../src/dvdcopy.c:161 msgid "Légende large" msgstr "" #: ../src/dvdcopy.c:162 msgid "Légende enfants" msgstr "" #: ../src/dvdcopy.c:163 ../src/dvdcopy.c:165 ../src/dvdcopy.c:166 #: ../src/dvdcopy.c:167 msgid "reserved" msgstr "" #: ../src/dvdcopy.c:164 #, fuzzy msgid "Forcé" msgstr "Formato" #: ../src/dvdcopy.c:168 msgid "Réalisateur" msgstr "" #: ../src/dvdcopy.c:169 msgid "Réalisateur large" msgstr "" #: ../src/dvdcopy.c:170 msgid "Réalisateur enfants" msgstr "" #: ../src/dvdcopy.c:300 msgid "Lecture de la structure impossible !" msgstr "¡No puede leerse la estructura!" #: ../src/dvdcopy.c:306 #, c-format msgid "Lecture du titre de %s impossible!" msgstr "¡No puede leerse la pista %s!" #: ../src/dvdcopy.c:344 ../src/dvdcopy.c:1007 ../src/dvdcopy.c:1193 msgid "Piste" msgstr "Pista" #: ../src/dvdcopy.c:356 msgid "Durée" msgstr "Duración" #: ../src/dvdcopy.c:368 msgid "Chapitres" msgstr "Capítulos" #: ../src/dvdcopy.c:380 msgid "Langues" msgstr "Idiomas" #: ../src/dvdcopy.c:392 msgid "Sous-titres" msgstr "Subtítulos" #: ../src/dvdcopy.c:404 ../src/dvdcopy.c:1027 msgid "Format" msgstr "Formato" #: ../src/dvdcopy.c:488 ../src/dvdcopy.c:495 ../src/dvdcopy.c:501 #: ../src/dvdcopy.c:1082 ../src/dvdcopy.c:1094 ../src/dvdcopy.c:1241 #, c-format msgid "%d" msgstr "%d" #: ../src/dvdcopy.c:498 ../src/dvdcopy.c:504 ../src/dvdcopy.c:1085 #: ../src/dvdcopy.c:1244 #, c-format msgid "%s" msgstr "%s" #: ../src/dvdcopy.c:1017 ../src/dvdcopy.c:1203 ../src/interface.c:540 msgid "Langue" msgstr "Idioma" #: ../src/dvdcopy.c:1038 msgid "Extension" msgstr "" #: ../src/dvdcopy.c:1049 msgid "Canaux" msgstr "Canales" #: ../src/dvdcopy.c:1213 msgid "Ext" msgstr "Ext" #: ../src/dvdinfo.c:205 msgid "Inconnu" msgstr "Desconocido" #: ../src/dvdtools.c:365 msgid "Erreur de lecture ! Ignorer les erreurs ?" msgstr "¡Error de lectura! ¿Ignorar los errores?" #: ../src/gconfig.c:466 #, fuzzy msgid "Les répertoires temporaire et iso doivent être différents !" msgstr "¡El directorio temporal debe ser distinto del directorio ISO!" #: ../src/gconfig.c:470 msgid "mkisofs manquant !" msgstr "¡No puede encontrarse el programa mkisofs!" #: ../src/gconfig.c:474 ../src/gconfig.c:482 #, fuzzy, c-format msgid "Le répertoire %s n'existe pas !" msgstr "¡El directorio %s no existe!" #: ../src/gconfig.c:478 ../src/gconfig.c:486 #, c-format msgid "Pas d'accès en écriture au répertoire %s !" msgstr "" #: ../src/gconfig.c:491 #, c-format msgid "Le fichier %s n'existe pas !" msgstr "¡El archivo %s no existe!" #: ../src/interface.c:95 msgid "Ecran des propiétés" msgstr "Mostrar propiedades" #: ../src/interface.c:102 msgid "Lecture du DVD" msgstr "Reproducir DVD" #: ../src/interface.c:106 msgid "Évaluer" msgstr "Evaluar" #: ../src/interface.c:110 msgid "Calculer la qualité au mieux" msgstr "Calcular la mejor calidad" #: ../src/interface.c:116 msgid "Convertir le DVD" msgstr "Covertir el DVD" #: ../src/interface.c:152 msgid "Nom du DVD et du fichier ISO" msgstr "Nombre del DVD y del archivo ISO" #: ../src/interface.c:155 msgid "Évaluation de qualité :" msgstr "Cálculo de calidad:" #: ../src/interface.c:163 msgid "Titre du film :" msgstr "Título de la película:" #: ../src/interface.c:196 msgid "Selectionner la piste a convertir" msgstr "Seleccione la pista para convertir" #: ../src/interface.c:199 msgid "Vidéo" msgstr "Vídeo" #: ../src/interface.c:231 msgid "Selectioner les pistes audio" msgstr "Seleccionar pistas de sonido" #: ../src/interface.c:234 msgid "Audio" msgstr "Sonido" #: ../src/interface.c:266 msgid "Selectioner les sous titres" msgstr "Seleccionar subtítulos" #: ../src/interface.c:269 msgid "Sous-titres" msgstr "Subtítulos" #: ../src/interface.c:397 msgid "Propriétés" msgstr "Propiedades" #: ../src/interface.c:436 msgid "Périphérique DVD :" msgstr "Unidad DVD:" #: ../src/interface.c:444 msgid "Espace temporaire :" msgstr "Directorio temporal:" #: ../src/interface.c:452 msgid "Espace des ISO :" msgstr "Directorio de archivos ISO:" #: ../src/interface.c:460 msgid "Lecteur multimédia :" msgstr "Lector multimedia" #: ../src/interface.c:468 msgid "Niveau de trace :" msgstr "Nivel de traza" #: ../src/interface.c:476 ../src/interface.c:483 msgid "Sélectionner un dossier" msgstr "Seleccionar un directorio" #: ../src/interface.c:502 msgid "totem" msgstr "totem" #: ../src/interface.c:517 msgid "/dev/dvd" msgstr "/dev/dvd" #: ../src/interface.c:520 msgid "Indications sonores" msgstr "" #: ../src/interface.c:554 msgid "Default" msgstr "" #: ../src/interface.c:555 msgid "Français" msgstr "" #: ../src/interface.c:556 msgid "English" msgstr "" #: ../src/interface.c:557 msgid "Deutsch" msgstr "" #: ../src/interface.c:558 msgid "Greek" msgstr "" #: ../src/interface.c:559 msgid "Estonian" msgstr "" #: ../src/interface.c:560 msgid "Hungarian" msgstr "" #: ../src/interface.c:561 msgid "Dutch" msgstr "" #: ../src/interface.c:562 msgid "Portuguese" msgstr "" #: ../src/interface.c:563 msgid "Czech" msgstr "" #: ../src/interface.c:564 msgid "Spanish" msgstr "" #: ../src/interface.c:565 msgid "Italian" msgstr "" #: ../src/interface.c:567 msgid "Système" msgstr "Propiedades del sistema" #: ../src/interface.c:595 msgid "Garder les menus" msgstr "Conservar los menús" #: ../src/interface.c:602 msgid "Conserver les menus du DVD" msgstr "Conservar los menús del DVD" #: ../src/interface.c:605 msgid "Créer une image ISO" msgstr "Crear una imagen ISO" #: ../src/interface.c:612 msgid "Créer une image ISO apres convertion" msgstr "Crear una imagen ISO después de la conversión" #: ../src/interface.c:615 msgid "Graver le DVD" msgstr "Grabar DVD" #: ../src/interface.c:622 msgid "Graver un DVD apres convertion" msgstr "Grabar DVD después de la conversión" #: ../src/interface.c:624 msgid "Qualité dynamique" msgstr "Cualidad dinámica" #: ../src/interface.c:631 msgid "Convertir avec une qualité d'image dynamique" msgstr "Conversión con calidad de imagen dinámica" #: ../src/interface.c:641 msgid "Capacité du DVD :" msgstr "Capacidad del DVD:" #: ../src/interface.c:649 msgid "Couper le générique" msgstr "Abspann entfernen" #: ../src/interface.c:656 msgid "Ne pas conserver le dernier chapitre de la piste vidéo" msgstr "No mantener el último capítulo de la pista de vídeo" #: ../src/interface.c:659 msgid "Paramètres de création" msgstr "Opciones" #: ../src/interface.c:812 msgid "Détails" msgstr "Detalles" #: ../src/interface.c:873 msgid "Choix du fichier ISO" msgstr "Abrir imagen ISO" #: ../src/interface.c:926 msgid "Aucun medium détecté" msgstr "No se encuentra DVD" #: ../src/interface.c:952 msgid "" "Aucun médium détecté\n" "\n" "Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à " "utiliser. " msgstr "" "No se detecta DVD\n" "\n" "Por favor, ponga un DVD en la unidad o especifique la imagen ISO queva a " "utilizar." #: ../src/interface.c:965 msgid "Fichier ISO" msgstr "Archivo ISO" #: ../src/interface.c:1023 msgid "Première phase terminée" msgstr "Terminada primera fase" #: ../src/interface.c:1049 msgid "" "Extraction du contenu terminée\n" "\n" "Avant de procéder à la construction d'une image ISO ou une gravure, vous " "pouvez prévisualiser le résultat." msgstr "" "Terminada la extracción del contenido\n" "\n" "Antes de la generación del archivo ISO o la grabación, puede previsualizarel " "resultado." #: ../src/interface.c:1118 msgid "Analyse en cours" msgstr "Análisis del DVD" #: ../src/interface.c:1144 msgid "" "Analyse en cours\n" "\n" "Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure." msgstr "" "Análisis del DVD\n" "\n" "Por favor, espere mientras el programa estudia el DVD." #: ../src/interface.c:1193 msgid "Terminé" msgstr "Terminado" #: ../src/interface.c:1219 msgid "" "Encodage terminé\n" "\n" "La conversion s'est déroulée avec succès." msgstr "" "Terminada la codificación\n" "\n" "La conversión ha sido satisfactoria." #. TRANSLATORS: Replace this string with your names, one name per line. #: ../src/interface.c:1271 msgid "translator-credits" msgstr "Pablo Rodríguez" #: ../src/interface.c:1278 ../src/interface.c:1282 msgid "Dvd95" msgstr "DVD95" #: ../src/interface.c:1279 msgid "a GNOME application to convert DVD9 to DVD5" msgstr "una aplicación GNOME para convertir DVD9 a DVD%" #: ../src/interface.c:1280 msgid "" "Dvd95 is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" "Dvd95 is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty\n" "of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n" "See the GNU General Public License for more details.\n" "You should have received a copy of the GNU General Public License\n" "along with Dvd95;\n" "if not, write to the Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" msgstr "" "DVD95 es software libre; puede redistribuirlo y/o modificarlo\n" "cumpliendo las condiciones de la GNU General Public License,\n" "versión 2 o (si así lo desea) una versión posterior.\n" "DVD95 se distribuye con la esperanza de que sea útil,\n" "pero SIN GARANTÍA ALGUNA; especialmente sin la garantía implícita,\n" "de COMERCIALIDAD o ADECUACIÓN A UN FIN CONCRETO.\n" "Vea la GNU General Public License para más detalles.\n" "Debe haber recibido una copia de la GNU General Public License con DVD95;\n" "en caso contrario, escriba a la Free Software Foundation, Inc.,\n" "59 Temple Place - Suite 330, Boston, MA 02111-1307 USA\n" #: ../src/message.c:116 msgid "Alerte" msgstr "Advertencia" #: ../src/message.c:149 msgid "Ok" msgstr "OK" #: ../src/message.c:161 msgid "Cancel" msgstr "Cancelar" #: ../src/message.c:240 msgid "Informations" msgstr "Información" #: ../src/message.c:317 #, fuzzy, c-format msgid "Première phase terminée (%d)" msgstr "Terminada primera fase" #: ../src/support.c:60 ../src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "No se encuentra el archivo: %s" #: ../src/systools.c:134 #, c-format msgid "%.2f gigas" msgstr "%.2f GB" #: ../src/systools.c:139 #, c-format msgid "%.2f megas" msgstr "%.2f MB" #: ../src/systools.c:143 #, c-format msgid "%.2f kilos" msgstr "%.2f KB" #: ../src/profile.c:46 msgid "4.7 GiO" msgstr "4,7 GB" #: ../src/profile.c:62 msgid "8.5 GiO" msgstr "8,5 GB" #: ../src/profile.c:78 msgid "AVI 700Mo mp3-128k MPEG4 2Pass" msgstr "" #: ../src/profile.c:94 msgid "AVI 1Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:110 msgid "AVI 1Go mp3-128k X264 1Pass" msgstr "" #: ../src/profile.c:126 msgid "AVI 1.5Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:142 msgid "AVI 2Go AC3 MPEG4 1Pass" msgstr "" #: ../src/profile.c:158 msgid "AVI 2Go AC3 X264 1Pass" msgstr "" #: ../src/profile.c:174 msgid "PSP 300Mo" msgstr "" #: ../src/profile.c:191 msgid "PSP 500Mo" msgstr "" #: ../src/profile.c:208 msgid "AVI 2Go AC3 X264 2Pass High Quality" msgstr "" #: ../src/dvd2avi.c:623 msgid "Détection des bandes noires\n" msgstr "" #: ../src/dvd2avi.c:821 #, c-format msgid "Pas le droit de créer de fichier dans %s !" msgstr "" #: ../src/dvd2avi.c:833 #, fuzzy msgid "Sélectionnez qu'un seule piste audio !" msgstr "Seleccionar pistas de sonido" #: ../src/dvd2avi.c:866 #, fuzzy, c-format msgid "Le fichier %s existe. L'utiliser ?" msgstr "El archivo %s ya existe. ¿Sobreescribirlo?" #: ../src/dvd2avi.c:876 #, fuzzy, c-format msgid "Création de %s impossible !" msgstr "¡No puede leerse la pista %s!" #: ../src/dvd2avi.c:982 msgid "Encodage\n" msgstr "" #: ../src/dvd2avi.c:994 #, c-format msgid "Encodage passe %d\n" msgstr "" #: ../src/dvd2avi.c:999 msgid "Continuer en passe 2 ?" msgstr "" #: ../src/dvd2avi.c:1017 msgid "Conserver le fichier vob pour un autre encodage ?" msgstr "" #: ../src/dvd2avi.c:1023 #, fuzzy, c-format msgid "Conserver le fichier %s ?" msgstr "Conservar los menús del DVD" #~ msgid "DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULON" #~ msgstr "DVD95: copia privada de DVD-9 a DVD-5 por J.F. COULON" #~ msgid "Version: %s du %s" #~ msgstr "Versión: %s de %s" dvd95/po/et_EE.mo000066400000000000000000000204001140003301000137170ustar00rootroot00000000000000sL    - 05 f o w o Qu i v    ! ' " : A 'Z        #-Ao%%":%O u8!.!P)n 6 !3:BS es #$<$Rw"<7:Li1l !, NZs|#%%+9ex~t  * 4>A Tad!M_ @iq *@O _kr# " 2IR X f p~%  ) 07h  N!(.7>[l)9 9D^fn}  %/Jd 2 3/6fk       ( ; #N r  ,     `Vic"E.Fa0;UY@rj2\4G^k(JK<QsCP'q:We[Zm B? hln!/%5I*Sg-> 6)T=L# NMHXbA3o_]O&8pDRf+179,$d%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%d%% a %.2fx%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé La conversion s'est déroulée avec succès.Extraction du contenu terminée Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAUCUNAjout de la table des matières. Ajustement automatique de la qualité. Ajustement de qualité à %.2f%%. AlerteAnalyse de %d cellules. Analyse de la cellule %d (%d secteurs) Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO. Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules. Copie de la cellule %d (%d secteurs) Copie des menus vob%2d (%d secteurs) Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD. Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULONDuréeDvd95DétailsEcran des propiétésEffacement des anciens fichiers. Effacement des fichiers. Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :ExtFichier ISOFichier VOB trop gros (%s) ! Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD. FormatGNU GPLGarder les menusGravage sur DVD. Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents !Mise à jours du vob %d-%d Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPas assez de place sur %s Il manque %lld octets !PistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% (%s restant)Total %d%% a %.2fxVersion: %s du %sVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !totemtranslator-creditsÉvaluation de qualité :Project-Id-Version: et_EE Report-Msgid-Bugs-To: POT-Creation-Date: 2007-01-25 22:39+0100 PO-Revision-Date: 2007-06-12 20:41+0100 Last-Translator: jf.coulon Language-Team: Estonian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Estonian X-Generator: KBabel 1.10.2 %.2f giga%.2f kilo%.2f mega%d%d%% (%s jäänud)%d%% / %.2fx%s%s pole fail ! Palun eemalda.%s pole kataloog ! Palun eemalda./dev/dvd4.7 GB8.5 GBAnalüüsin Palun oota DVD struktuuri analüüsi tulemust.Meediat ei leitud Palun sisesta video DVD, või määra kasutatav ISO fail. Kodeerimine lõpetatud Muundamine oli edukas.Sisu lahtiharutamine lõpetatud Enne ISO tõmmise loomist võid saadud tulemuse läbi vaadata.HäälLoomise seadedTiitridSüsteemPiltPUUDUBLisan sisukorra. Automaatne kvaliteedi määramine. Määran kvaliteedi %.2f%%. TähelepanuAnalüüsin %d cells. Analüüsin cell %d (%d sektorit) AnalüüsinMeediat (plaati) ei leitudArvuta parim kvaliteetKanaleidLoobuDVD mahutavusPeatükkeVali ISO failSäilita DVD menüüdEhitan ISO faili. Muunda dünaamilise pildikvaliteedigaMuunda DVDKopeerin %d cells. Kopeerin cell %d (%d sektorit) Kopeerin menüüsid vob%2d (%d sektorit) ei suuda leida väljundkaardi (pixmap) faili %s!Eemalda lõpust tiitridLoon DVD struktuuri. Loo ISO tõmmisLoo ISO tõmmis peale muundamistDVD 9 -> 5DVD95: Isiklikuks otstarbeks DVD 9 -> DVD 5 kopeerimise vidinas by J.F. COULONKestusDvd95DetailidSeadedVanade failide eemaldamine. Eemaldan faile. Loomise viga. Eemaldan failid ?Muundamise viga ........Lugemise viga ! Ignoreeri lugemise vigu ?ISO faili asukoht :Ajutine ruum :ExtISO failVOB fail on liiga suur (%s) ! Jätkan sellest hoolimata ?ISO failidParandan DVD struktuuri. FormaatGNU GPLKoos menüügaDVD kirjutamine. Kirjuta DVDKirjuta peale muundamistTundmatuInformatsioonKeelKeeledFail %s on juba olemas. Loon uuesti ?Faili %s pole olemas !Kataloogi %s pole olemas !kataloogi %s pole olemas !Multimeedia taasesitaja :Viga DVD struktuuri lugemisel !Näita DVDViga %s lugemisel!Ajutine - ja ISO faili kataloog ei tohi olla sama!Värskendan vob %d-%d Jäta viimane peatükk vaheleTrace level :DVD nimi ja ISO faili nimiOk%s pole piisavalt ruumi Vaja oleks %lld baiti !RadaEsimene etapp lõpetatudSeadedDVD seade :Dünaamiline kvaliteetVali hääledVali subtiitridVali rada muundamiseksSubtiitridVali kataloogLõpetaDVD nimi :Kokku %d%% (%s jäänud)Kokku %d%% / %.2fxVersioon: %s -> %sPalun alusta kvaliteedi tuvastamistPalun vali häälPalun vali videoDVD9 -> DVD5 muundamise programm GNOME jaokspuudub mkisofs !totemtranslator-creditsMäära kvaliteet :dvd95/po/et_EE.po000066400000000000000000000427341140003301000137400ustar00rootroot00000000000000# translation of DVD95 to Estonian # This file is distributed under the same license as the PACKAGE package. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER. # # Hans , 2007, 2008. # Nuufens 2008 msgid "" msgstr "" "Project-Id-Version: et_EE\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-11-27 21:13+0100\n" "PO-Revision-Date: 2008-01-11 20:32+0200\n" "Last-Translator: Hans \n" "Language-Team: Estonian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Estonian\n" "X-Generator: KBabel 1.11.4\n" #: ../src/avancement.c:308 ../src/avancement.c:396 #, c-format msgid "Total %d%% a %.2fx" msgstr "Kokku %d%% / %.2fx" #: ../src/avancement.c:319 ../src/avancement.c:386 #, c-format msgid "%d%% (%s restant)" msgstr "%d%% (%s jäänud)" #: ../src/callbacks.c:178 ../src/interface.c:70 ../src/main.c:306 msgid "DVD 9 to 5" msgstr "DVD 9 -> 5" #: ../src/callbacks.c:197 ../src/callbacks.c:374 ../src/callbacks.c:458 msgid "Veuillez selectionner une piste video" msgstr "Palun vali video" #: ../src/callbacks.c:273 ../src/uitools.c:148 msgid "Fichiers ISO" msgstr "ISO failid" #: ../src/callbacks.c:378 ../src/callbacks.c:462 msgid "Veuillez selectionner une piste audio" msgstr "Palun vali hääl" #: ../src/callbacks.c:394 msgid "Veuillez lancer un calcul de qualit" msgstr "Palun alusta kvaliteedi tuvastamist" #: ../src/callbacks.c:418 msgid "Erreur de conversion ........" msgstr "Muundamise viga ........" #: ../src/dvd2vob.c:462 ../src/dvdbackup.c:1144 ../src/dvd2avi.c:349 #, c-format msgid "Copie de la cellule %d (%d secteurs)\n" msgstr "Kopeerin elementi %d (%d sektorit)\n" #: ../src/dvd2vob.c:649 ../src/dvd2vob.c:696 msgid "Fixation de la structure du DVD.\n" msgstr "Parandan DVD struktuuri.\n" #: ../src/dvd2vob.c:874 ../src/dvd2vob.c:883 ../src/dvdbackup.c:1378 #: ../src/dvdbackup.c:1386 ../src/dvd2avi.c:808 ../src/dvd2avi.c:815 #, fuzzy, c-format msgid "" "Pas assez de place sur %s\n" "Il manque %s octets !" msgstr "" "%s pole piisavalt ruumi\n" "Vaja oleks %s baiti !" #: ../src/dvd2vob.c:907 ../src/dvdbackup.c:1415 ../src/dvd2avi.c:855 #, c-format msgid "Copie de %d cellules.\n" msgstr "Kopeerin %d elementi.\n" #. Create empty filesystem tree #: ../src/dvd2vob.c:909 ../src/dvdbackup.c:1417 ../src/dvd2avi.c:857 msgid "Effacement des anciens fichiers.\n" msgstr "Vanade failide eemaldamine.\n" #: ../src/dvd2vob.c:914 ../src/dvdbackup.c:1422 #, c-format msgid "Le repertoire %s existe. L'effacer ?" msgstr "Kataloogi %s pole olemas !" #: ../src/dvd2vob.c:924 ../src/dvdbackup.c:1432 #, c-format msgid "%s n'est pas un repertoire ! Veuillez l'effacer." msgstr "%s pole kataloog ! Palun eemalda." #: ../src/dvd2vob.c:965 ../src/dvdbackup.c:1466 msgid "Ajustement automatique de la qualité.\n" msgstr "Automaatne kvaliteedi määramine.\n" #: ../src/dvd2vob.c:992 ../src/dvdbackup.c:1498 #, c-format msgid "Ajustement de qualité à %.2f%%.\n" msgstr "Määran kvaliteedi %.2f%%.\n" #: ../src/dvd2vob.c:1017 ../src/dvdbackup.c:1511 #, c-format msgid "" "Fichier VOB trop gros (%s) !\n" "Désirez vous continuer ?" msgstr "" "VOB fail on liiga suur (%s) !\n" "Jätkan sellest hoolimata ?" #: ../src/dvd2vob.c:1043 msgid "Création de la structure du DVD.\n" msgstr "Loon DVD struktuuri.\n" #: ../src/dvd2vob.c:1089 msgid "Ajout de la table des matières.\n" msgstr "Lisan sisukorra.\n" #: ../src/dvd2vob.c:1125 ../src/dvdbackup.c:1548 #, c-format msgid "Le fichier %s existe. Le re-creer ?" msgstr "Fail %s on juba olemas. Loon uuesti ?" #: ../src/dvd2vob.c:1128 ../src/dvdbackup.c:1551 msgid "Construction de l'image ISO.\n" msgstr "Tekitan ISO faili.\n" #: ../src/dvd2vob.c:1138 ../src/dvdbackup.c:1566 #, c-format msgid "%s n'est pas un fichier ! Veuillez l'effacer." msgstr "%s pole fail ! Palun eemalda." #: ../src/dvd2vob.c:1145 ../src/dvdbackup.c:1573 msgid "Gravage sur DVD.\n" msgstr "DVD kirjutamine.\n" #: ../src/dvd2vob.c:1159 ../src/dvdbackup.c:1587 msgid "Effacement des fichiers.\n" msgstr "Eemaldan faile.\n" #: ../src/dvdbackup.c:171 #, c-format msgid "Copie des menus vob%2d (%d secteurs)\n" msgstr "Kopeerin menüüsid vob%2d (%d sektorit)\n" #: ../src/dvdbackup.c:772 #, c-format msgid "Mise à jours du vob %d-%d\n" msgstr "Värskendan vob %d-%d\n" #: ../src/dvdbackup.c:1142 #, c-format msgid "Analyse de la cellule %d (%d secteurs)\n" msgstr "Analüüsin elementi %d (%d sektorit)\n" #: ../src/dvdbackup.c:1559 msgid "Erreur de construction. Effacer les fichiers ?" msgstr "Viga DVD tekitamisel. Eemaldan failid ?" #: ../src/dvdbackup.c:1713 #, c-format msgid "Analyse de %d cellules.\n" msgstr "Analüüsin %d elementi.\n" #: ../src/dvdcopy.c:107 msgid "AC3" msgstr "" #: ../src/dvdcopy.c:108 ../src/dvdcopy.c:115 msgid "?" msgstr "" #: ../src/dvdcopy.c:109 msgid "MPEG1" msgstr "" #: ../src/dvdcopy.c:110 msgid "MPEG2" msgstr "" #: ../src/dvdcopy.c:111 msgid "LPCM" msgstr "" #: ../src/dvdcopy.c:112 msgid "SDDS" msgstr "" #: ../src/dvdcopy.c:113 msgid "DTS" msgstr "" #: ../src/dvdcopy.c:133 ../src/dvdcopy.c:156 #, fuzzy msgid "Normal" msgstr "Formaat" #: ../src/dvdcopy.c:134 msgid "Impaired" msgstr "" #: ../src/dvdcopy.c:135 msgid "Director's comments" msgstr "" #: ../src/dvdcopy.c:136 msgid "Alternate director's comments" msgstr "" #: ../src/dvdcopy.c:157 #, fuzzy msgid "Large" msgstr "Keel" #: ../src/dvdcopy.c:158 msgid "Enfants" msgstr "" #: ../src/dvdcopy.c:159 msgid "Reserved" msgstr "" #: ../src/dvdcopy.c:160 msgid "Légende normale" msgstr "" #: ../src/dvdcopy.c:161 msgid "Légende large" msgstr "" #: ../src/dvdcopy.c:162 msgid "Légende enfants" msgstr "" #: ../src/dvdcopy.c:163 ../src/dvdcopy.c:165 ../src/dvdcopy.c:166 #: ../src/dvdcopy.c:167 msgid "reserved" msgstr "" #: ../src/dvdcopy.c:164 #, fuzzy msgid "Forcé" msgstr "Formaat" #: ../src/dvdcopy.c:168 msgid "Réalisateur" msgstr "" #: ../src/dvdcopy.c:169 msgid "Réalisateur large" msgstr "" #: ../src/dvdcopy.c:170 msgid "Réalisateur enfants" msgstr "" #: ../src/dvdcopy.c:300 msgid "Lecture de la structure impossible !" msgstr "DVD struktuuri lugemine ebaõnnestus!" #: ../src/dvdcopy.c:306 #, c-format msgid "Lecture du titre de %s impossible!" msgstr "%s lugemine ebaõnnestus!" # #: ../src/dvdcopy.c:344 ../src/dvdcopy.c:1007 ../src/dvdcopy.c:1193 msgid "Piste" msgstr "Rada" #: ../src/dvdcopy.c:356 msgid "Durée" msgstr "Kestus" #: ../src/dvdcopy.c:368 msgid "Chapitres" msgstr "Peatükke" #: ../src/dvdcopy.c:380 msgid "Langues" msgstr "Keeled" # #: ../src/dvdcopy.c:392 msgid "Sous-titres" msgstr "Subtiitrid" #: ../src/dvdcopy.c:404 ../src/dvdcopy.c:1027 msgid "Format" msgstr "Formaat" #: ../src/dvdcopy.c:488 ../src/dvdcopy.c:495 ../src/dvdcopy.c:501 #: ../src/dvdcopy.c:1082 ../src/dvdcopy.c:1094 ../src/dvdcopy.c:1241 #, c-format msgid "%d" msgstr "%d" #: ../src/dvdcopy.c:498 ../src/dvdcopy.c:504 ../src/dvdcopy.c:1085 #: ../src/dvdcopy.c:1244 #, c-format msgid "%s" msgstr "%s" #: ../src/dvdcopy.c:1017 ../src/dvdcopy.c:1203 ../src/interface.c:540 msgid "Langue" msgstr "Keel" #: ../src/dvdcopy.c:1038 msgid "Extension" msgstr "" #: ../src/dvdcopy.c:1049 msgid "Canaux" msgstr "Kanaleid" #: ../src/dvdcopy.c:1213 msgid "Ext" msgstr "Ext" #: ../src/dvdinfo.c:205 msgid "Inconnu" msgstr "Tundmatu" #: ../src/dvdtools.c:365 msgid "Erreur de lecture ! Ignorer les erreurs ?" msgstr "Lugemise viga ! Ignoreeri lugemise vigu ?" #: ../src/gconfig.c:466 #, fuzzy msgid "Les répertoires temporaire et iso doivent être différents !" msgstr "Ajutine - ja ISO faili kataloog ei tohi olla sama!" #: ../src/gconfig.c:470 msgid "mkisofs manquant !" msgstr "puudub mkisofs !" #: ../src/gconfig.c:474 ../src/gconfig.c:482 #, fuzzy, c-format msgid "Le répertoire %s n'existe pas !" msgstr "Kataloogi %s pole olemas !" #: ../src/gconfig.c:478 ../src/gconfig.c:486 #, c-format msgid "Pas d'accès en écriture au répertoire %s !" msgstr "" #: ../src/gconfig.c:491 #, c-format msgid "Le fichier %s n'existe pas !" msgstr "Faili %s pole olemas !" # #: ../src/interface.c:95 msgid "Ecran des propiétés" msgstr "Ekraani seaded" #: ../src/interface.c:102 msgid "Lecture du DVD" msgstr "Näita DVD" #: ../src/interface.c:106 msgid "Évaluer" msgstr "Kontrolli" #: ../src/interface.c:110 msgid "Calculer la qualité au mieux" msgstr "Arvuta parim kvaliteet" #: ../src/interface.c:116 msgid "Convertir le DVD" msgstr "Muunda DVD" # #: ../src/interface.c:152 msgid "Nom du DVD et du fichier ISO" msgstr "DVD nimi ja ISO faili nimi" #: ../src/interface.c:155 msgid "Évaluation de qualité :" msgstr "Määra kvaliteet :" #: ../src/interface.c:163 msgid "Titre du film :" msgstr "Filmi nimi :" #: ../src/interface.c:196 msgid "Selectionner la piste a convertir" msgstr "Vali muundatav rada" #: ../src/interface.c:199 msgid "Vidéo" msgstr "Pilt" #: ../src/interface.c:231 msgid "Selectioner les pistes audio" msgstr "Vali hääled" #: ../src/interface.c:234 msgid "Audio" msgstr "Hääl" #: ../src/interface.c:266 msgid "Selectioner les sous titres" msgstr "Vali subtiitrid" #: ../src/interface.c:269 msgid "Sous-titres" msgstr "Tiitrid" # #: ../src/interface.c:397 msgid "Propriétés" msgstr "Seaded" #: ../src/interface.c:436 msgid "Périphérique DVD :" msgstr "DVD seade :" #: ../src/interface.c:444 msgid "Espace temporaire :" msgstr "Ajutine ruum :" #: ../src/interface.c:452 msgid "Espace des ISO :" msgstr "ISO faili asukoht :" #: ../src/interface.c:460 msgid "Lecteur multimédia :" msgstr "Multimeedia taasesitaja :" #: ../src/interface.c:468 msgid "Niveau de trace :" msgstr "Trace level :" #: ../src/interface.c:476 ../src/interface.c:483 msgid "Sélectionner un dossier" msgstr "Vali fail" #: ../src/interface.c:502 msgid "totem" msgstr "totem" #: ../src/interface.c:517 msgid "/dev/dvd" msgstr "/dev/dvd" #: ../src/interface.c:520 msgid "Indications sonores" msgstr "" #: ../src/interface.c:554 msgid "Default" msgstr "" #: ../src/interface.c:555 msgid "Français" msgstr "" #: ../src/interface.c:556 msgid "English" msgstr "" #: ../src/interface.c:557 msgid "Deutsch" msgstr "" #: ../src/interface.c:558 msgid "Greek" msgstr "" #: ../src/interface.c:559 msgid "Estonian" msgstr "" #: ../src/interface.c:560 msgid "Hungarian" msgstr "" #: ../src/interface.c:561 msgid "Dutch" msgstr "" #: ../src/interface.c:562 msgid "Portuguese" msgstr "" #: ../src/interface.c:563 msgid "Czech" msgstr "" #: ../src/interface.c:564 msgid "Spanish" msgstr "" #: ../src/interface.c:565 msgid "Italian" msgstr "" #: ../src/interface.c:567 msgid "Système" msgstr "Süsteem" #: ../src/interface.c:595 msgid "Garder les menus" msgstr "Koos menüüga" #: ../src/interface.c:602 msgid "Conserver les menus du DVD" msgstr "Säilita DVD menüüd" # #: ../src/interface.c:605 msgid "Créer une image ISO" msgstr "Loo ISO tõmmis" # #: ../src/interface.c:612 msgid "Créer une image ISO apres convertion" msgstr "Peale muundamist loo ISO tõmmis " #: ../src/interface.c:615 msgid "Graver le DVD" msgstr "Kirjuta DVD" #: ../src/interface.c:622 msgid "Graver un DVD apres convertion" msgstr "Kirjuta DVD peale muundamist" # #: ../src/interface.c:624 msgid "Qualité dynamique" msgstr "Dünaamiline kvaliteet" #: ../src/interface.c:631 msgid "Convertir avec une qualité d'image dynamique" msgstr "Muunda dünaamilise pildikvaliteediga" #: ../src/interface.c:641 msgid "Capacité du DVD :" msgstr "DVD mahutavus :" #: ../src/interface.c:649 msgid "Couper le générique" msgstr "Eemalda lõpust tiitrid" #: ../src/interface.c:656 msgid "Ne pas conserver le dernier chapitre de la piste vidéo" msgstr "Jäta viimane peatükk vahele" #: ../src/interface.c:659 msgid "Paramètres de création" msgstr "Loomise seaded" #: ../src/interface.c:812 msgid "Détails" msgstr "Detailid" # #: ../src/interface.c:873 msgid "Choix du fichier ISO" msgstr "Vali ISO fail" #: ../src/interface.c:926 msgid "Aucun medium détecté" msgstr "Meediat (plaati) ei leitud" #: ../src/interface.c:952 msgid "" "Aucun médium détecté\n" "\n" "Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à " "utiliser. " msgstr "" "Meediat ei leitud\n" "\n" "Palun sisesta video DVD, või määra kasutatav ISO fail. " #: ../src/interface.c:965 msgid "Fichier ISO" msgstr "ISO fail" #: ../src/interface.c:1023 msgid "Première phase terminée" msgstr "Esimene etapp lõpetatud" #: ../src/interface.c:1049 msgid "" "Extraction du contenu terminée\n" "\n" "Avant de procéder à la construction d'une image ISO ou une gravure, vous " "pouvez prévisualiser le résultat." msgstr "" "Sisu lahtiharutamine lõpetatud\n" "\n" "Enne ISO tõmmise loomist või kirjutamist saad tulemuse läbi vaadata." # #: ../src/interface.c:1118 msgid "Analyse en cours" msgstr "Analüüsin" #: ../src/interface.c:1144 msgid "" "Analyse en cours\n" "\n" "Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure." msgstr "" "Analüüsin\n" "\n" "Palun oota DVD struktuuri analüüsi tulemust." #: ../src/interface.c:1193 msgid "Terminé" msgstr "Lõpeta" #: ../src/interface.c:1219 msgid "" "Encodage terminé\n" "\n" "La conversion s'est déroulée avec succès." msgstr "" "Kodeerimine lõpetatud\n" "\n" "Muundamine oli edukas." #. TRANSLATORS: Replace this string with your names, one name per line. #: ../src/interface.c:1271 msgid "translator-credits" msgstr "Tänud tõlkijatele" #: ../src/interface.c:1278 ../src/interface.c:1282 msgid "Dvd95" msgstr "Dvd95" #: ../src/interface.c:1279 msgid "a GNOME application to convert DVD9 to DVD5" msgstr "DVD9 -> DVD5 muundamise programm GNOME jaoks" #: ../src/interface.c:1280 msgid "" "Dvd95 is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" "Dvd95 is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty\n" "of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n" "See the GNU General Public License for more details.\n" "You should have received a copy of the GNU General Public License\n" "along with Dvd95;\n" "if not, write to the Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" msgstr "" "Dvd95 on vabakasutusega tarkvara: võid seda jagada ja muuta\n" "\"GNU General Public Licence\", edaspidi Litsents, tingimusi järgides.\n" "Dvd95 tarkavara jagatakse lootuses, et see on kellelegi mingil\n" "määral kasulik, kuid selle juures peab arvestama et dvd95 tarkavaral\n" "puudub igasugune toimivuse ja kasulikkuse garantii.\n" "Lisainfo saamiseks vaata \"Litsentsi\" tingimusi.\n" "Selle tarkvaraga kaasas peaks olema \"Litsentsi\" tekstiline koopia.\n" "Kui Litsentsi tekstiline koopia puudub siis kirjuta sellest aadressile:\n" "Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" #: ../src/message.c:116 msgid "Alerte" msgstr "Tähelepanu" #: ../src/message.c:149 msgid "Ok" msgstr "Ok" #: ../src/message.c:161 msgid "Cancel" msgstr "Loobu" #: ../src/message.c:240 msgid "Informations" msgstr "Informatsioon" #: ../src/message.c:317 #, fuzzy, c-format msgid "Première phase terminée (%d)" msgstr "Esimene etapp lõpetatud" #: ../src/support.c:60 ../src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "ei suuda leida väljundkaardi (pixmap) faili %s!" #: ../src/systools.c:134 #, c-format msgid "%.2f gigas" msgstr "%.2f giga" #: ../src/systools.c:139 #, c-format msgid "%.2f megas" msgstr "%.2f mega" #: ../src/systools.c:143 #, c-format msgid "%.2f kilos" msgstr "%.2f kilo" #: ../src/profile.c:46 msgid "4.7 GiO" msgstr "4.7 GB" #: ../src/profile.c:62 msgid "8.5 GiO" msgstr "8.5 GB" #: ../src/profile.c:78 msgid "AVI 700Mo mp3-128k MPEG4 2Pass" msgstr "" #: ../src/profile.c:94 msgid "AVI 1Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:110 msgid "AVI 1Go mp3-128k X264 1Pass" msgstr "" #: ../src/profile.c:126 msgid "AVI 1.5Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:142 msgid "AVI 2Go AC3 MPEG4 1Pass" msgstr "" #: ../src/profile.c:158 msgid "AVI 2Go AC3 X264 1Pass" msgstr "" #: ../src/profile.c:174 msgid "PSP 300Mo" msgstr "" #: ../src/profile.c:191 msgid "PSP 500Mo" msgstr "" #: ../src/profile.c:208 msgid "AVI 2Go AC3 X264 2Pass High Quality" msgstr "" #: ../src/dvd2avi.c:623 msgid "Détection des bandes noires\n" msgstr "" #: ../src/dvd2avi.c:821 #, c-format msgid "Pas le droit de créer de fichier dans %s !" msgstr "" #: ../src/dvd2avi.c:833 #, fuzzy msgid "Sélectionnez qu'un seule piste audio !" msgstr "Vali hääled" #: ../src/dvd2avi.c:866 #, fuzzy, c-format msgid "Le fichier %s existe. L'utiliser ?" msgstr "Fail %s on juba olemas. Loon uuesti ?" #: ../src/dvd2avi.c:876 #, fuzzy, c-format msgid "Création de %s impossible !" msgstr "%s lugemine ebaõnnestus!" #: ../src/dvd2avi.c:982 msgid "Encodage\n" msgstr "" #: ../src/dvd2avi.c:994 #, c-format msgid "Encodage passe %d\n" msgstr "" #: ../src/dvd2avi.c:999 msgid "Continuer en passe 2 ?" msgstr "" #: ../src/dvd2avi.c:1017 msgid "Conserver le fichier vob pour un autre encodage ?" msgstr "" #: ../src/dvd2avi.c:1023 #, fuzzy, c-format msgid "Conserver le fichier %s ?" msgstr "Säilita DVD menüüd" #~ msgid "DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULON" #~ msgstr "" #~ "DVD95: isiklikuks tarbeks DVD 9 kopeerimine DVD 5 , autor J.F. COULON" #~ msgid "Version: %s du %s" #~ msgstr "Version: %s %s-st" dvd95/po/hu.po000066400000000000000000000421251140003301000133650ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: dvd95\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-11-27 21:13+0100\n" "PO-Revision-Date: 2007-02-13 21:10+0100\n" "Last-Translator: jf.coulon \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: English\n" #: ../src/avancement.c:308 ../src/avancement.c:396 #, c-format msgid "Total %d%% a %.2fx" msgstr "%d%% totál, %.2fx" #: ../src/avancement.c:319 ../src/avancement.c:386 #, c-format msgid "%d%% (%s restant)" msgstr "%d%% (%s maradt)" #: ../src/callbacks.c:178 ../src/interface.c:70 ../src/main.c:306 msgid "DVD 9 to 5" msgstr "" #: ../src/callbacks.c:197 ../src/callbacks.c:374 ../src/callbacks.c:458 msgid "Veuillez selectionner une piste video" msgstr "Kérem, válasszon videosávot" #: ../src/callbacks.c:273 ../src/uitools.c:148 msgid "Fichiers ISO" msgstr "ISO fájlok" #: ../src/callbacks.c:378 ../src/callbacks.c:462 msgid "Veuillez selectionner une piste audio" msgstr "Kérem válasszon hangsávot" #: ../src/callbacks.c:394 msgid "Veuillez lancer un calcul de qualit" msgstr "Kérem indítsa el a minőség felderítést" #: ../src/callbacks.c:418 msgid "Erreur de conversion ........" msgstr "Konverziós hiba ........" #: ../src/dvd2vob.c:462 ../src/dvdbackup.c:1144 ../src/dvd2avi.c:349 #, c-format msgid "Copie de la cellule %d (%d secteurs)\n" msgstr "%d. cella másolása (%d szektor)\n" #: ../src/dvd2vob.c:649 ../src/dvd2vob.c:696 msgid "Fixation de la structure du DVD.\n" msgstr "DVD struktúra véglegesítése.\n" #: ../src/dvd2vob.c:874 ../src/dvd2vob.c:883 ../src/dvdbackup.c:1378 #: ../src/dvdbackup.c:1386 ../src/dvd2avi.c:808 ../src/dvd2avi.c:815 #, fuzzy, c-format msgid "" "Pas assez de place sur %s\n" "Il manque %s octets !" msgstr "" "Nincs elég hely a %s eszközön\n" "%s byte-al több helyre van szükség!" #: ../src/dvd2vob.c:907 ../src/dvdbackup.c:1415 ../src/dvd2avi.c:855 #, c-format msgid "Copie de %d cellules.\n" msgstr "%d cellát másolok.\n" #. Create empty filesystem tree #: ../src/dvd2vob.c:909 ../src/dvdbackup.c:1417 ../src/dvd2avi.c:857 msgid "Effacement des anciens fichiers.\n" msgstr "Régi fájlok eltávolítása.\n" #: ../src/dvd2vob.c:914 ../src/dvdbackup.c:1422 #, c-format msgid "Le repertoire %s existe. L'effacer ?" msgstr "A %s könyvtár nem létezik!" #: ../src/dvd2vob.c:924 ../src/dvdbackup.c:1432 #, c-format msgid "%s n'est pas un repertoire ! Veuillez l'effacer." msgstr "%s nem könyvtár! Kérem törölje." #: ../src/dvd2vob.c:965 ../src/dvdbackup.c:1466 msgid "Ajustement automatique de la qualité.\n" msgstr "Minőség automatikus beállítása.\n" #: ../src/dvd2vob.c:992 ../src/dvdbackup.c:1498 #, c-format msgid "Ajustement de qualité à %.2f%%.\n" msgstr "Minőség beállítása %.2f%%-ra.\n" #: ../src/dvd2vob.c:1017 ../src/dvdbackup.c:1511 #, c-format msgid "" "Fichier VOB trop gros (%s) !\n" "Désirez vous continuer ?" msgstr "" "VOB fájl túl nagy! (%s)\n" "Mindenképpen folytassuk?" #: ../src/dvd2vob.c:1043 msgid "Création de la structure du DVD.\n" msgstr "DVD struktúra létrehozása.\n" #: ../src/dvd2vob.c:1089 msgid "Ajout de la table des matières.\n" msgstr "Tartalomjegyzék hozzáadása.\n" #: ../src/dvd2vob.c:1125 ../src/dvdbackup.c:1548 #, c-format msgid "Le fichier %s existe. Le re-creer ?" msgstr "A %s nevű fájl már létezik. Újra készítsem el?" #: ../src/dvd2vob.c:1128 ../src/dvdbackup.c:1551 msgid "Construction de l'image ISO.\n" msgstr "ISO fájl felépítése.\n" #: ../src/dvd2vob.c:1138 ../src/dvdbackup.c:1566 #, c-format msgid "%s n'est pas un fichier ! Veuillez l'effacer." msgstr "A %s nem fájl! Kérem törölje." #: ../src/dvd2vob.c:1145 ../src/dvdbackup.c:1573 msgid "Gravage sur DVD.\n" msgstr "DVD kiírása.\n" #: ../src/dvd2vob.c:1159 ../src/dvdbackup.c:1587 msgid "Effacement des fichiers.\n" msgstr "Fájlok eltávolítása.\n" #: ../src/dvdbackup.c:171 #, c-format msgid "Copie des menus vob%2d (%d secteurs)\n" msgstr "Menü vob%2d másolása (%d szektor)\n" #: ../src/dvdbackup.c:772 #, c-format msgid "Mise à jours du vob %d-%d\n" msgstr "VOB %d-%d frissítése\n" #: ../src/dvdbackup.c:1142 #, c-format msgid "Analyse de la cellule %d (%d secteurs)\n" msgstr "%d. cella analizálása (%d szektor)\n" #: ../src/dvdbackup.c:1559 msgid "Erreur de construction. Effacer les fichiers ?" msgstr "Hiba a felépítésben. Eltávolítsam a fájlokat?" #: ../src/dvdbackup.c:1713 #, c-format msgid "Analyse de %d cellules.\n" msgstr "%d cellát analizálok.\n" #: ../src/dvdcopy.c:107 msgid "AC3" msgstr "" #: ../src/dvdcopy.c:108 ../src/dvdcopy.c:115 msgid "?" msgstr "" #: ../src/dvdcopy.c:109 msgid "MPEG1" msgstr "" #: ../src/dvdcopy.c:110 msgid "MPEG2" msgstr "" #: ../src/dvdcopy.c:111 msgid "LPCM" msgstr "" #: ../src/dvdcopy.c:112 msgid "SDDS" msgstr "" #: ../src/dvdcopy.c:113 msgid "DTS" msgstr "" #: ../src/dvdcopy.c:133 ../src/dvdcopy.c:156 #, fuzzy msgid "Normal" msgstr "Formátum" #: ../src/dvdcopy.c:134 msgid "Impaired" msgstr "" #: ../src/dvdcopy.c:135 msgid "Director's comments" msgstr "" #: ../src/dvdcopy.c:136 msgid "Alternate director's comments" msgstr "" #: ../src/dvdcopy.c:157 #, fuzzy msgid "Large" msgstr "Nyelv" #: ../src/dvdcopy.c:158 msgid "Enfants" msgstr "" #: ../src/dvdcopy.c:159 msgid "Reserved" msgstr "" #: ../src/dvdcopy.c:160 msgid "Légende normale" msgstr "" #: ../src/dvdcopy.c:161 msgid "Légende large" msgstr "" #: ../src/dvdcopy.c:162 msgid "Légende enfants" msgstr "" #: ../src/dvdcopy.c:163 ../src/dvdcopy.c:165 ../src/dvdcopy.c:166 #: ../src/dvdcopy.c:167 msgid "reserved" msgstr "" #: ../src/dvdcopy.c:164 #, fuzzy msgid "Forcé" msgstr "Formátum" #: ../src/dvdcopy.c:168 msgid "Réalisateur" msgstr "" #: ../src/dvdcopy.c:169 msgid "Réalisateur large" msgstr "" #: ../src/dvdcopy.c:170 msgid "Réalisateur enfants" msgstr "" #: ../src/dvdcopy.c:300 msgid "Lecture de la structure impossible !" msgstr "Olvasási hiba a DVD struktúrában!" #: ../src/dvdcopy.c:306 #, c-format msgid "Lecture du titre de %s impossible!" msgstr "Olvasási hiba a %s címben!" # #: ../src/dvdcopy.c:344 ../src/dvdcopy.c:1007 ../src/dvdcopy.c:1193 msgid "Piste" msgstr "Sáv" #: ../src/dvdcopy.c:356 msgid "Durée" msgstr "Hossz" #: ../src/dvdcopy.c:368 msgid "Chapitres" msgstr "Fejezetek" #: ../src/dvdcopy.c:380 msgid "Langues" msgstr "Nyelvek" # #: ../src/dvdcopy.c:392 msgid "Sous-titres" msgstr "Feliratok" #: ../src/dvdcopy.c:404 ../src/dvdcopy.c:1027 msgid "Format" msgstr "Formátum" #: ../src/dvdcopy.c:488 ../src/dvdcopy.c:495 ../src/dvdcopy.c:501 #: ../src/dvdcopy.c:1082 ../src/dvdcopy.c:1094 ../src/dvdcopy.c:1241 #, c-format msgid "%d" msgstr "" #: ../src/dvdcopy.c:498 ../src/dvdcopy.c:504 ../src/dvdcopy.c:1085 #: ../src/dvdcopy.c:1244 #, c-format msgid "%s" msgstr "" #: ../src/dvdcopy.c:1017 ../src/dvdcopy.c:1203 ../src/interface.c:540 msgid "Langue" msgstr "Nyelv" #: ../src/dvdcopy.c:1038 msgid "Extension" msgstr "" #: ../src/dvdcopy.c:1049 msgid "Canaux" msgstr "Csatornák" #: ../src/dvdcopy.c:1213 msgid "Ext" msgstr "" #: ../src/dvdinfo.c:205 msgid "Inconnu" msgstr "Ismeretlen" #: ../src/dvdtools.c:365 msgid "Erreur de lecture ! Ignorer les erreurs ?" msgstr "Olvasási hiba! Figyelmen kívül hagyjam az olvasási hibákat?" #: ../src/gconfig.c:466 #, fuzzy msgid "Les répertoires temporaire et iso doivent être différents !" msgstr "Az ideiglenes és az ISO könyvtár nem lehet ugyanaz!" #: ../src/gconfig.c:470 msgid "mkisofs manquant !" msgstr "Hiányzik az mkisofs!" #: ../src/gconfig.c:474 ../src/gconfig.c:482 #, fuzzy, c-format msgid "Le répertoire %s n'existe pas !" msgstr "A %s könyvtár nem létezik!" #: ../src/gconfig.c:478 ../src/gconfig.c:486 #, c-format msgid "Pas d'accès en écriture au répertoire %s !" msgstr "" #: ../src/gconfig.c:491 #, c-format msgid "Le fichier %s n'existe pas !" msgstr "A %s fájl nem létezik!" # #: ../src/interface.c:95 msgid "Ecran des propiétés" msgstr "Tulajdonságok" #: ../src/interface.c:102 msgid "Lecture du DVD" msgstr "DVD lejátszása" #: ../src/interface.c:106 msgid "Évaluer" msgstr "Kiértékelés" #: ../src/interface.c:110 msgid "Calculer la qualité au mieux" msgstr "A legjobb minőség kiszámítása" #: ../src/interface.c:116 msgid "Convertir le DVD" msgstr "DVD konvertálás" # #: ../src/interface.c:152 msgid "Nom du DVD et du fichier ISO" msgstr "DVD név és ISO fájl név" #: ../src/interface.c:155 msgid "Évaluation de qualité :" msgstr "Minőség számítása:" #: ../src/interface.c:163 msgid "Titre du film :" msgstr "DVD címe:" #: ../src/interface.c:196 msgid "Selectionner la piste a convertir" msgstr "Válasszon konvertálandó sávot" #: ../src/interface.c:199 msgid "Vidéo" msgstr "Videó" #: ../src/interface.c:231 msgid "Selectioner les pistes audio" msgstr "Válasszon hangsávot" #: ../src/interface.c:234 msgid "Audio" msgstr "Hang" #: ../src/interface.c:266 msgid "Selectioner les sous titres" msgstr "Válasszon feliratokat" #: ../src/interface.c:269 msgid "Sous-titres" msgstr "Feliratok" # #: ../src/interface.c:397 msgid "Propriétés" msgstr "Tulajdonságok" #: ../src/interface.c:436 msgid "Périphérique DVD :" msgstr "DVD eszköz:" #: ../src/interface.c:444 msgid "Espace temporaire :" msgstr "Ideiglenes terület:" #: ../src/interface.c:452 msgid "Espace des ISO :" msgstr "ISO fájlok helye:" #: ../src/interface.c:460 msgid "Lecteur multimédia :" msgstr "Multimédia lejátszó:" #: ../src/interface.c:468 msgid "Niveau de trace :" msgstr "Nyomkövetési szint:" #: ../src/interface.c:476 ../src/interface.c:483 msgid "Sélectionner un dossier" msgstr "Válasszon könyvtárat" #: ../src/interface.c:502 msgid "totem" msgstr "" #: ../src/interface.c:517 msgid "/dev/dvd" msgstr "" #: ../src/interface.c:520 msgid "Indications sonores" msgstr "" #: ../src/interface.c:554 msgid "Default" msgstr "" #: ../src/interface.c:555 msgid "Français" msgstr "" #: ../src/interface.c:556 msgid "English" msgstr "" #: ../src/interface.c:557 msgid "Deutsch" msgstr "" #: ../src/interface.c:558 msgid "Greek" msgstr "" #: ../src/interface.c:559 msgid "Estonian" msgstr "" #: ../src/interface.c:560 msgid "Hungarian" msgstr "" #: ../src/interface.c:561 msgid "Dutch" msgstr "" #: ../src/interface.c:562 msgid "Portuguese" msgstr "" #: ../src/interface.c:563 msgid "Czech" msgstr "" #: ../src/interface.c:564 msgid "Spanish" msgstr "" #: ../src/interface.c:565 msgid "Italian" msgstr "" #: ../src/interface.c:567 msgid "Système" msgstr "Rendszer" #: ../src/interface.c:595 msgid "Garder les menus" msgstr "Menükkel" #: ../src/interface.c:602 msgid "Conserver les menus du DVD" msgstr "DVD menük megőrzése" # #: ../src/interface.c:605 msgid "Créer une image ISO" msgstr "ISO képmás létrehozása" # #: ../src/interface.c:612 msgid "Créer une image ISO apres convertion" msgstr "ISO képmás létrehozása" #: ../src/interface.c:615 msgid "Graver le DVD" msgstr "DVD kiírása" #: ../src/interface.c:622 msgid "Graver un DVD apres convertion" msgstr "Konvertálás után DVD írás" # #: ../src/interface.c:624 msgid "Qualité dynamique" msgstr "Dinamikus minőség" #: ../src/interface.c:631 msgid "Convertir avec une qualité d'image dynamique" msgstr "Konvertálás dinamikus képminőséggel" #: ../src/interface.c:641 msgid "Capacité du DVD :" msgstr "DVD kapacitás:" #: ../src/interface.c:649 msgid "Couper le générique" msgstr "Végcím eltávolítása" #: ../src/interface.c:656 msgid "Ne pas conserver le dernier chapitre de la piste vidéo" msgstr "Utolsó fejezet kihagyása" #: ../src/interface.c:659 msgid "Paramètres de création" msgstr "Létrehozás paraméterei" #: ../src/interface.c:812 msgid "Détails" msgstr "Részletek" # #: ../src/interface.c:873 msgid "Choix du fichier ISO" msgstr "Válasszon ISO fájlt" #: ../src/interface.c:926 msgid "Aucun medium détecté" msgstr "Nincs lemez a meghajtóban" #: ../src/interface.c:952 msgid "" "Aucun médium détecté\n" "\n" "Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à " "utiliser. " msgstr "" "Nincs lemez a meghajtóban\n" "\n" "Kérem tegyen be egy videó DVD-t vagy adjon meg ISO képmást." #: ../src/interface.c:965 msgid "Fichier ISO" msgstr "ISO fájl" #: ../src/interface.c:1023 msgid "Première phase terminée" msgstr "Első fázis befejezve" #: ../src/interface.c:1049 msgid "" "Extraction du contenu terminée\n" "\n" "Avant de procéder à la construction d'une image ISO ou une gravure, vous " "pouvez prévisualiser le résultat." msgstr "" "Kicsomagolás befejezve\n" "\n" "Az ISO fájl felépítése vagy kiírása előtt az eredmény megnézhető." # #: ../src/interface.c:1118 msgid "Analyse en cours" msgstr "Analizálás folyamatban." #: ../src/interface.c:1144 msgid "" "Analyse en cours\n" "\n" "Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure." msgstr "" "Analizálás\n" "\n" "Kérem várja meg a DVD struktúra analízisét." #: ../src/interface.c:1193 msgid "Terminé" msgstr "Leállítás" #: ../src/interface.c:1219 msgid "" "Encodage terminé\n" "\n" "La conversion s'est déroulée avec succès." msgstr "" "Átkódolás befejezve\n" "\n" "A konverzió sikeres volt." #. TRANSLATORS: Replace this string with your names, one name per line. #: ../src/interface.c:1271 msgid "translator-credits" msgstr "Zoltán Böszörményi" #: ../src/interface.c:1278 ../src/interface.c:1282 msgid "Dvd95" msgstr "" #: ../src/interface.c:1279 msgid "a GNOME application to convert DVD9 to DVD5" msgstr "GNOME alkalmazás DVD9 DVD5-re konvertálására" #: ../src/interface.c:1280 msgid "" "Dvd95 is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" "Dvd95 is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty\n" "of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n" "See the GNU General Public License for more details.\n" "You should have received a copy of the GNU General Public License\n" "along with Dvd95;\n" "if not, write to the Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" msgstr "" #: ../src/message.c:116 msgid "Alerte" msgstr "Figyelem" #: ../src/message.c:149 msgid "Ok" msgstr "" #: ../src/message.c:161 msgid "Cancel" msgstr "Mégsem" #: ../src/message.c:240 msgid "Informations" msgstr "Információk" #: ../src/message.c:317 #, fuzzy, c-format msgid "Première phase terminée (%d)" msgstr "Első fázis befejezve" #: ../src/support.c:60 ../src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "Nem találom a pixmap fájlt: %s" #: ../src/systools.c:134 #, c-format msgid "%.2f gigas" msgstr "%.2f giga" #: ../src/systools.c:139 #, c-format msgid "%.2f megas" msgstr "%.2f mega" #: ../src/systools.c:143 #, c-format msgid "%.2f kilos" msgstr "%.2f kb" #: ../src/profile.c:46 msgid "4.7 GiO" msgstr "4.7GB" #: ../src/profile.c:62 msgid "8.5 GiO" msgstr "8.5GB" #: ../src/profile.c:78 msgid "AVI 700Mo mp3-128k MPEG4 2Pass" msgstr "" #: ../src/profile.c:94 msgid "AVI 1Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:110 msgid "AVI 1Go mp3-128k X264 1Pass" msgstr "" #: ../src/profile.c:126 msgid "AVI 1.5Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:142 msgid "AVI 2Go AC3 MPEG4 1Pass" msgstr "" #: ../src/profile.c:158 msgid "AVI 2Go AC3 X264 1Pass" msgstr "" #: ../src/profile.c:174 msgid "PSP 300Mo" msgstr "" #: ../src/profile.c:191 msgid "PSP 500Mo" msgstr "" #: ../src/profile.c:208 msgid "AVI 2Go AC3 X264 2Pass High Quality" msgstr "" #: ../src/dvd2avi.c:623 msgid "Détection des bandes noires\n" msgstr "" #: ../src/dvd2avi.c:821 #, c-format msgid "Pas le droit de créer de fichier dans %s !" msgstr "" #: ../src/dvd2avi.c:833 #, fuzzy msgid "Sélectionnez qu'un seule piste audio !" msgstr "Válasszon hangsávot" #: ../src/dvd2avi.c:866 #, fuzzy, c-format msgid "Le fichier %s existe. L'utiliser ?" msgstr "A %s nevű fájl már létezik. Újra készítsem el?" #: ../src/dvd2avi.c:876 #, fuzzy, c-format msgid "Création de %s impossible !" msgstr "Olvasási hiba a %s címben!" #: ../src/dvd2avi.c:982 msgid "Encodage\n" msgstr "" #: ../src/dvd2avi.c:994 #, c-format msgid "Encodage passe %d\n" msgstr "" #: ../src/dvd2avi.c:999 msgid "Continuer en passe 2 ?" msgstr "" #: ../src/dvd2avi.c:1017 msgid "Conserver le fichier vob pour un autre encodage ?" msgstr "" #: ../src/dvd2avi.c:1023 #, fuzzy, c-format msgid "Conserver le fichier %s ?" msgstr "DVD menük megőrzése" #~ msgid "DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULON" #~ msgstr "" #~ "DVD95: DVD 9 DVD 5-re magáncélokra történő másolására J.F. COULON-tól" #~ msgid "Version: %s du %s" #~ msgstr "Verzió: %s / %s" dvd95/po/it.po000066400000000000000000000417521140003301000133720ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: dvd95\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-11-27 21:13+0100\n" "PO-Revision-Date: 2008-05-18 19:16+0100\n" "Last-Translator: Matteo Pettenuzzo \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Italian\n" #: ../src/avancement.c:308 ../src/avancement.c:396 #, c-format msgid "Total %d%% a %.2fx" msgstr "Totale %d%% a %.2fx" #: ../src/avancement.c:319 ../src/avancement.c:386 #, c-format msgid "%d%% (%s restant)" msgstr "%d%% (%s rimanente)" #: ../src/callbacks.c:178 ../src/interface.c:70 ../src/main.c:306 msgid "DVD 9 to 5" msgstr "DVD 9 a 5" #: ../src/callbacks.c:197 ../src/callbacks.c:374 ../src/callbacks.c:458 msgid "Veuillez selectionner une piste video" msgstr "Selezionare la traccia video" #: ../src/callbacks.c:273 ../src/uitools.c:148 msgid "Fichiers ISO" msgstr "File ISO" #: ../src/callbacks.c:378 ../src/callbacks.c:462 msgid "Veuillez selectionner une piste audio" msgstr "Selezionare la traccia audio" #: ../src/callbacks.c:394 msgid "Veuillez lancer un calcul de qualit" msgstr "Inizia la scansione della qualità" #: ../src/callbacks.c:418 msgid "Erreur de conversion ........" msgstr "Errore di conversione ..." #: ../src/dvd2vob.c:462 ../src/dvdbackup.c:1144 ../src/dvd2avi.c:349 #, c-format msgid "Copie de la cellule %d (%d secteurs)\n" msgstr "Copia cellula %d (%d sectors)\n" #: ../src/dvd2vob.c:649 ../src/dvd2vob.c:696 msgid "Fixation de la structure du DVD.\n" msgstr "Fissaggio struttura DVD\n" #: ../src/dvd2vob.c:874 ../src/dvd2vob.c:883 ../src/dvdbackup.c:1378 #: ../src/dvdbackup.c:1386 ../src/dvd2avi.c:808 ../src/dvd2avi.c:815 #, fuzzy, c-format msgid "" "Pas assez de place sur %s\n" "Il manque %s octets !" msgstr "" "Spazio insufficente su %s\n" "Necessitano %s bytes !" #: ../src/dvd2vob.c:907 ../src/dvdbackup.c:1415 ../src/dvd2avi.c:855 #, c-format msgid "Copie de %d cellules.\n" msgstr "Copia %d cellule.\n" #. Create empty filesystem tree #: ../src/dvd2vob.c:909 ../src/dvdbackup.c:1417 ../src/dvd2avi.c:857 msgid "Effacement des anciens fichiers.\n" msgstr "Rimozione vecchi file.\n" #: ../src/dvd2vob.c:914 ../src/dvdbackup.c:1422 #, c-format msgid "Le repertoire %s existe. L'effacer ?" msgstr "La directory %s non esiste !" #: ../src/dvd2vob.c:924 ../src/dvdbackup.c:1432 #, c-format msgid "%s n'est pas un repertoire ! Veuillez l'effacer." msgstr "%s non è una directory ! Rimuovere." #: ../src/dvd2vob.c:965 ../src/dvdbackup.c:1466 msgid "Ajustement automatique de la qualité.\n" msgstr "Settaggio automatico della qualità.\n" #: ../src/dvd2vob.c:992 ../src/dvdbackup.c:1498 #, c-format msgid "Ajustement de qualité à %.2f%%.\n" msgstr "Settaggio qualità a %.2f%%.\n" #: ../src/dvd2vob.c:1017 ../src/dvdbackup.c:1511 #, c-format msgid "" "Fichier VOB trop gros (%s) !\n" "Désirez vous continuer ?" msgstr "" "File VOB troppo grande (%s) !\n" "Volete continuare ?" #: ../src/dvd2vob.c:1043 msgid "Création de la structure du DVD.\n" msgstr "CCreazione della struttura DVD.\n" #: ../src/dvd2vob.c:1089 msgid "Ajout de la table des matières.\n" msgstr "Aggiungi tabella dei contenuti.\n" #: ../src/dvd2vob.c:1125 ../src/dvdbackup.c:1548 #, c-format msgid "Le fichier %s existe. Le re-creer ?" msgstr "Il file %s esiste già. Ricreo ?" #: ../src/dvd2vob.c:1128 ../src/dvdbackup.c:1551 msgid "Construction de l'image ISO.\n" msgstr "Costruzione dell'immagine ISO.\n" #: ../src/dvd2vob.c:1138 ../src/dvdbackup.c:1566 #, c-format msgid "%s n'est pas un fichier ! Veuillez l'effacer." msgstr "%s non è un file. Rimuovere." #: ../src/dvd2vob.c:1145 ../src/dvdbackup.c:1573 msgid "Gravage sur DVD.\n" msgstr "Scrittura DVD.\n" #: ../src/dvd2vob.c:1159 ../src/dvdbackup.c:1587 msgid "Effacement des fichiers.\n" msgstr "Rimuovere i file.\n" #: ../src/dvdbackup.c:171 #, c-format msgid "Copie des menus vob%2d (%d secteurs)\n" msgstr "Copia menù vob%2d (%d sectors)\n" #: ../src/dvdbackup.c:772 #, c-format msgid "Mise à jours du vob %d-%d\n" msgstr "Uaggiornamento vob %d-%d\n" #: ../src/dvdbackup.c:1142 #, c-format msgid "Analyse de la cellule %d (%d secteurs)\n" msgstr "Analisi Cellule %d (%d secttori\n" #: ../src/dvdbackup.c:1559 msgid "Erreur de construction. Effacer les fichiers ?" msgstr "Errore di costruzione. Rimuovere i file ?" #: ../src/dvdbackup.c:1713 #, c-format msgid "Analyse de %d cellules.\n" msgstr "AAnalisi %d cellule.\n" #: ../src/dvdcopy.c:107 msgid "AC3" msgstr "" #: ../src/dvdcopy.c:108 ../src/dvdcopy.c:115 msgid "?" msgstr "" #: ../src/dvdcopy.c:109 msgid "MPEG1" msgstr "" #: ../src/dvdcopy.c:110 msgid "MPEG2" msgstr "" #: ../src/dvdcopy.c:111 msgid "LPCM" msgstr "" #: ../src/dvdcopy.c:112 msgid "SDDS" msgstr "" #: ../src/dvdcopy.c:113 msgid "DTS" msgstr "" #: ../src/dvdcopy.c:133 ../src/dvdcopy.c:156 #, fuzzy msgid "Normal" msgstr "Formato" #: ../src/dvdcopy.c:134 msgid "Impaired" msgstr "" #: ../src/dvdcopy.c:135 msgid "Director's comments" msgstr "" #: ../src/dvdcopy.c:136 msgid "Alternate director's comments" msgstr "" #: ../src/dvdcopy.c:157 #, fuzzy msgid "Large" msgstr "Lingua" #: ../src/dvdcopy.c:158 msgid "Enfants" msgstr "" #: ../src/dvdcopy.c:159 msgid "Reserved" msgstr "" #: ../src/dvdcopy.c:160 msgid "Légende normale" msgstr "" #: ../src/dvdcopy.c:161 msgid "Légende large" msgstr "" #: ../src/dvdcopy.c:162 msgid "Légende enfants" msgstr "" #: ../src/dvdcopy.c:163 ../src/dvdcopy.c:165 ../src/dvdcopy.c:166 #: ../src/dvdcopy.c:167 msgid "reserved" msgstr "" #: ../src/dvdcopy.c:164 #, fuzzy msgid "Forcé" msgstr "Formato" #: ../src/dvdcopy.c:168 msgid "Réalisateur" msgstr "" #: ../src/dvdcopy.c:169 msgid "Réalisateur large" msgstr "" #: ../src/dvdcopy.c:170 msgid "Réalisateur enfants" msgstr "" #: ../src/dvdcopy.c:300 msgid "Lecture de la structure impossible !" msgstr "Lettura della struttura DVD impossibile !" #: ../src/dvdcopy.c:306 #, c-format msgid "Lecture du titre de %s impossible!" msgstr "Error reading title %s!" # #: ../src/dvdcopy.c:344 ../src/dvdcopy.c:1007 ../src/dvdcopy.c:1193 msgid "Piste" msgstr "Pista" #: ../src/dvdcopy.c:356 msgid "Durée" msgstr "Durata" #: ../src/dvdcopy.c:368 msgid "Chapitres" msgstr "Capitoli" #: ../src/dvdcopy.c:380 msgid "Langues" msgstr "Lingua" # #: ../src/dvdcopy.c:392 msgid "Sous-titres" msgstr "Sottotitoli" #: ../src/dvdcopy.c:404 ../src/dvdcopy.c:1027 msgid "Format" msgstr "Formato" #: ../src/dvdcopy.c:488 ../src/dvdcopy.c:495 ../src/dvdcopy.c:501 #: ../src/dvdcopy.c:1082 ../src/dvdcopy.c:1094 ../src/dvdcopy.c:1241 #, c-format msgid "%d" msgstr "%d" #: ../src/dvdcopy.c:498 ../src/dvdcopy.c:504 ../src/dvdcopy.c:1085 #: ../src/dvdcopy.c:1244 #, c-format msgid "%s" msgstr "%s" #: ../src/dvdcopy.c:1017 ../src/dvdcopy.c:1203 ../src/interface.c:540 msgid "Langue" msgstr "Lingua" #: ../src/dvdcopy.c:1038 msgid "Extension" msgstr "" #: ../src/dvdcopy.c:1049 msgid "Canaux" msgstr "Canali" #: ../src/dvdcopy.c:1213 msgid "Ext" msgstr "Uscita" #: ../src/dvdinfo.c:205 msgid "Inconnu" msgstr "Sconosciuto" #: ../src/dvdtools.c:365 msgid "Erreur de lecture ! Ignorer les erreurs ?" msgstr "Errore di Lettura! Ignorare gli errori?" #: ../src/gconfig.c:466 #, fuzzy msgid "Les répertoires temporaire et iso doivent être différents !" msgstr "" "La directory temporanea e la directory ISO non possono essere le stesse!" #: ../src/gconfig.c:470 msgid "mkisofs manquant !" msgstr "mkisofs non trovato!" #: ../src/gconfig.c:474 ../src/gconfig.c:482 #, fuzzy, c-format msgid "Le répertoire %s n'existe pas !" msgstr "Directory %s non esiste!" #: ../src/gconfig.c:478 ../src/gconfig.c:486 #, c-format msgid "Pas d'accès en écriture au répertoire %s !" msgstr "" #: ../src/gconfig.c:491 #, c-format msgid "Le fichier %s n'existe pas !" msgstr "File %s non esiste!" # #: ../src/interface.c:95 msgid "Ecran des propiétés" msgstr "Proprietà" #: ../src/interface.c:102 msgid "Lecture du DVD" msgstr "Play DVD" #: ../src/interface.c:106 msgid "Évaluer" msgstr "Controlla" #: ../src/interface.c:110 msgid "Calculer la qualité au mieux" msgstr "Calcola la qualità migliore" #: ../src/interface.c:116 msgid "Convertir le DVD" msgstr "Converti DVD" # #: ../src/interface.c:152 msgid "Nom du DVD et du fichier ISO" msgstr "Nome del DVD e nome del file ISO" #: ../src/interface.c:155 msgid "Évaluation de qualité :" msgstr "Controllo qualità:" #: ../src/interface.c:163 msgid "Titre du film :" msgstr "Titolo DVD:" #: ../src/interface.c:196 msgid "Selectionner la piste a convertir" msgstr "Seleziona la traccia da convertire" #: ../src/interface.c:199 msgid "Vidéo" msgstr "Video" #: ../src/interface.c:231 msgid "Selectioner les pistes audio" msgstr "Seleziona la traccia audio" #: ../src/interface.c:234 msgid "Audio" msgstr "Audio" #: ../src/interface.c:266 msgid "Selectioner les sous titres" msgstr "Selezionare i DVD" #: ../src/interface.c:269 msgid "Sous-titres" msgstr "Sottotitoli" # #: ../src/interface.c:397 msgid "Propriétés" msgstr "Proprietà" #: ../src/interface.c:436 msgid "Périphérique DVD :" msgstr "Periferica DVD:" #: ../src/interface.c:444 msgid "Espace temporaire :" msgstr "Spazio temporaneo:" #: ../src/interface.c:452 msgid "Espace des ISO :" msgstr "Spazio di ISO:" #: ../src/interface.c:460 msgid "Lecteur multimédia :" msgstr "Player multimediale:" #: ../src/interface.c:468 msgid "Niveau de trace :" msgstr "Livello traccie:" #: ../src/interface.c:476 ../src/interface.c:483 msgid "Sélectionner un dossier" msgstr "Selezionare la directory" #: ../src/interface.c:502 msgid "totem" msgstr "totem" #: ../src/interface.c:517 msgid "/dev/dvd" msgstr "/dev/dvd" #: ../src/interface.c:520 msgid "Indications sonores" msgstr "" #: ../src/interface.c:554 msgid "Default" msgstr "" #: ../src/interface.c:555 msgid "Français" msgstr "" #: ../src/interface.c:556 msgid "English" msgstr "" #: ../src/interface.c:557 msgid "Deutsch" msgstr "" #: ../src/interface.c:558 msgid "Greek" msgstr "" #: ../src/interface.c:559 msgid "Estonian" msgstr "" #: ../src/interface.c:560 msgid "Hungarian" msgstr "" #: ../src/interface.c:561 msgid "Dutch" msgstr "" #: ../src/interface.c:562 msgid "Portuguese" msgstr "" #: ../src/interface.c:563 msgid "Czech" msgstr "" #: ../src/interface.c:564 msgid "Spanish" msgstr "" #: ../src/interface.c:565 msgid "Italian" msgstr "" #: ../src/interface.c:567 msgid "Système" msgstr "Sistema" #: ../src/interface.c:595 msgid "Garder les menus" msgstr "Conservare il menù" #: ../src/interface.c:602 msgid "Conserver les menus du DVD" msgstr "Conservare il menù del DVD" # #: ../src/interface.c:605 msgid "Créer une image ISO" msgstr "Creare un file ISO" # #: ../src/interface.c:612 msgid "Créer une image ISO apres convertion" msgstr "Creare un file iso dopo la conversione" #: ../src/interface.c:615 msgid "Graver le DVD" msgstr "Scrivi DVD" #: ../src/interface.c:622 msgid "Graver un DVD apres convertion" msgstr "Masterizza dopo la conversione" # #: ../src/interface.c:624 msgid "Qualité dynamique" msgstr "Qualità dinamica" #: ../src/interface.c:631 msgid "Convertir avec une qualité d'image dynamique" msgstr "Converti con qualità dinamica" #: ../src/interface.c:641 msgid "Capacité du DVD :" msgstr "Capacità del DVD" #: ../src/interface.c:649 msgid "Couper le générique" msgstr "Rimuovi i titoli di coda" #: ../src/interface.c:656 msgid "Ne pas conserver le dernier chapitre de la piste vidéo" msgstr "Rimuovi l'ultimo capitolo" #: ../src/interface.c:659 msgid "Paramètres de création" msgstr "Parametri di creazione" #: ../src/interface.c:812 msgid "Détails" msgstr "Dettagli" # #: ../src/interface.c:873 msgid "Choix du fichier ISO" msgstr "Scegli il file ISO" #: ../src/interface.c:926 msgid "Aucun medium détecté" msgstr "Nessun media trovato" #: ../src/interface.c:952 msgid "" "Aucun médium détecté\n" "\n" "Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à " "utiliser. " msgstr "" "Nessun media trovato\n" "\n" "Inserisci un vidio DVD oppure specifica un file ISO da usare." #: ../src/interface.c:965 msgid "Fichier ISO" msgstr "File ISO" #: ../src/interface.c:1023 msgid "Première phase terminée" msgstr "Prima fase ultimata" #: ../src/interface.c:1049 msgid "" "Extraction du contenu terminée\n" "\n" "Avant de procéder à la construction d'une image ISO ou une gravure, vous " "pouvez prévisualiser le résultat." msgstr "" "Estrazione terminata\n" "\n" "Prima della realizzazione del file ISO è possibile visionare il risultato." # #: ../src/interface.c:1118 msgid "Analyse en cours" msgstr "Analisi in corso." #: ../src/interface.c:1144 msgid "" "Analyse en cours\n" "\n" "Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure." msgstr "" "Analisi in corso\n" "\n" "Attendere mentre viene analizzata la struttura del DVD." #: ../src/interface.c:1193 msgid "Terminé" msgstr "Finito" #: ../src/interface.c:1219 msgid "" "Encodage terminé\n" "\n" "La conversion s'est déroulée avec succès." msgstr "" "Codifica terminata\n" "\n" "Codifica terminata con successo." #. TRANSLATORS: Replace this string with your names, one name per line. #: ../src/interface.c:1271 msgid "translator-credits" msgstr "translator-credits" #: ../src/interface.c:1278 ../src/interface.c:1282 msgid "Dvd95" msgstr "Dvd95" #: ../src/interface.c:1279 msgid "a GNOME application to convert DVD9 to DVD5" msgstr "a GNOME application to convert DVD9 to DVD5" #: ../src/interface.c:1280 msgid "" "Dvd95 is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" "Dvd95 is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty\n" "of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n" "See the GNU General Public License for more details.\n" "You should have received a copy of the GNU General Public License\n" "along with Dvd95;\n" "if not, write to the Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" msgstr "" #: ../src/message.c:116 msgid "Alerte" msgstr "Attenzione" #: ../src/message.c:149 msgid "Ok" msgstr "OK" #: ../src/message.c:161 msgid "Cancel" msgstr "Cancella" #: ../src/message.c:240 msgid "Informations" msgstr "Informazioni" #: ../src/message.c:317 #, fuzzy, c-format msgid "Première phase terminée (%d)" msgstr "Prima fase ultimata" #: ../src/support.c:60 ../src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "Pixmap file non trovato: %s" #: ../src/systools.c:134 #, c-format msgid "%.2f gigas" msgstr "%.2f Gb" #: ../src/systools.c:139 #, c-format msgid "%.2f megas" msgstr "%.2f Mb" #: ../src/systools.c:143 #, c-format msgid "%.2f kilos" msgstr "%.2f Kb" #: ../src/profile.c:46 msgid "4.7 GiO" msgstr "4.7 Gb" #: ../src/profile.c:62 msgid "8.5 GiO" msgstr "8.5 Gb" #: ../src/profile.c:78 msgid "AVI 700Mo mp3-128k MPEG4 2Pass" msgstr "" #: ../src/profile.c:94 msgid "AVI 1Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:110 msgid "AVI 1Go mp3-128k X264 1Pass" msgstr "" #: ../src/profile.c:126 msgid "AVI 1.5Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:142 msgid "AVI 2Go AC3 MPEG4 1Pass" msgstr "" #: ../src/profile.c:158 msgid "AVI 2Go AC3 X264 1Pass" msgstr "" #: ../src/profile.c:174 msgid "PSP 300Mo" msgstr "" #: ../src/profile.c:191 msgid "PSP 500Mo" msgstr "" #: ../src/profile.c:208 msgid "AVI 2Go AC3 X264 2Pass High Quality" msgstr "" #: ../src/dvd2avi.c:623 msgid "Détection des bandes noires\n" msgstr "" #: ../src/dvd2avi.c:821 #, c-format msgid "Pas le droit de créer de fichier dans %s !" msgstr "" #: ../src/dvd2avi.c:833 #, fuzzy msgid "Sélectionnez qu'un seule piste audio !" msgstr "Seleziona la traccia audio" #: ../src/dvd2avi.c:866 #, fuzzy, c-format msgid "Le fichier %s existe. L'utiliser ?" msgstr "Il file %s esiste già. Ricreo ?" #: ../src/dvd2avi.c:876 #, fuzzy, c-format msgid "Création de %s impossible !" msgstr "Error reading title %s!" #: ../src/dvd2avi.c:982 msgid "Encodage\n" msgstr "" #: ../src/dvd2avi.c:994 #, c-format msgid "Encodage passe %d\n" msgstr "" #: ../src/dvd2avi.c:999 msgid "Continuer en passe 2 ?" msgstr "" #: ../src/dvd2avi.c:1017 msgid "Conserver le fichier vob pour un autre encodage ?" msgstr "" #: ../src/dvd2avi.c:1023 #, fuzzy, c-format msgid "Conserver le fichier %s ?" msgstr "Conservare il menù del DVD" #~ msgid "DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULON" #~ msgstr "DVD95: Copie private da DVD 9 a DVD 5 by J.F. COULON" #~ msgid "Version: %s du %s" #~ msgstr "Versione: %s of %s" #~ msgid "Total %d%% (%s restant)" #~ msgstr "Total %d%% (%s remain)" #~ msgid "AUCUN" #~ msgstr "NONE" dvd95/po/nl.mo000066400000000000000000000230461140003301000133600ustar00rootroot00000000000000q,    - 0 ! * 2 o: Q0 $ 1 Q d t ! ' "   ' 7 H _ }      - $5%L%r"% *85nu{!&H.b) 6 E!Rt{  #$0Uu$"<7;s1 ,I!e #%%4+Z` 6@IRUi$l"JkGw D Qr #! BQf )$>$^" C Xbh  !'!)?!i!%!!!! !+! ""6" >"H" Z"g"~" """&""'"##3# R#_#?|### ##$5$R$X$ p$~$$$$"$ $$% %%%;% M%n%%5%%%%& &S6lI*VPX?2-.=J` [j:m4#(<UOWGd\hB_aF"^;>5)8oM$Cp,b Tf'L+]ZR! / g1N%iAe0H3k &7cEnqK Y@9DQ%.2f gigas%.2f kilos%.2f megas%d%d%% (%s restant)%s%s n'est pas un fichier ! Veuillez l'effacer.%s n'est pas un repertoire ! Veuillez l'effacer./dev/dvd4.7 GiO8.5 GiOAnalyse en cours Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure.Aucun médium détecté Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à utiliser. Encodage terminé La conversion s'est déroulée avec succès.Extraction du contenu terminée Avant de procéder à la construction d'une image ISO ou une gravure, vous pouvez prévisualiser le résultat.AudioParamètres de créationSous-titresSystèmeVidéoAjout de la table des matières. Ajustement automatique de la qualité. Ajustement de qualité à %.2f%%. AlerteAnalyse de %d cellules. Analyse de la cellule %d (%d secteurs) Analyse en coursAucun medium détectéCalculer la qualité au mieuxCanauxCancelCapacité du DVD :ChapitresChoix du fichier ISOConserver les menus du DVDConstruction de l'image ISO. Convertir avec une qualité d'image dynamiqueConvertir le DVDCopie de %d cellules. Copie de la cellule %d (%d secteurs) Copie des menus vob%2d (%d secteurs) Couldn't find pixmap file: %sCouper le génériqueCréation de la structure du DVD. Créer une image ISOCréer une image ISO apres convertionDVD 9 to 5DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULONDuréeDvd95Dvd95 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Dvd95 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Dvd95; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 2111-1307 USA DétailsEcran des propiétésEffacement des anciens fichiers. Effacement des fichiers. Erreur de construction. Effacer les fichiers ?Erreur de conversion ........Erreur de lecture ! Ignorer les erreurs ?Espace des ISO :Espace temporaire :ExtFichier ISOFichier VOB trop gros (%s) ! Désirez vous continuer ?Fichiers ISOFixation de la structure du DVD. FormatGarder les menusGravage sur DVD. Graver le DVDGraver un DVD apres convertionInconnuInformationsLangueLanguesLe fichier %s existe. Le re-creer ?Le fichier %s n'existe pas !Le repertoire %s existe. L'effacer ?Le repertoire %s n'existe pas !Lecteur multimédia :Lecture de la structure impossible !Lecture du DVDLecture du titre de %s impossible!Les repertoires temporaire et iso doivent etre differents !Mise à jours du vob %d-%d Ne pas conserver le dernier chapitre de la piste vidéoNiveau de trace :Nom du DVD et du fichier ISOOkPas assez de place sur %s Il manque %lld octets !PistePremière phase terminéePropriétésPériphérique DVD :Qualité dynamiqueSelectioner les pistes audioSelectioner les sous titresSelectionner la piste a convertirSous-titresSélectionner un dossierTerminéTitre du film :Total %d%% a %.2fxVersion: %s du %sVeuillez lancer un calcul de qualitVeuillez selectionner une piste audioVeuillez selectionner une piste videoa GNOME application to convert DVD9 to DVD5mkisofs manquant !totemtranslator-creditsÉvaluation de qualité :ÉvaluerProject-Id-Version: dvd95 Report-Msgid-Bugs-To: POT-Creation-Date: 2007-02-13 21:08+0100 PO-Revision-Date: 2007-10-01 20:54+0100 Last-Translator: jf.coulon Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Dutch X-Poedit-Country: NETHERLANDS %.2f giga%.2f kbs%.2f meg%d%d%% (%s resterend)%s%s is geen bestand ! Verwijder aub.%s is geen folder ! Verwijder aub./dev/dvd4.7 GiO8.5 GiOAnalyse bezig Wacht op de analyse van de DVD structuur.Geen medium gevonden Plaats een video DVD, of selecteer een te converteren ISO bestand. Encoderen is beeindigd Conversie succesvol afgerond.Extractie beeindigd Voordat de ISO geschreven of gebrand wordt, kunt u eerst het resultaat bekijken.AudioParameters voor conversieOndertitelsSysteemVideoInhoudsiopgave toevoegen. Automatische kwaliteit instelling. Kwaliteit instellen op %.2f%%. OpgeletAnalyse van %d cellen. Analyse van cel %d (%d sectoren) Analyse bezig.Geen medium gevondenBerekenen van beste kwaliteitKanalenAnnuleerDVD capaciteit:HoofdstukkenKies ISO bestandBewaar DVD menusISO bestand opslaan. Converteer met dynamische beeld kwaliteitDVD converterenCopieren van %d cellen. Copie van cel %d (%d sectoren) Menus vob%2d (%d sectoren) kopieren Kan pixmap bestand: %s niet vindenVerwijder credits aan eindeDVD structuur maken. Maak ISO bestandMaak ISO bestand na conversieDVD 9 naar 5DVD95: prive copieren van DVD 9 naar DVD 5 gemaakt door J.F. COULONtijdsduurDvd95Dvd95 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Dvd95 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Dvd95; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 2111-1307 USA DetailseigenschappenOude bestanden verwijderen. Bestanden verwijderen. Fout bij creeren. Bestanden verwijderen ?Conversie fout ........Lees fout ! Negeren van lees fouten ?ISO bestands opslag :Tijdelijke opslag:ExtISO bestandVOB bestand te groot (%s) ! Toch doorgaan ?ISO bestandenHerstel van DVD structuur. FormaatMet menusBranden van DVD. Brand de DVDBrand DVD na conversieOnbekendInformatieTaalTalenBestand %s bestaat al. Overschrijven ?Bestand %s bestaat niet !folder %s bestaat niet ! Folder maken ?Folder %s bestaat niet !Multimedia speler :Fout bij lezen DVD structuur !Afspelen DVDFout bij lezen van titel %s!TDe tijdelijke folder en de Iso folder mogen niet gelijk zijn !Bijwerken vob %d-%d Laatste hoofdstuk overslaanTrace niveau:DVD naam en ISO bestands naamOkNiet voldoende ruimte op %s %lld meer bytes benodigd!TrackEerste stadium afgerondEigenschappenDVD apparaat :Dynamische kwaliteitSelecteer audio tracksSelecteer ondertitelsSelecteer een track voor conversieOndertitelsSelecteer een folderKlaarDVD titel :Totaal %d%% aan %.2fxVersie: %s van %sStart aub een kwaliteits analyseSelecteer aub een audio trackSelecteer aub een video trackEen GNOME applicatie om DVD9 te converteren naar DVD5mkisofs mist !totemVertaler-creditsBerekenen kwaliteit :Evaluerendvd95/po/nl.po000066400000000000000000000431541140003301000133650ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: dvd95\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-11-27 21:13+0100\n" "PO-Revision-Date: 2007-10-01 20:54+0100\n" "Last-Translator: jf.coulon \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Dutch\n" "X-Poedit-Country: NETHERLANDS\n" #: ../src/avancement.c:308 ../src/avancement.c:396 #, c-format msgid "Total %d%% a %.2fx" msgstr "Totaal %d%% aan %.2fx" #: ../src/avancement.c:319 ../src/avancement.c:386 #, c-format msgid "%d%% (%s restant)" msgstr "%d%% (%s resterend)" #: ../src/callbacks.c:178 ../src/interface.c:70 ../src/main.c:306 msgid "DVD 9 to 5" msgstr "DVD 9 naar 5" #: ../src/callbacks.c:197 ../src/callbacks.c:374 ../src/callbacks.c:458 msgid "Veuillez selectionner une piste video" msgstr "Selecteer aub een video track" #: ../src/callbacks.c:273 ../src/uitools.c:148 msgid "Fichiers ISO" msgstr "ISO bestanden" #: ../src/callbacks.c:378 ../src/callbacks.c:462 msgid "Veuillez selectionner une piste audio" msgstr "Selecteer aub een audio track" #: ../src/callbacks.c:394 msgid "Veuillez lancer un calcul de qualit" msgstr "Start aub een kwaliteits analyse" #: ../src/callbacks.c:418 msgid "Erreur de conversion ........" msgstr "Conversie fout ........" #: ../src/dvd2vob.c:462 ../src/dvdbackup.c:1144 ../src/dvd2avi.c:349 #, c-format msgid "Copie de la cellule %d (%d secteurs)\n" msgstr "Copie van cel %d (%d sectoren)\n" #: ../src/dvd2vob.c:649 ../src/dvd2vob.c:696 msgid "Fixation de la structure du DVD.\n" msgstr "Herstel van DVD structuur.\n" #: ../src/dvd2vob.c:874 ../src/dvd2vob.c:883 ../src/dvdbackup.c:1378 #: ../src/dvdbackup.c:1386 ../src/dvd2avi.c:808 ../src/dvd2avi.c:815 #, fuzzy, c-format msgid "" "Pas assez de place sur %s\n" "Il manque %s octets !" msgstr "" "Niet voldoende ruimte op %s\n" "%s meer bytes benodigd!" #: ../src/dvd2vob.c:907 ../src/dvdbackup.c:1415 ../src/dvd2avi.c:855 #, c-format msgid "Copie de %d cellules.\n" msgstr "Copieren van %d cellen.\n" #. Create empty filesystem tree #: ../src/dvd2vob.c:909 ../src/dvdbackup.c:1417 ../src/dvd2avi.c:857 msgid "Effacement des anciens fichiers.\n" msgstr "Oude bestanden verwijderen.\n" #: ../src/dvd2vob.c:914 ../src/dvdbackup.c:1422 #, c-format msgid "Le repertoire %s existe. L'effacer ?" msgstr "folder %s bestaat niet ! Folder maken ?" #: ../src/dvd2vob.c:924 ../src/dvdbackup.c:1432 #, c-format msgid "%s n'est pas un repertoire ! Veuillez l'effacer." msgstr "%s is geen folder ! Verwijder aub." #: ../src/dvd2vob.c:965 ../src/dvdbackup.c:1466 msgid "Ajustement automatique de la qualité.\n" msgstr "Automatische kwaliteit instelling.\n" #: ../src/dvd2vob.c:992 ../src/dvdbackup.c:1498 #, c-format msgid "Ajustement de qualité à %.2f%%.\n" msgstr "Kwaliteit instellen op %.2f%%.\n" #: ../src/dvd2vob.c:1017 ../src/dvdbackup.c:1511 #, c-format msgid "" "Fichier VOB trop gros (%s) !\n" "Désirez vous continuer ?" msgstr "" "VOB bestand te groot (%s) !\n" "Toch doorgaan ?" #: ../src/dvd2vob.c:1043 msgid "Création de la structure du DVD.\n" msgstr "DVD structuur maken.\n" #: ../src/dvd2vob.c:1089 msgid "Ajout de la table des matières.\n" msgstr "Inhoudsiopgave toevoegen.\n" #: ../src/dvd2vob.c:1125 ../src/dvdbackup.c:1548 #, c-format msgid "Le fichier %s existe. Le re-creer ?" msgstr "Bestand %s bestaat al. Overschrijven ?" #: ../src/dvd2vob.c:1128 ../src/dvdbackup.c:1551 msgid "Construction de l'image ISO.\n" msgstr "ISO bestand opslaan.\n" #: ../src/dvd2vob.c:1138 ../src/dvdbackup.c:1566 #, c-format msgid "%s n'est pas un fichier ! Veuillez l'effacer." msgstr "%s is geen bestand ! Verwijder aub." #: ../src/dvd2vob.c:1145 ../src/dvdbackup.c:1573 msgid "Gravage sur DVD.\n" msgstr "Branden van DVD.\n" #: ../src/dvd2vob.c:1159 ../src/dvdbackup.c:1587 msgid "Effacement des fichiers.\n" msgstr "Bestanden verwijderen.\n" #: ../src/dvdbackup.c:171 #, c-format msgid "Copie des menus vob%2d (%d secteurs)\n" msgstr "Menus vob%2d (%d sectoren) kopieren\n" #: ../src/dvdbackup.c:772 #, c-format msgid "Mise à jours du vob %d-%d\n" msgstr "Bijwerken vob %d-%d\n" #: ../src/dvdbackup.c:1142 #, c-format msgid "Analyse de la cellule %d (%d secteurs)\n" msgstr "Analyse van cel %d (%d sectoren)\n" #: ../src/dvdbackup.c:1559 msgid "Erreur de construction. Effacer les fichiers ?" msgstr "Fout bij creeren. Bestanden verwijderen ?" #: ../src/dvdbackup.c:1713 #, c-format msgid "Analyse de %d cellules.\n" msgstr "Analyse van %d cellen.\n" #: ../src/dvdcopy.c:107 msgid "AC3" msgstr "" #: ../src/dvdcopy.c:108 ../src/dvdcopy.c:115 msgid "?" msgstr "" #: ../src/dvdcopy.c:109 msgid "MPEG1" msgstr "" #: ../src/dvdcopy.c:110 msgid "MPEG2" msgstr "" #: ../src/dvdcopy.c:111 msgid "LPCM" msgstr "" #: ../src/dvdcopy.c:112 msgid "SDDS" msgstr "" #: ../src/dvdcopy.c:113 msgid "DTS" msgstr "" #: ../src/dvdcopy.c:133 ../src/dvdcopy.c:156 #, fuzzy msgid "Normal" msgstr "Formaat" #: ../src/dvdcopy.c:134 msgid "Impaired" msgstr "" #: ../src/dvdcopy.c:135 msgid "Director's comments" msgstr "" #: ../src/dvdcopy.c:136 msgid "Alternate director's comments" msgstr "" #: ../src/dvdcopy.c:157 #, fuzzy msgid "Large" msgstr "Taal" #: ../src/dvdcopy.c:158 msgid "Enfants" msgstr "" #: ../src/dvdcopy.c:159 msgid "Reserved" msgstr "" #: ../src/dvdcopy.c:160 msgid "Légende normale" msgstr "" #: ../src/dvdcopy.c:161 msgid "Légende large" msgstr "" #: ../src/dvdcopy.c:162 msgid "Légende enfants" msgstr "" #: ../src/dvdcopy.c:163 ../src/dvdcopy.c:165 ../src/dvdcopy.c:166 #: ../src/dvdcopy.c:167 msgid "reserved" msgstr "" #: ../src/dvdcopy.c:164 #, fuzzy msgid "Forcé" msgstr "Formaat" #: ../src/dvdcopy.c:168 msgid "Réalisateur" msgstr "" #: ../src/dvdcopy.c:169 msgid "Réalisateur large" msgstr "" #: ../src/dvdcopy.c:170 msgid "Réalisateur enfants" msgstr "" #: ../src/dvdcopy.c:300 msgid "Lecture de la structure impossible !" msgstr "Fout bij lezen DVD structuur !" #: ../src/dvdcopy.c:306 #, c-format msgid "Lecture du titre de %s impossible!" msgstr "Fout bij lezen van titel %s!" # #: ../src/dvdcopy.c:344 ../src/dvdcopy.c:1007 ../src/dvdcopy.c:1193 msgid "Piste" msgstr "Track" #: ../src/dvdcopy.c:356 msgid "Durée" msgstr "tijdsduur" #: ../src/dvdcopy.c:368 msgid "Chapitres" msgstr "Hoofdstukken" #: ../src/dvdcopy.c:380 msgid "Langues" msgstr "Talen" # #: ../src/dvdcopy.c:392 msgid "Sous-titres" msgstr "Ondertitels" #: ../src/dvdcopy.c:404 ../src/dvdcopy.c:1027 msgid "Format" msgstr "Formaat" #: ../src/dvdcopy.c:488 ../src/dvdcopy.c:495 ../src/dvdcopy.c:501 #: ../src/dvdcopy.c:1082 ../src/dvdcopy.c:1094 ../src/dvdcopy.c:1241 #, c-format msgid "%d" msgstr "%d" #: ../src/dvdcopy.c:498 ../src/dvdcopy.c:504 ../src/dvdcopy.c:1085 #: ../src/dvdcopy.c:1244 #, c-format msgid "%s" msgstr "%s" #: ../src/dvdcopy.c:1017 ../src/dvdcopy.c:1203 ../src/interface.c:540 msgid "Langue" msgstr "Taal" #: ../src/dvdcopy.c:1038 msgid "Extension" msgstr "" #: ../src/dvdcopy.c:1049 msgid "Canaux" msgstr "Kanalen" #: ../src/dvdcopy.c:1213 msgid "Ext" msgstr "Ext" #: ../src/dvdinfo.c:205 msgid "Inconnu" msgstr "Onbekend" #: ../src/dvdtools.c:365 msgid "Erreur de lecture ! Ignorer les erreurs ?" msgstr "Lees fout ! Negeren van lees fouten ?" #: ../src/gconfig.c:466 #, fuzzy msgid "Les répertoires temporaire et iso doivent être différents !" msgstr "TDe tijdelijke folder en de Iso folder mogen niet gelijk zijn !" #: ../src/gconfig.c:470 msgid "mkisofs manquant !" msgstr "mkisofs mist !" #: ../src/gconfig.c:474 ../src/gconfig.c:482 #, fuzzy, c-format msgid "Le répertoire %s n'existe pas !" msgstr "Folder %s bestaat niet !" #: ../src/gconfig.c:478 ../src/gconfig.c:486 #, c-format msgid "Pas d'accès en écriture au répertoire %s !" msgstr "" #: ../src/gconfig.c:491 #, c-format msgid "Le fichier %s n'existe pas !" msgstr "Bestand %s bestaat niet !" # #: ../src/interface.c:95 msgid "Ecran des propiétés" msgstr "eigenschappen" #: ../src/interface.c:102 msgid "Lecture du DVD" msgstr "Afspelen DVD" #: ../src/interface.c:106 msgid "Évaluer" msgstr "Evalueren" #: ../src/interface.c:110 msgid "Calculer la qualité au mieux" msgstr "Berekenen van beste kwaliteit" #: ../src/interface.c:116 msgid "Convertir le DVD" msgstr "DVD converteren" # #: ../src/interface.c:152 msgid "Nom du DVD et du fichier ISO" msgstr "DVD naam en ISO bestands naam" #: ../src/interface.c:155 msgid "Évaluation de qualité :" msgstr "Berekenen kwaliteit :" #: ../src/interface.c:163 msgid "Titre du film :" msgstr "DVD titel :" #: ../src/interface.c:196 msgid "Selectionner la piste a convertir" msgstr "Selecteer een track voor conversie" #: ../src/interface.c:199 msgid "Vidéo" msgstr "Video" #: ../src/interface.c:231 msgid "Selectioner les pistes audio" msgstr "Selecteer audio tracks" #: ../src/interface.c:234 msgid "Audio" msgstr "Audio" #: ../src/interface.c:266 msgid "Selectioner les sous titres" msgstr "Selecteer ondertitels" #: ../src/interface.c:269 msgid "Sous-titres" msgstr "Ondertitels" # #: ../src/interface.c:397 msgid "Propriétés" msgstr "Eigenschappen" #: ../src/interface.c:436 msgid "Périphérique DVD :" msgstr "DVD apparaat :" #: ../src/interface.c:444 msgid "Espace temporaire :" msgstr "Tijdelijke opslag:" #: ../src/interface.c:452 msgid "Espace des ISO :" msgstr "ISO bestands opslag :" #: ../src/interface.c:460 msgid "Lecteur multimédia :" msgstr "Multimedia speler :" #: ../src/interface.c:468 msgid "Niveau de trace :" msgstr "Trace niveau:" #: ../src/interface.c:476 ../src/interface.c:483 msgid "Sélectionner un dossier" msgstr "Selecteer een folder" #: ../src/interface.c:502 msgid "totem" msgstr "totem" #: ../src/interface.c:517 msgid "/dev/dvd" msgstr "/dev/dvd" #: ../src/interface.c:520 msgid "Indications sonores" msgstr "" #: ../src/interface.c:554 msgid "Default" msgstr "" #: ../src/interface.c:555 msgid "Français" msgstr "" #: ../src/interface.c:556 msgid "English" msgstr "" #: ../src/interface.c:557 msgid "Deutsch" msgstr "" #: ../src/interface.c:558 msgid "Greek" msgstr "" #: ../src/interface.c:559 msgid "Estonian" msgstr "" #: ../src/interface.c:560 msgid "Hungarian" msgstr "" #: ../src/interface.c:561 msgid "Dutch" msgstr "" #: ../src/interface.c:562 msgid "Portuguese" msgstr "" #: ../src/interface.c:563 msgid "Czech" msgstr "" #: ../src/interface.c:564 msgid "Spanish" msgstr "" #: ../src/interface.c:565 msgid "Italian" msgstr "" #: ../src/interface.c:567 msgid "Système" msgstr "Systeem" #: ../src/interface.c:595 msgid "Garder les menus" msgstr "Met menus" #: ../src/interface.c:602 msgid "Conserver les menus du DVD" msgstr "Bewaar DVD menus" # #: ../src/interface.c:605 msgid "Créer une image ISO" msgstr "Maak ISO bestand" # #: ../src/interface.c:612 msgid "Créer une image ISO apres convertion" msgstr "Maak ISO bestand na conversie" #: ../src/interface.c:615 msgid "Graver le DVD" msgstr "Brand de DVD" #: ../src/interface.c:622 msgid "Graver un DVD apres convertion" msgstr "Brand DVD na conversie" # #: ../src/interface.c:624 msgid "Qualité dynamique" msgstr "Dynamische kwaliteit" #: ../src/interface.c:631 msgid "Convertir avec une qualité d'image dynamique" msgstr "Converteer met dynamische beeld kwaliteit" #: ../src/interface.c:641 msgid "Capacité du DVD :" msgstr "DVD capaciteit:" #: ../src/interface.c:649 msgid "Couper le générique" msgstr "Verwijder credits aan einde" #: ../src/interface.c:656 msgid "Ne pas conserver le dernier chapitre de la piste vidéo" msgstr "Laatste hoofdstuk overslaan" #: ../src/interface.c:659 msgid "Paramètres de création" msgstr "Parameters voor conversie" #: ../src/interface.c:812 msgid "Détails" msgstr "Details" # #: ../src/interface.c:873 msgid "Choix du fichier ISO" msgstr "Kies ISO bestand" #: ../src/interface.c:926 msgid "Aucun medium détecté" msgstr "Geen medium gevonden" #: ../src/interface.c:952 msgid "" "Aucun médium détecté\n" "\n" "Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à " "utiliser. " msgstr "" "Geen medium gevonden\n" "\n" "Plaats een video DVD, of selecteer een te converteren ISO bestand. " #: ../src/interface.c:965 msgid "Fichier ISO" msgstr "ISO bestand" #: ../src/interface.c:1023 msgid "Première phase terminée" msgstr "Eerste stadium afgerond" #: ../src/interface.c:1049 msgid "" "Extraction du contenu terminée\n" "\n" "Avant de procéder à la construction d'une image ISO ou une gravure, vous " "pouvez prévisualiser le résultat." msgstr "" "Extractie beeindigd\n" "\n" "Voordat de ISO geschreven of gebrand wordt, kunt u eerst het resultaat " "bekijken." # #: ../src/interface.c:1118 msgid "Analyse en cours" msgstr "Analyse bezig." #: ../src/interface.c:1144 msgid "" "Analyse en cours\n" "\n" "Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure." msgstr "" "Analyse bezig\n" "\n" "Wacht op de analyse van de DVD structuur." #: ../src/interface.c:1193 msgid "Terminé" msgstr "Klaar" #: ../src/interface.c:1219 msgid "" "Encodage terminé\n" "\n" "La conversion s'est déroulée avec succès." msgstr "" "Encoderen is beeindigd\n" "\n" "Conversie succesvol afgerond." #. TRANSLATORS: Replace this string with your names, one name per line. #: ../src/interface.c:1271 msgid "translator-credits" msgstr "Vertaler-credits" #: ../src/interface.c:1278 ../src/interface.c:1282 msgid "Dvd95" msgstr "Dvd95" #: ../src/interface.c:1279 msgid "a GNOME application to convert DVD9 to DVD5" msgstr "Een GNOME applicatie om DVD9 te converteren naar DVD5" #: ../src/interface.c:1280 msgid "" "Dvd95 is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" "Dvd95 is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty\n" "of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n" "See the GNU General Public License for more details.\n" "You should have received a copy of the GNU General Public License\n" "along with Dvd95;\n" "if not, write to the Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" msgstr "" "Dvd95 is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" "Dvd95 is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty\n" "of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n" "See the GNU General Public License for more details.\n" "You should have received a copy of the GNU General Public License\n" "along with Dvd95;\n" "if not, write to the Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" #: ../src/message.c:116 msgid "Alerte" msgstr "Opgelet" #: ../src/message.c:149 msgid "Ok" msgstr "Ok" #: ../src/message.c:161 msgid "Cancel" msgstr "Annuleer" #: ../src/message.c:240 msgid "Informations" msgstr "Informatie" #: ../src/message.c:317 #, fuzzy, c-format msgid "Première phase terminée (%d)" msgstr "Eerste stadium afgerond" #: ../src/support.c:60 ../src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "Kan pixmap bestand: %s niet vinden" #: ../src/systools.c:134 #, c-format msgid "%.2f gigas" msgstr "%.2f giga" #: ../src/systools.c:139 #, c-format msgid "%.2f megas" msgstr "%.2f meg" #: ../src/systools.c:143 #, c-format msgid "%.2f kilos" msgstr "%.2f kbs" #: ../src/profile.c:46 msgid "4.7 GiO" msgstr "4.7 GiO" #: ../src/profile.c:62 msgid "8.5 GiO" msgstr "8.5 GiO" #: ../src/profile.c:78 msgid "AVI 700Mo mp3-128k MPEG4 2Pass" msgstr "" #: ../src/profile.c:94 msgid "AVI 1Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:110 msgid "AVI 1Go mp3-128k X264 1Pass" msgstr "" #: ../src/profile.c:126 msgid "AVI 1.5Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:142 msgid "AVI 2Go AC3 MPEG4 1Pass" msgstr "" #: ../src/profile.c:158 msgid "AVI 2Go AC3 X264 1Pass" msgstr "" #: ../src/profile.c:174 msgid "PSP 300Mo" msgstr "" #: ../src/profile.c:191 msgid "PSP 500Mo" msgstr "" #: ../src/profile.c:208 msgid "AVI 2Go AC3 X264 2Pass High Quality" msgstr "" #: ../src/dvd2avi.c:623 msgid "Détection des bandes noires\n" msgstr "" #: ../src/dvd2avi.c:821 #, c-format msgid "Pas le droit de créer de fichier dans %s !" msgstr "" #: ../src/dvd2avi.c:833 #, fuzzy msgid "Sélectionnez qu'un seule piste audio !" msgstr "Selecteer audio tracks" #: ../src/dvd2avi.c:866 #, fuzzy, c-format msgid "Le fichier %s existe. L'utiliser ?" msgstr "Bestand %s bestaat al. Overschrijven ?" #: ../src/dvd2avi.c:876 #, fuzzy, c-format msgid "Création de %s impossible !" msgstr "Fout bij lezen van titel %s!" #: ../src/dvd2avi.c:982 msgid "Encodage\n" msgstr "" #: ../src/dvd2avi.c:994 #, c-format msgid "Encodage passe %d\n" msgstr "" #: ../src/dvd2avi.c:999 msgid "Continuer en passe 2 ?" msgstr "" #: ../src/dvd2avi.c:1017 msgid "Conserver le fichier vob pour un autre encodage ?" msgstr "" #: ../src/dvd2avi.c:1023 #, fuzzy, c-format msgid "Conserver le fichier %s ?" msgstr "Bewaar DVD menus" #~ msgid "DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULON" #~ msgstr "DVD95: prive copieren van DVD 9 naar DVD 5 gemaakt door J.F. COULON" #~ msgid "Version: %s du %s" #~ msgstr "Versie: %s van %s" dvd95/po/pt_BR.po000066400000000000000000000423251140003301000137610ustar00rootroot00000000000000# translation of dvd95-pt_BR.po to Português do Brasil # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Phantom X , 2007. msgid "" msgstr "" "Project-Id-Version: dvd95-pt_BR\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-11-27 21:13+0100\n" "PO-Revision-Date: 2007-04-10 21:24+0100\n" "Last-Translator: jf.coulon \n" "Language-Team: Português do Brasil \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: English\n" "X-Generator: KBabel 1.11.4\n" #: ../src/avancement.c:308 ../src/avancement.c:396 #, c-format msgid "Total %d%% a %.2fx" msgstr "" #: ../src/avancement.c:319 ../src/avancement.c:386 #, c-format msgid "%d%% (%s restant)" msgstr "%d%% (%s restantes)" #: ../src/callbacks.c:178 ../src/interface.c:70 ../src/main.c:306 msgid "DVD 9 to 5" msgstr "" #: ../src/callbacks.c:197 ../src/callbacks.c:374 ../src/callbacks.c:458 msgid "Veuillez selectionner une piste video" msgstr "Por favor selecione uma faixa de vídeo" #: ../src/callbacks.c:273 ../src/uitools.c:148 msgid "Fichiers ISO" msgstr "Arquivos ISO" #: ../src/callbacks.c:378 ../src/callbacks.c:462 msgid "Veuillez selectionner une piste audio" msgstr "Por favor selecione uma faixa de áudio" #: ../src/callbacks.c:394 msgid "Veuillez lancer un calcul de qualit" msgstr "Por favor inicie uma varredura de qualidade" #: ../src/callbacks.c:418 msgid "Erreur de conversion ........" msgstr "Error de conversão ........" #: ../src/dvd2vob.c:462 ../src/dvdbackup.c:1144 ../src/dvd2avi.c:349 #, c-format msgid "Copie de la cellule %d (%d secteurs)\n" msgstr "Copiar célula %d (%d setores)\n" #: ../src/dvd2vob.c:649 ../src/dvd2vob.c:696 msgid "Fixation de la structure du DVD.\n" msgstr "Fixando estrutura do DVD.\n" #: ../src/dvd2vob.c:874 ../src/dvd2vob.c:883 ../src/dvdbackup.c:1378 #: ../src/dvdbackup.c:1386 ../src/dvd2avi.c:808 ../src/dvd2avi.c:815 #, fuzzy, c-format msgid "" "Pas assez de place sur %s\n" "Il manque %s octets !" msgstr "" "Espaço insuficiente em %s\n" "São necessários %s mais bytes !" #: ../src/dvd2vob.c:907 ../src/dvdbackup.c:1415 ../src/dvd2avi.c:855 #, c-format msgid "Copie de %d cellules.\n" msgstr "Copiando %d células.\n" #. Create empty filesystem tree #: ../src/dvd2vob.c:909 ../src/dvdbackup.c:1417 ../src/dvd2avi.c:857 msgid "Effacement des anciens fichiers.\n" msgstr "Removendo arquivos antigos.\n" #: ../src/dvd2vob.c:914 ../src/dvdbackup.c:1422 #, c-format msgid "Le repertoire %s existe. L'effacer ?" msgstr "O diretório %s existe. Removê-lo ?" #: ../src/dvd2vob.c:924 ../src/dvdbackup.c:1432 #, c-format msgid "%s n'est pas un repertoire ! Veuillez l'effacer." msgstr "%s não é um diretório ! Por favor remova." #: ../src/dvd2vob.c:965 ../src/dvdbackup.c:1466 msgid "Ajustement automatique de la qualité.\n" msgstr "Configuração de qualidade automática.\n" #: ../src/dvd2vob.c:992 ../src/dvdbackup.c:1498 #, c-format msgid "Ajustement de qualité à %.2f%%.\n" msgstr "Configurandp qualidade para %.2f%%.\n" #: ../src/dvd2vob.c:1017 ../src/dvdbackup.c:1511 #, c-format msgid "" "Fichier VOB trop gros (%s) !\n" "Désirez vous continuer ?" msgstr "" "Arquivo VOB muito grande (%s) !\n" "Continuar mesmo assim ?" #: ../src/dvd2vob.c:1043 msgid "Création de la structure du DVD.\n" msgstr "Creando a estrutura do DVD.\n" #: ../src/dvd2vob.c:1089 msgid "Ajout de la table des matières.\n" msgstr "Adicionando o índice.\n" #: ../src/dvd2vob.c:1125 ../src/dvdbackup.c:1548 #, c-format msgid "Le fichier %s existe. Le re-creer ?" msgstr "O arquivo %s já existe. Recriar ?" #: ../src/dvd2vob.c:1128 ../src/dvdbackup.c:1551 msgid "Construction de l'image ISO.\n" msgstr "Construindo arquivo ISO.\n" #: ../src/dvd2vob.c:1138 ../src/dvdbackup.c:1566 #, c-format msgid "%s n'est pas un fichier ! Veuillez l'effacer." msgstr "%s não é um arquivo ! Por favor remova." #: ../src/dvd2vob.c:1145 ../src/dvdbackup.c:1573 msgid "Gravage sur DVD.\n" msgstr "Gravar DVD.\n" #: ../src/dvd2vob.c:1159 ../src/dvdbackup.c:1587 msgid "Effacement des fichiers.\n" msgstr "Removendo arquivos.\n" #: ../src/dvdbackup.c:171 #, c-format msgid "Copie des menus vob%2d (%d secteurs)\n" msgstr "Copiar menus vob%2d (%d setores)\n" #: ../src/dvdbackup.c:772 #, c-format msgid "Mise à jours du vob %d-%d\n" msgstr "Atualizando vob %d-%d\n" #: ../src/dvdbackup.c:1142 #, c-format msgid "Analyse de la cellule %d (%d secteurs)\n" msgstr "Analisando célula %d (%d setores)\n" #: ../src/dvdbackup.c:1559 msgid "Erreur de construction. Effacer les fichiers ?" msgstr "Erro de construção. Remover arquivos ?" #: ../src/dvdbackup.c:1713 #, c-format msgid "Analyse de %d cellules.\n" msgstr "Analisando %d células.\n" #: ../src/dvdcopy.c:107 msgid "AC3" msgstr "" #: ../src/dvdcopy.c:108 ../src/dvdcopy.c:115 msgid "?" msgstr "" #: ../src/dvdcopy.c:109 msgid "MPEG1" msgstr "" #: ../src/dvdcopy.c:110 msgid "MPEG2" msgstr "" #: ../src/dvdcopy.c:111 msgid "LPCM" msgstr "" #: ../src/dvdcopy.c:112 msgid "SDDS" msgstr "" #: ../src/dvdcopy.c:113 msgid "DTS" msgstr "" #: ../src/dvdcopy.c:133 ../src/dvdcopy.c:156 #, fuzzy msgid "Normal" msgstr "Formato" #: ../src/dvdcopy.c:134 msgid "Impaired" msgstr "" #: ../src/dvdcopy.c:135 msgid "Director's comments" msgstr "" #: ../src/dvdcopy.c:136 msgid "Alternate director's comments" msgstr "" #: ../src/dvdcopy.c:157 #, fuzzy msgid "Large" msgstr "Idioma" #: ../src/dvdcopy.c:158 msgid "Enfants" msgstr "" #: ../src/dvdcopy.c:159 msgid "Reserved" msgstr "" #: ../src/dvdcopy.c:160 msgid "Légende normale" msgstr "" #: ../src/dvdcopy.c:161 msgid "Légende large" msgstr "" #: ../src/dvdcopy.c:162 msgid "Légende enfants" msgstr "" #: ../src/dvdcopy.c:163 ../src/dvdcopy.c:165 ../src/dvdcopy.c:166 #: ../src/dvdcopy.c:167 msgid "reserved" msgstr "" #: ../src/dvdcopy.c:164 #, fuzzy msgid "Forcé" msgstr "Formato" #: ../src/dvdcopy.c:168 msgid "Réalisateur" msgstr "" #: ../src/dvdcopy.c:169 msgid "Réalisateur large" msgstr "" #: ../src/dvdcopy.c:170 msgid "Réalisateur enfants" msgstr "" #: ../src/dvdcopy.c:300 msgid "Lecture de la structure impossible !" msgstr "Erro ao ler a estrutura de DVD !" #: ../src/dvdcopy.c:306 #, c-format msgid "Lecture du titre de %s impossible!" msgstr "Erro ao ler título %s!" # #: ../src/dvdcopy.c:344 ../src/dvdcopy.c:1007 ../src/dvdcopy.c:1193 msgid "Piste" msgstr "Faixa" #: ../src/dvdcopy.c:356 msgid "Durée" msgstr "Duração" #: ../src/dvdcopy.c:368 msgid "Chapitres" msgstr "Capítulos" #: ../src/dvdcopy.c:380 msgid "Langues" msgstr "Idiomas" # #: ../src/dvdcopy.c:392 msgid "Sous-titres" msgstr "Legendas" #: ../src/dvdcopy.c:404 ../src/dvdcopy.c:1027 msgid "Format" msgstr "Formato" #: ../src/dvdcopy.c:488 ../src/dvdcopy.c:495 ../src/dvdcopy.c:501 #: ../src/dvdcopy.c:1082 ../src/dvdcopy.c:1094 ../src/dvdcopy.c:1241 #, c-format msgid "%d" msgstr "" #: ../src/dvdcopy.c:498 ../src/dvdcopy.c:504 ../src/dvdcopy.c:1085 #: ../src/dvdcopy.c:1244 #, c-format msgid "%s" msgstr "" #: ../src/dvdcopy.c:1017 ../src/dvdcopy.c:1203 ../src/interface.c:540 msgid "Langue" msgstr "Idioma" #: ../src/dvdcopy.c:1038 msgid "Extension" msgstr "" #: ../src/dvdcopy.c:1049 msgid "Canaux" msgstr "Canais" #: ../src/dvdcopy.c:1213 msgid "Ext" msgstr "" #: ../src/dvdinfo.c:205 msgid "Inconnu" msgstr "Desconhecido" #: ../src/dvdtools.c:365 msgid "Erreur de lecture ! Ignorer les erreurs ?" msgstr "Erro de leitura ! Ignorar erros de leitura ?" #: ../src/gconfig.c:466 #, fuzzy msgid "Les répertoires temporaire et iso doivent être différents !" msgstr "O diretório temporário e o diretório Iso não deve ser o mesmo !" #: ../src/gconfig.c:470 msgid "mkisofs manquant !" msgstr "mkisofs está faltando !" #: ../src/gconfig.c:474 ../src/gconfig.c:482 #, fuzzy, c-format msgid "Le répertoire %s n'existe pas !" msgstr "O directório %s não existe !" #: ../src/gconfig.c:478 ../src/gconfig.c:486 #, c-format msgid "Pas d'accès en écriture au répertoire %s !" msgstr "" #: ../src/gconfig.c:491 #, c-format msgid "Le fichier %s n'existe pas !" msgstr "O arquivo %s não existe !" # #: ../src/interface.c:95 msgid "Ecran des propiétés" msgstr "Propriedades" #: ../src/interface.c:102 msgid "Lecture du DVD" msgstr "Reproduzir DVD" #: ../src/interface.c:106 msgid "Évaluer" msgstr "" #: ../src/interface.c:110 msgid "Calculer la qualité au mieux" msgstr "Calcular a melhor qualidade" #: ../src/interface.c:116 msgid "Convertir le DVD" msgstr "Converter o DVD" # #: ../src/interface.c:152 msgid "Nom du DVD et du fichier ISO" msgstr "Nome do DVD e nome de arquivo ISO" #: ../src/interface.c:155 msgid "Évaluation de qualité :" msgstr "Cálculo de qualidade :" #: ../src/interface.c:163 msgid "Titre du film :" msgstr "Título do DVD :" #: ../src/interface.c:196 msgid "Selectionner la piste a convertir" msgstr "Selecionar uma faixa para converter" #: ../src/interface.c:199 msgid "Vidéo" msgstr "Vídeo" #: ../src/interface.c:231 msgid "Selectioner les pistes audio" msgstr "Selecionar faixas de áudio" #: ../src/interface.c:234 msgid "Audio" msgstr "Áudio" #: ../src/interface.c:266 msgid "Selectioner les sous titres" msgstr "Selecionar legendas" #: ../src/interface.c:269 msgid "Sous-titres" msgstr "Legendas" # #: ../src/interface.c:397 msgid "Propriétés" msgstr "Propriedades" #: ../src/interface.c:436 msgid "Périphérique DVD :" msgstr "Dispositivo de DVD :" #: ../src/interface.c:444 msgid "Espace temporaire :" msgstr "Espaço temporário :" #: ../src/interface.c:452 msgid "Espace des ISO :" msgstr "Espaço para os arquivos ISO :" #: ../src/interface.c:460 msgid "Lecteur multimédia :" msgstr "Reprodutor Multimídia :" #: ../src/interface.c:468 msgid "Niveau de trace :" msgstr "Nível de traço :" #: ../src/interface.c:476 ../src/interface.c:483 msgid "Sélectionner un dossier" msgstr "Selecionar um diretório" #: ../src/interface.c:502 msgid "totem" msgstr "" #: ../src/interface.c:517 msgid "/dev/dvd" msgstr "" #: ../src/interface.c:520 msgid "Indications sonores" msgstr "" #: ../src/interface.c:554 msgid "Default" msgstr "" #: ../src/interface.c:555 msgid "Français" msgstr "" #: ../src/interface.c:556 msgid "English" msgstr "" #: ../src/interface.c:557 msgid "Deutsch" msgstr "" #: ../src/interface.c:558 msgid "Greek" msgstr "" #: ../src/interface.c:559 msgid "Estonian" msgstr "" #: ../src/interface.c:560 msgid "Hungarian" msgstr "" #: ../src/interface.c:561 msgid "Dutch" msgstr "" #: ../src/interface.c:562 msgid "Portuguese" msgstr "" #: ../src/interface.c:563 msgid "Czech" msgstr "" #: ../src/interface.c:564 msgid "Spanish" msgstr "" #: ../src/interface.c:565 msgid "Italian" msgstr "" #: ../src/interface.c:567 msgid "Système" msgstr "Sistema" #: ../src/interface.c:595 msgid "Garder les menus" msgstr "Salvar os menus" #: ../src/interface.c:602 msgid "Conserver les menus du DVD" msgstr "Conservar menus do DVD" # #: ../src/interface.c:605 msgid "Créer une image ISO" msgstr "Criar uma imagem ISO" # #: ../src/interface.c:612 msgid "Créer une image ISO apres convertion" msgstr "Criar uma imagem ISO após a conversão" #: ../src/interface.c:615 msgid "Graver le DVD" msgstr "Gravar o DVD" #: ../src/interface.c:622 msgid "Graver un DVD apres convertion" msgstr "Gravar um DVD após a conversão" # #: ../src/interface.c:624 msgid "Qualité dynamique" msgstr "Qualidade dinâmica" #: ../src/interface.c:631 msgid "Convertir avec une qualité d'image dynamique" msgstr "Converter com qualidade dinâmica de imagem" #: ../src/interface.c:641 msgid "Capacité du DVD :" msgstr "Capacidade do DVD :" #: ../src/interface.c:649 msgid "Couper le générique" msgstr "Remover créditos finais" #: ../src/interface.c:656 msgid "Ne pas conserver le dernier chapitre de la piste vidéo" msgstr "Ignorar o último capítulo" #: ../src/interface.c:659 msgid "Paramètres de création" msgstr "Parâmetros de criação" #: ../src/interface.c:812 msgid "Détails" msgstr "Detalhes" # #: ../src/interface.c:873 msgid "Choix du fichier ISO" msgstr "Escolher o arquivo ISO" #: ../src/interface.c:926 msgid "Aucun medium détecté" msgstr "Mídia não detectada" #: ../src/interface.c:952 msgid "" "Aucun médium détecté\n" "\n" "Veuillez insérer un DVD vidéo dans le lecteur, ou spécifier une image ISO à " "utiliser. " msgstr "" "Mídia não detectada\n" "\n" "Por favor insira um DVD de vídeo, ou especifique um arquivo de imagem ISO " "para usar. " #: ../src/interface.c:965 msgid "Fichier ISO" msgstr "Arquivo ISO" #: ../src/interface.c:1023 msgid "Première phase terminée" msgstr "Primeiro estágio completo" #: ../src/interface.c:1049 msgid "" "Extraction du contenu terminée\n" "\n" "Avant de procéder à la construction d'une image ISO ou une gravure, vous " "pouvez prévisualiser le résultat." msgstr "" "Extração terminada\n" "\n" "Antes de construir a imagem ISO ou gravação, você pode reproduzir o " "resultado." # #: ../src/interface.c:1118 msgid "Analyse en cours" msgstr "Análise em progresso" #: ../src/interface.c:1144 msgid "" "Analyse en cours\n" "\n" "Veuillez patienter pendant le parcours du DVD afin d'analyser sa structure." msgstr "" "Analisando\n" "\n" "Por favor espere pela análise de estrutura do DVD." #: ../src/interface.c:1193 msgid "Terminé" msgstr "Terminado" #: ../src/interface.c:1219 msgid "" "Encodage terminé\n" "\n" "La conversion s'est déroulée avec succès." msgstr "" "Codificação terminada\n" "\n" "A conversão foi terminada com sucesso." #. TRANSLATORS: Replace this string with your names, one name per line. #: ../src/interface.c:1271 msgid "translator-credits" msgstr "" #: ../src/interface.c:1278 ../src/interface.c:1282 msgid "Dvd95" msgstr "" #: ../src/interface.c:1279 msgid "a GNOME application to convert DVD9 to DVD5" msgstr "Uma aplicação GNOME para converter DVD9 para DVD5" #: ../src/interface.c:1280 msgid "" "Dvd95 is free software; you can redistribute it and/or modify\n" "it under the terms of the GNU General Public License as published by\n" "the Free Software Foundation; either version 2 of the License, or\n" "(at your option) any later version.\n" "Dvd95 is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty\n" "of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n" "See the GNU General Public License for more details.\n" "You should have received a copy of the GNU General Public License\n" "along with Dvd95;\n" "if not, write to the Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n" msgstr "" #: ../src/message.c:116 msgid "Alerte" msgstr "Alerta" #: ../src/message.c:149 msgid "Ok" msgstr "" #: ../src/message.c:161 msgid "Cancel" msgstr "" #: ../src/message.c:240 msgid "Informations" msgstr "Informações" #: ../src/message.c:317 #, fuzzy, c-format msgid "Première phase terminée (%d)" msgstr "Primeiro estágio completo" #: ../src/support.c:60 ../src/support.c:85 #, c-format msgid "Couldn't find pixmap file: %s" msgstr "" #: ../src/systools.c:134 #, c-format msgid "%.2f gigas" msgstr "%.2f gigas" #: ../src/systools.c:139 #, c-format msgid "%.2f megas" msgstr "%.2f megas" #: ../src/systools.c:143 #, c-format msgid "%.2f kilos" msgstr "%.2f kilos" #: ../src/profile.c:46 msgid "4.7 GiO" msgstr "" #: ../src/profile.c:62 msgid "8.5 GiO" msgstr "" #: ../src/profile.c:78 msgid "AVI 700Mo mp3-128k MPEG4 2Pass" msgstr "" #: ../src/profile.c:94 msgid "AVI 1Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:110 msgid "AVI 1Go mp3-128k X264 1Pass" msgstr "" #: ../src/profile.c:126 msgid "AVI 1.5Go mp3-128k MPEG4 1Pass" msgstr "" #: ../src/profile.c:142 msgid "AVI 2Go AC3 MPEG4 1Pass" msgstr "" #: ../src/profile.c:158 msgid "AVI 2Go AC3 X264 1Pass" msgstr "" #: ../src/profile.c:174 msgid "PSP 300Mo" msgstr "" #: ../src/profile.c:191 msgid "PSP 500Mo" msgstr "" #: ../src/profile.c:208 msgid "AVI 2Go AC3 X264 2Pass High Quality" msgstr "" #: ../src/dvd2avi.c:623 msgid "Détection des bandes noires\n" msgstr "" #: ../src/dvd2avi.c:821 #, c-format msgid "Pas le droit de créer de fichier dans %s !" msgstr "" #: ../src/dvd2avi.c:833 #, fuzzy msgid "Sélectionnez qu'un seule piste audio !" msgstr "Selecionar faixas de áudio" #: ../src/dvd2avi.c:866 #, fuzzy, c-format msgid "Le fichier %s existe. L'utiliser ?" msgstr "O arquivo %s já existe. Recriar ?" #: ../src/dvd2avi.c:876 #, fuzzy, c-format msgid "Création de %s impossible !" msgstr "Erro ao ler título %s!" #: ../src/dvd2avi.c:982 msgid "Encodage\n" msgstr "" #: ../src/dvd2avi.c:994 #, c-format msgid "Encodage passe %d\n" msgstr "" #: ../src/dvd2avi.c:999 msgid "Continuer en passe 2 ?" msgstr "" #: ../src/dvd2avi.c:1017 msgid "Conserver le fichier vob pour un autre encodage ?" msgstr "" #: ../src/dvd2avi.c:1023 #, fuzzy, c-format msgid "Conserver le fichier %s ?" msgstr "Conservar menus do DVD" #~ msgid "DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULON" #~ msgstr "DVD95: cópia privada de DVD 9 para DVD 5 por J.F. COULON" #~ msgid "Version: %s du %s" #~ msgstr "Versão: %s de %s" #~ msgid "Total %d%% (%s restant)" #~ msgstr "Total %d%% (%s restantes)" #~ msgid "AUCUN" #~ msgstr "NENHUM" dvd95/po/stamp-it000066400000000000000000000000001140003301000140540ustar00rootroot00000000000000dvd95/sauve000077500000000000000000000003361140003301000130420ustar00rootroot00000000000000# make clean cd .. tar --exclude "*.o" \ --exclude "*.a" \ --exclude "dvd95/src/dvd95" \ --exclude ".protect" \ --exclude ".deps" \ --exclude "*.lo" \ --exclude "*.la" \ --exclude "*gz" \ -cvzf dvd95.tgz ./dvd95 dvd95/src/000077500000000000000000000000001140003301000125565ustar00rootroot00000000000000dvd95/src/.cproto_opt000066400000000000000000000010461140003301000147500ustar00rootroot00000000000000-I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libart-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gconf/2 -I/usr/include/libxml2 dvd95/src/AFAIRE000066400000000000000000000004761140003301000134370ustar00rootroot00000000000000Comment avoir l'icone dans le bureau ? INTERFACE: Gerer le flag PROFILE_MULTI_AUDIO_F DVD BAD SECTORS : - Regarder pb des nav packet notfound ! - MPEG DISPLAY: - Ameliorer le display (flicker) et la speed ! - FAIRE UN LECTEUR DE DVD au lieu d'appeler XINE - Requant des menus *** AVI **** Tester le MKV dvd95/src/Makefile.am000066400000000000000000000020261140003301000146120ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in INCLUDES = \ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @LIBDVDREAD_CFLAGS@ @PACKAGE_CFLAGS@ bin_PROGRAMS = dvd95 dvd95_SOURCES = \ main.c main.h \ support.c support.h \ interface.c interface.h \ callbacks.c callbacks.h \ dvdformat.c dvdformat.h \ dvdcopy.c dvdcopy.h \ dvdbackup.c dvdbackup.h \ dvd2vob.c dvd2vob.h \ dvd2avi.c dvd2avi.h \ profile.c profile.h \ dvdcell.c dvdcell.h \ dvdtools.c dvdtools.h \ dvdinfo.c dvdinfo.h \ gconfig.c gconfig.h \ message.c message.h \ avancement.c avancement.h \ systools.c systools.h \ asyncwriter.c asyncwriter.h \ uitools.c uitools.h \ ifo.c ifo.h bswap.h \ vaporize.c vaporize.h \ requant.c requant.h getvlc.h putvlc.h qTable.h \ cputest.c tcmemcpy.c cputest.h ac.h \ rdtsc.c rdtsc.h \ mpeg2dec.c mpeg2dec.h \ badsect.c badsect.h \ globals.h proto.h const.h vapcontext.h dvd95_LDADD = @PACKAGE_LIBS@ $(LIBAUTHOR_LIBS) $(INTLLIBS) $(LIBDVDREAD_LIBS) -lm dvd95/src/Makefile.in000066400000000000000000000472401140003301000146320ustar00rootroot00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ bin_PROGRAMS = dvd95$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in TODO ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_dvd95_OBJECTS = main.$(OBJEXT) support.$(OBJEXT) \ interface.$(OBJEXT) callbacks.$(OBJEXT) dvdformat.$(OBJEXT) \ dvdcopy.$(OBJEXT) dvdbackup.$(OBJEXT) dvd2vob.$(OBJEXT) \ dvd2avi.$(OBJEXT) profile.$(OBJEXT) dvdcell.$(OBJEXT) \ dvdtools.$(OBJEXT) dvdinfo.$(OBJEXT) gconfig.$(OBJEXT) \ message.$(OBJEXT) avancement.$(OBJEXT) systools.$(OBJEXT) \ asyncwriter.$(OBJEXT) uitools.$(OBJEXT) ifo.$(OBJEXT) \ vaporize.$(OBJEXT) requant.$(OBJEXT) cputest.$(OBJEXT) \ tcmemcpy.$(OBJEXT) rdtsc.$(OBJEXT) mpeg2dec.$(OBJEXT) \ badsect.$(OBJEXT) dvd95_OBJECTS = $(am_dvd95_OBJECTS) am__DEPENDENCIES_1 = dvd95_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(dvd95_SOURCES) DIST_SOURCES = $(dvd95_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FFMPEG_PROG = @FFMPEG_PROG@ FGREP = @FGREP@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAUTHOR_CFLAGS = @LIBAUTHOR_CFLAGS@ LIBAUTHOR_LIBS = @LIBAUTHOR_LIBS@ LIBDVDREAD_CFLAGS = @LIBDVDREAD_CFLAGS@ LIBDVDREAD_LIBS = @LIBDVDREAD_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MENCODER_PROG = @MENCODER_PROG@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MPLAYER_PROG = @MPLAYER_PROG@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = \ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @LIBDVDREAD_CFLAGS@ @PACKAGE_CFLAGS@ dvd95_SOURCES = \ main.c main.h \ support.c support.h \ interface.c interface.h \ callbacks.c callbacks.h \ dvdformat.c dvdformat.h \ dvdcopy.c dvdcopy.h \ dvdbackup.c dvdbackup.h \ dvd2vob.c dvd2vob.h \ dvd2avi.c dvd2avi.h \ profile.c profile.h \ dvdcell.c dvdcell.h \ dvdtools.c dvdtools.h \ dvdinfo.c dvdinfo.h \ gconfig.c gconfig.h \ message.c message.h \ avancement.c avancement.h \ systools.c systools.h \ asyncwriter.c asyncwriter.h \ uitools.c uitools.h \ ifo.c ifo.h bswap.h \ vaporize.c vaporize.h \ requant.c requant.h getvlc.h putvlc.h qTable.h \ cputest.c tcmemcpy.c cputest.h ac.h \ rdtsc.c rdtsc.h \ mpeg2dec.c mpeg2dec.h \ badsect.c badsect.h \ globals.h proto.h const.h vapcontext.h dvd95_LDADD = @PACKAGE_LIBS@ $(LIBAUTHOR_LIBS) $(INTLLIBS) $(LIBDVDREAD_LIBS) -lm all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list dvd95$(EXEEXT): $(dvd95_OBJECTS) $(dvd95_DEPENDENCIES) @rm -f dvd95$(EXEEXT) $(LINK) $(dvd95_OBJECTS) $(dvd95_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asyncwriter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avancement.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/badsect.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callbacks.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cputest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvd2avi.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvd2vob.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdbackup.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdcell.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdcopy.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdformat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdinfo.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dvdtools.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gconfig.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ifo.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interface.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/message.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpeg2dec.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/profile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rdtsc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/requant.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/support.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/systools.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tcmemcpy.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uitools.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vaporize.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: dvd95/src/TODO000066400000000000000000000002751140003301000132520ustar00rootroot00000000000000Methode FIFO: 1534s Methode FILE: 1764s Methode FIFO FLUSH: 1083 (200mo) Methode FIFO FLUSH: 1131.42 (100mo) - Mettre la methode pipe optionnelle ? - Encoder en parallele les chapitres ? dvd95/src/ac.h000066400000000000000000000034541140003301000133200ustar00rootroot00000000000000/* * ac.h * * Copyright (C) Thomas streich - November 2002 * * This file is part of transcode, a video stream processing tool * * transcode is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * transcode is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GNU Make; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * */ #ifndef _AC_H #define _AC_H #ifdef HAVE_CONFIG_H #include "config.h" #endif #include // #include "libtc/libtc.h" #ifdef __bsdi__ typedef unsigned int uint32_t; #endif //mm_support #define MM_C 0x0000 //plain C (default) #define MM_IA32ASM 0x0001 //32-bit assembler optimized code (non-MMX) #define MM_AMD64ASM 0x0002 //64-bit assembler optimized code (non-MMX) #define MM_CMOVE 0x0004 //CMOVcc instruction #define MM_MMX 0x0008 //standard MMX #define MM_MMXEXT 0x0010 //SSE integer functions or AMD MMX ext #define MM_3DNOW 0x0020 //AMD 3DNOW #define MM_SSE 0x0040 //SSE functions #define MM_SSE2 0x0080 //PIV SSE2 functions #define MM_3DNOWEXT 0x0100 //AMD 3DNow! ext. #define MM_SSE3 0x0200 //Prescott SSE3 extern void * (*tc_memcpy)(void *, const void *, size_t); extern void tc_memcpy_init(int verbose, int mmflags); extern int mm_flags; int ac_mmflag(); void ac_mmtest(); char *ac_mmstr(int flag, int mode); #endif dvd95/src/asyncwriter.c000066400000000000000000000153101140003301000152740ustar00rootroot00000000000000/***************************************************************************//** * @file asyncwriter.c * @date 2010/02/03 21:29:27 * @author jef-Linux * @brief * Brief description * @details * (c) ALPHA SOFT\n * encoding UTF8 !-UTF8-! * Long description *******************************************************************************/ #define __USE_LARGEFILE64 #define _LARGEFILE64_SOURCE #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #define __USE_GNU #include #include #include "globals.h" #include "const.h" #include "dvdtools.h" #include "ac.h" // #define BUFFER_SIZE DVD_VIDEO_LB_LEN #define BUFFER_SIZE (1024 * 64 ) typedef struct BUFFER_T { unsigned char data[BUFFER_SIZE]; int size; struct BUFFER_T * next; } Buffer_t; typedef struct { long long bytesWrited; long long bytesFlushed; int errorCondition; FILE * outFp; pthread_t thread; sem_t bSem; pthread_mutex_t bMutex; Buffer_t * bList; sem_t fSem; pthread_mutex_t fMutex; Buffer_t * fList; } Stream_t; static Stream_t Stream; /***************************************************************************//** * WRITEBUFFER- * @date 2010/02/03 21:43:41 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static int WriteBuffer( FILE * fp, void * buffer, int size ) { // DBG( 'f',fprintf(stderr,"%s(%d)\n", __FUNCTION__, size );); while( size > 0 ) { int lg = fwrite( buffer, 1, size, fp ); // DBG( 'f',fprintf(stderr,"%s(%d)=%d errno=%d\n", __FUNCTION__, size, lg, errno );); if( lg == 0 && errno == EPIPE ) return( -1 ); if( lg < 0 ) return( -1 ); buffer += lg; size -= lg; } return( 0 ); } /***************************************************************************//** * FLUSHERTHREAD- * @date 2010/02/03 21:34:06 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static void * FlusherThread( void * arg ) { Stream_t * stream =(Stream_t *)arg; DBG( 'f',fprintf(stderr,"%s: start stream %p thread: %p\n", __FUNCTION__, stream, (void *)stream->thread );); while( 1 ) { sem_wait( &stream->bSem ); pthread_testcancel(); if( stream->bList ) { Buffer_t * b; int eof = 0; pthread_mutex_lock( &stream->bMutex ); b = stream->bList; stream->bList = b->next; pthread_mutex_unlock( &stream->bMutex ); if( b->size != -1 ) { if( WriteBuffer( stream->outFp, b->data, b->size ) < 0 ) { DBG( 'f',fprintf(stderr,"%s: error set\n", __FUNCTION__ );); stream->errorCondition = 1; } Stream.bytesFlushed += b->size; } else eof = 1; pthread_mutex_lock( &stream->fMutex ); b->next = stream->fList; stream->fList = b; pthread_mutex_unlock( &stream->fMutex ); sem_post( &stream->fSem ); if( eof ) break; } } DBG( 'f',fprintf(stderr,"%s: EOF\n", __FUNCTION__ );); pthread_exit( NULL ); return( NULL ); } /***************************************************************************//** * FLUSHERSTART- * @date 2010/02/03 21:51:55 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int FlusherStart( FILE * fp, int totalBufferSize ) { pthread_mutexattr_t attr; int nbBuffer; int i; nbBuffer = ( totalBufferSize * 1024 * 1024 ) / BUFFER_SIZE; memset( &Stream, 0, sizeof(Stream)); Stream.outFp = fp; sem_init( &Stream.bSem, 0, 0 ); pthread_mutexattr_init( &attr ); pthread_mutex_init( &Stream.bMutex, &attr ); for( i = 0; i < nbBuffer; i++ ) { Buffer_t * b = (Buffer_t *)malloc(sizeof(*b)); b->next = Stream.fList; Stream.fList = b; } sem_init( &Stream.fSem, 0, nbBuffer ); pthread_mutexattr_init( &attr ); pthread_mutex_init( &Stream.fMutex, &attr ); pthread_create( &Stream.thread, NULL, FlusherThread, (void *)&Stream ); return( 0 ); } /***************************************************************************//** * FLUSHERWRITE- * @date 2010/02/03 21:52:27 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int FlusherWrite( unsigned char * buffer, int size ) { DBG( 'f',fprintf(stderr,"%s(%d)\n", __FUNCTION__, size );); Stream.bytesWrited += size; while( size > 0 ) { Buffer_t * b; if( Stream.errorCondition ) return( -1 ); sem_wait( &Stream.fSem ); pthread_mutex_lock( &Stream.fMutex ); b = Stream.fList; if( b ) Stream.fList = b->next; pthread_mutex_unlock( &Stream.fMutex ); if( b ) { int len = MyMin( size, BUFFER_SIZE ); tc_memcpy( b->data, buffer, len ); b->size = len; b->next = NULL; pthread_mutex_lock( &Stream.bMutex ); if( !Stream.bList ) { Stream.bList = b; } else { Buffer_t * l = Stream.bList; while( l->next ) l = l->next; l->next = b; } pthread_mutex_unlock( &Stream.bMutex ); sem_post( &Stream.bSem ); buffer += len; size -= len; } } return( 0 ); } /***************************************************************************//** * FLUSHERSTOP- * @date 2010/02/03 21:52:47 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int FlusherStop() { Buffer_t * b; DBG( 'f',fprintf(stderr,"%s()\n", __FUNCTION__ );); /* Post last bloc with size = -1 */ while( 1 ) { sem_wait( &Stream.fSem ); pthread_mutex_lock( &Stream.fMutex ); b = Stream.fList; if( b ) Stream.fList = b->next; pthread_mutex_unlock( &Stream.fMutex ); if( b ) { b->size = -1; b->next = NULL; pthread_mutex_lock( &Stream.bMutex ); if( !Stream.bList ) { Stream.bList = b; } else { Buffer_t * l = Stream.bList; while( l->next ) l = l->next; l->next = b; } pthread_mutex_unlock( &Stream.bMutex ); sem_post( &Stream.bSem ); break; } } pthread_join( Stream.thread, NULL ); b = Stream.fList; while( b ) { Buffer_t * n = b->next; free( b ); b = n; } if( Stream.errorCondition ) return( -1 ); DBG( 'f',fprintf(stderr,"%s(): Writed: %lld Flushed: %lld\n", __FUNCTION__, Stream.bytesWrited, Stream.bytesFlushed );); return( 0 ); } dvd95/src/asyncwriter.h000066400000000000000000000014021140003301000152760ustar00rootroot00000000000000/***************************************************************************//** * @file asyncwriter.h * @date 2010/02/03 22:23:36 * @author jef-Linux * @brief * Brief description * @details * (c) ALPHA SOFT\n * encoding UTF8 !-UTF8-! * Long description *******************************************************************************/ #ifndef __ASYNCWRITER_H__ #define __ASYNCWRITER_H__ /*@$#[asyncwriter.c] global proto. AutoProtoSigV1.1. date: 2010/02/03 22:23:38 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif int FlusherStart(FILE *fp, int nbBuffer); int FlusherWrite(unsigned char *buffer, int size); int FlusherStop(void); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) []*/ #endif /* __ASYNCWRITER_H__ */ dvd95/src/avancement.c000066400000000000000000000323631140003301000150520ustar00rootroot00000000000000/*============================================================================== FICHIER : [avancement.c] DATE : 2006/01/0005 21:00:23 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include "support.h" #include "interface.h" #include "systools.h" #include "globals.h" #include "const.h" #include "uitools.h" #include "mpeg2dec.h" #define UI_STEP 0.001 #define UI_REFRESH_SEC 0.1 static GtkWidget * Wavancement; typedef struct { int EstimatedSectors; long long ReadedBytes; double LastPct; struct timeval StartTime; struct timeval Time0; struct timeval lTv; long long totalSize; int totalSteps; int nbSteps; } Progress_t; static Progress_t Progress; static Progress_t SaveProgress; /*@$#[avancement.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:14:52 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* avancement.c */ static void Time2HMS PROTO((double t, char *string)); static double DvdSpeed PROTO((long long rBytes, double elapsed)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ /*------------------------------------------------------------------------------ PUSHAVANCEMENT- Linux!jef 2006/01/23 22:14:19 ------------------------------------------------------------------------------*/ void PushAvancement() { SaveProgress = Progress; } /*------------------------------------------------------------------------------ POPAVANCEMENT- Linux!jef 2006/01/23 22:14:35 ------------------------------------------------------------------------------*/ void PopAvancement() { Progress = SaveProgress; } /*------------------------------------------------------------------------------ INITAVANCEMENT- Linux!jef 2005/12/28 22:34:20 ------------------------------------------------------------------------------*/ void InitAvancement( int sectors ) { Progress.ReadedBytes = 0; Progress.EstimatedSectors = sectors; gettimeofday( &Progress.StartTime, NULL ); Progress.LastPct = 0; } /*------------------------------------------------------------------------------ CREATEAVANCEMENT- Linux!jef 2006/01/05 21:02:56 ------------------------------------------------------------------------------*/ void CreateAvancement( GtkWidget * forme ) { Wavancement = create_Avancement(); gtk_window_set_transient_for( GTK_WINDOW(Wavancement), GTK_WINDOW(forme) ); gtk_widget_show_now( Wavancement ); /* In case of no mpeg2 support */ #ifndef HAVE_LIBMPEG2 { GtkWidget * item; item = lookup_widget(GTK_WIDGET(Wavancement), "mpeg2image" ); g_assert( item ); gtk_widget_hide( item ); item = lookup_widget(GTK_WIDGET(Wavancement), "visumpeg" ); g_assert( item ); gtk_widget_hide( item ); } #endif gettimeofday( &Progress.Time0, NULL ); Progress.totalSteps = 0; Progress.nbSteps = 0; UserStopF = 0; UserPauseF = 0; } /***************************************************************************//** * HIDEMPEGVISU- * @date 2009/01/28 21:29:05 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ void HideMpegVisu() { GtkWidget * item; item = lookup_widget(GTK_WIDGET(Wavancement), "mpeg2image" ); g_assert( item ); gtk_widget_hide( item ); item = lookup_widget(GTK_WIDGET(Wavancement), "visumpeg" ); g_assert( item ); gtk_widget_hide( item ); } /*------------------------------------------------------------------------------ DESTROYAVANCEMENT- Linux!jef 2006/01/05 21:03:15 ------------------------------------------------------------------------------*/ void DestroyAvancement() { gtk_widget_destroy(GTK_WIDGET(Wavancement)); } /*------------------------------------------------------------------------------ AVANCEMENT- Linux!jef 2005/12/07 01:15:50 ------------------------------------------------------------------------------*/ int Avancement( lenReaded ) int lenReaded; { Progress.ReadedBytes += lenReaded; return( 0 ); } /*------------------------------------------------------------------------------ AVANCEMENTABS- Linux!jef 2005/12/07 01:15:50 ------------------------------------------------------------------------------*/ int AvancementAbs( pos ) long pos; { Progress.ReadedBytes = pos; return( 0 ); } /*------------------------------------------------------------------------------ SETTOTALSIZE- Linux!jef 2006/01/25 22:07:22 ------------------------------------------------------------------------------*/ void SetTotalSize( long long tSize ) { Progress.totalSize = tSize; } /*------------------------------------------------------------------------------ SETTOTALSTEPS- Linux!jef 2006/01/31 22:27:09 ------------------------------------------------------------------------------*/ void SetTotalSteps( int steps ) { Progress.totalSteps = steps; } /*------------------------------------------------------------------------------ NEWSTEP- Linux!jef 2006/01/31 22:27:31 ------------------------------------------------------------------------------*/ void NewStep() { double pct; GtkWidget * item; Progress.nbSteps++; if( Progress.totalSteps ) { pct = (double)Progress.nbSteps / (double)Progress.totalSteps; if( pct > 1.0 ) pct = 1; item = lookup_widget(GTK_WIDGET(Wavancement), "totalprogress" ); g_assert( item ); gtk_progress_bar_set_fraction( GTK_PROGRESS_BAR(item), pct ); gtk_widget_show_now( item ); GtkFlush(); } } /*------------------------------------------------------------------------------ TIME2HMS- Linux!jef 2005/12/15 23:31:07 ------------------------------------------------------------------------------*/ static void Time2HMS( double t, char * string ) { int h,m,s; h = (t / 3600 ); t -= ( h * 3600 ); m = ( t / 60 ); t -= (m * 60 ); s = t; sprintf( string,"%2.2d:%2.2d:%2.2d", h, m, s ); } /*------------------------------------------------------------------------------ DVDSPEED- Linux!jef 2006/02/14 21:45:18 ------------------------------------------------------------------------------*/ static double DvdSpeed( long long rBytes, double elapsed ) { double res = rBytes / (1.321 * 1024 * 1024 ); if( !elapsed ) return( 1.0 ); return( res / elapsed ); } /*------------------------------------------------------------------------------ AVANCEMENTUI- Linux!jef 2005/12/09 21:21:13 ------------------------------------------------------------------------------*/ int AvancementUi() { long long secReaded; double pctg, pcts; int refreshF = 0; struct timeval tv; double delta; char message[200]; GtkWidget * item; //fprintf(stderr,"gdk_threads_enter:>\n"); // gdk_threads_enter(); secReaded = Progress.ReadedBytes / (long long)SECTOR_SIZE; pcts = (double)secReaded / (double)Progress.EstimatedSectors; if( pcts > 1.0 ) pcts = 1; gettimeofday( &tv, NULL ); delta = tv.tv_sec - Progress.lTv.tv_sec; delta += ((double)( tv.tv_usec - Progress.lTv.tv_usec )) / 1000000.0; if( delta < UI_REFRESH_SEC ) goto next; if( MyAbs( pcts - Progress.LastPct ) >= UI_STEP ) { double totalTime; double elapsedTime; double remainTime; char totalStr[100]; char elapsedStr[100]; char remainStr[100]; pctg = (double)Progress.nbSteps / (double)Progress.totalSteps; if( pctg > 1.0 ) pctg = 1; totalTime = tv.tv_sec - Progress.Time0.tv_sec; totalTime += (double)(tv.tv_usec - Progress.Time0.tv_usec) / 1000000.0; elapsedTime = tv.tv_sec - Progress.StartTime.tv_sec; elapsedTime += (double)(tv.tv_usec - Progress.StartTime.tv_usec) / 1000000.0; remainTime = (elapsedTime / pcts) - elapsedTime; Time2HMS( totalTime, totalStr ); Time2HMS( elapsedTime, elapsedStr ); Time2HMS( remainTime, remainStr ); item = lookup_widget(GTK_WIDGET(Wavancement), "totalprogress" ); g_assert( item ); // fprintf(stderr,"AvancementUI: %p(%f)\n", item, pct ); gtk_progress_bar_set_fraction( GTK_PROGRESS_BAR(item), pctg ); sprintf( message,_("Total %d%% a %.2fx"), (int)(pctg * 100.0), DvdSpeed( Progress.ReadedBytes, elapsedTime ) ); gtk_progress_bar_set_text( GTK_PROGRESS_BAR(item), message ); gtk_widget_show_now( item ); item = lookup_widget(GTK_WIDGET(Wavancement), "streamprogress" ); g_assert( item ); // fprintf(stderr,"AvancementUI: %p(%f)\n", item, pct ); gtk_progress_bar_set_fraction( GTK_PROGRESS_BAR(item), pcts); sprintf( message,_("%d%% (%s restant)"), (int)(pcts * 100.0), remainStr ); gtk_progress_bar_set_text( GTK_PROGRESS_BAR(item), message ); gtk_widget_show_now( item ); Progress.LastPct = pcts; refreshF = 1; } refreshF = 1; Progress.lTv = tv; next:; if( ImageReadyF ) { item = lookup_widget(GTK_WIDGET(Wavancement), "mpeg2image" ); g_assert( item ); gtk_image_set_from_file( GTK_IMAGE( item ), PPM_FILE ); unlink( PPM_FILE ); ImageReadyF = 0; } if( refreshF ) { GtkFlush(); } //fprintf(stderr,"gdk_threads_leave:>\n"); // gdk_threads_leave(); if( UserStopF ) return( -1 ); while( UserPauseF ) { GtkFlush(); if( UserStopF ) return( -1 ); usleep( 10000 ); } return( 0 ); } /*------------------------------------------------------------------------------ AVANCEMENTUI2- Linux!jef 2006/01/05 21:09:22 ------------------------------------------------------------------------------*/ int AvancementUi2( double pcts ) { if( MyAbs( pcts - Progress.LastPct ) >= UI_STEP ) { GtkWidget * item; struct timeval tv; double pctg; double totalTime; double elapsedTime; double remainTime; char totalStr[100]; char elapsedStr[100]; char remainStr[100]; char message[200]; item = lookup_widget(GTK_WIDGET(Wavancement), "streamprogress" ); g_assert(item); // fprintf(stderr,"AvancementUI: %p(%f)\n", item, pcts ); gtk_progress_bar_set_fraction( GTK_PROGRESS_BAR(item), pcts ); gettimeofday( &tv, NULL ); totalTime = tv.tv_sec - Progress.Time0.tv_sec; totalTime += (double)(tv.tv_usec - Progress.Time0.tv_usec) / 1000000.0; elapsedTime = tv.tv_sec - Progress.StartTime.tv_sec; elapsedTime += (double)(tv.tv_usec - Progress.StartTime.tv_usec) / 1000000.0; remainTime = (elapsedTime / pcts) - elapsedTime; Time2HMS( totalTime, totalStr ); Time2HMS( elapsedTime, elapsedStr ); Time2HMS( remainTime, remainStr ); sprintf( message,_("%d%% (%s restant)"), (int)(pcts * 100.0), remainStr ); gtk_progress_bar_set_text( GTK_PROGRESS_BAR(item), message ); gtk_widget_show_now( item ); pctg = (double)Progress.nbSteps / (double)Progress.totalSteps; if( pctg > 1.0 ) pctg = 1; item = lookup_widget(GTK_WIDGET(Wavancement), "totalprogress" ); g_assert( item ); // fprintf(stderr,"AvancementUI: %p(%f)\n", item, pct ); gtk_progress_bar_set_fraction( GTK_PROGRESS_BAR(item), pctg ); sprintf( message,_("Total %d%% a %.2fx"), (int)(pctg * 100.0), DvdSpeed( Progress.ReadedBytes, elapsedTime ) ); gtk_progress_bar_set_text( GTK_PROGRESS_BAR(item), message ); gtk_widget_show_now( item ); Progress.LastPct = pcts; GtkFlush(); } if( UserStopF ) return( -1 ); return( 0 ); } /*------------------------------------------------------------------------------ DISPLAYAVANCEMENT- Linux!jef 2005/12/15 22:47:14 ------------------------------------------------------------------------------*/ void DisplayAvancement( char * format, ... ) { char string[4096]; va_list args; GtkWidget * item; GtkTextBuffer * textBuffer; GtkTextIter iter; va_start( args, format ); vsnprintf( string, sizeof(string), format, args ); item = lookup_widget(GTK_WIDGET(Wavancement), "textview1" ); if( !item ) return; textBuffer = gtk_text_view_get_buffer( GTK_TEXT_VIEW(item) ); if( !textBuffer ) return; gtk_text_buffer_insert_at_cursor ( textBuffer, string, strlen( string )); gtk_text_buffer_get_end_iter( textBuffer, &iter ); gtk_text_view_scroll_to_iter( GTK_TEXT_VIEW(item), &iter, 0.0, TRUE, 0.0, 1.0 ); gtk_widget_show_now( item ); GtkFlush(); va_end( args ); } /*------------------------------------------------------------------------------ TOTALTIME- Linux!jef 2006/03/01 21:05:27 ------------------------------------------------------------------------------*/ void TotalTime( char * string ) { struct timeval tv; double totalTime; gettimeofday( &tv, NULL ); totalTime = tv.tv_sec - Progress.Time0.tv_sec; totalTime += (double)(tv.tv_usec - Progress.Time0.tv_usec) / 1000000.0; Time2HMS( totalTime, string ); } /***************************************************************************//** * RESETUSERSTOP- * @date 2009/01/20 22:00:08 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ void ResetUserStop() { UserStopF = 0; } /***************************************************************************//** * ISUSERSTOP- * @date 2009/01/20 22:00:52 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int IsUserStop() { return( UserStopF ); } dvd95/src/avancement.h000066400000000000000000000022461140003301000150540ustar00rootroot00000000000000/*============================================================================== FICHIER : [avancement.h] DATE : 2006/01/0005 21:13:17 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __AVANCEMENT_H__ #define __AVANCEMENT_H__ #include /*@$#[avancement.c] global proto. AutoProtoSigV1.1. date: 2010/02/03 22:09:53 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif void PushAvancement(void); void PopAvancement(void); void InitAvancement(int sectors); void CreateAvancement(GtkWidget *forme); void HideMpegVisu(void); void DestroyAvancement(void); int Avancement(int lenReaded); int AvancementAbs(long pos); void SetTotalSize(long long tSize); void SetTotalSteps(int steps); void NewStep(void); int AvancementUi(void); int AvancementUi2(double pcts); void DisplayAvancement(char *format, ...); void TotalTime(char *string); void ResetUserStop(void); int IsUserStop(void); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) []*/ #endif /* __AVANCEMENT_H__ */ dvd95/src/badsect.c000066400000000000000000000046501140003301000143340ustar00rootroot00000000000000/*==========================[ (c) ALPHA SOFT ]================================== FICHIER : [badsect.c] DATE : 2007/08/0020 23:07:10 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ Handle bad sector list : for dev purpose only ==============================================================================*/ #include #include #include #define BADSECT_FILE "badsector.txt" #define MAX_BAD_SECTORS 10000 static unsigned int BadSectors[MAX_BAD_SECTORS]; static int NbBadSectors = 0; /*------------------------------------------------------------------------------ LOADBADSECTORS- Linux!jef 2007/08/20 23:09:07 ------------------------------------------------------------------------------*/ void LoadBadSectors() { FILE * fp = fopen( BADSECT_FILE, "r" ); if( fp ) { while( 1 ) { char line[100]; if( !fgets( line, sizeof(line), fp ) ) break; line[strlen(line)-1] = 0; BadSectors[NbBadSectors++] = atoi( line ); } fclose( fp ); fprintf(stderr,"%d BadSectors loaded\n", NbBadSectors ); } } /*------------------------------------------------------------------------------ SAVEBADSECTORS- Linux!jef 2007/08/20 23:10:51 ------------------------------------------------------------------------------*/ void SaveBadSectors() { FILE * fp = fopen( BADSECT_FILE, "w" ); if( fp ) { int i; for( i = 0; i < NbBadSectors; i++ ) { fprintf( fp, "%u\n", BadSectors[i] ); } fclose( fp ); } } /*------------------------------------------------------------------------------ NOTEBADSECTOR- Linux!jef 2007/08/20 23:11:49 ------------------------------------------------------------------------------*/ void NoteBadSector( unsigned int sector ) { int i; for( i = 0; i < NbBadSectors; i++ ) { if( BadSectors[i] == sector ) return; } if( NbBadSectors == MAX_BAD_SECTORS ) { fprintf(stderr, "MAX_BAD_SECTORS: too low\n"); return; } BadSectors[NbBadSectors++] = sector; } /*------------------------------------------------------------------------------ ISBADSECTOR- Linux!jef 2007/08/20 23:13:14 ------------------------------------------------------------------------------*/ int IsBadSector( unsigned int sector ) { int i; for( i = 0; i < NbBadSectors; i++ ) { if( BadSectors[i] == sector ) { fprintf(stderr,"%s: sector %u is bad!\n", __FUNCTION__, sector ); return( 1 ); } } return( 0 ); } dvd95/src/badsect.h000066400000000000000000000014701140003301000143360ustar00rootroot00000000000000/*==========================[ (c) ALPHA SOFT ]================================== FICHIER : [badsect.h] DATE : 2007/08/0020 23:13:33 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __BADSECT_H__ #define __BADSECT_H__ /*@$#[badsect.c] global proto. AutoProtoSigV1.1. date: 107/08/20 23:13:38 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif void LoadBadSectors PROTO((void)); void SaveBadSectors PROTO((void)); void NoteBadSector PROTO((unsigned int sector)); int IsBadSector PROTO((unsigned int sector)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __BADSECT_H__ */ dvd95/src/bswap.h000066400000000000000000000061601140003301000140460ustar00rootroot00000000000000#ifndef BSWAP_H_INCLUDED #define BSWAP_H_INCLUDED /* * Copyright (C) 2000, 2001 Billy Biggs , * Hkan Hjort * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #if defined(WORDS_BIGENDIAN) || defined(__BIG_ENDIAN__) /* All bigendian systems are fine, just ignore the swaps. */ #define B2N_16(x) (void)(x) #define B2N_32(x) (void)(x) #define B2N_64(x) (void)(x) #else /* For __FreeBSD_version */ #if defined(HAVE_SYS_PARAM_H) #include #endif #if defined(__linux__) #include #define B2N_16(x) x = bswap_16(x) #define B2N_32(x) x = bswap_32(x) #define B2N_64(x) x = bswap_64(x) #elif defined(__NetBSD__) #include #define B2N_16(x) BE16TOH(x) #define B2N_32(x) BE32TOH(x) #define B2N_64(x) BE64TOH(x) #elif defined(__OpenBSD__) #include #define B2N_16(x) x = swap16(x) #define B2N_32(x) x = swap32(x) #define B2N_64(x) x = swap64(x) #elif defined (__APPLE__) #include #define B2N_16(x) x = OSSwapInt16(x) #define B2N_32(x) x = OSSwapInt32(x) #define B2N_64(x) x = OSSwapInt64(x) #elif defined(__FreeBSD__) && __FreeBSD_version >= 470000 #include #define B2N_16(x) x = be16toh(x) #define B2N_32(x) x = be32toh(x) #define B2N_64(x) x = be64toh(x) /* This is a slow but portable implementation, it has multiple evaluation * problems so beware. * Old FreeBSDs and Solaris don't have or any other such * functionality! */ #elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) #define B2N_16(x) \ x = ((((x) & 0xff00) >> 8) | \ (((x) & 0x00ff) << 8)) #define B2N_32(x) \ x = ((((x) & 0xff000000) >> 24) | \ (((x) & 0x00ff0000) >> 8) | \ (((x) & 0x0000ff00) << 8) | \ (((x) & 0x000000ff) << 24)) #define B2N_64(x) \ x = ((((x) & 0xff00000000000000) >> 56) | \ (((x) & 0x00ff000000000000) >> 40) | \ (((x) & 0x0000ff0000000000) >> 24) | \ (((x) & 0x000000ff00000000) >> 8) | \ (((x) & 0x00000000ff000000) << 8) | \ (((x) & 0x0000000000ff0000) << 24) | \ (((x) & 0x000000000000ff00) << 40) | \ (((x) & 0x00000000000000ff) << 56)) #else /* If there isn't a header provided with your system with this functionality * add the relevant || define( ) to the portable implementation above. */ #error "You need to add endian swap macros for your system" #endif #endif /* WORDS_BIGENDIAN */ #endif /* BSWAP_H_INCLUDED */ dvd95/src/callbacks.c000066400000000000000000000357371140003301000146600ustar00rootroot00000000000000#ifdef HAVE_CONFIG_H # include #endif #include #include #define CTEST( x ) /****/ #define CTEST99( x ) x/****/ #include "callbacks.h" #include "interface.h" #include "support.h" #include "gconfig.h" #include "gconfig.h" #include "dvdformat.h" #include "dvdtools.h" #include "dvdcopy.h" #include "dvdbackup.h" #include "dvd2vob.h" #include "dvd2avi.h" #include "uitools.h" #include "message.h" #include "avancement.h" #include "globals.h" #include "main.h" #include "mpeg2dec.h" #include "profile.h" typedef struct { int noPisteVideo; AudioMap_t audioMap; int nbAudio; SubMap_t subMap; int nbSub; } SelectInfo_t; static SelectInfo_t SelInfo; /*------------------------------------------------------------------------------ RECORDAUDIOSELECTED- Linux!jef 2006/01/26 20:34:55 ------------------------------------------------------------------------------*/ static gboolean RecordAudioSelected( GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer userdata ) { gboolean bool; gtk_tree_model_get( model, iter, AUDIO_COL1_CHECK, &bool, -1); if( bool ) { int noPiste; gtk_tree_model_get( model, iter, AUDIO_COL8_NO, &noPiste, -1); CTEST(fprintf(stderr,"PisteAudio %d selected\n", noPiste );); SelInfo.audioMap.audioTracks[noPiste] = 1; SelInfo.nbAudio++; } return( FALSE ); } /*------------------------------------------------------------------------------ RECORDSUBSELECTED- Linux!jef 2006/01/26 20:34:55 ------------------------------------------------------------------------------*/ static gboolean RecordSubSelected( GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer userdata ) { gboolean bool; gtk_tree_model_get( model, iter, SUB_COL1_CHECK, &bool, -1); if( bool ) { int noPiste; gtk_tree_model_get( model, iter, SUB_COL6_NO, &noPiste, -1); CTEST(fprintf(stderr,"PisteSub %d selected\n", noPiste );); SelInfo.subMap.subTracks[noPiste] = 1; SelInfo.nbSub++; } return( FALSE ); } /*------------------------------------------------------------------------------ GETSELECTED- Linux!jef 2005/12/18 19:46:04 ------------------------------------------------------------------------------*/ static void GetSelected( GtkWidget * forme ) { GtkWidget * item; GtkTreeSelection *selection; GtkTreeModel *model; GtkTreeIter iter; memset( &SelInfo, 0, sizeof( SelInfo )); SelInfo.noPisteVideo = -1; item = lookup_widget( forme, "Encoder" ); g_assert( item ); if( GTK_WIDGET_SENSITIVE( GTK_WIDGET(item) ) != TRUE ) return; /* This will only work in single or browse selection mode! */ item = lookup_widget( forme, "PistesVideo" ); g_assert( item ); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(item)); if( gtk_tree_selection_get_selected(selection, &model, &iter)) { gint noPiste; gtk_tree_model_get( model, &iter, VIDEO_COL8_NO, &noPiste, -1); CTEST(fprintf(stderr,"Piste video %d selected\n", noPiste );); SelInfo.noPisteVideo = noPiste; } /* This will only work in single or browse selection mode! */ item = lookup_widget( forme, "PistesAudio" ); g_assert( item ); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(item)); model = gtk_tree_view_get_model( GTK_TREE_VIEW( item )); g_assert( model ); gtk_tree_model_foreach( GTK_TREE_MODEL(model), RecordAudioSelected, NULL ); CTEST(fprintf(stderr,"Il y a %d audio tracks\n", SelInfo.nbAudio );); /* This will only work in single or browse selection mode! */ item = lookup_widget( forme, "SousTitres" ); g_assert( item ); model = gtk_tree_view_get_model( GTK_TREE_VIEW( item )); g_assert( model ); gtk_tree_model_foreach( GTK_TREE_MODEL(model), RecordSubSelected, NULL ); CTEST(fprintf(stderr,"Il y a %d sub tracks\n", SelInfo.nbSub );); } void on_Dvd95_destroy (GtkObject *object, gpointer user_data) { gtk_main_quit(); } void on_proprietes_clicked (GtkToolButton *toolbutton, gpointer user_data) { GtkWidget * parent = lookup_widget(GTK_WIDGET(toolbutton), "main" ); g_assert( parent ); DialogPropriete( parent, 0 ); {/* Update media */ char title[512]; int dvdFormat = ConfigGetInt( KEY_MEDIA, DVD5 ); Profile_t * p = GetProfile( dvdFormat ); CTEST(fprintf(stderr,"%s: dvdFormat=%d p=%p\n", __FUNCTION__, dvdFormat, p );); if( !p ) { dvdFormat = DVD5; p = GetProfile( dvdFormat ); g_assert( p ); } if( p->profileFlags & PROFILE_AVAIL_F ) { SetFormat( dvdFormat ); } else { dvdFormat = DVD5; SetFormat( dvdFormat ); p = GetProfile( dvdFormat ); g_assert( p ); } sprintf( title, "%s : %s", _("DVD 9 to 5"), p->libel ); gtk_window_set_title( GTK_WINDOW(parent), title ); } DeviceChecking( parent ); GetSelected( parent ); if( SelInfo.noPisteVideo != -1 ) { UpdDefFactor( parent, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap ); } } void on_ViewPiste_clicked (GtkToolButton *toolbutton, gpointer user_data) { GtkWidget * forme = lookup_widget(GTK_WIDGET(toolbutton), "main" ); GetSelected( forme ); if( SelInfo.noPisteVideo == -1 ) { MessageBoxError( _("Veuillez selectionner une piste video") ); return; } VisuDvdPiste( SelInfo.noPisteVideo ); } gboolean on_PistesVideo_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { return FALSE; } gboolean on_PistesAudio_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { return FALSE; } gboolean on_SousTitres_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { return FALSE; } void on_cfgsave_clicked (GtkObject *object, gpointer user_data) { SaveConfig( GTK_WIDGET(object) ); if( VerifConfig( GTK_WIDGET( object ) ) != -1 ) { GtkWidget * propriete; propriete = lookup_widget(GTK_WIDGET(object), "propriete" ); g_assert( propriete ); gtk_widget_destroy( propriete ); } } void on_cfgiso_destroy (GtkObject *object, gpointer user_data) { } void on_propriete_destroy (GtkObject *object, gpointer user_data) { gtk_main_quit(); } void on_choixiso_clicked (GtkButton *button, gpointer user_data) { GtkWidget * fc; fc = create_ChoixFichier(); if( fc ) { GtkFileFilter * fi = gtk_file_filter_new(); gtk_file_filter_set_name( fi, _("Fichiers ISO") ); gtk_file_filter_add_pattern( fi, "*.iso" ); gtk_file_filter_add_pattern( fi, "*.ISO" ); gtk_file_chooser_add_filter( GTK_FILE_CHOOSER(fc), fi ); if( gtk_dialog_run (GTK_DIALOG(fc)) == GTK_RESPONSE_OK) { char *filename; filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER(fc)); strcpy( Device, filename ); DeviceSpecifiedF = 1; g_free (filename); } gtk_widget_destroy( fc ); } } gboolean on_PistesVideo_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { GtkTreeSelection *selection; GtkTreeModel *model; GtkTreeIter iter; /* This will only work in single or browse selection mode! */ selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(widget)); if( gtk_tree_selection_get_selected(selection, &model, &iter)) { gint noPiste; gtk_tree_model_get( model, &iter, VIDEO_COL8_NO, &noPiste, -1); ScanPiste( widget, noPiste ); } else { // g_print ("no row selected.\n"); } // fprintf(stderr,"Piste video button press!\n"); return FALSE; } gboolean on_PistesAudio_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { GtkWidget * forme = lookup_widget(GTK_WIDGET(widget), "main" ); g_assert( forme ); GetSelected( forme ); if( SelInfo.noPisteVideo == -1 ) return( FALSE ); UpdDefFactor( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap ); return FALSE; } gboolean on_SousTitres_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { GtkWidget * forme = lookup_widget(GTK_WIDGET(widget), "main" ); g_assert( forme ); GetSelected( forme ); if( SelInfo.noPisteVideo == -1 ) return( FALSE ); UpdDefFactor( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap ); return( FALSE ); } void on_Encoder_clicked (GtkToolButton *toolbutton, gpointer user_data) { GtkWidget * forme = lookup_widget(GTK_WIDGET(toolbutton), "main" ); GtkWidget * item; double facteur; double pct; int res; Profile_t * p; g_assert( forme ); GetSelected( forme ); item = lookup_widget(GTK_WIDGET(toolbutton), "Qualite" ); g_assert( item ); pct = gtk_range_get_value( GTK_RANGE(item) ); if( !pct ) pct = 1.0; facteur = (100.0 / pct ); if( SelInfo.noPisteVideo == -1 ) { MessageBoxError( _("Veuillez selectionner une piste video") ); return; } if( ! SelInfo.nbAudio == -1 ) { MessageBoxError( _("Veuillez selectionner une piste audio") ); return; } p = GetProfile( GetFormat() ); g_assert( p ); CreateDirectorys(); if( p->profileFlags & PROFILE_AVI_F ) { res = DvdToAvi( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap, GetFormat() ); } else { if( facteur < 0 ) { MessageBoxError( _("Veuillez lancer un calcul de qualit") ); return; } if( ConfigGetInt( KEY_USEMENU, 0 ) ) { res = BackupDvd( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap, facteur ); } else { res = CopyDvd( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap, facteur ); } } DBG('c',{char timeStr[100]; TotalTime( timeStr ); fprintf(stderr,"Temps de traitement: %s\n", timeStr );}); if( res != -1 ) { EncodageFini(); //!! gtk_widget_destroy( forme ); } else { MessageBoxError( _("Erreur de conversion ........") ); } } void on_avCancel_clicked (GtkButton *button, gpointer user_data) { UserStopF = 1; } void on_Pause_clicked (GtkButton *button, gpointer user_data) { if( UserPauseF ) UserPauseF = 0; else UserPauseF = 1; } void on_Evaluer_clicked (GtkToolButton *toolbutton, gpointer user_data) { GtkWidget * forme = lookup_widget(GTK_WIDGET(toolbutton), "main" ); GtkWidget * item; double facteur; double pct; int res; int menuF = ConfigGetInt( KEY_USEMENU, 0 ); g_assert( forme ); GetSelected( forme ); if( SelInfo.noPisteVideo == -1 ) { MessageBoxError( _("Veuillez selectionner une piste video") ); return; } if( ! SelInfo.nbAudio == -1 ) { MessageBoxError( _("Veuillez selectionner une piste audio") ); return; } res = CpuBackupQuality( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap, menuF, &facteur ); item = lookup_widget( forme, "Qualite" ); g_assert( item ); pct = (1.0 / facteur ) * 100.0; // fprintf(stderr,"dFactor=%f qualite=%f\n", dFactor, pct ); gtk_range_set_value( GTK_RANGE( item ), pct ); gtk_widget_show( item ); } void on_quitter_clicked (GtkButton *button, gpointer user_data) { } void on_rafraichir_clicked (GtkButton *button, gpointer user_data) { } void on_lecture_clicked (GtkButton *button, gpointer user_data) { VisuDvdStruct( TargetDir ); } void on_revenir_clicked (GtkButton *button, gpointer user_data) { Phase2 = PHASE2_ARRIERE; } void on_avancer_clicked (GtkButton *button, gpointer user_data) { Phase2 = PHASE2_AVANCER; } void on_arreter_clicked (GtkButton *button, gpointer user_data) { } void on_fermer_clicked (GtkButton *button, gpointer user_data) { } void on_cfgdev_changed (GtkComboBox *combobox, gpointer user_data) { gchar * value; value = gtk_combo_box_get_active_text( combobox ); if( value ) gtk_entry_set_text( GTK_ENTRY (GTK_BIN(combobox)->child), value ); } void on_cfgvisu_changed (GtkComboBox *combobox, gpointer user_data) { gchar * value; value = gtk_combo_box_get_active_text( combobox ); if( value ) gtk_entry_set_text( GTK_ENTRY (GTK_BIN(combobox)->child), value ); } static void handle_url (GtkAboutDialog *about, const char *link, gpointer data) { gchar *command[] = {"gnome-open", NULL, NULL}; command[1] = g_strdup (link); g_spawn_async(NULL, command, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL); g_free (command[1]); } void on_About_clicked (GtkToolButton *toolbutton, gpointer user_data) { GtkWidget * msg; msg = create_about(); gtk_about_dialog_set_url_hook (handle_url, NULL, NULL); gtk_dialog_run( GTK_DIALOG( msg ) ); gtk_widget_destroy( GTK_WIDGET( msg ) ); } gboolean on_Dvd95_delete (GtkWidget *widget, GdkEvent *event, gpointer user_data) { ConfigRecordSizePosMain( MainDlg ); gtk_main_quit(); return TRUE; } void on_visumpeg_toggled (GtkToggleButton *togglebutton, gpointer user_data) { if( gtk_toggle_button_get_active( togglebutton ) == TRUE ) { // fprintf(stderr,"MPEG2 DECODER: Enabled\n"); Mpeg2SetState( 1 ); } else { // fprintf(stderr,"MPEG2 DECODER: Disabled\n"); Mpeg2SetState( 0 ); } } void on_configbegin_clicked (GtkButton *button, gpointer user_data) { GtkWidget * parent = lookup_widget(GTK_WIDGET(button), "alerte_medium" ); g_assert( parent ); DialogPropriete( parent, 1 ); } dvd95/src/callbacks.h000066400000000000000000000116221140003301000146500ustar00rootroot00000000000000#include void on_Dvd95_destroy (GtkObject *object, gpointer user_data); void on_proprietes_clicked (GtkToolButton *toolbutton, gpointer user_data); void on_ViewPiste_clicked (GtkToolButton *toolbutton, gpointer user_data); void on_Encoder_clicked (GtkToolButton *toolbutton, gpointer user_data); gboolean on_PistesVideo_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); gboolean on_PistesAudio_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); gboolean on_SousTitres_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); gboolean on_SousTitres_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); void on_cfgsave_clicked (GtkObject *object, gpointer user_data); void on_cfgiso_destroy (GtkObject *object, gpointer user_data); void on_propriete_destroy (GtkObject *object, gpointer user_data); void on_choixiso_clicked (GtkButton *button, gpointer user_data); gboolean on_PistesVideo_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); gboolean on_PistesAudio_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); void on_avCancel_clicked (GtkButton *button, gpointer user_data); void on_Pause_clicked (GtkButton *button, gpointer user_data); void on_Evaluer_clicked (GtkToolButton *toolbutton, gpointer user_data); void on_quitter_clicked (GtkButton *button, gpointer user_data); void on_rafraichir_clicked (GtkButton *button, gpointer user_data); void on_lecture_clicked (GtkButton *button, gpointer user_data); void on_revenir_clicked (GtkButton *button, gpointer user_data); void on_avancer_clicked (GtkButton *button, gpointer user_data); void on_arreter_clicked (GtkButton *button, gpointer user_data); void on_fermer_clicked (GtkButton *button, gpointer user_data); void on_alerte_deuxiemephase_destroy (GtkObject *object, gpointer user_data); void on_cfgdev_changed (GtkComboBox *combobox, gpointer user_data); void on_cfgvisu_changed (GtkComboBox *combobox, gpointer user_data); void on_About_clicked (GtkToolButton *toolbutton, gpointer user_data); gboolean on_Dvd95_delete (GtkWidget *widget, GdkEvent *event, gpointer user_data); void on_visumpeg_toggled (GtkToggleButton *togglebutton, gpointer user_data); void on_rescan_clicked (GtkToolButton *toolbutton, gpointer user_data); void on_configbegin_clicked (GtkButton *button, gpointer user_data); dvd95/src/const.h000066400000000000000000000031641140003301000140610ustar00rootroot00000000000000/*============================================================================== FICHIER : [const.h] DATE : 2006/01/0005 20:58:44 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __CONST_H__ #define __CONST_H__ #define MNG_BADSECTORS 0 /* For debug purpose only */ #define SECTOR_SIZE 2048 #define MAX_AUDIO_TRACK 8 #define MAX_SUB_TRACK 32 /* From Wikipedia */ /* DVD5 4.7 -> 4.37Gigas = 4.37 * 1024 * 1024 * 1024 */ /* 1.3p1 #define DVD5_WANTED_BYTES_LL ((long long) 4600000000LL) */ #define ISO_OVERHEAD ((long)(long)(2 * 1024 * 1024 )) #define _SZ_SECTOR 2048LL /* #define DVD47SECTORS 2298496LL DVD-R size */ #define DVD47SECTORS 2295104LL /* DVD+R size smallest */ #define DVD85SECTORS 4171712LL #define DVD5_WANTED_BYTES_LL ((long long)((DVD47SECTORS * _SZ_SECTOR) - ISO_OVERHEAD)) /* #define MAX_DVD5_BYTES ((long long)4707319808LL) DVD-R */ #define MAX_DVD5_BYTES ((long long)4700372992LL) /* DVD5 8.5 -> 7.74Gigas */ #define DVD9_WANTED_BYTES_LL ((long long)((DVD85SECTORS * _SZ_SECTOR) - ISO_OVERHEAD)) #define MAX_DVD9_BYTES ((long long)8543666176LL) #define MAX_VTS 100 #define MAX_VOB_SIZE (1024*1024*1024) /* Quand enclencher l'analyse dymique */ #define DYNQUAL_PCT 0.01 // 0.10 /* Pourcentage du dvd a lire pour estimer la qualite */ #define EVAL_QUALITY_PCT 0.25 /* 20% */ #define MyMin(a,b) ((a)>(b) ? (b) : (a)) #define MyMax(a,b) ((a)<(b) ? (b) : (a)) #define MyAbs(a) (((a) > 0) ? (a) : -(a)) #endif /* __CONST_H__ */ dvd95/src/cputest.c000066400000000000000000000156641140003301000144250ustar00rootroot00000000000000/* Cpu detection code, extracted from mmx.h ((c)1997-99 by H. Dietz and R. Fisher). Converted to C and improved by Fabrice Bellard */ #include #include #include "ac.h" #ifdef HAVE_STRING_H # include #endif #ifdef ARCH_X86_64 # define REG_b "rbx" # define REG_S "rsi" #else # define REG_b "ebx" # define REG_S "esi" #endif //exported int mm_flag=-1; /* ebx saving is necessary for PIC. gcc seems unable to see it alone */ #define cpuid(index,eax,ebx,ecx,edx)\ __asm __volatile\ ("mov %%"REG_b", %%"REG_S"\n\t"\ "cpuid\n\t"\ "xchg %%"REG_b", %%"REG_S\ : "=a" (eax), "=S" (ebx),\ "=c" (ecx), "=d" (edx)\ : "0" (index)); #define CPUID_STD_MMX 0x00800000 #define CPUID_STD_SSE 0x02000000 #define CPUID_STD_SSE2 0x04000000 #define CPUID_STD_SSE3 0x00000001 // ECX! #define CPUID_EXT_AMD_3DNOW 0x80000000 #define CPUID_EXT_AMD_3DNOWEXT 0x40000000 #define CPUID_EXT_AMD_MMXEXT 0x00400000 #define CPUID_EXT_CYR_MMX 0x00800000 #define CPUID_EXT_CYR_MMXEXT 0x01000000 /* Function to test if multimedia instructions are supported... */ static int mm_support(void) { int rval = 0; #if defined(ARCH_X86) || defined(ARCH_X86_64) int eax, ebx, ecx, edx; int max_std_level, max_ext_level, std_caps=0, std_caps2=0, ext_caps=0; long a, c; char vendor[13] = "UnknownVndr"; __asm__ __volatile__ ( /* See if CPUID instruction is supported ... */ /* ... Get copies of EFLAGS into eax and ecx */ "pushf\n\t" "pop %0\n\t" "mov %0, %1\n\t" /* ... Toggle the ID bit in one copy and store */ /* to the EFLAGS reg */ "xor $0x200000, %0\n\t" "push %0\n\t" "popf\n\t" /* ... Get the (hopefully modified) EFLAGS */ "pushf\n\t" "pop %0\n\t" : "=a" (a), "=c" (c) : : "cc" ); if (a == c) return 0; /* CPUID not supported */ cpuid(0, max_std_level, ebx, ecx, edx); /* highest cpuid is 0, no standard features */ if (max_std_level == 0) return rval; /* save the vendor string */ *(int *)vendor = ebx; *(int *)&vendor[4] = edx; *(int *)&vendor[8] = ecx; if (max_std_level >= 1){ cpuid(1, eax, ebx, std_caps2, std_caps); if (std_caps & (1<<15)) rval |= MM_CMOVE; if (std_caps & (1<<23)) rval |= MM_MMX; if (std_caps & (1<<25)) rval |= MM_MMXEXT | MM_SSE; if (std_caps & (1<<26)) rval |= MM_SSE2; } cpuid(0x80000000, max_ext_level, ebx, ecx, edx); if (max_ext_level >= 0x80000001) { cpuid(0x80000001, eax, ebx, ecx, ext_caps); } cpuid(0, eax, ebx, ecx, edx); if (strcmp(vendor, "AuthenticAMD") == 0) { /* AMD */ if (ext_caps & (1<<22)) rval |= MM_MMXEXT; if (ext_caps & (1<<31)) rval |= MM_3DNOW; if (ext_caps & (1<<30)) rval |= MM_3DNOWEXT; if (std_caps2 & (1<<0)) rval |= MM_SSE3; } else if (strcmp(vendor, "CentaurHauls") == 0) { /* VIA C3 */ if (ext_caps & (1<<24)) rval |= MM_MMXEXT; } else if (strcmp(vendor, "CyrixInstead") == 0) { /* Cyrix */ if (ext_caps & (1<<24)) rval |= MM_MMXEXT; } #if 0 av_log(NULL, AV_LOG_DEBUG, "%s%s%s%s%s%s\n", (rval&MM_MMX) ? "MMX ":"", (rval&MM_MMXEXT) ? "MMX2 ":"", (rval&MM_SSE) ? "SSE ":"", (rval&MM_SSE2) ? "SSE2 ":"", (rval&MM_3DNOW) ? "3DNow ":"", (rval&MM_3DNOWEXT) ? "3DNowExt ":""); #endif #endif /* ARCH_X86(_64) */ return rval; } int ac_mmflag(void) { if (mm_flag==-1) { mm_flag = mm_support(); #ifdef ARCH_X86 mm_flag |= MM_IA32ASM; #endif #ifdef ARCH_X86_64 mm_flag |= MM_AMD64ASM; #endif } return(mm_flag); } void ac_mmtest() { int cc=ac_mmflag(); printf("(%s) available multimedia extensions:", __FILE__); if(cc & MM_SSE3) { printf(" sse3\n"); return; } else if(cc & MM_SSE2) { printf(" sse2\n"); return; } else if(cc & MM_SSE) { printf(" sse\n"); return; } else if(cc & MM_3DNOWEXT) { printf(" 3dnowext\n"); return; } else if(cc & MM_3DNOW) { printf(" 3dnow\n"); return; } else if(cc & MM_MMXEXT) { printf(" mmxext\n"); return; } else if(cc & MM_MMX) { printf(" mmx\n"); return; } else if(cc & MM_AMD64ASM) { printf(" 64asm\n"); return; } else if(cc & MM_IA32ASM) { printf(" 32asm\n"); return; } else printf(" C\n"); } /* * Appends src to string dst of size siz (unlike strncat, siz is the * full size of dst, not space left). At most siz-1 characters * will be copied. Always NUL terminates (unless siz <= strlen(dst)). * Returns strlen(src) + MIN(siz, strlen(initial dst)). * If retval >= siz, truncation occurred. */ size_t strlcat(char *dst, const char *src, size_t siz) { char *d = dst; const char *s = src; size_t n = siz; size_t dlen; /* Find the end of dst and adjust bytes left but don't go past end */ while (n-- != 0 && *d != '\0') d++; dlen = d - dst; n = siz - dlen; if (n == 0) return(dlen + strlen(s)); while (*s != '\0') { if (n != 1) { *d++ = *s; n--; } s++; } *d = '\0'; return(dlen + (s - src)); /* count does not include NUL */ } char *ac_mmstr(int flag, int mode) { static char mmstr[64]=""; int cc; if(flag==-1) //get full mm caps cc=ac_mmflag(); else cc=flag; //return max supported mm extensions, or str for user provided flag if(mode==0) { if(cc & MM_SSE3) { return("sse3"); } else if(cc & MM_SSE2) { return("sse2"); } else if(cc & MM_SSE) { return("sse"); } else if(cc & MM_3DNOWEXT) { return("3dnowext"); } else if(cc & MM_3DNOW) { return("3dnow"); } else if(cc & MM_MMXEXT) { return("mmxext"); } else if(cc & MM_MMX) { return("mmx"); } else if(cc & (MM_AMD64ASM|MM_IA32ASM)) { return("asm"); } else return("C"); } //return full capability list if(mode==1) { if(cc & MM_SSE3) strlcat(mmstr, "sse3 ", sizeof(mmstr)); if(cc & MM_SSE2) strlcat(mmstr, "sse2 ", sizeof(mmstr)); if(cc & MM_SSE) strlcat(mmstr, "sse ", sizeof(mmstr)); if(cc & MM_3DNOWEXT) strlcat(mmstr, "3dnowext ", sizeof(mmstr)); if(cc & MM_3DNOW) strlcat(mmstr, "3dnow ", sizeof(mmstr)); if(cc & MM_MMXEXT) strlcat(mmstr, "mmxext ", sizeof(mmstr)); if(cc & MM_MMX) strlcat(mmstr, "mmx ", sizeof(mmstr)); if(cc & (MM_AMD64ASM|MM_IA32ASM)) strlcat(mmstr, "asm ", sizeof(mmstr)); strlcat(mmstr, "C", sizeof(mmstr)); return(mmstr); } return(""); } dvd95/src/cputest.h000066400000000000000000000034171140003301000144230ustar00rootroot00000000000000/* * DSP utils * Copyright (c) 2000, 2001, 2002 Fabrice Bellard. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef CPUTEST_H #define CPUTEST_H #include "ac.h" #ifdef HAVE_MMX static inline void emms(void) { __asm __volatile ("emms;":::"memory"); } #define emms_c() \ {\ if (mm_flags & MM_MMX)\ emms();\ } #define __align8 __attribute__ ((aligned (8))) #elif defined(ARCH_ARMV4L) #define emms_c() /* This is to use 4 bytes read to the IDCT pointers for some 'zero' line ptimizations */ #define __align8 __attribute__ ((aligned (4))) #elif defined(HAVE_MLIB) #define emms_c() /* SPARC/VIS IDCT needs 8-byte aligned DCT blocks */ #define __align8 __attribute__ ((aligned (8))) void dsputil_init_mlib(void); #elif defined(ARCH_ALPHA) #define emms_c() #define __align8 __attribute__ ((aligned (8))) #elif defined(ARCH_POWERPC) #define emms_c() #define __align8 __attribute__ ((aligned (16))) #elif defined(HAVE_MMI) #define emms_c() #define __align8 __attribute__ ((aligned (16))) void dsputil_init_mmi(void); #else #define emms_c() #define __align8 #endif #endif dvd95/src/dvd2avi.c000066400000000000000000001176511140003301000142740ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdbackup.c] DATE : 2006/01/0005 20:56:20 CREATEUR : [Linux!jef] COMMENTAIRE : * encoding UTF8 !-UTF8-! Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #define __USE_LARGEFILE64 #define _LARGEFILE64_SOURCE #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #ifdef __APPLE__ /* fopen is 64-bit aware on Mac OS X */ #define fopen64(A,B) fopen(A,B) #endif #define CTEST(x) /***/ #include "support.h" #include "const.h" #include "dvdformat.h" #include "dvdinfo.h" #include "message.h" #include "gconfig.h" #include "interface.h" #include "globals.h" #include "systools.h" #include "avancement.h" #include "uitools.h" #include "dvdtools.h" #include "dvdcopy.h" #include "ifo.h" #include "bswap.h" #include "vaporize.h" #include "ac.h" #include "dvdcell.h" #include "../dvdauthor/libauthor.h" #include "vapcontext.h" #include "mpeg2dec.h" #include "profile.h" #include "asyncwriter.h" static char TitreDvd[128]; static CellArray_t CellArray; static TitleArray_t TitleArray; static int CurVTS; static FILE * OutFpVideo; /* Video file pointer */ static long long OutSize; static long long TotalSize; static int CurVOB; static unsigned char TempBuf[DVD_VIDEO_LB_LEN * 2]; static int TempSize = 0; typedef struct { char * vobFile; char * aviFile; char * logFile; int bitrate; char cropParam[200]; int scaleX; int scaleY; double aspect; int audioTrackId; char * audioFormat; /* For specific lpcm audio */ int duree; } EncodingInfos_t; #define MEM_2GIG ( 2LL * 1024LL * 1024LL * 1024LL ) #define MEM_1GIG ( 1LL * 1024LL * 1024LL * 1024LL ) #define MIN_SECTORS4CROP 60000 /*@$#[dvd2avi.c] static proto. AutoProtoSigV1.1. date: 2010/03/15 23:03:38 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif static int Output(unsigned char *buffer, int len, char *targetDir); static void MakeRoom(VapContext_t *c, int size); static uint32_t _FindNextVobu(VapContext_t *c); static int Readin(void *parm, unsigned char *buffer, int size); static int OutputFlux(void *parm, unsigned char *buffer, int size); static int CopyCell(Cell_t *c, char *targetDir); static void FreeAll(void); static int _readline(FILE *fp, char *line, int size); static int ExecuteFfmpeg(char *sysCmd, int duree); static int ExecuteMencoder(char *sysCmd, int duree); static double GetAspectRatio(int noPisteVideo); static void GetPictureSizes(int noPisteVideo, Profile_t *p, int cx, int cy, int *sx, int *sy, int bitrate); static int CropDetection(char *iFile, char *cropParam, int duree, int startPos); static char *ComputeCmdLine(Profile_t *profile, EncodingInfos_t *infos, int passNo); static long long GetVobSize(int noPisteVideo, int breakFirstCellF); static void InitGlobVars(void); static int ComputeInfos(int noPisteVideo, AudioMap_t *audioMap, Profile_t *profile, EncodingInfos_t *infos); static void VisuAvi(char *path); static int OutputFluxFifo(void *parm, unsigned char *buffer, int size); static int DvdToAviFifo(GtkWidget *forme, int noPisteVideo, AudioMap_t *audioMap, SubMap_t *subMap, int format); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) []*/ /*------------------------------------------------------------------------------ OUTPUT- Linux!jef 2006/01/03 21:05:50 ------------------------------------------------------------------------------*/ static int Output( buffer, len, targetDir ) unsigned char * buffer; int len; char * targetDir; { unsigned char * cBuff; if( !TempSize && len == DVD_VIDEO_LB_LEN ) { TempSize = len; cBuff = buffer; } else { //!! fprintf(stderr,"Output: len %d TempSize: %d\n", len, TempSize ); tc_memcpy( TempBuf + TempSize, buffer, len ); TempSize += len; cBuff = TempBuf; } if( TempSize >= DVD_VIDEO_LB_LEN ) { if( !isNavPack( cBuff ) ) { Mpeg2Demux( cBuff, DVD_VIDEO_LB_LEN ); } if( fwrite( cBuff, 1, DVD_VIDEO_LB_LEN, OutFpVideo ) != DVD_VIDEO_LB_LEN ) return( -1 ); OutSize += DVD_VIDEO_LB_LEN; TotalSize += DVD_VIDEO_LB_LEN; SetTotalSize( TotalSize ); TempSize -= DVD_VIDEO_LB_LEN; if( TempSize > 0 ) tc_memcpy( cBuff, cBuff + DVD_VIDEO_LB_LEN, TempSize ); } return( 0 ); } /*------------------------------------------------------------------------------ MAKEROOM- Linux!jef 2006/01/24 22:46:53 ------------------------------------------------------------------------------*/ static void MakeRoom( VapContext_t * c, int size ) { // DBG('b',fprintf(stderr,"%s: size: %d\n", __FUNCTION__, size );); if( c->bufASize < (c->bufSize + size) ) { if( c->bufPtr != c->buf ) { memmove( c->buf, c->bufPtr, c->bufSize ); c->bufPtr = c->buf; } c->bufASize = c->bufSize + size; c->buf = realloc( c->buf, c->bufASize ); c->bufPtr = c->buf; } if( !c->bufSize ) { c->bufPtr = c->buf; return; } } /*------------------------------------------------------------------------------ _FINDNEXTVOBU- Linux!jef 2007/08/16 01:37:18 ------------------------------------------------------------------------------*/ static uint32_t _FindNextVobu( c ) VapContext_t * c; { vobu_admap_t * vobu_admap; uint32_t length, i; vobu_admap = c->cell->ifo->vts_vobu_admap; length = vobu_admap->last_byte + 1 - VOBU_ADMAP_SIZE; for( i = 0; i < length/sizeof(uint32_t); i++) { // DBG('b',fprintf(stderr,"%s: vobu at sector: %d\n", __FUNCTION__, vobu_admap->vobu_start_sectors[i] );); /* Vobu adress map seems to be ordered */ if( vobu_admap->vobu_start_sectors[i] > c->sector) { DBG('b',fprintf(stderr,"%s: returning next vobu at sector: %d\n", __FUNCTION__, vobu_admap->vobu_start_sectors[i] );); return( vobu_admap->vobu_start_sectors[i] ); } // if( vobu_admap->vobu_start_sectors[i] == c->sector) { // return( vobu_admap->vobu_start_sectors[i+1] ); // } } DBG('b',fprintf(stderr,"%s: nextvobu notfound for sector: %d\n", __FUNCTION__, c->sector );); return( SRI_END_OF_CELL ); } /*------------------------------------------------------------------------------ READIN- Linux!jef 2006/01/24 22:28:46 ------------------------------------------------------------------------------*/ static int Readin( void * parm, unsigned char * buffer, int size ) { VapContext_t * c = (VapContext_t *) parm; int readed = 0; int len; dsi_t dsi_pack; uint32_t nsectors; int badNavPack = 0; // DBG('b',fprintf(stderr,"%s: size: %d inBuf: %d\n", __FUNCTION__, size, c->bufSize );); if( c->bufSize ) { len = MyMin( size, c->bufSize ); tc_memcpy( buffer, c->bufPtr, len ); buffer += len; size -= len; c->bufPtr += len; c->bufSize -= len; readed += len; } if( !size ) { // DBG('b',fprintf(stderr,"%s: readed: %d\n", __FUNCTION__, readed );); return( readed ); } if( c->dsi_next_vobu == SRI_END_OF_CELL ) { if( readed ) return( readed ); // DBG('b',fprintf(stderr,"%s: EOF\n", __FUNCTION__ );); return( 0 ); /* EOF */ } /* read nav pack */ MakeRoom( c, DVD_VIDEO_LB_LEN ); len = MyDVDRead1Block( c->file_handle, c->sector, c->bufPtr ); if( len == -1 ) return( -1 ); /* parse contained DSI pack */ navRead_DSI( &dsi_pack, c->bufPtr + DSI_START_BYTE ); if( len == 0 || dsi_pack.dsi_gi.nv_pck_lbn != c->sector ) { CreateDummyNavPack( c->bufPtr, c->sector ); badNavPack = 1; c->dsi_next_vobu = _FindNextVobu( c ); } len = DVD_VIDEO_LB_LEN; c->bufSize += len; Avancement( len ); if( AvancementUi() < 0 ) return( -1 ); if( badNavPack ) { MakeRoom( c, 1 * DVD_VIDEO_LB_LEN ); CreateDummyPack( c->bufPtr + DVD_VIDEO_LB_LEN ); nsectors = 1; } else { int i; unsigned char * cBuff; nsectors = dsi_pack.dsi_gi.vobu_ea; if( !nsectors ) { /* Protected dvd ? */ DBG('b',fprintf(stderr,"%s: no sectors in DSI !\n", __FUNCTION__);); return( 0 ); /* EOF */ } c->dsi_next_vobu = dsi_pack.vobu_sri.next_vobu; MakeRoom( c, nsectors*DVD_VIDEO_LB_LEN ); cBuff = c->bufPtr + DVD_VIDEO_LB_LEN; /* read VOBU */ for( i = 0; i < nsectors; i++ ) { len = MyDVDRead1Block( c->file_handle, c->sector + 1 + i, cBuff ); // fprintf(stderr,"PACK: MyDVDRead1Block(%d)=%d\n", c->sector+1+i, len ); if( len == -1 ) return( -1 ); if( len == 0 ) { CreateDummyPack( cBuff ); nsectors = 1; break; } cBuff += DVD_VIDEO_LB_LEN; } } len = nsectors * DVD_VIDEO_LB_LEN; c->bufSize += len; Avancement( len ); if( AvancementUi() < 0 ) return( -1 ); if( badNavPack ) { c->sector = c->dsi_next_vobu; c->dsi_next_vobu = 0; } else c->sector += (c->dsi_next_vobu & 0x7fffffff); return( readed + Readin( parm, buffer, size ) ); } /*------------------------------------------------------------------------------ OUTPUTFLUX- Linux!jef 2006/01/24 23:07:28 ------------------------------------------------------------------------------*/ static int OutputFlux( void * parm, unsigned char * buffer, int size ) { VapContext_t * c = (VapContext_t *) parm; int writen = 0; // DBG('b',fprintf(stderr,"%s: size: %d\n", __FUNCTION__, size );); while( size > 0 ) { int len = MyMin( size, DVD_VIDEO_LB_LEN ); if( Output( buffer, len, c->targetDir ) < 0 ) { return( -1 ); } buffer += len; size -= len; writen += len; } return( writen ); } /*------------------------------------------------------------------------------ COPYCELL- Linux!jef 2005/12/28 22:01:08 ------------------------------------------------------------------------------*/ static int CopyCell( Cell_t * c, char * targetDir ) { uint32_t size; dvd_file_t * file_handle; VapContext_t vc; long long lSize; int ret; if( !c->selected ) return( 0 ); DBG('b',fprintf(stderr,"%s: startSector: %u lastSector: %u vts: %d\n", __FUNCTION__, c->startSector, c->lastSector, c->vts );); size = c->lastSector - c->startSector; DisplayAvancement( _("Copie de la cellule %d (%d secteurs)\n"), c->chapter + 1, size); InitAvancement( size ); file_handle = DVDOpenFile( Dvd, c->vts, DVD_READ_TITLE_VOBS); if( !file_handle ) { return( -1 ); } memset( &vc, 0, sizeof(vc)); /* Initialize Vaporize context */ vc.file_handle = file_handle; vc.sector = c->startSector; vc.cell = c; vc.targetDir = targetDir; lSize = (long long) size * (long long) DVD_VIDEO_LB_LEN; ret = Vaporize( lSize, &vc ); if( vc.buf ) { free( vc.buf ); } DVDCloseFile( file_handle ); c->done = 1; return( ret ); } /*------------------------------------------------------------------------------ FREEALL- Linux!jef 2006/01/16 22:10:25 ------------------------------------------------------------------------------*/ static void FreeAll() { int i; if( TitleArray.nbTitles ) { for( i = 0; i < TitleArray.nbTitles; i++ ) { FreeCellArray( &TitleArray.titles[i].ca ); } free( TitleArray.titles ); TitleArray.titles = NULL; TitleArray.nbTitles = 0; } FreeCellArray( &CellArray ); } /*------------------------------------------------------------------------------ _READLINE- Linux!jef 2006/02/16 22:58:23 ------------------------------------------------------------------------------*/ static int _readline( FILE * fp, char * line, int size ) { int readed = 0; size--; while( size ) { int c = fgetc( fp ); if( c == EOF ) break; if( c == '\r' ) c = '\n'; *line++ = (char)c; readed++; size--; if( c == '\n' ) break; } *line = 0; return( readed ); } /*------------------------------------------------------------------------------ EXECUTEFFMPEG- Linux!jef 2005/12/20 22:17:17 ------------------------------------------------------------------------------*/ static int ExecuteFfmpeg( char * sysCmd, int duree ) { FILE * fp; char line[1024]; int res = 0; double lPct = -1; InitAvancement(0); /* re-direct stderr */ strcat( sysCmd, " 2>&1" ); DBG('c',fprintf(stderr,"%s: executing (%s) duree: %d\n", __FUNCTION__, sysCmd, duree );); fp = my_popen( sysCmd, "r" ); if( !fp ) return( -1 ); setbuf( fp, NULL ); while( 1 ) { char * p; if( !_readline( fp, line, sizeof(line))) break; if( !*line ) continue; // fprintf(stderr,"line(%s)\n", line ); p = strstr( line, "time=" ); if( p ) { double where; double pct; p += 5; where = atof( p ); pct = ( where ) / (double) duree;; // fprintf(stderr,"%f/%d = %f%%\n", where, duree, pct ); if( pct > lPct ) { if( AvancementUi2( pct ) < 0 ) { res = -1; break; } lPct = pct; } else GtkFlush(); } } res = my_pclose( fp ); DBG('c',fprintf(stderr,"%s: result= %d\n", __FUNCTION__, res );); if( res != 0 ) res = -1; return( res ); } /*------------------------------------------------------------------------------ EXECUTEMENCODER- Linux!jef 2005/12/20 22:17:17 ------------------------------------------------------------------------------*/ static int ExecuteMencoder( char * sysCmd, int duree ) { FILE * fp; char line[1024]; int res = 0; double lPct = -1; InitAvancement(0); /* re-direct stderr */ strcat( sysCmd, " 2>&1" ); DBG('c',fprintf(stderr,"%s: executing (%s) duree: %d\n", __FUNCTION__, sysCmd, duree );); fp = my_popen( sysCmd, "r" ); if( !fp ) return( -1 ); setbuf( fp, NULL ); while( 1 ) { char * p; if( !_readline( fp, line, sizeof(line))) break; if( !*line ) continue; // fprintf(stderr,"line(%s)\n", line ); p = strstr( line, "Pos:" ); if( p ) { double where; double pct; p += 4; while( *p == ' ' ) p++; where = atof( p ); pct = ( where ) / (double) duree;; // fprintf(stderr,"%f/%d = %f%%\n", where, duree, pct ); if( pct > lPct ) { if( AvancementUi2( pct ) < 0 ) { res = -1; break; } lPct = pct; } else GtkFlush(); } } res = my_pclose( fp ); DBG('c',fprintf(stderr,"%s: result= %d\n", __FUNCTION__, res );); if( res != 0 ) res = -1; return( res ); } /***************************************************************************//** * GETASPECTRATIO- * @date 2009/01/19 22:11:49 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static double GetAspectRatio( int noPisteVideo ) { ifo_handle_t * ifo = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]; vtsi_mat_t *vtsi_mat = ifo->vtsi_mat; video_attr_t *video_attr; char *aspect_ratio[4] = {"4:3", "16:9", "4:3", "16:9"}; video_attr = &vtsi_mat->vts_video_attr; if( *aspect_ratio[video_attr->display_aspect_ratio] == '4' ) return( 4.0/3.0 ); return( 16.0/9.0 ); } /***************************************************************************//** * GETPICTURESIZES- * @date 2009/01/20 20:49:21 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static void GetPictureSizes( int noPisteVideo, Profile_t * p, int cx, int cy, int * sx, int * sy, int bitrate ) { char *aspect_ratio[4] = { "4:3", "16:9", "4:3", "16:9"}; double video_height[4] = { 480, 576, 576, 576 }; double video_width[4] = { 720, 720, 352, 352 }; ifo_handle_t * ifo = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]; vtsi_mat_t *vtsi_mat = ifo->vtsi_mat; video_attr_t *video_attr; double ARa; double PRdvd; double ARc; double resX,resY; double CQ = p->cq; // 0.30; bitrate *= 1000; video_attr = &vtsi_mat->vts_video_attr; if( *aspect_ratio[video_attr->display_aspect_ratio] == '4' ) { ARa = 4.0/3.0; PRdvd = video_width[video_attr->picture_size] / video_height[video_attr->video_format]; } else { ARa = 16.0/9.0; PRdvd = video_width[video_attr->picture_size] / video_height[video_attr->video_format]; } ARc = ( (double)cx * ( ARa / PRdvd)) / (double)cy; resY = rint(sqrt( (double)bitrate / 25.0 / ARc / CQ ) / 16.0) * 16.0; resX = rint( resY * ARc / 16.0 ) * 16.0; /* Protect orginal sizes if bigger */ if( resX >= cx || resY >= cy ) { resX = cx; resY = cy; } DBG( 'b',fprintf(stderr,"%s: CQ=%f\n", __FUNCTION__, CQ );); DBG( 'b',fprintf(stderr,"%s: ARa=%f\n", __FUNCTION__, ARa );); DBG( 'b',fprintf(stderr,"%s: PRdvd=%f\n", __FUNCTION__, PRdvd );); DBG( 'b',fprintf(stderr,"%s: ARc=%f\n", __FUNCTION__, ARc );); DBG( 'b',fprintf(stderr,"%s: ResX=%f\n", __FUNCTION__, resX );); DBG( 'b',fprintf(stderr,"%s: ResY=%f\n", __FUNCTION__, resY );); *sx = resX; *sy = resY; } /***************************************************************************//** * CROPDETECTION- * @date 2009/01/19 22:50:34 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static int CropDetection( char * iFile, char * cropParam, int duree, int startPos ) { char sysCmd[1024]; FILE * fp; char line[1024]; int res = 0; double lPct = -1; /* int duree = 60; int startPos = 120; */ int frames = duree * 25; *cropParam = 0; sprintf( sysCmd, "mplayer -vo null -ao null -ss %d -frames %d -nosound -speed 100 -vf cropdetect %s", startPos, frames, iFile ); strcat( sysCmd, " 2>&1" ); DBG('c',fprintf(stderr,"%s: executing (%s)\n", __FUNCTION__, sysCmd );); fp = my_popen( sysCmd, "r" ); if( !fp ) return( -1 ); DisplayAvancement( _("Détection des bandes noires\n")); InitAvancement(0); setbuf( fp, NULL ); while( 1 ) { char * p; if( !_readline( fp, line, sizeof(line))) break; if( !*line ) continue; // fprintf(stderr,"line(%s)\n", line ); p = strstr( line, "crop=" ); if( p ) { char * pStart; p += 5; pStart = p; while( *p && *p != ')' ) p++; if( *p == ')' ) { *p = 0; strcpy( cropParam, pStart ); } } p = strstr( line, "V:" ); if( p ) { double where; double pct; p += 2; while( *p == ' ' ) p++; where = atof( p ) - startPos; pct = ( where ) / (double) duree;; // fprintf(stderr,"(%s) %f/%d = %f%%\n", line, where, duree, pct ); if( pct >= 0.0 && pct <= 1.0 && pct > lPct ) { if( AvancementUi2( pct ) < 0 ) { res = -1; break; } lPct = pct; } } } res = my_pclose( fp ); DBG('c',fprintf(stderr,"%s: result= %d (%s)\n", __FUNCTION__, res, cropParam );); if( res != 0 ) res = -1; return( res ); } /***************************************************************************//** * COMPUTECMDLINE- * @date 2009/01/19 21:47:44 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static char * ComputeCmdLine( Profile_t * profile, EncodingInfos_t * infos, int passNo ) { char * oLine = malloc( 10240 ); /* KK */ char * p = oLine; char * iLine; if( passNo == 1 ) iLine = profile->pass1Opt; else iLine = profile->pass2Opt; strcpy( p, profile->encTool ); strcat( p, " " ); p += strlen( p ); while( *iLine ) { if( *iLine == '%' ) { switch( iLine[1] ) { case 'b' : sprintf( p, "%d", infos->bitrate ); p += strlen( p ); break; case 'a' : sprintf( p, "%.5f", infos->aspect ); p += strlen( p ); break; case 'i' : strcpy( p, infos->vobFile ); p += strlen( p ); break; case 'o' : strcpy( p, infos->aviFile ); p += strlen( p ); break; case 'p' : strcpy( p, infos->logFile ); p += strlen( p ); break; case 'c' : strcpy( p, infos->cropParam ); p += strlen( p ); break; case 'u' : sprintf( p, "%d", GetNumCpu() ); p += strlen( p ); break; case 'x' : sprintf( p, "%d", infos->scaleX ); p += strlen( p ); break; case 'y' : sprintf( p, "%d", infos->scaleY ); p += strlen( p ); break; case 'A' : sprintf( p, "%d", infos->audioTrackId ); p += strlen( p ); break; } iLine++; } else *p++ = *iLine; iLine++; } *p = 0; /* Handle special case: lpcm audio track doesn't support -aoc copy instead use -oac pcm */ if( !strcmp( infos->audioFormat, "lpcm") ){ char * p = strstr( oLine, "-oac copy" ); if( p ) { memcpy( p, "-oac pcm ", 9); } } return( oLine ); } /***************************************************************************//** * GETVOBSIZE- * @date 2009/01/21 20:53:40 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static long long GetVobSize( int noPisteVideo, int breakFirstCellF ) { int totalSectors = 0; int i; for( i = 0; i < CellArray.nbCells; i++ ) { Cell_t * c = CellArray.cells + i; if( c->selected ) { totalSectors += SECTOR_SZ(c); if( breakFirstCellF ) break; } } return( (long long)totalSectors * (long long) DVD_BLOCK_LEN ); } /***************************************************************************//** * INITGLOBVARS- * @date 2010/02/02 20:46:35 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static void InitGlobVars() { CurVTS = 0; CurVOB = 0; OutSize = 0; TotalSize = 0; } /***************************************************************************//** * COMPUTEINFOS- * @date 2010/03/15 22:54:00 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static int ComputeInfos( int noPisteVideo, AudioMap_t * audioMap, Profile_t * profile, EncodingInfos_t * infos ) { int i; long long dvdAudioSize = 0; double audioSize; double videoSize; double overHead; double bitrate; int cx,cy,dx,dy; TotalAudioSize( noPisteVideo, &infos->duree ); for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { dvdAudioSize = AudioSize( noPisteVideo, i ); } } infos->aspect = GetAspectRatio( noPisteVideo ); if( profile->audioBitrate == -1 ) { audioSize = dvdAudioSize; } else { /* Using less channel and so */ audioSize = ( (double)profile->audioBitrate * (double)infos->duree ) / 8.0; } DBG( 'b',fprintf(stderr,"duree: %d audioSize: %f dvdAudioSize: %lld\n", infos->duree, audioSize, dvdAudioSize );); overHead = profile->fileSize * profile->overhead; /* Apply container overhead */ videoSize = profile->fileSize - audioSize - overHead; bitrate = ( videoSize * 8.0 ) / (double)infos->duree; bitrate /= 1000; infos->bitrate = rint(bitrate); DBG( 'b',fprintf(stderr,"Bitrate: %dK\n", infos->bitrate );); *infos->cropParam = 0; CropDetection( infos->vobFile, infos->cropParam, 60, 0 ); /* Parse croping params */ if( sscanf( infos->cropParam, "%d:%d:%d:%d", &cx,&cy,&dx,&dy ) != 4 ) { cx = 720; cy = 576; } GetPictureSizes( noPisteVideo, profile, cx, cy, &infos->scaleX, &infos->scaleY, infos->bitrate ); DBG( 'b',fprintf(stderr,"ImageParameter: crop(%s) scale(%d,%d)\n", infos->cropParam, infos->scaleX, infos->scaleY );); return( 0 ); } /***************************************************************************//** * DVDTOAVI- * @date 2010/03/15 22:58:54 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int DvdToAvi( GtkWidget * forme, int noPisteVideo, AudioMap_t * audioMap, SubMap_t * subMap, int format ) { GtkWidget * item; char * tmpDir = ConfigGetString( KEY_TEMP, "/tmp" ); char * isoDir = ConfigGetString( KEY_ISODIR, GetEnv( "HOME", "/tmp" ) ); int lastCellF = ConfigGetInt( KEY_GENERIQUE, 0 ); char targetDir[512]; char vobFile[1024]; char aviFile[1024]; char logFile[1024]; int i; char injectionFile[100]; const gchar * text; int ret = 0; int res; int nbSteps; Profile_t * profile = GetProfile( format ); int vobOk = 0; int aviDone = 0; long long fsize; int nbAudio = 0; Timer_t * timer = NULL; DBG('b',fprintf(stderr,"%s: format: %d\n", __FUNCTION__, format );); if( !profile ) return(-1); DBG('b',fprintf(stderr,"%s: useFifo: %d NumCpu(): %d KeepVob=%d\n", __FUNCTION__, profile->useFifo, GetNumCpu(), KeepVob );); if( profile->useFifo && GetNumCpu() >= 2 && !KeepVob) { return( DvdToAviFifo( forme, noPisteVideo, audioMap, subMap , format ) ); } /* Verify we have enought free space to extract */ fsize = FsFree( tmpDir ) - GetVobSize( noPisteVideo, 0 ); if( fsize < 0 ) { PlayError(); MessageBoxError( _("Pas assez de place sur %s\nIl manque %s octets !"), tmpDir, LLSize2Giga( -fsize ) ); return( -1 ); } /* Verify we have enought free space to encode */ fsize = FsFree( isoDir ) - profile->fileSize; if( fsize < 0 ) { PlayError(); MessageBoxError( _("Pas assez de place sur %s\nIl manque %s octets !"), isoDir, LLSize2Giga( -fsize ) ); return( -1 ); } /* Verify that we can create a file on isodir */ if( CanCreateFile( isoDir ) == 0 ) { PlayError(); MessageBoxError( _("Pas le droit de créer de fichier dans %s !"), isoDir ); return( -1 ); } /* Verify number of audio tracks selected */ for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { nbAudio++; DBG('b',fprintf(stderr,"%s: audioTrackId: %d=0x%x\n", __FUNCTION__, i, AudioStreamId( noPisteVideo, i ) );); } } if( nbAudio != 1 ) { PlayError(); MessageBoxError( _("Sélectionnez qu'un seule piste audio !") ); return( -1 ); } /* Reprise du titre du DVD */ item = lookup_widget(GTK_WIDGET(forme), "titre" ); text = gtk_entry_get_text( GTK_ENTRY(item) ); strcpy( TitreDvd, text ); FreeCellArray( &CellArray ); BuildCells( noPisteVideo, &CellArray, lastCellF, 1 ); InitGlobVars(); CreateAvancement( forme ); nbSteps = CountSelectedCells( &CellArray ) + profile->passNb; SetTotalSteps( nbSteps ); DisplayAvancement( _("Copie de %d cellules.\n"), CountSelectedCells( &CellArray ) ); /* Create empty filesystem tree */ DisplayAvancement( _("Effacement des anciens fichiers.\n")); sprintf( injectionFile, "%s/vapinj.%d", tmpDir, getpid()); sprintf( targetDir, "%s/%s", tmpDir, TitreDvd ); sprintf( aviFile, "%s/%s.%s", isoDir, TitreDvd, profile->extension ); sprintf( vobFile, "%s/%s.vob", tmpDir, TitreDvd ); sprintf( logFile, "%s/%s.log", tmpDir, TitreDvd ); if( FileExist( vobFile ) == 1 ) { res = MessageBoxYesNo( _("Le fichier %s existe. L'utiliser ?"), vobFile ); if( res == 1 ) { vobOk = 1; goto doAvi; } unlink( vobFile ); } OutFpVideo = fopen64( vobFile, "w" ); if( !OutFpVideo ) { PlayError(); MessageBoxError( _("Création de %s impossible !"), vobFile ); DestroyAvancement(); return( -1 ); } timer = StartTimer(); /* Setup vaporizer */ if( VaporizeInit( Readin, OutputFlux, 1 ) < 0 ) { ret = -1; goto out; } /* Setup tracks & factor */ for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { int id = GetAudioId( noPisteVideo, i ); DBG('b',fprintf(stderr,"%s: VaporizeAudio(%d)\n", __FUNCTION__, id );); VaporizeAudio( id ); } } Mpeg2Init(); /* Must be 100% */ VaporizeFactor( 1.0f, 0 ); VaporizeInjection( injectionFile ); /* Copy cells */ for( i = 0; i < CellArray.nbCells; i++ ) { Cell_t * c = CellArray.cells + i; if( CopyCell( c, targetDir ) < 0 ) { ret = -1; goto out; } if( c->selected ) NewStep(); } { int vVideoSize; int vAudioSize; int vSubpSize; int vNavSize; VaporizeSizes( &vVideoSize, &vAudioSize, &vSubpSize, &vNavSize ); DBG( 'b',fprintf(stderr,"VAPORIZE VIDEO SIZE: %lld\n", (long long)vVideoSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE AUDIO SIZE: %lld\n", (long long)vAudioSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE SUBP SIZE: %lld\n", (long long)vSubpSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE NAV SIZE: %lld\n", (long long)vNavSize * DVD_BLOCK_LEN );); } vobOk = 1; out:; VaporizeTerm(); if( OutFpVideo ) { fclose( OutFpVideo ); OutFpVideo = NULL; } Mpeg2End(); doAvi:; /* Here calculate bitrate */ if( !ret ) { char * cmdLine; EncodingInfos_t infos; HideMpegVisu(); infos.vobFile = vobFile; infos.aviFile = aviFile; infos.logFile = logFile; ComputeInfos( noPisteVideo, audioMap, profile, &infos ); /* Establish Audio Track Id to support -aid mencoder option */ for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { infos.audioTrackId = AudioStreamId( noPisteVideo, i ); infos.audioFormat = AudioFormat( noPisteVideo, i ); } } ret = -1; if( !strcmp( profile->encTool, "ffmpeg" ) ) { cmdLine = ComputeCmdLine( profile, &infos, 1 ); DBG( 'b',fprintf(stderr,"COMMANDLINE: %s\n", cmdLine );); DisplayAvancement( _("Encodage\n")); ret = ExecuteFfmpeg( cmdLine, infos.duree ); // if( !ret ) FixAvi( aviFile ); free( cmdLine ); } if( !strcmp( profile->encTool, "mencoder" ) ) { int i; ret = 0; for( i = 0; i < profile->passNb; i++ ) { cmdLine = ComputeCmdLine( profile, &infos, i+1 ); DBG( 'b',fprintf(stderr,"COMMANDLINE: %s\n", cmdLine );); DisplayAvancement( _("Encodage passe %d\n"), i+1); res = ExecuteMencoder( cmdLine, infos.duree ); if( res < 0 ) { ret = -1; if( IsUserStop() && i == 0 && profile->passNb > 1 ) { res = MessageBoxYesNo( _("Continuer en passe 2 ?") ); if( res == 1 ) { ResetUserStop(); } } } free( cmdLine ); } } aviDone = 1; } StopTimer( timer ); DBG( 'b',fprintf(stderr,"Encoding last: %f\n", ElapsedTimer(timer) );); FreeTimer( timer ); DestroyAvancement(); FreeAll(); if( !ret ) PlaySuccess(); else PlayError(); if( vobOk ) { res = MessageBoxYesNo( _("Conserver le fichier vob pour un autre encodage ?") ); if( res != 1 ) vobOk = 0; } if( !vobOk ) unlink( vobFile ); if( ret == 0 && aviDone ) { res = MessageBoxYesNo( _("Visualiser le fichier %s ?"), aviFile ); if( res == 1 ) VisuAvi( aviFile ); } if( ret == -1 && aviDone ) { res = MessageBoxYesNo( _("Conserver le fichier %s ?"), aviFile ); if( res != 1 ) unlink( aviFile ); } unlink( logFile ); return( ret ); } /***************************************************************************//** * VISUAVI- * @date 2010/01/27 21:55:54 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static void VisuAvi( path ) char * path; { char * player = ConfigGetString( KEY_PLAYER, "xine" ); char sysCmd[1024]; int res; if( !strcmp( player, "xine" )) { sprintf( sysCmd, "xine \"file://%s\"", path ); DBG('c',fprintf(stderr,"%s: executing (%s)\n", __FUNCTION__, sysCmd );); res = system( sysCmd ); return; } if( !strcmp( player, "mplayer" )) { sprintf( sysCmd, "mplayer \"%s\"", path ); DBG('c',fprintf(stderr,"%s: executing (%s)\n", __FUNCTION__, sysCmd );); res = system( sysCmd ); return; } if( !strcmp( player, "vlc" )) { sprintf( sysCmd, "vlc \"%s\"", path ); DBG('c',fprintf(stderr,"%s: executing (%s)\n", __FUNCTION__, sysCmd );); res = system( sysCmd ); return; } } /***************************************************************************//** * OUTPUTFLUXFIFO- * @date 2010/02/03 22:30:57 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static int OutputFluxFifo( void * parm, unsigned char * buffer, int size ) { if( size >= DVD_VIDEO_LB_LEN ) { if( !isNavPack( buffer ) ) { Mpeg2Demux( buffer, DVD_VIDEO_LB_LEN ); } } if( FlusherWrite( buffer, size ) < 0 ) return( -1 ); OutSize += size; TotalSize += size; SetTotalSize( TotalSize ); return( size ); } /***************************************************************************//** * DVDTOAVIFIFO- * @date 2010/02/02 20:41:35 * @author jef-Linux * @brief * Idem DvdToAvi but with system fifo * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static int DvdToAviFifo( GtkWidget * forme, int noPisteVideo, AudioMap_t * audioMap, SubMap_t * subMap, int format ) { GtkWidget * item; char * tmpDir = ConfigGetString( KEY_TEMP, "/tmp" ); char * isoDir = ConfigGetString( KEY_ISODIR, GetEnv( "HOME", "/tmp" ) ); int lastCellF = ConfigGetInt( KEY_GENERIQUE, 0 ); char targetDir[512]; char vobFile[1024]; char aviFile[1024]; char logFile[1024]; EncodingInfos_t infos; char * cmdLine; int i; char injectionFile[100]; const gchar * text; int ret = 0; int res; int nbSteps; Profile_t * profile = GetProfile( format ); long long fsize; int nbAudio = 0; Timer_t * timer = NULL; int bufferSize; long long memSize; int sectorsRead; DBG('b',fprintf(stderr,"%s: format: %d\n", __FUNCTION__, format );); if( !profile ) return(-1); if( profile->passNb != 1 ) return( -1 ); /* Multi-pass encoding not supported (profile.c error) */ /* Verify we have enought free space to extract thirst cell (crop detection)*/ fsize = FsFree( tmpDir ) - GetVobSize( noPisteVideo, 1 ); if( fsize < 0 ) { PlayError(); MessageBoxError( _("Pas assez de place sur %s\nIl manque %s octets !"), tmpDir, LLSize2Giga( -fsize ) ); return( -1 ); } /* Verify we have enought free space to encode */ fsize = FsFree( isoDir ) - profile->fileSize; if( fsize < 0 ) { PlayError(); MessageBoxError( _("Pas assez de place sur %s\nIl manque %s octets !"), isoDir, LLSize2Giga( -fsize ) ); return( -1 ); } /* Verify that we can create a file on isodir */ if( CanCreateFile( isoDir ) == 0 ) { PlayError(); MessageBoxError( _("Pas le droit de créer de fichier dans %s !"), isoDir ); return( -1 ); } /* Verify number of audio tracks selected */ for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { nbAudio++; DBG('b',fprintf(stderr,"%s: audioTrackId: %d=0x%x\n", __FUNCTION__, i, AudioStreamId( noPisteVideo, i ) );); } } if( nbAudio != 1 ) { PlayError(); MessageBoxError( _("Sélectionnez qu'un seule piste audio !") ); return( -1 ); } /* Reprise du titre du DVD */ item = lookup_widget(GTK_WIDGET(forme), "titre" ); text = gtk_entry_get_text( GTK_ENTRY(item) ); strcpy( TitreDvd, text ); FreeCellArray( &CellArray ); BuildCells( noPisteVideo, &CellArray, lastCellF, 1 ); InitGlobVars(); CreateAvancement( forme ); nbSteps = CountSelectedCells( &CellArray ) + 1 /* For crop detection */; SetTotalSteps( nbSteps ); DisplayAvancement( _("Copie de %d cellules.\n"), CountSelectedCells( &CellArray ) ); /* Create empty filesystem tree */ DisplayAvancement( _("Effacement des anciens fichiers.\n")); sprintf( injectionFile, "%s/vapinj.%d", tmpDir, getpid()); sprintf( targetDir, "%s/%s", tmpDir, TitreDvd ); sprintf( aviFile, "%s/%s.%s", isoDir, TitreDvd, profile->extension ); sprintf( vobFile, "%s/%s.vob", tmpDir, TitreDvd ); sprintf( logFile, "%s/%s.log", tmpDir, TitreDvd ); timer = StartTimer(); /* Rip first chapter in order to calculate crop parameters */ unlink( vobFile ); /* In case of previous failure in encoding stage */ OutFpVideo = fopen64( vobFile, "w" ); if( !OutFpVideo ) { PlayError(); MessageBoxError( _("Création de %s impossible !"), vobFile ); DestroyAvancement(); return( -1 ); } /* Setup vaporizer */ if( VaporizeInit( Readin, OutputFlux, 1 ) < 0 ) { ret = -1; goto out; } /* Setup tracks & factor */ for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { int id = GetAudioId( noPisteVideo, i ); DBG('b',fprintf(stderr,"%s: VaporizeAudio(%d)\n", __FUNCTION__, id );); VaporizeAudio( id ); } } Mpeg2Init(); /* Must be 100% */ VaporizeFactor( 1.0f, 0 ); VaporizeInjection( injectionFile ); /* Copy enought cells to do croping detection */ sectorsRead = 0; for( i = 0; i < CellArray.nbCells; i++ ) { Cell_t * c = CellArray.cells + i; if( CopyCell( c, targetDir ) < 0 ) { ret = -1; goto out; } if( c->selected ) { c->done = 0; sectorsRead += SECTOR_SZ( c ); if( sectorsRead >= MIN_SECTORS4CROP ) break; } } NewStep(); { int vVideoSize; int vAudioSize; int vSubpSize; int vNavSize; VaporizeSizes( &vVideoSize, &vAudioSize, &vSubpSize, &vNavSize ); DBG( 'b',fprintf(stderr,"VAPORIZE VIDEO SIZE: %lld\n", (long long)vVideoSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE AUDIO SIZE: %lld\n", (long long)vAudioSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE SUBP SIZE: %lld\n", (long long)vSubpSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE NAV SIZE: %lld\n", (long long)vNavSize * DVD_BLOCK_LEN );); } out:; VaporizeTerm(); if( OutFpVideo ) { fclose( OutFpVideo ); OutFpVideo = NULL; } Mpeg2End(); /* Here calculate bitrate */ if( !ret ) { infos.vobFile = vobFile; infos.aviFile = aviFile; infos.logFile = logFile; ComputeInfos( noPisteVideo, audioMap, profile, &infos ); /* Establish Audio Track Id to support -aid mencoder option */ for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { infos.audioTrackId = AudioStreamId( noPisteVideo, i ); infos.audioFormat = AudioFormat( noPisteVideo, i ); } } } unlink( vobFile ); if( ret == -1 ) { DestroyAvancement(); FreeAll(); PlayError(); return( ret ); } /* Ok then we can proceed with fifo method */ /* Create Fifo file */ ret = mkfifo( vobFile, 0666 ); if( ret == -1 ) { DBG( 'b',fprintf(stderr,"mkfifo(%s) failed errno: %d\n", vobFile, errno );); DestroyAvancement(); FreeAll(); PlayError(); return( ret ); } /* Build Cmd line and launch encoder */ cmdLine = ComputeCmdLine( profile, &infos, 1 ); strcat( cmdLine, " > /dev/null &" ); DBG( 'b',fprintf(stderr,"COMMAND LINE(%s)\n", cmdLine );); system( cmdLine ); /* Copy cells */ OutFpVideo = fopen64( vobFile, "w" ); if( !OutFpVideo ) { unlink( vobFile ); PlayError(); MessageBoxError( _("Création de %s impossible !"), vobFile ); DestroyAvancement(); return( -1 ); } InitGlobVars(); /* Ok we need to mask DVD latency, so having to allocate big buffers, so just verify that whe have enought RAM to do this */ memSize = CpuPhysMemSize(); if( memSize >= MEM_2GIG ) bufferSize = 200; /* 200 mo buffering */ else { if( memSize >= MEM_1GIG ) bufferSize = 100; /* 100 mo buffering */ else bufferSize = 50; /* 50 mo buffering */ } DBG( 'b',fprintf(stderr,"FlusherStart: bufferSize=%d\n", bufferSize );); if( FlusherStart( OutFpVideo, bufferSize ) < 0 ) { ret = -1; goto out2; } /* Setup vaporizer */ if( VaporizeInit( Readin, OutputFluxFifo, 1 ) < 0 ) { ret = -1; goto out2; } /* Setup tracks */ for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { int id = GetAudioId( noPisteVideo, i ); DBG('b',fprintf(stderr,"%s: VaporizeAudio(%d)\n", __FUNCTION__, id );); VaporizeAudio( id ); } } Mpeg2Init(); /* Must be 100% */ VaporizeFactor( 1.0f, 0 ); VaporizeInjection( injectionFile ); /* Copy each cell */ for( i = 0; i < CellArray.nbCells; i++ ) { Cell_t * c = CellArray.cells + i; if( CopyCell( c, targetDir ) < 0 ) { ret = -1; goto out2; } if( c->selected ) NewStep(); } { int vVideoSize; int vAudioSize; int vSubpSize; int vNavSize; VaporizeSizes( &vVideoSize, &vAudioSize, &vSubpSize, &vNavSize ); DBG( 'b',fprintf(stderr,"VAPORIZE VIDEO SIZE: %lld\n", (long long)vVideoSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE AUDIO SIZE: %lld\n", (long long)vAudioSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE SUBP SIZE: %lld\n", (long long)vSubpSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE NAV SIZE: %lld\n", (long long)vNavSize * DVD_BLOCK_LEN );); } out2:; VaporizeTerm(); if( FlusherStop() < 0 ) ret = -1; if( OutFpVideo ) { fclose( OutFpVideo ); OutFpVideo = NULL; } Mpeg2End(); /* Finish */ free( cmdLine ); unlink( vobFile ); DestroyAvancement(); FreeAll(); StopTimer( timer ); DBG( 'b',fprintf(stderr,"Encoding last: %f\n", ElapsedTimer(timer) );); FreeTimer( timer ); if( !ret ) PlaySuccess(); else PlayError(); if( ret == 0 ) { res = MessageBoxYesNo( _("Visualiser le fichier %s ?"), aviFile ); if( res == 1 ) VisuAvi( aviFile ); } unlink( logFile ); return( ret ); } dvd95/src/dvd2avi.h000066400000000000000000000014071140003301000142700ustar00rootroot00000000000000/***************************************************************************//** * @file dvd2avi.h * @date 2009/01/14 20:45:05 * @author jef-Linux * @brief * Brief description * @details * (c) ALPHA SOFT\n * encoding UTF8 !-UTF8-! * Long description *******************************************************************************/ #ifndef __DVD2AVI_H__ #define __DVD2AVI_H__ /*@$#[dvd2avi.c] global proto. AutoProtoSigV1.1. date: 2009/02/04 23:13:59 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* dvd2avi.c */ int DvdToAvi PROTO((GtkWidget *forme, int noPisteVideo, AudioMap_t *audioMap, SubMap_t *subMap, int format)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __DVD2AVI_H__ */ dvd95/src/dvd2vob.c000066400000000000000000001020011140003301000142620ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdbackup.c] DATE : 2006/01/0005 20:56:20 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #define __USE_LARGEFILE64 #define _LARGEFILE64_SOURCE #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #ifdef __APPLE__ /* fopen is 64-bit aware on Mac OS X */ #define fopen64(A,B) fopen(A,B) #endif #define CTEST(x) /***/ /* 0 : Normal operation 1 : Test file /tmp/xxx.vob 2 : Gen file /tmp/xxx.vob */ #define TEST_AUTHOR 0 #include "support.h" #include "const.h" #include "dvdformat.h" #include "dvdinfo.h" #include "message.h" #include "gconfig.h" #include "interface.h" #include "globals.h" #include "systools.h" #include "avancement.h" #include "uitools.h" #include "dvdtools.h" #include "dvdcopy.h" #include "ifo.h" #include "bswap.h" #include "vaporize.h" #include "ac.h" #include "dvdcell.h" #include "../dvdauthor/libauthor.h" #include "vapcontext.h" #include "mpeg2dec.h" static char TitreDvd[128]; static CellArray_t CellArray; static TitleArray_t TitleArray; static TitleSet_t * CurTS = NULL; static Cell_t * CurCell = NULL; static int CurVTS; static FILE * OutFp; static long long OutSize; static long long TotalSize; static int CurVOB; static uint32_t Position; static unsigned char TempBuf[DVD_VIDEO_LB_LEN * 2]; static int TempSize = 0; static double AuthorlPct = -1; static int AuthorFixStage = 0; static long long AuthorSize; /*@$#[dvd2vob.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:14:33 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* dvd2vob.c */ static void AddVobus PROTO((Cell_t *c, char *buffer, int len, uint32_t position, int curVob)); static int Output PROTO((unsigned char *buffer, int len, char *targetDir)); static void FindCellStart PROTO((Cell_t *c)); static void MakeRoom PROTO((VapContext_t *c, int size)); static uint32_t _FindNextVobu PROTO((VapContext_t *c)); static int Readin PROTO((void *parm, unsigned char *buffer, int size)); static int OutputFlux PROTO((void *parm, unsigned char *buffer, int size)); static int CopyCell PROTO((Cell_t *c, char *targetDir)); static void FreeAll PROTO((void)); static char *BuildAudioString PROTO((int noPisteVideo, AudioMap_t *audioMap)); static char *BuildFormatString PROTO((int noPisteVideo)); static char *BuildSubString PROTO((int noPisteVideo, SubMap_t *subMap)); static void AuthorProgress PROTO((char *string)); static int ExecuteDvdAuthor PROTO((int argc, char **argv, long long size)); static double ReCpuFactor PROTO((void)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ /*------------------------------------------------------------------------------ ADDVOBUS- Linux!jef 2006/01/16 22:58:40 ------------------------------------------------------------------------------*/ static void AddVobus( Cell_t * c, char * buffer, int len, uint32_t position, int curVob ) { Vobu_t * v; int i; for( i= 0 ; i < len ; i += DVD_BLOCK_LEN ) { if( isNavPack((unsigned char *)buffer+i) ) { v = c->va.vobus + c->numVobu; v->newSector = i/DVD_BLOCK_LEN + position; c->numVobu++; } else { int st; int packetType,id; st = IdentifyStream( (unsigned char *)buffer+i, &packetType); v = c->va.vobus + c->numVobu -1; switch (st) { case stAudio: id = GetStreamID(packetType); if( v->firstAudio[id] == -1 ) { v->firstAudio[id]= ((i/ DVD_BLOCK_LEN) + position) - v->newSector; } break; case stSubpicture: id = GetStreamID( packetType ); if ((id >=0) && (id<32)) { /* here 20 */ if( v->firstSubp[id] == -1 ) { v->firstSubp[id]= ((i / DVD_BLOCK_LEN) + position) - v->newSector; // fprintf(stderr,"v->firstSubp[%d]=%d\n", id, v->firstSubp[id] ); } } break; case stVideo: if( v->firstVideo == -1 ) { v->firstVideo = ((i / DVD_BLOCK_LEN) + position) - v->newSector; } // c->nbVideoNew++; break; } } v->size = position - v->newSector; c->lastSector = position; //!! DBG('b',fprintf(stderr,"AddVobus: %d size: %u\n", v->idx, v->size );); } } /*------------------------------------------------------------------------------ OUTPUT- Linux!jef 2006/01/03 21:05:50 ------------------------------------------------------------------------------*/ static int Output( buffer, len, targetDir ) unsigned char * buffer; int len; char * targetDir; { unsigned char * cBuff; if( !TempSize && len == DVD_VIDEO_LB_LEN ) { TempSize = len; cBuff = buffer; } else { //!! fprintf(stderr,"Output: len %d TempSize: %d\n", len, TempSize ); tc_memcpy( TempBuf + TempSize, buffer, len ); TempSize += len; cBuff = TempBuf; } if( TempSize >= DVD_VIDEO_LB_LEN ) { if( !isNavPack( cBuff ) ) { Mpeg2Demux( cBuff, DVD_VIDEO_LB_LEN ); } if( fwrite( cBuff, 1, DVD_VIDEO_LB_LEN, OutFp ) != DVD_VIDEO_LB_LEN ) return( -1 ); OutSize += DVD_VIDEO_LB_LEN; TotalSize += DVD_VIDEO_LB_LEN; SetTotalSize( TotalSize ); AddVobus( CurCell, (char *)cBuff, DVD_VIDEO_LB_LEN, Position, CurVOB ); CurTS->lastSector++; Position++; TempSize -= DVD_VIDEO_LB_LEN; if( TempSize > 0 ) tc_memcpy( cBuff, cBuff + DVD_VIDEO_LB_LEN, TempSize ); } return( 0 ); } /*------------------------------------------------------------------------------ FINDCELLSTART- Linux!jef 2006/01/16 21:43:42 ------------------------------------------------------------------------------*/ static void FindCellStart( Cell_t * c ) { if( !c->idx ) { c->startSector = 0; } else { Cell_t * p = &c[-1]; if( p->vts == c->vts ) c->startSector = p->lastSector + 1; else c->startSector = 0; /* !! */ } } /*------------------------------------------------------------------------------ MAKEROOM- Linux!jef 2006/01/24 22:46:53 ------------------------------------------------------------------------------*/ static void MakeRoom( VapContext_t * c, int size ) { // DBG('b',fprintf(stderr,"%s: size: %d\n", __FUNCTION__, size );); if( c->bufASize < (c->bufSize + size) ) { if( c->bufPtr != c->buf ) { memmove( c->buf, c->bufPtr, c->bufSize ); c->bufPtr = c->buf; } c->bufASize = c->bufSize + size; c->buf = realloc( c->buf, c->bufASize ); c->bufPtr = c->buf; } if( !c->bufSize ) { c->bufPtr = c->buf; return; } } /*------------------------------------------------------------------------------ _FINDNEXTVOBU- Linux!jef 2007/08/16 01:37:18 ------------------------------------------------------------------------------*/ static uint32_t _FindNextVobu( c ) VapContext_t * c; { vobu_admap_t * vobu_admap; uint32_t length, i; vobu_admap = c->cell->ifo->vts_vobu_admap; length = vobu_admap->last_byte + 1 - VOBU_ADMAP_SIZE; for( i = 0; i < length/sizeof(uint32_t); i++) { // DBG('b',fprintf(stderr,"%s: vobu at sector: %d\n", __FUNCTION__, vobu_admap->vobu_start_sectors[i] );); /* Vobu adress map seems to be ordered */ if( vobu_admap->vobu_start_sectors[i] > c->sector) { DBG('b',fprintf(stderr,"%s: returning next vobu at sector: %d\n", __FUNCTION__, vobu_admap->vobu_start_sectors[i] );); return( vobu_admap->vobu_start_sectors[i] ); } // if( vobu_admap->vobu_start_sectors[i] == c->sector) { // return( vobu_admap->vobu_start_sectors[i+1] ); // } } DBG('b',fprintf(stderr,"%s: nextvobu notfound for sector: %d\n", __FUNCTION__, c->sector );); return( SRI_END_OF_CELL ); } /*------------------------------------------------------------------------------ READIN- Linux!jef 2006/01/24 22:28:46 ------------------------------------------------------------------------------*/ static int Readin( void * parm, unsigned char * buffer, int size ) { VapContext_t * c = (VapContext_t *) parm; int readed = 0; int len; dsi_t dsi_pack; uint32_t nsectors; int badNavPack = 0; // DBG('b',fprintf(stderr,"%s: size: %d inBuf: %d\n", __FUNCTION__, size, c->bufSize );); if( c->bufSize ) { len = MyMin( size, c->bufSize ); tc_memcpy( buffer, c->bufPtr, len ); buffer += len; size -= len; c->bufPtr += len; c->bufSize -= len; readed += len; } if( !size ) { // DBG('b',fprintf(stderr,"%s: readed: %d\n", __FUNCTION__, readed );); return( readed ); } if( c->dsi_next_vobu == SRI_END_OF_CELL ) { if( readed ) return( readed ); // DBG('b',fprintf(stderr,"%s: EOF\n", __FUNCTION__ );); return( 0 ); /* EOF */ } /* read nav pack */ MakeRoom( c, DVD_VIDEO_LB_LEN ); len = MyDVDRead1Block( c->file_handle, c->sector, c->bufPtr ); if( len == -1 ) return( -1 ); /* parse contained DSI pack */ navRead_DSI( &dsi_pack, c->bufPtr + DSI_START_BYTE ); if( len == 0 || dsi_pack.dsi_gi.nv_pck_lbn != c->sector ) { CreateDummyNavPack( c->bufPtr, c->sector ); badNavPack = 1; c->dsi_next_vobu = _FindNextVobu( c ); } len = DVD_VIDEO_LB_LEN; c->bufSize += len; Avancement( len ); if( AvancementUi() < 0 ) return( -1 ); if( isNavPack( c->bufPtr ) ) { Vobu_t * v; CurCell->oldLastSector = c->sector; v = NewVobu( &CurCell->va, c->sector ); } if( badNavPack ) { MakeRoom( c, 1 * DVD_VIDEO_LB_LEN ); CreateDummyPack( c->bufPtr + DVD_VIDEO_LB_LEN ); nsectors = 1; } else { int i; unsigned char * cBuff; nsectors = dsi_pack.dsi_gi.vobu_ea; if( !nsectors ) { /* Protected dvd ? */ DBG('b',fprintf(stderr,"%s: no sectors in DSI !\n", __FUNCTION__);); return( 0 ); /* EOF */ } c->dsi_next_vobu = dsi_pack.vobu_sri.next_vobu; MakeRoom( c, nsectors*DVD_VIDEO_LB_LEN ); cBuff = c->bufPtr + DVD_VIDEO_LB_LEN; /* read VOBU */ for( i = 0; i < nsectors; i++ ) { len = MyDVDRead1Block( c->file_handle, c->sector + 1 + i, cBuff ); // fprintf(stderr,"PACK: MyDVDRead1Block(%d)=%d\n", c->sector+1+i, len ); if( len == -1 ) return( -1 ); if( len == 0 ) { CreateDummyPack( cBuff ); nsectors = 1; break; } cBuff += DVD_VIDEO_LB_LEN; } } len = nsectors * DVD_VIDEO_LB_LEN; c->bufSize += len; Avancement( len ); if( AvancementUi() < 0 ) return( -1 ); if( badNavPack ) { c->sector = c->dsi_next_vobu; c->dsi_next_vobu = 0; } else c->sector += (c->dsi_next_vobu & 0x7fffffff); return( readed + Readin( parm, buffer, size ) ); } /*------------------------------------------------------------------------------ OUTPUTFLUX- Linux!jef 2006/01/24 23:07:28 ------------------------------------------------------------------------------*/ static int OutputFlux( void * parm, unsigned char * buffer, int size ) { VapContext_t * c = (VapContext_t *) parm; int writen = 0; // DBG('b',fprintf(stderr,"%s: size: %d\n", __FUNCTION__, size );); while( size > 0 ) { int len = MyMin( size, DVD_VIDEO_LB_LEN ); if( Output( buffer, len, c->targetDir ) < 0 ) { return( -1 ); } buffer += len; size -= len; writen += len; } return( writen ); } /*------------------------------------------------------------------------------ COPYCELL- Linux!jef 2005/12/28 22:01:08 ------------------------------------------------------------------------------*/ static int CopyCell( Cell_t * c, char * targetDir ) { uint32_t size; dvd_file_t * file_handle; Cell_t * cell; VapContext_t vc; long long lSize; int ret; if( !OutFp ) { char vobFile[512]; int menuSize = 0; uint32_t startSector; sprintf( vobFile, "%s.vob", targetDir ); OutFp = fopen64( vobFile, "w" ); if( !OutFp ) return( -1 ); OutSize = 0; CurVOB = 1; CurVTS = c->vts; if( CurTS ) { startSector = CurTS->startSector + CurTS->lastSector + 1; /* !! */ } else { startSector = Ifo_zero->vmgi_mat->vmg_last_sector + 1; } CurTS = NewTitleSet( &TitleArray ); CurTS->vts = CurVTS; CurTS->startSector = startSector; CurTS->lastSector += menuSize; CurTS->ifo = Ifo[CurVTS]; } cell = NewCell( &CurTS->ca ); cell->vts = CurVTS; cell->pgc = c->pgc; FindCellStart( cell ); CurCell = cell; CurCell->oldStartSector = c->startSector; CurCell->oldLastSector = c->lastSector; Position = CurCell->startSector; if( !c->selected ) return( 0 ); DBG('b',fprintf(stderr,"%s: startSector: %u lastSector: %u vts: %d\n", __FUNCTION__, c->startSector, c->lastSector, c->vts );); size = c->lastSector - c->startSector; DisplayAvancement( _("Copie de la cellule %d (%d secteurs)\n"), c->chapter + 1, size); InitAvancement( size ); file_handle = DVDOpenFile( Dvd, c->vts, DVD_READ_TITLE_VOBS); if( !file_handle ) { return( -1 ); } memset( &vc, 0, sizeof(vc)); /* Initialize Vaporize context */ vc.file_handle = file_handle; vc.sector = c->startSector; vc.cell = c; vc.targetDir = targetDir; // lSize = (long long) size * (long long) DVD_VIDEO_LB_LEN; /* Vaporize need total sector size */ lSize = CountTotalSectors( &CellArray ) * (long long) DVD_VIDEO_LB_LEN; ret = Vaporize( lSize, &vc ); if( vc.buf ) { free( vc.buf ); } DVDCloseFile( file_handle ); c->done = 1; return( ret ); } /*------------------------------------------------------------------------------ FREEALL- Linux!jef 2006/01/16 22:10:25 ------------------------------------------------------------------------------*/ static void FreeAll() { int i; CurTS = NULL; CurCell = NULL; if( TitleArray.nbTitles ) { for( i = 0; i < TitleArray.nbTitles; i++ ) { FreeCellArray( &TitleArray.titles[i].ca ); } free( TitleArray.titles ); TitleArray.titles = NULL; TitleArray.nbTitles = 0; } FreeCellArray( &CellArray ); } /*------------------------------------------------------------------------------ BUILDAUDIOSTRING- Linux!jef 2006/02/16 21:55:22 ------------------------------------------------------------------------------*/ static char * BuildAudioString( int noPisteVideo, AudioMap_t * audioMap ) { char audioString[1024]; int i; *audioString = 0; for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { char * lang; if( *audioString ) strcat( audioString,"," ); strcat( audioString, AudioFormat( noPisteVideo, i )); strcat( audioString, "+" ); lang = AudioLang( noPisteVideo, i ); if( !*lang ) strcat( audioString, "nolang" ); else strcat( audioString, AudioLang( noPisteVideo, i ) ); } } return( strdup( audioString ) ); } /*------------------------------------------------------------------------------ BUILDFORMATSTRING- Linux!jef 2007/01/29 22:39:05 ------------------------------------------------------------------------------*/ static char * BuildFormatString( int noPisteVideo ) { char *video_format[2] = {"ntsc", "pal"}; char *aspect_ratio[4] = {"4:3", "16:9", "4:3", "16:9"}; char *video_height[4] = {"480", "576", "576", "576"}; char *video_width[4] = {"720", "704", "352", "352"}; char result[1024]; ifo_handle_t * ifo = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]; vtsi_mat_t *vtsi_mat = ifo->vtsi_mat; video_attr_t *video_attr; video_attr = &vtsi_mat->vts_video_attr; if( *aspect_ratio[video_attr->display_aspect_ratio] == '4' ) sprintf( result, "%s+%s+%sx%s", video_format[video_attr->video_format], aspect_ratio[video_attr->display_aspect_ratio], video_width[video_attr->picture_size], video_height[video_attr->video_format] ); else sprintf( result, "%s+%s+nopanscan+%sx%s", video_format[video_attr->video_format], aspect_ratio[video_attr->display_aspect_ratio], video_width[video_attr->picture_size], video_height[video_attr->video_format] ); DBG('c',fprintf(stderr,"%s: (%s)\n", __FUNCTION__, result );); return( strdup( result ) ); } /*------------------------------------------------------------------------------ BUILDSUBSTRING- Linux!jef 2006/02/16 21:55:22 ------------------------------------------------------------------------------*/ static char * BuildSubString( int noPisteVideo, SubMap_t * subMap ) { char subString[1024]; int i; *subString = 0; for( i = 0; i < MAX_SUB_TRACK; i++ ) { if( subMap->subTracks[i] ) { if( *subString ) strcat( subString,"," ); strcat( subString, SubLang( noPisteVideo, i ) ); } } return( strdup( subString ) ); } #if 0 /*------------------------------------------------------------------------------ _READLINE- Linux!jef 2006/02/16 22:58:23 ------------------------------------------------------------------------------*/ static int _readline( FILE * fp, char * line, int size ) { int readed = 0; size--; while( size ) { int c = fgetc( fp ); if( c == EOF ) break; if( c == '\r' ) c = '\n'; *line++ = (char)c; readed++; size--; if( c == '\n' ) break; } *line = 0; return( readed ); } /*------------------------------------------------------------------------------ EXECUTEDVDAUTHOR- Linux!jef 2005/12/20 22:17:17 ------------------------------------------------------------------------------*/ static int ExecuteDvdAuthor( char * sysCmd, long long size ) { FILE * fp; char line[1024]; int res = 0; double lPct = -1; int fixStage = 0; InitAvancement(0); /* re-direct stderr */ strcat( sysCmd, " 2>&1" ); DBG('c',fprintf(stderr,"%s: executing (%s) size: %lld\n", __FUNCTION__, sysCmd, size );); fp = my_popen( sysCmd, "r" ); if( !fp ) return( -1 ); setbuf( fp, NULL ); while( 1 ) { char * p; if( !_readline( fp, line, sizeof(line))) break; if( !*line ) continue; //!!fprintf(stderr,"line(%s)\n", line ); p = strchr( line, '%' ); if( p ) { double pct; if( !fixStage ) { fixStage = 1; DisplayAvancement( _("Fixation de la structure du DVD.\n") ); InitAvancement(0); } p = strrchr( line, ' ' ); pct = atoi( p + 1 ); pct /= 100; if( AvancementUi2( pct ) < 0 ) { res = -1; break; } continue; } p = strrchr( line, 'U' ); /* find VOBU */ if( !p ) continue; p = strstr( p, "at " ); if( p ) { long long doneSize; double pct; p += 3; doneSize = atoi( p ); doneSize *= 1024 * 1024; pct = (double)doneSize / (double)size; // fprintf(stderr,"%lld / %lld = %f lPct: %f\n", doneSize, size, pct, lPct ); if( pct > lPct ) { if( AvancementUi2( pct ) < 0 ) { res = -1; break; } lPct = pct; } } } my_pclose( fp ); return( res ); } #else /*------------------------------------------------------------------------------ AUTHORPROGRESS- Linux!jef 2006/02/24 22:27:02 ------------------------------------------------------------------------------*/ static void AuthorProgress( char * string ) { char * p; DBG('b',fprintf(stderr,"%s\n", string );); p = strchr( string, '%' ); if( p ) { double pct; if( !AuthorFixStage ) { AuthorFixStage = 1; DisplayAvancement( _("Fixation de la structure du DVD.\n") ); InitAvancement(0); } p = strrchr( string, ' ' ); pct = atoi( p + 1 ); pct /= 100; if( AvancementUi2( pct ) < 0 ) { ExitAuthor(); } return; } p = strrchr( string, 'U' ); /* find VOBU */ if( !p ) return; p = strstr( p, "at " ); if( p ) { long long doneSize; double pct; p += 3; doneSize = atoi( p ); doneSize *= 1024 * 1024; pct = (double)doneSize / (double)AuthorSize; // fprintf(stderr,"%lld / %lld = %f lPct: %f\n", doneSize, AuthorSize, pct, lPct ); if( pct > AuthorlPct ) { if( AvancementUi2( pct ) < 0 ) { ExitAuthor(); } AuthorlPct = pct; } } //!! DisplayAvancement( "%s\n", string ); } /*------------------------------------------------------------------------------ EXECUTEDVDAUTHOR- Linux!jef 2005/12/20 22:17:17 ------------------------------------------------------------------------------*/ static int ExecuteDvdAuthor( int argc, char ** argv, long long size ) { int res; InitAvancement(0); SetStatusFunction( AuthorProgress ); AuthorFixStage = 0; AuthorlPct = -1; AuthorSize = size; res = DvdAuthorMain( argc, argv ); if( res ) res = -1; return( res ); } #endif /*------------------------------------------------------------------------------ RECPUFACTOR- Linux!jef 2006/02/20 22:30:41 ------------------------------------------------------------------------------*/ static double ReCpuFactor(void) { double dFactor; long long videoSize; long long audioSize; long long subpSize; long long navSize; long long remainVideoSize; long long remainAudioSize; long long remainSubpSize; long long remainNavSize; long long remainSize; long long tSize; int vVideoSize; int vAudioSize; int vSubpSize; int vNavSize; int totalSectors = 0; int doneSectors = 0; int remainSectors; int i; double pct; /* Compute total sectors size */ for( i = 0; i < CellArray.nbCells; i++ ) { Cell_t * c = CellArray.cells + i; if( c->selected ) totalSectors += SECTOR_SZ(c); if( c->done ) doneSectors += SECTOR_SZ(c); } /* On attend d'avoir traiter un minimum de choses avant d'aligner le facteur */ pct = (double)doneSectors / (double)totalSectors; if( pct < DYNQUAL_PCT ) return( 0 ); VaporizeSizes( &vVideoSize, &vAudioSize, &vSubpSize, &vNavSize ); tSize = (long long)vVideoSize * DVD_BLOCK_LEN; tSize += (long long)vAudioSize * DVD_BLOCK_LEN; tSize += (long long)vSubpSize * DVD_BLOCK_LEN; tSize += (long long)vNavSize * DVD_BLOCK_LEN; DBG( 'b',fprintf(stderr,"0) VAPORIZE VIDEO SIZE: %s\n", LLSize2Giga((long long)vVideoSize * DVD_BLOCK_LEN ));); DBG( 'b',fprintf(stderr,"0) VAPORIZE AUDIO SIZE: %s\n", LLSize2Giga((long long)vAudioSize * DVD_BLOCK_LEN ));); DBG( 'b',fprintf(stderr,"0) VAPORIZE SUBP SIZE: %s\n", LLSize2Giga((long long)vSubpSize * DVD_BLOCK_LEN ));); DBG( 'b',fprintf(stderr,"0) VAPORIZE NAV SIZE: %s\n", LLSize2Giga((long long)vNavSize * DVD_BLOCK_LEN ));); DBG( 'b',fprintf(stderr,"THEORICAL TOTAL SIZE: %s\n", LLSize2Giga(tSize));); DBG( 'b',fprintf(stderr,"PRATICAL TOTAL SIZE : %s\n", LLSize2Giga(TotalSize));); VaporizePacks( &vVideoSize, NULL ); DBG( 'b',fprintf(stderr,"VAPORIZE VIDEO SIZE: %s\n", LLSize2Giga((long long)vVideoSize * DVD_BLOCK_LEN ));); DBG( 'b',fprintf(stderr,"VAPORIZE AUDIO SIZE: %s\n", LLSize2Giga((long long)vAudioSize * DVD_BLOCK_LEN ));); DBG( 'b',fprintf(stderr,"VAPORIZE SUBP SIZE: %s\n", LLSize2Giga((long long)vSubpSize * DVD_BLOCK_LEN ));); DBG( 'b',fprintf(stderr,"VAPORIZE NAV SIZE: %s\n", LLSize2Giga((long long)vNavSize * DVD_BLOCK_LEN ));); videoSize = ( (long long)vVideoSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)doneSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL VIDEOSIZE: %s\n", LLSize2Giga(videoSize));); audioSize = ( (long long)vAudioSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)doneSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL AUDIOSIZE: %s\n", LLSize2Giga(audioSize));); subpSize = ( (long long)vSubpSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)doneSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL SUBSIZE: %s\n", LLSize2Giga(subpSize));); navSize = ( (long long)vNavSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)doneSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL NAVSIZE: %s\n", LLSize2Giga(navSize));); /* On calcul ce qu'il reste a faire */ remainSectors = totalSectors - doneSectors; remainVideoSize = videoSize - ((long long)vVideoSize * (long long)DVD_BLOCK_LEN); remainAudioSize = audioSize - ((long long)vAudioSize * (long long)DVD_BLOCK_LEN); remainSubpSize = subpSize - ((long long)vSubpSize * (long long)DVD_BLOCK_LEN); remainNavSize = navSize - ((long long)vNavSize * (long long)DVD_BLOCK_LEN); remainSize = GetWantedBytes() - TotalSize; DBG( 'b',fprintf(stderr,"3) REMAIN VIDEOSIZE: %s\n", LLSize2Giga(remainVideoSize));); DBG( 'b',fprintf(stderr,"3) REMAIN AUDIOSIZE: %s\n", LLSize2Giga(remainAudioSize));); DBG( 'b',fprintf(stderr,"3) REMAIN SUBSIZE: %s\n", LLSize2Giga(remainSubpSize));); DBG( 'b',fprintf(stderr,"3) REMAIN NAVSIZE: %s\n", LLSize2Giga(remainNavSize));); DBG( 'b',fprintf(stderr,"3) REMAIN DVDSIZE: %s\n", LLSize2Giga(remainSize));); /* Les packets de navigations sont de la video non compressible ! */ dFactor = (double)( remainVideoSize ) / (double)( remainSize - remainAudioSize - remainSubpSize - remainNavSize ); DBG( 'b',fprintf(stderr,"dFactor0: %f\n", dFactor );); if (dFactor < 1) dFactor = 1; pct = (1 - (dFactor - 1)) * 100; DBG( 'b',fprintf(stderr,"New Quality: %f\n", pct );); return( dFactor ); } /*------------------------------------------------------------------------------ COPYDVD- Linux!jef 2005/12/12 22:36:50 ------------------------------------------------------------------------------*/ int CopyDvd( GtkWidget * forme, int noPisteVideo, AudioMap_t * audioMap, SubMap_t * subMap, double factor ) { GtkWidget * item; char * tmpDir = ConfigGetString( KEY_TEMP, "/tmp" ); char * isoDir = ConfigGetString( KEY_ISODIR, GetEnv( "HOME", "/tmp" ) ); int lastCellF = ConfigGetInt( KEY_GENERIQUE, 0 ); char targetDir[512]; char sysCmd[10240]; /*KK:*/ char vobFile[1024]; char pFile[512]; char * chapitreStr; int i; long long fsize; char injectionFile[100]; const gchar * text; int remove = 1; int res; int ret = 0; int nbSteps; int dynQual = 0; int burnF = ConfigGetInt( KEY_GRAVER, 0 ); int burnTool = BURNTOOL_NONE; char isoName[1024]; int isoF = ConfigGetInt( KEY_MKISO, 0 ); int buildImageF = 0; int removeImageF = 0; DBG('b',fprintf(stderr,"%s: factor: %f\n", __FUNCTION__, factor );); #if TEST_AUTHOR == 0 /* Verify we have enought free space to run */ fsize = FsFree( tmpDir ) - GetWorkBytes(); if( fsize < 0 ) { PlayError(); MessageBoxError( _("Pas assez de place sur %s\nIl manque %s octets !"), tmpDir, LLSize2Giga( -fsize ) ); return( -1 ); } /* Verify we have enought free space to run */ if( ConfigGetInt( KEY_MKISO, 0 ) ) { fsize = FsFree( isoDir ) - GetWantedBytes(); if( fsize < 0 ) { DBG('b',fprintf(stderr,"FsFree(%lld) GetWantedBytes(%lld)\n", FsFree( isoDir ), GetWantedBytes() );); PlayError(); MessageBoxError( _("Pas assez de place sur %s\nIl manque %s octets !"), isoDir, LLSize2Giga( -fsize ) ); return( -1 ); } } #endif /* Verify burn tool presence */ if( burnF ) { burnTool = BurnTool(); if( burnTool == BURNTOOL_NONE ) { PlayError(); MessageBoxError( _("Aucun utilitaire de gravure install !") ); return( -1 ); } } /* Reprise du titre du DVD */ item = lookup_widget(GTK_WIDGET(forme), "titre" ); text = gtk_entry_get_text( GTK_ENTRY(item) ); strcpy( TitreDvd, text ); FreeCellArray( &CellArray ); BuildCells( noPisteVideo, &CellArray, lastCellF, 0 ); CurVTS = 0; CurVOB = 0; OutFp = NULL; OutSize = 0; TotalSize = 0; CreateAvancement( forme ); nbSteps = CountSelectedCells( &CellArray ) + 1; /* +1 pour final dvdauthor */ if( ConfigGetInt( KEY_MKISO, 0 ) ) nbSteps++; SetTotalSteps( nbSteps ); DisplayAvancement( _("Copie de %d cellules.\n"), CountSelectedCells( &CellArray ) ); /* Create empty filesystem tree */ DisplayAvancement( _("Effacement des anciens fichiers.\n")); sprintf( targetDir, "%s/%s", tmpDir, TitreDvd ); switch( DirExist( targetDir ) ) { case 1 : res = MessageBoxYesNo( _("Le repertoire %s existe. L'effacer ?"), targetDir ); if( res != 1 ) { ret = -1; goto out; } sprintf( sysCmd,"rm -rf \"%s/VIDEO_TS\"", targetDir ); res = system( sysCmd ); sprintf( sysCmd,"rm -rf \"%s/AUDIO_TS\"", targetDir ); res = system( sysCmd ); break; case -1 : MessageBoxError( _("%s n'est pas un repertoire ! Veuillez l'effacer."), targetDir ); ret = -1; goto out; break; } sprintf( sysCmd,"mkdir -p \"%s/VIDEO_TS\"", targetDir ); res = system( sysCmd ); sprintf( sysCmd,"mkdir -p \"%s/AUDIO_TS\"", targetDir ); res = system( sysCmd ); sprintf( injectionFile, "%s/vapinj.%d", tmpDir, getpid()); sprintf( vobFile, "%s/%s.vob", tmpDir, TitreDvd ); sprintf( pFile,"%s/palette.txt", tmpDir ); SavePalette( noPisteVideo, pFile ); #if TEST_AUTHOR == 1 ret = 0; goto author; #endif /* Setup vaporizer */ if( VaporizeInit( Readin, OutputFlux, 1 ) < 0 ) { ret = -1; goto out; } /* Setup tracks & factor */ for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { int id = GetAudioId( noPisteVideo, i ); DBG('b',fprintf(stderr,"%s: VaporizeAudio(%d)\n", __FUNCTION__, id );); VaporizeAudio( id ); } } for( i = 0; i < MAX_SUB_TRACK; i++ ) { if( subMap->subTracks[i] ) { int id = GetSubId( noPisteVideo, i ); DBG('b',fprintf(stderr,"%s: VaporizeSubp(%d)\n", __FUNCTION__, id );); VaporizeSubp( id ); } } if( ConfigGetInt( KEY_QUALDYN, 0 ) ) { DisplayAvancement( _("Ajustement automatique de la qualité.\n")); dynQual = 1; } Mpeg2Init(); VaporizeFactor( factor, dynQual ); VaporizeInjection( injectionFile ); /* Copy cells */ for( i = 0; i < CellArray.nbCells; i++ ) { Cell_t * c = CellArray.cells + i; if( CopyCell( c, targetDir ) < 0 ) { ret = -1; goto out; } if( c->selected ) { NewStep(); if( dynQual ) { double nFactor = ReCpuFactor(); if( nFactor ) { double pct; VaporizeFactor( nFactor, 0 ); if( MyAbs( factor - nFactor ) >= 0.01 ) { pct = (1 - (nFactor - 1)) * 100; DisplayAvancement( _("Ajustement de qualité à %.2f%%.\n"), pct ); } factor = nFactor; } } } } { int vVideoSize; int vAudioSize; int vSubpSize; int vNavSize; VaporizeSizes( &vVideoSize, &vAudioSize, &vSubpSize, &vNavSize ); DBG( 'b',fprintf(stderr,"VAPORIZE VIDEO SIZE: %lld\n", (long long)vVideoSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE AUDIO SIZE: %lld\n", (long long)vAudioSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE SUBP SIZE: %lld\n", (long long)vSubpSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE NAV SIZE: %lld\n", (long long)vNavSize * DVD_BLOCK_LEN );); } if( TotalSize > GetMaxBytes() ) { int res; res = MessageBoxYesNo( _("Fichier VOB trop gros (%s) !\nDésirez vous continuer ?"), LLSize2Giga(TotalSize)); if( res != 1 ) { ret = -1; goto out; } } out:; VaporizeTerm(); if( OutFp ) { fclose( OutFp ); OutFp = NULL; } Mpeg2End(); #if TEST_AUTHOR == 2 goto out2; #endif #if TEST_AUTHOR == 1 author:; #endif if( !ret ) { /* DvdAuthor */ char * args[20]; char * tmp; int argc = 0; DisplayAvancement( _("Création de la structure du DVD.\n") ); chapitreStr = BuildChapitreString( noPisteVideo ); args[argc++] = strdup( "dvdauthor" ); args[argc++] = strdup( "-t" ); tmp = BuildAudioString( noPisteVideo, audioMap ); if( tmp ) { if( *tmp ) { args[argc++] = strdup( "-a" ); args[argc++] = tmp; } else free( tmp ); } args[argc++] = strdup( "-c" ); args[argc++] = chapitreStr; args[argc++] = strdup( "-v" ); args[argc++] = BuildFormatString( noPisteVideo ); // strdup( "pal+16:9+nopanscan+720x576" ); args[argc++] = strdup( "-p" ); args[argc++] = strdup( pFile ); tmp = BuildSubString( noPisteVideo, subMap ); if( tmp ) { if( *tmp ) { args[argc++] = strdup( "-s" ); args[argc++] = tmp; } else free( tmp ); } args[argc++] = strdup( "-o" ); args[argc++] = strdup( targetDir); args[argc++] = strdup( "-f" ); args[argc++] = strdup( vobFile ); args[argc] = NULL; for( i = 0; i < argc; i++ ) { DBG('b',fprintf(stderr,"%s\n", args[i] );); } TotalSize = FileSize64( vobFile ); res = ExecuteDvdAuthor( argc, args, TotalSize ); for( i = 0; i < argc; i++ ) free( args[i] ); if( !res ) { /* Generate TOC */ char * args[20]; int argc = 0; DisplayAvancement( _("Ajout de la table des matières.\n") ); args[argc++] = strdup( "dvdauthor" ); args[argc++] = strdup( "-T" ); args[argc++] = strdup( "-o" ); args[argc++] = strdup( targetDir ); SetStatusFunction( NULL ); res = DvdAuthorMain( argc, args ); if( res ) ret = -1; for( i = 0; i < argc; i++ ) free( args[i] ); NewStep(); } else ret = -1; } #if TEST_AUTHOR == 0 unlink( pFile ); unlink( vobFile ); if( !ret ) { /* OK Ask if the user want to see the movie */ { int msgRet = MessagePhase2( targetDir ); switch( msgRet ) { case PHASE2_ARRIERE : res = -1; goto out; case PHASE2_AVANCER : break; } } /* OK iso image an burn stage */ if( isoF ) buildImageF = 1; if( burnF && burnTool == BURNTOOL_BRASERO ) { /* Have to make a temporary image file */ buildImageF = 1; if( !isoF ) removeImageF = 1; } if( buildImageF ) { sprintf( isoName, "%s/%s.iso", isoDir, TitreDvd ); switch( FileExist( isoName ) ) { case 1 : res = MessageBoxYesNo( _("Le fichier %s existe. Le re-creer ?"), isoName ); if( res != 1 ) break; case 0 : DisplayAvancement( _("Construction de l'image ISO.\n") ); sprintf( sysCmd, "%s -dvd-video -V \"%s\" -o \"%s\" \"%s\"", GetMkIsoTool(), TitreDvd, isoName, targetDir ); ExecuteMkIsoFs( sysCmd ); NewStep(); break; case -1 : MessageBoxError( _("%s n'est pas un fichier ! Veuillez l'effacer."), isoName ); ret = -1; goto out; break; } } /* Burn DVD if needed */ if( burnF ) { DisplayAvancement( _("Gravage sur DVD.\n") ); DvdClose(); if( burnTool == BURNTOOL_BRASERO ) res = BurnIsoFile( burnTool, Device, isoName ); else res = BurnVideoDir( burnTool, Device, targetDir ); DvdOpen( Device ); } if( removeImageF ) unlink( isoName ); } /* Nettoyage: keep VIDEO directory only if we do not build image, nor burn dvd */ if( !ret && !isoF && !burnF ) remove = 0; if( remove ) { DisplayAvancement( _("Effacement des fichiers.\n")); sprintf( sysCmd, "rm -rf \"%s\"", targetDir ); res = system( sysCmd ); } #endif #if TEST_AUTHOR == 2 out2:; #endif DestroyAvancement(); FreeAll(); if( !ret ) PlaySuccess(); else PlayError(); return( ret ); } dvd95/src/dvd2vob.h000066400000000000000000000014561140003301000143030ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvd2vob.h] DATE : 2006/02/0015 22:17:31 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __DVD2VOB_H__ #define __DVD2VOB_H__ #include "dvdformat.h" /*@$#[dvd2vob.c] global proto. AutoProtoSigV1.1. date: 2009/02/04 23:14:41 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* dvd2vob.c */ int CopyDvd PROTO((GtkWidget *forme, int noPisteVideo, AudioMap_t *audioMap, SubMap_t *subMap, double factor)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __DVD2VOB_H__ */ dvd95/src/dvd9548.png000066400000000000000000000107671140003301000144060ustar00rootroot00000000000000PNG  IHDR00WbKGD pHYs 7˭IDATxyWy9z;3w dIŦ @v c D6RVRQ U#HR88(Q!+!6Vb (@$.}{zsΛ?zf@@Wuuyys仹~5ٔh*RȐonO:p1Rԓ@fð0+-LhYjzڣ3oϿ0QKcI_%=Of "q 4$r:(H,Yl(E FPdO"rPd#lH+$ ҳL$ eho;cԃ꬙ B"Ұ'8ũQ V#LNkjy68pDr2H<cZɘLY9^Q=eͧ tVb|){Yg?ʲrو 8@ C.Wrbzgq҈s GC'@jO (TAa}-a eb)ed;٧~hK}kB搔 }Zlk=5:,{e E1&b{oJ૟tݤZbHP1!7C%UUΞ,7I( 5K?ҮKƧsΎrBFTpsOj (17T{߲9;_.ji LꆦB@D0`DpΑ& YhZs7z]w=m}2u^sPtVz±F37RU)RhB{y sk2WMяGOyͭ[fe/ % |YbZK$$M;GiJ(y2<6w>}ꓟ /cbG?fi(%Y<}ҞCsWwj/=hxs[5U t0T6bYK>)Ҕ9bp<շ'8z^WDZp2y.m[P',pct+v^F3y0"oϒZXc<޻Q4&I0Ɛn$sZyN8:x睵= Z;+H(A"Ef̷НSV"gq`JoI q5Ђ~ެ? XiXطNGNq.M1`/~$6x,1!.yYJDuD LcGPǎ;%L,S6KglYdIc?IbꍦZQ-:qǙ9}p9F^4w~6ILm;3"ش"NsH3rՋ N 8uk\3? I1>6xDUK@#UQ@0%B ]* 2VH+EaW`RU^N>rvc\ +KY׌uL#Iދ/W`kcv<:`QtCI\nDf<2,A6qs,>4T!RM,K4eq`(cn޾eIޯ;RK>j$M "6.A!ZTq pj3VNi=,Ѧ9 {K`40jU!5IUZ wsF?%V C1Gb( j1AqE~D<˘th #endif #include #include #include #include #include #include #include #define CTEST(x) /***/ #define VERIF_NAV 0 #include "support.h" #include "const.h" #include "dvdformat.h" #include "dvdinfo.h" #include "message.h" #include "gconfig.h" #include "interface.h" #include "globals.h" #include "systools.h" #include "avancement.h" #include "uitools.h" #include "dvdtools.h" #include "dvdcopy.h" #include "ifo.h" #include "bswap.h" #include "vaporize.h" #include "ac.h" #include "dvdcell.h" #include "rdtsc.h" #include "mpeg2dec.h" #include "badsect.h" #include "vapcontext.h" static char TitreDvd[128]; static CellArray_t CellArray; static TitleArray_t TitleArray; static TitleSet_t * CurTS = NULL; static Cell_t * CurCell = NULL; static int CurVTS; static FILE * OutFp; static long OutSize; static long long TotalSize; static int CurVOB; static uint32_t Position; static unsigned char TempBuf[DVD_VIDEO_LB_LEN * 2]; static int TempSize = 0; static int SimulF = 0; static int NoMenuF = 0; static long long OutNullSize; static long VobSize[100]; static int MenuCopied[MAX_VTS]; /*@$#[dvdbackup.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:15:26 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* dvdbackup.c */ static int CopyMenu PROTO((int vts, char *targetDir)); static void AddVobus PROTO((Cell_t *c, char *buffer, int len, uint32_t position, int curVob)); static int CopyEmptyPgc PROTO((Cell_t *cell)); static int Output PROTO((unsigned char *buffer, int len, char *targetDir)); static void FindCellStart PROTO((Cell_t *c)); static Vobu_t *_FindVobu PROTO((VobuArray_t *va, uint32_t sector, int start, int end)); static Vobu_t *FindVobu PROTO((Cell_t *c, uint32_t sector)); static Vobu_t *RemapVobu PROTO((uint32_t *value)); static int UpdateMainIfo PROTO((char *targetDir)); static int UpdateIfo PROTO((char *targetDir)); static void RemapOffset PROTO((uint32_t _sector, uint32_t *_offset, int _dir)); static int UpdateVob PROTO((int vts, int vobNum, long fSize, char *targetDir)); static void MakeRoom PROTO((VapContext_t *c, int size)); static uint32_t _FindNextVobu PROTO((VapContext_t *c)); static int Readin PROTO((void *parm, unsigned char *buffer, int size)); static int OutputFlux PROTO((void *parm, unsigned char *buffer, int size)); static int CopyCell PROTO((Cell_t *c, char *targetDir)); static void FreeAll PROTO((void)); static int UpdateVobs PROTO((char *targetDir)); static int MenuSize PROTO((Cell_t *c)); static double ReCpuFactor PROTO((void)); static int OutputNull PROTO((void *parm, unsigned char *buffer, int size)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ /*------------------------------------------------------------------------------ COPYMENU- Linux!jef 2005/12/28 22:06:55 Retourne la taille du menu en secteurs, -1 erreur ------------------------------------------------------------------------------*/ static int CopyMenu( int vts, char * targetDir ) { char vobFile[512]; uint32_t size; FILE * fp = NULL; dvd_file_t * dvd_file; char buffer[DVD_VIDEO_LB_LEN]; uint32_t sector; int ret = 0; MenuCopied[vts] = 1; if( NoMenuF ) return( 0 ); /* uniquement en calcul de la qualite */ if( !vts ) { sprintf( vobFile, "%s/VIDEO_TS/VIDEO_TS.VOB", targetDir ); size = Ifo_zero->vmgi_mat->vmg_last_sector -1 - 2* Ifo_zero->vmgi_mat->vmgi_last_sector; } else { sprintf( vobFile, "%s/VIDEO_TS/VTS_%02d_0.VOB", targetDir, vts ); size = Ifo[vts]->vtsi_mat->vtstt_vobs - Ifo[vts]->vtsi_mat->vtsi_last_sector -1; } size *= 2048; if( SimulF ) { TotalSize += size; return( size ); } if( !size ) { DBG('b',fprintf(stderr,"%s: size: %u secteurs !!!!\n",__FUNCTION__, size);); return( 0 ); } COUNTER_START( COPYMENU_COUNTER ); dvd_file = DVDOpenFile( Dvd, vts, DVD_READ_MENU_VOBS); if( !dvd_file ) { DBG('b',fprintf(stderr,"%s: vts: %d size: %u secteurs DVDOpenFile(%s) failed errno: %d\n",__FUNCTION__, vts, size, Device, errno );); if( errno == ENOENT && vts == 0 ) {/* Seems that some DVD do not have VIDEO_TS.VOB */ ret = 0; goto out; } ret = -1; goto out; } fp = fopen64( vobFile, "w" ); if( !fp ) { DBG('b',fprintf(stderr,"%s: size: %u secteurs open(%s) failed errno: %d\n",__FUNCTION__, size, vobFile, errno );); ret = -1; goto out; } size /= DVD_VIDEO_LB_LEN; DBG('b',fprintf(stderr,"%s: vts: %d size: %u secteurs\n",__FUNCTION__, vts, size);); DisplayAvancement( _("Copie des menus vob%2d (%d secteurs)\n"), vts, size); InitAvancement( size ); for( sector = 0; sector < size; sector++ ) { int res; int size; res = MyDVDRead1Block( dvd_file, sector, buffer ); if( res != 1 ) { ret = -1; goto out; } if( fwrite( buffer, 1, sizeof(buffer), fp ) != sizeof(buffer)) { ret = -1; goto out; } size = sizeof(buffer); TotalSize += size; SetTotalSize( TotalSize ); /* To display size in menus */ Avancement( size ); if( !(sector % 100)) { if( AvancementUi() < 0 ) { ret = -1; goto out; } } } SetTotalSize( TotalSize ); ret = size; out:; if( dvd_file ) DVDCloseFile( dvd_file ); if( fp ) fclose( fp ); NewStep(); COUNTER_STOP( COPYMENU_COUNTER ); return( ret ); } /*------------------------------------------------------------------------------ ADDVOBUS- Linux!jef 2006/01/16 22:58:40 ------------------------------------------------------------------------------*/ static void AddVobus( Cell_t * c, char * buffer, int len, uint32_t position, int curVob ) { Vobu_t * v; int i; for( i= 0 ; i < len ; i += DVD_BLOCK_LEN ) { if( isNavPack((unsigned char *)buffer+i) ) { g_assert( c->numVobu >= 0 && c->numVobu < c->va.nbVobu ); v = c->va.vobus + c->numVobu; v->newSector = i/DVD_BLOCK_LEN + position; c->numVobu++; } else { int st; int packetType,id; st = IdentifyStream( (unsigned char *)buffer+i, &packetType); g_assert( (c->numVobu-1) >= 0 && (c->numVobu-1) < c->va.nbVobu ); v = c->va.vobus + c->numVobu -1; switch (st) { case stAudio: id = GetStreamID(packetType); if( v->firstAudio[id] == -1 ) { v->firstAudio[id]= ((i/ DVD_BLOCK_LEN) + position) - v->newSector; } break; case stSubpicture: id = GetStreamID( packetType ); if ((id >=0) && (id<32)) { /* here 20 */ if( v->firstSubp[id] == -1 ) { v->firstSubp[id]= ((i / DVD_BLOCK_LEN) + position) - v->newSector; // fprintf(stderr,"v->firstSubp[%d]=%d\n", id, v->firstSubp[id] ); } } break; case stVideo: if( v->firstVideo == -1 ) { v->firstVideo = ((i / DVD_BLOCK_LEN) + position) - v->newSector; } // c->nbVideoNew++; break; } } v->size = position - v->newSector; c->lastSector = position; //!! DBG('b',fprintf(stderr,"AddVobus: %d size: %u\n", v->idx, v->size );); } } /*------------------------------------------------------------------------------ COPYEMPTYPGC- Linux!jef 2005/12/29 20:22:21 ------------------------------------------------------------------------------*/ static int CopyEmptyPgc( Cell_t * cell ) { uint32_t sector; char buffer[DVD_VIDEO_LB_LEN]; dvd_file_t * dvd_file; dsi_t dsi_pack; int nsectors = 0; Vobu_t * v; int res; DBG('b',fprintf(stderr,"%s: startSector: %u vts: %d\n", __FUNCTION__, cell->startSector, cell->vts );); if( NoMenuF ) return( 0 ); dvd_file = DVDOpenFile( Dvd, cell->vts, DVD_READ_TITLE_VOBS); if( !dvd_file ) return( -1 ); sector = cell->startSector; res = MyDVDRead1Block( dvd_file, sector, buffer ); if( res == -1 ) return( -1 ); if( !res || !isNavPack((unsigned char *)buffer) ) { /* Faulty sector */ CreateDummyNavPack( (unsigned char *)buffer, sector ); } #if VERIF_NAV if( !VerifNavPack( buffer ) ) { fprintf(stderr,"%s: Bad nav packet at sector %u\n", __FUNCTION__, sector ); return( -1 ); } #endif if( !SimulF ) { if( fwrite( buffer, 1, sizeof(buffer), OutFp ) != sizeof(buffer)) { return( -1 ); } } OutSize += sizeof(buffer); TotalSize += sizeof(buffer); v = NewVobu( &CurCell->va, sector ); v->empty = 1; AddVobus( CurCell, buffer, DVD_VIDEO_LB_LEN, Position, CurVOB ); navRead_DSI( &dsi_pack, (unsigned char *)buffer + DSI_START_BYTE ); if( dsi_pack.dsi_gi.vobu_ea != 0) { nsectors = 1; res = MyDVDRead1Block( dvd_file, sector+1, buffer ); if( res == -1 ) return( -1 ); if( !res ) { /* Faulty sector */ CreateDummyPack( (unsigned char *)buffer ); } if( !SimulF ) { if( fwrite( buffer, 1, sizeof(buffer), OutFp ) != sizeof(buffer)) return( -1 ); } OutSize += sizeof(buffer); TotalSize += sizeof(buffer); } CurCell->lastSector = CurCell->startSector + nsectors; CurTS->lastSector += nsectors + 1; Position += nsectors + 1; DVDCloseFile( dvd_file ); return( 0 ); } /*------------------------------------------------------------------------------ OUTPUT- Linux!jef 2006/01/03 21:05:50 ------------------------------------------------------------------------------*/ static int Output( buffer, len, targetDir ) unsigned char * buffer; int len; char * targetDir; { unsigned char * cBuff; if( !TempSize && len == DVD_VIDEO_LB_LEN ) { TempSize = len; cBuff = buffer; } else { //!! fprintf(stderr,"Output: len %d TempSize: %d\n", len, TempSize ); tc_memcpy( TempBuf + TempSize, buffer, len ); TempSize += len; cBuff = TempBuf; } if( TempSize >= DVD_VIDEO_LB_LEN ) { if( isNavPack( cBuff ) ) { dsi_t dsiPack; navRead_DSI( &dsiPack, (unsigned char *)cBuff + DSI_START_BYTE); if((dsiPack.dsi_gi.vobu_ea * DVD_VIDEO_LB_LEN) + OutSize >= MAX_VOB_SIZE ) { char vobFile[512]; fclose( OutFp ); OutFp = NULL; VobSize[CurVOB] = OutSize; CurVOB++; sprintf( vobFile, "%s/VIDEO_TS/VTS_%02d_%d.VOB", targetDir, CurVTS, CurVOB ); OutFp = fopen64( vobFile, "w" ); if( !OutFp ) { return( -1 ); } OutSize = 0; } } else { Mpeg2Demux( cBuff, DVD_VIDEO_LB_LEN ); } if( fwrite( cBuff, 1, DVD_VIDEO_LB_LEN, OutFp ) != DVD_VIDEO_LB_LEN ) return( -1 ); OutSize += DVD_VIDEO_LB_LEN; TotalSize += DVD_VIDEO_LB_LEN; SetTotalSize( TotalSize ); AddVobus( CurCell, (char *)cBuff, DVD_VIDEO_LB_LEN, Position, CurVOB ); CurTS->lastSector++; Position++; TempSize -= DVD_VIDEO_LB_LEN; if( TempSize > 0 ) tc_memcpy( cBuff, cBuff + DVD_VIDEO_LB_LEN, TempSize ); } return( 0 ); } /*------------------------------------------------------------------------------ FINDCELLSTART- Linux!jef 2006/01/16 21:43:42 ------------------------------------------------------------------------------*/ static void FindCellStart( Cell_t * c ) { if( !c->idx ) { c->startSector = 0; } else { Cell_t * p = &c[-1]; if( p->vts == c->vts ) c->startSector = p->lastSector + 1; else c->startSector = 0; /* !! */ } } /*------------------------------------------------------------------------------ _FINDVOBU- Linux!jef 2006/01/23 23:34:56 ------------------------------------------------------------------------------*/ static Vobu_t * _FindVobu( VobuArray_t * va, uint32_t sector, int start, int end ) { while( start <= end ) { int m = (start + end ) / 2; Vobu_t * v = va->vobus + m; if( v->oldSector == sector ) return( v ); if( v->oldSector > sector ) end = m -1; else start = m + 1; } return( NULL ); } /*------------------------------------------------------------------------------ FINDVOBU- Linux!jef 2006/01/19 19:17:34 Vobu oldSector est toujours croissant ------------------------------------------------------------------------------*/ static Vobu_t * FindVobu( Cell_t * c, uint32_t sector ) { Vobu_t * v; if( !c->va.nbVobu ) return( NULL ); v = &c->va.vobus[0]; if( sector < v->oldSector ) return( NULL ); v = &c->va.vobus[c->va.nbVobu-1]; if( sector > v->oldSector ) return( NULL ); return( _FindVobu( &c->va, sector, 0, c->va.nbVobu-1 ) ); } /*------------------------------------------------------------------------------ REMAPVOBU- Linux!jef 2006/01/19 19:21:15 ------------------------------------------------------------------------------*/ static Vobu_t * RemapVobu( uint32_t * value ) { Vobu_t * v; uint32_t sector, mask; int i; if( (*value & 0x80000000) == 0x80000000 ) { sector = *value & 0x7FFFFFFF; mask = 0x80000000; } else { sector = *value; mask = 0; } *value = 0; for( i = 0; i < CurTS->ca.nbCells; i++ ) { Cell_t * c = CurTS->ca.cells + i; v = FindVobu( c, sector); if( v ) { *value = v->newSector | mask; return( v ); } } // DBG('v',fprintf(stderr,"%s: sector %u notfound\n", __FUNCTION__, sector );); return( NULL ); } /*------------------------------------------------------------------------------ UPDATEMAINIFO- Linux!jef 2006/01/20 20:57:51 ------------------------------------------------------------------------------*/ static int UpdateMainIfo( char * targetDir ) { ifo_handle_t * ifo = CopyIfo( 0 ); int i, iTS; int found = 0; for( i = 0 ; i < ifo->tt_srpt->nr_of_srpts; i++ ) { for( iTS = 0; (iTS < TitleArray.nbTitles) && (!found); iTS++ ) { TitleSet_t * ts = TitleArray.titles + iTS; if( ts->vts == ifo->tt_srpt->title[i].title_set_nr ) { ifo->tt_srpt->title[i].title_set_sector = ts->startSector; found = 1; } } found = 0; } return( SaveIfo( ifo, 0, targetDir ) ); } /*------------------------------------------------------------------------------ UPDATEIFO- Linux!jef 2006/01/19 19:29:36 ------------------------------------------------------------------------------*/ static int UpdateIfo( char * targetDir ) { ifo_handle_t * ifo = CopyIfo( CurVTS ); pgcit_t * pgcit = ifo->vts_pgcit; Vobu_t * vobu2 = NULL; uint32_t newPos = 0; c_adt_t * c_adt = ifo->vts_c_adt; uint32_t length = c_adt->last_byte + 1 - C_ADT_SIZE; cell_adr_t * ptr; vobu_admap_t * vobu_admap = ifo->vts_vobu_admap; vts_tmapt_t * vts_tmapt = ifo->vts_tmapt; int i,j; int nrVobs; DBG('b',fprintf(stderr,"%s: VTS %d\n", __FUNCTION__, CurVTS );); //update total VTS size with IFO size CurTS->lastSector += 2 *(ifo->vtsi_mat->vtsi_last_sector ) +1; ifo->vtsi_mat->vts_last_sector = CurTS->lastSector ; //update first play PGC if( ifo->first_play_pgc ) { pgc_t * pgc = ifo->first_play_pgc; cell_playback_t * cell_playback = pgc->cell_playback; int nr = pgc->nr_of_cells; cell_playback_t cell; vobu2 = NULL; newPos = 0; for( j = 0; j < nr; j++) { uint32_t sector = cell_playback[j].first_sector; Vobu_t * vobu = RemapVobu( &cell_playback[j].first_sector ); vobu2 = vobu; /*Added */ RemapVobu( &cell_playback[j].first_ilvu_end_sector ); if( vobu != NULL ) { vobu = RemapVobu( &cell_playback[j].last_vobu_start_sector ); if( vobu == NULL ) { cell_playback[j].last_vobu_start_sector = cell_playback[j].first_sector; vobu = vobu2; pgc->playback_time.hour = 0; pgc->playback_time.minute = 0; pgc->playback_time.second = 0; cell_playback[j].playback_time.hour = 0; cell_playback[j].playback_time.minute = 0; cell_playback[j].playback_time.second = 0; } cell_playback[j].last_sector = vobu->newSector+vobu->size; cell_playback[newPos] = cell_playback[j]; cell = cell_playback[newPos]; newPos++; } else { DBG('v',fprintf(stderr,"%s-%d: vobu sector %u notfound\n", __FUNCTION__, __LINE__, sector );); // DBG('v',{ int z; for( z = 0; z < CurTS->ca.nbCells; z++ ) { Cell_t * c = CurTS->ca.cells + z; DumpVobus( c ); }};); cell_playback[newPos] = cell; newPos++; } } for( j = newPos; j < nr; j++ ) cell_playback[j].last_sector = 0; pgc->nr_of_cells = newPos; DBG('b',fprintf(stderr,"%s:(1) pgc->nr_of_cells=%d\n", __FUNCTION__, pgc->nr_of_cells );); #if 1 /*HERE*/ cell_playback = pgc->cell_playback; for( j = 0; j < pgc->nr_of_cells; j++ ) { DBG('b',fprintf(stderr,"%s-%d: cell_playback[%d] block_mode=%d block_type=%d first_sector=%d last_sector=%d\n", __FUNCTION__, __LINE__, j, cell_playback[j].block_mode, cell_playback[j].block_type, cell_playback[j].first_sector, cell_playback[j].last_sector );); } #endif } newPos = 0; //update each PGC for( i = 0; i < pgcit->nr_of_pgci_srp; i++) { pgc_t * pgc = pgcit->pgci_srp[i].pgc; cell_playback_t * cell_playback = pgc->cell_playback; int nr = pgc->nr_of_cells; cell_playback_t cell; vobu2 = NULL; newPos = 0; for( j = 0; j < nr; j++) { uint32_t sector = cell_playback[j].first_sector; Vobu_t * vobu = RemapVobu(&cell_playback[j].first_sector); vobu2 = vobu; /*Added */ if (cell_playback[j].first_ilvu_end_sector !=0) { uint32_t tmp=cell_playback[j].first_ilvu_end_sector+1; RemapVobu(&tmp); if( tmp ) cell_playback[j].first_ilvu_end_sector=tmp-1; } if( vobu ) { vobu = RemapVobu(&cell_playback[j].last_vobu_start_sector); if( !vobu ) { cell_playback[j].last_vobu_start_sector=cell_playback[j].first_sector; vobu = vobu2; pgc->playback_time.hour=0; pgc->playback_time.minute=0; pgc->playback_time.second=0; cell_playback[j].playback_time.hour=0; cell_playback[j].playback_time.minute=0; cell_playback[j].playback_time.second=0; } cell_playback[j].last_sector = vobu->newSector+vobu->size;// -1 ; cell_playback[newPos]=cell_playback[j]; cell=cell_playback[newPos]; newPos++; } else { DBG('v',fprintf(stderr,"%s-%d: vobu sector %u notfound\n", __FUNCTION__, __LINE__, sector );); // DBG('v',{ int z; for( z = 0; z < CurTS->ca.nbCells; z++ ) { Cell_t * c = CurTS->ca.cells + z; DumpVobus( c ); }};); cell_playback[newPos]=cell; newPos++; } } for( j = newPos ; j < nr ; j++ ) cell_playback[j].last_sector=0; pgc->nr_of_cells = newPos; DBG('b',fprintf(stderr,"%s: (2) pgc->nr_of_cells=%d\n", __FUNCTION__, pgc->nr_of_cells );); #if 1 /*HERE*/ cell_playback = pgc->cell_playback; for( j = 0; j < pgc->nr_of_cells; j++ ) { DBG('b',fprintf(stderr,"%s-%d: cell_playback[%d] block_mode=%d block_type=%d first_sector=%d last_sector=%d\n", __FUNCTION__, __LINE__, j, cell_playback[j].block_mode, cell_playback[j].block_type, cell_playback[j].first_sector, cell_playback[j].last_sector );); } #endif } /* Seems to be a bug in some IFOS */ DBG('b',fprintf(stderr,"%s:>> c_adt->nr_of_vobs=%d\n", __FUNCTION__, c_adt->nr_of_vobs );); ptr = c_adt->cell_adr_table; newPos = 0; nrVobs = length/sizeof(cell_adr_t); if( nrVobs > c_adt->nr_of_vobs ) { nrVobs = c_adt->nr_of_vobs; DBG('b',fprintf(stderr,"%s:>> nrVobs=%d\n", __FUNCTION__, nrVobs );); } for( i = 0; i < nrVobs; i++) { uint32_t startSect = ptr[i].start_sector; ptr[i].start_sector = 0; ptr[i].last_sector = 0; for( j = 0; j < CurTS->ca.nbCells; j++ ) { Cell_t * cell = CurTS->ca.cells + j; if( cell->oldStartSector == startSect ) { // DBG('b',fprintf(stderr,"%s:cells=%d\n", __FUNCTION__, cell->selected );); ptr[newPos].start_sector = cell->startSector; ptr[newPos].last_sector = cell->lastSector; newPos++; } } } c_adt->last_byte = C_ADT_SIZE -1 + ((newPos)*sizeof(cell_adr_t)); c_adt->nr_of_vobs = newPos; DBG('b',fprintf(stderr,"%s: c_adt->nr_of_vobs=%d\n", __FUNCTION__, c_adt->nr_of_vobs );); length = vobu_admap->last_byte + 1 - VOBU_ADMAP_SIZE; newPos = 0; for( i = 0; i < length/sizeof(uint32_t); i++) { if( RemapVobu(&vobu_admap->vobu_start_sectors[i] ) != NULL ) { vobu_admap->vobu_start_sectors[newPos] = vobu_admap->vobu_start_sectors[i]; newPos++; } } for( i = newPos; i < length/sizeof(uint32_t); i++ ) vobu_admap->vobu_start_sectors[i]=0; vobu_admap->last_byte = newPos * sizeof(uint32_t) -1 +VOBU_ADMAP_SIZE; //update VTS_TMAP if( vts_tmapt ) { for( i = 0; i < vts_tmapt->nr_of_tmaps; i++) { map_ent_t * map_ent; if( vts_tmapt->tmap[i].nr_of_entries == 0) { // Early out if zero entries continue; } map_ent = vts_tmapt->tmap[i].map_ent; newPos = 0; for( j = 0; j < vts_tmapt->tmap[i].nr_of_entries; j++) { //bit 31 indicates whether VOBU time codes are discontinous with previous uint32_t mask = map_ent[j] & 0x80000000 ; uint32_t value = map_ent[j] & 0x7FFFFFFF; if( RemapVobu(&value) !=NULL) { map_ent[j] = value | mask; map_ent[newPos] = map_ent[j]; newPos++; } else { map_ent[j]=0; } } for( j = newPos; j < vts_tmapt->tmap[i].nr_of_entries;j++) map_ent[j]=0; vts_tmapt->tmap[i].nr_of_entries = newPos; } } return( SaveIfo( ifo, CurVTS, targetDir ) ); } /*------------------------------------------------------------------------------ REMAPOFFSET- Linux!jef 2006/01/23 21:03:48 ------------------------------------------------------------------------------*/ static void RemapOffset( uint32_t _sector, uint32_t * _offset, int _dir ) { Vobu_t * vobu1 = NULL; Vobu_t * vobu2 = NULL; uint32_t offset,sector; uint32_t maskOffset1=0,maskOffset2=0,maskSector=0; uint32_t i; if ((*_offset!= 0xbfffffff) && (*_offset!=0x3fffffff) && (*_offset!=0x7fffffff)) { if ( (*_offset & 0x80000000) == 0x80000000) maskOffset1= 0x80000000; if ( (*_offset & 0x40000000) == 0x40000000) maskOffset2= 0x40000000; offset = *_offset & 0x3FFFFFFF; if ( (_sector & 0x80000000) == 0x80000000) { sector = _sector & 0x7FFFFFFF; maskSector=0x80000000; } else { sector =_sector; maskSector=0; } for( i = 0;i < CurTS->ca.nbCells; i++ ) { Cell_t * cell = CurTS->ca.cells + i; vobu1 = FindVobu( cell, sector ); vobu2 = FindVobu( cell, sector+_dir*offset ); if( vobu1 && vobu2 ) { *_offset = abs(vobu1->newSector - vobu2->newSector) | maskOffset1 ; *_offset |= maskOffset2; return; } } if( !vobu1 ) DBG('b',fprintf(stderr,"%s: vobu1 sector not found %u\n", __FUNCTION__, sector );); if( !vobu2 ) DBG('b',fprintf(stderr,"%s: vobu2 sector not found %u\n", __FUNCTION__, sector+_dir*offset );); } } /*------------------------------------------------------------------------------ UPDATEVOB- Linux!jef 2006/01/23 20:44:46 ------------------------------------------------------------------------------*/ static int UpdateVob( int vts, int vobNum, long fSize, char * targetDir ) { struct { uint32_t nv_pck_lbn; /**< sector address of pci */ } ATTRIBUTE_PACKED pci; unsigned char buffer[DVD_VIDEO_LB_LEN]; char vobFile[512]; FILE * fp; uint32_t sector = 0; long pos = 0; int ret = 0; DBG('b',fprintf(stderr,"%s: vts: %d vobNum: %d\n", __FUNCTION__, vts, vobNum );); DisplayAvancement( _("Mise à jours du vob %d-%d\n"), vts, vobNum ); sprintf( vobFile, "%s/VIDEO_TS/VTS_%02d_%d.VOB", targetDir, vts, vobNum ); fp = fopen64( vobFile, "r+b" ); if( !fp ) return( -1 ); COUNTER_START( UPDATEVOB_COUNTER ); PushAvancement(); InitAvancement( fSize / DVD_VIDEO_LB_LEN ); while( pos < fSize ) { int emptyPgc = 0; int i; //!! fprintf(stderr,"VOB%d read at %ld\n", vobNum, pos ); if( fread( buffer,DVD_VIDEO_LB_LEN,1,fp) != 1 ) break; AvancementAbs( pos ); if( AvancementUi() < 0 ) { ret = -1; goto out; } if( isNavPack(buffer)) { dsi_t dsiPack; Vobu_t * vobu; uint32_t dsi_next_vobu; navRead_DSI (&dsiPack, buffer + DSI_START_BYTE); memcpy(&pci,buffer+0x2d,sizeof(pci)); B2N_32(pci.nv_pck_lbn); sector = dsiPack.dsi_gi.nv_pck_lbn; vobu = RemapVobu( &dsiPack.dsi_gi.nv_pck_lbn ); if( vobu ) { dsiPack.dsi_gi.vobu_ea = vobu->size; emptyPgc = vobu->empty; } else { fprintf( stderr, "remapVobu failed for %d\n",dsiPack.dsi_gi.nv_pck_lbn); emptyPgc = 1; } if( !emptyPgc ) { RemapOffset(sector, &dsiPack.vobu_sri.next_video,1 ); for( i =0; i < 19 ; i++ ) { RemapOffset(sector,&dsiPack.vobu_sri.fwda[i],1); } RemapOffset(sector,&dsiPack.vobu_sri.next_vobu,1); RemapOffset(sector,&dsiPack.vobu_sri.prev_vobu,-1); for( i = 0 ; i < 19 ; i++ ) { RemapOffset(sector,&dsiPack.vobu_sri.bwda[i],-1); } RemapOffset(sector,&dsiPack.vobu_sri.prev_video,-1); //1st audio packet for( i = 0 ; i < 8 ; i++) { if (((dsiPack.synci.a_synca[i] & 0x8000) != 0x8000 ) && (dsiPack.synci.a_synca[i] !=0x3FFF)) { if (vobu->firstAudio[i] !=-1) { dsiPack.synci.a_synca[i] = vobu->firstAudio[i]; } else { dsiPack.synci.a_synca[i] =0; } } } //1st subpicture packet for( i = 0 ; i < 32 ; i++ ) { if (((dsiPack.synci.sp_synca[i] & 0x80000000) != 0x80000000) && (dsiPack.synci.sp_synca[i] != 0x3FFFFFFF) && (dsiPack.synci.sp_synca[i] != 0x7FFFFFFF)) { if (vobu->firstSubp[i] != -1) { dsiPack.synci.sp_synca[i] = vobu->firstSubp[i]; //!! fprintf(stderr,"dsiPack.synci.sp_synca[%d]=%d\n", i, dsiPack.synci.sp_synca[i] ); } else { dsiPack.synci.sp_synca[i] = 0; } } } } else { dsiPack.vobu_sri.next_video= 0xbfffffff; for( i = 0; i < 19 ; i++ ) dsiPack.vobu_sri.fwda[i] = 0x3fffffff; dsiPack.vobu_sri.next_vobu=0x3fffffff; dsiPack.vobu_sri.prev_vobu=0x3fffffff; for( i = 0; i < 19 ; i++ ) dsiPack.vobu_sri.bwda[i] = 0x3fffffff; dsiPack.vobu_sri.prev_video=0xbfffffff; for( i = 0 ; i < 8 ; i++ ) dsiPack.synci.a_synca[i]=0; for( i = 0 ; i < 32 ; i++ ) dsiPack.synci.sp_synca[i] =0; } // mise en place des donnees modifi�s dans le buffer de sortie navRead_DSI((dsi_t*)(buffer + DSI_START_BYTE),(unsigned char *)&dsiPack); pci.nv_pck_lbn =dsiPack.dsi_gi.nv_pck_lbn; B2N_32(pci.nv_pck_lbn); memcpy(buffer+0x2d,&pci,sizeof(pci)); //mise �jour du fichier fseek(fp, pos, SEEK_SET ); if( fwrite(buffer,DVD_VIDEO_LB_LEN,1,fp ) != 1 ) { ret = -1; goto out; } //pointing on next VOBU dsi_next_vobu = dsiPack.vobu_sri.next_vobu; if( dsi_next_vobu != SRI_END_OF_CELL ) { uint32_t sect = dsi_next_vobu & 0x7fffffff; long newPos = pos + sect * 2048; // fprintf(stderr,"At %ld Seeking at: %ld nextVobu: %p\n", pos, pos + sect * 2048, dsi_next_vobu ); if( newPos > fSize || newPos <= pos ) break; fseek( fp,pos+sect*2048,SEEK_SET); } } pos = ftell( fp ); } out:; PopAvancement(); fclose( fp ); COUNTER_STOP( UPDATEVOB_COUNTER ); return( ret ); } /*------------------------------------------------------------------------------ MAKEROOM- Linux!jef 2006/01/24 22:46:53 ------------------------------------------------------------------------------*/ static void MakeRoom( VapContext_t * c, int size ) { if( c->bufASize < (c->bufSize + size) ) { if( c->bufPtr != c->buf ) { memmove( c->buf, c->bufPtr, c->bufSize ); c->bufPtr = c->buf; } c->bufASize = c->bufSize + size; c->buf = realloc( c->buf, c->bufASize ); c->bufPtr = c->buf; } if( !c->bufSize ) { c->bufPtr = c->buf; } } /*------------------------------------------------------------------------------ _FINDNEXTVOBU- Linux!jef 2007/08/16 01:37:18 ------------------------------------------------------------------------------*/ static uint32_t _FindNextVobu( c ) VapContext_t * c; { vobu_admap_t * vobu_admap; uint32_t length, i; vobu_admap = c->cell->ifo->vts_vobu_admap; length = vobu_admap->last_byte + 1 - VOBU_ADMAP_SIZE; for( i = 0; i < length/sizeof(uint32_t); i++) { // DBG('b',fprintf(stderr,"%s: vobu at sector: %d\n", __FUNCTION__, vobu_admap->vobu_start_sectors[i] );); /* Vobu adress map seems to be ordered */ if( vobu_admap->vobu_start_sectors[i] > c->sector) { DBG('b',fprintf(stderr,"%s: returning next vobu at sector: %d\n", __FUNCTION__, vobu_admap->vobu_start_sectors[i] );); return( vobu_admap->vobu_start_sectors[i] ); } // if( vobu_admap->vobu_start_sectors[i] == c->sector) { // return( vobu_admap->vobu_start_sectors[i+1] ); // } } DBG('b',fprintf(stderr,"%s: nextvobu notfound for sector: %d\n", __FUNCTION__, c->sector );); return( SRI_END_OF_CELL ); } /*------------------------------------------------------------------------------ READIN- Linux!jef 2006/01/24 22:28:46 ------------------------------------------------------------------------------*/ static int Readin( void * parm, unsigned char * buffer, int size ) { VapContext_t * c = (VapContext_t *) parm; int readed = 0; int len; dsi_t dsi_pack; uint32_t nsectors; int badNavPack = 0; // DBG('b',fprintf(stderr,"%s: size: %d inBuf: %d\n", __FUNCTION__, size, c->bufSize );); if( c->bufSize ) { len = MyMin( size, c->bufSize ); tc_memcpy( buffer, c->bufPtr, len ); buffer += len; size -= len; c->bufPtr += len; c->bufSize -= len; readed += len; } if( !size ) { // DBG('b',fprintf(stderr,"%s: readed: %d\n", __FUNCTION__, readed );); return( readed ); } if( c->dsi_next_vobu == SRI_END_OF_CELL ) { // DBG('b',fprintf(stderr,"%s: readed: %d\n", __FUNCTION__, readed );); if( readed ) return( readed ); // DBG('b',fprintf(stderr,"%s: EOF\n", __FUNCTION__ );); return( 0 ); /* EOF */ } /* Read full VOBU */ /* read nav pack */ MakeRoom( c, DVD_VIDEO_LB_LEN ); // fprintf(stderr,"MyDVDRead1Block: sector: %d\n", c->sector ); len = MyDVDRead1Block( c->file_handle, c->sector, c->bufPtr ); if( len == -1 ) return( -1 ); navRead_DSI( &dsi_pack, c->bufPtr + DSI_START_BYTE ); // fprintf(stderr,"NAV: MyDVDRead1Block(%d)=%d\n", c->sector, len ); if( len == 0 || dsi_pack.dsi_gi.nv_pck_lbn != c->sector ) { CreateDummyNavPack( c->bufPtr, c->sector ); badNavPack = 1; c->dsi_next_vobu = _FindNextVobu( c ); } len = DVD_VIDEO_LB_LEN; c->bufSize += len; #if VERIF_NAV if( !VerifNavPack( c->bufPtr ) ) { fprintf(stderr,"%s: Bad nav packet at sector %u\n", __FUNCTION__, c->sector ); return( -1 ); } #endif Avancement( len ); if( AvancementUi() < 0 ) return( -1 ); if( isNavPack( c->bufPtr ) ) { Vobu_t * v; CurCell->oldLastSector = c->sector; v = NewVobu( &CurCell->va, c->sector ); } if( badNavPack ) { MakeRoom( c, 1 * DVD_VIDEO_LB_LEN ); CreateDummyPack( c->bufPtr + DVD_VIDEO_LB_LEN ); nsectors = 1; } else { int i; unsigned char * cBuff; nsectors = dsi_pack.dsi_gi.vobu_ea; if( !nsectors ) { /* Protected dvd ? */ DBG('b',fprintf(stderr,"%s: no sectors in DSI !\n", __FUNCTION__);); return( 0 ); /* EOF */ } c->dsi_next_vobu = dsi_pack.vobu_sri.next_vobu; MakeRoom( c, nsectors*DVD_VIDEO_LB_LEN ); cBuff = c->bufPtr + DVD_VIDEO_LB_LEN; /* read VOBU */ for( i = 0; i < nsectors; i++ ) { len = MyDVDRead1Block( c->file_handle, c->sector + 1 + i, cBuff ); // fprintf(stderr,"PACK: MyDVDRead1Block(%d)=%d\n", c->sector+1+i, len ); if( len == -1 ) return( -1 ); if( len == 0 ) { CreateDummyPack( cBuff ); nsectors = 1; break; } cBuff += DVD_VIDEO_LB_LEN; } } len = nsectors * DVD_VIDEO_LB_LEN; c->bufSize += len; Avancement( len ); if( AvancementUi() < 0 ) return( -1 ); if( badNavPack ) { c->sector = c->dsi_next_vobu; c->dsi_next_vobu = 0; } else c->sector += (c->dsi_next_vobu & 0x7fffffff); return( readed + Readin( parm, buffer, size ) ); } /*------------------------------------------------------------------------------ OUTPUTFLUX- Linux!jef 2006/01/24 23:07:28 ------------------------------------------------------------------------------*/ static int OutputFlux( void * parm, unsigned char * buffer, int size ) { VapContext_t * c = (VapContext_t *) parm; int writen = 0; // DBG('b',fprintf(stderr,"%s: size: %d\n", __FUNCTION__, size );); while( size > 0 ) { int len = MyMin( size, DVD_VIDEO_LB_LEN ); if( Output( buffer, len, c->targetDir ) < 0 ) { return( -1 ); } buffer += len; size -= len; writen += len; } return( writen ); } /*------------------------------------------------------------------------------ COPYCELL- Linux!jef 2005/12/28 22:01:08 ------------------------------------------------------------------------------*/ static int CopyCell( Cell_t * c, char * targetDir ) { uint32_t size; dvd_file_t * file_handle; Cell_t * cell; VapContext_t vc; long long lSize; int ret; if( c->vts != CurVTS ) { char vobFile[512]; int menuSize; uint32_t startSector; if( OutFp ) { fclose( OutFp ); OutFp = NULL; UpdateIfo( targetDir ); VobSize[CurVOB] = OutSize; if( UpdateVobs( targetDir ) < 0 ) return( -1 ); } menuSize = CopyMenu( c->vts, targetDir ); if( menuSize < 0 ) return( -1 ); if( !SimulF ) { sprintf( vobFile, "%s/VIDEO_TS/VTS_%02d_1.VOB", targetDir, c->vts ); OutFp = fopen64( vobFile, "w" ); if( !OutFp ) { return( -1 ); } } OutSize = 0; CurVOB = 1; CurVTS = c->vts; if( CurTS ) { startSector = CurTS->startSector + CurTS->lastSector + 1; /* !! */ } else { startSector = Ifo_zero->vmgi_mat->vmg_last_sector + 1; } CurTS = NewTitleSet( &TitleArray ); CurTS->vts = CurVTS; CurTS->startSector = startSector; CurTS->lastSector += menuSize; CurTS->ifo = Ifo[CurVTS]; } cell = NewCell( &CurTS->ca ); cell->vts = CurVTS; cell->pgc = c->pgc; FindCellStart( cell ); CurCell = cell; CurCell->oldStartSector = c->startSector; CurCell->oldLastSector = c->lastSector; Position = CurCell->startSector; if( !c->selected ) return( CopyEmptyPgc( c ) ); DBG('b',fprintf(stderr,"%s: startSector: %u lastSector: %u vts: %d\n", __FUNCTION__, c->startSector, c->lastSector, c->vts );); COUNTER_START( COPYCELL_COUNTER ); size = c->lastSector - c->startSector; if( SimulF ) DisplayAvancement( _("Analyse de la cellule %d (%d secteurs)\n"), c->chapter + 1, size); else DisplayAvancement( _("Copie de la cellule %d (%d secteurs)\n"), c->chapter + 1, size); InitAvancement( size ); file_handle = DVDOpenFile( Dvd, c->vts, DVD_READ_TITLE_VOBS); if( !file_handle ) return( -1 ); memset( &vc, 0, sizeof(vc)); /* Initialize Vaporize context */ vc.file_handle = file_handle; vc.sector = c->startSector; vc.cell = c; vc.targetDir = targetDir; // lSize = (long long) size * (long long) DVD_VIDEO_LB_LEN; /* Vaporize need total sector size */ lSize = CountTotalSectors( &CellArray ) * (long long) DVD_VIDEO_LB_LEN; ret = Vaporize( lSize, &vc ); if( vc.buf ) { free( vc.buf ); } DVDCloseFile( file_handle ); c->done = 1; COUNTER_STOP(COPYCELL_COUNTER); return( ret ); } /*------------------------------------------------------------------------------ FREEALL- Linux!jef 2006/01/16 22:10:25 ------------------------------------------------------------------------------*/ static void FreeAll() { int i; CurTS = NULL; CurCell = NULL; if( TitleArray.nbTitles ) { for( i = 0; i < TitleArray.nbTitles; i++ ) { FreeCellArray( &TitleArray.titles[i].ca ); } free( TitleArray.titles ); TitleArray.titles = NULL; TitleArray.nbTitles = 0; } FreeCellArray( &CellArray ); } /*------------------------------------------------------------------------------ UPDATEVOBS- Linux!jef 2006/02/01 22:38:09 ------------------------------------------------------------------------------*/ static int UpdateVobs( char * targetDir ) { int i; for( i = 1; i <= CurVOB; i++ ) { if( UpdateVob( CurVTS, i, VobSize[i], targetDir ) < 0 ) return( -1 ); } return( 0 ); } /*------------------------------------------------------------------------------ MENUSIZE- Linux!jef 2006/10/30 22:39:14 ------------------------------------------------------------------------------*/ static int MenuSize( Cell_t * c ) { uint32_t size = 0; if( !c->vts ) { size = Ifo_zero->vmgi_mat->vmg_last_sector -1 - 2* Ifo_zero->vmgi_mat->vmgi_last_sector; } else { size = Ifo[c->vts]->vtsi_mat->vtstt_vobs - Ifo[c->vts]->vtsi_mat->vtsi_last_sector -1; } DBG('b',fprintf(stderr,"MenuSize(%d,%d)=%u\n", c->idx, c->vts, size );); return( size ); } /*------------------------------------------------------------------------------ RECPUFACTOR- Linux!jef 2006/02/20 22:30:41 ------------------------------------------------------------------------------*/ static double ReCpuFactor( void ) { double dFactor; long long videoSize; long long audioSize; long long subpSize; long long navSize; long long remainVideoSize; long long remainAudioSize; long long remainSubpSize; long long remainNavSize; long long remainSize; long long remainMenuSize = 0; long long tSize; int vVideoSize; int vAudioSize; int vSubpSize; int vNavSize; int totalSectors = 0; int doneSectors = 0; // int remainSectors; int i; double pct; int menuCopied[MAX_VTS]; /* Compute total sectors size */ memcpy( menuCopied, MenuCopied, sizeof(menuCopied)); // for( i = 0; i < MAX_VTS; i++ ) fprintf(stderr,"MenuCopied[%d]=%d\n", i, MenuCopied[i] ); for( i = 0; i < CellArray.nbCells; i++ ) { Cell_t * c = CellArray.cells + i; if( c->selected ) totalSectors += SECTOR_SZ(c); if( c->done ) doneSectors += SECTOR_SZ(c); if( !menuCopied[c->vts] ) { remainMenuSize += MenuSize( c ); menuCopied[c->vts] = 1; } } DBG( 'b',fprintf(stderr,"RemainMenuSize SIZE: %lld\n", remainMenuSize * DVD_BLOCK_LEN );); /* On attend d'avoir traiter un minimum de choses avant d'aligner le facteur */ pct = (double)doneSectors / (double)totalSectors; if( pct < DYNQUAL_PCT ) return( 0 ); VaporizeSizes( &vVideoSize, &vAudioSize, &vSubpSize, &vNavSize ); tSize = (long long)vVideoSize * DVD_BLOCK_LEN; tSize += (long long)vAudioSize * DVD_BLOCK_LEN; tSize += (long long)vSubpSize * DVD_BLOCK_LEN; tSize += (long long)vNavSize * DVD_BLOCK_LEN; DBG( 'b',fprintf(stderr,"0) VAPORIZE VIDEO SIZE: %lld\n", (long long)vVideoSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"0) VAPORIZE AUDIO SIZE: %lld\n", (long long)vAudioSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"0) VAPORIZE SUBP SIZE: %lld\n", (long long)vSubpSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"0) VAPORIZE NAV SIZE: %lld\n", (long long)vNavSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"THEORICAL TOTAL SIZE: %lld\n", tSize );); DBG( 'b',fprintf(stderr,"PRATICAL TOTAL SIZE : %lld\n", TotalSize );); VaporizePacks( &vVideoSize, NULL ); DBG( 'b',fprintf(stderr,"VAPORIZE VIDEO SIZE: %lld\n", (long long)vVideoSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE AUDIO SIZE: %lld\n", (long long)vAudioSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE SUBP SIZE: %lld\n", (long long)vSubpSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE NAV SIZE: %lld\n", (long long)vNavSize * DVD_BLOCK_LEN );); videoSize = ( (long long)vVideoSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)doneSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL VIDEOSIZE: %lld\n", videoSize );); audioSize = ( (long long)vAudioSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)doneSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL AUDIOSIZE: %lld\n", audioSize );); subpSize = ( (long long)vSubpSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)doneSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL SUBSIZE: %lld\n", subpSize );); navSize = ( (long long)vNavSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)doneSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL NAVSIZE: %lld\n", navSize );); /* On calcul ce qu'il reste a faire */ // remainSectors = totalSectors - doneSectors; remainVideoSize = videoSize - ((long long)vVideoSize * (long long)DVD_BLOCK_LEN); /* On enleve de la video restante les menus qui ne sont pas requant */ //!! remainVideoSize -= (remainMenuSize * (long long)DVD_BLOCK_LEN ); remainAudioSize = audioSize - ((long long)vAudioSize * (long long)DVD_BLOCK_LEN); remainSubpSize = subpSize - ((long long)vSubpSize * (long long)DVD_BLOCK_LEN); remainNavSize = navSize - ((long long)vNavSize * (long long)DVD_BLOCK_LEN); remainSize = GetWantedBytes() - TotalSize; remainMenuSize *= (long long)DVD_BLOCK_LEN; DBG( 'b',fprintf(stderr,"3) REMAIN VIDEOSIZE: %lld\n", remainVideoSize );); DBG( 'b',fprintf(stderr,"3) REMAIN AUDIOSIZE: %lld\n", remainAudioSize );); DBG( 'b',fprintf(stderr,"3) REMAIN SUBSIZE: %lld\n", remainSubpSize );); DBG( 'b',fprintf(stderr,"3) REMAIN NAVSIZE: %lld\n", remainNavSize );); DBG( 'b',fprintf(stderr,"3) REMAIN DVDSIZE: %lld\n", remainSize );); /* Les packets de navigations sont de la video non compressible ! Ainsi que les menus */ dFactor = (double)( remainVideoSize ) / (double)( remainSize - remainAudioSize - remainSubpSize - remainNavSize - remainMenuSize ); DBG( 'b',fprintf(stderr,"dFactor0: %f\n", dFactor );); if( dFactor < 0 ) { /* Argh not enought room */ dFactor = - dFactor; } if (dFactor < 1) dFactor = 1; pct = (1.0 /dFactor) * 100; DBG( 'b',fprintf(stderr,"New Quality: %f%%\n", pct );); return( dFactor ); } /*------------------------------------------------------------------------------ BACKUPDVD- Linux!jef 2005/12/12 22:36:50 ------------------------------------------------------------------------------*/ int BackupDvd( GtkWidget * forme, int noPisteVideo, AudioMap_t * audioMap, SubMap_t * subMap, double factor ) { GtkWidget * item; char * tmpDir = ConfigGetString( KEY_TEMP, "/tmp" ); char * isoDir = ConfigGetString( KEY_ISODIR, GetEnv( "HOME", "/tmp" ) ); int lastCellF = ConfigGetInt( KEY_GENERIQUE, 0 ); char targetDir[512]; char sysCmd[10240]; /*KK:*/ int i; long long fsize; char injectionFile[100]; const gchar * text; int remove = 1; int res; int ret = 0; int nbSteps; int dynQual = 0; int burnF = ConfigGetInt( KEY_GRAVER, 0 ); int burnTool = BURNTOOL_NONE; char isoName[1024]; int isoF = ConfigGetInt( KEY_MKISO, 0 ); int buildImageF = 0; int removeImageF = 0; #if MNG_BADSECTORS LoadBadSectors(); #endif /*:: CHERCHER POURQUOI (DIE HARD 3) */ // factor += 0.1; COUNTER_START( OVERALL_COUNTER ); DBG('b',fprintf(stderr,"%s: factor: %f\n", __FUNCTION__, factor );); /* Verify we have enought free space to run */ fsize = FsFree( tmpDir ) - GetWantedBytes(); if( fsize < 0 ) { PlayError(); MessageBoxError( _("Pas assez de place sur %s\nIl manque %s octets !"), tmpDir, LLSize2Giga( -fsize ) ); return( -1 ); } /* Verify we have enought free space to run */ if( ConfigGetInt( KEY_MKISO, 0 ) ) { fsize = FsFree( isoDir ) - GetWantedBytes(); if( fsize < 0 ) { PlayError(); MessageBoxError( _("Pas assez de place sur %s\nIl manque %s octets !"), isoDir, LLSize2Giga( -fsize ) ); return( -1 ); } } /* Verify burn tool presence */ if( burnF ) { burnTool = BurnTool(); if( burnTool == BURNTOOL_NONE ) { PlayError(); MessageBoxError( _("Aucun utilitaire de gravure install !") ); return( -1 ); } } /* Reprise du titre du DVD */ item = lookup_widget(GTK_WIDGET(forme), "titre" ); text = gtk_entry_get_text( GTK_ENTRY(item) ); strcpy( TitreDvd, text ); FreeCellArray( &CellArray ); BuildCells( noPisteVideo, &CellArray, lastCellF, 0 ); CurVTS = 0; CurVOB = 0; OutFp = NULL; OutSize = 0; TotalSize = 0; SimulF = NoMenuF = 0; memset( MenuCopied, 0, sizeof(MenuCopied)); CreateAvancement( forme ); nbSteps = CountSelectedCells( &CellArray ) + 1; /* +1 pour final Vob update */ /* Ajout des copy de menu */ nbSteps += Ifo_zero->vmgi_mat->vmg_nr_of_title_sets + 1; /* VTS0 */ if( ConfigGetInt( KEY_MKISO, 0 ) ) nbSteps++; SetTotalSteps( nbSteps ); DisplayAvancement( _("Copie de %d cellules.\n"), CountSelectedCells( &CellArray ) ); /* Create empty filesystem tree */ DisplayAvancement( _("Effacement des anciens fichiers.\n")); sprintf( targetDir, "%s/%s", tmpDir, TitreDvd ); switch( DirExist( targetDir ) ) { case 1 : res = MessageBoxYesNo( _("Le repertoire %s existe. L'effacer ?"), targetDir ); if( res != 1 ) { ret = -1; goto out; } sprintf( sysCmd,"rm -rf \"%s/VIDEO_TS\"", targetDir ); res = system( sysCmd ); sprintf( sysCmd,"rm -rf \"%s/AUDIO_TS\"", targetDir ); res = system( sysCmd ); break; case -1 : MessageBoxError( _("%s n'est pas un repertoire ! Veuillez l'effacer."), targetDir ); ret = -1; goto out; break; } sprintf( sysCmd,"mkdir -p \"%s/VIDEO_TS\"", targetDir ); res = system( sysCmd ); sprintf( sysCmd,"mkdir -p \"%s/AUDIO_TS\"", targetDir ); res = system( sysCmd ); sprintf( injectionFile, "%s/vapinj.%d", tmpDir, getpid()); /* Setup vaporizer */ if( VaporizeInit( Readin, OutputFlux, 1 ) < 0 ) { ret = -1; goto out; } /* Setup tracks & factor */ for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { int id = GetAudioId( noPisteVideo, i ); DBG('b',fprintf(stderr,"%s: VaporizeAudio(%d)\n", __FUNCTION__, id );); VaporizeAudio( id ); } } for( i = 0; i < MAX_SUB_TRACK; i++ ) { if( subMap->subTracks[i] ) { int id = GetSubId( noPisteVideo, i ); DBG('b',fprintf(stderr,"%s: VaporizeSubp(%d)\n", __FUNCTION__, id );); VaporizeSubp( id ); } } if( ConfigGetInt( KEY_QUALDYN, 0 ) ) { DisplayAvancement( _("Ajustement automatique de la qualité.\n")); dynQual = 1; } VaporizeFactor( factor, dynQual ); VaporizeInjection( injectionFile ); Mpeg2Init(); /* Copy Root Menu */ if( CopyMenu( 0, targetDir ) < 0 ) { ret = -1; goto out; } /* Copy cells */ for( i = 0; i < CellArray.nbCells; i++ ) { Cell_t * c = CellArray.cells + i; if( CopyCell( c, targetDir ) < 0 ) { ret = -1; goto out; } if( c->selected ) { NewStep(); if( dynQual ) { double nFactor = ReCpuFactor(); if( nFactor ) { double pct; VaporizeFactor( nFactor, 0 ); if( MyAbs( factor - nFactor ) >= 0.01 ) { pct = (1.0 / nFactor) * 100; DBG('z',fprintf(stderr,"Ajustement requant factor: %.2f%%\n", pct );); DisplayAvancement( _("Ajustement de qualité à %.2f%%.\n"), pct ); } factor = nFactor; } } } // DBG('b',fprintf(stderr,"CopyCell: (%u,%u)=>(%u,%u)\n", c->startSector, c->lastSector,CurCell->startSector, CurCell->lastSector );); // DumpVobus( CurCell ); } if( TotalSize > GetMaxBytes() ) { int res; res = MessageBoxYesNo( _("Fichier VOB trop gros (%s) !\nDésirez vous continuer ?"), LLSize2Giga(TotalSize)); if( res != 1 ) { ret = -1; goto out; } } out:; VaporizeTerm(); if( OutFp ) { fclose( OutFp ); OutFp = NULL; } Mpeg2End(); if( !ret ) { VobSize[CurVOB] = OutSize; UpdateIfo( targetDir ); UpdateMainIfo( targetDir ); // if( UpdateVob( CurVTS, CurVOB, OutSize, targetDir ) < 0 ) return( -1 ); if( UpdateVobs( targetDir ) < 0 ) return( -1 ); NewStep(); } if( !ret ) { /* OK Ask if the user want to see the movie */ { int msgRet = MessagePhase2( targetDir ); switch( msgRet ) { case PHASE2_ARRIERE : res = -1; goto out; case PHASE2_AVANCER : break; } } /* OK iso image an burn stage */ if( isoF ) buildImageF = 1; if( burnF && burnTool == BURNTOOL_BRASERO ) { /* Have to make a temporary image file */ buildImageF = 1; if( !isoF ) removeImageF = 1; } if( buildImageF ) { sprintf( isoName, "%s/%s.iso", isoDir, TitreDvd ); switch( FileExist( isoName ) ) { case 1 : res = MessageBoxYesNo( _("Le fichier %s existe. Le re-creer ?"), isoName ); if( res != 1 ) break; case 0 : DisplayAvancement( _("Construction de l'image ISO.\n") ); sprintf( sysCmd, "%s -dvd-video -V \"%s\" -o \"%s\" \"%s\"", GetMkIsoTool(), TitreDvd, isoName, targetDir ); res = ExecuteMkIsoFs( sysCmd ); if( res < 0 ) { res = MessageBoxYesNo( _("Erreur de construction. Effacer les fichiers ?"), isoName ); if( res != 1 ) remove = 0; ret = -1; } NewStep(); break; case -1 : MessageBoxError( _("%s n'est pas un fichier ! Veuillez l'effacer."), isoName ); ret = -1; goto out; break; } } /* Burn DVD if needed */ if( !ret && burnF ) { DisplayAvancement( _("Gravage sur DVD.\n") ); DvdClose(); if( burnTool == BURNTOOL_BRASERO ) res = BurnIsoFile( burnTool, Device, isoName ); else res = BurnVideoDir( burnTool, Device, targetDir ); DvdOpen( Device ); } if( removeImageF ) unlink( isoName ); } /* Nettoyage: keep VIDEO directory only if we do not build image, nor burn dvd */ if( !ret && !isoF && !burnF ) remove = 0; if( remove ) { DisplayAvancement( _("Effacement des fichiers.\n")); sprintf( sysCmd, "rm -rf \"%s\"", targetDir ); res = system( sysCmd ); } DestroyAvancement(); FreeAll(); if( !ret ) PlaySuccess(); else PlayError(); COUNTER_STOP( OVERALL_COUNTER ); COUNTERS_REPORT(); #if MNG_BADSECTORS SaveBadSectors(); #endif return( ret ); } /*------------------------------------------------------------------------------ OUTPUTNULL- Linux!jef 2006/01/24 23:07:28 ------------------------------------------------------------------------------*/ static int OutputNull( void * parm, unsigned char * buffer, int size ) { OutNullSize += size; return( size ); } /*------------------------------------------------------------------------------ CPUBACKUPQUALITY- Linux!jef 2006/01/30 22:31:56 ------------------------------------------------------------------------------*/ int CpuBackupQuality( GtkWidget * forme, int noPisteVideo, AudioMap_t * audioMap, SubMap_t * subMap, int menuF, double * pFactor ) { GtkWidget * item; char * tmpDir = ConfigGetString( KEY_TEMP, "/tmp" ); int lastCellF = ConfigGetInt( KEY_GENERIQUE, 0 ); char targetDir[512]; int i; char injectionFile[100]; const gchar * text; int ret = 0; int totalSectors = 0; int pctSectors; int selSectors = 0; double pct = EVAL_QUALITY_PCT; long long menuSize = GetMenuSize(); int nb = 0; *pFactor = 1.0; /* Reprise du titre du DVD */ item = lookup_widget(GTK_WIDGET(forme), "titre" ); text = gtk_entry_get_text( GTK_ENTRY(item) ); strcpy( TitreDvd, text ); FreeCellArray( &CellArray ); BuildCells( noPisteVideo, &CellArray, lastCellF, 0 ); CurVTS = 0; CurVOB = 0; OutFp = NULL; OutSize = 0; TotalSize = 0; OutNullSize = 0; SimulF = 1; NoMenuF = menuF ? 0 : 1; memset( MenuCopied, 0, sizeof(MenuCopied)); CreateAvancement( forme ); /* Create empty filesystem tree */ sprintf( targetDir, "%s/%s", tmpDir, TitreDvd ); sprintf( injectionFile, "%s/vapinj.%d", tmpDir, getpid()); /* Setup vaporizer */ if( VaporizeInit( Readin, OutputNull, 1 ) < 0 ) { ret = -1; goto out; } /* Setup tracks & factor */ for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { int id = GetAudioId( noPisteVideo, i ); DBG('b',fprintf(stderr,"%s: VaporizeAudio(%d)\n", __FUNCTION__, id );); VaporizeAudio( id ); } } for( i = 0; i < MAX_SUB_TRACK; i++ ) { if( subMap->subTracks[i] ) { int id = GetSubId( noPisteVideo, i ); DBG('b',fprintf(stderr,"%s: VaporizeSubp(%d)\n", __FUNCTION__, id );); VaporizeSubp( id ); } } VaporizeFactor( 1.0, 1 ); VaporizeInjection( injectionFile ); /* Compute total sectors size */ for( i = 0; i < CellArray.nbCells; i++ ) { Cell_t * c = CellArray.cells + i; if( c->selected ) totalSectors += SECTOR_SZ(c); c->pSelected = c->selected; c->selected = 0; } pctSectors = (int)((double)totalSectors * pct); DBG( 'b',fprintf(stderr,"totalSectors: %d pctSectors: %d\n", totalSectors, pctSectors );); //!! srand( 0x180364 ); srand( time(0L) ); while( 1 ) { int idx = rand() % CellArray.nbCells; Cell_t * c = CellArray.cells + idx; if( !c->selected && c->pSelected ) { DBG( 'b',fprintf(stderr,"Selecting cell %d\n", c->idx );); c->selected = 1; nb++; selSectors += SECTOR_SZ(c); } if( selSectors >= pctSectors ) break; } DisplayAvancement( _("Analyse de %d cellules.\n"), nb ); SetTotalSteps( nb ); /* Copy Root Menu */ if( CopyMenu( 0, targetDir ) < 0 ) { ret = -1; goto out; } //!! DBG( 'b',fprintf(stderr,"MenuSize: %lld\n", TotalSize );); /* Copy cells */ for( i = 0; i < CellArray.nbCells; i++ ) { Cell_t * c = CellArray.cells + i; if( CopyCell( c, targetDir ) < 0 ) { ret = -1; goto out; } if( c->selected ) NewStep(); } //fprintf(stderr,"OutNullSize: %lld\n", OutNullSize ); DBG( 'b',fprintf(stderr,"menuSize: %lld\n", menuSize );); out:; VaporizeTerm(); if( !ret ) { double dFactor; long long videoSize; long long audioSize; long long subpSize; long long navSize; int vVideoSize; int vAudioSize; int vSubpSize; int vNavSize; VaporizeSizes( &vVideoSize, &vAudioSize, &vSubpSize, &vNavSize ); DBG( 'b',fprintf(stderr,"VAPORIZE VIDEO SIZE: %lld\n", (long long)vVideoSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE AUDIO SIZE: %lld\n", (long long)vAudioSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE SUBP SIZE: %lld\n", (long long)vSubpSize * DVD_BLOCK_LEN );); DBG( 'b',fprintf(stderr,"VAPORIZE NAV SIZE: %lld\n", (long long)vNavSize * DVD_BLOCK_LEN );); videoSize = ( (long long)vVideoSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)selSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL VIDEOSIZE: %lld\n", videoSize );); audioSize = ( (long long)vAudioSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)selSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL AUDIOSIZE: %lld\n", audioSize );); subpSize = ( (long long)vSubpSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)selSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL SUBSIZE: %lld\n", subpSize );); navSize = ( (long long)vNavSize * (long long)DVD_BLOCK_LEN * (long long)totalSectors ) / (long long)selSectors; DBG( 'b',fprintf(stderr,"2) ESTIMATED TOTAL NAVSIZE: %lld\n", navSize );); if( NoMenuF ) { /* Les packets de navigations sont de la video non compressible ! */ dFactor = (double)( videoSize ) / (double)( GetWantedBytes() - audioSize - subpSize - navSize ); DBG( 'b',fprintf(stderr,"dFactor: %f\n", dFactor );); } else { dFactor = (double)( videoSize ) / (double)( GetWantedBytes() - audioSize - subpSize - menuSize - navSize ); DBG( 'b',fprintf(stderr,"dFactor: %f\n", dFactor );); dFactor = dFactor + (dFactor / (double) 100 * (double) 3); // 3 % Reserve } DBG( 'b',fprintf(stderr,"dFactor: %f\n", dFactor );); if (dFactor < 1) dFactor = 1; // pct = (1 - (dFactor - 1)) * 100; pct = (1.0 / dFactor) * 100.0; DBG( 'b',fprintf(stderr,"Qualite: %f%%\n", pct );); *pFactor = dFactor; } DestroyAvancement(); FreeAll(); return( ret ); } dvd95/src/dvdbackup.h000066400000000000000000000017011140003301000146710ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdbackup.h] DATE : 2006/01/0005 20:57:52 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __DVDBACKUP_H__ #define __DVDBACKUP_H__ #include "dvdformat.h" /*@$#[dvdbackup.c] global proto. AutoProtoSigV1.1. date: 2009/02/04 23:16:03 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* dvdbackup.c */ int BackupDvd PROTO((GtkWidget *forme, int noPisteVideo, AudioMap_t *audioMap, SubMap_t *subMap, double factor)); int CpuBackupQuality PROTO((GtkWidget *forme, int noPisteVideo, AudioMap_t *audioMap, SubMap_t *subMap, int menuF, double *pFactor)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __DVDBACKUP_H__ */ dvd95/src/dvdcell.c000066400000000000000000000301231140003301000143360ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdcell.c] DATE : 2006/02/0015 21:54:36 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "const.h" #include "globals.h" #include "dvdinfo.h" #include "dvdcell.h" #include "systools.h" #include "dvdtools.h" /*@$#[dvdcell.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:16:18 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* dvdcell.c */ static int IsSelected PROTO((Cell_t *c, int noPisteVideo)); static int CellExist PROTO((CellArray_t *ca, int vts, uint32_t *start, uint32_t *end)); static void UnSelectLastCell PROTO((CellArray_t *ca)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ /*------------------------------------------------------------------------------ NEWCELL- Linux!jef 2005/12/28 21:15:15 ------------------------------------------------------------------------------*/ Cell_t * NewCell( CellArray_t * ca ) { Cell_t * c; int idx = ca->nbCells; int size = (idx + 1) * sizeof( Cell_t ); ca->cells =(Cell_t *)realloc( ca->cells, size ); c = ca->cells + idx; memset( c, 0, sizeof(*c)); c->idx = idx; ca->nbCells++; return( c ); } /*------------------------------------------------------------------------------ NEWTITLESET- Linux!jef 2006/01/16 21:21:20 ------------------------------------------------------------------------------*/ TitleSet_t * NewTitleSet( TitleArray_t * ta ) { TitleSet_t * t; int idx = ta->nbTitles; int size = (idx + 1) * sizeof( TitleSet_t ); ta->titles =(TitleSet_t *)realloc( ta->titles, size ); t = ta->titles + idx; memset( t, 0, sizeof(*t)); ta->nbTitles++; return( t ); } /*------------------------------------------------------------------------------ NEWVOBU- Linux!jef 2006/01/18 22:15:52 ------------------------------------------------------------------------------*/ Vobu_t * NewVobu( VobuArray_t * va, uint32_t oldSector ) { Vobu_t * v; int idx = va->nbVobu; int size = (idx + 1) * sizeof( Vobu_t ); int i; va->vobus =(Vobu_t *)realloc( va->vobus, size ); v = va->vobus + idx; memset( v, 0, sizeof(*v)); for( i = 0; i < 8; i++ ) v->firstAudio[i] = -1; for( i = 0; i < 32; i++ ) v->firstSubp[i] = -1; v->firstVideo = -1; v->idx = idx; v->oldSector = oldSector; //!! DBG('b',fprintf(stderr,"%s: idx: %d\n", __FUNCTION__, idx );); /// DBG('v',fprintf(stderr,"%s: oldSector %u\n", __FUNCTION__, oldSector );); va->nbVobu++; return( v ); } /*------------------------------------------------------------------------------ ISSELECTED- Linux!jef 2005/12/29 21:10:05 ------------------------------------------------------------------------------*/ static int IsSelected( Cell_t * c, int noPisteVideo ) { Piste_t * piste = GetPiste( noPisteVideo ); int vts = piste->vts; // Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr; int vts_ttn; pgcit_t *vts_pgcit; pgc_t *pgc; int i,j; if( vts != c->vts ) { DBG('b',fprintf(stderr,"%s: rejected because vts %d != c->vts %d\n", __FUNCTION__,vts, c->vts );); return( 0 ); } vts_pgcit = piste->vts_pgcit; // Ifo[vts]->vts_pgcit; vts_ttn = Ifo_zero->tt_srpt->title[noPisteVideo].vts_ttn; // pgc = vts_pgcit->pgci_srp[Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].ptt[0].pgcn - 1].pgc; for( j = 0; j < vts_pgcit->nr_of_pgci_srp; j++ ) { int cell = 0; pgc = vts_pgcit->pgci_srp[j].pgc; for( i = 0; i < pgc->nr_of_programs; i++ ) { int next; if( i == pgc->nr_of_programs - 1) next = pgc->nr_of_cells + 1; else next = pgc->program_map[i + 1]; while (cell < next - 1) { unsigned int s = pgc->cell_playback[cell].first_sector; unsigned int e = pgc->cell_playback[cell].last_sector; if( c->startSector >= s && c->startSector <= e ) return( 1 ); cell++; } } } DBG('b',fprintf(stderr,"%s: (%u-%u) rejected because not in range\n", __FUNCTION__, c->startSector, c->lastSector );); DBG('b',fprintf(stderr,"%s: vts_pgcit->nr_of_pgci_srp=%d\n", __FUNCTION__, vts_pgcit->nr_of_pgci_srp );); return( 0 ); } /*------------------------------------------------------------------------------ CELLEXIST- Linux!jef 2006/01/25 01:11:11 ------------------------------------------------------------------------------*/ static int CellExist( CellArray_t * ca, int vts, uint32_t * start, uint32_t * end ) { int i; for( i = 0; i < ca->nbCells; i++ ) { Cell_t * c = ca->cells + i; if( c->vts == vts ) { if( c->startSector <= *start && c->lastSector >= *end ) return( 1 ); #if 0 if( c->startSector <= *start ) { *start = c->lastSector + 1; } else { *end = c->startSector - 1; } #endif } } if( *start >= *end ) return( 1 ); return( 0 ); } /*------------------------------------------------------------------------------ UNSELECTLASTCELL- Linux!jef 2007/01/19 22:52:11 ------------------------------------------------------------------------------*/ static void UnSelectLastCell( CellArray_t * ca ) { int i; for( i = ca->nbCells -1; i >= 0; i-- ) { Cell_t * c = ca->cells + i; if( c->selected ) { c->selected = 0; break; } } } /*------------------------------------------------------------------------------ BUILDCELLS- Linux!jef 2005/12/28 21:18:16 ------------------------------------------------------------------------------*/ int BuildCells( int noPisteVideo, CellArray_t * ca, int lastF, int skipAngle ) { int nrTS = Ifo_zero->vmgi_mat->vmg_nr_of_title_sets; /* Number of title sets */ int i,j,k; DBG('b',fprintf(stderr,"%s: nrTS=%d noPisteVideo=%d\n", __FUNCTION__, nrTS, noPisteVideo );); for( k = 1; k <= nrTS; k++ ) { ifo_handle_t * ifo = Ifo[k]; int vts_ttn, title_set_nr; int nbChapter; if( !ifo ) continue; if( !ifo->vtsi_mat ) continue; DBG('b',fprintf(stderr,"VTS: %d PGCS: %d ifo: %p\n", k, ifo->vts_pgcit->nr_of_pgci_srp, ifo );); vts_ttn = Ifo_zero->tt_srpt->title[noPisteVideo].vts_ttn; /* Title number within VTS */ DBG('b',fprintf(stderr,"NumberOfAngles: %d\n", Ifo_zero->tt_srpt->title[noPisteVideo].nr_of_angles );); title_set_nr = Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr; /* Video Title Set number, VTSN */ DBG('b', fprintf(stderr,"nr_of_srpts=%d\n", Ifo[title_set_nr]->vts_ptt_srpt->nr_of_srpts );); g_assert( vts_ttn <= Ifo[title_set_nr]->vts_ptt_srpt->nr_of_srpts ); nbChapter = Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].nr_of_ptts; DBG('b', fprintf(stderr,"(nbChapter) nr_of_ptts=%d\n", nbChapter );); /* vts_ttn -1 because array is 0 based and number is 1 based */ i = Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].ptt[0].pgcn - 1; DBG('b', fprintf(stderr,"title_set_nr=%d vts_ttn=%d pgcIndex=%d nbPgc=%d\n", title_set_nr, vts_ttn, i, ifo->vts_pgcit->nr_of_pgci_srp );); // for( i = 0; i < nbChapter; i++ ) { if( i < ifo->vts_pgcit->nr_of_pgci_srp ) { pgc_t * pgc = ifo->vts_pgcit->pgci_srp[i].pgc; cell_playback_t * cell_playback; cell_position_t * cell_position; int nr; g_assert( i < ifo->vts_pgcit->nr_of_pgci_srp ); cell_playback = pgc->cell_playback; cell_position = pgc->cell_position; nr = pgc->nr_of_cells; DBG('b',fprintf(stderr,"NrOfCells: %d\n", nr );); for( j = 0; j < nr; j++ ) { uint32_t start = cell_playback[j].first_sector; uint32_t end = cell_playback[j].last_sector; DBG('b',fprintf(stderr,"%s: cell(%d) b_mode=0x%x b_type=0x%x at %u=>%u ", __FUNCTION__, j, cell_playback[j].block_mode, cell_playback[j].block_type, start, end );); DBG('b',fprintf(stderr,"vobid: %d zero_1: %d cell_id: %d\n",cell_position[j].vob_id_nr, cell_position[j].zero_1, cell_position[j].cell_nr );); if( cell_position[j].zero_1 ) continue; #if 0 if( cell_playback[j].block_type == 1 ) { for( ++j; j < nr; j++ ) { if( cell_playback[j].block_type == 1 && cell_playback[j].block_mode == 3 ) break; } end = cell_playback[j].last_sector; } #endif if( !CellExist( ca, k, &start, &end ) ) { Cell_t * c = NewCell( ca ); c->vts = k; c->ifo = ifo; c->pgc = pgc; c->startSector = start; c->lastSector = end; c->selected = IsSelected( c, noPisteVideo ); c->chapter = j; if( skipAngle ) { /* FIXME: a l'interieur d'un angle block on ne devrait prendre qu'une cell sur deux ! take first, skip, take, ... */ if( cell_playback[j].block_type == 1 && ( cell_playback[j].block_mode == 2 || cell_playback[j].block_mode == 3) ) c->selected = 0; } } } } else { /* We have to generate a fake cell in order to generate VTS_xx... */ Cell_t * c = NewCell( ca ); pgc_t * pgc = ifo->vts_pgcit->pgci_srp[0].pgc; c->vts = k; c->ifo = ifo; c->pgc = pgc; c->startSector = 0; c->lastSector = 0; c->selected = 0; c->chapter = 0; } } if( lastF ) UnSelectLastCell( ca ); DBG('b',fprintf(stderr,"NrCells: %d\n", ca->nbCells ); long long tSize = 0; for( i = 0; i < ca->nbCells; i++ ) { Cell_t * c = ca->cells + i; long long size; fprintf(stderr,"Cell%d: ", i); size = (long long)SECTOR_SZ(c) * (long long)SECTOR_SIZE; tSize += size; fprintf(stderr,"vts: %d ", c->vts ); fprintf(stderr,"start: %u end: %u ", c->startSector, c->lastSector ); fprintf(stderr,"size: %s ", LLSize2Giga( size ) ); fprintf(stderr,"selected: %d\n", c->selected ); } fprintf(stderr,"Total size: %s\n", LLSize2Giga( tSize ) ); ); return( 0 ); } /*------------------------------------------------------------------------------ FREECELLARRAY- Linux!jef 2005/12/28 21:30:33 ------------------------------------------------------------------------------*/ void FreeCellArray( CellArray_t * ca ) { int i; for( i = 0; i < ca->nbCells; i++ ) { Cell_t * c = ca->cells + i; VobuArray_t * va = &c->va; if( va->nbVobu ) { free( va->vobus ); va->nbVobu = 0; } } if( ca->nbCells ) { free( ca->cells ); } ca->cells = NULL; ca->nbCells = 0; } /*------------------------------------------------------------------------------ COUNTSELECTEDCELLS- Linux!jef 2006/01/26 21:29:53 ------------------------------------------------------------------------------*/ int CountSelectedCells( CellArray_t * ca ) { int i; int count = 0; for( i = 0; i < ca->nbCells; i++ ) { Cell_t * c = ca->cells + i; if( c->selected ) count++; } return( count ); } /***************************************************************************//** * COUNTTOTALSECTORS- * @date 2010/04/22 23:47:45 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int CountTotalSectors( CellArray_t * ca ) { int totalSectors = 0; int i; /* Compute total sectors size */ for( i = 0; i < ca->nbCells; i++ ) { Cell_t * c = ca->cells + i; if( c->selected ) totalSectors += SECTOR_SZ(c); } return( totalSectors ); } /***************************************************************************//** * COUNTDONESECTORS- * @date 2010/04/22 23:48:51 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int CountDoneSectors( CellArray_t * ca ) { int doneSectors = 0; int i; /* Compute already done sectors size */ for( i = 0; i < ca->nbCells; i++ ) { Cell_t * c = ca->cells + i; if( c->done ) doneSectors += SECTOR_SZ(c); } return( doneSectors ); } /*------------------------------------------------------------------------------ DUMPVOBUS- Linux!jef 2006/01/18 23:06:39 ------------------------------------------------------------------------------*/ void DumpVobus( Cell_t * c ) { int i; DBG('b',fprintf(stderr,"Vobus: number: %d\n", c->va.nbVobu );); for( i = 0; i < c->va.nbVobu; i++ ) { Vobu_t * v = c->va.vobus + i; DBG('b',fprintf(stderr,"Vobus%d: (%u)=>(%u,%u)\n", v->idx, v->oldSector, v->newSector, v->newSector + v->size );); } } dvd95/src/dvdcell.h000066400000000000000000000035151140003301000143500ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdcell.h] DATE : 2006/02/0015 21:55:35 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __DVDCELL_H__ #define __DVDCELL_H__ typedef struct { int idx; uint32_t newSector; uint32_t oldSector; uint32_t size; int firstAudio[8]; int firstSubp[32]; int firstVideo; int empty; } Vobu_t; typedef struct { Vobu_t * vobus; int nbVobu; } VobuArray_t; typedef struct { int idx; int vts; ifo_handle_t * ifo; pgc_t * pgc; uint32_t startSector; uint32_t lastSector; int selected; int pSelected; int done; int chapter; uint32_t oldStartSector; uint32_t oldLastSector; VobuArray_t va; int numVobu; } Cell_t; typedef struct { Cell_t * cells; int nbCells; } CellArray_t; typedef struct { int vts; ifo_handle_t * ifo; uint32_t startSector; uint32_t lastSector; CellArray_t ca; } TitleSet_t; typedef struct { TitleSet_t * titles; int nbTitles; } TitleArray_t; #define SECTOR_SZ( c ) ( c->lastSector - c->startSector + 1 ) /*@$#[dvdcell.c] global proto. AutoProtoSigV1.1. date: 2010/04/22 23:50:07 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif Cell_t *NewCell(CellArray_t *ca); TitleSet_t *NewTitleSet(TitleArray_t *ta); Vobu_t *NewVobu(VobuArray_t *va, uint32_t oldSector); int BuildCells(int noPisteVideo, CellArray_t *ca, int lastF, int skipAngle); void FreeCellArray(CellArray_t *ca); int CountSelectedCells(CellArray_t *ca); int CountTotalSectors(CellArray_t *ca); int CountDoneSectors(CellArray_t *ca); void DumpVobus(Cell_t *c); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) []*/ #endif /* __DVDCELL_H__ */ dvd95/src/dvdcopy.c000066400000000000000000001521761140003301000144060ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdcopy.c] DATE : 2005/12/0001 22:04:33 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org * encoding UTF8 !-UTF8-! ================================================================================ COPY sans garder les menus ==============================================================================*/ #define __USE_LARGEFILE64 #define _LARGEFILE64_SOURCE #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #define CTEST(x) /***/ #include "support.h" #include "dvdformat.h" #include "dvdinfo.h" #include "dvdtools.h" #include "message.h" #include "gconfig.h" #include "interface.h" #include "globals.h" #include "systools.h" #include "uitools.h" #include "avancement.h" #include "dvdcopy.h" #include "const.h" #include "profile.h" #define IsValidAudioTrack( pgc, t ) (( pgc->audio_control[t] >> 8) != 0 ) #define IsValidSubpTrack( pgc, t ) (( pgc->subp_control[t] >> 24) != 0 ) #define BCD2INT( v ) (((v & 0xf0) >> 3) * 5 + (v & 0x0f)) // static char *_AudioFormat[7] = { "AC3", "?", "MPEG1", "MPEG2", "LPCM ", "SDDS ", "DTS" }; // static char *_AudioType[5] = { "", "Normal", "Impaired", "Director's comments", "Alternate director's comments" }; /* static char *SubpType[16] = { "", "Normal", "Large", "Children", "reserved", "Normal_CC", "Large_CC", "Children_CC", "reserved", "Forced", "reserved", "reserved", "reserved", "Director", "Large_Director", "Children_Director" }; */ static char * AspectRatio[4] = {"4:3", "16:9", "\"?:?\"", "16:9"}; static char TitreDvd[128]; /*@$#[dvdcopy.c] static proto. AutoProtoSigV1.1. date: 2009/06/04 21:09:17 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif static char *_AudioFormat(int format); static char *_AudioType(int type); static char *_SubType(int type); static int NrOfSubp(vtsi_mat_t *vtsi_mat, pgc_t *pgc); static gint VideoSortString(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata); static gint VideoSortStringNBR(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata); static int SubpId(unsigned int control); static int AudioId(unsigned int control); static void AudioCheckToggled(GtkCellRendererToggle *cell, gchar *path_str, gpointer data); static void SubCheckToggled(GtkCellRendererToggle *cell, gchar *path_str, gpointer data); static gint AudioSortString(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata); static gint AudioSortStringNBR(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata); static gint SubSortString(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata); static gint SubSortStringNBR(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata); static unsigned long GetSector(int chapitre, pgc_t *pgc); static unsigned short SubCode(int noPisteVideo, int noSubtitle); static double DefaultRequantFactor(int noPisteVideo, AudioMap_t *audioMap, SubMap_t *subMap, int useMenuF); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) []*/ /***************************************************************************//** * _AUDIOFORMAT- * @date 2009/06/04 20:45:14 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static char * _AudioFormat( int format ) { switch( format ) { case 0 : return( _("AC3") ); case 1 : return( _("?") ); case 2 : return( _("MPEG1") ); case 3 : return( _("MPEG2") ); case 4 : return( _("LPCM") ); case 5 : return( _("SDDS") ); case 6 : return( _("DTS") ); } return( _("?") ); } /***************************************************************************//** * _AUDIOTYPE- * @date 2009/06/04 20:48:42 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static char * _AudioType( int type ) { switch( type ) { case 0 : return( "" ); case 1 : return( _("Normal") ); case 2 : return( _("Impaired") ); case 3 : return( _("Director's comments") ); case 4 : return( _("Alternate director's comments" ) ); } return( "" ); } /***************************************************************************//** * _SUBTYPE- * @date 2009/06/04 20:55:44 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static char * _SubType( int type ) { switch( type ) { case 0 : return( "" ); case 1 : return( _("Normal") ); case 2 : return( _("Large") ); case 3 : return( _("Enfants") ); case 4 : return( _("Reserved") ); case 5 : return( _("Légende normale") ); case 6 : return( _("Légende large") ); case 7 : return( _("Légende enfants") ); case 8 : return( _("reserved") ); case 9 : return( _("Forcé") ); case 10 : return( _("reserved") ); case 11 : return( _("reserved") ); case 12 : return( _("reserved") ); case 13 : return( _("Réalisateur") ); case 14 : return( _("Réalisateur large") ); case 15 : return( _("Réalisateur enfants") ); } return( "" ); } /*------------------------------------------------------------------------------ NROFSUBP- Linux!jef 2006/01/25 21:43:53 ------------------------------------------------------------------------------*/ static int NrOfSubp( vtsi_mat_t * vtsi_mat, pgc_t * pgc ) { int i; int count = 0; for( i = 0; i < vtsi_mat->nr_of_vts_subp_streams; i++ ) { if( IsValidSubpTrack( pgc, i ) ) count++; } return( count ); } /*------------------------------------------------------------------------------ SORTSTRING- Linux!jef 2007/01/30 21:46:59 ------------------------------------------------------------------------------*/ static gint VideoSortString( GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata) { gint sortcol = GPOINTER_TO_INT(userdata); gint ret = 0; gchar *name1, *name2; switch (sortcol) { case VIDEO_COL5_LANG: case VIDEO_COL7_VIDEO: gtk_tree_model_get(model, a, sortcol, &name1, -1); gtk_tree_model_get(model, b, sortcol, &name2, -1); if( name1 == NULL || name2 == NULL ) { if( name1 == NULL && name2 == NULL ) break; ret = (name1 == NULL) ? -1 : 1; } else ret = g_utf8_collate( name1, name2 ); g_free( name1 ); g_free( name2 ); break; } return( ret ); } /*------------------------------------------------------------------------------ SORTSTRINGNBR- Linux!jef 2007/01/30 21:46:59 ------------------------------------------------------------------------------*/ static gint VideoSortStringNBR( GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata) { gint sortcol = GPOINTER_TO_INT(userdata); gint ret = 0; gchar *name1, *name2; switch (sortcol) { case VIDEO_COL2_PISTE : case VIDEO_COL4_CHAPITRE: case VIDEO_COL6_SUB: gtk_tree_model_get(model, a, sortcol, &name1, -1); gtk_tree_model_get(model, b, sortcol, &name2, -1); if( name1 == NULL || name2 == NULL ) { if( name1 == NULL && name2 == NULL ) break; ret = (name1 == NULL) ? -1 : 1; } else { ret = atoi( name1 ) - atoi( name2 ); if( ret < 0 ) ret = -1; if( ret > 0 ) ret = 1; } g_free( name1 ); g_free( name2 ); break; case VIDEO_COL3_DUREE : gtk_tree_model_get(model, a, sortcol, &name1, -1); gtk_tree_model_get(model, b, sortcol, &name2, -1); if( name1 == NULL || name2 == NULL ) { if( name1 == NULL && name2 == NULL ) break; ret = (name1 == NULL) ? -1 : 1; } else { int d1 = StringDuree2Sec( name1 ); int d2 = StringDuree2Sec( name2 ); if( d1 > d2 ) ret = 1; if( d1 < d2 ) ret = -1; // fprintf(stderr,"(%s/%d)(%s/%d)=%d\n", name1,d1, name2,d2, ret ); } g_free( name1 ); g_free( name2 ); break; } return( ret ); } /*------------------------------------------------------------------------------ SCANDVD- Linux!jef 2005/12/02 21:55:34 ------------------------------------------------------------------------------*/ int ScanDvd( GtkWidget * forme ) { GtkWidget * item; int i,j; pgcit_t *vts_pgcit; vtsi_mat_t *vtsi_mat; vmgi_mat_t *vmgi_mat; video_attr_t *video_attr; int title_set_nr; int vts_ttn; pgc_t *pgc; char string[1024]; GtkTreeStore *treestore; GtkTreeIter iter; GtkTreeViewColumn *col; GtkCellRenderer *renderer; unsigned long maxSec = 0; GtkTreeIter longest; int noPiste = 0; /* Close old data before starting new */ DvdClose(); OpenAnalyse(); if(DvdOpen( Device ) < 0 ) { CloseAnalyse(); MessageBoxError( _("Lecture de la structure impossible !") ); return( -1 ); } if( GetDVDTitleUsingLibDVD( TitreDvd ) < 0 ) { CloseAnalyse(); MessageBoxError( _("Lecture du titre de %s impossible!"), Device ); return( -1 ); } CloseAnalyse(); item = lookup_widget(GTK_WIDGET(forme), "titre" ); g_assert( item ); gtk_entry_set_text( GTK_ENTRY(item), TitreDvd ); gtk_widget_show( item ); item = lookup_widget(GTK_WIDGET(forme), "PistesVideo" ); g_assert( item ); /* Permits theme decoration */ gtk_tree_view_set_rules_hint( GTK_TREE_VIEW(item), TRUE ); /* Erase old columns */ for( i = VIDEO_NCOLS-1; i >=0; i-- ) { col = gtk_tree_view_get_column( GTK_TREE_VIEW(item), i ); if( col ) gtk_tree_view_remove_column(GTK_TREE_VIEW(item), col); } treestore = gtk_tree_store_new( VIDEO_NCOLS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT ); g_assert( treestore ); /* La piste */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Piste"), renderer, "text", VIDEO_COL2_PISTE, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, VIDEO_COL2_PISTE ); /* La duree */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Dur\303\251e"), renderer, "text", VIDEO_COL3_DUREE, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, VIDEO_COL3_DUREE ); /* Les chapitres */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Chapitres"), renderer, "text", VIDEO_COL4_CHAPITRE, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, VIDEO_COL4_CHAPITRE ); /* Les langues */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Langues"), renderer, "text", VIDEO_COL5_LANG, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, VIDEO_COL5_LANG ); /* Les subs */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Sous-titres"), renderer, "text", VIDEO_COL6_SUB, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, VIDEO_COL6_SUB ); /* Les format video */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Format"), renderer, "text", VIDEO_COL7_VIDEO, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, VIDEO_COL7_VIDEO ); vmgi_mat = Ifo_zero->vmgi_mat; RazPistes(); DBG('c',fprintf(stderr,"#title_sets: %d NrTitles: %d ifo_zero->tt_srpt->nr_of_srpts: %d\n", vmgi_mat->vmg_nr_of_title_sets, NrTitles, Ifo_zero->tt_srpt->nr_of_srpts);); for( j = 0; j < Ifo_zero->tt_srpt->nr_of_srpts; j++ ) { ifo_handle_t * ifo = Ifo[Ifo_zero->tt_srpt->title[j].title_set_nr]; Piste_t * piste = GetPiste(j); DBG('c',fprintf(stderr,"title%d ifo: %p ifo#: %d\n", j, ifo, Ifo_zero->tt_srpt->title[j].title_set_nr );); if( !ifo ) continue; vtsi_mat = ifo->vtsi_mat; vts_pgcit = ifo->vts_pgcit; /* HUM HUM */ // piste->vts = j+1; piste->vts = Ifo_zero->tt_srpt->title[j].title_set_nr; piste->ifo = ifo; piste->vtsi_mat = vtsi_mat; piste->vts_pgcit = vts_pgcit; if( vtsi_mat && vts_pgcit ) { int k; char langues[100]; audio_attr_t *audio_attr; unsigned long sec; int h,m,s; vts_ptt_srpt_t * vts_ptt_srpt; video_attr = &vtsi_mat->vts_video_attr; vts_ttn = Ifo_zero->tt_srpt->title[j].vts_ttn; title_set_nr = Ifo_zero->tt_srpt->title[j].title_set_nr; vts_ptt_srpt = ifo->vts_ptt_srpt; DBG('c',fprintf(stderr,"vts_ttn: %d nr_of_srpts: %d\n", vts_ttn, vts_ptt_srpt->nr_of_srpts);); pgc = vts_pgcit->pgci_srp[Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].ptt[0].pgcn - 1].pgc; DBG('c',fprintf(stderr,"Piste: %d nr_of_pgci_srp: %d ifo: %p Pgc: %p Audio#: %d\n", j + 1, vts_pgcit->nr_of_pgci_srp, ifo, pgc, vtsi_mat->nr_of_vts_audio_streams);); *langues = 0; { DBG('c',fprintf(stderr,"#cells: %d\n", pgc->nr_of_cells );); for( k = 0; k < vtsi_mat->nr_of_vts_audio_streams;k++ ) { char lang_code[3]; if( IsValidAudioTrack( pgc, k ) ) { audio_attr = &vtsi_mat->vts_audio_attr[k]; if( audio_attr->lang_code != 0xFFFF ) { DBG('c',fprintf(stderr,"Audio code 0x%x\n", audio_attr->lang_code );); sprintf( lang_code, "%c%c", audio_attr->lang_code >> 8,audio_attr->lang_code & 0xff); if( !strstr( langues, lang_code ) ) { if( *langues ) strcat( langues, "," ); strcat( langues, lang_code ); } } } else { DBG('c',fprintf(stderr,"Unavailable audio track %d\n", k );); } } sec = BCD2INT( pgc->playback_time.hour ) * 3600; sec += BCD2INT( pgc->playback_time.minute ) * 60; sec += BCD2INT( pgc->playback_time.second ); DBG('c',fprintf(stderr,"sec=%s\n", Duree2String( sec ) );); piste->pgcs[piste->nrPgc++] = pgc; piste->duree += sec; piste->sectors += GetSector( -1, pgc ); piste->nrSubp = NrOfSubp( vtsi_mat, piste->pgcs[0] ); /* Verify track duration and filter if == 0 */ if( piste->duree == 0 ) continue; } /* Check if pgc seems valid */ if( CheckPgc( pgc ) < 0 ) { DBG( 'c', fprintf( stderr, "Check pgc failed !\n" );); DBG( 'c', DumpPgc( pgc ) ); continue; } /* else { DBG( 'c', fprintf( stderr, "Good pgc!\n" );); DBG( 'c', DumpPgc( pgc ) ); } */ sec = piste->duree; h = sec / 3600; sec -= h * 3600; m = sec / 60; sec -= m * 60; s = sec; gtk_tree_store_append(treestore, &iter, NULL ); sprintf( string, _("%d"), j + 1 ); gtk_tree_store_set( treestore, &iter, VIDEO_COL2_PISTE, string, -1 ); // sprintf( string, _("%02d h %02d m %02d s"),h,m,s ); HMS2String( h, m, s, string ); gtk_tree_store_set( treestore, &iter, VIDEO_COL3_DUREE, string, -1 ); sprintf( string, _("%d"), Ifo_zero->tt_srpt->title[j].nr_of_ptts ); gtk_tree_store_set( treestore, &iter, VIDEO_COL4_CHAPITRE, string, -1 ); sprintf( string, _("%s"), langues ); gtk_tree_store_set( treestore, &iter, VIDEO_COL5_LANG, string, -1 ); sprintf( string, _("%d"), piste->nrSubp ); gtk_tree_store_set( treestore, &iter, VIDEO_COL6_SUB, string, -1 ); sprintf( string, _("%s"), AspectRatio[video_attr->display_aspect_ratio]); gtk_tree_store_set( treestore, &iter, VIDEO_COL7_VIDEO, string, -1 ); gtk_tree_store_set( treestore, &iter, VIDEO_COL8_NO, j, -1 ); if( piste->sectors > maxSec ) { maxSec = piste->sectors; longest = iter; noPiste = j; } } else { DBG('c',fprintf(stderr,"Piste%d: no vtsi_mat\n", j+1);); } } DBG('c',fprintf(stderr,"Scan end.\n");); gtk_tree_view_set_model(GTK_TREE_VIEW(item), GTK_TREE_MODEL(treestore)); gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(item)), GTK_SELECTION_SINGLE ); /* Permits sorting */ gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), VIDEO_COL2_PISTE, VideoSortStringNBR, (gpointer)VIDEO_COL2_PISTE, NULL); gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), VIDEO_COL3_DUREE, VideoSortStringNBR, (gpointer)VIDEO_COL3_DUREE, NULL); gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), VIDEO_COL4_CHAPITRE, VideoSortStringNBR, (gpointer)VIDEO_COL4_CHAPITRE, NULL); gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), VIDEO_COL5_LANG, VideoSortString, (gpointer)VIDEO_COL5_LANG, NULL); gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), VIDEO_COL6_SUB, VideoSortStringNBR, (gpointer)VIDEO_COL6_SUB, NULL); gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), VIDEO_COL7_VIDEO, VideoSortString, (gpointer)VIDEO_COL7_VIDEO, NULL); /* Pre-select longest track */ if( maxSec) { GtkTreeSelection *selection; selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(item)); gtk_tree_selection_select_iter( selection, &longest ); ScanPiste( forme, noPiste ); } gtk_widget_show_all( item ); g_object_unref(treestore); return( 0 ); } /*------------------------------------------------------------------------------ UPDDEFFACTOR- Linux!jef 2005/12/17 01:03:12 ------------------------------------------------------------------------------*/ void UpdDefFactor( GtkWidget * forme, int noPisteVideo, AudioMap_t * audioMap, SubMap_t * subMap ) { GtkWidget * item; double dFactor; double pct; int useMenuF = ConfigGetInt( KEY_USEMENU, 0 ); dFactor = DefaultRequantFactor( noPisteVideo, audioMap, subMap, useMenuF ); item = lookup_widget(GTK_WIDGET(forme), "Qualite" ); g_assert( item ); pct = (1.0 / dFactor ) * 100.0; // fprintf(stderr,"dFactor=%f qualite=%f\n", dFactor, pct ); gtk_range_set_value( GTK_RANGE( item ), pct ); gtk_widget_show_now( item ); GtkFlush(); } /*------------------------------------------------------------------------------ GETMENUSIZE- Linux!jef 2005/12/27 21:17:23 ------------------------------------------------------------------------------*/ long long GetMenuSize() { int menuSizes[MAX_VTS]; int ts; int i; vmgi_mat_t * vmgi_mat; vtsi_mat_t * vtsi_mat; pgcit_t * vts_pgcit; pgc_t * pgc; long long menuSize; vmgi_mat = Ifo_zero->vmgi_mat; memset( menuSizes, 0, sizeof(menuSizes)); menuSizes[0] = vmgi_mat->vmg_last_sector; for( ts = 1; ts <= Ifo_zero->vts_atrt->nr_of_vtss; ts++ ) { if( !Ifo[ts] ) continue; vtsi_mat = Ifo[ts]->vtsi_mat; vts_pgcit = Ifo[ts]->vts_pgcit; // fprintf(stderr,"%p %p nr: %d\n", vtsi_mat, vts_pgcit,vts_pgcit->nr_of_pgci_srp ); for( i = 0; i < vts_pgcit->nr_of_pgci_srp; i++) { pgc = vts_pgcit->pgci_srp[i].pgc; // fprintf(stderr,"pgc%d: %p\n", i, pgc ); if( vtsi_mat && (pgc->nr_of_cells >0)) { menuSizes[ts] = vtsi_mat->vtstt_vobs + vtsi_mat->vtsi_last_sector +1; } } } // fprintf(stderr,"here\n"); menuSize = 0; for( i = 0; i < MAX_VTS; i++ ) menuSize += (long long)menuSizes[i]; return( menuSize * SECTOR_SIZE ); } /*------------------------------------------------------------------------------ SUBPID- Linux!jef 2006/02/02 22:33:20 ------------------------------------------------------------------------------*/ static int SubpId( unsigned int control ) { unsigned char subpc; int id = 0; if( control & 0x80000000 ) { /* Take wide sub if present */ subpc = ( control >>16 ) & 0x1F; if( subpc ) return( (int)subpc ); /* Take 4/3 sub if present */ subpc = ( control >> 24 ) & 0x1F; if( subpc ) return( (int)subpc ); /* Take letterbox sub if present */ subpc = ( control >> 8 ) & 0x1F; if( subpc ) return( (int)subpc ); /* Take pan&scan sub if present */ subpc = control & 0x1F; if( subpc ) return( (int)subpc ); } #if 0 subpc = control>>24; if ((subpc & 0x80)==0x80) { id = 0; if( (subpc &0x1F) !=0 ) id = (subpc & 0x1F); subpc = control>>16; if( (subpc &0x1F) !=0 ) id = (subpc & 0x1F); subpc = control>>8; if( (subpc &0x1F) !=0 ) id = (subpc & 0x1F); subpc = control; if( (subpc &0x1F) !=0 ) id = (subpc & 0x1F); } #endif return( id ); } /*------------------------------------------------------------------------------ GETSUBID- Linux!jef 2006/02/02 22:41:39 ------------------------------------------------------------------------------*/ int GetSubId( int noPisteVideo, int noPisteSub ) { // ifo_handle_t * ifo = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]; Piste_t * piste = GetPiste(noPisteVideo); // ifo_handle_t * ifo = piste->ifo; pgcit_t *vts_pgcit; int title_set_nr; int vts_ttn; pgc_t *pgc; // vts_pgcit = ifo->vts_pgcit; vts_pgcit = piste->vts_pgcit; vts_ttn = Ifo_zero->tt_srpt->title[noPisteVideo].vts_ttn; title_set_nr = Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr; // pgc = vts_pgcit->pgci_srp[Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].ptt[0].pgcn - 1].pgc; pgc = piste->pgcs[0]; return( SubpId( pgc->subp_control[noPisteSub] ) ); } /*------------------------------------------------------------------------------ AUDIOPID- Linux!jef 2006/02/02 22:33:20 ------------------------------------------------------------------------------*/ static int AudioId( unsigned int control ) { return( (control >> 8) & 0x07 ); } /*------------------------------------------------------------------------------ GETSUBID- Linux!jef 2006/02/02 22:41:39 ------------------------------------------------------------------------------*/ int GetAudioId( int noPisteVideo, int noPisteAudio ) { Piste_t * piste = GetPiste( noPisteVideo ); pgcit_t *vts_pgcit; int title_set_nr; int vts_ttn; pgc_t *pgc; // vts_pgcit = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vts_pgcit; vts_pgcit = piste->vts_pgcit; vts_ttn = Ifo_zero->tt_srpt->title[noPisteVideo].vts_ttn; title_set_nr = Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr; // pgc = vts_pgcit->pgci_srp[Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].ptt[0].pgcn - 1].pgc; pgc = piste->pgcs[0]; return( AudioId( pgc->audio_control[noPisteAudio ] ) ); } /*------------------------------------------------------------------------------ AUDIOCHECKTOGGLED- Linux!jef 2007/01/17 21:59:17 ------------------------------------------------------------------------------*/ static void AudioCheckToggled( GtkCellRendererToggle *cell, gchar * path_str, gpointer data) { GtkTreeModel *model = (GtkTreeModel *)data; GtkTreePath *path = gtk_tree_path_new_from_string (path_str); GtkTreeIter iter; gboolean toggle_item; gchar * langCode; gchar * audioPref = ConfigGetString( KEY_AUDIO, "" ); gchar * audioFormat; gchar * audioChannels; char audioTag[50]; // fprintf(stderr,"BLIP %p (%s)!\n", model, path_str ); /* get toggled iter */ gtk_tree_model_get_iter( model, &iter, path); gtk_tree_model_get( model, &iter, AUDIO_COL1_CHECK, &toggle_item, -1); gtk_tree_model_get( model, &iter, AUDIO_COL7_LANGCODE, &langCode, -1); gtk_tree_model_get( model, &iter, AUDIO_COL4_FORMAT, &audioFormat, -1); gtk_tree_model_get( model, &iter, AUDIO_COL6_CANAUX, &audioChannels, -1); /* Build audio tag to correctly select audio track */ sprintf( audioTag, "%s.%s.%s", langCode, audioFormat, audioChannels ); /* do something with the value */ toggle_item ^= 1; DBG('p',fprintf(stderr,"AudioPref=(%s) AudioTag(%s)\n", audioPref, audioTag );); if( toggle_item ) { DBG('p',fprintf(stderr,"AudioTag (%s) selected\n", audioTag );); audioPref = AddString2List( audioPref, audioTag ); } else { DBG('p',fprintf(stderr,"AudioTag (%s) unselected\n", audioTag );); audioPref = RemoveStringFromList( audioPref, audioTag ); } DBG('p',fprintf(stderr,"AudioPref=(%s)\n", audioPref );); SetConfigString( KEY_AUDIO, audioPref ); free( audioPref ); /* set new value */ gtk_tree_store_set(GTK_TREE_STORE (model), &iter, AUDIO_COL1_CHECK, toggle_item, -1); /* clean up */ gtk_tree_path_free( path ); g_free( langCode ); } /*------------------------------------------------------------------------------ SUBCHECKTOGGLED- Linux!jef 2007/01/17 21:59:17 ------------------------------------------------------------------------------*/ static void SubCheckToggled( GtkCellRendererToggle *cell, gchar * path_str, gpointer data) { GtkTreeModel *model = (GtkTreeModel *)data; GtkTreePath *path = gtk_tree_path_new_from_string (path_str); GtkTreeIter iter; gboolean toggle_item; gchar * langCode; gchar * subPref = ConfigGetString( KEY_SUBTITLE, "" ); // fprintf(stderr,"BLIP %p (%s)!\n", model, path_str ); /* get toggled iter */ gtk_tree_model_get_iter( model, &iter, path); gtk_tree_model_get( model, &iter, SUB_COL1_CHECK, &toggle_item, -1); gtk_tree_model_get( model, &iter, SUB_COL5_LANGCODE, &langCode, -1); /* do something with the value */ toggle_item ^= 1; CTEST(fprintf(stderr,"SubPref=(%s)\n", subPref );); if( toggle_item ) { CTEST(fprintf(stderr,"LangCode (%s) selected\n", langCode );); subPref = AddString2List( subPref, langCode ); } else { CTEST(fprintf(stderr,"LangCode (%s) unselected\n", langCode );); subPref = RemoveStringFromList( subPref, langCode ); } CTEST(fprintf(stderr,"SubPref=(%s)\n", subPref );); SetConfigString( KEY_SUBTITLE, subPref ); free( subPref ); /* set new value */ gtk_tree_store_set (GTK_TREE_STORE (model), &iter, SUB_COL1_CHECK, toggle_item, -1); /* clean up */ gtk_tree_path_free (path); g_free( langCode ); } /*------------------------------------------------------------------------------ SORTSTRING- Linux!jef 2007/01/30 21:46:59 ------------------------------------------------------------------------------*/ static gint AudioSortString( GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata) { gint sortcol = GPOINTER_TO_INT(userdata); gint ret = 0; gchar *name1, *name2; switch (sortcol) { case AUDIO_COL3_LANG: case AUDIO_COL4_FORMAT : gtk_tree_model_get(model, a, sortcol, &name1, -1); gtk_tree_model_get(model, b, sortcol, &name2, -1); if( name1 == NULL || name2 == NULL ) { if( name1 == NULL && name2 == NULL ) break; ret = (name1 == NULL) ? -1 : 1; } else ret = g_utf8_collate( name1, name2 ); g_free( name1 ); g_free( name2 ); break; } return( ret ); } /*------------------------------------------------------------------------------ SORTSTRINGNBR- Linux!jef 2007/01/30 21:46:59 ------------------------------------------------------------------------------*/ static gint AudioSortStringNBR( GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata) { gint sortcol = GPOINTER_TO_INT(userdata); gint ret = 0; gchar *name1, *name2; switch (sortcol) { case AUDIO_COL2_PISTE: case AUDIO_COL6_CANAUX: gtk_tree_model_get(model, a, sortcol, &name1, -1); gtk_tree_model_get(model, b, sortcol, &name2, -1); if( name1 == NULL || name2 == NULL ) { if( name1 == NULL && name2 == NULL ) break; ret = (name1 == NULL) ? -1 : 1; } else { ret = atoi( name1 ) - atoi( name2 ); if( ret < 0 ) ret = -1; if( ret > 0 ) ret = 1; } g_free( name1 ); g_free( name2 ); break; } return( ret ); } /*------------------------------------------------------------------------------ SORTSTRING- Linux!jef 2007/01/30 21:46:59 ------------------------------------------------------------------------------*/ static gint SubSortString( GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata) { gint sortcol = GPOINTER_TO_INT(userdata); gint ret = 0; gchar *name1, *name2; switch (sortcol) { case SUB_COL3_LANG: case SUB_COL4_EXT : gtk_tree_model_get(model, a, sortcol, &name1, -1); gtk_tree_model_get(model, b, sortcol, &name2, -1); if( name1 == NULL || name2 == NULL ) { if( name1 == NULL && name2 == NULL ) break; ret = (name1 == NULL) ? -1 : 1; } else ret = g_utf8_collate( name1, name2 ); g_free( name1 ); g_free( name2 ); break; } return( ret ); } /*------------------------------------------------------------------------------ SORTSTRINGNBR- Linux!jef 2007/01/30 21:46:59 ------------------------------------------------------------------------------*/ static gint SubSortStringNBR( GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer userdata) { gint sortcol = GPOINTER_TO_INT(userdata); gint ret = 0; gchar *name1, *name2; switch (sortcol) { case SUB_COL2_PISTE: gtk_tree_model_get(model, a, sortcol, &name1, -1); gtk_tree_model_get(model, b, sortcol, &name2, -1); if( name1 == NULL || name2 == NULL ) { if( name1 == NULL && name2 == NULL ) break; ret = (name1 == NULL) ? -1 : 1; } else { ret = atoi( name1 ) - atoi( name2 ); if( ret < 0 ) ret = -1; if( ret > 0 ) ret = 1; } g_free( name1 ); g_free( name2 ); break; } return( ret ); } /*------------------------------------------------------------------------------ SCANPISTE- Linux!jef 2005/12/05 20:43:40 ------------------------------------------------------------------------------*/ int ScanPiste( GtkWidget * forme, int noPisteVideo ) { GtkWidget * item; int i,k; pgcit_t *vts_pgcit; vtsi_mat_t *vtsi_mat; vmgi_mat_t *vmgi_mat; audio_attr_t *audio_attr; video_attr_t *video_attr; subp_attr_t *subp_attr; int title_set_nr; int vts_ttn; pgc_t *pgc; char langues[100]; char string[1024]; gchar * audioPref; GtkTreeStore *treestore; GtkTreeIter iter; GtkTreeViewColumn *col; GtkTreeViewColumn *colCheck; GtkCellRenderer *renderer; GtkCellRenderer *renderCheck = NULL; GtkTreeModel * model; gchar * subPref; int subFound = 0; AudioMap_t audioMap; SubMap_t subMap; Piste_t * piste = GetPiste( noPisteVideo ); Profile_t * p = GetProfile( GetFormat() ); g_assert( p ); // fprintf(stderr,"%s-%d\n",__FILE__,__LINE__); memset( &audioMap, 0, sizeof(audioMap)); memset( &subMap, 0, sizeof(subMap)); audioPref = ConfigGetString( KEY_AUDIO, "fr" ); subPref = ConfigGetString( KEY_SUBTITLE, "fr" ); /* Pistes Audio */ item = lookup_widget(GTK_WIDGET(forme), "PistesAudio" ); g_assert( item ); /* Permits theme decoration */ gtk_tree_view_set_rules_hint( GTK_TREE_VIEW(item), TRUE ); /* Erase old columns */ for( i = AUDIO_NCOLS-1; i >=0; i-- ) { col = gtk_tree_view_get_column( GTK_TREE_VIEW(item), i ); if( col ) gtk_tree_view_remove_column(GTK_TREE_VIEW(item), col); } treestore = gtk_tree_store_new( AUDIO_NCOLS, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT ); g_assert( treestore ); renderCheck = gtk_cell_renderer_toggle_new(); g_object_set( renderCheck, "xalign", 0.0, NULL); colCheck = gtk_tree_view_column_new_with_attributes( "", renderCheck, "active", AUDIO_COL1_CHECK, NULL); /* Ajout de la colonne à la vue */ gtk_tree_view_append_column(GTK_TREE_VIEW(item), colCheck); /* La piste */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Piste"), renderer, "text", AUDIO_COL2_PISTE, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, AUDIO_COL2_PISTE ); /* La langue */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Langue"), renderer, "text", AUDIO_COL3_LANG, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, AUDIO_COL3_LANG ); /* Le format */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Format"), renderer, "text", AUDIO_COL4_FORMAT, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, AUDIO_COL4_FORMAT ); /* Extension */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Extension"), renderer, "text", AUDIO_COL5_EXTENSION, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, AUDIO_COL5_EXTENSION ); /* Les canaux */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Canaux"), renderer, "text", AUDIO_COL6_CANAUX, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, AUDIO_COL6_CANAUX ); // vtsi_mat = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vtsi_mat; // vts_pgcit = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vts_pgcit; vtsi_mat = piste->vtsi_mat; vts_pgcit = piste->vts_pgcit; video_attr = &vtsi_mat->vts_video_attr; vts_ttn = Ifo_zero->tt_srpt->title[noPisteVideo].vts_ttn; vmgi_mat = Ifo_zero->vmgi_mat; title_set_nr = Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr; // pgc = vts_pgcit->pgci_srp[Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].ptt[0].pgcn - 1].pgc; pgc = piste->pgcs[0]; *langues = 0; for( k = 0; k < vtsi_mat->nr_of_vts_audio_streams;k++ ) { char lang_code[3]; char audio_tag[50]; if( IsValidAudioTrack( pgc, k ) ) { audio_attr = &vtsi_mat->vts_audio_attr[k]; sprintf( lang_code, "%c%c", audio_attr->lang_code >> 8,audio_attr->lang_code & 0xff); DBG('c',fprintf(stderr,"Audio%d=0x%x %s (0x%x) Id: %d Channels: %d\n",k, pgc->subp_control[k], DvdLangCode2String( lang_code ), audio_attr->lang_code, AudioId(pgc->audio_control[k]), audio_attr->channels + 1 );); gtk_tree_store_append(treestore, &iter, NULL ); sprintf( string, _("%d"), k+1 ); gtk_tree_store_set( treestore, &iter, AUDIO_COL2_PISTE, string, -1 ); sprintf( string, _("%s"), DvdLangCode2String( lang_code ) ); gtk_tree_store_set( treestore, &iter, AUDIO_COL3_LANG, string, -1 ); sprintf( string, "%s", _AudioFormat(audio_attr->audio_format) ); gtk_tree_store_set( treestore, &iter, AUDIO_COL4_FORMAT, string, -1 ); sprintf( string, "%s", _AudioType(audio_attr->code_extension) ); gtk_tree_store_set( treestore, &iter, AUDIO_COL5_EXTENSION, string, -1 ); sprintf( string, _("%d"), audio_attr->channels + 1 ); gtk_tree_store_set( treestore, &iter, AUDIO_COL6_CANAUX, string, -1 ); gtk_tree_store_set( treestore, &iter, AUDIO_COL7_LANGCODE, lang_code, -1 ); gtk_tree_store_set( treestore, &iter, AUDIO_COL8_NO, k, -1 ); /* Build audio tag to correctly select audio track */ sprintf( audio_tag, "%s.%s.%d", lang_code, _AudioFormat(audio_attr->audio_format), audio_attr->channels + 1 ); if( strstr( audioPref, audio_tag ) ) { gtk_tree_store_set( treestore, &iter, AUDIO_COL1_CHECK, 1, -1 ); audioMap.audioTracks[k] = 1; } } } gtk_tree_view_set_model(GTK_TREE_VIEW(item), GTK_TREE_MODEL(treestore)); /* Permits sorting */ gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), AUDIO_COL2_PISTE, AudioSortStringNBR, (gpointer)AUDIO_COL2_PISTE, NULL); gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), AUDIO_COL3_LANG, AudioSortString, (gpointer)AUDIO_COL3_LANG, NULL); gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), AUDIO_COL4_FORMAT, AudioSortString, (gpointer)AUDIO_COL4_FORMAT, NULL); gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), AUDIO_COL6_CANAUX, AudioSortStringNBR, (gpointer)AUDIO_COL6_CANAUX, NULL); if( renderCheck ) { model = gtk_tree_view_get_model(GTK_TREE_VIEW(item)); g_assert( model ); g_signal_connect( renderCheck, "toggled", G_CALLBACK(AudioCheckToggled), model); } /* if( ConfigGetInt( KEY_USEMENU, 0 ) ) { gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(item)), GTK_SELECTION_MULTIPLE ); } else gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(item)), GTK_SELECTION_SINGLE ); */ gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(item)), GTK_SELECTION_NONE ); gtk_widget_show_all( item ); g_object_unref(treestore); /* Sous titres */ item = lookup_widget(GTK_WIDGET(forme), "SousTitres" ); g_assert( item ); /* Permits theme decoration */ gtk_tree_view_set_rules_hint( GTK_TREE_VIEW(item), TRUE ); /* Erase old columns */ for( i = AUDIO_NCOLS-1; i >=0; i-- ) { col = gtk_tree_view_get_column( GTK_TREE_VIEW(item), i ); if( col ) gtk_tree_view_remove_column(GTK_TREE_VIEW(item), col); } treestore = gtk_tree_store_new( SUB_NCOLS, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT ); g_assert( treestore ); renderCheck = gtk_cell_renderer_toggle_new(); g_object_set( renderCheck, "xalign", 0.0, NULL); colCheck = gtk_tree_view_column_new_with_attributes( "", renderCheck, "active", SUB_COL1_CHECK, NULL); /* Ajout de la colonne à la vue */ gtk_tree_view_append_column(GTK_TREE_VIEW(item), colCheck); /* La piste */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Piste"), renderer, "text", SUB_COL2_PISTE, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, SUB_COL2_PISTE ); /* La langue */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Langue"), renderer, "text", SUB_COL3_LANG, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, SUB_COL3_LANG ); /* L'extension */ renderer = gtk_cell_renderer_text_new(); col = gtk_tree_view_column_new_with_attributes( _("Ext"), renderer, "text", SUB_COL4_EXT, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(item), col); gtk_tree_view_column_set_sort_column_id( col, SUB_COL4_EXT ); // vtsi_mat = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vtsi_mat; // vts_pgcit = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vts_pgcit; video_attr = &vtsi_mat->vts_video_attr; vts_ttn = Ifo_zero->tt_srpt->title[noPisteVideo].vts_ttn; vmgi_mat = Ifo_zero->vmgi_mat; title_set_nr = Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr; // pgc = vts_pgcit->pgci_srp[Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].ptt[0].pgcn - 1].pgc; *langues = 0; for( k = 0; k < vtsi_mat->nr_of_vts_subp_streams; k++ ) { char lang_code[3]; if( IsValidSubpTrack( pgc, k ) ) { subp_attr = &vtsi_mat->vts_subp_attr[k]; sprintf (lang_code, "%c%c", subp_attr->lang_code >> 8, subp_attr->lang_code & 0xff); if (!lang_code[0]) { strcpy (lang_code, "xx"); } gtk_tree_store_append(treestore, &iter, NULL ); sprintf( string, _("%d"), k+1 ); gtk_tree_store_set( treestore, &iter, SUB_COL2_PISTE, string, -1 ); sprintf( string, _("%s"), DvdLangCode2String( lang_code ) ); gtk_tree_store_set( treestore, &iter, SUB_COL3_LANG, string, -1 ); sprintf( string, "%s", _SubType( subp_attr->code_extension ) ); gtk_tree_store_set( treestore, &iter, SUB_COL4_EXT, string, -1 ); gtk_tree_store_set( treestore, &iter, SUB_COL5_LANGCODE, lang_code, -1 ); gtk_tree_store_set( treestore, &iter, SUB_COL6_NO, k, -1 ); DBG('c',fprintf(stderr,"Subp%d=0x%x %s ID: %d EXT:%d LEXT: 0x%x\n",k, pgc->subp_control[k], DvdLangCode2String( lang_code ), SubpId(pgc->subp_control[k]), subp_attr->code_extension, subp_attr->lang_extension );); if( strstr( subPref, lang_code ) ) { gtk_tree_store_set( treestore, &iter, SUB_COL1_CHECK, 1, -1 ); subMap.subTracks[k] = 1; subFound++; } } } /* Add a empty subtitle track */ // gtk_tree_store_append(treestore, &iter, NULL ); // gtk_tree_store_set( treestore, &iter, SUB_COL2_PISTE, _("AUCUN"), -1 ); /* And the default selected if none */ // if( !subFound ) { // gtk_tree_store_set( treestore, &iter, SUB_COL1_CHECK, 1, -1 ); // } gtk_tree_view_set_model(GTK_TREE_VIEW(item), GTK_TREE_MODEL(treestore)); gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(item)), GTK_SELECTION_NONE ); /* Permits sorting */ gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), SUB_COL2_PISTE, SubSortStringNBR, (gpointer)SUB_COL2_PISTE, NULL); gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), SUB_COL3_LANG, SubSortString, (gpointer)SUB_COL3_LANG, NULL); gtk_tree_sortable_set_sort_func( GTK_TREE_SORTABLE( GTK_TREE_MODEL( treestore ) ), SUB_COL4_EXT, SubSortString, (gpointer)SUB_COL4_EXT, NULL); model = gtk_tree_view_get_model(GTK_TREE_VIEW(item)); g_assert( model ); g_signal_connect( renderCheck, "toggled", G_CALLBACK(SubCheckToggled), model); gtk_widget_show_all( item ); g_object_unref(treestore); UpdDefFactor( forme, noPisteVideo, &audioMap, &subMap ); return( 0 ); } /*------------------------------------------------------------------------------ GETSECTOR- Linux!jef 2005/12/07 22:17:13 ------------------------------------------------------------------------------*/ static unsigned long GetSector( chapitre, pgc ) int chapitre; pgc_t * pgc; { int i; int cell = 0; unsigned int total = 0; DBG('b',fprintf(stderr,"%s:> #programs: %d\n",__FUNCTION__, pgc->nr_of_programs);); for( i = 0; i < pgc->nr_of_programs; i++ ) { DBG('b',fprintf(stderr,"%s: Chapitre: %d Start=%d\n", __FUNCTION__, i+1, pgc->program_map[i] );); } { int j; for( j = 0; j < pgc->nr_of_cells; j++ ) { cell_playback_t * cell_playback = &pgc->cell_playback[j]; unsigned int secSize; secSize = cell_playback->last_sector - cell_playback->first_sector + 1; DBG('b',fprintf(stderr,"%s: cell %d block_type=%d block_mode=%d secSize=%s from: %u to: %u\n", __FUNCTION__, j, cell_playback->block_type, cell_playback->block_mode, LLSize2Giga((long long)secSize * SECTOR_SIZE), cell_playback->first_sector,cell_playback->last_sector );); } } for( i = 0; i < pgc->nr_of_programs; i++ ) { unsigned int sectors = 0; int next; if( i == (pgc->nr_of_programs - 1)) next = pgc->nr_of_cells + 1; else next = pgc->program_map[i + 1]; DBG('b',fprintf(stderr,"%s: first=%d next: %d start=%d\n", __FUNCTION__, cell, next, pgc->program_map[i] );); while( cell < next - 1 ) { unsigned int secSize; cell_playback_t * cell_playback = &pgc->cell_playback[cell]; /* cell cannot index > nr_of_cells */ if( cell >= pgc->nr_of_cells ) break; secSize = cell_playback->last_sector - cell_playback->first_sector + 1; // DBG('b',fprintf(stderr,"%s: block_type=%d block_mode=%d secSize=%s from: %u to: %u\n", __FUNCTION__, cell_playback->block_type, cell_playback->block_mode, LLSize2Giga((long long)secSize * SECTOR_SIZE), cell_playback->first_sector,cell_playback->last_sector );); #if IGNORE_ANGLE if( cell_playback->block_type == 1 ) { /* Angle block start */ unsigned int start = cell_playback->first_sector; unsigned int end; while( cell_playback->block_type == 1 && cell_playback->block_mode != 3 ) { cell++; cell_playback = &pgc->cell_playback[cell]; } end = cell_playback->last_sector; secSize = end - start + 1; DBG('b',fprintf(stderr,"%s: angle secSize=%s from: %u to: %u\n", __FUNCTION__, LLSize2Giga((long long)secSize * SECTOR_SIZE), cell_playback->first_sector,cell_playback->last_sector );); sectors += secSize; goto ignore; } #endif DBG('b',fprintf(stderr,"%s: prg=%d cell: %d secSize=%s from: %u to: %u\n", __FUNCTION__, i, cell, LLSize2Giga((long long)secSize * SECTOR_SIZE), cell_playback->first_sector,cell_playback->last_sector );); sectors += secSize; #if IGNORE_ANGLE ignore:; #endif cell++; } DBG('b',fprintf(stderr,"%s: Chapter %d size=%s\n", __FUNCTION__, i, LLSize2Giga((long long)sectors * SECTOR_SIZE) );); total += sectors; if ((i + 1) == chapitre ) { DBG('b',fprintf(stderr,"%s: total=%s\n", __FUNCTION__, LLSize2Giga((long long)sectors * SECTOR_SIZE) );); return( sectors ); } } DBG('b',fprintf(stderr,"%s: total=%s (%d sectors)\n", __FUNCTION__, LLSize2Giga((long long)total * SECTOR_SIZE), total );); return( total ); } /*------------------------------------------------------------------------------ TOTALAUDIOSIZE- Linux!jef 2006/01/30 23:39:05 ------------------------------------------------------------------------------*/ long long TotalAudioSize( int noPisteVideo, int * pDuree ) { Piste_t * piste = GetPiste( noPisteVideo ); pgcit_t *vts_pgcit; vtsi_mat_t *vtsi_mat; vmgi_mat_t *vmgi_mat; audio_attr_t *audio_attr; video_attr_t *video_attr; int title_set_nr; int vts_ttn; pgc_t *pgc; long long totalAudioSize = 0; int audioKBPS; int duree = 0; int i,j; vtsi_mat = piste->vtsi_mat; vts_pgcit = piste->vts_pgcit; video_attr = &vtsi_mat->vts_video_attr; vts_ttn = Ifo_zero->tt_srpt->title[noPisteVideo].vts_ttn; vmgi_mat = Ifo_zero->vmgi_mat; title_set_nr = Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr; for( j = 0; j < piste->nrPgc; j++ ) { pgc = piste->pgcs[j]; duree += ( BCD2INT( pgc->playback_time.hour ) * 3600) + ( BCD2INT( pgc->playback_time.minute ) * 60 ) + BCD2INT( pgc->playback_time.second ); for( i = 0; i < vtsi_mat->nr_of_vts_audio_streams; i++ ) { if( IsValidAudioTrack( pgc, i ) ) { audio_attr = &vtsi_mat->vts_audio_attr[i]; if((audio_attr->channels + 1) == 2) audioKBPS = 64 * 2; else audioKBPS = 64 * 6; totalAudioSize += ((long long)audioKBPS * (long long)duree * 1000LL) / 8LL; } } } if( pDuree ) *pDuree = duree; return( totalAudioSize ); } /*------------------------------------------------------------------------------ AUDIOSIZE- Linux!jef 2006/01/30 23:44:00 ------------------------------------------------------------------------------*/ long long AudioSize( int noPisteVideo, int noPisteAudio ) { Piste_t * piste = GetPiste( noPisteVideo ); pgcit_t *vts_pgcit; vtsi_mat_t *vtsi_mat; vmgi_mat_t *vmgi_mat; audio_attr_t *audio_attr; int audioKBPS; int duree = 0; long long size = 0; int j; vtsi_mat = piste->vtsi_mat; vts_pgcit = piste->vts_pgcit; vmgi_mat = Ifo_zero->vmgi_mat; for( j = 0; j < piste->nrPgc; j++ ) { pgc_t *pgc = piste->pgcs[j]; if( IsValidAudioTrack( pgc, noPisteAudio ) ) { duree = ( BCD2INT( pgc->playback_time.hour ) * 3600) + ( BCD2INT( pgc->playback_time.minute ) * 60 ) + BCD2INT( pgc->playback_time.second ); audio_attr = &vtsi_mat->vts_audio_attr[noPisteAudio]; if((audio_attr->channels + 1) == 2) audioKBPS = 64 * 2; else audioKBPS = 64 * 6; size += ((long long)audioKBPS * (long long)duree * 1000LL) / 8LL; DBG('c',fprintf(stderr,"%s: pisteAudio %d KPS: %d duree: %d size: %lld\n", __FUNCTION__, noPisteAudio, audioKBPS, duree, size );); } } return( size ); } /*------------------------------------------------------------------------------ SUBLANG- Linux!jef 2005/12/16 22:07:24 ------------------------------------------------------------------------------*/ static unsigned short SubCode( int noPisteVideo, int noSubtitle ) { vtsi_mat_t *vtsi_mat; subp_attr_t *subp_attr; vtsi_mat = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vtsi_mat; subp_attr = &vtsi_mat->vts_subp_attr[noSubtitle]; return( subp_attr->lang_code & 0xFFFF ); } /*------------------------------------------------------------------------------ DEFAULTREQUANTFACTOR- Linux!jef 2005/12/16 23:37:02 ------------------------------------------------------------------------------*/ static double DefaultRequantFactor( int noPisteVideo, AudioMap_t * audioMap, SubMap_t * subMap, int useMenuF ) { Piste_t * piste = GetPiste( noPisteVideo ); pgcit_t *vts_pgcit; vtsi_mat_t *vtsi_mat; vmgi_mat_t *vmgi_mat; audio_attr_t *audio_attr; video_attr_t *video_attr; int title_set_nr; int vts_ttn; // pgc_t *pgc; long long totalSectors; long long totalSize; long long totalAudioSize = 0; long long menuSize = 0; int audioKBPS; int duree; long long audioSize; int i; double factor; DBG('c',fprintf(stderr,"%s: noPisteVideo: %d\n", __FUNCTION__, noPisteVideo );); // vtsi_mat = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vtsi_mat; // vts_pgcit = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vts_pgcit; vtsi_mat = piste->vtsi_mat; vts_pgcit = piste->vts_pgcit; video_attr = &vtsi_mat->vts_video_attr; vts_ttn = Ifo_zero->tt_srpt->title[noPisteVideo].vts_ttn; vmgi_mat = Ifo_zero->vmgi_mat; title_set_nr = Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr; // pgc = vts_pgcit->pgci_srp[Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].ptt[0].pgcn - 1].pgc; // pgc = Pistes[noPisteVideo].pgc; totalSectors = piste->sectors; // GetSector( -1, pgc ); totalSize = totalSectors * SECTOR_SIZE; if( totalSize < GetWantedBytes() ) { DBG('c',fprintf(stderr,"%s: totalSize: %lld < %lld(DVDSize)\n", __FUNCTION__, totalSize, GetWantedBytes());); return( 1.0 ); } totalAudioSize = TotalAudioSize( noPisteVideo, &duree ); DBG('c',fprintf(stderr,"totalAudioSize: %lld duree: %d secondes\n", totalAudioSize, duree );); DBG('c',fprintf(stderr,"DureeVideo: %s\n", Duree2String( duree ) );); audioSize = 0; for( i = 0; i < MAX_AUDIO_TRACK; i++ ) { if( audioMap->audioTracks[i] ) { long long size; audio_attr = &vtsi_mat->vts_audio_attr[i]; if((audio_attr->channels + 1) == 2) audioKBPS = 64 * 2; else audioKBPS = 64 * 6; size = ((long long)audioKBPS * (long long)duree * 1000LL) / 8LL; audioSize += size; DBG('c',fprintf(stderr,"%s: pisteAudio %d KPS: %d size: %s ", __FUNCTION__, i, audioKBPS, LLSize2Giga(size) );); DBG('c',fprintf(stderr,"audioSize: %s\n", LLSize2Giga( audioSize ) );); } } if( useMenuF ) menuSize = GetMenuSize(); DBG('c',fprintf(stderr,"%s: totalSize: %s ", __FUNCTION__, LLSize2Giga(totalSize) );); DBG('c',fprintf(stderr,"totalAudioSize: %s\n", LLSize2Giga(totalAudioSize) );); DBG('c',fprintf(stderr,"%s: menuSize: %s\n", __FUNCTION__, LLSize2Giga(menuSize) );); DBG('c',fprintf(stderr,"%s: Video2Requant: %s\n", __FUNCTION__, LLSize2Giga( totalSize - totalAudioSize ) );); DBG('c',fprintf(stderr,"%s: VideoSizeAllocated: %s\n", __FUNCTION__, LLSize2Giga( GetWantedBytes() - audioSize - menuSize ) );); factor = (double)(totalSize - totalAudioSize) / (double) (GetWantedBytes() - audioSize - menuSize ); factor = factor + (factor / (double) 100 * (double) 3); // 3 % Reserve /* Pour eviter de compter plusieurs fois le meme subpicture */ { unsigned short lastCode = -1; for( i = 0; i < MAX_SUB_TRACK; i++ ) { if( subMap->subTracks[i] ) { unsigned short subCode = SubCode( noPisteVideo, i ); if( subCode != lastCode ) factor = factor + (factor / (double) 100); // 1 % Reserve pour soustitre lastCode = subCode; } } } factor = factor + (factor / (double) 200); // 0.5 % Overhead if (factor < 1) factor = 1; DBG('c',fprintf(stderr,"%s: factor: %f\n", __FUNCTION__, factor );); return( factor ); } /*------------------------------------------------------------------------------ VISUDVDSTRUCT- Linux!jef 2005/12/17 00:18:59 ------------------------------------------------------------------------------*/ void VisuDvdPiste( int noPisteVideo ) { char * player = ConfigGetString( KEY_PLAYER, "xine" ); char sysCmd[1024]; int res; if( !strcmp( player, "xine" )) { sprintf( sysCmd, "xine dvd:/%s", Device); res = system( sysCmd ); return; } if( !strcmp( player, "mplayer" )) { sprintf( sysCmd, "mplayer -dvd-device %s dvd://%d", Device, noPisteVideo + 1 ); res = system( sysCmd ); return; } if( !strcmp( player, "vlc" )) { sprintf( sysCmd, "vlc dvd://%s@%d:1", Device, noPisteVideo + 1 ); res = system( sysCmd ); return; } sprintf( sysCmd, "%s %s", player, Device ); res = system( sysCmd ); } /*------------------------------------------------------------------------------ VISUDVDSTRUCT- Linux!jef 2005/12/17 00:18:59 ------------------------------------------------------------------------------*/ void VisuDvdStruct( path ) char * path; { char * player = ConfigGetString( KEY_PLAYER, "xine" ); char sysCmd[1024]; int res; if( !strcmp( player, "xine" )) { sprintf( sysCmd, "xine \"dvd://%s\"", path ); DBG('c',fprintf(stderr,"%s: executing (%s)\n", __FUNCTION__, sysCmd );); res = system( sysCmd ); return; } if( !strcmp( player, "mplayer" )) { sprintf( sysCmd, "mplayer -dvd-device \"%s\" dvd://1", path ); DBG('c',fprintf(stderr,"%s: executing (%s)\n", __FUNCTION__, sysCmd );); res = system( sysCmd ); return; } if( !strcmp( player, "vlc" )) { sprintf( sysCmd, "vlc \"dvd://%s@0:1\"", path ); DBG('c',fprintf(stderr,"%s: executing (%s)\n", __FUNCTION__, sysCmd );); res = system( sysCmd ); return; } } /*------------------------------------------------------------------------------ EXECUTEMKISOFS- Linux!jef 2005/12/20 22:17:17 ------------------------------------------------------------------------------*/ int ExecuteMkIsoFs( char * sysCmd ) { FILE * fp; char line[1024]; int res = 0; int status; InitAvancement( 0 ); /* re-direct stderr */ strcat( sysCmd, " 2>&1" ); DBG('c',fprintf(stderr,"%s: executing (%s)\n", __FUNCTION__, sysCmd );); fp = popen( sysCmd, "r" ); if( !fp ) return( -1 ); while( 1 ) { char * p, * s; if( !fgets( line, sizeof(line), fp ) ) break; if( !*line ) continue; s = line; while( *s == ' ' || *s == '\t' ) s++; // fprintf(stderr,"line(%s)\n", s ); p = strchr( s, '%' ); if( p ) { double pct; *p = 0; /* locale troubles . => , */ pct = atof( s ); pct /= 100.0; //fprintf(stderr,"pct: %f\n", pct ); if( AvancementUi2( pct ) < 0 ) { res = -1; break; } } } status = pclose( fp ); if( !res && status ) { DBG('c',fprintf(stderr,"%s: retCode=%d\n", __FUNCTION__, status );); return( -1 ); } return( res ); } dvd95/src/dvdcopy.h000066400000000000000000000022231140003301000143760ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdcopy.h] DATE : 2006/01/0005 21:32:02 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __DVDCOPY_H__ #define __DVDCOPY_H__ /*@$#[dvdcopy.c] global proto. AutoProtoSigV1.1. date: 2010/03/15 22:35:54 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif int ScanDvd(GtkWidget *forme); void UpdDefFactor(GtkWidget *forme, int noPisteVideo, AudioMap_t *audioMap, SubMap_t *subMap); long long GetMenuSize(void); int GetSubId(int noPisteVideo, int noPisteSub); int GetAudioId(int noPisteVideo, int noPisteAudio); int ScanPiste(GtkWidget *forme, int noPisteVideo); long long TotalAudioSize(int noPisteVideo, int *pDuree); long long AudioSize(int noPisteVideo, int noPisteAudio); void VisuDvdPiste(int noPisteVideo); void VisuDvdStruct(char *path); int ExecuteMkIsoFs(char *sysCmd); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) []*/ #endif /* __DVDCOPY_H__ */ dvd95/src/dvdformat.c000066400000000000000000000047341140003301000147200ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdformat.c] DATE : 2006/01/0026 19:39:26 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "const.h" #include "dvdformat.h" #include "profile.h" typedef struct { int format; long long wanted_bytes; long long maxBytes; } DvdFormat_t; static DvdFormat_t Format; /*------------------------------------------------------------------------------ SETFORMAT- Linux!jef 2006/01/26 19:41:03 ------------------------------------------------------------------------------*/ void SetFormat( int format ) { Profile_t * p; switch( format ) { case DVD5 : Format.wanted_bytes = DVD5_WANTED_BYTES_LL; Format.maxBytes = MAX_DVD5_BYTES; break; case DVD9 : Format.wanted_bytes = DVD9_WANTED_BYTES_LL; Format.maxBytes = MAX_DVD9_BYTES; break; default : p = GetProfile( format ); g_assert( p ); Format.wanted_bytes = p->fileSize; Format.maxBytes = p->fileSize; break; } Format.format = format; } /*------------------------------------------------------------------------------ GETWANTEDBYTES- Linux!jef 2006/01/26 19:43:50 ------------------------------------------------------------------------------*/ long long GetWantedBytes() { return( Format.wanted_bytes ); } /*------------------------------------------------------------------------------ GETMAXBYTES- Linux!jef 2006/01/26 19:44:05 ------------------------------------------------------------------------------*/ long long GetMaxBytes() { return( Format.maxBytes ); } /*------------------------------------------------------------------------------ GETWORKBYTES- Linux!jef 2006/01/26 19:48:15 ------------------------------------------------------------------------------*/ long long GetWorkBytes() { return( 2 * MAX_DVD5_BYTES ); } /***************************************************************************//** * GETFORMAT- * @date 2009/01/14 21:07:49 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int GetFormat() { return( Format.format ); } dvd95/src/dvdformat.h000066400000000000000000000021161140003301000147150ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdformat.h] DATE : 2006/01/0026 19:44:16 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __DVDFORMAT_H__ #define __DVDFORMAT_H__ /* These are indexes in Combo */ #define DVD5 0 #define DVD9 1 #define AVI700 2 #include "const.h" typedef struct { int audioTracks[MAX_AUDIO_TRACK]; } AudioMap_t; typedef struct { int subTracks[MAX_SUB_TRACK]; } SubMap_t; /*@$#[dvdformat.c] global proto. AutoProtoSigV1.1. date: 2009/02/04 23:17:57 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* dvdformat.c */ void SetFormat PROTO((int format)); long long GetWantedBytes PROTO((void)); long long GetMaxBytes PROTO((void)); long long GetWorkBytes PROTO((void)); int GetFormat PROTO((void)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __DVDFORMAT_H__ */ dvd95/src/dvdinfo.c000066400000000000000000000171541140003301000143630ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdinfo.c] DATE : 2006/01/0005 20:51:46 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #define _LARGEFILE64_SOURCE #ifdef HAVE_CONFIG_H # include #endif #include #include #include #ifdef __APPLE__ /* fopen is 64-bit aware on Mac OS X */ #define fopen64(A,B) fopen(A,B) #endif #define __IN_DVDINFO__ #include "dvdinfo.h" #include "globals.h" static struct { char * code; char * name; } ArrLang[] = { { " ", "Not Specified" }, { "aa", "Afar" }, { "ab", "Abkhazian" }, { "af", "Afrikaans" }, { "am", "Amharic" }, { "ar", "Arabic" }, { "as", "Assamese" }, { "ay", "Aymara" }, { "az", "Azerbaijani" }, { "ba", "Bashkir" }, { "be", "Byelorussian" }, { "bg", "Bulgarian" }, { "bh", "Bihari" }, { "bi", "Bislama" }, { "bn", "Bengali; Bangla" }, { "bo", "Tibetan" }, { "br", "Breton" }, { "ca", "Catalan" }, { "co", "Corsican" }, { "cs", "Czech" }, { "cy", "Welsh" }, { "da", "Dansk" }, { "de", "Deutsch" }, { "dz", "Bhutani" }, { "el", "Greek" }, { "en", "English" }, { "eo", "Esperanto" }, { "es", "Espanol" }, { "et", "Estonian" }, { "eu", "Basque" }, { "fa", "Persian" }, { "fi", "Suomi" }, { "fj", "Fiji" }, { "fo", "Faroese" }, { "fr", "Francais" }, { "fy", "Frisian" }, { "ga", "Gaelic" }, { "gd", "Scots Gaelic" }, { "gl", "Galician" }, { "gn", "Guarani" }, { "gu", "Gujarati" }, { "ha", "Hausa" }, { "he", "Hebrew" }, { "hi", "Hindi" }, { "hr", "Hrvatski" }, { "hu", "Magyar" }, { "hy", "Armenian" }, { "ia", "Interlingua" }, { "id", "Indonesian" }, { "ie", "Interlingue" }, { "ik", "Inupiak" }, { "in", "Indonesian" }, { "is", "Islenska" }, { "it", "Italiano" }, { "iu", "Inuktitut" }, { "iw", "Hebrew" }, { "ja", "Japanese" }, { "ji", "Yiddish" }, { "jw", "Javanese" }, { "ka", "Georgian" }, { "kk", "Kazakh" }, { "kl", "Greenlandic" }, { "km", "Cambodian" }, { "kn", "Kannada" }, { "ko", "Korean" }, { "ks", "Kashmiri" }, { "ku", "Kurdish" }, { "ky", "Kirghiz" }, { "la", "Latin" }, { "ln", "Lingala" }, { "lo", "Laothian" }, { "lt", "Lithuanian" }, { "lv", "Latvian, Lettish" }, { "mg", "Malagasy" }, { "mi", "Maori" }, { "mk", "Macedonian" }, { "ml", "Malayalam" }, { "mn", "Mongolian" }, { "mo", "Moldavian" }, { "mr", "Marathi" }, { "ms", "Malay" }, { "mt", "Maltese" }, { "my", "Burmese" }, { "na", "Nauru" }, { "ne", "Nepali" }, { "nl", "Nederlands" }, { "no", "Norsk" }, { "oc", "Occitan" }, { "om", "Oromo" }, { "or", "Oriya" }, { "pa", "Punjabi" }, { "pl", "Polish" }, { "ps", "Pashto, Pushto" }, { "pt", "Portugues" }, { "qu", "Quechua" }, { "rm", "Rhaeto-Romance" }, { "rn", "Kirundi" }, { "ro", "Romanian" }, { "ru", "Russian" }, { "rw", "Kinyarwanda" }, { "sa", "Sanskrit" }, { "sd", "Sindhi" }, { "sg", "Sangho" }, { "sh", "Serbo-Croatian" }, { "si", "Sinhalese" }, { "sk", "Slovak" }, { "sl", "Slovenian" }, { "sm", "Samoan" }, { "sn", "Shona" }, { "so", "Somali" }, { "sq", "Albanian" }, { "sr", "Serbian" }, { "ss", "Siswati" }, { "st", "Sesotho" }, { "su", "Sundanese" }, { "sv", "Svenska" }, { "sw", "Swahili" }, { "ta", "Tamil" }, { "te", "Telugu" }, { "tg", "Tajik" }, { "th", "Thai" }, { "ti", "Tigrinya" }, { "tk", "Turkmen" }, { "tl", "Tagalog" }, { "tn", "Setswana" }, { "to", "Tonga" }, { "tr", "Turkish" }, { "ts", "Tsonga" }, { "tt", "Tatar" }, { "tw", "Twi" }, { "ug", "Uighur" }, { "uk", "Ukrainian" }, { "ur", "Urdu" }, { "uz", "Uzbek" }, { "vi", "Vietnamese" }, { "vo", "Volapuk" }, { "wo", "Wolof" }, { "xh", "Xhosa" }, { "yi", "Yiddish" }, { "yo", "Yoruba" }, { "za", "Zhuang" }, { "zh", "Chinese" }, { "zu", "Zulu" }, { "xx", "Unknown" }, { NULL, "Unknown" } }; /***************************************************************************//** * GETDVDTITLEUSINGLIBDVD- * @date 2008/07/16 22:34:16 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int GetDVDTitleUsingLibDVD( title ) char * title; { int res; res = DVDUDFVolumeInfo( Dvd, title, 33, (unsigned char *) 0, 0); /* Provide a default title, in case of DVD directory structure */ if( res < 0 ) { res = DVDISOVolumeInfo( Dvd, title, 33, NULL, 0 ); if( res < 0 ) { strcpy( title, "UNKNOWN" ); res = 0; } } return( res ); } /*------------------------------------------------------------------------------ GETTITLE- Linux!jef 2005/12/02 22:30:59 ------------------------------------------------------------------------------*/ int GetDVDTitle( device, title ) char * device; char * title; { FILE * fp; int i; fp = fopen64( device, "r" ); if( !fp ) { fprintf(stderr,"%s: seek error %d\n", __FUNCTION__, errno ); return( -1 ); } if( fseek( fp, 32808, SEEK_SET)) { fprintf(stderr,"%s: seek error %d\n", __FUNCTION__, errno ); fclose( fp ); return( -1 ); } if( (i = fread(title, 1, 32, fp)) != 32 ) { fprintf(stderr,"%s: read error %d\n", __FUNCTION__, errno ); fclose( fp ); return( -1 ); } title[32] = '\0'; while( i-- > 2 ) { if( title[i] == ' ' ) title[i] = '\0'; } fclose( fp ); return( 0 ); } /*------------------------------------------------------------------------------ DVDOPEN- Linux!jef 2005/12/03 01:02:56 ------------------------------------------------------------------------------*/ int DvdOpen( device ) char * device; { int i; int nbIfos = 0; Dvd = DVDOpen( device ); if( !Dvd ) { DBG('i',fprintf(stderr,"DVDOpen failed!\n");); return( -1 ); } Ifo_zero = ifoOpen( Dvd, 0); if( !Ifo_zero ) { DBG('i',fprintf(stderr,"ifoOpen failed!\n");); return( -1 ); } Ifo =(ifo_handle_t **)malloc((Ifo_zero->vts_atrt->nr_of_vtss + 1) * sizeof (ifo_handle_t *)); DBG('i',fprintf(stderr,"Loading %d ifos\n", Ifo_zero->vts_atrt->nr_of_vtss );); for( i = 1; i <= Ifo_zero->vts_atrt->nr_of_vtss; i++) { Ifo[i] = ifoOpen( Dvd, i ); if( !Ifo[i]) { if (i == 1) { DBG('i',fprintf(stderr,"ifo1 could not be loaded!\n");); return(-1); } // Ifo_zero->vts_atrt->nr_of_vtss = i-1; // Ifo_zero->vmgi_mat->vmg_nr_of_title_sets = i-1; // break; } else nbIfos++; } DBG('i',fprintf(stderr,"%d ifos have been successfully loaded\n", nbIfos );); NrTitles = Ifo_zero->tt_srpt->nr_of_srpts; return( 0 ); } /*------------------------------------------------------------------------------ DVDCLOSE- Linux!jef 2005/12/03 01:05:55 ------------------------------------------------------------------------------*/ void DvdClose() { int i; if( Dvd ) { for( i = 1; i <= Ifo_zero->vts_atrt->nr_of_vtss; i++) ifoClose( Ifo[i] ); ifoClose( Ifo_zero ); DVDClose( Dvd ); free( Ifo ); Ifo = NULL; Dvd = NULL; Ifo_zero = NULL; } } /*------------------------------------------------------------------------------ DVDLANGCODE2STRING- Linux!jef 2006/01/06 22:24:03 ------------------------------------------------------------------------------*/ char * DvdLangCode2String( char * langCode ) { int i; for( i = 0; ArrLang[i].code; i++ ) { if( !strcmp( ArrLang[i].code, langCode )) return( ArrLang[i].name ); } DBG('i',fprintf(stderr,"%s: langCode(%s) unknown!\n", __FUNCTION__, langCode );); return( _("Inconnu") ); } /*------------------------------------------------------------------------------ COPYIFO- Linux!jef 2006/01/19 19:34:24 ------------------------------------------------------------------------------*/ ifo_handle_t * CopyIfo( int vts ) { ifo_handle_t * ifo; ifo = ifoOpen( Dvd, vts); return( ifo ); } dvd95/src/dvdinfo.h000066400000000000000000000024621140003301000143640ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdinfo.h] DATE : 2006/01/0005 20:53:04 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __DVDINFO_H__ #define __DVDINFO_H__ # include # include "dvdread/dvd_reader.h" # include "dvdread/ifo_read.h" # include "dvdread/ifo_print.h" # include "dvdread/nav_read.h" #ifndef DVD_BLOCK_LEN # define DVD_BLOCK_LEN 2048 #endif #ifdef __IN_DVDINFO__ ifo_handle_t * Ifo_zero, ** Ifo; dvd_reader_t * Dvd; int NrTitles; #else extern ifo_handle_t * Ifo_zero, ** Ifo; extern dvd_reader_t * Dvd; extern int NrTitles; #endif /*@$#[dvdinfo.c] global proto. AutoProtoSigV1.1. date: 2009/02/04 23:18:25 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* dvdinfo.c */ int GetDVDTitleUsingLibDVD PROTO((char *title)); int GetDVDTitle PROTO((char *device, char *title)); int DvdOpen PROTO((char *device)); void DvdClose PROTO((void)); char *DvdLangCode2String PROTO((char *langCode)); ifo_handle_t *CopyIfo PROTO((int vts)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __DVDINFO_H__ */ dvd95/src/dvdtools.c000066400000000000000000000443531140003301000145710ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdtools.c] DATE : 2005/12/0001 22:04:33 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #define CTEST(x) /***/ #define CTEST2(x) /***/ #include "dvdinfo.h" #include "dvdtools.h" #include "message.h" #include "globals.h" #include "uitools.h" #include "ac.h" #include "badsect.h" static double FramesPerSec[4] = { -1.0, 25.00, -1.0, 29.97 }; static char * _AudioFormat[7] = { "ac3", "?", "mpeg1", "mpeg2", "lpcm", "sdds ", "dts" }; #define MAX_PISTE 100 static Piste_t Pistes[MAX_PISTE]; #define BCD2INT( v ) (((v & 0xf0) >> 3) * 5 + (v & 0x0f)) /*------------------------------------------------------------------------------ MILLISECONDE- Linux!jef 2005/12/16 00:10:15 ------------------------------------------------------------------------------*/ int MilliSeconde( dvd_time_t * dt ) { double fps = FramesPerSec[(dt->frame_u & 0xc0) >> 6]; long ms; ms = (((dt->hour & 0xf0) >> 3) * 5 + (dt->hour & 0x0f)) * 3600000; ms += (((dt->minute & 0xf0) >> 3) * 5 + (dt->minute & 0x0f)) * 60000; ms += (((dt->second & 0xf0) >> 3) * 5 + (dt->second & 0x0f)) * 1000; if (fps > 0) ms += (((dt->frame_u & 0x30) >> 3) * 5 + (dt->frame_u & 0x0f)) * 1000.0 / fps; return( ms ); } /*------------------------------------------------------------------------------ ISNAVPACK- Linux!jef 2006/01/05 21:47:00 ------------------------------------------------------------------------------*/ int isNavPack( unsigned char *_ptr ) { uint32_t start_code; unsigned char * ptr = _ptr; if((ptr [0]!=0) || (ptr [1] !=0) || (ptr [2] != 0x01) || (ptr [3] != 0xba)) return( 0 ); if((ptr [4] & 0xc0) != 0x40 ) return( 0 ); // ptr += 14; start_code = (uint32_t) (ptr [14]) << 24; start_code |= (uint32_t) (ptr [15]) << 16; start_code |= (uint32_t) (ptr [16]) << 8; start_code |= (uint32_t) (ptr [17]); if( start_code != 0x000001bb ) return( 0 ); // ptr += 24; start_code = (uint32_t) (ptr [0x26]) << 24; start_code |= (uint32_t) (ptr [0x27]) << 16; start_code |= (uint32_t) (ptr [0x28]) << 8; start_code |= (uint32_t) (ptr [0x29]); if( start_code != 0x000001bf ) return( 0 ); // ptr += 986; start_code = (uint32_t) (ptr [0x400]) << 24; start_code |= (uint32_t) (ptr [0x401]) << 16; start_code |= (uint32_t) (ptr [0x402]) << 8; start_code |= (uint32_t) (ptr [0x403]); if( start_code != 0x000001bf ) return( 0 ); return( 1 ); } /*------------------------------------------------------------------------------ IDENTIFYSTREAM- Linux!jef 2006/01/18 22:27:22 ------------------------------------------------------------------------------*/ int IdentifyStream( unsigned char * buffer, int * packetType ) { *packetType = buffer[17]; if( (*packetType >= 0xE0) && (*packetType <= 0xEF) ) { // video streams return stVideo; } else if( *packetType == 0xBB ) { // system header return stOther; } else if( *packetType == 0xBE ) { // padding return stOther; } else if( *packetType == 0xBF ) { // nav pack return stOther; } else if( (*packetType >= 0xC0) && (*packetType <= 0xDF) ) { // mpeg audio return stAudio; } else if( *packetType == 0xBD ) { // private stream, check content *packetType = buffer[23+buffer[22]]; if (( (*packetType >=0x80) && (*packetType <=0x8f)) || ((*packetType >=0xa0) && (*packetType <=0xa7)) || ((*packetType >=0xc0) && (*packetType <=0xdf))) return stAudio; if ( (*packetType >=0x20) && (*packetType <=0x3f)) return stSubpicture; return stOther; } return stOther; } /*------------------------------------------------------------------------------ GETSTREAMID- Linux!jef 2006/01/18 22:49:32 ------------------------------------------------------------------------------*/ int GetStreamID( int type ) { int abase = 0; if (type >= 0x80 && type <= 0x87) { // AC3 audio abase = 0x80; } else if (type >= 0x88 && type <= 0x8f) { // DTS audio abase = 0x88; } else if (type >= 0xa0 && type <= 0xbf) { // LPCM audio abase = 0xa0; } else if (type >= 0xc0 && type <= 0xdf) { // MPEG audio abase = 0xc0; } else if (type >= 0x20 && type <= 0x3f) { //subpicture; abase = 0x20; } return( type - abase ); } /*------------------------------------------------------------------------------ GETPGC- Linux!jef 2006/02/16 21:37:01 ------------------------------------------------------------------------------*/ pgc_t * GetPgc( int noPisteVideo ) { pgcit_t *vts_pgcit; vtsi_mat_t *vtsi_mat; vmgi_mat_t *vmgi_mat; video_attr_t *video_attr; int title_set_nr; int vts_ttn; pgc_t *pgc; vtsi_mat = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vtsi_mat; vts_pgcit = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vts_pgcit; video_attr = &vtsi_mat->vts_video_attr; vts_ttn = Ifo_zero->tt_srpt->title[noPisteVideo].vts_ttn; vmgi_mat = Ifo_zero->vmgi_mat; title_set_nr = Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr; pgc = vts_pgcit->pgci_srp[Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].ptt[0].pgcn - 1].pgc; return( pgc ); } /*------------------------------------------------------------------------------ BUILDCHAPTERSTRING- Linux!jef 2005/12/16 00:12:54 ------------------------------------------------------------------------------*/ char * BuildChapitreString( int noPisteVideo ) { pgc_t * pgc = GetPgc( noPisteVideo ); int cell; int i; int nbChapters = pgc->nr_of_programs; char * chapitreStr; long long milliSec = 0; // fprintf(stderr,"Il y a %d chapitre\n", nbChapters ); chapitreStr = malloc( (nbChapters * 15)+1); strcpy( chapitreStr, "00:00:00.000" ); cell = 0; for( i = 0; i < pgc->nr_of_programs; i++ ) { int next = pgc->program_map[i + 1]; if (i == pgc->nr_of_programs - 1) next = pgc->nr_of_cells + 1; while( cell < next - 1 ) { milliSec += MilliSeconde( &pgc->cell_playback[cell].playback_time ); cell++; } if (i < (pgc->nr_of_programs - 1)) { char szDummy[128]; sprintf (szDummy,",%02lld:%02lld:%02lld.%03lld", milliSec / 3600000, (milliSec / 60000) % 60, (milliSec / 1000) % 60, milliSec % 1000); strcat( chapitreStr, szDummy); } } // fprintf(stderr,"BuildChapitreString(%s)\n", chapitreStr ); return( chapitreStr ); } /*------------------------------------------------------------------------------ SAVEPALETTE- Linux!jef 2005/12/15 21:59:05 ------------------------------------------------------------------------------*/ void SavePalette( int noPisteVideo, char * pFile ) { FILE * fp; pgc_t * pgc = GetPgc( noPisteVideo ); if( !pgc->palette ) return; fp = fopen( pFile, "w" ); if( fp ) { int i; for( i = 0; i < 16; i++ ) { fprintf( fp,"%06x\n", pgc->palette[i]); } fclose( fp ); } } /*------------------------------------------------------------------------------ AUDIOLANG- Linux!jef 2005/12/16 22:07:24 ------------------------------------------------------------------------------*/ char * AudioLang( int noPisteVideo, int noPisteAudio ) { static char lang_code[3]; vtsi_mat_t *vtsi_mat; audio_attr_t *audio_attr; vtsi_mat = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vtsi_mat; audio_attr = &vtsi_mat->vts_audio_attr[noPisteAudio]; sprintf( lang_code, "%c%c", audio_attr->lang_code >> 8,audio_attr->lang_code & 0xff); return( lang_code ); } /*------------------------------------------------------------------------------ SUBLANG- Linux!jef 2005/12/16 22:07:24 ------------------------------------------------------------------------------*/ char * SubLang( int noPisteVideo, int noSubtitle ) { static char lang_code[3]; vtsi_mat_t *vtsi_mat; subp_attr_t *subp_attr; vtsi_mat = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vtsi_mat; subp_attr = &vtsi_mat->vts_subp_attr[noSubtitle]; sprintf (lang_code, "%c%c", subp_attr->lang_code >> 8, subp_attr->lang_code & 0xff); if (!lang_code[0]) strcpy (lang_code, "xx"); return( lang_code ); } /*------------------------------------------------------------------------------ AUDIOFORMAT- Linux!jef 2005/12/16 22:07:24 ------------------------------------------------------------------------------*/ char * AudioFormat( int noPisteVideo, int noPisteAudio ) { vtsi_mat_t *vtsi_mat; audio_attr_t *audio_attr; vtsi_mat = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vtsi_mat; audio_attr = &vtsi_mat->vts_audio_attr[noPisteAudio]; //!! if( (audio_attr->channels + 1) == 6 ) return( "dts" ); return( _AudioFormat[audio_attr->audio_format] ); } /***************************************************************************//** * AUDIOSTREAMID- * @date 2009/06/03 22:19:15 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int AudioStreamId( int noPisteVideo, int noPisteAudio ) { vtsi_mat_t *vtsi_mat; audio_attr_t *audio_attr; Piste_t * piste = GetPiste( noPisteVideo ); pgc_t * pgc; int streamId; vtsi_mat = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vtsi_mat; audio_attr = &vtsi_mat->vts_audio_attr[noPisteAudio]; /* StreamId is given in audio_control array of first PGC */ pgc = piste->pgcs[0]; streamId = pgc->audio_control[noPisteAudio]; streamId = (streamId >> 8) & 0x07; switch( audio_attr->audio_format ) { case 0 : /* AC3 */ return( 0x80 + streamId ); case 2 : /* Mpeg-1 */ case 3 : /* Mpeg-2 */ // return( 0xC0 + streamId ); return( 0x00 + streamId ); /* from man mencoder/-aid */ case 4: /* LPCM */ return( 0xA0 + streamId ); case 6: /* DTS */ return( 0x88 + streamId ); default : return( 0x80 + streamId ); } } /*------------------------------------------------------------------------------ MYDVDREAD1BLOCK- Linux!jef 2006/07/06 22:04:04 Special for dvd errors handling ------------------------------------------------------------------------------*/ int MyDVDRead1Block( dvd_file_t * dvdFile, int noSect, void * buffer ) { ssize_t nbRead; CTEST2(fprintf(stderr,"%s: Reading(%d) at %p\n", __FUNCTION__, noSect, buffer );); #if MNG_BADSECTORS if( IsBadSector( noSect ) ) return( 0 ); #endif nbRead = DVDReadBlocks( dvdFile, noSect, 1, buffer ); CTEST2(fprintf(stderr,"%s: Readed:=%ld\n", __FUNCTION__, nbRead );); if( nbRead != 1 ) { DBG('b',fprintf(stderr,"%s: bad sector: %d\n", __FUNCTION__, noSect );); NoteBadSector( noSect ); if( IgnoreErrors == -1 ) { int res = MessageBoxYesNo( _("Erreur de lecture ! Ignorer les erreurs ?" ) ); if( res == 1 ) IgnoreErrors = 1; else IgnoreErrors = 0; GtkFlush(); } if( IgnoreErrors ) return( 0 ); return( -1 ); } return( 1 ); } /*------------------------------------------------------------------------------ GETPISTE- Linux!jef 2006/11/21 23:55:54 ------------------------------------------------------------------------------*/ Piste_t * GetPiste( int noPisteVideo ) { return( Pistes + noPisteVideo ); } /*------------------------------------------------------------------------------ RAZPISTES- Linux!jef 2006/11/22 00:01:51 ------------------------------------------------------------------------------*/ void RazPistes() { memset( &Pistes, 0, sizeof(Pistes)); } /*------------------------------------------------------------------------------ CREATEDUMMYPACK- Linux!jef 2007/08/16 00:41:38 ------------------------------------------------------------------------------*/ void CreateDummyPack( unsigned char * buffer ) { int8_t *ptr = (int8_t*)buffer; #pragma pack(1) uint8_t dummy_pack [] = { /* pack header: SCR=0, mux rate=10080000bps, stuffing length=0 */ 0, 0, 1, 0xba, 0x44, 0x00, 0x04, 0x00, 0x04, 0x01, 0x01, 0x89, 0xc3, 0xf8, /* PES header for dummy video packet */ 0, 0, 1, 0xe0, 0x07, 0xec, 0x81, 0x00, 0x00 }; #pragma pack() tc_memcpy( ptr, dummy_pack, sizeof (dummy_pack)); ptr += sizeof (dummy_pack); memset( ptr, 0xff, DVD_VIDEO_LB_LEN - sizeof (dummy_pack)); } /*------------------------------------------------------------------------------ CREATEDUMMYNAVPACK- Linux!jef 2007/08/16 00:43:54 ------------------------------------------------------------------------------*/ void CreateDummyNavPack( unsigned char * buffer, unsigned int sector ) { int8_t *ptr = (int8_t*)buffer; dsi_t dsiPack; pci_t pciPack; #pragma pack(1) static uint8_t nav_pack1 [] = { /* pack header: SCR=0, mux rate=10080000bps, stuffing length=0 */ 0, 0, 1, 0xba, 0x44, 0x00, 0x04, 0x00, 0x04, 0x01, 0x01, 0x89, 0xc3, 0xf8, /* system header length=0x12=18*/ 0, 0, 1, 0xbb, 0x00, 0x12, /* contents of system header filled in at run time (18 bytes) */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* PES header for first private stream 2 packet */ 0, 0, 1, 0xbf, 0x03, 0xd4 }; static uint8_t nav_pack2 [] = { /* PES header for second private stream 2 packet */ 0, 0, 1, 0xbf, 0x03, 0xfa }; #pragma pack() tc_memcpy( ptr, nav_pack1, sizeof (nav_pack1)); ptr += sizeof (nav_pack1); memset( ptr, 0, DVD_VIDEO_LB_LEN/2 - sizeof (nav_pack1)); ptr = (int8_t*)buffer + DVD_VIDEO_LB_LEN/2; tc_memcpy( ptr, nav_pack2, sizeof (nav_pack2)); ptr += sizeof (nav_pack2); memset( ptr, 0, DVD_VIDEO_LB_LEN/2 - sizeof (nav_pack2)); navRead_DSI( &dsiPack, buffer + DSI_START_BYTE); navRead_PCI( &pciPack, buffer+0x2d); dsiPack.dsi_gi.nv_pck_lbn= sector; dsiPack.dsi_gi.vobu_ea = 1; navRead_DSI((dsi_t*)(buffer + DSI_START_BYTE),(unsigned char*)&dsiPack); pciPack.pci_gi.nv_pck_lbn = dsiPack.dsi_gi.nv_pck_lbn; navRead_PCI((pci_t*)(buffer+0x2d),(unsigned char*)&pciPack); } /*------------------------------------------------------------------------------ VERIFNAVPACK- Linux!jef 2007/08/22 22:35:53 ------------------------------------------------------------------------------*/ int VerifNavPack( unsigned char * p ) { int32_t bMpeg1 = 0; uint32_t nHeaderLen; uint32_t nPacketLen; uint32_t nStreamID; if (p[3] == 0xBA) { /* program stream pack header */ int32_t nStuffingBytes; bMpeg1 = (p[4] & 0x40) == 0; if (bMpeg1) { p += 12; } else { /* mpeg2 */ nStuffingBytes = p[0xD] & 0x07; p += 14 + nStuffingBytes; } } if (p[3] == 0xbb) { /* program stream system header */ nHeaderLen = (p[4] << 8) | p[5]; p += 6 + nHeaderLen; } /* we should now have a PES packet here */ if (p[0] || p[1] || (p[2] != 1)) { fprintf(stderr, "%s: demux error! %02x %02x %02x (should be 0x000001) \n",__FUNCTION__,p[0],p[1],p[2]); return( 0 ); } nPacketLen = p[4] << 8 | p[5]; nStreamID = p[3]; nHeaderLen = 6; p += nHeaderLen; if (nStreamID == 0xbf) { /* Private stream 2 */ // if(p[0] == 0x00) navRead_PCI(nav_pci, p+1); p += nPacketLen; /* We should now have a DSI packet. */ if(p[6] == 0x01) { nPacketLen = p[4] << 8 | p[5]; p += 6; // navRead_DSI(nav_dsi, p+1); } return( 1 ); } fprintf(stderr,"%s: bad streamid 0x%x\n", __FUNCTION__, nStreamID ); return( 0 ); } /***************************************************************************//** * DUMPPGC- * @date 2010/05/04 22:43:14 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ void DumpPgc( pgc_t * pgc ) { int i; int sec; fprintf( stderr, "**************** PGC %p DUMP ********************\n", pgc ); fprintf( stderr, "nr_of_programs=%d\n", pgc->nr_of_programs ); fprintf( stderr, "nr_of_cells=%d\n", pgc->nr_of_cells ); sec = BCD2INT( pgc->playback_time.hour ) * 3600; sec += BCD2INT( pgc->playback_time.minute ) * 60; sec += BCD2INT( pgc->playback_time.second ); fprintf( stderr, "dvd_time_t playback_time=%d\n", sec ); for( i = 0; i < 8; i++ ) fprintf(stderr,"audio_control[%d]=%x\n", i, pgc->audio_control[i] ); for( i = 0; i < 32; i++ ) fprintf(stderr,"subp_control[%d]=%x\n", i, pgc->subp_control[i] ); fprintf( stderr, "next_pgc_n=%d\n", pgc->next_pgc_nr ); fprintf( stderr, "prev_pgc_nr=%d\n",pgc->prev_pgc_nr); fprintf( stderr, "goup_pgc_nr=%d\n",pgc->goup_pgc_nr); fprintf( stderr, "still_time=%d\n",pgc->still_time); fprintf( stderr, "pg_playback_mode=%d\n", pgc->pg_playback_mode ); fprintf( stderr, "command_tbl_offset=%d\n", pgc->command_tbl_offset); fprintf( stderr, "program_map_offset=%d\n", pgc->program_map_offset); fprintf( stderr, "cell_playback_offset=%d\n", pgc->cell_playback_offset); fprintf( stderr, "cell_position_offset=%d\n", pgc->cell_position_offset); // pgc_command_tbl_t *command_tbl; // pgc_program_map_t *program_map; for( i = 0; i < pgc->nr_of_cells; i++ ) { cell_playback_t * c = &pgc->cell_playback[i]; fprintf(stderr,"cell(%d): block_mode=%d block_type=%d first_sector=%d last_sector=%d\n", i, c->block_mode, c->block_type, c->first_sector, c->last_sector ); } for( i = 0; i < pgc->nr_of_cells; i++ ) { cell_position_t * c = &pgc->cell_position[i]; fprintf(stderr,"cell(%d): vob_id_nr=%d cell_nr=%d\n", i, c->vob_id_nr, c->cell_nr ); } fprintf( stderr, "*************************************************\n" ); } /***************************************************************************//** * CHECKPGC- * @date 2010/05/04 23:11:16 * @author jef-Linux * @brief * Try to detect bad pgc with duplicated cells * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int CheckPgc( pgc_t * pgc ) { int i,j; for( i = 0; i < pgc->nr_of_cells; i++ ) { cell_position_t * c1 = &pgc->cell_position[i]; for( j = i+1; j < pgc->nr_of_cells; j++ ) { cell_position_t * c2 = &pgc->cell_position[j]; if( c1->vob_id_nr == c2->vob_id_nr && c1->cell_nr == c2->cell_nr ) return( -1 ); /* Duplicated cell ! */ } } return( 0 ); } dvd95/src/dvdtools.h000066400000000000000000000036121140003301000145670ustar00rootroot00000000000000/*============================================================================== FICHIER : [dvdtools.h] DATE : 2005/12/0001 22:05:05 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __DVDTOOLS_H__ #define __DVDTOOLS_H__ # include # include "dvdread/dvd_reader.h" # include "dvdread/ifo_read.h" # include "dvdread/ifo_print.h" # include "dvdread/nav_read.h" #define stAudio 0 #define stVideo 1 #define stSubpicture 2 #define stOther 3 #define MAX_PGCS 100 typedef struct { int vts; ifo_handle_t * ifo; vtsi_mat_t * vtsi_mat; pgcit_t * vts_pgcit; int nrPgc; pgc_t * pgcs[MAX_PGCS]; unsigned long duree; int sectors; int nrSubp; } Piste_t; /*@$#[dvdtools.c] global proto. AutoProtoSigV1.1. date: 2010/05/04 23:13:48 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif void CreateDummyNavPack(unsigned char *buffer, unsigned int sector); int VerifNavPack(unsigned char *p); int MilliSeconde(dvd_time_t *dt); int isNavPack(unsigned char *_ptr); int IdentifyStream(unsigned char *buffer, int *packetType); int GetStreamID(int type); pgc_t *GetPgc(int noPisteVideo); char *BuildChapitreString(int noPisteVideo); void SavePalette(int noPisteVideo, char *pFile); char *AudioLang(int noPisteVideo, int noPisteAudio); char *SubLang(int noPisteVideo, int noSubtitle); char *AudioFormat(int noPisteVideo, int noPisteAudio); int AudioStreamId(int noPisteVideo, int noPisteAudio); int MyDVDRead1Block(dvd_file_t *dvdFile, int noSect, void *buffer); Piste_t *GetPiste(int noPisteVideo); void RazPistes(void); void CreateDummyPack(unsigned char *buffer); void DumpPgc(pgc_t *pgc); int CheckPgc(pgc_t *pgc); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) []*/ #endif /* __DVDTOOLS_H__ */ dvd95/src/gconfig.c000066400000000000000000000413451140003301000143450ustar00rootroot00000000000000/*============================================================================== FICHIER : [config.c] DATE : 2005/12/0002 20:57:36 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org * encoding UTF8 !-UTF8-! ================================================================================ ==============================================================================*/ #ifdef HAVE_CONFIG_H # include #endif #define CTEST(x) /* Traces futiles */ #include #include #include #include "interface.h" #include "support.h" #include "systools.h" #include "gconfig.h" #include "globals.h" #include "message.h" #include "uitools.h" #include "profile.h" /*@$#[gconfig.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:19:49 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* gconfig.c */ static void SetCheck PROTO((GtkWidget *item, char *value)); static char *GetCheck PROTO((GtkWidget *item)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ /*------------------------------------------------------------------------------ DIALOGPROPRIETE- Linux!jef 2006/02/14 22:40:44 ------------------------------------------------------------------------------*/ void DialogPropriete( GtkWidget * parent, int mode ) { GtkWidget * Propriete; GtkWidget * oldParent; Propriete = create_propriete(); if( !mode ) { gtk_window_set_transient_for( GTK_WINDOW(Propriete), GTK_WINDOW(parent) ); gtk_widget_show ( Propriete ); LoadConfig( Propriete ); oldParent = AlerteSetParent( Propriete ); gtk_main(); AlerteSetParent( oldParent ); } else { LoadConfig( Propriete ); oldParent = AlerteSetParent( Propriete ); gtk_dialog_run( GTK_DIALOG( Propriete ) ); gtk_widget_destroy( GTK_WIDGET( Propriete ) ); AlerteSetParent( oldParent ); } } /*------------------------------------------------------------------------------ SETBUTTON- Linux!jef 2007/01/16 23:07:50 ------------------------------------------------------------------------------*/ static void SetCheck( GtkWidget * item, char * value ) { GtkCheckButton * rb; GtkToggleButton * tb; rb = GTK_CHECK_BUTTON( item ); tb = &rb->toggle_button; if( *value == '1' ) gtk_toggle_button_set_active( tb, TRUE ); else gtk_toggle_button_set_active( tb, FALSE ); } /*------------------------------------------------------------------------------ GETCHECK- Linux!jef 2007/01/16 23:13:07 ------------------------------------------------------------------------------*/ static char * GetCheck( GtkWidget * item ) { GtkCheckButton * rb; GtkToggleButton * tb; rb = GTK_CHECK_BUTTON( item ); tb = &rb->toggle_button; if( gtk_toggle_button_get_active( tb ) == TRUE ) return( "1" ); return( "0" ); } /*------------------------------------------------------------------------------ LOADCONFIG- Linux!jef 2005/12/02 20:58:39 ------------------------------------------------------------------------------*/ int LoadConfig( GtkWidget * propriete ) { GConfClient * cc; gchar * value; GtkWidget * item; cc = gconf_client_get_default(); if( !cc ) return( -1 ); item = lookup_widget(GTK_WIDGET(propriete), "cfgdev" ); g_assert( item ); GSList * dvdDevices = getDevices(); value = gconf_client_get_string( cc, KEY_DEVICE, NULL); /* Use first item from device list if no config set */ if( !value ) { if( dvdDevices ) { value = dvdDevices->data; } } /* Populate combo */ int activeItem = -1; int position = 0; GSList *iterator = dvdDevices; while( iterator ) { // iterate over dvdDevices if( value && strcmp(iterator->data, value) == 0 ) { // prefered device found activeItem = position; } // fprintf(stderr,"%s: append(%s)\n", __FUNCTION__, iterator->data ); gtk_combo_box_append_text( GTK_COMBO_BOX(item), iterator->data ); position++; iterator = iterator->next; } if (activeItem > 0){ gtk_combo_box_set_active ( GTK_COMBO_BOX(item), activeItem); } gtk_entry_set_text( GTK_ENTRY(GTK_BIN(item)->child), value ); gtk_widget_show( item ); freeDevices(dvdDevices); value = gconf_client_get_string( cc, KEY_TEMP, NULL); if( !value ) value = "/tmp"; item = lookup_widget(GTK_WIDGET(propriete), "cfgtemp" ); g_assert( item ); gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(item), value ); gtk_widget_show( item ); #if 0 value = gconf_client_get_string( cc, KEY_AUDIO, NULL); if( !value ) value = "fr"; item = lookup_widget(GTK_WIDGET(propriete), "cfgpisteaudio" ); gtk_entry_set_text( GTK_ENTRY(item), value ); gtk_widget_show( item ); value = gconf_client_get_string( cc, KEY_SUBTITLE, NULL); if( !value ) value = "fr"; item = lookup_widget(GTK_WIDGET(propriete), "cfgsoustitre" ); gtk_entry_set_text( GTK_ENTRY(item), value ); gtk_widget_show( item ); #endif value = gconf_client_get_string( cc, KEY_USEMENU, NULL); if( !value ) value = "1"; item = lookup_widget(GTK_WIDGET(propriete), "UseMenu" ); g_assert( item ); SetCheck( item, value ); gtk_widget_show( item ); value = gconf_client_get_string( cc, KEY_MKISO, NULL); if( !value ) value = "1"; item = lookup_widget(GTK_WIDGET(propriete), "DoIso" ); g_assert( item ); SetCheck( item, value ); gtk_widget_show( item ); value = gconf_client_get_string( cc, KEY_GRAVER, NULL); if( !value ) value = "1"; item = lookup_widget(GTK_WIDGET(propriete), "graver" ); g_assert( item ); SetCheck( item, value ); gtk_widget_show( item ); value = gconf_client_get_string( cc, KEY_QUALDYN, NULL); if( !value ) value = "1"; item = lookup_widget(GTK_WIDGET(propriete), "dynqual" ); g_assert( item ); SetCheck( item, value ); gtk_widget_show( item ); value = gconf_client_get_string( cc, KEY_GENERIQUE, NULL); if( !value ) value = "0"; item = lookup_widget(GTK_WIDGET(propriete), "generique" ); g_assert( item ); SetCheck( item, value ); gtk_widget_show( item ); value = gconf_client_get_string( cc, KEY_ISODIR, NULL); if( !value ) value = GetEnv( "HOME", "/tmp" ); item = lookup_widget(GTK_WIDGET(propriete), "cfgiso" ); g_assert( item ); gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(item), value ); gtk_widget_show( item ); value = gconf_client_get_string( cc, KEY_LANG, NULL); if( !value ) value = ""; item = lookup_widget(GTK_WIDGET(propriete), "lang" ); gtk_entry_set_text( GTK_ENTRY (GTK_BIN (item)->child), value ); gtk_widget_show( item ); value = gconf_client_get_string( cc, KEY_PLAYER, NULL); if( !value ) value = "mplayer"; item = lookup_widget(GTK_WIDGET(propriete), "cfgvisu" ); g_assert( item ); gtk_entry_set_text( GTK_ENTRY (GTK_BIN (item)->child), value ); if( flook( "xine" ) ) gtk_combo_box_append_text( GTK_COMBO_BOX(item), "xine" ); if( flook( "mplayer" ) ) gtk_combo_box_append_text( GTK_COMBO_BOX(item), "mplayer" ); if( flook( "vlc" ) ) gtk_combo_box_append_text( GTK_COMBO_BOX(item), "vlc" ); if( flook( "gxine" ) ) gtk_combo_box_append_text( GTK_COMBO_BOX(item), "gxine" ); if( flook( "totem" ) ) gtk_combo_box_append_text( GTK_COMBO_BOX(item), "totem" ); if( flook( "kaffeine" ) ) gtk_combo_box_append_text( GTK_COMBO_BOX(item), "kaffeine" ); if( flook( "gnome-open" ) ) gtk_combo_box_append_text( GTK_COMBO_BOX(item), "gnome-open" ); gtk_widget_show( item ); value = gconf_client_get_string( cc, KEY_TRACE, NULL); if( !value ) value = ""; item = lookup_widget(GTK_WIDGET(propriete), "trace" ); g_assert( item ); gtk_entry_set_text( GTK_ENTRY(item), value ); gtk_widget_show( item ); value = gconf_client_get_string( cc, KEY_SOUND, NULL); if( !value ) value = "0"; item = lookup_widget(GTK_WIDGET(propriete), "sound" ); g_assert( item ); SetCheck( item, value ); gtk_widget_show( item ); value = gconf_client_get_string( cc, KEY_MEDIA, NULL); if( !value ) value = "0"; item = lookup_widget(GTK_WIDGET(propriete), "cfgmedia" ); g_assert( item ); { int selCode = atoi(value); int selIdx = -1; int idx = 0; Profile_t * p = GetProfiles(); while( p->profileCode != -1 ) { // fprintf(stderr,"Profile %s = %d\n", p->libel, p->profileFlags ); if( p->profileFlags & PROFILE_AVAIL_F ) { gtk_combo_box_append_text( GTK_COMBO_BOX(item), p->libel ); if( p->profileCode == selCode ) selIdx = idx; idx++; } p++; } if( selIdx != -1 ) gtk_combo_box_set_active( GTK_COMBO_BOX(item), selIdx); } return( 0 ); } /*------------------------------------------------------------------------------ SAVECONFIG- Linux!jef 2005/12/02 21:40:06 ------------------------------------------------------------------------------*/ int SaveConfig( GtkWidget * propriete ) { GConfClient * cc; const gchar * value; GtkWidget * item; cc = gconf_client_get_default(); if( !cc ) return( -1 ); item = lookup_widget(GTK_WIDGET(propriete), "cfgdev" ); g_assert( item ); value = gtk_entry_get_text( GTK_ENTRY(GTK_BIN(item)->child) ); gconf_client_set_string( cc, KEY_DEVICE, value, NULL); /* Only if not specified in command line */ if( !DeviceSpecifiedF ) strcpy( Device, value ); item = lookup_widget(GTK_WIDGET(propriete), "cfgtemp" ); g_assert( item ); value = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(item)); gconf_client_set_string( cc, KEY_TEMP, value, NULL); item = lookup_widget(GTK_WIDGET(propriete), "UseMenu" ); g_assert( item ); gconf_client_set_string( cc, KEY_USEMENU, GetCheck(item), NULL); item = lookup_widget(GTK_WIDGET(propriete), "DoIso" ); g_assert( item ); gconf_client_set_string( cc, KEY_MKISO, GetCheck(item), NULL); item = lookup_widget(GTK_WIDGET(propriete), "graver" ); g_assert( item ); gconf_client_set_string( cc, KEY_GRAVER, GetCheck(item), NULL); item = lookup_widget(GTK_WIDGET(propriete), "dynqual" ); g_assert( item ); gconf_client_set_string( cc, KEY_QUALDYN, GetCheck(item), NULL); item = lookup_widget(GTK_WIDGET(propriete), "generique" ); g_assert( item ); gconf_client_set_string( cc, KEY_GENERIQUE, GetCheck(item), NULL); item = lookup_widget(GTK_WIDGET(propriete), "cfgiso" ); g_assert( item ); value = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(item)); gconf_client_set_string( cc, KEY_ISODIR, value, NULL); item = lookup_widget(GTK_WIDGET(propriete), "cfgvisu" ); g_assert( item ); value = gtk_entry_get_text( GTK_ENTRY(GTK_BIN(item)->child) ); gconf_client_set_string( cc, KEY_PLAYER, value, NULL); item = lookup_widget(GTK_WIDGET(propriete), "lang" ); g_assert( item ); value = gtk_entry_get_text( GTK_ENTRY(GTK_BIN(item)->child) ); gconf_client_set_string( cc, KEY_LANG, value, NULL); item = lookup_widget(GTK_WIDGET(propriete), "trace" ); g_assert( item ); value = gtk_entry_get_text( GTK_ENTRY(item) ); gconf_client_set_string( cc, KEY_TRACE, value, NULL); item = lookup_widget(GTK_WIDGET(propriete), "sound" ); g_assert( item ); gconf_client_set_string( cc, KEY_SOUND, GetCheck(item), NULL); item = lookup_widget(GTK_WIDGET(propriete), "cfgmedia" ); g_assert( item ); { Profile_t * p = GetProfiles(); gchar * active = gtk_combo_box_get_active_text(GTK_COMBO_BOX(item)); g_assert( active ); while( p->profileCode != -1 ) { if( p->profileFlags & PROFILE_AVAIL_F ) { if( !strcmp( p->libel, active ) ) { char string[100]; sprintf( string,"%d", p->profileCode ); gconf_client_set_string( cc, KEY_MEDIA, string, NULL); break; } } p++; } g_free( active ); } #if 0 { int active = gtk_combo_box_get_active( GTK_COMBO_BOX(item)); char string[100]; sprintf( string,"%d", active ); gconf_client_set_string( cc, KEY_MEDIA, string, NULL); } #endif return( 0 ); } /*------------------------------------------------------------------------------ CONFIGGETSTRING- Linux!jef 2005/12/02 21:56:32 ------------------------------------------------------------------------------*/ gchar * ConfigGetString( char * key, char * defValue ) { GConfClient * cc; gchar * value; cc = gconf_client_get_default(); if( !cc ) return( defValue ); value = gconf_client_get_string( cc, key, NULL ); if( !value ) return( defValue ); return( value ); } /*------------------------------------------------------------------------------ CONFIGGETINT- Linux!jef 2005/12/02 21:56:32 ------------------------------------------------------------------------------*/ int ConfigGetInt( char * key, int defValue ) { GConfClient * cc; gchar * value; cc = gconf_client_get_default(); if( !cc ) return( defValue ); value = gconf_client_get_string( cc, key, NULL ); if( !value ) return( defValue ); // fprintf(stderr,"ConfigGetInt(%s)=(%s)\n", key, value ); return( atoi(value) ); } /*------------------------------------------------------------------------------ SETCONFIGSTRING- Linux!jef 2005/12/18 20:24:09 ------------------------------------------------------------------------------*/ int SetConfigString( char * key, char * value ) { GConfClient * cc; cc = gconf_client_get_default(); if( !cc ) return( -1 ); gconf_client_set_string( cc, key, (const gchar *)value, NULL); return( 0 ); } /*------------------------------------------------------------------------------ SETCONFIGINT- Linux!jef 2005/12/18 20:24:09 ------------------------------------------------------------------------------*/ int SetConfigInt( char * key, int value ) { GConfClient * cc; char strValue[200]; cc = gconf_client_get_default(); if( !cc ) return( -1 ); sprintf( strValue,"%d", value ); gconf_client_set_string( cc, key, (const gchar *)strValue, NULL); return( 0 ); } /*------------------------------------------------------------------------------ VERIFCONFIG- Linux!jef 2005/12/17 00:33:17 ------------------------------------------------------------------------------*/ int VerifConfig( GtkWidget * propriete ) { char * device = ConfigGetString( KEY_DEVICE, "/dev/dvd" ); char * tmpDir = ConfigGetString( KEY_TEMP, "/tmp" ); char * isoDir = ConfigGetString( KEY_ISODIR, GetEnv( "HOME","/tmp") ); int res = 0; int ret; if( !strcmp( tmpDir, isoDir ) ) { MessageBoxError( _("Les répertoires temporaire et iso doivent être différents !") ); res = -1; } if( !flook( GetMkIsoTool() ) ) { MessageBoxError( _("mkisofs manquant !") ); res = -1; } if( DirExist( tmpDir ) != 1 ) { MessageBoxError( _("Le répertoire %s n'existe pas !"), tmpDir ); res = -1; } if( DirCanWrite( tmpDir ) == -1 ) { MessageBoxError( _("Pas d'accès en écriture au répertoire %s !"), tmpDir ); res = -1; } if( DirExist( isoDir ) != 1 ) { MessageBoxError( _("Le répertoire %s n'existe pas !"), isoDir ); res = -1; } if( DirCanWrite( isoDir ) == -1 ) { MessageBoxError( _("Pas d'accès en écriture au répertoire %s !"), isoDir ); res = -1; } ret = IsDvdDevice( device ); if( ret != 1 && ret != 2 ) { MessageBoxError( _("Le fichier %s n'existe pas !"), device ); res = -1; } // if( !res ) { // Alerte( 0, _("Tous les outils sont present !") ); // } return( res ); } /*------------------------------------------------------------------------------ INITTRACE- Linux!jef 2006/01/17 19:53:34 ------------------------------------------------------------------------------*/ void InitTrace() { char * lvl = ConfigGetString( KEY_TRACE, "" ); memset( DbgLevels, 0, sizeof(DbgLevels)); if( !strcmp( lvl, "*" )) { memset( DbgLevels, 1, sizeof(DbgLevels)); } else { while( *lvl ) DbgLevels[(int)*lvl] = 1; } } /*------------------------------------------------------------------------------ CREATEDIRECTORYS- Linux!jef 2007/01/23 23:08:26 ------------------------------------------------------------------------------*/ void CreateDirectorys() { char * tmpDir = ConfigGetString( KEY_TEMP, "/tmp" ); char * isoDir = ConfigGetString( KEY_ISODIR, GetEnv( "HOME", "/tmp" ) ); MakeDirIfNeeded( tmpDir ); MakeDirIfNeeded( isoDir ); } /*------------------------------------------------------------------------------ CONFIGSETSIZEPOSMAIN- Linux!jef 2007/01/30 22:35:35 ------------------------------------------------------------------------------*/ void ConfigSetSizePosMain( GtkWidget * mainWindow ) { int sx,sy, x, y; sx = ConfigGetInt( KEY_MAIN_SX, -1 ); sy = ConfigGetInt( KEY_MAIN_SY, -1 ); x = ConfigGetInt( KEY_MAIN_PX, -1 ); y = ConfigGetInt( KEY_MAIN_PY, -1 ); if((x > 0) && (y > 0)) gtk_window_move( GTK_WINDOW( mainWindow ), x, y); if((sx > 0) && (sy > 0)) gtk_window_resize( GTK_WINDOW( mainWindow), sx, sy); if( ConfigGetInt( KEY_MAIN_MAX, -1 ) == 1 ) gtk_window_maximize( GTK_WINDOW( mainWindow )); } /*------------------------------------------------------------------------------ CONFIGRECORDSIZEPOSMAIN- Linux!jef 2007/01/30 22:45:01 ------------------------------------------------------------------------------*/ void ConfigRecordSizePosMain( GtkWidget * mainWindow ) { int x,y,sx,sy; gtk_window_get_size( GTK_WINDOW( mainWindow), &sx, &sy); gtk_window_get_position( GTK_WINDOW( mainWindow ), &x, &y); // fprintf(stderr,"sx=%d sy=%d x=%d y= %d\n", sx, sy, x, y ); SetConfigInt( KEY_MAIN_SX, sx ); SetConfigInt( KEY_MAIN_SY, sy ); SetConfigInt( KEY_MAIN_PX, x ); SetConfigInt( KEY_MAIN_PY, y ); } dvd95/src/gconfig.h000066400000000000000000000042031140003301000143420ustar00rootroot00000000000000/*============================================================================== FICHIER : [config.h] DATE : 2005/12/0002 21:13:07 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __CONFIG_H__ #define __CONFIG_H__ #define KEY_USEMENU "/apps/dvd95/config/usemenu" #define KEY_PREVIEW "/apps/dvd95/config/view" #define KEY_DOISO "/apps/dvd95/config/doiso" #define KEY_DEVICE "/apps/dvd95/config/dev" #define KEY_AUDIO "/apps/dvd95/config/audio" #define KEY_SUBTITLE "/apps/dvd95/config/subtitle" #define KEY_PLAYER "/apps/dvd95/config/player" #define KEY_ISODIR "/apps/dvd95/config/iso" #define KEY_TEMP "/apps/dvd95/config/temp" #define KEY_TRACE "/apps/dvd95/config/trace" #define KEY_LANG "/apps/dvd95/config/lang" #define KEY_QUALDYN "/apps/dvd95/config/qualdyn" #define KEY_GRAVER "/apps/dvd95/config/graver" #define KEY_MEDIA "/apps/dvd95/config/media" #define KEY_MKISO "/apps/dvd95/config/mkiso" #define KEY_GENERIQUE "/apps/dvd95/config/generique" #define KEY_SOUND "/apps/dvd95/config/sound" #define KEY_MAIN_SX "/apps/dvd95/config/main-sx" #define KEY_MAIN_SY "/apps/dvd95/config/main-sy" #define KEY_MAIN_PX "/apps/dvd95/config/main-px" #define KEY_MAIN_PY "/apps/dvd95/config/main-py" #define KEY_MAIN_MAX "/apps/dvd95/config/main-max" /*@$#[gconfig.c] global proto. AutoProtoSigV1.1. date: 2010/02/14 00:11:37 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif void DialogPropriete(GtkWidget *parent, int mode); int LoadConfig(GtkWidget *propriete); int SaveConfig(GtkWidget *propriete); gchar *ConfigGetString(char *key, char *defValue); int ConfigGetInt(char *key, int defValue); int SetConfigString(char *key, char *value); int SetConfigInt(char *key, int value); int VerifConfig(GtkWidget *propriete); void InitTrace(void); void CreateDirectorys(void); void ConfigSetSizePosMain(GtkWidget *mainWindow); void ConfigRecordSizePosMain(GtkWidget *mainWindow); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) []*/ #endif /* __CONFIG_H__ */ dvd95/src/getvlc.h000066400000000000000000000374241140003301000142250ustar00rootroot00000000000000 /* macroblock modes */ #define MACROBLOCK_INTRA 1 #define MACROBLOCK_PATTERN 2 #define MACROBLOCK_MOTION_BACKWARD 4 #define MACROBLOCK_MOTION_FORWARD 8 #define MACROBLOCK_QUANT 16 #define DCT_TYPE_INTERLACED 32 /* motion_type */ #define MOTION_TYPE_MASK (3*64) #define MOTION_TYPE_BASE 64 #define MC_FIELD (1*64) #define MC_FRAME (2*64) #define MC_16X8 (2*64) #define MC_DMV (3*64) /* picture structure */ #define TOP_FIELD 1 #define BOTTOM_FIELD 2 #define FRAME_PICTURE 3 /* remove num valid bits from bit_buf */ #define DUMPBITS(bit_buf,bits,num) Flush_Bits(num) #define COPYBITS(bit_buf,bits,num) Copy_Bits(num) /* take num bits from the high part of bit_buf and zero extend them */ #define UBITS(bit_buf,num) (((uint32_t)(inbitbuf)) >> (32 - (num))) /* take num bits from the high part of bit_buf and sign extend them */ #define SBITS(bit_buf,num) (((int32_t)(inbitbuf)) >> (32 - (num))) typedef struct { uint8_t modes; uint8_t len; } MBtab; typedef struct { uint8_t delta; uint8_t len; } MVtab; typedef struct { int8_t dmv; uint8_t len; } DMVtab; typedef struct { uint8_t cbp; uint8_t len; } CBPtab; typedef struct { uint8_t size; uint8_t len; } DCtab; typedef struct { uint8_t run; uint8_t level; uint8_t len; } DCTtab; typedef struct { uint8_t mba; uint8_t len; } MBAtab; #define INTRA MACROBLOCK_INTRA #define QUANT MACROBLOCK_QUANT static const MBtab MB_I [] = { {INTRA|QUANT, 2}, {INTRA, 1} }; #define MC MACROBLOCK_MOTION_FORWARD #define CODED MACROBLOCK_PATTERN static const MBtab MB_P [] = { {INTRA|QUANT, 6}, {CODED|QUANT, 5}, {MC|CODED|QUANT, 5}, {INTRA, 5}, {MC, 3}, {MC, 3}, {MC, 3}, {MC, 3}, {CODED, 2}, {CODED, 2}, {CODED, 2}, {CODED, 2}, {CODED, 2}, {CODED, 2}, {CODED, 2}, {CODED, 2}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1}, {MC|CODED, 1} }; #define FWD MACROBLOCK_MOTION_FORWARD #define BWD MACROBLOCK_MOTION_BACKWARD #define INTER MACROBLOCK_MOTION_FORWARD|MACROBLOCK_MOTION_BACKWARD static const MBtab MB_B [] = { {0, 0}, {INTRA|QUANT, 6}, {BWD|CODED|QUANT, 6}, {FWD|CODED|QUANT, 6}, {INTER|CODED|QUANT, 5}, {INTER|CODED|QUANT, 5}, {INTRA, 5}, {INTRA, 5}, {FWD, 4}, {FWD, 4}, {FWD, 4}, {FWD, 4}, {FWD|CODED, 4}, {FWD|CODED, 4}, {FWD|CODED, 4}, {FWD|CODED, 4}, {BWD, 3}, {BWD, 3}, {BWD, 3}, {BWD, 3}, {BWD, 3}, {BWD, 3}, {BWD, 3}, {BWD, 3}, {BWD|CODED, 3}, {BWD|CODED, 3}, {BWD|CODED, 3}, {BWD|CODED, 3}, {BWD|CODED, 3}, {BWD|CODED, 3}, {BWD|CODED, 3}, {BWD|CODED, 3}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2}, {INTER|CODED, 2} }; #undef INTRA #undef QUANT #undef MC #undef CODED #undef FWD #undef BWD #undef INTER static const MVtab MV_4 [] = { { 3, 6}, { 2, 4}, { 1, 3}, { 1, 3}, { 0, 2}, { 0, 2}, { 0, 2}, { 0, 2} }; static const MVtab MV_10 [] = { { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10}, { 0,10}, {15,10}, {14,10}, {13,10}, {12,10}, {11,10}, {10,10}, { 9, 9}, { 9, 9}, { 8, 9}, { 8, 9}, { 7, 9}, { 7, 9}, { 6, 7}, { 6, 7}, { 6, 7}, { 6, 7}, { 6, 7}, { 6, 7}, { 6, 7}, { 6, 7}, { 5, 7}, { 5, 7}, { 5, 7}, { 5, 7}, { 5, 7}, { 5, 7}, { 5, 7}, { 5, 7}, { 4, 7}, { 4, 7}, { 4, 7}, { 4, 7}, { 4, 7}, { 4, 7}, { 4, 7}, { 4, 7} }; static const DMVtab DMV_2 [] = { { 0, 1}, { 0, 1}, { 1, 2}, {-1, 2} }; static const CBPtab CBP_7 [] = { {0x22, 7}, {0x12, 7}, {0x0a, 7}, {0x06, 7}, {0x21, 7}, {0x11, 7}, {0x09, 7}, {0x05, 7}, {0x3f, 6}, {0x3f, 6}, {0x03, 6}, {0x03, 6}, {0x24, 6}, {0x24, 6}, {0x18, 6}, {0x18, 6}, {0x3e, 5}, {0x3e, 5}, {0x3e, 5}, {0x3e, 5}, {0x02, 5}, {0x02, 5}, {0x02, 5}, {0x02, 5}, {0x3d, 5}, {0x3d, 5}, {0x3d, 5}, {0x3d, 5}, {0x01, 5}, {0x01, 5}, {0x01, 5}, {0x01, 5}, {0x38, 5}, {0x38, 5}, {0x38, 5}, {0x38, 5}, {0x34, 5}, {0x34, 5}, {0x34, 5}, {0x34, 5}, {0x2c, 5}, {0x2c, 5}, {0x2c, 5}, {0x2c, 5}, {0x1c, 5}, {0x1c, 5}, {0x1c, 5}, {0x1c, 5}, {0x28, 5}, {0x28, 5}, {0x28, 5}, {0x28, 5}, {0x14, 5}, {0x14, 5}, {0x14, 5}, {0x14, 5}, {0x30, 5}, {0x30, 5}, {0x30, 5}, {0x30, 5}, {0x0c, 5}, {0x0c, 5}, {0x0c, 5}, {0x0c, 5}, {0x20, 4}, {0x20, 4}, {0x20, 4}, {0x20, 4}, {0x20, 4}, {0x20, 4}, {0x20, 4}, {0x20, 4}, {0x10, 4}, {0x10, 4}, {0x10, 4}, {0x10, 4}, {0x10, 4}, {0x10, 4}, {0x10, 4}, {0x10, 4}, {0x08, 4}, {0x08, 4}, {0x08, 4}, {0x08, 4}, {0x08, 4}, {0x08, 4}, {0x08, 4}, {0x08, 4}, {0x04, 4}, {0x04, 4}, {0x04, 4}, {0x04, 4}, {0x04, 4}, {0x04, 4}, {0x04, 4}, {0x04, 4}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3}, {0x3c, 3} }; static const CBPtab CBP_9 [] = { {0, 0}, {0x00, 9}, {0x27, 9}, {0x1b, 9}, {0x3b, 9}, {0x37, 9}, {0x2f, 9}, {0x1f, 9}, {0x3a, 8}, {0x3a, 8}, {0x36, 8}, {0x36, 8}, {0x2e, 8}, {0x2e, 8}, {0x1e, 8}, {0x1e, 8}, {0x39, 8}, {0x39, 8}, {0x35, 8}, {0x35, 8}, {0x2d, 8}, {0x2d, 8}, {0x1d, 8}, {0x1d, 8}, {0x26, 8}, {0x26, 8}, {0x1a, 8}, {0x1a, 8}, {0x25, 8}, {0x25, 8}, {0x19, 8}, {0x19, 8}, {0x2b, 8}, {0x2b, 8}, {0x17, 8}, {0x17, 8}, {0x33, 8}, {0x33, 8}, {0x0f, 8}, {0x0f, 8}, {0x2a, 8}, {0x2a, 8}, {0x16, 8}, {0x16, 8}, {0x32, 8}, {0x32, 8}, {0x0e, 8}, {0x0e, 8}, {0x29, 8}, {0x29, 8}, {0x15, 8}, {0x15, 8}, {0x31, 8}, {0x31, 8}, {0x0d, 8}, {0x0d, 8}, {0x23, 8}, {0x23, 8}, {0x13, 8}, {0x13, 8}, {0x0b, 8}, {0x0b, 8}, {0x07, 8}, {0x07, 8} }; static const DCtab DC_lum_5 [] = { {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {0, 3}, {0, 3}, {0, 3}, {0, 3}, {3, 3}, {3, 3}, {3, 3}, {3, 3}, {4, 3}, {4, 3}, {4, 3}, {4, 3}, {5, 4}, {5, 4}, {6, 5} }; static const DCtab DC_chrom_5 [] = { {0, 2}, {0, 2}, {0, 2}, {0, 2}, {0, 2}, {0, 2}, {0, 2}, {0, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {1, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {2, 2}, {3, 3}, {3, 3}, {3, 3}, {3, 3}, {4, 4}, {4, 4}, {5, 5} }; static const DCtab DC_long [] = { {6, 5}, {6, 5}, {6, 5}, {6, 5}, {6, 5}, {6, 5}, { 6, 5}, { 6, 5}, {6, 5}, {6, 5}, {6, 5}, {6, 5}, {6, 5}, {6, 5}, { 6, 5}, { 6, 5}, {7, 6}, {7, 6}, {7, 6}, {7, 6}, {7, 6}, {7, 6}, { 7, 6}, { 7, 6}, {8, 7}, {8, 7}, {8, 7}, {8, 7}, {9, 8}, {9, 8}, {10, 9}, {11, 9} }; static const DCTtab DCT_16 [] = { {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, {129, 0, 0}, { 2,18, 0}, { 2,17, 0}, { 2,16, 0}, { 2,15, 0}, { 7, 3, 0}, { 17, 2, 0}, { 16, 2, 0}, { 15, 2, 0}, { 14, 2, 0}, { 13, 2, 0}, { 12, 2, 0}, { 32, 1, 0}, { 31, 1, 0}, { 30, 1, 0}, { 29, 1, 0}, { 28, 1, 0} }; static const DCTtab DCT_15 [] = { { 1,40,15}, { 1,39,15}, { 1,38,15}, { 1,37,15}, { 1,36,15}, { 1,35,15}, { 1,34,15}, { 1,33,15}, { 1,32,15}, { 2,14,15}, { 2,13,15}, { 2,12,15}, { 2,11,15}, { 2,10,15}, { 2, 9,15}, { 2, 8,15}, { 1,31,14}, { 1,31,14}, { 1,30,14}, { 1,30,14}, { 1,29,14}, { 1,29,14}, { 1,28,14}, { 1,28,14}, { 1,27,14}, { 1,27,14}, { 1,26,14}, { 1,26,14}, { 1,25,14}, { 1,25,14}, { 1,24,14}, { 1,24,14}, { 1,23,14}, { 1,23,14}, { 1,22,14}, { 1,22,14}, { 1,21,14}, { 1,21,14}, { 1,20,14}, { 1,20,14}, { 1,19,14}, { 1,19,14}, { 1,18,14}, { 1,18,14}, { 1,17,14}, { 1,17,14}, { 1,16,14}, { 1,16,14} }; static const DCTtab DCT_13 [] = { { 11, 2,13}, { 10, 2,13}, { 6, 3,13}, { 4, 4,13}, { 3, 5,13}, { 2, 7,13}, { 2, 6,13}, { 1,15,13}, { 1,14,13}, { 1,13,13}, { 1,12,13}, { 27, 1,13}, { 26, 1,13}, { 25, 1,13}, { 24, 1,13}, { 23, 1,13}, { 1,11,12}, { 1,11,12}, { 9, 2,12}, { 9, 2,12}, { 5, 3,12}, { 5, 3,12}, { 1,10,12}, { 1,10,12}, { 3, 4,12}, { 3, 4,12}, { 8, 2,12}, { 8, 2,12}, { 22, 1,12}, { 22, 1,12}, { 21, 1,12}, { 21, 1,12}, { 1, 9,12}, { 1, 9,12}, { 20, 1,12}, { 20, 1,12}, { 19, 1,12}, { 19, 1,12}, { 2, 5,12}, { 2, 5,12}, { 4, 3,12}, { 4, 3,12}, { 1, 8,12}, { 1, 8,12}, { 7, 2,12}, { 7, 2,12}, { 18, 1,12}, { 18, 1,12} }; static const DCTtab DCT_B14_10 [] = { { 17, 1,10}, { 6, 2,10}, { 1, 7,10}, { 3, 3,10}, { 2, 4,10}, { 16, 1,10}, { 15, 1,10}, { 5, 2,10} }; static const DCTtab DCT_B14_8 [] = { { 65, 0, 6}, { 65, 0, 6}, { 65, 0, 6}, { 65, 0, 6}, { 3, 2, 7}, { 3, 2, 7}, { 10, 1, 7}, { 10, 1, 7}, { 1, 4, 7}, { 1, 4, 7}, { 9, 1, 7}, { 9, 1, 7}, { 8, 1, 6}, { 8, 1, 6}, { 8, 1, 6}, { 8, 1, 6}, { 7, 1, 6}, { 7, 1, 6}, { 7, 1, 6}, { 7, 1, 6}, { 2, 2, 6}, { 2, 2, 6}, { 2, 2, 6}, { 2, 2, 6}, { 6, 1, 6}, { 6, 1, 6}, { 6, 1, 6}, { 6, 1, 6}, { 14, 1, 8}, { 1, 6, 8}, { 13, 1, 8}, { 12, 1, 8}, { 4, 2, 8}, { 2, 3, 8}, { 1, 5, 8}, { 11, 1, 8} }; static const DCTtab DCT_B14AC_5 [] = { { 1, 3, 5}, { 5, 1, 5}, { 4, 1, 5}, { 1, 2, 4}, { 1, 2, 4}, { 3, 1, 4}, { 3, 1, 4}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, {129, 0, 2}, {129, 0, 2}, {129, 0, 2}, {129, 0, 2}, {129, 0, 2}, {129, 0, 2}, {129, 0, 2}, {129, 0, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2} }; static const DCTtab DCT_B14DC_5 [] = { { 1, 3, 5}, { 5, 1, 5}, { 4, 1, 5}, { 1, 2, 4}, { 1, 2, 4}, { 3, 1, 4}, { 3, 1, 4}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1}, { 1, 1, 1} }; static const DCTtab DCT_B15_10 [] = { { 6, 2, 9}, { 6, 2, 9}, { 15, 1, 9}, { 15, 1, 9}, { 3, 4,10}, { 17, 1,10}, { 16, 1, 9}, { 16, 1, 9} }; static const DCTtab DCT_B15_8 [] = { { 65, 0, 6}, { 65, 0, 6}, { 65, 0, 6}, { 65, 0, 6}, { 8, 1, 7}, { 8, 1, 7}, { 9, 1, 7}, { 9, 1, 7}, { 7, 1, 7}, { 7, 1, 7}, { 3, 2, 7}, { 3, 2, 7}, { 1, 7, 6}, { 1, 7, 6}, { 1, 7, 6}, { 1, 7, 6}, { 1, 6, 6}, { 1, 6, 6}, { 1, 6, 6}, { 1, 6, 6}, { 5, 1, 6}, { 5, 1, 6}, { 5, 1, 6}, { 5, 1, 6}, { 6, 1, 6}, { 6, 1, 6}, { 6, 1, 6}, { 6, 1, 6}, { 2, 5, 8}, { 12, 1, 8}, { 1,11, 8}, { 1,10, 8}, { 14, 1, 8}, { 13, 1, 8}, { 4, 2, 8}, { 2, 4, 8}, { 3, 1, 5}, { 3, 1, 5}, { 3, 1, 5}, { 3, 1, 5}, { 3, 1, 5}, { 3, 1, 5}, { 3, 1, 5}, { 3, 1, 5}, { 2, 2, 5}, { 2, 2, 5}, { 2, 2, 5}, { 2, 2, 5}, { 2, 2, 5}, { 2, 2, 5}, { 2, 2, 5}, { 2, 2, 5}, { 4, 1, 5}, { 4, 1, 5}, { 4, 1, 5}, { 4, 1, 5}, { 4, 1, 5}, { 4, 1, 5}, { 4, 1, 5}, { 4, 1, 5}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, { 2, 1, 3}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, {129, 0, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 3, 4}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 1, 2}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 2, 3}, { 1, 4, 5}, { 1, 4, 5}, { 1, 4, 5}, { 1, 4, 5}, { 1, 4, 5}, { 1, 4, 5}, { 1, 4, 5}, { 1, 4, 5}, { 1, 5, 5}, { 1, 5, 5}, { 1, 5, 5}, { 1, 5, 5}, { 1, 5, 5}, { 1, 5, 5}, { 1, 5, 5}, { 1, 5, 5}, { 10, 1, 7}, { 10, 1, 7}, { 2, 3, 7}, { 2, 3, 7}, { 11, 1, 7}, { 11, 1, 7}, { 1, 8, 7}, { 1, 8, 7}, { 1, 9, 7}, { 1, 9, 7}, { 1,12, 8}, { 1,13, 8}, { 3, 3, 8}, { 5, 2, 8}, { 1,14, 8}, { 1,15, 8} }; static const MBAtab MBA_5 [] = { {6, 5}, {5, 5}, {4, 4}, {4, 4}, {3, 4}, {3, 4}, {2, 3}, {2, 3}, {2, 3}, {2, 3}, {1, 3}, {1, 3}, {1, 3}, {1, 3}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1} }; static const MBAtab MBA_11 [] = { {32, 11}, {31, 11}, {30, 11}, {29, 11}, {28, 11}, {27, 11}, {26, 11}, {25, 11}, {24, 11}, {23, 11}, {22, 11}, {21, 11}, {20, 10}, {20, 10}, {19, 10}, {19, 10}, {18, 10}, {18, 10}, {17, 10}, {17, 10}, {16, 10}, {16, 10}, {15, 10}, {15, 10}, {14, 8}, {14, 8}, {14, 8}, {14, 8}, {14, 8}, {14, 8}, {14, 8}, {14, 8}, {13, 8}, {13, 8}, {13, 8}, {13, 8}, {13, 8}, {13, 8}, {13, 8}, {13, 8}, {12, 8}, {12, 8}, {12, 8}, {12, 8}, {12, 8}, {12, 8}, {12, 8}, {12, 8}, {11, 8}, {11, 8}, {11, 8}, {11, 8}, {11, 8}, {11, 8}, {11, 8}, {11, 8}, {10, 8}, {10, 8}, {10, 8}, {10, 8}, {10, 8}, {10, 8}, {10, 8}, {10, 8}, { 9, 8}, { 9, 8}, { 9, 8}, { 9, 8}, { 9, 8}, { 9, 8}, { 9, 8}, { 9, 8}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 8, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7}, { 7, 7} }; dvd95/src/globals.h000066400000000000000000000034431140003301000143560ustar00rootroot00000000000000/*============================================================================== FICHIER : [globals.h] DATE : 2005/12/0008 22:39:30 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __GLOBALS_H__ #define __GLOBALS_H__ #include enum { VIDEO_COL2_PISTE = 0, VIDEO_COL3_DUREE, VIDEO_COL4_CHAPITRE, VIDEO_COL5_LANG, VIDEO_COL6_SUB, VIDEO_COL7_VIDEO, VIDEO_COL8_NO, VIDEO_NCOLS }; enum { AUDIO_COL1_CHECK = 0, AUDIO_COL2_PISTE, AUDIO_COL3_LANG, AUDIO_COL4_FORMAT, AUDIO_COL5_EXTENSION, AUDIO_COL6_CANAUX, AUDIO_COL7_LANGCODE, /* Hiden */ AUDIO_COL8_NO, /* Hiden */ AUDIO_NCOLS }; enum { SUB_COL1_CHECK = 0, SUB_COL2_PISTE, SUB_COL3_LANG, SUB_COL4_EXT, SUB_COL5_LANGCODE, /* Hiden */ SUB_COL6_NO, /* Hiden */ SUB_NCOLS }; enum { PHASE2_ARRIERE = 1, PHASE2_AVANCER }; #ifdef __NEED_GLOBALS__ GtkWidget * MainDlg; int UserStopF = 0; int UserPauseF = 0; char DbgLevels[256] = { 0 }; int IgnoreErrors = -1; int Phase2 = 0; char Device[1024]; char * TargetDir; int ImageReadyF = 0; int DeviceSpecifiedF = 0; /* --isodir or --dvddir specified by argument */ int KeepVob = 0; /* For dev purposes only */ #else extern GtkWidget * MainDlg; extern int UserStopF; extern int UserPauseF; extern char DbgLevels[256]; extern int IgnoreErrors; extern int Phase2; extern char Device[1024]; extern char * TargetDir; extern int ImageReadyF; extern int DeviceSpecifiedF; extern int KeepVob; #endif #define PPM_FILE "/tmp/dvd95.ppm" #define DBG( lvl, x ) if( lvl < 0 || DbgLevels[lvl] ) x #define IsLevelSet( lvl ) (DbgLevels[lvl]) /* If we want to ignore angle cells */ #define IGNORE_ANGLE 1 #endif /* __GLOBALS_H__ */ dvd95/src/ifo.c000066400000000000000000000663261140003301000135140ustar00rootroot00000000000000/*============================================================================== FICHIER : [ifo.c] DATE : 2006/01/0020 19:36:04 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #define _LARGEFILE64_SOURCE #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include /* To zero the region code in VIDEO_TS.IFO */ #define ZERO_REGION_CODE 1 #include "dvdinfo.h" #include "bswap.h" #include "globals.h" /*@$#[ifo.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:20:20 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* ifo.c */ static void UpdateVMG PROTO((ifo_handle_t *ifo, unsigned char *buffer)); static void UpdateFP_PGC PROTO((ifo_handle_t *ifo, unsigned char *buffer)); static void UpdatePGC PROTO((ifo_handle_t *ifo, unsigned char *_buffer, pgc_t *_pgc, int _offset)); static void UpdatePGC_COMMAND_TBL PROTO((ifo_handle_t *ifo, unsigned char *_buffer, pgc_command_tbl_t *_cmd_tbl, int _offset)); static void UpdatePGC_PROGRAM_MAP PROTO((ifo_handle_t *ifo, unsigned char *_buffer, pgc_program_map_t *_program_map, int _nr, int _offset)); static void UpdatePGC_CELL_PLAYBACK_TBL PROTO((ifo_handle_t *ifo, unsigned char *_buffer, cell_playback_t *_cell_playback, int _nr, int _offset)); static void UpdatePGC_CELL_POSITION_TBL PROTO((ifo_handle_t *ifo, unsigned char *_buffer, cell_position_t *_cell_position, int _nr, int _offset)); static void UpdateTT_SRPT PROTO((ifo_handle_t *ifo, unsigned char *_buffer)); static void UpdatePGCI_UT PROTO((ifo_handle_t *ifo, unsigned char *_buffer)); static void UpdatePGCIT PROTO((ifo_handle_t *ifo, unsigned char *_buffer)); static void UpdatePGCIT_internal PROTO((ifo_handle_t *ifo, unsigned char *_buffer, pgcit_t *_pgcit, int _offset)); static void UpdatePTL_MAIT PROTO((ifo_handle_t *ifo, unsigned char *_buffer)); static void UpdateVTS_ATRT PROTO((ifo_handle_t *ifo, unsigned char *_buffer)); static void UpdateTXTDT_MGI PROTO((ifo_handle_t *ifo, unsigned char *_buffer)); static void UpdateC_ADT PROTO((ifo_handle_t *ifo, unsigned char *_buffer)); static void UpdateC_ADT_Internal PROTO((ifo_handle_t *ifo, unsigned char *_buffer, c_adt_t *_c_adt, int _sector)); static void UpdateVOBU_ADMAP PROTO((ifo_handle_t *ifo, unsigned char *_buffer)); static void UpdateVOBU_ADMAP_Internal PROTO((ifo_handle_t *ifo, unsigned char *_buffer, vobu_admap_t *_vobu_admap, int _sector)); static void UpdateVTS PROTO((ifo_handle_t *ifo, unsigned char *_buffer)); static void UpdateVTS_PTT_SRPT PROTO((ifo_handle_t *ifo, unsigned char *_buffer)); static void UpdateVTS_TMAPT PROTO((ifo_handle_t *ifo, unsigned char *_buffer)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ /*------------------------------------------------------------------------------ SAVEIFO- Linux!jef 2006/01/20 19:39:54 ------------------------------------------------------------------------------*/ int SaveIfo( ifo_handle_t * ifo, int vts, char * targetDir ) { uint32_t size; char ifoFile[512]; char bupFile[512]; char fName[512]; dvd_file_t * dvd_file; unsigned char * ifoBuffer; FILE * fp; if( vts == 0 ) { size = ifo->vmgi_mat->vmgi_last_sector + 1; strcpy( ifoFile, "/VIDEO_TS/VIDEO_TS.IFO"); strcpy( bupFile, "/VIDEO_TS/VIDEO_TS.BUP"); } else { size = ifo->vtsi_mat->vtsi_last_sector + 1; sprintf( ifoFile, "/VIDEO_TS/VTS_%02d_0.IFO", vts ); sprintf( bupFile, "/VIDEO_TS/VTS_%02d_0.BUP", vts ); } size *= DVD_BLOCK_LEN; if( size > 0 ) { dvd_file = DVDOpenFile( Dvd, vts, DVD_READ_INFO_FILE ); if( !dvd_file ) return( -1 ); ifoBuffer =(unsigned char *)malloc( size ); if( DVDReadBytes( dvd_file, ifoBuffer, size ) != size ) { free( ifoBuffer ); DVDCloseFile( dvd_file ); return( -1 ); } DVDCloseFile( dvd_file ); if( vts == 0 ) { UpdateVMG( ifo, ifoBuffer ); UpdateFP_PGC( ifo, ifoBuffer ); UpdateTT_SRPT( ifo, ifoBuffer ); UpdatePGCI_UT( ifo, ifoBuffer ); UpdatePTL_MAIT( ifo, ifoBuffer ); UpdateVTS_ATRT( ifo, ifoBuffer ); UpdateTXTDT_MGI( ifo, ifoBuffer ); UpdateC_ADT( ifo, ifoBuffer ); UpdateVOBU_ADMAP( ifo, ifoBuffer ); } else { UpdateVTS( ifo, ifoBuffer ); UpdateVTS_PTT_SRPT( ifo, ifoBuffer ); UpdatePGCIT( ifo, ifoBuffer ); UpdatePGCI_UT( ifo, ifoBuffer ); UpdateVTS_TMAPT( ifo, ifoBuffer ); UpdateC_ADT( ifo, ifoBuffer ); UpdateVOBU_ADMAP( ifo, ifoBuffer ); } sprintf( fName, "%s/%s", targetDir, ifoFile ); fp = fopen( fName, "w" ); if( !fp ) { free( ifoBuffer ); return( -1 ); } if( fwrite( ifoBuffer, 1, size, fp ) != size ) { free( ifoBuffer ); fclose( fp ); return( -1 ); } fclose( fp ); sprintf( fName, "%s/%s", targetDir, bupFile ); fp = fopen( fName, "w" ); if( !fp ) { free( ifoBuffer ); return( -1 ); } if( fwrite( ifoBuffer, 1, size, fp ) != size ) { free( ifoBuffer ); fclose( fp ); return( -1 ); } fclose( fp ); free( ifoBuffer ); } return( 0 ); } /*------------------------------------------------------------------------------ UPDATEVMG- Linux!jef 2006/01/20 19:57:46 ------------------------------------------------------------------------------*/ static void UpdateVMG( ifo_handle_t * ifo, unsigned char * buffer ) { vmgi_mat_t vmgi_mat; memcpy(&vmgi_mat,ifo->vmgi_mat,sizeof(vmgi_mat_t)); /* Hack SPIDERMAN 1 */ if( (vmgi_mat.vmgi_last_sector + 1) < vmgi_mat.vmgm_vobs ) vmgi_mat.vmgm_vobs = vmgi_mat.vmgi_last_sector + 1; B2N_32(vmgi_mat.vmg_last_sector); B2N_32(vmgi_mat.vmgi_last_sector); B2N_32(vmgi_mat.vmg_category); B2N_16(vmgi_mat.vmg_nr_of_volumes); B2N_16(vmgi_mat.vmg_this_volume_nr); B2N_16(vmgi_mat.vmg_nr_of_title_sets); B2N_64(vmgi_mat.vmg_pos_code); B2N_32(vmgi_mat.vmgi_last_byte); B2N_32(vmgi_mat.first_play_pgc); B2N_32(vmgi_mat.vmgm_vobs); B2N_32(vmgi_mat.tt_srpt); B2N_32(vmgi_mat.vmgm_pgci_ut); B2N_32(vmgi_mat.ptl_mait); B2N_32(vmgi_mat.vts_atrt); B2N_32(vmgi_mat.txtdt_mgi); B2N_32(vmgi_mat.vmgm_c_adt); B2N_32(vmgi_mat.vmgm_vobu_admap); B2N_16(vmgi_mat.vmgm_audio_attr.lang_code); B2N_16(vmgi_mat.vmgm_subp_attr.lang_code); memcpy( buffer,&vmgi_mat,sizeof(vmgi_mat_t)); #if ZERO_REGION_CODE buffer[0x23] = 0; #endif } /*------------------------------------------------------------------------------ UPDATEFP_PGC- Linux!jef 2006/01/20 19:59:55 ------------------------------------------------------------------------------*/ static void UpdateFP_PGC( ifo_handle_t * ifo, unsigned char * buffer ) { int offset = ifo->vmgi_mat->first_play_pgc; UpdatePGC( ifo, buffer, ifo->first_play_pgc, offset ); } /*------------------------------------------------------------------------------ UPDATEPGC- Linux!jef 2006/01/20 20:03:58 ------------------------------------------------------------------------------*/ static void UpdatePGC( ifo_handle_t * ifo, unsigned char *_buffer, pgc_t *_pgc, int _offset ) { pgc_t pgc; int i; memcpy(&pgc,_pgc,sizeof(pgc_t)); if( pgc.command_tbl_offset != 0 ) { UpdatePGC_COMMAND_TBL( ifo, _buffer , pgc.command_tbl, _offset+pgc.command_tbl_offset ); } if( pgc.program_map_offset != 0 ) { UpdatePGC_PROGRAM_MAP( ifo, _buffer, pgc.program_map,pgc.nr_of_programs, _offset + pgc.program_map_offset ); } if( pgc.cell_playback_offset != 0 ) { UpdatePGC_CELL_PLAYBACK_TBL( ifo, _buffer ,pgc.cell_playback,pgc.nr_of_cells,_offset + pgc.cell_playback_offset); } if( pgc.cell_position_offset != 0 ) { UpdatePGC_CELL_POSITION_TBL( ifo, _buffer,pgc.cell_position,pgc.nr_of_cells,_offset + pgc.cell_position_offset); } B2N_16(pgc.next_pgc_nr); B2N_16(pgc.prev_pgc_nr); B2N_16(pgc.goup_pgc_nr); B2N_16(pgc.command_tbl_offset); B2N_16(pgc.program_map_offset); B2N_16(pgc.cell_playback_offset); B2N_16(pgc.cell_position_offset); for(i = 0; i < 8; i++) B2N_16(pgc.audio_control[i]); for(i = 0; i < 32; i++) B2N_32(pgc.subp_control[i]); for(i = 0; i < 16; i++) B2N_32(pgc.palette[i]); memcpy(_buffer+_offset,&pgc,PGC_SIZE); } /*------------------------------------------------------------------------------ UPDATEPGC_COMMAND_TBL- Linux!jef 2006/01/20 20:07:32 ------------------------------------------------------------------------------*/ static void UpdatePGC_COMMAND_TBL( ifo_handle_t * ifo, unsigned char *_buffer, pgc_command_tbl_t *_cmd_tbl,int _offset) { struct { uint16_t nr_of_pre; uint16_t nr_of_post; uint16_t nr_of_cell; uint16_t zero_1; } ATTRIBUTE_PACKED cmd_tbl; memcpy(&cmd_tbl,_cmd_tbl,sizeof(cmd_tbl)); B2N_16(cmd_tbl.nr_of_pre); B2N_16(cmd_tbl.nr_of_post); B2N_16(cmd_tbl.nr_of_cell); memcpy(_buffer+_offset,&cmd_tbl,sizeof(cmd_tbl)); //moves the offset to save vm_cmd _offset +=sizeof(cmd_tbl); if(_cmd_tbl->nr_of_pre != 0) { unsigned int pre_cmds_size = _cmd_tbl->nr_of_pre * COMMAND_DATA_SIZE; memcpy(_buffer + _offset,_cmd_tbl->pre_cmds,pre_cmds_size); _offset +=pre_cmds_size; } if(_cmd_tbl->nr_of_post != 0) { unsigned int post_cmds_size = _cmd_tbl->nr_of_post * COMMAND_DATA_SIZE; memcpy(_buffer + _offset,_cmd_tbl->post_cmds,post_cmds_size); _offset += post_cmds_size; } if(_cmd_tbl->nr_of_cell != 0) { unsigned int cell_cmds_size = _cmd_tbl->nr_of_cell * COMMAND_DATA_SIZE; memcpy(_buffer +_offset,_cmd_tbl->cell_cmds,cell_cmds_size); } } /*------------------------------------------------------------------------------ UPDATEPGC_PROGRAM_MAP- Linux!jef 2006/01/20 20:09:17 ------------------------------------------------------------------------------*/ static void UpdatePGC_PROGRAM_MAP( ifo_handle_t * ifo, unsigned char *_buffer,pgc_program_map_t *_program_map, int _nr,int _offset) { int size = _nr * sizeof(pgc_program_map_t); memcpy(_buffer+_offset, _program_map,size); } /*------------------------------------------------------------------------------ UPDATEPGC_CELL_PLAYBACK_TBL- Linux!jef 2006/01/20 20:09:58 ------------------------------------------------------------------------------*/ static void UpdatePGC_CELL_PLAYBACK_TBL( ifo_handle_t * ifo, unsigned char *_buffer, cell_playback_t *_cell_playback,int _nr, int _offset) { cell_playback_t *cell_playback; int size = _nr * sizeof(cell_playback_t); int i; cell_playback=(cell_playback_t*) malloc(size); memcpy(cell_playback,_cell_playback,size); for( i = 0; i < _nr; i++) { // DBG('i',fprintf(stderr,"%s: cell %d block_mode=%d block_type=%d\n",__FUNCTION__,i,cell_playback[i].block_mode, cell_playback[i].block_type);); B2N_32(cell_playback[i].first_sector); B2N_32(cell_playback[i].first_ilvu_end_sector); B2N_32(cell_playback[i].last_vobu_start_sector); B2N_32(cell_playback[i].last_sector); } memcpy(_buffer + _offset,cell_playback,size); free(cell_playback); } /*------------------------------------------------------------------------------ UPDATEPGC_CELL_POSITION_TBL- Linux!jef 2006/01/20 20:11:21 ------------------------------------------------------------------------------*/ static void UpdatePGC_CELL_POSITION_TBL( ifo_handle_t * ifo, unsigned char *_buffer,cell_position_t *_cell_position,int _nr, int _offset) { cell_position_t * cell_position; int size = _nr * sizeof(cell_position_t); int i; cell_position=(cell_position_t*)malloc(size); memcpy(cell_position,_cell_position,size); for( i = 0; i < _nr; i++ ) { B2N_16(cell_position[i].vob_id_nr); } memcpy(_buffer + _offset,cell_position,size); free(cell_position); } /*------------------------------------------------------------------------------ UPDATETT_SRPT- Linux!jef 2006/01/20 20:12:43 ------------------------------------------------------------------------------*/ static void UpdateTT_SRPT( ifo_handle_t * ifo, unsigned char *_buffer ) { if( ifo->vmgi_mat->tt_srpt != 0 ) { tt_srpt_t * tt_srpt; int offset = ifo->vmgi_mat->tt_srpt * DVD_BLOCK_LEN; int info_length; title_info_t * title_info; int i; tt_srpt=(tt_srpt_t*) malloc(sizeof(tt_srpt_t)); memcpy( tt_srpt, ifo->tt_srpt,sizeof(tt_srpt_t)); info_length = tt_srpt->last_byte + 1 - TT_SRPT_SIZE; title_info =(title_info_t*) malloc(info_length); memcpy(title_info, tt_srpt->title,info_length); /*For tests */ // fprintf(stderr,"tt_srpt->nr_of_srpts=%d info_length=%d theorical=%ld\n", tt_srpt->nr_of_srpts, info_length, tt_srpt->nr_of_srpts * sizeof(*title_info ) ); for( i = 0; i < tt_srpt->nr_of_srpts; i++) { // fprintf(stderr,"title_info[%d].pb_ty=0x%x\n", i, title_info[i].pb_ty ); // title_info[i].pb_ty.zero_1 = 0; // fprintf(stderr,"== title_info[%d].pb_ty=0x%x\n", i, title_info[i].pb_ty ); B2N_16(title_info[i].nr_of_ptts); B2N_16(title_info[i].parental_id); B2N_32(title_info[i].title_set_sector); } memcpy(_buffer+offset+TT_SRPT_SIZE,title_info,info_length); free(title_info); B2N_16(tt_srpt->nr_of_srpts); B2N_32(tt_srpt->last_byte); memcpy(_buffer+offset,tt_srpt,TT_SRPT_SIZE); free (tt_srpt); } } /*------------------------------------------------------------------------------ UPDATEPGCI_UT- Linux!jef 2006/01/20 20:15:23 ------------------------------------------------------------------------------*/ static void UpdatePGCI_UT( ifo_handle_t * ifo, unsigned char *_buffer) { int sector,sector2; pgci_ut_t * pgci_ut; pgci_lu_t *pgci_lu; int i; if( ifo->vmgi_mat ) { if( ifo->vmgi_mat->vmgm_pgci_ut == 0) return; sector = ifo->vmgi_mat->vmgm_pgci_ut *DVD_BLOCK_LEN; } else { if( ifo->vtsi_mat) { if( ifo->vtsi_mat->vtsm_pgci_ut == 0) return; // A v�ifier : si sector = secteur physique ou offset sector = ifo->vtsi_mat->vtsm_pgci_ut * DVD_BLOCK_LEN; } else { return; } } /* From K9copy */ if( !ifo->pgci_ut ) { DBG('i',fprintf(stderr,"%s: no pgci_ut !!!!\n",__FUNCTION__);); return; } sector2=sector; pgci_ut = (pgci_ut_t*)malloc( sizeof(pgci_ut_t)); memcpy( pgci_ut,ifo->pgci_ut,sizeof(pgci_ut_t)); /*!!!*/ pgci_ut->zero_1 = 0; B2N_16(pgci_ut->nr_of_lus); B2N_32(pgci_ut->last_byte); memcpy(_buffer+sector,pgci_ut,PGCI_UT_SIZE); sector += PGCI_UT_SIZE; free(pgci_ut); pgci_lu = (pgci_lu_t*)malloc(sizeof(pgci_lu_t)); for( i = 0; i < ifo->pgci_ut->nr_of_lus; i++) { memcpy(pgci_lu, &(ifo->pgci_ut->lu[i]), PGCI_LU_SIZE); B2N_16(pgci_lu->lang_code); B2N_32(pgci_lu->lang_start_byte); memcpy(_buffer+sector,pgci_lu,PGCI_LU_SIZE); UpdatePGCIT_internal( ifo, _buffer, ifo->pgci_ut->lu[i].pgcit,sector2 + ifo->pgci_ut->lu[i].lang_start_byte); sector += PGCI_LU_SIZE; } free(pgci_lu); } /*------------------------------------------------------------------------------ UPDATEPGCIT- Linux!jef 2006/01/20 20:19:47 ------------------------------------------------------------------------------*/ static void UpdatePGCIT( ifo_handle_t * ifo, unsigned char *_buffer ) { if( !ifo->vtsi_mat ) return ; if( ifo->vtsi_mat->vts_pgcit == 0 ) /* mandatory */ return ; UpdatePGCIT_internal( ifo, _buffer, ifo->vts_pgcit, ifo->vtsi_mat->vts_pgcit * DVD_BLOCK_LEN); } /*------------------------------------------------------------------------------ UPDATEPGCIT_INTERNAL- Linux!jef 2006/01/20 20:20:57 ------------------------------------------------------------------------------*/ static void UpdatePGCIT_internal( ifo_handle_t * ifo, unsigned char *_buffer, pgcit_t *_pgcit, int _offset) { pgcit_t * pgcit; int info_length; int offset; int i; pgci_srp_t * pgci_srp; pgcit=(pgcit_t*)malloc(sizeof(pgcit_t)); memcpy(pgcit,_pgcit,sizeof(pgcit_t)); B2N_16(pgcit->nr_of_pgci_srp); B2N_32(pgcit->last_byte); memcpy(_buffer+_offset ,pgcit,PGCIT_SIZE); free(pgcit); info_length = pgcit->nr_of_pgci_srp * PGCI_SRP_SIZE; pgci_srp=(pgci_srp_t*)malloc(sizeof(pgci_srp_t)); offset=_offset+PGCIT_SIZE; for( i = 0; i < _pgcit->nr_of_pgci_srp; i++) { memcpy(pgci_srp, &(_pgcit->pgci_srp[i]), PGCI_SRP_SIZE); B2N_16(pgci_srp->ptl_id_mask); B2N_32(pgci_srp->pgc_start_byte); //a desactiver pour checkBuffer //memcpy(_buffer+offset,pgci_srp,PGCI_SRP_SIZE); offset+=PGCI_SRP_SIZE; UpdatePGC( ifo, _buffer,_pgcit->pgci_srp[i].pgc,_offset + _pgcit->pgci_srp[i].pgc_start_byte); } free(pgci_srp); } /*------------------------------------------------------------------------------ UPDATEPTL_MAIT- Linux!jef 2006/01/20 20:23:14 ------------------------------------------------------------------------------*/ static void UpdatePTL_MAIT( ifo_handle_t * ifo, unsigned char *_buffer ) { ptl_mait_t * ptl_mait; int offset; int info_length; int i; ptl_mait_country_t * ptl_mait_country; if( !ifo->vmgi_mat ) return; if( ifo->vmgi_mat->ptl_mait == 0) return; ptl_mait=(ptl_mait_t*)malloc(sizeof(ptl_mait_t)); memcpy(ptl_mait,ifo->ptl_mait,sizeof(ptl_mait_t)); B2N_16(ptl_mait->nr_of_countries); B2N_16(ptl_mait->nr_of_vtss); B2N_32(ptl_mait->last_byte); offset = ifo->vmgi_mat->ptl_mait * DVD_BLOCK_LEN; memcpy(_buffer+offset,ptl_mait,PTL_MAIT_SIZE); offset+=PTL_MAIT_SIZE; info_length = ifo->ptl_mait->nr_of_countries * sizeof(ptl_mait_country_t); ptl_mait_country = (ptl_mait_country_t*) malloc (sizeof(ptl_mait_country_t)); for( i = 0; i < ptl_mait->nr_of_countries; i++) { memcpy(ptl_mait_country,&(ifo->ptl_mait->countries[i]),PTL_MAIT_COUNTRY_SIZE); B2N_16(ptl_mait_country->country_code); B2N_16(ptl_mait_country->pf_ptl_mai_start_byte); memcpy(_buffer +offset,ptl_mait_country,PTL_MAIT_COUNTRY_SIZE); offset+=PTL_MAIT_COUNTRY_SIZE; } free(ptl_mait); free(ptl_mait_country); } /*------------------------------------------------------------------------------ UPDATEVTS_ATRT- Linux!jef 2006/01/20 20:25:55 ------------------------------------------------------------------------------*/ static void UpdateVTS_ATRT( ifo_handle_t * ifo, unsigned char *_buffer ) { int sector; vts_atrt_t *vts_atrt; int info_length; uint32_t *data; int i; if( ifo->vmgi_mat->vts_atrt == 0) return; sector = ifo->vmgi_mat->vts_atrt * DVD_BLOCK_LEN; vts_atrt = (vts_atrt_t*)malloc(sizeof(vts_atrt_t)); memcpy(vts_atrt, ifo->vts_atrt,VTS_ATRT_SIZE); B2N_16(vts_atrt->nr_of_vtss); B2N_32(vts_atrt->last_byte); memcpy(_buffer+sector,vts_atrt,VTS_ATRT_SIZE); free(vts_atrt); sector += VTS_ATRT_SIZE; vts_atrt = ifo->vts_atrt; info_length = vts_atrt->nr_of_vtss * sizeof(uint32_t); data=(uint32_t*) malloc(info_length); memcpy (data,ifo->vts_atrt->vts_atrt_offsets,info_length); for( i = 0; i < ifo->vts_atrt->nr_of_vtss; i++) { B2N_32(data[i]); } memcpy(_buffer+sector,data,info_length); free(data); data = (uint32_t*)ifo->vts_atrt->vts_atrt_offsets; info_length = vts_atrt->nr_of_vtss * sizeof(vts_attributes_t); // for( i = 0; i < ifo->vts_atrt->nr_of_vtss; i++) { // unsigned int offset = data[i]; // A VOIR // updateVTS_ATTRIBUTES(_buffer+sector+offset,&(ifo->vts_atrt->vts[i])); // } } /*------------------------------------------------------------------------------ UPDATETXTDT_MGI- Linux!jef 2006/01/20 20:28:28 ------------------------------------------------------------------------------*/ static void UpdateTXTDT_MGI( ifo_handle_t * ifo, unsigned char * _buffer ) { int offset; if( ifo->vmgi_mat->txtdt_mgi == 0) return; offset= ifo->vmgi_mat->txtdt_mgi * DVD_BLOCK_LEN; memcpy(_buffer+offset, ifo->txtdt_mgi,TXTDT_MGI_SIZE); } /*------------------------------------------------------------------------------ UPDATEC_ADT- Linux!jef 2006/01/20 20:30:10 ------------------------------------------------------------------------------*/ static void UpdateC_ADT( ifo_handle_t * ifo, unsigned char * _buffer ) { int sector; if( ifo->vmgi_mat ) { if( ifo->vmgi_mat->vmgm_c_adt != 0) { sector = ifo->vmgi_mat->vmgm_c_adt * DVD_BLOCK_LEN; UpdateC_ADT_Internal( ifo, _buffer, ifo->menu_c_adt,sector); } } else { if( ifo->vtsi_mat ) { if( ifo->vtsi_mat->vtsm_c_adt != 0) { sector = ifo->vtsi_mat->vtsm_c_adt * DVD_BLOCK_LEN; UpdateC_ADT_Internal( ifo, _buffer, ifo->menu_c_adt,sector); } if( ifo->vtsi_mat->vts_c_adt !=0) { sector = ifo->vtsi_mat->vts_c_adt * DVD_BLOCK_LEN; UpdateC_ADT_Internal( ifo, _buffer, ifo->vts_c_adt,sector); } } else { return ; } } } /*------------------------------------------------------------------------------ UPDATEC_ADT_INTERNAL- Linux!jef 2006/01/20 20:33:05 ------------------------------------------------------------------------------*/ static void UpdateC_ADT_Internal( ifo_handle_t * ifo, unsigned char *_buffer,c_adt_t *_c_adt,int _sector ) { c_adt_t * c_adt; int offset; int info_length; cell_adr_t *cell_adr,*ptr; int i; c_adt =(c_adt_t*) malloc (sizeof(c_adt_t)); memcpy(c_adt,_c_adt,sizeof(c_adt_t)); B2N_16(c_adt->nr_of_vobs); B2N_32(c_adt->last_byte); memcpy(_buffer+_sector,c_adt,C_ADT_SIZE); free(c_adt); offset =_sector + C_ADT_SIZE; info_length = _c_adt->last_byte + 1 - C_ADT_SIZE; cell_adr=(cell_adr_t*) malloc(sizeof(cell_adr_t)); ptr= _c_adt->cell_adr_table; for( i = 0; i < info_length/sizeof(cell_adr_t); i++) { memcpy(cell_adr,&(ptr[i]),sizeof(cell_adr_t)); B2N_16(cell_adr->vob_id); B2N_32(cell_adr->start_sector); B2N_32(cell_adr->last_sector); memcpy(_buffer+offset,cell_adr,sizeof(cell_adr_t)); offset+=sizeof(cell_adr_t); } free(cell_adr); } /*------------------------------------------------------------------------------ UPDATEVOBU_ADMAP- Linux!jef 2006/01/20 20:35:22 ------------------------------------------------------------------------------*/ static void UpdateVOBU_ADMAP( ifo_handle_t * ifo, unsigned char * _buffer ) { int sector; if( ifo->vmgi_mat ) { if( ifo->vmgi_mat->vmgm_vobu_admap == 0) return ; sector = ifo->vmgi_mat->vmgm_vobu_admap * DVD_BLOCK_LEN; UpdateVOBU_ADMAP_Internal( ifo, _buffer, ifo->menu_vobu_admap,sector); } else { if( ifo->vtsi_mat ) { if( ifo->vtsi_mat->vtsm_vobu_admap != 0) { sector = ifo->vtsi_mat->vtsm_vobu_admap * DVD_BLOCK_LEN; UpdateVOBU_ADMAP_Internal( ifo, _buffer, ifo->menu_vobu_admap,sector); } if ( ifo->vtsi_mat->vts_vobu_admap !=0) { sector = ifo->vtsi_mat->vts_vobu_admap * DVD_BLOCK_LEN; UpdateVOBU_ADMAP_Internal( ifo, _buffer, ifo->vts_vobu_admap,sector); } } else { return ; } } } /*------------------------------------------------------------------------------ UPDATEVOBU_ADMAP_INTERNAL- Linux!jef 2006/01/20 20:38:21 ------------------------------------------------------------------------------*/ static void UpdateVOBU_ADMAP_Internal( ifo_handle_t * ifo, unsigned char *_buffer,vobu_admap_t *_vobu_admap,int _sector ) { vobu_admap_t *vobu_admap; int offset; int info_length; uint32_t *vobu_start_sectors; int i; vobu_admap=(vobu_admap_t*)malloc(sizeof(vobu_admap_t)); memcpy(vobu_admap,_vobu_admap,sizeof(vobu_admap_t)); B2N_32(vobu_admap->last_byte); memcpy(_buffer+_sector,vobu_admap,VOBU_ADMAP_SIZE); free(vobu_admap); offset = _sector + VOBU_ADMAP_SIZE; info_length = _vobu_admap->last_byte + 1 - VOBU_ADMAP_SIZE; vobu_start_sectors=(uint32_t*)malloc(info_length); memcpy(vobu_start_sectors,_vobu_admap->vobu_start_sectors,info_length); for( i = 0; i < info_length/sizeof(uint32_t); i++) B2N_32(vobu_start_sectors[i]); memcpy(_buffer+offset,vobu_start_sectors,info_length); free(vobu_start_sectors); } /*------------------------------------------------------------------------------ UPDATEVTS- Linux!jef 2006/01/20 20:40:07 ------------------------------------------------------------------------------*/ static void UpdateVTS( ifo_handle_t * ifo, unsigned char *_buffer ) { vtsi_mat_t *vtsi_mat; int i; vtsi_mat = (vtsi_mat_t *)malloc(sizeof(vtsi_mat_t)); memcpy(vtsi_mat, ifo->vtsi_mat,sizeof(vtsi_mat_t)); /* Hack SPIDERMAN 1 */ if( (vtsi_mat->vtsi_last_sector + 1) < vtsi_mat->vtsm_vobs ) vtsi_mat->vtsm_vobs = vtsi_mat->vtsi_last_sector + 1; B2N_32(vtsi_mat->vts_last_sector); B2N_32(vtsi_mat->vtsi_last_sector); B2N_32(vtsi_mat->vts_category); B2N_32(vtsi_mat->vtsi_last_byte); B2N_32(vtsi_mat->vtsm_vobs); B2N_32(vtsi_mat->vtstt_vobs); B2N_32(vtsi_mat->vts_ptt_srpt); B2N_32(vtsi_mat->vts_pgcit); B2N_32(vtsi_mat->vtsm_pgci_ut); B2N_32(vtsi_mat->vts_tmapt); B2N_32(vtsi_mat->vtsm_c_adt); B2N_32(vtsi_mat->vtsm_vobu_admap); B2N_32(vtsi_mat->vts_c_adt); B2N_32(vtsi_mat->vts_vobu_admap); B2N_16(vtsi_mat->vtsm_audio_attr.lang_code); B2N_16(vtsi_mat->vtsm_subp_attr.lang_code); for( i = 0; i < 8; i++) B2N_16(vtsi_mat->vts_audio_attr[i].lang_code); for( i = 0; i < 32; i++) B2N_16(vtsi_mat->vts_subp_attr[i].lang_code); memcpy(_buffer,vtsi_mat,sizeof(vtsi_mat_t)); free(vtsi_mat); } /*------------------------------------------------------------------------------ UPDATEVTS_PTT_SRPT- Linux!jef 2006/01/20 20:41:50 ------------------------------------------------------------------------------*/ static void UpdateVTS_PTT_SRPT( ifo_handle_t * ifo, unsigned char *_buffer ) { vts_ptt_srpt_t * vts_ptt_srpt; int offset; if(!ifo->vtsi_mat) return ; if(ifo->vtsi_mat->vts_ptt_srpt == 0) return ; vts_ptt_srpt = (vts_ptt_srpt_t *)malloc(sizeof(vts_ptt_srpt_t)); memcpy(vts_ptt_srpt,ifo->vts_ptt_srpt,sizeof(vts_ptt_srpt_t)); offset = ifo->vtsi_mat->vts_ptt_srpt * DVD_BLOCK_LEN; B2N_16(vts_ptt_srpt->nr_of_srpts); B2N_32(vts_ptt_srpt->last_byte); memcpy(_buffer+offset,vts_ptt_srpt,VTS_PTT_SRPT_SIZE); free(vts_ptt_srpt); } /*! \fn kIFO::checkBuffer() */ /*------------------------------------------------------------------------------ UPDATEVTS_TMAPT- Linux!jef 2006/01/20 20:43:28 ------------------------------------------------------------------------------*/ static void UpdateVTS_TMAPT( ifo_handle_t * ifo, unsigned char *_buffer ) { vts_tmapt_t *vts_tmapt1,*vts_tmapt; uint32_t offset, offset0, offset1; int info_length; uint32_t *vts_tmap_srp; int i, j; int info_length1; int info_length2; map_ent_t *map_ent; if(!ifo->vtsi_mat) return ; if(ifo->vtsi_mat->vts_tmapt == 0) { /* optional(?) */ return ; } vts_tmapt1 = (vts_tmapt_t *)malloc(sizeof(vts_tmapt_t)); memcpy(vts_tmapt1,ifo->vts_tmapt,sizeof(vts_tmapt_t)); offset = ifo->vtsi_mat->vts_tmapt * DVD_BLOCK_LEN; B2N_16(vts_tmapt1->nr_of_tmaps); B2N_32(vts_tmapt1->last_byte); offset0=offset; offset+=VTS_TMAPT_SIZE; vts_tmapt=ifo->vts_tmapt; info_length = vts_tmapt->nr_of_tmaps * 4; vts_tmap_srp = (uint32_t *)malloc(info_length); memcpy(vts_tmap_srp,vts_tmapt->tmap_offset,info_length); for( i = 0; i < vts_tmapt->nr_of_tmaps; i++) B2N_32(vts_tmap_srp[i]); offset1=offset; info_length1=info_length; offset += info_length; info_length = vts_tmapt->nr_of_tmaps * sizeof(vts_tmap_t); vts_tmap_t * tmap = (vts_tmap_t *)malloc(info_length); memcpy(tmap,vts_tmapt->tmap,info_length); for( i = 0; i < vts_tmapt->nr_of_tmaps; i++) { B2N_16(tmap[i].nr_of_entries); memcpy(_buffer+offset,&(tmap[i]),VTS_TMAP_SIZE); vts_tmapt1->last_byte=+offset+VTS_TMAP_SIZE-1; offset+=VTS_TMAP_SIZE; vts_tmap_srp[i]=offset-offset1+4; B2N_32(vts_tmap_srp[i]); if(vts_tmapt->tmap[i].nr_of_entries == 0) { // Early out if zero entries continue; } info_length2 = vts_tmapt->tmap[i].nr_of_entries * sizeof(map_ent_t); map_ent = (map_ent_t *)malloc(info_length2); memcpy(map_ent,vts_tmapt->tmap[i].map_ent,info_length2); for( j = 0; j < vts_tmapt->tmap[i].nr_of_entries; j++) { B2N_32(map_ent[j]); memcpy(_buffer+offset,&(map_ent[j]),sizeof(map_ent_t)); vts_tmapt1->last_byte=offset+sizeof(map_ent_t)-1; offset+=sizeof(map_ent_t); } free(map_ent); } memcpy(_buffer+offset1,vts_tmap_srp,info_length1); free(vts_tmap_srp); free(tmap); vts_tmapt1->last_byte-=offset0; B2N_32(vts_tmapt1->last_byte); memcpy(_buffer+offset0,vts_tmapt1,VTS_TMAPT_SIZE); free(vts_tmapt1); } dvd95/src/ifo.h000066400000000000000000000013161140003301000135050ustar00rootroot00000000000000/*============================================================================== FICHIER : [ifo.h] DATE : 2006/01/0020 20:52:46 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __IFO_H__ #define __IFO_H__ /*@$#[ifo.c] global proto. AutoProtoSigV1.1. date: 2009/02/04 23:20:29 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* ifo.c */ int SaveIfo PROTO((ifo_handle_t *ifo, int vts, char *targetDir)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __IFO_H__ */ dvd95/src/interface.c000066400000000000000000001614771140003301000147020ustar00rootroot00000000000000/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include "callbacks.h" #include "interface.h" #include "support.h" #define GLADE_HOOKUP_OBJECT(component,widget,name) \ g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ g_object_set_data (G_OBJECT (component), name, widget) GtkWidget* create_main (void) { GtkWidget *main; GdkPixbuf *main_icon_pixbuf; GtkWidget *vbox1; GtkWidget *toolbar1; GtkIconSize tmp_toolbar_icon_size; GtkWidget *proprietes; GtkWidget *ViewPiste; GtkWidget *tmp_image; GtkWidget *Evaluer; GtkWidget *Encoder; GtkWidget *About; GtkWidget *vbox2; GtkWidget *table2; GtkWidget *Qualite; GtkWidget *titre; GtkWidget *label12; GtkWidget *label3; GtkWidget *frame1; GtkWidget *alignment1; GtkWidget *scrolledwindow2; GtkWidget *PistesVideo; GtkWidget *label_video; GtkWidget *frame2; GtkWidget *alignment2; GtkWidget *scrolledwindow3; GtkWidget *PistesAudio; GtkWidget *label_audio; GtkWidget *frame3; GtkWidget *alignment3; GtkWidget *scrolledwindow4; GtkWidget *SousTitres; GtkWidget *label_subtitles; GtkTooltips *tooltips; tooltips = gtk_tooltips_new (); main = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_name (main, "main"); gtk_window_set_title (GTK_WINDOW (main), _("DVD 9 to 5")); main_icon_pixbuf = create_pixbuf ("dvd95/dvd9548.png"); if (main_icon_pixbuf) { gtk_window_set_icon (GTK_WINDOW (main), main_icon_pixbuf); gdk_pixbuf_unref (main_icon_pixbuf); } vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_set_name (vbox1, "vbox1"); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (main), vbox1); toolbar1 = gtk_toolbar_new (); gtk_widget_set_name (toolbar1, "toolbar1"); gtk_widget_show (toolbar1); gtk_box_pack_start (GTK_BOX (vbox1), toolbar1, FALSE, TRUE, 0); gtk_toolbar_set_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_BOTH); gtk_toolbar_set_show_arrow (GTK_TOOLBAR (toolbar1), FALSE); tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1)); proprietes = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-properties"); gtk_widget_set_name (proprietes, "proprietes"); gtk_widget_show (proprietes); gtk_container_add (GTK_CONTAINER (toolbar1), proprietes); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (proprietes), tooltips, _("Ecran des propi\303\251t\303\251s"), NULL); gtk_tool_item_set_is_important (GTK_TOOL_ITEM (proprietes), TRUE); ViewPiste = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-media-play"); gtk_widget_set_name (ViewPiste, "ViewPiste"); gtk_widget_show (ViewPiste); gtk_container_add (GTK_CONTAINER (toolbar1), ViewPiste); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (ViewPiste), tooltips, _("Lecture du DVD"), NULL); tmp_image = gtk_image_new_from_stock ("gtk-dialog-info", tmp_toolbar_icon_size); gtk_widget_show (tmp_image); Evaluer = (GtkWidget*) gtk_tool_button_new (tmp_image, _("\303\211valuer")); gtk_widget_set_name (Evaluer, "Evaluer"); gtk_widget_show (Evaluer); gtk_container_add (GTK_CONTAINER (toolbar1), Evaluer); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (Evaluer), tooltips, _("Calculer la qualit\303\251 au mieux"), NULL); Encoder = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-convert"); gtk_widget_set_name (Encoder, "Encoder"); gtk_widget_show (Encoder); gtk_container_add (GTK_CONTAINER (toolbar1), Encoder); gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (Encoder), tooltips, _("Convertir le DVD"), NULL); gtk_tool_item_set_is_important (GTK_TOOL_ITEM (Encoder), TRUE); About = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-about"); gtk_widget_set_name (About, "About"); gtk_widget_show (About); gtk_container_add (GTK_CONTAINER (toolbar1), About); vbox2 = gtk_vbox_new (FALSE, 12); gtk_widget_set_name (vbox2, "vbox2"); gtk_widget_show (vbox2); gtk_box_pack_start (GTK_BOX (vbox1), vbox2, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (vbox2), 12); table2 = gtk_table_new (2, 2, FALSE); gtk_widget_set_name (table2, "table2"); gtk_widget_show (table2); gtk_box_pack_start (GTK_BOX (vbox2), table2, FALSE, TRUE, 0); gtk_table_set_row_spacings (GTK_TABLE (table2), 6); gtk_table_set_col_spacings (GTK_TABLE (table2), 6); Qualite = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 110, 1, 10, 10))); gtk_widget_set_name (Qualite, "Qualite"); gtk_widget_show (Qualite); gtk_table_attach (GTK_TABLE (table2), Qualite, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); GTK_WIDGET_UNSET_FLAGS (Qualite, GTK_CAN_FOCUS); gtk_scale_set_value_pos (GTK_SCALE (Qualite), GTK_POS_RIGHT); titre = gtk_entry_new (); gtk_widget_set_name (titre, "titre"); gtk_widget_show (titre); gtk_table_attach (GTK_TABLE (table2), titre, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_tooltips_set_tip (tooltips, titre, _("Nom du DVD et du fichier ISO"), NULL); gtk_entry_set_invisible_char (GTK_ENTRY (titre), 8226); label12 = gtk_label_new (_("\303\211valuation de qualit\303\251 :")); gtk_widget_set_name (label12, "label12"); gtk_widget_show (label12); gtk_table_attach (GTK_TABLE (table2), label12, 0, 1, 1, 2, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label12), 1, 0); label3 = gtk_label_new (_("Titre du film :")); gtk_widget_set_name (label3, "label3"); gtk_widget_show (label3); gtk_table_attach (GTK_TABLE (table2), label3, 0, 1, 0, 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label3), 1, 0); frame1 = gtk_frame_new (NULL); gtk_widget_set_name (frame1, "frame1"); gtk_widget_show (frame1); gtk_box_pack_start (GTK_BOX (vbox2), frame1, TRUE, TRUE, 0); gtk_widget_set_size_request (frame1, -1, 200); gtk_frame_set_label_align (GTK_FRAME (frame1), 0, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_NONE); alignment1 = gtk_alignment_new (0, 0, 1, 1); gtk_widget_set_name (alignment1, "alignment1"); gtk_widget_show (alignment1); gtk_container_add (GTK_CONTAINER (frame1), alignment1); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment1), 0, 0, 12, 0); scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_name (scrolledwindow2, "scrolledwindow2"); gtk_widget_show (scrolledwindow2); gtk_container_add (GTK_CONTAINER (alignment1), scrolledwindow2); GTK_WIDGET_UNSET_FLAGS (scrolledwindow2, GTK_CAN_FOCUS); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); PistesVideo = gtk_tree_view_new (); gtk_widget_set_name (PistesVideo, "PistesVideo"); gtk_widget_show (PistesVideo); gtk_container_add (GTK_CONTAINER (scrolledwindow2), PistesVideo); gtk_tooltips_set_tip (tooltips, PistesVideo, _("Selectionner la piste a convertir"), NULL); gtk_tree_view_set_reorderable (GTK_TREE_VIEW (PistesVideo), TRUE); label_video = gtk_label_new (_("Vid\303\251o")); gtk_widget_set_name (label_video, "label_video"); gtk_widget_show (label_video); gtk_frame_set_label_widget (GTK_FRAME (frame1), label_video); gtk_label_set_use_markup (GTK_LABEL (label_video), TRUE); gtk_misc_set_alignment (GTK_MISC (label_video), 0, 0); frame2 = gtk_frame_new (NULL); gtk_widget_set_name (frame2, "frame2"); gtk_widget_show (frame2); gtk_box_pack_start (GTK_BOX (vbox2), frame2, FALSE, TRUE, 0); gtk_widget_set_size_request (frame2, -1, 120); gtk_frame_set_label_align (GTK_FRAME (frame2), 0, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame2), GTK_SHADOW_NONE); alignment2 = gtk_alignment_new (0, 0, 1, 1); gtk_widget_set_name (alignment2, "alignment2"); gtk_widget_show (alignment2); gtk_container_add (GTK_CONTAINER (frame2), alignment2); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment2), 0, 0, 12, 0); scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_name (scrolledwindow3, "scrolledwindow3"); gtk_widget_show (scrolledwindow3); gtk_container_add (GTK_CONTAINER (alignment2), scrolledwindow3); GTK_WIDGET_UNSET_FLAGS (scrolledwindow3, GTK_CAN_FOCUS); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); PistesAudio = gtk_tree_view_new (); gtk_widget_set_name (PistesAudio, "PistesAudio"); gtk_widget_show (PistesAudio); gtk_container_add (GTK_CONTAINER (scrolledwindow3), PistesAudio); gtk_tooltips_set_tip (tooltips, PistesAudio, _("Selectioner les pistes audio"), NULL); gtk_tree_view_set_reorderable (GTK_TREE_VIEW (PistesAudio), TRUE); label_audio = gtk_label_new (_("Audio")); gtk_widget_set_name (label_audio, "label_audio"); gtk_widget_show (label_audio); gtk_frame_set_label_widget (GTK_FRAME (frame2), label_audio); gtk_label_set_use_markup (GTK_LABEL (label_audio), TRUE); gtk_misc_set_alignment (GTK_MISC (label_audio), 0, 0); frame3 = gtk_frame_new (NULL); gtk_widget_set_name (frame3, "frame3"); gtk_widget_show (frame3); gtk_box_pack_start (GTK_BOX (vbox2), frame3, FALSE, TRUE, 0); gtk_widget_set_size_request (frame3, -1, 150); gtk_frame_set_label_align (GTK_FRAME (frame3), 0, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame3), GTK_SHADOW_NONE); alignment3 = gtk_alignment_new (0, 0, 1, 1); gtk_widget_set_name (alignment3, "alignment3"); gtk_widget_show (alignment3); gtk_container_add (GTK_CONTAINER (frame3), alignment3); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment3), 0, 0, 12, 0); scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_name (scrolledwindow4, "scrolledwindow4"); gtk_widget_show (scrolledwindow4); gtk_container_add (GTK_CONTAINER (alignment3), scrolledwindow4); GTK_WIDGET_UNSET_FLAGS (scrolledwindow4, GTK_CAN_FOCUS); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); SousTitres = gtk_tree_view_new (); gtk_widget_set_name (SousTitres, "SousTitres"); gtk_widget_show (SousTitres); gtk_container_add (GTK_CONTAINER (scrolledwindow4), SousTitres); gtk_tooltips_set_tip (tooltips, SousTitres, _("Selectioner les sous titres"), NULL); gtk_tree_view_set_reorderable (GTK_TREE_VIEW (SousTitres), TRUE); label_subtitles = gtk_label_new (_("Sous-titres")); gtk_widget_set_name (label_subtitles, "label_subtitles"); gtk_widget_show (label_subtitles); gtk_frame_set_label_widget (GTK_FRAME (frame3), label_subtitles); gtk_label_set_use_markup (GTK_LABEL (label_subtitles), TRUE); gtk_misc_set_alignment (GTK_MISC (label_subtitles), 0, 0); g_signal_connect ((gpointer) main, "destroy", G_CALLBACK (on_Dvd95_destroy), NULL); g_signal_connect ((gpointer) main, "delete_event", G_CALLBACK (on_Dvd95_delete), NULL); g_signal_connect ((gpointer) proprietes, "clicked", G_CALLBACK (on_proprietes_clicked), NULL); g_signal_connect ((gpointer) ViewPiste, "clicked", G_CALLBACK (on_ViewPiste_clicked), NULL); g_signal_connect ((gpointer) Evaluer, "clicked", G_CALLBACK (on_Evaluer_clicked), NULL); g_signal_connect ((gpointer) Encoder, "clicked", G_CALLBACK (on_Encoder_clicked), NULL); g_signal_connect ((gpointer) About, "clicked", G_CALLBACK (on_About_clicked), NULL); g_signal_connect ((gpointer) PistesVideo, "button_press_event", G_CALLBACK (on_PistesVideo_button_press_event), NULL); g_signal_connect ((gpointer) PistesVideo, "button_release_event", G_CALLBACK (on_PistesVideo_button_release_event), NULL); g_signal_connect ((gpointer) PistesAudio, "button_press_event", G_CALLBACK (on_PistesAudio_button_press_event), NULL); g_signal_connect ((gpointer) PistesAudio, "button_release_event", G_CALLBACK (on_PistesAudio_button_release_event), NULL); g_signal_connect ((gpointer) SousTitres, "button_press_event", G_CALLBACK (on_SousTitres_button_press_event), NULL); g_signal_connect ((gpointer) SousTitres, "button_release_event", G_CALLBACK (on_SousTitres_button_release_event), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (main, main, "main"); GLADE_HOOKUP_OBJECT (main, vbox1, "vbox1"); GLADE_HOOKUP_OBJECT (main, toolbar1, "toolbar1"); GLADE_HOOKUP_OBJECT (main, proprietes, "proprietes"); GLADE_HOOKUP_OBJECT (main, ViewPiste, "ViewPiste"); GLADE_HOOKUP_OBJECT (main, Evaluer, "Evaluer"); GLADE_HOOKUP_OBJECT (main, Encoder, "Encoder"); GLADE_HOOKUP_OBJECT (main, About, "About"); GLADE_HOOKUP_OBJECT (main, vbox2, "vbox2"); GLADE_HOOKUP_OBJECT (main, table2, "table2"); GLADE_HOOKUP_OBJECT (main, Qualite, "Qualite"); GLADE_HOOKUP_OBJECT (main, titre, "titre"); GLADE_HOOKUP_OBJECT (main, label12, "label12"); GLADE_HOOKUP_OBJECT (main, label3, "label3"); GLADE_HOOKUP_OBJECT (main, frame1, "frame1"); GLADE_HOOKUP_OBJECT (main, alignment1, "alignment1"); GLADE_HOOKUP_OBJECT (main, scrolledwindow2, "scrolledwindow2"); GLADE_HOOKUP_OBJECT (main, PistesVideo, "PistesVideo"); GLADE_HOOKUP_OBJECT (main, label_video, "label_video"); GLADE_HOOKUP_OBJECT (main, frame2, "frame2"); GLADE_HOOKUP_OBJECT (main, alignment2, "alignment2"); GLADE_HOOKUP_OBJECT (main, scrolledwindow3, "scrolledwindow3"); GLADE_HOOKUP_OBJECT (main, PistesAudio, "PistesAudio"); GLADE_HOOKUP_OBJECT (main, label_audio, "label_audio"); GLADE_HOOKUP_OBJECT (main, frame3, "frame3"); GLADE_HOOKUP_OBJECT (main, alignment3, "alignment3"); GLADE_HOOKUP_OBJECT (main, scrolledwindow4, "scrolledwindow4"); GLADE_HOOKUP_OBJECT (main, SousTitres, "SousTitres"); GLADE_HOOKUP_OBJECT (main, label_subtitles, "label_subtitles"); GLADE_HOOKUP_OBJECT_NO_REF (main, tooltips, "tooltips"); return main; } GtkWidget* create_propriete (void) { GtkWidget *propriete; GtkWidget *dialog_vbox1; GtkWidget *frame4; GtkWidget *alignment4; GtkWidget *table5; GtkWidget *trace; GtkWidget *label6; GtkWidget *label7; GtkWidget *label8; GtkWidget *label9; GtkWidget *label10; GtkWidget *cfgtemp; GtkWidget *cfgiso; GtkWidget *cfgvisu; GtkWidget *comboboxentry_entry1; GtkWidget *cfgdev; GtkWidget *comboboxentry_entry3; GtkWidget *label16; GtkWidget *sound; GtkWidget *image5; GtkWidget *label17; GtkWidget *lang; GtkWidget *label4; GtkWidget *frame5; GtkWidget *alignment5; GtkWidget *table1; GtkWidget *UseMenu; GtkWidget *DoIso; GtkWidget *graver; GtkWidget *dynqual; GtkWidget *cfgmedia; GtkWidget *label11; GtkWidget *generique; GtkWidget *label5; GtkWidget *dialog_action_area1; GtkWidget *cfgsave; GtkTooltips *tooltips; tooltips = gtk_tooltips_new (); propriete = gtk_dialog_new (); gtk_widget_set_name (propriete, "propriete"); gtk_container_set_border_width (GTK_CONTAINER (propriete), 5); gtk_window_set_title (GTK_WINDOW (propriete), _("Propri\303\251t\303\251s")); gtk_window_set_resizable (GTK_WINDOW (propriete), FALSE); gtk_window_set_icon_name (GTK_WINDOW (propriete), "gtk-properties"); gtk_window_set_type_hint (GTK_WINDOW (propriete), GDK_WINDOW_TYPE_HINT_DIALOG); gtk_dialog_set_has_separator (GTK_DIALOG (propriete), FALSE); dialog_vbox1 = GTK_DIALOG (propriete)->vbox; gtk_widget_set_name (dialog_vbox1, "dialog_vbox1"); gtk_widget_show (dialog_vbox1); frame4 = gtk_frame_new (NULL); gtk_widget_set_name (frame4, "frame4"); gtk_widget_show (frame4); gtk_box_pack_start (GTK_BOX (dialog_vbox1), frame4, TRUE, TRUE, 0); gtk_frame_set_label_align (GTK_FRAME (frame4), 0, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame4), GTK_SHADOW_NONE); alignment4 = gtk_alignment_new (0, 0, 1, 1); gtk_widget_set_name (alignment4, "alignment4"); gtk_widget_show (alignment4); gtk_container_add (GTK_CONTAINER (frame4), alignment4); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment4), 0, 0, 12, 0); table5 = gtk_table_new (7, 2, FALSE); gtk_widget_set_name (table5, "table5"); gtk_widget_show (table5); gtk_container_add (GTK_CONTAINER (alignment4), table5); gtk_container_set_border_width (GTK_CONTAINER (table5), 12); gtk_table_set_row_spacings (GTK_TABLE (table5), 6); gtk_table_set_col_spacings (GTK_TABLE (table5), 6); trace = gtk_entry_new (); gtk_widget_set_name (trace, "trace"); gtk_widget_show (trace); gtk_table_attach (GTK_TABLE (table5), trace, 1, 2, 4, 5, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); gtk_entry_set_invisible_char (GTK_ENTRY (trace), 8226); label6 = gtk_label_new (_("P\303\251riph\303\251rique DVD :")); gtk_widget_set_name (label6, "label6"); gtk_widget_show (label6); gtk_table_attach (GTK_TABLE (table5), label6, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label6), 0, 0.5); label7 = gtk_label_new (_("Espace temporaire :")); gtk_widget_set_name (label7, "label7"); gtk_widget_show (label7); gtk_table_attach (GTK_TABLE (table5), label7, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label7), 0, 0.5); label8 = gtk_label_new (_("Espace des ISO :")); gtk_widget_set_name (label8, "label8"); gtk_widget_show (label8); gtk_table_attach (GTK_TABLE (table5), label8, 0, 1, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label8), 0, 0.5); label9 = gtk_label_new (_("Lecteur multim\303\251dia :")); gtk_widget_set_name (label9, "label9"); gtk_widget_show (label9); gtk_table_attach (GTK_TABLE (table5), label9, 0, 1, 3, 4, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label9), 0, 0.5); label10 = gtk_label_new (_("Niveau de trace :")); gtk_widget_set_name (label10, "label10"); gtk_widget_show (label10); gtk_table_attach (GTK_TABLE (table5), label10, 0, 1, 4, 5, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label10), 0, 0.5); cfgtemp = gtk_file_chooser_button_new (_("S\303\251lectionner un dossier"), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); gtk_widget_set_name (cfgtemp, "cfgtemp"); gtk_widget_show (cfgtemp); gtk_table_attach (GTK_TABLE (table5), cfgtemp, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); cfgiso = gtk_file_chooser_button_new (_("S\303\251lectionner un dossier"), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); gtk_widget_set_name (cfgiso, "cfgiso"); gtk_widget_show (cfgiso); gtk_table_attach (GTK_TABLE (table5), cfgiso, 1, 2, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); cfgvisu = gtk_combo_box_entry_new_text (); gtk_widget_set_name (cfgvisu, "cfgvisu"); gtk_widget_show (cfgvisu); gtk_table_attach (GTK_TABLE (table5), cfgvisu, 1, 2, 3, 4, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); comboboxentry_entry1 = gtk_entry_new (); gtk_widget_set_name (comboboxentry_entry1, "comboboxentry_entry1"); gtk_widget_show (comboboxentry_entry1); gtk_container_add (GTK_CONTAINER (cfgvisu), comboboxentry_entry1); gtk_widget_set_events (comboboxentry_entry1, GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK); gtk_entry_set_text (GTK_ENTRY (comboboxentry_entry1), _("totem")); gtk_entry_set_invisible_char (GTK_ENTRY (comboboxentry_entry1), 8226); cfgdev = gtk_combo_box_entry_new_text (); gtk_widget_set_name (cfgdev, "cfgdev"); gtk_widget_show (cfgdev); gtk_table_attach (GTK_TABLE (table5), cfgdev, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); comboboxentry_entry3 = gtk_entry_new (); gtk_widget_set_name (comboboxentry_entry3, "comboboxentry_entry3"); gtk_widget_show (comboboxentry_entry3); gtk_container_add (GTK_CONTAINER (cfgdev), comboboxentry_entry3); gtk_widget_set_events (comboboxentry_entry3, GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK); gtk_entry_set_text (GTK_ENTRY (comboboxentry_entry3), _("/dev/dvd")); gtk_entry_set_invisible_char (GTK_ENTRY (comboboxentry_entry3), 8226); label16 = gtk_label_new (_("Indications sonores")); gtk_widget_set_name (label16, "label16"); gtk_widget_show (label16); gtk_table_attach (GTK_TABLE (table5), label16, 0, 1, 5, 6, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label16), 0, 0.5); sound = gtk_check_button_new (); gtk_widget_set_name (sound, "sound"); gtk_widget_show (sound); gtk_table_attach (GTK_TABLE (table5), sound, 1, 2, 5, 6, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); image5 = gtk_image_new_from_stock ("gnome-stock-volume", GTK_ICON_SIZE_BUTTON); gtk_widget_set_name (image5, "image5"); gtk_widget_show (image5); gtk_container_add (GTK_CONTAINER (sound), image5); label17 = gtk_label_new (_("Langue")); gtk_widget_set_name (label17, "label17"); gtk_widget_show (label17); gtk_table_attach (GTK_TABLE (table5), label17, 0, 1, 6, 7, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); gtk_misc_set_alignment (GTK_MISC (label17), 0, 0.5); lang = gtk_combo_box_entry_new_text (); gtk_widget_set_name (lang, "lang"); gtk_widget_show (lang); gtk_table_attach (GTK_TABLE (table5), lang, 1, 2, 6, 7, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (GTK_FILL), 0, 0); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("Default")); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("Fran\303\247ais")); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("English")); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("Deutsch")); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("Greek")); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("Estonian")); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("Hungarian")); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("Dutch")); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("Portuguese")); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("Czech")); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("Spanish")); gtk_combo_box_append_text (GTK_COMBO_BOX (lang), _("Italian")); label4 = gtk_label_new (_("Syst\303\250me")); gtk_widget_set_name (label4, "label4"); gtk_widget_show (label4); gtk_frame_set_label_widget (GTK_FRAME (frame4), label4); gtk_label_set_use_markup (GTK_LABEL (label4), TRUE); gtk_misc_set_alignment (GTK_MISC (label4), 0, 0); frame5 = gtk_frame_new (NULL); gtk_widget_set_name (frame5, "frame5"); gtk_widget_show (frame5); gtk_box_pack_start (GTK_BOX (dialog_vbox1), frame5, TRUE, TRUE, 0); gtk_frame_set_label_align (GTK_FRAME (frame5), 0, 0); gtk_frame_set_shadow_type (GTK_FRAME (frame5), GTK_SHADOW_NONE); alignment5 = gtk_alignment_new (0, 0, 1, 1); gtk_widget_set_name (alignment5, "alignment5"); gtk_widget_show (alignment5); gtk_container_add (GTK_CONTAINER (frame5), alignment5); gtk_alignment_set_padding (GTK_ALIGNMENT (alignment5), 0, 0, 12, 0); table1 = gtk_table_new (4, 2, FALSE); gtk_widget_set_name (table1, "table1"); gtk_widget_show (table1); gtk_container_add (GTK_CONTAINER (alignment5), table1); gtk_container_set_border_width (GTK_CONTAINER (table1), 12); gtk_table_set_row_spacings (GTK_TABLE (table1), 6); gtk_table_set_col_spacings (GTK_TABLE (table1), 6); UseMenu = gtk_check_button_new_with_mnemonic (_("Garder les menus")); gtk_widget_set_name (UseMenu, "UseMenu"); gtk_widget_show (UseMenu); gtk_table_attach (GTK_TABLE (table1), UseMenu, 0, 1, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); GTK_WIDGET_UNSET_FLAGS (UseMenu, GTK_CAN_FOCUS); gtk_tooltips_set_tip (tooltips, UseMenu, _("Conserver les menus du DVD"), NULL); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (UseMenu), TRUE); DoIso = gtk_check_button_new_with_mnemonic (_("Cr\303\251er une image ISO")); gtk_widget_set_name (DoIso, "DoIso"); gtk_widget_show (DoIso); gtk_table_attach (GTK_TABLE (table1), DoIso, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); GTK_WIDGET_UNSET_FLAGS (DoIso, GTK_CAN_FOCUS); gtk_tooltips_set_tip (tooltips, DoIso, _("Cr\303\251er une image ISO apres convertion"), NULL); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (DoIso), TRUE); graver = gtk_check_button_new_with_mnemonic (_("Graver le DVD")); gtk_widget_set_name (graver, "graver"); gtk_widget_show (graver); gtk_table_attach (GTK_TABLE (table1), graver, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); GTK_WIDGET_UNSET_FLAGS (graver, GTK_CAN_FOCUS); gtk_tooltips_set_tip (tooltips, graver, _("Graver un DVD apres convertion"), NULL); dynqual = gtk_check_button_new_with_mnemonic (_("Qualit\303\251 dynamique")); gtk_widget_set_name (dynqual, "dynqual"); gtk_widget_show (dynqual); gtk_table_attach (GTK_TABLE (table1), dynqual, 0, 1, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); GTK_WIDGET_UNSET_FLAGS (dynqual, GTK_CAN_FOCUS); gtk_tooltips_set_tip (tooltips, dynqual, _("Convertir avec une qualit\303\251 d'image dynamique"), NULL); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dynqual), TRUE); cfgmedia = gtk_combo_box_new_text (); gtk_widget_set_name (cfgmedia, "cfgmedia"); gtk_widget_show (cfgmedia); gtk_table_attach (GTK_TABLE (table1), cfgmedia, 1, 2, 3, 4, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); label11 = gtk_label_new (_("Capacit\303\251 du DVD :")); gtk_widget_set_name (label11, "label11"); gtk_widget_show (label11); gtk_table_attach (GTK_TABLE (table1), label11, 0, 1, 3, 4, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); gtk_misc_set_alignment (GTK_MISC (label11), 1, 0.5); generique = gtk_check_button_new_with_mnemonic (_("Couper le g\303\251n\303\251rique")); gtk_widget_set_name (generique, "generique"); gtk_widget_show (generique); gtk_table_attach (GTK_TABLE (table1), generique, 0, 1, 2, 3, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0); GTK_WIDGET_UNSET_FLAGS (generique, GTK_CAN_FOCUS); gtk_tooltips_set_tip (tooltips, generique, _("Ne pas conserver le dernier chapitre de la piste vid\303\251o"), NULL); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (generique), TRUE); label5 = gtk_label_new (_("Param\303\250tres de cr\303\251ation")); gtk_widget_set_name (label5, "label5"); gtk_widget_show (label5); gtk_frame_set_label_widget (GTK_FRAME (frame5), label5); gtk_label_set_use_markup (GTK_LABEL (label5), TRUE); gtk_misc_set_alignment (GTK_MISC (label5), 0, 0); dialog_action_area1 = GTK_DIALOG (propriete)->action_area; gtk_widget_set_name (dialog_action_area1, "dialog_action_area1"); gtk_widget_show (dialog_action_area1); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END); cfgsave = gtk_button_new_from_stock ("gtk-close"); gtk_widget_set_name (cfgsave, "cfgsave"); gtk_widget_show (cfgsave); gtk_dialog_add_action_widget (GTK_DIALOG (propriete), cfgsave, 0); GTK_WIDGET_UNSET_FLAGS (cfgsave, GTK_CAN_FOCUS); g_signal_connect ((gpointer) propriete, "destroy", G_CALLBACK (on_propriete_destroy), NULL); g_signal_connect ((gpointer) cfgvisu, "changed", G_CALLBACK (on_cfgvisu_changed), NULL); g_signal_connect ((gpointer) cfgdev, "changed", G_CALLBACK (on_cfgdev_changed), NULL); g_signal_connect ((gpointer) cfgsave, "clicked", G_CALLBACK (on_cfgsave_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (propriete, propriete, "propriete"); GLADE_HOOKUP_OBJECT_NO_REF (propriete, dialog_vbox1, "dialog_vbox1"); GLADE_HOOKUP_OBJECT (propriete, frame4, "frame4"); GLADE_HOOKUP_OBJECT (propriete, alignment4, "alignment4"); GLADE_HOOKUP_OBJECT (propriete, table5, "table5"); GLADE_HOOKUP_OBJECT (propriete, trace, "trace"); GLADE_HOOKUP_OBJECT (propriete, label6, "label6"); GLADE_HOOKUP_OBJECT (propriete, label7, "label7"); GLADE_HOOKUP_OBJECT (propriete, label8, "label8"); GLADE_HOOKUP_OBJECT (propriete, label9, "label9"); GLADE_HOOKUP_OBJECT (propriete, label10, "label10"); GLADE_HOOKUP_OBJECT (propriete, cfgtemp, "cfgtemp"); GLADE_HOOKUP_OBJECT (propriete, cfgiso, "cfgiso"); GLADE_HOOKUP_OBJECT (propriete, cfgvisu, "cfgvisu"); GLADE_HOOKUP_OBJECT (propriete, comboboxentry_entry1, "comboboxentry_entry1"); GLADE_HOOKUP_OBJECT (propriete, cfgdev, "cfgdev"); GLADE_HOOKUP_OBJECT (propriete, comboboxentry_entry3, "comboboxentry_entry3"); GLADE_HOOKUP_OBJECT (propriete, label16, "label16"); GLADE_HOOKUP_OBJECT (propriete, sound, "sound"); GLADE_HOOKUP_OBJECT (propriete, image5, "image5"); GLADE_HOOKUP_OBJECT (propriete, label17, "label17"); GLADE_HOOKUP_OBJECT (propriete, lang, "lang"); GLADE_HOOKUP_OBJECT (propriete, label4, "label4"); GLADE_HOOKUP_OBJECT (propriete, frame5, "frame5"); GLADE_HOOKUP_OBJECT (propriete, alignment5, "alignment5"); GLADE_HOOKUP_OBJECT (propriete, table1, "table1"); GLADE_HOOKUP_OBJECT (propriete, UseMenu, "UseMenu"); GLADE_HOOKUP_OBJECT (propriete, DoIso, "DoIso"); GLADE_HOOKUP_OBJECT (propriete, graver, "graver"); GLADE_HOOKUP_OBJECT (propriete, dynqual, "dynqual"); GLADE_HOOKUP_OBJECT (propriete, cfgmedia, "cfgmedia"); GLADE_HOOKUP_OBJECT (propriete, label11, "label11"); GLADE_HOOKUP_OBJECT (propriete, generique, "generique"); GLADE_HOOKUP_OBJECT (propriete, label5, "label5"); GLADE_HOOKUP_OBJECT_NO_REF (propriete, dialog_action_area1, "dialog_action_area1"); GLADE_HOOKUP_OBJECT (propriete, cfgsave, "cfgsave"); GLADE_HOOKUP_OBJECT_NO_REF (propriete, tooltips, "tooltips"); return propriete; } GtkWidget* create_Avancement (void) { GtkWidget *Avancement; GtkWidget *dialog_vbox3; GtkWidget *hbox5; GtkWidget *mpeg2image; GtkWidget *visumpeg; GtkWidget *totalprogress; GtkWidget *streamprogress; GtkWidget *expander1; GtkWidget *scrolledwindow1; GtkWidget *textview1; GtkWidget *label1; GtkWidget *dialog_action_area3; GtkWidget *Pause; GtkWidget *avCancel; Avancement = gtk_dialog_new (); gtk_widget_set_name (Avancement, "Avancement"); gtk_container_set_border_width (GTK_CONTAINER (Avancement), 5); gtk_window_set_position (GTK_WINDOW (Avancement), GTK_WIN_POS_CENTER_ON_PARENT); gtk_window_set_modal (GTK_WINDOW (Avancement), TRUE); gtk_window_set_icon_name (GTK_WINDOW (Avancement), "gtk-convert"); gtk_window_set_type_hint (GTK_WINDOW (Avancement), GDK_WINDOW_TYPE_HINT_DIALOG); gtk_dialog_set_has_separator (GTK_DIALOG (Avancement), FALSE); dialog_vbox3 = GTK_DIALOG (Avancement)->vbox; gtk_widget_set_name (dialog_vbox3, "dialog_vbox3"); gtk_widget_show (dialog_vbox3); hbox5 = gtk_hbox_new (FALSE, 0); gtk_widget_set_name (hbox5, "hbox5"); gtk_widget_show (hbox5); gtk_box_pack_start (GTK_BOX (dialog_vbox3), hbox5, TRUE, TRUE, 0); mpeg2image = gtk_image_new_from_stock ("gtk-zoom-in", GTK_ICON_SIZE_BUTTON); gtk_widget_set_name (mpeg2image, "mpeg2image"); gtk_widget_show (mpeg2image); gtk_box_pack_start (GTK_BOX (hbox5), mpeg2image, TRUE, TRUE, 0); gtk_widget_set_size_request (mpeg2image, 180, 144); visumpeg = gtk_check_button_new_with_mnemonic (""); gtk_widget_set_name (visumpeg, "visumpeg"); gtk_widget_show (visumpeg); gtk_box_pack_start (GTK_BOX (hbox5), visumpeg, FALSE, FALSE, 0); totalprogress = gtk_progress_bar_new (); gtk_widget_set_name (totalprogress, "totalprogress"); gtk_widget_show (totalprogress); gtk_box_pack_start (GTK_BOX (dialog_vbox3), totalprogress, FALSE, TRUE, 0); gtk_progress_bar_set_pulse_step (GTK_PROGRESS_BAR (totalprogress), 0); streamprogress = gtk_progress_bar_new (); gtk_widget_set_name (streamprogress, "streamprogress"); gtk_widget_show (streamprogress); gtk_box_pack_start (GTK_BOX (dialog_vbox3), streamprogress, FALSE, TRUE, 0); gtk_progress_bar_set_pulse_step (GTK_PROGRESS_BAR (streamprogress), 0); expander1 = gtk_expander_new (NULL); gtk_widget_set_name (expander1, "expander1"); gtk_widget_show (expander1); gtk_box_pack_start (GTK_BOX (dialog_vbox3), expander1, TRUE, TRUE, 0); GTK_WIDGET_UNSET_FLAGS (expander1, GTK_CAN_FOCUS); scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_name (scrolledwindow1, "scrolledwindow1"); gtk_widget_show (scrolledwindow1); gtk_container_add (GTK_CONTAINER (expander1), scrolledwindow1); GTK_WIDGET_UNSET_FLAGS (scrolledwindow1, GTK_CAN_FOCUS); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); textview1 = gtk_text_view_new (); gtk_widget_set_name (textview1, "textview1"); gtk_widget_show (textview1); gtk_container_add (GTK_CONTAINER (scrolledwindow1), textview1); GTK_WIDGET_UNSET_FLAGS (textview1, GTK_CAN_FOCUS); gtk_text_view_set_editable (GTK_TEXT_VIEW (textview1), FALSE); gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (textview1), FALSE); label1 = gtk_label_new (_("D\303\251tails")); gtk_widget_set_name (label1, "label1"); gtk_widget_show (label1); gtk_expander_set_label_widget (GTK_EXPANDER (expander1), label1); gtk_misc_set_alignment (GTK_MISC (label1), 0, 0); dialog_action_area3 = GTK_DIALOG (Avancement)->action_area; gtk_widget_set_name (dialog_action_area3, "dialog_action_area3"); gtk_widget_show (dialog_action_area3); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area3), GTK_BUTTONBOX_END); Pause = gtk_button_new_from_stock ("gtk-media-pause"); gtk_widget_set_name (Pause, "Pause"); gtk_widget_show (Pause); gtk_dialog_add_action_widget (GTK_DIALOG (Avancement), Pause, 0); GTK_WIDGET_UNSET_FLAGS (Pause, GTK_CAN_FOCUS); avCancel = gtk_button_new_from_stock ("gtk-stop"); gtk_widget_set_name (avCancel, "avCancel"); gtk_widget_show (avCancel); gtk_dialog_add_action_widget (GTK_DIALOG (Avancement), avCancel, 0); GTK_WIDGET_UNSET_FLAGS (avCancel, GTK_CAN_FOCUS); g_signal_connect ((gpointer) visumpeg, "toggled", G_CALLBACK (on_visumpeg_toggled), NULL); g_signal_connect ((gpointer) Pause, "clicked", G_CALLBACK (on_Pause_clicked), NULL); g_signal_connect ((gpointer) avCancel, "clicked", G_CALLBACK (on_avCancel_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (Avancement, Avancement, "Avancement"); GLADE_HOOKUP_OBJECT_NO_REF (Avancement, dialog_vbox3, "dialog_vbox3"); GLADE_HOOKUP_OBJECT (Avancement, hbox5, "hbox5"); GLADE_HOOKUP_OBJECT (Avancement, mpeg2image, "mpeg2image"); GLADE_HOOKUP_OBJECT (Avancement, visumpeg, "visumpeg"); GLADE_HOOKUP_OBJECT (Avancement, totalprogress, "totalprogress"); GLADE_HOOKUP_OBJECT (Avancement, streamprogress, "streamprogress"); GLADE_HOOKUP_OBJECT (Avancement, expander1, "expander1"); GLADE_HOOKUP_OBJECT (Avancement, scrolledwindow1, "scrolledwindow1"); GLADE_HOOKUP_OBJECT (Avancement, textview1, "textview1"); GLADE_HOOKUP_OBJECT (Avancement, label1, "label1"); GLADE_HOOKUP_OBJECT_NO_REF (Avancement, dialog_action_area3, "dialog_action_area3"); GLADE_HOOKUP_OBJECT (Avancement, Pause, "Pause"); GLADE_HOOKUP_OBJECT (Avancement, avCancel, "avCancel"); return Avancement; } GtkWidget* create_ChoixFichier (void) { GtkWidget *ChoixFichier; GtkWidget *dialog_vbox4; GtkWidget *dialog_action_area4; GtkWidget *button1; GtkWidget *button2; ChoixFichier = gtk_file_chooser_dialog_new (_("Choix du fichier ISO"), NULL, GTK_FILE_CHOOSER_ACTION_OPEN, NULL); gtk_widget_set_name (ChoixFichier, "ChoixFichier"); gtk_container_set_border_width (GTK_CONTAINER (ChoixFichier), 5); gtk_window_set_type_hint (GTK_WINDOW (ChoixFichier), GDK_WINDOW_TYPE_HINT_DIALOG); dialog_vbox4 = GTK_DIALOG (ChoixFichier)->vbox; gtk_widget_set_name (dialog_vbox4, "dialog_vbox4"); gtk_widget_show (dialog_vbox4); dialog_action_area4 = GTK_DIALOG (ChoixFichier)->action_area; gtk_widget_set_name (dialog_action_area4, "dialog_action_area4"); gtk_widget_show (dialog_action_area4); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area4), GTK_BUTTONBOX_END); button1 = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_set_name (button1, "button1"); gtk_widget_show (button1); gtk_dialog_add_action_widget (GTK_DIALOG (ChoixFichier), button1, GTK_RESPONSE_CANCEL); GTK_WIDGET_SET_FLAGS (button1, GTK_CAN_DEFAULT); button2 = gtk_button_new_from_stock ("gtk-open"); gtk_widget_set_name (button2, "button2"); gtk_widget_show (button2); gtk_dialog_add_action_widget (GTK_DIALOG (ChoixFichier), button2, GTK_RESPONSE_OK); GTK_WIDGET_SET_FLAGS (button2, GTK_CAN_DEFAULT); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (ChoixFichier, ChoixFichier, "ChoixFichier"); GLADE_HOOKUP_OBJECT_NO_REF (ChoixFichier, dialog_vbox4, "dialog_vbox4"); GLADE_HOOKUP_OBJECT_NO_REF (ChoixFichier, dialog_action_area4, "dialog_action_area4"); GLADE_HOOKUP_OBJECT (ChoixFichier, button1, "button1"); GLADE_HOOKUP_OBJECT (ChoixFichier, button2, "button2"); gtk_widget_grab_default (button2); return ChoixFichier; } GtkWidget* create_alerte_medium (void) { GtkWidget *alerte_medium; GtkWidget *dialog_vbox5; GtkWidget *hbox1; GtkWidget *image1; GtkWidget *label2; GtkWidget *dialog_action_area5; GtkWidget *choixiso; GtkWidget *quitter; GtkWidget *rafraichir; GtkWidget *config; alerte_medium = gtk_dialog_new (); gtk_widget_set_name (alerte_medium, "alerte_medium"); gtk_container_set_border_width (GTK_CONTAINER (alerte_medium), 6); gtk_window_set_title (GTK_WINDOW (alerte_medium), _("Aucun medium d\303\251tect\303\251")); gtk_window_set_position (GTK_WINDOW (alerte_medium), GTK_WIN_POS_CENTER_ON_PARENT); gtk_window_set_modal (GTK_WINDOW (alerte_medium), TRUE); gtk_window_set_resizable (GTK_WINDOW (alerte_medium), FALSE); gtk_window_set_destroy_with_parent (GTK_WINDOW (alerte_medium), TRUE); gtk_window_set_icon_name (GTK_WINDOW (alerte_medium), "gtk-dialog-warning"); gtk_window_set_type_hint (GTK_WINDOW (alerte_medium), GDK_WINDOW_TYPE_HINT_DIALOG); gtk_window_set_urgency_hint (GTK_WINDOW (alerte_medium), TRUE); gtk_dialog_set_has_separator (GTK_DIALOG (alerte_medium), FALSE); dialog_vbox5 = GTK_DIALOG (alerte_medium)->vbox; gtk_widget_set_name (dialog_vbox5, "dialog_vbox5"); gtk_widget_show (dialog_vbox5); hbox1 = gtk_hbox_new (FALSE, 12); gtk_widget_set_name (hbox1, "hbox1"); gtk_widget_show (hbox1); gtk_box_pack_start (GTK_BOX (dialog_vbox5), hbox1, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox1), 6); image1 = gtk_image_new_from_stock ("gtk-dialog-warning", GTK_ICON_SIZE_DIALOG); gtk_widget_set_name (image1, "image1"); gtk_widget_show (image1); gtk_box_pack_start (GTK_BOX (hbox1), image1, TRUE, TRUE, 0); gtk_misc_set_alignment (GTK_MISC (image1), 0, 0); label2 = gtk_label_new (_("Aucun m\303\251dium d\303\251tect\303\251\n\nVeuillez ins\303\251rer un DVD vid\303\251o dans le lecteur, ou sp\303\251cifier une image ISO \303\240 utiliser. ")); gtk_widget_set_name (label2, "label2"); gtk_widget_show (label2); gtk_box_pack_start (GTK_BOX (hbox1), label2, TRUE, TRUE, 0); gtk_label_set_use_markup (GTK_LABEL (label2), TRUE); gtk_label_set_line_wrap (GTK_LABEL (label2), TRUE); gtk_misc_set_alignment (GTK_MISC (label2), 0, 0); dialog_action_area5 = GTK_DIALOG (alerte_medium)->action_area; gtk_widget_set_name (dialog_action_area5, "dialog_action_area5"); gtk_widget_show (dialog_action_area5); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area5), GTK_BUTTONBOX_END); choixiso = gtk_button_new_with_mnemonic (_("Fichier ISO")); gtk_widget_set_name (choixiso, "choixiso"); gtk_widget_show (choixiso); gtk_dialog_add_action_widget (GTK_DIALOG (alerte_medium), choixiso, GTK_RESPONSE_OK); GTK_WIDGET_UNSET_FLAGS (choixiso, GTK_CAN_FOCUS); quitter = gtk_button_new_from_stock ("gtk-quit"); gtk_widget_set_name (quitter, "quitter"); gtk_widget_show (quitter); gtk_dialog_add_action_widget (GTK_DIALOG (alerte_medium), quitter, GTK_RESPONSE_CLOSE); GTK_WIDGET_UNSET_FLAGS (quitter, GTK_CAN_FOCUS); rafraichir = gtk_button_new_from_stock ("gtk-refresh"); gtk_widget_set_name (rafraichir, "rafraichir"); gtk_widget_show (rafraichir); gtk_dialog_add_action_widget (GTK_DIALOG (alerte_medium), rafraichir, GTK_RESPONSE_OK); GTK_WIDGET_UNSET_FLAGS (rafraichir, GTK_CAN_FOCUS); config = gtk_button_new_from_stock ("gtk-preferences"); gtk_widget_set_name (config, "config"); gtk_widget_show (config); gtk_dialog_add_action_widget (GTK_DIALOG (alerte_medium), config, 0); GTK_WIDGET_SET_FLAGS (config, GTK_CAN_DEFAULT); g_signal_connect ((gpointer) choixiso, "clicked", G_CALLBACK (on_choixiso_clicked), NULL); g_signal_connect ((gpointer) quitter, "clicked", G_CALLBACK (on_quitter_clicked), NULL); g_signal_connect ((gpointer) rafraichir, "clicked", G_CALLBACK (on_rafraichir_clicked), NULL); g_signal_connect ((gpointer) config, "clicked", G_CALLBACK (on_configbegin_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (alerte_medium, alerte_medium, "alerte_medium"); GLADE_HOOKUP_OBJECT_NO_REF (alerte_medium, dialog_vbox5, "dialog_vbox5"); GLADE_HOOKUP_OBJECT (alerte_medium, hbox1, "hbox1"); GLADE_HOOKUP_OBJECT (alerte_medium, image1, "image1"); GLADE_HOOKUP_OBJECT (alerte_medium, label2, "label2"); GLADE_HOOKUP_OBJECT_NO_REF (alerte_medium, dialog_action_area5, "dialog_action_area5"); GLADE_HOOKUP_OBJECT (alerte_medium, choixiso, "choixiso"); GLADE_HOOKUP_OBJECT (alerte_medium, quitter, "quitter"); GLADE_HOOKUP_OBJECT (alerte_medium, rafraichir, "rafraichir"); GLADE_HOOKUP_OBJECT (alerte_medium, config, "config"); return alerte_medium; } GtkWidget* create_alerte_deuxiemephase (void) { GtkWidget *alerte_deuxiemephase; GtkWidget *dialog_vbox6; GtkWidget *hbox2; GtkWidget *image2; GtkWidget *label13; GtkWidget *dialog_action_area6; GtkWidget *lecture; GtkWidget *revenir; GtkWidget *avancer; alerte_deuxiemephase = gtk_dialog_new (); gtk_widget_set_name (alerte_deuxiemephase, "alerte_deuxiemephase"); gtk_container_set_border_width (GTK_CONTAINER (alerte_deuxiemephase), 6); gtk_window_set_title (GTK_WINDOW (alerte_deuxiemephase), _("Premi\303\250re phase termin\303\251e")); gtk_window_set_position (GTK_WINDOW (alerte_deuxiemephase), GTK_WIN_POS_CENTER_ON_PARENT); gtk_window_set_modal (GTK_WINDOW (alerte_deuxiemephase), TRUE); gtk_window_set_resizable (GTK_WINDOW (alerte_deuxiemephase), FALSE); gtk_window_set_destroy_with_parent (GTK_WINDOW (alerte_deuxiemephase), TRUE); gtk_window_set_icon_name (GTK_WINDOW (alerte_deuxiemephase), "gtk-dialog-info"); gtk_window_set_type_hint (GTK_WINDOW (alerte_deuxiemephase), GDK_WINDOW_TYPE_HINT_DIALOG); gtk_window_set_urgency_hint (GTK_WINDOW (alerte_deuxiemephase), TRUE); gtk_dialog_set_has_separator (GTK_DIALOG (alerte_deuxiemephase), FALSE); dialog_vbox6 = GTK_DIALOG (alerte_deuxiemephase)->vbox; gtk_widget_set_name (dialog_vbox6, "dialog_vbox6"); gtk_widget_show (dialog_vbox6); hbox2 = gtk_hbox_new (FALSE, 12); gtk_widget_set_name (hbox2, "hbox2"); gtk_widget_show (hbox2); gtk_box_pack_start (GTK_BOX (dialog_vbox6), hbox2, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox2), 6); image2 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_DIALOG); gtk_widget_set_name (image2, "image2"); gtk_widget_show (image2); gtk_box_pack_start (GTK_BOX (hbox2), image2, TRUE, TRUE, 0); gtk_misc_set_alignment (GTK_MISC (image2), 0, 0); label13 = gtk_label_new (_("Extraction du contenu termin\303\251e\n\nAvant de proc\303\251der \303\240 la construction d'une image ISO ou une gravure, vous pouvez pr\303\251visualiser le r\303\251sultat.")); gtk_widget_set_name (label13, "label13"); gtk_widget_show (label13); gtk_box_pack_start (GTK_BOX (hbox2), label13, TRUE, TRUE, 0); gtk_label_set_use_markup (GTK_LABEL (label13), TRUE); gtk_label_set_line_wrap (GTK_LABEL (label13), TRUE); gtk_misc_set_alignment (GTK_MISC (label13), 0, 0); dialog_action_area6 = GTK_DIALOG (alerte_deuxiemephase)->action_area; gtk_widget_set_name (dialog_action_area6, "dialog_action_area6"); gtk_widget_show (dialog_action_area6); gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area6), GTK_BUTTONBOX_END); lecture = gtk_button_new_from_stock ("gtk-media-play"); gtk_widget_set_name (lecture, "lecture"); gtk_widget_show (lecture); gtk_dialog_add_action_widget (GTK_DIALOG (alerte_deuxiemephase), lecture, 0); GTK_WIDGET_UNSET_FLAGS (lecture, GTK_CAN_FOCUS); revenir = gtk_button_new_from_stock ("gtk-go-back"); gtk_widget_set_name (revenir, "revenir"); gtk_widget_show (revenir); gtk_dialog_add_action_widget (GTK_DIALOG (alerte_deuxiemephase), revenir, 1); GTK_WIDGET_UNSET_FLAGS (revenir, GTK_CAN_FOCUS); avancer = gtk_button_new_from_stock ("gtk-go-forward"); gtk_widget_set_name (avancer, "avancer"); gtk_widget_show (avancer); gtk_dialog_add_action_widget (GTK_DIALOG (alerte_deuxiemephase), avancer, 2); GTK_WIDGET_UNSET_FLAGS (avancer, GTK_CAN_FOCUS); g_signal_connect ((gpointer) lecture, "clicked", G_CALLBACK (on_lecture_clicked), NULL); g_signal_connect ((gpointer) revenir, "clicked", G_CALLBACK (on_revenir_clicked), NULL); g_signal_connect ((gpointer) avancer, "clicked", G_CALLBACK (on_avancer_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (alerte_deuxiemephase, alerte_deuxiemephase, "alerte_deuxiemephase"); GLADE_HOOKUP_OBJECT_NO_REF (alerte_deuxiemephase, dialog_vbox6, "dialog_vbox6"); GLADE_HOOKUP_OBJECT (alerte_deuxiemephase, hbox2, "hbox2"); GLADE_HOOKUP_OBJECT (alerte_deuxiemephase, image2, "image2"); GLADE_HOOKUP_OBJECT (alerte_deuxiemephase, label13, "label13"); GLADE_HOOKUP_OBJECT_NO_REF (alerte_deuxiemephase, dialog_action_area6, "dialog_action_area6"); GLADE_HOOKUP_OBJECT (alerte_deuxiemephase, lecture, "lecture"); GLADE_HOOKUP_OBJECT (alerte_deuxiemephase, revenir, "revenir"); GLADE_HOOKUP_OBJECT (alerte_deuxiemephase, avancer, "avancer"); return alerte_deuxiemephase; } GtkWidget* create_alerte_analyse (void) { GtkWidget *alerte_analyse; GtkWidget *vbox3; GtkWidget *hbox3; GtkWidget *image3; GtkWidget *label14; GtkWidget *hbuttonbox1; GtkWidget *arreter; alerte_analyse = gtk_dialog_new (); gtk_widget_set_name (alerte_analyse, "alerte_analyse"); gtk_container_set_border_width (GTK_CONTAINER (alerte_analyse), 6); gtk_window_set_title (GTK_WINDOW (alerte_analyse), _("Analyse en cours")); gtk_window_set_position (GTK_WINDOW (alerte_analyse), GTK_WIN_POS_CENTER_ON_PARENT); gtk_window_set_modal (GTK_WINDOW (alerte_analyse), TRUE); gtk_window_set_resizable (GTK_WINDOW (alerte_analyse), FALSE); gtk_window_set_destroy_with_parent (GTK_WINDOW (alerte_analyse), TRUE); gtk_window_set_icon_name (GTK_WINDOW (alerte_analyse), "gtk-dialog-info"); gtk_window_set_type_hint (GTK_WINDOW (alerte_analyse), GDK_WINDOW_TYPE_HINT_DIALOG); gtk_window_set_urgency_hint (GTK_WINDOW (alerte_analyse), TRUE); gtk_dialog_set_has_separator (GTK_DIALOG (alerte_analyse), FALSE); vbox3 = GTK_DIALOG (alerte_analyse)->vbox; gtk_widget_set_name (vbox3, "vbox3"); gtk_widget_show (vbox3); hbox3 = gtk_hbox_new (FALSE, 12); gtk_widget_set_name (hbox3, "hbox3"); gtk_widget_show (hbox3); gtk_box_pack_start (GTK_BOX (vbox3), hbox3, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox3), 6); image3 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_DIALOG); gtk_widget_set_name (image3, "image3"); gtk_widget_show (image3); gtk_box_pack_start (GTK_BOX (hbox3), image3, TRUE, TRUE, 0); gtk_misc_set_alignment (GTK_MISC (image3), 0, 0); label14 = gtk_label_new (_("Analyse en cours\n\nVeuillez patienter pendant le parcours du DVD afin d'analyser sa structure.")); gtk_widget_set_name (label14, "label14"); gtk_widget_show (label14); gtk_box_pack_start (GTK_BOX (hbox3), label14, TRUE, TRUE, 0); gtk_label_set_use_markup (GTK_LABEL (label14), TRUE); gtk_label_set_line_wrap (GTK_LABEL (label14), TRUE); gtk_misc_set_alignment (GTK_MISC (label14), 0, 0); hbuttonbox1 = GTK_DIALOG (alerte_analyse)->action_area; gtk_widget_set_name (hbuttonbox1, "hbuttonbox1"); gtk_widget_show (hbuttonbox1); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_END); arreter = gtk_button_new_from_stock ("gtk-stop"); gtk_widget_set_name (arreter, "arreter"); gtk_widget_show (arreter); gtk_dialog_add_action_widget (GTK_DIALOG (alerte_analyse), arreter, 0); GTK_WIDGET_UNSET_FLAGS (arreter, GTK_CAN_FOCUS); g_signal_connect ((gpointer) arreter, "clicked", G_CALLBACK (on_arreter_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (alerte_analyse, alerte_analyse, "alerte_analyse"); GLADE_HOOKUP_OBJECT_NO_REF (alerte_analyse, vbox3, "vbox3"); GLADE_HOOKUP_OBJECT (alerte_analyse, hbox3, "hbox3"); GLADE_HOOKUP_OBJECT (alerte_analyse, image3, "image3"); GLADE_HOOKUP_OBJECT (alerte_analyse, label14, "label14"); GLADE_HOOKUP_OBJECT_NO_REF (alerte_analyse, hbuttonbox1, "hbuttonbox1"); GLADE_HOOKUP_OBJECT (alerte_analyse, arreter, "arreter"); return alerte_analyse; } GtkWidget* create_alerte_termine (void) { GtkWidget *alerte_termine; GtkWidget *vbox4; GtkWidget *hbox4; GtkWidget *image4; GtkWidget *label15; GtkWidget *hbuttonbox2; GtkWidget *fermer; alerte_termine = gtk_dialog_new (); gtk_widget_set_name (alerte_termine, "alerte_termine"); gtk_container_set_border_width (GTK_CONTAINER (alerte_termine), 6); gtk_window_set_title (GTK_WINDOW (alerte_termine), _("Termin\303\251")); gtk_window_set_position (GTK_WINDOW (alerte_termine), GTK_WIN_POS_CENTER_ON_PARENT); gtk_window_set_modal (GTK_WINDOW (alerte_termine), TRUE); gtk_window_set_resizable (GTK_WINDOW (alerte_termine), FALSE); gtk_window_set_destroy_with_parent (GTK_WINDOW (alerte_termine), TRUE); gtk_window_set_icon_name (GTK_WINDOW (alerte_termine), "gtk-dialog-info"); gtk_window_set_type_hint (GTK_WINDOW (alerte_termine), GDK_WINDOW_TYPE_HINT_DIALOG); gtk_window_set_urgency_hint (GTK_WINDOW (alerte_termine), TRUE); gtk_dialog_set_has_separator (GTK_DIALOG (alerte_termine), FALSE); vbox4 = GTK_DIALOG (alerte_termine)->vbox; gtk_widget_set_name (vbox4, "vbox4"); gtk_widget_show (vbox4); hbox4 = gtk_hbox_new (FALSE, 12); gtk_widget_set_name (hbox4, "hbox4"); gtk_widget_show (hbox4); gtk_box_pack_start (GTK_BOX (vbox4), hbox4, TRUE, TRUE, 0); gtk_container_set_border_width (GTK_CONTAINER (hbox4), 6); image4 = gtk_image_new_from_stock ("gtk-dialog-info", GTK_ICON_SIZE_DIALOG); gtk_widget_set_name (image4, "image4"); gtk_widget_show (image4); gtk_box_pack_start (GTK_BOX (hbox4), image4, TRUE, TRUE, 0); gtk_misc_set_alignment (GTK_MISC (image4), 0, 0); label15 = gtk_label_new (_("Encodage termin\303\251\n\nLa conversion s'est d\303\251roul\303\251e avec succ\303\250s.")); gtk_widget_set_name (label15, "label15"); gtk_widget_show (label15); gtk_box_pack_start (GTK_BOX (hbox4), label15, TRUE, TRUE, 0); gtk_label_set_use_markup (GTK_LABEL (label15), TRUE); gtk_label_set_line_wrap (GTK_LABEL (label15), TRUE); gtk_misc_set_alignment (GTK_MISC (label15), 0, 0); hbuttonbox2 = GTK_DIALOG (alerte_termine)->action_area; gtk_widget_set_name (hbuttonbox2, "hbuttonbox2"); gtk_widget_show (hbuttonbox2); gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox2), GTK_BUTTONBOX_END); fermer = gtk_button_new_from_stock ("gtk-close"); gtk_widget_set_name (fermer, "fermer"); gtk_widget_show (fermer); gtk_dialog_add_action_widget (GTK_DIALOG (alerte_termine), fermer, GTK_RESPONSE_CLOSE); GTK_WIDGET_UNSET_FLAGS (fermer, GTK_CAN_FOCUS); g_signal_connect ((gpointer) fermer, "clicked", G_CALLBACK (on_fermer_clicked), NULL); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (alerte_termine, alerte_termine, "alerte_termine"); GLADE_HOOKUP_OBJECT_NO_REF (alerte_termine, vbox4, "vbox4"); GLADE_HOOKUP_OBJECT (alerte_termine, hbox4, "hbox4"); GLADE_HOOKUP_OBJECT (alerte_termine, image4, "image4"); GLADE_HOOKUP_OBJECT (alerte_termine, label15, "label15"); GLADE_HOOKUP_OBJECT_NO_REF (alerte_termine, hbuttonbox2, "hbuttonbox2"); GLADE_HOOKUP_OBJECT (alerte_termine, fermer, "fermer"); return alerte_termine; } GtkWidget* create_about (void) { GtkWidget *about; const gchar *authors[] = { "JF Coulon", NULL }; const gchar *documenters[] = { "JF Fortin", NULL }; const gchar *artists[] = { "JF Fortin", NULL }; /* TRANSLATORS: Replace this string with your names, one name per line. */ gchar *translators = _("translator-credits"); GdkPixbuf *about_logo_pixbuf; about = gtk_about_dialog_new (); gtk_widget_set_name (about, "about"); gtk_container_set_border_width (GTK_CONTAINER (about), 5); gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (about), VERSION); gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (about), _("Dvd95")); gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (about), _("a GNOME application to convert DVD9 to DVD5")); gtk_about_dialog_set_license (GTK_ABOUT_DIALOG (about), _("Dvd95 is free software; you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation; either version 2 of the License, or\n(at your option) any later version.\nDvd95 is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty\nof MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \nSee the GNU General Public License for more details.\nYou should have received a copy of the GNU General Public License\nalong with Dvd95;\nif not, write to the Free Software Foundation, Inc.,\n59 Temple Place, Suite 330, Boston, MA 2111-1307 USA\n")); gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (about), "http://dvd95.sourceforge.net"); gtk_about_dialog_set_website_label (GTK_ABOUT_DIALOG (about), _("Dvd95")); gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about), authors); gtk_about_dialog_set_documenters (GTK_ABOUT_DIALOG (about), documenters); gtk_about_dialog_set_artists (GTK_ABOUT_DIALOG (about), artists); gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (about), translators); about_logo_pixbuf = create_pixbuf ("dvd95/dvd9548.png"); gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (about), about_logo_pixbuf); /* Store pointers to all widgets, for use by lookup_widget(). */ GLADE_HOOKUP_OBJECT_NO_REF (about, about, "about"); return about; } dvd95/src/interface.h000066400000000000000000000006251140003301000146720ustar00rootroot00000000000000/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ GtkWidget* create_main (void); GtkWidget* create_propriete (void); GtkWidget* create_Avancement (void); GtkWidget* create_ChoixFichier (void); GtkWidget* create_alerte_medium (void); GtkWidget* create_alerte_deuxiemephase (void); GtkWidget* create_alerte_analyse (void); GtkWidget* create_alerte_termine (void); GtkWidget* create_about (void); dvd95/src/main.c000066400000000000000000000210511140003301000136450ustar00rootroot00000000000000/* * Initial main.c file generated by Glade. Edit as required. * Glade will not overwrite this file. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "interface.h" #include "support.h" #include "ac.h" #include "gconfig.h" #include "dvdtools.h" #include "dvdformat.h" #include "dvdcopy.h" #include "dvdbackup.h" #include "dvd2vob.h" #include "uitools.h" #include "message.h" #include "avancement.h" #include "systools.h" #include "profile.h" #include "const.h" #define __NEED_GLOBALS__ #include "globals.h" /*------------------------------------------------------------------------------ CHECKDVD- Linux!jef 2007/01/09 22:45:11 ------------------------------------------------------------------------------*/ gboolean CheckDvd( gpointer data ) { GtkWidget * forme = (GtkWidget *)data; int ret; ret = IsDvdLoaded( Device ); if( ret == 1 ) { gtk_dialog_response( GTK_DIALOG(forme), GTK_RESPONSE_OK ); return( FALSE ); } return( TRUE ); } /*------------------------------------------------------------------------------ ENABLEANDSCAN- Linux!jef 2008/01/10 23:26:31 ------------------------------------------------------------------------------*/ static void EnableAndScan( GtkWidget * dvd95 ) { GtkWidget * item; Profile_t * p = GetProfile( GetFormat() ); g_assert( p ); item = lookup_widget(GTK_WIDGET(dvd95), "Encoder" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), TRUE ); item = lookup_widget(GTK_WIDGET(dvd95), "ViewPiste" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), TRUE ); item = lookup_widget(GTK_WIDGET(dvd95), "Evaluer" ); g_assert(item); if( p->profileFlags & PROFILE_AVI_F ) gtk_widget_set_sensitive( GTK_WIDGET(item), FALSE ); else gtk_widget_set_sensitive( GTK_WIDGET(item), TRUE ); item = lookup_widget(GTK_WIDGET(dvd95), "Qualite" ); g_assert(item); if( p->profileFlags & PROFILE_AVI_F ) gtk_widget_set_sensitive( GTK_WIDGET(item), FALSE ); else gtk_widget_set_sensitive( GTK_WIDGET(item), TRUE ); item = lookup_widget(GTK_WIDGET(dvd95), "PistesVideo" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), TRUE ); item = lookup_widget(GTK_WIDGET(dvd95), "PistesAudio" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), TRUE ); item = lookup_widget(GTK_WIDGET(dvd95), "SousTitres" ); g_assert(item); if( p->profileFlags & PROFILE_HANDLE_SUBS_F ) gtk_widget_set_sensitive( GTK_WIDGET(item), TRUE ); else gtk_widget_set_sensitive( GTK_WIDGET(item), FALSE ); ScanDvd( dvd95 ); } #ifdef __APPLE__ static int FindDvd() { /* on mac, a dvd device does not have a /dev/.. entry, if no medium is mounted instead of checking, if there is a dvd at a specific /dev/dvdX mounted we better just try to find a DVD */ GSList * devices = getDevices(); if( devices ) { strcpy( Device, devices->data); freeDevices(devices); return( 1 ); } return( 0 ); } #endif /*------------------------------------------------------------------------------ DEVICECHECKING- Linux!jef 2007/01/23 22:31:37 ------------------------------------------------------------------------------*/ void DeviceChecking( GtkWidget * Dvd95 ) { int ret; GtkWidget * forme; #ifdef __APPLE__ ret = FindDvd(); #else ret = IsDvdLoaded( Device ); #endif if( ret == 1 ) { EnableAndScan( Dvd95 ); return; } forme = create_alerte_medium(); g_timeout_add( 500, CheckDvd, forme ); while( 1 ) { ret = gtk_dialog_run( GTK_DIALOG( forme ) ); if( ret == GTK_RESPONSE_OK ) { #ifdef __APPLE__ ret = FindDvd(); #else ret = IsDvdLoaded( Device ); #endif if( ret == 1 ) { break; } } if( ret == GTK_RESPONSE_CLOSE ) { gtk_widget_destroy( forme ); exit(0); } } gtk_widget_destroy( forme ); EnableAndScan( Dvd95 ); } /***************************************************************************//** * USAGE- * @date 2009/01/27 23:00:24 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static int usage( char * progname ) { printf("%s [options]\n", progname ); printf(" --isofile IsoFileName.\n"); printf(" --isodir IsoDirName.\n"); printf(" --iso : Choose iso file.\n"); exit(0); } int main (int argc, char *argv[]) { GtkWidget *Dvd95; GtkWidget * item; char * lang; int i; // fprintf(stderr,"DVD5_WANTED_BYTES_LL: %lld\n", DVD5_WANTED_BYTES_LL ); /* Multi threading */ g_thread_init(NULL); gdk_threads_init(); #ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); #endif ac_mmtest(); tc_memcpy_init( 0, ac_mmflag()); gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, NULL); gnome_sound_init( "localhost" ); /* Languague if any */ #if 1 lang = ConfigGetString( KEY_LANG, "" ); if( lang && *lang ) { if( !strcmp( lang,"Fran\303\247ais")) setlocale( LC_MESSAGES, "fr_FR.UTF-8" ); if( !strcasecmp( lang,"English")) setlocale( LC_MESSAGES, "en_US.UTF-8" ); if( !strcasecmp( lang,"Deutsch")) setlocale( LC_MESSAGES, "de_DE.UTF-8" ); if( !strcasecmp( lang,"Greek")) setlocale( LC_MESSAGES, "el_GR.UTF-8" ); if( !strcasecmp( lang,"Estonian")) setlocale( LC_MESSAGES, "et_EE.UTF-8" ); if( !strcasecmp( lang,"Hungarian")) setlocale( LC_MESSAGES, "hu_HU.UTF-8" ); if( !strcasecmp( lang,"Dutch")) setlocale( LC_MESSAGES, "nl_NL.UTF-8" ); if( !strcasecmp( lang,"Portuguese")) setlocale( LC_MESSAGES, "pt_BR.UTF-8" ); if( !strcasecmp( lang,"Czech")) setlocale( LC_MESSAGES, "cs_CZ.UTF-8" ); if( !strcasecmp( lang,"Spanish")) setlocale( LC_MESSAGES, "es_ES.UTF-8" ); if( !strcasecmp( lang,"Italian")) setlocale( LC_MESSAGES, "it_IT.UTF-8" ); } #endif /* Pour que les doubles soit sous la forme xxx.yyy */ setlocale( LC_NUMERIC, "C" ); /* { double d = 1.125; fprintf(stderr,"d=%f\n", d ); } */ /* * The following code was added by Glade to create one of each component * (except popup menus), just so that you see something after building * the project. Delete any components that you don't want shown initially. */ /* Use first device if none is set in preferences */ char *config_device = ConfigGetString( KEY_DEVICE, NULL); if( !config_device ) { GSList * devices = getDevices(); if( devices ) { strcpy( Device, devices->data); freeDevices(devices); } } else { strcpy( Device, config_device); } Dvd95 = create_main(); MainDlg = Dvd95; ConfigSetSizePosMain( Dvd95 ); /* Gestion dvd95 --iso */ for( i = 0; i < argc; i++ ) { if( !strcmp( argv[i], "--iso")) { if( ChoixFichierIso( Device ) == 0 ) DeviceSpecifiedF = 1; } if( !strcmp( argv[i], "--isofile")) { strcpy( Device, argv[i+1] ); DeviceSpecifiedF = 1; } if( !strcmp( argv[i], "--dvddir")) { strcpy( Device, argv[i+1] ); DeviceSpecifiedF = 1; } if( !strcmp( argv[i], "--keepvob")) { KeepVob = 1; } if( !strcmp( argv[i], "--help")) { usage( argv[0] ); } if( !strcmp( argv[i], "-h") || !strcmp( argv[i], "--help")) { usage( argv[0] ); } } InitTrace(); InitProfiles(); { int dvdFormat = ConfigGetInt( KEY_MEDIA, DVD5 ); Profile_t * p = GetProfile( dvdFormat ); char title[512]; if( !p ) { dvdFormat = DVD5; p = GetProfile( dvdFormat ); g_assert( p ); } if( p->profileFlags & PROFILE_AVAIL_F ) { SetFormat( dvdFormat ); } else { dvdFormat = DVD5; SetFormat( dvdFormat ); p = GetProfile( dvdFormat ); g_assert( p ); } sprintf( title, "%s : %s", _("DVD 9 to 5"), p->libel ); gtk_window_set_title( GTK_WINDOW(Dvd95), title ); } /* Manage Button sensitivity */ item = lookup_widget(GTK_WIDGET(Dvd95), "Encoder" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), FALSE ); item = lookup_widget(GTK_WIDGET(Dvd95), "ViewPiste" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), FALSE ); item = lookup_widget(GTK_WIDGET(Dvd95), "Evaluer" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), FALSE ); item = lookup_widget(GTK_WIDGET(Dvd95), "PistesVideo" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), FALSE ); item = lookup_widget(GTK_WIDGET(Dvd95), "PistesAudio" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), FALSE ); item = lookup_widget(GTK_WIDGET(Dvd95), "SousTitres" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), FALSE ); gtk_widget_show (Dvd95); GtkFlush(); DeviceChecking( Dvd95 ); gtk_main (); // gdk_threads_leave(); return( 0 ); } dvd95/src/main.h000066400000000000000000000013541140003301000136560ustar00rootroot00000000000000/*==========================[ (c) ALPHA SOFT ]================================== FICHIER : [main.h] DATE : 2007/01/0023 22:32:02 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __MAIN_H__ #define __MAIN_H__ #include /*@$#[main.c] global proto. AutoProtoSigV1.1. date: 107/01/23 22:32:22 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif int main PROTO((int argc, char *argv[])); void DeviceChecking( GtkWidget * Dvd95 ); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __MAIN_H__ */ dvd95/src/message.c000066400000000000000000000270451140003301000143560ustar00rootroot00000000000000/*============================================================================== FICHIER : [message.c] DATE : 2004/07/0013 22:39:27 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include "support.h" #include "message.h" #include "interface.h" #define CTEST(x) /****/ #define GLADE_HOOKUP_OBJECT(component,widget,name) \ g_object_set_data_full (G_OBJECT (component), name, \ gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref) #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \ g_object_set_data (G_OBJECT (component), name, widget) #include "globals.h" #include "uitools.h" static int AlerteRet = 0; static GtkWidget * Parent = NULL; static GtkWidget * PatientWindow = NULL; static char * MsgBuf = NULL; static GtkWidget * AnalyseWindow = NULL; #define COUNTDOWN_TIMER 60 static int CountSec; /*@$#[message.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:20:48 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* message.c */ static void on_alerte_ok_clicked PROTO((GtkButton *button, gpointer user_data)); static void on_alerte_cancel_clicked PROTO((GtkButton *button, gpointer user_data)); static GtkWidget *CreateAlerte PROTO((int flags, char *string)); static GtkWidget *CreatePatient PROTO((char *string)); static gboolean CountDown PROTO((gpointer data)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ /*------------------------------------------------------------------------------ ON_OK_CLICKED- Linux!jef 2004/07/0012 21:31:08 ------------------------------------------------------------------------------*/ static void on_alerte_ok_clicked ( GtkButton * button, gpointer user_data ) { GtkWidget * w = (GtkWidget *)user_data; gtk_widget_destroy( GTK_WIDGET(w) ); AlerteRet = 1; gtk_main_quit(); } /*------------------------------------------------------------------------------ ON_OK_CLICKED- Linux!jef 2004/07/0012 21:31:08 ------------------------------------------------------------------------------*/ static void on_alerte_cancel_clicked ( GtkButton * button, gpointer user_data ) { GtkWidget * w = (GtkWidget *)user_data; gtk_widget_destroy( GTK_WIDGET(w) ); AlerteRet = 0; gtk_main_quit(); } /*------------------------------------------------------------------------------ CREATEALERTE- Linux!jef 2004/07/0013 22:59:18 ------------------------------------------------------------------------------*/ static GtkWidget * CreateAlerte ( int flags, char * string ) { GtkWidget *alerte; GtkWidget *fixed5; GtkWidget *text2; GtkWidget *hseparator2; GtkWidget *alerte_ok; GtkWidget *alerte_cancel; GtkAccelGroup *accel_group; GtkTextBuffer * buffer; accel_group = gtk_accel_group_new (); alerte = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (alerte), "alerte", alerte); gtk_window_set_title (GTK_WINDOW (alerte), _("Alerte")); gtk_window_set_position (GTK_WINDOW (alerte), GTK_WIN_POS_CENTER); gtk_window_set_modal (GTK_WINDOW (alerte), TRUE); fixed5 = gtk_fixed_new (); gtk_widget_ref (fixed5); gtk_object_set_data_full (GTK_OBJECT (alerte), "fixed5", fixed5, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (fixed5); gtk_container_add (GTK_CONTAINER (alerte), fixed5); text2 = gtk_text_view_new(); gtk_widget_ref (text2); gtk_object_set_data_full (GTK_OBJECT (alerte), "text2", text2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (text2); gtk_fixed_put (GTK_FIXED (fixed5), text2, 0, 0); gtk_widget_set_uposition (text2, 0, 0); gtk_widget_set_usize (text2, 408, 176); buffer = gtk_text_buffer_new( NULL ); gtk_text_buffer_set_text( buffer, string, -1 ); gtk_text_view_set_buffer( GTK_TEXT_VIEW(text2), buffer ); hseparator2 = gtk_hseparator_new (); gtk_widget_ref (hseparator2); gtk_object_set_data_full (GTK_OBJECT (alerte), "hseparator2", hseparator2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (hseparator2); gtk_fixed_put (GTK_FIXED (fixed5), hseparator2, 8, 184); gtk_widget_set_uposition (hseparator2, 8, 184); gtk_widget_set_usize (hseparator2, 392, 16); alerte_ok = gtk_button_new_with_label (_("Ok")); gtk_widget_ref (alerte_ok); gtk_object_set_data_full (GTK_OBJECT (alerte), "alerte_ok", alerte_ok, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (alerte_ok); gtk_fixed_put (GTK_FIXED (fixed5), alerte_ok, 8, 200); gtk_widget_set_uposition (alerte_ok, 8, 200); gtk_widget_set_usize (alerte_ok, 152, 40); gtk_widget_add_accelerator (alerte_ok, "clicked", accel_group, GDK_Return, 0, GTK_ACCEL_VISIBLE); if( flags & ALERTE_FLG_CANCEL ) { alerte_cancel = gtk_button_new_with_label (_("Cancel")); gtk_widget_ref (alerte_cancel); gtk_object_set_data_full (GTK_OBJECT (alerte), "alerte_cancel", alerte_cancel, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (alerte_cancel); gtk_fixed_put (GTK_FIXED (fixed5), alerte_cancel, 224, 200); gtk_widget_set_uposition (alerte_cancel, 224, 200); gtk_widget_set_usize (alerte_cancel, 176, 40); gtk_widget_add_accelerator (alerte_cancel, "clicked", accel_group, GDK_Escape, 0, GTK_ACCEL_VISIBLE); gtk_signal_connect (GTK_OBJECT (alerte_cancel), "clicked", GTK_SIGNAL_FUNC (on_alerte_cancel_clicked), alerte); } gtk_signal_connect (GTK_OBJECT (alerte_ok), "clicked", GTK_SIGNAL_FUNC (on_alerte_ok_clicked), alerte); gtk_widget_grab_default (alerte_ok); gtk_window_add_accel_group (GTK_WINDOW (alerte), accel_group); return( alerte ); } /*------------------------------------------------------------------------------ MESSAGE- Linux!jef 2004/07/0013 22:41:30 ------------------------------------------------------------------------------*/ int Alerte( int flags, char * format, ... ) { GtkWidget * w; char buffer[4096]; va_list args; AlerteRet = 0; va_start( args, format ); vsnprintf( buffer, sizeof(buffer), format, args ); w = CreateAlerte( flags, buffer ); if( w ) { if( Parent ) gtk_window_set_transient_for( GTK_WINDOW(w), GTK_WINDOW(Parent)); gtk_widget_show( w ); gtk_main(); } va_end( args ); return( AlerteRet ); } /*------------------------------------------------------------------------------ ALERTESETPARENT- Linux!jef 2006/02/14 22:38:01 ------------------------------------------------------------------------------*/ GtkWidget * AlerteSetParent( GtkWidget * parent ) { GtkWidget * old = Parent; Parent = parent; return( old ); } /*------------------------------------------------------------------------------ CREATEPATIENT- Linux!jef 2004/07/0013 22:43:52 ------------------------------------------------------------------------------*/ static GtkWidget * CreatePatient( char * string ) { GtkWidget *patient; GtkWidget *fixed1; GtkWidget *text; GtkTextBuffer * buffer; patient = gtk_window_new (GTK_WINDOW_TOPLEVEL); GLADE_HOOKUP_OBJECT_NO_REF (patient, patient, "patient"); gtk_window_set_title (GTK_WINDOW (patient), _("Informations")); gtk_window_set_position (GTK_WINDOW (patient), GTK_WIN_POS_CENTER); gtk_window_set_modal (GTK_WINDOW (patient), TRUE); fixed1 = gtk_fixed_new (); GLADE_HOOKUP_OBJECT (patient, fixed1, "fixed1"); gtk_widget_show (fixed1); gtk_container_add (GTK_CONTAINER (patient), fixed1); text = gtk_text_view_new (); GLADE_HOOKUP_OBJECT (patient, text, "text"); gtk_widget_show (text); gtk_fixed_put (GTK_FIXED (fixed1), text, 0, 0); gtk_widget_set_size_request (text, 416, 48); gtk_text_view_set_editable (GTK_TEXT_VIEW (text), FALSE); gtk_text_view_set_justification (GTK_TEXT_VIEW (text), GTK_JUSTIFY_CENTER); buffer = gtk_text_buffer_new( NULL ); gtk_text_buffer_set_text( buffer, string, -1 ); gtk_text_view_set_buffer( GTK_TEXT_VIEW(text), buffer ); return( patient ); } /*------------------------------------------------------------------------------ OPENPATIENT- Linux!jef 2006/02/28 22:52:06 ------------------------------------------------------------------------------*/ void OpenPatient( char * format, ... ) { char buffer[4096]; va_list args; ClosePatient(); va_start( args, format ); vsnprintf( buffer, sizeof(buffer), format, args ); //!! fprintf(stderr,"Buffer(%s)\n", buffer ); va_end( args ); MsgBuf = strdup( buffer ); PatientWindow = CreatePatient( MsgBuf ); if( Parent ) gtk_window_set_transient_for( GTK_WINDOW(PatientWindow), GTK_WINDOW(Parent)); gtk_widget_show_now( PatientWindow ); while( gtk_events_pending() ) gtk_main_iteration(); } /*------------------------------------------------------------------------------ CLOSEPATIENT- Linux!jef 2006/02/28 22:53:50 ------------------------------------------------------------------------------*/ void ClosePatient() { if( PatientWindow ) { // sleep( 10 ); gtk_widget_destroy( GTK_WIDGET(PatientWindow) ); PatientWindow = NULL; if( MsgBuf ) { free( MsgBuf ); MsgBuf = NULL; } } } /*------------------------------------------------------------------------------ COUNTDOWN- Linux!jef 2007/08/09 21:53:26 ------------------------------------------------------------------------------*/ static gboolean CountDown( gpointer data ) { GtkWidget * msg = (GtkWidget *)data; char string[100]; // fprintf(stderr,"tick: %d\n", CountSec); if( --CountSec == 0 ) { Phase2 = PHASE2_AVANCER; gtk_dialog_response( GTK_DIALOG( msg ), 2 ); return( FALSE ); } sprintf( string, _("Premi\303\250re phase termin\303\251e (%d)"), CountSec ); gtk_window_set_title (GTK_WINDOW (msg), string ); return( TRUE ); } /*------------------------------------------------------------------------------ PHASE2- Linux!jef 2007/01/21 22:17:16 ------------------------------------------------------------------------------*/ int MessagePhase2( char * targetDir ) { GtkWidget * msg; guint id; Phase2 = 0; TargetDir = targetDir; msg = create_alerte_deuxiemephase(); CountSec = COUNTDOWN_TIMER; id = g_timeout_add( 1000, CountDown, msg ); while( 1 ) { gtk_dialog_run( GTK_DIALOG( msg ) ); // fprintf(stderr,"blip\n"); if( Phase2 ) break; } gtk_widget_destroy( GTK_WIDGET( msg ) ); g_source_remove( id ); // fprintf(stderr,"Phase2=%d\n", Phase2 ); return( Phase2 ); } /*------------------------------------------------------------------------------ OPENANALYSE- Linux!jef 2007/01/21 23:18:07 ------------------------------------------------------------------------------*/ int OpenAnalyse() { AnalyseWindow = create_alerte_analyse(); gtk_widget_show_now( AnalyseWindow ); GtkFlush(); return( 0 ); } /*------------------------------------------------------------------------------ CLOSEANALYSE- Linux!jef 2007/01/21 23:18:14 ------------------------------------------------------------------------------*/ int CloseAnalyse() { if( AnalyseWindow ) { gtk_widget_destroy( AnalyseWindow ); AnalyseWindow = NULL; } return( 0 ); } /*------------------------------------------------------------------------------ ENCODAGEFINI- Linux!jef 2007/01/21 23:29:42 ------------------------------------------------------------------------------*/ void EncodageFini() { GtkWidget * msg; msg = create_alerte_termine(); gtk_dialog_run( GTK_DIALOG( msg ) ); gtk_widget_destroy( GTK_WIDGET( msg ) ); } dvd95/src/message.h000066400000000000000000000021361140003301000143550ustar00rootroot00000000000000/*============================================================================== FICHIER : [message.h] DATE : 2004/07/0013 22:50:38 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __MESSAGE_H__ #define __MESSAGE_H__ #define ALERTE_FLG_OK 0x00 #define ALERTE_FLG_CANCEL 0x02 #define ALERTE_FLG ( ALERTE_FLG_OK | ALERTE_FLG_CANCEL ) /*@$#[message.c] global proto. AutoProtoSigV1.1. date: 2009/02/04 23:20:56 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* message.c */ int Alerte PROTO((int flags, char *format, ...)); GtkWidget *AlerteSetParent PROTO((GtkWidget *parent)); void OpenPatient PROTO((char *format, ...)); void ClosePatient PROTO((void)); int MessagePhase2 PROTO((char *targetDir)); int OpenAnalyse PROTO((void)); int CloseAnalyse PROTO((void)); void EncodageFini PROTO((void)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __MESSAGE_H__ */ dvd95/src/mpeg2dec.c000066400000000000000000000336741140003301000144250ustar00rootroot00000000000000/*==========================[ (c) ALPHA SOFT ]================================== FICHIER : [mpeg2dec.c] DATE : 2007/08/0014 21:44:00 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #include "../config.h" #include #include #include #include #include #ifdef HAVE_LIBMPEG2 #include #include #include #include #include "ac.h" #include "globals.h" typedef struct BUFFER_T { size_t size; unsigned char * data; struct BUFFER_T * next; } Buffer_t; typedef struct { int enabled; pthread_t thread; sem_t wSem; /* Fifo sem */ pthread_mutex_t aMutex; /* Mutex for list access */ mpeg2dec_t * decoder; unsigned int mpegFrameNo; Buffer_t * head; Buffer_t * tail; GtkWidget * image; long long bufferWrited; long long bufferReaded; struct timeval lastUpdate; } Mpeg2Decoder_t; #define IMAGE_REFRESH_SEC 0.5 #define MAX_BUFFERED_SIZE ((long long)( 8 * 1024 * 1024 )) #define BufferedSize() ( Decoder.bufferWrited - Decoder.bufferReaded ) static Mpeg2Decoder_t Decoder; #define DEMUX_PAYLOAD_START 1 #define DEMUX_HEADER 0 #define DEMUX_DATA 1 #define DEMUX_SKIP 2 #define NEEDBYTES(x) \ do { \ int missing; \ \ missing = (x) - bytes; \ if (missing > 0) { \ if (header == head_buf) { \ if (missing <= end - buffer) { \ tc_memcpy (header + bytes, buffer, missing); \ buffer += missing; \ bytes = (x); \ } else { \ tc_memcpy (header + bytes, buffer, end - buffer); \ state_bytes = bytes + end - buffer; \ return( 0 ); \ } \ } else { \ tc_memcpy (head_buf, header, bytes); \ state = DEMUX_HEADER; \ state_bytes = bytes; \ return( 0 ); \ } \ } \ } while (0) #define DONEBYTES(x) \ do { \ if (header != head_buf) \ buffer = header + (x); \ } while (0) static int mpeg1_skip_table[16] = { 0, 0, 4, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; #define DUMP_MPG 0 #if DUMP_MPG static FILE * Fp = NULL; static int Mp2Size = 0; # define MPG_FILE "sample.mpg" # define MPG_SIZE (10 * 1024 * 1024 ) #endif #pragma pack(1) typedef struct { uint8_t r; uint8_t g; uint8_t b; } Pixel_t; #pragma pack() /*@$#[mpeg2dec.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:21:14 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* mpeg2dec.c */ static void UpdateImage PROTO((int width, int height, Pixel_t *buf)); static void Mpeg2Process PROTO((unsigned char *buffer, unsigned char *end)); static int _Mpeg2Demux PROTO((unsigned char *buffer, size_t size)); static void *Mpeg2Thread PROTO((void *arg)); static void PostBuffer PROTO((Buffer_t *b)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ /*------------------------------------------------------------------------------ UPDATEIMAGE- Linux!jef 2007/08/20 22:15:55 ------------------------------------------------------------------------------*/ static void UpdateImage( int width, int height, Pixel_t * buf ) { int sx = width >> 2; int sy = height >> 2; int x,y; Pixel_t * pixels; FILE * ppmfile; if( ImageReadyF ) return; // fprintf(stderr,"sx: %d sy: %d\n", sx, sy ); pixels =(Pixel_t *)malloc( sx * sy * sizeof( *pixels) ); for( y = 0; y < sy; y++ ) { int oy = y << 2; int ox; for( x = ox = 0; x < sx; x++, ox += 4 ) { pixels[ (y * sx) + x ] = buf[ (oy * width) + ox ]; } } ppmfile = fopen( PPM_FILE, "wb"); if( ppmfile ) { int dummy; fprintf( ppmfile, "P6\n%d %d\n255\n", sx, sy); dummy = fwrite( pixels, sizeof(*pixels), sx*sy, ppmfile); fclose (ppmfile); ImageReadyF = 1; } free( pixels ); } /*------------------------------------------------------------------------------ MPEG2PROCESS- Linux!jef 2007/08/14 21:46:49 ------------------------------------------------------------------------------*/ static void Mpeg2Process( unsigned char * buffer, unsigned char * end ) { const mpeg2_info_t * info; mpeg2_state_t state; mpeg2_buffer( Decoder.decoder, buffer, end ); info = mpeg2_info( Decoder.decoder ); if( !info ) return; while( 1 ) { state = mpeg2_parse( Decoder.decoder ); if( state > 8 ) fprintf(stderr,"##mpeg2_parse: %d\n", state ); switch( state ) { case STATE_BUFFER : return; case STATE_SEQUENCE : mpeg2_convert( Decoder.decoder, mpeg2convert_rgb24, NULL ); break; case STATE_SLICE : // fprintf(stderr,"mpeg2_parse: %d\n", state ); case STATE_END : case STATE_INVALID_END : if( info->display_fbuf ) { struct timeval tv; double delta; gettimeofday( &tv, NULL ); delta = tv.tv_sec - Decoder.lastUpdate.tv_sec; delta += ((double)( tv.tv_usec - Decoder.lastUpdate.tv_usec )) / 1000000.0; ++Decoder.mpegFrameNo; // if( !( Decoder.mpegFrameNo % 100 ) ) { if( delta >= IMAGE_REFRESH_SEC ) { if( Decoder.enabled ) { UpdateImage( info->sequence->width, info->sequence->height, (Pixel_t *)info->display_fbuf->buf[0] ); } } } break; default : break; } } } /*------------------------------------------------------------------------------ MPEG2DEMUX- Linux!jef 2007/08/15 22:32:30 ------------------------------------------------------------------------------*/ static int _Mpeg2Demux( unsigned char * buffer, size_t size ) { static int state = DEMUX_SKIP; static int state_bytes = 0; static uint8_t head_buf[264]; uint8_t * end = buffer + size; uint8_t * header; int bytes; int len; #if DUMP_MPG if( Fp ) { fwrite( buffer, 1, size, Fp ); Mp2Size += size; if( Mp2Size >= MPG_SIZE ) { fclose( Fp ); Fp = NULL; } } #endif if( !Decoder.decoder ) return(0); switch (state) { case DEMUX_HEADER: if( state_bytes > 0 ) { header = head_buf; bytes = state_bytes; goto continue_header; } break; case DEMUX_DATA: if( state_bytes > end - buffer ) { Mpeg2Process( buffer, end); state_bytes -= end - buffer; return( 0 ); } Mpeg2Process( buffer, buffer + state_bytes ); buffer += state_bytes; break; case DEMUX_SKIP: if( state_bytes > end - buffer ) { state_bytes -= end - buffer; return( 0 ); } buffer += state_bytes; break; } while (1) { payload_start: header = buffer; bytes = end - buffer; continue_header: NEEDBYTES (4); if( header[0] || header[1] || (header[2] != 1)) { if (header != head_buf) { buffer++; goto payload_start; } else { header[0] = header[1]; header[1] = header[2]; header[2] = header[3]; bytes = 3; goto continue_header; } } switch (header[3]) { case 0xb9: /* program end code */ return( 1 ); case 0xba: /* pack header */ NEEDBYTES (5); if ((header[4] & 0xc0) == 0x40) { /* mpeg2 */ NEEDBYTES (14); len = 14 + (header[13] & 7); NEEDBYTES (len); DONEBYTES (len); /* header points to the mpeg2 pack header */ } else if ((header[4] & 0xf0) == 0x20) { /* mpeg1 */ NEEDBYTES (12); DONEBYTES (12); /* header points to the mpeg1 pack header */ } else { fprintf (stderr, "##weird pack header\n"); DONEBYTES (5); } break; default: if (header[3] == 0xe0 ) { NEEDBYTES (7); if ((header[6] & 0xc0) == 0x80) { /* mpeg2 */ NEEDBYTES (9); len = 9 + header[8]; NEEDBYTES (len); /* header points to the mpeg2 pes header */ if (header[7] & 0x80) { uint32_t pts, dts; pts = (((header[9] >> 1) << 30) | (header[10] << 22) | ((header[11] >> 1) << 15) | (header[12] << 7) | (header[13] >> 1)); dts = (!(header[7] & 0x40) ? pts : (((header[14] >> 1) << 30) | (header[15] << 22) | ((header[16] >> 1) << 15) | (header[17] << 7) | (header[18] >> 1))); mpeg2_tag_picture( Decoder.decoder, pts, dts); } } else { /* mpeg1 */ int len_skip; uint8_t * ptsbuf; len = 7; while (header[len - 1] == 0xff) { len++; NEEDBYTES (len); if (len > 23) { fprintf (stderr, "##too much stuffing\n"); break; } } if ((header[len - 1] & 0xc0) == 0x40) { len += 2; NEEDBYTES (len); } len_skip = len; len += mpeg1_skip_table[header[len - 1] >> 4]; NEEDBYTES (len); /* header points to the mpeg1 pes header */ ptsbuf = header + len_skip; if ((ptsbuf[-1] & 0xe0) == 0x20) { uint32_t pts, dts; pts = (((ptsbuf[-1] >> 1) << 30) | (ptsbuf[0] << 22) | ((ptsbuf[1] >> 1) << 15) | (ptsbuf[2] << 7) | (ptsbuf[3] >> 1)); dts = (((ptsbuf[-1] & 0xf0) != 0x30) ? pts : (((ptsbuf[4] >> 1) << 30) | (ptsbuf[5] << 22) | ((ptsbuf[6] >> 1) << 15) | (ptsbuf[7] << 7) | (ptsbuf[18] >> 1))); mpeg2_tag_picture( Decoder.decoder, pts, dts); } } DONEBYTES (len); bytes = 6 + (header[4] << 8) + header[5] - len; if( bytes > end - buffer ) { Mpeg2Process( buffer, end); state = DEMUX_DATA; state_bytes = bytes - (end - buffer); return( 0 ); } else if (bytes > 0) { Mpeg2Process(buffer, buffer + bytes); buffer += bytes; } } else if (header[3] < 0xb9) { fprintf (stderr,"##looks like a video stream, not system stream\n"); DONEBYTES (4); } else { NEEDBYTES (6); DONEBYTES (6); bytes = (header[4] << 8) + header[5]; if (bytes > end - buffer) { state = DEMUX_SKIP; state_bytes = bytes - (end - buffer); return( 0 ); } buffer += bytes; } } } return( 0 ); } /*------------------------------------------------------------------------------ MPEG2THREAD- Linux!jef 2007/08/20 21:18:24 ------------------------------------------------------------------------------*/ static void * Mpeg2Thread( void * arg ) { Decoder.decoder = mpeg2_init(); // fprintf(stderr,"accel=%d\n", mpeg2_accel(0)); Decoder.mpegFrameNo = 0; #if DUMP_MPG Fp = fopen( MPG_FILE, "w" ); Mp2Size = 0; #endif while( 1 ) { Buffer_t * b; sem_wait( &Decoder.wSem ); pthread_testcancel(); if( Decoder.head ) { pthread_mutex_lock( &Decoder.aMutex ); b = Decoder.head; Decoder.head = b->next; if( !Decoder.head ) Decoder.tail = NULL; pthread_mutex_unlock( &Decoder.aMutex ); if( b->size == -1 ) { free( b ); break; } _Mpeg2Demux( b->data, b->size ); Decoder.bufferReaded += b->size; free( b->data ); free( b ); } } if( Decoder.decoder ) { mpeg2_close( Decoder.decoder ); Decoder.decoder = NULL; } #if DUMP_MPG if( Fp ) { fclose( Fp ); Fp = NULL; } #endif // fprintf(stderr,"Buffered size: %lld\n", BufferedSize() ); unlink( PPM_FILE ); return( NULL ); } /*------------------------------------------------------------------------------ POSTBUFFER- Linux!jef 2007/08/20 21:32:51 ------------------------------------------------------------------------------*/ static void PostBuffer( Buffer_t * b ) { pthread_mutex_lock( &Decoder.aMutex ); Decoder.bufferWrited += b->size; if( !Decoder.head ) { Decoder.head = Decoder.tail = b; } else { Decoder.tail->next = b; Decoder.tail = b; } pthread_mutex_unlock( &Decoder.aMutex ); sem_post( &Decoder.wSem ); } /*------------------------------------------------------------------------------ MPEG2DEMUX- Linux!jef 2007/08/15 22:32:30 ------------------------------------------------------------------------------*/ int Mpeg2Demux( unsigned char * buffer, size_t size ) { if( Decoder.enabled && BufferedSize() < MAX_BUFFERED_SIZE ) { Buffer_t * b = (Buffer_t *)calloc( 1, sizeof( *b )); b->data = (unsigned char * )malloc( size ); tc_memcpy( b->data, buffer, size ); b->size = size; PostBuffer( b ); } return( 0 ); } /*------------------------------------------------------------------------------ MPEG2INIT- Linux!jef 2007/08/14 21:45:37 ------------------------------------------------------------------------------*/ void Mpeg2Init() { pthread_mutexattr_t attr; ImageReadyF = 0; Decoder.enabled = 0; Decoder.bufferReaded = Decoder.bufferWrited = 0; gettimeofday( &Decoder.lastUpdate, NULL ); sem_init( &Decoder.wSem, 0, 0 ); pthread_mutexattr_init( &attr ); pthread_mutex_init( &Decoder.aMutex, &attr ); pthread_create( &Decoder.thread, NULL, Mpeg2Thread, (void *)&Decoder ); } /*------------------------------------------------------------------------------ MPEG2SETSTATE- Linux!jef 2007/08/20 21:49:26 ------------------------------------------------------------------------------*/ void Mpeg2SetState( int state ) { Decoder.enabled = state; } /*------------------------------------------------------------------------------ MPEG2END- Linux!jef 2007/08/14 21:45:51 ------------------------------------------------------------------------------*/ void Mpeg2End() { Buffer_t * b = (Buffer_t *)calloc( 1, sizeof( *b )); b->size = -1; PostBuffer( b ); } #else /*------------------------------------------------------------------------------ MPEG2INIT- Linux!jef 2007/08/14 21:45:37 ------------------------------------------------------------------------------*/ void Mpeg2Init() { } /*------------------------------------------------------------------------------ MPEG2END- Linux!jef 2007/08/14 21:45:51 ------------------------------------------------------------------------------*/ void Mpeg2End() { } /*------------------------------------------------------------------------------ MPEG2PROCESS- Linux!jef 2007/08/14 21:46:49 ------------------------------------------------------------------------------*/ void Mpeg2Demux( unsigned char * buffer, size_t size ) { } /*------------------------------------------------------------------------------ MPEG2SETSTATE- Linux!jef 2007/08/20 21:49:26 ------------------------------------------------------------------------------*/ void Mpeg2SetState( int state ) { } #endif dvd95/src/mpeg2dec.h000066400000000000000000000015351140003301000144210ustar00rootroot00000000000000/*==========================[ (c) ALPHA SOFT ]================================== FICHIER : [mpeg2dec.h] DATE : 2007/08/0014 23:32:52 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __MPEG2DEC_H__ #define __MPEG2DEC_H__ #include /*@$#[mpeg2dec.c] global proto. AutoProtoSigV1.1. date: 2009/02/04 23:21:23 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* mpeg2dec.c */ int Mpeg2Demux PROTO((unsigned char *buffer, size_t size)); void Mpeg2Init PROTO((void)); void Mpeg2SetState PROTO((int state)); void Mpeg2End PROTO((void)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __MPEG2DEC_H__ */ dvd95/src/profile.c000066400000000000000000000307251140003301000143710ustar00rootroot00000000000000/***************************************************************************//** * @file profile.c * @date 2009/01/14 23:19:27 * @author jef-Linux * @brief * Brief description * @details * Released under GPL license, see gnu.org * encoding UTF8 !-UTF8-! * Long description *******************************************************************************/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "globals.h" #include "profile.h" #include "dvdformat.h" #include "systools.h" #define gettext_noop(x) x /*@$#[profile.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:21:36 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* profile.c */ static int VerifVideoCodec PROTO((Profile_t *p)); static int VerifAudioCodec PROTO((Profile_t *p)); static int VerifProfile PROTO((Profile_t *p)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ static Profile_t Profiles[] = { { DVD5, PROFILE_AVAIL_F | PROFILE_MULTI_AUDIO_F | PROFILE_HANDLE_SUBS_F, gettext_noop("DVD 4.7 GiO"), 0, 2, DVD5_WANTED_BYTES_LL, 0, "ac3", "mpeg2", "none", "", "", "mpeg", 0, 0 }, { DVD9, PROFILE_AVAIL_F | PROFILE_MULTI_AUDIO_F | PROFILE_HANDLE_SUBS_F, gettext_noop("DVD 8.5 GiO"), 0, 2, DVD5_WANTED_BYTES_LL, 0, "ac3", "mpeg2", "none", "", "", "mpeg", 0, 0 }, /* from http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-libavcodec.html AVGPSNR = 28.31 1H38 => 2H00 */ { AVI700, PROFILE_AVI_F, gettext_noop("AVI 700Mo mp3-128k MPEG4 2Pass"), 0.22, 2, 700 * 1024 * 1024, 128000, "mp3lame", "lavc", "mencoder", "\"%i\" -o /dev/null -passlogfile \"%p\" -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:vbitrate=%b:vpass=1:turbo -ofps 25.0 -aspect %a -oac copy -aid %A -vf crop=%c,scale=%x:%y", "\"%i\" -o \"%o\" -passlogfile \"%p\" -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2:vbitrate=%b:vpass=2 -ofps 25.0 -aspect %a -oac mp3lame -lameopts br=128:q=9:aq=9:cbr:mode=1 -vf crop=%c,scale=%x:%y", /* "\"%i\" -o /dev/null -passlogfile \"%p\" -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:vhq:vbitrate=%b:vpass=1:turbo -ofps 25.0 -aspect %a -oac mp3lame -lameopts br=128:q=9:aq=9:cbr:mode=1 -vf crop=%c,scale=%x:%y", "\"%i\" -o \"%o\" -passlogfile \"%p\" -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:mbd=2:trell:vbitrate=%b:vpass=2 -ofps 25.0 -aspect %a -oac mp3lame -lameopts br=128:q=9:aq=9:cbr:mode=1 -vf crop=%c,scale=%x:%y", */ "avi", 0.05, 0 }, { AVI700+1, PROFILE_AVI_F, gettext_noop("AVI 1Go mp3-128k MPEG4 1Pass"), 0.25, 1, 1000 * 1024 * 1024, 128000, "mp3lame", "lavc", "mencoder", "\"%i\" -o \"%o\" -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:vhq:vbitrate=%b -ofps 25.0 -aspect %a -oac mp3lame -lameopts br=128:q=9:aq=9:cbr:mode=1 -vf crop=%c,scale=%x:%y", "", "avi", 0.05, 1 }, /* From: http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-x264.html */ { AVI700+2, PROFILE_AVI_F, gettext_noop("AVI 1Go mp3-128k X264 1Pass"), 0.20, 1, 1000 * 1024 * 1024, 128000, "mp3lame", "x264", "mencoder", "\"%i\" -o \"%o\" -ovc x264 -x264encopts threads=%u:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid=normal:weight_b:bitrate=%b -ofps 25.0 -aspect %a -oac mp3lame -lameopts br=128:q=9:aq=9:cbr:mode=1 -vf crop=%c,scale=%x:%y", "", "avi", 0.05, 1 }, { AVI700+3, PROFILE_AVI_F, gettext_noop("AVI 1.5Go mp3-128k MPEG4 1Pass"), 0.30, 1, 1500 * 1024 * 1024, 128000, "mp3lame", "lavc", "mencoder", "\"%i\" -o \"%o\" -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:vhq:vbitrate=%b -ofps 25.0 -aspect %a -oac mp3lame -lameopts br=128:q=9:aq=9:cbr:mode=1 -vf crop=%c,scale=%x:%y", "", "avi", 0.05, 1 }, /* AVGPSNR= 41.42 1H38 => 20MN*/ { AVI700+4, PROFILE_AVI_F, gettext_noop("AVI 2Go AC3 MPEG4 1Pass"), 0.30, 1, 2000LL * 1024LL * 1024LL, -1, "copy", "lavc", "mencoder", "\"%i\" -o \"%o\" -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:vhq:vbitrate=%b -ofps 25.0 -aspect %a -oac copy -aid %A -vf crop=%c,scale=%x:%y", "", "avi", 0.05, 1 }, /* From: http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-x264.html */ { AVI700+5, PROFILE_AVI_F, gettext_noop("AVI 2Go AC3 X264 1Pass"), 0.20, 1, 2000LL * 1024LL * 1024LL, -1, "copy", "x264", "mencoder", "\"%i\" -o \"%o\" -ovc x264 -x264encopts threads=%u:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid=normal:weight_b:bitrate=%b -ofps 25.0 -aspect %a -oac copy -aid %A -vf crop=%c,scale=%x:%y", "", "avi", 0.05, 1 }, { AVI700+6, PROFILE_AVI_F, gettext_noop("PSP 300Mo"), 0.16, 1, 300 * 1024 * 1024, 24000, "faac", "mpeg4", "ffmpeg", //faac "\"%i\" -o \"%o\" -oac lavc -ovc lavc -of lavf -lavcopts threads=%u:aglobal=1:vglobal=1:vcodec=mpeg4:vbitrate=%b:acodec=libfaac -af lavcresample=24000 -vf harddup -vf crop=%c,scale=320:240 -lavfopts format=psp -ofps 30000/1001", "-i \"%i\" -y -threads %u -acodec libfaac -ab 128kb -vcodec mpeg4 -b %bkb -ar 24000 -mbd 2 -flags +4mv -trellis 2 -ac 2 -cmp 2 -subcmp 2 -s 320x240 -r 30000/1001 -f psp \"%o\"", "", "mp4", 0.05, 0 }, { AVI700+7, PROFILE_AVI_F, gettext_noop("PSP 500Mo"), 0.16, 1, 500 * 1024 * 1024, 24000, "faac", "mpeg4", "ffmpeg", //faac "\"%i\" -o \"%o\" -oac lavc -ovc lavc -of lavf -lavcopts threads=%u:aglobal=1:vglobal=1:vcodec=mpeg4:vbitrate=%b:acodec=libfaac -af lavcresample=24000 -vf harddup -vf crop=%c,scale=320:240 -lavfopts format=psp -ofps 30000/1001", "-i \"%i\" -y -threads %u -acodec libfaac -ab 128kb -vcodec mpeg4 -b %bkb -ar 24000 -mbd 2 -flags +4mv -trellis 2 -ac 2 -cmp 2 -subcmp 2 -s 320x240 -r 30000/1001 -f psp \"%o\"", "", "mp4", 0.05, 0 }, /* From: http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-x264.html */ { AVI700+8, PROFILE_AVI_F, gettext_noop("AVI 2Go AC3 X264 2Pass High Quality"), 0.20, 2, 2000LL * 1024LL * 1024LL, -1, "copy", "x264", "mencoder", "\"%i\" -o /dev/null -passlogfile \"%p\" -ovc x264 -x264encopts threads=auto:subq=1:frameref=1:bframes=3:bitrate=%b:pass=1 -ofps 25.0 -aspect %a -oac copy -vf crop=%c,scale=%x:%y", "\"%i\" -o \"%o\" -passlogfile \"%p\" -ovc x264 -x264encopts threads=auto:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid=normal:weight_b:bitrate=%b:pass=2 -ofps 25.0 -aspect %a -oac copy -vf crop=%c,scale=%x:%y", "avi", 0.05, 0 }, /* AVGPSNR= 40.61 1H38=20MN*/ { AVI700+9, PROFILE_AVI_F, gettext_noop("AVI 1.5Go AC3 MPEG4 1Pass"), 0.30, 1, 1500 * 1024 * 1024, -1, "copy", "lavc", "mencoder", "\"%i\" -o \"%o\" -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:vhq:vbitrate=%b -ofps 25.0 -aspect %a -oac copy -aid %A -vf crop=%c,scale=%x:%y", "", "avi", 0.05, 1 }, /* From: http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-x264.html AVGPSNR=41.33 1H38 => 2H00*/ { AVI700+10, PROFILE_AVI_F, gettext_noop("AVI 1.5Go AC3 X264 1Pass"), 0.20, 1, 1500 * 1024 * 1024, -1, "copy", "x264", "mencoder", "\"%i\" -o \"%o\" -ovc x264 -x264encopts threads=%u:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid=normal:weight_b:bitrate=%b -ofps 25.0 -aspect %a -oac copy -aid %A -vf crop=%c,scale=%x:%y", "", "avi", 0.05, 1 }, { /* for very long movies */ AVI700+11, PROFILE_AVI_F, gettext_noop("AVI 2.5Go AC3 MPEG4 1Pass"), 0.30, 1, 2500LL * 1024LL * 1024LL, -1, "copy", "lavc", "mencoder", "\"%i\" -o \"%o\" -ovc lavc -lavcopts threads=%u:vcodec=mpeg4:autoaspect:vhq:vbitrate=%b -ofps 25.0 -aspect %a -oac copy -aid %A -vf crop=%c,scale=%x:%y", "", "avi", 0.05, 1 }, { -1 } }; /***************************************************************************//** * GETPROFILES- * @date 2009/01/14 23:26:01 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ Profile_t * GetProfiles() { return( Profiles ); } /***************************************************************************//** * GETPROFILE- * @date 2009/01/14 23:34:06 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ Profile_t * GetProfile( int profileCode ) { Profile_t * p = Profiles; while( p->profileCode != -1 ) { if( p->profileCode == profileCode ) return( p ); p++; } return( NULL ); } /***************************************************************************//** * VERIFVIDEOCODEC- * @date 2009/01/22 21:18:25 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static int VerifVideoCodec( Profile_t * p ) { char sysCmd[1024]; FILE * fp; char line[1024]; int res = 0; /* Assuming encTool is mencoder */ if( !strcmp( p->encTool, "mencoder" ) ) { sprintf( sysCmd, "%s -ovc help | grep %s", p->encTool, p->videoCodec ); fp = popen( sysCmd, "r" ); if( !fp ) return( 0 ); while( 1 ) { if( !fgets( line, sizeof(line), fp ) ) break; if( strstr( line, p->videoCodec ) ) { res = 1; break; } } pclose( fp ); return( res ); } /* Assuming encTool is ffmpeg */ if( !strcmp( p->encTool, "ffmpeg" ) ) { sprintf( sysCmd, "%s -formats 2>&1 | grep %s | grep EV", p->encTool, p->videoCodec ); fp = popen( sysCmd, "r" ); if( !fp ) return( 0 ); while( 1 ) { if( !fgets( line, sizeof(line), fp ) ) break; if( strstr( line, p->videoCodec ) ) { res = 1; break; } } pclose( fp ); return( res ); } return( 0 ); } /***************************************************************************//** * VERIFAUDIOCODEC- * @date 2009/01/22 21:18:25 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static int VerifAudioCodec( Profile_t * p ) { char sysCmd[1024]; FILE * fp; char line[1024]; int res = 0; /* Assuming encTool is mencoder */ if( !strcmp( p->encTool, "mencoder" ) ) { sprintf( sysCmd, "%s -oac help | grep %s", p->encTool, p->audioCodec ); fp = popen( sysCmd, "r" ); if( !fp ) return( 0 ); while( 1 ) { if( !fgets( line, sizeof(line), fp ) ) break; if( strstr( line, p->audioCodec ) ) { res = 1; break; } } pclose( fp ); return( res ); } /* Assuming encTool is ffmpeg */ if( !strcmp( p->encTool, "ffmpeg" ) ) { sprintf( sysCmd, "%s -formats 2>&1 | grep %s | grep EV", p->encTool, p->videoCodec ); fp = popen( sysCmd, "r" ); if( !fp ) return( 0 ); while( 1 ) { if( !fgets( line, sizeof(line), fp ) ) break; if( strstr( line, p->videoCodec ) ) { res = 1; break; } } pclose( fp ); return( res ); } return( 0 ); } /***************************************************************************//** * VERIFPROFILE- * @date 2009/01/21 23:32:46 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ static int VerifProfile( Profile_t * p ) { if( ! (p->profileFlags & PROFILE_AVI_F) ) return( 1 ); if( !flook( "mplayer" ) ) return( 0 ); if( !flook( p->encTool ) ) return( 0 ); if( !VerifVideoCodec( p ) ) { DBG('b',fprintf(stderr,"%s: profile %s videoCodec: %s notfound !\n", __FUNCTION__, p->libel, p->videoCodec );); return( 0 ); } if( !VerifAudioCodec( p ) ) { DBG('b',fprintf(stderr,"%s: profile %s audioCodec: %s notfound !\n", __FUNCTION__, p->libel, p->audioCodec );); return( 0 ); } return( 1 ); } /***************************************************************************//** * INITPROFILES- * @date 2009/01/21 21:27:59 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ void InitProfiles() { Profile_t * p = Profiles; while( p->profileCode != -1 ) { if( VerifProfile( p ) ) p->profileFlags |= PROFILE_AVAIL_F; p->libel = gettext( p->libel ); p++; } } dvd95/src/profile.h000066400000000000000000000024221140003301000143670ustar00rootroot00000000000000/***************************************************************************//** * @file profile.h * @date 2009/01/14 23:17:09 * @author jef-Linux * @brief * Brief description * @details * Released under GPL license, see gnu.org * encoding UTF8 !-UTF8-! * Long description *******************************************************************************/ #ifndef __PROFILE_H__ #define __PROFILE_H__ typedef struct { int profileCode; int profileFlags; char * libel; double cq; /* Quality factor */ int passNb; /* Pass number */ long long fileSize; int audioBitrate; char * audioCodec; char * videoCodec; char * encTool; char * pass1Opt; char * pass2Opt; char * extension; double overhead; /* Container overhead */ int useFifo; } Profile_t; #define PROFILE_AVAIL_F 0x01 #define PROFILE_AVI_F 0x02 #define PROFILE_MULTI_AUDIO_F 0x04 #define PROFILE_HANDLE_SUBS_F 0x08 /*@$#[profile.c] global proto. AutoProtoSigV1.1. date: 2009/02/04 23:21:44 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* profile.c */ Profile_t *GetProfiles PROTO((void)); Profile_t *GetProfile PROTO((int profileCode)); void InitProfiles PROTO((void)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __PROFILE_H__ */ dvd95/src/proto.h000066400000000000000000000007741140003301000141020ustar00rootroot00000000000000/*============================================================================== FICHIER : [proto.h] DATE : 95/09/08 22:16:51 CREATEUR : [JEF!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef _PROTO_H_ #define _PROTO_H_ #ifndef PROTO # ifndef _NO_PROTOTYPE # define PROTO( x ) x # else # define PROTO( x ) # endif #endif #endif /* _PROTO_H_ */ dvd95/src/putvlc.h000066400000000000000000000215431140003301000142510ustar00rootroot00000000000000// put blk /* type definitions for variable length code table entries */ typedef struct { unsigned char code; /* right justified */ char len; } VLCtable; /* for codes longer than 8 bits (excluding leading zeroes) */ typedef struct { unsigned short code; /* right justified */ char len; } sVLCtable; /* Table B-2, B-3, B-4 variable length codes for macroblock_type * * indexed by [macroblock_type] */ const static VLCtable mbtypetab[3][32]= { /* I */ { {0,0}, {1,1}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {1,2}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0} }, /* P */ { {0,0}, {3,5}, {1,2}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {1,3}, {0,0}, {1,1}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {1,6}, {1,5}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0}, {2,5}, {0,0}, {0,0}, {0,0}, {0,0}, {0,0} }, /* B */ { {0,0}, {3,5}, {0,0}, {0,0}, {2,3}, {0,0}, {3,3}, {0,0}, {2,4}, {0,0}, {3,4}, {0,0}, {2,2}, {0,0}, {3,2}, {0,0}, {0,0}, {1,6}, {0,0}, {0,0}, {0,0}, {0,0}, {2,6}, {0,0}, {0,0}, {0,0}, {3,6}, {0,0}, {0,0}, {0,0}, {2,5}, {0,0} } }; /* Table B-5 ... B-8 variable length codes for macroblock_type in * scalable sequences * * not implemented */ /* Table B-9, variable length codes for coded_block_pattern * * indexed by [coded_block_pattern] */ const static VLCtable cbptable[64]= { {0x01,9}, {0x0b,5}, {0x09,5}, {0x0d,6}, {0x0d,4}, {0x17,7}, {0x13,7}, {0x1f,8}, {0x0c,4}, {0x16,7}, {0x12,7}, {0x1e,8}, {0x13,5}, {0x1b,8}, {0x17,8}, {0x13,8}, {0x0b,4}, {0x15,7}, {0x11,7}, {0x1d,8}, {0x11,5}, {0x19,8}, {0x15,8}, {0x11,8}, {0x0f,6}, {0x0f,8}, {0x0d,8}, {0x03,9}, {0x0f,5}, {0x0b,8}, {0x07,8}, {0x07,9}, {0x0a,4}, {0x14,7}, {0x10,7}, {0x1c,8}, {0x0e,6}, {0x0e,8}, {0x0c,8}, {0x02,9}, {0x10,5}, {0x18,8}, {0x14,8}, {0x10,8}, {0x0e,5}, {0x0a,8}, {0x06,8}, {0x06,9}, {0x12,5}, {0x1a,8}, {0x16,8}, {0x12,8}, {0x0d,5}, {0x09,8}, {0x05,8}, {0x05,9}, {0x0c,5}, {0x08,8}, {0x04,8}, {0x04,9}, {0x07,3}, {0x0a,5}, {0x08,5}, {0x0c,6} }; /* Table B-14, DCT coefficients table zero * * indexed by [run][level-1] * split into two tables (dct_code_tab1, dct_code_tab2) to reduce size * 'first DCT coefficient' condition and 'End of Block' are treated elsewhere * codes do not include s (sign bit) */ const static VLCtable dct_code_tab1[2][40]= { /* run = 0, level = 1...40 */ { {0x03, 2}, {0x04, 4}, {0x05, 5}, {0x06, 7}, {0x26, 8}, {0x21, 8}, {0x0a,10}, {0x1d,12}, {0x18,12}, {0x13,12}, {0x10,12}, {0x1a,13}, {0x19,13}, {0x18,13}, {0x17,13}, {0x1f,14}, {0x1e,14}, {0x1d,14}, {0x1c,14}, {0x1b,14}, {0x1a,14}, {0x19,14}, {0x18,14}, {0x17,14}, {0x16,14}, {0x15,14}, {0x14,14}, {0x13,14}, {0x12,14}, {0x11,14}, {0x10,14}, {0x18,15}, {0x17,15}, {0x16,15}, {0x15,15}, {0x14,15}, {0x13,15}, {0x12,15}, {0x11,15}, {0x10,15} }, /* run = 1, level = 1...18 */ { {0x03, 3}, {0x06, 6}, {0x25, 8}, {0x0c,10}, {0x1b,12}, {0x16,13}, {0x15,13}, {0x1f,15}, {0x1e,15}, {0x1d,15}, {0x1c,15}, {0x1b,15}, {0x1a,15}, {0x19,15}, {0x13,16}, {0x12,16}, {0x11,16}, {0x10,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0} } }; const static VLCtable dct_code_tab2[30][5]= { /* run = 2...31, level = 1...5 */ {{0x05, 4}, {0x04, 7}, {0x0b,10}, {0x14,12}, {0x14,13}}, {{0x07, 5}, {0x24, 8}, {0x1c,12}, {0x13,13}, {0x00, 0}}, {{0x06, 5}, {0x0f,10}, {0x12,12}, {0x00, 0}, {0x00, 0}}, {{0x07, 6}, {0x09,10}, {0x12,13}, {0x00, 0}, {0x00, 0}}, {{0x05, 6}, {0x1e,12}, {0x14,16}, {0x00, 0}, {0x00, 0}}, {{0x04, 6}, {0x15,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x07, 7}, {0x11,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x05, 7}, {0x11,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x27, 8}, {0x10,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x23, 8}, {0x1a,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x22, 8}, {0x19,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x20, 8}, {0x18,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x0e,10}, {0x17,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x0d,10}, {0x16,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x08,10}, {0x15,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1f,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1a,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x19,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x17,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x16,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1f,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1e,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1d,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1c,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1b,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1f,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1e,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1d,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1c,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1b,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}} }; /* Table B-15, DCT coefficients table one * * indexed by [run][level-1] * split into two tables (dct_code_tab1a, dct_code_tab2a) to reduce size * 'End of Block' is treated elsewhere * codes do not include s (sign bit) */ const static VLCtable dct_code_tab1a[2][40]= { /* run = 0, level = 1...40 */ { {0x02, 2}, {0x06, 3}, {0x07, 4}, {0x1c, 5}, {0x1d, 5}, {0x05, 6}, {0x04, 6}, {0x7b, 7}, {0x7c, 7}, {0x23, 8}, {0x22, 8}, {0xfa, 8}, {0xfb, 8}, {0xfe, 8}, {0xff, 8}, {0x1f,14}, {0x1e,14}, {0x1d,14}, {0x1c,14}, {0x1b,14}, {0x1a,14}, {0x19,14}, {0x18,14}, {0x17,14}, {0x16,14}, {0x15,14}, {0x14,14}, {0x13,14}, {0x12,14}, {0x11,14}, {0x10,14}, {0x18,15}, {0x17,15}, {0x16,15}, {0x15,15}, {0x14,15}, {0x13,15}, {0x12,15}, {0x11,15}, {0x10,15} }, /* run = 1, level = 1...18 */ { {0x02, 3}, {0x06, 5}, {0x79, 7}, {0x27, 8}, {0x20, 8}, {0x16,13}, {0x15,13}, {0x1f,15}, {0x1e,15}, {0x1d,15}, {0x1c,15}, {0x1b,15}, {0x1a,15}, {0x19,15}, {0x13,16}, {0x12,16}, {0x11,16}, {0x10,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0} } }; const static VLCtable dct_code_tab2a[30][5]= { /* run = 2...31, level = 1...5 */ {{0x05, 5}, {0x07, 7}, {0xfc, 8}, {0x0c,10}, {0x14,13}}, {{0x07, 5}, {0x26, 8}, {0x1c,12}, {0x13,13}, {0x00, 0}}, {{0x06, 6}, {0xfd, 8}, {0x12,12}, {0x00, 0}, {0x00, 0}}, {{0x07, 6}, {0x04, 9}, {0x12,13}, {0x00, 0}, {0x00, 0}}, {{0x06, 7}, {0x1e,12}, {0x14,16}, {0x00, 0}, {0x00, 0}}, {{0x04, 7}, {0x15,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x05, 7}, {0x11,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x78, 7}, {0x11,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x7a, 7}, {0x10,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x21, 8}, {0x1a,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x25, 8}, {0x19,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x24, 8}, {0x18,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x05, 9}, {0x17,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x07, 9}, {0x16,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x0d,10}, {0x15,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1f,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1a,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x19,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x17,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x16,12}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1f,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1e,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1d,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1c,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1b,13}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1f,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1e,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1d,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1c,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}}, {{0x1b,16}, {0x00, 0}, {0x00, 0}, {0x00, 0}, {0x00, 0}} }; const static VLCtable addrinctab[33]= { {0x01,1}, {0x03,3}, {0x02,3}, {0x03,4}, {0x02,4}, {0x03,5}, {0x02,5}, {0x07,7}, {0x06,7}, {0x0b,8}, {0x0a,8}, {0x09,8}, {0x08,8}, {0x07,8}, {0x06,8}, {0x17,10}, {0x16,10}, {0x15,10}, {0x14,10}, {0x13,10}, {0x12,10}, {0x23,11}, {0x22,11}, {0x21,11}, {0x20,11}, {0x1f,11}, {0x1e,11}, {0x1d,11}, {0x1c,11}, {0x1b,11}, {0x1a,11}, {0x19,11}, {0x18,11} }; const static sVLCtable DClumtab[12]= { {0x0004,3}, {0x0000,2}, {0x0001,2}, {0x0005,3}, {0x0006,3}, {0x000e,4}, {0x001e,5}, {0x003e,6}, {0x007e,7}, {0x00fe,8}, {0x01fe,9}, {0x01ff,9} }; dvd95/src/qTable.h000066400000000000000000001720441140003301000141470ustar00rootroot00000000000000static short quant_equ[113] = { 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 30, 30, 31, 31, 32, 32, 33, 33, 34, 34, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41 }; static short quant_table_1_to_2[4096]; static short quant_table_1_to_3[4096]; static short quant_table_1_to_4[4096]; static short quant_table_1_to_5[4096]; static short quant_table_1_to_6[4096]; static short quant_table_1_to_7[4096]; static short quant_table_1_to_8[4096]; static short quant_table_1_to_10[4096]; static short quant_table_1_to_12[4096]; static short quant_table_1_to_14[4096]; static short quant_table_1_to_16[4096]; static short quant_table_1_to_18[4096]; static short quant_table_1_to_20[4096]; static short quant_table_1_to_22[4096]; static short quant_table_1_to_24[4096]; static short quant_table_1_to_26[4096]; static short quant_table_1_to_28[4096]; static short quant_table_1_to_30[4096]; static short quant_table_1_to_32[4096]; static short quant_table_1_to_34[4096]; static short quant_table_1_to_36[4096]; static short quant_table_1_to_38[4096]; static short quant_table_1_to_40[4096]; static short quant_table_1_to_42[4096]; static short quant_table_1_to_44[4096]; static short quant_table_1_to_46[4096]; static short quant_table_1_to_48[4096]; static short quant_table_1_to_50[4096]; static short quant_table_1_to_52[4096]; static short quant_table_1_to_54[4096]; static short quant_table_1_to_56[4096]; static short quant_table_1_to_58[4096]; static short quant_table_1_to_60[4096]; static short quant_table_1_to_62[4096]; static short quant_table_1_to_64[4096]; static short quant_table_1_to_72[4096]; static short quant_table_1_to_80[4096]; static short quant_table_1_to_88[4096]; static short quant_table_1_to_96[4096]; static short quant_table_1_to_104[4096]; static short quant_table_1_to_112[4096]; static short quant_table_2_to_3[4096]; static short quant_table_2_to_4[4096]; static short quant_table_2_to_5[4096]; static short quant_table_2_to_6[4096]; static short quant_table_2_to_7[4096]; static short quant_table_2_to_8[4096]; static short quant_table_2_to_10[4096]; static short quant_table_2_to_12[4096]; static short quant_table_2_to_14[4096]; static short quant_table_2_to_16[4096]; static short quant_table_2_to_18[4096]; static short quant_table_2_to_20[4096]; static short quant_table_2_to_22[4096]; static short quant_table_2_to_24[4096]; static short quant_table_2_to_26[4096]; static short quant_table_2_to_28[4096]; static short quant_table_2_to_30[4096]; static short quant_table_2_to_32[4096]; static short quant_table_2_to_34[4096]; static short quant_table_2_to_36[4096]; static short quant_table_2_to_38[4096]; static short quant_table_2_to_40[4096]; static short quant_table_2_to_42[4096]; static short quant_table_2_to_44[4096]; static short quant_table_2_to_46[4096]; static short quant_table_2_to_48[4096]; static short quant_table_2_to_50[4096]; static short quant_table_2_to_52[4096]; static short quant_table_2_to_54[4096]; static short quant_table_2_to_56[4096]; static short quant_table_2_to_58[4096]; static short quant_table_2_to_60[4096]; static short quant_table_2_to_62[4096]; static short quant_table_2_to_64[4096]; static short quant_table_2_to_72[4096]; static short quant_table_2_to_80[4096]; static short quant_table_2_to_88[4096]; static short quant_table_2_to_96[4096]; static short quant_table_2_to_104[4096]; static short quant_table_2_to_112[4096]; static short quant_table_3_to_4[4096]; static short quant_table_3_to_5[4096]; static short quant_table_3_to_6[4096]; static short quant_table_3_to_7[4096]; static short quant_table_3_to_8[4096]; static short quant_table_3_to_10[4096]; static short quant_table_3_to_12[4096]; static short quant_table_3_to_14[4096]; static short quant_table_3_to_16[4096]; static short quant_table_3_to_18[4096]; static short quant_table_3_to_20[4096]; static short quant_table_3_to_22[4096]; static short quant_table_3_to_24[4096]; static short quant_table_3_to_26[4096]; static short quant_table_3_to_28[4096]; static short quant_table_3_to_30[4096]; static short quant_table_3_to_32[4096]; static short quant_table_3_to_34[4096]; static short quant_table_3_to_36[4096]; static short quant_table_3_to_38[4096]; static short quant_table_3_to_40[4096]; static short quant_table_3_to_42[4096]; static short quant_table_3_to_44[4096]; static short quant_table_3_to_46[4096]; static short quant_table_3_to_48[4096]; static short quant_table_3_to_50[4096]; static short quant_table_3_to_52[4096]; static short quant_table_3_to_54[4096]; static short quant_table_3_to_56[4096]; static short quant_table_3_to_58[4096]; static short quant_table_3_to_60[4096]; static short quant_table_3_to_62[4096]; static short quant_table_3_to_64[4096]; static short quant_table_3_to_72[4096]; static short quant_table_3_to_80[4096]; static short quant_table_3_to_88[4096]; static short quant_table_3_to_96[4096]; static short quant_table_3_to_104[4096]; static short quant_table_3_to_112[4096]; static short quant_table_4_to_5[4096]; static short quant_table_4_to_6[4096]; static short quant_table_4_to_7[4096]; static short quant_table_4_to_8[4096]; static short quant_table_4_to_10[4096]; static short quant_table_4_to_12[4096]; static short quant_table_4_to_14[4096]; static short quant_table_4_to_16[4096]; static short quant_table_4_to_18[4096]; static short quant_table_4_to_20[4096]; static short quant_table_4_to_22[4096]; static short quant_table_4_to_24[4096]; static short quant_table_4_to_26[4096]; static short quant_table_4_to_28[4096]; static short quant_table_4_to_30[4096]; static short quant_table_4_to_32[4096]; static short quant_table_4_to_34[4096]; static short quant_table_4_to_36[4096]; static short quant_table_4_to_38[4096]; static short quant_table_4_to_40[4096]; static short quant_table_4_to_42[4096]; static short quant_table_4_to_44[4096]; static short quant_table_4_to_46[4096]; static short quant_table_4_to_48[4096]; static short quant_table_4_to_50[4096]; static short quant_table_4_to_52[4096]; static short quant_table_4_to_54[4096]; static short quant_table_4_to_56[4096]; static short quant_table_4_to_58[4096]; static short quant_table_4_to_60[4096]; static short quant_table_4_to_62[4096]; static short quant_table_4_to_64[4096]; static short quant_table_4_to_72[4096]; static short quant_table_4_to_80[4096]; static short quant_table_4_to_88[4096]; static short quant_table_4_to_96[4096]; static short quant_table_4_to_104[4096]; static short quant_table_4_to_112[4096]; static short quant_table_5_to_6[4096]; static short quant_table_5_to_7[4096]; static short quant_table_5_to_8[4096]; static short quant_table_5_to_10[4096]; static short quant_table_5_to_12[4096]; static short quant_table_5_to_14[4096]; static short quant_table_5_to_16[4096]; static short quant_table_5_to_18[4096]; static short quant_table_5_to_20[4096]; static short quant_table_5_to_22[4096]; static short quant_table_5_to_24[4096]; static short quant_table_5_to_26[4096]; static short quant_table_5_to_28[4096]; static short quant_table_5_to_30[4096]; static short quant_table_5_to_32[4096]; static short quant_table_5_to_34[4096]; static short quant_table_5_to_36[4096]; static short quant_table_5_to_38[4096]; static short quant_table_5_to_40[4096]; static short quant_table_5_to_42[4096]; static short quant_table_5_to_44[4096]; static short quant_table_5_to_46[4096]; static short quant_table_5_to_48[4096]; static short quant_table_5_to_50[4096]; static short quant_table_5_to_52[4096]; static short quant_table_5_to_54[4096]; static short quant_table_5_to_56[4096]; static short quant_table_5_to_58[4096]; static short quant_table_5_to_60[4096]; static short quant_table_5_to_62[4096]; static short quant_table_5_to_64[4096]; static short quant_table_5_to_72[4096]; static short quant_table_5_to_80[4096]; static short quant_table_5_to_88[4096]; static short quant_table_5_to_96[4096]; static short quant_table_5_to_104[4096]; static short quant_table_5_to_112[4096]; static short quant_table_6_to_7[4096]; static short quant_table_6_to_8[4096]; static short quant_table_6_to_10[4096]; static short quant_table_6_to_12[4096]; static short quant_table_6_to_14[4096]; static short quant_table_6_to_16[4096]; static short quant_table_6_to_18[4096]; static short quant_table_6_to_20[4096]; static short quant_table_6_to_22[4096]; static short quant_table_6_to_24[4096]; static short quant_table_6_to_26[4096]; static short quant_table_6_to_28[4096]; static short quant_table_6_to_30[4096]; static short quant_table_6_to_32[4096]; static short quant_table_6_to_34[4096]; static short quant_table_6_to_36[4096]; static short quant_table_6_to_38[4096]; static short quant_table_6_to_40[4096]; static short quant_table_6_to_42[4096]; static short quant_table_6_to_44[4096]; static short quant_table_6_to_46[4096]; static short quant_table_6_to_48[4096]; static short quant_table_6_to_50[4096]; static short quant_table_6_to_52[4096]; static short quant_table_6_to_54[4096]; static short quant_table_6_to_56[4096]; static short quant_table_6_to_58[4096]; static short quant_table_6_to_60[4096]; static short quant_table_6_to_62[4096]; static short quant_table_6_to_64[4096]; static short quant_table_6_to_72[4096]; static short quant_table_6_to_80[4096]; static short quant_table_6_to_88[4096]; static short quant_table_6_to_96[4096]; static short quant_table_6_to_104[4096]; static short quant_table_6_to_112[4096]; static short quant_table_7_to_8[4096]; static short quant_table_7_to_10[4096]; static short quant_table_7_to_12[4096]; static short quant_table_7_to_14[4096]; static short quant_table_7_to_16[4096]; static short quant_table_7_to_18[4096]; static short quant_table_7_to_20[4096]; static short quant_table_7_to_22[4096]; static short quant_table_7_to_24[4096]; static short quant_table_7_to_26[4096]; static short quant_table_7_to_28[4096]; static short quant_table_7_to_30[4096]; static short quant_table_7_to_32[4096]; static short quant_table_7_to_34[4096]; static short quant_table_7_to_36[4096]; static short quant_table_7_to_38[4096]; static short quant_table_7_to_40[4096]; static short quant_table_7_to_42[4096]; static short quant_table_7_to_44[4096]; static short quant_table_7_to_46[4096]; static short quant_table_7_to_48[4096]; static short quant_table_7_to_50[4096]; static short quant_table_7_to_52[4096]; static short quant_table_7_to_54[4096]; static short quant_table_7_to_56[4096]; static short quant_table_7_to_58[4096]; static short quant_table_7_to_60[4096]; static short quant_table_7_to_62[4096]; static short quant_table_7_to_64[4096]; static short quant_table_7_to_72[4096]; static short quant_table_7_to_80[4096]; static short quant_table_7_to_88[4096]; static short quant_table_7_to_96[4096]; static short quant_table_7_to_104[4096]; static short quant_table_7_to_112[4096]; static short quant_table_8_to_10[4096]; static short quant_table_8_to_12[4096]; static short quant_table_8_to_14[4096]; static short quant_table_8_to_16[4096]; static short quant_table_8_to_18[4096]; static short quant_table_8_to_20[4096]; static short quant_table_8_to_22[4096]; static short quant_table_8_to_24[4096]; static short quant_table_8_to_26[4096]; static short quant_table_8_to_28[4096]; static short quant_table_8_to_30[4096]; static short quant_table_8_to_32[4096]; static short quant_table_8_to_34[4096]; static short quant_table_8_to_36[4096]; static short quant_table_8_to_38[4096]; static short quant_table_8_to_40[4096]; static short quant_table_8_to_42[4096]; static short quant_table_8_to_44[4096]; static short quant_table_8_to_46[4096]; static short quant_table_8_to_48[4096]; static short quant_table_8_to_50[4096]; static short quant_table_8_to_52[4096]; static short quant_table_8_to_54[4096]; static short quant_table_8_to_56[4096]; static short quant_table_8_to_58[4096]; static short quant_table_8_to_60[4096]; static short quant_table_8_to_62[4096]; static short quant_table_8_to_64[4096]; static short quant_table_8_to_72[4096]; static short quant_table_8_to_80[4096]; static short quant_table_8_to_88[4096]; static short quant_table_8_to_96[4096]; static short quant_table_8_to_104[4096]; static short quant_table_8_to_112[4096]; static short quant_table_10_to_12[4096]; static short quant_table_10_to_14[4096]; static short quant_table_10_to_16[4096]; static short quant_table_10_to_18[4096]; static short quant_table_10_to_20[4096]; static short quant_table_10_to_22[4096]; static short quant_table_10_to_24[4096]; static short quant_table_10_to_26[4096]; static short quant_table_10_to_28[4096]; static short quant_table_10_to_30[4096]; static short quant_table_10_to_32[4096]; static short quant_table_10_to_34[4096]; static short quant_table_10_to_36[4096]; static short quant_table_10_to_38[4096]; static short quant_table_10_to_40[4096]; static short quant_table_10_to_42[4096]; static short quant_table_10_to_44[4096]; static short quant_table_10_to_46[4096]; static short quant_table_10_to_48[4096]; static short quant_table_10_to_50[4096]; static short quant_table_10_to_52[4096]; static short quant_table_10_to_54[4096]; static short quant_table_10_to_56[4096]; static short quant_table_10_to_58[4096]; static short quant_table_10_to_60[4096]; static short quant_table_10_to_62[4096]; static short quant_table_10_to_64[4096]; static short quant_table_10_to_72[4096]; static short quant_table_10_to_80[4096]; static short quant_table_10_to_88[4096]; static short quant_table_10_to_96[4096]; static short quant_table_10_to_104[4096]; static short quant_table_10_to_112[4096]; static short quant_table_12_to_14[4096]; static short quant_table_12_to_16[4096]; static short quant_table_12_to_18[4096]; static short quant_table_12_to_20[4096]; static short quant_table_12_to_22[4096]; static short quant_table_12_to_24[4096]; static short quant_table_12_to_26[4096]; static short quant_table_12_to_28[4096]; static short quant_table_12_to_30[4096]; static short quant_table_12_to_32[4096]; static short quant_table_12_to_34[4096]; static short quant_table_12_to_36[4096]; static short quant_table_12_to_38[4096]; static short quant_table_12_to_40[4096]; static short quant_table_12_to_42[4096]; static short quant_table_12_to_44[4096]; static short quant_table_12_to_46[4096]; static short quant_table_12_to_48[4096]; static short quant_table_12_to_50[4096]; static short quant_table_12_to_52[4096]; static short quant_table_12_to_54[4096]; static short quant_table_12_to_56[4096]; static short quant_table_12_to_58[4096]; static short quant_table_12_to_60[4096]; static short quant_table_12_to_62[4096]; static short quant_table_12_to_64[4096]; static short quant_table_12_to_72[4096]; static short quant_table_12_to_80[4096]; static short quant_table_12_to_88[4096]; static short quant_table_12_to_96[4096]; static short quant_table_12_to_104[4096]; static short quant_table_12_to_112[4096]; static short quant_table_14_to_16[4096]; static short quant_table_14_to_18[4096]; static short quant_table_14_to_20[4096]; static short quant_table_14_to_22[4096]; static short quant_table_14_to_24[4096]; static short quant_table_14_to_26[4096]; static short quant_table_14_to_28[4096]; static short quant_table_14_to_30[4096]; static short quant_table_14_to_32[4096]; static short quant_table_14_to_34[4096]; static short quant_table_14_to_36[4096]; static short quant_table_14_to_38[4096]; static short quant_table_14_to_40[4096]; static short quant_table_14_to_42[4096]; static short quant_table_14_to_44[4096]; static short quant_table_14_to_46[4096]; static short quant_table_14_to_48[4096]; static short quant_table_14_to_50[4096]; static short quant_table_14_to_52[4096]; static short quant_table_14_to_54[4096]; static short quant_table_14_to_56[4096]; static short quant_table_14_to_58[4096]; static short quant_table_14_to_60[4096]; static short quant_table_14_to_62[4096]; static short quant_table_14_to_64[4096]; static short quant_table_14_to_72[4096]; static short quant_table_14_to_80[4096]; static short quant_table_14_to_88[4096]; static short quant_table_14_to_96[4096]; static short quant_table_14_to_104[4096]; static short quant_table_14_to_112[4096]; static short quant_table_16_to_18[4096]; static short quant_table_16_to_20[4096]; static short quant_table_16_to_22[4096]; static short quant_table_16_to_24[4096]; static short quant_table_16_to_26[4096]; static short quant_table_16_to_28[4096]; static short quant_table_16_to_30[4096]; static short quant_table_16_to_32[4096]; static short quant_table_16_to_34[4096]; static short quant_table_16_to_36[4096]; static short quant_table_16_to_38[4096]; static short quant_table_16_to_40[4096]; static short quant_table_16_to_42[4096]; static short quant_table_16_to_44[4096]; static short quant_table_16_to_46[4096]; static short quant_table_16_to_48[4096]; static short quant_table_16_to_50[4096]; static short quant_table_16_to_52[4096]; static short quant_table_16_to_54[4096]; static short quant_table_16_to_56[4096]; static short quant_table_16_to_58[4096]; static short quant_table_16_to_60[4096]; static short quant_table_16_to_62[4096]; static short quant_table_16_to_64[4096]; static short quant_table_16_to_72[4096]; static short quant_table_16_to_80[4096]; static short quant_table_16_to_88[4096]; static short quant_table_16_to_96[4096]; static short quant_table_16_to_104[4096]; static short quant_table_16_to_112[4096]; static short quant_table_18_to_20[4096]; static short quant_table_18_to_22[4096]; static short quant_table_18_to_24[4096]; static short quant_table_18_to_26[4096]; static short quant_table_18_to_28[4096]; static short quant_table_18_to_30[4096]; static short quant_table_18_to_32[4096]; static short quant_table_18_to_34[4096]; static short quant_table_18_to_36[4096]; static short quant_table_18_to_38[4096]; static short quant_table_18_to_40[4096]; static short quant_table_18_to_42[4096]; static short quant_table_18_to_44[4096]; static short quant_table_18_to_46[4096]; static short quant_table_18_to_48[4096]; static short quant_table_18_to_50[4096]; static short quant_table_18_to_52[4096]; static short quant_table_18_to_54[4096]; static short quant_table_18_to_56[4096]; static short quant_table_18_to_58[4096]; static short quant_table_18_to_60[4096]; static short quant_table_18_to_62[4096]; static short quant_table_18_to_64[4096]; static short quant_table_18_to_72[4096]; static short quant_table_18_to_80[4096]; static short quant_table_18_to_88[4096]; static short quant_table_18_to_96[4096]; static short quant_table_18_to_104[4096]; static short quant_table_18_to_112[4096]; static short quant_table_20_to_22[4096]; static short quant_table_20_to_24[4096]; static short quant_table_20_to_26[4096]; static short quant_table_20_to_28[4096]; static short quant_table_20_to_30[4096]; static short quant_table_20_to_32[4096]; static short quant_table_20_to_34[4096]; static short quant_table_20_to_36[4096]; static short quant_table_20_to_38[4096]; static short quant_table_20_to_40[4096]; static short quant_table_20_to_42[4096]; static short quant_table_20_to_44[4096]; static short quant_table_20_to_46[4096]; static short quant_table_20_to_48[4096]; static short quant_table_20_to_50[4096]; static short quant_table_20_to_52[4096]; static short quant_table_20_to_54[4096]; static short quant_table_20_to_56[4096]; static short quant_table_20_to_58[4096]; static short quant_table_20_to_60[4096]; static short quant_table_20_to_62[4096]; static short quant_table_20_to_64[4096]; static short quant_table_20_to_72[4096]; static short quant_table_20_to_80[4096]; static short quant_table_20_to_88[4096]; static short quant_table_20_to_96[4096]; static short quant_table_20_to_104[4096]; static short quant_table_20_to_112[4096]; static short quant_table_22_to_24[4096]; static short quant_table_22_to_26[4096]; static short quant_table_22_to_28[4096]; static short quant_table_22_to_30[4096]; static short quant_table_22_to_32[4096]; static short quant_table_22_to_34[4096]; static short quant_table_22_to_36[4096]; static short quant_table_22_to_38[4096]; static short quant_table_22_to_40[4096]; static short quant_table_22_to_42[4096]; static short quant_table_22_to_44[4096]; static short quant_table_22_to_46[4096]; static short quant_table_22_to_48[4096]; static short quant_table_22_to_50[4096]; static short quant_table_22_to_52[4096]; static short quant_table_22_to_54[4096]; static short quant_table_22_to_56[4096]; static short quant_table_22_to_58[4096]; static short quant_table_22_to_60[4096]; static short quant_table_22_to_62[4096]; static short quant_table_22_to_64[4096]; static short quant_table_22_to_72[4096]; static short quant_table_22_to_80[4096]; static short quant_table_22_to_88[4096]; static short quant_table_22_to_96[4096]; static short quant_table_22_to_104[4096]; static short quant_table_22_to_112[4096]; static short quant_table_24_to_26[4096]; static short quant_table_24_to_28[4096]; static short quant_table_24_to_30[4096]; static short quant_table_24_to_32[4096]; static short quant_table_24_to_34[4096]; static short quant_table_24_to_36[4096]; static short quant_table_24_to_38[4096]; static short quant_table_24_to_40[4096]; static short quant_table_24_to_42[4096]; static short quant_table_24_to_44[4096]; static short quant_table_24_to_46[4096]; static short quant_table_24_to_48[4096]; static short quant_table_24_to_50[4096]; static short quant_table_24_to_52[4096]; static short quant_table_24_to_54[4096]; static short quant_table_24_to_56[4096]; static short quant_table_24_to_58[4096]; static short quant_table_24_to_60[4096]; static short quant_table_24_to_62[4096]; static short quant_table_24_to_64[4096]; static short quant_table_24_to_72[4096]; static short quant_table_24_to_80[4096]; static short quant_table_24_to_88[4096]; static short quant_table_24_to_96[4096]; static short quant_table_24_to_104[4096]; static short quant_table_24_to_112[4096]; static short quant_table_26_to_28[4096]; static short quant_table_26_to_30[4096]; static short quant_table_26_to_32[4096]; static short quant_table_26_to_34[4096]; static short quant_table_26_to_36[4096]; static short quant_table_26_to_38[4096]; static short quant_table_26_to_40[4096]; static short quant_table_26_to_42[4096]; static short quant_table_26_to_44[4096]; static short quant_table_26_to_46[4096]; static short quant_table_26_to_48[4096]; static short quant_table_26_to_50[4096]; static short quant_table_26_to_52[4096]; static short quant_table_26_to_54[4096]; static short quant_table_26_to_56[4096]; static short quant_table_26_to_58[4096]; static short quant_table_26_to_60[4096]; static short quant_table_26_to_62[4096]; static short quant_table_26_to_64[4096]; static short quant_table_26_to_72[4096]; static short quant_table_26_to_80[4096]; static short quant_table_26_to_88[4096]; static short quant_table_26_to_96[4096]; static short quant_table_26_to_104[4096]; static short quant_table_26_to_112[4096]; static short quant_table_28_to_30[4096]; static short quant_table_28_to_32[4096]; static short quant_table_28_to_34[4096]; static short quant_table_28_to_36[4096]; static short quant_table_28_to_38[4096]; static short quant_table_28_to_40[4096]; static short quant_table_28_to_42[4096]; static short quant_table_28_to_44[4096]; static short quant_table_28_to_46[4096]; static short quant_table_28_to_48[4096]; static short quant_table_28_to_50[4096]; static short quant_table_28_to_52[4096]; static short quant_table_28_to_54[4096]; static short quant_table_28_to_56[4096]; static short quant_table_28_to_58[4096]; static short quant_table_28_to_60[4096]; static short quant_table_28_to_62[4096]; static short quant_table_28_to_64[4096]; static short quant_table_28_to_72[4096]; static short quant_table_28_to_80[4096]; static short quant_table_28_to_88[4096]; static short quant_table_28_to_96[4096]; static short quant_table_28_to_104[4096]; static short quant_table_28_to_112[4096]; static short quant_table_30_to_32[4096]; static short quant_table_30_to_34[4096]; static short quant_table_30_to_36[4096]; static short quant_table_30_to_38[4096]; static short quant_table_30_to_40[4096]; static short quant_table_30_to_42[4096]; static short quant_table_30_to_44[4096]; static short quant_table_30_to_46[4096]; static short quant_table_30_to_48[4096]; static short quant_table_30_to_50[4096]; static short quant_table_30_to_52[4096]; static short quant_table_30_to_54[4096]; static short quant_table_30_to_56[4096]; static short quant_table_30_to_58[4096]; static short quant_table_30_to_60[4096]; static short quant_table_30_to_62[4096]; static short quant_table_30_to_64[4096]; static short quant_table_30_to_72[4096]; static short quant_table_30_to_80[4096]; static short quant_table_30_to_88[4096]; static short quant_table_30_to_96[4096]; static short quant_table_30_to_104[4096]; static short quant_table_30_to_112[4096]; static short quant_table_32_to_34[4096]; static short quant_table_32_to_36[4096]; static short quant_table_32_to_38[4096]; static short quant_table_32_to_40[4096]; static short quant_table_32_to_42[4096]; static short quant_table_32_to_44[4096]; static short quant_table_32_to_46[4096]; static short quant_table_32_to_48[4096]; static short quant_table_32_to_50[4096]; static short quant_table_32_to_52[4096]; static short quant_table_32_to_54[4096]; static short quant_table_32_to_56[4096]; static short quant_table_32_to_58[4096]; static short quant_table_32_to_60[4096]; static short quant_table_32_to_62[4096]; static short quant_table_32_to_64[4096]; static short quant_table_32_to_72[4096]; static short quant_table_32_to_80[4096]; static short quant_table_32_to_88[4096]; static short quant_table_32_to_96[4096]; static short quant_table_32_to_104[4096]; static short quant_table_32_to_112[4096]; static short quant_table_34_to_36[4096]; static short quant_table_34_to_38[4096]; static short quant_table_34_to_40[4096]; static short quant_table_34_to_42[4096]; static short quant_table_34_to_44[4096]; static short quant_table_34_to_46[4096]; static short quant_table_34_to_48[4096]; static short quant_table_34_to_50[4096]; static short quant_table_34_to_52[4096]; static short quant_table_34_to_54[4096]; static short quant_table_34_to_56[4096]; static short quant_table_34_to_58[4096]; static short quant_table_34_to_60[4096]; static short quant_table_34_to_62[4096]; static short quant_table_34_to_64[4096]; static short quant_table_34_to_72[4096]; static short quant_table_34_to_80[4096]; static short quant_table_34_to_88[4096]; static short quant_table_34_to_96[4096]; static short quant_table_34_to_104[4096]; static short quant_table_34_to_112[4096]; static short quant_table_36_to_38[4096]; static short quant_table_36_to_40[4096]; static short quant_table_36_to_42[4096]; static short quant_table_36_to_44[4096]; static short quant_table_36_to_46[4096]; static short quant_table_36_to_48[4096]; static short quant_table_36_to_50[4096]; static short quant_table_36_to_52[4096]; static short quant_table_36_to_54[4096]; static short quant_table_36_to_56[4096]; static short quant_table_36_to_58[4096]; static short quant_table_36_to_60[4096]; static short quant_table_36_to_62[4096]; static short quant_table_36_to_64[4096]; static short quant_table_36_to_72[4096]; static short quant_table_36_to_80[4096]; static short quant_table_36_to_88[4096]; static short quant_table_36_to_96[4096]; static short quant_table_36_to_104[4096]; static short quant_table_36_to_112[4096]; static short quant_table_38_to_40[4096]; static short quant_table_38_to_42[4096]; static short quant_table_38_to_44[4096]; static short quant_table_38_to_46[4096]; static short quant_table_38_to_48[4096]; static short quant_table_38_to_50[4096]; static short quant_table_38_to_52[4096]; static short quant_table_38_to_54[4096]; static short quant_table_38_to_56[4096]; static short quant_table_38_to_58[4096]; static short quant_table_38_to_60[4096]; static short quant_table_38_to_62[4096]; static short quant_table_38_to_64[4096]; static short quant_table_38_to_72[4096]; static short quant_table_38_to_80[4096]; static short quant_table_38_to_88[4096]; static short quant_table_38_to_96[4096]; static short quant_table_38_to_104[4096]; static short quant_table_38_to_112[4096]; static short quant_table_40_to_42[4096]; static short quant_table_40_to_44[4096]; static short quant_table_40_to_46[4096]; static short quant_table_40_to_48[4096]; static short quant_table_40_to_50[4096]; static short quant_table_40_to_52[4096]; static short quant_table_40_to_54[4096]; static short quant_table_40_to_56[4096]; static short quant_table_40_to_58[4096]; static short quant_table_40_to_60[4096]; static short quant_table_40_to_62[4096]; static short quant_table_40_to_64[4096]; static short quant_table_40_to_72[4096]; static short quant_table_40_to_80[4096]; static short quant_table_40_to_88[4096]; static short quant_table_40_to_96[4096]; static short quant_table_40_to_104[4096]; static short quant_table_40_to_112[4096]; static short quant_table_42_to_44[4096]; static short quant_table_42_to_46[4096]; static short quant_table_42_to_48[4096]; static short quant_table_42_to_50[4096]; static short quant_table_42_to_52[4096]; static short quant_table_42_to_54[4096]; static short quant_table_42_to_56[4096]; static short quant_table_42_to_58[4096]; static short quant_table_42_to_60[4096]; static short quant_table_42_to_62[4096]; static short quant_table_42_to_64[4096]; static short quant_table_42_to_72[4096]; static short quant_table_42_to_80[4096]; static short quant_table_42_to_88[4096]; static short quant_table_42_to_96[4096]; static short quant_table_42_to_104[4096]; static short quant_table_42_to_112[4096]; static short quant_table_44_to_46[4096]; static short quant_table_44_to_48[4096]; static short quant_table_44_to_50[4096]; static short quant_table_44_to_52[4096]; static short quant_table_44_to_54[4096]; static short quant_table_44_to_56[4096]; static short quant_table_44_to_58[4096]; static short quant_table_44_to_60[4096]; static short quant_table_44_to_62[4096]; static short quant_table_44_to_64[4096]; static short quant_table_44_to_72[4096]; static short quant_table_44_to_80[4096]; static short quant_table_44_to_88[4096]; static short quant_table_44_to_96[4096]; static short quant_table_44_to_104[4096]; static short quant_table_44_to_112[4096]; static short quant_table_46_to_48[4096]; static short quant_table_46_to_50[4096]; static short quant_table_46_to_52[4096]; static short quant_table_46_to_54[4096]; static short quant_table_46_to_56[4096]; static short quant_table_46_to_58[4096]; static short quant_table_46_to_60[4096]; static short quant_table_46_to_62[4096]; static short quant_table_46_to_64[4096]; static short quant_table_46_to_72[4096]; static short quant_table_46_to_80[4096]; static short quant_table_46_to_88[4096]; static short quant_table_46_to_96[4096]; static short quant_table_46_to_104[4096]; static short quant_table_46_to_112[4096]; static short quant_table_48_to_50[4096]; static short quant_table_48_to_52[4096]; static short quant_table_48_to_54[4096]; static short quant_table_48_to_56[4096]; static short quant_table_48_to_58[4096]; static short quant_table_48_to_60[4096]; static short quant_table_48_to_62[4096]; static short quant_table_48_to_64[4096]; static short quant_table_48_to_72[4096]; static short quant_table_48_to_80[4096]; static short quant_table_48_to_88[4096]; static short quant_table_48_to_96[4096]; static short quant_table_48_to_104[4096]; static short quant_table_48_to_112[4096]; static short quant_table_50_to_52[4096]; static short quant_table_50_to_54[4096]; static short quant_table_50_to_56[4096]; static short quant_table_50_to_58[4096]; static short quant_table_50_to_60[4096]; static short quant_table_50_to_62[4096]; static short quant_table_50_to_64[4096]; static short quant_table_50_to_72[4096]; static short quant_table_50_to_80[4096]; static short quant_table_50_to_88[4096]; static short quant_table_50_to_96[4096]; static short quant_table_50_to_104[4096]; static short quant_table_50_to_112[4096]; static short quant_table_52_to_54[4096]; static short quant_table_52_to_56[4096]; static short quant_table_52_to_58[4096]; static short quant_table_52_to_60[4096]; static short quant_table_52_to_62[4096]; static short quant_table_52_to_64[4096]; static short quant_table_52_to_72[4096]; static short quant_table_52_to_80[4096]; static short quant_table_52_to_88[4096]; static short quant_table_52_to_96[4096]; static short quant_table_52_to_104[4096]; static short quant_table_52_to_112[4096]; static short quant_table_54_to_56[4096]; static short quant_table_54_to_58[4096]; static short quant_table_54_to_60[4096]; static short quant_table_54_to_62[4096]; static short quant_table_54_to_64[4096]; static short quant_table_54_to_72[4096]; static short quant_table_54_to_80[4096]; static short quant_table_54_to_88[4096]; static short quant_table_54_to_96[4096]; static short quant_table_54_to_104[4096]; static short quant_table_54_to_112[4096]; static short quant_table_56_to_58[4096]; static short quant_table_56_to_60[4096]; static short quant_table_56_to_62[4096]; static short quant_table_56_to_64[4096]; static short quant_table_56_to_72[4096]; static short quant_table_56_to_80[4096]; static short quant_table_56_to_88[4096]; static short quant_table_56_to_96[4096]; static short quant_table_56_to_104[4096]; static short quant_table_56_to_112[4096]; static short quant_table_58_to_60[4096]; static short quant_table_58_to_62[4096]; static short quant_table_58_to_64[4096]; static short quant_table_58_to_72[4096]; static short quant_table_58_to_80[4096]; static short quant_table_58_to_88[4096]; static short quant_table_58_to_96[4096]; static short quant_table_58_to_104[4096]; static short quant_table_58_to_112[4096]; static short quant_table_60_to_62[4096]; static short quant_table_60_to_64[4096]; static short quant_table_60_to_72[4096]; static short quant_table_60_to_80[4096]; static short quant_table_60_to_88[4096]; static short quant_table_60_to_96[4096]; static short quant_table_60_to_104[4096]; static short quant_table_60_to_112[4096]; static short quant_table_62_to_64[4096]; static short quant_table_62_to_72[4096]; static short quant_table_62_to_80[4096]; static short quant_table_62_to_88[4096]; static short quant_table_62_to_96[4096]; static short quant_table_62_to_104[4096]; static short quant_table_62_to_112[4096]; static short quant_table_64_to_72[4096]; static short quant_table_64_to_80[4096]; static short quant_table_64_to_88[4096]; static short quant_table_64_to_96[4096]; static short quant_table_64_to_104[4096]; static short quant_table_64_to_112[4096]; static short quant_table_72_to_80[4096]; static short quant_table_72_to_88[4096]; static short quant_table_72_to_96[4096]; static short quant_table_72_to_104[4096]; static short quant_table_72_to_112[4096]; static short quant_table_80_to_88[4096]; static short quant_table_80_to_96[4096]; static short quant_table_80_to_104[4096]; static short quant_table_80_to_112[4096]; static short quant_table_88_to_96[4096]; static short quant_table_88_to_104[4096]; static short quant_table_88_to_112[4096]; static short quant_table_96_to_104[4096]; static short quant_table_96_to_112[4096]; static short quant_table_104_to_112[4096]; static short *quant_tables[42][42] = { { 0, &quant_table_1_to_2[2048], &quant_table_1_to_3[2048], &quant_table_1_to_4[2048], &quant_table_1_to_5[2048], &quant_table_1_to_6[2048], &quant_table_1_to_7[2048], &quant_table_1_to_8[2048], &quant_table_1_to_10[2048], &quant_table_1_to_12[2048], &quant_table_1_to_14[2048], &quant_table_1_to_16[2048], &quant_table_1_to_18[2048], &quant_table_1_to_20[2048], &quant_table_1_to_22[2048], &quant_table_1_to_24[2048], &quant_table_1_to_26[2048], &quant_table_1_to_28[2048], &quant_table_1_to_30[2048], &quant_table_1_to_32[2048], &quant_table_1_to_34[2048], &quant_table_1_to_36[2048], &quant_table_1_to_38[2048], &quant_table_1_to_40[2048], &quant_table_1_to_42[2048], &quant_table_1_to_44[2048], &quant_table_1_to_46[2048], &quant_table_1_to_48[2048], &quant_table_1_to_50[2048], &quant_table_1_to_52[2048], &quant_table_1_to_54[2048], &quant_table_1_to_56[2048], &quant_table_1_to_58[2048], &quant_table_1_to_60[2048], &quant_table_1_to_62[2048], &quant_table_1_to_64[2048], &quant_table_1_to_72[2048], &quant_table_1_to_80[2048], &quant_table_1_to_88[2048], &quant_table_1_to_96[2048], &quant_table_1_to_104[2048], &quant_table_1_to_112[2048]}, { 0,0, &quant_table_2_to_3[2048], &quant_table_2_to_4[2048], &quant_table_2_to_5[2048], &quant_table_2_to_6[2048], &quant_table_2_to_7[2048], &quant_table_2_to_8[2048], &quant_table_2_to_10[2048], &quant_table_2_to_12[2048], &quant_table_2_to_14[2048], &quant_table_2_to_16[2048], &quant_table_2_to_18[2048], &quant_table_2_to_20[2048], &quant_table_2_to_22[2048], &quant_table_2_to_24[2048], &quant_table_2_to_26[2048], &quant_table_2_to_28[2048], &quant_table_2_to_30[2048], &quant_table_2_to_32[2048], &quant_table_2_to_34[2048], &quant_table_2_to_36[2048], &quant_table_2_to_38[2048], &quant_table_2_to_40[2048], &quant_table_2_to_42[2048], &quant_table_2_to_44[2048], &quant_table_2_to_46[2048], &quant_table_2_to_48[2048], &quant_table_2_to_50[2048], &quant_table_2_to_52[2048], &quant_table_2_to_54[2048], &quant_table_2_to_56[2048], &quant_table_2_to_58[2048], &quant_table_2_to_60[2048], &quant_table_2_to_62[2048], &quant_table_2_to_64[2048], &quant_table_2_to_72[2048], &quant_table_2_to_80[2048], &quant_table_2_to_88[2048], &quant_table_2_to_96[2048], &quant_table_2_to_104[2048], &quant_table_2_to_112[2048]}, { 0,0,0, &quant_table_3_to_4[2048], &quant_table_3_to_5[2048], &quant_table_3_to_6[2048], &quant_table_3_to_7[2048], &quant_table_3_to_8[2048], &quant_table_3_to_10[2048], &quant_table_3_to_12[2048], &quant_table_3_to_14[2048], &quant_table_3_to_16[2048], &quant_table_3_to_18[2048], &quant_table_3_to_20[2048], &quant_table_3_to_22[2048], &quant_table_3_to_24[2048], &quant_table_3_to_26[2048], &quant_table_3_to_28[2048], &quant_table_3_to_30[2048], &quant_table_3_to_32[2048], &quant_table_3_to_34[2048], &quant_table_3_to_36[2048], &quant_table_3_to_38[2048], &quant_table_3_to_40[2048], &quant_table_3_to_42[2048], &quant_table_3_to_44[2048], &quant_table_3_to_46[2048], &quant_table_3_to_48[2048], &quant_table_3_to_50[2048], &quant_table_3_to_52[2048], &quant_table_3_to_54[2048], &quant_table_3_to_56[2048], &quant_table_3_to_58[2048], &quant_table_3_to_60[2048], &quant_table_3_to_62[2048], &quant_table_3_to_64[2048], &quant_table_3_to_72[2048], &quant_table_3_to_80[2048], &quant_table_3_to_88[2048], &quant_table_3_to_96[2048], &quant_table_3_to_104[2048], &quant_table_3_to_112[2048]}, { 0,0,0,0, &quant_table_4_to_5[2048], &quant_table_4_to_6[2048], &quant_table_4_to_7[2048], &quant_table_4_to_8[2048], &quant_table_4_to_10[2048], &quant_table_4_to_12[2048], &quant_table_4_to_14[2048], &quant_table_4_to_16[2048], &quant_table_4_to_18[2048], &quant_table_4_to_20[2048], &quant_table_4_to_22[2048], &quant_table_4_to_24[2048], &quant_table_4_to_26[2048], &quant_table_4_to_28[2048], &quant_table_4_to_30[2048], &quant_table_4_to_32[2048], &quant_table_4_to_34[2048], &quant_table_4_to_36[2048], &quant_table_4_to_38[2048], &quant_table_4_to_40[2048], &quant_table_4_to_42[2048], &quant_table_4_to_44[2048], &quant_table_4_to_46[2048], &quant_table_4_to_48[2048], &quant_table_4_to_50[2048], &quant_table_4_to_52[2048], &quant_table_4_to_54[2048], &quant_table_4_to_56[2048], &quant_table_4_to_58[2048], &quant_table_4_to_60[2048], &quant_table_4_to_62[2048], &quant_table_4_to_64[2048], &quant_table_4_to_72[2048], &quant_table_4_to_80[2048], &quant_table_4_to_88[2048], &quant_table_4_to_96[2048], &quant_table_4_to_104[2048], &quant_table_4_to_112[2048]}, { 0,0,0,0,0, &quant_table_5_to_6[2048], &quant_table_5_to_7[2048], &quant_table_5_to_8[2048], &quant_table_5_to_10[2048], &quant_table_5_to_12[2048], &quant_table_5_to_14[2048], &quant_table_5_to_16[2048], &quant_table_5_to_18[2048], &quant_table_5_to_20[2048], &quant_table_5_to_22[2048], &quant_table_5_to_24[2048], &quant_table_5_to_26[2048], &quant_table_5_to_28[2048], &quant_table_5_to_30[2048], &quant_table_5_to_32[2048], &quant_table_5_to_34[2048], &quant_table_5_to_36[2048], &quant_table_5_to_38[2048], &quant_table_5_to_40[2048], &quant_table_5_to_42[2048], &quant_table_5_to_44[2048], &quant_table_5_to_46[2048], &quant_table_5_to_48[2048], &quant_table_5_to_50[2048], &quant_table_5_to_52[2048], &quant_table_5_to_54[2048], &quant_table_5_to_56[2048], &quant_table_5_to_58[2048], &quant_table_5_to_60[2048], &quant_table_5_to_62[2048], &quant_table_5_to_64[2048], &quant_table_5_to_72[2048], &quant_table_5_to_80[2048], &quant_table_5_to_88[2048], &quant_table_5_to_96[2048], &quant_table_5_to_104[2048], &quant_table_5_to_112[2048]}, { 0,0,0,0,0,0, &quant_table_6_to_7[2048], &quant_table_6_to_8[2048], &quant_table_6_to_10[2048], &quant_table_6_to_12[2048], &quant_table_6_to_14[2048], &quant_table_6_to_16[2048], &quant_table_6_to_18[2048], &quant_table_6_to_20[2048], &quant_table_6_to_22[2048], &quant_table_6_to_24[2048], &quant_table_6_to_26[2048], &quant_table_6_to_28[2048], &quant_table_6_to_30[2048], &quant_table_6_to_32[2048], &quant_table_6_to_34[2048], &quant_table_6_to_36[2048], &quant_table_6_to_38[2048], &quant_table_6_to_40[2048], &quant_table_6_to_42[2048], &quant_table_6_to_44[2048], &quant_table_6_to_46[2048], &quant_table_6_to_48[2048], &quant_table_6_to_50[2048], &quant_table_6_to_52[2048], &quant_table_6_to_54[2048], &quant_table_6_to_56[2048], &quant_table_6_to_58[2048], &quant_table_6_to_60[2048], &quant_table_6_to_62[2048], &quant_table_6_to_64[2048], &quant_table_6_to_72[2048], &quant_table_6_to_80[2048], &quant_table_6_to_88[2048], &quant_table_6_to_96[2048], &quant_table_6_to_104[2048], &quant_table_6_to_112[2048]}, { 0,0,0,0,0,0,0, &quant_table_7_to_8[2048], &quant_table_7_to_10[2048], &quant_table_7_to_12[2048], &quant_table_7_to_14[2048], &quant_table_7_to_16[2048], &quant_table_7_to_18[2048], &quant_table_7_to_20[2048], &quant_table_7_to_22[2048], &quant_table_7_to_24[2048], &quant_table_7_to_26[2048], &quant_table_7_to_28[2048], &quant_table_7_to_30[2048], &quant_table_7_to_32[2048], &quant_table_7_to_34[2048], &quant_table_7_to_36[2048], &quant_table_7_to_38[2048], &quant_table_7_to_40[2048], &quant_table_7_to_42[2048], &quant_table_7_to_44[2048], &quant_table_7_to_46[2048], &quant_table_7_to_48[2048], &quant_table_7_to_50[2048], &quant_table_7_to_52[2048], &quant_table_7_to_54[2048], &quant_table_7_to_56[2048], &quant_table_7_to_58[2048], &quant_table_7_to_60[2048], &quant_table_7_to_62[2048], &quant_table_7_to_64[2048], &quant_table_7_to_72[2048], &quant_table_7_to_80[2048], &quant_table_7_to_88[2048], &quant_table_7_to_96[2048], &quant_table_7_to_104[2048], &quant_table_7_to_112[2048]}, { 0,0,0,0,0,0,0,0, &quant_table_8_to_10[2048], &quant_table_8_to_12[2048], &quant_table_8_to_14[2048], &quant_table_8_to_16[2048], &quant_table_8_to_18[2048], &quant_table_8_to_20[2048], &quant_table_8_to_22[2048], &quant_table_8_to_24[2048], &quant_table_8_to_26[2048], &quant_table_8_to_28[2048], &quant_table_8_to_30[2048], &quant_table_8_to_32[2048], &quant_table_8_to_34[2048], &quant_table_8_to_36[2048], &quant_table_8_to_38[2048], &quant_table_8_to_40[2048], &quant_table_8_to_42[2048], &quant_table_8_to_44[2048], &quant_table_8_to_46[2048], &quant_table_8_to_48[2048], &quant_table_8_to_50[2048], &quant_table_8_to_52[2048], &quant_table_8_to_54[2048], &quant_table_8_to_56[2048], &quant_table_8_to_58[2048], &quant_table_8_to_60[2048], &quant_table_8_to_62[2048], &quant_table_8_to_64[2048], &quant_table_8_to_72[2048], &quant_table_8_to_80[2048], &quant_table_8_to_88[2048], &quant_table_8_to_96[2048], &quant_table_8_to_104[2048], &quant_table_8_to_112[2048]}, { 0,0,0,0,0,0,0,0,0, &quant_table_10_to_12[2048], &quant_table_10_to_14[2048], &quant_table_10_to_16[2048], &quant_table_10_to_18[2048], &quant_table_10_to_20[2048], &quant_table_10_to_22[2048], &quant_table_10_to_24[2048], &quant_table_10_to_26[2048], &quant_table_10_to_28[2048], &quant_table_10_to_30[2048], &quant_table_10_to_32[2048], &quant_table_10_to_34[2048], &quant_table_10_to_36[2048], &quant_table_10_to_38[2048], &quant_table_10_to_40[2048], &quant_table_10_to_42[2048], &quant_table_10_to_44[2048], &quant_table_10_to_46[2048], &quant_table_10_to_48[2048], &quant_table_10_to_50[2048], &quant_table_10_to_52[2048], &quant_table_10_to_54[2048], &quant_table_10_to_56[2048], &quant_table_10_to_58[2048], &quant_table_10_to_60[2048], &quant_table_10_to_62[2048], &quant_table_10_to_64[2048], &quant_table_10_to_72[2048], &quant_table_10_to_80[2048], &quant_table_10_to_88[2048], &quant_table_10_to_96[2048], &quant_table_10_to_104[2048], &quant_table_10_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0, &quant_table_12_to_14[2048], &quant_table_12_to_16[2048], &quant_table_12_to_18[2048], &quant_table_12_to_20[2048], &quant_table_12_to_22[2048], &quant_table_12_to_24[2048], &quant_table_12_to_26[2048], &quant_table_12_to_28[2048], &quant_table_12_to_30[2048], &quant_table_12_to_32[2048], &quant_table_12_to_34[2048], &quant_table_12_to_36[2048], &quant_table_12_to_38[2048], &quant_table_12_to_40[2048], &quant_table_12_to_42[2048], &quant_table_12_to_44[2048], &quant_table_12_to_46[2048], &quant_table_12_to_48[2048], &quant_table_12_to_50[2048], &quant_table_12_to_52[2048], &quant_table_12_to_54[2048], &quant_table_12_to_56[2048], &quant_table_12_to_58[2048], &quant_table_12_to_60[2048], &quant_table_12_to_62[2048], &quant_table_12_to_64[2048], &quant_table_12_to_72[2048], &quant_table_12_to_80[2048], &quant_table_12_to_88[2048], &quant_table_12_to_96[2048], &quant_table_12_to_104[2048], &quant_table_12_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0, &quant_table_14_to_16[2048], &quant_table_14_to_18[2048], &quant_table_14_to_20[2048], &quant_table_14_to_22[2048], &quant_table_14_to_24[2048], &quant_table_14_to_26[2048], &quant_table_14_to_28[2048], &quant_table_14_to_30[2048], &quant_table_14_to_32[2048], &quant_table_14_to_34[2048], &quant_table_14_to_36[2048], &quant_table_14_to_38[2048], &quant_table_14_to_40[2048], &quant_table_14_to_42[2048], &quant_table_14_to_44[2048], &quant_table_14_to_46[2048], &quant_table_14_to_48[2048], &quant_table_14_to_50[2048], &quant_table_14_to_52[2048], &quant_table_14_to_54[2048], &quant_table_14_to_56[2048], &quant_table_14_to_58[2048], &quant_table_14_to_60[2048], &quant_table_14_to_62[2048], &quant_table_14_to_64[2048], &quant_table_14_to_72[2048], &quant_table_14_to_80[2048], &quant_table_14_to_88[2048], &quant_table_14_to_96[2048], &quant_table_14_to_104[2048], &quant_table_14_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_16_to_18[2048], &quant_table_16_to_20[2048], &quant_table_16_to_22[2048], &quant_table_16_to_24[2048], &quant_table_16_to_26[2048], &quant_table_16_to_28[2048], &quant_table_16_to_30[2048], &quant_table_16_to_32[2048], &quant_table_16_to_34[2048], &quant_table_16_to_36[2048], &quant_table_16_to_38[2048], &quant_table_16_to_40[2048], &quant_table_16_to_42[2048], &quant_table_16_to_44[2048], &quant_table_16_to_46[2048], &quant_table_16_to_48[2048], &quant_table_16_to_50[2048], &quant_table_16_to_52[2048], &quant_table_16_to_54[2048], &quant_table_16_to_56[2048], &quant_table_16_to_58[2048], &quant_table_16_to_60[2048], &quant_table_16_to_62[2048], &quant_table_16_to_64[2048], &quant_table_16_to_72[2048], &quant_table_16_to_80[2048], &quant_table_16_to_88[2048], &quant_table_16_to_96[2048], &quant_table_16_to_104[2048], &quant_table_16_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_18_to_20[2048], &quant_table_18_to_22[2048], &quant_table_18_to_24[2048], &quant_table_18_to_26[2048], &quant_table_18_to_28[2048], &quant_table_18_to_30[2048], &quant_table_18_to_32[2048], &quant_table_18_to_34[2048], &quant_table_18_to_36[2048], &quant_table_18_to_38[2048], &quant_table_18_to_40[2048], &quant_table_18_to_42[2048], &quant_table_18_to_44[2048], &quant_table_18_to_46[2048], &quant_table_18_to_48[2048], &quant_table_18_to_50[2048], &quant_table_18_to_52[2048], &quant_table_18_to_54[2048], &quant_table_18_to_56[2048], &quant_table_18_to_58[2048], &quant_table_18_to_60[2048], &quant_table_18_to_62[2048], &quant_table_18_to_64[2048], &quant_table_18_to_72[2048], &quant_table_18_to_80[2048], &quant_table_18_to_88[2048], &quant_table_18_to_96[2048], &quant_table_18_to_104[2048], &quant_table_18_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_20_to_22[2048], &quant_table_20_to_24[2048], &quant_table_20_to_26[2048], &quant_table_20_to_28[2048], &quant_table_20_to_30[2048], &quant_table_20_to_32[2048], &quant_table_20_to_34[2048], &quant_table_20_to_36[2048], &quant_table_20_to_38[2048], &quant_table_20_to_40[2048], &quant_table_20_to_42[2048], &quant_table_20_to_44[2048], &quant_table_20_to_46[2048], &quant_table_20_to_48[2048], &quant_table_20_to_50[2048], &quant_table_20_to_52[2048], &quant_table_20_to_54[2048], &quant_table_20_to_56[2048], &quant_table_20_to_58[2048], &quant_table_20_to_60[2048], &quant_table_20_to_62[2048], &quant_table_20_to_64[2048], &quant_table_20_to_72[2048], &quant_table_20_to_80[2048], &quant_table_20_to_88[2048], &quant_table_20_to_96[2048], &quant_table_20_to_104[2048], &quant_table_20_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_22_to_24[2048], &quant_table_22_to_26[2048], &quant_table_22_to_28[2048], &quant_table_22_to_30[2048], &quant_table_22_to_32[2048], &quant_table_22_to_34[2048], &quant_table_22_to_36[2048], &quant_table_22_to_38[2048], &quant_table_22_to_40[2048], &quant_table_22_to_42[2048], &quant_table_22_to_44[2048], &quant_table_22_to_46[2048], &quant_table_22_to_48[2048], &quant_table_22_to_50[2048], &quant_table_22_to_52[2048], &quant_table_22_to_54[2048], &quant_table_22_to_56[2048], &quant_table_22_to_58[2048], &quant_table_22_to_60[2048], &quant_table_22_to_62[2048], &quant_table_22_to_64[2048], &quant_table_22_to_72[2048], &quant_table_22_to_80[2048], &quant_table_22_to_88[2048], &quant_table_22_to_96[2048], &quant_table_22_to_104[2048], &quant_table_22_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_24_to_26[2048], &quant_table_24_to_28[2048], &quant_table_24_to_30[2048], &quant_table_24_to_32[2048], &quant_table_24_to_34[2048], &quant_table_24_to_36[2048], &quant_table_24_to_38[2048], &quant_table_24_to_40[2048], &quant_table_24_to_42[2048], &quant_table_24_to_44[2048], &quant_table_24_to_46[2048], &quant_table_24_to_48[2048], &quant_table_24_to_50[2048], &quant_table_24_to_52[2048], &quant_table_24_to_54[2048], &quant_table_24_to_56[2048], &quant_table_24_to_58[2048], &quant_table_24_to_60[2048], &quant_table_24_to_62[2048], &quant_table_24_to_64[2048], &quant_table_24_to_72[2048], &quant_table_24_to_80[2048], &quant_table_24_to_88[2048], &quant_table_24_to_96[2048], &quant_table_24_to_104[2048], &quant_table_24_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_26_to_28[2048], &quant_table_26_to_30[2048], &quant_table_26_to_32[2048], &quant_table_26_to_34[2048], &quant_table_26_to_36[2048], &quant_table_26_to_38[2048], &quant_table_26_to_40[2048], &quant_table_26_to_42[2048], &quant_table_26_to_44[2048], &quant_table_26_to_46[2048], &quant_table_26_to_48[2048], &quant_table_26_to_50[2048], &quant_table_26_to_52[2048], &quant_table_26_to_54[2048], &quant_table_26_to_56[2048], &quant_table_26_to_58[2048], &quant_table_26_to_60[2048], &quant_table_26_to_62[2048], &quant_table_26_to_64[2048], &quant_table_26_to_72[2048], &quant_table_26_to_80[2048], &quant_table_26_to_88[2048], &quant_table_26_to_96[2048], &quant_table_26_to_104[2048], &quant_table_26_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_28_to_30[2048], &quant_table_28_to_32[2048], &quant_table_28_to_34[2048], &quant_table_28_to_36[2048], &quant_table_28_to_38[2048], &quant_table_28_to_40[2048], &quant_table_28_to_42[2048], &quant_table_28_to_44[2048], &quant_table_28_to_46[2048], &quant_table_28_to_48[2048], &quant_table_28_to_50[2048], &quant_table_28_to_52[2048], &quant_table_28_to_54[2048], &quant_table_28_to_56[2048], &quant_table_28_to_58[2048], &quant_table_28_to_60[2048], &quant_table_28_to_62[2048], &quant_table_28_to_64[2048], &quant_table_28_to_72[2048], &quant_table_28_to_80[2048], &quant_table_28_to_88[2048], &quant_table_28_to_96[2048], &quant_table_28_to_104[2048], &quant_table_28_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_30_to_32[2048], &quant_table_30_to_34[2048], &quant_table_30_to_36[2048], &quant_table_30_to_38[2048], &quant_table_30_to_40[2048], &quant_table_30_to_42[2048], &quant_table_30_to_44[2048], &quant_table_30_to_46[2048], &quant_table_30_to_48[2048], &quant_table_30_to_50[2048], &quant_table_30_to_52[2048], &quant_table_30_to_54[2048], &quant_table_30_to_56[2048], &quant_table_30_to_58[2048], &quant_table_30_to_60[2048], &quant_table_30_to_62[2048], &quant_table_30_to_64[2048], &quant_table_30_to_72[2048], &quant_table_30_to_80[2048], &quant_table_30_to_88[2048], &quant_table_30_to_96[2048], &quant_table_30_to_104[2048], &quant_table_30_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_32_to_34[2048], &quant_table_32_to_36[2048], &quant_table_32_to_38[2048], &quant_table_32_to_40[2048], &quant_table_32_to_42[2048], &quant_table_32_to_44[2048], &quant_table_32_to_46[2048], &quant_table_32_to_48[2048], &quant_table_32_to_50[2048], &quant_table_32_to_52[2048], &quant_table_32_to_54[2048], &quant_table_32_to_56[2048], &quant_table_32_to_58[2048], &quant_table_32_to_60[2048], &quant_table_32_to_62[2048], &quant_table_32_to_64[2048], &quant_table_32_to_72[2048], &quant_table_32_to_80[2048], &quant_table_32_to_88[2048], &quant_table_32_to_96[2048], &quant_table_32_to_104[2048], &quant_table_32_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_34_to_36[2048], &quant_table_34_to_38[2048], &quant_table_34_to_40[2048], &quant_table_34_to_42[2048], &quant_table_34_to_44[2048], &quant_table_34_to_46[2048], &quant_table_34_to_48[2048], &quant_table_34_to_50[2048], &quant_table_34_to_52[2048], &quant_table_34_to_54[2048], &quant_table_34_to_56[2048], &quant_table_34_to_58[2048], &quant_table_34_to_60[2048], &quant_table_34_to_62[2048], &quant_table_34_to_64[2048], &quant_table_34_to_72[2048], &quant_table_34_to_80[2048], &quant_table_34_to_88[2048], &quant_table_34_to_96[2048], &quant_table_34_to_104[2048], &quant_table_34_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_36_to_38[2048], &quant_table_36_to_40[2048], &quant_table_36_to_42[2048], &quant_table_36_to_44[2048], &quant_table_36_to_46[2048], &quant_table_36_to_48[2048], &quant_table_36_to_50[2048], &quant_table_36_to_52[2048], &quant_table_36_to_54[2048], &quant_table_36_to_56[2048], &quant_table_36_to_58[2048], &quant_table_36_to_60[2048], &quant_table_36_to_62[2048], &quant_table_36_to_64[2048], &quant_table_36_to_72[2048], &quant_table_36_to_80[2048], &quant_table_36_to_88[2048], &quant_table_36_to_96[2048], &quant_table_36_to_104[2048], &quant_table_36_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_38_to_40[2048], &quant_table_38_to_42[2048], &quant_table_38_to_44[2048], &quant_table_38_to_46[2048], &quant_table_38_to_48[2048], &quant_table_38_to_50[2048], &quant_table_38_to_52[2048], &quant_table_38_to_54[2048], &quant_table_38_to_56[2048], &quant_table_38_to_58[2048], &quant_table_38_to_60[2048], &quant_table_38_to_62[2048], &quant_table_38_to_64[2048], &quant_table_38_to_72[2048], &quant_table_38_to_80[2048], &quant_table_38_to_88[2048], &quant_table_38_to_96[2048], &quant_table_38_to_104[2048], &quant_table_38_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_40_to_42[2048], &quant_table_40_to_44[2048], &quant_table_40_to_46[2048], &quant_table_40_to_48[2048], &quant_table_40_to_50[2048], &quant_table_40_to_52[2048], &quant_table_40_to_54[2048], &quant_table_40_to_56[2048], &quant_table_40_to_58[2048], &quant_table_40_to_60[2048], &quant_table_40_to_62[2048], &quant_table_40_to_64[2048], &quant_table_40_to_72[2048], &quant_table_40_to_80[2048], &quant_table_40_to_88[2048], &quant_table_40_to_96[2048], &quant_table_40_to_104[2048], &quant_table_40_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_42_to_44[2048], &quant_table_42_to_46[2048], &quant_table_42_to_48[2048], &quant_table_42_to_50[2048], &quant_table_42_to_52[2048], &quant_table_42_to_54[2048], &quant_table_42_to_56[2048], &quant_table_42_to_58[2048], &quant_table_42_to_60[2048], &quant_table_42_to_62[2048], &quant_table_42_to_64[2048], &quant_table_42_to_72[2048], &quant_table_42_to_80[2048], &quant_table_42_to_88[2048], &quant_table_42_to_96[2048], &quant_table_42_to_104[2048], &quant_table_42_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_44_to_46[2048], &quant_table_44_to_48[2048], &quant_table_44_to_50[2048], &quant_table_44_to_52[2048], &quant_table_44_to_54[2048], &quant_table_44_to_56[2048], &quant_table_44_to_58[2048], &quant_table_44_to_60[2048], &quant_table_44_to_62[2048], &quant_table_44_to_64[2048], &quant_table_44_to_72[2048], &quant_table_44_to_80[2048], &quant_table_44_to_88[2048], &quant_table_44_to_96[2048], &quant_table_44_to_104[2048], &quant_table_44_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_46_to_48[2048], &quant_table_46_to_50[2048], &quant_table_46_to_52[2048], &quant_table_46_to_54[2048], &quant_table_46_to_56[2048], &quant_table_46_to_58[2048], &quant_table_46_to_60[2048], &quant_table_46_to_62[2048], &quant_table_46_to_64[2048], &quant_table_46_to_72[2048], &quant_table_46_to_80[2048], &quant_table_46_to_88[2048], &quant_table_46_to_96[2048], &quant_table_46_to_104[2048], &quant_table_46_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_48_to_50[2048], &quant_table_48_to_52[2048], &quant_table_48_to_54[2048], &quant_table_48_to_56[2048], &quant_table_48_to_58[2048], &quant_table_48_to_60[2048], &quant_table_48_to_62[2048], &quant_table_48_to_64[2048], &quant_table_48_to_72[2048], &quant_table_48_to_80[2048], &quant_table_48_to_88[2048], &quant_table_48_to_96[2048], &quant_table_48_to_104[2048], &quant_table_48_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_50_to_52[2048], &quant_table_50_to_54[2048], &quant_table_50_to_56[2048], &quant_table_50_to_58[2048], &quant_table_50_to_60[2048], &quant_table_50_to_62[2048], &quant_table_50_to_64[2048], &quant_table_50_to_72[2048], &quant_table_50_to_80[2048], &quant_table_50_to_88[2048], &quant_table_50_to_96[2048], &quant_table_50_to_104[2048], &quant_table_50_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_52_to_54[2048], &quant_table_52_to_56[2048], &quant_table_52_to_58[2048], &quant_table_52_to_60[2048], &quant_table_52_to_62[2048], &quant_table_52_to_64[2048], &quant_table_52_to_72[2048], &quant_table_52_to_80[2048], &quant_table_52_to_88[2048], &quant_table_52_to_96[2048], &quant_table_52_to_104[2048], &quant_table_52_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_54_to_56[2048], &quant_table_54_to_58[2048], &quant_table_54_to_60[2048], &quant_table_54_to_62[2048], &quant_table_54_to_64[2048], &quant_table_54_to_72[2048], &quant_table_54_to_80[2048], &quant_table_54_to_88[2048], &quant_table_54_to_96[2048], &quant_table_54_to_104[2048], &quant_table_54_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_56_to_58[2048], &quant_table_56_to_60[2048], &quant_table_56_to_62[2048], &quant_table_56_to_64[2048], &quant_table_56_to_72[2048], &quant_table_56_to_80[2048], &quant_table_56_to_88[2048], &quant_table_56_to_96[2048], &quant_table_56_to_104[2048], &quant_table_56_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_58_to_60[2048], &quant_table_58_to_62[2048], &quant_table_58_to_64[2048], &quant_table_58_to_72[2048], &quant_table_58_to_80[2048], &quant_table_58_to_88[2048], &quant_table_58_to_96[2048], &quant_table_58_to_104[2048], &quant_table_58_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_60_to_62[2048], &quant_table_60_to_64[2048], &quant_table_60_to_72[2048], &quant_table_60_to_80[2048], &quant_table_60_to_88[2048], &quant_table_60_to_96[2048], &quant_table_60_to_104[2048], &quant_table_60_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_62_to_64[2048], &quant_table_62_to_72[2048], &quant_table_62_to_80[2048], &quant_table_62_to_88[2048], &quant_table_62_to_96[2048], &quant_table_62_to_104[2048], &quant_table_62_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_64_to_72[2048], &quant_table_64_to_80[2048], &quant_table_64_to_88[2048], &quant_table_64_to_96[2048], &quant_table_64_to_104[2048], &quant_table_64_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_72_to_80[2048], &quant_table_72_to_88[2048], &quant_table_72_to_96[2048], &quant_table_72_to_104[2048], &quant_table_72_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_80_to_88[2048], &quant_table_80_to_96[2048], &quant_table_80_to_104[2048], &quant_table_80_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_88_to_96[2048], &quant_table_88_to_104[2048], &quant_table_88_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_96_to_104[2048], &quant_table_96_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, &quant_table_104_to_112[2048]}, { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} }; dvd95/src/rdtsc.c000066400000000000000000000033021140003301000140370ustar00rootroot00000000000000/*============================================================================== FICHIER : [rdtsc.c] DATE : 2006/03/0001 21:20:38 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ Timing using time stamp counter ==============================================================================*/ #include #define __IN_RDTSC__ #include "rdtsc.h" #if ENABLE_COUNTERS #define rdtsc(low,high) \ __asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high)) /*------------------------------------------------------------------------------ COUNTERSTART- Linux!jef 2006/03/01 21:22:50 ------------------------------------------------------------------------------*/ void CounterStart( int no ) { rdtsc( Counters[no].sLow, Counters[no].sHigh ); } /*------------------------------------------------------------------------------ COUNTERSTOP- Linux!jef 2006/03/01 21:24:01 ------------------------------------------------------------------------------*/ void CounterStop( int no ) { unsigned int eLow, eHigh; unsigned long long before,after; rdtsc( eLow, eHigh ); before = Counters[no].sLow + (((long long)Counters[no].sHigh)<<32); after = eLow + (((long long)eHigh)<<32); Counters[no].sumTsc += after - before; } /*------------------------------------------------------------------------------ COUNTERSREPORT- Linux!jef 2006/03/01 21:27:08 ------------------------------------------------------------------------------*/ void CountersReport() { int i; for( i = 0; i < MAX_COUNTER; i++ ) { if( Counters[i].sumTsc ) { fprintf(stderr,"%s ran for %lld cycles\n", Counters[i].name, Counters[i].sumTsc ); } } } #endif dvd95/src/rdtsc.h000066400000000000000000000027311140003301000140510ustar00rootroot00000000000000/*============================================================================== FICHIER : [rdtsc.h] DATE : 2006/03/0001 21:28:47 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __RDTSC_H__ #define __RDTSC_H__ #define ENABLE_COUNTERS 0 typedef struct { char * name; unsigned int sLow, sHigh; unsigned long long sumTsc; } Counter_t; #define OVERALL_COUNTER 0 #define COPYCELL_COUNTER 1 #define COPYMENU_COUNTER 2 #define UPDATEVOB_COUNTER 3 #define MAX_COUNTER 4 #if ENABLE_COUNTERS #ifdef __IN_RDTSC__ static Counter_t Counters[MAX_COUNTER+1] = { { "OverAll", 0, 0, 0LL }, { "CopyCell", 0, 0, 0LL }, { "CopyMenu", 0, 0, 0LL }, { "UpdateVob", 0, 0, 0LL }, { NULL, 0, 0, 0LL } }; #endif #endif #if ENABLE_COUNTERS # define COUNTER_START(x) CounterStart(x) # define COUNTER_STOP(x) CounterStop(x) # define COUNTERS_REPORT() CountersReport() #else # define COUNTER_START(x) # define COUNTER_STOP(x) # define COUNTERS_REPORT() #endif /*@$#[rdtsc.c] global proto. AutoProtoSigV1.1. date: 106/03/01 21:35:08 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif void CounterStart PROTO((int no)); void CounterStop PROTO((int no)); void CountersReport PROTO((void)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __RDTSC_H__ */ dvd95/src/requant.c000066400000000000000000001776071140003301000144230ustar00rootroot00000000000000// Code from libmpeg2 and mpeg2enc copyright by their respective owners // New code and modifications copyright Antoine Missout // Thanks to Sven Goethel for error resilience patches // Released under GPL license, see gnu.org // toggles: #define THREAD // #define LOG_RATE_CONTROL // some stats // #define DEMO // demo mode // #define STAT // print stats on exit // #define USE_FD // use 2 lasts args for input/output paths #define NDEBUG // turns off asserts #define REMOVE_BYTE_STUFFING // removes series of 0x00 // #define USE_GLOBAL_REGISTER // assign registers to bit buffers #define MAX_ERRORS 0 // if above copy slice //#define CHANGE_BRIGHTNESS //add a param to command line, changing brightness: _will_not_recompress_, disables max_errors //#define WIN // for windows fixes, use with USE_FD // params: // if not defined, non intra block in p frames are requantised // if defined and >= 0, we keep coeff. in pos 0..n-1 in scan order // and coeff which would have been non-null if requantised // if defined and < 0 we drop max 1/x coeffs. // experimental, looks better when undefined // #define P_FRAME_NON_INTRA_DROP 8 // params for fact = 1.0, fact = 3.0 and fact = 10.0 // we'll make a linear interpolation between static const int i_factors[3] = { 5, 15, 65 }; static const int p_factors[3] = { 5, 25, 85 }; static const int b_factors[3] = { 25, 45, 105 }; static const double i_min_stresses[3] = { 0.80, 0.50, 0.00 }; static const double p_min_stresses[3] = { 0.60, 0.35, 0.00 }; static const double b_min_stresses[3] = { 0.00, 0.00, 0.00 }; // factor up to which alt table will be used // (though alt_table gives better psnr up to factor around ~2.5 // the result is less pleasing to watch than normal table // so this is disabled) static const double max_alt_table = 0.00; #define REACT_DELAY (1024.0*128.0) // includes #include #include #include #include #include #ifndef USE_FD #include #include #endif // quant table #include "qTable.h" #include "globals.h" // useful constants #define I_TYPE 1 #define P_TYPE 2 #define B_TYPE 3 #ifdef WIN #define MINLINE #else #define MINLINE inline #endif // gcc #ifdef HAVE_BUILTIN_EXPECT #define likely(x) __builtin_expect ((x) != 0, 1) #define unlikely(x) __builtin_expect ((x) != 0, 0) #else #define likely(x) (x) #define unlikely(x) (x) #endif // user defined types //typedef unsigned int uint; typedef unsigned char uint8; typedef unsigned short uint16; typedef unsigned int uint32; #ifdef WIN typedef __int64 uint64; #else typedef unsigned long long uint64; #endif typedef char int8; typedef short int16; typedef int int32; #ifdef WIN typedef __int64 int64; #else typedef long long int64; #endif typedef signed int sint; typedef signed char sint8; typedef signed short sint16; typedef signed int sint32; #ifdef WIN typedef __int64 sint64; #else typedef signed long long sint64; #endif #define BITS_IN_BUF (8) // global variables static uint8 *cbuf, *rbuf, *wbuf, *orbuf, *owbuf; #ifdef USE_GLOBAL_REGISTER register int inbitcnt asm ("r13"); register int outbitcnt asm ("r14"); register uint32 inbitbuf asm ("r15"); register uint32 outbitbuf asm ("r16"); #else static int inbitcnt, outbitcnt; static uint32 inbitbuf, outbitbuf; #endif static uint64 inbytecnt, outbytecnt; static float fact_x; static int mloka1, mloka2, eof; static int64 orim2vsize; static int64 bytediff; static double stress_factor; // from 0.0 to 1.0 static int i_factor; static int p_factor; static int b_factor; static double i_min_stress; static double p_min_stress; static double b_min_stress; static int64 greedyFactor, greedyFactor2; static short quant_table_id_data[4096]; static short *quant_table_id = &quant_table_id_data[2048]; #ifdef USE_FD static FILE *ifd, *ofd; #endif #ifdef STAT static uint64 ori_i, ori_p, ori_b; static uint64 new_i, new_p, new_b; static uint64 cnt_i, cnt_p, cnt_b; static uint64 cnt_p_i, cnt_p_ni; static uint64 cnt_b_i, cnt_b_ni; #endif #ifdef DEMO int gopCount; #endif #ifdef LOG_RATE_CONTROL FILE* LOG_FILE; #endif #ifdef CHANGE_BRIGHTNESS int delta_bright; int dc_reset; int old_dc_pred, new_dc_pred; #endif // mpeg2 state // seq header static uint horizontal_size_value; static uint vertical_size_value; // pic header static uint picture_coding_type; // pic code ext static uint f_code[2][2]; static uint intra_dc_precision; static uint picture_structure; static uint frame_pred_frame_dct; static uint concealment_motion_vectors; static uint q_scale_type; static uint intra_vlc_format; static uint alternate_scan; // error static int validPicHeader; static int validSeqHeader; static int validExtHeader; static int sliceError; // slice or mb static uint quantizer_scale; static uint new_quantizer_scale; static uint last_coded_scale; static int h_offset, v_offset; static int mb_skip, mb_add; static int mb_out; static int mb_sav_run, mb_sav_lev, mb_sav_c; static short *curTable; // block data typedef struct { uint8 run; short level; } RunLevel; static RunLevel block[6][65]; // terminated by level = 0, so we need 64+1 // end mpeg2 state #ifndef NDEBUG #define DEB(msg) fprintf (stderr, "%s:%d " msg, __FILE__, __LINE__) #define DEBF(format, args...) fprintf (stderr, "%s:%d " format, __FILE__, __LINE__, args) #else #define DEB(msg) #ifdef WIN #define DEBF(format, args) #else #define DEBF(format, args...) #endif #endif #ifdef THREAD #include "requant.h" #else #define LOG(msg) fprintf (stderr, msg) #ifdef WIN #define LOGF(format, arg1) fprintf (stderr, format, arg1) #else #define LOGF(format, args...) fprintf (stderr, format, args) #endif #define BUF_SIZE (16*1024*1024) #define MIN_READ (4*1024*1024) #define MIN_WRITE (8*1024*1024) #define MAX_READ (10*1024*1024) #define MOV_READ \ mloka1 = rbuf - cbuf; if (mloka1) memmove(orbuf, cbuf, mloka1);\ cbuf = rbuf = orbuf; rbuf += mloka1; #ifdef USE_FD #define WRITE \ mloka1 = wbuf - owbuf; \ fwrite(owbuf, mloka1, 1, ofd); \ outbytecnt += mloka1; \ wbuf = owbuf; #define LOCK(x) \ while (unlikely(x > (rbuf-cbuf))) \ { \ if (!eof)\ { \ mloka2 = MIN_READ; \ while (mloka2) \ {\ assert(rbuf + mloka2 < orbuf + BUF_SIZE); \ mloka1 = fread(rbuf, 1, mloka2, ifd); \ if (mloka1 <= 0) { eof = 1; break; } \ inbytecnt += mloka1; \ rbuf += mloka1; \ mloka2 -= mloka1; \ }\ } else { RETURN } \ } #else #define WRITE \ mloka1 = wbuf - owbuf; \ write(1, owbuf, mloka1); \ outbytecnt += mloka1; \ wbuf = owbuf; \ mloka1 = rbuf - cbuf; if (mloka1) memmove(orbuf, cbuf, mloka1);\ cbuf = rbuf = orbuf; rbuf += mloka1; #define LOCK(x) \ while (unlikely(x > (rbuf-cbuf))) \ { \ if (!eof)\ { \ mloka2 = MIN_READ; \ while (mloka2) \ {\ assert(rbuf + mloka2 < orbuf + BUF_SIZE); \ mloka1 = read(0, rbuf, mloka2); \ if (mloka1 <= 0) { eof = 1; break; } \ inbytecnt += mloka1; \ rbuf += mloka1; \ mloka2 -= mloka1; \ }\ } else { RETURN } \ } #endif #ifdef STAT #define RETURN \ assert(rbuf >= cbuf);\ mloka1 = rbuf - cbuf;\ if (mloka1) { COPY(mloka1); }\ WRITE \ free(orbuf); \ free(owbuf); \ \ LOG("Stats:\n");\ \ LOGF("Wanted fact_x: %.1f\n", fact_x);\ \ LOGF("cnt_i: %.0f ", (float)cnt_i); \ if (cnt_i) LOGF("ori_i: %.0f new_i: %.0f fact_i: %.1f\n", (float)ori_i, (float)new_i, (float)ori_i/(float)new_i); \ else LOG("\n");\ \ LOGF("cnt_p: %.0f ", (float)cnt_p); \ if (cnt_p) LOGF("ori_p: %.0f new_p: %.0f fact_p: %.1f cnt_p_i: %.0f cnt_p_ni: %.0f propor: %.1f i\n", \ (float)ori_p, (float)new_p, (float)ori_p/(float)new_p, (float)cnt_p_i, (float)cnt_p_ni, (float)cnt_p_i/((float)cnt_p_i+(float)cnt_p_ni)); \ else LOG("\n");\ \ LOGF("cnt_b: %.0f ", (float)cnt_b); \ if (cnt_b) LOGF("ori_b: %.0f new_b: %.0f fact_b: %.1f cnt_b_i: %.0f cnt_b_ni: %.0f propor: %.1f i\n", \ (float)ori_b, (float)new_b, (float)ori_b/(float)new_b, (float)cnt_b_i, (float)cnt_b_ni, (float)cnt_b_i/((float)cnt_b_i+(float)cnt_b_ni)); \ else LOG("\n");\ \ LOGF("Final fact_x: %.1f\n", (float)inbytecnt/(float)outbytecnt);\ exit(0); #else #define RETURN \ assert(rbuf >= cbuf);\ mloka1 = rbuf - cbuf;\ if (mloka1) { COPY(mloka1); }\ WRITE \ free(orbuf); \ free(owbuf); \ exit(0); #endif #define COPY(x)\ assert(x > 0); \ assert(wbuf + x < owbuf + BUF_SIZE); \ assert(cbuf + x < orbuf + BUF_SIZE); \ assert(cbuf + x >= orbuf); \ assert(wbuf + x >= orbuf); \ memcpy(wbuf, cbuf, x);\ cbuf += x; \ wbuf += x; #define SEEKR(x)\ cbuf += x; \ assert (cbuf <= rbuf); \ assert (cbuf < orbuf + BUF_SIZE); \ assert (cbuf >= orbuf); #define SEEKW(x)\ wbuf += x; \ assert (wbuf < owbuf + BUF_SIZE); \ assert (wbuf >= owbuf); #endif static MINLINE void putbits(uint val, int n) { assert(n < 32); assert(!(val & (0xffffffffU << n))); while (unlikely(n >= outbitcnt)) { wbuf[0] = (outbitbuf << outbitcnt ) | (val >> (n - outbitcnt)); SEEKW(1); n -= outbitcnt; outbitbuf = 0; val &= ~(0xffffffffU << n); outbitcnt = BITS_IN_BUF; } if (likely(n)) { outbitbuf = (outbitbuf << n) | val; outbitcnt -= n; } assert(outbitcnt > 0); assert(outbitcnt <= BITS_IN_BUF); } static MINLINE void Refill_bits(void) { assert((rbuf - cbuf) >= 1); inbitbuf |= cbuf[0] << (24 - inbitcnt); inbitcnt += 8; SEEKR(1) } static MINLINE void Flush_Bits(uint n) { assert(inbitcnt >= n); inbitbuf <<= n; inbitcnt -= n; assert( (!n) || ((n>0) && !(inbitbuf & 0x1)) ); while (unlikely(inbitcnt < 24)) Refill_bits(); } static MINLINE uint Show_Bits(uint n) { return ((unsigned int)inbitbuf) >> (32 - n); } static MINLINE uint Get_Bits(uint n) { uint Val = Show_Bits(n); Flush_Bits(n); return Val; } #if 1 static MINLINE uint Copy_Bits(uint n) { uint Val = Get_Bits(n); putbits(Val, n); return Val; } #else static MINLINE void Copy_Bits(uint n) { uint Val = ((unsigned int)inbitbuf) >> (32 - n); inbitcnt -= n; inbitbuf <<= n; while(unlikely(inbitcnt < 24)) { inbitbuf |= cbuf[0] << (24 - inbitcnt); inbitcnt += 8; SEEKR(1) } /* if(inbitcnt < 24) { inbitbuf |= cbuf[0] << (24 - inbitcnt); inbitcnt += 8; SEEKR(1) if(inbitcnt < 24) { inbitbuf |= cbuf[0] << (24 - inbitcnt); inbitcnt += 8; SEEKR(1) if(inbitcnt < 24) { inbitbuf |= cbuf[0] << (24 - inbitcnt); inbitcnt += 8; SEEKR(1) } } } */ putbits(Val, n); } #endif static MINLINE void flush_read_buffer() { int i = inbitcnt & 0x7; if (i) { if (inbitbuf >> (32 - i)) { DEBF("illegal inbitbuf: 0x%08X, %i, 0x%02X, %i\n", inbitbuf, inbitcnt, (inbitbuf >> (32 - i)), i); sliceError++; } inbitbuf <<= i; inbitcnt -= i; } SEEKR(-1 * (inbitcnt >> 3)); inbitcnt = 0; } static MINLINE void flush_write_buffer() { if (outbitcnt != 8) putbits(0, outbitcnt); } /////---- begin ext mpeg code static const uint8 non_linear_mquant_table[32] = { 0, 1, 2, 3, 4, 5, 6, 7, 8,10,12,14,16,18,20,22, 24,28,32,36,40,44,48,52, 56,64,72,80,88,96,104,112 }; static const uint8 map_non_linear_mquant[113] = { 0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,13,13,14,14,15,15,16,16, 16,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22, 22,22,23,23,23,23,24,24,24,24,24,24,24,25,25,25,25,25,25,25,26,26, 26,26,26,26,26,26,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,29, 29,29,29,29,29,29,29,29,29,30,30,30,30,30,30,30,31,31,31,31,31 }; static int scale_quant(double quant ) { int iquant; #ifdef DEMO if ((gopCount & 0x7F) < 10) // gop is ~ 0.5 sec, so 5 sec every ~minute (127 * 0.5 = 63.5 sec) { if (q_scale_type) return 112; else return 62; } #endif if (q_scale_type) { iquant = (int) floor(quant+0.5); /* clip mquant to legal (linear) range */ if (iquant<1) iquant = 1; if (iquant>112) iquant = 112; iquant = non_linear_mquant_table[map_non_linear_mquant[iquant]]; } else { /* clip mquant to legal (linear) range */ iquant = (int)floor(quant+0.5); if (iquant<2) iquant = 2; if (iquant>62) iquant = 62; iquant = (iquant/2)*2; // Must be *even* } return iquant; } static int increment_quant(int quant) { #ifdef DEMO if ((gopCount & 0x7F) < 10) { if (q_scale_type) return 112; else return 62; } #endif if (q_scale_type) { if (quant < 1 || quant > 112) { DEBF("illegal quant: %d\n", quant); if (quant > 112) quant = 112; else if (quant < 1) quant = 1; DEBF("illegal quant changed to : %d\n", quant); sliceError++; } quant = map_non_linear_mquant[quant] + 1; if (quant > 31) quant = 31; quant = non_linear_mquant_table[quant]; } else { if ((quant & 1) || (quant < 2) || (quant > 62)) { DEBF("illegal quant: %d\n", quant); if (quant & 1) quant--; if (quant > 62) quant = 62; else if (quant < 2) quant = 2; DEBF("illegal quant changed to : %d\n", quant); sliceError++; } quant += 2; if (quant > 62) quant = 62; } return quant; } static MINLINE int intmax( register int x, register int y ) { return x < y ? y : x; } static MINLINE int intmin( register int x, register int y ) { return x < y ? x : y; } static int getNewQuant(int curQuant, int intra) { #ifdef CHANGE_BRIGHTNESS return curQuant; #else int mquant = 0; double cStress; switch (picture_coding_type) { case I_TYPE: cStress = (stress_factor - i_min_stress) / (1.0 - i_min_stress); mquant = intmax(scale_quant(curQuant + i_factor*cStress), increment_quant(curQuant)); break; case P_TYPE: cStress = (stress_factor - p_min_stress) / (1.0 - p_min_stress); if (intra) // since it might be used as a ref, treat it as an I frame block mquant = intmax(scale_quant(curQuant + i_factor*cStress), increment_quant(curQuant)); else mquant = intmax(scale_quant(curQuant + p_factor*cStress), increment_quant(curQuant)); break; case B_TYPE: cStress = (stress_factor - b_min_stress) / (1.0 - b_min_stress); mquant = intmax(scale_quant(curQuant + b_factor*cStress), increment_quant(curQuant)); break; default: assert(0); break; } assert(mquant >= curQuant); return mquant; #endif } static MINLINE int isNotEmpty(RunLevel *blk) { return (blk->level); } #include "putvlc.h" // return != 0 if error static int putAC(int run, int signed_level, int vlcformat) { int level, len; const VLCtable *ptab = NULL; level = (signed_level<0) ? -signed_level : signed_level; /* abs(signed_level) */ // assert(!(run<0 || run>63 || level==0 || level>2047)); if(run<0 || run>63) { DEBF("illegal run: %d\n", run); sliceError++; return 1; } if(level==0 || level>2047) { DEBF("illegal level: %d\n", level); sliceError++; return 1; } len = 0; if (run<2 && level<41) { if (vlcformat) ptab = &dct_code_tab1a[run][level-1]; else ptab = &dct_code_tab1[run][level-1]; len = ptab->len; } else if (run<32 && level<6) { if (vlcformat) ptab = &dct_code_tab2a[run-2][level-1]; else ptab = &dct_code_tab2[run-2][level-1]; len = ptab->len; } if (len) /* a VLC code exists */ { putbits(ptab->code, len); putbits(signed_level<0, 1); /* sign */ } else { putbits(1l, 6); /* Escape */ putbits(run, 6); /* 6 bit code for run */ putbits(((uint)signed_level) & 0xFFF, 12); } return 0; } // return != 0 if error static MINLINE int putACfirst(int run, int val) { if (run==0 && (val==1 || val==-1)) { putbits(2|((val<0) ? 1 : 0), 2); return 0; } else return putAC(run,val,0); } static void putnonintrablk(RunLevel *blk) { assert(blk->level); if (putACfirst(blk->run, blk->level)) return; blk++; while(blk->level) { if (putAC(blk->run, blk->level, 0)) return; blk++; } putbits(2,2); } static MINLINE void putcbp(int cbp) { assert(cbp > 0 && cbp < 64); putbits(cbptable[cbp].code,cbptable[cbp].len); } static void putmbtype(int mb_type) { putbits(mbtypetab[picture_coding_type-1][mb_type].code, mbtypetab[picture_coding_type-1][mb_type].len); } #ifndef WIN #include #else typedef uint8 uint8_t; typedef int8 int8_t; typedef uint32 uint32_t; typedef int32 int32_t; #endif #include "getvlc.h" static int non_linear_quantizer_scale [] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 18, 20, 22, 24, 28, 32, 36, 40, 44, 48, 52, 56, 64, 72, 80, 88, 96, 104, 112 }; static MINLINE int get_macroblock_modes () { int macroblock_modes; const MBtab * tab; switch (picture_coding_type) { case I_TYPE: tab = MB_I + UBITS (bit_buf, 1); DUMPBITS (bit_buf, bits, tab->len); macroblock_modes = tab->modes; if ((! (frame_pred_frame_dct)) && (picture_structure == FRAME_PICTURE)) { macroblock_modes |= UBITS (bit_buf, 1) * DCT_TYPE_INTERLACED; DUMPBITS (bit_buf, bits, 1); } return macroblock_modes; case P_TYPE: tab = MB_P + UBITS (bit_buf, 5); DUMPBITS (bit_buf, bits, tab->len); macroblock_modes = tab->modes; if (picture_structure != FRAME_PICTURE) { if (macroblock_modes & MACROBLOCK_MOTION_FORWARD) { macroblock_modes |= UBITS (bit_buf, 2) * MOTION_TYPE_BASE; DUMPBITS (bit_buf, bits, 2); } return macroblock_modes; } else if (frame_pred_frame_dct) { if (macroblock_modes & MACROBLOCK_MOTION_FORWARD) macroblock_modes |= MC_FRAME; return macroblock_modes; } else { if (macroblock_modes & MACROBLOCK_MOTION_FORWARD) { macroblock_modes |= UBITS (bit_buf, 2) * MOTION_TYPE_BASE; DUMPBITS (bit_buf, bits, 2); } if (macroblock_modes & (MACROBLOCK_INTRA | MACROBLOCK_PATTERN)) { macroblock_modes |= UBITS (bit_buf, 1) * DCT_TYPE_INTERLACED; DUMPBITS (bit_buf, bits, 1); } return macroblock_modes; } case B_TYPE: tab = MB_B + UBITS (bit_buf, 6); DUMPBITS (bit_buf, bits, tab->len); macroblock_modes = tab->modes; if (picture_structure != FRAME_PICTURE) { if (! (macroblock_modes & MACROBLOCK_INTRA)) { macroblock_modes |= UBITS (bit_buf, 2) * MOTION_TYPE_BASE; DUMPBITS (bit_buf, bits, 2); } return macroblock_modes; } else if (frame_pred_frame_dct) { /* if (! (macroblock_modes & MACROBLOCK_INTRA)) */ macroblock_modes |= MC_FRAME; return macroblock_modes; } else { if (macroblock_modes & MACROBLOCK_INTRA) goto intra; macroblock_modes |= UBITS (bit_buf, 2) * MOTION_TYPE_BASE; DUMPBITS (bit_buf, bits, 2); if (macroblock_modes & (MACROBLOCK_INTRA | MACROBLOCK_PATTERN)) { intra: macroblock_modes |= UBITS (bit_buf, 1) * DCT_TYPE_INTERLACED; DUMPBITS (bit_buf, bits, 1); } return macroblock_modes; } default: return 0; } } static MINLINE int get_quantizer_scale () { int quantizer_scale_code; quantizer_scale_code = UBITS (bit_buf, 5); DUMPBITS (bit_buf, bits, 5); if (!quantizer_scale_code) { DEBF("illegal quant scale code: %d\n", quantizer_scale_code); sliceError++; quantizer_scale_code++; } if (q_scale_type) return non_linear_quantizer_scale[quantizer_scale_code]; else return quantizer_scale_code << 1; } static MINLINE void get_motion_delta (const int f_code) { #define bit_buf (inbitbuf) const MVtab * tab; if (bit_buf & 0x80000000) { COPYBITS (bit_buf, bits, 1); return; } else if (bit_buf >= 0x0c000000) { tab = MV_4 + UBITS (bit_buf, 4); COPYBITS (bit_buf, bits, tab->len + 1); if (f_code) COPYBITS (bit_buf, bits, f_code); return; } else { tab = MV_10 + UBITS (bit_buf, 10); COPYBITS (bit_buf, bits, tab->len + 1); if (f_code) COPYBITS (bit_buf, bits, f_code); return; } } static MINLINE void get_dmv () { const DMVtab * tab; tab = DMV_2 + UBITS (bit_buf, 2); COPYBITS (bit_buf, bits, tab->len); return; } static MINLINE int get_coded_block_pattern () { #define bit_buf (inbitbuf) const CBPtab * tab; if (bit_buf >= 0x20000000) { tab = CBP_7 + (UBITS (bit_buf, 7) - 16); DUMPBITS (bit_buf, bits, tab->len); return tab->cbp; } else { tab = CBP_9 + UBITS (bit_buf, 9); DUMPBITS (bit_buf, bits, tab->len); return tab->cbp; } } static MINLINE int get_luma_dc_dct_diff () { #define bit_buf (inbitbuf) #ifdef CHANGE_BRIGHTNESS #define DOBITS(x, y, z) DUMPBITS(x, y, z) #else #define DOBITS(x, y, z) COPYBITS(x, y, z) #endif const DCtab * tab; int size; int dc_diff; if (bit_buf < 0xf8000000) { tab = DC_lum_5 + UBITS (bit_buf, 5); size = tab->size; if (size) { DOBITS (bit_buf, bits, tab->len); //dc_diff = UBITS (bit_buf, size) - UBITS (SBITS (~bit_buf, 1), size); dc_diff = UBITS (bit_buf, size); if (!(dc_diff >> (size - 1))) dc_diff = (dc_diff + 1) - (1 << size); DOBITS (bit_buf, bits, size); return dc_diff; } else { DOBITS (bit_buf, bits, 3); return 0; } } else { tab = DC_long + (UBITS (bit_buf, 9) - 0x1e0); size = tab->size; DOBITS (bit_buf, bits, tab->len); //dc_diff = UBITS (bit_buf, size) - UBITS (SBITS (~bit_buf, 1), size); dc_diff = UBITS (bit_buf, size); if (!(dc_diff >> (size - 1))) dc_diff = (dc_diff + 1) - (1 << size); DOBITS (bit_buf, bits, size); return dc_diff; } } static MINLINE int get_chroma_dc_dct_diff () { #define bit_buf (inbitbuf) const DCtab * tab; int size; int dc_diff; if (bit_buf < 0xf8000000) { tab = DC_chrom_5 + UBITS (bit_buf, 5); size = tab->size; if (size) { COPYBITS (bit_buf, bits, tab->len); //dc_diff = UBITS (bit_buf, size) - UBITS (SBITS (~bit_buf, 1), size); dc_diff = UBITS (bit_buf, size); if (!(dc_diff >> (size - 1))) dc_diff = (dc_diff + 1) - (1 << size); COPYBITS (bit_buf, bits, size); return dc_diff; } else { COPYBITS (bit_buf, bits, 2); return 0; } } else { tab = DC_long + (UBITS (bit_buf, 10) - 0x3e0); size = tab->size; COPYBITS (bit_buf, bits, tab->len + 1); //dc_diff = UBITS (bit_buf, size) - UBITS (SBITS (~bit_buf, 1), size); dc_diff = UBITS (bit_buf, size); if (!(dc_diff >> (size - 1))) dc_diff = (dc_diff + 1) - (1 << size); COPYBITS (bit_buf, bits, size); return dc_diff; } } #define UPDATE_VAL \ val = curTable[val]; static void get_intra_block_B14 () { #define bit_buf (inbitbuf) int i, li; int val; const DCTtab * tab; li = i = 0; while (1) { if (bit_buf >= 0x28000000) { tab = DCT_B14AC_5 + (UBITS (bit_buf, 5) - 5); i += tab->run; if (i >= 64) break; /* end of block */ normal_code: DUMPBITS (bit_buf, bits, tab->len); val = tab->level; val = (val ^ SBITS (bit_buf, 1)) - SBITS (bit_buf, 1); UPDATE_VAL if (val) { if (putAC(i - li - 1, val, 0)) break; li = i; } DUMPBITS (bit_buf, bits, 1); continue; } else if (bit_buf >= 0x04000000) { tab = DCT_B14_8 + (UBITS (bit_buf, 8) - 4); i += tab->run; if (i < 64) goto normal_code; /* escape code */ i += (UBITS (bit_buf, 12) & 0x3F) - 64; if (i >= 64) { sliceError++; break; /* illegal, check needed to avoid buffer overflow */ } DUMPBITS (bit_buf, bits, 12); val = SBITS (bit_buf, 12); UPDATE_VAL if (val) { if (putAC(i - li - 1, val, 0)) break; li = i; } DUMPBITS (bit_buf, bits, 12); continue; } else if (bit_buf >= 0x02000000) { tab = DCT_B14_10 + (UBITS (bit_buf, 10) - 8); i += tab->run; if (i < 64) goto normal_code; } else if (bit_buf >= 0x00800000) { tab = DCT_13 + (UBITS (bit_buf, 13) - 16); i += tab->run; if (i < 64) goto normal_code; } else if (bit_buf >= 0x00200000) { tab = DCT_15 + (UBITS (bit_buf, 15) - 16); i += tab->run; if (i < 64) goto normal_code; } else { tab = DCT_16 + UBITS (bit_buf, 16); DUMPBITS (bit_buf, bits, 16); i += tab->run; if (i < 64) goto normal_code; } sliceError++; break; /* illegal, check needed to avoid buffer overflow */ } COPYBITS (bit_buf, bits, 2); /* end of block code */ } static void get_intra_block_B15 () { #define bit_buf (inbitbuf) int i, li; int val; const DCTtab * tab; li = i = 0; while (1) { if (bit_buf >= 0x04000000) { tab = DCT_B15_8 + (UBITS (bit_buf, 8) - 4); i += tab->run; if (i < 64) { normal_code: DUMPBITS (bit_buf, bits, tab->len); val = tab->level; val = (val ^ SBITS (bit_buf, 1)) - SBITS (bit_buf, 1); UPDATE_VAL if (val) { if (putAC(i - li - 1, val, 1)) break; li = i; } DUMPBITS (bit_buf, bits, 1); continue; } else { if (i >= 128) break; /* end of block */ i += (UBITS (bit_buf, 12) & 0x3F) - 64; if (i >= 64) { sliceError++; break; /* illegal, check against buffer overflow */ } DUMPBITS (bit_buf, bits, 12); val = SBITS (bit_buf, 12); UPDATE_VAL if (val) { if (putAC(i - li - 1, val, 1)) break; li = i; } DUMPBITS (bit_buf, bits, 12); continue; } } else if (bit_buf >= 0x02000000) { tab = DCT_B15_10 + (UBITS (bit_buf, 10) - 8); i += tab->run; if (i < 64) goto normal_code; } else if (bit_buf >= 0x00800000) { tab = DCT_13 + (UBITS (bit_buf, 13) - 16); i += tab->run; if (i < 64) goto normal_code; } else if (bit_buf >= 0x00200000) { tab = DCT_15 + (UBITS (bit_buf, 15) - 16); i += tab->run; if (i < 64) goto normal_code; } else { tab = DCT_16 + UBITS (bit_buf, 16); DUMPBITS (bit_buf, bits, 16); i += tab->run; if (i < 64) goto normal_code; } sliceError++; break; /* illegal, check needed to avoid buffer overflow */ } COPYBITS (bit_buf, bits, 4); /* end of block code */ } static int get_non_intra_block_rq (RunLevel *blk) { #define bit_buf (inbitbuf) //int q = quantizer_scale; //int nq = new_quantizer_scale, tst = (nq / q) + ((nq % q) ? 1 : 0); int i, li; int val; const DCTtab * tab; li = i = -1; if (bit_buf >= 0x28000000) { tab = DCT_B14DC_5 + (UBITS (bit_buf, 5) - 5); goto entry_1; } else goto entry_2; while (1) { if (bit_buf >= 0x28000000) { tab = DCT_B14AC_5 + (UBITS (bit_buf, 5) - 5); entry_1: i += tab->run; if (i >= 64) break; /* end of block */ normal_code: DUMPBITS (bit_buf, bits, tab->len); val = tab->level; val = (val ^ SBITS (bit_buf, 1)) - SBITS (bit_buf, 1); UPDATE_VAL if (val) { blk->level = val; blk->run = i - li - 1; li = i; blk++; } DUMPBITS (bit_buf, bits, 1); continue; } entry_2: if (bit_buf >= 0x04000000) { tab = DCT_B14_8 + (UBITS (bit_buf, 8) - 4); i += tab->run; if (i < 64) goto normal_code; /* escape code */ i += (UBITS (bit_buf, 12) & 0x3F) - 64; if (i >= 64) { sliceError++; break; /* illegal, check needed to avoid buffer overflow */ } DUMPBITS (bit_buf, bits, 12); val = SBITS (bit_buf, 12); UPDATE_VAL if (val) { blk->level = val; blk->run = i - li - 1; li = i; blk++; } DUMPBITS (bit_buf, bits, 12); continue; } else if (bit_buf >= 0x02000000) { tab = DCT_B14_10 + (UBITS (bit_buf, 10) - 8); i += tab->run; if (i < 64) goto normal_code; } else if (bit_buf >= 0x00800000) { tab = DCT_13 + (UBITS (bit_buf, 13) - 16); i += tab->run; if (i < 64) goto normal_code; } else if (bit_buf >= 0x00200000) { tab = DCT_15 + (UBITS (bit_buf, 15) - 16); i += tab->run; if (i < 64) goto normal_code; } else { tab = DCT_16 + UBITS (bit_buf, 16); DUMPBITS (bit_buf, bits, 16); i += tab->run; if (i < 64) goto normal_code; } sliceError++; break; /* illegal, check needed to avoid buffer overflow */ } DUMPBITS (bit_buf, bits, 2); /* dump end of block code */ blk->level = 0; return i; } #ifdef P_FRAME_NON_INTRA_DROP #if (P_FRAME_NON_INTRA_DROP < 0) #undef UPDATE_VAL #define UPDATE_VAL #define SAVE_VAL #define WRITE_VAL \ blk->level = val; \ blk->run = i - li - 1; \ li = i; \ blk++; #else #define SAVE_VAL oval = val; #define WRITE_VAL \ if ((val) || (i < P_FRAME_NON_INTRA_DROP)) \ { \ blk->level = oval; \ blk->run = i - li - 1; \ li = i; \ blk++; \ } #endif #else #define SAVE_VAL #define WRITE_VAL \ if (val) \ { \ blk->level = val; \ blk->run = i - li - 1; \ li = i; \ blk++; \ } #endif static int get_non_intra_block_sav (RunLevel *blk, int cc) { #define bit_buf (inbitbuf) int i, li; int val; const DCTtab * tab; #ifdef P_FRAME_NON_INTRA_DROP #if (P_FRAME_NON_INTRA_DROP < 0) RunLevel *oblk = blk; #else int oval; #endif #endif li = i = -1; if (bit_buf >= 0x28000000) { tab = DCT_B14DC_5 + (UBITS (bit_buf, 5) - 5); goto entry_1; } else goto entry_2; while (1) { if (bit_buf >= 0x28000000) { tab = DCT_B14AC_5 + (UBITS (bit_buf, 5) - 5); entry_1: i += tab->run; if (i >= 64) break; /* end of block */ normal_code: DUMPBITS (bit_buf, bits, tab->len); val = tab->level; val = (val ^ SBITS (bit_buf, 1)) - SBITS (bit_buf, 1); SAVE_VAL if (li == -1) { if (abs(val) < abs(mb_sav_lev)) { mb_sav_c = cc; mb_sav_lev = val; mb_sav_run = i - li - 1; } } UPDATE_VAL WRITE_VAL DUMPBITS (bit_buf, bits, 1); continue; } entry_2: if (bit_buf >= 0x04000000) { tab = DCT_B14_8 + (UBITS (bit_buf, 8) - 4); i += tab->run; if (i < 64) goto normal_code; /* escape code */ i += (UBITS (bit_buf, 12) & 0x3F) - 64; if (i >= 64) { sliceError++; break; /* illegal, check needed to avoid buffer overflow */ } DUMPBITS (bit_buf, bits, 12); val = SBITS (bit_buf, 12); SAVE_VAL if (li == -1) { if (abs(val) < abs(mb_sav_lev)) { mb_sav_c = cc; mb_sav_lev = val; mb_sav_run = i - li - 1; } } UPDATE_VAL WRITE_VAL DUMPBITS (bit_buf, bits, 12); continue; } else if (bit_buf >= 0x02000000) { tab = DCT_B14_10 + (UBITS (bit_buf, 10) - 8); i += tab->run; if (i < 64) goto normal_code; } else if (bit_buf >= 0x00800000) { tab = DCT_13 + (UBITS (bit_buf, 13) - 16); i += tab->run; if (i < 64) goto normal_code; } else if (bit_buf >= 0x00200000) { tab = DCT_15 + (UBITS (bit_buf, 15) - 16); i += tab->run; if (i < 64) goto normal_code; } else { tab = DCT_16 + UBITS (bit_buf, 16); DUMPBITS (bit_buf, bits, 16); i += tab->run; if (i < 64) goto normal_code; } sliceError++; break; /* illegal, check needed to avoid buffer overflow */ } DUMPBITS (bit_buf, bits, 2); /* dump end of block code */ #ifdef P_FRAME_NON_INTRA_DROP #if (P_FRAME_NON_INTRA_DROP < 0) blk -= (int)((blk - oblk) * (stress_factor / P_FRAME_NON_INTRA_DROP)); #ifdef DEMO if ((gopCount & 0x7F) < 10) blk = oblk; #endif #endif #endif blk->level = 0; return i; } #ifdef P_FRAME_NON_INTRA_DROP static int get_non_intra_block_drop (RunLevel *blk, int cc) { #define bit_buf (inbitbuf) int i, li; int val; const DCTtab * tab; #if (P_FRAME_NON_INTRA_DROP < 0) RunLevel *oblk = blk; #else int oval; #endif li = i = -1; if (bit_buf >= 0x28000000) { tab = DCT_B14DC_5 + (UBITS (bit_buf, 5) - 5); goto entry_1; } else goto entry_2; while (1) { if (bit_buf >= 0x28000000) { tab = DCT_B14AC_5 + (UBITS (bit_buf, 5) - 5); entry_1: i += tab->run; if (i >= 64) break; /* end of block */ normal_code: DUMPBITS (bit_buf, bits, tab->len); val = tab->level; val = (val ^ SBITS (bit_buf, 1)) - SBITS (bit_buf, 1); SAVE_VAL UPDATE_VAL WRITE_VAL DUMPBITS (bit_buf, bits, 1); continue; } entry_2: if (bit_buf >= 0x04000000) { tab = DCT_B14_8 + (UBITS (bit_buf, 8) - 4); i += tab->run; if (i < 64) goto normal_code; /* escape code */ i += (UBITS (bit_buf, 12) & 0x3F) - 64; if (i >= 64) { sliceError++; break; /* illegal, check needed to avoid buffer overflow */ } DUMPBITS (bit_buf, bits, 12); val = SBITS (bit_buf, 12); SAVE_VAL UPDATE_VAL WRITE_VAL DUMPBITS (bit_buf, bits, 12); continue; } else if (bit_buf >= 0x02000000) { tab = DCT_B14_10 + (UBITS (bit_buf, 10) - 8); i += tab->run; if (i < 64) goto normal_code; } else if (bit_buf >= 0x00800000) { tab = DCT_13 + (UBITS (bit_buf, 13) - 16); i += tab->run; if (i < 64) goto normal_code; } else if (bit_buf >= 0x00200000) { tab = DCT_15 + (UBITS (bit_buf, 15) - 16); i += tab->run; if (i < 64) goto normal_code; } else { tab = DCT_16 + UBITS (bit_buf, 16); DUMPBITS (bit_buf, bits, 16); i += tab->run; if (i < 64) goto normal_code; } sliceError++; break; /* illegal, check needed to avoid buffer overflow */ } DUMPBITS (bit_buf, bits, 2); /* dump end of block code */ #if (P_FRAME_NON_INTRA_DROP < 0) blk -= (int)((blk - oblk) * (stress_factor / P_FRAME_NON_INTRA_DROP)); #ifdef DEMO if ((gopCount & 0x7F) < 10) blk = oblk; #endif #endif blk->level = 0; return i; } #endif #ifdef CHANGE_BRIGHTNESS static void putDC(const sVLCtable *tab, int val) { int absval, size; absval = abs(val); size = 0; while (absval) { absval >>= 1; size++; } putbits(tab[size].code,tab[size].len); if (size!=0) { if (val>=0) absval = val; else absval = val + (1< (255 << intra_dc_precision)) val = 255 << intra_dc_precision; else if (val < 0) val = 0; bri = val - (128 << intra_dc_precision); new_dc_pred = val; dc_reset = 0; } else { val = bri + old_dc_pred; old_dc_pred = val; val += delta_bright << intra_dc_precision; if (val > (255 << intra_dc_precision)) val = 255 << intra_dc_precision; else if (val < 0) val = 0; bri = val - new_dc_pred; new_dc_pred = val; } putDC(DClumtab, bri); } #else if (cc == 0) get_luma_dc_dct_diff (); #endif else get_chroma_dc_dct_diff (); if (intra_vlc_format) get_intra_block_B15 (); else get_intra_block_B14 (); } static MINLINE void slice_non_intra_DCT (int cur_block) { #ifdef P_FRAME_NON_INTRA_DROP if (picture_coding_type == P_TYPE) { if ((h_offset == 0) || (h_offset == horizontal_size_value - 16)) get_non_intra_block_sav(block[cur_block], cur_block); else get_non_intra_block_drop(block[cur_block], cur_block); } else get_non_intra_block_rq(block[cur_block]); #else if ((picture_coding_type == P_TYPE) && ((h_offset == 0) || (h_offset == horizontal_size_value - 16))) get_non_intra_block_sav(block[cur_block], cur_block); else get_non_intra_block_rq(block[cur_block]); #endif } static void motion_fr_frame ( uint f_code[2] ) { get_motion_delta (f_code[0]); get_motion_delta (f_code[1]); } static void motion_fr_field ( uint f_code[2] ) { COPYBITS (bit_buf, bits, 1); get_motion_delta (f_code[0]); get_motion_delta (f_code[1]); COPYBITS (bit_buf, bits, 1); get_motion_delta (f_code[0]); get_motion_delta (f_code[1]); } static void motion_fr_dmv ( uint f_code[2] ) { get_motion_delta (f_code[0]); get_dmv (); get_motion_delta (f_code[1]); get_dmv (); } static void motion_fr_conceal ( ) { get_motion_delta (f_code[0][0]); get_motion_delta (f_code[0][1]); COPYBITS (bit_buf, bits, 1); } static void motion_fi_field ( uint f_code[2] ) { COPYBITS (bit_buf, bits, 1); get_motion_delta (f_code[0]); get_motion_delta (f_code[1]); } static void motion_fi_16x8 ( uint f_code[2] ) { COPYBITS (bit_buf, bits, 1); get_motion_delta (f_code[0]); get_motion_delta (f_code[1]); COPYBITS (bit_buf, bits, 1); get_motion_delta (f_code[0]); get_motion_delta (f_code[1]); } static void motion_fi_dmv ( uint f_code[2] ) { get_motion_delta (f_code[0]); get_dmv (); get_motion_delta (f_code[1]); get_dmv (); } static void motion_fi_conceal () { COPYBITS (bit_buf, bits, 1); get_motion_delta (f_code[0][0]); get_motion_delta (f_code[0][1]); COPYBITS (bit_buf, bits, 1); } #define MOTION_CALL(routine,direction) \ do { \ if ((direction) & MACROBLOCK_MOTION_FORWARD) \ routine (f_code[0]); \ if ((direction) & MACROBLOCK_MOTION_BACKWARD) \ routine (f_code[1]); \ } while (0) #define NEXT_MACROBLOCK \ do { \ h_offset += 16; \ if (h_offset == horizontal_size_value) \ { \ v_offset += 16; \ if (v_offset > (vertical_size_value - 16)) return; \ h_offset = 0; \ } \ } while (0) static void putmbdata(int macroblock_modes) { putmbtype(macroblock_modes & 0x1F); /*switch (picture_coding_type) { case I_TYPE: if ((! (frame_pred_frame_dct)) && (picture_structure == FRAME_PICTURE)) putbits(macroblock_modes & DCT_TYPE_INTERLACED ? 1 : 0, 1); break; case P_TYPE: if (picture_structure != FRAME_PICTURE) { if (macroblock_modes & MACROBLOCK_MOTION_FORWARD) putbits((macroblock_modes & MOTION_TYPE_MASK) / MOTION_TYPE_BASE, 2); break; } else if (frame_pred_frame_dct) break; else { if (macroblock_modes & MACROBLOCK_MOTION_FORWARD) putbits((macroblock_modes & MOTION_TYPE_MASK) / MOTION_TYPE_BASE, 2); if (macroblock_modes & (MACROBLOCK_INTRA | MACROBLOCK_PATTERN)) putbits(macroblock_modes & DCT_TYPE_INTERLACED ? 1 : 0, 1); break; } case B_TYPE: if (picture_structure != FRAME_PICTURE) { if (! (macroblock_modes & MACROBLOCK_INTRA)) putbits((macroblock_modes & MOTION_TYPE_MASK) / MOTION_TYPE_BASE, 2); break; } else if (frame_pred_frame_dct) break; else { if (macroblock_modes & MACROBLOCK_INTRA) goto intra; putbits((macroblock_modes & MOTION_TYPE_MASK) / MOTION_TYPE_BASE, 2); if (macroblock_modes & (MACROBLOCK_INTRA | MACROBLOCK_PATTERN)) { intra: putbits(macroblock_modes & DCT_TYPE_INTERLACED ? 1 : 0, 1); } break; } }*/ if (macroblock_modes & (MACROBLOCK_MOTION_FORWARD | MACROBLOCK_MOTION_BACKWARD)) { if (picture_structure == FRAME_PICTURE) { if (frame_pred_frame_dct == 0) { putbits((macroblock_modes & MOTION_TYPE_MASK) / MOTION_TYPE_BASE, 2); } } else { putbits((macroblock_modes & MOTION_TYPE_MASK) / MOTION_TYPE_BASE, 2); } } if ((picture_structure == FRAME_PICTURE) && (frame_pred_frame_dct == 0) && (macroblock_modes & (MACROBLOCK_INTRA | MACROBLOCK_PATTERN))) { putbits(macroblock_modes & DCT_TYPE_INTERLACED ? 1 : 0, 1); } } static MINLINE void put_quantiser(int quantiser) { putbits(q_scale_type ? map_non_linear_mquant[quantiser] : quantiser >> 1, 5); last_coded_scale = quantiser; } static void putaddrinc(int addrinc) { mb_out += addrinc; //LOGF("mb_out: %i\n", mb_out); if (mb_out > (horizontal_size_value >> 4)) { sliceError++; //LOGF("mb_out: %i, hsv: %i, curo: %i\n", mb_out, horizontal_size_value, (int)outbytecnt + (wbuf - owbuf)); } while (addrinc>33) { putbits(0x08,11); /* macroblock_escape */ addrinc-= 33; } assert( addrinc >= 1 && addrinc <= 33 ); putbits(addrinctab[addrinc-1].code,addrinctab[addrinc-1].len); } static MINLINE int slice_init (int code) { #define bit_buf (inbitbuf) int offset; const MBAtab * mba; mb_out = 0; v_offset = (code - 1) * 16; quantizer_scale = get_quantizer_scale (); new_quantizer_scale = getNewQuant(quantizer_scale, 0); put_quantiser(new_quantizer_scale); /* ignore intra_slice and all the extra data */ while (bit_buf & 0x80000000) { DUMPBITS (bit_buf, bits, 9); } /* decode initial macroblock address increment */ offset = 0; while (1) { if (bit_buf >= 0x08000000) { mba = MBA_5 + (UBITS (bit_buf, 6) - 2); break; } else if (bit_buf >= 0x01800000) { mba = MBA_11 + (UBITS (bit_buf, 12) - 24); break; } else switch (UBITS (bit_buf, 12)) { case 8: /* macroblock_escape */ offset += 33; DUMPBITS (bit_buf, bits, 11); continue; default: /* error */ sliceError++; return 1; } } mb_add = offset + mba->mba + 1; mb_skip = 0; COPYBITS (bit_buf, bits, 1); DUMPBITS(bit_buf, bits, mba->len); h_offset = (offset + mba->mba) << 4; while (h_offset - (int)horizontal_size_value >= 0) { h_offset -= horizontal_size_value; v_offset += 16; } if (v_offset > (vertical_size_value - 16)) return 1; return 0; } static void mpeg2_slice ( const int code ) { #define bit_buf (inbitbuf) #ifdef CHANGE_BRIGHTNESS dc_reset = 1; #endif if (slice_init (code)) return; while (1) { int macroblock_modes; int mba_inc; const MBAtab * mba; macroblock_modes = get_macroblock_modes (); if (macroblock_modes & MACROBLOCK_QUANT) quantizer_scale = get_quantizer_scale (); if (macroblock_modes & MACROBLOCK_INTRA) { #ifdef STAT if (picture_coding_type == P_TYPE) cnt_p_i++; else if (picture_coding_type == B_TYPE) cnt_b_i++; #endif new_quantizer_scale = getNewQuant(quantizer_scale, 1); if (last_coded_scale == new_quantizer_scale) macroblock_modes &= 0xFFFFFFEF; // remove MACROBLOCK_QUANT else macroblock_modes |= MACROBLOCK_QUANT; //add MACROBLOCK_QUANT putaddrinc(mb_add + mb_skip); mb_skip = 0; putmbdata(macroblock_modes); if (macroblock_modes & MACROBLOCK_QUANT) put_quantiser(new_quantizer_scale); if (concealment_motion_vectors) { if (picture_structure == FRAME_PICTURE) motion_fr_conceal (); else motion_fi_conceal (); } curTable = quant_tables[quant_equ[quantizer_scale]][quant_equ[new_quantizer_scale]]; if (!curTable) { /*DEBF("Inv. curTable: qs: %i nqs: %i qe_qs: %i qe_nqs: %i\n", quantizer_scale, new_quantizer_scale, quant_equ[quantizer_scale], quant_equ[new_quantizer_scale]);*/ curTable = quant_table_id; } slice_intra_DCT ( 0); slice_intra_DCT ( 0); slice_intra_DCT ( 0); slice_intra_DCT ( 0); slice_intra_DCT ( 1); slice_intra_DCT ( 2); } else { int new_coded_block_pattern = 0; // begin saving data int batb; uint8 n_owbuf[32], *n_wbuf, *o_owbuf, *o_wbuf; uint32 n_outbitcnt, n_outbitbuf, o_outbitcnt, o_outbitbuf; #ifdef CHANGE_BRIGHTNESS dc_reset = 1; #endif #define PUSH_BIT_IO \ o_owbuf = owbuf; o_wbuf = wbuf; \ o_outbitcnt = outbitcnt; o_outbitbuf = outbitbuf; \ owbuf = wbuf = n_owbuf; \ outbitcnt = BITS_IN_BUF; outbitbuf = 0; #define POP_BIT_IO \ n_wbuf = wbuf; \ n_outbitcnt = outbitcnt; n_outbitbuf = outbitbuf; \ owbuf = o_owbuf; wbuf = o_wbuf; \ outbitcnt = o_outbitcnt; outbitbuf = o_outbitbuf; PUSH_BIT_IO if (picture_structure == FRAME_PICTURE) switch (macroblock_modes & MOTION_TYPE_MASK) { case MC_FRAME: MOTION_CALL (motion_fr_frame, macroblock_modes); break; case MC_FIELD: MOTION_CALL (motion_fr_field, macroblock_modes); break; case MC_DMV: MOTION_CALL (motion_fr_dmv, MACROBLOCK_MOTION_FORWARD); break; } else switch (macroblock_modes & MOTION_TYPE_MASK) { case MC_FIELD: MOTION_CALL (motion_fi_field, macroblock_modes); break; case MC_16X8: MOTION_CALL (motion_fi_16x8, macroblock_modes); break; case MC_DMV: MOTION_CALL (motion_fi_dmv, MACROBLOCK_MOTION_FORWARD); break; } POP_BIT_IO // end saving data #ifdef STAT if (picture_coding_type == P_TYPE) cnt_p_ni++; else if (picture_coding_type == B_TYPE) cnt_b_ni++; #endif new_quantizer_scale = getNewQuant(quantizer_scale, 0); if (macroblock_modes & MACROBLOCK_PATTERN) { int coded_block_pattern = get_coded_block_pattern (); mb_sav_lev = 0xFFFF; curTable = quant_tables[quant_equ[quantizer_scale]][quant_equ[new_quantizer_scale]]; if (!curTable) { /*DEBF("Inv. curTable: qs: %i nqs: %i qe_qs: %i qe_nqs: %i\n", quantizer_scale, new_quantizer_scale, quant_equ[quantizer_scale], quant_equ[new_quantizer_scale]);*/ curTable = quant_table_id; } if (coded_block_pattern & 0x20) { slice_non_intra_DCT(0); if (isNotEmpty(block[0])) new_coded_block_pattern |= 0x20; } if (coded_block_pattern & 0x10) { slice_non_intra_DCT(1); if (isNotEmpty(block[1])) new_coded_block_pattern |= 0x10; } if (coded_block_pattern & 0x08) { slice_non_intra_DCT(2); if (isNotEmpty(block[2])) new_coded_block_pattern |= 0x08; } if (coded_block_pattern & 0x04) { slice_non_intra_DCT(3); if (isNotEmpty(block[3])) new_coded_block_pattern |= 0x04; } if (coded_block_pattern & 0x02) { slice_non_intra_DCT(4); if (isNotEmpty(block[4])) new_coded_block_pattern |= 0x02; } if (coded_block_pattern & 0x01) { slice_non_intra_DCT(5); if (isNotEmpty(block[5])) new_coded_block_pattern |= 0x01; } #ifdef P_FRAME_NON_INTRA_DROP if (picture_coding_type == P_TYPE) new_quantizer_scale = quantizer_scale; #endif if (!new_coded_block_pattern) { macroblock_modes &= 0xFFFFFFED; // remove MACROBLOCK_PATTERN and MACROBLOCK_QUANT flag if ( (picture_coding_type == P_TYPE) && !(macroblock_modes & MACROBLOCK_MOTION_FORWARD)) { assert(n_wbuf == n_owbuf); assert(n_outbitcnt == BITS_IN_BUF); if ((h_offset == 0) || (h_offset == horizontal_size_value - 16)) // can't skip last mb { // we can't transmit mv (0,0) since PMV could be different than 0 for last block // so we transmit the single smallest coeff. instead unrequantised // anyway this is likely to take no more bit than transmiting a null mv.... assert((mb_sav_lev) && (mb_sav_lev != 0xFFFF)); new_coded_block_pattern = 1 << (5 - mb_sav_c); macroblock_modes |= MACROBLOCK_PATTERN; new_quantizer_scale = quantizer_scale; block[mb_sav_c][0].run = mb_sav_run; block[mb_sav_c][0].level = mb_sav_lev; block[mb_sav_c][1].run = 0; block[mb_sav_c][1].level = 0; } else { mb_skip += mb_add; goto skip_mb; } } } } if (last_coded_scale == new_quantizer_scale) macroblock_modes &= 0xFFFFFFEF; // remove MACROBLOCK_QUANT else if (macroblock_modes & MACROBLOCK_PATTERN) macroblock_modes |= MACROBLOCK_QUANT; //add MACROBLOCK_QUANT assert( (macroblock_modes & MACROBLOCK_PATTERN) || !(macroblock_modes & MACROBLOCK_QUANT) ); putaddrinc(mb_add + mb_skip); mb_skip = 0; putmbdata(macroblock_modes); if (macroblock_modes & MACROBLOCK_QUANT) put_quantiser(new_quantizer_scale); // put saved motion data... for (batb = 0; batb < (n_wbuf - n_owbuf); batb++) putbits(n_owbuf[batb], 8); putbits(n_outbitbuf, BITS_IN_BUF - n_outbitcnt); // end saved motion data... if (macroblock_modes & MACROBLOCK_PATTERN) { putcbp(new_coded_block_pattern); if (new_coded_block_pattern & 0x20) putnonintrablk(block[0]); if (new_coded_block_pattern & 0x10) putnonintrablk(block[1]); if (new_coded_block_pattern & 0x08) putnonintrablk(block[2]); if (new_coded_block_pattern & 0x04) putnonintrablk(block[3]); if (new_coded_block_pattern & 0x02) putnonintrablk(block[4]); if (new_coded_block_pattern & 0x01) putnonintrablk(block[5]); } } skip_mb: NEXT_MACROBLOCK; mba_inc = 0; while (1) { if (bit_buf >= 0x10000000) { mba = MBA_5 + (UBITS (bit_buf, 5) - 2); break; } else if (bit_buf >= 0x03000000) { mba = MBA_11 + (UBITS (bit_buf, 11) - 24); break; } else switch (UBITS (bit_buf, 11)) { case 8: /* macroblock_escape */ mba_inc += 33; DUMPBITS (bit_buf, bits, 11); continue; default: /* end of slice, or error */ //LOGF("hoffset: %i, hsv: %i, curo: %i\n", h_offset, horizontal_size_value, (int)outbytecnt + (wbuf - owbuf)); if (h_offset != 0) sliceError++; return; } } DUMPBITS (bit_buf, bits, mba->len); //PPP mba_inc += mba->mba; mb_add = mba_inc + 1; #ifdef CHANGE_BRIGHTNESS if (mba_inc) dc_reset = 1; #endif if (mba_inc) do { NEXT_MACROBLOCK; } while (--mba_inc); } } /////---- end ext mpeg code #ifdef CHANGE_BRIGHTNESS #ifdef USE_FD #define USAGE \ fprintf(stderr,\ "\nUsage is :\n"\ "\t%s [ignored_recompression_factor] [ignored_quality_factor] inputM2Vsize brightness_delta input.m2v output.m2v\n\n", argv[0]);\ return -1; #else #define USAGE \ fprintf(stderr,\ "\nUsage is :\n"\ "\t%s [ignored_recompression_factor] [ignored_quality_factor] inputM2Vsize brightness_delta\n\n", argv[0]);\ return -1; #endif #else #ifdef USE_FD #define USAGE \ fprintf(stderr,\ "\nUsage is :\n"\ "\t%s recompression_factor [ignored_quality_factor] inputM2Vsize input.m2v output.m2v\n\n", argv[0]);\ return -1; #else #define USAGE \ fprintf(stderr,\ "\nUsage is :\n"\ "\t%s recompression_factor [ignored_quality_factor] inputM2Vsize\n\n", argv[0]);\ return -1; #endif #endif static int quantisers[42] = { 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 72, 80, 88, 96, 104, 112 }; #ifdef THREAD void *requant_thread (void *p) #else int main (int argc, const char * argv[]) #endif { uint8 ID, found; int i; #ifdef DEMO gopCount = 0; #endif #ifdef LOG_RATE_CONTROL LOG_FILE = fopen("Logfile.txt", "w"); #endif #ifdef STAT ori_i = ori_p = ori_b = 0; new_i = new_p = new_b = 0; cnt_i = cnt_p = cnt_b = 0; cnt_p_i = cnt_p_ni = 0; cnt_b_i = cnt_b_ni = 0; #endif #ifdef USE_FD if (argc < 3) { USAGE } ifd = fopen(argv[argc - 2], "rb"); ofd = fopen(argv[argc - 1], "wb"); if (!ifd) { LOGF("Bad input path! (%s)\n", argv[argc - 2]); return 2; } if (!ofd) { LOGF("Bad output path! (%s)\n", argv[argc - 1]); return 2; } argc -= 2; #endif #ifndef THREAD rbuf = cbuf = orbuf = malloc(BUF_SIZE); wbuf = owbuf = malloc(BUF_SIZE); inbytecnt = outbytecnt = 0; eof = 0; #endif validPicHeader = 0; validSeqHeader = 0; validExtHeader = 0; #ifndef THREAD // argument parsing #ifdef CHANGE_BRIGHTNESS if (argc < 5) { USAGE } delta_bright = atoi(argv[4]); #else if (argc < 4) { USAGE } #endif fact_x = atof(argv[1]); sscanf(argv[3], "%lld", &orim2vsize); #endif /* added */ #ifdef THREAD orim2vsize = rqt_visize; fact_x = rqt_fact; #endif greedyFactor = orim2vsize / 100; greedyFactor2 = orim2vsize / 50; #ifndef THREAD if (fact_x <= 1.0) { unsigned char buf[4096]; while(1) { int i = read(0, buf, 4096); if (i > 0) write(1, buf, i); else return 0; } } else if (fact_x > 900.0) fact_x = 900.0; #endif // factor and stresses setting if (fact_x <= 1.0) { i_factor = i_factors[0]; p_factor = p_factors[0]; b_factor = b_factors[0]; i_min_stress = i_min_stresses[0]; p_min_stress = p_min_stresses[0]; b_min_stress = b_min_stresses[0]; } else if (fact_x >= 10.0) { i_factor = i_factors[2]; p_factor = p_factors[2]; b_factor = b_factors[2]; i_min_stress = i_min_stresses[2]; p_min_stress = p_min_stresses[2]; b_min_stress = b_min_stresses[2]; } else if (fact_x <= 3.0) // 1.0 .. 3.0 { double inter = (fact_x - 1.0)/(3.0 - 1.0); i_factor = i_factors[0] + inter * (i_factors[1] - i_factors[0]); p_factor = p_factors[0] + inter * (p_factors[1] - p_factors[0]); b_factor = b_factors[0] + inter * (b_factors[1] - b_factors[0]); i_min_stress = i_min_stresses[0] + inter * (i_min_stresses[1] - i_min_stresses[0]); p_min_stress = p_min_stresses[0] + inter * (p_min_stresses[1] - p_min_stresses[0]); b_min_stress = b_min_stresses[0] + inter * (b_min_stresses[1] - b_min_stresses[0]); } else // 3.0 .. 10.0 { double inter = (fact_x - 3.0)/(10.0 - 3.0); i_factor = i_factors[1] + inter * (i_factors[2] - i_factors[1]); p_factor = p_factors[1] + inter * (p_factors[2] - p_factors[1]); b_factor = b_factors[1] + inter * (b_factors[2] - b_factors[1]); i_min_stress = i_min_stresses[1] + inter * (i_min_stresses[2] - i_min_stresses[1]); p_min_stress = p_min_stresses[1] + inter * (p_min_stresses[2] - p_min_stresses[1]); b_min_stress = b_min_stresses[1] + inter * (b_min_stresses[2] - b_min_stresses[1]); } /*LOGF( "i_factor: %i p_factor: %i b_factor: %i\n" "i_min_stress: %.02f p_min_stress: %.02f b_min_stress: %.02f\n", i_factor, p_factor, b_factor, i_min_stress, p_min_stress, b_min_stress);*/ // fill quant table // id table for (i = -2048; i <= 2047; i++) quant_table_id[i] = i; // other tables for (i = 0; i < 42; i++) { int q = quantisers[i]; int j; for (j = i + 1; j < 42; j++) { int nq = quantisers[j]; int k; short *cTab = quant_tables[quant_equ[q]][quant_equ[nq]]; for (k = -2048; k <= 2047; k++) { int ov = k*q; int t = ov / nq; if (fact_x <= max_alt_table) { int t2, t3; int d, d2, d3; int nv, nv2, nv3; t2 = t + 1; t3 = t - 1; nv = t * nq; nv2 = t2 * nq; nv3 = t3 * nq; d = abs(nv - ov); d2 = abs(nv2 - ov); d3 = abs(nv3 - ov); if (d2 < d) { d = d2; t = t2; } if (d3 < d) t = t3; } if (t > 2047) t = 2047; else if (t < -2048) t = -2048; cTab[k] = t; } } } #ifndef THREAD LOG("M2VRequantiser by Makira.\n"); #ifdef WIN fprintf(stderr, "Using %f as factor, %lld as m2v size.\n", fact_x, orim2vsize); #else LOGF("Using %f as factor, %lld as m2v size.\n", fact_x, orim2vsize); #endif #endif // recoding while(1) { // get next start code prefix found = 0; while (!found) { #ifndef REMOVE_BYTE_STUFFING LOCK(3) #else LOCK(8) if ( (cbuf[7] == 0) && (cbuf[6] == 0) && (cbuf[5] == 0) && (cbuf[4] == 0) && (cbuf[3] == 0) && (cbuf[2] == 0) && (cbuf[1] == 0) && (cbuf[0] == 0) ) { SEEKR(1) } else #endif if ( (cbuf[0] == 0) && (cbuf[1] == 0) && (cbuf[2] == 1) ) found = 1; // start code ! else { COPY(1) } // continue search } COPY(3) // get start code LOCK(1) ID = cbuf[0]; COPY(1) if (ID == 0x00) // pic header { LOCK(4) picture_coding_type = (cbuf[1] >> 3) & 0x7; if (picture_coding_type < 1 || picture_coding_type > 3) { DEBF("illegal picture_coding_type: %i\n", picture_coding_type); validPicHeader = 0; } else { validPicHeader = 1; cbuf[1] |= 0x7; cbuf[2] = 0xFF; cbuf[3] |= 0xF8; // vbv_delay is now 0xFFFF } validExtHeader = 0; COPY(4) } else if (ID == 0xB3) // seq header { LOCK(8) horizontal_size_value = (cbuf[0] << 4) | (cbuf[1] >> 4); vertical_size_value = ((cbuf[1] & 0xF) << 8) | cbuf[2]; if ( horizontal_size_value > 720 || horizontal_size_value < 352 || vertical_size_value > 576 || vertical_size_value < 480 || (horizontal_size_value & 0xF) || (vertical_size_value & 0xF)) { DEBF("illegal size, hori: %i verti: %i\n", horizontal_size_value, vertical_size_value); validSeqHeader = 0; } else validSeqHeader = 1; validPicHeader = 0; validExtHeader = 0; COPY(8) } else if (ID == 0xB5) // extension { LOCK(1) if ((cbuf[0] >> 4) == 0x8) // pic coding ext { LOCK(5) f_code[0][0] = (cbuf[0] & 0xF) - 1; f_code[0][1] = (cbuf[1] >> 4) - 1; f_code[1][0] = (cbuf[1] & 0xF) - 1; f_code[1][1] = (cbuf[2] >> 4) - 1; intra_dc_precision = (cbuf[2] >> 2) & 0x3; picture_structure = cbuf[2] & 0x3; frame_pred_frame_dct = (cbuf[3] >> 6) & 0x1; concealment_motion_vectors = (cbuf[3] >> 5) & 0x1; q_scale_type = (cbuf[3] >> 4) & 0x1; intra_vlc_format = (cbuf[3] >> 3) & 0x1; alternate_scan = (cbuf[3] >> 2) & 0x1; if ( (f_code[0][0] > 8 && f_code[0][0] < 14) || (f_code[0][1] > 8 && f_code[0][1] < 14) || (f_code[1][0] > 8 && f_code[1][0] < 14) || (f_code[1][1] > 8 && f_code[1][1] < 14) || picture_structure == 0) { DEBF("illegal ext, f_code[0][0]: %i f_code[0][1]: %i f_code[1][0]: %i f_code[1][1]: %i picture_structure:%i\n", f_code[0][0], f_code[0][1], f_code[1][0], f_code[1][1], picture_structure); validExtHeader = 0; } else validExtHeader = 1; COPY(5) } else { COPY(1) } } else if (ID == 0xB8) // gop header { LOCK(4) COPY(4) #ifdef DEMO gopCount++; #endif } else if ((ID >= 0x01) && (ID <= 0xAF) && validPicHeader && validSeqHeader && validExtHeader) // slice { uint8 *outTemp = wbuf, *inTemp = cbuf; int64 threshold; bytediff = (outbytecnt + (wbuf - owbuf)) - ((inbytecnt - (rbuf - cbuf)) / fact_x); if (inbytecnt < greedyFactor2) threshold = inbytecnt >> 1; else if (orim2vsize - inbytecnt < greedyFactor2) threshold = (orim2vsize - inbytecnt) >> 1; else threshold = greedyFactor; if (threshold < 1024) threshold = 1024; stress_factor = (float)(bytediff + threshold) / (float)(threshold << 1); if (stress_factor > 1.0f) stress_factor = 1.0f; else if (stress_factor < 0.0f) stress_factor = 0.0f; // DBG('r',fprintf(stderr,"%s: stress_factor=%f threshold=%lld greedyFactor=%lld greedyFactor2=%lld\n", __FUNCTION__, stress_factor, threshold, greedyFactor, greedyFactor2 );); #if 0 stress_factor = (((inbytecnt - (rbuf - cbuf)) / fact_x) - (outbytecnt + (wbuf - owbuf))) / REACT_DELAY; #endif #ifdef LOG_RATE_CONTROL /*fprintf(LOG_FILE, "%f%%: Requested: %f Current: %f Delta: %lld Threshold: %f Stress: %f\n", (float)(100.0f*inbytecnt)/orim2vsize, // percent (float)fact_x, // requested (float)(inbytecnt - (rbuf - cbuf))/(float)(outbytecnt + (wbuf - owbuf)), // current (long long)bytediff, // delta (float)threshold, // threshold stress_factor // Stress );*/ fprintf(LOG_FILE, "inb: %.0f inb_c: %.0f oub: %.0f oub_c: %.0f cur: %.3f dif: %.0f thr: %.0f str: %.03f\n", (float)inbytecnt, (float)(inbytecnt - (rbuf - cbuf)), (float)outbytecnt, (float)(outbytecnt + (wbuf - owbuf)), (float)(inbytecnt - (rbuf - cbuf))/(float)(outbytecnt + (wbuf - owbuf)), (float)bytediff, (float)threshold, (float)stress_factor ); #endif #if 0 if ( ((picture_coding_type == B_TYPE) && (stress_factor < 2.5f)) // don't recompress if we're in advance! || ((picture_coding_type == P_TYPE) && (stress_factor < -2.5f)) || ((picture_coding_type == I_TYPE) && (stress_factor < -5.0f)) ) #else #ifndef CHANGE_BRIGHTNESS if ( ((picture_coding_type == I_TYPE) && ( stress_factor > i_min_stress)) || ((picture_coding_type == P_TYPE) && ( stress_factor > p_min_stress)) || ((picture_coding_type == B_TYPE) && ( stress_factor > b_min_stress)) #ifdef DEMO || ((gopCount & 0x7F) < 10) #endif ) #endif #endif { #ifndef THREAD // lock all the slice if less than 1 meg in buffer if (rbuf - cbuf < 1*1024*1024) { // try to read more data if (!eof) { mloka2 = MIN_READ; while (mloka2) { assert(rbuf + mloka2 < orbuf + BUF_SIZE); #ifdef USE_FD mloka1 = fread(rbuf, 1, mloka2, ifd); #else mloka1 = read(0, rbuf, mloka2); #endif if (mloka1 <= 0) { eof = 1; break; } inbytecnt += mloka1; rbuf += mloka1; mloka2 -= mloka1; } } // lock slice manually if (rbuf - cbuf < 1*1024*1024) { uint8 *nsc = cbuf; int fsc = 0, toLock; while (!fsc) { toLock = nsc - cbuf + 3; LOCK(toLock) if ( (nsc[0] == 0) && (nsc[1] == 0) && (nsc[2] == 1) ) fsc = 1; // start code ! else nsc++; // continue search } } } #endif // init error sliceError = 0; // init bit buffer inbitbuf = 0; inbitcnt = 0; outbitbuf = 0; outbitcnt = BITS_IN_BUF; // get 32 bits Refill_bits(); Refill_bits(); Refill_bits(); Refill_bits(); // begin bit level recoding mpeg2_slice(ID); flush_read_buffer(); flush_write_buffer(); // end bit level recoding #ifndef CHANGE_BRIGHTNESS if ((wbuf - outTemp > cbuf - inTemp) || (sliceError > MAX_ERRORS)) // yes that might happen, rarely { #ifndef NDEBUG if (sliceError > MAX_ERRORS) { DEBF("sliceError (%i) > MAX_ERRORS (%i)\n", sliceError, MAX_ERRORS); } #endif // in this case, we'll just use the original slice ! memcpy(outTemp, inTemp, cbuf - inTemp); wbuf = outTemp + (cbuf - inTemp); // adjust outbytecnt outbytecnt -= (wbuf - outTemp) - (cbuf - inTemp); } #endif #ifdef STAT #ifdef LOG_RATE_CONTROL if (picture_coding_type == I_TYPE) fprintf(LOG_FILE, "-I-\n"); #endif switch(picture_coding_type) { case I_TYPE: ori_i += cbuf - inTemp; new_i += (wbuf - outTemp > cbuf - inTemp) ? (cbuf - inTemp) : (wbuf - outTemp); cnt_i ++; break; case P_TYPE: ori_p += cbuf - inTemp; new_p += (wbuf - outTemp > cbuf - inTemp) ? (cbuf - inTemp) : (wbuf - outTemp); cnt_p ++; break; case B_TYPE: ori_b += cbuf - inTemp; new_b += (wbuf - outTemp > cbuf - inTemp) ? (cbuf - inTemp) : (wbuf - outTemp); cnt_b ++; break; default: assert(0); break; } #endif } } #ifndef NDEBUG if ((ID >= 0x01) && (ID <= 0xAF) && (!validPicHeader || !validSeqHeader || !validExtHeader)) { if (!validPicHeader) DEBF("missing pic header (%02X)\n", ID); if (!validSeqHeader) DEBF("missing seq header (%02X)\n", ID); if (!validExtHeader) DEBF("missing ext header (%02X)\n", ID); } #endif if (rbuf - orbuf > MAX_READ) { MOV_READ } if (wbuf - owbuf > MIN_WRITE) { WRITE } } #ifdef LOG_RATE_CONTROL fclose(LOG_FILE); #endif // keeps gcc happy return 0; } /*------------------------------------------------------------------------------ REQUANT_INITVAR- Linux!jef 2006/02/06 23:14:17 ------------------------------------------------------------------------------*/ void requant_initvar() { cbuf = NULL; rbuf = NULL; wbuf = NULL; orbuf = NULL; owbuf = NULL; inbitcnt = outbitcnt = 0; inbitbuf = outbitbuf = 0; inbytecnt = outbytecnt = 0; fact_x = 0; mloka1 = mloka2 = eof = 0; orim2vsize = 0; bytediff = 0; stress_factor = 0; i_factor = 0; p_factor = 0; b_factor = 0; i_min_stress = 0; p_min_stress = 0; b_min_stress = 0; quant_table_id = &quant_table_id_data[2048]; horizontal_size_value = 0; vertical_size_value = 0; picture_coding_type = 0; memset( f_code,0 , sizeof(f_code)); intra_dc_precision = 0; picture_structure = 0; frame_pred_frame_dct = 0; concealment_motion_vectors = 0; q_scale_type = 0; intra_vlc_format = 0; alternate_scan = 0; validPicHeader = 0; validSeqHeader = 0; validExtHeader = 0; sliceError = 0; quantizer_scale = 0; new_quantizer_scale = 0; last_coded_scale = 0; h_offset = v_offset = 0; mb_skip = mb_add = 0; mb_out = 0; mb_sav_run = mb_sav_lev = mb_sav_c = 0; curTable = NULL; memset( block, 0, sizeof(block)); } /*------------------------------------------------------------------------------ REQUANT_SETFACTOR- Linux!jef 2006/11/09 21:58:44 Recompute requant tables ------------------------------------------------------------------------------*/ void requant_factorchange() { orim2vsize = rqt_visize; greedyFactor = orim2vsize / 100; greedyFactor2 = orim2vsize / 50; if( fact_x == rqt_fact ) return; fact_x = rqt_fact; DBG('r',fprintf(stderr,"%s: fact_x=%f orim2vsize=%lld\n", __FUNCTION__, fact_x, orim2vsize );); // factor and stresses setting if (fact_x <= 1.0) { i_factor = i_factors[0]; p_factor = p_factors[0]; b_factor = b_factors[0]; i_min_stress = i_min_stresses[0]; p_min_stress = p_min_stresses[0]; b_min_stress = b_min_stresses[0]; } else if (fact_x >= 10.0) { i_factor = i_factors[2]; p_factor = p_factors[2]; b_factor = b_factors[2]; i_min_stress = i_min_stresses[2]; p_min_stress = p_min_stresses[2]; b_min_stress = b_min_stresses[2]; } else if (fact_x <= 3.0) // 1.0 .. 3.0 { double inter = (fact_x - 1.0)/(3.0 - 1.0); i_factor = i_factors[0] + inter * (i_factors[1] - i_factors[0]); p_factor = p_factors[0] + inter * (p_factors[1] - p_factors[0]); b_factor = b_factors[0] + inter * (b_factors[1] - b_factors[0]); i_min_stress = i_min_stresses[0] + inter * (i_min_stresses[1] - i_min_stresses[0]); p_min_stress = p_min_stresses[0] + inter * (p_min_stresses[1] - p_min_stresses[0]); b_min_stress = b_min_stresses[0] + inter * (b_min_stresses[1] - b_min_stresses[0]); } else // 3.0 .. 10.0 { double inter = (fact_x - 3.0)/(10.0 - 3.0); i_factor = i_factors[1] + inter * (i_factors[2] - i_factors[1]); p_factor = p_factors[1] + inter * (p_factors[2] - p_factors[1]); b_factor = b_factors[1] + inter * (b_factors[2] - b_factors[1]); i_min_stress = i_min_stresses[1] + inter * (i_min_stresses[2] - i_min_stresses[1]); p_min_stress = p_min_stresses[1] + inter * (p_min_stresses[2] - p_min_stresses[1]); b_min_stress = b_min_stresses[1] + inter * (b_min_stresses[2] - b_min_stresses[1]); } DBG('r',fprintf(stderr,"%s: i_factor=%d p_factor=%d b_factor=%d\n", __FUNCTION__, i_factor, p_factor, b_factor );); DBG('r',fprintf(stderr,"%s: i_min_stress=%f p_min_stress=%f b_min_stress=%f\n", __FUNCTION__,i_min_stress, p_min_stress, b_min_stress );); } dvd95/src/requant.h000066400000000000000000000052411140003301000144100ustar00rootroot00000000000000// vamps requantization thread interfacing // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. #include // keep gcc happy #define WRITE \ orbuf = orbuf; \ mloka1 = mloka1; \ mloka2 = mloka2; \ eof = eof; // meaningless #define MIN_WRITE 0 #define MAX_READ 0 #define MOV_READ // this is where we switch threads #define LOCK(x) \ if (unlikely ((x) > (rbuf - cbuf))) \ { \ if (likely (wbuf)) \ { \ pthread_mutex_lock (&mutw); \ rqt_wcnt = wbuf - owbuf; \ pthread_cond_signal (&condw); \ pthread_mutex_unlock (&mutw); \ } \ pthread_mutex_lock (&mutr); \ while (!rqt_rcnt) \ pthread_cond_wait (&condr, &mutr); \ cbuf = rqt_rptr; \ rbuf = cbuf; \ rbuf += rqt_rcnt + 3; \ rqt_rcnt = 0; \ owbuf = rqt_wptr; \ fact_x = rqt_fact; \ inbytecnt = rqt_inbytes; \ outbytecnt = rqt_outbytes; \ orim2vsize = rqt_visize; \ pthread_mutex_unlock (&mutr); \ wbuf = owbuf; \ } #define COPY(x) \ memcpy (wbuf, cbuf, x); \ cbuf += x; \ wbuf += x; #define SEEKR(x) cbuf += x; #define SEEKW(x) wbuf += x; // type shortcuts typedef unsigned char UInt8; typedef unsigned long long UInt64; // global data for inter thread com extern float rqt_fact; extern int rqt_rcnt; extern int rqt_wcnt; extern UInt64 rqt_inbytes; extern UInt64 rqt_outbytes; extern UInt64 rqt_visize; extern UInt8 *rqt_rptr; extern UInt8 *rqt_wptr; extern pthread_cond_t condr; extern pthread_cond_t condw; extern pthread_mutex_t mutr; extern pthread_mutex_t mutw; dvd95/src/sos/000077500000000000000000000000001140003301000133625ustar00rootroot00000000000000dvd95/src/sos/avancement.c000066400000000000000000000273461140003301000156630ustar00rootroot00000000000000/*============================================================================== FICHIER : [avancement.c] DATE : 2006/01/0005 21:00:23 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include "support.h" #include "interface.h" #include "tampon.h" #include "systools.h" #include "globals.h" #include "const.h" #define UI_STEP 0.001 #define UI_REFRESH_SEC 0.1 static GtkWidget * Wavancement; static char * Wheel[4] = { "-","\\","|","/" }; static int WheelIdx = 0; typedef struct { int EstimatedSectors; long long ReadedBytes; double LastPct; struct timeval StartTime; struct timeval Time0; struct timeval lTv; long long totalSize; int totalSteps; int nbSteps; } Progress_t; static Progress_t Progress; static Progress_t SaveProgress; /*------------------------------------------------------------------------------ PUSHAVANCEMENT- Linux!jef 2006/01/23 22:14:19 ------------------------------------------------------------------------------*/ void PushAvancement() { SaveProgress = Progress; } /*------------------------------------------------------------------------------ POPAVANCEMENT- Linux!jef 2006/01/23 22:14:35 ------------------------------------------------------------------------------*/ void PopAvancement() { Progress = SaveProgress; } /*------------------------------------------------------------------------------ INITAVANCEMENT- Linux!jef 2005/12/28 22:34:20 ------------------------------------------------------------------------------*/ void InitAvancement( int sectors ) { Progress.ReadedBytes = 0; Progress.EstimatedSectors = sectors; gettimeofday( &Progress.StartTime, NULL ); Progress.LastPct = 0; } /*------------------------------------------------------------------------------ CREATEAVANCEMENT- Linux!jef 2006/01/05 21:02:56 ------------------------------------------------------------------------------*/ void CreateAvancement( GtkWidget * forme ) { Wavancement = create_Avancement(); gtk_window_set_transient_for( GTK_WINDOW(Wavancement), GTK_WINDOW(forme) ); gtk_widget_show_now( Wavancement ); gettimeofday( &Progress.Time0, NULL ); Progress.totalSteps = 0; Progress.nbSteps = 0; UserStopF = 0; UserPauseF = 0; } /*------------------------------------------------------------------------------ DESTROYAVANCEMENT- Linux!jef 2006/01/05 21:03:15 ------------------------------------------------------------------------------*/ void DestroyAvancement() { gtk_widget_destroy(GTK_WIDGET(Wavancement)); } /*------------------------------------------------------------------------------ AVANCEMENT- Linux!jef 2005/12/07 01:15:50 ------------------------------------------------------------------------------*/ int Avancement( buffer, pLg ) char * buffer; int * pLg; { Progress.ReadedBytes += *pLg; return( 0 ); } /*------------------------------------------------------------------------------ AVANCEMENTABS- Linux!jef 2005/12/07 01:15:50 ------------------------------------------------------------------------------*/ int AvancementAbs( pos ) long pos; { Progress.ReadedBytes = pos; return( 0 ); } /*------------------------------------------------------------------------------ SETTOTALSIZE- Linux!jef 2006/01/25 22:07:22 ------------------------------------------------------------------------------*/ void SetTotalSize( long long tSize ) { Progress.totalSize = tSize; } /*------------------------------------------------------------------------------ SETTOTALSTEPS- Linux!jef 2006/01/31 22:27:09 ------------------------------------------------------------------------------*/ void SetTotalSteps( int steps ) { Progress.totalSteps = steps; } /*------------------------------------------------------------------------------ NEWSTEP- Linux!jef 2006/01/31 22:27:31 ------------------------------------------------------------------------------*/ void NewStep() { double pct; GtkWidget * item; Progress.nbSteps++; if( Progress.totalSteps ) { pct = (double)Progress.nbSteps / (double)Progress.totalSteps; if( pct > 1.0 ) pct = 1; item = lookup_widget(GTK_WIDGET(Wavancement), "totalprogress" ); g_assert( item ); gtk_progress_bar_set_fraction( GTK_PROGRESS_BAR(item), pct ); gtk_widget_show_now( item ); while( gtk_events_pending() ) gtk_main_iteration(); } } /*------------------------------------------------------------------------------ TIME2HMS- Linux!jef 2005/12/15 23:31:07 ------------------------------------------------------------------------------*/ static void Time2HMS( double t, char * string ) { int h,m,s; h = (t / 3600 ); t -= ( h * 3600 ); m = ( t / 60 ); t -= (m * 60 ); s = t; sprintf( string,"%2.2d:%2.2d:%2.2d", h, m, s ); } /*------------------------------------------------------------------------------ DVDSPEED- Linux!jef 2006/02/14 21:45:18 ------------------------------------------------------------------------------*/ static double DvdSpeed( long long rBytes, double elapsed ) { double res = rBytes / (1.321 * 1024 * 1024 ); if( !elapsed ) return( 1.0 ); return( res / elapsed ); } /*------------------------------------------------------------------------------ AVANCEMENTUI- Linux!jef 2005/12/09 21:21:13 ------------------------------------------------------------------------------*/ int AvancementUi( Tampon * tampon ) { long long secReaded; double pct; int refreshF = 0; struct timeval tv; double delta; char message[200]; GtkWidget * item; secReaded = Progress.ReadedBytes / (long long)SECTOR_SIZE; pct = (double)secReaded / (double)Progress.EstimatedSectors; if( pct > 1.0 ) pct = 1; gettimeofday( &tv, NULL ); delta = tv.tv_sec - Progress.lTv.tv_sec; delta += ((double)( tv.tv_usec - Progress.lTv.tv_usec )) / 1000000.0; if( delta < UI_REFRESH_SEC ) goto next; if( MyAbs( pct - Progress.LastPct ) >= UI_STEP ) { double totalTime; double elapsedTime; double remainTime; char totalStr[100]; char elapsedStr[100]; char remainStr[100]; item = lookup_widget(GTK_WIDGET(Wavancement), "progressbar1" ); g_assert( item ); // fprintf(stderr,"AvancementUI: %p(%f)\n", item, pct ); gtk_progress_bar_set_fraction( GTK_PROGRESS_BAR(item), pct ); gtk_widget_show_now( item ); totalTime = tv.tv_sec - Progress.Time0.tv_sec; totalTime += (double)(tv.tv_sec - Progress.Time0.tv_sec) / 1000000.0; elapsedTime = tv.tv_sec - Progress.StartTime.tv_sec; elapsedTime += (double)(tv.tv_sec - Progress.StartTime.tv_sec) / 1000000.0; remainTime = (elapsedTime / pct) - elapsedTime; Time2HMS( totalTime, totalStr ); Time2HMS( elapsedTime, elapsedStr ); Time2HMS( remainTime, remainStr ); sprintf( message,_("Temps total écoulé: %s Taille: %s Vitesse: %.2fx"), totalStr, LLSize2Giga( Progress.totalSize ), DvdSpeed( Progress.ReadedBytes, elapsedTime ) ); item = lookup_widget(GTK_WIDGET(Wavancement), "totaltime" ); g_assert( item ); gtk_label_set_text( GTK_LABEL(item), message ); gtk_widget_show_now( item ); sprintf( message,_("Temps écoulé: %s"), elapsedStr ); item = lookup_widget(GTK_WIDGET(Wavancement), "elapsedtime" ); g_assert( item ); gtk_label_set_text( GTK_LABEL(item), message ); gtk_widget_show_now( item ); sprintf( message,_("Temps restant: %s"), remainStr ); item = lookup_widget(GTK_WIDGET(Wavancement), "remaintime" ); g_assert( item ); gtk_label_set_text( GTK_LABEL(item), message ); gtk_widget_show_now( item ); Progress.LastPct = pct; refreshF = 1; } /* Display wheel and status */ item = lookup_widget(GTK_WIDGET(Wavancement), "dash" ); g_assert(item); gtk_label_set_text( GTK_LABEL(item), Wheel[WheelIdx] ); gtk_widget_show_now( item ); WheelIdx = ( WheelIdx + 1 ) % 4; if( tampon ) { item = lookup_widget(GTK_WIDGET(Wavancement), "status" ); g_assert(item); sprintf( message, "%d Proc %d Thread", tampon->nProc, tampon->nThread ); gtk_label_set_text( GTK_LABEL(item), message ); gtk_widget_show_now( item ); } refreshF = 1; Progress.lTv = tv; next:; if( refreshF ) { while( gtk_events_pending() ) gtk_main_iteration(); } if( UserStopF ) return( -1 ); while( UserPauseF ) { while( gtk_events_pending() ) gtk_main_iteration(); if( UserStopF ) return( -1 ); usleep( 10000 ); } return( 0 ); } /*------------------------------------------------------------------------------ AVANCEMENTUI2- Linux!jef 2006/01/05 21:09:22 ------------------------------------------------------------------------------*/ int AvancementUi2( double pct ) { if( MyAbs( pct - Progress.LastPct ) >= UI_STEP ) { GtkWidget * item = lookup_widget(GTK_WIDGET(Wavancement), "progressbar1" ); struct timeval tv; double totalTime; double elapsedTime; double remainTime; char totalStr[100]; char elapsedStr[100]; char remainStr[100]; char message[200]; g_assert(item); // fprintf(stderr,"AvancementUI: %p(%f)\n", item, pct ); gtk_progress_bar_set_fraction( GTK_PROGRESS_BAR(item), pct ); gtk_widget_show_now( item ); gettimeofday( &tv, NULL ); totalTime = tv.tv_sec - Progress.Time0.tv_sec; totalTime += (double)(tv.tv_sec - Progress.Time0.tv_sec) / 1000000.0; elapsedTime = tv.tv_sec - Progress.StartTime.tv_sec; elapsedTime += (double)(tv.tv_sec - Progress.StartTime.tv_sec) / 1000000.0; remainTime = (elapsedTime / pct) - elapsedTime; Time2HMS( totalTime, totalStr ); Time2HMS( elapsedTime, elapsedStr ); Time2HMS( remainTime, remainStr ); sprintf( message,_("Temps total écoulé: %s Taille: %s"), totalStr, LLSize2Giga( Progress.totalSize ) ); item = lookup_widget(GTK_WIDGET(Wavancement), "totaltime" ); g_assert( item ); gtk_label_set_text( GTK_LABEL(item), message ); gtk_widget_show_now( item ); sprintf( message,_("Temps écoulé: %s"), elapsedStr ); item = lookup_widget(GTK_WIDGET(Wavancement), "elapsedtime" ); g_assert( item ); gtk_label_set_text( GTK_LABEL(item), message ); gtk_widget_show_now( item ); sprintf( message,_("Temps restant: %s"), remainStr ); item = lookup_widget(GTK_WIDGET(Wavancement), "remaintime" ); g_assert( item ); gtk_label_set_text( GTK_LABEL(item), message ); gtk_widget_show_now( item ); Progress.LastPct = pct; while( gtk_events_pending() ) gtk_main_iteration(); } if( UserStopF ) return( -1 ); return( 0 ); } /*------------------------------------------------------------------------------ DISPLAYAVANCEMENT- Linux!jef 2005/12/15 22:47:14 ------------------------------------------------------------------------------*/ void DisplayAvancement( char * format, ... ) { char string[4096]; va_list args; GtkWidget * item; GtkTextBuffer * textBuffer; GtkTextIter iter; va_start( args, format ); vsnprintf( string, sizeof(string), format, args ); item = lookup_widget(GTK_WIDGET(Wavancement), "textview1" ); if( !item ) return; textBuffer = gtk_text_view_get_buffer( GTK_TEXT_VIEW(item) ); if( !textBuffer ) return; gtk_text_buffer_insert_at_cursor ( textBuffer, string, strlen( string )); gtk_text_buffer_get_end_iter( textBuffer, &iter ); gtk_text_view_scroll_to_iter( GTK_TEXT_VIEW(item), &iter, 0.0, TRUE, 0.0, 1.0 ); gtk_widget_show_now( item ); while( gtk_events_pending() ) gtk_main_iteration(); va_end( args ); } /*------------------------------------------------------------------------------ TOTALTIME- Linux!jef 2006/03/01 21:05:27 ------------------------------------------------------------------------------*/ void TotalTime( char * string ) { struct timeval tv; double totalTime; gettimeofday( &tv, NULL ); totalTime = tv.tv_sec - Progress.Time0.tv_sec; totalTime += (double)(tv.tv_sec - Progress.Time0.tv_sec) / 1000000.0; Time2HMS( totalTime, string ); } dvd95/src/sos/callbacks.c000066400000000000000000000377671140003301000154710ustar00rootroot00000000000000#ifdef HAVE_CONFIG_H # include "config.h" #endif #include #include #define CTEST( x ) /****/ #include "callbacks.h" #include "interface.h" #include "support.h" #include "gconfig.h" #include "dvdformat.h" #include "dvdtools.h" #include "dvdcopy.h" #include "dvdbackup.h" #include "dvd2vob.h" #include "uitools.h" #include "message.h" #include "avancement.h" #define __NEED_GLOBALS__ #include "globals.h" typedef struct { int noPisteVideo; AudioMap_t audioMap; int nbAudio; int firstAudio; SubMap_t subMap; int nbSub; int firstSub; int menuF; } SelectInfo_t; static SelectInfo_t SelInfo; void on_Quitter_clicked (GtkButton *button, gpointer user_data) { CTEST(fprintf(stderr,"%s-%d\n", __FILE__,__LINE__);); gtk_main_quit(); } void on_button2_clicked (GtkButton *button, gpointer user_data) { GtkWidget * parent = lookup_widget(GTK_WIDGET(button), "Dvd95" ); DialogPropriete( parent ); } /* Sortie de l'ecran propriete */ void on_button4_clicked (GtkButton *button, gpointer user_data) { GtkWidget * propriete; propriete = lookup_widget(GTK_WIDGET(button), "propriete" ); if( propriete ) { gtk_widget_destroy( propriete ); } } void on_verifconfig_clicked (GtkButton *button, gpointer user_data) { VerifConfig( GTK_WIDGET( button ) ); } /*------------------------------------------------------------------------------ SETRADIOS- Linux!jef 2006/02/27 22:54:56 ------------------------------------------------------------------------------*/ static void SetRadios( GtkWidget * forme ) { char * useMenu = ConfigGetString( KEY_USEMENU, "1" ); char * viewResult = ConfigGetString( KEY_PREVIEW, "0" ); char * doIso = ConfigGetString( KEY_DOISO, "0" ); char * qualDyn = ConfigGetString( KEY_QUALDYN, "0" ); char * graver = ConfigGetString( KEY_GRAVER, "0" ); ToggleSet( forme, "UseMenu", *useMenu == '1' ? 1 : 0 ); ToggleSet( forme, "ViewResult", *viewResult == '1' ? 1 : 0 ); ToggleSet( forme, "DoIso", *doIso == '1' ? 1 : 0 ); ToggleSet( forme, "dynqual", *qualDyn == '1' ? 1 : 0 ); ToggleSet( forme, "graver", *graver == '1' ? 1 : 0 ); } /*------------------------------------------------------------------------------ UPDATERADIOS- Linux!jef 2006/02/27 22:56:30 ------------------------------------------------------------------------------*/ static void UpdateRadios( GtkWidget * forme ) { if( IsToggleSet( forme, "UseMenu" ) ) SetConfigString( KEY_USEMENU, "1" ); else SetConfigString( KEY_USEMENU, "0" ); if( IsToggleSet( forme, "ViewResult" ) ) SetConfigString( KEY_PREVIEW, "1" ); else SetConfigString( KEY_PREVIEW, "0" ); if( IsToggleSet( forme, "DoIso" ) ) SetConfigString( KEY_DOISO, "1" ); else SetConfigString( KEY_DOISO, "0" ); if( IsToggleSet( forme, "dynqual" ) ) SetConfigString( KEY_QUALDYN, "1" ); else SetConfigString( KEY_QUALDYN, "0" ); if( IsToggleSet( forme, "graver" ) ) SetConfigString( KEY_GRAVER, "1" ); else SetConfigString( KEY_GRAVER, "0" ); } void on_DoScan_clicked (GtkButton *button, gpointer user_data) { GtkWidget * Scanning; GtkWidget * parent = lookup_widget(GTK_WIDGET(button), "Dvd95" ); GtkWidget * old; char * device = ConfigGetString( KEY_DEVICE, "/dev/dvd" ); int ret; ret = IsDvdLoaded( device ); switch( ret ) { case -1 : MessageBox("Le peripherique est invalide !"); return; case 0 : MessageBox("Veuillez inserer un dvd !"); return; } InitTrace(); SetFormat( DVD5 ); Scanning = create_Scanning(); gtk_window_set_transient_for( GTK_WINDOW(Scanning), GTK_WINDOW(parent) ); old = AlerteSetParent( Scanning ); SetRadios( Scanning ); gtk_widget_show_now( Scanning ); while( gtk_events_pending() ) gtk_main_iteration(); ScanDvd( Scanning ); CTEST(fprintf(stderr,"%s-%d\n", __FILE__,__LINE__);); gtk_main(); CTEST(fprintf(stderr,"%s-%d\n", __FILE__,__LINE__);); AlerteSetParent( old ); } /*------------------------------------------------------------------------------ DESTROYFFORMSCANNING- Linux!jef 2006/03/27 22:08:26 ------------------------------------------------------------------------------*/ static void DestroyFormScanning( GtkWidget * widget ) { GtkWidget * Scanning; CTEST(fprintf(stderr,"%s-%d\n", __FILE__,__LINE__);); Scanning = lookup_widget( widget, "Scanning" ); if( Scanning ) { CTEST(fprintf(stderr,"%s-%d\n", __FILE__,__LINE__);); UpdateRadios( Scanning ); gtk_widget_destroy( Scanning ); } } void on_scanQuit_clicked (GtkButton *button, gpointer user_data) { CTEST(fprintf(stderr,"%s-%d\n", __FILE__,__LINE__);); DestroyFormScanning( GTK_WIDGET(button )); } void on_cfgsave_clicked (GtkButton *button, gpointer user_data) { SaveConfig( GTK_WIDGET(button) ); } gboolean on_PistesVideo_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { return( FALSE ); } gboolean on_PistesVideo_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { GtkTreeSelection *selection; GtkTreeModel *model; GtkTreeIter iter; /* This will only work in single or browse selection mode! */ selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(widget)); if( gtk_tree_selection_get_selected(selection, &model, &iter)) { gchar *name; int noPiste; char * p; gtk_tree_model_get (model, &iter, 0, &name, -1); // g_print ("selected row is: %s\n", name); p = name + strlen( _("Piste") ); while( *p == ' ' ) p++; noPiste = atoi( p ); g_free(name); ScanPiste( widget, noPiste - 1 ); /* Zero based */ } else { // g_print ("no row selected.\n"); } // fprintf(stderr,"Piste video button press!\n"); return FALSE; } /*------------------------------------------------------------------------------ RECORDAUDIOSELECTED- Linux!jef 2006/01/26 20:34:55 ------------------------------------------------------------------------------*/ static void RecordAudioSelected( GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer userdata ) { gchar *name; char * p; gtk_tree_model_get( model, iter, 0, &name, -1); p = name; while( *p && !isdigit(*p)) p++; if( *p ) { int track; track = atoi( p ) - 1; /* Zero based */ CTEST(fprintf(stderr,"PisteAudio %d selected\n", track );); SelInfo.audioMap.audioTracks[track] = 1; SelInfo.nbAudio++; if( !SelInfo.firstAudio ) SelInfo.firstAudio = track; } g_free(name); } /*------------------------------------------------------------------------------ RECORDSUBSELECTED- Linux!jef 2006/01/26 20:34:55 ------------------------------------------------------------------------------*/ static void RecordSubSelected( GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer userdata ) { gchar *name; char * p; gtk_tree_model_get( model, iter, 0, &name, -1); p = name; while( *p && !isdigit(*p)) p++; if( *p ) { int track; track = atoi( p ) - 1; /* Zero based */ CTEST(fprintf(stderr,"PisteSub %d selected\n", track );); SelInfo.subMap.subTracks[track] = 1; SelInfo.nbSub++; if( !SelInfo.firstSub ) SelInfo.firstSub = track; } g_free(name); } /*------------------------------------------------------------------------------ GETSELECTED- Linux!jef 2005/12/18 19:46:04 ------------------------------------------------------------------------------*/ static void GetSelected( GtkWidget * forme ) { GtkWidget * item; GtkTreeSelection *selection; GtkTreeModel *model; GtkTreeIter iter; memset( &SelInfo, 0, sizeof( SelInfo )); SelInfo.noPisteVideo = -1; /* This will only work in single or browse selection mode! */ item = lookup_widget( forme, "PistesVideo" ); if( !item ) return; selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(item)); if( gtk_tree_selection_get_selected(selection, &model, &iter)) { gchar *name; char * p; gtk_tree_model_get (model, &iter, 0, &name, -1); p = name; while( *p && !isdigit(*p)) p++; if( *p ) { SelInfo.noPisteVideo = atoi( p ) - 1; /* Zero based */ } g_free(name); } /* This will only work in single or browse selection mode! */ item = lookup_widget( forme, "PistesAudio" ); if( !item ) return; selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(item)); gtk_tree_selection_selected_foreach(selection, RecordAudioSelected, NULL); CTEST(fprintf(stderr,"Il y a %d audio tracks\n", SelInfo.nbAudio );); /* This will only work in single or browse selection mode! */ item = lookup_widget( forme, "SousTitres" ); if( !item ) return; selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(item)); gtk_tree_selection_selected_foreach(selection, RecordSubSelected, NULL); CTEST(fprintf(stderr,"Il y a %d sub tracks\n", SelInfo.nbSub );); SelInfo.menuF = IsToggleSet( forme, "UseMenu" ); } void on_CalculQualite_clicked (GtkButton *button, gpointer user_data) { GtkWidget * forme = lookup_widget(GTK_WIDGET(button), "Scanning" ); GtkWidget * item; double facteur; char string[100]; double pct; int res; GetSelected( forme ); if( SelInfo.noPisteVideo == -1 ) { Alerte(0,_("Veuillez selectionner une piste video") ); return; } if( !SelInfo.nbAudio ) { Alerte(0,_("Veuillez selectionner une piste audio") ); return; } res = CpuBackupQuality( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap, SelInfo.menuF, &facteur ); item = lookup_widget( forme, "Qualite" ); sprintf( string,"%.4f", facteur ); gtk_entry_set_text( GTK_ENTRY(item), string ); gtk_widget_show( item ); item = lookup_widget( forme, "qpct" ); // pct = (1 - (facteur - 1)) * 100; pct = (1.0 / facteur) * 100.0; sprintf( string,"%.2f%%", pct ); gtk_label_set_text( GTK_LABEL(item), string ); gtk_widget_show_now( item ); } void on_avCancel_clicked (GtkButton *button, gpointer user_data) { UserStopF = 1; } void on_Encoder_clicked (GtkButton *button, gpointer user_data) { GtkWidget * forme = lookup_widget(GTK_WIDGET(button), "Scanning" ); GtkWidget * item; double facteur; const gchar * text; int res; GetSelected( forme ); if( SelInfo.noPisteVideo == -1 ) { Alerte(0,_("Veuillez selectionner une piste video") ); return; } if( ! SelInfo.nbAudio == -1 ) { Alerte(0,_("Veuillez selectionner une piste audio") ); return; } item = lookup_widget( forme, "Qualite" ); text = gtk_entry_get_text( GTK_ENTRY(item) ); facteur = atof( text ); if( facteur < 0 ) { Alerte(0,_("Veuillez lancer un calcul de qualit") ); return; } if( SelInfo.menuF ) { res = BackupDvd( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap, facteur ); } else { res = CopyDvd( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap, facteur ); } DBG('c',{char timeStr[100]; TotalTime( timeStr ); fprintf(stderr,"Temps de traitement: %s\n", timeStr );}); if( res != -1 ) { Alerte(0,_("Fin de conversion reussie ........") ); DestroyFormScanning( GTK_WIDGET(button )); } else { Alerte(0,_("Erreur de conversion ........") ); } } gboolean on_PistesAudio_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { GtkWidget * forme = lookup_widget(GTK_WIDGET(widget), "Scanning" ); GetSelected( forme ); if( SelInfo.noPisteVideo == -1 ) return( FALSE ); UpdDefFactor( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap ); return( FALSE ); } gboolean on_SousTitres_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { GtkWidget * forme = lookup_widget(GTK_WIDGET(widget), "Scanning" ); GetSelected( forme ); if( SelInfo.noPisteVideo == -1 ) return( FALSE ); UpdDefFactor( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap ); return( FALSE ); } void on_ViewPiste_clicked (GtkButton *button, gpointer user_data) { GtkWidget * forme = lookup_widget(GTK_WIDGET(button), "Scanning" ); GetSelected( forme ); if( SelInfo.noPisteVideo == -1 ) { Alerte(0,_("Veuillez selectionner une piste video") ); return; } VisuDvdPiste( SelInfo.noPisteVideo ); } void on_UseMenu_toggled (GtkToggleButton *togglebutton, gpointer user_data) { GtkWidget * forme = lookup_widget(GTK_WIDGET(togglebutton), "Scanning" ); GtkWidget * item; item = lookup_widget(forme, "PistesAudio" ); if( IsToggleSet( forme, "UseMenu")) gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(item)), GTK_SELECTION_MULTIPLE ); else gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(item)), GTK_SELECTION_SINGLE ); GetSelected( forme ); if( SelInfo.noPisteVideo == -1 ) return; UpdDefFactor( forme, SelInfo.noPisteVideo, &SelInfo.audioMap, &SelInfo.subMap ); } void on_ToDvd9_clicked (GtkButton *button, gpointer user_data) { GtkWidget * Scanning; GtkWidget * parent = lookup_widget(GTK_WIDGET(button), "Dvd95" ); GtkWidget * old; char * device = ConfigGetString( KEY_DEVICE, "/dev/dvd" ); int ret; ret = IsDvdLoaded( device ); switch( ret ) { case -1 : MessageBox("Le peripherique est invalide !"); return; case 0 : MessageBox("Veuillez inserer un dvd !"); return; } InitTrace(); SetFormat( DVD9 ); Scanning = create_Scanning(); gtk_window_set_transient_for( GTK_WINDOW(Scanning), GTK_WINDOW(parent) ); old = AlerteSetParent( Scanning ); SetRadios( Scanning ); gtk_widget_show_now( Scanning ); while( gtk_events_pending() ) gtk_main_iteration(); ScanDvd( Scanning ); gtk_main(); AlerteSetParent( old ); UpdateRadios( Scanning ); gtk_widget_destroy( Scanning ); } void on_Pause_clicked (GtkButton *button, gpointer user_data) { if( UserPauseF ) UserPauseF = 0; else UserPauseF = 1; } void on_Dvd95_destroy (GtkObject *object, gpointer user_data) { gtk_main_quit(); } void on_propriete_destroy (GtkObject *object, gpointer user_data) { CTEST(fprintf(stderr,"%s:\n", __FUNCTION__ );); gtk_main_quit(); } void on_Scanning_destroy (GtkObject *object, gpointer user_data) { CTEST(fprintf(stderr,"%s:\n", __FUNCTION__ );); gtk_main_quit(); } void on_choixiso_clicked (GtkButton *button, gpointer user_data) { GtkWidget * fc; fc = create_ChoixFichier(); if( fc ) { GtkFileFilter * fi = gtk_file_filter_new(); GtkWidget * item; gtk_file_filter_set_name( fi, _("Fichiers ISO") ); gtk_file_filter_add_pattern( fi, "*.iso" ); gtk_file_chooser_add_filter( GTK_FILE_CHOOSER(fc), fi ); if( gtk_dialog_run (GTK_DIALOG(fc)) == GTK_RESPONSE_OK) { char *filename; filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER(fc)); item = lookup_widget( GTK_WIDGET(button), "cfgdev" ); g_assert( item ); gtk_entry_set_text( GTK_ENTRY (GTK_BIN (item)->child), filename ); g_free (filename); } gtk_widget_destroy( fc ); } } dvd95/src/sos/callbacks.h000066400000000000000000000110161140003301000154510ustar00rootroot00000000000000#include void on_Quitter_clicked (GtkButton *button, gpointer user_data); void on_button2_clicked (GtkButton *button, gpointer user_data); void on_button4_clicked (GtkButton *button, gpointer user_data); void on_verifconfig_clicked (GtkButton *button, gpointer user_data); void on_button7_clicked (GtkButton *button, gpointer user_data); void on_DoScan_clicked (GtkButton *button, gpointer user_data); void on_scanQuit_clicked (GtkButton *button, gpointer user_data); void on_cfgsave_clicked (GtkButton *button, gpointer user_data); void on_PistesVideo_row_activated (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data); gboolean on_PistesVideo_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); gboolean on_PistesVideo_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); void on_CalculQualite_clicked (GtkButton *button, gpointer user_data); void on_avCancel_clicked (GtkButton *button, gpointer user_data); void on_Encoder_clicked (GtkButton *button, gpointer user_data); gboolean on_PistesAudio_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); gboolean on_SousTitres_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); void on_ViewPiste_clicked (GtkButton *button, gpointer user_data); void on_UseMenu_toggled (GtkToggleButton *togglebutton, gpointer user_data); void on_ToDvd9_clicked (GtkButton *button, gpointer user_data); gboolean on_PistesAudio_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); gboolean on_SousTitres_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); gboolean on_SousTitres_button_release_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data); void on_Pause_clicked (GtkButton *button, gpointer user_data); gboolean on_Dvd95_destroy_event (GtkWidget *widget, GdkEvent *event, gpointer user_data); void on_Dvd95_destroy (GtkObject *object, gpointer user_data); void on_propriete_destroy (GtkObject *object, gpointer user_data); void on_Scanning_destroy (GtkObject *object, gpointer user_data); void on_choixiso_clicked (GtkButton *button, gpointer user_data); dvd95/src/sos/main.c000066400000000000000000000057131140003301000144600ustar00rootroot00000000000000/* * Initial main.c file generated by Glade. Edit as required. * Glade will not overwrite this file. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "interface.h" #include "support.h" #include "ac.h" #include "gconfig.h" #include "dvdtools.h" #define DVD95_VERSION "1.1p2" /*------------------------------------------------------------------------------ CHECKDVD- Linux!jef 2007/01/09 22:45:11 ------------------------------------------------------------------------------*/ gboolean CheckDvd( gpointer data ) { GtkWidget * Dvd95 = (GtkWidget *)data; char * device = ConfigGetString( KEY_DEVICE, "/dev/dvd" ); int ret; ret = IsDvdLoaded( device ); if( ret == 1 ) { GtkWidget * item; item = lookup_widget(GTK_WIDGET(Dvd95), "DoScan" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), TRUE ); item = lookup_widget(GTK_WIDGET(Dvd95), "ToDvd9" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), TRUE ); return( FALSE ); } return( TRUE ); } int main (int argc, char *argv[]) { GtkWidget *Dvd95; GtkWidget * item; char * lang; #ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); #endif ac_mmtest(); tc_memcpy_init( 0, ac_mmflag()); gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PARAM_APP_DATADIR, PACKAGE_DATA_DIR, NULL); gnome_sound_init( "localhost" ); /* Langague if any */ lang = ConfigGetString( KEY_LANG, "" ); if( lang && *lang ) { if( !strcmp( lang,"English")) setlocale( LC_MESSAGES, "en_US.UTF-8" ); if( !strcmp( lang,"Francais")) setlocale( LC_MESSAGES, "fr_FR.UTF-8" ); } /* Pour que les doubles soit sous la forme xxx.yyy */ setlocale( LC_NUMERIC, "C" ); /* * The following code was added by Glade to create one of each component * (except popup menus), just so that you see something after building * the project. Delete any components that you don't want shown initially. */ Dvd95 = create_Dvd95 (); /* Setup main infos */ item = lookup_widget(GTK_WIDGET(Dvd95), "produit" ); gtk_label_set_text( GTK_LABEL(item), _("DVD95: copie privée de DVD 9 vers DVD 5 par J.F. COULON") ); item = lookup_widget(GTK_WIDGET(Dvd95), "version" ); { char message[256]; sprintf( message,_("Version: %s du %s"), DVD95_VERSION, __DATE__ ); gtk_label_set_text( GTK_LABEL(item), message ); } /* Manage Button sensitivity */ { char * device = ConfigGetString( KEY_DEVICE, "/dev/dvd" ); int ret; ret = IsDvdLoaded( device ); if( ret != 1 ) { item = lookup_widget(GTK_WIDGET(Dvd95), "DoScan" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), FALSE ); item = lookup_widget(GTK_WIDGET(Dvd95), "ToDvd9" ); g_assert(item); gtk_widget_set_sensitive( GTK_WIDGET(item), FALSE ); g_timeout_add( 500, CheckDvd, Dvd95 ); } } gtk_widget_show (Dvd95); gtk_main (); return( 0 ); } dvd95/src/support.c000066400000000000000000000056201140003301000144410ustar00rootroot00000000000000/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include "support.h" GtkWidget* lookup_widget (GtkWidget *widget, const gchar *widget_name) { GtkWidget *parent, *found_widget; for (;;) { if (GTK_IS_MENU (widget)) parent = gtk_menu_get_attach_widget (GTK_MENU (widget)); else parent = widget->parent; if (!parent) parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey"); if (parent == NULL) break; widget = parent; } found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget), widget_name); if (!found_widget) g_warning ("Widget not found: %s", widget_name); return found_widget; } /* This is an internally used function to create pixmaps. */ GtkWidget* create_pixmap (GtkWidget *widget, const gchar *filename) { GtkWidget *pixmap; gchar *pathname; if (!filename || !filename[0]) return gtk_image_new (); pathname = gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_APP_PIXMAP, filename, TRUE, NULL); if (!pathname) { g_warning (_("Couldn't find pixmap file: %s"), filename); return gtk_image_new (); } pixmap = gtk_image_new_from_file (pathname); g_free (pathname); return pixmap; } /* This is an internally used function to create pixmaps. */ GdkPixbuf* create_pixbuf (const gchar *filename) { gchar *pathname = NULL; GdkPixbuf *pixbuf; GError *error = NULL; if (!filename || !filename[0]) return NULL; pathname = gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_APP_PIXMAP, filename, TRUE, NULL); if (!pathname) { g_warning (_("Couldn't find pixmap file: %s"), filename); return NULL; } pixbuf = gdk_pixbuf_new_from_file (pathname, &error); if (!pixbuf) { fprintf (stderr, "Failed to load pixbuf file: %s: %s\n", pathname, error->message); g_error_free (error); } g_free (pathname); return pixbuf; } /* This is used to set ATK action descriptions. */ void glade_set_atk_action_description (AtkAction *action, const gchar *action_name, const gchar *description) { gint n_actions, i; n_actions = atk_action_get_n_actions (action); for (i = 0; i < n_actions; i++) { if (!strcmp (atk_action_get_name (action, i), action_name)) atk_action_set_description (action, i, description); } } dvd95/src/support.h000066400000000000000000000025111140003301000144420ustar00rootroot00000000000000/* * DO NOT EDIT THIS FILE - it is generated by Glade. */ #ifdef HAVE_CONFIG_H # include #endif #include #undef Q_ #ifdef ENABLE_NLS # define Q_(String) g_strip_context ((String), gettext (String)) #else # define Q_(String) g_strip_context ((String), (String)) #endif /* * Public Functions. */ /* * This function returns a widget in a component created by Glade. * Call it with the toplevel widget in the component (i.e. a window/dialog), * or alternatively any widget in the component, and the name of the widget * you want returned. */ GtkWidget* lookup_widget (GtkWidget *widget, const gchar *widget_name); /* * Private Functions. */ /* This is used to create the pixmaps used in the interface. */ GtkWidget* create_pixmap (GtkWidget *widget, const gchar *filename); /* This is used to create the pixbufs used in the interface. */ GdkPixbuf* create_pixbuf (const gchar *filename); /* This is used to set ATK action descriptions. */ void glade_set_atk_action_description (AtkAction *action, const gchar *action_name, const gchar *description); dvd95/src/systools.c000066400000000000000000000634451140003301000146350ustar00rootroot00000000000000/*============================================================================== FICHIER : [systools.c] DATE : 2005/12/0005 21:58:43 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #define __USE_LARGEFILE64 #define _LARGEFILE64_SOURCE #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #if defined(__sun) # include # include #elif defined(__APPLE__) # include #else # include # include #endif #include #include #if defined(__sun) # include #endif #include #include #include #if defined(__sun) # include # define NON_BLOCKING #elif defined(__APPLE__) // TODO: DVD tests not properly implemented yet for Mac OS X #else # include # include # include #endif #include #include "support.h" #include "systools.h" #define CTEST(x) /* Traces futiles */ char ** environ; #define SH_PATH "/bin/sh" #define SH_NAME "sh" /* Structure describing a popen child. */ struct child { int fd; int pid; } Child; #define PATHCHR ':' #define SEPCHAR '/' /*@$#[systools.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:22:17 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* systools.c */ static GSList *testAndAppend PROTO((GSList *list, char *devName)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ /*------------------------------------------------------------------------------ MKFIFO- Linux!jef 2005/12/05 21:59:11 ------------------------------------------------------------------------------*/ int MkFifo( fifoName ) char * fifoName; { return( mknod( fifoName, S_IFIFO | 0666, 0 ) ? -1 : 0 ); } /*------------------------------------------------------------------------------ DELFIFO- Linux!jef 2005/12/05 22:00:27 ------------------------------------------------------------------------------*/ int DelFifo( fifoName ) char * fifoName; { unlink( fifoName ); return( 0 ); } /*------------------------------------------------------------------------------ FILESTAT64- Linux!jef 2005/12/16 21:19:35 ------------------------------------------------------------------------------*/ long long FileSize64( char * fileName ) { struct stat64 bstat; int res; res = stat64( fileName, &bstat ); if( res < 0 ) return( 0LL ); // fprintf(stderr,"sizeof(bstat.st_size)=%d := %lld\n", sizeof(bstat.st_size), bstat.st_size ); return( (long long)bstat.st_size ); } /*------------------------------------------------------------------------------ LLSIZE2GIGA- Linux!jef 2005/12/16 22:22:31 ------------------------------------------------------------------------------*/ char * LLSize2Giga( long long size ) { static char string[200]; double g; // fprintf(stderr,"Size: %lld\n", size ); g = (double)size / ( 1024.0 * 1024.0 * 1024.0 ); if( g >= 1.0 ) { sprintf( string,_("%.2f gigas"), g ); } else { g = (double)size / ( 1024.0 * 1024.0 ); if( g >= 1.0 ) { sprintf( string,_("%.2f megas"), g ); } else { g = (double)size / ( 1024.0 ); sprintf( string,_("%.2f kilos"), g ); } } return( string ); } /*------------------------------------------------------------------------------ FLOOK- JEF!jef 95/02/02 15:17:26 ------------------------------------------------------------------------------*/ int flook( fname ) char *fname; { char *path; /* environmental PATH variable */ char *sp; /* pointer into path spec */ char fspec[512]; /* full path spec to search */ if( *fname == '/' ) { if( access( fname, 1 ) == 0 ) return( 1 ); // fprintf(stderr,"%s: is regular file !\n", fname ); return( 0 ); } /* get the PATH variable */ path = getenv("PATH"); if( path ) { while (*path) { /* build next possible file spec */ sp = fspec; while (*path && (*path != PATHCHR)) *sp++ = *path++; /* add a terminating dir separator if we need it */ if (sp[-1] != SEPCHAR) *sp++ = SEPCHAR; *sp = 0; strcat(fspec, fname); // fprintf(stderr,"Trying: (%s)\n",fspec); /* and try it out */ if( access( fspec, 1 ) == 0 ) return(1); if (*path == PATHCHR) ++path; } } return(0); /* no such luck */ } /*------------------------------------------------------------------------------ FSFREE- Linux!jef 2005/12/19 20:57:02 ------------------------------------------------------------------------------*/ long long FsFree( char * fsName ) { #if defined(__sun) struct statvfs b; int res; long long freeSize; res = statvfs( fsName, &b); if( res < 0 ) return( 0LL ); freeSize = ((long long)b.f_bavail * (long long)b.f_bsize); return( freeSize ); #else struct statfs b; int res; long long freeSize; res = statfs( fsName, &b ); if( res < 0 ) return( 0LL ); freeSize = ((long long)b.f_bavail * (long long)b.f_bsize); // fprintf(stderr,"avail: %ld bsize: %ld = %lld\n", b.f_bavail, b.f_bsize, freeSize ); return( freeSize ); #endif } /*------------------------------------------------------------------------------ DIREXIST- Linux!jef 2006/01/31 20:46:19 ------------------------------------------------------------------------------*/ int DirExist( char * dirName ) { struct stat bStat; int res; res = stat( dirName, &bStat ); // fprintf(stderr,"%s: res=%d\n", dirName, res ); if( res ) return( 0 ); if( S_ISDIR( bStat.st_mode ) ) return( 1 ); return( -1 ); } /***************************************************************************//** * DIRCANWRITE- * @date 2009/07/07 22:22:21 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int DirCanWrite( char * dirname ) { if( access( dirname, W_OK ) ) return( -1 ); return( 0 ); } /*------------------------------------------------------------------------------ FILEEXIST- Linux!jef 2006/01/31 21:02:35 ------------------------------------------------------------------------------*/ int FileExist( char * fileName ) { struct stat64 bStat; int res; res = stat64( fileName, &bStat ); // fprintf(stderr,"%s(%s) = %d errno: %d\n", __FUNCTION__,fileName, res, errno ); if( res ) return( 0 ); if( S_ISREG( bStat.st_mode ) ) return( 1 ); if( S_ISBLK( bStat.st_mode ) ) return( 2 ); return( -1 ); } /*------------------------------------------------------------------------------ IsDvdDevice- ------------------------------------------------------------------------------*/ int IsDvdDevice( char * fileName ) { struct stat64 bStat; int res; res = stat64( fileName, &bStat ); // fprintf(stderr,"%s(%s) = %d errno: %d\n", __FUNCTION__,fileName, res, errno ); if( res ) return( 0 ); if( S_ISREG( bStat.st_mode ) ) return( 1 ); if( S_ISBLK( bStat.st_mode ) ) return( 2 ); #ifdef __APPLE__ if ( strncmp("/dev/", fileName, 5) == 0) return 2; return 2; #endif return( -1 ); } /*------------------------------------------------------------------------------ MY_POPEN- JEF!jef 95/09/26 14:29:09 Open a new stream that is a one-way pipe to a child process running the given shell command. ------------------------------------------------------------------------------*/ FILE * my_popen( command, mode) char * command; char * mode; { int pid; int pipedes[2]; FILE * stream; if (command == NULL || mode == NULL || (*mode != 'r' && *mode != 'w')) { errno = EINVAL; return NULL; } /* Create the pipe. */ if( pipe(pipedes) < 0) return NULL; /* Fork off the child. */ pid = fork(); if( pid == -1) { /* The fork failed. */ close(pipedes[0]); close(pipedes[1]); return( NULL ); } else { if( !pid ) { char *new_argv[4]; int res; signal( SIGHUP, SIG_DFL ); signal( SIGTERM, SIG_DFL ); signal( SIGINT, SIG_DFL ); signal( SIGQUIT, SIG_DFL ); if( *mode == 'w' ) { res = dup2( pipedes[0] , 0 ); } else { res = dup2( pipedes[1] , 1 ); /* Ajout Stderr */ res |= dup2( pipedes[1] , 2 ); } if( res < 0 ) _exit( 127 ); /* Close the pipe descriptors. */ close(pipedes[0]); close(pipedes[1]); /* Exec the shell. */ new_argv[0] = SH_NAME; new_argv[1] = "-c"; new_argv[2] = command; new_argv[3] = NULL; (void) execve( SH_PATH, (const char **) new_argv, (const char **)environ); /* Die if it failed. */ _exit(127); } } /* We are the parent side. */ /* Close the irrelevant side of the pipe and open the relevant side as a new stream. Mark our side of the pipe to close on exec, so new children won't see it. */ if( *mode == 'r') { close(pipedes[1]); fcntl( pipedes[0], F_SETFD, FD_CLOEXEC); stream = fdopen(pipedes[0], mode); } else { close(pipedes[0]); fcntl( pipedes[1], F_SETFD, FD_CLOEXEC); stream = fdopen(1, mode); } if( !stream ) goto error; memset( &Child , 0 , sizeof( Child )); Child.fd = fileno(stream); Child.pid = pid; setvbuf( stream , NULL,_IOFBF,0 ); return( stream ); error:; { int save = errno; kill(pid, SIGKILL); if( !stream ) close(pipedes[*mode == 'r' ? 1 : 0]); else fclose(stream); { int dead; do dead = wait ((int *) NULL); while (dead > 0 && dead != pid); } errno = save; return NULL; } } /* Close a stream opened by popen and return its status. Returns -1 if the stream was not opened by popen. */ int my_pclose( stream ) FILE *stream; { int pid, dead; int status; pid = Child.pid; // fprintf(stderr,"killing: %d\n", pid ); status = kill( pid, SIGHUP ); if( fclose(stream) ) return( -1 ); do dead = wait (&status); while (dead > 0 && dead != pid); if (dead != pid) status = -1; return( status ); } /*------------------------------------------------------------------------------ DUREE2STRING- Linux!jef 2006/11/06 22:32:50 ------------------------------------------------------------------------------*/ char * Duree2String( int duree ) { static char result[100]; int h,m,s; h = duree / 3600; duree -= h * 3600; m = duree / 60; duree -= m * 60; s = duree; sprintf( result, "%02dh%02dm%02ds", h, m, s ); return( result ); } /*------------------------------------------------------------------------------ ADDSTRING2LIST- Linux!jef 2007/01/19 22:06:45 ------------------------------------------------------------------------------*/ char * AddString2List( char * list, char * string ) { char * newList; if( strstr( list, string ) ) { return( strdup( list )); } newList = alloca( strlen( list ) + strlen( string ) + 1 + 1 ); strcpy( newList, list ); if( *newList ) { strcat( newList, "," ); } strcat( newList, string ); return( strdup( newList ) ); } /*------------------------------------------------------------------------------ REMOVESTRINGFROMLIST- Linux!jef 2007/01/19 22:08:50 ------------------------------------------------------------------------------*/ char * RemoveStringFromList( char * list, char * string ) { char * newList; char * temp; char * tok; if( !strstr( list, string ) ) { return( strdup( list )); } newList = alloca( strlen( list ) + 1 ); *newList = 0; temp = alloca( strlen( list ) + 1 ); strcpy( temp, list ); tok = strtok( temp, "," ); while( tok ) { if( strcmp( tok, string ) ) { if( *newList ) strcat( newList, "," ); strcat( newList, tok ); } tok = strtok( NULL, "," ); } return( strdup( newList ) ); } /*------------------------------------------------------------------------------ MAKEDIRIFNEEDED- Linux!jef 2007/01/23 23:05:51 ------------------------------------------------------------------------------*/ int MakeDirIfNeeded( char * path ) { struct stat64 bStat; int res; res = stat64( path, &bStat ); // fprintf(stderr,"%s(%s) = %d errno: %d\n", __FUNCTION__,fileName, res, errno ); if( !res && S_ISDIR( bStat.st_mode ) ) return( 0 ); return( mkdir( path, 0777 ) ); } /*------------------------------------------------------------------------------ ISDVDLOADED- Linux!jef 2007/01/09 22:13:37 ------------------------------------------------------------------------------*/ int IsDvdLoaded( char * device ) { int fd; int ret; struct stat64 b; #if !defined(__sun) && !defined(__APPLE__) struct loop_info lInfo; #endif // fprintf(stderr,"%s(%s)\n", __FUNCTION__, device ); if( stat64( device, &b) ) { // perror( device ); return( -1 ); } /* If this is a VIDEO STRUCTURE go-on */ if( S_ISDIR( b.st_mode ) ) return( 1 ); if( S_ISREG( b.st_mode ) ) return( 1 ); fd = open( device, O_RDONLY | O_NONBLOCK); if( fd < 0 ) { // perror( "open" ); return( -1 ); } #if defined (__sun) struct cdrom_tochdr cdth; ret = ioctl( fd, CDROMREADTOCHDR, &cdth); if( cdth.cdth_trk1 > 0 ) { close( fd ); return( 1 ); } #elif defined (__APPLE__) close( fd ); return( 1 ); #else ret = ioctl( fd, CDROM_DRIVE_STATUS, CDSL_CURRENT); if( ret == CDS_DISC_OK ) { close( fd ); return( 1 ); } /* Try to know if it is a loop device */ ret = ioctl( fd, LOOP_GET_STATUS, &lInfo ); close( fd ); if( !ret ) return( 1 ); close( fd ); #endif return( 0 ); } /*------------------------------------------------------------------------------ STRINGDUREE2SEC- Linux!jef 2007/01/30 22:07:02 ------------------------------------------------------------------------------*/ int StringDuree2Sec( char * string ) { int sec = 0; int acc = 0; while( *string ) { if( isdigit( *string ) ) { acc *= 10; acc += *string - '0'; } else { if( tolower( *string ) == 'h' ) { sec += acc * 3600; acc = 0; } if( tolower( *string ) == 'm' ) { sec += acc * 60; acc = 0; } if( tolower( *string ) == 's' ) { sec += acc ; acc = 0; } } string++; } return( sec ); } /*------------------------------------------------------------------------------ ISLOOPDEVICEREADY- Linux!jef 2007/02/12 20:55:27 ------------------------------------------------------------------------------*/ int IsLoopDeviceReady( char * loopDevice ) { #if !defined(__sun) && !defined(__APPLE__) struct loop_info lInfo; int fd; int ret; fd = open( loopDevice, O_RDONLY | O_NONBLOCK); if( fd < 0 ) return( 0 ); ret = ioctl( fd, LOOP_GET_STATUS, &lInfo ); // fprintf(stderr,"(%s)=%d lInfo.lo_name(%s)\n", loopDevice, ret,lInfo.lo_name ); close( fd ); if( !ret ) return( 1 ); #endif return( 0 ); } /*------------------------------------------------------------------------------ + GETDEVICES- + get list of available DVD devices as glib single linked list +------------------------------------------------------------------------------*/ static GSList * testAndAppend( GSList *list, char *devName ) { if( FileExist( devName ) == 2 ){ char *nameCopy = malloc (strlen(devName)+1); if (nameCopy){ strcpy(nameCopy, devName); list = g_slist_append( list, nameCopy); CTEST(fprintf(stderr,"Found device %s\n", nameCopy);); } } return( list ); } /***************************************************************************//** * FREEDEVICES- * @date 2008/07/16 22:41:59 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ void freeDevices( GSList * list ) { GSList * head = list; while( list ) { GSList * next = list->next; if( list->data ) free( list->data ); list = next; } g_slist_free( head ); } /***************************************************************************//** * GETDEVICES- * @date 2008/07/16 22:41:29 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ #ifndef __APPLE__ GSList *getDevices( void ) { int i; char devName[100]; GSList *list = NULL; list = testAndAppend( list, "/dev/dvd" ); /* Ide cdrom/dvdrom devices */ for( i = 0; i < 26; i++ ) { sprintf( devName, "/dev/hd%c", 'a'+i ); list = testAndAppend( list, devName ); } /* Scsi cdrom/dvdrom devices */ for( i = 0; i < 10; i++ ) { sprintf( devName, "/dev/sr%d", i ); list = testAndAppend( list, devName ); } for( i = 0; i < 10; i++ ) { sprintf( devName, "/dev/scd%d", i ); list = testAndAppend( list, devName ); } /* Loop devices */ for( i = 0; i < 10; i++ ) { sprintf( devName, "/dev/loop%d", i ); if( FileExist( devName ) == 2 && IsLoopDeviceReady( devName ) ) { list = testAndAppend( list, devName ); } } return( list ); } #else /* __APPLE__ */ #include #include #include #include #include #include char deviceFilePath[MAXPATHLEN]; //MAXPATHLEN is defined in sys/param.h int getBSDnameForDVDService( io_object_t device, char *path) { CFTypeRef deviceNameAsCFString = NULL; Boolean gotString = false; size_t devPathLength; /* the DVD drive is the child of the IODVDBlockStorageDriver child */ io_iterator_t children; kern_return_t krc = IORegistryEntryGetChildIterator(device, kIOServicePlane, &children); if (krc == KERN_SUCCESS) { io_service_t child; while ((child = IOIteratorNext(children))) { io_string_t type; IOObjectGetClass(child, type); if (strcmp( type, "IODVDBlockStorageDriver") == 0){ io_service_t drive; IORegistryEntryGetChildEntry(child, kIOServicePlane, &drive); if (child){ deviceNameAsCFString = IORegistryEntryCreateCFProperty( drive, CFSTR(kIOBSDNameKey), kCFAllocatorDefault, kNilOptions); } } IOObjectRelease(child); } IOObjectRelease(children); } if (deviceNameAsCFString) { path[0] = '\0'; devPathLength = strlen(_PATH_DEV); //_PATH_DEV is defined in paths.h strcpy(path, _PATH_DEV); strcat(path,"r"); // dvds have to be opened in "r"aw mode gotString = CFStringGetCString( deviceNameAsCFString, path + strlen(path), MAXPATHLEN - strlen(deviceFilePath), kCFStringEncodingASCII); } if (gotString) { // printf("Device file path: %s\n", path); //deviceFilePath will look something like /dev/rdisk1 return 0; } return -1; } /* * Find all DVD drives */ GSList *getDevices(void) { GSList *list = NULL; /* * Create a matching dictionary to search for DVD services in the IOKit. */ CFMutableDictionaryRef RefMatchingDict = IOServiceMatching("IODVDServices"); if (RefMatchingDict == NULL){ // no dvd drives found return list; } /* * Get a collection of DVD services. */ io_iterator_t DVDServices = 0; IOReturn rc = IOServiceGetMatchingServices(kIOMasterPortDefault, RefMatchingDict, &DVDServices); io_object_t DVDService; while ((DVDService = IOIteratorNext(DVDServices)) != 0) { if (getBSDnameForDVDService( DVDService, deviceFilePath ) >= 0){ char *nameCopy = malloc (strlen(deviceFilePath)+1); if (nameCopy){ strcpy(nameCopy, deviceFilePath); list = g_slist_append( list, nameCopy); CTEST(fprintf(stderr,"Found device %s\n", nameCopy);); } } IOObjectRelease(DVDService); } IOObjectRelease(DVDServices); return list; } #endif /***************************************************************************//** * GETNUMCPU- * @date 2009/01/15 23:40:20 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int GetNumCpu() { int numcpu = sysconf( _SC_NPROCESSORS_ONLN ); if( numcpu < 1 ) numcpu = 1; return( numcpu ); } /***************************************************************************//** * CANCREATEFILE- * @date 2009/01/27 23:05:23 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int CanCreateFile( char * dirName ) { char * fName = alloca( strlen(dirName) + 1 + strlen( ".dvd95" ) + 1 ); FILE * fp; sprintf( fName, "%s/.dvd95", dirName ); fp = fopen( fName, "w" ); if( !fp ) return( 0 ); fclose( fp ); unlink( fName ); return( 1 ); } /***************************************************************************//** * GETMKISOTOOL- * @date 2009/01/29 21:28:00 * @author jef-Linux * @brief * Return ISO builder tool name * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ char * GetMkIsoTool() { if( flook( "genisoimage" ) ) return( "genisoimage" ); return( "mkisofs" ); } /***************************************************************************//** * GETENV- * @date 2009/07/07 21:52:07 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ char * GetEnv( char * evKey, char * defValue ) { char * envValue = getenv( evKey ); if( envValue ) return( envValue ); return( defValue ); } /***************************************************************************//** * STARTTIMER- * @date 2010/02/02 22:07:35 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ Timer_t * StartTimer() { Timer_t * new =(Timer_t *)malloc( sizeof(*new )); gettimeofday( &new->StartTime, NULL ); return( new ); } /***************************************************************************//** * STOPTIMER- * @date 2010/02/02 22:08:59 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ void StopTimer( Timer_t * timer ) { if( timer ) gettimeofday( &timer->EndTime, NULL ); } /***************************************************************************//** * ELAPSEDTIMER- * @date 2010/02/02 22:10:11 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ double ElapsedTimer( Timer_t * timer ) { double elapsedTime; if( !timer ) return( 0 ); elapsedTime = timer->EndTime.tv_sec - timer->StartTime.tv_sec; elapsedTime += (double)(timer->EndTime.tv_usec - timer->StartTime.tv_usec) / 1000000.0; return( elapsedTime ); } /***************************************************************************//** * FREETIMER- * @date 2010/02/02 22:10:59 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ void FreeTimer( Timer_t * timer ) { if( timer ) free( timer ); } /***************************************************************************//** * CPUPHYSMEMSIZE- * @date 2010/02/04 20:49:56 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ long long CpuPhysMemSize() { double pSize = 0; #ifdef linux struct sysinfo info; if( sysinfo( &info ) >= 0 ) { // Broken sur kernel >= 2.4.0 pSize = info.freeram + info.bufferram + info.sharedram; #if LINUX_VERSION_CODE >= 0x020400 pSize = (double)info.totalram * (double)info.mem_unit; #else pSize = (double)info.totalram; #endif } #else #ifdef __FreeBSD__ #include #include { int mib[2]; int msize; size_t len; mib[0] = CTL_HW; mib[1] = HW_USERMEM; len = sizeof(msize); sysctl(mib, 2, &msize, &len, NULL, 0); pSize = msize; } #endif #endif if( pSize <= 0 ) pSize = 512.0 * 1024.0 * 1024.0; return( (long long)pSize ); } /***************************************************************************//** * BURNTOOL- * @date 2010/05/28 22:13:28 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int BurnTool() { if( flook( "k3b" ) ) return( BURNTOOL_K3B ); if( flook( "brasero" ) ) return( BURNTOOL_BRASERO ); return( BURNTOOL_NONE ); } /***************************************************************************//** * BURNISOFILE- * @date 2010/05/28 21:03:36 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int BurnIsoFile( int tool, char * device, char * isoFile ) { char sysCmd[1024]; int res; sprintf( sysCmd, "eject %s", device ); res = system( sysCmd ); if( tool == BURNTOOL_K3B ) { sprintf( sysCmd,"k3b \"%s\" -cdimage", isoFile );/*FIXME: verify ! */ res = system( sysCmd ); return( res ); } if( tool == BURNTOOL_BRASERO) { sprintf( sysCmd,"brasero -i \"%s\"", isoFile ); res = system( sysCmd ); return( res ); } return( -1 ); } /***************************************************************************//** * BURNVIDEODIR- * @date 2010/05/28 21:03:36 * @author jef-Linux * @brief * Pas d'explication * @details * Pas de details * @param[in] Pas de detail * @param[out] Pas de detail *******************************************************************************/ int BurnVideoDir( int tool, char * device, char * videoDir ) { char sysCmd[1024]; int res; sprintf( sysCmd, "eject %s", device ); res = system( sysCmd ); if( tool == BURNTOOL_K3B ) { sprintf( sysCmd,"k3b \"%s/VIDEO_TS\" -videodvd", videoDir ); res = system( sysCmd ); return( res ? -1 : 0 ); } /*FIXME: howto in brasero !*/ return( -1 ); } dvd95/src/systools.h000066400000000000000000000036551140003301000146370ustar00rootroot00000000000000/*============================================================================== FICHIER : [systools.h] DATE : 2005/12/0005 22:00:48 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __SYSTOOLS_H__ #define __SYSTOOLS_H__ #include typedef struct { struct timeval StartTime; struct timeval EndTime; } Timer_t; enum BurnTool_t { BURNTOOL_NONE = 0, BURNTOOL_K3B, BURNTOOL_BRASERO }; /*@$#[systools.c] global proto. AutoProtoSigV1.1. date: 2010/05/28 22:30:23 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif int MkFifo(char *fifoName); int DelFifo(char *fifoName); long long FileSize64(char *fileName); char *LLSize2Giga(long long size); int flook(char *fname); long long FsFree(char *fsName); int DirExist(char *dirName); int DirCanWrite(char *dirname); int FileExist(char *fileName); int IsDvdDevice(char *fileName); FILE *my_popen(char *command, char *mode); int my_pclose(FILE *stream); char *Duree2String(int duree); char *AddString2List(char *list, char *string); char *RemoveStringFromList(char *list, char *string); int MakeDirIfNeeded(char *path); int IsDvdLoaded(char *device); int StringDuree2Sec(char *string); int IsLoopDeviceReady(char *loopDevice); void freeDevices(GSList *list); GSList *getDevices(void); int GetNumCpu(void); int CanCreateFile(char *dirName); char *GetMkIsoTool(void); char *GetEnv(char *evKey, char *defValue); Timer_t *StartTimer(void); void StopTimer(Timer_t *timer); double ElapsedTimer(Timer_t *timer); void FreeTimer(Timer_t *timer); long long CpuPhysMemSize(void); int BurnTool(void); int BurnIsoFile(int tool, char *device, char *isoFile); int BurnVideoDir(int tool, char *device, char *videoDir); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) []*/ #endif /* __SYSTOOLS_H__ */ dvd95/src/tampon.c000066400000000000000000000651161140003301000142310ustar00rootroot00000000000000/*============================================================================== FICHIER : [tampon.c] DATE : 2005/12/0006 21:16:44 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #if 0 /* Not used anymore */ #define __USE_LARGEFILE64 #define _LARGEFILE64_SOURCE #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #define __USE_GNU #include char ** environ; #define SH_PATH "/bin/sh" #define SH_NAME "sh" #include "tampon.h" #include "globals.h" #define SIMUL 0 #define CTEST(x) /***/ #define CTEST2(x) /***/ #define CLOSE(x) if( x != -1 ) { close( x ); x = -1; } #define NB_BUFFERS 4000 static TBuffer * FreeBuffer = NULL; static pthread_mutex_t FreeMutex; static sem_t FreeSem; static int NbFreed = 0; static int NbAlloc = 0; static int ErrorCondition; /*@$#[tampon.c] static proto. AutoProtoSigV1.1. date: 105/12/14 23:32:36 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif static int BufferInit PROTO((void)); static void BufferDestroy PROTO((void)); static TBuffer *BufferAlloc PROTO((void)); static void BufferFree PROTO((TBuffer *b)); static TStream *TamponAddStream PROTO((Tampon *tampon, char *command)); static TFifo *AddFifo PROTO((TStream *stream, char *oFile)); static int OpenFifoRead PROTO((char *fifoName)); static int OpenFifoWrite PROTO((char *fifoName)); static void SetCloExec PROTO((int fd)); static void *WriterRoutine PROTO((void *arg)); static void *ThreadRoutine PROTO((void *arg)); static int SetupStream PROTO((Tampon *tampon, TStream *stream, TStream *parent)); static int WriteBuffer PROTO((TFifo *fifo, char *buffer, int lg)); static int MngStream PROTO((Tampon *tampon, TStream *stream)); static int SetupStage PROTO((Tampon *tampon, TStage *stage)); static int MngStage PROTO((Tampon *tampon, TStage *stage)); static int StreamDestroyProc PROTO((TStream *stream)); static int StreamDestroyThreads PROTO((TStream *stream)); static int StreamDestroyResources PROTO((TStream *stream)); static int StreamDestroyAlloc PROTO((TStream *stream)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ /*------------------------------------------------------------------------------ BUFFERINIT- Linux!jef 2005/12/13 22:07:54 ------------------------------------------------------------------------------*/ static int BufferInit() { int i; pthread_mutexattr_t attr; FreeBuffer = NULL; NbFreed = NbAlloc = 0; for( i = 0; i < NB_BUFFERS; i++ ) { TBuffer * b =(TBuffer *)calloc( 1, sizeof(*b)); b->next = FreeBuffer; FreeBuffer = b; NbFreed++; } sem_init( &FreeSem, 0, NB_BUFFERS ); pthread_mutexattr_init( &attr ); pthread_mutex_init( &FreeMutex, &attr ); return( 0 ); } /*------------------------------------------------------------------------------ BUFFERDESTROY- Linux!jef 2005/12/13 22:09:14 ------------------------------------------------------------------------------*/ static void BufferDestroy() { TBuffer * b = FreeBuffer; int cnt = 0; while( b ) { TBuffer * n = b->next; cnt++; free( b ); b = n; } FreeBuffer = NULL; DBG( 't',fprintf(stderr,"%s: %d buffer destroyed.\n", __FUNCTION__, cnt );); } /*------------------------------------------------------------------------------ BUFFERALLOC- Linux!jef 2005/12/13 22:10:47 ------------------------------------------------------------------------------*/ static TBuffer * BufferAlloc() { TBuffer * b; sem_wait( &FreeSem ); pthread_mutex_lock( &FreeMutex ); b = FreeBuffer; FreeBuffer = b->next; b->next = NULL; NbAlloc++; pthread_mutex_unlock( &FreeMutex ); return( b ); } /*------------------------------------------------------------------------------ BUFFERFREE- Linux!jef 2005/12/13 22:16:41 ------------------------------------------------------------------------------*/ static void BufferFree( b ) TBuffer * b; { pthread_mutex_lock( &FreeMutex ); b->next = FreeBuffer; FreeBuffer = b; NbFreed++; pthread_mutex_unlock( &FreeMutex ); sem_post( &FreeSem ); } /*------------------------------------------------------------------------------ TAMPONADDSTREAM- Linux!jef 2005/12/06 21:19:21 ------------------------------------------------------------------------------*/ static TStream * TamponAddStream( tampon, command ) Tampon * tampon; char * command; { TStream * stream =(TStream *)calloc( 1, sizeof(*stream) ); stream->command = strdup( command ); stream->pid = 0; AddFifo( stream, NULL ); if( tampon ) { stream->next = tampon->stream->next; tampon->stream->next = stream; } return( stream ); } /*------------------------------------------------------------------------------ CREATETAMPON- Linux!jef 2005/12/06 21:17:54 ------------------------------------------------------------------------------*/ Tampon * CreateTampon( command ) char * command; { Tampon * new =(Tampon *)calloc( 1, sizeof( *new ) ); new->stream = TamponAddStream( NULL, command ); return( new ); } /*------------------------------------------------------------------------------ ADDFIFO- Linux!jef 2005/12/07 22:51:27 ------------------------------------------------------------------------------*/ static TFifo * AddFifo( stream, oFile ) TStream * stream; char * oFile; { TFifo * fifo = (TFifo * )calloc( 1, sizeof(*fifo)); if( oFile ) fifo->oFifo = strdup( oFile ); fifo->fifoFdR = fifo->fifoFdW = -1; fifo->next = stream->oFifos; stream->oFifos = fifo; return( fifo ); } /*------------------------------------------------------------------------------ STREAMADDSTREAM- Linux!jef 2005/12/06 21:22:17 ------------------------------------------------------------------------------*/ TStream * StreamAddBrother( stream, command, cb, oFile ) TStream * stream; char * command; TCbArray * cb; char * oFile; { TStream * new =(TStream *)calloc( 1, sizeof(*new) ); TFifo * f; if( cb ) new->cb = *cb; else new->command = strdup( command ); new->pid = 0; AddFifo( new, oFile ); /* Add a fifo to the father WARNING must be a callback */ f = AddFifo( stream->parent, NULL ); f->reader = new; /* Link stream */ new->parent = stream->parent; stream->next = new; return( new ); } /*------------------------------------------------------------------------------ STREAMADDSTREAM- Linux!jef 2005/12/06 21:22:17 ------------------------------------------------------------------------------*/ TStream * StreamAddSon( parent, command, cb, oFile ) TStream * parent; char * command; TCbArray * cb; char * oFile; { TStream * new =(TStream *)calloc( 1, sizeof(*new) ); if( cb ) new->cb = *cb; else new->command = strdup( command ); new->pid = 0; AddFifo( new, oFile ); parent->oFifos->reader = new; new->parent = parent; parent->up = new; return( new ); } /*------------------------------------------------------------------------------ SETSTREAMENDCB- Linux!jef 2006/01/17 21:37:36 ------------------------------------------------------------------------------*/ void SetStreamEndCb( stream, endCb, arg ) TStream * stream; void (* endCb)(); void * arg; { stream->endCallBack = endCb; stream->arg = arg; } /*------------------------------------------------------------------------------ TAMPONADDSTAGE- Linux!jef 2005/12/13 20:57:01 ------------------------------------------------------------------------------*/ int TamponAddStage( tampon, sysCmd ) Tampon * tampon; char * sysCmd; { TStage * new =(TStage * )calloc( 1, sizeof( *new )); new->command = strdup( sysCmd ); new->pid = 0; if( !tampon->stages ) { tampon->stages = new; } else { TStage * s = tampon->stages; while( s->next ) s = s->next; s->next = new; } return( 0 ); } /*------------------------------------------------------------------------------ OPENFIFOREAD- Linux!jef 2005/12/07 23:10:51 ------------------------------------------------------------------------------*/ static int OpenFifoRead( fifoName ) char * fifoName; { int handle; int flags; if( *fifoName == '|' ) fifoName++; handle = open( fifoName, O_RDONLY | O_NDELAY | O_LARGEFILE ); if( handle < 0 ) return( -1 ); flags = fcntl( handle, F_GETFL, 0 ); fcntl( handle, F_SETFL, flags & ~O_NDELAY ); return( handle ); } /*------------------------------------------------------------------------------ OPENFIFOWRITE- Linux!jef 2005/12/07 23:10:51 ------------------------------------------------------------------------------*/ static int OpenFifoWrite( fifoName ) char * fifoName; { int handle; int flags; if( *fifoName == '|' ) fifoName++; handle = open( fifoName, O_RDWR | O_NDELAY | O_LARGEFILE ); if( handle < 0 ) return( -1 ); flags = fcntl( handle, F_GETFL, 0 ); fcntl( handle, F_SETFL, flags & ~O_NDELAY ); return( handle ); } /*------------------------------------------------------------------------------ SETCLOEXEC- Linux!jef 2005/12/07 23:58:12 ------------------------------------------------------------------------------*/ static void SetCloExec( fd ) int fd; { fcntl( fd, F_SETFD, FD_CLOEXEC); } /*------------------------------------------------------------------------------ WRITERROUTINE- Linux!jef 2005/12/13 22:31:44 ------------------------------------------------------------------------------*/ static void * WriterRoutine( arg ) void * arg; { TFifo * fifo =(TFifo *)arg; DBG( 't',fprintf(stderr,"WriterRoutine: start fifo %p thread: %p file: %s\n", fifo, (void *)fifo->thread, fifo->oFifo );); while( 1 ) { sem_wait( &fifo->wSem ); pthread_testcancel(); #if 0 if( ErrorCondition ) break; #endif if( fifo->head ) { TBuffer bb; TBuffer * b; pthread_mutex_lock( &fifo->aMutex ); b = fifo->head; bb = *b; // fprintf(stderr,"%p: Pop head\n", fifo); fifo->head = b->next; if( !fifo->head ) { fifo->tail = NULL; // fprintf(stderr,"%p: Pop head == tail\n", fifo); } pthread_mutex_unlock( &fifo->aMutex ); BufferFree( b ); if( WriteBuffer( fifo, bb.data, bb.lg ) < 0 ) { DBG( 't',fprintf(stderr,"WriterRoutine: write error %d exiting.\n", errno );); break; } } else { DBG( 't',fprintf(stderr,"thread:%p BUG:: nothing to pop !\n", (void *)fifo->thread);); } } CLOSE( fifo->fifoFdW ); fifo->thread = 0; return( (void *)0 ); } /*------------------------------------------------------------------------------ THREADROUTINE- Linux!jef 2005/12/09 20:33:46 ------------------------------------------------------------------------------*/ static void * ThreadRoutine( arg ) void * arg; { TStream * stream = (TStream *)arg; int i; TFifo * fifo, * f; char buffer[RSIZE]; int lg; int nOut = 0; int res = 0; f = stream->oFifos; while( f ) { nOut++; f = f->next; } DBG( 't',fprintf(stderr,"ThreadRoutine: start stream %p thread: %p nOut: %d pid: %d\n", stream,(void *)stream->thread, nOut,getpid());); if( nOut > 1 ) { f = stream->oFifos; while( f ) { pthread_mutexattr_t attr; sem_init( &f->wSem, 0, 0 ); pthread_mutexattr_init( &attr ); pthread_mutex_init( &f->aMutex, &attr ); pthread_create( &f->thread, NULL, WriterRoutine, (void *)f ); f = f->next; } } fifo = stream->parent->oFifos; while( fifo->fifoFdR != -1 ) { pthread_testcancel(); #if 0 if( ErrorCondition ) { DBG( 't',fprintf(stderr,"ThreadRoutine: %p ErrorCondition exit\n", stream );); res = -1; goto out; } #endif CTEST2(fprintf(stderr,"stream %p before read\n", stream );); lg = read( fifo->fifoFdR, buffer, sizeof(buffer)); CTEST2(fprintf(stderr,"stream: %p read %d bytes errno: %d\n", stream, lg, errno );); if( lg < 0 ) { DBG( 't',fprintf(stderr,"ThreadRoutine: %p read exit errno: %d\n", stream, errno );); res = -1; goto out; } if( lg == 0 ) { /* input stream close, close any output */ DBG( 't',fprintf(stderr,"input of callback end, shutting down in and out: errno %d\n", errno);); CLOSE( fifo->fifoFdR ); /* CLOSE( fifo->fifoFdW ); fifo = stream->oFifos; while( fifo ) { CLOSE( fifo->fifoFdR ); CLOSE( fifo->fifoFdW ); fifo = fifo->next; } */ break; } if( lg > 0 ) { for( i = 0; i < stream->cb.nCb; i++ ) { (* stream->cb.callBack[i] )( buffer, &lg ); } f = stream->oFifos; if( nOut > 1 ) { while( f ) { TBuffer * b = BufferAlloc(); memcpy( b->data, buffer, lg ); b->lg = lg; pthread_mutex_lock( &f->aMutex ); if( !f->head ) { // fprintf(stderr,"%p: Push head\n", f); f->head = f->tail = b; } else { // fprintf(stderr,"%p: Push tail\n", f ); f->tail->next = b; f->tail = b; } pthread_mutex_unlock( &f->aMutex ); sem_post( &f->wSem ); f = f->next; } } else { if( WriteBuffer( f, buffer, lg ) < 0 ) { DBG( 't',fprintf(stderr,"ThreadRoutine: write error %d exiting.\n", errno );); res = -1; goto out; } } } } out:; DBG( 't',fprintf(stderr,"Thread end: stream %p thread: %p res: %d.\n", stream, (void *)stream->thread, res );); /* kill any writer thread */ while( 1 ) { int found; f = stream->oFifos; found = 0; while( f ) { if( f->thread ) { DBG( 't',fprintf(stderr,"Thread end: cancel fifo thread: %p.\n", (void *)f->thread );); /* drain the fifo: */ if( !f->head ) { pthread_cancel( f->thread ); pthread_join( f->thread, NULL ); DBG( 't',fprintf(stderr,"Thread end: closing (%s).\n", f->oFifo );); CLOSE( f->fifoFdR ); CLOSE( f->fifoFdW ); f->thread = 0; } else found++; } f = f->next; } if( !found ) break; usleep( 100 * 1000 ); } if( nOut == 1 ) { f = stream->oFifos; CLOSE( f->fifoFdW ); } stream->thread = 0; DBG( 't',fprintf(stderr,"ThreadRoutine: stream %p exit.\n", stream );); return( (void *)(long)res ); } /*------------------------------------------------------------------------------ SETUPSTREAM- Linux!jef 2005/12/06 21:35:23 ------------------------------------------------------------------------------*/ static int SetupStream( tampon, stream, parent ) Tampon * tampon; TStream * stream; TStream * parent; { static int cpt = 0; char oFifo[256]; pid_t pid; TFifo * fifo; TFifo * fifoRead; /* Create any output fifos and files */ fifo = stream->oFifos; while( fifo ) { if( !fifo->oFifo ) { sprintf( oFifo, "/tmp/_t%d.%d.fifo", getpid(), cpt++ ); unlink( oFifo ); if( mknod( oFifo, S_IFIFO | 0666, 0 ) ) { DBG( 't',fprintf(stderr,"SetupStream: fifo (%s) creation failed errno: %d\n", oFifo, errno );); return( -1 ); } fifo->oFifo = strdup( oFifo ); fifo->rmF = 1; DBG( 't',fprintf(stderr,"SetupStream: %p creating fifo %s\n", stream, fifo->oFifo );); } else { if( *fifo->oFifo == '|' ) { DBG( 't',fprintf(stderr,"SetupStream: %p creating fifo %s\n", stream, fifo->oFifo +1 );); unlink( fifo->oFifo+1 ); if( mknod( fifo->oFifo+1, S_IFIFO | 0666, 0 ) ) { DBG( 't',fprintf(stderr,"SetupStream: fifo (%s) creation failed errno: %d\n", fifo->oFifo+1, errno );); return( -1 ); } } else { if( !strcmp(fifo->oFifo, "/dev/null")) { DBG( 't',fprintf(stderr,"SetupStream: %p null out %s\n", stream, fifo->oFifo );); } else { DBG( 't',fprintf(stderr,"SetupStream: %p creating file %s\n", stream, fifo->oFifo );); unlink( fifo->oFifo ); close( open( fifo->oFifo, O_WRONLY | O_CREAT | O_TRUNC, 0666 ) ); } } } fifo = fifo->next; } /* Search parent input fifo */ if( parent ) { fifoRead = parent->oFifos; while( fifoRead ) { if( fifoRead->reader == stream ) break; fifoRead = fifoRead->next; } if( !fifoRead ) { DBG( 't',fprintf(stderr, "fifo parent not found !\n");); return( -1 ); } } else fifoRead = NULL; /* A callback stream read in parent fifo en write in any sons fifos, so no need to have his hown fifo */ if( IsCB(stream) ) { if( !parent ) { DBG( 't',fprintf(stderr,"SetupStream: callback an no parent !\n");); return( -1 ); } if( !fifoRead ) { DBG( 't',fprintf(stderr,"SetupStream: callback need a parent read fifo !\n");); return( -1 ); } fifoRead->fifoFdR = OpenFifoRead( fifoRead->oFifo ); if( fifoRead->fifoFdR < 0 ) { DBG( 't',fprintf(stderr,"SetupStream: OpenFifoRead(%s) failed errno: %d !\n", fifoRead->oFifo, errno);); return( -1 ); } SetCloExec( fifoRead->fifoFdR ); DBG( 't',fprintf(stderr,"SetupStream: %p(callback) parent: %p\n", stream, parent );); DBG( 't',fprintf(stderr,"Input=%s\n", fifoRead->oFifo );); DBG( 't',fprintf(stderr,"Output=");); fifo = stream->oFifos; while( fifo ) { fifo->fifoFdW = OpenFifoWrite( fifo->oFifo ); if( fifo->fifoFdW < 0 ) { DBG( 't',fprintf(stderr,"Opening (%s) failed errno: %d!\n", fifo->oFifo, errno );); return( -1 ); } SetCloExec( fifo->fifoFdW ); DBG( 't',fprintf(stderr,"%s,", fifo->oFifo );); fifo = fifo->next; } pthread_create( &stream->thread, NULL, ThreadRoutine, (void *)stream ); tampon->nThread++; DBG( 't',fprintf(stderr,"\n");); goto doNext; } DBG( 't',fprintf(stderr,"SetupStream: %p(%s) parent: %p\n", stream, stream->command, parent );); #if !SIMUL DBG( 't',fprintf(stderr,"Input=%s Output=%s\n", fifoRead ? fifoRead->oFifo : "", stream->oFifos->oFifo );); pid = fork(); if( pid < 0 ) return( -1 ); if( !pid ) { int i; int handle; char * new_argv[4]; for( i = 3; i < 100; i++ ) close( i ); if( fifoRead ) { handle = OpenFifoRead( fifoRead->oFifo ); dup2( handle, 0 ); close( handle ); } else { close( 0 ); } /* Set output fifo */ handle = OpenFifoWrite( stream->oFifos->oFifo ); dup2( handle, 1 ); close( handle ); if( !IsLevelSet( 'e' ) ) { handle = open( "/dev/null", O_WRONLY ); dup2( handle, 2 ); close( handle ); } new_argv[0] = SH_NAME; new_argv[1] = "-c"; new_argv[2] = stream->command; new_argv[3] = NULL; (void) execve( SH_PATH, (char * const *) new_argv, (char * const *)environ); /* Die if it failed. */ _exit(127); } stream->pid = pid; tampon->nProc++; #else DBG( 't',fprintf(stderr,"Input=%s Output=%s\n", parent ? parent->oFifo : "", stream->oFifo );); #endif doNext:; if( stream->up ) { if( SetupStream( tampon, stream->up, stream ) < 0 ) return( -1 ); } if( stream->next ) { if( SetupStream( tampon, stream->next, parent ) < 0 ) return( -1 ); } return( 0 ); } /*------------------------------------------------------------------------------ WRITEBUFFER- Linux!jef 2005/12/07 01:10:29 ------------------------------------------------------------------------------*/ static int WriteBuffer( fifo, buffer, lg ) TFifo * fifo; char * buffer; int lg; { while( lg ) { int len = write( fifo->fifoFdW, buffer, lg ); if( len < 0 ) return( -1 ); if( len > 0 ) { buffer += len; lg -= len; } } return( 0 ); } /*------------------------------------------------------------------------------ MNGSTREAM- Linux!jef 2005/12/07 01:05:57 ------------------------------------------------------------------------------*/ static int MngStream( tampon, stream ) Tampon * tampon; TStream * stream; { if( IsCB(stream) ) { if( !stream->threadKilledF ) { if( !stream->thread ) { tampon->nThread--; stream->threadKilledF = 1; DBG( 't',fprintf(stderr,"MngStream: stream %p thread died remain: %d thread\n", stream, tampon->nThread );); } } } else { if( stream->pid ) { int status; int pid; pid = waitpid( stream->pid, &status, WNOHANG ); if( pid == stream->pid ) { /* stream is dead */ if( stream->endCallBack ) (* stream->endCallBack)( stream, stream->arg ); stream->pid = 0; tampon->nProc--; DBG( 't',fprintf(stderr,"MngStream: stream %p died pid %d remain: %d proc\n", stream, pid, tampon->nProc );); } } } if( stream->next ) { if( MngStream( tampon, stream->next ) < 0 ) return( -1 ); } if( stream->up ) { if( MngStream( tampon, stream->up ) < 0 ) return( -1 ); } return( 0 ); } /*------------------------------------------------------------------------------ SETUPSTAGE- Linux!jef 2005/12/13 21:02:46 ------------------------------------------------------------------------------*/ static int SetupStage( tampon, stage ) Tampon * tampon; TStage * stage; { pid_t pid; if( !stage ) return( 0 ); DBG( 't',fprintf(stderr,"SetupStage: launching %s\n", stage->command );); pid = fork(); if( pid < 0 ) return( -1 ); if( !pid ) { int i; int handle; char * new_argv[4]; for( i = 3; i < 100; i++ ) close( i ); if( !IsLevelSet( 'e' ) ) { handle = open( "/dev/null", O_WRONLY ); dup2( handle, 2 ); close( handle ); } new_argv[0] = SH_NAME; new_argv[1] = "-c"; new_argv[2] = stage->command; new_argv[3] = NULL; (void) execve( SH_PATH, (char * const *) new_argv, (char * const *)environ); /* Die if it failed. */ _exit(127); } stage->pid = pid; tampon->nProc++; return( SetupStage( tampon, stage->next ) ); } /*------------------------------------------------------------------------------ MNGSTAGE- Linux!jef 2005/12/13 21:08:26 ------------------------------------------------------------------------------*/ static int MngStage( tampon, stage ) Tampon * tampon; TStage * stage; { if( !stage ) return( 0 ); if( stage->pid ) { int status; int pid; pid = waitpid( stage->pid, &status, WNOHANG ); if( pid == stage->pid ) { /* stage is dead */ stage->pid = 0; tampon->nProc--; DBG( 't',fprintf(stderr,"Stage died pid %d remain: %d proc\n", pid, tampon->nProc );); } } return( MngStage( tampon, stage->next ) ); } /*------------------------------------------------------------------------------ TAMPONRUN- Linux!jef 2005/12/06 21:33:55 ------------------------------------------------------------------------------*/ int TamponRun( tampon, uiCB ) Tampon * tampon; int (* uiCB)(); { ErrorCondition = 0; if( BufferInit() < 0 ) { DBG( 't',fprintf(stderr,"TamponRun: BufferInit failed !\n");); return( -1 ); } if( SetupStream( tampon, tampon->stream, NULL ) < 0 ) { DBG( 't',fprintf(stderr,"TamponRun: SetupStream failed !\n");); return( -1 ); } if( SetupStage( tampon, tampon->stages ) < 0 ) { DBG( 't',fprintf(stderr,"TamponRun: SetupStage failed !\n");); return( -1 ); } #if !SIMUL while( 1 ) { if( MngStream( tampon, tampon->stream ) < 0 ) break; if( MngStage( tampon, tampon->stages ) < 0 ) break; if( !tampon->nProc && !tampon->nThread ) break; if( uiCB && (* uiCB)( tampon ) < 0 ) { DBG( 't',fprintf(stderr,"TamponRun: UI Callback exit !\n");); return( -1 ); } usleep( 100 * 1000 ); } #endif DBG( 't',fprintf(stderr,"TamponRun: exiting !\n");); return( 0 ); } /*------------------------------------------------------------------------------ STREAMDESTROYPROC- Linux!jef 2005/12/06 21:55:40 ------------------------------------------------------------------------------*/ static int StreamDestroyProc( stream ) TStream * stream; { if( stream->up ) StreamDestroyProc( stream->up ); if( stream->next ) StreamDestroyProc( stream->next ); if( stream->pid ) { int status; DBG( 't',fprintf(stderr,"StreamDestroyProc: killproc %d\n", stream->pid );); kill( stream->pid, SIGTERM ); waitpid( stream->pid, &status, 0 ); stream->pid = 0; } return( 0 ); } /*------------------------------------------------------------------------------ STREAMDESTROYTHREADS- Linux!jef 2005/12/06 21:55:40 ------------------------------------------------------------------------------*/ static int StreamDestroyThreads( stream ) TStream * stream; { TFifo * fifo; if( stream->up ) StreamDestroyThreads( stream->up ); if( stream->next ) StreamDestroyThreads( stream->next ); if( stream->thread ) { DBG( 't',fprintf(stderr,"StreamDestroyThreads: killthread %p\n", (void *)stream->thread );); pthread_cancel( stream->thread ); pthread_join( stream->thread, NULL ); DBG( 't',fprintf(stderr,"StreamDestroyThreads: killthread %p destroyed\n", (void *)stream->thread );); stream->thread = 0; } fifo = stream->oFifos; while( fifo ) { if( fifo->thread ) { DBG( 't',fprintf(stderr,"StreamDestroyThreads: killfifothread %p\n", (void *)fifo->thread );); pthread_cancel( fifo->thread ); pthread_join( fifo->thread, NULL ); DBG( 't',fprintf(stderr,"StreamDestroyThreads: killfifothread %p destroyed\n", (void *)fifo->thread );); fifo->thread = 0; } fifo = fifo->next; } return( 0 ); } /*------------------------------------------------------------------------------ STREAMDESTROYRESOURCES- Linux!jef 2005/12/06 21:55:40 ------------------------------------------------------------------------------*/ static int StreamDestroyResources( stream ) TStream * stream; { TFifo * fifo; if( stream->up ) StreamDestroyResources( stream->up ); if( stream->next ) StreamDestroyResources( stream->next ); fifo = stream->oFifos; while( fifo ) { CLOSE( fifo->fifoFdR ); CLOSE( fifo->fifoFdW ); if( fifo->rmF ) unlink( fifo->oFifo ); fifo = fifo->next; } return( 0 ); } /*------------------------------------------------------------------------------ STREAMDESTROYALLOC- Linux!jef 2005/12/06 21:55:40 ------------------------------------------------------------------------------*/ static int StreamDestroyAlloc( stream ) TStream * stream; { TFifo * fifo; if( stream->up ) StreamDestroyAlloc( stream->up ); if( stream->next ) StreamDestroyAlloc( stream->next ); fifo = stream->oFifos; while( fifo ) { TFifo * n; if( fifo->oFifo ) { free( fifo->oFifo ); fifo->oFifo = NULL; } n = fifo->next; free( fifo ); fifo = n; } if( stream->command ) { free( stream->command ); stream->command = NULL; } free( stream ); return( 0 ); } /*------------------------------------------------------------------------------ TAMPONDESTROY- Linux!jef 2005/12/06 21:55:01 ------------------------------------------------------------------------------*/ int TamponDestroy( tampon ) Tampon * tampon; { TStage * s; /* Kill the stream head */ if( tampon->stream->pid ) { int status; DBG( 't',fprintf(stderr,"TamponDestroy: killprochead %d\n", tampon->stream->pid );); kill( tampon->stream->pid, SIGTERM ); waitpid( tampon->stream->pid, &status, 0 ); tampon->stream->pid = 0; } /* Gracefull shutdown for threads */ ErrorCondition = 1; while( tampon->nThread > 0 ) { MngStream( tampon, tampon->stream ); CTEST2(fprintf(stderr,"TamponDestroy: remain: %d thread\n", tampon->nThread );); usleep( 10 * 1000 ); } StreamDestroyProc( tampon->stream ); StreamDestroyResources( tampon->stream ); StreamDestroyAlloc( tampon->stream ); s = tampon->stages; while( s ) { TStage * n = s->next; if( s->pid ) { int status; DBG( 't',fprintf(stderr,"TamponDestroy: killproc %d\n", s->pid );); kill( s->pid, SIGTERM ); waitpid( s->pid, &status, 0 ); s->pid = 0; } free( s->command ); free( s ); s = n; } free( tampon ); BufferDestroy(); return( 0 ); } #endif dvd95/src/tampon.h000066400000000000000000000042511140003301000142270ustar00rootroot00000000000000/*============================================================================== FICHIER : [tampon.h] DATE : 2005/12/0006 20:46:47 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __TAMPON_H__ #define __TAMPON_H__ #include #include #define MAX_CB 5 #define RSIZE 4096 typedef struct DEF_BUFFER { char data[RSIZE]; int lg; struct DEF_BUFFER * next; } TBuffer; typedef struct { int nCb; int (* callBack[MAX_CB])(); } TCbArray; typedef struct DEF_FIFO { struct DEF_STREAM * reader; char * oFifo; int rmF; int fifoFdR; int fifoFdW; pthread_t thread; sem_t wSem; pthread_mutex_t aMutex; TBuffer * head; TBuffer * tail; struct DEF_FIFO * next; } TFifo; typedef struct DEF_STREAM { char * command; TCbArray cb; TFifo * oFifos; pid_t pid; void (* endCallBack)(); void * arg; pthread_t thread; int threadKilledF; struct DEF_STREAM * next; struct DEF_STREAM * up; struct DEF_STREAM * parent; } TStream; #define IsCB( s ) ( (s) && (s)->cb.nCb ) typedef struct DEF_STAGE { char * command; pid_t pid; struct DEF_STAGE * next; } TStage; typedef struct DEF_TAMPON { TStream * stream; TStage * stages; int nProc; int nThread; long long estimRSize; double lPct; void * userData; int (* callBack)( long long rSize, double pct, void * userData ); } Tampon; /*@$#[tampon.c] global proto. AutoProtoSigV1.1. date: 106/01/17 21:39:59 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif Tampon *CreateTampon PROTO((char *command)); TStream *StreamAddBrother PROTO((TStream *stream, char *command, TCbArray *cb, char *oFile)); TStream *StreamAddSon PROTO((TStream *parent, char *command, TCbArray *cb, char *oFile)); void SetStreamEndCb PROTO((TStream *stream, void (*endCb)(), void *arg)); int TamponAddStage PROTO((Tampon *tampon, char *sysCmd)); int TamponRun PROTO((Tampon *tampon, int (*uiCB)())); int TamponDestroy PROTO((Tampon *tampon)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __TAMPON_H__ */ dvd95/src/tcmemcpy.c000066400000000000000000001041471140003301000145520ustar00rootroot00000000000000/* * memcpy.c - optimized memcpy() routines for aclib * Written by Andrew Church * * This file is part of transcode, a video stream processing tool. * transcode is free software, distributable under the terms of the GNU * General Public License (version 2 or later). See the file COPYING * for details. */ #include "ac.h" #include #include /* Use memmove because memcpy isn't guaranteed to be ascending */ void *(*tc_memcpy)(void *, const void *, size_t) = memmove; /*************************************************************************/ /* Note the check for ARCH_X86 here: this is to prevent compilation of this * code on x86_64, since all x86_64 processors support SSE2, and because * this code is not set up to use the 64-bit registers for addressing on * x86_64. */ #if defined(HAVE_ASM_MMX) && defined(ARCH_X86) /* MMX-optimized routine, intended for PMMX/PII processors. * Nonstandard instructions used: * (CPUID.MMX) MOVQ */ #if defined(__sun) /* TODO: sun version not updated to latest transcode/aclib/memcpy.c version */ void *memcpy_mmx(void *dest, const void *src, size_t bytes) { asm("\ #PENTIUM_LINE_SIZE = 32 # PMMX/PII cache line size \n\ #PENTIUM_CACHE_SIZE = 8192 # PMMX/PII total cache size \n\ # Use only half because writes may touch the cache too (PII) \n\ #PENTIUM_CACHE_BLOCK = (PENTIUM_CACHE_SIZE/2 - PENTIUM_LINE_SIZE) \n\ \n\ push %%ebx # Save PIC register \n\ push %%edi # Save destination for return value \n\ cld # MOVS* should ascend \n\ \n\ mov $64, %%ebx # Constant \n\ \n\ cmp %%ebx, %%ecx \n\ jb mmx.memcpy_last # Just use movs if <64 bytes \n\ \n\ # First align destination address to a multiple of 8 bytes \n\ mov $8, %%eax # EAX <- (8-dest) & 7 \n\ sub %%edi, %%eax \n\ and $0b111, %%eax # ... which is the number of bytes to copy\n\ lea 0f, %%edx # Use a computed jump--faster than a loop\n\ sub %%eax, %%edx \n\ jmp *%%edx # Execute 0-7 MOVSB's \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ 0: sub %%eax, %%ecx # Update count \n\ \n\ # Now copy data in blocks \n\ 0: mov %%ecx, %%edx # EDX <- ECX >> 6 (cache lines to copy) \n\ shr $6, %%edx \n\ jz mmx.memcpy_last # <64 bytes left? Skip to end \n\ cmp 63, %%edx # Solaris x86 fix \n\ jb 1f # Limit size of block \n\ mov 63, %%edx # Solaris x86 fix \n\ 1: mov %%edx, %%eax # EAX <- EDX << 6 (bytes to copy) \n\ shl $6, %%eax \n\ sub %%eax, %%ecx # Update remaining count \n\ add %%eax, %%esi # Point to end of region to be block-copied\n\ 2: test %%eax, -32(%%esi) # Touch each cache line in reverse order\n\ test %%eax, -64(%%esi) \n\ sub %%ebx, %%esi # Update pointer \n\ sub %%ebx, %%eax # And loop \n\ jnz 2b \n\ # Note that ESI now points to the beginning of the block \n\ 3: movq (%%esi), %%mm0 # Do the actual copy, 64 bytes at a time\n\ movq 8(%%esi), %%mm1 \n\ movq 16(%%esi), %%mm2 \n\ movq 24(%%esi), %%mm3 \n\ movq 32(%%esi), %%mm4 \n\ movq 40(%%esi), %%mm5 \n\ movq 48(%%esi), %%mm6 \n\ movq 56(%%esi), %%mm7 \n\ movq %%mm0, (%%edi) \n\ movq %%mm1, 8(%%edi) \n\ movq %%mm2, 16(%%edi) \n\ movq %%mm3, 24(%%edi) \n\ movq %%mm4, 32(%%edi) \n\ movq %%mm5, 40(%%edi) \n\ movq %%mm6, 48(%%edi) \n\ movq %%mm7, 56(%%edi) \n\ add %%ebx, %%esi # Update pointers \n\ add %%ebx, %%edi \n\ dec %%edx # And loop \n\ jnz 3b \n\ jmp 0b \n\ \n\ mmx.memcpy_last: \n\ # Copy last <64 bytes, using the computed jump trick \n\ mov %%ecx, %%eax # EAX <- ECX>>2 \n\ shr $2, %%eax \n\ lea 0f, %%edx \n\ sub %%eax, %%edx \n\ jmp *%%edx # Execute 0-15 MOVSD's \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ 0: and $0b11, %%ecx # ECX <- ECX & 3 \n\ lea 0f, %%edx \n\ sub %%ecx, %%edx \n\ jmp *%%edx # Execute 0-3 MOVSB's \n\ movsb \n\ movsb \n\ movsb \n\ 0: \n\ # All done! \n\ emms # Clean up MMX state \n\ pop %%edi # Restore destination (return value) \n\ pop %%ebx # Restore PIC register \n\ " : /* no outputs */ : "D" (dest), "S" (src), "c" (bytes) : "%eax", "%edx" ); return dest; } #else static void *memcpy_mmx(void *dest, const void *src, size_t bytes) { asm("\ PENTIUM_LINE_SIZE = 32 # PMMX/PII cache line size \n\ PENTIUM_CACHE_SIZE = 8192 # PMMX/PII total cache size \n\ # Use only half because writes may touch the cache too (PII) \n\ PENTIUM_CACHE_BLOCK = (PENTIUM_CACHE_SIZE/2 - PENTIUM_LINE_SIZE) \n\ \n\ push %%ebx # Save PIC register \n\ push %%edi # Save destination for return value \n\ cld # MOVS* should ascend \n\ \n\ mov $64, %%ebx # Constant \n\ \n\ cmp %%ebx, %%ecx \n\ jb mmx.memcpy_last # Just use movs if <64 bytes \n\ \n\ # First align destination address to a multiple of 8 bytes \n\ mov $8, %%eax # EAX <- (8-dest) & 7 \n\ sub %%edi, %%eax \n\ and $7, %%eax # ... which is the number of bytes to copy\n\ lea 0f, %%edx # Use a computed jump--faster than a loop\n\ sub %%eax, %%edx \n\ jmp *%%edx # Execute 0-7 MOVSB's \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ 0: sub %%eax, %%ecx # Update count \n\ \n\ # Now copy data in blocks \n\ 0: mov %%ecx, %%edx # EDX <- ECX >> 6 (cache lines to copy) \n\ shr $6, %%edx \n\ jz mmx.memcpy_last # <64 bytes left? Skip to end \n\ cmp $PENTIUM_CACHE_BLOCK/64, %%edx \n\ jb 1f # Limit size of block \n\ mov $PENTIUM_CACHE_BLOCK/64, %%edx \n\ 1: mov %%edx, %%eax # EAX <- EDX << 6 (bytes to copy) \n\ shl $6, %%eax \n\ sub %%eax, %%ecx # Update remaining count \n\ add %%eax, %%esi # Point to end of region to be block-copied\n\ 2: test %%eax, -32(%%esi) # Touch each cache line in reverse order\n\ test %%eax, -64(%%esi) \n\ sub %%ebx, %%esi # Update pointer \n\ sub %%ebx, %%eax # And loop \n\ jnz 2b \n\ # Note that ESI now points to the beginning of the block \n\ 3: movq (%%esi), %%mm0 # Do the actual copy, 64 bytes at a time\n\ movq 8(%%esi), %%mm1 \n\ movq 16(%%esi), %%mm2 \n\ movq 24(%%esi), %%mm3 \n\ movq 32(%%esi), %%mm4 \n\ movq 40(%%esi), %%mm5 \n\ movq 48(%%esi), %%mm6 \n\ movq 56(%%esi), %%mm7 \n\ movq %%mm0, (%%edi) \n\ movq %%mm1, 8(%%edi) \n\ movq %%mm2, 16(%%edi) \n\ movq %%mm3, 24(%%edi) \n\ movq %%mm4, 32(%%edi) \n\ movq %%mm5, 40(%%edi) \n\ movq %%mm6, 48(%%edi) \n\ movq %%mm7, 56(%%edi) \n\ add %%ebx, %%esi # Update pointers \n\ add %%ebx, %%edi \n\ dec %%edx # And loop \n\ jnz 3b \n\ jmp 0b \n\ \n\ mmx.memcpy_last: \n\ # Copy last <64 bytes, using the computed jump trick \n\ mov %%ecx, %%eax # EAX <- ECX>>2 \n\ shr $2, %%eax \n\ lea 0f, %%edx \n\ sub %%eax, %%edx \n\ jmp *%%edx # Execute 0-15 MOVSD's \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ 0: and $3, %%ecx # ECX <- ECX & 3 \n\ lea 0f, %%edx \n\ sub %%ecx, %%edx \n\ jmp *%%edx # Execute 0-3 MOVSB's \n\ movsb \n\ movsb \n\ movsb \n\ 0: \n\ # All done! \n\ emms # Clean up MMX state \n\ pop %%edi # Restore destination (return value) \n\ pop %%ebx # Restore PIC register \n\ " : /* no outputs */ : "D" (dest), "S" (src), "c" (bytes) : "%eax", "%edx" ); return dest; } #endif /* __sun */ #endif /* HAVE_ASM_MMX && ARCH_X86 */ /*************************************************************************/ #if defined(HAVE_ASM_SSE) && defined(ARCH_X86) /* SSE-optimized routine. Backported from AMD64 routine below. * Nonstandard instructions used: * (CPUID.CMOVE) CMOVA * (CPUID.MMX) MOVQ * (CPUID.SSE) MOVNTQ */ static void *memcpy_sse(void *dest, const void *src, size_t bytes) { asm("\ push %%ebx # Save PIC register \n\ push %%edi # Save destination for return value \n\ cld # MOVS* should ascend \n\ \n\ cmp $64, %%ecx # Skip block copy for small blocks \n\ jb sse.memcpy_last \n\ \n\ mov $128, %%ebx # Constant used later \n\ \n\ # First align destination address to a multiple of 8 bytes \n\ mov $8, %%eax # EAX <- (8-dest) & 7 \n\ sub %%edi, %%eax \n\ and $7, %%eax # ... which is the number of bytes to copy\n\ lea 0f, %%edx # Use a computed jump--faster than a loop\n\ sub %%eax, %%edx \n\ jmp *%%edx # Execute 0-7 MOVSB's \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ 0: sub %%eax, %%ecx # Update count \n\ \n\ cmp $0x10040, %%ecx # Is this a large block? (0x10040 is an \n\ # arbitrary value where prefetching and \n\ # write combining seem to start becoming\n\ # faster) \n\ jae sse.memcpy_bp # Yup, use prefetch copy \n\ \n\ sse.memcpy_small: # Small block copy routine--no prefetch \n" #if 0 " mov %%ecx, %%edx # EDX <- bytes to copy / 8 \n\ shr $3, %%edx \n\ mov %%edx, %%eax # Leave remainder in ECX for later \n\ shl $3, %%eax \n\ sub %%eax, %%ecx \n\ .p2align 4 \n\ 0: movq (%%esi), %%mm0 # Copy 8 bytes of data \n\ movq %%mm0, (%%edi) \n\ add $8, %%esi # Update pointers \n\ add $8, %%edi \n\ dec %%edx # And loop \n\ jg 0b \n\ jmp sse.memcpy_last # Copy any remaining bytes \n\ \n\ nop # Align loops below \n" #else " # It appears that a simple rep movs is faster than cleverness \n\ # with movq... \n\ mov %%ecx, %%edx # EDX <- ECX & 3 \n\ and $3, %%edx \n\ shr $2, %%ecx # ECX <- ECX >> 2 \n\ rep movsl # Copy away! \n\ mov %%edx, %%ecx # Take care of last 0-3 bytes \n\ rep movsb \n\ jmp sse.memcpy_end # And exit \n\ \n\ .p2align 4 \n\ nop \n\ nop \n" #endif "sse.memcpy_bp: # Block prefetch copy routine \n\ 0: mov %%ecx, %%edx # EDX: temp counter \n\ shr $6, %%edx # Divide by cache line size (64 bytes) \n\ cmp %%ebx, %%edx # ... and cap at 128 (8192 bytes) \n\ cmova %%ebx, %%edx \n\ shl $3, %%edx # EDX <- cache lines to copy * 8 \n\ mov %%edx, %%eax # EAX <- cache lines to preload * 8 \n\ # (also used as memory offset) \n\ 1: test %%eax, -64(%%esi,%%eax,8) # Preload cache lines in pairs \n\ test %%eax, -128(%%esi,%%eax,8) # (going backwards) \n\ # (note that test %%eax,... seems to be faster than prefetchnta \n\ # on x86) \n\ sub $16, %%eax # And loop \n\ jg 1b \n\ \n\ # Then copy--forward, which seems to be faster than reverse for \n\ # certain alignments \n\ xor %%eax, %%eax \n\ 2: movq (%%esi,%%eax,8), %%mm0 # Copy 8 bytes and loop \n\ movntq %%mm0, (%%edi,%%eax,8) \n\ inc %%eax \n\ cmp %%edx, %%eax \n\ jb 2b \n\ \n\ # Finally, update pointers and count, and loop \n\ shl $3, %%edx # EDX <- bytes copied \n\ add %%edx, %%esi \n\ add %%edx, %%edi \n\ sub %%edx, %%ecx \n\ cmp $64, %%ecx # At least one cache line left? \n\ jae 0b # Yup, loop \n\ \n\ sse.memcpy_last: \n\ # Copy last <64 bytes, using the computed jump trick \n\ mov %%ecx, %%eax # EAX <- ECX>>2 \n\ shr $2, %%eax \n\ lea 0f, %%edx \n\ sub %%eax, %%edx \n\ jmp *%%edx # Execute 0-15 MOVSD's \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ movsd \n\ 0: and $3, %%ecx # ECX <- ECX & 3 \n\ lea sse.memcpy_end, %%edx \n\ sub %%ecx, %%edx \n\ jmp *%%edx # Execute 0-3 MOVSB's \n\ movsb \n\ movsb \n\ movsb \n\ \n\ sse.memcpy_end: \n\ # All done! \n\ emms # Clean up after MMX instructions \n\ sfence # Flush the write buffer \n\ pop %%edi # Restore destination (return value) \n\ pop %%ebx # Restore PIC register \n\ " : /* no outputs */ : "D" (dest), "S" (src), "c" (bytes) : "%eax", "%edx" ); return dest; } #endif /* HAVE_ASM_SSE && ARCH_X86 */ /*************************************************************************/ #if defined(HAVE_ASM_SSE2) && defined(ARCH_X86_64) /* AMD64-optimized routine, using SSE2. Derived from AMD64 optimization * guide section 5.13: Appropriate Memory Copying Routines. * Nonstandard instructions used: * (CPUID.CMOVE) CMOVA * (CPUID.SSE2) MOVDQA, MOVDQU, MOVNTDQ * * Note that this routine will also run more or less as-is (modulo register * names and label(%%rip) references) on x86 CPUs, but tests have shown the * SSE1 version above to be faster. */ /* The block copying code--macroized because we use two versions of it * depending on whether the source is 16-byte-aligned or not. Pass either * movdqa or movdqu (unquoted) for the parameter. */ #define AMD64_BLOCK_MEMCPY(movdq) \ " # First prefetch (note that if we end on an odd number of cache \n\ # lines, we skip prefetching the last one--faster that way than \n\ # prefetching line by line or treating it as a special case) \n\ 0: mov %%ecx, %%edx # EDX: temp counter (always <32 bits) \n\ shr $6, %%edx # Divide by cache line size (64 bytes) \n\ cmp %%ebx, %%edx # ... and cap at 128 (8192 bytes) \n\ cmova %%ebx, %%edx \n\ shl $3, %%edx # EDX <- cache lines to copy * 8 \n\ mov %%edx, %%eax # EAX <- cache lines to preload * 8 \n\ # (also used as memory offset) \n\ 1: prefetchnta -64(%%rsi,%%rax,8) # Preload cache lines in pairs \n\ prefetchnta -128(%%rsi,%%rax,8) # (going backwards) \n\ sub $16, %%eax # And loop \n\ jg 1b \n\ \n\ # Then copy--forward, which seems to be faster than reverse for \n\ # certain alignments \n\ xor %%eax, %%eax \n\ 2: " #movdq " (%%rsi,%%rax,8), %%xmm0 # Copy 16 bytes and loop \n\ movntdq %%xmm0, (%%rdi,%%rax,8) \n\ add $2, %%eax \n\ cmp %%edx, %%eax \n\ jb 2b \n\ \n\ # Finally, update pointers and count, and loop \n\ shl $3, %%edx # EDX <- bytes copied \n\ add %%rdx, %%rsi \n\ add %%rdx, %%rdi \n\ sub %%rdx, %%rcx \n\ cmp $64, %%rcx # At least one cache line left? \n\ jae 0b # Yup, loop \n" static void *memcpy_amd64(void *dest, const void *src, size_t bytes) { asm("\ push %%rdi # Save destination for return value \n\ cld # MOVS* should ascend \n\ \n\ cmp $64, %%rcx # Skip block copy for small blocks \n\ jb amd64.memcpy_last \n\ \n\ mov $128, %%ebx # Constant used later \n\ \n\ # First align destination address to a multiple of 16 bytes \n\ mov $8, %%eax # EAX <- (8-dest) & 7 \n\ sub %%edi, %%eax # (we don't care about the top 32 bits) \n\ and $7, %%eax # ... which is the number of bytes to copy\n\ lea 0f(%%rip), %%rdx # Use a computed jump--faster than a loop\n\ sub %%rax, %%rdx \n\ jmp *%%rdx # Execute 0-7 MOVSB's \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ 0: sub %%rax, %%rcx # Update count \n\ test $8, %%edi # Is destination not 16-byte aligned? \n\ je 1f \n\ movsq # Then move 8 bytes to align it \n\ sub $8, %%rcx \n\ \n\ 1: cmp $0x38000, %%rcx # Is this a large block? (0x38000 is an \n\ # arbitrary value where prefetching and \n\ # write combining seem to start becoming\n\ # faster) \n\ jb amd64.memcpy_small # Nope, use small copy (no prefetch/WC) \n\ test $15, %%esi # Is source also 16-byte aligned? \n\ # (use ESI to save a REX prefix byte) \n\ jnz amd64.memcpy_normal_bp # Nope, use slow copy \n\ jmp amd64.memcpy_fast_bp # Yup, use fast copy \n\ \n\ amd64.memcpy_small: # Small block copy routine--no prefetch \n\ mov %%ecx, %%edx # EDX <- bytes to copy / 16 \n\ shr $4, %%edx # (count known to fit in 32 bits) \n\ mov %%edx, %%eax # Leave remainder in ECX for later \n\ shl $4, %%eax \n\ sub %%eax, %%ecx \n\ .p2align 4 \n\ 0: movdqu (%%rsi), %%xmm0 # Copy 16 bytes of data \n\ movdqa %%xmm0, (%%rdi) \n\ add $16, %%rsi # Update pointers \n\ add $16, %%rdi \n\ dec %%edx # And loop \n\ jnz 0b \n\ jmp amd64.memcpy_last # Copy any remaining bytes \n\ \n\ .p2align 4 \n\ nop \n\ nop \n\ amd64.memcpy_fast_bp: # Fast block prefetch loop \n" AMD64_BLOCK_MEMCPY(movdqa) " jmp amd64.memcpy_last # Copy any remaining bytes \n\ \n\ .p2align 4 \n\ nop \n\ nop \n\ amd64.memcpy_normal_bp: # Normal (unaligned) block prefetch loop\n" AMD64_BLOCK_MEMCPY(movdqu) " \n\ amd64.memcpy_last: \n\ # Copy last <64 bytes, using the computed jump trick \n\ mov %%ecx, %%eax # EAX <- ECX>>3 \n\ shr $3, %%eax \n\ lea 0f(%%rip), %%rdx \n\ add %%eax, %%eax # Watch out, MOVSQ is 2 bytes! \n\ sub %%rax, %%rdx \n\ jmp *%%rdx # Execute 0-7 MOVSQ's \n\ movsq \n\ movsq \n\ movsq \n\ movsq \n\ movsq \n\ movsq \n\ movsq \n\ 0: and $7, %%ecx # ECX <- ECX & 7 \n\ lea 0f(%%rip), %%rdx \n\ sub %%rcx, %%rdx \n\ jmp *%%rdx # Execute 0-7 MOVSB's \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ movsb \n\ 0: \n\ # All done! \n\ emms # Clean up after MMX instructions \n\ sfence # Flush the write buffer \n\ pop %%rdi # Restore destination (return value) \n\ " : /* no outputs */ : "D" (dest), "S" (src), "c" (bytes) : "%rax", "%rbx", "%rdx" ); return dest; } #endif /* HAVE_ASM_SSE2 && ARCH_X86_64 */ /*************************************************************************/ /* Are _all_ of the given acceleration flags (`test') available? */ #define HAS_ACCEL(accel,test) (((accel) & (test)) == (test)) /* Initialization routine. */ void tc_memcpy_init(int verbose, int accel) { const char * method = "libc-memmove"; tc_memcpy = memmove; #if defined(HAVE_ASM_MMX) && defined(ARCH_X86) if (HAS_ACCEL(accel, MM_MMX)) { method = "mmx"; tc_memcpy = memcpy_mmx; } #endif #if defined(HAVE_ASM_SSE) && defined(ARCH_X86) if (HAS_ACCEL(accel, MM_CMOVE|MM_SSE)) { method = "sse"; tc_memcpy = memcpy_sse; } #endif #if defined(HAVE_ASM_SSE2) && defined(ARCH_X86_64) if (HAS_ACCEL(accel, MM_CMOVE|MM_SSE2)) { method = "amd64"; tc_memcpy = memcpy_amd64; } #endif if(verbose) fprintf(stderr, "tc_memcpy: using %s for memcpy\n", method); } /*************************************************************************/ /* * Local variables: * c-file-style: "stroustrup" * c-file-offsets: ((case-label . *) (statement-case-intro . *)) * indent-tabs-mode: nil * End: * * vim: expandtab shiftwidth=4: */ dvd95/src/uitools.c000066400000000000000000000117531140003301000144270ustar00rootroot00000000000000/*============================================================================== FICHIER : [uitools.c] DATE : 2005/12/0018 21:41:11 CREATEUR : [Linux!jef] COMMENTAIRE : Released under GPL license, see gnu.org ================================================================================ ==============================================================================*/ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "interface.h" #include "support.h" #include "globals.h" #include "gconfig.h" #include "systools.h" /*@$#[uitools.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:22:50 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* uitools.c */ static int PlaySound PROTO((char *file)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ /*------------------------------------------------------------------------------ PLAYSOUND- Linux!jef 2007/08/09 22:46:33 ------------------------------------------------------------------------------*/ static int PlaySound( char * file ) { if( FileExist( file ) ) { // fprintf(stderr,"Playing(%s)\n", file ); gnome_sound_play( file ); return( 1 ); } return( 0 ); } /*------------------------------------------------------------------------------ PLAYSUCCESS- Linux!jef 2006/02/28 22:01:51 ------------------------------------------------------------------------------*/ void PlaySuccess() { if( ConfigGetInt( KEY_SOUND, 0 ) ) { if( PlaySound("/usr/share/sounds/k3b_success1.wav" ) ) return; PlaySound( "/usr/share/sounds/info.wav" ); } } /*------------------------------------------------------------------------------ PLAYERROR- Linux!jef 2006/02/28 22:02:12 ------------------------------------------------------------------------------*/ void PlayError() { if( ConfigGetInt( KEY_SOUND, 0 ) ) { if( PlaySound( "/usr/share/sounds/k3b_error1.wav" ) ) return; PlaySound( "/usr/share/sounds/error.wav" ); } } /*------------------------------------------------------------------------------ MESSAGEBOX- Linux!jef 2006/09/29 23:29:41 ------------------------------------------------------------------------------*/ int MessageBoxError( char * format, ... ) { char message[4096]; va_list args; GtkWidget * mbox; va_start( args, format ); vsnprintf( message, sizeof(message), format, args ); va_end( args ); mbox = gtk_message_dialog_new( GTK_WINDOW(MainDlg), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, (const gchar *)message ); gtk_dialog_run( GTK_DIALOG( mbox ) ); gtk_widget_destroy( GTK_WIDGET( mbox ) ); return( 0 ); } /*------------------------------------------------------------------------------ MESSAGEBOXYESNO- Linux!jef 2006/09/29 23:29:41 ------------------------------------------------------------------------------*/ int MessageBoxYesNo( char * format, ... ) { char message[4096]; va_list args; GtkWidget * mbox; gint b; va_start( args, format ); vsnprintf( message, sizeof(message), format, args ); va_end( args ); mbox = gtk_message_dialog_new( GTK_WINDOW(MainDlg), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, (const gchar *)message ); b = gtk_dialog_run( GTK_DIALOG( mbox ) ); gtk_widget_destroy( GTK_WIDGET( mbox ) ); if( b == GTK_RESPONSE_YES ) return( 1 ); return( 0 ); } /*------------------------------------------------------------------------------ CHOIXFICHIERISO- Linux!jef 2007/01/21 22:42:12 ------------------------------------------------------------------------------*/ int ChoixFichierIso( char * fileName ) { GtkWidget * fc; int res = -1; *fileName = 0; fc = create_ChoixFichier(); if( fc ) { GtkFileFilter * fi = gtk_file_filter_new(); gtk_file_filter_set_name( fi, _("Fichiers ISO") ); gtk_file_filter_add_pattern( fi, "*.iso" ); gtk_file_filter_add_pattern( fi, "*.ISO" ); gtk_file_chooser_add_filter( GTK_FILE_CHOOSER(fc), fi ); if( gtk_dialog_run (GTK_DIALOG(fc)) == GTK_RESPONSE_OK) { char *filename; filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER(fc)); strcpy( fileName, filename ); g_free (filename); res = 0; } gtk_widget_destroy( fc ); } return( res ); } /*------------------------------------------------------------------------------ GTKFLUSH- Linux!jef 2007/01/21 23:24:49 ------------------------------------------------------------------------------*/ void GtkFlush() { while( gtk_events_pending() ) gtk_main_iteration(); } /*------------------------------------------------------------------------------ HMD2STRING- Linux!jef 2007/01/23 00:36:37 ------------------------------------------------------------------------------*/ void HMS2String( int h, int m, int s, char * string ) { *string = 0; if( h ) { sprintf( string, "%d h ", h ); string += strlen( string ); } if( m ) { if( s ) sprintf( string, "%d m %d s", m, s ); else sprintf( string, "%d m", m ); return; } if( h ) sprintf( string, "0 m %d s", s ); else sprintf( string, "%d s", s ); } dvd95/src/uitools.h000066400000000000000000000017111140003301000144250ustar00rootroot00000000000000/*============================================================================== FICHIER : [uitools.h] DATE : 2005/12/0018 21:43:16 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __UITOOLS_H__ #define __UITOOLS_H__ /*@$#[uitools.c] global proto. AutoProtoSigV1.1. date: 2009/02/04 23:23:02 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* uitools.c */ void PlaySuccess PROTO((void)); void PlayError PROTO((void)); int MessageBoxError PROTO((char *format, ...)); int MessageBoxYesNo PROTO((char *format, ...)); int ChoixFichierIso PROTO((char *fileName)); void GtkFlush PROTO((void)); void HMS2String PROTO((int h, int m, int s, char *string)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ #endif /* __UITOOLS_H__ */ dvd95/src/unused.c000066400000000000000000000361161140003301000142340ustar00rootroot00000000000000/*============================================================================== FICHIER : [unused.c] DATE : 2006/02/0022 22:06:17 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ Fonction que je n'utilise plus ==============================================================================*/ static int Ac3State; /*------------------------------------------------------------------------------ CPUQUALITY- Linux!jef 2005/12/05 21:47:40 ------------------------------------------------------------------------------*/ int CpuQuality( GtkWidget * forme, int noPisteVideo, int noPisteAudio, int subTitleF, double * pFactor ) { int chapitre; char * device = ConfigGetString( KEY_DEVICE, "/dev/dvd" ); char * tmpDir = ConfigGetString( KEY_TEMP, "/tmp" ); pgcit_t *vts_pgcit; vtsi_mat_t *vtsi_mat; vmgi_mat_t *vmgi_mat; video_attr_t *video_attr; int title_set_nr; int vts_ttn; pgc_t *pgc; char sysCmd[1024]; int res = 0; char audioFormat[10]; long long vobSize = 0; long long videoSize = 0; long long audioSize = 0; struct stat bstat; Tampon * tampon; TStream * stream; TStream * racine; char fName[256]; TCbArray cbArray; long long size; long long fsize; char mp2Video[512]; char mp2Audio[512]; char vobFile[512]; int estimatedSectors; vtsi_mat = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vtsi_mat; vts_pgcit = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vts_pgcit; video_attr = &vtsi_mat->vts_video_attr; vts_ttn = Ifo_zero->tt_srpt->title[noPisteVideo].vts_ttn; vmgi_mat = Ifo_zero->vmgi_mat; title_set_nr = Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr; pgc = vts_pgcit->pgci_srp[Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].ptt[0].pgcn - 1].pgc; chapitre = ((pgc->nr_of_programs + 1) / 2) + 1; if( pgc->nr_of_programs == 1 ) chapitre = 1; DBG('c',fprintf(stderr,"Chapitre de test: %d\n", chapitre );); *pFactor = 1; size = GetSector( chapitre, pgc ) * SECTOR_SIZE; fsize = FsFree( tmpDir ) - size; if( fsize < 0 ) { Alerte( 0, _("Pas assez de place sur %s\nIl manque %lld octets !"), tmpDir, -fsize ); return( -1 ); } /*TODO:*/ strcpy( audioFormat,"ac3" ); sprintf( mp2Video,"%s/cfile.m2v", tmpDir ); sprintf( mp2Audio,"%s/cfile.%s", tmpDir, audioFormat ); sprintf( vobFile,"%s/cfile.vob", tmpDir ); sprintf( sysCmd, "tccat -i %s -T %d,%d ", device, noPisteVideo+1, chapitre ); tampon = CreateTampon( sysCmd ); if( !tampon ) { Alerte( 0, _("Création du tampon impossible") ); res = -1; goto out; } estimatedSectors = GetSector( chapitre, pgc ); Ac3State = 0; cbArray.nCb = 1; cbArray.callBack[0] = Avancement; racine = StreamAddSon( tampon->stream, NULL, &cbArray, NULL ); sprintf( sysCmd, "tcextract -t vob -x mpeg2" ); stream = StreamAddSon( racine, sysCmd, NULL, mp2Video ); sprintf( sysCmd, "tcextract -t vob -x %s -a %d", audioFormat, noPisteAudio ); stream = StreamAddBrother( stream, sysCmd, NULL, NULL ); /* Add the AC3 Filter */ cbArray.nCb = 1; cbArray.callBack[0] = Ac3Filter; sprintf( fName, "/tmp/cfile.%s", audioFormat ); stream = StreamAddSon( stream, NULL, &cbArray, mp2Audio ); CreateAvancement( forme ); InitAvancement( estimatedSectors ); size = estimatedSectors * SECTOR_SIZE; DisplayAvancement(_("Analyse du chapitre %d\nTaille %s\nPiste audio: %d\nFormat audio: %s\n"), chapitre, LLSize2Giga( size ), noPisteAudio+1, audioFormat ); TamponRun( tampon, AvancementUi ); TamponDestroy( tampon ); if( UserStopF ) { DestroyAvancement(); res = -1; goto out; } /* Le multiplexage ne peut etre pipeer because on a besoint des fichiers intermediaires */ DisplayAvancement( _("\n\nMultiplexage en cours\nPatientez........\n") ); /* Multiplex the streams to obtain a vob file */ sprintf( sysCmd,"mplex -f 8 -S 0 -M -o %s %s %s", vobFile, mp2Video, mp2Audio ); system( sysCmd ); if( !stat( vobFile, &bstat ) ) { vobSize = bstat.st_size; DBG('c',fprintf(stderr,"VOBSIZE: %lld\n", vobSize );); } if( !stat( mp2Video, &bstat ) ) { videoSize = bstat.st_size; DBG('c',fprintf(stderr,"VIDEOSIZE: %lld\n", videoSize );); } if( !stat( mp2Audio, &bstat ) ) { audioSize = bstat.st_size; DBG('c',fprintf(stderr,"AUDIOSIZE: %lld\n", audioSize );); } if( (videoSize + audioSize ) > 0 ) { double dCor = (double)vobSize / ((double)videoSize + (double)audioSize); long long totalSectors = 0; long long chapitreSectors; long long menuSize = 0; double dFactor; long long dvdBytes = GetWantedBytes(); totalSectors = GetSector( -1, pgc ); chapitreSectors = GetSector( chapitre, pgc ); if( IsToggleSet(forme,"UseMenu" )) menuSize = GetMenuSize(); DBG('c',fprintf( stderr, "totalSectors: %lld chapitreSectors: %lld\n", totalSectors, chapitreSectors );); /* Estimation total */ videoSize = ( videoSize * (long long) totalSectors) / (long long) chapitreSectors; DBG('c',fprintf(stderr,"ESTIMATED TOTAL VIDEOSIZE: %lld\n", videoSize );); audioSize = ( audioSize * (long long) totalSectors ) / (long long) chapitreSectors; DBG('c',fprintf(stderr,"ESTIMATED TOTAL AUDIOSIZE: %lld\n", audioSize );); DBG('c',fprintf(stderr,"MENUSIZE: %lld\n", menuSize );); dFactor = (double)videoSize / (double)( dvdBytes - audioSize - menuSize ); DBG('c',fprintf(stderr,"Facteur de correction mplex: %f dFactor: %f\n", dCor, dFactor);); if( dCor > 0 ) { dFactor = dFactor * dCor; } else { dFactor = dFactor + (dFactor / (double) 100 * (double) 3); // 3 % Reserve } if( subTitleF ) dFactor = dFactor + (dFactor / (double) 100); // 1 % Reserve pour soustitre dFactor = dFactor + (dFactor / (double) 200); // 0.5 % Overhead fuer dvdauthor if (dFactor < 1) dFactor = 1; DBG('c',fprintf(stderr,"Facteur: %f\n", dFactor );); *pFactor = dFactor; } DestroyAvancement(); out:; DBG('c',fprintf(stderr,"CpuQuality: exiting %d\n",res);); unlink( vobFile ); unlink( mp2Video ); unlink( mp2Audio ); return( res ); } /*------------------------------------------------------------------------------ CONVERTDVD- Linux!jef 2005/12/12 22:36:50 ------------------------------------------------------------------------------*/ int ConvertDvd( GtkWidget * forme, int noPisteVideo, int noPisteAudio, int noSubtitle, int useMenuF, double factor ) { char * device = ConfigGetString( KEY_DEVICE, "/dev/dvd" ); char * tmpDir = ConfigGetString( KEY_TEMP, "/tmp" ); char * isoDir = ConfigGetString( KEY_ISODIR, "/tmp" ); pgcit_t *vts_pgcit; vtsi_mat_t *vtsi_mat; vmgi_mat_t *vmgi_mat; video_attr_t *video_attr; int title_set_nr; int vts_ttn; pgc_t *pgc; char sysCmd[10240]; /*KK:*/ int res = 0; char audioFormat[10]; Tampon * tampon; TStream * stream; TStream * racine; char fName[256]; TCbArray cbArray; GtkWidget * item; long long size; char * chapitreStr; long long vobSize; int ret; long long fsize; char pFile[512]; char vobFile[512]; char tmpDvd[512]; int estimatedSectors; const gchar * text; /* Maj du titre du DVD */ item = lookup_widget(GTK_WIDGET(forme), "titre" ); text = gtk_entry_get_text( GTK_ENTRY(item) ); strcpy( TitreDvd, text ); vtsi_mat = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vtsi_mat; vts_pgcit = Ifo[Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr]->vts_pgcit; video_attr = &vtsi_mat->vts_video_attr; vts_ttn = Ifo_zero->tt_srpt->title[noPisteVideo].vts_ttn; vmgi_mat = Ifo_zero->vmgi_mat; title_set_nr = Ifo_zero->tt_srpt->title[noPisteVideo].title_set_nr; pgc = vts_pgcit->pgci_srp[Ifo[title_set_nr]->vts_ptt_srpt->title[vts_ttn - 1].ptt[0].pgcn - 1].pgc; /* Verify we have enought free space to run */ fsize = FsFree( tmpDir ) - GetWorkBytes(); if( fsize < 0 ) { Alerte( 0, _("Pas assez de place sur %s\nIl manque %lld octets !"), tmpDir, -fsize ); return( -1 ); } if( IsToggleSet( forme, "DoIso" ) ) { fsize = FsFree( isoDir ) - GetWantedBytes(); if( fsize < 0 ) { Alerte( 0, _("Pas assez de place sur %s\nIl manque %lld octets !"), isoDir, -fsize ); return( -1 ); } } CreateAvancement( forme ); sprintf( pFile,"%s/palette.txt", tmpDir ); sprintf( vobFile,"%s/ofile.vob", tmpDir ); sprintf( tmpDvd,"%s/dvd95", tmpDir ); SavePalette( noPisteVideo, pFile ); /*TODO:*/ strcpy( audioFormat,"ac3" ); /* Hack for test */ if( !access( "/data/piste1.cat", R_OK ) ) { DBG('c',fprintf(stderr,"Using piste1.cat\n");); sprintf( sysCmd, "cat /data/piste1.cat" ); } else { sprintf( sysCmd, "tccat -i %s -T %d,-1", device, noPisteVideo+1 ); } tampon = CreateTampon( sysCmd ); if( !tampon ) { Alerte( 0, _("Création du tampon impossible") ); res = -1; goto out; } estimatedSectors = GetSector( -1, pgc ); cbArray.nCb = 1; cbArray.callBack[0] = Avancement; racine = StreamAddSon( tampon->stream, NULL, &cbArray, NULL ); if( factor > 1 ) sprintf( sysCmd, "tcextract -t vob -x mpeg2 | tcrequant -f %s", Double2String(factor) ); else sprintf( sysCmd, "tcextract -t vob -x mpeg2" ); stream = StreamAddSon( racine, sysCmd, NULL, "|/tmp/ofile.m2v" ); sprintf( sysCmd, "tcextract -t vob -x %s -a %d", audioFormat, noPisteAudio ); sprintf( fName, "|/tmp/ofile.%s", audioFormat ); stream = StreamAddBrother( stream, sysCmd, NULL, fName ); /* if subtitle selected unmux */ if( noSubtitle != -1 ) { sprintf( sysCmd, "spuunmux -o %s/dvd -s %d -p %s /dev/stdin", tmpDir, noSubtitle, pFile ); stream = StreamAddBrother( stream, sysCmd, NULL, "/dev/null" ); } /* Add multiplexing stage */ sprintf( sysCmd,"mplex -f 8 -S 0 -M -o %s /tmp/ofile.m2v /tmp/ofile.%s", vobFile, audioFormat ); TamponAddStage( tampon, sysCmd ); InitAvancement( estimatedSectors ); size = (long long)estimatedSectors * (long long) SECTOR_SIZE; DisplayAvancement( _("Convertion de la piste video %d\nTaille %s\nPiste audio: %d\nFormat audio: %s\n"), noPisteVideo+1, LLSize2Giga( size ), noPisteAudio+1, audioFormat ); if( noSubtitle != -1 ) { DisplayAvancement( _("Sous titres: %d\n"), noSubtitle + 1 ); } else { DisplayAvancement( _("Sous titres: aucun\n") ); } TamponRun( tampon, AvancementUi ); TamponDestroy( tampon ); if( UserStopF ) { res = -1; goto out; } DisplayAvancement( _("Fin du transcodage.\n") ); vobSize = FileSize64( vobFile ); DBG('c',fprintf(stderr,"VOBSIZE=%lld\n", vobSize );); if( vobSize == 0LL ) { Alerte( 0,_("Fichier vob non creé !") ); res = -1; goto out; } if( vobSize > GetWantedBytes() ) { ret = Alerte( 0,_("Fichier vob trop gros (%lld bytes) !\nDésirez vous continuer ?"), vobSize); if( ret != 1 ) { res = -1; goto out; } } DisplayAvancement( _("Taille du fichier VOB: %s\n"), LLSize2Giga( vobSize ) ); /* Create dvd95 directory */ mkdir( tmpDvd, 0777 ); /* Remove old dump if any */ sprintf( sysCmd,"rm -rf \"%s/%s\"", tmpDvd, TitreDvd ); system( sysCmd ); /* DVDAUTHOR STAGE */ DisplayAvancement( _("Création de la structure du DVD.\n") ); chapitreStr = BuildChapitreString( noPisteVideo ); DBG('c',fprintf(stderr,"Chapitre(%s)\n", chapitreStr );); sprintf( sysCmd,"cat %s", vobFile ); tampon = CreateTampon( sysCmd ); if( !tampon ) { Alerte( 0, _("Création du tampon impossible") ); res = -1; goto out; } SetStreamEndCb( tampon->stream, EndOfInput, _("Finalisation.\nVeuillez patienter..........\n") ); InitAvancement( (int)(vobSize / SECTOR_SIZE) ); cbArray.nCb = 1; cbArray.callBack[0] = Avancement; racine = StreamAddSon( tampon->stream, NULL, &cbArray, NULL ); if( noSubtitle != -1 ) { sprintf( sysCmd,"spumux -m dvd -s 0 %s/dvd.xml", tmpDir ); stream = StreamAddSon( racine, sysCmd, NULL, NULL ); sprintf( sysCmd, "dvdauthor -t -a %s+%s -c %s -v pal+16:9+nopanscan+720x576 -p %s -s %s -o \"%s/%s\" -f -", audioFormat, AudioLang( noPisteVideo, noPisteAudio ), chapitreStr, pFile, SubLang( noPisteVideo, noSubtitle ), tmpDvd, TitreDvd ); stream = StreamAddSon( stream, sysCmd, NULL, "/dev/null" ); } else { sprintf( sysCmd, "dvdauthor -t -a %s+%s -c %s -v pal+16:9+nopanscan+720x576 -p %s -o \"%s/%s\" -f -", audioFormat, AudioLang( noPisteVideo, noPisteAudio ), chapitreStr, pFile, tmpDvd, TitreDvd ); stream = StreamAddSon( racine, sysCmd, NULL, "/dev/null" ); } //!! UserStopF = 0; TamponRun( tampon, AvancementUi ); TamponDestroy( tampon ); if( UserStopF ) { res = -1; goto out; } DisplayAvancement( _("Fin de convertion.\n") ); /* Final stage: add a toc (speedy) */ DisplayAvancement( _("Ajout de la table des matières.\n") ); sprintf( sysCmd,"dvdauthor -T -o \"%s/%s\"", tmpDvd, TitreDvd ); system( sysCmd ); /* OK Ask if the user want to see the movie */ if( IsToggleSet( forme, "ViewResult" ) ) { sprintf( sysCmd, "%s/%s", tmpDvd, TitreDvd ); VisuDvdStruct( sysCmd ); } /* OK Ask if the user want to build the iso image */ if( IsToggleSet( forme, "DoIso" ) ) { DisplayAvancement( _("Construction de l'image ISO.\n") ); sprintf( sysCmd, "mkisofs -dvd-video -V \"%s\" -o \"%s/%s.iso\" \"%s/%s\"", TitreDvd, isoDir, TitreDvd, tmpDvd, TitreDvd ); ExecuteMkIsoFs( sysCmd ); } /* Burn DVD if needed */ if( IsToggleSet( forme, "graver" ) ) { DisplayAvancement( _("Gravage sur DVD.\n") ); sprintf( sysCmd, "eject %s", device ); system( sysCmd ); sprintf( sysCmd,"k3b \"%s/%s/VIDEO_TS\" -videodvd", tmpDvd, TitreDvd ); system( sysCmd ); } out:; DestroyAvancement(); DBG('c',fprintf(stderr,"ConvertDvd: exiting %d\n",res);); unlink( vobFile ); unlink( "/tmp/ofile.m2v" ); unlink( pFile ); /* Remove any dvdauthor files */ sprintf( sysCmd, "rm -f %s/dvd*.png", tmpDir ); system( sysCmd ); sprintf( sysCmd, "rm -f %s/dvd*.xml", tmpDir ); system( sysCmd ); sprintf( sysCmd, "rm -rf \"%s/%s\"", tmpDvd, TitreDvd ); system( sysCmd ); return( res ); } /*------------------------------------------------------------------------------ DOUBLE2STRING- Linux!jef 2005/12/14 22:48:47 PB de locale ------------------------------------------------------------------------------*/ static char * Double2String( d ) double d; { static char v[50]; char * p = v; sprintf( v, "%f" , d ); while( *p ) { if( *p == ',' ) *p = '.'; p++; } return( v ); } /*------------------------------------------------------------------------------ AC3FILTER- Linux!jef 2005/12/08 00:13:12 ------------------------------------------------------------------------------*/ static int Ac3Filter( buffer, pLg ) unsigned char * buffer; int * pLg; { int i; int idx = 0; unsigned char ch; /* Manage ac3 filtering */ if( Ac3State == 2 ) return( 0 ); for( i = 0; i < *pLg; i++ ) { ch = buffer[i]; switch( Ac3State ) { case 0 : if( ch == 0x0b ) { Ac3State = 1; } break; case 1 : if( ch == 0x77 ) { buffer[idx++] = 0x0b; buffer[idx++] = 0x77; Ac3State = 2; } else Ac3State = 0; break; case 2 : buffer[idx++] = ch; break; } } DBG('c',fprintf(stderr,"Ac3Filter: iLg: %d oLg: %d State: %d (%2.2x/%2.2x)\n", *pLg, idx, Ac3State, buffer[0], buffer[1] );); *pLg = idx; return( 0 ); } /*------------------------------------------------------------------------------ ENDOFINPUT- Linux!jef 2006/01/17 21:41:07 ------------------------------------------------------------------------------*/ static void EndOfInput( TStream * stream, void * arg ) { DisplayAvancement( "%s", (char *)arg ); } dvd95/src/vapcontext.h000066400000000000000000000012271140003301000151240ustar00rootroot00000000000000/*==========================[ (c) ALPHA SOFT ]================================== FICHIER : [vapcontext.h] DATE : 2007/08/0022 00:10:39 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __VAPCONTEXT_H__ #define __VAPCONTEXT_H__ typedef struct { int etat; dvd_file_t * file_handle; uint32_t sector; uint32_t dsi_next_vobu; Cell_t * cell; char * targetDir; unsigned char * buf; int bufASize; unsigned char * bufPtr; int bufSize; } VapContext_t; #endif /* __VAPCONTEXT_H__ */ dvd95/src/vaporize.c000066400000000000000000001212571140003301000145710ustar00rootroot00000000000000/*============================================================================== FICHIER : [vaporize.c] DATE : 2006/01/0024 21:38:20 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ // vamps - eVAporate DVD compliant Mpeg2 Program Stream // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. // // // Revision history (latest first): // // 2005/11/06: V0.98: Updated requant module to // latest version from Metakine web site // (http://www.metakine.com/files/M2VRequantiser.tgz). // Since the new version requires the total size of the // unshrinked video elementary stream at start time, the // user *has to* supply the size of the unshrinked PS if // standard input is not redirected from a regular file. // For this purpose the PS-size (-S) option has been added. // Fixed large file support (>2GB). // Introduced preserve option (-p) on user request. If // enabled, the audio and subpicture tracks will keep their // original identifiers. This is required for full DVD // copies, i.e. including control structures, menus, etc. // // 2005/11/02: Fixed support for MPEG audio. Did never work up to now. // Added support for mere padding packets. These actually // should not occur in DVD program streams but they do. At // least mplex *does* spit out such. // // 2004/11/30: V0.97-1: Implemented injection support. This gives us *much* // more reliable results with the targeted size. The // vaporized data size now usually hits within a range of // a few thousand sectors (i.e. <~5MB) only. Don't forget // to remove the injections file with each new disk! // // 2004/11/29: V0.97: Video buffers aren't static any more. This // is needed for streams with multiple adjacent // GOPs not starting on sector boundaries. // // 2004/05/25: V0.96: Now GOPs do not necessarily need to start // on a sector boundary. This gets us rid of // "Bad sequence header code at ...". // // 2003/12/13: V0.95: No more known bugs nor any essential to-dos! // for large file support (>2GB) #define _GNU_SOURCE #define _FILE_OFFSET_BITS 64 #define VAP_VERSION "V0.98" #include #include #include #include #include #include #include #include #include #include #include "ac.h" #include "globals.h" /* Autocorrection du requant */ #define USE_CORRECTION_FACTOR 0 // DVD sector size #define SECT_SIZE 2048 // read buffer size (4MB) #define RBUF_SIZE (0x1000*1024) // write buffer size (4MB) #define WBUF_SIZE (0x1000*1024) // initial video buffer size (1MB) #define VBUF_SIZE (1024*1024) // shortcuts for some frequently used types typedef unsigned char UInt8; typedef unsigned long UInt32; typedef unsigned long long UInt64; // a lot of global data - we really should use C++... UInt8 rbuf [RBUF_SIZE]; // the PS read buffer UInt8 wbuf [WBUF_SIZE]; // the PS write buffer UInt8 *vibuf; // the video ES requant input buffer UInt8 *vobuf; // the video ES requant output buffer UInt8 *rptr = rbuf; // pointer to current char in read buf UInt8 *rhwp = rbuf; // read buffer high water pointer UInt8 *wptr = wbuf; // pointer to first unused char in wbuf UInt64 bytes_read; // total PS bytes read UInt64 bytes_written; // total PS bytes written UInt64 padding_bytes; // total padding bytes written UInt64 vin_bytes; // total unshrinked video ES bytes UInt64 vout_bytes; // total shrinked video ES bytes UInt64 ps_size; // total PS size in bytes int vbuf_size = VBUF_SIZE; // the video ES requant buffers' size int vilen; // current GOP's unshrinked vidES bytes int volen; // current GOP's shrinked vidES bytes int total_packs; // total no. PS packs int video_packs; // no. video packs in PS int skipped_video_packs; // skipped thereof int aux_packs; // no. audio and subpicture packs in PS int skipped_aux_packs; // skipped thereof int sequence_headers; // no. sequence headers (== #GOPs) int nav_packs; // no. nav packs int eof; // end of file flag UInt8 *rqt_rptr; // ptr to cur char in requant read buf UInt8 *rqt_wptr; // ptr to first unused char in rqt wbuf int rqt_rcnt; // no. bytes in requant read buffer int rqt_wcnt; // no. bytes in requant write buffer UInt64 rqt_inbytes; // total bytes fed into requantization UInt64 rqt_outbytes; // total bytes melt from requantization UInt64 rqt_visize; // calc. total unshrinked vidES bytes float rqt_fact; // video ES vaporization factor (>1) int spu_track_map [32]; // subpicture track# translation map int audio_track_map [8]; // audio track# translation map int verbose; // level of verbosity int calc_ps_vap; // calc vaporization based on PS size static int preserve; // preserve audio/spu track numbers float vap_fact = 1.0f; // vaporization factor from cmd line char *injections_file = NULL; // where to inject internal status from const char progname [] = "vamps"; // we're sucking bytes! static int NoAudioTrack; static int NoSubpTrack; static int ( * ReadFun)(); static int ( * WriteFun)(); static void * Parm; static jmp_buf JmpEnv; static int VideoPacketSize; static int AudioPacketSize; static int SubPacketSize; static int NavPacketSize; static long long VideoInputSize; static long long VideoOutputSize; static double RequantCorrectTionFactor = 1; // injections file stuff #define inject_int(v) { sizeof (v), &v, "%d" } #define inject_uint64(v) { sizeof (v), &v, "%llu" } #define N_INJECTIONS (sizeof (injections) / sizeof (*injections)) struct { int s; // variable size const void *p; // variable pointer const char *f; // printf/scanf format } injections [] = { inject_uint64 (bytes_read), inject_uint64 (bytes_written), inject_uint64 (padding_bytes), inject_uint64 (vin_bytes), inject_uint64 (vout_bytes), inject_int (total_packs), inject_int (video_packs), inject_int (skipped_video_packs), inject_int (aux_packs), inject_int (skipped_aux_packs), inject_int (sequence_headers), inject_int (nav_packs) }; // stuff for inter-thread com pthread_cond_t condr = PTHREAD_COND_INITIALIZER; pthread_cond_t condw = PTHREAD_COND_INITIALIZER; pthread_mutex_t mutr = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t mutw = PTHREAD_MUTEX_INITIALIZER; /*@$#[vaporize.c] static proto. AutoProtoSigV1.1. date: 2009/02/04 23:23:32 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif /* vaporize.c */ static void _VarInit PROTO((void)); static void flush PROTO((void)); static void vap_leader PROTO((void)); static void vap_trailer PROTO((int length)); static void vaporize PROTO((float fact)); static void read_injections PROTO((char *filename)); static void write_injections PROTO((char *filename)); static void fatal PROTO((char *fmt, ...)); static void warning PROTO((char *fmt, ...)); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) [-I ../include]*/ // this one lives in requant.c extern void *requant_thread (void *); extern void requant_initvar( void ); extern void requant_factorchange(); /*------------------------------------------------------------------------------ VAPORIZEINIT- Linux!jef 2006/01/24 21:41:53 ------------------------------------------------------------------------------*/ int VaporizeInit( readFun, writeFun, preserveF ) int (* readFun)( void *, unsigned char *, int ); int (* writeFun)( void *, unsigned char *, int ); int preserveF; { memset( spu_track_map, 0, sizeof(spu_track_map)); // subpicture track# translation map memset( audio_track_map, 0, sizeof(audio_track_map)); // audio track# translation map verbose = 0; // level of verbosity calc_ps_vap = 0; // calc vaporization based on PS size vap_fact = 1.0f; // vaporization factor from cmd line NoAudioTrack = 1; NoSubpTrack = 1; preserve = preserveF; VideoPacketSize = 0; AudioPacketSize = 0; SubPacketSize = 0; NavPacketSize = 0; RequantCorrectTionFactor = 1; ReadFun = readFun; WriteFun = writeFun; // allocate video buffers vibuf = malloc( vbuf_size ); vobuf = malloc( vbuf_size ); if( !vibuf || !vobuf ) return( -1 ); return( 0 ); } /*------------------------------------------------------------------------------ _VARINIT- Linux!jef 2006/01/24 23:30:02 ------------------------------------------------------------------------------*/ static void _VarInit() { pthread_mutexattr_t attr; pthread_condattr_t cattr; rptr = rbuf; // pointer to current char in read buf rhwp = rbuf; // read buffer high water pointer wptr = wbuf; // pointer to first unused char in wbuf bytes_read = 0; // total PS bytes read bytes_written = 0; // total PS bytes written padding_bytes = 0; // total padding bytes written vin_bytes = 0; // total unshrinked video ES bytes vout_bytes = 0; // total shrinked video ES bytes vbuf_size = VBUF_SIZE; // the video ES requant buffers' size vilen = 0; // current GOP's unshrinked vidES bytes volen = 0; // current GOP's shrinked vidES bytes total_packs = 0; // total no. PS packs video_packs = 0; // no. video packs in PS skipped_video_packs = 0; // skipped thereof aux_packs = 0; // no. audio and subpicture packs in PS skipped_aux_packs = 0; // skipped thereof sequence_headers = 0; // no. sequence headers (== #GOPs) nav_packs = 0; // no. nav packs eof = 0; // end of file flag rqt_rptr = NULL; // ptr to cur char in requant read buf rqt_wptr = NULL; // ptr to first unused char in rqt wbuf rqt_rcnt = 0; // no. bytes in requant read buffer rqt_wcnt = 0; // no. bytes in requant write buffer rqt_inbytes = 0; // total bytes fed into requantization rqt_outbytes = 0; // total bytes melt from requantization rqt_visize = 0; // calc. total unshrinked vidES bytes rqt_fact = 0; // video ES vaporization factor (>1) verbose = 0; // level of verbosity /*Added */ pthread_condattr_init( &cattr ); pthread_cond_init( &condr, &cattr ); pthread_cond_init( &condw, &cattr ); pthread_mutexattr_init( &attr ); pthread_mutex_init( &mutr, &attr ); pthread_mutex_init( &mutw, &attr ); } /*------------------------------------------------------------------------------ VAPORIZEAUDIO- Linux!jef 2006/01/24 21:47:38 ------------------------------------------------------------------------------*/ int VaporizeAudio( int audioTrack ) { if( audioTrack >= 8 ) return( -1 ); if( preserve ) audio_track_map[audioTrack] = audioTrack +1 ; else audio_track_map[audioTrack] = NoAudioTrack++; return( 0 ); } /*------------------------------------------------------------------------------ VAPORIZESUBP- Linux!jef 2006/01/24 21:47:38 ------------------------------------------------------------------------------*/ int VaporizeSubp( int subpTrack ) { if( subpTrack >= 32 ) return( -1 ); if( preserve ) spu_track_map[subpTrack] = subpTrack + 1; else spu_track_map[subpTrack] = NoSubpTrack++; return( 0 ); } /*------------------------------------------------------------------------------ VAPORIZEFACTOR- Linux!jef 2006/01/24 21:52:48 ------------------------------------------------------------------------------*/ int VaporizeFactor( double factor, int dynF ) { calc_ps_vap = dynF; vap_fact = factor; return( 0 ); } /*------------------------------------------------------------------------------ VAPORIZEINJECTION- Linux!jef 2006/01/24 21:53:46 ------------------------------------------------------------------------------*/ int VaporizeInjection( char * fileName ) { if( injections_file ) { free( injections_file ); } injections_file = strdup( fileName ); unlink( injections_file ); return( 0 ); } /*------------------------------------------------------------------------------ VAPORIZE- Linux!jef 2006/01/24 21:55:17 ------------------------------------------------------------------------------*/ int Vaporize( long long size, void * parm ) { pthread_t thread; int ret; int avail; float fact; DBG('v',fprintf(stderr, "Vaporize: dynF=%d factor=%f\n", calc_ps_vap, vap_fact);); Parm = parm; _VarInit(); requant_initvar(); VideoInputSize = 0; VideoOutputSize = 0; ps_size = size; // read injections file - leaves variables untouched if file not present if( injections_file ) read_injections( injections_file ); // create requantization thread if( pthread_create(&thread, NULL, requant_thread, NULL)) return( -1 ); // Error handle ret = setjmp( JmpEnv ); if( ret ) goto out; ret = 0; fact = vap_fact * RequantCorrectTionFactor; DBG('v',fprintf (stderr, "New Requant factor Corrected: %f\n", fact );); // actually do vaporization vaporize( fact ); // save internal status for adjacent run if( injections_file ) write_injections (injections_file); DBG('v',fprintf (stderr, "Info: Total bytes read: %llu\n", bytes_read);); DBG('v',fprintf (stderr, "Info: Total bytes written: %llu\n", bytes_written);); DBG('v',fprintf (stderr, "Info: Total sequence headers in video stream: %d\n",sequence_headers);); DBG('v',fprintf (stderr, "Info: Total navigation packs (system headers/PCI/DSI): %d\n", nav_packs);); DBG('v',fprintf (stderr, "Info: Total bytes vaporized in audio and subpicture streams: %llu (%.2f%%)\n",(UInt64) skipped_aux_packs * SECT_SIZE,(double) skipped_aux_packs /(double) (bytes_read / SECT_SIZE) * 100.0);); DBG('v',fprintf (stderr, "Info: Total bytes vaporized in video stream: %llu (%.2f%%)\n", (UInt64) skipped_video_packs * SECT_SIZE, (double) skipped_video_packs /(double) (bytes_read / SECT_SIZE) * 100.0);); DBG('v',fprintf (stderr, "Info: Total padding bytes in video stream: %llu (%.2f%%)\n", padding_bytes, (double) padding_bytes / (double) bytes_written * 100.0);); DBG('v',fprintf (stderr, "Info: Total vaporization factor: %.3f\n", (double) bytes_read / (double) bytes_written);); DBG('v',fprintf (stderr, "Info: Average actual video ES vaporization factor: %.3f\n", (double) vin_bytes / (double) vout_bytes);); //fprintf (stderr, // "total_packs=%d, video_packs=%d, aux_packs=%d, nav_packs=%d\n", // total_packs, video_packs, aux_packs, nav_packs); avail = rhwp - rptr; if( avail ) DBG('v',fprintf(stderr,"##BUG: unread char %d\n", avail );); avail = wptr - wbuf; if( avail ) DBG('v',fprintf(stderr,"##BUG; unwrite char %d\n", avail );); /* Compute real video requant factor */ { double realFact = (double)VideoInputSize/(double)VideoOutputSize; #if USE_CORRECTION_FACTOR RequantCorrectTionFactor = fact / realFact; /* Pour ne pas augmenter la qualite demandee */ if( RequantCorrectTionFactor < 1.0 ) RequantCorrectTionFactor = 1.0; #endif DBG('v',fprintf(stderr,"VideoInputSize: %lld VideoOutputSize: %lld wantedFactor: %f realFactor: %f Correction: %f\n", VideoInputSize, VideoOutputSize, fact, realFact, RequantCorrectTionFactor );); } out:; pthread_cancel( thread ); pthread_join( thread, NULL ); return( ret ); } /*------------------------------------------------------------------------------ VAPORIZETERM- Linux!jef 2006/01/24 21:58:46 ------------------------------------------------------------------------------*/ int VaporizeTerm() { if( vibuf ) { free( vibuf ); vibuf = NULL; } if( vobuf ) { free( vobuf ); vobuf = NULL; } if( injections_file ) { unlink( injections_file ); free( injections_file ); injections_file = NULL; } return( 0 ); } /*------------------------------------------------------------------------------ VAPORIZESIZES- Linux!jef 2006/02/01 23:17:09 ------------------------------------------------------------------------------*/ void VaporizeSizes( int * pVideoPacketSize, int * pAudioPacketSize, int * pSubPacketSize, int * pNavPacketSize ) { if( pVideoPacketSize ) *pVideoPacketSize = VideoPacketSize; if( pAudioPacketSize ) *pAudioPacketSize = AudioPacketSize; if( pSubPacketSize) *pSubPacketSize = SubPacketSize; if( pNavPacketSize) *pNavPacketSize = NavPacketSize; } /*------------------------------------------------------------------------------ VAPORIZEPACKS- Linux!jef 2006/02/20 23:04:02 ------------------------------------------------------------------------------*/ void VaporizePacks( int * videoPacks, int * auxPacks ) { /*1.3p1 if( videoPacks ) *videoPacks = video_packs; */ if( videoPacks ) *videoPacks = VideoPacketSize; if( auxPacks) *auxPacks = aux_packs + nav_packs; } #if 0 // analyze track numbers given in cmd line ("x,y,z") static void scan_track_map (int *map, int ntracks) { int i = 1; unsigned track; char *op = optarg; do { track = strtol (op, &op, 10) - 1; if (track >= ntracks) usage (); map [track] = i; } while (i++ <= ntracks && *op++); } #endif // lock `size' bytes in read buffer // i.e. ensure the next `size' input bytes are available in buffer // returns nonzero on EOF static inline int lock (int size) { int avail, n; avail = rhwp - rptr; if (avail >= size) return 0; if (avail) { /* HERE: seem big memcpy */ // fprintf(stderr,"memcpy: %d\n", avail ); tc_memcpy (rbuf, rptr, avail); rptr = rbuf; rhwp = rptr + avail; } n = (* ReadFun)( Parm, rhwp, RBUF_SIZE - avail); if (n % SECT_SIZE) fatal ("Premature EOF"); rhwp += n; bytes_read += n; return !n; } // copy `size' bytes from rbuf to wbuf static inline void copy (int size) { if (!size) return; if ((wptr - wbuf) + size > WBUF_SIZE) fatal ("Write buffer overflow"); memcpy (wptr, rptr, size); rptr += size; wptr += size; } // skip `size' bytes in rbuf static inline void skip (int size) { rptr += size; } // flush wbuf static void flush (void) { int size; size = wptr - wbuf; if (!size) return; if( (* WriteFun)( Parm, wbuf, size) != size) fatal ("write to stdout: %s", strerror (errno)); wptr = wbuf; bytes_written += size; } // returns no. bytes read up to where `ptr' points static inline UInt64 rtell (UInt8 *ptr) { return bytes_read - (rhwp - ptr); } // returns no. bytes written up to where `ptr' points // (including those in buffer which are not actually written yet) static inline UInt64 wtell (UInt8 *ptr) { return bytes_written + (ptr - wbuf); } // some pack header consistency checking static inline int check_pack (UInt8 *ptr) { UInt32 pack_start_code; int pack_stuffing_length; pack_start_code = (UInt32) (ptr [0]) << 24; pack_start_code |= (UInt32) (ptr [1]) << 16; pack_start_code |= (UInt32) (ptr [2]) << 8; pack_start_code |= (UInt32) (ptr [3]); if (pack_start_code != 0x000001ba) { if( pack_start_code == 0 && IgnoreErrors ) { static int _Warn = 0; if( _Warn < 1000 ) { /* Avoid too many trace */ fprintf(stderr, "Bad pack start code at %llu: %08lx\n", rtell (ptr), pack_start_code); _Warn++; } return( -1 ); /* Skip it */ } fatal ("Bad pack start code at %llu: %08lx", rtell (ptr), pack_start_code); } if ((ptr [4] & 0xc0) != 0x40) fatal ("Not an MPEG2 program stream pack at %llu", rtell (ptr)); // we rely on a fixed pack header size of 14 // so better to ensure this is true pack_stuffing_length = ptr [13] & 7; if (pack_stuffing_length) fatal ("Non-zero pack stuffing length at %llu: %d\n", rtell (ptr), pack_stuffing_length); return( 0 ); } // video packet consistency checking static inline int check_video_packet (UInt8 *ptr) { int vid_packet_length, pad_packet_length, rc = 0; UInt32 vid_packet_start_code, pad_packet_start_code, sequence_header_code; vid_packet_start_code = (UInt32) (ptr [0]) << 24; vid_packet_start_code |= (UInt32) (ptr [1]) << 16; vid_packet_start_code |= (UInt32) (ptr [2]) << 8; vid_packet_start_code |= (UInt32) (ptr [3]); if (vid_packet_start_code != 0x000001e0) fatal ("Bad video packet start code at %llu: %08lx", rtell (ptr), vid_packet_start_code); vid_packet_length = ptr [4] << 8; vid_packet_length |= ptr [5]; vid_packet_length += 6; if ((ptr [6] & 0xc0) != 0x80) fatal ("Not an MPEG2 video packet at %llu", rtell (ptr)); if (ptr [7]) { if ((ptr [7] & 0xc0) != 0xc0) fatal ("First video packet in sequence starting at %llu " "misses PTS or DTS, flags=%02x", rtell (ptr), ptr [7]); sequence_header_code = (UInt32) (ptr [6 + 3 + ptr [8] + 0]) << 24; sequence_header_code |= (UInt32) (ptr [6 + 3 + ptr [8] + 1]) << 16; sequence_header_code |= (UInt32) (ptr [6 + 3 + ptr [8] + 2]) << 8; sequence_header_code |= (UInt32) (ptr [6 + 3 + ptr [8] + 3]); if (sequence_header_code == 0x000001b3) { rc = 1; } else { //fprintf (stderr, "Start of GOP at %llu not on sector boundary\n", // rtell (ptr + 6 + 3 + ptr [8])); sequence_headers++; } } /* These errors seems to arrives with some old DVDs but the result is good ! So we just emit a warning instead of an error */ pad_packet_length = 0; if (14 + vid_packet_length < SECT_SIZE - 6) { // video packet does not fill whole sector // check for padding packet ptr += vid_packet_length; pad_packet_start_code = (UInt32) (ptr [0]) << 24; pad_packet_start_code |= (UInt32) (ptr [1]) << 16; pad_packet_start_code |= (UInt32) (ptr [2]) << 8; pad_packet_start_code |= (UInt32) (ptr [3]); pad_packet_length = ptr [4] << 8; pad_packet_length |= ptr [5]; pad_packet_length += 6; if (pad_packet_start_code != 0x000001be) warning("Bad padding packet start code at %llu: %08x vid_packet_length: %d pad_packet_length: %d", rtell(ptr + vid_packet_length), pad_packet_start_code, vid_packet_length, pad_packet_length ); } // length of video packet plus padding packet must always match sector size if( 14 + vid_packet_length + pad_packet_length != SECT_SIZE) warning("Bad video packet length at %llu: vpl=%d ppl=%d", rtell(ptr), vid_packet_length, pad_packet_length ); return rc; } // here we go // this is where we switch to the requantization thread // note that this and the requant thread never run concurrently (apart // from a very short time) so a dual CPU box does not give an advantage // returns size of evaporated GOP static inline int requant (UInt8 *dst, UInt8 *src, int n, float fact) { int rv; // this ensures for the requant thread to stop at this GOP's end memcpy (src + n, "\0\0\1", 3); pthread_mutex_lock (&mutr); rqt_rptr = src; rqt_wptr = dst; rqt_rcnt = n; rqt_wcnt = 0; rqt_fact = fact; rqt_inbytes = vin_bytes; rqt_outbytes = vout_bytes; rqt_visize = (UInt64) ((float) ps_size * (float) vin_bytes / ((float) total_packs * (float) SECT_SIZE)); requant_factorchange(); pthread_cond_signal (&condr); pthread_mutex_unlock (&mutr); // now the requant thread should be running pthread_mutex_lock (&mutw); // wait for requant thread to finish while (!rqt_wcnt) pthread_cond_wait (&condw, &mutw); rv = rqt_wcnt; pthread_mutex_unlock (&mutw); // DBG('v',fprintf (stderr, "Info: Actual video ES vaporization factor: %.3f\n",(double) n / (double) rv);); return rv; } // translate type of private stream 1 packet // according to the track translation maps // returns new track type (e.g. 0x80 for first AC3 audio // track in cmd line) or zero if track is not to be copied static inline int new_private_1_type (UInt8 *ptr) { int type, track, abase; type = ptr [6 + 3 + ptr [8]]; //fprintf (stderr, "type=%02x\n", type); if (type >= 0x20 && type <= 0x3f) { // fprintf(stderr,"sputype: 0x%x\n", type ); // subpicture track = spu_track_map [type - 0x20]; // fprintf(stderr,"Mapping sub 0x%x => 0x%x\n", type, track ? track - 1 + 0x20 : 0 ); return track ? track - 1 + 0x20 : 0; } if (type >= 0x80 && type <= 0x87) { // AC3 audio abase = 0x80; } else if (type >= 0x88 && type <= 0x8f) { // DTS audio abase = 0x88; } else if (type >= 0xa0 && type <= 0xa7) { // LPCM audio abase = 0xa0; } else { fatal ("Unknown private stream 1 type at %llu: %02x", rtell (ptr), type); abase = 0; } track = audio_track_map [type - abase]; // if( track ) fprintf(stderr, "%s: trackId:0x%x => 0x%x\n", __FUNCTION__, type, track -1 + abase ); return track ? track - 1 + abase : 0; } // selectivly copy private stream 1 packs // patches track type to reflect new track // mapping unless user opted to preserve them static inline void copy_private_1 (UInt8 *ptr) { int type; type = new_private_1_type (ptr); if (type) { if( !preserve ) { ptr [6 + 3 + ptr [8]] = type; } // fprintf(stderr,"remap track2: 0x%x\n", ptr [6 + 3 + ptr [8]] ); if( type >= 0x20 && type <= 0x3f ) SubPacketSize++; else AudioPacketSize++; copy(SECT_SIZE); return; } skip (SECT_SIZE); } // translate ID of MPEG audio packet // according to the audio track translation map // returns new ID (e.g. 0xc0 for first MPEG audio // track in cmd line) or zero if track is not to be copied static inline int new_mpeg_audio_id (int id) { int track; track = audio_track_map [id - 0xc0]; // if( track ) fprintf(stderr, "%s: trackId:0x%x => 0x%x\n", __FUNCTION__, id, track -1 + 0xc0 ); return track ? track - 1 + 0xc0 : 0; } // selectivly copy MPEG audio packs // patches ID to reflect new track mapping unless user opted to preserve them static inline void copy_mpeg_audio (UInt8 *ptr) { int id; id = new_mpeg_audio_id (ptr [3]); if (id) { if (!preserve) ptr [3] = id; copy(SECT_SIZE); AudioPacketSize++; return; } skip (SECT_SIZE); } // process beginning of program stream up to // - but not including - first sequence header // this PS leader is NOT shrunk since the PS may not // necessarily begin at a GOP boundary (although it should?) // nevertheless the unwanted private stream 1 and MPEG audio // packs are skipped since some players could get confused otherwise static void vap_leader (void) { UInt8 *ptr; int id, data_length; while (!lock (SECT_SIZE)) { ptr = rptr; if( check_pack( ptr ) < 0 ) continue; ptr += 14; id = ptr [3]; switch (id) { case 0xe0: // video if (check_video_packet (ptr)) // sequence header return; copy(SECT_SIZE); VideoPacketSize++; break; case 0xbd: // private 1: audio/subpicture copy_private_1 (ptr); break; case 0xc0: case 0xc1: case 0xc2: case 0xc3: case 0xc4: case 0xc5: case 0xc6: case 0xc7: // MPEG audio copy_mpeg_audio (ptr); break; case 0xbb: // system header/private 2: PCI/DSI NavPack copy(SECT_SIZE); NavPacketSize++; break; case 0xbe: // padding data_length = ptr [4] << 8; data_length |= ptr [5]; if (14 + data_length != SECT_SIZE - 6) fatal ("Bad padding packet length at %llu: %d", rtell (ptr), data_length); break; default: fatal ("Encountered stream ID %02x at %llu, " "probably bad MPEG2 program stream", id, rtell (ptr)); } if (wptr == wbuf + WBUF_SIZE) flush (); } eof = 1; flush (); return; } // process end of program stream // the same counts here as for the PS' beginning static void vap_trailer (int length) { UInt8 *ptr; int i, id, data_length; for (i = 0; i < length; i += SECT_SIZE) { ptr = rptr + 14; id = ptr [3]; if (id == 0xbd) { // private 1: audio/subpicture copy_private_1 (ptr); } else if (id >= 0xc0 && id <= 0xc7) { // MPEG audio copy_mpeg_audio (ptr); } else if (id == 0xbe) { // padding data_length = ptr [4] << 8; data_length |= ptr [5]; if (14 + data_length != SECT_SIZE - 6) fatal ("Bad padding packet length at %llu: %d", rtell (ptr), data_length); } else { #if 000 /* 1.3p1 */ if( id == 0xe0 ) VideoPacketSize++; else { NavPacketSize++; //!! fprintf(stderr,"%s: id 0x%x\n", __FUNCTION__, id ); } #endif copy (SECT_SIZE); } if (wptr == wbuf + WBUF_SIZE) flush (); } flush (); } // vaporization is split in two phases - this is phase 1 // PS packs are read into rbuf until a sequence header is found. // All video packs are unpacketized and the contained video ES // GOP copied to vibuf. In the same course the private stream 1 // and MPEG audio packs are inspected and the number of packs // not to be copied are counted. This is to forecast the video // vaporization factor in case the user specified a PS shrink factor. // returns GOP length in bytes static inline int vap_phase1 (void) { UInt8 *ptr, *viptr = vibuf; int seq_length, id, data_length, opt_length, seqhdr; for (seq_length = 0; !lock (seq_length + SECT_SIZE); seq_length += SECT_SIZE) { ptr = rptr + seq_length; // fprintf(stderr,"VAP_PHASE1: seq_length %d\n", seq_length); if( check_pack (ptr) < 0 ) continue; // avoid duplicate counts for sequence headers if (seq_length) total_packs++; ptr += 14; id = ptr [3]; // fprintf (stderr, "id=%02x\n", id); switch (id) { case 0xe0: // video /*1.3p1*/ VideoPacketSize++; seqhdr = check_video_packet (ptr); if (seq_length) { video_packs++; if (seqhdr) { sequence_headers++; vilen = viptr - vibuf; // fprintf(stderr,"vilen=%d\n", vilen ); /* Weird MPEG2 STREAMS */ if( !vilen ) { eof = 1; return seq_length; } return seq_length; } } // copy contained video ES fragment to vibuf data_length = ptr [4] << 8; data_length |= ptr [5]; opt_length = 3 + ptr [8]; data_length -= opt_length; if ((viptr - vibuf) + data_length > vbuf_size - 3) { // reallocate video buffers int i = viptr - vibuf; // grow by another VBUF_SIZE bytes vbuf_size += VBUF_SIZE; vibuf = realloc (vibuf, vbuf_size); vobuf = realloc (vobuf, vbuf_size); if (vibuf == NULL || vobuf == NULL) fatal ("Reallocation of video buffers failed: %s", strerror (errno)); viptr = vibuf + i; } //fprintf (stderr, "data_length=%d\n", data_length); memcpy (viptr, ptr + 6 + opt_length, data_length); viptr += data_length; break; case 0xbd: // private 1: audio/subpicture aux_packs++; if (!new_private_1_type (ptr)) skipped_aux_packs++; break; case 0xc0: case 0xc1: case 0xc2: case 0xc3: case 0xc4: case 0xc5: case 0xc6: case 0xc7: // MPEG audio aux_packs++; if (!new_mpeg_audio_id (id)) skipped_aux_packs++; break; case 0xbb: // system header/private 2: PCI/DSI /* 1.3p1 */ NavPacketSize++; nav_packs++; break; case 0xbe: // padding skipped_aux_packs++; data_length = ptr [4] << 8; data_length |= ptr [5]; if (14 + data_length != SECT_SIZE - 6) fatal ("Bad padding packet length at %llu: %d", rtell (ptr), data_length); break; default: fatal ("Encountered stream ID %02x at %llu, " "probably bad MPEG2 program stream", id, rtell (ptr)); } } eof = 1; return seq_length; } // re-packetize the video ES // `ptr' points to original PES packet where to put the video data // `voptr' points to first unpacketized byte in vobuf // `avail' specifies number of bytes remaining in vobuf // returns number of ES bytes in generated PES packet static inline int gen_video_packet (UInt8 *ptr, UInt8 *voptr, int avail) { int i, header_data_length, data_length, padding_length; // if original PES holds optional data (e.g. DTS/PTS) we must keep it header_data_length = (ptr [7] & 0xc0) == 0xc0 ? ptr [8] : 0; data_length = SECT_SIZE - (14 + 6 + 3 + header_data_length); if (avail >= data_length) { // write out a full video packet (usually 2025 byte) memcpy (ptr + 6 + 3 + header_data_length, voptr, data_length); ptr [4] = (SECT_SIZE - (14 + 6)) >> 8; ptr [5] = (SECT_SIZE - (14 + 6)) & 0xff; ptr [8] = header_data_length; return data_length; } if (avail < data_length - 6) { // write a short video packet and a padding packet memcpy (ptr + 6 + 3 + header_data_length, voptr, avail); ptr [4] = (3 + header_data_length + avail) >> 8; ptr [5] = 3 + header_data_length + avail; ptr [8] = header_data_length; // generate padding packet ptr += 6 + 3 + header_data_length + avail; padding_length = data_length - (avail + 6); padding_bytes += padding_length + 6; ptr [0] = 0; ptr [1] = 0; ptr [2] = 1; ptr [3] = 0xbe; ptr [4] = padding_length >> 8; ptr [5] = padding_length; for (i = 0; i < padding_length; i++) ptr [6+i] = 0xff; return avail; } // write a padded video packet (1 to 6 padding bytes) padding_length = data_length - avail; padding_bytes += padding_length; memset (ptr + 6 + 3 + header_data_length, 0xff, padding_length); header_data_length += padding_length; memcpy (ptr + 6 + 3 + header_data_length, voptr, avail); ptr [4] = (SECT_SIZE - (14 + 6)) >> 8; ptr [5] = (SECT_SIZE - (14 + 6)) & 0xff; ptr [8] = header_data_length; return avail; } // this is phase 2 of vaporization // the shrunk video ES is re-packetized by using the source PES packets // unused PS packs are skipped // only wanted private stream 1 and MPEG audio packs are copied // all nav packs are copied static inline void vap_phase2 (int seq_length) { int i, id, avail, data_length; UInt8 *ptr, *voptr = vobuf, *vohwp = vobuf + volen; for (i = 0; i < seq_length; i += SECT_SIZE) { ptr = rptr + 14; id = ptr [3]; switch (id) { case 0xe0: // video avail = vohwp - voptr; if (avail) { // still some video output data left voptr += gen_video_packet (ptr, voptr, avail); copy (SECT_SIZE); #if 0 /*1.3p0*/ VideoPacketSize++; #endif } else { // no video output data left - skip input sector skip (SECT_SIZE); skipped_video_packs++; } break; case 0xbd: // private 1: audio/subpicture copy_private_1 (ptr); break; case 0xc0: case 0xc1: case 0xc2: case 0xc3: case 0xc4: case 0xc5: case 0xc6: case 0xc7: // MPEG audio copy_mpeg_audio (ptr); break; case 0xbb: // system header/private 2: PCI/DSI NavPacketSize++; copy (SECT_SIZE); break; case 0xbe: // padding data_length = ptr [4] << 8; data_length |= ptr [5]; if (14 + data_length != SECT_SIZE - 6) fatal ("Bad padding packet length at %llu: %d", rtell (ptr), data_length); break; default: fatal ("Encountered stream ID %02x at %llu, " "probably bad MPEG2 program stream", id, rtell (ptr)); } if (wptr == wbuf + WBUF_SIZE) // end of write buffer reached --> flush it to disk flush (); } } // entry point from main() // the requant thread already has been started static void vaporize( float fact ) { int seq_length; // process PS up to but not including first sequence header vap_leader(); // just in case - maybe should spit out a warning/error here if (eof) return; // DBG('v',fprintf(stderr, "Vaporize dynF: %d factor: %f\n", calc_ps_vap, vap_fact);); total_packs++; nav_packs++; total_packs++; video_packs++; // main loop while( 1 ) { // do phase 1 of vaporization seq_length = vap_phase1 (); // fprintf(stderr,"vap_phase1 := %d vin_bytes= %lld\n", seq_length, vin_bytes ); if( eof ) { // EOF on source PS // process packs after and including last sequence header vap_trailer (seq_length); // only exit point from main loop return; } //fprintf (stderr, "seq_length=%d\n", seq_length); if( 0 ) { /* Seems buggy => nfact < 0 ! */ // if( calc_ps_vap && fact > 1.0f) { // forecast video ES vaporization factor // the basic formulars look like: // vap_fact = total_packs/(restpacks+vop) // restpacks = total_packs-(video_packs+skipped_aux_packs) // fact = (video_packs*net-(gops*net/2+10))/(vop*net-(gops*net/2+10)) // net = SECT_SIZE-(14+9) // 14: pack header size // 9: PES header size // 10: PTS+DTS size in PES header of sequence header // You are welcome to double check everything here! double vop, net, nfact; net = (double) (SECT_SIZE - (14+9)); vop = video_packs + skipped_aux_packs + nav_packs - (double) total_packs * (1.0f-1.0f/fact); nfact = ((double) video_packs * net - ((double) sequence_headers * net/2.0f + 10.0f)) / (vop * net - ((double) sequence_headers * net/2.0f + 10.0f)); if( nfact > 1000 || nfact < 0 ) { DBG('v',fprintf (stderr, "video_packs=%d skipped_aux_packs=%d total_packs=%d sequence_headers=%d nav_packs=%d vop=%f\n", video_packs, skipped_aux_packs, total_packs, sequence_headers, nav_packs, vop );); DBG('v',fprintf (stderr, "nfact=%f/%f\n", ((double) video_packs * net -((double) sequence_headers * net/2.0f + 10.0f)), (vop * net - ((double) sequence_headers * net/2.0f + 10.0f)) ) ); } // requant seems to get stuck on factors < 1 if( nfact < 1.0f ) nfact = 1.0f; DBG('v',fprintf (stderr, "Info: Target video ES vaporization factor: %.3f wanted vap_fact: %f vop=%f\n", nfact, fact, vop);); /* if( nfact < 1.0f ) { nfact = fact; if( nfact < 1.0f ) nfact = 1.0f; } */ if( nfact < fact ) { nfact = fact; } if( nfact < 1.0f ) nfact = 1.0f; fact = nfact; } vin_bytes += vilen; VideoInputSize += vilen; if (fact > 1.0f) { // do requantization volen = requant( vobuf, vibuf, vilen, fact ); } else { // don't do requantization tc_memcpy( vobuf, vibuf, vilen ); volen = vilen; } vout_bytes += volen; VideoOutputSize += volen; // do phase 2 of vaporization vap_phase2( seq_length ); //fprintf (stderr, // "tot=%d, vid=%d, ps1=%d, nav=%d, sv=%d, sp1=%d, fact=%.3f\n", // total_packs, video_packs, aux_packs, nav_packs, // skipped_video_packs, skipped_aux_packs, fact); } } // inject status from previous run into internal variables static void read_injections (char *filename) { int i; FILE *fp; // lack of injections file is Ok // we will create one at end of this run if ((fp = fopen (filename, "r")) == NULL) return; for (i = 0; i < N_INJECTIONS; i++) { if (fscanf (fp, injections [i].f, injections [i].p) != 1) fatal ("Bad format of injections file: %s", filename); } fclose (fp); } // save status of internal variables to disk static void write_injections ( char *filename) { int i; FILE *fp; if ((fp = fopen (filename, "w")) == NULL) fatal ("Failed creating injections file: %s: %s", filename, strerror (errno)); for (i = 0; i < N_INJECTIONS; i++) { switch (injections [i].s) { // case 1: // fprintf (fp, injections [i].f, *((UInt8 *) injections [i].p)); // break; // // case 2: // fprintf (fp, injections [i].f, *((UInt16 *) injections [i].p)); // break; // case 4: fprintf (fp, injections [i].f, *((UInt32 *) injections [i].p)); break; case 8: fprintf (fp, injections [i].f, *((UInt64 *) injections [i].p)); break; default: abort (); } putc ('\n', fp); } if (fclose (fp)) fatal ("Failed writing injections file: %s: %s"); } #if 0 // let's hope this helps static void usage (void) { fputs ( "vamps " VAP_VERSION "\n" "\n" "Usage: vamps [--evaporate|-e factor] [--ps-evaporate|-E factor]\n" " [--audio|-a a-stream,a-stream,...]\n" " [--subpictures|-s s-stream,s-stream,...] [--verbose|-v]\n" " [--inject|-i injections-file]\n" " [--preserve|-p] [--ps-size|-S input-bytes]\n" "\n" "Vamps evaporates DVD compliant MPEG2 program streams by\n" "selectively copying audio and subpicture streams and by re-quantizing\n" "the embedded elementary video stream. The shrink factor may be either\n" "specified for the video ES only (-e) or for the full PS (-E).\n", stderr); exit (1); } #endif // this is a *very* sophisticated kind of error handling :-) static void fatal (char *fmt, ...) { va_list ap; char buffer[1024]; fprintf (stderr, "%s: Fatal: ", progname); va_start (ap, fmt); vsnprintf( buffer, sizeof(buffer), fmt, ap); fprintf(stderr,"%s\n", buffer ); va_end (ap); longjmp( JmpEnv, -1 ); } static void warning (char *fmt, ...) { va_list ap; char buffer[1024]; fprintf (stderr, "%s: Warning: ", progname); va_start (ap, fmt); vsnprintf( buffer, sizeof(buffer), fmt, ap); fprintf(stderr,"%s\n", buffer ); va_end (ap); } dvd95/src/vaporize.h000066400000000000000000000022051140003301000145650ustar00rootroot00000000000000/*============================================================================== FICHIER : [vaporize.h] DATE : 2006/01/0024 22:02:43 CREATEUR : [Linux!jef] COMMENTAIRE : ================================================================================ ==============================================================================*/ #ifndef __VAPORIZE_H__ #define __VAPORIZE_H__ /*@$#[vaporize.c] global proto. AutoProtoSigV1.1. date: 2009/06/03 22:14:18 */ #include "proto.h" #ifdef __cplusplus extern "C" { #endif int VaporizeInit(int (*readFun)(void *, unsigned char *, int), int (*writeFun)(void *, unsigned char *, int), int preserveF); int VaporizeAudio(int audioTrack); int VaporizeSubp(int subpTrack); int VaporizeFactor(double factor, int dynF); int VaporizeInjection(char *fileName); int Vaporize(long long size, void *parm); int VaporizeTerm(void); void VaporizeSizes(int *pVideoPacketSize, int *pAudioPacketSize, int *pSubPacketSize, int *pNavPacketSize); void VaporizePacks(int *videoPacks, int *auxPacks); #ifdef __cplusplus } #endif /*@$% end of AutoProtoSigV1.1 (Dont remove this line) []*/ #endif /* __VAPORIZE_H__ */ dvd95/src/x000077500000000000000000000000571140003301000127550ustar00rootroot00000000000000rm -f core.* ./dvd95 --disable-crash-dialog $* dvd95/stamp-h.in000066400000000000000000000000121140003301000136610ustar00rootroot00000000000000timestamp