3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable AltiVec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-dvdplay dvdplay input module (default disabled)"
50 --with-dvdplay=PATH libdvdplay headers and libraries"
52 --enable-dvbpsi dvbpsi ts demux module (default disabled)"
54 --with-dvbpsi=PATH libdvbpsi headers and libraries"
56 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
58 --enable-v4l Video4Linux input support (default disabled)"
60 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
62 --enable-satellite satellite card support (default disabled)"
64 --enable-avi AVI demux module (default enabled)"
68 --enable-mad libmad module (default disabled)"
70 --with-mad=PATH path to libmad"
72 --with-mad-tree=PATH mad tree for static linking"
74 --enable-ffmpeg ffmpeg codec (default disabled)"
76 --with-ffmpeg=PATH path to ffmpeg installation"
78 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
80 --enable-faad faad codec (default disabled)"
82 --with-faad=PATH path to faad installation"
84 --with-faad-tree=PATH faad tree for static linking"
86 --enable-mp4 MP4 demux module (default enabled)"
88 --enable-a52 A/52 support with liba52 (default enabled)"
90 --with-a52=PATH a52 headers and libraries"
92 --with-a52-tree=PATH a52dec tree for static linking "
94 --enable-cinepak Cinepak decoder (default enabled)"
96 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
98 --enable-dv DV decoder support (default disabled)"
102 --enable-x11 X11 support (default enabled)"
104 --enable-xvideo XVideo support (default enabled)"
106 --enable-sdl SDL support (default enabled)"
108 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
110 --enable-directx Win32 DirectX support (default enabled on Win32)"
112 --with-directx=PATH Win32 DirectX headers"
114 --enable-fb Linux framebuffer support (default enabled on Linux)"
116 --enable-mga Linux kernel Matrox support (default disabled)"
118 --enable-ggi GGI support (default disabled)"
120 --with-ggi=PATH path to libggi"
122 --enable-glide Glide (3dfx) support (default disabled)"
124 --with-glide=PATH path to libglide"
126 --enable-aa aalib output (default disabled)"
130 --enable-oss Linux OSS /dev/dsp support (enabled on Linux)"
132 --enable-esd Esound library support (default disabled)"
134 --enable-arts aRts sound server (default disabled)"
136 --enable-alsa ALSA sound support for Linux (default disabled)"
138 --enable-waveout Win32 waveOut module (default enabled on Win32)"
142 --enable-gtk Gtk+ support (default enabled)"
144 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
146 --enable-familiar Familiar Gtk+ support (default disabled)"
148 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
150 --enable-gnome Gnome interface support (default disabled)"
152 --enable-qt Qt interface support (default disabled)"
154 --enable-kde KDE interface support (default disabled)"
156 --enable-qte Qt embedded interface support (default disabled)"
158 --enable-macosx MacOS X support (default enabled on MacOS X)"
160 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
162 --enable-intfwin Win32 interface support (default disabled)"
164 --with-bcbuilder=PATH Borland C++ Builder installation path"
166 --enable-ncurses ncurses interface support (default disabled)"
168 --enable-xosd xosd interface support (default disabled)"
170 --enable-lirc lirc support (default disabled)"
174 --with-words=endianness set endianness (big or little)"
176 --enable-gprof gprof profiling (default disabled)"
178 --enable-cprof cprof profiling (default disabled)"
180 --enable-pth GNU Pth support (default disabled)"
182 --enable-st State Threads (default disabled)"
184 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
186 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
188 # Initialize some variables set by options.
189 # The variables have the same names as the options, with
190 # dashes changed to underlines.
192 cache_file=./config.cache
201 program_transform_name=s,x,x,
209 bindir='${exec_prefix}/bin'
210 sbindir='${exec_prefix}/sbin'
211 libexecdir='${exec_prefix}/libexec'
212 datadir='${prefix}/share'
213 sysconfdir='${prefix}/etc'
214 sharedstatedir='${prefix}/com'
215 localstatedir='${prefix}/var'
216 libdir='${exec_prefix}/lib'
217 includedir='${prefix}/include'
218 oldincludedir='/usr/include'
219 infodir='${prefix}/info'
220 mandir='${prefix}/man'
222 # Initialize some other variables.
225 SHELL=${CONFIG_SHELL-/bin/sh}
226 # Maximum number of lines to put in a shell here document.
233 # If the previous option needs an argument, assign it.
234 if test -n "$ac_prev"; then
235 eval "$ac_prev=\$ac_option"
241 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
245 # Accept the important Cygnus configure options, so we can diagnose typos.
249 -bindir | --bindir | --bindi | --bind | --bin | --bi)
251 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
252 bindir="$ac_optarg" ;;
254 -build | --build | --buil | --bui | --bu)
256 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
257 build="$ac_optarg" ;;
259 -cache-file | --cache-file | --cache-fil | --cache-fi \
260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
261 ac_prev=cache_file ;;
262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
264 cache_file="$ac_optarg" ;;
266 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
268 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
270 datadir="$ac_optarg" ;;
272 -disable-* | --disable-*)
273 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
274 # Reject names that are not valid shell variable names.
275 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
276 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
278 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
279 eval "enable_${ac_feature}=no" ;;
281 -enable-* | --enable-*)
282 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
283 # Reject names that are not valid shell variable names.
284 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
285 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
287 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
292 eval "enable_${ac_feature}='$ac_optarg'" ;;
294 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
295 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
296 | --exec | --exe | --ex)
297 ac_prev=exec_prefix ;;
298 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
299 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
300 | --exec=* | --exe=* | --ex=*)
301 exec_prefix="$ac_optarg" ;;
303 -gas | --gas | --ga | --g)
304 # Obsolete; use --with-gas.
307 -help | --help | --hel | --he)
308 # Omit some internal or obsolete options to make the list less imposing.
309 # This message is too long to be a string in the A/UX 3.1 sh.
311 Usage: configure [options] [host]
312 Options: [defaults in brackets after descriptions]
314 --cache-file=FILE cache test results in FILE
315 --help print this message
316 --no-create do not create output files
317 --quiet, --silent do not print \`checking...' messages
318 --version print the version of autoconf that created configure
319 Directory and file names:
320 --prefix=PREFIX install architecture-independent files in PREFIX
322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
324 --bindir=DIR user executables in DIR [EPREFIX/bin]
325 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
326 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
327 --datadir=DIR read-only architecture-independent data in DIR
329 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
330 --sharedstatedir=DIR modifiable architecture-independent data in DIR
332 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
333 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
334 --includedir=DIR C header files in DIR [PREFIX/include]
335 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
336 --infodir=DIR info documentation in DIR [PREFIX/info]
337 --mandir=DIR man documentation in DIR [PREFIX/man]
338 --srcdir=DIR find the sources in DIR [configure dir or ..]
339 --program-prefix=PREFIX prepend PREFIX to installed program names
340 --program-suffix=SUFFIX append SUFFIX to installed program names
341 --program-transform-name=PROGRAM
342 run sed PROGRAM on installed program names
346 --build=BUILD configure for building on BUILD [BUILD=HOST]
347 --host=HOST configure for HOST [guessed]
348 --target=TARGET configure for TARGET [TARGET=HOST]
349 Features and packages:
350 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
351 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
354 --x-includes=DIR X include files are in DIR
355 --x-libraries=DIR X library files are in DIR
357 if test -n "$ac_help"; then
358 echo "--enable and --with options recognized:$ac_help"
362 -host | --host | --hos | --ho)
364 -host=* | --host=* | --hos=* | --ho=*)
367 -includedir | --includedir | --includedi | --included | --include \
368 | --includ | --inclu | --incl | --inc)
369 ac_prev=includedir ;;
370 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
371 | --includ=* | --inclu=* | --incl=* | --inc=*)
372 includedir="$ac_optarg" ;;
374 -infodir | --infodir | --infodi | --infod | --info | --inf)
376 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
377 infodir="$ac_optarg" ;;
379 -libdir | --libdir | --libdi | --libd)
381 -libdir=* | --libdir=* | --libdi=* | --libd=*)
382 libdir="$ac_optarg" ;;
384 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
385 | --libexe | --libex | --libe)
386 ac_prev=libexecdir ;;
387 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
388 | --libexe=* | --libex=* | --libe=*)
389 libexecdir="$ac_optarg" ;;
391 -localstatedir | --localstatedir | --localstatedi | --localstated \
392 | --localstate | --localstat | --localsta | --localst \
393 | --locals | --local | --loca | --loc | --lo)
394 ac_prev=localstatedir ;;
395 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
396 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
397 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
398 localstatedir="$ac_optarg" ;;
400 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
402 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
403 mandir="$ac_optarg" ;;
406 # Obsolete; use --without-fp.
409 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
413 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
414 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
417 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
418 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
419 | --oldin | --oldi | --old | --ol | --o)
420 ac_prev=oldincludedir ;;
421 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
422 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
423 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
424 oldincludedir="$ac_optarg" ;;
426 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
428 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
429 prefix="$ac_optarg" ;;
431 -program-prefix | --program-prefix | --program-prefi | --program-pref \
432 | --program-pre | --program-pr | --program-p)
433 ac_prev=program_prefix ;;
434 -program-prefix=* | --program-prefix=* | --program-prefi=* \
435 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
436 program_prefix="$ac_optarg" ;;
438 -program-suffix | --program-suffix | --program-suffi | --program-suff \
439 | --program-suf | --program-su | --program-s)
440 ac_prev=program_suffix ;;
441 -program-suffix=* | --program-suffix=* | --program-suffi=* \
442 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
443 program_suffix="$ac_optarg" ;;
445 -program-transform-name | --program-transform-name \
446 | --program-transform-nam | --program-transform-na \
447 | --program-transform-n | --program-transform- \
448 | --program-transform | --program-transfor \
449 | --program-transfo | --program-transf \
450 | --program-trans | --program-tran \
451 | --progr-tra | --program-tr | --program-t)
452 ac_prev=program_transform_name ;;
453 -program-transform-name=* | --program-transform-name=* \
454 | --program-transform-nam=* | --program-transform-na=* \
455 | --program-transform-n=* | --program-transform-=* \
456 | --program-transform=* | --program-transfor=* \
457 | --program-transfo=* | --program-transf=* \
458 | --program-trans=* | --program-tran=* \
459 | --progr-tra=* | --program-tr=* | --program-t=*)
460 program_transform_name="$ac_optarg" ;;
462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
463 | -silent | --silent | --silen | --sile | --sil)
466 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
468 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
470 sbindir="$ac_optarg" ;;
472 -sharedstatedir | --sharedstatedir | --sharedstatedi \
473 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
474 | --sharedst | --shareds | --shared | --share | --shar \
476 ac_prev=sharedstatedir ;;
477 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
478 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
479 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
481 sharedstatedir="$ac_optarg" ;;
483 -site | --site | --sit)
485 -site=* | --site=* | --sit=*)
488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
491 srcdir="$ac_optarg" ;;
493 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
494 | --syscon | --sysco | --sysc | --sys | --sy)
495 ac_prev=sysconfdir ;;
496 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
497 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
498 sysconfdir="$ac_optarg" ;;
500 -target | --target | --targe | --targ | --tar | --ta | --t)
502 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
503 target="$ac_optarg" ;;
505 -v | -verbose | --verbose | --verbos | --verbo | --verb)
508 -version | --version | --versio | --versi | --vers)
509 echo "configure generated by autoconf version 2.13"
513 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
514 # Reject names that are not valid shell variable names.
515 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
516 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
518 ac_package=`echo $ac_package| sed 's/-/_/g'`
523 eval "with_${ac_package}='$ac_optarg'" ;;
525 -without-* | --without-*)
526 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
527 # Reject names that are not valid shell variable names.
528 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
529 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
531 ac_package=`echo $ac_package| sed 's/-/_/g'`
532 eval "with_${ac_package}=no" ;;
535 # Obsolete; use --with-x.
538 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
539 | --x-incl | --x-inc | --x-in | --x-i)
540 ac_prev=x_includes ;;
541 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
542 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
543 x_includes="$ac_optarg" ;;
545 -x-libraries | --x-libraries | --x-librarie | --x-librari \
546 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
547 ac_prev=x_libraries ;;
548 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
549 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
550 x_libraries="$ac_optarg" ;;
552 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
556 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
557 echo "configure: warning: $ac_option: invalid host type" 1>&2
559 if test "x$nonopt" != xNONE; then
560 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
568 if test -n "$ac_prev"; then
569 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
572 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
574 # File descriptor usage:
577 # 2 errors and warnings
578 # 3 some systems may open it to /dev/tty
579 # 4 used on the Kubota Titan
580 # 6 checking for... messages and results
581 # 5 compiler messages saved in config.log
582 if test "$silent" = yes; then
590 This file contains any messages produced by compilers while
591 running configure, to aid debugging if configure makes a mistake.
594 # Strip out --no-create and --no-recursion so they do not pile up.
595 # Also quote any args containing shell metacharacters.
600 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
601 | --no-cr | --no-c) ;;
602 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
603 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
604 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
605 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
606 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
611 # Only set these to C if already set. These must not be set unconditionally
612 # because not all systems understand e.g. LANG=C (notably SCO).
613 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
614 # Non-C LC_CTYPE values break the ctype check.
615 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
616 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
617 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
618 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
621 rm -rf conftest* confdefs.h
622 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
625 # A filename unique to this package, relative to the directory that
626 # configure is in, which we can look for to find out if srcdir is correct.
627 ac_unique_file=include/main.h
629 # Find the source files, if location was not specified.
630 if test -z "$srcdir"; then
631 ac_srcdir_defaulted=yes
632 # Try the directory containing this script, then its parent.
634 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
635 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
637 if test ! -r $srcdir/$ac_unique_file; then
641 ac_srcdir_defaulted=no
643 if test ! -r $srcdir/$ac_unique_file; then
644 if test "$ac_srcdir_defaulted" = yes; then
645 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
647 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
650 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
652 # Prefer explicitly selected file to automatically selected ones.
653 if test -z "$CONFIG_SITE"; then
654 if test "x$prefix" != xNONE; then
655 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
657 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
660 for ac_site_file in $CONFIG_SITE; do
661 if test -r "$ac_site_file"; then
662 echo "loading site script $ac_site_file"
667 if test -r "$cache_file"; then
668 echo "loading cache $cache_file"
671 echo "creating cache $cache_file"
676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
677 ac_cpp='$CPP $CPPFLAGS'
678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
680 cross_compiling=$ac_cv_prog_cc_cross
684 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
685 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
686 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
693 ac_n= ac_c='\c' ac_t=
699 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
700 if test -f $ac_dir/install-sh; then
702 ac_install_sh="$ac_aux_dir/install-sh -c"
704 elif test -f $ac_dir/install.sh; then
706 ac_install_sh="$ac_aux_dir/install.sh -c"
710 if test -z "$ac_aux_dir"; then
711 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
713 ac_config_guess=$ac_aux_dir/config.guess
714 ac_config_sub=$ac_aux_dir/config.sub
715 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
718 # Do some error checking and defaulting for the host and target type.
720 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
723 # 1. You are not allowed to specify --host, --target, and nonopt at the
725 # 2. Host defaults to nonopt.
726 # 3. If nonopt is not specified, then host defaults to the current host,
727 # as determined by config.guess.
728 # 4. Target and build default to nonopt.
729 # 5. If nonopt is not specified, then target and build default to host.
731 # The aliases save the names the user supplied, while $host etc.
732 # will get canonicalized.
733 case $host---$target---$nonopt in
734 NONE---*---* | *---NONE---* | *---*---NONE) ;;
735 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
739 # Make sure we can run config.sub.
740 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
741 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
744 echo $ac_n "checking host system type""... $ac_c" 1>&6
745 echo "configure:746: checking host system type" >&5
748 case "$host_alias" in
752 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
753 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
755 *) host_alias=$nonopt ;;
759 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
760 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
761 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
762 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
763 echo "$ac_t""$host" 1>&6
765 echo $ac_n "checking target system type""... $ac_c" 1>&6
766 echo "configure:767: checking target system type" >&5
769 case "$target_alias" in
772 NONE) target_alias=$host_alias ;;
773 *) target_alias=$nonopt ;;
777 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
778 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
779 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
780 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
781 echo "$ac_t""$target" 1>&6
783 echo $ac_n "checking build system type""... $ac_c" 1>&6
784 echo "configure:785: checking build system type" >&5
787 case "$build_alias" in
790 NONE) build_alias=$host_alias ;;
791 *) build_alias=$nonopt ;;
795 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
796 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
797 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
798 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
799 echo "$ac_t""$build" 1>&6
801 test "$host_alias" != "$target_alias" &&
802 test "$program_prefix$program_suffix$program_transform_name" = \
804 program_prefix=${target_alias}-
807 CONFIGURE_LINE="$0 $*"
813 save_CPPFLAGS="${CPPFLAGS}"
814 save_CFLAGS="${CFLAGS}"
815 save_LDFLAGS="${LDFLAGS}"
817 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
818 echo "configure:819: checking whether ${MAKE-make} sets \${MAKE}" >&5
819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
820 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 cat > conftestmake <<\EOF
825 @echo 'ac_maketemp="${MAKE}"'
827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
828 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
829 if test -n "$ac_maketemp"; then
830 eval ac_cv_prog_make_${ac_make}_set=yes
832 eval ac_cv_prog_make_${ac_make}_set=no
836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
837 echo "$ac_t""yes" 1>&6
840 echo "$ac_t""no" 1>&6
841 SET_MAKE="MAKE=${MAKE-make}"
844 # Extract the first word of "gcc", so it can be a program name with args.
845 set dummy gcc; ac_word=$2
846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847 echo "configure:848: checking for $ac_word" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 if test -n "$CC"; then
852 ac_cv_prog_CC="$CC" # Let the user override the test.
854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 for ac_dir in $ac_dummy; do
857 test -z "$ac_dir" && ac_dir=.
858 if test -f $ac_dir/$ac_word; then
867 if test -n "$CC"; then
868 echo "$ac_t""$CC" 1>&6
870 echo "$ac_t""no" 1>&6
873 if test -z "$CC"; then
874 # Extract the first word of "cc", so it can be a program name with args.
875 set dummy cc; ac_word=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 echo "configure:878: checking for $ac_word" >&5
878 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879 echo $ac_n "(cached) $ac_c" 1>&6
881 if test -n "$CC"; then
882 ac_cv_prog_CC="$CC" # Let the user override the test.
884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
887 for ac_dir in $ac_dummy; do
888 test -z "$ac_dir" && ac_dir=.
889 if test -f $ac_dir/$ac_word; then
890 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
899 if test $ac_prog_rejected = yes; then
900 # We found a bogon in the path, so make sure we never use it.
901 set dummy $ac_cv_prog_CC
903 if test $# -gt 0; then
904 # We chose a different compiler from the bogus one.
905 # However, it has the same basename, so the bogon will be chosen
906 # first if we set CC to just the basename; use the full file name.
908 set dummy "$ac_dir/$ac_word" "$@"
916 if test -n "$CC"; then
917 echo "$ac_t""$CC" 1>&6
919 echo "$ac_t""no" 1>&6
922 if test -z "$CC"; then
925 # Extract the first word of "cl", so it can be a program name with args.
926 set dummy cl; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 if test -n "$CC"; then
933 ac_cv_prog_CC="$CC" # Let the user override the test.
935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
937 for ac_dir in $ac_dummy; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
948 if test -n "$CC"; then
949 echo "$ac_t""$CC" 1>&6
951 echo "$ac_t""no" 1>&6
956 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
964 ac_cpp='$CPP $CPPFLAGS'
965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
967 cross_compiling=$ac_cv_prog_cc_cross
969 cat > conftest.$ac_ext << EOF
971 #line 972 "configure"
972 #include "confdefs.h"
976 if { (eval echo configure:977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
977 ac_cv_prog_cc_works=yes
978 # If we can't run a trivial program, we are probably using a cross compiler.
979 if (./conftest; exit) 2>/dev/null; then
980 ac_cv_prog_cc_cross=no
982 ac_cv_prog_cc_cross=yes
985 echo "configure: failed program was:" >&5
986 cat conftest.$ac_ext >&5
987 ac_cv_prog_cc_works=no
991 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
992 ac_cpp='$CPP $CPPFLAGS'
993 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
994 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
995 cross_compiling=$ac_cv_prog_cc_cross
997 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
998 if test $ac_cv_prog_cc_works = no; then
999 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1001 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1002 echo "configure:1003: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1003 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1004 cross_compiling=$ac_cv_prog_cc_cross
1006 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether we are using GNU C" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 cat > conftest.c <<EOF
1016 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1023 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1025 if test $ac_cv_prog_gcc = yes; then
1031 ac_test_CFLAGS="${CFLAGS+set}"
1032 ac_save_CFLAGS="$CFLAGS"
1034 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1035 echo "configure:1036: checking whether ${CC-cc} accepts -g" >&5
1036 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 echo 'void f(){}' > conftest.c
1040 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1049 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1050 if test "$ac_test_CFLAGS" = set; then
1051 CFLAGS="$ac_save_CFLAGS"
1052 elif test $ac_cv_prog_cc_g = yes; then
1053 if test "$GCC" = yes; then
1059 if test "$GCC" = yes; then
1066 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1067 echo "configure:1068: checking how to run the C preprocessor" >&5
1068 # On Suns, sometimes $CPP names a directory.
1069 if test -n "$CPP" && test -d "$CPP"; then
1072 if test -z "$CPP"; then
1073 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 # This must be in double quotes, not single quotes, because CPP may get
1077 # substituted into the Makefile and "${CC-cc}" will confuse make.
1079 # On the NeXT, cc -E runs the code through the compiler's parser,
1080 # not just through cpp.
1081 cat > conftest.$ac_ext <<EOF
1082 #line 1083 "configure"
1083 #include "confdefs.h"
1087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1088 { (eval echo configure:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1090 if test -z "$ac_err"; then
1094 echo "configure: failed program was:" >&5
1095 cat conftest.$ac_ext >&5
1097 CPP="${CC-cc} -E -traditional-cpp"
1098 cat > conftest.$ac_ext <<EOF
1099 #line 1100 "configure"
1100 #include "confdefs.h"
1104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1105 { (eval echo configure:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1107 if test -z "$ac_err"; then
1111 echo "configure: failed program was:" >&5
1112 cat conftest.$ac_ext >&5
1114 CPP="${CC-cc} -nologo -E"
1115 cat > conftest.$ac_ext <<EOF
1116 #line 1117 "configure"
1117 #include "confdefs.h"
1121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1122 { (eval echo configure:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1124 if test -z "$ac_err"; then
1128 echo "configure: failed program was:" >&5
1129 cat conftest.$ac_ext >&5
1138 ac_cv_prog_CPP="$CPP"
1140 CPP="$ac_cv_prog_CPP"
1142 ac_cv_prog_CPP="$CPP"
1144 echo "$ac_t""$CPP" 1>&6
1147 if test $host != $build; then
1148 ac_tool_prefix=${host_alias}-
1153 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1154 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$RANLIB"; then
1161 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1175 RANLIB="$ac_cv_prog_RANLIB"
1176 if test -n "$RANLIB"; then
1177 echo "$ac_t""$RANLIB" 1>&6
1179 echo "$ac_t""no" 1>&6
1183 if test -z "$ac_cv_prog_RANLIB"; then
1184 if test -n "$ac_tool_prefix"; then
1185 # Extract the first word of "ranlib", so it can be a program name with args.
1186 set dummy ranlib; ac_word=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 if test -n "$RANLIB"; then
1193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1197 for ac_dir in $ac_dummy; do
1198 test -z "$ac_dir" && ac_dir=.
1199 if test -f $ac_dir/$ac_word; then
1200 ac_cv_prog_RANLIB="ranlib"
1205 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1208 RANLIB="$ac_cv_prog_RANLIB"
1209 if test -n "$RANLIB"; then
1210 echo "$ac_t""$RANLIB" 1>&6
1212 echo "$ac_t""no" 1>&6
1220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1221 set dummy ${ac_tool_prefix}strip; ac_word=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1224: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 if test -n "$STRIP"; then
1228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1232 for ac_dir in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir=.
1234 if test -f $ac_dir/$ac_word; then
1235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1242 STRIP="$ac_cv_prog_STRIP"
1243 if test -n "$STRIP"; then
1244 echo "$ac_t""$STRIP" 1>&6
1246 echo "$ac_t""no" 1>&6
1250 if test -z "$ac_cv_prog_STRIP"; then
1251 if test -n "$ac_tool_prefix"; then
1252 # Extract the first word of "strip", so it can be a program name with args.
1253 set dummy strip; ac_word=$2
1254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255 echo "configure:1256: checking for $ac_word" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 if test -n "$STRIP"; then
1260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1264 for ac_dir in $ac_dummy; do
1265 test -z "$ac_dir" && ac_dir=.
1266 if test -f $ac_dir/$ac_word; then
1267 ac_cv_prog_STRIP="strip"
1272 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1275 STRIP="$ac_cv_prog_STRIP"
1276 if test -n "$STRIP"; then
1277 echo "$ac_t""$STRIP" 1>&6
1279 echo "$ac_t""no" 1>&6
1288 # Extract the first word of "gmake", so it can be a program name with args.
1289 set dummy gmake; ac_word=$2
1290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1291 echo "configure:1292: checking for $ac_word" >&5
1292 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1297 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1300 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1305 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 if test -f $ac_dir/$ac_word; then
1308 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1313 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1317 GMAKE="$ac_cv_path_GMAKE"
1318 if test -n "$GMAKE"; then
1319 echo "$ac_t""$GMAKE" 1>&6
1321 echo "$ac_t""no" 1>&6
1324 if test "x${GMAKE}" = "xno"; then
1325 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1326 echo "configure:1327: checking whether GNU make is installed" >&5
1327 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 if make --version | grep -q -i gnu; then
1333 echo "This software needs you to install GNU make to compile properly."
1334 echo "You can get it from http://www.gnu.org/."
1339 echo "$ac_t""$ac_cv_gmake" 1>&6
1345 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1347 cat >> confdefs.h <<EOF
1348 #define VLC_PACKAGE "${PACKAGE}"
1351 cat >> confdefs.h <<EOF
1352 #define VLC_VERSION "${VERSION}"
1355 # Extract the first word of "ranlib", so it can be a program name with args.
1356 set dummy ranlib; ac_word=$2
1357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1358 echo "configure:1359: checking for $ac_word" >&5
1359 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 if test -n "$RANLIB"; then
1363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1367 for ac_dir in $ac_dummy; do
1368 test -z "$ac_dir" && ac_dir=.
1369 if test -f $ac_dir/$ac_word; then
1370 ac_cv_prog_RANLIB="ranlib"
1375 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1378 RANLIB="$ac_cv_prog_RANLIB"
1379 if test -n "$RANLIB"; then
1380 echo "$ac_t""$RANLIB" 1>&6
1382 echo "$ac_t""no" 1>&6
1386 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1387 echo "configure:1388: checking for strerror in -lcposix" >&5
1388 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 ac_save_LIBS="$LIBS"
1393 LIBS="-lcposix $LIBS"
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1397 /* Override any gcc2 internal prototype to avoid an error. */
1398 /* We use char because int might match the return type of a gcc2
1399 builtin and then its argument prototype would still apply. */
1406 if { (eval echo configure:1407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1408 eval "ac_cv_lib_$ac_lib_var=yes"
1410 echo "configure: failed program was:" >&5
1411 cat conftest.$ac_ext >&5
1413 eval "ac_cv_lib_$ac_lib_var=no"
1416 LIBS="$ac_save_LIBS"
1419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1420 echo "$ac_t""yes" 1>&6
1421 LIBS="$LIBS -lcposix"
1423 echo "$ac_t""no" 1>&6
1428 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1429 echo "configure:1430: checking for ANSI C header files" >&5
1430 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 cat > conftest.$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1442 { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1444 if test -z "$ac_err"; then
1446 ac_cv_header_stdc=yes
1449 echo "configure: failed program was:" >&5
1450 cat conftest.$ac_ext >&5
1452 ac_cv_header_stdc=no
1456 if test $ac_cv_header_stdc = yes; then
1457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1464 egrep "memchr" >/dev/null 2>&1; then
1468 ac_cv_header_stdc=no
1474 if test $ac_cv_header_stdc = yes; then
1475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1482 egrep "free" >/dev/null 2>&1; then
1486 ac_cv_header_stdc=no
1492 if test $ac_cv_header_stdc = yes; then
1493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1494 if test "$cross_compiling" = yes; then
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1501 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1502 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1504 int main () { int i; for (i = 0; i < 256; i++)
1505 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1509 if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1516 ac_cv_header_stdc=no
1524 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1525 if test $ac_cv_header_stdc = yes; then
1526 cat >> confdefs.h <<\EOF
1527 #define STDC_HEADERS 1
1532 echo $ac_n "checking for working const""... $ac_c" 1>&6
1533 echo "configure:1534: checking for working const" >&5
1534 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 cat > conftest.$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1543 /* Ultrix mips cc rejects this. */
1544 typedef int charset[2]; const charset x;
1545 /* SunOS 4.1.1 cc rejects this. */
1546 char const *const *ccp;
1548 /* NEC SVR4.0.2 mips cc rejects this. */
1549 struct point {int x, y;};
1550 static struct point const zero = {0,0};
1551 /* AIX XL C 1.02.0.0 rejects this.
1552 It does not let you subtract one const X* pointer from another in an arm
1553 of an if-expression whose if-part is not a constant expression */
1554 const char *g = "string";
1555 ccp = &g + (g ? g-g : 0);
1556 /* HPUX 7.0 cc rejects these. */
1559 ccp = (char const *const *) p;
1560 { /* SCO 3.2v4 cc rejects this. */
1562 char const *s = 0 ? (char *) 0 : (char const *) 0;
1566 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1568 const int *foo = &x[0];
1571 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1572 typedef const int *iptr;
1576 { /* AIX XL C 1.02.0.0 rejects this saying
1577 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1578 struct s { int j; const int *ap[3]; };
1579 struct s *b; b->j = 5;
1581 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1587 if { (eval echo configure:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1599 echo "$ac_t""$ac_cv_c_const" 1>&6
1600 if test $ac_cv_c_const = no; then
1601 cat >> confdefs.h <<\EOF
1607 echo $ac_n "checking for inline""... $ac_c" 1>&6
1608 echo "configure:1609: checking for inline" >&5
1609 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1613 for ac_kw in inline __inline__ __inline; do
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1622 if { (eval echo configure:1623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1624 ac_cv_c_inline=$ac_kw; break
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1634 echo "$ac_t""$ac_cv_c_inline" 1>&6
1635 case "$ac_cv_c_inline" in
1637 no) cat >> confdefs.h <<\EOF
1641 *) cat >> confdefs.h <<EOF
1642 #define inline $ac_cv_c_inline
1647 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1648 echo "configure:1649: checking for off_t" >&5
1649 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 #include <sys/types.h>
1661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1662 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1664 ac_cv_type_off_t=yes
1672 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1673 if test $ac_cv_type_off_t = no; then
1674 cat >> confdefs.h <<\EOF
1680 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1681 echo "configure:1682: checking for size_t" >&5
1682 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 cat > conftest.$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1688 #include <sys/types.h>
1694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1695 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1697 ac_cv_type_size_t=yes
1700 ac_cv_type_size_t=no
1705 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1706 if test $ac_cv_type_size_t = no; then
1707 cat >> confdefs.h <<\EOF
1708 #define size_t unsigned
1713 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1714 # for constant arguments. Useless!
1715 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1716 echo "configure:1717: checking for working alloca.h" >&5
1717 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1725 char *p = alloca(2 * sizeof(int));
1728 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1730 ac_cv_header_alloca_h=yes
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1735 ac_cv_header_alloca_h=no
1740 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1741 if test $ac_cv_header_alloca_h = yes; then
1742 cat >> confdefs.h <<\EOF
1743 #define HAVE_ALLOCA_H 1
1748 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1749 echo "configure:1750: checking for alloca" >&5
1750 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1758 # define alloca __builtin_alloca
1761 # include <malloc.h>
1762 # define alloca _alloca
1765 # include <alloca.h>
1770 # ifndef alloca /* predefined by HP cc +Olibcalls */
1779 char *p = (char *) alloca(1);
1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1784 ac_cv_func_alloca_works=yes
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1789 ac_cv_func_alloca_works=no
1794 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1795 if test $ac_cv_func_alloca_works = yes; then
1796 cat >> confdefs.h <<\EOF
1797 #define HAVE_ALLOCA 1
1802 if test $ac_cv_func_alloca_works = no; then
1803 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1804 # that cause trouble. Some versions do not even contain alloca or
1805 # contain a buggy version. If you still want to use their alloca,
1806 # use ar to extract alloca.o from them instead of compiling alloca.c.
1807 ALLOCA=alloca.${ac_objext}
1808 cat >> confdefs.h <<\EOF
1813 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1814 echo "configure:1815: checking whether alloca needs Cray hooks" >&5
1815 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 #if defined(CRAY) && ! defined(CRAY2)
1828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1829 egrep "webecray" >/dev/null 2>&1; then
1840 echo "$ac_t""$ac_cv_os_cray" 1>&6
1841 if test $ac_cv_os_cray = yes; then
1842 for ac_func in _getb67 GETB67 getb67; do
1843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $ac_func" >&5
1845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1851 /* System header to define __stub macros and hopefully few prototypes,
1852 which can conflict with char $ac_func(); below. */
1854 /* Override any gcc2 internal prototype to avoid an error. */
1855 /* We use char because int might match the return type of a gcc2
1856 builtin and then its argument prototype would still apply. */
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1872 if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1874 eval "ac_cv_func_$ac_func=yes"
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1879 eval "ac_cv_func_$ac_func=no"
1884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1885 echo "$ac_t""yes" 1>&6
1886 cat >> confdefs.h <<EOF
1887 #define CRAY_STACKSEG_END $ac_func
1892 echo "$ac_t""no" 1>&6
1898 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1899 echo "configure:1900: checking stack direction for C alloca" >&5
1900 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 if test "$cross_compiling" = yes; then
1904 ac_cv_c_stack_direction=0
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 find_stack_direction ()
1911 static char *addr = 0;
1916 return find_stack_direction ();
1919 return (&dummy > addr) ? 1 : -1;
1923 exit (find_stack_direction() < 0);
1926 if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1928 ac_cv_c_stack_direction=1
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 ac_cv_c_stack_direction=-1
1940 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1941 cat >> confdefs.h <<EOF
1942 #define STACK_DIRECTION $ac_cv_c_stack_direction
1947 for ac_hdr in unistd.h
1949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_hdr" >&5
1952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961 { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1963 if test -z "$ac_err"; then
1965 eval "ac_cv_header_$ac_safe=yes"
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 eval "ac_cv_header_$ac_safe=no"
1975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_hdr 1
1983 echo "$ac_t""no" 1>&6
1987 for ac_func in getpagesize
1989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_func" >&5
1991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $ac_func(); below. */
2000 /* Override any gcc2 internal prototype to avoid an error. */
2001 /* We use char because int might match the return type of a gcc2
2002 builtin and then its argument prototype would still apply. */
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2020 eval "ac_cv_func_$ac_func=yes"
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2025 eval "ac_cv_func_$ac_func=no"
2030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2033 cat >> confdefs.h <<EOF
2034 #define $ac_tr_func 1
2038 echo "$ac_t""no" 1>&6
2042 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2043 echo "configure:2044: checking for working mmap" >&5
2044 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 if test "$cross_compiling" = yes; then
2048 ac_cv_func_mmap_fixed_mapped=no
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2054 /* Thanks to Mike Haertel and Jim Avera for this test.
2055 Here is a matrix of mmap possibilities:
2056 mmap private not fixed
2057 mmap private fixed at somewhere currently unmapped
2058 mmap private fixed at somewhere already mapped
2059 mmap shared not fixed
2060 mmap shared fixed at somewhere currently unmapped
2061 mmap shared fixed at somewhere already mapped
2062 For private mappings, we should verify that changes cannot be read()
2063 back from the file, nor mmap's back from the file at a different
2064 address. (There have been systems where private was not correctly
2065 implemented like the infamous i386 svr4.0, and systems where the
2066 VM page cache was not coherent with the filesystem buffer cache
2067 like early versions of FreeBSD and possibly contemporary NetBSD.)
2068 For shared mappings, we should conversely verify that changes get
2069 propogated back to all the places they're supposed to be.
2071 Grep wants private fixed already mapped.
2072 The main things grep needs to know about mmap are:
2073 * does it exist and is it safe to write into the mmap'd area
2074 * how to use it (BSD variants) */
2075 #include <sys/types.h>
2077 #include <sys/mman.h>
2079 /* This mess was copied from the GNU getpagesize.h. */
2080 #ifndef HAVE_GETPAGESIZE
2081 # ifdef HAVE_UNISTD_H
2082 # include <unistd.h>
2085 /* Assume that all systems that can run configure have sys/param.h. */
2086 # ifndef HAVE_SYS_PARAM_H
2087 # define HAVE_SYS_PARAM_H 1
2090 # ifdef _SC_PAGESIZE
2091 # define getpagesize() sysconf(_SC_PAGESIZE)
2092 # else /* no _SC_PAGESIZE */
2093 # ifdef HAVE_SYS_PARAM_H
2094 # include <sys/param.h>
2095 # ifdef EXEC_PAGESIZE
2096 # define getpagesize() EXEC_PAGESIZE
2097 # else /* no EXEC_PAGESIZE */
2099 # define getpagesize() NBPG * CLSIZE
2102 # endif /* no CLSIZE */
2103 # else /* no NBPG */
2105 # define getpagesize() NBPC
2106 # else /* no NBPC */
2108 # define getpagesize() PAGESIZE
2109 # endif /* PAGESIZE */
2110 # endif /* no NBPC */
2111 # endif /* no NBPG */
2112 # endif /* no EXEC_PAGESIZE */
2113 # else /* no HAVE_SYS_PARAM_H */
2114 # define getpagesize() 8192 /* punt totally */
2115 # endif /* no HAVE_SYS_PARAM_H */
2116 # endif /* no _SC_PAGESIZE */
2118 #endif /* no HAVE_GETPAGESIZE */
2121 extern "C" { void *malloc(unsigned); }
2129 char *data, *data2, *data3;
2133 pagesize = getpagesize();
2136 * First, make a file with some known garbage in it.
2138 data = malloc(pagesize);
2141 for (i = 0; i < pagesize; ++i)
2142 *(data + i) = rand();
2144 fd = creat("conftestmmap", 0600);
2147 if (write(fd, data, pagesize) != pagesize)
2152 * Next, try to mmap the file at a fixed address which
2153 * already has something else allocated at it. If we can,
2154 * also make sure that we see the same garbage.
2156 fd = open("conftestmmap", O_RDWR);
2159 data2 = malloc(2 * pagesize);
2162 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2163 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2164 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2166 for (i = 0; i < pagesize; ++i)
2167 if (*(data + i) != *(data2 + i))
2171 * Finally, make sure that changes to the mapped area
2172 * do not percolate back to the file as seen by read().
2173 * (This is a bug on some variants of i386 svr4.0.)
2175 for (i = 0; i < pagesize; ++i)
2176 *(data2 + i) = *(data2 + i) + 1;
2177 data3 = malloc(pagesize);
2180 if (read(fd, data3, pagesize) != pagesize)
2182 for (i = 0; i < pagesize; ++i)
2183 if (*(data + i) != *(data3 + i))
2186 unlink("conftestmmap");
2191 if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2193 ac_cv_func_mmap_fixed_mapped=yes
2195 echo "configure: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2198 ac_cv_func_mmap_fixed_mapped=no
2205 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2206 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2207 cat >> confdefs.h <<\EOF
2214 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2215 echo "configure:2216: checking whether we are using the GNU C Library 2.1 or newer" >&5
2216 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2223 #include <features.h>
2224 #ifdef __GNU_LIBRARY__
2225 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2232 egrep "Lucky GNU user" >/dev/null 2>&1; then
2234 ac_cv_gnu_library_2_1=yes
2237 ac_cv_gnu_library_2_1=no
2245 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2247 GLIBC21="$ac_cv_gnu_library_2_1"
2251 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2252 stdlib.h string.h unistd.h sys/param.h
2254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2256 echo "configure:2257: checking for $ac_hdr" >&5
2257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2266 { (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2268 if test -z "$ac_err"; then
2270 eval "ac_cv_header_$ac_safe=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2276 eval "ac_cv_header_$ac_safe=no"
2280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2281 echo "$ac_t""yes" 1>&6
2282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2283 cat >> confdefs.h <<EOF
2284 #define $ac_tr_hdr 1
2288 echo "$ac_t""no" 1>&6
2292 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2293 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2294 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_func" >&5
2298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 /* System header to define __stub macros and hopefully few prototypes,
2305 which can conflict with char $ac_func(); below. */
2307 /* Override any gcc2 internal prototype to avoid an error. */
2308 /* We use char because int might match the return type of a gcc2
2309 builtin and then its argument prototype would still apply. */
2314 /* The GNU C library defines this for functions which it implements
2315 to always fail with ENOSYS. Some functions are actually named
2316 something starting with __ and the normal name is an alias. */
2317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2327 eval "ac_cv_func_$ac_func=yes"
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2332 eval "ac_cv_func_$ac_func=no"
2337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2340 cat >> confdefs.h <<EOF
2341 #define $ac_tr_func 1
2345 echo "$ac_t""no" 1>&6
2352 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2353 if test "${with_libiconv_prefix+set}" = set; then
2354 withval="$with_libiconv_prefix"
2356 for dir in `echo "$withval" | tr : ' '`; do
2357 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2358 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2364 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2365 echo "configure:2366: checking for iconv" >&5
2366 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2370 am_cv_func_iconv="no, consider installing GNU libiconv"
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2378 iconv_t cd = iconv_open("","");
2379 iconv(cd,NULL,NULL,NULL,NULL);
2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2385 am_cv_func_iconv=yes
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2391 if test "$am_cv_func_iconv" != yes; then
2392 am_save_LIBS="$LIBS"
2393 LIBS="$LIBS -liconv"
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2400 iconv_t cd = iconv_open("","");
2401 iconv(cd,NULL,NULL,NULL,NULL);
2405 if { (eval echo configure:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2408 am_cv_func_iconv=yes
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2414 LIBS="$am_save_LIBS"
2419 echo "$ac_t""$am_cv_func_iconv" 1>&6
2420 if test "$am_cv_func_iconv" = yes; then
2421 cat >> confdefs.h <<\EOF
2422 #define HAVE_ICONV 1
2425 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2426 echo "configure:2427: checking for iconv declaration" >&5
2427 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2441 #if defined(__STDC__) || defined(__cplusplus)
2442 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2451 if { (eval echo configure:2452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2453 am_cv_proto_iconv_arg1=""
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2458 am_cv_proto_iconv_arg1="const"
2461 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2464 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2465 echo "$ac_t""${ac_t:-
2466 }$am_cv_proto_iconv" 1>&6
2467 cat >> confdefs.h <<EOF
2468 #define ICONV_CONST $am_cv_proto_iconv_arg1
2473 if test "$am_cv_lib_iconv" = yes; then
2479 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2480 echo "configure:2481: checking for nl_langinfo and CODESET" >&5
2481 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 #include <langinfo.h>
2489 char* cs = nl_langinfo(CODESET);
2492 if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2494 am_cv_langinfo_codeset=yes
2496 echo "configure: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2499 am_cv_langinfo_codeset=no
2505 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2506 if test $am_cv_langinfo_codeset = yes; then
2507 cat >> confdefs.h <<\EOF
2508 #define HAVE_LANGINFO_CODESET 1
2513 if test $ac_cv_header_locale_h = yes; then
2514 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2515 echo "configure:2516: checking for LC_MESSAGES" >&5
2516 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2529 am_cv_val_LC_MESSAGES=yes
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 am_cv_val_LC_MESSAGES=no
2539 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2540 if test $am_cv_val_LC_MESSAGES = yes; then
2541 cat >> confdefs.h <<\EOF
2542 #define HAVE_LC_MESSAGES 1
2547 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether NLS is requested" >&5
2549 # Check whether --enable-nls or --disable-nls was given.
2550 if test "${enable_nls+set}" = set; then
2551 enableval="$enable_nls"
2557 echo "$ac_t""$USE_NLS" 1>&6
2560 BUILD_INCLUDED_LIBINTL=no
2561 USE_INCLUDED_LIBINTL=no
2564 if test "$USE_NLS" = "yes"; then
2565 cat >> confdefs.h <<\EOF
2566 #define ENABLE_NLS 1
2569 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2570 echo "configure:2571: checking whether included gettext is requested" >&5
2571 # Check whether --with-included-gettext or --without-included-gettext was given.
2572 if test "${with_included_gettext+set}" = set; then
2573 withval="$with_included_gettext"
2574 nls_cv_force_use_gnu_gettext=$withval
2576 nls_cv_force_use_gnu_gettext=no
2579 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2581 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2582 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2588 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2589 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2590 echo "configure:2591: checking for libintl.h" >&5
2591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 #include <libintl.h>
2599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2600 { (eval echo configure:2601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2602 if test -z "$ac_err"; then
2604 eval "ac_cv_header_$ac_safe=yes"
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2610 eval "ac_cv_header_$ac_safe=no"
2614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2615 echo "$ac_t""yes" 1>&6
2616 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2617 echo "configure:2618: checking for GNU gettext in libc" >&5
2618 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2624 #include <libintl.h>
2625 extern int _nl_msg_cat_cntr;
2627 bindtextdomain ("", "");
2628 return (int) gettext ("") + _nl_msg_cat_cntr
2631 if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2633 gt_cv_func_gnugettext1_libc=yes
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2638 gt_cv_func_gnugettext1_libc=no
2643 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2645 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2646 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2647 echo "configure:2648: checking for GNU gettext in libintl" >&5
2648 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 gt_save_LIBS="$LIBS"
2652 LIBS="$LIBS -lintl $LIBICONV"
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2656 #include <libintl.h>
2657 extern int _nl_msg_cat_cntr;
2659 bindtextdomain ("", "");
2660 return (int) gettext ("") + _nl_msg_cat_cntr
2663 if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2665 gt_cv_func_gnugettext1_libintl=yes
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2670 gt_cv_func_gnugettext1_libintl=no
2673 LIBS="$gt_save_LIBS"
2676 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2679 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2680 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2681 && test "$PACKAGE" != gettext; }; then
2682 cat >> confdefs.h <<\EOF
2683 #define HAVE_GETTEXT 1
2687 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2688 INTLLIBS="-lintl $LIBICONV"
2691 gt_save_LIBS="$LIBS"
2692 LIBS="$LIBS $INTLLIBS"
2693 for ac_func in dcgettext
2695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_func" >&5
2697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 /* System header to define __stub macros and hopefully few prototypes,
2704 which can conflict with char $ac_func(); below. */
2706 /* Override any gcc2 internal prototype to avoid an error. */
2707 /* We use char because int might match the return type of a gcc2
2708 builtin and then its argument prototype would still apply. */
2713 /* The GNU C library defines this for functions which it implements
2714 to always fail with ENOSYS. Some functions are actually named
2715 something starting with __ and the normal name is an alias. */
2716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2726 eval "ac_cv_func_$ac_func=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 eval "ac_cv_func_$ac_func=no"
2736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2739 cat >> confdefs.h <<EOF
2740 #define $ac_tr_func 1
2744 echo "$ac_t""no" 1>&6
2748 LIBS="$gt_save_LIBS"
2750 # Extract the first word of "msgfmt", so it can be a program name with args.
2751 set dummy msgfmt; ac_word=$2
2752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_word" >&5
2754 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2759 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2763 for ac_dir in $PATH; do
2764 test -z "$ac_dir" && ac_dir=.
2765 if test -f $ac_dir/$ac_word; then
2766 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2767 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2773 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2777 MSGFMT="$ac_cv_path_MSGFMT"
2778 if test "$MSGFMT" != ":"; then
2779 echo "$ac_t""$MSGFMT" 1>&6
2781 echo "$ac_t""no" 1>&6
2784 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2785 set dummy gmsgfmt; ac_word=$2
2786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2787 echo "configure:2788: checking for $ac_word" >&5
2788 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2793 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2796 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2801 for ac_dir in $ac_dummy; do
2802 test -z "$ac_dir" && ac_dir=.
2803 if test -f $ac_dir/$ac_word; then
2804 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2809 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2813 GMSGFMT="$ac_cv_path_GMSGFMT"
2814 if test -n "$GMSGFMT"; then
2815 echo "$ac_t""$GMSGFMT" 1>&6
2817 echo "$ac_t""no" 1>&6
2821 # Extract the first word of "xgettext", so it can be a program name with args.
2822 set dummy xgettext; ac_word=$2
2823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2824 echo "configure:2825: checking for $ac_word" >&5
2825 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2834 for ac_dir in $PATH; do
2835 test -z "$ac_dir" && ac_dir=.
2836 if test -f $ac_dir/$ac_word; then
2837 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2838 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2844 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2848 XGETTEXT="$ac_cv_path_XGETTEXT"
2849 if test "$XGETTEXT" != ":"; then
2850 echo "$ac_t""$XGETTEXT" 1>&6
2852 echo "$ac_t""no" 1>&6
2860 echo "$ac_t""no" 1>&6
2864 if test "$CATOBJEXT" = "NONE"; then
2865 nls_cv_use_gnu_gettext=yes
2869 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2870 INTLOBJS="\$(GETTOBJS)"
2871 # Extract the first word of "msgfmt", so it can be a program name with args.
2872 set dummy msgfmt; ac_word=$2
2873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_word" >&5
2875 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2880 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2884 for ac_dir in $PATH; do
2885 test -z "$ac_dir" && ac_dir=.
2886 if test -f $ac_dir/$ac_word; then
2887 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2888 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2894 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2898 MSGFMT="$ac_cv_path_MSGFMT"
2899 if test "$MSGFMT" != ":"; then
2900 echo "$ac_t""$MSGFMT" 1>&6
2902 echo "$ac_t""no" 1>&6
2905 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2906 set dummy gmsgfmt; ac_word=$2
2907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2908 echo "configure:2909: checking for $ac_word" >&5
2909 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2914 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2917 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2922 for ac_dir in $ac_dummy; do
2923 test -z "$ac_dir" && ac_dir=.
2924 if test -f $ac_dir/$ac_word; then
2925 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2930 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2934 GMSGFMT="$ac_cv_path_GMSGFMT"
2935 if test -n "$GMSGFMT"; then
2936 echo "$ac_t""$GMSGFMT" 1>&6
2938 echo "$ac_t""no" 1>&6
2941 # Extract the first word of "xgettext", so it can be a program name with args.
2942 set dummy xgettext; ac_word=$2
2943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2944 echo "configure:2945: checking for $ac_word" >&5
2945 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2950 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2954 for ac_dir in $PATH; do
2955 test -z "$ac_dir" && ac_dir=.
2956 if test -f $ac_dir/$ac_word; then
2957 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2958 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2964 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2968 XGETTEXT="$ac_cv_path_XGETTEXT"
2969 if test "$XGETTEXT" != ":"; then
2970 echo "$ac_t""$XGETTEXT" 1>&6
2972 echo "$ac_t""no" 1>&6
2976 BUILD_INCLUDED_LIBINTL=yes
2977 USE_INCLUDED_LIBINTL=yes
2979 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2980 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2983 if test "$GMSGFMT" != ":"; then
2984 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2987 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2992 if test "$XGETTEXT" != ":"; then
2993 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2996 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3006 if test "$PACKAGE" = gettext; then
3007 BUILD_INCLUDED_LIBINTL=yes
3010 for ac_prog in bison
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013 set dummy $ac_prog; ac_word=$2
3014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3015 echo "configure:3016: checking for $ac_word" >&5
3016 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 if test -n "$INTLBISON"; then
3020 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3024 for ac_dir in $ac_dummy; do
3025 test -z "$ac_dir" && ac_dir=.
3026 if test -f $ac_dir/$ac_word; then
3027 ac_cv_prog_INTLBISON="$ac_prog"
3034 INTLBISON="$ac_cv_prog_INTLBISON"
3035 if test -n "$INTLBISON"; then
3036 echo "$ac_t""$INTLBISON" 1>&6
3038 echo "$ac_t""no" 1>&6
3041 test -n "$INTLBISON" && break
3044 if test -z "$INTLBISON"; then
3047 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3048 echo "configure:3049: checking version of bison" >&5
3049 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3050 case $ac_prog_version in
3051 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3052 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3053 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3054 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3056 echo "$ac_t""$ac_prog_version" 1>&6
3058 if test $ac_verc_fail = yes; then
3062 for lang in $ALL_LINGUAS; do
3063 GMOFILES="$GMOFILES $lang.gmo"
3064 POFILES="$POFILES $lang.po"
3078 nls_cv_header_libgt=
3090 if test "x$CATOBJEXT" != "x"; then
3091 if test "x$ALL_LINGUAS" = "x"; then
3094 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3095 echo "configure:3096: checking for catalogs to be installed" >&5
3097 for presentlang in $ALL_LINGUAS; do
3099 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3100 # Use the presentlang catalog if desiredlang is
3101 # a. equal to presentlang, or
3102 # b. a variant of presentlang (because in this case,
3103 # presentlang can be used as a fallback for messages
3104 # which are not translated in the desiredlang catalog).
3105 case "$desiredlang" in
3106 "$presentlang"*) useit=yes;;
3109 if test $useit = yes; then
3110 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3113 LINGUAS=$NEW_LINGUAS
3114 echo "$ac_t""$LINGUAS" 1>&6
3117 if test -n "$LINGUAS"; then
3118 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3123 if test -n "$ac_aux_dir"; then
3124 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3126 if test -z "$MKINSTALLDIRS"; then
3127 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3131 INTL_LIBTOOL_SUFFIX_PREFIX=
3135 # Find a good install program. We prefer a C program (faster),
3136 # so one script is as good as another. But avoid the broken or
3137 # incompatible versions:
3138 # SysV /etc/install, /usr/sbin/install
3139 # SunOS /usr/etc/install
3140 # IRIX /sbin/install
3142 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3143 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3144 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3145 # ./install, which can be erroneously created by make from ./install.sh.
3146 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3147 echo "configure:3148: checking for a BSD compatible install" >&5
3148 if test -z "$INSTALL"; then
3149 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3153 for ac_dir in $PATH; do
3154 # Account for people who put trailing slashes in PATH elements.
3156 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3158 # OSF1 and SCO ODT 3.0 have their own names for install.
3159 # Don't use installbsd from OSF since it installs stuff as root
3161 for ac_prog in ginstall scoinst install; do
3162 if test -f $ac_dir/$ac_prog; then
3163 if test $ac_prog = install &&
3164 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3165 # AIX install. It has an incompatible calling convention.
3168 ac_cv_path_install="$ac_dir/$ac_prog -c"
3179 if test "${ac_cv_path_install+set}" = set; then
3180 INSTALL="$ac_cv_path_install"
3182 # As a last resort, use the slow shell script. We don't cache a
3183 # path for INSTALL within a source directory, because that will
3184 # break other packages using the cache if that directory is
3185 # removed, or if the path is relative.
3186 INSTALL="$ac_install_sh"
3189 echo "$ac_t""$INSTALL" 1>&6
3191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3192 # It thinks the first close brace ends the variable substitution.
3193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3200 echo $ac_n "checking for working const""... $ac_c" 1>&6
3201 echo "configure:3202: checking for working const" >&5
3202 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3211 /* Ultrix mips cc rejects this. */
3212 typedef int charset[2]; const charset x;
3213 /* SunOS 4.1.1 cc rejects this. */
3214 char const *const *ccp;
3216 /* NEC SVR4.0.2 mips cc rejects this. */
3217 struct point {int x, y;};
3218 static struct point const zero = {0,0};
3219 /* AIX XL C 1.02.0.0 rejects this.
3220 It does not let you subtract one const X* pointer from another in an arm
3221 of an if-expression whose if-part is not a constant expression */
3222 const char *g = "string";
3223 ccp = &g + (g ? g-g : 0);
3224 /* HPUX 7.0 cc rejects these. */
3227 ccp = (char const *const *) p;
3228 { /* SCO 3.2v4 cc rejects this. */
3230 char const *s = 0 ? (char *) 0 : (char const *) 0;
3234 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3236 const int *foo = &x[0];
3239 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3240 typedef const int *iptr;
3244 { /* AIX XL C 1.02.0.0 rejects this saying
3245 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3246 struct s { int j; const int *ap[3]; };
3247 struct s *b; b->j = 5;
3249 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3255 if { (eval echo configure:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3267 echo "$ac_t""$ac_cv_c_const" 1>&6
3268 if test $ac_cv_c_const = no; then
3269 cat >> confdefs.h <<\EOF
3275 echo $ac_n "checking for inline""... $ac_c" 1>&6
3276 echo "configure:3277: checking for inline" >&5
3277 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3281 for ac_kw in inline __inline__ __inline; do
3282 cat > conftest.$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3290 if { (eval echo configure:3291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3292 ac_cv_c_inline=$ac_kw; break
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3302 echo "$ac_t""$ac_cv_c_inline" 1>&6
3303 case "$ac_cv_c_inline" in
3305 no) cat >> confdefs.h <<\EOF
3309 *) cat >> confdefs.h <<EOF
3310 #define inline $ac_cv_c_inline
3316 vlc_LDFLAGS="${LDFLAGS}"
3318 case "x${target_os}" in
3327 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3328 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3329 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3333 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3337 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3338 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3342 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}windres; ac_word=$2
3344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_word" >&5
3346 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 if test -n "$WINDRES"; then
3350 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3354 for ac_dir in $ac_dummy; do
3355 test -z "$ac_dir" && ac_dir=.
3356 if test -f $ac_dir/$ac_word; then
3357 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3364 WINDRES="$ac_cv_prog_WINDRES"
3365 if test -n "$WINDRES"; then
3366 echo "$ac_t""$WINDRES" 1>&6
3368 echo "$ac_t""no" 1>&6
3372 if test -z "$ac_cv_prog_WINDRES"; then
3373 if test -n "$ac_tool_prefix"; then
3374 # Extract the first word of "windres", so it can be a program name with args.
3375 set dummy windres; ac_word=$2
3376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3377 echo "configure:3378: checking for $ac_word" >&5
3378 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3381 if test -n "$WINDRES"; then
3382 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3386 for ac_dir in $ac_dummy; do
3387 test -z "$ac_dir" && ac_dir=.
3388 if test -f $ac_dir/$ac_word; then
3389 ac_cv_prog_WINDRES="windres"
3394 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3397 WINDRES="$ac_cv_prog_WINDRES"
3398 if test -n "$WINDRES"; then
3399 echo "$ac_t""$WINDRES" 1>&6
3401 echo "$ac_t""no" 1>&6
3409 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3410 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3411 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3412 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3413 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3414 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3415 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3419 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3420 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3427 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3428 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3429 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3430 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3431 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3438 if test "x${SYS}" = "xmingw32"
3440 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3442 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3443 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3446 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3448 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3451 echo "configure:3452: checking for $ac_func" >&5
3452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 /* System header to define __stub macros and hopefully few prototypes,
3459 which can conflict with char $ac_func(); below. */
3461 /* Override any gcc2 internal prototype to avoid an error. */
3462 /* We use char because int might match the return type of a gcc2
3463 builtin and then its argument prototype would still apply. */
3468 /* The GNU C library defines this for functions which it implements
3469 to always fail with ENOSYS. Some functions are actually named
3470 something starting with __ and the normal name is an alias. */
3471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3479 if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3481 eval "ac_cv_func_$ac_func=yes"
3483 echo "configure: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3486 eval "ac_cv_func_$ac_func=no"
3491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3492 echo "$ac_t""yes" 1>&6
3493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3494 cat >> confdefs.h <<EOF
3495 #define $ac_tr_func 1
3499 echo "$ac_t""no" 1>&6
3504 echo $ac_n "checking for connect""... $ac_c" 1>&6
3505 echo "configure:3506: checking for connect" >&5
3506 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3507 echo $ac_n "(cached) $ac_c" 1>&6
3509 cat > conftest.$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 /* System header to define __stub macros and hopefully few prototypes,
3513 which can conflict with char connect(); below. */
3515 /* Override any gcc2 internal prototype to avoid an error. */
3516 /* We use char because int might match the return type of a gcc2
3517 builtin and then its argument prototype would still apply. */
3522 /* The GNU C library defines this for functions which it implements
3523 to always fail with ENOSYS. Some functions are actually named
3524 something starting with __ and the normal name is an alias. */
3525 #if defined (__stub_connect) || defined (__stub___connect)
3533 if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3535 eval "ac_cv_func_connect=yes"
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3540 eval "ac_cv_func_connect=no"
3545 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3549 echo "$ac_t""no" 1>&6
3551 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3552 echo "configure:3553: checking for connect in -lsocket" >&5
3553 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 ac_save_LIBS="$LIBS"
3558 LIBS="-lsocket $LIBS"
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 /* Override any gcc2 internal prototype to avoid an error. */
3563 /* We use char because int might match the return type of a gcc2
3564 builtin and then its argument prototype would still apply. */
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 eval "ac_cv_lib_$ac_lib_var=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_lib_$ac_lib_var=no"
3581 LIBS="$ac_save_LIBS"
3584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6
3586 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3587 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3590 echo "$ac_t""no" 1>&6
3595 echo $ac_n "checking for send""... $ac_c" 1>&6
3596 echo "configure:3597: checking for send" >&5
3597 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 /* System header to define __stub macros and hopefully few prototypes,
3604 which can conflict with char send(); below. */
3606 /* Override any gcc2 internal prototype to avoid an error. */
3607 /* We use char because int might match the return type of a gcc2
3608 builtin and then its argument prototype would still apply. */
3613 /* The GNU C library defines this for functions which it implements
3614 to always fail with ENOSYS. Some functions are actually named
3615 something starting with __ and the normal name is an alias. */
3616 #if defined (__stub_send) || defined (__stub___send)
3624 if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3626 eval "ac_cv_func_send=yes"
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3631 eval "ac_cv_func_send=no"
3636 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3637 echo "$ac_t""yes" 1>&6
3640 echo "$ac_t""no" 1>&6
3642 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3643 echo "configure:3644: checking for send in -lsocket" >&5
3644 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 ac_save_LIBS="$LIBS"
3649 LIBS="-lsocket $LIBS"
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 /* Override any gcc2 internal prototype to avoid an error. */
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3662 if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3664 eval "ac_cv_lib_$ac_lib_var=yes"
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3669 eval "ac_cv_lib_$ac_lib_var=no"
3672 LIBS="$ac_save_LIBS"
3675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3677 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3680 echo "$ac_t""no" 1>&6
3685 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3686 echo "configure:3687: checking for gethostbyname" >&5
3687 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* System header to define __stub macros and hopefully few prototypes,
3694 which can conflict with char gethostbyname(); below. */
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699 char gethostbyname();
3703 /* The GNU C library defines this for functions which it implements
3704 to always fail with ENOSYS. Some functions are actually named
3705 something starting with __ and the normal name is an alias. */
3706 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3714 if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3716 eval "ac_cv_func_gethostbyname=yes"
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 eval "ac_cv_func_gethostbyname=no"
3726 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3730 echo "$ac_t""no" 1>&6
3732 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3733 echo "configure:3734: checking for gethostbyname in -lnsl" >&5
3734 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 ac_save_LIBS="$LIBS"
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 /* Override any gcc2 internal prototype to avoid an error. */
3744 /* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3746 char gethostbyname();
3752 if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3754 eval "ac_cv_lib_$ac_lib_var=yes"
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3759 eval "ac_cv_lib_$ac_lib_var=no"
3762 LIBS="$ac_save_LIBS"
3765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3766 echo "$ac_t""yes" 1>&6
3767 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3769 echo "$ac_t""no" 1>&6
3775 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3776 echo "configure:3777: checking for gethostbyname" >&5
3777 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 /* System header to define __stub macros and hopefully few prototypes,
3784 which can conflict with char gethostbyname(); below. */
3786 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3789 char gethostbyname();
3793 /* The GNU C library defines this for functions which it implements
3794 to always fail with ENOSYS. Some functions are actually named
3795 something starting with __ and the normal name is an alias. */
3796 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3804 if { (eval echo configure:3805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3806 eval "ac_cv_func_gethostbyname=yes"
3808 echo "configure: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3811 eval "ac_cv_func_gethostbyname=no"
3816 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3817 echo "$ac_t""yes" 1>&6
3820 echo "$ac_t""no" 1>&6
3822 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3823 echo "configure:3824: checking for gethostbyname in -lbind" >&5
3824 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 ac_save_LIBS="$LIBS"
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 /* Override any gcc2 internal prototype to avoid an error. */
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3836 char gethostbyname();
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3844 eval "ac_cv_lib_$ac_lib_var=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3849 eval "ac_cv_lib_$ac_lib_var=no"
3852 LIBS="$ac_save_LIBS"
3855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3856 echo "$ac_t""yes" 1>&6
3857 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3859 echo "$ac_t""no" 1>&6
3866 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3867 echo "configure:3868: checking for nanosleep" >&5
3868 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 /* System header to define __stub macros and hopefully few prototypes,
3875 which can conflict with char nanosleep(); below. */
3877 /* Override any gcc2 internal prototype to avoid an error. */
3878 /* We use char because int might match the return type of a gcc2
3879 builtin and then its argument prototype would still apply. */
3884 /* The GNU C library defines this for functions which it implements
3885 to always fail with ENOSYS. Some functions are actually named
3886 something starting with __ and the normal name is an alias. */
3887 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3895 if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3897 eval "ac_cv_func_nanosleep=yes"
3899 echo "configure: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3902 eval "ac_cv_func_nanosleep=no"
3907 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3908 echo "$ac_t""yes" 1>&6
3911 echo "$ac_t""no" 1>&6
3913 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3914 echo "configure:3915: checking for nanosleep in -lrt" >&5
3915 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 ac_save_LIBS="$LIBS"
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924 /* Override any gcc2 internal prototype to avoid an error. */
3925 /* We use char because int might match the return type of a gcc2
3926 builtin and then its argument prototype would still apply. */
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3935 eval "ac_cv_lib_$ac_lib_var=yes"
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3940 eval "ac_cv_lib_$ac_lib_var=no"
3943 LIBS="$ac_save_LIBS"
3946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3950 echo "$ac_t""no" 1>&6
3951 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3952 echo "configure:3953: checking for nanosleep in -lposix4" >&5
3953 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 ac_save_LIBS="$LIBS"
3958 LIBS="-lposix4 $LIBS"
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3973 eval "ac_cv_lib_$ac_lib_var=yes"
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3978 eval "ac_cv_lib_$ac_lib_var=no"
3981 LIBS="$ac_save_LIBS"
3984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3986 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3988 echo "$ac_t""no" 1>&6
3997 if test x$have_nanosleep = x1; then
3998 cat >> confdefs.h <<\EOF
3999 #define HAVE_NANOSLEEP 1
4004 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
4005 echo "configure:4006: checking for sem_init in -lrt" >&5
4006 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
4007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4010 ac_save_LIBS="$LIBS"
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 /* Override any gcc2 internal prototype to avoid an error. */
4016 /* We use char because int might match the return type of a gcc2
4017 builtin and then its argument prototype would still apply. */
4024 if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4026 eval "ac_cv_lib_$ac_lib_var=yes"
4028 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4031 eval "ac_cv_lib_$ac_lib_var=no"
4034 LIBS="$ac_save_LIBS"
4037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4039 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
4041 echo "$ac_t""no" 1>&6
4045 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
4046 echo "configure:4047: checking for inet_aton" >&5
4047 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4050 cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4053 /* System header to define __stub macros and hopefully few prototypes,
4054 which can conflict with char inet_aton(); below. */
4056 /* Override any gcc2 internal prototype to avoid an error. */
4057 /* We use char because int might match the return type of a gcc2
4058 builtin and then its argument prototype would still apply. */
4063 /* The GNU C library defines this for functions which it implements
4064 to always fail with ENOSYS. Some functions are actually named
4065 something starting with __ and the normal name is an alias. */
4066 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
4074 if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4076 eval "ac_cv_func_inet_aton=yes"
4078 echo "configure: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4081 eval "ac_cv_func_inet_aton=no"
4086 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
4087 echo "$ac_t""yes" 1>&6
4090 echo "$ac_t""no" 1>&6
4092 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
4093 echo "configure:4094: checking for inet_aton in -lresolv" >&5
4094 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
4095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 ac_save_LIBS="$LIBS"
4099 LIBS="-lresolv $LIBS"
4100 cat > conftest.$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4112 if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4114 eval "ac_cv_lib_$ac_lib_var=yes"
4116 echo "configure: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4119 eval "ac_cv_lib_$ac_lib_var=no"
4122 LIBS="$ac_save_LIBS"
4125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4126 echo "$ac_t""yes" 1>&6
4127 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
4129 echo "$ac_t""no" 1>&6
4135 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4136 echo "configure:4137: checking for textdomain" >&5
4137 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4143 /* System header to define __stub macros and hopefully few prototypes,
4144 which can conflict with char textdomain(); below. */
4146 /* Override any gcc2 internal prototype to avoid an error. */
4147 /* We use char because int might match the return type of a gcc2
4148 builtin and then its argument prototype would still apply. */
4153 /* The GNU C library defines this for functions which it implements
4154 to always fail with ENOSYS. Some functions are actually named
4155 something starting with __ and the normal name is an alias. */
4156 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4164 if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4166 eval "ac_cv_func_textdomain=yes"
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4171 eval "ac_cv_func_textdomain=no"
4176 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4177 echo "$ac_t""yes" 1>&6
4180 echo "$ac_t""no" 1>&6
4182 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4183 echo "configure:4184: checking for textdomain in -lintl" >&5
4184 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 ac_save_LIBS="$LIBS"
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 /* Override any gcc2 internal prototype to avoid an error. */
4194 /* We use char because int might match the return type of a gcc2
4195 builtin and then its argument prototype would still apply. */
4202 if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4204 eval "ac_cv_lib_$ac_lib_var=yes"
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4209 eval "ac_cv_lib_$ac_lib_var=no"
4212 LIBS="$ac_save_LIBS"
4215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4217 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4218 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4221 echo "$ac_t""no" 1>&6
4229 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4230 echo "configure:4231: checking for getopt_long" >&5
4231 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 cat > conftest.$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4237 /* System header to define __stub macros and hopefully few prototypes,
4238 which can conflict with char getopt_long(); below. */
4240 /* Override any gcc2 internal prototype to avoid an error. */
4241 /* We use char because int might match the return type of a gcc2
4242 builtin and then its argument prototype would still apply. */
4247 /* The GNU C library defines this for functions which it implements
4248 to always fail with ENOSYS. Some functions are actually named
4249 something starting with __ and the normal name is an alias. */
4250 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4258 if { (eval echo configure:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4260 eval "ac_cv_func_getopt_long=yes"
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4265 eval "ac_cv_func_getopt_long=no"
4270 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4271 echo "$ac_t""yes" 1>&6
4272 cat >> confdefs.h <<\EOF
4273 #define HAVE_GETOPT_LONG 1
4277 echo "$ac_t""no" 1>&6
4278 # FreeBSD has a gnugetopt library for this:
4279 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4280 echo "configure:4281: checking for getopt_long in -lgnugetopt" >&5
4281 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4283 echo $ac_n "(cached) $ac_c" 1>&6
4285 ac_save_LIBS="$LIBS"
4286 LIBS="-lgnugetopt $LIBS"
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 /* Override any gcc2 internal prototype to avoid an error. */
4291 /* We use char because int might match the return type of a gcc2
4292 builtin and then its argument prototype would still apply. */
4299 if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4301 eval "ac_cv_lib_$ac_lib_var=yes"
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4306 eval "ac_cv_lib_$ac_lib_var=no"
4309 LIBS="$ac_save_LIBS"
4312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4313 echo "$ac_t""yes" 1>&6
4314 cat >> confdefs.h <<\EOF
4315 #define HAVE_GETOPT_LONG 1
4317 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4319 echo "$ac_t""no" 1>&6
4326 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4327 echo "configure:4328: checking return type of signal handlers" >&5
4328 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 #include <sys/types.h>
4340 extern "C" void (*signal (int, void (*)(int)))(int);
4342 void (*signal ()) ();
4349 if { (eval echo configure:4350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4351 ac_cv_type_signal=void
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4356 ac_cv_type_signal=int
4361 echo "$ac_t""$ac_cv_type_signal" 1>&6
4362 cat >> confdefs.h <<EOF
4363 #define RETSIGTYPE $ac_cv_type_signal
4367 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4368 echo "configure:4369: checking for dlopen in -ldl" >&5
4369 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 ac_save_LIBS="$LIBS"
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4389 eval "ac_cv_lib_$ac_lib_var=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_lib_$ac_lib_var=no"
4397 LIBS="$ac_save_LIBS"
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4402 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4404 echo "$ac_t""no" 1>&6
4407 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4408 echo "configure:4409: checking for cos in -lm" >&5
4409 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 ac_save_LIBS="$LIBS"
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429 eval "ac_cv_lib_$ac_lib_var=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_lib_$ac_lib_var=no"
4437 LIBS="$ac_save_LIBS"
4440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4441 echo "$ac_t""yes" 1>&6
4442 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4443 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4445 echo "$ac_t""no" 1>&6
4448 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4449 echo "configure:4450: checking for pow in -lm" >&5
4450 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4454 ac_save_LIBS="$LIBS"
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 /* Override any gcc2 internal prototype to avoid an error. */
4460 /* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4468 if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4470 eval "ac_cv_lib_$ac_lib_var=yes"
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4475 eval "ac_cv_lib_$ac_lib_var=no"
4478 LIBS="$ac_save_LIBS"
4481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4484 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4485 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4486 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4487 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4490 echo "$ac_t""no" 1>&6
4495 if test "x${THREAD_LIB}" = "xerror"; then
4496 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4497 echo "configure:4498: checking for main in -lpthread" >&5
4498 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 ac_save_LIBS="$LIBS"
4503 LIBS="-lpthread $LIBS"
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4512 if { (eval echo configure:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4514 eval "ac_cv_lib_$ac_lib_var=yes"
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4519 eval "ac_cv_lib_$ac_lib_var=no"
4522 LIBS="$ac_save_LIBS"
4525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4526 echo "$ac_t""yes" 1>&6
4527 THREAD_LIB="-lpthread"
4529 echo "$ac_t""no" 1>&6
4533 if test "x${THREAD_LIB}" = "xerror"; then
4534 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4535 echo "configure:4536: checking for main in -lpthreads" >&5
4536 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4540 ac_save_LIBS="$LIBS"
4541 LIBS="-lpthreads $LIBS"
4542 cat > conftest.$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 eval "ac_cv_lib_$ac_lib_var=no"
4560 LIBS="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 THREAD_LIB="-lpthreads"
4567 echo "$ac_t""no" 1>&6
4571 if test "x${THREAD_LIB}" = "xerror"; then
4572 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4573 echo "configure:4574: checking for main in -lc_r" >&5
4574 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 ac_save_LIBS="$LIBS"
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4588 if { (eval echo configure:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4590 eval "ac_cv_lib_$ac_lib_var=yes"
4592 echo "configure: failed program was:" >&5
4593 cat conftest.$ac_ext >&5
4595 eval "ac_cv_lib_$ac_lib_var=no"
4598 LIBS="$ac_save_LIBS"
4601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4602 echo "$ac_t""yes" 1>&6
4605 echo "$ac_t""no" 1>&6
4609 if test "x${THREAD_LIB}" = "xerror"; then
4610 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4611 echo "configure:4612: checking for pthread_mutex_lock" >&5
4612 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 /* System header to define __stub macros and hopefully few prototypes,
4619 which can conflict with char pthread_mutex_lock(); below. */
4621 /* Override any gcc2 internal prototype to avoid an error. */
4622 /* We use char because int might match the return type of a gcc2
4623 builtin and then its argument prototype would still apply. */
4624 char pthread_mutex_lock();
4628 /* The GNU C library defines this for functions which it implements
4629 to always fail with ENOSYS. Some functions are actually named
4630 something starting with __ and the normal name is an alias. */
4631 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4634 pthread_mutex_lock();
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4641 eval "ac_cv_func_pthread_mutex_lock=yes"
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4646 eval "ac_cv_func_pthread_mutex_lock=no"
4651 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4655 echo "$ac_t""no" 1>&6
4661 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4662 echo "configure:4663: checking for cthread_fork in -lthreads" >&5
4663 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4667 ac_save_LIBS="$LIBS"
4668 LIBS="-lthreads $LIBS"
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* Override any gcc2 internal prototype to avoid an error. */
4673 /* We use char because int might match the return type of a gcc2
4674 builtin and then its argument prototype would still apply. */
4675 char cthread_fork();
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683 eval "ac_cv_lib_$ac_lib_var=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 eval "ac_cv_lib_$ac_lib_var=no"
4691 LIBS="$ac_save_LIBS"
4694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 THREAD_LIB="-lthreads"
4698 echo "$ac_t""no" 1>&6
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <pthread.h>
4707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708 egrep "pthread_cond_t" >/dev/null 2>&1; then
4711 cat >> confdefs.h <<\EOF
4712 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 #include <pthread.h>
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 egrep "pthread_once" >/dev/null 2>&1; then
4727 cat >> confdefs.h <<\EOF
4728 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4734 cat > conftest.$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4737 #include <strings.h>
4739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4740 egrep "strncasecmp" >/dev/null 2>&1; then
4743 cat >> confdefs.h <<\EOF
4744 #define STRNCASECMP_IN_STRINGS_H 1
4751 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4755 echo "configure:4756: checking for $ac_hdr" >&5
4756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4765 { (eval echo configure:4766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4767 if test -z "$ac_err"; then
4769 eval "ac_cv_header_$ac_safe=yes"
4772 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4775 eval "ac_cv_header_$ac_safe=no"
4779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4782 cat >> confdefs.h <<EOF
4783 #define $ac_tr_hdr 1
4787 echo "$ac_t""no" 1>&6
4791 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4795 echo "configure:4796: checking for $ac_hdr" >&5
4796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4805 { (eval echo configure:4806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4807 if test -z "$ac_err"; then
4809 eval "ac_cv_header_$ac_safe=yes"
4812 echo "configure: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4815 eval "ac_cv_header_$ac_safe=no"
4819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4820 echo "$ac_t""yes" 1>&6
4821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4822 cat >> confdefs.h <<EOF
4823 #define $ac_tr_hdr 1
4827 echo "$ac_t""no" 1>&6
4831 for ac_hdr in dlfcn.h image.h
4833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4835 echo "configure:4836: checking for $ac_hdr" >&5
4836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4839 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4845 { (eval echo configure:4846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4847 if test -z "$ac_err"; then
4849 eval "ac_cv_header_$ac_safe=yes"
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4855 eval "ac_cv_header_$ac_safe=no"
4859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4860 echo "$ac_t""yes" 1>&6
4861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4862 cat >> confdefs.h <<EOF
4863 #define $ac_tr_hdr 1
4867 echo "$ac_t""no" 1>&6
4871 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4875 echo "configure:4876: checking for $ac_hdr" >&5
4876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4885 { (eval echo configure:4886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4887 if test -z "$ac_err"; then
4889 eval "ac_cv_header_$ac_safe=yes"
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4895 eval "ac_cv_header_$ac_safe=no"
4899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4900 echo "$ac_t""yes" 1>&6
4901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4902 cat >> confdefs.h <<EOF
4903 #define $ac_tr_hdr 1
4907 echo "$ac_t""no" 1>&6
4911 for ac_hdr in machine/param.h sys/shm.h
4913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4915 echo "configure:4916: checking for $ac_hdr" >&5
4916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4925 { (eval echo configure:4926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4927 if test -z "$ac_err"; then
4929 eval "ac_cv_header_$ac_safe=yes"
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4935 eval "ac_cv_header_$ac_safe=no"
4939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4941 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4942 cat >> confdefs.h <<EOF
4943 #define $ac_tr_hdr 1
4947 echo "$ac_t""no" 1>&6
4951 for ac_hdr in linux/version.h
4953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4955 echo "configure:4956: checking for $ac_hdr" >&5
4956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4965 { (eval echo configure:4966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4967 if test -z "$ac_err"; then
4969 eval "ac_cv_header_$ac_safe=yes"
4972 echo "configure: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4975 eval "ac_cv_header_$ac_safe=no"
4979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4980 echo "$ac_t""yes" 1>&6
4981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4982 cat >> confdefs.h <<EOF
4983 #define $ac_tr_hdr 1
4987 echo "$ac_t""no" 1>&6
4992 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4993 echo "configure:4994: checking whether time.h and sys/time.h may both be included" >&5
4994 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5000 #include <sys/types.h>
5001 #include <sys/time.h>
5007 if { (eval echo configure:5008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5009 ac_cv_header_time=yes
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 ac_cv_header_time=no
5019 echo "$ac_t""$ac_cv_header_time" 1>&6
5020 if test $ac_cv_header_time = yes; then
5021 cat >> confdefs.h <<\EOF
5022 #define TIME_WITH_SYS_TIME 1
5028 cat > conftest.$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034 egrep "nanosleep" >/dev/null 2>&1; then
5037 cat >> confdefs.h <<\EOF
5038 #define HAVE_DECL_NANOSLEEP 1
5046 cat > conftest.$ac_ext <<EOF
5047 #line 5048 "configure"
5048 #include "confdefs.h"
5049 #include <sys/time.h>
5051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052 egrep "timespec" >/dev/null 2>&1; then
5055 cat >> confdefs.h <<\EOF
5056 #define HAVE_STRUCT_TIMESPEC 1
5064 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
5066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5068 echo "configure:5069: checking for $ac_hdr" >&5
5069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5078 { (eval echo configure:5079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5080 if test -z "$ac_err"; then
5082 eval "ac_cv_header_$ac_safe=yes"
5085 echo "configure: failed program was:" >&5
5086 cat conftest.$ac_ext >&5
5088 eval "ac_cv_header_$ac_safe=no"
5092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5093 echo "$ac_t""yes" 1>&6
5094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5095 cat >> confdefs.h <<EOF
5096 #define $ac_tr_hdr 1
5100 echo "$ac_t""no" 1>&6
5105 if test "x${x_includes}" = "xNONE"; then
5106 x_includes="/usr/X11R6/include"
5108 if test "x${x_libraries}" = "xNONE"; then
5109 x_libraries="/usr/X11R6/lib"
5112 if test "x${SYS}" != "xmingw32"
5114 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
5115 for ac_hdr in X11/extensions/dpms.h
5117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5119 echo "configure:5120: checking for $ac_hdr" >&5
5120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5123 cat > conftest.$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5129 { (eval echo configure:5130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5131 if test -z "$ac_err"; then
5133 eval "ac_cv_header_$ac_safe=yes"
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5139 eval "ac_cv_header_$ac_safe=no"
5143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5144 echo "$ac_t""yes" 1>&6
5145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5146 cat >> confdefs.h <<EOF
5147 #define $ac_tr_hdr 1
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5153 #include <X11/extensions/dpms.h>
5155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5156 egrep "DPMSInfo" >/dev/null 2>&1; then
5159 cat >> confdefs.h <<\EOF
5160 #define DPMSINFO_IN_DPMS_H 1
5169 echo "$ac_t""no" 1>&6
5173 CPPFLAGS="${save_CPPFLAGS}"
5176 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5177 echo "configure:5178: checking for ntohl in sys/param.h" >&5
5178 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 CFLAGS="${save_CFLAGS} -Wall -Werror"
5182 cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5185 #include <sys/param.h>
5187 void foo() { int meuh; ntohl(meuh); }
5190 if { (eval echo configure:5191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5192 ac_cv_c_ntohl_sys_param_h=yes
5194 echo "configure: failed program was:" >&5
5195 cat conftest.$ac_ext >&5
5197 ac_cv_c_ntohl_sys_param_h=no
5202 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5203 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5204 cat >> confdefs.h <<\EOF
5205 #define NTOHL_IN_SYS_PARAM_H 1
5210 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5211 echo "configure:5212: checking if \$CC accepts -finline-limit" >&5
5212 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5213 echo $ac_n "(cached) $ac_c" 1>&6
5215 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5224 if { (eval echo configure:5225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5226 ac_cv_c_inline_limit=yes
5228 echo "configure: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5231 ac_cv_c_inline_limit=no
5236 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5237 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5238 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5241 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5242 echo "configure:5243: checking if \$CC accepts -Wall -Winline" >&5
5243 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6
5246 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5255 if { (eval echo configure:5256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5257 ac_cv_c_Wall_Winline=yes
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5262 ac_cv_c_Wall_Winline=no
5267 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5268 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5269 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5271 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5272 echo "configure:5273: checking if \$CC accepts -wall -winline" >&5
5273 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5276 CFLAGS="-wall -winline ${save_CFLAGS}"
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5285 if { (eval echo configure:5286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5287 ac_cv_c_wall_winline=yes
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5292 ac_cv_c_wall_winline=no
5297 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5298 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5299 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5303 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5304 echo "configure:5305: checking if \$CC accepts -pipe" >&5
5305 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5308 CFLAGS="${save_CFLAGS} -pipe"
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5317 if { (eval echo configure:5318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5329 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5330 if test "x${ac_cv_c_pipe}" != "xno"; then
5331 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5334 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5335 echo "configure:5336: checking if \$CC accepts -O3" >&5
5336 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5339 CFLAGS="${save_CFLAGS} -O3"
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5348 if { (eval echo configure:5349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5360 echo "$ac_t""$ac_cv_c_o3" 1>&6
5361 if test "x${ac_cv_c_o3}" != "xno"; then
5362 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5364 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5365 echo "configure:5366: checking if \$CC accepts -O2" >&5
5366 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 CFLAGS="${save_CFLAGS} -O2"
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5378 if { (eval echo configure:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5382 echo "configure: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5390 echo "$ac_t""$ac_cv_c_o2" 1>&6
5391 if test "x${ac_cv_c_o2}" != "xno"; then
5392 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5394 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5395 echo "configure:5396: checking if \$CC accepts -O" >&5
5396 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5397 echo $ac_n "(cached) $ac_c" 1>&6
5399 CFLAGS="${save_CFLAGS} -O"
5400 cat > conftest.$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5408 if { (eval echo configure:5409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5412 echo "configure: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5420 echo "$ac_t""$ac_cv_c_o" 1>&6
5421 if test "x${ac_cv_c_o}" != "xno"; then
5422 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5427 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5428 echo "configure:5429: checking if \$CC accepts -ffast-math" >&5
5429 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 CFLAGS="${save_CFLAGS} -ffast-math"
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5441 if { (eval echo configure:5442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5443 ac_cv_c_fast_math=yes
5445 echo "configure: failed program was:" >&5
5446 cat conftest.$ac_ext >&5
5448 ac_cv_c_fast_math=no
5453 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5454 if test "x${ac_cv_c_fast_math}" != "xno"; then
5455 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5458 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5459 echo "configure:5460: checking if \$CC accepts -funroll-loops" >&5
5460 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5461 echo $ac_n "(cached) $ac_c" 1>&6
5463 CFLAGS="${save_CFLAGS} -funroll-loops"
5464 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5472 if { (eval echo configure:5473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5474 ac_cv_c_unroll_loops=yes
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 ac_cv_c_unroll_loops=no
5484 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5485 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5486 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5489 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5490 echo "configure:5491: checking if \$CC accepts -fomit-frame-pointer" >&5
5491 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5492 echo $ac_n "(cached) $ac_c" 1>&6
5494 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5503 if { (eval echo configure:5504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5505 ac_cv_c_omit_frame_pointer=yes
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5510 ac_cv_c_omit_frame_pointer=no
5515 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5516 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5517 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5518 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5519 i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5522 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5523 echo "configure:5524: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5524 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5528 cat > conftest.$ac_ext <<EOF
5529 #line 5530 "configure"
5530 #include "confdefs.h"
5536 if { (eval echo configure:5537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5540 echo "configure: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5548 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5549 if test "x${ac_cv_ld_darwin}" != "xno"; then
5550 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5553 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5554 echo "configure:5555: checking if \$CC accepts -shared" >&5
5555 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5556 echo $ac_n "(cached) $ac_c" 1>&6
5558 CFLAGS="${save_CFLAGS} -shared"
5559 cat > conftest.$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5567 if { (eval echo configure:5568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5569 ac_cv_ld_plugins=yes
5571 echo "configure: failed program was:" >&5
5572 cat conftest.$ac_ext >&5
5579 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5580 if test "x${ac_cv_ld_plugins}" != "xno"; then
5581 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5584 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5585 echo "configure:5586: checking for variadic cpp macros" >&5
5586 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 CFLAGS="${save_CFLAGS}"
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5594 #define a(b,c...) printf(b,##c)
5596 a("foo");a("%s","bar");a("%s%s","baz","quux");
5599 if { (eval echo configure:5600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5601 ac_cv_cpp_variadic_macros=yes
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5606 ac_cv_cpp_variadic_macros=no
5611 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5612 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5613 cat >> confdefs.h <<\EOF
5614 #define HAVE_VARIADIC_MACROS 1
5619 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5620 echo "configure:5621: checking __attribute__ ((aligned ())) support" >&5
5621 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5624 ac_cv_c_attribute_aligned=0
5625 CFLAGS="${save_CFLAGS} -Werror"
5626 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5627 cat > conftest.$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5632 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5635 if { (eval echo configure:5636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5637 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5639 echo "configure: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5644 CFLAGS="${save_CFLAGS}"
5647 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5648 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5649 cat >> confdefs.h <<EOF
5650 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5655 case "x${target_cpu}" in
5660 ARCH="${target_cpu}"
5664 BUILTINS="${BUILTINS}"
5665 PLUGINS="${PLUGINS} misc/dummy/dummy misc/null/null"
5666 PLUGINS="${PLUGINS} control/rc/rc misc/logger/logger access/file access/udp access/http misc/network/ipv4 misc/memcpy/memcpy"
5667 PLUGINS="${PLUGINS} demux/mpeg/es demux/mpeg/audio demux/mpeg/mpeg_system demux/mpeg/ps demux/mpeg/ts"
5668 PLUGINS="${PLUGINS} codec/mpeg_video/idct/idct codec/mpeg_video/idct/idctclassic codec/mpeg_video/motion/motion codec/mpeg_video/mpeg_video codec/spudec/spudec"
5669 PLUGINS="${PLUGINS} codec/spdif"
5670 #PLUGINS="${PLUGINS} codec/a52old/imdct/imdct codec/a52old/downmix/downmix codec/mpeg_audio/mpeg_audio codec/a52old/a52old codec/lpcm/lpcm"
5671 PLUGINS="${PLUGINS} video_filter/deinterlace/deinterlace video_filter/invert video_filter/wall video_filter/transform video_filter/distort video_filter/clone video_filter/crop"
5672 PLUGINS="${PLUGINS} audio_filter/converter/float32tos16"
5673 PLUGINS="${PLUGINS} audio_filter/resampler/trivial"
5674 PLUGINS="${PLUGINS} audio_mixer/trivial"
5675 PLUGINS="${PLUGINS} audio_output/file"
5676 #PLUGINS="${PLUGINS} visualization/scope/scope"
5677 PLUGINS="${PLUGINS} video_chroma/i420_rgb video_chroma/i420_yuy2 video_chroma/i422_yuy2 video_chroma/i420_ymga"
5679 MMX_MODULES="misc/memcpy/memcpymmx codec/mpeg_video/idct/idctmmx codec/mpeg_video/motion/motionmmx video_chroma/i420_rgb_mmx video_chroma/i420_yuy2_mmx video_chroma/i422_yuy2_mmx video_chroma/i420_ymga_mmx"
5680 MMXEXT_MODULES="misc/memcpy/memcpymmxext codec/mpeg_video/idct/idctmmxext codec/mpeg_video/motion/motionmmxext"
5681 THREEDNOW_MODULES="misc/memcpy/memcpy3dn codec/a52old/imdct/imdct3dn codec/a52old/downmix/downmix3dn"
5682 SSE_MODULES="codec/a52old/imdct/imdctsse codec/a52old/downmix/downmixsse"
5683 ALTIVEC_MODULES="codec/mpeg_video/idct/idctaltivec codec/mpeg_video/motion/motionaltivec misc/memcpy/memcpyaltivec"
5685 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5686 echo "configure:5687: checking if \$CC groks MMX inline assembly" >&5
5687 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5690 CFLAGS="${save_CFLAGS}"
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5696 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5699 if { (eval echo configure:5700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5701 ac_cv_mmx_inline=yes
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5711 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5712 if test "x${ac_cv_mmx_inline}" != "xno"; then
5713 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5716 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5717 echo "configure:5718: checking if \$CC groks MMX EXT inline assembly" >&5
5718 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5719 echo $ac_n "(cached) $ac_c" 1>&6
5721 CFLAGS="${save_CFLAGS}"
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5727 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5730 if { (eval echo configure:5731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5732 ac_cv_mmxext_inline=yes
5734 echo "configure: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5737 ac_cv_mmxext_inline=no
5742 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5743 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5744 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5747 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5748 echo "configure:5749: checking if \$CC groks 3D Now! inline assembly" >&5
5749 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5750 echo $ac_n "(cached) $ac_c" 1>&6
5752 CFLAGS="${save_CFLAGS}"
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5758 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5761 if { (eval echo configure:5762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5763 ac_cv_3dnow_inline=yes
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5768 ac_cv_3dnow_inline=no
5773 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5774 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5775 cat >> confdefs.h <<\EOF
5776 #define CAN_COMPILE_3DNOW 1
5779 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5782 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5783 echo "configure:5784: checking if \$CC groks SSE inline assembly" >&5
5784 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5787 CFLAGS="${save_CFLAGS}"
5788 cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5793 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5796 if { (eval echo configure:5797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5798 ac_cv_sse_inline=yes
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5808 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5809 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5810 cat >> confdefs.h <<\EOF
5811 #define CAN_COMPILE_SSE 1
5814 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5817 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5818 # we should be able to remove this test with future versions of mingw32
5819 if test "x${SYS}" != "xmingw32"; then
5820 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5821 echo "configure:5822: checking if \$CC groks AltiVec inline assembly" >&5
5822 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5823 echo $ac_n "(cached) $ac_c" 1>&6
5825 CFLAGS="${save_CFLAGS}"
5826 cat > conftest.$ac_ext <<EOF
5827 #line 5828 "configure"
5828 #include "confdefs.h"
5831 asm volatile("vperm 0,1,2,3");
5834 if { (eval echo configure:5835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5836 ac_cv_altivec_inline=yes
5838 echo "configure: failed program was:" >&5
5839 cat conftest.$ac_ext >&5
5841 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5842 cat > conftest.$ac_ext <<EOF
5843 #line 5844 "configure"
5844 #include "confdefs.h"
5847 asm volatile("vperm 0,1,2,3");
5850 if { (eval echo configure:5851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5852 ac_cv_altivec_inline="-Wa,-m7400"
5854 echo "configure: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5857 ac_cv_altivec_inline=no
5865 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5866 if test "x${ac_cv_altivec_inline}" != "xno"; then
5867 cat >> confdefs.h <<\EOF
5868 #define CAN_COMPILE_ALTIVEC 1
5871 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5872 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5873 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5874 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5875 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5877 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5880 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5881 echo "configure:5882: checking if \$CC groks AltiVec C extensions" >&5
5882 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5885 CFLAGS="${save_CFLAGS} -faltivec"
5887 cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5892 vec_mtvscr((vector unsigned int)(0));
5895 if { (eval echo configure:5896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5897 ac_cv_c_altivec=-faltivec
5899 echo "configure: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5904 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5910 vec_mtvscr((vector unsigned int)(0));
5913 if { (eval echo configure:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5915 ac_cv_c_altivec="-fvec"
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5926 CFLAGS="${save_CFLAGS}"
5929 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5930 if test "x${ac_cv_c_altivec}" != "xno"; then
5931 cat >> confdefs.h <<\EOF
5932 #define CAN_COMPILE_C_ALTIVEC 1
5935 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5936 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5937 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5938 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5939 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5942 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5943 echo "configure:5944: checking if linker needs -framework vecLib" >&5
5944 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5945 echo $ac_n "(cached) $ac_c" 1>&6
5947 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5958 ac_cv_ld_altivec=yes
5960 echo "configure: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5966 LDFLAGS="${save_LDFLAGS}"
5970 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5971 if test "x${ac_cv_ld_altivec}" != "xno"; then
5972 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5973 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5974 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5975 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5980 # Check whether --with- or --without- was given.
5981 if test "${with_+set}" = set; then
5986 # Check whether --with- or --without- was given.
5987 if test "${with_+set}" = set; then
5993 # Check whether --with-tuning or --without-tuning was given.
5994 if test "${with_tuning+set}" = set; then
5995 withval="$with_tuning"
5999 if test "x${with_tuning}" != "x"; then
6000 TUNING="${with_tuning}"
6002 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
6004 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
6008 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
6011 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
6014 # Check whether --enable-optimizations or --disable-optimizations was given.
6015 if test "${enable_optimizations+set}" = set; then
6016 enableval="$enable_optimizations"
6017 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
6023 # Check whether --enable-altivec or --disable-altivec was given.
6024 if test "${enable_altivec+set}" = set; then
6025 enableval="$enable_altivec"
6026 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
6027 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6029 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
6030 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6035 # Check whether --enable-debug or --disable-debug was given.
6036 if test "${enable_debug+set}" = set; then
6037 enableval="$enable_debug"
6038 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
6043 # Check whether --enable-release or --disable-release was given.
6044 if test "${enable_release+set}" = set; then
6045 enableval="$enable_release"
6046 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
6048 VERSION="${VERSION}_`date +%Y-%m-%d`"
6053 # Check whether --with- or --without- was given.
6054 if test "${with_+set}" = set; then
6060 # Check whether --enable-dvd or --disable-dvd was given.
6061 if test "${enable_dvd+set}" = set; then
6062 enableval="$enable_dvd"
6066 if test "x${enable_dvd}" != "xno"
6068 # Check whether --with-dvdcss or --without-dvdcss was given.
6069 if test "${with_dvdcss+set}" = set; then
6070 withval="$with_dvdcss"
6074 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
6075 if test "${with_dvdcss_tree+set}" = set; then
6076 withval="$with_dvdcss_tree"
6080 case "x${with_dvdcss}" in
6082 if test "x${with_dvdcss_tree}" = x
6084 for ac_hdr in dvdcss/dvdcss.h
6086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6088 echo "configure:6089: checking for $ac_hdr" >&5
6089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6098 { (eval echo configure:6099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6100 if test -z "$ac_err"; then
6102 eval "ac_cv_header_$ac_safe=yes"
6105 echo "configure: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6108 eval "ac_cv_header_$ac_safe=no"
6112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6113 echo "$ac_t""yes" 1>&6
6114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6115 cat >> confdefs.h <<EOF
6116 #define $ac_tr_hdr 1
6118 PLUGINS="${PLUGINS} access/dvd/dvd"
6119 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
6121 echo "$ac_t""no" 1>&6
6122 echo "configure: warning: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." 1>&2
6123 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
6128 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
6129 echo "configure:6130: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
6130 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6131 if test "x${real_dvdcss_tree}" = "x"
6133 echo "$ac_t""no" 1>&6
6134 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6136 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6138 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6139 BUILTINS="${BUILTINS} access/dvd/dvd"
6140 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6141 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6143 echo "$ac_t""no" 1>&6
6144 { echo "configure: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" 1>&2; exit 1; }
6149 PLUGINS="${PLUGINS} access/dvd/dvd"
6150 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6151 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6154 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6155 echo "configure:6156: checking for dvdcss headers in ${with_dvdcss}" >&5
6156 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6158 echo "$ac_t""yes" 1>&6
6159 PLUGINS="${PLUGINS} access/dvd/dvd"
6160 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6161 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6163 echo "$ac_t""no" 1>&6
6164 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6170 # Check whether --enable-dvdread or --disable-dvdread was given.
6171 if test "${enable_dvdread+set}" = set; then
6172 enableval="$enable_dvdread"
6176 if test "x${enable_dvdread}" != "xno"
6178 # Check whether --with-dvdread or --without-dvdread was given.
6179 if test "${with_dvdread+set}" = set; then
6180 withval="$with_dvdread"
6184 if test "x${with_dvdread}" = "x"
6189 test_LDFLAGS="-L${with_dvdread}/lib"
6190 test_CFLAGS="-I${with_dvdread}/include"
6192 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6193 for ac_hdr in dvdread/dvd_reader.h
6195 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6196 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6197 echo "configure:6198: checking for $ac_hdr" >&5
6198 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6201 cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6207 { (eval echo configure:6208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6209 if test -z "$ac_err"; then
6211 eval "ac_cv_header_$ac_safe=yes"
6214 echo "configure: failed program was:" >&5
6215 cat conftest.$ac_ext >&5
6217 eval "ac_cv_header_$ac_safe=no"
6221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6222 echo "$ac_t""yes" 1>&6
6223 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6224 cat >> confdefs.h <<EOF
6225 #define $ac_tr_hdr 1
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6231 #include <dvdread/dvd_reader.h>
6233 void foo() { int i=DVD_VIDEO_LB_LEN; }
6236 if { (eval echo configure:6237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6239 PLUGINS="${PLUGINS} access/dvdread/dvdread"
6240 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6241 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6248 if test "x${enable_dvdread}" != "x"
6250 { echo "configure: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" 1>&2; exit 1; }
6257 echo "$ac_t""no" 1>&6
6258 if test "x${enable_dvdread}" != "x"
6260 if test "x${with_dvdread}" != "x"
6262 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6264 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6271 CPPFLAGS="$save_CPPFLAGS"
6274 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6275 if test "${enable_dvdplay+set}" = set; then
6276 enableval="$enable_dvdplay"
6280 if test "x$enable_dvdplay" != "xno"
6282 # Check whether --with-dvdplay or --without-dvdplay was given.
6283 if test "${with_dvdplay+set}" = set; then
6284 withval="$with_dvdplay"
6288 if test "x$with_dvdplay" = x
6293 test_LDFLAGS="-L${with_dvdplay}/lib"
6294 test_CFLAGS="-I${with_dvdplay}/include"
6296 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6297 for ac_hdr in dvdplay/dvdplay.h
6299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6301 echo "configure:6302: checking for $ac_hdr" >&5
6302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6311 { (eval echo configure:6312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6313 if test -z "$ac_err"; then
6315 eval "ac_cv_header_$ac_safe=yes"
6318 echo "configure: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6321 eval "ac_cv_header_$ac_safe=no"
6325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6326 echo "$ac_t""yes" 1>&6
6327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6328 cat >> confdefs.h <<EOF
6329 #define $ac_tr_hdr 1
6332 PLUGINS="${PLUGINS} access/dvdplay/dvdplay"
6333 dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6334 dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6337 echo "$ac_t""no" 1>&6
6338 if test "x$enable_dvdplay" != x
6340 if test "x$with_dvdplay" != x
6342 { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6344 { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6351 CPPFLAGS="${save_CPPFLAGS}"
6355 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6356 if test "${enable_dvbpsi+set}" = set; then
6357 enableval="$enable_dvbpsi"
6361 if test "x${enable_dvbpsi}" != "xno"
6363 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6364 if test "${with_dvbpsi+set}" = set; then
6365 withval="$with_dvbpsi"
6369 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6370 if test "${with_dvbpsi+set}" = set; then
6371 withval="$with_dvbpsi"
6375 case "x${with_dvbpsi}" in
6377 if test "x${with_dvbpsi_tree}" = "x"
6379 for ac_hdr in dvbpsi/dr.h
6381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6383 echo "configure:6384: checking for $ac_hdr" >&5
6384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6385 echo $ac_n "(cached) $ac_c" 1>&6
6387 cat > conftest.$ac_ext <<EOF
6388 #line 6389 "configure"
6389 #include "confdefs.h"
6392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6393 { (eval echo configure:6394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6395 if test -z "$ac_err"; then
6397 eval "ac_cv_header_$ac_safe=yes"
6400 echo "configure: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6403 eval "ac_cv_header_$ac_safe=no"
6407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6408 echo "$ac_t""yes" 1>&6
6409 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6410 cat >> confdefs.h <<EOF
6411 #define $ac_tr_hdr 1
6413 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6414 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} -ldvbpsi"
6416 echo "$ac_t""no" 1>&6
6421 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6422 echo "configure:6423: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6423 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6424 if test "x${real_dvbpsi_tree}" = "x"
6426 echo "$ac_t""no" 1>&6
6427 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6429 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6431 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6432 BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi"
6433 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6434 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6436 echo "$ac_t""no" 1>&6
6437 { echo "configure: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" 1>&2; exit 1; }
6444 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6445 echo "configure:6446: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6446 if test "x${with_dvbpsi}" = "x"
6451 test_LDFLAGS="-L${with_dvbpsi}/lib"
6452 test_CFLAGS="-I${with_dvbpsi}/include"
6454 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6455 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6456 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6457 echo "configure:6458: checking for dvbpsi/dr.h" >&5
6458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6459 echo $ac_n "(cached) $ac_c" 1>&6
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 #include <dvbpsi/dr.h>
6466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6467 { (eval echo configure:6468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6469 if test -z "$ac_err"; then
6471 eval "ac_cv_header_$ac_safe=yes"
6474 echo "configure: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6477 eval "ac_cv_header_$ac_safe=no"
6481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6484 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6485 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6486 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6489 echo "$ac_t""no" 1>&6
6491 if test "x${enable_dvbpsi}" != "x"
6493 { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" 1>&2; exit 1; }
6498 CPPFLAGS="${save_CPPFLAGS}"
6503 # Check whether --enable-v4l or --disable-v4l was given.
6504 if test "${enable_v4l+set}" = set; then
6505 enableval="$enable_v4l"
6509 if test "x${enable_v4l}" = "xyes"
6511 for ac_hdr in libv4l/v4l.h
6513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6515 echo "configure:6516: checking for $ac_hdr" >&5
6516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6517 echo $ac_n "(cached) $ac_c" 1>&6
6519 cat > conftest.$ac_ext <<EOF
6520 #line 6521 "configure"
6521 #include "confdefs.h"
6524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6525 { (eval echo configure:6526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6527 if test -z "$ac_err"; then
6529 eval "ac_cv_header_$ac_safe=yes"
6532 echo "configure: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6535 eval "ac_cv_header_$ac_safe=no"
6539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6540 echo "$ac_t""yes" 1>&6
6541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6542 cat >> confdefs.h <<EOF
6543 #define $ac_tr_hdr 1
6546 PLUGINS="${PLUGINS} access/v4l/v4l"
6549 echo "$ac_t""no" 1>&6
6555 # Check whether --enable-vcd or --disable-vcd was given.
6556 if test "${enable_vcd+set}" = set; then
6557 enableval="$enable_vcd"
6562 if test "x${enable_vcd}" != "xno"
6564 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure"
6566 #include "confdefs.h"
6567 #include <linux/cdrom.h>
6569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6570 egrep "cdrom_msf0" >/dev/null 2>&1; then
6573 PLUGINS="${PLUGINS} access/vcd/vcd"
6579 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure"
6581 #include "confdefs.h"
6582 #include <sys/cdio.h>
6584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585 egrep "ioc_toc_header " >/dev/null 2>&1; then
6588 PLUGINS="${PLUGINS} access/vcd/vcd"
6589 cat >> confdefs.h <<\EOF
6590 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6598 if test "x${SYS}" = "xbsdi"
6600 PLUGINS="${PLUGINS} access/vcd/vcd"
6603 if test "x${SYS}" = "xdarwin"
6605 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6606 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6610 # Check whether --enable-satellite or --disable-satellite was given.
6611 if test "${enable_satellite+set}" = set; then
6612 enableval="$enable_satellite"
6613 if test "x${enable_satellite}" = "xyes"
6615 PLUGINS="${PLUGINS} access/satellite/satellite"
6620 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6623 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6624 echo "configure:6625: checking for inet_pton" >&5
6625 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6628 cat > conftest.$ac_ext <<EOF
6629 #line 6630 "configure"
6630 #include "confdefs.h"
6631 /* System header to define __stub macros and hopefully few prototypes,
6632 which can conflict with char inet_pton(); below. */
6634 /* Override any gcc2 internal prototype to avoid an error. */
6635 /* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */
6641 /* The GNU C library defines this for functions which it implements
6642 to always fail with ENOSYS. Some functions are actually named
6643 something starting with __ and the normal name is an alias. */
6644 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6652 if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6654 eval "ac_cv_func_inet_pton=yes"
6656 echo "configure: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6659 eval "ac_cv_func_inet_pton=no"
6664 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6665 echo "$ac_t""yes" 1>&6
6668 echo "$ac_t""no" 1>&6
6670 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6671 echo "configure:6672: checking for inet_pton in -lresolv" >&5
6672 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6674 echo $ac_n "(cached) $ac_c" 1>&6
6676 ac_save_LIBS="$LIBS"
6677 LIBS="-lresolv $LIBS"
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6692 eval "ac_cv_lib_$ac_lib_var=yes"
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6697 eval "ac_cv_lib_$ac_lib_var=no"
6700 LIBS="$ac_save_LIBS"
6703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6704 echo "$ac_t""yes" 1>&6
6706 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6708 echo "$ac_t""no" 1>&6
6714 echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6715 echo "configure:6716: checking for sockaddr_in6 in netinet/in.h" >&5
6716 cat > conftest.$ac_ext <<EOF
6717 #line 6718 "configure"
6718 #include "confdefs.h"
6719 #include <netinet/in.h>
6721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6722 egrep "sockaddr_in6" >/dev/null 2>&1; then
6724 echo "$ac_t""yes" 1>&6
6727 echo "$ac_t""no" 1>&6; have_ipv6=0
6731 if test x$have_ipv6 = x1; then
6732 PLUGINS="${PLUGINS} misc/network/ipv6"
6735 if test "x${SYS}" = "xmingw32"
6737 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6738 echo "configure:6739: checking for getaddrinfo in ws2tcpip.h" >&5
6739 cat > conftest.$ac_ext <<EOF
6740 #line 6741 "configure"
6741 #include "confdefs.h"
6742 #include <ws2tcpip.h>
6744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6745 egrep "addrinfo" >/dev/null 2>&1; then
6747 echo "$ac_t""yes" 1>&6
6748 PLUGINS="${PLUGINS} misc/network/ipv6"
6751 echo "$ac_t""no" 1>&6
6757 # Check whether --enable-avi or --disable-avi was given.
6758 if test "${enable_avi+set}" = set; then
6759 enableval="$enable_avi"
6763 if test "x${enable_avi}" != "xno"
6765 PLUGINS="${PLUGINS} demux/avi/avi"
6769 # Check whether --with- or --without- was given.
6770 if test "${with_+set}" = set; then
6776 # Check whether --enable-mad or --disable-mad was given.
6777 if test "${enable_mad+set}" = set; then
6778 enableval="$enable_mad"
6782 if test "x${enable_mad}" = "xyes"
6784 # Check whether --with-mad or --without-mad was given.
6785 if test "${with_mad+set}" = set; then
6790 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6792 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6793 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6796 # Check whether --with-mad-tree or --without-mad-tree was given.
6797 if test "${with_mad_tree+set}" = set; then
6798 withval="$with_mad_tree"
6802 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6804 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6805 if test "x${real_mad_tree}" = "x"
6807 echo "$ac_t""no" 1>&6
6808 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6810 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6811 echo "configure:6812: checking for mad.h in ${real_mad_tree}/libmad" >&5
6812 if test -f ${real_mad_tree}/libmad/mad.h
6814 echo "$ac_t""yes" 1>&6
6815 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6816 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6817 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6818 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6819 echo "configure:6820: checking for mad_bit_init in -lmad" >&5
6820 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6824 ac_save_LIBS="$LIBS"
6826 cat > conftest.$ac_ext <<EOF
6827 #line 6828 "configure"
6828 #include "confdefs.h"
6829 /* Override any gcc2 internal prototype to avoid an error. */
6830 /* We use char because int might match the return type of a gcc2
6831 builtin and then its argument prototype would still apply. */
6832 char mad_bit_init();
6838 if { (eval echo configure:6839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6840 eval "ac_cv_lib_$ac_lib_var=yes"
6842 echo "configure: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6845 eval "ac_cv_lib_$ac_lib_var=no"
6848 LIBS="$ac_save_LIBS"
6851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6852 echo "$ac_t""yes" 1>&6
6854 BUILTINS="${BUILTINS} codec/mad/mad"
6855 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6858 echo "$ac_t""no" 1>&6
6859 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6863 LDFLAGS="${save_LDFLAGS}"
6865 echo "$ac_t""no" 1>&6
6866 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6869 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6870 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6875 echo "configure:6876: checking for $ac_hdr" >&5
6876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6877 echo $ac_n "(cached) $ac_c" 1>&6
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6885 { (eval echo configure:6886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6887 if test -z "$ac_err"; then
6889 eval "ac_cv_header_$ac_safe=yes"
6892 echo "configure: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6895 eval "ac_cv_header_$ac_safe=no"
6899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6900 echo "$ac_t""yes" 1>&6
6901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6902 cat >> confdefs.h <<EOF
6903 #define $ac_tr_hdr 1
6907 echo "$ac_t""no" 1>&6
6908 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6912 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6913 echo "configure:6914: checking for mad_bit_init in -lmad" >&5
6914 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6918 ac_save_LIBS="$LIBS"
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6926 char mad_bit_init();
6932 if { (eval echo configure:6933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6934 eval "ac_cv_lib_$ac_lib_var=yes"
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6939 eval "ac_cv_lib_$ac_lib_var=no"
6942 LIBS="$ac_save_LIBS"
6945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6946 echo "$ac_t""yes" 1>&6
6948 PLUGINS="${PLUGINS} codec/mad/mad"
6949 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6951 echo "$ac_t""no" 1>&6
6952 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6955 CFLAGS="${save_CFLAGS}"
6956 LDFLAGS="${save_LDFLAGS}"
6960 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6961 if test "${enable_ffmpeg+set}" = set; then
6962 enableval="$enable_ffmpeg"
6966 if test "x${enable_ffmpeg}" = "xyes"
6968 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6969 if test "${with_ffmpeg+set}" = set; then
6970 withval="$with_ffmpeg"
6974 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6976 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6977 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6980 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_c"
6981 if test "x${ac_cv_mmx_inline}" != "xno"; then
6982 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmx"
6985 if test "x${ac_cv_mmxext_inline}" != "xno"; then
6986 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmxext"
6990 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6991 if test "${with_ffmpeg_tree+set}" = set; then
6992 withval="$with_ffmpeg_tree"
6996 if test "x${with_ffmpeg_tree}" != "x"
6998 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6999 echo "configure:7000: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
7000 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
7001 if test "x${real_ffmpeg_tree}" = x
7003 echo "$ac_t""no" 1>&6
7004 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
7006 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
7008 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
7009 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7010 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
7011 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
7013 echo "$ac_t""no" 1>&6
7014 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
7017 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
7018 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
7019 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
7020 echo "configure:7021: checking for avcodec_init in -lavcodec" >&5
7021 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
7022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7025 ac_save_LIBS="$LIBS"
7026 LIBS="-lavcodec $LIBS"
7027 cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7033 char avcodec_init();
7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7041 eval "ac_cv_lib_$ac_lib_var=yes"
7043 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7046 eval "ac_cv_lib_$ac_lib_var=no"
7049 LIBS="$ac_save_LIBS"
7052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7055 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7056 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
7058 echo "$ac_t""no" 1>&6
7059 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
7062 LDFLAGS="${save_LDFLAGS}"
7063 CFLAGS="${save_CFLAGS}"
7067 # Check whether --enable-faad or --disable-faad was given.
7068 if test "${enable_faad+set}" = set; then
7069 enableval="$enable_faad"
7073 if test "x${enable_faad}" = "xyes"
7075 # Check whether --with-faad or --without-faad was given.
7076 if test "${with_faad+set}" = set; then
7077 withval="$with_faad"
7081 if test "x${with_faad}" != "xno" -a "x${with_faad}" != "x"
7083 faad_CFLAGS="${faad_CFLAGS} -I${with_faad}/include"
7084 faad_LDFLAGS="${faad_LDFLAGS} -L${with_faad}/lib"
7086 faad_LDFLAGS="${faad_LDFLAGS} -lm"
7088 # Check whether --with-faad-tree or --without-faad-tree was given.
7089 if test "${with_faad_tree+set}" = set; then
7090 withval="$with_faad_tree"
7094 if test "x${with_faad_tree}" != "x"
7096 echo $ac_n "checking for libfaad.a in ${with_faad_tree}""... $ac_c" 1>&6
7097 echo "configure:7098: checking for libfaad.a in ${with_faad_tree}" >&5
7098 real_faad_tree="`cd ${with_faad_tree} 2>/dev/null && pwd`"
7099 if test "x${real_faad_tree}" = x
7101 echo "$ac_t""no" 1>&6
7102 { echo "configure: error: cannot cd to ${with_faad_tree}" 1>&2; exit 1; }
7104 if test -f "${real_faad_tree}/libfaad/.libs/libfaad.a"
7106 echo "$ac_t""${real_faad_tree}/libfaad/.libs/libfaad.a" 1>&6
7107 BUILTINS="${BUILTINS} codec/faad/faad"
7108 faad_LDFLAGS="${faad_LDFLAGS} ${real_faad_tree}/libfaad/.libs/libfaad.a"
7109 faad_CFLAGS="${faad_CFLAGS} -I${real_faad_tree}/include"
7111 echo "$ac_t""no" 1>&6
7112 { echo "configure: error: cannot find ${real_faad_tree}/.libs/libfaad.a, make sure you compiled libfaad in ${with_faad_tree}" 1>&2; exit 1; }
7115 CFLAGS="${save_CFLAGS} ${faad_CFLAGS}"
7116 LDFLAGS="${save_LDFLAGS} ${faad_LDFLAGS}"
7117 for ac_hdr in faad.h
7119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7121 echo "configure:7122: checking for $ac_hdr" >&5
7122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7123 echo $ac_n "(cached) $ac_c" 1>&6
7125 cat > conftest.$ac_ext <<EOF
7126 #line 7127 "configure"
7127 #include "confdefs.h"
7130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7131 { (eval echo configure:7132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7133 if test -z "$ac_err"; then
7135 eval "ac_cv_header_$ac_safe=yes"
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7141 eval "ac_cv_header_$ac_safe=no"
7145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7146 echo "$ac_t""yes" 1>&6
7147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7148 cat >> confdefs.h <<EOF
7149 #define $ac_tr_hdr 1
7153 echo "$ac_t""no" 1>&6
7154 { echo "configure: error: Cannot find development headers for libfaad..." 1>&2; exit 1; }
7158 echo $ac_n "checking for faacDecOpen in -lfaad""... $ac_c" 1>&6
7159 echo "configure:7160: checking for faacDecOpen in -lfaad" >&5
7160 ac_lib_var=`echo faad'_'faacDecOpen | sed 'y%./+-%__p_%'`
7161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7162 echo $ac_n "(cached) $ac_c" 1>&6
7164 ac_save_LIBS="$LIBS"
7166 cat > conftest.$ac_ext <<EOF
7167 #line 7168 "configure"
7168 #include "confdefs.h"
7169 /* Override any gcc2 internal prototype to avoid an error. */
7170 /* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7178 if { (eval echo configure:7179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7180 eval "ac_cv_lib_$ac_lib_var=yes"
7182 echo "configure: failed program was:" >&5
7183 cat conftest.$ac_ext >&5
7185 eval "ac_cv_lib_$ac_lib_var=no"
7188 LIBS="$ac_save_LIBS"
7191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7192 echo "$ac_t""yes" 1>&6
7194 PLUGINS="${PLUGINS} codec/faad/faad"
7195 faad_LDFLAGS="${faad_LDFLAGS} -lfaad"
7197 echo "$ac_t""no" 1>&6
7198 { echo "configure: error: Cannot find libfaad library..." 1>&2; exit 1; }
7201 LDFLAGS="${save_LDFLAGS}"
7202 CFLAGS="${save_CFLAGS}"
7208 # Check whether --enable-mp4 or --disable-mp4 was given.
7209 if test "${enable_mp4+set}" = set; then
7210 enableval="$enable_mp4"
7214 if test "x${enable_mp4}" != "xno"
7217 PLUGINS="${PLUGINS} demux/mp4/mp4"
7218 for ac_hdr in zlib.h
7220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7222 echo "configure:7223: checking for $ac_hdr" >&5
7223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7224 echo $ac_n "(cached) $ac_c" 1>&6
7226 cat > conftest.$ac_ext <<EOF
7227 #line 7228 "configure"
7228 #include "confdefs.h"
7231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7232 { (eval echo configure:7233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7234 if test -z "$ac_err"; then
7236 eval "ac_cv_header_$ac_safe=yes"
7239 echo "configure: failed program was:" >&5
7240 cat conftest.$ac_ext >&5
7242 eval "ac_cv_header_$ac_safe=no"
7246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7247 echo "$ac_t""yes" 1>&6
7248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7249 cat >> confdefs.h <<EOF
7250 #define $ac_tr_hdr 1
7252 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
7254 echo "$ac_t""no" 1>&6
7260 # Check whether --enable-a52 or --disable-a52 was given.
7261 if test "${enable_a52+set}" = set; then
7262 enableval="$enable_a52"
7266 if test "x${enable_a52}" != "xno"
7268 # Check whether --with-a52 or --without-a52 was given.
7269 if test "${with_a52+set}" = set; then
7274 # Check whether --with-a52-tree or --without-a52-tree was given.
7275 if test "${with_a52_tree+set}" = set; then
7276 withval="$with_a52_tree"
7280 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
7282 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
7283 if test "x${real_a52_tree}" = "x"
7285 echo "$ac_t""no" 1>&6
7286 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
7288 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
7289 echo "configure:7290: checking for a52.h in ${real_a52_tree}/include" >&5
7290 if test -f ${real_a52_tree}/include/a52.h
7292 echo "$ac_t""yes" 1>&6
7293 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
7294 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
7295 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
7296 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7297 echo "configure:7298: checking for a52_free in -la52" >&5
7298 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7300 echo $ac_n "(cached) $ac_c" 1>&6
7302 ac_save_LIBS="$LIBS"
7303 LIBS="-la52 -lm $LIBS"
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7307 /* Override any gcc2 internal prototype to avoid an error. */
7308 /* We use char because int might match the return type of a gcc2
7309 builtin and then its argument prototype would still apply. */
7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7318 eval "ac_cv_lib_$ac_lib_var=yes"
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7323 eval "ac_cv_lib_$ac_lib_var=no"
7326 LIBS="$ac_save_LIBS"
7329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7332 BUILTINS="${BUILTINS} codec/a52"
7333 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7334 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7337 echo "$ac_t""no" 1>&6
7339 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7341 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7343 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7348 LDFLAGS="${save_LDFLAGS}"
7350 echo "$ac_t""no" 1>&6
7351 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7354 if test "x${with_a52}" = "x"
7359 test_LDFLAGS="-L${with_a52}/lib"
7360 test_CFLAGS="-I${with_a52}/include"
7362 save_CPPFLAGS="${CPPFLAGS}"
7363 save_LDFLAGS="${LDFLAGS}"
7364 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
7365 LDFLAGS="${save_LDFLAGS} ${test_LDFLAGS}"
7366 for ac_hdr in a52dec/a52.h
7368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7370 echo "configure:7371: checking for $ac_hdr" >&5
7371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7372 echo $ac_n "(cached) $ac_c" 1>&6
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7380 { (eval echo configure:7381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7382 if test -z "$ac_err"; then
7384 eval "ac_cv_header_$ac_safe=yes"
7387 echo "configure: failed program was:" >&5
7388 cat conftest.$ac_ext >&5
7390 eval "ac_cv_header_$ac_safe=no"
7394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7395 echo "$ac_t""yes" 1>&6
7396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7397 cat >> confdefs.h <<EOF
7398 #define $ac_tr_hdr 1
7401 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7402 echo "configure:7403: checking for a52_free in -la52" >&5
7403 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7407 ac_save_LIBS="$LIBS"
7408 LIBS="-la52 -lm $LIBS"
7409 cat > conftest.$ac_ext <<EOF
7410 #line 7411 "configure"
7411 #include "confdefs.h"
7412 /* Override any gcc2 internal prototype to avoid an error. */
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7421 if { (eval echo configure:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7423 eval "ac_cv_lib_$ac_lib_var=yes"
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7428 eval "ac_cv_lib_$ac_lib_var=no"
7431 LIBS="$ac_save_LIBS"
7434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7437 BUILTINS="${BUILTINS} codec/a52"
7438 a52_LDFLAGS="${a52_LDFLAGS} ${test_LDFLAGS} -la52 -lm"
7439 a52_CFLAGS="${a52_CFLAGS} ${test_CFLAGS}"
7442 echo "$ac_t""no" 1>&6
7444 if test "x${enable_dvbpsi}" != "x"
7446 { echo "configure: error: Could not find a52 on your system: you may get it from http://liba52.sf.net" 1>&2; exit 1; }
7453 echo "$ac_t""no" 1>&6
7457 CPPFLAGS="${save_CPPFLAGS}"
7458 LDFLAGS="${save_LDFLAGS}"
7462 # Check whether --enable-cinepak or --disable-cinepak was given.
7463 if test "${enable_cinepak+set}" = set; then
7464 enableval="$enable_cinepak"
7468 if test "x${enable_cinepak}" != "xno"
7470 PLUGINS="${PLUGINS} codec/cinepak/cinepak"
7473 # Check whether --enable-vorbis or --disable-vorbis was given.
7474 if test "${enable_vorbis+set}" = set; then
7475 enableval="$enable_vorbis"
7479 if test "x${enable_vorbis}" != "xno"
7481 for ac_hdr in ogg/ogg.h
7483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7485 echo "configure:7486: checking for $ac_hdr" >&5
7486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7487 echo $ac_n "(cached) $ac_c" 1>&6
7489 cat > conftest.$ac_ext <<EOF
7490 #line 7491 "configure"
7491 #include "confdefs.h"
7494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7495 { (eval echo configure:7496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7497 if test -z "$ac_err"; then
7499 eval "ac_cv_header_$ac_safe=yes"
7502 echo "configure: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7505 eval "ac_cv_header_$ac_safe=no"
7509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7510 echo "$ac_t""yes" 1>&6
7511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7512 cat >> confdefs.h <<EOF
7513 #define $ac_tr_hdr 1
7516 #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis"
7517 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7520 echo "$ac_t""no" 1>&6
7526 # Check whether --enable-dv or --disable-dv was given.
7527 if test "${enable_dv+set}" = set; then
7528 enableval="$enable_dv"
7532 if test "x${enable_dv}" = "xyes"
7534 for ac_hdr in libdv/dv.h
7536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7538 echo "configure:7539: checking for $ac_hdr" >&5
7539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7540 echo $ac_n "(cached) $ac_c" 1>&6
7542 cat > conftest.$ac_ext <<EOF
7543 #line 7544 "configure"
7544 #include "confdefs.h"
7547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7548 { (eval echo configure:7549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7550 if test -z "$ac_err"; then
7552 eval "ac_cv_header_$ac_safe=yes"
7555 echo "configure: failed program was:" >&5
7556 cat conftest.$ac_ext >&5
7558 eval "ac_cv_header_$ac_safe=no"
7562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7563 echo "$ac_t""yes" 1>&6
7564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7565 cat >> confdefs.h <<EOF
7566 #define $ac_tr_hdr 1
7569 BUILTINS="${BUILTINS} codec/dv/dv"
7570 dv_LDFLAGS="${dv_LDFLAGS} -ldv"
7573 echo "$ac_t""no" 1>&6
7580 # Check whether --with- or --without- was given.
7581 if test "${with_+set}" = set; then
7587 # Check whether --enable-x11 or --disable-x11 was given.
7588 if test "${enable_x11+set}" = set; then
7589 enableval="$enable_x11"
7593 if test "x${enable_x11}" != "xno" &&
7594 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7595 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7596 for ac_hdr in X11/Xlib.h
7598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7600 echo "configure:7601: checking for $ac_hdr" >&5
7601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7602 echo $ac_n "(cached) $ac_c" 1>&6
7604 cat > conftest.$ac_ext <<EOF
7605 #line 7606 "configure"
7606 #include "confdefs.h"
7609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7610 { (eval echo configure:7611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7612 if test -z "$ac_err"; then
7614 eval "ac_cv_header_$ac_safe=yes"
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7620 eval "ac_cv_header_$ac_safe=no"
7624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7625 echo "$ac_t""yes" 1>&6
7626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7627 cat >> confdefs.h <<EOF
7628 #define $ac_tr_hdr 1
7631 PLUGINS="${PLUGINS} video_output/x11/x11"
7632 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7633 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7636 echo "$ac_t""no" 1>&6
7640 CPPFLAGS="${save_CPPFLAGS}"
7643 # Check whether --enable-xvideo or --disable-xvideo was given.
7644 if test "${enable_xvideo+set}" = set; then
7645 enableval="$enable_xvideo"
7649 if test "x${enable_xvideo}" != "xno" &&
7650 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7651 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7652 for ac_hdr in X11/extensions/Xv.h
7654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7656 echo "configure:7657: checking for $ac_hdr" >&5
7657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7660 cat > conftest.$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7666 { (eval echo configure:7667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7668 if test -z "$ac_err"; then
7670 eval "ac_cv_header_$ac_safe=yes"
7673 echo "configure: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7676 eval "ac_cv_header_$ac_safe=no"
7680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7681 echo "$ac_t""yes" 1>&6
7682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7683 cat >> confdefs.h <<EOF
7684 #define $ac_tr_hdr 1
7687 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7688 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7689 echo "configure:7690: checking for XvPutImage in -lXv_pic" >&5
7690 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7694 ac_save_LIBS="$LIBS"
7695 LIBS="-lXv_pic $LIBS"
7696 cat > conftest.$ac_ext <<EOF
7697 #line 7698 "configure"
7698 #include "confdefs.h"
7699 /* Override any gcc2 internal prototype to avoid an error. */
7700 /* We use char because int might match the return type of a gcc2
7701 builtin and then its argument prototype would still apply. */
7708 if { (eval echo configure:7709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7710 eval "ac_cv_lib_$ac_lib_var=yes"
7712 echo "configure: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7715 eval "ac_cv_lib_$ac_lib_var=no"
7718 LIBS="$ac_save_LIBS"
7721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7722 echo "$ac_t""yes" 1>&6
7723 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7724 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7725 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7726 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7728 echo "$ac_t""no" 1>&6
7729 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7730 echo "configure:7731: checking for XvPutImage in -lXv" >&5
7731 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7735 ac_save_LIBS="$LIBS"
7737 cat > conftest.$ac_ext <<EOF
7738 #line 7739 "configure"
7739 #include "confdefs.h"
7740 /* Override any gcc2 internal prototype to avoid an error. */
7741 /* We use char because int might match the return type of a gcc2
7742 builtin and then its argument prototype would still apply. */
7749 if { (eval echo configure:7750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7751 eval "ac_cv_lib_$ac_lib_var=yes"
7753 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7756 eval "ac_cv_lib_$ac_lib_var=no"
7759 LIBS="$ac_save_LIBS"
7762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7763 echo "$ac_t""yes" 1>&6
7764 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7765 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7766 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7767 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7769 echo "$ac_t""no" 1>&6
7770 # Otherwise... well, do nothing.
7778 CFLAGS="${save_CFLAGS}"
7780 CPPFLAGS="${save_CPPFLAGS}"
7782 echo "$ac_t""no" 1>&6
7788 # Check whether --enable-sdl or --disable-sdl was given.
7789 if test "${enable_sdl+set}" = set; then
7790 enableval="$enable_sdl"
7794 if test "x${enable_sdl}" != "xno"
7797 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7798 if test "${with_sdl_config_path+set}" = set; then
7799 withval="$with_sdl_config_path"
7800 if test "x${with_sdl_config_path}" != "xno"
7802 SDL_PATH="${with_sdl_config_path}:${PATH}"
7806 # Extract the first word of "sdl12-config", so it can be a program name with args.
7807 set dummy sdl12-config; ac_word=$2
7808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7809 echo "configure:7810: checking for $ac_word" >&5
7810 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7811 echo $ac_n "(cached) $ac_c" 1>&6
7813 case "$SDL12_CONFIG" in
7815 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7818 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7822 ac_dummy="${SDL_PATH}"
7823 for ac_dir in $ac_dummy; do
7824 test -z "$ac_dir" && ac_dir=.
7825 if test -f $ac_dir/$ac_word; then
7826 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7831 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7835 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7836 if test -n "$SDL12_CONFIG"; then
7837 echo "$ac_t""$SDL12_CONFIG" 1>&6
7839 echo "$ac_t""no" 1>&6
7842 SDL_CONFIG="${SDL12_CONFIG}"
7843 SDL_HEADER="SDL12/SDL.h"
7844 if test "x${SDL_CONFIG}" = "xno"
7846 # Extract the first word of "sdl11-config", so it can be a program name with args.
7847 set dummy sdl11-config; ac_word=$2
7848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7849 echo "configure:7850: checking for $ac_word" >&5
7850 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
7853 case "$SDL11_CONFIG" in
7855 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7858 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7862 ac_dummy="${SDL_PATH}"
7863 for ac_dir in $ac_dummy; do
7864 test -z "$ac_dir" && ac_dir=.
7865 if test -f $ac_dir/$ac_word; then
7866 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7871 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7875 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7876 if test -n "$SDL11_CONFIG"; then
7877 echo "$ac_t""$SDL11_CONFIG" 1>&6
7879 echo "$ac_t""no" 1>&6
7882 SDL_CONFIG=${SDL11_CONFIG}
7883 SDL_HEADER="SDL11/SDL.h"
7885 if test "x${SDL_CONFIG}" = "xno"
7887 # Extract the first word of "sdl-config", so it can be a program name with args.
7888 set dummy sdl-config; ac_word=$2
7889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7890 echo "configure:7891: checking for $ac_word" >&5
7891 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7892 echo $ac_n "(cached) $ac_c" 1>&6
7894 case "$SDL_CONFIG" in
7896 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7899 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7903 ac_dummy="${SDL_PATH}"
7904 for ac_dir in $ac_dummy; do
7905 test -z "$ac_dir" && ac_dir=.
7906 if test -f $ac_dir/$ac_word; then
7907 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7912 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7916 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7917 if test -n "$SDL_CONFIG"; then
7918 echo "$ac_t""$SDL_CONFIG" 1>&6
7920 echo "$ac_t""no" 1>&6
7923 SDL_HEADER="SDL/SDL.h"
7925 if test "x${SDL_CONFIG}" != "xno"
7927 PLUGINS="${PLUGINS} video_output/sdl/sdl"
7928 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7929 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7930 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7931 for ac_hdr in ${SDL_HEADER}
7933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7935 echo "configure:7936: checking for $ac_hdr" >&5
7936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7939 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7945 { (eval echo configure:7946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7947 if test -z "$ac_err"; then
7949 eval "ac_cv_header_$ac_safe=yes"
7952 echo "configure: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7955 eval "ac_cv_header_$ac_safe=no"
7959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7960 echo "$ac_t""yes" 1>&6
7961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7962 cat >> confdefs.h <<EOF
7963 #define $ac_tr_hdr 1
7965 cat >> confdefs.h <<EOF
7966 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7970 echo "$ac_t""no" 1>&6
7971 { echo "configure: error: The development package for SDL is not installed.
7972 Please install it and try again. Alternatively you can also configure with
7973 --disable-sdl." 1>&2; exit 1; }
7978 CPPFLAGS="${save_CPPFLAGS}"
7979 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7981 { echo "configure: error: The development package for SDL is not installed.
7982 Please install it and try again. Alternatively you can also configure with
7983 --disable-sdl." 1>&2; exit 1; }
7985 elif test "x${enable_sdl}" = "xyes"
7987 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7988 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7993 # Check whether --enable-directx or --disable-directx was given.
7994 if test "${enable_directx+set}" = set; then
7995 enableval="$enable_directx"
7999 if test "x${enable_directx}" != "xno"
8001 if test "x${SYS}" = "xmingw32"
8003 # Check whether --with-directx or --without-directx was given.
8004 if test "${with_directx+set}" = set; then
8005 withval="$with_directx"
8009 if test "x${with_directx}" = "x"
8011 for ac_hdr in ddraw.h
8013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8015 echo "configure:8016: checking for $ac_hdr" >&5
8016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8019 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8025 { (eval echo configure:8026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8027 if test -z "$ac_err"; then
8029 eval "ac_cv_header_$ac_safe=yes"
8032 echo "configure: failed program was:" >&5
8033 cat conftest.$ac_ext >&5
8035 eval "ac_cv_header_$ac_safe=no"
8039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8040 echo "$ac_t""yes" 1>&6
8041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8042 cat >> confdefs.h <<EOF
8043 #define $ac_tr_hdr 1
8045 PLUGINS="${PLUGINS} video_output/directx/directx"
8046 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8048 echo "$ac_t""no" 1>&6
8053 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
8054 echo "configure:8055: checking for directX headers in ${with_directx}" >&5
8055 if test -f ${with_directx}/ddraw.h
8057 PLUGINS="${PLUGINS} video_output/directx/directx"
8058 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8059 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
8060 echo "$ac_t""yes" 1>&6
8062 echo "$ac_t""no" 1>&6
8063 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
8069 # Check whether --enable-fb or --disable-fb was given.
8070 if test "${enable_fb+set}" = set; then
8071 enableval="$enable_fb"
8075 if test "x${enable_fb}" != "xno"
8077 for ac_hdr in linux/fb.h
8079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8081 echo "configure:8082: checking for $ac_hdr" >&5
8082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8083 echo $ac_n "(cached) $ac_c" 1>&6
8085 cat > conftest.$ac_ext <<EOF
8086 #line 8087 "configure"
8087 #include "confdefs.h"
8090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8091 { (eval echo configure:8092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8093 if test -z "$ac_err"; then
8095 eval "ac_cv_header_$ac_safe=yes"
8098 echo "configure: failed program was:" >&5
8099 cat conftest.$ac_ext >&5
8101 eval "ac_cv_header_$ac_safe=no"
8105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8106 echo "$ac_t""yes" 1>&6
8107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8108 cat >> confdefs.h <<EOF
8109 #define $ac_tr_hdr 1
8112 PLUGINS="${PLUGINS} video_output/fb/fb"
8115 echo "$ac_t""no" 1>&6
8121 # Check whether --enable-mga or --disable-mga was given.
8122 if test "${enable_mga+set}" = set; then
8123 enableval="$enable_mga"
8124 if test "x${enable_mga}" = "xyes"
8126 PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga"
8131 # Check whether --enable-ggi or --disable-ggi was given.
8132 if test "${enable_ggi+set}" = set; then
8133 enableval="$enable_ggi"
8137 if test "x${enable_ggi}" = "xyes"
8139 PLUGINS="${PLUGINS} video_output/ggi/ggi"
8140 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
8141 # Check whether --with-ggi or --without-ggi was given.
8142 if test "${with_ggi+set}" = set; then
8144 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
8146 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
8147 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
8153 # Check whether --enable-glide or --disable-glide was given.
8154 if test "${enable_glide+set}" = set; then
8155 enableval="$enable_glide"
8159 if test "x${enable_glide}" = "xyes"
8161 PLUGINS="${PLUGINS} video_output/glide/glide"
8162 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
8163 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
8164 # Check whether --with-glide or --without-glide was given.
8165 if test "${with_glide+set}" = set; then
8166 withval="$with_glide"
8167 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
8169 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
8170 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
8176 # Check whether --enable-aa or --disable-aa was given.
8177 if test "${enable_aa+set}" = set; then
8178 enableval="$enable_aa"
8182 if test "x${enable_aa}" = "xyes"
8184 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
8185 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
8186 echo "configure:8187: checking for aalib.h" >&5
8187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8188 echo $ac_n "(cached) $ac_c" 1>&6
8190 cat > conftest.$ac_ext <<EOF
8191 #line 8192 "configure"
8192 #include "confdefs.h"
8195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8196 { (eval echo configure:8197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8198 if test -z "$ac_err"; then
8200 eval "ac_cv_header_$ac_safe=yes"
8203 echo "configure: failed program was:" >&5
8204 cat conftest.$ac_ext >&5
8206 eval "ac_cv_header_$ac_safe=no"
8210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8211 echo "$ac_t""yes" 1>&6
8214 echo "$ac_t""no" 1>&6
8218 if test "x${have_aa}" = "xtrue"
8220 PLUGINS="${PLUGINS} video_output/aa/aa"
8221 aa_LDFLAGS="${aa_LDFLAGS} -laa"
8226 # Check whether --with- or --without- was given.
8227 if test "${with_+set}" = set; then
8233 # Check whether --enable-oss or --disable-oss was given.
8234 if test "${enable_oss+set}" = set; then
8235 enableval="$enable_oss"
8240 if test "x${enable_oss}" != "xno" &&
8241 (test "x${SYS}" != "xmingw32" || test "x${enable_oss}" = "xyes")
8243 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
8245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8247 echo "configure:8248: checking for $ac_hdr" >&5
8248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8249 echo $ac_n "(cached) $ac_c" 1>&6
8251 cat > conftest.$ac_ext <<EOF
8252 #line 8253 "configure"
8253 #include "confdefs.h"
8256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8257 { (eval echo configure:8258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8259 if test -z "$ac_err"; then
8261 eval "ac_cv_header_$ac_safe=yes"
8264 echo "configure: failed program was:" >&5
8265 cat conftest.$ac_ext >&5
8267 eval "ac_cv_header_$ac_safe=no"
8271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8272 echo "$ac_t""yes" 1>&6
8273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8274 cat >> confdefs.h <<EOF
8275 #define $ac_tr_hdr 1
8278 PLUGINS="${PLUGINS} audio_output/oss"
8279 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
8280 echo "configure:8281: checking for main in -lossaudio" >&5
8281 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
8282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8283 echo $ac_n "(cached) $ac_c" 1>&6
8285 ac_save_LIBS="$LIBS"
8286 LIBS="-lossaudio $LIBS"
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8297 eval "ac_cv_lib_$ac_lib_var=yes"
8299 echo "configure: failed program was:" >&5
8300 cat conftest.$ac_ext >&5
8302 eval "ac_cv_lib_$ac_lib_var=no"
8305 LIBS="$ac_save_LIBS"
8308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8309 echo "$ac_t""yes" 1>&6
8310 oss_LDFLAGS="${oss_LDFLAGS} -lossaudio"
8312 echo "$ac_t""no" 1>&6
8317 echo "$ac_t""no" 1>&6
8323 # Check whether --enable-esd or --disable-esd was given.
8324 if test "${enable_esd+set}" = set; then
8325 enableval="$enable_esd"
8326 if test "x${enable_esd}" = "xyes"
8328 # Extract the first word of "esd-config", so it can be a program name with args.
8329 set dummy esd-config; ac_word=$2
8330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8331 echo "configure:8332: checking for $ac_word" >&5
8332 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
8333 echo $ac_n "(cached) $ac_c" 1>&6
8335 case "$ESD_CONFIG" in
8337 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
8340 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
8343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8345 for ac_dir in $ac_dummy; do
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/$ac_word; then
8348 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
8353 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
8357 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
8358 if test -n "$ESD_CONFIG"; then
8359 echo "$ac_t""$ESD_CONFIG" 1>&6
8361 echo "$ac_t""no" 1>&6
8364 if test "x${ESD_CONFIG}" != "xno"
8366 #PLUGINS="${PLUGINS} audio_output/esd"
8367 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
8368 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
8374 # Check whether --enable-arts or --disable-arts was given.
8375 if test "${enable_arts+set}" = set; then
8376 enableval="$enable_arts"
8377 if test "x${enable_arts}" = "xyes"
8379 # Extract the first word of "artsc-config", so it can be a program name with args.
8380 set dummy artsc-config; ac_word=$2
8381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8382 echo "configure:8383: checking for $ac_word" >&5
8383 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
8384 echo $ac_n "(cached) $ac_c" 1>&6
8386 case "$ARTS_CONFIG" in
8388 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8391 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8396 for ac_dir in $ac_dummy; do
8397 test -z "$ac_dir" && ac_dir=.
8398 if test -f $ac_dir/$ac_word; then
8399 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8404 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8408 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8409 if test -n "$ARTS_CONFIG"; then
8410 echo "$ac_t""$ARTS_CONFIG" 1>&6
8412 echo "$ac_t""no" 1>&6
8415 if test "x${ARTS_CONFIG}" != "xno"
8417 #PLUGINS="${PLUGINS} audio_output/arts"
8418 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8419 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8425 # Check whether --enable-alsa or --disable-alsa was given.
8426 if test "${enable_alsa+set}" = set; then
8427 enableval="$enable_alsa"
8428 if test "x${enable_alsa}" = "xyes"
8430 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8431 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8432 echo "configure:8433: checking for alsa/asoundlib.h" >&5
8433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8434 echo $ac_n "(cached) $ac_c" 1>&6
8436 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8439 #include <alsa/asoundlib.h>
8441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8442 { (eval echo configure:8443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8444 if test -z "$ac_err"; then
8446 eval "ac_cv_header_$ac_safe=yes"
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8452 eval "ac_cv_header_$ac_safe=no"
8456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8457 echo "$ac_t""yes" 1>&6
8458 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8459 echo "configure:8460: checking for main in -lasound" >&5
8460 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8462 echo $ac_n "(cached) $ac_c" 1>&6
8464 ac_save_LIBS="$LIBS"
8465 LIBS="-lasound $LIBS"
8466 cat > conftest.$ac_ext <<EOF
8467 #line 8468 "configure"
8468 #include "confdefs.h"
8474 if { (eval echo configure:8475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8476 eval "ac_cv_lib_$ac_lib_var=yes"
8478 echo "configure: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8481 eval "ac_cv_lib_$ac_lib_var=no"
8484 LIBS="$ac_save_LIBS"
8487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8488 echo "$ac_t""yes" 1>&6
8491 echo "$ac_t""no" 1>&6
8496 echo "$ac_t""no" 1>&6
8500 if test "x${have_alsa}" = "xtrue"
8502 #PLUGINS="${PLUGINS} audio_output/alsa"
8503 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8509 # Check whether --enable-waveout or --disable-waveout was given.
8510 if test "${enable_waveout+set}" = set; then
8511 enableval="$enable_waveout"
8515 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8517 PLUGINS="${PLUGINS} audio_output/waveout"
8518 waveout_LDFLAGS="-lwinmm"
8522 # Check whether --with- or --without- was given.
8523 if test "${with_+set}" = set; then
8529 if test "x${SYS}" = "xbeos"
8531 PLUGINS="${PLUGINS} gui/beos/beos"
8534 # Check whether --enable-gtk or --disable-gtk was given.
8535 if test "${enable_gtk+set}" = set; then
8536 enableval="$enable_gtk"
8540 if test "x${enable_gtk}" != "xno"
8543 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8544 if test "${with_gtk_config_path+set}" = set; then
8545 withval="$with_gtk_config_path"
8546 if test "x${with_gtk_config_path}" != "xno"
8548 GTK_PATH="${with_gtk_config_path}:${PATH}"
8552 # look for gtk-config
8553 # Extract the first word of "gtk12-config", so it can be a program name with args.
8554 set dummy gtk12-config; ac_word=$2
8555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8556 echo "configure:8557: checking for $ac_word" >&5
8557 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
8560 case "$GTK12_CONFIG" in
8562 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8565 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8569 ac_dummy="${GTK_PATH}"
8570 for ac_dir in $ac_dummy; do
8571 test -z "$ac_dir" && ac_dir=.
8572 if test -f $ac_dir/$ac_word; then
8573 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8578 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8582 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8583 if test -n "$GTK12_CONFIG"; then
8584 echo "$ac_t""$GTK12_CONFIG" 1>&6
8586 echo "$ac_t""no" 1>&6
8589 GTK_CONFIG=${GTK12_CONFIG}
8590 if test "x${GTK_CONFIG}" = "xno"
8592 # Extract the first word of "gtk-config", so it can be a program name with args.
8593 set dummy gtk-config; ac_word=$2
8594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8595 echo "configure:8596: checking for $ac_word" >&5
8596 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8599 case "$GTK_CONFIG" in
8601 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8604 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8608 ac_dummy="${GTK_PATH}"
8609 for ac_dir in $ac_dummy; do
8610 test -z "$ac_dir" && ac_dir=.
8611 if test -f $ac_dir/$ac_word; then
8612 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8617 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8621 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8622 if test -n "$GTK_CONFIG"; then
8623 echo "$ac_t""$GTK_CONFIG" 1>&6
8625 echo "$ac_t""no" 1>&6
8629 if test "x${GTK_CONFIG}" != "xno"
8631 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8633 { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." 1>&2; exit 1; }
8635 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8636 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8637 # now look for the gtk.h header
8638 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8639 ac_cv_gtk_headers=yes
8640 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8644 echo "configure:8645: checking for $ac_hdr" >&5
8645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8646 echo $ac_n "(cached) $ac_c" 1>&6
8648 cat > conftest.$ac_ext <<EOF
8649 #line 8650 "configure"
8650 #include "confdefs.h"
8653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8654 { (eval echo configure:8655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8656 if test -z "$ac_err"; then
8658 eval "ac_cv_header_$ac_safe=yes"
8661 echo "configure: failed program was:" >&5
8662 cat conftest.$ac_ext >&5
8664 eval "ac_cv_header_$ac_safe=no"
8668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8669 echo "$ac_t""yes" 1>&6
8670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8671 cat >> confdefs.h <<EOF
8672 #define $ac_tr_hdr 1
8676 echo "$ac_t""no" 1>&6
8677 ac_cv_gtk_headers=no
8678 echo "Cannot find gtk development headers."
8683 if test "x${ac_cv_gtk_headers}" = "xyes"
8685 PLUGINS="${PLUGINS} gui/gtk/gtk"
8686 ALIASES="${ALIASES} gvlc"
8688 CPPFLAGS="${save_CPPFLAGS}"
8692 # Check whether --enable-familiar or --disable-familiar was given.
8693 if test "${enable_familiar+set}" = set; then
8694 enableval="$enable_familiar"
8698 if test "x${enable_familiar}" = "xyes"
8701 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8702 if test "${with_gtk_config_path+set}" = set; then
8703 withval="$with_gtk_config_path"
8704 if test "x${with_gtk_config_path}" != "xno"
8706 GTK_PATH="${with_gtk_config_path}:${PATH}"
8710 # look for gtk-config
8711 # Extract the first word of "gtk12-config", so it can be a program name with args.
8712 set dummy gtk12-config; ac_word=$2
8713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8714 echo "configure:8715: checking for $ac_word" >&5
8715 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8716 echo $ac_n "(cached) $ac_c" 1>&6
8718 case "$GTK12_CONFIG" in
8720 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8723 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8727 ac_dummy="${GTK_PATH}"
8728 for ac_dir in $ac_dummy; do
8729 test -z "$ac_dir" && ac_dir=.
8730 if test -f $ac_dir/$ac_word; then
8731 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8736 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8740 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8741 if test -n "$GTK12_CONFIG"; then
8742 echo "$ac_t""$GTK12_CONFIG" 1>&6
8744 echo "$ac_t""no" 1>&6
8747 GTK_CONFIG=${GTK12_CONFIG}
8748 if test "x${GTK_CONFIG}" = "xno"
8750 # Extract the first word of "gtk-config", so it can be a program name with args.
8751 set dummy gtk-config; ac_word=$2
8752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8753 echo "configure:8754: checking for $ac_word" >&5
8754 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8755 echo $ac_n "(cached) $ac_c" 1>&6
8757 case "$GTK_CONFIG" in
8759 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8762 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8766 ac_dummy="${GTK_PATH}"
8767 for ac_dir in $ac_dummy; do
8768 test -z "$ac_dir" && ac_dir=.
8769 if test -f $ac_dir/$ac_word; then
8770 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8775 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8779 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8780 if test -n "$GTK_CONFIG"; then
8781 echo "$ac_t""$GTK_CONFIG" 1>&6
8783 echo "$ac_t""no" 1>&6
8787 if test "x${GTK_CONFIG}" != "xno"
8789 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8791 { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." 1>&2; exit 1; }
8793 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8794 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8795 # now look for the gtk.h header
8796 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8797 ac_cv_gtk_headers=yes
8798 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8800 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8801 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8802 echo "configure:8803: checking for $ac_hdr" >&5
8803 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8812 { (eval echo configure:8813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8814 if test -z "$ac_err"; then
8816 eval "ac_cv_header_$ac_safe=yes"
8819 echo "configure: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8822 eval "ac_cv_header_$ac_safe=no"
8826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8827 echo "$ac_t""yes" 1>&6
8828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8829 cat >> confdefs.h <<EOF
8830 #define $ac_tr_hdr 1
8834 echo "$ac_t""no" 1>&6
8835 ac_cv_gtk_headers=no
8836 echo "Cannot find gtk development headers."
8841 if test "x${ac_cv_gtk_headers}" = "xyes"
8843 PLUGINS="${PLUGINS} gui/familiar/familiar"
8845 CPPFLAGS="${save_CPPFLAGS}"
8849 # Check whether --enable-gnome or --disable-gnome was given.
8850 if test "${enable_gnome+set}" = set; then
8851 enableval="$enable_gnome"
8852 if test "x${enable_gnome}" = "xyes"; then
8853 # look for gnome-config
8854 # Extract the first word of "gnome-config", so it can be a program name with args.
8855 set dummy gnome-config; ac_word=$2
8856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8857 echo "configure:8858: checking for $ac_word" >&5
8858 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8859 echo $ac_n "(cached) $ac_c" 1>&6
8861 case "$GNOME_CONFIG" in
8863 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8866 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8871 for ac_dir in $ac_dummy; do
8872 test -z "$ac_dir" && ac_dir=.
8873 if test -f $ac_dir/$ac_word; then
8874 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8879 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8883 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8884 if test -n "$GNOME_CONFIG"; then
8885 echo "$ac_t""$GNOME_CONFIG" 1>&6
8887 echo "$ac_t""no" 1>&6
8890 if test -x ${GNOME_CONFIG}
8892 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8893 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8895 # now look for the gnome.h header
8896 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8897 for ac_hdr in gnome.h
8899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8901 echo "configure:8902: checking for $ac_hdr" >&5
8902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8903 echo $ac_n "(cached) $ac_c" 1>&6
8905 cat > conftest.$ac_ext <<EOF
8906 #line 8907 "configure"
8907 #include "confdefs.h"
8910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8911 { (eval echo configure:8912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8913 if test -z "$ac_err"; then
8915 eval "ac_cv_header_$ac_safe=yes"
8918 echo "configure: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8921 eval "ac_cv_header_$ac_safe=no"
8925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8926 echo "$ac_t""yes" 1>&6
8927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8928 cat >> confdefs.h <<EOF
8929 #define $ac_tr_hdr 1
8932 PLUGINS="${PLUGINS} gui/gtk/gnome"
8933 ALIASES="${ALIASES} gnome-vlc"
8936 echo "$ac_t""no" 1>&6
8937 { echo "configure: error: Can't find gnome headers. Please install the gnome
8938 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8943 CPPFLAGS="${save_CPPFLAGS}"
8948 # Check whether --enable-qt or --disable-qt was given.
8949 if test "${enable_qt+set}" = set; then
8950 enableval="$enable_qt"
8951 if test "x${enable_qt}" = "xyes"; then
8952 PLUGINS="${PLUGINS} gui/qt/qt"
8953 ALIASES="${ALIASES} qvlc"
8954 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8955 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8956 if test -x ${QTDIR}/bin/moc
8958 MOC=${QTDIR}/bin/moc
8966 # Check whether --enable-kde or --disable-kde was given.
8967 if test "${enable_kde+set}" = set; then
8968 enableval="$enable_kde"
8969 if test "x${enable_kde}" = "xyes"; then
8970 PLUGINS="${PLUGINS} gui/kde/kde"
8971 ALIASES="${ALIASES} kvlc"
8972 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8973 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8974 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8975 if test -x ${QTDIR}/bin/moc
8977 MOC=${QTDIR}/bin/moc
8985 # Check whether --enable-qte or --disable-qte was given.
8986 if test "${enable_qte+set}" = set; then
8987 enableval="$enable_qte"
8988 if test "x${enable_qte}" = "xyes"; then
8989 PLUGINS="${PLUGINS} gui/qte/qte"
8990 qte_LDFLAGS="${qte_LDFLAGS} -lqte -L${QTEDIR}/lib"
8991 qte_CFLAGS="${qte_CFLAGS} -I/usr/include/qte -I${QTEDIR}/include"
8992 if test -x ${QTEDIR}/bin/moc
8994 MOC=${QTEDIR}/bin/moc
9003 # Check whether --enable-macosx or --disable-macosx was given.
9004 if test "${enable_macosx+set}" = set; then
9005 enableval="$enable_macosx"
9006 if test "x${enable_macosx}" = "xyes"
9008 BUILTINS="${BUILTINS} gui/macosx/macosx"
9009 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9012 for ac_hdr in Cocoa/Cocoa.h
9014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9016 echo "configure:9017: checking for $ac_hdr" >&5
9017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9018 echo $ac_n "(cached) $ac_c" 1>&6
9020 cat > conftest.$ac_ext <<EOF
9021 #line 9022 "configure"
9022 #include "confdefs.h"
9025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9026 { (eval echo configure:9027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9028 if test -z "$ac_err"; then
9030 eval "ac_cv_header_$ac_safe=yes"
9033 echo "configure: failed program was:" >&5
9034 cat conftest.$ac_ext >&5
9036 eval "ac_cv_header_$ac_safe=no"
9040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9041 echo "$ac_t""yes" 1>&6
9042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9043 cat >> confdefs.h <<EOF
9044 #define $ac_tr_hdr 1
9046 BUILTINS="${BUILTINS} gui/macosx/macosx"
9047 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9050 echo "$ac_t""no" 1>&6
9057 # Check whether --enable-qnx or --disable-qnx was given.
9058 if test "${enable_qnx+set}" = set; then
9059 enableval="$enable_qnx"
9063 if test "x${enable_qnx}" != "xno"
9067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9069 echo "configure:9070: checking for $ac_hdr" >&5
9070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9073 cat > conftest.$ac_ext <<EOF
9074 #line 9075 "configure"
9075 #include "confdefs.h"
9078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9079 { (eval echo configure:9080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9081 if test -z "$ac_err"; then
9083 eval "ac_cv_header_$ac_safe=yes"
9086 echo "configure: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9089 eval "ac_cv_header_$ac_safe=no"
9093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9094 echo "$ac_t""yes" 1>&6
9095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9096 cat >> confdefs.h <<EOF
9097 #define $ac_tr_hdr 1
9100 PLUGINS="${PLUGINS} gui/qnx/qnx"
9101 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
9104 echo "$ac_t""no" 1>&6
9110 # Check whether --enable-intfwin or --disable-intfwin was given.
9111 if test "${enable_intfwin+set}" = set; then
9112 enableval="$enable_intfwin"
9113 if test "x${enable_intfwin}" != "xno"
9115 # Check whether --with-bcbuilder or --without-bcbuilder was given.
9116 if test "${with_bcbuilder+set}" = set; then
9117 withval="$with_bcbuilder"
9121 if test "x${with_bcbuilder}" != "x"
9123 BCBUILDER="${with_bcbuilder}"
9125 PLUGINS="${PLUGINS} gui/win32/win32"
9130 # Check whether --enable-ncurses or --disable-ncurses was given.
9131 if test "${enable_ncurses+set}" = set; then
9132 enableval="$enable_ncurses"
9133 if test "x${enable_ncurses}" = "xyes"; then
9134 PLUGINS="${PLUGINS} gui/ncurses/ncurses"
9135 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
9140 # Check whether --enable-xosd or --disable-xosd was given.
9141 if test "${enable_xosd+set}" = set; then
9142 enableval="$enable_xosd"
9146 if test "x${enable_xosd}" = "xyes"
9148 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
9149 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
9150 echo "configure:9151: checking for xosd.h" >&5
9151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9152 echo $ac_n "(cached) $ac_c" 1>&6
9154 cat > conftest.$ac_ext <<EOF
9155 #line 9156 "configure"
9156 #include "confdefs.h"
9159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9160 { (eval echo configure:9161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9162 if test -z "$ac_err"; then
9164 eval "ac_cv_header_$ac_safe=yes"
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9170 eval "ac_cv_header_$ac_safe=no"
9174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9175 echo "$ac_t""yes" 1>&6
9178 echo "$ac_t""no" 1>&6
9182 if test "x${have_xosd}" = "xtrue"
9184 PLUGINS="${PLUGINS} visualization/xosd/xosd"
9185 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
9189 # Check whether --enable-lirc or --disable-lirc was given.
9190 if test "${enable_lirc+set}" = set; then
9191 enableval="$enable_lirc"
9195 if test "x${enable_lirc}" = "xyes"
9197 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
9198 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
9199 echo "configure:9200: checking for lirc/lirc_client.h" >&5
9200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9203 cat > conftest.$ac_ext <<EOF
9204 #line 9205 "configure"
9205 #include "confdefs.h"
9206 #include <lirc/lirc_client.h>
9208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9209 { (eval echo configure:9210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9211 if test -z "$ac_err"; then
9213 eval "ac_cv_header_$ac_safe=yes"
9216 echo "configure: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9219 eval "ac_cv_header_$ac_safe=no"
9223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9224 echo "$ac_t""yes" 1>&6
9225 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
9226 echo "configure:9227: checking for lirc_init in -llirc_client" >&5
9227 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
9228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9229 echo $ac_n "(cached) $ac_c" 1>&6
9231 ac_save_LIBS="$LIBS"
9232 LIBS="-llirc_client $LIBS"
9233 cat > conftest.$ac_ext <<EOF
9234 #line 9235 "configure"
9235 #include "confdefs.h"
9236 /* Override any gcc2 internal prototype to avoid an error. */
9237 /* We use char because int might match the return type of a gcc2
9238 builtin and then its argument prototype would still apply. */
9245 if { (eval echo configure:9246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9247 eval "ac_cv_lib_$ac_lib_var=yes"
9249 echo "configure: failed program was:" >&5
9250 cat conftest.$ac_ext >&5
9252 eval "ac_cv_lib_$ac_lib_var=no"
9255 LIBS="$ac_save_LIBS"
9258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9259 echo "$ac_t""yes" 1>&6
9262 echo "$ac_t""no" 1>&6
9267 echo "$ac_t""no" 1>&6
9271 if test "x${have_lirc}" = "xtrue"
9273 PLUGINS="${PLUGINS} control/lirc/lirc"
9274 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
9278 # Check whether --with- or --without- was given.
9279 if test "${with_+set}" = set; then
9285 # Check whether --with-words or --without-words was given.
9286 if test "${with_words+set}" = set; then
9287 withval="$with_words"
9291 case "x${with_words}" in
9293 ac_cv_c_bigendian=yes
9296 ac_cv_c_bigendian=no
9299 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
9300 echo "configure:9301: checking whether the byte order is big-endian" >&5
9301 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9302 echo $ac_n "(cached) $ac_c" 1>&6
9304 ac_cv_c_bigendian="unknown"
9305 cat >conftest.c <<EOF
9306 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
9307 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
9308 void _a(void) { char*s = (char*)am; s = (char *)ai; }
9309 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
9310 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
9311 void _e(void) { char*s = (char*)em; s = (char*)ei; }
9312 int main(void) { _a(); _e(); return 0; }
9315 if test -f conftest.c
9317 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
9318 && test -f conftest.o
9320 if test "`strings conftest.o | grep BIGenDianSyS`"
9322 ac_cv_c_bigendian="yes"
9324 if test "`strings conftest.o | grep LiTTleEnDian`"
9326 ac_cv_c_bigendian="no"
9333 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9334 if test "x${ac_cv_c_bigendian}" = "xunknown"
9336 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
9340 if test "${ac_cv_c_bigendian}" = "yes"
9342 cat >> confdefs.h <<\EOF
9343 #define WORDS_BIGENDIAN 1
9351 # Check whether --enable-gprof or --disable-gprof was given.
9352 if test "${enable_gprof+set}" = set; then
9353 enableval="$enable_gprof"
9354 if test "x${enable_gprof}" = "xyes"
9364 # Check whether --enable-cprof or --disable-cprof was given.
9365 if test "${enable_cprof+set}" = set; then
9366 enableval="$enable_cprof"
9367 if test "x${enable_cprof}" = "xyes"
9369 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
9377 # Check whether --enable-pth or --disable-pth was given.
9378 if test "${enable_pth+set}" = set; then
9379 enableval="$enable_pth"
9380 if test "x${enable_pth}" = "xyes"; then
9381 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
9382 echo "configure:9383: checking for pth_init in -lpth" >&5
9383 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
9384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9385 echo $ac_n "(cached) $ac_c" 1>&6
9387 ac_save_LIBS="$LIBS"
9389 cat > conftest.$ac_ext <<EOF
9390 #line 9391 "configure"
9391 #include "confdefs.h"
9392 /* Override any gcc2 internal prototype to avoid an error. */
9393 /* We use char because int might match the return type of a gcc2
9394 builtin and then its argument prototype would still apply. */
9401 if { (eval echo configure:9402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9403 eval "ac_cv_lib_$ac_lib_var=yes"
9405 echo "configure: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9408 eval "ac_cv_lib_$ac_lib_var=no"
9411 LIBS="$ac_save_LIBS"
9414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9415 echo "$ac_t""yes" 1>&6
9416 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9417 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9418 cat >> confdefs.h <<EOF
9419 #define $ac_tr_lib 1
9425 echo "$ac_t""no" 1>&6
9428 cat > conftest.$ac_ext <<EOF
9429 #line 9430 "configure"
9430 #include "confdefs.h"
9433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9434 egrep "pth_init" >/dev/null 2>&1; then
9437 cat >> confdefs.h <<\EOF
9438 #define PTH_INIT_IN_PTH_H 1
9450 # Check whether --enable-st or --disable-st was given.
9451 if test "${enable_st+set}" = set; then
9452 enableval="$enable_st"
9453 if test "x${enable_st}" = "xyes"; then
9454 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9455 echo "configure:9456: checking for st_init in -lst" >&5
9456 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9458 echo $ac_n "(cached) $ac_c" 1>&6
9460 ac_save_LIBS="$LIBS"
9462 cat > conftest.$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9465 /* Override any gcc2 internal prototype to avoid an error. */
9466 /* We use char because int might match the return type of a gcc2
9467 builtin and then its argument prototype would still apply. */
9474 if { (eval echo configure:9475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9476 eval "ac_cv_lib_$ac_lib_var=yes"
9478 echo "configure: failed program was:" >&5
9479 cat conftest.$ac_ext >&5
9481 eval "ac_cv_lib_$ac_lib_var=no"
9484 LIBS="$ac_save_LIBS"
9487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9488 echo "$ac_t""yes" 1>&6
9489 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9490 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9491 cat >> confdefs.h <<EOF
9492 #define $ac_tr_lib 1
9498 echo "$ac_t""no" 1>&6
9501 cat > conftest.$ac_ext <<EOF
9502 #line 9503 "configure"
9503 #include "confdefs.h"
9506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9507 egrep "st_init" >/dev/null 2>&1; then
9510 cat >> confdefs.h <<\EOF
9511 #define ST_INIT_IN_ST_H 1
9523 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9524 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9527 # Check whether --enable-mozilla or --disable-mozilla was given.
9528 if test "${enable_mozilla+set}" = set; then
9529 enableval="$enable_mozilla"
9533 if test "x${enable_mozilla}" = "xyes"
9535 # Extract the first word of "mozilla-config", so it can be a program name with args.
9536 set dummy mozilla-config; ac_word=$2
9537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9538 echo "configure:9539: checking for $ac_word" >&5
9539 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9540 echo $ac_n "(cached) $ac_c" 1>&6
9542 case "$MOZILLA_CONFIG" in
9544 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9547 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9552 for ac_dir in $ac_dummy; do
9553 test -z "$ac_dir" && ac_dir=.
9554 if test -f $ac_dir/$ac_word; then
9555 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9560 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9564 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9565 if test -n "$MOZILLA_CONFIG"; then
9566 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9568 echo "$ac_t""no" 1>&6
9571 if test "x${MOZILLA_CONFIG}" != "xno"
9573 if test "x${SYS}" != "xmingw32"; then
9574 LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9575 echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9576 echo "configure:9577: checking for XtStrings in -lXt" >&5
9577 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9579 echo $ac_n "(cached) $ac_c" 1>&6
9581 ac_save_LIBS="$LIBS"
9583 cat > conftest.$ac_ext <<EOF
9584 #line 9585 "configure"
9585 #include "confdefs.h"
9586 /* Override any gcc2 internal prototype to avoid an error. */
9587 /* We use char because int might match the return type of a gcc2
9588 builtin and then its argument prototype would still apply. */
9595 if { (eval echo configure:9596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9597 eval "ac_cv_lib_$ac_lib_var=yes"
9599 echo "configure: failed program was:" >&5
9600 cat conftest.$ac_ext >&5
9602 eval "ac_cv_lib_$ac_lib_var=no"
9605 LIBS="$ac_save_LIBS"
9608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9609 echo "$ac_t""yes" 1>&6
9611 mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9614 echo "$ac_t""no" 1>&6
9617 LDFLAGS="${save_LDFLAGS}"
9620 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9621 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9625 # Check whether --enable-plugins or --disable-plugins was given.
9626 if test "${enable_plugins+set}" = set; then
9627 enableval="$enable_plugins"
9628 if test "x${enable_plugins}" = "xno"
9630 BUILTINS="${BUILTINS} ${PLUGINS}"
9636 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9638 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9640 BUILTINS="${BUILTINS} ${PLUGINS}"
9644 cat >> confdefs.h <<EOF
9645 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9648 cat >> confdefs.h <<EOF
9649 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9652 cat >> confdefs.h <<EOF
9653 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9657 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9658 cat >> confdefs.h <<EOF
9659 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9662 cat >> confdefs.h <<EOF
9663 #define MODULE_SYMBOL ${VLC_SYMBOL}
9667 DATA_PATH="${ac_tool_prefix}/share/videolan"
9669 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9672 CPPFLAGS="${save_CPPFLAGS}"
9673 CFLAGS="${save_CFLAGS}"
9674 LDFLAGS="${save_LDFLAGS}"
9676 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9677 for i in `echo ${BUILTINS} | sed -e 's#[^ ]*/##g'` ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9791 cat > confcache <<\EOF
9792 # This file is a shell script that caches the results of configure
9793 # tests run on this system so they can be shared between configure
9794 # scripts and configure runs. It is not useful on other systems.
9795 # If it contains results you don't want to keep, you may remove or edit it.
9797 # By default, configure uses ./config.cache as the cache file,
9798 # creating it if it does not exist already. You can give configure
9799 # the --cache-file=FILE option to use a different cache file; that is
9800 # what configure does when it calls configure scripts in
9801 # subdirectories, so they share the cache.
9802 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9803 # config.status only pays attention to the cache file if you give it the
9804 # --recheck option to rerun configure.
9807 # The following way of writing the cache mishandles newlines in values,
9808 # but we know of no workaround that is simple, portable, and efficient.
9809 # So, don't put newlines in cache variables' values.
9810 # Ultrix sh set writes to stderr and can't be redirected directly,
9811 # and sets the high bit in the cache file unless we assign to the vars.
9813 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9815 # `set' does not quote correctly, so add quotes (double-quote substitution
9816 # turns \\\\ into \\, and sed turns \\ into \).
9818 -e "s/'/'\\\\''/g" \
9819 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9822 # `set' quotes correctly as required by POSIX, so do not add quotes.
9823 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9826 if cmp -s $cache_file confcache; then
9829 if test -w $cache_file; then
9830 echo "updating cache $cache_file"
9831 cat confcache > $cache_file
9833 echo "not updating unwritable cache $cache_file"
9838 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9840 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9841 # Let make expand exec_prefix.
9842 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9844 # Any assignment to VPATH causes Sun make to only execute
9845 # the first set of double-colon rules, so remove it if not needed.
9846 # If there is a colon in the path, we need to keep it.
9847 if test "x$srcdir" = x.; then
9848 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9851 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9853 DEFS=-DHAVE_CONFIG_H
9855 # Without the "./", some shells look in PATH for config.status.
9856 : ${CONFIG_STATUS=./config.status}
9858 echo creating $CONFIG_STATUS
9859 rm -f $CONFIG_STATUS
9860 cat > $CONFIG_STATUS <<EOF
9862 # Generated automatically by configure.
9863 # Run this file to recreate the current configuration.
9864 # This directory was configured as follows,
9865 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9867 # $0 $ac_configure_args
9869 # Compiler output produced by configure, useful for debugging
9870 # configure, is in ./config.log if it exists.
9872 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9875 case "\$ac_option" in
9876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9877 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9878 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9879 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9880 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9882 -help | --help | --hel | --he | --h)
9883 echo "\$ac_cs_usage"; exit 0 ;;
9884 *) echo "\$ac_cs_usage"; exit 1 ;;
9888 ac_given_srcdir=$srcdir
9889 ac_given_INSTALL="$INSTALL"
9891 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in vlc-config include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9893 cat >> $CONFIG_STATUS <<EOF
9895 # Protect against being on the right side of a sed subst in config.status.
9896 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9897 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9901 s%@CFLAGS@%$CFLAGS%g
9902 s%@CPPFLAGS@%$CPPFLAGS%g
9903 s%@CXXFLAGS@%$CXXFLAGS%g
9904 s%@FFLAGS@%$FFLAGS%g
9906 s%@LDFLAGS@%$LDFLAGS%g
9908 s%@exec_prefix@%$exec_prefix%g
9909 s%@prefix@%$prefix%g
9910 s%@program_transform_name@%$program_transform_name%g
9911 s%@bindir@%$bindir%g
9912 s%@sbindir@%$sbindir%g
9913 s%@libexecdir@%$libexecdir%g
9914 s%@datadir@%$datadir%g
9915 s%@sysconfdir@%$sysconfdir%g
9916 s%@sharedstatedir@%$sharedstatedir%g
9917 s%@localstatedir@%$localstatedir%g
9918 s%@libdir@%$libdir%g
9919 s%@includedir@%$includedir%g
9920 s%@oldincludedir@%$oldincludedir%g
9921 s%@infodir@%$infodir%g
9922 s%@mandir@%$mandir%g
9924 s%@host_alias@%$host_alias%g
9925 s%@host_cpu@%$host_cpu%g
9926 s%@host_vendor@%$host_vendor%g
9927 s%@host_os@%$host_os%g
9928 s%@target@%$target%g
9929 s%@target_alias@%$target_alias%g
9930 s%@target_cpu@%$target_cpu%g
9931 s%@target_vendor@%$target_vendor%g
9932 s%@target_os@%$target_os%g
9934 s%@build_alias@%$build_alias%g
9935 s%@build_cpu@%$build_cpu%g
9936 s%@build_vendor@%$build_vendor%g
9937 s%@build_os@%$build_os%g
9938 s%@SET_MAKE@%$SET_MAKE%g
9941 s%@RANLIB@%$RANLIB%g
9944 s%@ALLOCA@%$ALLOCA%g
9945 s%@GLIBC21@%$GLIBC21%g
9946 s%@LIBICONV@%$LIBICONV%g
9947 s%@USE_NLS@%$USE_NLS%g
9948 s%@MSGFMT@%$MSGFMT%g
9949 s%@GMSGFMT@%$GMSGFMT%g
9950 s%@XGETTEXT@%$XGETTEXT%g
9951 s%@INTLBISON@%$INTLBISON%g
9952 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9953 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9954 s%@CATALOGS@%$CATALOGS%g
9955 s%@CATOBJEXT@%$CATOBJEXT%g
9956 s%@GMOFILES@%$GMOFILES%g
9957 s%@INTLLIBS@%$INTLLIBS%g
9958 s%@INTLOBJS@%$INTLOBJS%g
9959 s%@POFILES@%$POFILES%g
9961 s%@DATADIRNAME@%$DATADIRNAME%g
9962 s%@INSTOBJEXT@%$INSTOBJEXT%g
9963 s%@GENCAT@%$GENCAT%g
9964 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9965 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9966 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9967 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9968 s%@INSTALL_DATA@%$INSTALL_DATA%g
9969 s%@WINDRES@%$WINDRES%g
9970 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9971 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9972 s%@SDL_CONFIG@%$SDL_CONFIG%g
9973 s%@ESD_CONFIG@%$ESD_CONFIG%g
9974 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9975 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9976 s%@GTK_CONFIG@%$GTK_CONFIG%g
9977 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9978 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9979 s%@DATA_PATH@%$DATA_PATH%g
9980 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9981 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
9984 s%@PLUGINS@%$PLUGINS%g
9985 s%@BUILTINS@%$BUILTINS%g
9986 s%@ALIASES@%$ALIASES%g
9991 s%@OPTIMS@%$OPTIMS%g
9992 s%@TUNING@%$TUNING%g
9993 s%@RELEASE@%$RELEASE%g
9995 s%@BCBUILDER@%$BCBUILDER%g
9996 s%@PACKAGE@%$PACKAGE%g
9997 s%@VERSION@%$VERSION%g
9998 s%@NEED_GETOPT@%$NEED_GETOPT%g
9999 s%@MOZILLA@%$MOZILLA%g
10000 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
10001 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
10002 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
10003 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
10004 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
10005 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
10006 s%@a52_CFLAGS@%$a52_CFLAGS%g
10007 s%@arts_CFLAGS@%$arts_CFLAGS%g
10008 s%@i420_yuy2_mmx_CFLAGS@%$i420_yuy2_mmx_CFLAGS%g
10009 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
10010 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
10011 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
10012 s%@ts_dvbpsi_CFLAGS@%$ts_dvbpsi_CFLAGS%g
10013 s%@directx_CFLAGS@%$directx_CFLAGS%g
10014 s%@esd_CFLAGS@%$esd_CFLAGS%g
10015 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
10016 s%@faad_CFLAGS@%$faad_CFLAGS%g
10017 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
10018 s%@glide_CFLAGS@%$glide_CFLAGS%g
10019 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
10020 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
10021 s%@kde_CFLAGS@%$kde_CFLAGS%g
10022 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
10023 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
10024 s%@mad_CFLAGS@%$mad_CFLAGS%g
10025 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
10026 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
10027 s%@qt_CFLAGS@%$qt_CFLAGS%g
10028 s%@qte_CFLAGS@%$qte_CFLAGS%g
10029 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
10030 s%@x11_CFLAGS@%$x11_CFLAGS%g
10031 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
10032 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
10033 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
10034 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
10035 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
10036 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
10037 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
10038 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
10039 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
10040 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
10041 s%@i420_rgb_LDFLAGS@%$i420_rgb_LDFLAGS%g
10042 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
10043 s%@dv_LDFLAGS@%$dv_LDFLAGS%g
10044 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
10045 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
10046 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
10047 s%@ts_dvbpsi_LDFLAGS@%$ts_dvbpsi_LDFLAGS%g
10048 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
10049 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
10050 s%@distort_LDFLAGS@%$distort_LDFLAGS%g
10051 s%@faad_LDFLAGS@%$faad_LDFLAGS%g
10052 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
10053 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
10054 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
10055 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
10056 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
10057 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
10058 s%@http_LDFLAGS@%$http_LDFLAGS%g
10059 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
10060 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
10061 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
10062 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
10063 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
10064 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
10065 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
10066 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
10067 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
10068 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
10069 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
10070 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
10071 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
10072 s%@oss_LDFLAGS@%$oss_LDFLAGS%g
10073 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
10074 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
10075 s%@qte_LDFLAGS@%$qte_LDFLAGS%g
10076 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
10077 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
10078 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
10079 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
10080 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
10081 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
10082 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
10083 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
10088 cat >> $CONFIG_STATUS <<\EOF
10090 # Split the substitutions into bite-sized pieces for seds with
10091 # small command number limits, like on Digital OSF/1 and HP-UX.
10092 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10093 ac_file=1 # Number of current file.
10094 ac_beg=1 # First line for current file.
10095 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10098 while $ac_more_lines; do
10099 if test $ac_beg -gt 1; then
10100 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10102 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10104 if test ! -s conftest.s$ac_file; then
10105 ac_more_lines=false
10106 rm -f conftest.s$ac_file
10108 if test -z "$ac_sed_cmds"; then
10109 ac_sed_cmds="sed -f conftest.s$ac_file"
10111 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10113 ac_file=`expr $ac_file + 1`
10115 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10118 if test -z "$ac_sed_cmds"; then
10123 cat >> $CONFIG_STATUS <<EOF
10125 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
10127 cat >> $CONFIG_STATUS <<\EOF
10128 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10129 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10131 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10132 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10133 *) ac_file_in="${ac_file}.in" ;;
10136 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10138 # Remove last slash and all that follows it. Not all systems have dirname.
10139 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10140 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10141 # The file is in a subdirectory.
10142 test ! -d "$ac_dir" && mkdir "$ac_dir"
10143 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10144 # A "../" for each directory in $ac_dir_suffix.
10145 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10147 ac_dir_suffix= ac_dots=
10150 case "$ac_given_srcdir" in
10152 if test -z "$ac_dots"; then top_srcdir=.
10153 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10154 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10155 *) # Relative path.
10156 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10157 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10160 case "$ac_given_INSTALL" in
10161 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10162 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10165 echo creating "$ac_file"
10167 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10169 *Makefile*) ac_comsub="1i\\
10170 # $configure_input" ;;
10174 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10176 s%@configure_input@%$configure_input%g
10177 s%@srcdir@%$srcdir%g
10178 s%@top_srcdir@%$top_srcdir%g
10179 s%@INSTALL@%$INSTALL%g
10180 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10184 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10185 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10187 # ac_d sets the value in "#define NAME VALUE" lines.
10188 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10189 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10192 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10193 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10194 ac_uB='\([ ]\)%\1#\2define\3'
10197 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10198 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10199 ac_eB='$%\1#\2define\3'
10203 if test "${CONFIG_HEADERS+set}" != set; then
10205 cat >> $CONFIG_STATUS <<EOF
10206 CONFIG_HEADERS="include/defs.h"
10208 cat >> $CONFIG_STATUS <<\EOF
10210 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10213 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10214 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10215 *) ac_file_in="${ac_file}.in" ;;
10218 echo creating $ac_file
10220 rm -f conftest.frag conftest.in conftest.out
10221 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10222 cat $ac_file_inputs > conftest.in
10226 # Transform confdefs.h into a sed script conftest.vals that substitutes
10227 # the proper values into config.h.in to produce config.h. And first:
10228 # Protect against being on the right side of a sed subst in config.status.
10229 # Protect against being in an unquoted here document in config.status.
10230 rm -f conftest.vals
10231 cat > conftest.hdr <<\EOF
10234 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10238 sed -n -f conftest.hdr confdefs.h > conftest.vals
10241 # This sed command replaces #undef with comments. This is necessary, for
10242 # example, in the case of _POSIX_SOURCE, which is predefined and required
10243 # on some systems where configure will not decide to define it.
10244 cat >> conftest.vals <<\EOF
10245 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10248 # Break up conftest.vals because some shells have a limit on
10249 # the size of here documents, and old seds have small limits too.
10251 rm -f conftest.tail
10254 ac_lines=`grep -c . conftest.vals`
10255 # grep -c gives empty output for an empty file on some AIX systems.
10256 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10257 # Write a limited-size here document to conftest.frag.
10258 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10259 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10261 sed -f conftest.frag conftest.in > conftest.out
10263 mv conftest.out conftest.in
10264 ' >> $CONFIG_STATUS
10265 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10266 rm -f conftest.vals
10267 mv conftest.tail conftest.vals
10269 rm -f conftest.vals
10271 cat >> $CONFIG_STATUS <<\EOF
10272 rm -f conftest.frag conftest.h
10273 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10274 cat conftest.in >> conftest.h
10276 if cmp -s $ac_file conftest.h 2>/dev/null; then
10277 echo "$ac_file is unchanged"
10280 # Remove last slash and all that follows it. Not all systems have dirname.
10281 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10282 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10283 # The file is in a subdirectory.
10284 test ! -d "$ac_dir" && mkdir "$ac_dir"
10287 mv conftest.h $ac_file
10292 cat >> $CONFIG_STATUS <<EOF
10296 cat >> $CONFIG_STATUS <<\EOF
10297 for ac_file in $CONFIG_FILES; do
10298 # Support "outfile[:infile[:infile...]]"
10300 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10302 # PO directories have a Makefile.in generated from Makefile.in.in.
10303 case "$ac_file" in */Makefile.in)
10304 # Adjust a relative srcdir.
10305 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10306 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10307 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10308 # In autoconf-2.13 it is called $ac_given_srcdir.
10309 # In autoconf-2.50 it is called $srcdir.
10310 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10311 case "$ac_given_srcdir" in
10312 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10313 /*) top_srcdir="$ac_given_srcdir" ;;
10314 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10316 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10317 rm -f "$ac_dir/POTFILES"
10318 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10319 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10320 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10321 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10329 chmod +x $CONFIG_STATUS
10330 rm -fr confdefs* $ac_clean_files
10331 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10333 chmod a+x vlc-config
10337 --------------------
10338 vlc version : ${VERSION}
10340 architecture : ${ARCH}
10341 optimizations : ${OPTIMS}
10343 debug mode : ${DEBUG}
10344 release : ${RELEASE}
10345 profiling : ${PROFILING}
10346 need builtin getopt : ${NEED_GETOPT}
10347 built-in modules :${BUILTINS}
10348 plug-in modules :${PLUGINS}
10349 mozilla plugin : ${MOZILLA}
10350 vlc aliases :${ALIASES}
10352 You may now tune Makefile.opts at your convenience, for instance to choose
10353 which modules get compiled as plugins.
10355 To build vlc and its plugins, type \`${VLC_MAKE}'.