]> git.sesse.net Git - vlc/blob - bootstrap
libtool: Compile builtins as convenience libraries rather than static ones
[vlc] / bootstrap
1 #! /bin/sh
2
3 ##  bootstrap file for the VLC media player
4 ##
5 ## Copyright (C) 2005-2006 the VideoLAN team
6 ##
7 ##  Authors: Sam Hocevar <sam@zoy.org>
8 ##           RĂ©mi Denis-Courmont <rem # videolan # org>
9 ##
10 ## Muahaha! no annoying dollar I dee dollar that causes rebuild at commit
11
12 if test "$#" != "0"; then
13   echo "Usage: $0"
14   echo "  Calls automake, autoconf, autoheader, autopoint and other auto* to generate"
15   echo "  m4 macros and prepare Makefiles."
16   exit 1
17 fi
18
19 ###
20 ###  Get a sane environment, just in case
21 ###
22 LANG=C
23 export LANG
24 CYGWIN=binmode
25 export CYGWIN
26
27 set -e
28 set -x
29
30 ##
31 ## Check for various tools
32 ##
33 AUTOMAKESUCKS=no
34 INSTALLSUCKS=no
35
36 ACLOCAL_ARGS="-I m4"
37
38 # Check for contrib directory
39 if test -d extras/contrib/bin; then
40   export PATH=./extras/contrib/bin:$PATH
41   if test -d extras/contrib/share/aclocal; then
42     ACLOCAL_ARGS="${ACLOCAL_ARGS} -I extras/contrib/share/aclocal"
43   fi
44   if test ".`uname -s`" = ".Darwin"; then
45     export LD_LIBRARY_PATH=./extras/contrib/lib:$LD_LIBRARY_PATH
46     export DYLD_LIBRARY_PATH=./extras/contrib/lib:$DYLD_LIBRARY_PATH
47   elif test ".`uname -s`" = ".BeOS"; then
48     export LIBRARY_PATH=./extras/contrib/lib:$LIBRARY_PATH
49     export BELIBRARIES=./extras/contrib/lib:$BELIBRARIES
50   fi
51 fi
52
53 # Check for automake
54 amvers="none"
55 if automake-1.9 --version >/dev/null 2>&1; then
56   amvers="-1.9"
57 elif automake-1.8 --version >/dev/null 2>&1; then
58   amvers="-1.8"
59 elif automake-1.7 --version >/dev/null 2>&1; then
60   amvers="-1.7"
61 elif automake-1.6 --version >/dev/null 2>&1; then
62   amvers="-1.6"
63   if expr "`automake-1.6 --version | sed -e '1s/[^0-9]*//' -e q`" "<=" "1.6.1" > /dev/null 2>&1; then
64     AUTOMAKESUCKS=yes
65   fi
66 elif automake-1.5 --version >/dev/null 2>&1; then
67   INSTALLSUCKS=yes
68   amvers="-1.5"
69 elif automake --version > /dev/null 2>&1; then
70   amvers=""
71   case "`automake --version | sed -e '1s/[^0-9]*//' -e q`" in
72     0|0.*|1|1.[01234]|1.[01234][-.]*)
73       amvers="none" ;;
74     1.5|1.5.*)
75       INSTALLSUCKS=yes ;;
76     1.6|1.6.0|1.6.1)
77       AUTOMAKESUCKS=yes ;;
78     1.9|1.9.2)
79       ;;
80   esac
81 fi
82
83 if test "${amvers}" = "none"; then
84   set +x
85   echo "$0: you need automake version 1.5 or later"
86   exit 1
87 fi
88
89 # Check for libtool
90 libtoolize="no"
91 if glibtoolize --version >/dev/null 2>&1; then
92   libtoolize="glibtoolize"
93 elif libtoolize --version >/dev/null 2>&1; then
94   libtoolize="libtoolize"
95 fi
96
97 if test "$libtoolize" = "no"; then
98   set +x
99   echo "$0: you need libtool"
100   exit 1
101 fi
102
103 # Check for gettext
104 if gettextize --version >/dev/null 2>&1; then
105 # Autopoint is available from 0.11.3, but we need 0.11.5
106 if expr `gettextize --version | sed -e '1s/[^0-9]*//' -e q` \
107         '>=' 0.11.5 >/dev/null 2>&1; then
108   # We have gettext, and a recent version! Everything is cool.
109   autopoint=autopoint
110   GETTEXT=yes
111 else
112   # User's gettext is too old. try to continue anyway.
113   autopoint=:
114   GETTEXT=old
115 fi;else
116   set +x
117   echo "you need gettextize (package gettext-devel or gettext)"
118   exit 1
119 fi
120
121 # Check for pkg-config
122 if pkg-config --version >/dev/null 2>&1; then
123   # We have pkg-config, everything is cool.
124   PKGCONFIG=yes
125 else
126   PKGCONFIG=no
127 fi
128
129 aclocal=aclocal${amvers}
130 automake=automake${amvers}
131 autoconf=autoconf
132 autoheader=autoheader
133
134 ##
135 ## Generate the modules makefile, by parsing modules/**/Modules.am
136 ##
137
138 set +x
139 echo "generating modules/**/Makefile.am and m4/private.m4"
140
141 # Prepare m4/private.m4
142 rm -f m4/private.m4 && cat > m4/private.m4 << EOF
143 dnl  Private VLC macros - generated by bootstrap
144
145 EOF
146
147 if [ "${PKGCONFIG}" = "no" ]; then cat >> m4/private.m4 << EOF
148 dnl  User does not have pkg-config, so assume package was not found
149 AC_DEFUN([PKG_CHECK_MODULES],[ifelse([\$4], , :, [\$4])])
150
151 EOF
152 fi
153
154 if [ "${GETTEXT}" != "yes" ]; then cat >> m4/private.m4 << EOF
155 dnl  User does not have gettext, so this is a no-op
156 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
157
158 EOF
159 fi
160
161 rm -f m4/private.m4-tmp1 && cat > m4/private.m4-tmp1 << EOF
162 dnl  The required AM_CONDITIONAL calls
163 dnl  XXX: too many conditionals make the build very slow, disabled them
164 AC_DEFUN([VLC_CONDITIONALS], [
165 EOF
166 rm -f m4/private.m4-tmp2 && cat > m4/private.m4-tmp2 << EOF
167 dnl  The required AC_SUBST calls
168 AC_DEFUN([VLC_SUBSTS], [
169 EOF
170 rm -f m4/private.m4-tmp3 && cat > m4/private.m4-tmp3 << EOF
171 dnl  The required AC_OUTPUT calls
172 dnl  XXX: this feature is only supported starting from automake-1.7
173 AC_DEFUN([VLC_MAKEFILES], [AC_OUTPUT([
174 EOF
175 rm -f m4/private.m4-tmp4 && cat > m4/private.m4-tmp4 << EOF
176 dnl  Helper macro for vlc-config generation
177 AC_DEFUN([VLC_CONFIG_HELPER], [
178   cat >> vlc-config.in << BLAH
179 EOF
180
181 modules=""
182
183 rm -f modules/Makefile.am && cat > modules/Makefile.am << EOF
184 # Autogenerated by bootstrap - DO NOT EDIT
185 EXTRA_DIST = LIST
186 SUBDIRS = `sed -ne 's,modules/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`
187 EOF
188
189 for dir in `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac`
190 do
191   printf "."
192   modf="modules/${dir}/Modules.am"
193   makf="modules/${dir}/Makefile.am"
194   basedir="`echo "${dir}" | cut -f1 -d/`"
195   # automake will not recurse for make dist if we don't define SUBDIRS = .
196   subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`"
197   mods="`sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < "${modf}" | xargs`"
198   extra_libs=""
199   extra_ltlibs=""
200   for mod in $mods
201   do
202     extra_libs="${extra_libs} lib${mod}_plugin.a lib${mod}.a lib${mod}_pic.a"
203     extra_ltlibs="${extra_ltlibs} lib${mod}_plugin.la lib${mod}_builtin.la"
204   done
205   rm -f "${makf}" && cat > "${makf}" << EOF
206
207 # ${makf} automatically generated from ${modf} by bootstrap
208 # DO NOT EDIT - edit Modules.am or \$(top_srcdir)/bootstrap instead
209
210 basedir = ${basedir}
211 mods = ${mods}
212
213 NULL =
214 libvlc_LTLIBRARIES =
215 noinst_LTLIBRARIES =
216 EXTRA_DIST = Modules.am
217 BUILT_SOURCES =
218 clean_modules =
219 SUBDIRS = ${subdirs}
220 SUFFIXES = _plugin\$(LIBEXT) _plugin.a
221
222 libvlcdir = \$(libdir)/vlc/\$(basedir)
223
224 EXTRA_LIBRARIES = ${extra_libs}
225 EXTRA_LTLIBRARIES = ${extra_ltlibs}
226
227 include Modules.am
228
229 LTLIBVLC = \$(top_builddir)/src/libvlc.la
230
231 if BUILD_SHARED
232 LIBVLC = \$(top_builddir)/src/libvlc\$(LIBEXT)
233 LIBADD = \$(LIBVLC)
234 endif
235
236 all: all-modules
237
238 # Find out which modules were enabled and tell make to build them
239 all-modules:
240 if USE_LIBTOOL
241         @set fnord \$\$MAKEFLAGS; amf=\$\$2; targets=\`\\
242         if test "\$(plugin)" != "no"; then z=\$\$(\$(VLC_CONFIG) --list plugin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_plugin.la;; esac; done; fi; \\
243         if test "\$(builtin)" != "no"; then z=\$\$(\$(VLC_CONFIG) --list builtin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_builtin.la;; esac; done; fi; \\
244         \`; case "\$\$targets" in *lib*) \$(MAKE) \$(AM_MAKEFLAGS) \$\$targets || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; ;; esac; \\
245         test -z "\$\$fail"
246 else
247         @set fnord \$\$MAKEFLAGS; amf=\$\$2; targets=\`\\
248         if test "\$(plugin)" != "no"; then z=\$\$(\$(VLC_CONFIG) --list plugin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_plugin\$(LIBEXT);; esac; done; fi; \\
249         if test "\$(builtin)" != "no"; then z=\$\$(\$(VLC_CONFIG) --list builtin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}.a;; esac; done; fi; \\
250         if test "\$(pic)" = "pic"; then z=\$\$(\$(VLC_CONFIG) --list builtin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_pic.a;; esac; done; fi; \\
251         \`; case "\$\$targets" in *lib*) \$(MAKE) \$(AM_MAKEFLAGS) \$\$targets || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; ;; esac; \\
252         test -z "\$\$fail"
253 endif
254
255 # Build a plugin with the adequate linker and linker's flags
256 _plugin.a_plugin\$(LIBEXT):
257         @mod="\$*" ; mod=\$\${mod#lib} ; \
258         ldfl="\`\$(VLC_CONFIG) --libs plugin \$\$mod\` \$(LIBADD) -u \$(SYMPREF)\$(VLC_ENTRY)" ; \
259         case \`\$(VLC_CONFIG) --linkage \$\$mod\` in \\
260           c++)  ld="\$(CXXLINK)" ;; \
261           objc) ld="\$(OBJCLINK)" ;; \
262           c|*)  ld="\$(LINK)" ;; \
263         esac ; \
264         echo \$\$ld \$< \$\$ldfl ; \
265         \$\$ld \$< \$\$ldfl
266 #ifneq (,\$(findstring cygwin,\$(host)))
267 #       mv -f "\$@.exe" "\$@"
268 #endif
269         @if test -f "\$@.exe"; then mv -f "\$@.exe" "\$@"; fi
270
271 if MAINTAINER_MODE
272 \$(srcdir)/Makefile.am: \$(srcdir)/Modules.am \$(top_srcdir)/bootstrap
273         cd \$(top_srcdir) && \$(SHELL) ./bootstrap
274 endif
275
276 mostlyclean-local:
277 if USE_LIBTOOL
278         -rm -f *.la
279 else
280         -rm -f *.a *\$(LIBEXT)
281 endif
282
283 clean-local: \$(clean_modules)
284
285 ### automake creates libvlcdir after running install-*-local
286 ### so we have to create it ourselves first
287 install-exec-local: all-modules
288 if USE_LIBTOOL
289         @if test -z "\$(libvlc_LTLIBRARIES)"; then \
290           z=\$\$(\$(VLC_CONFIG) --list plugin); \
291           m=\`for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}_plugin.la" ;; esac; done\` ; \
292           test -z "\$\$m" || \
293             \$(MAKE) \$(AM_MAKEFLAGS) libvlc_LTLIBRARIES="\$\$m" install-libvlcLTLIBRARIES || exit \$\$? ; \
294         fi
295 else
296         mkdir -p -- "\$(DESTDIR)\$(libvlcdir)"
297         @z=\$\$(\$(VLC_CONFIG) --list plugin); \
298         for mod in \$(mods); do \
299           case "\$\$z " \
300             in *\ \$\${mod}\ *) \
301               echo \$(INSTALL_PROGRAM) "lib\$\${mod}_plugin\$(LIBEXT)" "\$(DESTDIR)\$(libvlcdir)/" ; \
302               \$(INSTALL_PROGRAM) "lib\$\${mod}_plugin\$(LIBEXT)" "\$(DESTDIR)\$(libvlcdir)/" || exit \$\$?; \
303               ;; \
304           esac; \
305         done
306         @z=\$\$(\$(VLC_CONFIG) --list builtin); \
307         for mod in \$(mods); do \
308           case "\$\$z " \
309             in *\ \$\${mod}\ *) \
310               echo \$(INSTALL_DATA) "lib\$\${mod}.a" "\$(DESTDIR)\$(libdir)/vlc/" ; \
311               \$(INSTALL_DATA) "lib\$\${mod}.a" "\$(DESTDIR)\$(libdir)/vlc/" || exit \$\$?; \
312               ;; \
313           esac; \
314         done
315 if BUILD_MOZILLA
316         @z=\$\$(\$(VLC_CONFIG) --list builtin); \
317         for mod in \$(mods); do \
318           case "\$\$z " \
319             in *\ \$\${mod}\ *) \
320               echo \$(INSTALL_DATA) "lib\$\${mod}_pic.a" "\$(DESTDIR)\$(libdir)/vlc/" ; \
321               \$(INSTALL_DATA) "lib\$\${mod}_pic.a" "\$(DESTDIR)\$(libdir)/vlc/" || exit \$\$?; \
322               ;; \
323           esac; \
324         done
325 endif
326 endif
327
328 uninstall-local:
329 if USE_LIBTOOL
330         @if test -z "\$(libvlc_LTLIBRARIES)"; then \
331           z=\$\$(\$(VLC_CONFIG) --list plugin); \
332           m=\`for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}_plugin.la" ;; esac; done\` ; \
333           test -z "\$\$m" || \
334             \$(MAKE) \$(AM_MAKEFLAGS) libvlc_LTLIBRARIES="\$\$m" uninstall-libvlcLTLIBRARIES || exit \$\$?; \
335         fi
336 else
337         @z=\$\$(\$(VLC_CONFIG) --list plugin); \
338         for mod in \$(mods); do \
339           case "\$\$z " \
340             in *\ \$\${mod}\ *) \
341               echo rm -f "\$(DESTDIR)\$(libvlcdir)/lib\$\${mod}_plugin\$(LIBEXT)" ; \
342               rm -f "\$(DESTDIR)\$(libvlcdir)/lib\$\${mod}_plugin\$(LIBEXT)" || true; \
343               ;; \
344           esac; \
345         done
346         @z=\$\$(\$(VLC_CONFIG) --list builtin); \
347         for mod in \$(mods); do \
348           case "\$\$z " \
349             in *\ \$\${mod}\ *) \
350               echo rm -f "\$(DESTDIR)\$(libdir)/vlc/lib\$\${mod}.a" ; \
351               rm -f "\$(DESTDIR)\$(libdir)/vlc/lib\$\${mod}.a" || true; \
352               ;; \
353           esac; \
354         done
355 if BUILD_MOZILLA
356         @z=\$\$(\$(VLC_CONFIG) --list builtin); \
357         for mod in \$(mods); do \
358           case "\$\$z " \
359             in *\ \$\${mod}\ *) \
360               echo rm -f "\$(DESTDIR)\$(libdir)/vlc/lib\$\${mod}_pic.a" ; \
361               rm -f "\$(DESTDIR)\$(libdir)/vlc/lib\$\${mod}_pic.a" || true; \
362               ;; \
363           esac; \
364         done
365 endif
366 endif
367
368 EOF
369   for mod in $mods
370   do
371     if grep '^nodist_SOURCES_'${mod}'' < "${modf}" >/dev/null 2>&1; then
372         NODIST=''; else
373         NODIST='#'; fi
374     cat >> m4/private.m4-tmp4 << EOF
375     ${mod}) list="\\\${list} ${dir}/lib${mod}" ;;
376 EOF
377 # Generation of modules/**/Makefile.am
378 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
379 # - L_ is for LIBRARIES_, D_ for DATA_, B_ for BUILT_SOURCES_, F_ for LDFLAGS_,
380 #   S_ for SOURCES_, _p is for _plugin, _b is for _builtin. This is to reduce
381 #   the resulting file size.
382 # - *_CFLAGS, *_CXXFLAGS etc. because per-object CPPFLAGS does not seem to
383 #   work properly with any automake version I tested.
384     cat >> "${makf}" << EOF
385 # The ${mod} plugin
386
387 EOF
388     if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
389 clean_modules += clean-${mod}
390 clean-${mod}:
391         -test -z "\$(nodist_SOURCES_${mod})" || rm -f \$(nodist_SOURCES_${mod})
392
393 EOF
394     fi
395     if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
396 BUILT_SOURCES += \$(B${mod})
397 EOF
398     fi
399     cat >> "${makf}" << EOF
400 lib${mod}_plugin_a_SOURCES = \$(SOURCES_${mod})
401 lib${mod}_plugin_la_SOURCES = \$(SOURCES_${mod})
402 EOF
403     if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
404 nodist_lib${mod}_plugin_a_SOURCES = \$(nodist_SOURCES_${mod})
405 nodist_lib${mod}_plugin_la_SOURCES = \$(nodist_SOURCES_${mod})
406 EOF
407     fi
408     cat >> "${makf}" << EOF
409 lib${mod}_plugin_a_CFLAGS = \`\$(VLC_CONFIG) --cflags plugin ${mod}\`
410 lib${mod}_plugin_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags plugin ${mod}\`
411 lib${mod}_plugin_a_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags plugin ${mod}\`
412 lib${mod}_plugin_la_CFLAGS = \`\$(VLC_CONFIG) --cflags plugin ${mod}\`
413 lib${mod}_plugin_la_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags plugin ${mod}\`
414 lib${mod}_plugin_la_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags plugin ${mod}\`
415 lib${mod}_plugin_la_LDFLAGS = \`\$(VLC_CONFIG) --libs plugin ${mod}\` \\
416         -rpath '\$(libvlcdir)' -module -shrext \$(LIBEXT)
417 lib${mod}_plugin_la_LIBADD = \$(LTLIBVLC)
418
419 lib${mod}_pic_a_SOURCES = \$(SOURCES_${mod})
420 EOF
421     if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
422 nodist_lib${mod}_pic_a_SOURCES = \$(nodist_SOURCES_${mod})
423 EOF
424     fi
425     cat >> "${makf}" << EOF
426 lib${mod}_pic_a_CFLAGS = \`\$(VLC_CONFIG) --cflags builtin pic ${mod}\`
427 lib${mod}_pic_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags builtin pic ${mod}\`
428 lib${mod}_pic_a_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags builtin pic ${mod}\`
429
430 lib${mod}_a_SOURCES = \$(SOURCES_${mod})
431 lib${mod}_builtin_la_SOURCES = \$(SOURCES_${mod})
432 EOF
433     if [ "${NODIST}" != "#" ]; then cat >> "${makf}" << EOF
434 nodist_lib${mod}_a_SOURCES = \$(nodist_SOURCES_${mod})
435 nodist_lib${mod}_builtin_la_SOURCES = \$(nodist_SOURCES_${mod})
436 EOF
437     fi
438     cat >> "${makf}" << EOF
439 lib${mod}_a_CFLAGS = \`\$(VLC_CONFIG) --cflags builtin ${mod}\`
440 lib${mod}_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags builtin ${mod}\`
441 lib${mod}_a_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags builtin ${mod}\`
442 lib${mod}_builtin_la_CFLAGS = \`\$(VLC_CONFIG) --cflags builtin ${mod}\`
443 lib${mod}_builtin_la_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags builtin ${mod}\`
444 lib${mod}_builtin_la_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags builtin ${mod}\`
445
446 EOF
447   done
448 done
449
450 cat >> m4/private.m4-tmp1 << EOF
451 ])
452 EOF
453 cat m4/private.m4-tmp1 >> m4/private.m4 && rm -f m4/private.m4-tmp1
454 cat >> m4/private.m4-tmp2 << EOF
455 ])
456 EOF
457 cat m4/private.m4-tmp2 >> m4/private.m4 && rm -f m4/private.m4-tmp2
458 cat >> m4/private.m4-tmp3 << EOF
459 ])])
460 EOF
461 cat m4/private.m4-tmp3 >> m4/private.m4 && rm -f m4/private.m4-tmp3
462 cat >> m4/private.m4-tmp4 << EOF
463 BLAH
464 ])
465 EOF
466 cat m4/private.m4-tmp4 >> m4/private.m4 && rm -f m4/private.m4-tmp4
467
468 echo " done."
469
470 ###
471 ###  classic bootstrap stuff
472 ###
473 set -x
474
475 # remove autotools cruft
476 rm -f aclocal.m4 configure config.log config.h config.h.in
477 rm -Rf autom4te*.cache
478 # remove old autotools extra cruft
479 rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh
480 # remove new autotools extra cruft
481 rm -Rf autotools
482 mkdir autotools
483 # remove libtool cruft
484 rm -f ltmain.sh libtool ltconfig
485 # remove gettext cruft
486 rm -f ABOUT-NLS
487 rm -Rf intl
488 # remove old vlc cruft
489 rm -f m4/oldgettext.m4 stamp-pic configure.ac.in Modules.am
490 # remove new vlc cruft
491 rm -f stamp-builtin stamp-h* mozilla/stamp-pic
492
493 # Automake complains if these are not present
494 rm -f vlc-config.in && printf "" > vlc-config.in
495 if [ "$GETTEXT" != "yes" ]; then
496   test -d intl || mkdir intl
497   printf "" > intl/Makefile.am
498   printf "" > ABOUT-NLS
499 fi
500
501 # Libtoolize directory
502 ${libtoolize} --copy --force
503 if test -f "ltmain.sh"; then
504   echo "$0: working around a minor libtool issue"
505   mv ltmain.sh autotools/
506 fi
507
508 # Do the rest
509 ${autopoint} -f
510 ${aclocal} ${ACLOCAL_ARGS}
511 ${autoconf}
512 ${autoheader}
513 ${automake} --add-missing --copy
514
515 ##
516 ##  files which need to be regenerated
517 ##
518 rm -f vlc-config.in vlc-config
519 rm -f src/misc/modules_builtin.h
520 rm -f mozilla/vlcintf.h
521
522 # Shut up
523 set +x
524
525 ##
526 ##  Tell the user about gettext, pkg-config and sed
527 ##
528 if [ "${GETTEXT}" = "old" ]; then
529   cat << EOF
530
531 ==========================================================
532 NOTE: you have an old version of gettext installed on your
533 system. The vlc build will work, but if your system does not
534 have libintl you will not have internationalization support.
535 We suggest upgrading to gettext 0.11.5 or later.
536 EOF
537 fi
538
539 if [ "$PKGCONFIG" = "no" ]; then
540   cat << EOF
541
542 ==============================================================
543 NOTE: you do not have the "pkg-config" utility on your system;
544 detection of the Gtk-2.0 and GNOME 2.0 libraries will not be
545 reliable.
546 EOF
547 fi
548
549 if [ "$AUTOMAKESUCKS" = "yes" ]; then
550   cat << EOF
551
552 =============================================================
553 IMPORTANT NOTE: your version of automake has a bug which will
554 prevent proper plugin compilation. Either compile VLC with
555 the --disable-plugins flag, or use a version of automake newer
556 than 1.6.1 (1.6.2 is OK, and so are the 1.5 series).
557 EOF
558 fi
559
560 if [ "$INSTALLSUCKS" = "yes" ]; then
561   cat << EOF
562
563 =============================================================
564 IMPORTANT NOTE: your version of automake has a bug which will
565 prevent proper installation. Do not use "make install" with this
566 version of automake, or use a version of automake newer than 1.5
567 (such as 1.6 or 1.7).
568 EOF
569 fi
570