]> git.sesse.net Git - vlc/blob - bootstrap
* ALL: WinCE compilation fixes (mostly nonexistent headers). A lot of
[vlc] / bootstrap
1 #! /bin/sh
2
3 ##  bootstrap file for vlc, the VideoLAN Client
4 ##  $Id: bootstrap,v 1.25 2002/11/10 18:04:22 sam Exp $
5 ##
6 ##  Authors: Samuel Hocevar <sam@zoy.org>
7
8 ###
9 ###  get a sane environment
10 ###
11 LANG=C
12 export LANG
13
14 ###
15 ###  argument check
16 ###
17 do_po=no
18 do_msvc=no
19 while test $# -gt 0; do
20   case "$1" in
21     --update-msvc)
22       do_msvc=yes
23       ;;
24     --update-po)
25       do_po=yes
26       ;;
27     *)
28       echo "$0: unknown option $1"
29       echo "recognized flags are --update-msvc and --update-po"
30       exit 1
31       ;;
32   esac
33   shift
34 done
35
36 ##
37 ##  Update the MSVC project files
38 ##
39 if test "$do_msvc" = "no"
40 then
41   echo "not updating MSVC project file. use --update-msvc to force doing it."
42 else
43   if test ! -f Makefile
44   then
45     echo "no Makefile found, did you run ./configure?"
46     exit 1
47   fi
48
49   #  The evil ^M
50   M='\r'
51
52   #  Sources that get built under Win32
53   VLC_SOURCES=`make show-vlc-sources | grep '^X: ' | cut -b3-`
54   LIBVLC_SOURCES=`make show-libvlc-sources | grep '^X: ' | cut -b3-`
55   LIBVLC_HEADERS=`make show-libvlc-headers | grep '^X: ' | cut -b3-`
56   LIBVLC_PKG_HEADERS=`make show-libvlc-pkg-headers | grep '^X: ' | cut -b3-`
57
58   for target in msvc/vlc.vcp msvc/vlc.dsp
59   do
60     rm -f ${target}
61     #  Top of the project file
62     cat ${target}.in > ${target}
63     #  The source files
64     cat >> ${target} << EOF
65 # Begin Group "Source Files"${M}
66 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"${M}
67 # Begin Group "vlc"${M}
68 EOF
69     for file in ${VLC_SOURCES}
70     do
71       cat >> ${target} << EOF
72 # Begin Source File${M}
73 SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
74 # End Source File${M}
75 EOF
76     done
77     cat >> ${target} << EOF
78 # End Group${M}
79 # Begin Group "libvlc"${M}
80 EOF
81     for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep -v "/.*/"`
82     do
83       cat >> ${target} << EOF
84 # Begin Source File${M}
85 SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
86 # ADD CPP /D "__VLC__" /D PLUGIN_PATH=\\"plugins\\" /D DATA_PATH=\\"share\\"${M}
87 # End Source File${M}
88 EOF
89     done
90     for subdir in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep "/.*/" | cut -f2 -d/ | sort | uniq`
91     do
92       cat >> ${target} << EOF
93 # Begin Group "${subdir}"${M}
94 EOF
95       for file in `for i in ${LIBVLC_SOURCES} ; do echo $i ; done | grep "/${subdir}/"`
96       do
97       if test "${target}" = "msvc/vlc.vcp"
98       then
99         cat >> ${target} << EOF
100 # Begin Source File${M}
101 SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
102 # ADD CPP /D "__VLC__" /D PLUGIN_PATH=\\"plugins\\" /D DATA_PATH=\\"share\\"${M}
103 !IF "\$(CFG)" == "vlc - Win32 (WCE MIPS) Release"${M}
104 # PROP Intermediate_Dir "Release\\${subdir}"${M}
105 # PROP Output_Dir "Release\\${subdir}"${M}
106 !ELSEIF "\$(CFG)" == "vlc - Win32 (WCE MIPS) Debug"${M}
107 # PROP Intermediate_Dir "Debug\\${subdir}"${M}
108 # PROP Output_Dir "Debug\\${subdir}"${M}
109 !ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH4) Release"${M}
110 # PROP Intermediate_Dir "Release\\${subdir}"${M}
111 # PROP Output_Dir "Release\\${subdir}"${M}
112 !ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH4) Debug"${M}
113 # PROP Intermediate_Dir "Debug\\${subdir}"${M}
114 # PROP Output_Dir "Debug\\${subdir}"${M}
115 !ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH3) Release"${M}
116 # PROP Intermediate_Dir "Release\\${subdir}"${M}
117 # PROP Output_Dir "Release\\${subdir}"${M}
118 !ELSEIF "\$(CFG)" == "vlc - Win32 (WCE SH3) Debug"${M}
119 # PROP Intermediate_Dir "Debug\\${subdir}"${M}
120 # PROP Output_Dir "Debug\\${subdir}"${M}
121 !ELSEIF "\$(CFG)" == "vlc - Win32 (WCE ARM) Release"${M}
122 # PROP Intermediate_Dir "Release\\${subdir}"${M}
123 # PROP Output_Dir "Release\\${subdir}"${M}
124 !ELSEIF "\$(CFG)" == "vlc - Win32 (WCE ARM) Debug"${M}
125 # PROP Intermediate_Dir "Debug\\${subdir}"${M}
126 # PROP Output_Dir "Debug\\${subdir}"${M}
127 !ELSEIF "\$(CFG)" == "vlc - Win32 (WCE x86em) Release"${M}
128 # PROP Intermediate_Dir "Release\\${subdir}"${M}
129 # PROP Output_Dir "Release\\${subdir}"${M}
130 !ELSEIF "\$(CFG)" == "vlc - Win32 (WCE x86em) Debug"${M}
131 # PROP Intermediate_Dir "Debug\\${subdir}"${M}
132 # PROP Output_Dir "Debug\\${subdir}"${M}
133 !ENDIF${M}
134 # End Source File${M}
135 EOF
136         else
137           cat >> ${target} << EOF
138 # Begin Source File${M}
139 SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
140 # ADD CPP /D "__VLC__" /D PLUGIN_PATH=\\"plugins\\" /D DATA_PATH=\\"share\\"${M}
141 !IF "\$(CFG)" == "vlc - Win32 Release"${M}
142 # PROP Intermediate_Dir "Release\\${subdir}"${M}
143 # PROP Output_Dir "Release\\${subdir}"${M}
144 !ELSEIF "\$(CFG)" == "vlc - Win32 Debug"${M}
145 # PROP Intermediate_Dir "Debug\\${subdir}"${M}
146 # PROP Output_Dir "Debug\\${subdir}"${M}
147 !ENDIF${M}
148 # End Source File${M}
149 EOF
150         fi
151       done
152       cat >> ${target} << EOF
153 # End Group${M}
154 EOF
155     done
156     cat >> ${target} << EOF
157 # End Group${M}
158 # End Group${M}
159 EOF
160     #  The modules
161     echo 'no modules yet'
162     #  The headers
163     cat >> ${target} << EOF
164 # Begin Group "Header Files"${M}
165 # PROP Default_Filter "h;hpp;hxx;hm;inl"${M}
166 EOF
167     for file in ${LIBVLC_HEADERS}
168     do
169       cat >> ${target} << EOF
170 # Begin Source File${M}
171 SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
172 # End Source File${M}
173 EOF
174     done
175     cat >> ${target} << EOF
176 # Begin Group "vlc"${M}
177 EOF
178     for file in ${LIBVLC_PKG_HEADERS}
179     do
180       cat >> ${target} << EOF
181 # Begin Source File${M}
182 SOURCE="..\\`echo $file | sed -e 's%/%\\\\%g'`"${M}
183 # End Source File${M}
184 EOF
185     done
186     cat >> ${target} << EOF
187 # End Group${M}
188 # End Group${M}
189 EOF
190     #  Bottom of the project file - handles resource files too
191     cat ${target}.out >> ${target}
192   done
193
194   exit 0
195 fi
196
197 ##
198 ##  Update the potfiles because no one ever does it
199 ##
200 if test "$do_po" = "no"
201 then
202   echo "not updating potfiles. use --update-po to force doing it."
203 else
204   cd po
205   make update-po 2>&1 | grep '^[^:]*:$' | cut -f1 -d: | tr '\n' ' ' | sed 's/ $//'
206   cd ..
207
208   exit 0
209 fi
210
211 ##
212 ## Check that our tools don't suck
213 ##
214 SEDSUCKS=no
215 if test ! 20000 -eq `perl -e 'printf "%s\n","a"x20000' | sed -e 's/.//' 2>/dev/null | wc -c`
216 then
217   SEDSUCKS=yes
218 fi
219
220 PERLSUCKS=no
221 AUTOMAKESUCKS=no
222
223 ##
224 ## Generate the modules makefile, by parsing modules/**/Modules.am
225 ##
226
227 printf "generating Modules.am and configure.ac"
228
229 echo > Modules.am
230 echo > configure.ac
231
232 ALL_FLAGS="`sed -n -e '/^[^=A-Z]*[A-Z]*FLAGS_[^=]*=/s/[^=A-Z]*\([A-Z]*FLAGS_[^=]*=\).*/\1/p' < configure.ac.in | sort | uniq`"
233
234 cat >> configure.ac << EOF
235 dnl ################################################################
236 dnl # Do not edit this file, it was generated from configure.ac.in #
237 dnl ################################################################
238
239 EOF
240 sed -n -e '/dnl do not touch this line/q;p' < configure.ac.in >> configure.ac
241
242 modules=""
243 for mf in `sed -ne 's@[^a-z]*\([^ ]*\)am.*@modules/\1am@p' < modules/Makefile.am`
244 do
245   printf "."
246   dir=`echo ${mf} | sed -e 's@\(.*\)/.*@\1@'`
247   topdir=`echo ${dir} | cut -f2 -d/`
248   sym=`echo ${dir} | sed -e 'y@/@_@'`
249   cat >> Modules.am << EOF
250 # Directory ${dir}
251
252 include ${dir}/Modules.am
253
254 EOF
255   sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < ${mf} | while read mod
256   do
257     LINKER="LINK"
258     if echo "$ALL_FLAGS" | grep '^CPPFLAGS_'${mod}'=$' >/dev/null 2>&1; then
259         echo "AC_SUBST(CPPFLAGS_${mod})" >> configure.ac; fi
260     if echo "$ALL_FLAGS" | grep '^CFLAGS_'${mod}'=$' >/dev/null 2>&1; then
261         echo "AC_SUBST(CFLAGS_${mod})" >> configure.ac; fi
262     if echo "$ALL_FLAGS" | grep '^CXXFLAGS_'${mod}'=$' >/dev/null 2>&1; then
263         LINKER="CXXLINK"
264         echo "AC_SUBST(CXXFLAGS_${mod})" >> configure.ac; fi
265     if echo "$ALL_FLAGS" | grep '^OBJCFLAGS_'${mod}'=$' >/dev/null 2>&1; then
266         LINKER="OBJCLINK"
267         echo "AC_SUBST(OBJCFLAGS_${mod})" >> configure.ac; fi
268     if echo "$ALL_FLAGS" | grep '^LDFLAGS_'${mod}'=$' >/dev/null 2>&1; then
269         echo "AC_SUBST(LDFLAGS_${mod})" >> configure.ac; fi
270     if grep '^SOURCES_'${mod}'.*=.*PRIVATE' < ${mf} >/dev/null 2>&1; then
271         PRIVATE='#'; else
272         PRIVATE=''; fi
273     if grep '^nodist_SOURCES_'${mod}'' < ${mf} >/dev/null 2>&1; then
274         NODIST=''; else
275         NODIST='#'; fi
276     cat >> configure.ac << EOF
277 AM_CONDITIONAL(${mod}_plugin, test x\$${mod}_plugin = xyes)
278 AM_CONDITIONAL(${mod}_builtin, test x\$${mod}_builtin = xyes)
279 EOF
280 # Generation of Modules.am
281 # ~~~~~~~~~~~~~~~~~~~~~~~~
282 # - L_ is for LIBRARIES_, D_ for DATA_, B_ for BUILT_SOURCES_, F_ for LDFLAGS_,
283 #   S_ for SOURCES_, _p is for _plugin, _b is for _builtin. This is to reduce
284 #   the resulting file size.
285 # - *_CFLAGS, *_CXXFLAGS etc. include *_CPPFLAGS because per-object CPPFLAGS
286 #   does not seem to work properly with any automake version I tested.
287     cat >> Modules.am << EOF
288 # The ${mod} plugin
289
290 if ${mod}_plugin
291 if UNTRUE
292 L_${mod}_p = ${dir}/lib${mod}_plugin.a
293 endif
294 D_${mod}_p = ${dir}/lib${mod}_plugin\$(LIBEXT)
295 ${NODIST}B_${mod}_p = \$(nodist_SOURCES_${mod})
296 endif
297 if ${mod}_builtin
298 L_${mod}_b = ${dir}/lib${mod}.a
299 F_${mod}_b = \$(LDFLAGS_${mod})
300 if BUILD_MOZILLA
301 L_${mod}_pic = ${dir}/lib${mod}_pic.a
302 endif
303 ${NODIST}B_${mod}_b = \$(nodist_SOURCES_${mod})
304 endif
305
306 L_builtin += \$(L_${mod}_b)
307 L_builtin_pic += \$(L_${mod}_pic)
308 LDFLAGS_builtin += \$(F_${mod}_b)
309 ${PRIVATE}BUILT_SOURCES += \$(B_${mod}_p) \$(B_${mod}_b)
310 PLUGIN_FILES += \$(D_${mod}_p)
311
312 ${PRIVATE}${sym}_lib${mod}_plugin_a_SOURCES = \$(SOURCES_${mod})
313 ${NODIST}${PRIVATE}nodist_${sym}_lib${mod}_plugin_a_SOURCES = \$(nodist_SOURCES_${mod})
314 ${sym}_lib${mod}_plugin_a_CPPFLAGS = \$(CPPFLAGS_plugin) \$(CPPFLAGS_${mod}) -DMODULE_NAME=${mod} -DMODULE_NAME_IS_${mod}
315 ${sym}_lib${mod}_plugin_a_CFLAGS = \$(CFLAGS_plugin) \$(CFLAGS_${mod}) \$(${sym}_lib${mod}_plugin_a_CPPFLAGS)
316 ${sym}_lib${mod}_plugin_a_CXXFLAGS = \$(CXXFLAGS_plugin) \$(CXXFLAGS_${mod}) \$(${sym}_lib${mod}_plugin_a_CPPFLAGS)
317 ${sym}_lib${mod}_plugin_a_OBJCFLAGS = \$(OBJCFLAGS_plugin) \$(OBJCFLAGS_${mod}) \$(${sym}_lib${mod}_plugin_a_CPPFLAGS)
318
319 ${sym}_lib${mod}_pic_a_SOURCES = ${PRIVATE}\$(SOURCES_${mod})
320 ${NODIST}nodist_${sym}_lib${mod}_pic_a_SOURCES = ${PRIVATE}\$(nodist_SOURCES_${mod})
321 ${sym}_lib${mod}_pic_a_CPPFLAGS = \$(CPPFLAGS_builtin_pic) \$(CPPFLAGS_${mod}) -DMODULE_NAME=${mod} -DMODULE_NAME_IS_${mod}
322 ${sym}_lib${mod}_pic_a_CFLAGS = \$(CFLAGS_builtin_pic) \$(CFLAGS_${mod}) \$(${sym}_lib${mod}_pic_a_CPPFLAGS)
323 ${sym}_lib${mod}_pic_a_CXXFLAGS = \$(CXXFLAGS_builtin_pic) \$(CXXFLAGS_${mod}) \$(${sym}_lib${mod}_pic_a_CPPFLAGS)
324 ${sym}_lib${mod}_pic_a_OBJCFLAGS = \$(OBJCFLAGS_builtin_pic) \$(OBJCFLAGS_${mod}) \$(${sym}_lib${mod}_pic_a_CPPFLAGS)
325
326 ${sym}_lib${mod}_a_SOURCES = ${PRIVATE}\$(SOURCES_${mod})
327 ${NODIST}nodist_${sym}_lib${mod}_a_SOURCES = ${PRIVATE}\$(nodist_SOURCES_${mod})
328 ${sym}_lib${mod}_a_CPPFLAGS = \$(CPPFLAGS_builtin) \$(CPPFLAGS_${mod}) -DMODULE_NAME=${mod} -DMODULE_NAME_IS_${mod}
329 ${sym}_lib${mod}_a_CFLAGS = \$(CFLAGS_builtin) \$(CFLAGS_${mod}) \$(${sym}_lib${mod}_a_CPPFLAGS)
330 ${sym}_lib${mod}_a_CXXFLAGS = \$(CXXFLAGS_builtin) \$(CXXFLAGS_${mod}) \$(${sym}_lib${mod}_a_CPPFLAGS)
331 ${sym}_lib${mod}_a_OBJCFLAGS = \$(OBJCFLAGS_builtin) \$(OBJCFLAGS_${mod}) \$(${sym}_lib${mod}_a_CPPFLAGS)
332
333 libvlc_LIBRARIES += \$(L_${mod}_b) \$(L_${mod}_pic)
334 lib${mod}_DATA = \$(D_${mod}_p)
335
336 lib${mod}dir = \$(libdir)/vlc/${topdir}
337 ${PRIVATE}noinst_LIBRARIES += \$(L_${mod}_p)
338 ${PRIVATE}${dir}/lib${mod}_plugin\$(LIBEXT): \$(${sym}_lib${mod}_plugin_a_OBJECTS)
339 ${PRIVATE}      \$(${LINKER}) \$^ -shared \$(LDFLAGS_plugins) \$(LDFLAGS_${mod})
340
341
342 EOF
343   done
344 done
345
346 echo "AM_CONDITIONAL(UNTRUE, false)" >> configure.ac
347 sed -n -e '/dnl do not touch this line/,//p' < configure.ac.in >> configure.ac
348
349 echo "done."
350
351 ###
352 ###  classic bootstrap stuff
353 ###
354 set -x
355 rm -f aclocal.m4 m4/oldgettext.m4 configure config.guess config.log config.sub ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh
356 rm -Rf intl
357
358 # Check for gettext
359 if gettextize --version >/dev/null 2>&1
360 then
361 if expr `gettextize --version | sed -e '1s/[^0-9]*//' -e q` \
362         '>' 0.11.2 >/dev/null 2>&1
363 then
364   # We have gettext, and a recent version! Everything is cool.
365   autopoint || exit 1
366   GETTEXT=yes
367 else
368   # User's gettext is too old. try to continue anyway.
369   mkdir -p intl
370   echo > intl/Makefile.am
371   echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' > m4/oldgettext.m4
372   GETTEXT=old
373 fi;else
374   # we don't have gettext. grmbl. try to continue anyway.
375   mkdir -p intl
376   echo > intl/Makefile.am
377   echo 'AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])' > m4/oldgettext.m4
378   GETTEXT=no
379 fi
380
381 # Check for automake
382 amvers="none"
383 if automake-1.7 --version >/dev/null 2>&1
384 then
385   amvers="-1.7"
386 else
387   if automake-1.6 --version >/dev/null 2>&1
388   then
389     amvers="-1.6"
390     if expr "`automake-1.6 --version | sed -e '1s/[^0-9]*//' -e q`" "<=" "1.6.1" > /dev/null 2>&1
391     then AUTOMAKESUCKS=yes
392     fi
393   else
394     if automake-1.5 --version >/dev/null 2>&1
395     then
396       amvers="-1.5"
397     else
398       if automake --version > /dev/null 2>&1
399       then
400         amvers=`automake --version | sed -e '1s/[^0-9]*//' -e q`
401         case $amvers in
402         1.6|1.6.0|1.6.1)
403           AUTOMAKESUCKS=yes ;;
404         esac
405
406         if expr "$amvers" "<" "1.5" > /dev/null 2>&1
407         then amvers="none"
408         else amvers=""
409         fi
410       fi
411     fi
412   fi
413 fi
414
415 if test x$amvers = xnone
416 then
417   set +x
418   echo "you need automake version 1.5 or later"
419   exit 1
420 fi
421
422 # Do the rest
423 aclocal${amvers} -I m4 || exit 1
424 autoheader || exit 1
425
426 automake${amvers} --foreign --add-missing --copy || PERLSUCKS=yes
427
428 case "$PERLSUCKS" in
429   no)
430   ;;
431   yes)
432     set +x
433     echo ""
434     echo "==========================================================="
435     echo "IMPORTANT NOTE: automake failed. On certain systems this is"
436     echo "because of insufficient stack size. Please set the stack"
437     echo "size to something bigger or unlimited (\`unlimit stacksize')"
438     echo "and try again."
439     exit 1
440   ;;
441 esac
442
443 # Wrap automake's long lines, because the Solaris sed doesn't support lines
444 # longer than 3999 characters, and ./configure calls sed. We use Perl instead
445 # of sed for obvious reasons :)
446 perl -ne 'if(/^.{500}/) {s/(.{200}[^ ]* )/$1\\\n\t/g} print $_' < Makefile.in > Makefile.in.tmp && mv Makefile.in.tmp Makefile.in
447
448 autoconf || exit 1
449
450 ##
451 ##  headers which need to be regenerated
452 ##
453 rm -f src/misc/modules_builtin.h src/misc/modules_plugin.h
454 rm -f include/vlc_symbols.h
455 rm -f mozilla/vlcintf.h
456
457 ##
458 ##  Shut up
459 ##
460 set +x
461
462 ##
463 ##  Glade sometimes sucks
464 ##
465 echo "workarounds for annoying glade features"
466 for file in gnome_interface.c gtk_interface.c
467 do
468 if grep "DO NOT EDIT THIS FILE" modules/gui/gtk/$file 2>&1 > /dev/null
469 then
470     rm -f /tmp/$$.$file.bak
471     cat > /tmp/$$.$file.bak << EOF
472 /* This file was created automatically by glade and fixed by bootstrap */
473
474 #include <vlc/vlc.h>
475 EOF
476     sed -e 1,7d \
477         -e 's#_("-:--:--")#"-:--:--"#' \
478         -e 's#_("---")#"---"#' \
479         -e 's#_("--")#"--"#' \
480         -e 's#_("/dev/dvd")#"/dev/dvd"#' \
481         -e 's#_(\("./."\))#\1#' \
482         < modules/gui/gtk/$file >> /tmp/$$.$file.bak
483     mv -f /tmp/$$.$file.bak modules/gui/gtk/$file
484 fi
485 done
486
487 file=gtk_support.h
488 if grep "DO NOT EDIT THIS FILE" modules/gui/gtk/$file 2>&1 > /dev/null
489 then
490     rm -f /tmp/$$.$file.bak
491     sed -e 's/DO NOT EDIT THIS FILE.*/This file was created automatically by glade and fixed by bootstrap/ ; s/#if.*ENABLE_NLS.*/#if defined( ENABLE_NLS ) \&\& defined ( HAVE_GETTEXT )/' < modules/gui/gtk/$file > /tmp/$$.$file.bak
492     mv -f /tmp/$$.$file.bak modules/gui/gtk/$file
493 fi
494
495 ##
496 ##  Tell the user about gettext and sed
497 ##
498 case "$GETTEXT" in
499   yes)
500   ;;
501   no)
502     echo ""
503     echo "==========================================================="
504     echo "IMPORTANT NOTE: you do not have gettext installed on your"
505     echo "system. The vlc build will work, but you will not have"
506     echo "internationalization support. We suggest installing gettext."
507   ;;
508   old)
509     echo ""
510     echo "=========================================================="
511     echo "NOTE: you have an old version of gettext installed on your"
512     echo "system. We suggest upgrading to gettext 0.11.3 or later."
513   ;;
514 esac
515
516 case "$AUTOMAKESUCKS" in
517   no)
518   ;;
519   yes)
520     echo ""
521     echo "============================================================="
522     echo "IMPORTANT NOTE: your version of automake has a bug which will"
523     echo "prevent proper plugin compilation. Either compile VLC with"
524     echo "the --disable-plugins flag, or use a version of automake newer"
525     echo "than 1.6.1 (1.6.2 is OK, and so are the 1.5 series)."
526   ;;
527 esac
528
529 case "$SEDSUCKS" in
530   no)
531   ;;
532   yes)
533     echo ""
534     echo "============================================================="
535     echo "IMPORTANT NOTE: the version of 'sed' on your system is unable"
536     echo "to handle long lines. bootstrap will try its best to generate"
537     echo "a correct Makefile, but you should expect problems. We highly"
538     echo "recommend installing GNU sed."
539   ;;
540 esac
541