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