diff options
| author | Chris Larson <clarson@kergoth.com> | 2004-11-09 00:36:47 +0000 |
|---|---|---|
| committer | Chris Larson <clarson@kergoth.com> | 2004-11-09 00:36:47 +0000 |
| commit | f96441b9faf769c9ecdd4d338b605ea3d0cc4010 (patch) | |
| tree | edb17ec2c4ea13c5acb1c7350957a249a820e28d /libxine | |
| parent | b6588aa6851fb220cedc387d21c51513ef8d67f4 (diff) | |
Disable bk EOLN_NATIVE conversions on all files in packages FILESPATHs, to prevent it screwing up patches.
BKrev: 4190111fA4MuVozAqwE7xOSL9fr-TA
Diffstat (limited to 'libxine')
22 files changed, 7602 insertions, 0 deletions
diff --git a/libxine/libxine-1.0.0-beta12/configure.ac.patch b/libxine/libxine-1.0.0-beta12/configure.ac.patch index e69de29bb2..7eda48ab25 100644 --- a/libxine/libxine-1.0.0-beta12/configure.ac.patch +++ b/libxine/libxine-1.0.0-beta12/configure.ac.patch @@ -0,0 +1,152 @@ +--- xine-lib/configure.ac 2003-08-10 15:20:01.000000000 +0200 ++++ xine-lib/configure.ac.patched 2003-08-10 15:23:42.000000000 +0200 +@@ -506,10 +506,10 @@ + dnl --------------------------------------------- + dnl check for SDL + dnl --------------------------------------------- +-AM_PATH_SDL(1.1.5, +- AC_DEFINE(HAVE_SDL,1,[Define this if you have SDL library installed]), +- []) +-AM_CONDITIONAL(HAVE_SDL, [test x"$no_sdl" != x"yes"]) ++dnl AM_PATH_SDL(1.1.5, ++dnl AC_DEFINE(HAVE_SDL,1,[Define this if you have SDL library installed]), ++dnl []) ++dnl AM_CONDITIONAL(HAVE_SDL, [test x"$no_sdl" != x"yes"]) + + + dnl --------------------------------------------- +@@ -608,19 +608,19 @@ + dnl Ogg/Theora libs. + dnl --------------------------------------------- + +-AM_PATH_OGG( +- [ AM_PATH_THEORA(AC_DEFINE(HAVE_THEORA,1,[Define this if you have theora]), +- AC_MSG_RESULT([*** All OGG/THEORA dependent parts will be disabled ***])) +- ], +- AC_MSG_RESULT([*** All of OGG/Theora dependent parts will be disabled ***])) +-AM_CONDITIONAL(HAVE_THEORA, [test x"$no_ogg" != "xyes" -a x"$no_theora" != "xyes"]) ++dnl AM_PATH_OGG( ++dnl [ AM_PATH_THEORA(AC_DEFINE(HAVE_THEORA,1,[Define this if you have theora]), ++dnl AC_MSG_RESULT([*** All OGG/THEORA dependent parts will be disabled ***])) ++dnl ], ++dnl AC_MSG_RESULT([*** All of OGG/Theora dependent parts will be disabled ***])) ++dnl AM_CONDITIONAL(HAVE_THEORA, [test x"$no_ogg" != "xyes" -a x"$no_theora" != "xyes"]) + + dnl --------------------------------------------- + dnl check for libFLAC + dnl --------------------------------------------- +-AM_PATH_LIBFLAC([], +- AC_MSG_RESULT([*** All FLAC dependent parts will be disabled ***])) +-AM_CONDITIONAL(HAVE_FLAC, [test x"$no_libFLAC" != "xyes"]) ++dnl AM_PATH_LIBFLAC([], ++dnl AC_MSG_RESULT([*** All FLAC dependent parts will be disabled ***])) ++dnl AM_CONDITIONAL(HAVE_FLAC, [test x"$no_libFLAC" != "xyes"]) + + dnl --------------------------------------------- + dnl XviD libs. +@@ -668,90 +668,7 @@ + AC_SUBST(PNG_LIBS) + + dnl --------------------------------------------- +-dnl freetype2 lib. +-dnl --------------------------------------------- +-AC_PATH_PROG(FREETYPE_CONFIG, moooooooooooo_putain_de_script_freetype-config, no) +-if test "$FREETYPE_CONFIG" = "no" ; then +- AC_MSG_RESULT([*** freetype-config not found, freetype2 support disabled ***]) +-else +- FT2_CFLAGS=`$FREETYPE_CONFIG --cflags` +- FT2_LIBS=`$FREETYPE_CONFIG --libs` +- have_ft2="yes" +- AC_DEFINE(HAVE_FT2,1,[Define this if you have freetype2 library]) +-fi +- +-AM_CONDITIONAL(HAVE_FT2, test x"$have_ft2" = "xyes" ) +-AC_SUBST(FT2_CFLAGS) +-AC_SUBST(FT2_LIBS) +- +-dnl --------------------------------------------- +-dnl OSS style audio interface +-dnl --------------------------------------------- +-AC_MSG_CHECKING(for OSS audio support) +-have_ossaudio=no +-AC_TRY_COMPILE([ +- #ifdef __NetBSD__ +- #include <soundcard.h> +- #else +- #include <sys/soundcard.h> +- #endif +- ],[ +- int arg = SNDCTL_DSP_SETFRAGMENT; +- ],[ +- have_ossaudio=yes +- ]) +-AC_MSG_RESULT($have_ossaudio) +-AM_CONDITIONAL(HAVE_OSS, test x"$have_ossaudio" = "xyes") +- +- +-dnl --------------------------------------------- +-dnl Alsa support +-dnl --------------------------------------------- +-AM_PATH_ALSA(0.9.0, +- [ AC_DEFINE(HAVE_ALSA,1,[Define this if you have Alsa (libasound) installed]) +- if test x"$have_alsa09" = "xyes"; then +- AC_DEFINE(HAVE_ALSA09,1,[Define this if you have alsa 0.9.x and more installed]) +- fi +- ], +- AC_MSG_RESULT(*** All of ALSA dependent parts will be disabled ***)) +-AM_CONDITIONAL(HAVE_ALSA, test x"$no_alsa" != "xyes") +-AM_CONDITIONAL(HAVE_ALSA09, test x"$have_alsa09" = "xyes") +- +- +-dnl --------------------------------------------- +-dnl ESD support +-dnl --------------------------------------------- +-AM_PATH_ESD(0.2.8, +- AC_DEFINE(HAVE_ESD,1,[Define this if you have ESD (libesd) installed]), +- AC_MSG_RESULT(*** All of ESD dependent parts will be disabled ***)) +-AM_CONDITIONAL(HAVE_ESD, test x"$no_esd" != "xyes") +- +-dnl --------------------------------------------- +-dnl ARTS support +-dnl --------------------------------------------- +-AM_PATH_ARTS(0.9.5, +- AC_DEFINE(HAVE_ARTS,1,[Define this if you have ARTS (libartsc) installed]), +- AC_MSG_RESULT(*** All of ARTS dependent parts will be disabled ***)) +-AM_CONDITIONAL(HAVE_ARTS, test x"$no_arts" != "xyes") +- +-dnl --------------------------------------------- +-dnl gnome-vfs support +-dnl --------------------------------------------- +-PKG_CHECK_MODULES(GNOME_VFS, putain_de_module_gnome-vfs-2.0, +- no_gnome_vfs=no, +- no_gnome_vfs=yes) +-AC_SUBST(GNOME_VFS_CFLAGS) +-AC_SUBST(GNOME_VFS_LIBS) +-if test x"$no_gnome_vfs" != "xyes"; then +-AC_DEFINE(HAVE_GNOME_VFS,1,[Define this if you have gnome-vfs installed]) +-else +-AC_MSG_RESULT(*** All of the gnome-vfs dependent parts will be disabled ***) +-fi +-AM_CONDITIONAL(HAVE_GNOME_VFS, test x"$no_gnome_vfs" != "xyes") +- +- +-dnl --------------------------------------------- +-dnl SUN style audio interface ++dnl freetype2 lib.snterface + dnl --------------------------------------------- + AC_MSG_CHECKING(for Sun audio support) + have_sunaudio=no +--- xine-lib/configure.ac Sat Aug 23 21:22:05 2003 ++++ xine-lib/configure.ac.aalib Sat Aug 23 21:22:31 2003 +@@ -456,8 +456,10 @@ + dnl --------------------------------------------- + dnl Checks for Ascii-Art library + dnl --------------------------------------------- ++AC_ARG_ENABLE(aalib, [ --disable-aalib Disable AAlib support], ++ enable_aalib=no, enable_aalib=yes) + AM_PATH_AALIB(1.4,, AC_MSG_RESULT([*** All of AALIB dependent parts will be disabled ***])) +-AM_CONDITIONAL(HAVE_AA, test x$no_aalib != "xyes") ++AM_CONDITIONAL(HAVE_AA, [test x"$enable_aalib" = "xyes" && test x"$no_aalib" != "xyes" ]) + + dnl --------------------------------------------- + dnl Check solaris framebuffer device support diff --git a/libxine/libxine-1.0.0-beta12/demux_ogg.patch b/libxine/libxine-1.0.0-beta12/demux_ogg.patch index e69de29bb2..9faa3ba06d 100644 --- a/libxine/libxine-1.0.0-beta12/demux_ogg.patch +++ b/libxine/libxine-1.0.0-beta12/demux_ogg.patch @@ -0,0 +1,11 @@ +--- xine-lib/src/demuxers/demux_ogg.c 2003-08-10 13:55:26.000000000 +0200 ++++ xine-lib/src/demuxers/demux_ogg.c.patched 2003-08-10 02:20:10.000000000 +0200 +@@ -36,7 +36,7 @@ + #include <stdlib.h> + + #include <ogg/ogg.h> +-#include <vorbis/codec.h> ++#include <tremor/ivorbiscodec.h> + + #ifdef HAVE_THEORA + #include <theora/theora.h> diff --git a/libxine/libxine-1.0.0-beta12/fftscope-static-inlining.patch b/libxine/libxine-1.0.0-beta12/fftscope-static-inlining.patch index e69de29bb2..42b3caead2 100644 --- a/libxine/libxine-1.0.0-beta12/fftscope-static-inlining.patch +++ b/libxine/libxine-1.0.0-beta12/fftscope-static-inlining.patch @@ -0,0 +1,11 @@ +--- ../libxine-1.0.0-beta12-r0/xine-lib/src/post/visualizations/fftscope.c 2003-04-30 07:58:51.000000000 +0100 ++++ xine-lib/src/post/visualizations/fftscope.c 2004-08-17 17:40:56.000000000 +0100 +@@ -103,7 +103,7 @@ + * Bit reverser for unsigned ints + * Reverses 'bits' bits. + */ +-inline const unsigned int ++static inline const unsigned int + reverse (unsigned int val, int bits) + { + unsigned int retn = 0; diff --git a/libxine/libxine-1.0.0-beta12/fix-oss-plugin.patch b/libxine/libxine-1.0.0-beta12/fix-oss-plugin.patch index e69de29bb2..be44ad3486 100644 --- a/libxine/libxine-1.0.0-beta12/fix-oss-plugin.patch +++ b/libxine/libxine-1.0.0-beta12/fix-oss-plugin.patch @@ -0,0 +1,29 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- xine-lib-1-beta12/src/audio_out/audio_oss_out.c~fix-oss-plugin ++++ xine-lib-1-beta12/src/audio_out/audio_oss_out.c +@@ -46,20 +46,7 @@ + #include <fcntl.h> + #include <math.h> + #include <unistd.h> +-#if defined(__OpenBSD__) +-# include <soundcard.h> +-#elif defined (__FreeBSD__) +-# if __FreeBSD__ < 4 +-# include <machine/soundcard.h> +-# else +-# include <sys/soundcard.h> +-# endif +-#else +-# if defined(__linux__) +-# include <linux/config.h> /* Check for DEVFS */ +-# endif +-# include <sys/soundcard.h> +-#endif ++#include <sys/soundcard.h> + #include <sys/ioctl.h> + #include <inttypes.h> + diff --git a/libxine/libxine-1.0.0-beta12/fix-syntax-xine-vorbis-decoder.patch b/libxine/libxine-1.0.0-beta12/fix-syntax-xine-vorbis-decoder.patch index e69de29bb2..6803d82e05 100644 --- a/libxine/libxine-1.0.0-beta12/fix-syntax-xine-vorbis-decoder.patch +++ b/libxine/libxine-1.0.0-beta12/fix-syntax-xine-vorbis-decoder.patch @@ -0,0 +1,11 @@ +--- ../libxine-1.0.0-beta12-r0/xine-lib/src/libvorbis/xine_decoder.c 2004-08-17 16:07:31.000000000 +0100 ++++ xine-lib/src/libvorbis/xine_decoder.c 2004-08-17 17:08:21.000000000 +0100 +@@ -208,7 +208,7 @@ + int **pcm; + int samples; + +- if(vorbis_synthesis(&this->vb,op)==0) ++ if(vorbis_synthesis(&this->vb,op,1)==0) + vorbis_synthesis_blockin(&this->vd,&this->vb); + + if (buf->pts!=0) diff --git a/libxine/libxine-1.0.0-beta12/full.patch b/libxine/libxine-1.0.0-beta12/full.patch index e69de29bb2..d36dc39417 100644 --- a/libxine/libxine-1.0.0-beta12/full.patch +++ b/libxine/libxine-1.0.0-beta12/full.patch @@ -0,0 +1,5601 @@ +Copyright (C) 2003, Fred Boulay <dilb@handhelds.org> +Licensed under GPL v2 + +diff -rcN -x Makefile.in -x POTFILES -x libxine.pc -x relchk.sh -x xine-config -x dsputil_arm.c_dilb -x jrevdct_arm.S_dilb -x libdha -x vidix -x demux_ogg.c_before_test_song_length -x config.log -x config.status -x autom4te.cache -x aclocal.m4 -x xine.c_orig -x libtool-nofpic -x config.sub -x config.guess -x configure -x SlackBuild -x stamp-h1 -x config.h -x libtool -x ltmain.sh xine-lib-1-beta12_orig/autogen.sh xine-lib-1-beta12/autogen.sh +*** xine-lib-1-beta12_orig/autogen.sh Sun Mar 2 06:47:39 2003 +--- xine-lib-1-beta12/autogen.sh Sun May 18 13:32:51 2003 +*************** +*** 140,145 **** +--- 140,149 ---- + echo $_echo_n " + Running libtoolize: $_echo_c"; + libtoolize --force --copy >/dev/null 2>&1; + echo "done." ++ echo $_echo_n " + copying patched ltmain.sh solving DESTDIR issues: $_echo_c"; ++ cp -f ltmain_patched.sh ltmain.sh; ++ echo "done." ++ + } + + #-------------------- +diff -rcN -x Makefile.in -x POTFILES -x libxine.pc -x relchk.sh -x xine-config -x dsputil_arm.c_dilb -x jrevdct_arm.S_dilb -x libdha -x vidix -x demux_ogg.c_before_test_song_length -x config.log -x config.status -x autom4te.cache -x aclocal.m4 -x xine.c_orig -x libtool-nofpic -x config.sub -x config.guess -x configure -x SlackBuild -x stamp-h1 -x config.h -x libtool -x ltmain.sh xine-lib-1-beta12_orig/configure.ac xine-lib-1-beta12/configure.ac +*** xine-lib-1-beta12_orig/configure.ac Sun May 11 13:11:06 2003 +--- xine-lib-1-beta12/configure.ac Sun May 18 15:59:50 2003 +*************** +*** 670,676 **** + dnl --------------------------------------------- + dnl freetype2 lib. + dnl --------------------------------------------- +! AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) + if test "$FREETYPE_CONFIG" = "no" ; then + AC_MSG_RESULT([*** freetype-config not found, freetype2 support disabled ***]) + else +--- 670,676 ---- + dnl --------------------------------------------- + dnl freetype2 lib. + dnl --------------------------------------------- +! AC_PATH_PROG(FREETYPE_CONFIG, moooooooooooo_putain_de_script_freetype-config, no) + if test "$FREETYPE_CONFIG" = "no" ; then + AC_MSG_RESULT([*** freetype-config not found, freetype2 support disabled ***]) + else +*************** +*** 737,743 **** + dnl --------------------------------------------- + dnl gnome-vfs support + dnl --------------------------------------------- +! PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0, + no_gnome_vfs=no, + no_gnome_vfs=yes) + AC_SUBST(GNOME_VFS_CFLAGS) +--- 737,743 ---- + dnl --------------------------------------------- + dnl gnome-vfs support + dnl --------------------------------------------- +! PKG_CHECK_MODULES(GNOME_VFS, putain_de_module_gnome-vfs-2.0, + no_gnome_vfs=no, + no_gnome_vfs=yes) + AC_SUBST(GNOME_VFS_CFLAGS) +diff -rcN -x Makefile.in -x POTFILES -x libxine.pc -x relchk.sh -x xine-config -x dsputil_arm.c_dilb -x jrevdct_arm.S_dilb -x libdha -x vidix -x demux_ogg.c_before_test_song_length -x config.log -x config.status -x autom4te.cache -x aclocal.m4 -x xine.c_orig -x libtool-nofpic -x config.sub -x config.guess -x configure -x SlackBuild -x stamp-h1 -x config.h -x libtool -x ltmain.sh xine-lib-1-beta12_orig/ltmain_patched.sh xine-lib-1-beta12/ltmain_patched.sh +*** xine-lib-1-beta12_orig/ltmain_patched.sh Wed Dec 31 19:00:00 1969 +--- xine-lib-1-beta12/ltmain_patched.sh Sun May 18 13:31:34 2003 +*************** +*** 0 **** +--- 1,5044 ---- ++ # ltmain.sh - Provide generalized library-building support services. ++ # NOTE: Changing this file will not affect anything until you rerun configure. ++ # ++ # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 ++ # Free Software Foundation, Inc. ++ # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 ++ # ++ # 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. ++ ++ # 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 "$0" --no-reexec ${1+"$@"} ++ fi ++ ++ if test "X$1" = X--fallback-echo; then ++ # used as fallback echo ++ shift ++ cat <<EOF ++ $* ++ EOF ++ exit 0 ++ fi ++ ++ # The name of this program. ++ progname=`$echo "$0" | sed 's%^.*/%%'` ++ modename="$progname" ++ ++ # Constants. ++ PROGRAM=ltmain.sh ++ PACKAGE=libtool ++ VERSION=1.4.2a ++ TIMESTAMP=" (1.922.2.79 2001/11/28 21:50:31)" ++ ++ default_mode= ++ help="Try \`$progname --help' for more information." ++ magic="%%%MAGIC variable%%%" ++ mkdir="mkdir" ++ mv="mv -f" ++ rm="rm -f" ++ ++ # 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' ++ SP2NL='tr \040 \012' ++ NL2SP='tr \015\012 \040\040' ++ ++ # NLS nuisances. ++ # 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). ++ # We save the old values to restore during execute mode. ++ if test "${LC_ALL+set}" = set; then ++ save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL ++ fi ++ if test "${LANG+set}" = set; then ++ save_LANG="$LANG"; LANG=C; export LANG ++ fi ++ ++ # Make sure IFS has a sensible default ++ : ${IFS=" "} ++ ++ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then ++ echo "$modename: not configured to build any kind of library" 1>&2 ++ echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 ++ exit 1 ++ fi ++ ++ # Global variables. ++ mode=$default_mode ++ nonopt= ++ prev= ++ prevopt= ++ run= ++ show="$echo" ++ show_help= ++ execute_dlfiles= ++ lo2o="s/\\.lo\$/.${objext}/" ++ o2lo="s/\\.${objext}\$/.lo/" ++ ++ # Parse our command line options once, thoroughly. ++ while test $# -gt 0 ++ do ++ arg="$1" ++ shift ++ ++ case $arg in ++ -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; ++ *) optarg= ;; ++ esac ++ ++ # If the previous option needs an argument, assign it. ++ if test -n "$prev"; then ++ case $prev in ++ execute_dlfiles) ++ execute_dlfiles="$execute_dlfiles $arg" ++ ;; ++ *) ++ eval "$prev=\$arg" ++ ;; ++ esac ++ ++ prev= ++ prevopt= ++ continue ++ fi ++ ++ # Have we seen a non-optional argument yet? ++ case $arg in ++ --help) ++ show_help=yes ++ ;; ++ ++ --version) ++ echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" ++ exit 0 ++ ;; ++ ++ --config) ++ sed -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0 ++ exit 0 ++ ;; ++ ++ --debug) ++ echo "$progname: enabling shell trace mode" ++ set -x ++ ;; ++ ++ --dry-run | -n) ++ run=: ++ ;; ++ ++ --features) ++ echo "host: $host" ++ if test "$build_libtool_libs" = yes; then ++ echo "enable shared libraries" ++ else ++ echo "disable shared libraries" ++ fi ++ if test "$build_old_libs" = yes; then ++ echo "enable static libraries" ++ else ++ echo "disable static libraries" ++ fi ++ exit 0 ++ ;; ++ ++ --finish) mode="finish" ;; ++ ++ --mode) prevopt="--mode" prev=mode ;; ++ --mode=*) mode="$optarg" ;; ++ ++ --preserve-dup-deps) duplicate_deps="yes" ;; ++ ++ --quiet | --silent) ++ show=: ++ ;; ++ ++ -dlopen) ++ prevopt="-dlopen" ++ prev=execute_dlfiles ++ ;; ++ ++ -*) ++ $echo "$modename: unrecognized option \`$arg'" 1>&2 ++ $echo "$help" 1>&2 ++ exit 1 ++ ;; ++ ++ *) ++ nonopt="$arg" ++ break ++ ;; ++ esac ++ done ++ ++ if test -n "$prevopt"; then ++ $echo "$modename: option \`$prevopt' requires an argument" 1>&2 ++ $echo "$help" 1>&2 ++ exit 1 ++ fi ++ ++ # If this variable is set in any of the actions, the command in it ++ # will be execed at the end. This prevents here-documents from being ++ # left over by shells. ++ exec_cmd= ++ ++ if test -z "$show_help"; then ++ ++ # Infer the operation mode. ++ if test -z "$mode"; then ++ case $nonopt in ++ *cc | *++ | gcc* | *-gcc*) ++ mode=link ++ for arg ++ do ++ case $arg in ++ -c) ++ mode=compile ++ break ++ ;; ++ esac ++ done ++ ;; ++ *db | *dbx | *strace | *truss) ++ mode=execute ++ ;; ++ *install*|cp|mv) ++ mode=install ++ ;; ++ *rm) ++ mode=uninstall ++ ;; ++ *) ++ # If we have no mode, but dlfiles were specified, then do execute mode. ++ test -n "$execute_dlfiles" && mode=execute ++ ++ # Just use the default operation mode. ++ if test -z "$mode"; then ++ if test -n "$nonopt"; then ++ $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 ++ else ++ $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 ++ fi ++ fi ++ ;; ++ esac ++ fi ++ ++ # Only execute mode is allowed to have -dlopen flags. ++ if test -n "$execute_dlfiles" && test "$mode" != execute; then ++ $echo "$modename: unrecognized option \`-dlopen'" 1>&2 ++ $echo "$help" 1>&2 ++ exit 1 ++ fi ++ ++ # Change the help message to a mode-specific one. ++ generic_help="$help" ++ help="Try \`$modename --help --mode=$mode' for more information." ++ ++ # These modes are in order of execution frequency so that they run quickly. ++ case $mode in ++ # libtool compile mode ++ compile) ++ modename="$modename: compile" ++ # Get the compilation command and the source file. ++ base_compile= ++ prev= ++ lastarg= ++ srcfile="$nonopt" ++ suppress_output= ++ ++ user_target=no ++ for arg ++ do ++ case $prev in ++ "") ;; ++ xcompiler) ++ # Aesthetically quote the previous argument. ++ prev= ++ lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` ++ ++ case $arg in ++ # Double-quote args containing other shell metacharacters. ++ # Many Bourne shells cannot handle close brackets correctly ++ # in scan sets, so we specify it separately. ++ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") ++ arg="\"$arg\"" ++ ;; ++ esac ++ ++ # Add the previous argument to base_compile. ++ if test -z "$base_compile"; then ++ base_compile="$lastarg" ++ else ++ base_compile="$base_compile $lastarg" ++ fi ++ continue ++ ;; ++ esac ++ ++ # Accept any command-line options. ++ case $arg in ++ -o) ++ if test "$user_target" != "no"; then ++ $echo "$modename: you cannot specify \`-o' more than once" 1>&2 ++ exit 1 ++ fi ++ user_target=next ++ ;; ++ ++ -static) ++ build_old_libs=yes ++ continue ++ ;; ++ ++ -prefer-pic) ++ pic_mode=yes ++ continue ++ ;; ++ ++ -prefer-non-pic) ++ pic_mode=no ++ continue ++ ;; ++ ++ -Xcompiler) ++ prev=xcompiler ++ continue ++ ;; ++ ++ -Wc,*) ++ args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` ++ lastarg= ++ save_ifs="$IFS"; IFS=',' ++ for arg in $args; do ++ IFS="$save_ifs" ++ ++ # Double-quote args containing other shell metacharacters. ++ # Many Bourne shells cannot handle close brackets correctly ++ # in scan sets, so we specify it separately. ++ case $arg in ++ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") ++ arg="\"$arg\"" ++ ;; ++ esac ++ lastarg="$lastarg $arg" ++ done ++ IFS="$save_ifs" ++ lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` ++ ++ # Add the arguments to base_compile. ++ if test -z "$base_compile"; then ++ base_compile="$lastarg" ++ else ++ base_compile="$base_compile $lastarg" ++ fi ++ continue ++ ;; ++ esac ++ ++ case $user_target in ++ next) ++ # The next one is the -o target name ++ user_target=yes ++ continue ++ ;; ++ yes) ++ # We got the output file ++ user_target=set ++ libobj="$arg" ++ continue ++ ;; ++ esac ++ ++ # Accept the current argument as the source file. ++ lastarg="$srcfile" ++ srcfile="$arg" ++ ++ # Aesthetically quote the previous argument. ++ ++ # Backslashify any backslashes, double quotes, and dollar signs. ++ # These are the only characters that are still specially ++ # interpreted inside of double-quoted scrings. ++ lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` ++ ++ # Double-quote args containing other shell metacharacters. ++ # Many Bourne shells cannot handle close brackets correctly ++ # in scan sets, so we specify it separately. ++ case $lastarg in ++ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") ++ lastarg="\"$lastarg\"" ++ ;; ++ esac ++ ++ # Add the previous argument to base_compile. ++ if test -z "$base_compile"; then ++ base_compile="$lastarg" ++ else ++ base_compile="$base_compile $lastarg" ++ fi ++ done ++ ++ case $user_target in ++ set) ++ ;; ++ no) ++ # Get the name of the library object. ++ libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ++ ;; ++ *) ++ $echo "$modename: you must specify a target with \`-o'" 1>&2 ++ exit 1 ++ ;; ++ esac ++ ++ # Recognize several different file suffixes. ++ # If the user specifies -o file.o, it is replaced with file.lo ++ xform='[cCFSfmso]' ++ case $libobj in ++ *.ada) xform=ada ;; ++ *.adb) xform=adb ;; ++ *.ads) xform=ads ;; ++ *.asm) xform=asm ;; ++ *.c++) xform=c++ ;; ++ *.cc) xform=cc ;; ++ *.cpp) xform=cpp ;; ++ *.cxx) xform=cxx ;; ++ *.f90) xform=f90 ;; ++ *.for) xform=for ;; ++ esac ++ ++ libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` ++ ++ case $libobj in ++ *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; ++ *) ++ $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 ++ exit 1 ++ ;; ++ esac ++ ++ if test -z "$base_compile"; then ++ $echo "$modename: you must specify a compilation command" 1>&2 ++ $echo "$help" 1>&2 ++ exit 1 ++ fi ++ ++ # Delete any leftover library objects. ++ if test "$build_old_libs" = yes; then ++ removelist="$obj $libobj" ++ else ++ removelist="$libobj" ++ fi ++ ++ $run $rm $removelist ++ trap "$run $rm $removelist; exit 1" 1 2 15 ++ ++ # On Cygwin there's no "real" PIC flag so we must build both object types ++ case $host_os in ++ cygwin* | mingw* | pw32* | os2*) ++ 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" ++ removelist="$removelist $output_obj $lockfile" ++ trap "$run $rm $removelist; exit 1" 1 2 15 ++ else ++ 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 $run ln "$0" "$lockfile" 2>/dev/null; do ++ $show "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." ++ ++ $run $rm $removelist ++ exit 1 ++ fi ++ echo $srcfile > "$lockfile" ++ fi ++ ++ if test -n "$fix_srcfile_path"; then ++ eval srcfile=\"$fix_srcfile_path\" ++ fi ++ ++ # 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 ++ |
