Changeset e3401d578754e7fd0dd49ba18b95b527420f1630
- Timestamp:
- 08/26/02 22:49:50
(6 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1030394990 +0000
- git-parent:
[86f23938c10f4823f3389912f898dedd62c73ab7]
- git-author:
- Sam Hocevar <sam@videolan.org> 1030394990 +0000
- Message:
- ./configure.in: we now require autoconf 2.5x because previous versions
don't seem to work very well if you are using autopoint, although
gettext 0.11.5 claims to be fully backwards compatible. Welcome to
automake hell.
- ./bootstrap: workaround which uses gettextize if you do not have
autopoint. We'll probably stay like this for a while, until gettext
0.11.x (which replaces gettextize with autopoint) becomes more
widespread. Currently this workaround seems to work, but don't expect
a clean tarball if you make dist without having used autopoint. Welcome
to automake hell.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r0df4659 |
re3401d5 |
|
| 1 | | $Id: HACKING,v 1.2 2002/08/26 09:38:19 sam Exp $ |
|---|
| | 1 | $Id: HACKING,v 1.3 2002/08/26 20:49:49 sam Exp $ |
|---|
| 2 | 2 | |
|---|
| 3 | 3 | Hacking vlc |
|---|
| … | … | |
| 6 | 6 | You will need the following tools if you plan to use the CVS version of vlc: |
|---|
| 7 | 7 | |
|---|
| 8 | | - autoconf version 2.13 or later |
|---|
| 9 | | - automake version 1.4 or later |
|---|
| | 8 | - autoconf version 2.50 or later |
|---|
| | 9 | - automake version 1.6 or later |
|---|
| 10 | 10 | - gettext version 0.10.4 or later |
|---|
| 11 | 11 | |
|---|
| r0df4659 |
re3401d5 |
|
| 4 | 4 | ACLOCAL_AMFLAGS = -I m4 |
|---|
| 5 | 5 | |
|---|
| 6 | | EXTRA_DIST = config.rpath mkinstalldirs |
|---|
| | 6 | EXTRA_DIST = BUGS FAQ HACKING MAINTAINERS STATUS \ |
|---|
| | 7 | INSTALL.win32 README.MacOSX.rtf \ |
|---|
| | 8 | config.rpath mkinstalldirs |
|---|
| r0df4659 |
re3401d5 |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## bootstrap.sh file for vlc, the VideoLAN Client |
|---|
| 4 | | ## $Id: bootstrap,v 1.3 2002/08/26 09:38:20 sam Exp $ |
|---|
| | 4 | ## $Id: bootstrap,v 1.4 2002/08/26 20:49:49 sam Exp $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 30 | 30 | ### classic stuff |
|---|
| 31 | 31 | ### |
|---|
| 32 | | rm -f aclocal.m4 configure config.guess config.log config.sub ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh configure.in~ Makefile.am~ ChangeLog~ po/ChangeLog~ |
|---|
| | 32 | set -x |
|---|
| | 33 | rm -f aclocal.m4 configure config.guess config.log config.sub ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh |
|---|
| 33 | 34 | |
|---|
| 34 | | aclocal |
|---|
| 35 | | autoheader |
|---|
| | 35 | if expr `gettextize --version | head -1 | sed 's/[^0-9]*//'` \ |
|---|
| | 36 | '>' 0.11.3 >/dev/null 2>&1 |
|---|
| | 37 | then |
|---|
| | 38 | autopoint --force |
|---|
| | 39 | else |
|---|
| | 40 | # What?! User is not using a recent version of gettext? We'll have to |
|---|
| | 41 | # cheat a bit, then. |
|---|
| | 42 | rm -f po/ChangeLog~ |
|---|
| | 43 | aclocaldir=`gettextize --copy --force | grep '^from the' | cut -f3 -d' '` |
|---|
| | 44 | # Yuck! |
|---|
| | 45 | test -f po/ChangeLog~ && mv po/ChangeLog~ po/ChangeLog |
|---|
| | 46 | mkdir -p m4 |
|---|
| | 47 | # Yuck! |
|---|
| | 48 | for file in codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 \ |
|---|
| | 49 | lcmessage.m4 progtest.m4 |
|---|
| | 50 | do cp ${aclocaldir}/${file} m4/ |
|---|
| | 51 | done |
|---|
| | 52 | # Yuck! |
|---|
| | 53 | echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' >> m4/gettext.m4 |
|---|
| | 54 | fi |
|---|
| 36 | 55 | |
|---|
| 37 | | # run gettextize and then fix its cruft |
|---|
| 38 | | gettextize --force --intl --copy --no-changelog || gettextize --force --copy |
|---|
| 39 | | test -f configure.in~ && mv configure.in~ configure.in |
|---|
| 40 | | test -f Makefile.am~ && mv Makefile.am~ Makefile.am |
|---|
| 41 | | test -f ChangeLog~ && mv ChangeLog~ ChangeLog |
|---|
| 42 | | test -f po/ChangeLog~ && mv po/ChangeLog~ po/ChangeLog |
|---|
| 43 | | |
|---|
| | 56 | aclocal -I m4 |
|---|
| 44 | 57 | automake --foreign --add-missing --copy |
|---|
| 45 | 58 | autoconf |
|---|
| 46 | | aclocal -I m4 |
|---|
| | 59 | autoheader |
|---|
| 47 | 60 | |
|---|
| 48 | 61 | # nuahahahahaha !! overwriting Makefile.in with what *I* want! |
|---|
| … | … | |
| 53 | 66 | ## |
|---|
| 54 | 67 | file=src/misc/modules_plugin.h |
|---|
| 55 | | echo -n " + creating headers: " |
|---|
| 56 | 68 | rm -f $file |
|---|
| 57 | 69 | sed 's#.*\$[I][d]:.*# * Automatically generated from '$file'.in by bootstrap.sh#' < $file.in > $file |
|---|
| … | … | |
| 60 | 72 | sed 's/VLC_EXPORT( *\([^,]*\), *\([^,]*\), *\(.*\));.*/ (p_symbols)->\2_inner = \2; \\/' >> $file |
|---|
| 61 | 73 | echo '' >> $file |
|---|
| 62 | | echo -n "$file " |
|---|
| 63 | 74 | |
|---|
| 64 | 75 | file=include/vlc_symbols.h |
|---|
| … | … | |
| 77 | 88 | echo '#endif /* __PLUGIN__ */' >> $file |
|---|
| 78 | 89 | echo '' >> $file |
|---|
| 79 | | echo "$file." |
|---|
| 80 | 90 | |
|---|
| 81 | 91 | |
|---|
| … | … | |
| 83 | 93 | ## Glade sometimes sucks |
|---|
| 84 | 94 | ## |
|---|
| 85 | | echo -n " + fixing glade bugs: " |
|---|
| 86 | 95 | for file in gnome_interface.c gtk_interface.c |
|---|
| 87 | 96 | do |
|---|
| … | … | |
| 103 | 112 | mv -f /tmp/$$.$file.bak modules/gui/gtk/$file |
|---|
| 104 | 113 | fi |
|---|
| 105 | | echo -n "$file " |
|---|
| 106 | 114 | done |
|---|
| 107 | 115 | |
|---|
| … | … | |
| 113 | 121 | mv -f /tmp/$$.$file.bak modules/gui/gtk/$file |
|---|
| 114 | 122 | fi |
|---|
| 115 | | echo "$file." |
|---|
| 116 | 123 | |
|---|
| 117 | 124 | |
|---|
| … | … | |
| 123 | 130 | echo "not updating potfiles. use --update-po to force doing it." |
|---|
| 124 | 131 | else |
|---|
| 125 | | echo -n " + updating potfiles: " |
|---|
| 126 | 132 | cd po |
|---|
| 127 | 133 | make update-po 2>&1 | grep '^[^:]*:$' | cut -f1 -d: | tr '\n' ' ' | sed 's/ $//' |
|---|
| 128 | 134 | cd .. |
|---|
| 129 | | echo "." |
|---|
| 130 | 135 | fi |
|---|
| 131 | 136 | |
|---|
| reb395af |
re3401d5 |
|
| 1 | 1 | dnl Autoconf settings for vlc |
|---|
| 2 | 2 | AC_INIT(configure.in) |
|---|
| 3 | | AM_CONFIG_HEADER(config.h) |
|---|
| | 3 | |
|---|
| | 4 | AC_PREREQ(2.50) |
|---|
| 4 | 5 | AC_CANONICAL_SYSTEM |
|---|
| 5 | 6 | |
|---|
| … | … | |
| 10 | 11 | CODENAME="Natalya" |
|---|
| 11 | 12 | |
|---|
| | 13 | AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION}) |
|---|
| | 14 | AM_CONFIG_HEADER(config.h) |
|---|
| | 15 | |
|---|
| 12 | 16 | dnl |
|---|
| 13 | 17 | dnl Save *FLAGS |
|---|
| … | … | |
| 20 | 24 | dnl Check for tools |
|---|
| 21 | 25 | dnl |
|---|
| 22 | | AC_PROG_MAKE_SET |
|---|
| 23 | 26 | AC_PROG_CC |
|---|
| 24 | 27 | AC_PROG_CPP |
|---|
| | 28 | AC_PROG_MAKE_SET |
|---|
| | 29 | AC_PROG_INSTALL |
|---|
| 25 | 30 | |
|---|
| 26 | 31 | dnl Find the right ranlib, even when cross-compiling |
|---|
| … | … | |
| 52 | 57 | AC_DEFINE_UNQUOTED(VLC_PACKAGE, "${PACKAGE}", [Package name]) |
|---|
| 53 | 58 | AC_DEFINE_UNQUOTED(VLC_VERSION, "${VERSION}", [Package version]) |
|---|
| | 59 | AM_GNU_GETTEXT_VERSION(0.10.40) |
|---|
| 54 | 60 | AM_GNU_GETTEXT |
|---|
| 55 | 61 | |
|---|
| … | … | |
| 2168 | 2174 | AC_SUBST(id3tag_LDFLAGS) |
|---|
| 2169 | 2175 | |
|---|
| 2170 | | AC_OUTPUT([Makefile Makefile.config Makefile.opts po/Makefile.in vlc-config m4/Makefile intl/Makefile]) |
|---|
| 2171 | | chmod a+x vlc-config |
|---|
| | 2176 | AC_OUTPUT([ |
|---|
| | 2177 | Makefile |
|---|
| | 2178 | Makefile.config |
|---|
| | 2179 | Makefile.opts |
|---|
| | 2180 | m4/Makefile |
|---|
| | 2181 | intl/Makefile |
|---|
| | 2182 | po/Makefile.in |
|---|
| | 2183 | vlc-config |
|---|
| | 2184 | ],[ |
|---|
| | 2185 | chmod a+x vlc-config |
|---|
| | 2186 | ]) |
|---|
| 2172 | 2187 | |
|---|
| 2173 | 2188 | echo " |
|---|