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)"
66 --enable-aac AAC demux module (default enabled)"
70 --enable-mad libmad module (default disabled)"
72 --with-mad=PATH path to libmad"
74 --with-mad-tree=PATH mad tree for static linking"
76 --enable-ffmpeg ffmpeg codec (default disabled)"
78 --with-ffmpeg=PATH path to ffmpeg installation"
80 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
82 --enable-faad faad codec (default disabled)"
84 --with-faad=PATH path to faad installation"
86 --with-faad-tree=PATH faad tree for static linking"
88 --enable-mp4 MP4 demux module (default enabled)"
90 --enable-a52 A/52 support with liba52 (default enabled)"
92 --with-a52=PATH a52 headers and libraries"
94 --with-a52-tree=PATH a52dec tree for static linking "
96 --enable-cinepak Cinepak decoder (default enabled)"
98 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
100 --enable-dv DV decoder support (default disabled)"
104 --enable-x11 X11 support (default enabled)"
106 --enable-xvideo XVideo support (default enabled)"
108 --enable-sdl SDL support (default enabled)"
110 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
112 --enable-directx Win32 DirectX support (default enabled on Win32)"
114 --with-directx=PATH Win32 DirectX headers"
116 --enable-fb Linux framebuffer support (default enabled on Linux)"
118 --enable-mga Linux kernel Matrox support (default disabled)"
120 --enable-ggi GGI support (default disabled)"
122 --with-ggi=PATH path to libggi"
124 --enable-glide Glide (3dfx) support (default disabled)"
126 --with-glide=PATH path to libglide"
128 --enable-aa aalib output (default disabled)"
132 --enable-oss Linux OSS /dev/dsp support (enabled on Linux)"
134 --enable-esd Esound library support (default disabled)"
136 --enable-arts aRts sound server (default disabled)"
138 --enable-alsa ALSA sound support for Linux (default disabled)"
140 --enable-waveout Win32 waveOut module (default enabled on Win32)"
144 --enable-gtk Gtk+ support (default enabled)"
146 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
148 --enable-familiar Familiar Gtk+ support (default disabled)"
150 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
152 --enable-gnome Gnome interface support (default disabled)"
154 --enable-qt Qt interface support (default disabled)"
156 --enable-kde KDE interface support (default disabled)"
158 --enable-qte Qt embedded interface support (default disabled)"
160 --enable-macosx MacOS X support (default enabled on MacOS X)"
162 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
164 --enable-intfwin Win32 interface support (default disabled)"
166 --with-bcbuilder=PATH Borland C++ Builder installation path"
168 --enable-ncurses ncurses interface support (default disabled)"
170 --enable-xosd xosd interface support (default disabled)"
172 --enable-lirc lirc support (default disabled)"
176 --with-words=endianness set endianness (big or little)"
178 --enable-gprof gprof profiling (default disabled)"
180 --enable-cprof cprof profiling (default disabled)"
182 --enable-pth GNU Pth support (default disabled)"
184 --enable-st State Threads (default disabled)"
186 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
188 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
190 # Initialize some variables set by options.
191 # The variables have the same names as the options, with
192 # dashes changed to underlines.
194 cache_file=./config.cache
203 program_transform_name=s,x,x,
211 bindir='${exec_prefix}/bin'
212 sbindir='${exec_prefix}/sbin'
213 libexecdir='${exec_prefix}/libexec'
214 datadir='${prefix}/share'
215 sysconfdir='${prefix}/etc'
216 sharedstatedir='${prefix}/com'
217 localstatedir='${prefix}/var'
218 libdir='${exec_prefix}/lib'
219 includedir='${prefix}/include'
220 oldincludedir='/usr/include'
221 infodir='${prefix}/info'
222 mandir='${prefix}/man'
224 # Initialize some other variables.
227 SHELL=${CONFIG_SHELL-/bin/sh}
228 # Maximum number of lines to put in a shell here document.
235 # If the previous option needs an argument, assign it.
236 if test -n "$ac_prev"; then
237 eval "$ac_prev=\$ac_option"
243 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
247 # Accept the important Cygnus configure options, so we can diagnose typos.
251 -bindir | --bindir | --bindi | --bind | --bin | --bi)
253 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
254 bindir="$ac_optarg" ;;
256 -build | --build | --buil | --bui | --bu)
258 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
259 build="$ac_optarg" ;;
261 -cache-file | --cache-file | --cache-fil | --cache-fi \
262 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
263 ac_prev=cache_file ;;
264 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
265 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
266 cache_file="$ac_optarg" ;;
268 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
270 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
272 datadir="$ac_optarg" ;;
274 -disable-* | --disable-*)
275 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
276 # Reject names that are not valid shell variable names.
277 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
278 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
280 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
281 eval "enable_${ac_feature}=no" ;;
283 -enable-* | --enable-*)
284 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
285 # Reject names that are not valid shell variable names.
286 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
287 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
289 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
294 eval "enable_${ac_feature}='$ac_optarg'" ;;
296 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
297 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
298 | --exec | --exe | --ex)
299 ac_prev=exec_prefix ;;
300 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
301 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
302 | --exec=* | --exe=* | --ex=*)
303 exec_prefix="$ac_optarg" ;;
305 -gas | --gas | --ga | --g)
306 # Obsolete; use --with-gas.
309 -help | --help | --hel | --he)
310 # Omit some internal or obsolete options to make the list less imposing.
311 # This message is too long to be a string in the A/UX 3.1 sh.
313 Usage: configure [options] [host]
314 Options: [defaults in brackets after descriptions]
316 --cache-file=FILE cache test results in FILE
317 --help print this message
318 --no-create do not create output files
319 --quiet, --silent do not print \`checking...' messages
320 --version print the version of autoconf that created configure
321 Directory and file names:
322 --prefix=PREFIX install architecture-independent files in PREFIX
324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
326 --bindir=DIR user executables in DIR [EPREFIX/bin]
327 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
328 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
329 --datadir=DIR read-only architecture-independent data in DIR
331 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
332 --sharedstatedir=DIR modifiable architecture-independent data in DIR
334 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
335 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
336 --includedir=DIR C header files in DIR [PREFIX/include]
337 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
338 --infodir=DIR info documentation in DIR [PREFIX/info]
339 --mandir=DIR man documentation in DIR [PREFIX/man]
340 --srcdir=DIR find the sources in DIR [configure dir or ..]
341 --program-prefix=PREFIX prepend PREFIX to installed program names
342 --program-suffix=SUFFIX append SUFFIX to installed program names
343 --program-transform-name=PROGRAM
344 run sed PROGRAM on installed program names
348 --build=BUILD configure for building on BUILD [BUILD=HOST]
349 --host=HOST configure for HOST [guessed]
350 --target=TARGET configure for TARGET [TARGET=HOST]
351 Features and packages:
352 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
353 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
356 --x-includes=DIR X include files are in DIR
357 --x-libraries=DIR X library files are in DIR
359 if test -n "$ac_help"; then
360 echo "--enable and --with options recognized:$ac_help"
364 -host | --host | --hos | --ho)
366 -host=* | --host=* | --hos=* | --ho=*)
369 -includedir | --includedir | --includedi | --included | --include \
370 | --includ | --inclu | --incl | --inc)
371 ac_prev=includedir ;;
372 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
373 | --includ=* | --inclu=* | --incl=* | --inc=*)
374 includedir="$ac_optarg" ;;
376 -infodir | --infodir | --infodi | --infod | --info | --inf)
378 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
379 infodir="$ac_optarg" ;;
381 -libdir | --libdir | --libdi | --libd)
383 -libdir=* | --libdir=* | --libdi=* | --libd=*)
384 libdir="$ac_optarg" ;;
386 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
387 | --libexe | --libex | --libe)
388 ac_prev=libexecdir ;;
389 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
390 | --libexe=* | --libex=* | --libe=*)
391 libexecdir="$ac_optarg" ;;
393 -localstatedir | --localstatedir | --localstatedi | --localstated \
394 | --localstate | --localstat | --localsta | --localst \
395 | --locals | --local | --loca | --loc | --lo)
396 ac_prev=localstatedir ;;
397 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
398 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
399 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
400 localstatedir="$ac_optarg" ;;
402 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
404 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
405 mandir="$ac_optarg" ;;
408 # Obsolete; use --without-fp.
411 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
415 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
416 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
419 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
420 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
421 | --oldin | --oldi | --old | --ol | --o)
422 ac_prev=oldincludedir ;;
423 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
424 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
425 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
426 oldincludedir="$ac_optarg" ;;
428 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
430 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
431 prefix="$ac_optarg" ;;
433 -program-prefix | --program-prefix | --program-prefi | --program-pref \
434 | --program-pre | --program-pr | --program-p)
435 ac_prev=program_prefix ;;
436 -program-prefix=* | --program-prefix=* | --program-prefi=* \
437 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
438 program_prefix="$ac_optarg" ;;
440 -program-suffix | --program-suffix | --program-suffi | --program-suff \
441 | --program-suf | --program-su | --program-s)
442 ac_prev=program_suffix ;;
443 -program-suffix=* | --program-suffix=* | --program-suffi=* \
444 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
445 program_suffix="$ac_optarg" ;;
447 -program-transform-name | --program-transform-name \
448 | --program-transform-nam | --program-transform-na \
449 | --program-transform-n | --program-transform- \
450 | --program-transform | --program-transfor \
451 | --program-transfo | --program-transf \
452 | --program-trans | --program-tran \
453 | --progr-tra | --program-tr | --program-t)
454 ac_prev=program_transform_name ;;
455 -program-transform-name=* | --program-transform-name=* \
456 | --program-transform-nam=* | --program-transform-na=* \
457 | --program-transform-n=* | --program-transform-=* \
458 | --program-transform=* | --program-transfor=* \
459 | --program-transfo=* | --program-transf=* \
460 | --program-trans=* | --program-tran=* \
461 | --progr-tra=* | --program-tr=* | --program-t=*)
462 program_transform_name="$ac_optarg" ;;
464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
465 | -silent | --silent | --silen | --sile | --sil)
468 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
470 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
472 sbindir="$ac_optarg" ;;
474 -sharedstatedir | --sharedstatedir | --sharedstatedi \
475 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
476 | --sharedst | --shareds | --shared | --share | --shar \
478 ac_prev=sharedstatedir ;;
479 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
480 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
481 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
483 sharedstatedir="$ac_optarg" ;;
485 -site | --site | --sit)
487 -site=* | --site=* | --sit=*)
490 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
492 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
493 srcdir="$ac_optarg" ;;
495 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
496 | --syscon | --sysco | --sysc | --sys | --sy)
497 ac_prev=sysconfdir ;;
498 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
499 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
500 sysconfdir="$ac_optarg" ;;
502 -target | --target | --targe | --targ | --tar | --ta | --t)
504 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
505 target="$ac_optarg" ;;
507 -v | -verbose | --verbose | --verbos | --verbo | --verb)
510 -version | --version | --versio | --versi | --vers)
511 echo "configure generated by autoconf version 2.13"
515 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
516 # Reject names that are not valid shell variable names.
517 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
518 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
520 ac_package=`echo $ac_package| sed 's/-/_/g'`
525 eval "with_${ac_package}='$ac_optarg'" ;;
527 -without-* | --without-*)
528 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
529 # Reject names that are not valid shell variable names.
530 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
531 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
533 ac_package=`echo $ac_package| sed 's/-/_/g'`
534 eval "with_${ac_package}=no" ;;
537 # Obsolete; use --with-x.
540 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
541 | --x-incl | --x-inc | --x-in | --x-i)
542 ac_prev=x_includes ;;
543 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
544 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
545 x_includes="$ac_optarg" ;;
547 -x-libraries | --x-libraries | --x-librarie | --x-librari \
548 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
549 ac_prev=x_libraries ;;
550 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
551 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
552 x_libraries="$ac_optarg" ;;
554 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
558 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
559 echo "configure: warning: $ac_option: invalid host type" 1>&2
561 if test "x$nonopt" != xNONE; then
562 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
570 if test -n "$ac_prev"; then
571 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
574 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
576 # File descriptor usage:
579 # 2 errors and warnings
580 # 3 some systems may open it to /dev/tty
581 # 4 used on the Kubota Titan
582 # 6 checking for... messages and results
583 # 5 compiler messages saved in config.log
584 if test "$silent" = yes; then
592 This file contains any messages produced by compilers while
593 running configure, to aid debugging if configure makes a mistake.
596 # Strip out --no-create and --no-recursion so they do not pile up.
597 # Also quote any args containing shell metacharacters.
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c) ;;
604 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
605 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
606 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
607 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
608 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
613 # Only set these to C if already set. These must not be set unconditionally
614 # because not all systems understand e.g. LANG=C (notably SCO).
615 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
616 # Non-C LC_CTYPE values break the ctype check.
617 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
618 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
619 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
620 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
623 rm -rf conftest* confdefs.h
624 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
627 # A filename unique to this package, relative to the directory that
628 # configure is in, which we can look for to find out if srcdir is correct.
629 ac_unique_file=include/main.h
631 # Find the source files, if location was not specified.
632 if test -z "$srcdir"; then
633 ac_srcdir_defaulted=yes
634 # Try the directory containing this script, then its parent.
636 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
637 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
639 if test ! -r $srcdir/$ac_unique_file; then
643 ac_srcdir_defaulted=no
645 if test ! -r $srcdir/$ac_unique_file; then
646 if test "$ac_srcdir_defaulted" = yes; then
647 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
649 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
652 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
654 # Prefer explicitly selected file to automatically selected ones.
655 if test -z "$CONFIG_SITE"; then
656 if test "x$prefix" != xNONE; then
657 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
659 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
662 for ac_site_file in $CONFIG_SITE; do
663 if test -r "$ac_site_file"; then
664 echo "loading site script $ac_site_file"
669 if test -r "$cache_file"; then
670 echo "loading cache $cache_file"
673 echo "creating cache $cache_file"
678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
679 ac_cpp='$CPP $CPPFLAGS'
680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
682 cross_compiling=$ac_cv_prog_cc_cross
686 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
687 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
688 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
695 ac_n= ac_c='\c' ac_t=
701 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
702 if test -f $ac_dir/install-sh; then
704 ac_install_sh="$ac_aux_dir/install-sh -c"
706 elif test -f $ac_dir/install.sh; then
708 ac_install_sh="$ac_aux_dir/install.sh -c"
712 if test -z "$ac_aux_dir"; then
713 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
715 ac_config_guess=$ac_aux_dir/config.guess
716 ac_config_sub=$ac_aux_dir/config.sub
717 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
720 # Do some error checking and defaulting for the host and target type.
722 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
725 # 1. You are not allowed to specify --host, --target, and nonopt at the
727 # 2. Host defaults to nonopt.
728 # 3. If nonopt is not specified, then host defaults to the current host,
729 # as determined by config.guess.
730 # 4. Target and build default to nonopt.
731 # 5. If nonopt is not specified, then target and build default to host.
733 # The aliases save the names the user supplied, while $host etc.
734 # will get canonicalized.
735 case $host---$target---$nonopt in
736 NONE---*---* | *---NONE---* | *---*---NONE) ;;
737 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
741 # Make sure we can run config.sub.
742 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
743 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
746 echo $ac_n "checking host system type""... $ac_c" 1>&6
747 echo "configure:748: checking host system type" >&5
750 case "$host_alias" in
754 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
755 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
757 *) host_alias=$nonopt ;;
761 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
762 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
763 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
764 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
765 echo "$ac_t""$host" 1>&6
767 echo $ac_n "checking target system type""... $ac_c" 1>&6
768 echo "configure:769: checking target system type" >&5
771 case "$target_alias" in
774 NONE) target_alias=$host_alias ;;
775 *) target_alias=$nonopt ;;
779 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
780 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
781 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
782 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
783 echo "$ac_t""$target" 1>&6
785 echo $ac_n "checking build system type""... $ac_c" 1>&6
786 echo "configure:787: checking build system type" >&5
789 case "$build_alias" in
792 NONE) build_alias=$host_alias ;;
793 *) build_alias=$nonopt ;;
797 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
798 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
799 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
800 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
801 echo "$ac_t""$build" 1>&6
803 test "$host_alias" != "$target_alias" &&
804 test "$program_prefix$program_suffix$program_transform_name" = \
806 program_prefix=${target_alias}-
809 CONFIGURE_LINE="$0 $*"
815 save_CPPFLAGS="${CPPFLAGS}"
816 save_CFLAGS="${CFLAGS}"
817 save_LDFLAGS="${LDFLAGS}"
819 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
821 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
822 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 cat > conftestmake <<\EOF
827 @echo 'ac_maketemp="${MAKE}"'
829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
830 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
831 if test -n "$ac_maketemp"; then
832 eval ac_cv_prog_make_${ac_make}_set=yes
834 eval ac_cv_prog_make_${ac_make}_set=no
838 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
839 echo "$ac_t""yes" 1>&6
842 echo "$ac_t""no" 1>&6
843 SET_MAKE="MAKE=${MAKE-make}"
846 # Extract the first word of "gcc", so it can be a program name with args.
847 set dummy gcc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
869 if test -n "$CC"; then
870 echo "$ac_t""$CC" 1>&6
872 echo "$ac_t""no" 1>&6
875 if test -z "$CC"; then
876 # Extract the first word of "cc", so it can be a program name with args.
877 set dummy cc; ac_word=$2
878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
879 echo "configure:880: checking for $ac_word" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 if test -n "$CC"; then
884 ac_cv_prog_CC="$CC" # Let the user override the test.
886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
889 for ac_dir in $ac_dummy; do
890 test -z "$ac_dir" && ac_dir=.
891 if test -f $ac_dir/$ac_word; then
892 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
901 if test $ac_prog_rejected = yes; then
902 # We found a bogon in the path, so make sure we never use it.
903 set dummy $ac_cv_prog_CC
905 if test $# -gt 0; then
906 # We chose a different compiler from the bogus one.
907 # However, it has the same basename, so the bogon will be chosen
908 # first if we set CC to just the basename; use the full file name.
910 set dummy "$ac_dir/$ac_word" "$@"
918 if test -n "$CC"; then
919 echo "$ac_t""$CC" 1>&6
921 echo "$ac_t""no" 1>&6
924 if test -z "$CC"; then
927 # Extract the first word of "cl", so it can be a program name with args.
928 set dummy cl; ac_word=$2
929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
930 echo "configure:931: checking for $ac_word" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 if test -n "$CC"; then
935 ac_cv_prog_CC="$CC" # Let the user override the test.
937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
939 for ac_dir in $ac_dummy; do
940 test -z "$ac_dir" && ac_dir=.
941 if test -f $ac_dir/$ac_word; then
950 if test -n "$CC"; then
951 echo "$ac_t""$CC" 1>&6
953 echo "$ac_t""no" 1>&6
958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
966 ac_cpp='$CPP $CPPFLAGS'
967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
968 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
969 cross_compiling=$ac_cv_prog_cc_cross
971 cat > conftest.$ac_ext << EOF
973 #line 974 "configure"
974 #include "confdefs.h"
978 if { (eval echo configure:979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
979 ac_cv_prog_cc_works=yes
980 # If we can't run a trivial program, we are probably using a cross compiler.
981 if (./conftest; exit) 2>/dev/null; then
982 ac_cv_prog_cc_cross=no
984 ac_cv_prog_cc_cross=yes
987 echo "configure: failed program was:" >&5
988 cat conftest.$ac_ext >&5
989 ac_cv_prog_cc_works=no
993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
994 ac_cpp='$CPP $CPPFLAGS'
995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
997 cross_compiling=$ac_cv_prog_cc_cross
999 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1000 if test $ac_cv_prog_cc_works = no; then
1001 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1004 echo "configure:1005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1005 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1006 cross_compiling=$ac_cv_prog_cc_cross
1008 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1009 echo "configure:1010: checking whether we are using GNU C" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 cat > conftest.c <<EOF
1018 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1027 if test $ac_cv_prog_gcc = yes; then
1033 ac_test_CFLAGS="${CFLAGS+set}"
1034 ac_save_CFLAGS="$CFLAGS"
1036 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1037 echo "configure:1038: checking whether ${CC-cc} accepts -g" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 echo 'void f(){}' > conftest.c
1042 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1051 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1052 if test "$ac_test_CFLAGS" = set; then
1053 CFLAGS="$ac_save_CFLAGS"
1054 elif test $ac_cv_prog_cc_g = yes; then
1055 if test "$GCC" = yes; then
1061 if test "$GCC" = yes; then
1068 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1069 echo "configure:1070: checking how to run the C preprocessor" >&5
1070 # On Suns, sometimes $CPP names a directory.
1071 if test -n "$CPP" && test -d "$CPP"; then
1074 if test -z "$CPP"; then
1075 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 # This must be in double quotes, not single quotes, because CPP may get
1079 # substituted into the Makefile and "${CC-cc}" will confuse make.
1081 # On the NeXT, cc -E runs the code through the compiler's parser,
1082 # not just through cpp.
1083 cat > conftest.$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1090 { (eval echo configure:1091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1092 if test -z "$ac_err"; then
1096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
1099 CPP="${CC-cc} -E -traditional-cpp"
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1107 { (eval echo configure:1108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1109 if test -z "$ac_err"; then
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1116 CPP="${CC-cc} -nologo -E"
1117 cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1124 { (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1126 if test -z "$ac_err"; then
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1140 ac_cv_prog_CPP="$CPP"
1142 CPP="$ac_cv_prog_CPP"
1144 ac_cv_prog_CPP="$CPP"
1146 echo "$ac_t""$CPP" 1>&6
1149 if test $host != $build; then
1150 ac_tool_prefix=${host_alias}-
1155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 if test -n "$RANLIB"; then
1163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1167 for ac_dir in $ac_dummy; do
1168 test -z "$ac_dir" && ac_dir=.
1169 if test -f $ac_dir/$ac_word; then
1170 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1177 RANLIB="$ac_cv_prog_RANLIB"
1178 if test -n "$RANLIB"; then
1179 echo "$ac_t""$RANLIB" 1>&6
1181 echo "$ac_t""no" 1>&6
1185 if test -z "$ac_cv_prog_RANLIB"; then
1186 if test -n "$ac_tool_prefix"; then
1187 # Extract the first word of "ranlib", so it can be a program name with args.
1188 set dummy ranlib; ac_word=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 if test -n "$RANLIB"; then
1195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1199 for ac_dir in $ac_dummy; do
1200 test -z "$ac_dir" && ac_dir=.
1201 if test -f $ac_dir/$ac_word; then
1202 ac_cv_prog_RANLIB="ranlib"
1207 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1210 RANLIB="$ac_cv_prog_RANLIB"
1211 if test -n "$RANLIB"; then
1212 echo "$ac_t""$RANLIB" 1>&6
1214 echo "$ac_t""no" 1>&6
1222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1223 set dummy ${ac_tool_prefix}strip; ac_word=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 if test -n "$STRIP"; then
1230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1234 for ac_dir in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir=.
1236 if test -f $ac_dir/$ac_word; then
1237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1244 STRIP="$ac_cv_prog_STRIP"
1245 if test -n "$STRIP"; then
1246 echo "$ac_t""$STRIP" 1>&6
1248 echo "$ac_t""no" 1>&6
1252 if test -z "$ac_cv_prog_STRIP"; then
1253 if test -n "$ac_tool_prefix"; then
1254 # Extract the first word of "strip", so it can be a program name with args.
1255 set dummy strip; ac_word=$2
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_word" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 if test -n "$STRIP"; then
1262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1266 for ac_dir in $ac_dummy; do
1267 test -z "$ac_dir" && ac_dir=.
1268 if test -f $ac_dir/$ac_word; then
1269 ac_cv_prog_STRIP="strip"
1274 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1277 STRIP="$ac_cv_prog_STRIP"
1278 if test -n "$STRIP"; then
1279 echo "$ac_t""$STRIP" 1>&6
1281 echo "$ac_t""no" 1>&6
1290 # Extract the first word of "gmake", so it can be a program name with args.
1291 set dummy gmake; ac_word=$2
1292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1293 echo "configure:1294: checking for $ac_word" >&5
1294 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1299 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1302 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1315 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1319 GMAKE="$ac_cv_path_GMAKE"
1320 if test -n "$GMAKE"; then
1321 echo "$ac_t""$GMAKE" 1>&6
1323 echo "$ac_t""no" 1>&6
1326 if test "x${GMAKE}" = "xno"; then
1327 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1328 echo "configure:1329: checking whether GNU make is installed" >&5
1329 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1332 if make --version | grep -q -i gnu; then
1335 echo "This software needs you to install GNU make to compile properly."
1336 echo "You can get it from http://www.gnu.org/."
1341 echo "$ac_t""$ac_cv_gmake" 1>&6
1347 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1349 cat >> confdefs.h <<EOF
1350 #define VLC_PACKAGE "${PACKAGE}"
1353 cat >> confdefs.h <<EOF
1354 #define VLC_VERSION "${VERSION}"
1357 # Extract the first word of "ranlib", so it can be a program name with args.
1358 set dummy ranlib; ac_word=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 if test -n "$RANLIB"; then
1365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1369 for ac_dir in $ac_dummy; do
1370 test -z "$ac_dir" && ac_dir=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_prog_RANLIB="ranlib"
1377 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1380 RANLIB="$ac_cv_prog_RANLIB"
1381 if test -n "$RANLIB"; then
1382 echo "$ac_t""$RANLIB" 1>&6
1384 echo "$ac_t""no" 1>&6
1388 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1389 echo "configure:1390: checking for strerror in -lcposix" >&5
1390 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 ac_save_LIBS="$LIBS"
1395 LIBS="-lcposix $LIBS"
1396 cat > conftest.$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399 /* Override any gcc2 internal prototype to avoid an error. */
1400 /* We use char because int might match the return type of a gcc2
1401 builtin and then its argument prototype would still apply. */
1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1410 eval "ac_cv_lib_$ac_lib_var=yes"
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1415 eval "ac_cv_lib_$ac_lib_var=no"
1418 LIBS="$ac_save_LIBS"
1421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1422 echo "$ac_t""yes" 1>&6
1423 LIBS="$LIBS -lcposix"
1425 echo "$ac_t""no" 1>&6
1430 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1431 echo "configure:1432: checking for ANSI C header files" >&5
1432 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1435 cat > conftest.$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1444 { (eval echo configure:1445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1446 if test -z "$ac_err"; then
1448 ac_cv_header_stdc=yes
1451 echo "configure: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1454 ac_cv_header_stdc=no
1458 if test $ac_cv_header_stdc = yes; then
1459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1466 egrep "memchr" >/dev/null 2>&1; then
1470 ac_cv_header_stdc=no
1476 if test $ac_cv_header_stdc = yes; then
1477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1484 egrep "free" >/dev/null 2>&1; then
1488 ac_cv_header_stdc=no
1494 if test $ac_cv_header_stdc = yes; then
1495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1496 if test "$cross_compiling" = yes; then
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1503 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1504 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1506 int main () { int i; for (i = 0; i < 256; i++)
1507 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1511 if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1515 echo "configure: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1518 ac_cv_header_stdc=no
1526 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1527 if test $ac_cv_header_stdc = yes; then
1528 cat >> confdefs.h <<\EOF
1529 #define STDC_HEADERS 1
1534 echo $ac_n "checking for working const""... $ac_c" 1>&6
1535 echo "configure:1536: checking for working const" >&5
1536 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1545 /* Ultrix mips cc rejects this. */
1546 typedef int charset[2]; const charset x;
1547 /* SunOS 4.1.1 cc rejects this. */
1548 char const *const *ccp;
1550 /* NEC SVR4.0.2 mips cc rejects this. */
1551 struct point {int x, y;};
1552 static struct point const zero = {0,0};
1553 /* AIX XL C 1.02.0.0 rejects this.
1554 It does not let you subtract one const X* pointer from another in an arm
1555 of an if-expression whose if-part is not a constant expression */
1556 const char *g = "string";
1557 ccp = &g + (g ? g-g : 0);
1558 /* HPUX 7.0 cc rejects these. */
1561 ccp = (char const *const *) p;
1562 { /* SCO 3.2v4 cc rejects this. */
1564 char const *s = 0 ? (char *) 0 : (char const *) 0;
1568 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1570 const int *foo = &x[0];
1573 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1574 typedef const int *iptr;
1578 { /* AIX XL C 1.02.0.0 rejects this saying
1579 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1580 struct s { int j; const int *ap[3]; };
1581 struct s *b; b->j = 5;
1583 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1589 if { (eval echo configure:1590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1593 echo "configure: failed program was:" >&5
1594 cat conftest.$ac_ext >&5
1601 echo "$ac_t""$ac_cv_c_const" 1>&6
1602 if test $ac_cv_c_const = no; then
1603 cat >> confdefs.h <<\EOF
1609 echo $ac_n "checking for inline""... $ac_c" 1>&6
1610 echo "configure:1611: checking for inline" >&5
1611 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1615 for ac_kw in inline __inline__ __inline; do
1616 cat > conftest.$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1624 if { (eval echo configure:1625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1626 ac_cv_c_inline=$ac_kw; break
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1636 echo "$ac_t""$ac_cv_c_inline" 1>&6
1637 case "$ac_cv_c_inline" in
1639 no) cat >> confdefs.h <<\EOF
1643 *) cat >> confdefs.h <<EOF
1644 #define inline $ac_cv_c_inline
1649 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1650 echo "configure:1651: checking for off_t" >&5
1651 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 #include <sys/types.h>
1663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1664 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1666 ac_cv_type_off_t=yes
1674 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1675 if test $ac_cv_type_off_t = no; then
1676 cat >> confdefs.h <<\EOF
1682 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1683 echo "configure:1684: checking for size_t" >&5
1684 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690 #include <sys/types.h>
1696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1697 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1699 ac_cv_type_size_t=yes
1702 ac_cv_type_size_t=no
1707 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1708 if test $ac_cv_type_size_t = no; then
1709 cat >> confdefs.h <<\EOF
1710 #define size_t unsigned
1715 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1716 # for constant arguments. Useless!
1717 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1718 echo "configure:1719: checking for working alloca.h" >&5
1719 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1727 char *p = alloca(2 * sizeof(int));
1730 if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1732 ac_cv_header_alloca_h=yes
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1737 ac_cv_header_alloca_h=no
1742 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1743 if test $ac_cv_header_alloca_h = yes; then
1744 cat >> confdefs.h <<\EOF
1745 #define HAVE_ALLOCA_H 1
1750 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1751 echo "configure:1752: checking for alloca" >&5
1752 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1760 # define alloca __builtin_alloca
1763 # include <malloc.h>
1764 # define alloca _alloca
1767 # include <alloca.h>
1772 # ifndef alloca /* predefined by HP cc +Olibcalls */
1781 char *p = (char *) alloca(1);
1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1786 ac_cv_func_alloca_works=yes
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 ac_cv_func_alloca_works=no
1796 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1797 if test $ac_cv_func_alloca_works = yes; then
1798 cat >> confdefs.h <<\EOF
1799 #define HAVE_ALLOCA 1
1804 if test $ac_cv_func_alloca_works = no; then
1805 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1806 # that cause trouble. Some versions do not even contain alloca or
1807 # contain a buggy version. If you still want to use their alloca,
1808 # use ar to extract alloca.o from them instead of compiling alloca.c.
1809 ALLOCA=alloca.${ac_objext}
1810 cat >> confdefs.h <<\EOF
1815 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1816 echo "configure:1817: checking whether alloca needs Cray hooks" >&5
1817 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823 #if defined(CRAY) && ! defined(CRAY2)
1830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1831 egrep "webecray" >/dev/null 2>&1; then
1842 echo "$ac_t""$ac_cv_os_cray" 1>&6
1843 if test $ac_cv_os_cray = yes; then
1844 for ac_func in _getb67 GETB67 getb67; do
1845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_func" >&5
1847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 cat > conftest.$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $ac_func(); below. */
1856 /* Override any gcc2 internal prototype to avoid an error. */
1857 /* We use char because int might match the return type of a gcc2
1858 builtin and then its argument prototype would still apply. */
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1874 if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1876 eval "ac_cv_func_$ac_func=yes"
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1881 eval "ac_cv_func_$ac_func=no"
1886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1887 echo "$ac_t""yes" 1>&6
1888 cat >> confdefs.h <<EOF
1889 #define CRAY_STACKSEG_END $ac_func
1894 echo "$ac_t""no" 1>&6
1900 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1901 echo "configure:1902: checking stack direction for C alloca" >&5
1902 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 if test "$cross_compiling" = yes; then
1906 ac_cv_c_stack_direction=0
1908 cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1911 find_stack_direction ()
1913 static char *addr = 0;
1918 return find_stack_direction ();
1921 return (&dummy > addr) ? 1 : -1;
1925 exit (find_stack_direction() < 0);
1928 if { (eval echo configure:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1930 ac_cv_c_stack_direction=1
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 ac_cv_c_stack_direction=-1
1942 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1943 cat >> confdefs.h <<EOF
1944 #define STACK_DIRECTION $ac_cv_c_stack_direction
1949 for ac_hdr in unistd.h
1951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_hdr" >&5
1954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1963 { (eval echo configure:1964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1965 if test -z "$ac_err"; then
1967 eval "ac_cv_header_$ac_safe=yes"
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1973 eval "ac_cv_header_$ac_safe=no"
1977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1978 echo "$ac_t""yes" 1>&6
1979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1980 cat >> confdefs.h <<EOF
1981 #define $ac_tr_hdr 1
1985 echo "$ac_t""no" 1>&6
1989 for ac_func in getpagesize
1991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_func" >&5
1993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
1999 /* System header to define __stub macros and hopefully few prototypes,
2000 which can conflict with char $ac_func(); below. */
2002 /* Override any gcc2 internal prototype to avoid an error. */
2003 /* We use char because int might match the return type of a gcc2
2004 builtin and then its argument prototype would still apply. */
2009 /* The GNU C library defines this for functions which it implements
2010 to always fail with ENOSYS. Some functions are actually named
2011 something starting with __ and the normal name is an alias. */
2012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2020 if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2022 eval "ac_cv_func_$ac_func=yes"
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2027 eval "ac_cv_func_$ac_func=no"
2032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2033 echo "$ac_t""yes" 1>&6
2034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2035 cat >> confdefs.h <<EOF
2036 #define $ac_tr_func 1
2040 echo "$ac_t""no" 1>&6
2044 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2045 echo "configure:2046: checking for working mmap" >&5
2046 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 if test "$cross_compiling" = yes; then
2050 ac_cv_func_mmap_fixed_mapped=no
2052 cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2056 /* Thanks to Mike Haertel and Jim Avera for this test.
2057 Here is a matrix of mmap possibilities:
2058 mmap private not fixed
2059 mmap private fixed at somewhere currently unmapped
2060 mmap private fixed at somewhere already mapped
2061 mmap shared not fixed
2062 mmap shared fixed at somewhere currently unmapped
2063 mmap shared fixed at somewhere already mapped
2064 For private mappings, we should verify that changes cannot be read()
2065 back from the file, nor mmap's back from the file at a different
2066 address. (There have been systems where private was not correctly
2067 implemented like the infamous i386 svr4.0, and systems where the
2068 VM page cache was not coherent with the filesystem buffer cache
2069 like early versions of FreeBSD and possibly contemporary NetBSD.)
2070 For shared mappings, we should conversely verify that changes get
2071 propogated back to all the places they're supposed to be.
2073 Grep wants private fixed already mapped.
2074 The main things grep needs to know about mmap are:
2075 * does it exist and is it safe to write into the mmap'd area
2076 * how to use it (BSD variants) */
2077 #include <sys/types.h>
2079 #include <sys/mman.h>
2081 /* This mess was copied from the GNU getpagesize.h. */
2082 #ifndef HAVE_GETPAGESIZE
2083 # ifdef HAVE_UNISTD_H
2084 # include <unistd.h>
2087 /* Assume that all systems that can run configure have sys/param.h. */
2088 # ifndef HAVE_SYS_PARAM_H
2089 # define HAVE_SYS_PARAM_H 1
2092 # ifdef _SC_PAGESIZE
2093 # define getpagesize() sysconf(_SC_PAGESIZE)
2094 # else /* no _SC_PAGESIZE */
2095 # ifdef HAVE_SYS_PARAM_H
2096 # include <sys/param.h>
2097 # ifdef EXEC_PAGESIZE
2098 # define getpagesize() EXEC_PAGESIZE
2099 # else /* no EXEC_PAGESIZE */
2101 # define getpagesize() NBPG * CLSIZE
2104 # endif /* no CLSIZE */
2105 # else /* no NBPG */
2107 # define getpagesize() NBPC
2108 # else /* no NBPC */
2110 # define getpagesize() PAGESIZE
2111 # endif /* PAGESIZE */
2112 # endif /* no NBPC */
2113 # endif /* no NBPG */
2114 # endif /* no EXEC_PAGESIZE */
2115 # else /* no HAVE_SYS_PARAM_H */
2116 # define getpagesize() 8192 /* punt totally */
2117 # endif /* no HAVE_SYS_PARAM_H */
2118 # endif /* no _SC_PAGESIZE */
2120 #endif /* no HAVE_GETPAGESIZE */
2123 extern "C" { void *malloc(unsigned); }
2131 char *data, *data2, *data3;
2135 pagesize = getpagesize();
2138 * First, make a file with some known garbage in it.
2140 data = malloc(pagesize);
2143 for (i = 0; i < pagesize; ++i)
2144 *(data + i) = rand();
2146 fd = creat("conftestmmap", 0600);
2149 if (write(fd, data, pagesize) != pagesize)
2154 * Next, try to mmap the file at a fixed address which
2155 * already has something else allocated at it. If we can,
2156 * also make sure that we see the same garbage.
2158 fd = open("conftestmmap", O_RDWR);
2161 data2 = malloc(2 * pagesize);
2164 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2165 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2166 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2168 for (i = 0; i < pagesize; ++i)
2169 if (*(data + i) != *(data2 + i))
2173 * Finally, make sure that changes to the mapped area
2174 * do not percolate back to the file as seen by read().
2175 * (This is a bug on some variants of i386 svr4.0.)
2177 for (i = 0; i < pagesize; ++i)
2178 *(data2 + i) = *(data2 + i) + 1;
2179 data3 = malloc(pagesize);
2182 if (read(fd, data3, pagesize) != pagesize)
2184 for (i = 0; i < pagesize; ++i)
2185 if (*(data + i) != *(data3 + i))
2188 unlink("conftestmmap");
2193 if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2195 ac_cv_func_mmap_fixed_mapped=yes
2197 echo "configure: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2200 ac_cv_func_mmap_fixed_mapped=no
2207 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2208 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2209 cat >> confdefs.h <<\EOF
2216 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2217 echo "configure:2218: checking whether we are using the GNU C Library 2.1 or newer" >&5
2218 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2225 #include <features.h>
2226 #ifdef __GNU_LIBRARY__
2227 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2234 egrep "Lucky GNU user" >/dev/null 2>&1; then
2236 ac_cv_gnu_library_2_1=yes
2239 ac_cv_gnu_library_2_1=no
2247 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2249 GLIBC21="$ac_cv_gnu_library_2_1"
2253 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2254 stdlib.h string.h unistd.h sys/param.h
2256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2258 echo "configure:2259: checking for $ac_hdr" >&5
2259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2268 { (eval echo configure:2269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2270 if test -z "$ac_err"; then
2272 eval "ac_cv_header_$ac_safe=yes"
2275 echo "configure: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2278 eval "ac_cv_header_$ac_safe=no"
2282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2283 echo "$ac_t""yes" 1>&6
2284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2285 cat >> confdefs.h <<EOF
2286 #define $ac_tr_hdr 1
2290 echo "$ac_t""no" 1>&6
2294 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2295 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2296 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_func" >&5
2300 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 /* System header to define __stub macros and hopefully few prototypes,
2307 which can conflict with char $ac_func(); below. */
2309 /* Override any gcc2 internal prototype to avoid an error. */
2310 /* We use char because int might match the return type of a gcc2
2311 builtin and then its argument prototype would still apply. */
2316 /* The GNU C library defines this for functions which it implements
2317 to always fail with ENOSYS. Some functions are actually named
2318 something starting with __ and the normal name is an alias. */
2319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2327 if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2329 eval "ac_cv_func_$ac_func=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 eval "ac_cv_func_$ac_func=no"
2339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2342 cat >> confdefs.h <<EOF
2343 #define $ac_tr_func 1
2347 echo "$ac_t""no" 1>&6
2354 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2355 if test "${with_libiconv_prefix+set}" = set; then
2356 withval="$with_libiconv_prefix"
2358 for dir in `echo "$withval" | tr : ' '`; do
2359 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2360 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2366 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2367 echo "configure:2368: checking for iconv" >&5
2368 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2372 am_cv_func_iconv="no, consider installing GNU libiconv"
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2380 iconv_t cd = iconv_open("","");
2381 iconv(cd,NULL,NULL,NULL,NULL);
2385 if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2387 am_cv_func_iconv=yes
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2393 if test "$am_cv_func_iconv" != yes; then
2394 am_save_LIBS="$LIBS"
2395 LIBS="$LIBS -liconv"
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2402 iconv_t cd = iconv_open("","");
2403 iconv(cd,NULL,NULL,NULL,NULL);
2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2410 am_cv_func_iconv=yes
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2416 LIBS="$am_save_LIBS"
2421 echo "$ac_t""$am_cv_func_iconv" 1>&6
2422 if test "$am_cv_func_iconv" = yes; then
2423 cat >> confdefs.h <<\EOF
2424 #define HAVE_ICONV 1
2427 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2428 echo "configure:2429: checking for iconv declaration" >&5
2429 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2443 #if defined(__STDC__) || defined(__cplusplus)
2444 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2455 am_cv_proto_iconv_arg1=""
2457 echo "configure: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2460 am_cv_proto_iconv_arg1="const"
2463 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);"
2466 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2467 echo "$ac_t""${ac_t:-
2468 }$am_cv_proto_iconv" 1>&6
2469 cat >> confdefs.h <<EOF
2470 #define ICONV_CONST $am_cv_proto_iconv_arg1
2475 if test "$am_cv_lib_iconv" = yes; then
2481 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2482 echo "configure:2483: checking for nl_langinfo and CODESET" >&5
2483 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2489 #include <langinfo.h>
2491 char* cs = nl_langinfo(CODESET);
2494 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496 am_cv_langinfo_codeset=yes
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2501 am_cv_langinfo_codeset=no
2507 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2508 if test $am_cv_langinfo_codeset = yes; then
2509 cat >> confdefs.h <<\EOF
2510 #define HAVE_LANGINFO_CODESET 1
2515 if test $ac_cv_header_locale_h = yes; then
2516 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2517 echo "configure:2518: checking for LC_MESSAGES" >&5
2518 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2531 am_cv_val_LC_MESSAGES=yes
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2536 am_cv_val_LC_MESSAGES=no
2541 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2542 if test $am_cv_val_LC_MESSAGES = yes; then
2543 cat >> confdefs.h <<\EOF
2544 #define HAVE_LC_MESSAGES 1
2549 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2550 echo "configure:2551: checking whether NLS is requested" >&5
2551 # Check whether --enable-nls or --disable-nls was given.
2552 if test "${enable_nls+set}" = set; then
2553 enableval="$enable_nls"
2559 echo "$ac_t""$USE_NLS" 1>&6
2562 BUILD_INCLUDED_LIBINTL=no
2563 USE_INCLUDED_LIBINTL=no
2566 if test "$USE_NLS" = "yes"; then
2567 cat >> confdefs.h <<\EOF
2568 #define ENABLE_NLS 1
2571 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2572 echo "configure:2573: checking whether included gettext is requested" >&5
2573 # Check whether --with-included-gettext or --without-included-gettext was given.
2574 if test "${with_included_gettext+set}" = set; then
2575 withval="$with_included_gettext"
2576 nls_cv_force_use_gnu_gettext=$withval
2578 nls_cv_force_use_gnu_gettext=no
2581 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2583 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2584 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2590 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2591 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2592 echo "configure:2593: checking for libintl.h" >&5
2593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 cat > conftest.$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2599 #include <libintl.h>
2601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2602 { (eval echo configure:2603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2604 if test -z "$ac_err"; then
2606 eval "ac_cv_header_$ac_safe=yes"
2609 echo "configure: failed program was:" >&5
2610 cat conftest.$ac_ext >&5
2612 eval "ac_cv_header_$ac_safe=no"
2616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2617 echo "$ac_t""yes" 1>&6
2618 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2619 echo "configure:2620: checking for GNU gettext in libc" >&5
2620 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 cat > conftest.$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2626 #include <libintl.h>
2627 extern int _nl_msg_cat_cntr;
2629 bindtextdomain ("", "");
2630 return (int) gettext ("") + _nl_msg_cat_cntr
2633 if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2635 gt_cv_func_gnugettext1_libc=yes
2637 echo "configure: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2640 gt_cv_func_gnugettext1_libc=no
2645 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2647 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2648 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2649 echo "configure:2650: checking for GNU gettext in libintl" >&5
2650 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 gt_save_LIBS="$LIBS"
2654 LIBS="$LIBS -lintl $LIBICONV"
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2658 #include <libintl.h>
2659 extern int _nl_msg_cat_cntr;
2661 bindtextdomain ("", "");
2662 return (int) gettext ("") + _nl_msg_cat_cntr
2665 if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2667 gt_cv_func_gnugettext1_libintl=yes
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 gt_cv_func_gnugettext1_libintl=no
2675 LIBS="$gt_save_LIBS"
2678 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2681 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2682 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2683 && test "$PACKAGE" != gettext; }; then
2684 cat >> confdefs.h <<\EOF
2685 #define HAVE_GETTEXT 1
2689 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2690 INTLLIBS="-lintl $LIBICONV"
2693 gt_save_LIBS="$LIBS"
2694 LIBS="$LIBS $INTLLIBS"
2695 for ac_func in dcgettext
2697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2698 echo "configure:2699: checking for $ac_func" >&5
2699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 /* System header to define __stub macros and hopefully few prototypes,
2706 which can conflict with char $ac_func(); below. */
2708 /* Override any gcc2 internal prototype to avoid an error. */
2709 /* We use char because int might match the return type of a gcc2
2710 builtin and then its argument prototype would still apply. */
2715 /* The GNU C library defines this for functions which it implements
2716 to always fail with ENOSYS. Some functions are actually named
2717 something starting with __ and the normal name is an alias. */
2718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2726 if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2728 eval "ac_cv_func_$ac_func=yes"
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2733 eval "ac_cv_func_$ac_func=no"
2738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2739 echo "$ac_t""yes" 1>&6
2740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2741 cat >> confdefs.h <<EOF
2742 #define $ac_tr_func 1
2746 echo "$ac_t""no" 1>&6
2750 LIBS="$gt_save_LIBS"
2752 # Extract the first word of "msgfmt", so it can be a program name with args.
2753 set dummy msgfmt; ac_word=$2
2754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2755 echo "configure:2756: checking for $ac_word" >&5
2756 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2761 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2765 for ac_dir in $PATH; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2768 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2769 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2775 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2779 MSGFMT="$ac_cv_path_MSGFMT"
2780 if test "$MSGFMT" != ":"; then
2781 echo "$ac_t""$MSGFMT" 1>&6
2783 echo "$ac_t""no" 1>&6
2786 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2787 set dummy gmsgfmt; ac_word=$2
2788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2789 echo "configure:2790: checking for $ac_word" >&5
2790 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2795 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2798 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2803 for ac_dir in $ac_dummy; do
2804 test -z "$ac_dir" && ac_dir=.
2805 if test -f $ac_dir/$ac_word; then
2806 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2811 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2815 GMSGFMT="$ac_cv_path_GMSGFMT"
2816 if test -n "$GMSGFMT"; then
2817 echo "$ac_t""$GMSGFMT" 1>&6
2819 echo "$ac_t""no" 1>&6
2823 # Extract the first word of "xgettext", so it can be a program name with args.
2824 set dummy xgettext; ac_word=$2
2825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2826 echo "configure:2827: checking for $ac_word" >&5
2827 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2832 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2836 for ac_dir in $PATH; do
2837 test -z "$ac_dir" && ac_dir=.
2838 if test -f $ac_dir/$ac_word; then
2839 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2840 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2846 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2850 XGETTEXT="$ac_cv_path_XGETTEXT"
2851 if test "$XGETTEXT" != ":"; then
2852 echo "$ac_t""$XGETTEXT" 1>&6
2854 echo "$ac_t""no" 1>&6
2862 echo "$ac_t""no" 1>&6
2866 if test "$CATOBJEXT" = "NONE"; then
2867 nls_cv_use_gnu_gettext=yes
2871 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2872 INTLOBJS="\$(GETTOBJS)"
2873 # Extract the first word of "msgfmt", so it can be a program name with args.
2874 set dummy msgfmt; ac_word=$2
2875 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2876 echo "configure:2877: checking for $ac_word" >&5
2877 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2882 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2886 for ac_dir in $PATH; do
2887 test -z "$ac_dir" && ac_dir=.
2888 if test -f $ac_dir/$ac_word; then
2889 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2890 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2896 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2900 MSGFMT="$ac_cv_path_MSGFMT"
2901 if test "$MSGFMT" != ":"; then
2902 echo "$ac_t""$MSGFMT" 1>&6
2904 echo "$ac_t""no" 1>&6
2907 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2908 set dummy gmsgfmt; ac_word=$2
2909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_word" >&5
2911 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2916 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2919 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2924 for ac_dir in $ac_dummy; do
2925 test -z "$ac_dir" && ac_dir=.
2926 if test -f $ac_dir/$ac_word; then
2927 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2932 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2936 GMSGFMT="$ac_cv_path_GMSGFMT"
2937 if test -n "$GMSGFMT"; then
2938 echo "$ac_t""$GMSGFMT" 1>&6
2940 echo "$ac_t""no" 1>&6
2943 # Extract the first word of "xgettext", so it can be a program name with args.
2944 set dummy xgettext; ac_word=$2
2945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2946 echo "configure:2947: checking for $ac_word" >&5
2947 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2952 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2956 for ac_dir in $PATH; do
2957 test -z "$ac_dir" && ac_dir=.
2958 if test -f $ac_dir/$ac_word; then
2959 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2960 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2966 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2970 XGETTEXT="$ac_cv_path_XGETTEXT"
2971 if test "$XGETTEXT" != ":"; then
2972 echo "$ac_t""$XGETTEXT" 1>&6
2974 echo "$ac_t""no" 1>&6
2978 BUILD_INCLUDED_LIBINTL=yes
2979 USE_INCLUDED_LIBINTL=yes
2981 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2982 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2985 if test "$GMSGFMT" != ":"; then
2986 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2989 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2994 if test "$XGETTEXT" != ":"; then
2995 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2998 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3008 if test "$PACKAGE" = gettext; then
3009 BUILD_INCLUDED_LIBINTL=yes
3012 for ac_prog in bison
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015 set dummy $ac_prog; ac_word=$2
3016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3017 echo "configure:3018: checking for $ac_word" >&5
3018 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 if test -n "$INTLBISON"; then
3022 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3026 for ac_dir in $ac_dummy; do
3027 test -z "$ac_dir" && ac_dir=.
3028 if test -f $ac_dir/$ac_word; then
3029 ac_cv_prog_INTLBISON="$ac_prog"
3036 INTLBISON="$ac_cv_prog_INTLBISON"
3037 if test -n "$INTLBISON"; then
3038 echo "$ac_t""$INTLBISON" 1>&6
3040 echo "$ac_t""no" 1>&6
3043 test -n "$INTLBISON" && break
3046 if test -z "$INTLBISON"; then
3049 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3050 echo "configure:3051: checking version of bison" >&5
3051 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3052 case $ac_prog_version in
3053 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3054 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3055 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3056 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3058 echo "$ac_t""$ac_prog_version" 1>&6
3060 if test $ac_verc_fail = yes; then
3064 for lang in $ALL_LINGUAS; do
3065 GMOFILES="$GMOFILES $lang.gmo"
3066 POFILES="$POFILES $lang.po"
3080 nls_cv_header_libgt=
3092 if test "x$CATOBJEXT" != "x"; then
3093 if test "x$ALL_LINGUAS" = "x"; then
3096 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3097 echo "configure:3098: checking for catalogs to be installed" >&5
3099 for presentlang in $ALL_LINGUAS; do
3101 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3102 # Use the presentlang catalog if desiredlang is
3103 # a. equal to presentlang, or
3104 # b. a variant of presentlang (because in this case,
3105 # presentlang can be used as a fallback for messages
3106 # which are not translated in the desiredlang catalog).
3107 case "$desiredlang" in
3108 "$presentlang"*) useit=yes;;
3111 if test $useit = yes; then
3112 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3115 LINGUAS=$NEW_LINGUAS
3116 echo "$ac_t""$LINGUAS" 1>&6
3119 if test -n "$LINGUAS"; then
3120 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3125 if test -n "$ac_aux_dir"; then
3126 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3128 if test -z "$MKINSTALLDIRS"; then
3129 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3133 INTL_LIBTOOL_SUFFIX_PREFIX=
3137 # Find a good install program. We prefer a C program (faster),
3138 # so one script is as good as another. But avoid the broken or
3139 # incompatible versions:
3140 # SysV /etc/install, /usr/sbin/install
3141 # SunOS /usr/etc/install
3142 # IRIX /sbin/install
3144 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3145 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3146 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3147 # ./install, which can be erroneously created by make from ./install.sh.
3148 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3149 echo "configure:3150: checking for a BSD compatible install" >&5
3150 if test -z "$INSTALL"; then
3151 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3155 for ac_dir in $PATH; do
3156 # Account for people who put trailing slashes in PATH elements.
3158 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3160 # OSF1 and SCO ODT 3.0 have their own names for install.
3161 # Don't use installbsd from OSF since it installs stuff as root
3163 for ac_prog in ginstall scoinst install; do
3164 if test -f $ac_dir/$ac_prog; then
3165 if test $ac_prog = install &&
3166 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3167 # AIX install. It has an incompatible calling convention.
3170 ac_cv_path_install="$ac_dir/$ac_prog -c"
3181 if test "${ac_cv_path_install+set}" = set; then
3182 INSTALL="$ac_cv_path_install"
3184 # As a last resort, use the slow shell script. We don't cache a
3185 # path for INSTALL within a source directory, because that will
3186 # break other packages using the cache if that directory is
3187 # removed, or if the path is relative.
3188 INSTALL="$ac_install_sh"
3191 echo "$ac_t""$INSTALL" 1>&6
3193 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3194 # It thinks the first close brace ends the variable substitution.
3195 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3197 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3199 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3202 echo $ac_n "checking for working const""... $ac_c" 1>&6
3203 echo "configure:3204: checking for working const" >&5
3204 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3213 /* Ultrix mips cc rejects this. */
3214 typedef int charset[2]; const charset x;
3215 /* SunOS 4.1.1 cc rejects this. */
3216 char const *const *ccp;
3218 /* NEC SVR4.0.2 mips cc rejects this. */
3219 struct point {int x, y;};
3220 static struct point const zero = {0,0};
3221 /* AIX XL C 1.02.0.0 rejects this.
3222 It does not let you subtract one const X* pointer from another in an arm
3223 of an if-expression whose if-part is not a constant expression */
3224 const char *g = "string";
3225 ccp = &g + (g ? g-g : 0);
3226 /* HPUX 7.0 cc rejects these. */
3229 ccp = (char const *const *) p;
3230 { /* SCO 3.2v4 cc rejects this. */
3232 char const *s = 0 ? (char *) 0 : (char const *) 0;
3236 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3238 const int *foo = &x[0];
3241 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3242 typedef const int *iptr;
3246 { /* AIX XL C 1.02.0.0 rejects this saying
3247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3248 struct s { int j; const int *ap[3]; };
3249 struct s *b; b->j = 5;
3251 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3257 if { (eval echo configure:3258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3269 echo "$ac_t""$ac_cv_c_const" 1>&6
3270 if test $ac_cv_c_const = no; then
3271 cat >> confdefs.h <<\EOF
3277 echo $ac_n "checking for inline""... $ac_c" 1>&6
3278 echo "configure:3279: checking for inline" >&5
3279 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3283 for ac_kw in inline __inline__ __inline; do
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3292 if { (eval echo configure:3293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3294 ac_cv_c_inline=$ac_kw; break
3296 echo "configure: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3304 echo "$ac_t""$ac_cv_c_inline" 1>&6
3305 case "$ac_cv_c_inline" in
3307 no) cat >> confdefs.h <<\EOF
3311 *) cat >> confdefs.h <<EOF
3312 #define inline $ac_cv_c_inline
3318 vlc_LDFLAGS="${LDFLAGS}"
3320 case "x${target_os}" in
3329 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3330 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3331 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3335 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3339 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3340 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3344 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}windres; ac_word=$2
3346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3347 echo "configure:3348: checking for $ac_word" >&5
3348 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 if test -n "$WINDRES"; then
3352 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3356 for ac_dir in $ac_dummy; do
3357 test -z "$ac_dir" && ac_dir=.
3358 if test -f $ac_dir/$ac_word; then
3359 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3366 WINDRES="$ac_cv_prog_WINDRES"
3367 if test -n "$WINDRES"; then
3368 echo "$ac_t""$WINDRES" 1>&6
3370 echo "$ac_t""no" 1>&6
3374 if test -z "$ac_cv_prog_WINDRES"; then
3375 if test -n "$ac_tool_prefix"; then
3376 # Extract the first word of "windres", so it can be a program name with args.
3377 set dummy windres; ac_word=$2
3378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3379 echo "configure:3380: checking for $ac_word" >&5
3380 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 if test -n "$WINDRES"; then
3384 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3388 for ac_dir in $ac_dummy; do
3389 test -z "$ac_dir" && ac_dir=.
3390 if test -f $ac_dir/$ac_word; then
3391 ac_cv_prog_WINDRES="windres"
3396 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3399 WINDRES="$ac_cv_prog_WINDRES"
3400 if test -n "$WINDRES"; then
3401 echo "$ac_t""$WINDRES" 1>&6
3403 echo "$ac_t""no" 1>&6
3411 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3412 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3413 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3414 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3415 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3416 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3417 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3421 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3422 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3429 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3430 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3431 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3432 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -lstdc++.r4"
3433 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3440 if test "x${SYS}" = "xmingw32"
3442 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3444 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3445 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3448 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3450 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3453 echo "configure:3454: checking for $ac_func" >&5
3454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 /* System header to define __stub macros and hopefully few prototypes,
3461 which can conflict with char $ac_func(); below. */
3463 /* Override any gcc2 internal prototype to avoid an error. */
3464 /* We use char because int might match the return type of a gcc2
3465 builtin and then its argument prototype would still apply. */
3470 /* The GNU C library defines this for functions which it implements
3471 to always fail with ENOSYS. Some functions are actually named
3472 something starting with __ and the normal name is an alias. */
3473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3481 if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3483 eval "ac_cv_func_$ac_func=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3488 eval "ac_cv_func_$ac_func=no"
3493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3496 cat >> confdefs.h <<EOF
3497 #define $ac_tr_func 1
3501 echo "$ac_t""no" 1>&6
3506 echo $ac_n "checking for connect""... $ac_c" 1>&6
3507 echo "configure:3508: checking for connect" >&5
3508 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 /* System header to define __stub macros and hopefully few prototypes,
3515 which can conflict with char connect(); below. */
3517 /* Override any gcc2 internal prototype to avoid an error. */
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3524 /* The GNU C library defines this for functions which it implements
3525 to always fail with ENOSYS. Some functions are actually named
3526 something starting with __ and the normal name is an alias. */
3527 #if defined (__stub_connect) || defined (__stub___connect)
3535 if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3537 eval "ac_cv_func_connect=yes"
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3542 eval "ac_cv_func_connect=no"
3547 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3551 echo "$ac_t""no" 1>&6
3553 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3554 echo "configure:3555: checking for connect in -lsocket" >&5
3555 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 ac_save_LIBS="$LIBS"
3560 LIBS="-lsocket $LIBS"
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3573 if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3575 eval "ac_cv_lib_$ac_lib_var=yes"
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3580 eval "ac_cv_lib_$ac_lib_var=no"
3583 LIBS="$ac_save_LIBS"
3586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3588 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3589 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3592 echo "$ac_t""no" 1>&6
3597 echo $ac_n "checking for send""... $ac_c" 1>&6
3598 echo "configure:3599: checking for send" >&5
3599 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* System header to define __stub macros and hopefully few prototypes,
3606 which can conflict with char send(); below. */
3608 /* Override any gcc2 internal prototype to avoid an error. */
3609 /* We use char because int might match the return type of a gcc2
3610 builtin and then its argument prototype would still apply. */
3615 /* The GNU C library defines this for functions which it implements
3616 to always fail with ENOSYS. Some functions are actually named
3617 something starting with __ and the normal name is an alias. */
3618 #if defined (__stub_send) || defined (__stub___send)
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628 eval "ac_cv_func_send=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 eval "ac_cv_func_send=no"
3638 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3642 echo "$ac_t""no" 1>&6
3644 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3645 echo "configure:3646: checking for send in -lsocket" >&5
3646 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 ac_save_LIBS="$LIBS"
3651 LIBS="-lsocket $LIBS"
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 /* Override any gcc2 internal prototype to avoid an error. */
3656 /* We use char because int might match the return type of a gcc2
3657 builtin and then its argument prototype would still apply. */
3664 if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3666 eval "ac_cv_lib_$ac_lib_var=yes"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3671 eval "ac_cv_lib_$ac_lib_var=no"
3674 LIBS="$ac_save_LIBS"
3677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3678 echo "$ac_t""yes" 1>&6
3679 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3682 echo "$ac_t""no" 1>&6
3687 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3688 echo "configure:3689: checking for gethostbyname" >&5
3689 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 /* System header to define __stub macros and hopefully few prototypes,
3696 which can conflict with char gethostbyname(); below. */
3698 /* Override any gcc2 internal prototype to avoid an error. */
3699 /* We use char because int might match the return type of a gcc2
3700 builtin and then its argument prototype would still apply. */
3701 char gethostbyname();
3705 /* The GNU C library defines this for functions which it implements
3706 to always fail with ENOSYS. Some functions are actually named
3707 something starting with __ and the normal name is an alias. */
3708 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3716 if { (eval echo configure:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3718 eval "ac_cv_func_gethostbyname=yes"
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3723 eval "ac_cv_func_gethostbyname=no"
3728 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3729 echo "$ac_t""yes" 1>&6
3732 echo "$ac_t""no" 1>&6
3734 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3735 echo "configure:3736: checking for gethostbyname in -lnsl" >&5
3736 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 ac_save_LIBS="$LIBS"
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 /* Override any gcc2 internal prototype to avoid an error. */
3746 /* We use char because int might match the return type of a gcc2
3747 builtin and then its argument prototype would still apply. */
3748 char gethostbyname();
3754 if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3756 eval "ac_cv_lib_$ac_lib_var=yes"
3758 echo "configure: failed program was:" >&5
3759 cat conftest.$ac_ext >&5
3761 eval "ac_cv_lib_$ac_lib_var=no"
3764 LIBS="$ac_save_LIBS"
3767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3768 echo "$ac_t""yes" 1>&6
3769 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3771 echo "$ac_t""no" 1>&6
3773 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3774 echo "configure:3775: checking for gethostbyname in -lbind" >&5
3775 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3779 ac_save_LIBS="$LIBS"
3781 cat > conftest.$ac_ext <<EOF
3782 #line 3783 "configure"
3783 #include "confdefs.h"
3784 /* Override any gcc2 internal prototype to avoid an error. */
3785 /* We use char because int might match the return type of a gcc2
3786 builtin and then its argument prototype would still apply. */
3787 char gethostbyname();
3793 if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3795 eval "ac_cv_lib_$ac_lib_var=yes"
3797 echo "configure: failed program was:" >&5
3798 cat conftest.$ac_ext >&5
3800 eval "ac_cv_lib_$ac_lib_var=no"
3803 LIBS="$ac_save_LIBS"
3806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3807 echo "$ac_t""yes" 1>&6
3808 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3810 echo "$ac_t""no" 1>&6
3819 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3820 echo "configure:3821: checking for nanosleep" >&5
3821 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 cat > conftest.$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3827 /* System header to define __stub macros and hopefully few prototypes,
3828 which can conflict with char nanosleep(); below. */
3830 /* Override any gcc2 internal prototype to avoid an error. */
3831 /* We use char because int might match the return type of a gcc2
3832 builtin and then its argument prototype would still apply. */
3837 /* The GNU C library defines this for functions which it implements
3838 to always fail with ENOSYS. Some functions are actually named
3839 something starting with __ and the normal name is an alias. */
3840 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3848 if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3850 eval "ac_cv_func_nanosleep=yes"
3852 echo "configure: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3855 eval "ac_cv_func_nanosleep=no"
3860 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3861 echo "$ac_t""yes" 1>&6
3864 echo "$ac_t""no" 1>&6
3866 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3867 echo "configure:3868: checking for nanosleep in -lrt" >&5
3868 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3872 ac_save_LIBS="$LIBS"
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
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. */
3886 if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3888 eval "ac_cv_lib_$ac_lib_var=yes"
3890 echo "configure: failed program was:" >&5
3891 cat conftest.$ac_ext >&5
3893 eval "ac_cv_lib_$ac_lib_var=no"
3896 LIBS="$ac_save_LIBS"
3899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3900 echo "$ac_t""yes" 1>&6
3901 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3903 echo "$ac_t""no" 1>&6
3904 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3905 echo "configure:3906: checking for nanosleep in -lposix4" >&5
3906 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 ac_save_LIBS="$LIBS"
3911 LIBS="-lposix4 $LIBS"
3912 cat > conftest.$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3924 if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3926 eval "ac_cv_lib_$ac_lib_var=yes"
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3931 eval "ac_cv_lib_$ac_lib_var=no"
3934 LIBS="$ac_save_LIBS"
3937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3938 echo "$ac_t""yes" 1>&6
3939 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3941 echo "$ac_t""no" 1>&6
3950 if test x$have_nanosleep = x1; then
3951 cat >> confdefs.h <<\EOF
3952 #define HAVE_NANOSLEEP 1
3957 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
3958 echo "configure:3959: checking for sem_init in -lrt" >&5
3959 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
3960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3963 ac_save_LIBS="$LIBS"
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 /* We use char because int might match the return type of a gcc2
3970 builtin and then its argument prototype would still apply. */
3977 if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3979 eval "ac_cv_lib_$ac_lib_var=yes"
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3984 eval "ac_cv_lib_$ac_lib_var=no"
3987 LIBS="$ac_save_LIBS"
3990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3991 echo "$ac_t""yes" 1>&6
3992 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3994 echo "$ac_t""no" 1>&6
3998 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3999 echo "configure:4000: checking for inet_aton" >&5
4000 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 /* System header to define __stub macros and hopefully few prototypes,
4007 which can conflict with char inet_aton(); below. */
4009 /* Override any gcc2 internal prototype to avoid an error. */
4010 /* We use char because int might match the return type of a gcc2
4011 builtin and then its argument prototype would still apply. */
4016 /* The GNU C library defines this for functions which it implements
4017 to always fail with ENOSYS. Some functions are actually named
4018 something starting with __ and the normal name is an alias. */
4019 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
4027 if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4029 eval "ac_cv_func_inet_aton=yes"
4031 echo "configure: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
4034 eval "ac_cv_func_inet_aton=no"
4039 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
4040 echo "$ac_t""yes" 1>&6
4043 echo "$ac_t""no" 1>&6
4045 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
4046 echo "configure:4047: checking for inet_aton in -lresolv" >&5
4047 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
4048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 ac_save_LIBS="$LIBS"
4052 LIBS="-lresolv $LIBS"
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
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. */
4065 if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4067 eval "ac_cv_lib_$ac_lib_var=yes"
4069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
4072 eval "ac_cv_lib_$ac_lib_var=no"
4075 LIBS="$ac_save_LIBS"
4078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4079 echo "$ac_t""yes" 1>&6
4080 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
4082 echo "$ac_t""no" 1>&6
4088 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4089 echo "configure:4090: checking for textdomain" >&5
4090 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* System header to define __stub macros and hopefully few prototypes,
4097 which can conflict with char textdomain(); below. */
4099 /* Override any gcc2 internal prototype to avoid an error. */
4100 /* We use char because int might match the return type of a gcc2
4101 builtin and then its argument prototype would still apply. */
4106 /* The GNU C library defines this for functions which it implements
4107 to always fail with ENOSYS. Some functions are actually named
4108 something starting with __ and the normal name is an alias. */
4109 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4117 if { (eval echo configure:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4119 eval "ac_cv_func_textdomain=yes"
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4124 eval "ac_cv_func_textdomain=no"
4129 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4130 echo "$ac_t""yes" 1>&6
4133 echo "$ac_t""no" 1>&6
4135 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4136 echo "configure:4137: checking for textdomain in -lintl" >&5
4137 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4141 ac_save_LIBS="$LIBS"
4143 cat > conftest.$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
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. */
4155 if { (eval echo configure:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4157 eval "ac_cv_lib_$ac_lib_var=yes"
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 eval "ac_cv_lib_$ac_lib_var=no"
4165 LIBS="$ac_save_LIBS"
4168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4169 echo "$ac_t""yes" 1>&6
4170 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4171 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4174 echo "$ac_t""no" 1>&6
4182 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4183 echo "configure:4184: checking for getopt_long" >&5
4184 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 /* System header to define __stub macros and hopefully few prototypes,
4191 which can conflict with char getopt_long(); below. */
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. */
4200 /* The GNU C library defines this for functions which it implements
4201 to always fail with ENOSYS. Some functions are actually named
4202 something starting with __ and the normal name is an alias. */
4203 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4211 if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4213 eval "ac_cv_func_getopt_long=yes"
4215 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4218 eval "ac_cv_func_getopt_long=no"
4223 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4224 echo "$ac_t""yes" 1>&6
4225 cat >> confdefs.h <<\EOF
4226 #define HAVE_GETOPT_LONG 1
4230 echo "$ac_t""no" 1>&6
4231 # FreeBSD has a gnugetopt library for this:
4232 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4233 echo "configure:4234: checking for getopt_long in -lgnugetopt" >&5
4234 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 ac_save_LIBS="$LIBS"
4239 LIBS="-lgnugetopt $LIBS"
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4243 /* Override any gcc2 internal prototype to avoid an error. */
4244 /* We use char because int might match the return type of a gcc2
4245 builtin and then its argument prototype would still apply. */
4252 if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4254 eval "ac_cv_lib_$ac_lib_var=yes"
4256 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4259 eval "ac_cv_lib_$ac_lib_var=no"
4262 LIBS="$ac_save_LIBS"
4265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4266 echo "$ac_t""yes" 1>&6
4267 cat >> confdefs.h <<\EOF
4268 #define HAVE_GETOPT_LONG 1
4270 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4272 echo "$ac_t""no" 1>&6
4279 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4280 echo "configure:4281: checking return type of signal handlers" >&5
4281 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 #include <sys/types.h>
4293 extern "C" void (*signal (int, void (*)(int)))(int);
4295 void (*signal ()) ();
4302 if { (eval echo configure:4303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4304 ac_cv_type_signal=void
4306 echo "configure: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4309 ac_cv_type_signal=int
4314 echo "$ac_t""$ac_cv_type_signal" 1>&6
4315 cat >> confdefs.h <<EOF
4316 #define RETSIGTYPE $ac_cv_type_signal
4320 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4321 echo "configure:4322: checking for dlopen in -ldl" >&5
4322 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 ac_save_LIBS="$LIBS"
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 /* Override any gcc2 internal prototype to avoid an error. */
4332 /* We use char because int might match the return type of a gcc2
4333 builtin and then its argument prototype would still apply. */
4340 if { (eval echo configure:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4342 eval "ac_cv_lib_$ac_lib_var=yes"
4344 echo "configure: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4347 eval "ac_cv_lib_$ac_lib_var=no"
4350 LIBS="$ac_save_LIBS"
4353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4355 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4357 echo "$ac_t""no" 1>&6
4360 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4361 echo "configure:4362: checking for cos in -lm" >&5
4362 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 ac_save_LIBS="$LIBS"
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4371 /* Override any gcc2 internal prototype to avoid an error. */
4372 /* We use char because int might match the return type of a gcc2
4373 builtin and then its argument prototype would still apply. */
4380 if { (eval echo configure:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4382 eval "ac_cv_lib_$ac_lib_var=yes"
4384 echo "configure: failed program was:" >&5
4385 cat conftest.$ac_ext >&5
4387 eval "ac_cv_lib_$ac_lib_var=no"
4390 LIBS="$ac_save_LIBS"
4393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4395 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4396 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4398 echo "$ac_t""no" 1>&6
4401 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4402 echo "configure:4403: checking for pow in -lm" >&5
4403 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 ac_save_LIBS="$LIBS"
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* Override any gcc2 internal prototype to avoid an error. */
4413 /* We use char because int might match the return type of a gcc2
4414 builtin and then its argument prototype would still apply. */
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4423 eval "ac_cv_lib_$ac_lib_var=yes"
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4428 eval "ac_cv_lib_$ac_lib_var=no"
4431 LIBS="$ac_save_LIBS"
4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4436 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4437 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4438 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4439 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4440 i420_rgb_LDFLAGS="${i420_rgb_LDFLAGS} -lm"
4441 faad_LDFLAGS="${faad_LDFLAGS} -lm"
4444 echo "$ac_t""no" 1>&6
4449 if test "x${THREAD_LIB}" = "xerror"; then
4450 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4451 echo "configure:4452: checking for main in -lpthread" >&5
4452 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4456 ac_save_LIBS="$LIBS"
4457 LIBS="-lpthread $LIBS"
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4466 if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4468 eval "ac_cv_lib_$ac_lib_var=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 eval "ac_cv_lib_$ac_lib_var=no"
4476 LIBS="$ac_save_LIBS"
4479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 THREAD_LIB="-lpthread"
4483 echo "$ac_t""no" 1>&6
4487 if test "x${THREAD_LIB}" = "xerror"; then
4488 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4489 echo "configure:4490: checking for main in -lpthreads" >&5
4490 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 ac_save_LIBS="$LIBS"
4495 LIBS="-lpthreads $LIBS"
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4506 eval "ac_cv_lib_$ac_lib_var=yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 eval "ac_cv_lib_$ac_lib_var=no"
4514 LIBS="$ac_save_LIBS"
4517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4518 echo "$ac_t""yes" 1>&6
4519 THREAD_LIB="-lpthreads"
4521 echo "$ac_t""no" 1>&6
4525 if test "x${THREAD_LIB}" = "xerror"; then
4526 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4527 echo "configure:4528: checking for main in -lc_r" >&5
4528 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 ac_save_LIBS="$LIBS"
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4544 eval "ac_cv_lib_$ac_lib_var=yes"
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4549 eval "ac_cv_lib_$ac_lib_var=no"
4552 LIBS="$ac_save_LIBS"
4555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4556 echo "$ac_t""yes" 1>&6
4559 echo "$ac_t""no" 1>&6
4563 if test "x${THREAD_LIB}" = "xerror"; then
4564 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4565 echo "configure:4566: checking for pthread_mutex_lock" >&5
4566 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 cat > conftest.$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4572 /* System header to define __stub macros and hopefully few prototypes,
4573 which can conflict with char pthread_mutex_lock(); below. */
4575 /* Override any gcc2 internal prototype to avoid an error. */
4576 /* We use char because int might match the return type of a gcc2
4577 builtin and then its argument prototype would still apply. */
4578 char pthread_mutex_lock();
4582 /* The GNU C library defines this for functions which it implements
4583 to always fail with ENOSYS. Some functions are actually named
4584 something starting with __ and the normal name is an alias. */
4585 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4588 pthread_mutex_lock();
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595 eval "ac_cv_func_pthread_mutex_lock=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 eval "ac_cv_func_pthread_mutex_lock=no"
4605 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4606 echo "$ac_t""yes" 1>&6
4609 echo "$ac_t""no" 1>&6
4615 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4616 echo "configure:4617: checking for cthread_fork in -lthreads" >&5
4617 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 ac_save_LIBS="$LIBS"
4622 LIBS="-lthreads $LIBS"
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 /* Override any gcc2 internal prototype to avoid an error. */
4627 /* We use char because int might match the return type of a gcc2
4628 builtin and then its argument prototype would still apply. */
4629 char cthread_fork();
4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4637 eval "ac_cv_lib_$ac_lib_var=yes"
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4642 eval "ac_cv_lib_$ac_lib_var=no"
4645 LIBS="$ac_save_LIBS"
4648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4649 echo "$ac_t""yes" 1>&6
4650 THREAD_LIB="-lthreads"
4652 echo "$ac_t""no" 1>&6
4656 cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 #include <pthread.h>
4661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4662 egrep "pthread_cond_t" >/dev/null 2>&1; then
4665 cat >> confdefs.h <<\EOF
4666 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 #include <pthread.h>
4677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4678 egrep "pthread_once" >/dev/null 2>&1; then
4681 cat >> confdefs.h <<\EOF
4682 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4691 #include <strings.h>
4693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4694 egrep "strncasecmp" >/dev/null 2>&1; then
4697 cat >> confdefs.h <<\EOF
4698 #define STRNCASECMP_IN_STRINGS_H 1
4705 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4709 echo "configure:4710: checking for $ac_hdr" >&5
4710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4711 echo $ac_n "(cached) $ac_c" 1>&6
4713 cat > conftest.$ac_ext <<EOF
4714 #line 4715 "configure"
4715 #include "confdefs.h"
4718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4719 { (eval echo configure:4720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4721 if test -z "$ac_err"; then
4723 eval "ac_cv_header_$ac_safe=yes"
4726 echo "configure: failed program was:" >&5
4727 cat conftest.$ac_ext >&5
4729 eval "ac_cv_header_$ac_safe=no"
4733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4734 echo "$ac_t""yes" 1>&6
4735 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4736 cat >> confdefs.h <<EOF
4737 #define $ac_tr_hdr 1
4741 echo "$ac_t""no" 1>&6
4745 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4749 echo "configure:4750: checking for $ac_hdr" >&5
4750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4759 { (eval echo configure:4760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4761 if test -z "$ac_err"; then
4763 eval "ac_cv_header_$ac_safe=yes"
4766 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4769 eval "ac_cv_header_$ac_safe=no"
4773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4774 echo "$ac_t""yes" 1>&6
4775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4776 cat >> confdefs.h <<EOF
4777 #define $ac_tr_hdr 1
4781 echo "$ac_t""no" 1>&6
4785 for ac_hdr in dlfcn.h image.h
4787 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4789 echo "configure:4790: checking for $ac_hdr" >&5
4790 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4793 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4799 { (eval echo configure:4800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4801 if test -z "$ac_err"; then
4803 eval "ac_cv_header_$ac_safe=yes"
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4809 eval "ac_cv_header_$ac_safe=no"
4813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4814 echo "$ac_t""yes" 1>&6
4815 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4816 cat >> confdefs.h <<EOF
4817 #define $ac_tr_hdr 1
4821 echo "$ac_t""no" 1>&6
4825 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4829 echo "configure:4830: checking for $ac_hdr" >&5
4830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4839 { (eval echo configure:4840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4841 if test -z "$ac_err"; then
4843 eval "ac_cv_header_$ac_safe=yes"
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4849 eval "ac_cv_header_$ac_safe=no"
4853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4854 echo "$ac_t""yes" 1>&6
4855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4856 cat >> confdefs.h <<EOF
4857 #define $ac_tr_hdr 1
4861 echo "$ac_t""no" 1>&6
4865 for ac_hdr in machine/param.h sys/shm.h
4867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4869 echo "configure:4870: checking for $ac_hdr" >&5
4870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4879 { (eval echo configure:4880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4881 if test -z "$ac_err"; then
4883 eval "ac_cv_header_$ac_safe=yes"
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4889 eval "ac_cv_header_$ac_safe=no"
4893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4894 echo "$ac_t""yes" 1>&6
4895 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4896 cat >> confdefs.h <<EOF
4897 #define $ac_tr_hdr 1
4901 echo "$ac_t""no" 1>&6
4905 for ac_hdr in linux/version.h
4907 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4908 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4909 echo "configure:4910: checking for $ac_hdr" >&5
4910 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4919 { (eval echo configure:4920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4921 if test -z "$ac_err"; then
4923 eval "ac_cv_header_$ac_safe=yes"
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4929 eval "ac_cv_header_$ac_safe=no"
4933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4935 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4936 cat >> confdefs.h <<EOF
4937 #define $ac_tr_hdr 1
4941 echo "$ac_t""no" 1>&6
4946 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4947 echo "configure:4948: checking whether time.h and sys/time.h may both be included" >&5
4948 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4951 cat > conftest.$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 #include <sys/types.h>
4955 #include <sys/time.h>
4961 if { (eval echo configure:4962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4963 ac_cv_header_time=yes
4965 echo "configure: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4968 ac_cv_header_time=no
4973 echo "$ac_t""$ac_cv_header_time" 1>&6
4974 if test $ac_cv_header_time = yes; then
4975 cat >> confdefs.h <<\EOF
4976 #define TIME_WITH_SYS_TIME 1
4982 cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988 egrep "nanosleep" >/dev/null 2>&1; then
4991 cat >> confdefs.h <<\EOF
4992 #define HAVE_DECL_NANOSLEEP 1
5000 cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 #include <sys/time.h>
5005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5006 egrep "timespec" >/dev/null 2>&1; then
5009 cat >> confdefs.h <<\EOF
5010 #define HAVE_STRUCT_TIMESPEC 1
5018 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
5020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5022 echo "configure:5023: checking for $ac_hdr" >&5
5023 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5024 echo $ac_n "(cached) $ac_c" 1>&6
5026 cat > conftest.$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5032 { (eval echo configure:5033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5034 if test -z "$ac_err"; then
5036 eval "ac_cv_header_$ac_safe=yes"
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5042 eval "ac_cv_header_$ac_safe=no"
5046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5047 echo "$ac_t""yes" 1>&6
5048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5049 cat >> confdefs.h <<EOF
5050 #define $ac_tr_hdr 1
5054 echo "$ac_t""no" 1>&6
5059 if test "x${x_includes}" = "xNONE"; then
5060 x_includes="/usr/X11R6/include"
5062 if test "x${x_libraries}" = "xNONE"; then
5063 x_libraries="/usr/X11R6/lib"
5068 if test "x${SYS}" != "xmingw32"
5070 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
5071 for ac_hdr in X11/extensions/dpms.h
5073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5075 echo "configure:5076: checking for $ac_hdr" >&5
5076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5079 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure"
5081 #include "confdefs.h"
5084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5085 { (eval echo configure:5086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5087 if test -z "$ac_err"; then
5089 eval "ac_cv_header_$ac_safe=yes"
5092 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5
5095 eval "ac_cv_header_$ac_safe=no"
5099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5100 echo "$ac_t""yes" 1>&6
5101 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5102 cat >> confdefs.h <<EOF
5103 #define $ac_tr_hdr 1
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5109 #include <X11/extensions/dpms.h>
5111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5112 egrep "DPMSInfo" >/dev/null 2>&1; then
5115 cat >> confdefs.h <<\EOF
5116 #define DPMSINFO_IN_DPMS_H 1
5125 echo "$ac_t""no" 1>&6
5129 CPPFLAGS="${save_CPPFLAGS}"
5132 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5133 echo "configure:5134: checking for ntohl in sys/param.h" >&5
5134 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 CFLAGS="${save_CFLAGS} -Wall -Werror"
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5141 #include <sys/param.h>
5143 void foo() { int meuh; ntohl(meuh); }
5146 if { (eval echo configure:5147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5148 ac_cv_c_ntohl_sys_param_h=yes
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5153 ac_cv_c_ntohl_sys_param_h=no
5158 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5159 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5160 cat >> confdefs.h <<\EOF
5161 #define NTOHL_IN_SYS_PARAM_H 1
5166 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5167 echo "configure:5168: checking if \$CC accepts -finline-limit" >&5
5168 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5171 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5172 cat > conftest.$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5180 if { (eval echo configure:5181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5182 ac_cv_c_inline_limit=yes
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5187 ac_cv_c_inline_limit=no
5192 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5193 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5194 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5197 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5198 echo "configure:5199: checking if \$CC accepts -Wall -Winline" >&5
5199 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5202 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5203 cat > conftest.$ac_ext <<EOF
5204 #line 5205 "configure"
5205 #include "confdefs.h"
5211 if { (eval echo configure:5212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5213 ac_cv_c_Wall_Winline=yes
5215 echo "configure: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5218 ac_cv_c_Wall_Winline=no
5223 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5224 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5225 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5227 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5228 echo "configure:5229: checking if \$CC accepts -wall -winline" >&5
5229 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 CFLAGS="-wall -winline ${save_CFLAGS}"
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5241 if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5243 ac_cv_c_wall_winline=yes
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5248 ac_cv_c_wall_winline=no
5253 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5254 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5255 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5259 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5260 echo "configure:5261: checking if \$CC accepts -pipe" >&5
5261 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5264 CFLAGS="${save_CFLAGS} -pipe"
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5273 if { (eval echo configure:5274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5277 echo "configure: failed program was:" >&5
5278 cat conftest.$ac_ext >&5
5285 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5286 if test "x${ac_cv_c_pipe}" != "xno"; then
5287 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5290 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5291 echo "configure:5292: checking if \$CC accepts -O3" >&5
5292 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5295 CFLAGS="${save_CFLAGS} -O3"
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5304 if { (eval echo configure:5305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5316 echo "$ac_t""$ac_cv_c_o3" 1>&6
5317 if test "x${ac_cv_c_o3}" != "xno"; then
5318 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5320 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5321 echo "configure:5322: checking if \$CC accepts -O2" >&5
5322 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5325 CFLAGS="${save_CFLAGS} -O2"
5326 cat > conftest.$ac_ext <<EOF
5327 #line 5328 "configure"
5328 #include "confdefs.h"
5334 if { (eval echo configure:5335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5338 echo "configure: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5346 echo "$ac_t""$ac_cv_c_o2" 1>&6
5347 if test "x${ac_cv_c_o2}" != "xno"; then
5348 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5350 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5351 echo "configure:5352: checking if \$CC accepts -O" >&5
5352 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5353 echo $ac_n "(cached) $ac_c" 1>&6
5355 CFLAGS="${save_CFLAGS} -O"
5356 cat > conftest.$ac_ext <<EOF
5357 #line 5358 "configure"
5358 #include "confdefs.h"
5364 if { (eval echo configure:5365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5368 echo "configure: failed program was:" >&5
5369 cat conftest.$ac_ext >&5
5376 echo "$ac_t""$ac_cv_c_o" 1>&6
5377 if test "x${ac_cv_c_o}" != "xno"; then
5378 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5383 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5384 echo "configure:5385: checking if \$CC accepts -ffast-math" >&5
5385 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5388 CFLAGS="${save_CFLAGS} -ffast-math"
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5397 if { (eval echo configure:5398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5399 ac_cv_c_fast_math=yes
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5404 ac_cv_c_fast_math=no
5409 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5410 if test "x${ac_cv_c_fast_math}" != "xno"; then
5411 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5414 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5415 echo "configure:5416: checking if \$CC accepts -funroll-loops" >&5
5416 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5419 CFLAGS="${save_CFLAGS} -funroll-loops"
5420 cat > conftest.$ac_ext <<EOF
5421 #line 5422 "configure"
5422 #include "confdefs.h"
5428 if { (eval echo configure:5429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5430 ac_cv_c_unroll_loops=yes
5432 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5435 ac_cv_c_unroll_loops=no
5440 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5441 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5442 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5445 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5446 echo "configure:5447: checking if \$CC accepts -fomit-frame-pointer" >&5
5447 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5450 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5451 cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5459 if { (eval echo configure:5460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5461 ac_cv_c_omit_frame_pointer=yes
5463 echo "configure: failed program was:" >&5
5464 cat conftest.$ac_ext >&5
5466 ac_cv_c_omit_frame_pointer=no
5471 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5472 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5473 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5474 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5475 i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5478 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5479 echo "configure:5480: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5480 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5483 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5484 cat > conftest.$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5492 if { (eval echo configure:5493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5496 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5504 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5505 if test "x${ac_cv_ld_darwin}" != "xno"; then
5506 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5509 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5510 echo "configure:5511: checking if \$CC accepts -shared" >&5
5511 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5512 echo $ac_n "(cached) $ac_c" 1>&6
5514 CFLAGS="${save_CFLAGS} -shared"
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5523 if { (eval echo configure:5524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5525 ac_cv_ld_plugins=yes
5527 echo "configure: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5535 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5536 if test "x${ac_cv_ld_plugins}" != "xno"; then
5537 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5540 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5541 echo "configure:5542: checking for variadic cpp macros" >&5
5542 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5545 CFLAGS="${save_CFLAGS}"
5546 cat > conftest.$ac_ext <<EOF
5547 #line 5548 "configure"
5548 #include "confdefs.h"
5550 #define a(b,c...) printf(b,##c)
5552 a("foo");a("%s","bar");a("%s%s","baz","quux");
5555 if { (eval echo configure:5556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5557 ac_cv_cpp_variadic_macros=yes
5559 echo "configure: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5562 ac_cv_cpp_variadic_macros=no
5567 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5568 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5569 cat >> confdefs.h <<\EOF
5570 #define HAVE_VARIADIC_MACROS 1
5575 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5576 echo "configure:5577: checking __attribute__ ((aligned ())) support" >&5
5577 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 ac_cv_c_attribute_aligned=0
5581 CFLAGS="${save_CFLAGS} -Werror"
5582 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5588 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5591 if { (eval echo configure:5592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5593 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5600 CFLAGS="${save_CFLAGS}"
5603 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5604 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5605 cat >> confdefs.h <<EOF
5606 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5611 case "x${target_cpu}" in
5616 ARCH="${target_cpu}"
5620 BUILTINS="${BUILTINS}"
5621 PLUGINS="${PLUGINS} misc/dummy/dummy misc/null"
5622 PLUGINS="${PLUGINS} control/rc/rc misc/logger/logger access/file misc/memcpy/memcpy"
5623 PLUGINS="${PLUGINS} demux/mpeg/es demux/mpeg/audio demux/mpeg/mpeg_system demux/mpeg/ps demux/mpeg/ts"
5624 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 codec/spdif codec/mpeg_audio/mpeg_audio"
5625 #PLUGINS="${PLUGINS} codec/a52old/imdct/imdct codec/a52old/downmix/downmix codec/a52old/a52old codec/lpcm/lpcm"
5626 PLUGINS="${PLUGINS} video_filter/deinterlace/deinterlace video_filter/invert video_filter/wall video_filter/transform video_filter/distort video_filter/clone video_filter/crop"
5627 PLUGINS="${PLUGINS} audio_filter/converter/float32tos16 audio_filter/converter/float32tos8 audio_filter/converter/float32tou16 audio_filter/converter/float32tou8 audio_filter/converter/a52tospdif"
5628 PLUGINS="${PLUGINS} audio_filter/resampler/trivial"
5629 PLUGINS="${PLUGINS} audio_mixer/trivial audio_mixer/spdif"
5630 PLUGINS="${PLUGINS} audio_output/file"
5631 #PLUGINS="${PLUGINS} visualization/scope/scope"
5632 PLUGINS="${PLUGINS} video_chroma/i420_rgb video_chroma/i420_yuy2 video_chroma/i422_yuy2 video_chroma/i420_ymga"
5634 NETWORK_MODULES="access/udp access/http access/rtp misc/network/ipv4"
5636 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"
5637 MMXEXT_MODULES="misc/memcpy/memcpymmxext codec/mpeg_video/idct/idctmmxext codec/mpeg_video/motion/motionmmxext"
5638 THREEDNOW_MODULES="misc/memcpy/memcpy3dn codec/a52old/imdct/imdct3dn codec/a52old/downmix/downmix3dn"
5639 SSE_MODULES="codec/a52old/imdct/imdctsse codec/a52old/downmix/downmixsse"
5640 ALTIVEC_MODULES="codec/mpeg_video/idct/idctaltivec codec/mpeg_video/motion/motionaltivec misc/memcpy/memcpyaltivec"
5642 if test x$SYS != xbeos
5644 PLUGINS="${PLUGINS} ${NETWORK}"
5647 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5648 echo "configure:5649: checking if \$CC groks MMX inline assembly" >&5
5649 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5652 CFLAGS="${save_CFLAGS}"
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5658 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5661 if { (eval echo configure:5662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5663 ac_cv_mmx_inline=yes
5665 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5673 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5674 if test "x${ac_cv_mmx_inline}" != "xno"; then
5675 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5678 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5679 echo "configure:5680: checking if \$CC groks MMX EXT inline assembly" >&5
5680 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5683 CFLAGS="${save_CFLAGS}"
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5689 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5692 if { (eval echo configure:5693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5694 ac_cv_mmxext_inline=yes
5696 echo "configure: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5699 ac_cv_mmxext_inline=no
5704 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5705 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5706 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5709 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5710 echo "configure:5711: checking if \$CC groks 3D Now! inline assembly" >&5
5711 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5714 CFLAGS="${save_CFLAGS}"
5715 cat > conftest.$ac_ext <<EOF
5716 #line 5717 "configure"
5717 #include "confdefs.h"
5720 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5723 if { (eval echo configure:5724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5725 ac_cv_3dnow_inline=yes
5727 echo "configure: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5730 ac_cv_3dnow_inline=no
5735 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5736 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5737 cat >> confdefs.h <<\EOF
5738 #define CAN_COMPILE_3DNOW 1
5741 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5744 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5745 echo "configure:5746: checking if \$CC groks SSE inline assembly" >&5
5746 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5749 CFLAGS="${save_CFLAGS}"
5750 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5755 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5758 if { (eval echo configure:5759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5760 ac_cv_sse_inline=yes
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5770 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5771 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5772 cat >> confdefs.h <<\EOF
5773 #define CAN_COMPILE_SSE 1
5776 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5779 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5780 # we should be able to remove this test with future versions of mingw32
5781 if test "x${SYS}" != "xmingw32"; then
5782 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5783 echo "configure:5784: checking if \$CC groks AltiVec inline assembly" >&5
5784 if eval "test \"`echo '$''{'ac_cv_altivec_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 asm volatile("vperm 0,1,2,3");
5796 if { (eval echo configure:5797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5798 ac_cv_altivec_inline=yes
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5803 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5804 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5809 asm volatile("vperm 0,1,2,3");
5812 if { (eval echo configure:5813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5814 ac_cv_altivec_inline="-Wa,-m7400"
5816 echo "configure: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5819 ac_cv_altivec_inline=no
5827 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5828 if test "x${ac_cv_altivec_inline}" != "xno"; then
5829 cat >> confdefs.h <<\EOF
5830 #define CAN_COMPILE_ALTIVEC 1
5833 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5834 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5835 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5836 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5837 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5839 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5842 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5843 echo "configure:5844: checking if \$CC groks AltiVec C extensions" >&5
5844 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5847 CFLAGS="${save_CFLAGS} -faltivec"
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5854 vec_mtvscr((vector unsigned int)(0));
5857 if { (eval echo configure:5858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5859 ac_cv_c_altivec=-faltivec
5861 echo "configure: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5866 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5872 vec_mtvscr((vector unsigned int)(0));
5875 if { (eval echo configure:5876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5877 ac_cv_c_altivec="-fvec"
5879 echo "configure: failed program was:" >&5
5880 cat conftest.$ac_ext >&5
5888 CFLAGS="${save_CFLAGS}"
5891 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5892 if test "x${ac_cv_c_altivec}" != "xno"; then
5893 cat >> confdefs.h <<\EOF
5894 #define CAN_COMPILE_C_ALTIVEC 1
5897 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5898 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5899 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5900 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5901 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5904 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5905 echo "configure:5906: checking if linker needs -framework vecLib" >&5
5906 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5907 echo $ac_n "(cached) $ac_c" 1>&6
5909 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5910 cat > conftest.$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5918 if { (eval echo configure:5919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5920 ac_cv_ld_altivec=yes
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5928 LDFLAGS="${save_LDFLAGS}"
5932 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5933 if test "x${ac_cv_ld_altivec}" != "xno"; then
5934 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5935 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5936 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5937 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5942 # Check whether --with- or --without- was given.
5943 if test "${with_+set}" = set; then
5948 # Check whether --with- or --without- was given.
5949 if test "${with_+set}" = set; then
5955 # Check whether --with-tuning or --without-tuning was given.
5956 if test "${with_tuning+set}" = set; then
5957 withval="$with_tuning"
5961 if test "x${with_tuning}" != "x"; then
5962 TUNING="${with_tuning}"
5964 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
5966 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
5970 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
5973 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5976 # Check whether --enable-optimizations or --disable-optimizations was given.
5977 if test "${enable_optimizations+set}" = set; then
5978 enableval="$enable_optimizations"
5979 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
5985 # Check whether --enable-altivec or --disable-altivec was given.
5986 if test "${enable_altivec+set}" = set; then
5987 enableval="$enable_altivec"
5988 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
5989 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5991 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
5992 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5997 # Check whether --enable-debug or --disable-debug was given.
5998 if test "${enable_debug+set}" = set; then
5999 enableval="$enable_debug"
6000 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
6005 # Check whether --enable-release or --disable-release was given.
6006 if test "${enable_release+set}" = set; then
6007 enableval="$enable_release"
6008 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
6010 VERSION="${VERSION}_`date +%Y-%m-%d`"
6015 # Check whether --with- or --without- was given.
6016 if test "${with_+set}" = set; then
6022 # Check whether --enable-dvd or --disable-dvd was given.
6023 if test "${enable_dvd+set}" = set; then
6024 enableval="$enable_dvd"
6028 if test "x${enable_dvd}" != "xno"
6030 # Check whether --with-dvdcss or --without-dvdcss was given.
6031 if test "${with_dvdcss+set}" = set; then
6032 withval="$with_dvdcss"
6036 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
6037 if test "${with_dvdcss_tree+set}" = set; then
6038 withval="$with_dvdcss_tree"
6042 case "x${with_dvdcss}" in
6044 if test "x${with_dvdcss_tree}" = x
6046 for ac_hdr in dvdcss/dvdcss.h
6048 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6050 echo "configure:6051: checking for $ac_hdr" >&5
6051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6052 echo $ac_n "(cached) $ac_c" 1>&6
6054 cat > conftest.$ac_ext <<EOF
6055 #line 6056 "configure"
6056 #include "confdefs.h"
6059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6060 { (eval echo configure:6061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6062 if test -z "$ac_err"; then
6064 eval "ac_cv_header_$ac_safe=yes"
6067 echo "configure: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6070 eval "ac_cv_header_$ac_safe=no"
6074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6075 echo "$ac_t""yes" 1>&6
6076 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6077 cat >> confdefs.h <<EOF
6078 #define $ac_tr_hdr 1
6080 PLUGINS="${PLUGINS} access/dvd/dvd"
6081 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
6083 echo "$ac_t""no" 1>&6
6084 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
6085 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
6090 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
6091 echo "configure:6092: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
6092 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6093 if test "x${real_dvdcss_tree}" = "x"
6095 echo "$ac_t""no" 1>&6
6096 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6098 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6100 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6101 BUILTINS="${BUILTINS} access/dvd/dvd"
6102 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6103 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6105 echo "$ac_t""no" 1>&6
6106 { 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; }
6111 PLUGINS="${PLUGINS} access/dvd/dvd"
6112 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6113 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6116 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6117 echo "configure:6118: checking for dvdcss headers in ${with_dvdcss}" >&5
6118 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6120 echo "$ac_t""yes" 1>&6
6121 PLUGINS="${PLUGINS} access/dvd/dvd"
6122 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6123 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6125 echo "$ac_t""no" 1>&6
6126 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6132 # Check whether --enable-dvdread or --disable-dvdread was given.
6133 if test "${enable_dvdread+set}" = set; then
6134 enableval="$enable_dvdread"
6138 if test "x${enable_dvdread}" != "xno"
6140 # Check whether --with-dvdread or --without-dvdread was given.
6141 if test "${with_dvdread+set}" = set; then
6142 withval="$with_dvdread"
6146 if test "x${with_dvdread}" = "x"
6151 test_LDFLAGS="-L${with_dvdread}/lib"
6152 test_CFLAGS="-I${with_dvdread}/include"
6154 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6155 for ac_hdr in dvdread/dvd_reader.h
6157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6158 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6159 echo "configure:6160: checking for $ac_hdr" >&5
6160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6169 { (eval echo configure:6170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6171 if test -z "$ac_err"; then
6173 eval "ac_cv_header_$ac_safe=yes"
6176 echo "configure: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6179 eval "ac_cv_header_$ac_safe=no"
6183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6184 echo "$ac_t""yes" 1>&6
6185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6186 cat >> confdefs.h <<EOF
6187 #define $ac_tr_hdr 1
6190 cat > conftest.$ac_ext <<EOF
6191 #line 6192 "configure"
6192 #include "confdefs.h"
6193 #include <dvdread/dvd_reader.h>
6195 int foo() { return DVD_VIDEO_LB_LEN; }
6198 if { (eval echo configure:6199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6201 PLUGINS="${PLUGINS} access/dvdread/dvdread"
6202 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6203 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6206 echo "configure: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6210 if test "x${enable_dvdread}" != "x"
6212 { 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; }
6219 echo "$ac_t""no" 1>&6
6220 if test "x${enable_dvdread}" != "x"
6222 if test "x${with_dvdread}" != "x"
6224 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6226 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6233 CPPFLAGS="$save_CPPFLAGS"
6236 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6237 if test "${enable_dvdplay+set}" = set; then
6238 enableval="$enable_dvdplay"
6242 if test "x$enable_dvdplay" != "xno"
6244 # Check whether --with-dvdplay or --without-dvdplay was given.
6245 if test "${with_dvdplay+set}" = set; then
6246 withval="$with_dvdplay"
6250 if test "x$with_dvdplay" = x
6255 test_LDFLAGS="-L${with_dvdplay}/lib"
6256 test_CFLAGS="-I${with_dvdplay}/include"
6258 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6259 for ac_hdr in dvdplay/dvdplay.h
6261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6263 echo "configure:6264: checking for $ac_hdr" >&5
6264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6267 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6273 { (eval echo configure:6274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6275 if test -z "$ac_err"; then
6277 eval "ac_cv_header_$ac_safe=yes"
6280 echo "configure: failed program was:" >&5
6281 cat conftest.$ac_ext >&5
6283 eval "ac_cv_header_$ac_safe=no"
6287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6288 echo "$ac_t""yes" 1>&6
6289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6290 cat >> confdefs.h <<EOF
6291 #define $ac_tr_hdr 1
6294 PLUGINS="${PLUGINS} access/dvdplay/dvdplay"
6295 dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6296 dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6299 echo "$ac_t""no" 1>&6
6300 if test "x$enable_dvdplay" != x
6302 if test "x$with_dvdplay" != x
6304 { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6306 { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6313 CPPFLAGS="${save_CPPFLAGS}"
6317 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6318 if test "${enable_dvbpsi+set}" = set; then
6319 enableval="$enable_dvbpsi"
6323 if test "x${enable_dvbpsi}" != "xno"
6325 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6326 if test "${with_dvbpsi+set}" = set; then
6327 withval="$with_dvbpsi"
6331 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6332 if test "${with_dvbpsi+set}" = set; then
6333 withval="$with_dvbpsi"
6337 case "x${with_dvbpsi}" in
6339 if test "x${with_dvbpsi_tree}" = "x"
6341 for ac_hdr in dvbpsi/dr.h
6343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6345 echo "configure:6346: checking for $ac_hdr" >&5
6346 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6347 echo $ac_n "(cached) $ac_c" 1>&6
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6355 { (eval echo configure:6356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6357 if test -z "$ac_err"; then
6359 eval "ac_cv_header_$ac_safe=yes"
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6365 eval "ac_cv_header_$ac_safe=no"
6369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6370 echo "$ac_t""yes" 1>&6
6371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6372 cat >> confdefs.h <<EOF
6373 #define $ac_tr_hdr 1
6375 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6376 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} -ldvbpsi"
6378 echo "$ac_t""no" 1>&6
6383 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6384 echo "configure:6385: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6385 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6386 if test "x${real_dvbpsi_tree}" = "x"
6388 echo "$ac_t""no" 1>&6
6389 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6391 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6393 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6394 BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi"
6395 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6396 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6398 echo "$ac_t""no" 1>&6
6399 { 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; }
6406 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6407 echo "configure:6408: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6408 if test "x${with_dvbpsi}" = "x"
6413 test_LDFLAGS="-L${with_dvbpsi}/lib"
6414 test_CFLAGS="-I${with_dvbpsi}/include"
6416 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6417 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6418 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6419 echo "configure:6420: checking for dvbpsi/dr.h" >&5
6420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 #include <dvbpsi/dr.h>
6428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6429 { (eval echo configure:6430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6431 if test -z "$ac_err"; then
6433 eval "ac_cv_header_$ac_safe=yes"
6436 echo "configure: failed program was:" >&5
6437 cat conftest.$ac_ext >&5
6439 eval "ac_cv_header_$ac_safe=no"
6443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6444 echo "$ac_t""yes" 1>&6
6446 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6447 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6448 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6451 echo "$ac_t""no" 1>&6
6453 if test "x${enable_dvbpsi}" != "x"
6455 { 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; }
6460 CPPFLAGS="${save_CPPFLAGS}"
6465 # Check whether --enable-v4l or --disable-v4l was given.
6466 if test "${enable_v4l+set}" = set; then
6467 enableval="$enable_v4l"
6471 if test "x${enable_v4l}" = "xyes"
6473 for ac_hdr in libv4l/v4l.h
6475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6477 echo "configure:6478: checking for $ac_hdr" >&5
6478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6481 cat > conftest.$ac_ext <<EOF
6482 #line 6483 "configure"
6483 #include "confdefs.h"
6486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6487 { (eval echo configure:6488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6489 if test -z "$ac_err"; then
6491 eval "ac_cv_header_$ac_safe=yes"
6494 echo "configure: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6497 eval "ac_cv_header_$ac_safe=no"
6501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6502 echo "$ac_t""yes" 1>&6
6503 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6504 cat >> confdefs.h <<EOF
6505 #define $ac_tr_hdr 1
6508 PLUGINS="${PLUGINS} access/v4l/v4l"
6511 echo "$ac_t""no" 1>&6
6517 # Check whether --enable-vcd or --disable-vcd was given.
6518 if test "${enable_vcd+set}" = set; then
6519 enableval="$enable_vcd"
6524 if test "x${enable_vcd}" != "xno"
6526 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6529 #include <linux/cdrom.h>
6531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532 egrep "cdrom_msf0" >/dev/null 2>&1; then
6535 PLUGINS="${PLUGINS} access/vcd/vcd"
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6544 #include <sys/cdio.h>
6546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6547 egrep "ioc_toc_header " >/dev/null 2>&1; then
6550 PLUGINS="${PLUGINS} access/vcd/vcd"
6551 cat >> confdefs.h <<\EOF
6552 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6560 if test "x${SYS}" = "xbsdi"
6562 PLUGINS="${PLUGINS} access/vcd/vcd"
6565 if test "x${SYS}" = "xdarwin"
6567 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6568 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6572 # Check whether --enable-satellite or --disable-satellite was given.
6573 if test "${enable_satellite+set}" = set; then
6574 enableval="$enable_satellite"
6575 if test "x${enable_satellite}" = "xyes"
6577 PLUGINS="${PLUGINS} access/satellite/satellite"
6582 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6585 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6586 echo "configure:6587: checking for inet_pton" >&5
6587 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6590 cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 /* System header to define __stub macros and hopefully few prototypes,
6594 which can conflict with char inet_pton(); below. */
6596 /* Override any gcc2 internal prototype to avoid an error. */
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6603 /* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6616 eval "ac_cv_func_inet_pton=yes"
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6621 eval "ac_cv_func_inet_pton=no"
6626 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6630 echo "$ac_t""no" 1>&6
6632 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6633 echo "configure:6634: checking for inet_pton in -lresolv" >&5
6634 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6636 echo $ac_n "(cached) $ac_c" 1>&6
6638 ac_save_LIBS="$LIBS"
6639 LIBS="-lresolv $LIBS"
6640 cat > conftest.$ac_ext <<EOF
6641 #line 6642 "configure"
6642 #include "confdefs.h"
6643 /* Override any gcc2 internal prototype to avoid an error. */
6644 /* We use char because int might match the return type of a gcc2
6645 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
6656 echo "configure: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6659 eval "ac_cv_lib_$ac_lib_var=no"
6662 LIBS="$ac_save_LIBS"
6665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6666 echo "$ac_t""yes" 1>&6
6668 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6670 echo "$ac_t""no" 1>&6
6676 echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6677 echo "configure:6678: checking for sockaddr_in6 in netinet/in.h" >&5
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 #include <netinet/in.h>
6683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6684 egrep "sockaddr_in6" >/dev/null 2>&1; then
6686 echo "$ac_t""yes" 1>&6
6689 echo "$ac_t""no" 1>&6; have_ipv6=0
6693 if test x$have_ipv6 = x1; then
6694 PLUGINS="${PLUGINS} misc/network/ipv6"
6697 if test "x${SYS}" = "xmingw32"
6699 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6700 echo "configure:6701: checking for getaddrinfo in ws2tcpip.h" >&5
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6704 #include <ws2tcpip.h>
6706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6707 egrep "addrinfo" >/dev/null 2>&1; then
6709 echo "$ac_t""yes" 1>&6
6710 PLUGINS="${PLUGINS} misc/network/ipv6"
6713 echo "$ac_t""no" 1>&6
6719 # Check whether --enable-avi or --disable-avi was given.
6720 if test "${enable_avi+set}" = set; then
6721 enableval="$enable_avi"
6725 if test "x${enable_avi}" != "xno"
6727 PLUGINS="${PLUGINS} demux/avi/avi"
6730 # Check whether --enable-aac or --disable-aac was given.
6731 if test "${enable_aac+set}" = set; then
6732 enableval="$enable_aac"
6736 if test "x${enable_aac}" != "xno"
6738 PLUGINS="${PLUGINS} demux/aac/aac"
6742 # Check whether --with- or --without- was given.
6743 if test "${with_+set}" = set; then
6749 # Check whether --enable-mad or --disable-mad was given.
6750 if test "${enable_mad+set}" = set; then
6751 enableval="$enable_mad"
6755 if test "x${enable_mad}" = "xyes"
6757 # Check whether --with-mad or --without-mad was given.
6758 if test "${with_mad+set}" = set; then
6763 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6765 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6766 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6769 # Check whether --with-mad-tree or --without-mad-tree was given.
6770 if test "${with_mad_tree+set}" = set; then
6771 withval="$with_mad_tree"
6775 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6777 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6778 if test "x${real_mad_tree}" = "x"
6780 echo "$ac_t""no" 1>&6
6781 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6783 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6784 echo "configure:6785: checking for mad.h in ${real_mad_tree}/libmad" >&5
6785 if test -f ${real_mad_tree}/libmad/mad.h
6787 echo "$ac_t""yes" 1>&6
6788 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6789 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6790 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6791 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6792 echo "configure:6793: checking for mad_bit_init in -lmad" >&5
6793 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6795 echo $ac_n "(cached) $ac_c" 1>&6
6797 ac_save_LIBS="$LIBS"
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6802 /* Override any gcc2 internal prototype to avoid an error. */
6803 /* We use char because int might match the return type of a gcc2
6804 builtin and then its argument prototype would still apply. */
6805 char mad_bit_init();
6811 if { (eval echo configure:6812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6813 eval "ac_cv_lib_$ac_lib_var=yes"
6815 echo "configure: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6818 eval "ac_cv_lib_$ac_lib_var=no"
6821 LIBS="$ac_save_LIBS"
6824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6825 echo "$ac_t""yes" 1>&6
6827 BUILTINS="${BUILTINS} codec/mad/mad"
6828 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6831 echo "$ac_t""no" 1>&6
6832 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6836 LDFLAGS="${save_LDFLAGS}"
6838 echo "$ac_t""no" 1>&6
6839 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6842 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6843 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6848 echo "configure:6849: checking for $ac_hdr" >&5
6849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6852 cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6858 { (eval echo configure:6859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6860 if test -z "$ac_err"; then
6862 eval "ac_cv_header_$ac_safe=yes"
6865 echo "configure: failed program was:" >&5
6866 cat conftest.$ac_ext >&5
6868 eval "ac_cv_header_$ac_safe=no"
6872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6873 echo "$ac_t""yes" 1>&6
6874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6875 cat >> confdefs.h <<EOF
6876 #define $ac_tr_hdr 1
6880 echo "$ac_t""no" 1>&6
6881 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6885 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6886 echo "configure:6887: checking for mad_bit_init in -lmad" >&5
6887 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6891 ac_save_LIBS="$LIBS"
6893 cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6896 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6899 char mad_bit_init();
6905 if { (eval echo configure:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6907 eval "ac_cv_lib_$ac_lib_var=yes"
6909 echo "configure: failed program was:" >&5
6910 cat conftest.$ac_ext >&5
6912 eval "ac_cv_lib_$ac_lib_var=no"
6915 LIBS="$ac_save_LIBS"
6918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6919 echo "$ac_t""yes" 1>&6
6921 PLUGINS="${PLUGINS} codec/mad/mad"
6922 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6924 echo "$ac_t""no" 1>&6
6925 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6928 CFLAGS="${save_CFLAGS}"
6929 LDFLAGS="${save_LDFLAGS}"
6933 for ac_hdr in id3tag.h
6935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6937 echo "configure:6938: checking for $ac_hdr" >&5
6938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6939 echo $ac_n "(cached) $ac_c" 1>&6
6941 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6947 { (eval echo configure:6948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6949 if test -z "$ac_err"; then
6951 eval "ac_cv_header_$ac_safe=yes"
6954 echo "configure: failed program was:" >&5
6955 cat conftest.$ac_ext >&5
6957 eval "ac_cv_header_$ac_safe=no"
6961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6962 echo "$ac_t""yes" 1>&6
6963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6964 cat >> confdefs.h <<EOF
6965 #define $ac_tr_hdr 1
6967 audio_LDFLAGS="${audio_LDFLAGS} -lz -lid3tag"
6969 echo "$ac_t""no" 1>&6
6974 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6975 if test "${enable_ffmpeg+set}" = set; then
6976 enableval="$enable_ffmpeg"
6980 if test "x${enable_ffmpeg}" = "xyes"
6982 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6983 if test "${with_ffmpeg+set}" = set; then
6984 withval="$with_ffmpeg"
6988 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6990 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6991 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6994 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_c"
6995 if test "x${ac_cv_mmx_inline}" != "xno"; then
6996 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmx"
6999 if test "x${ac_cv_mmxext_inline}" != "xno"; then
7000 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmxext"
7004 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
7005 if test "${with_ffmpeg_tree+set}" = set; then
7006 withval="$with_ffmpeg_tree"
7010 if test "x${with_ffmpeg_tree}" != "x"
7012 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
7013 echo "configure:7014: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
7014 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
7015 if test "x${real_ffmpeg_tree}" = x
7017 echo "$ac_t""no" 1>&6
7018 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
7020 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
7022 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
7023 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7024 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
7025 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
7027 echo "$ac_t""no" 1>&6
7028 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
7031 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
7032 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS}"
7033 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
7034 echo "configure:7035: checking for avcodec_init in -lavcodec" >&5
7035 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
7036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 ac_save_LIBS="$LIBS"
7040 LIBS="-lavcodec $LIBS"
7041 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7044 /* Override any gcc2 internal prototype to avoid an error. */
7045 /* We use char because int might match the return type of a gcc2
7046 builtin and then its argument prototype would still apply. */
7047 char avcodec_init();
7053 if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7055 eval "ac_cv_lib_$ac_lib_var=yes"
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7060 eval "ac_cv_lib_$ac_lib_var=no"
7063 LIBS="$ac_save_LIBS"
7066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7067 echo "$ac_t""yes" 1>&6
7069 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7070 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
7072 echo "$ac_t""no" 1>&6
7073 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
7076 LDFLAGS="${save_LDFLAGS}"
7077 CFLAGS="${save_CFLAGS}"
7081 # Check whether --enable-faad or --disable-faad was given.
7082 if test "${enable_faad+set}" = set; then
7083 enableval="$enable_faad"
7087 if test "x${enable_faad}" = "xyes"
7089 # Check whether --with-faad or --without-faad was given.
7090 if test "${with_faad+set}" = set; then
7091 withval="$with_faad"
7095 if test "x${with_faad}" != "xno" -a "x${with_faad}" != "x"
7097 faad_CFLAGS="${faad_CFLAGS} -I${with_faad}/include"
7098 faad_LDFLAGS="${faad_LDFLAGS} -L${with_faad}/lib"
7100 faad_LDFLAGS="${faad_LDFLAGS}"
7102 # Check whether --with-faad-tree or --without-faad-tree was given.
7103 if test "${with_faad_tree+set}" = set; then
7104 withval="$with_faad_tree"
7108 if test "x${with_faad_tree}" != "x"
7110 echo $ac_n "checking for libfaad.a in ${with_faad_tree}""... $ac_c" 1>&6
7111 echo "configure:7112: checking for libfaad.a in ${with_faad_tree}" >&5
7112 real_faad_tree="`cd ${with_faad_tree} 2>/dev/null && pwd`"
7113 if test "x${real_faad_tree}" = x
7115 echo "$ac_t""no" 1>&6
7116 { echo "configure: error: cannot cd to ${with_faad_tree}" 1>&2; exit 1; }
7118 if test -f "${real_faad_tree}/libfaad/.libs/libfaad.a"
7120 echo "$ac_t""${real_faad_tree}/libfaad/.libs/libfaad.a" 1>&6
7121 BUILTINS="${BUILTINS} codec/faad/faad"
7122 faad_LDFLAGS="${faad_LDFLAGS} ${real_faad_tree}/libfaad/.libs/libfaad.a"
7123 faad_CFLAGS="${faad_CFLAGS} -I${real_faad_tree}/include"
7125 echo "$ac_t""no" 1>&6
7126 { echo "configure: error: cannot find ${real_faad_tree}/libfaad/.libs/libfaad.a, make sure you compiled libfaad in ${with_faad_tree}" 1>&2; exit 1; }
7129 CFLAGS="${save_CFLAGS} ${faad_CFLAGS}"
7130 LDFLAGS="${save_LDFLAGS} ${faad_LDFLAGS}"
7131 for ac_hdr in faad.h
7133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7135 echo "configure:7136: checking for $ac_hdr" >&5
7136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7145 { (eval echo configure:7146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7147 if test -z "$ac_err"; then
7149 eval "ac_cv_header_$ac_safe=yes"
7152 echo "configure: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7155 eval "ac_cv_header_$ac_safe=no"
7159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7160 echo "$ac_t""yes" 1>&6
7161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7162 cat >> confdefs.h <<EOF
7163 #define $ac_tr_hdr 1
7167 echo "$ac_t""no" 1>&6
7168 { echo "configure: error: Cannot find development headers for libfaad..." 1>&2; exit 1; }
7172 echo $ac_n "checking for faacDecOpen in -lfaad""... $ac_c" 1>&6
7173 echo "configure:7174: checking for faacDecOpen in -lfaad" >&5
7174 ac_lib_var=`echo faad'_'faacDecOpen | sed 'y%./+-%__p_%'`
7175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7178 ac_save_LIBS="$LIBS"
7180 cat > conftest.$ac_ext <<EOF
7181 #line 7182 "configure"
7182 #include "confdefs.h"
7183 /* Override any gcc2 internal prototype to avoid an error. */
7184 /* We use char because int might match the return type of a gcc2
7185 builtin and then its argument prototype would still apply. */
7192 if { (eval echo configure:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7194 eval "ac_cv_lib_$ac_lib_var=yes"
7196 echo "configure: failed program was:" >&5
7197 cat conftest.$ac_ext >&5
7199 eval "ac_cv_lib_$ac_lib_var=no"
7202 LIBS="$ac_save_LIBS"
7205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7206 echo "$ac_t""yes" 1>&6
7208 PLUGINS="${PLUGINS} codec/faad/faad"
7209 faad_LDFLAGS="${faad_LDFLAGS} -lfaad"
7211 echo "$ac_t""no" 1>&6
7212 { echo "configure: error: Cannot find libfaad library..." 1>&2; exit 1; }
7215 LDFLAGS="${save_LDFLAGS}"
7216 CFLAGS="${save_CFLAGS}"
7222 # Check whether --enable-mp4 or --disable-mp4 was given.
7223 if test "${enable_mp4+set}" = set; then
7224 enableval="$enable_mp4"
7228 if test "x${enable_mp4}" != "xno"
7231 PLUGINS="${PLUGINS} demux/mp4/mp4"
7232 for ac_hdr in zlib.h
7234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7236 echo "configure:7237: checking for $ac_hdr" >&5
7237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7238 echo $ac_n "(cached) $ac_c" 1>&6
7240 cat > conftest.$ac_ext <<EOF
7241 #line 7242 "configure"
7242 #include "confdefs.h"
7245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7246 { (eval echo configure:7247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7248 if test -z "$ac_err"; then
7250 eval "ac_cv_header_$ac_safe=yes"
7253 echo "configure: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7256 eval "ac_cv_header_$ac_safe=no"
7260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7261 echo "$ac_t""yes" 1>&6
7262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7263 cat >> confdefs.h <<EOF
7264 #define $ac_tr_hdr 1
7266 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
7268 echo "$ac_t""no" 1>&6
7274 # Check whether --enable-a52 or --disable-a52 was given.
7275 if test "${enable_a52+set}" = set; then
7276 enableval="$enable_a52"
7280 if test "x${enable_a52}" != "xno"
7282 # Check whether --with-a52 or --without-a52 was given.
7283 if test "${with_a52+set}" = set; then
7288 # Check whether --with-a52-tree or --without-a52-tree was given.
7289 if test "${with_a52_tree+set}" = set; then
7290 withval="$with_a52_tree"
7294 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
7296 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
7297 if test "x${real_a52_tree}" = "x"
7299 echo "$ac_t""no" 1>&6
7300 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
7302 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
7303 echo "configure:7304: checking for a52.h in ${real_a52_tree}/include" >&5
7304 if test -f ${real_a52_tree}/include/a52.h
7306 echo "$ac_t""yes" 1>&6
7307 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
7308 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
7309 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
7310 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7311 echo "configure:7312: checking for a52_free in -la52" >&5
7312 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7314 echo $ac_n "(cached) $ac_c" 1>&6
7316 ac_save_LIBS="$LIBS"
7317 LIBS="-la52 -lm $LIBS"
7318 cat > conftest.$ac_ext <<EOF
7319 #line 7320 "configure"
7320 #include "confdefs.h"
7321 /* Override any gcc2 internal prototype to avoid an error. */
7322 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7330 if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7332 eval "ac_cv_lib_$ac_lib_var=yes"
7334 echo "configure: failed program was:" >&5
7335 cat conftest.$ac_ext >&5
7337 eval "ac_cv_lib_$ac_lib_var=no"
7340 LIBS="$ac_save_LIBS"
7343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7344 echo "$ac_t""yes" 1>&6
7346 BUILTINS="${BUILTINS} codec/a52"
7347 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7348 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7351 echo "$ac_t""no" 1>&6
7353 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7355 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7357 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7362 LDFLAGS="${save_LDFLAGS}"
7364 echo "$ac_t""no" 1>&6
7365 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7368 if test "x${with_a52}" = "x"
7373 test_LDFLAGS="-L${with_a52}/lib"
7374 test_CFLAGS="-I${with_a52}/include"
7376 save_CPPFLAGS="${CPPFLAGS}"
7377 save_LDFLAGS="${LDFLAGS}"
7378 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
7379 LDFLAGS="${save_LDFLAGS} ${test_LDFLAGS}"
7380 for ac_hdr in a52dec/a52.h
7382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7384 echo "configure:7385: checking for $ac_hdr" >&5
7385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7386 echo $ac_n "(cached) $ac_c" 1>&6
7388 cat > conftest.$ac_ext <<EOF
7389 #line 7390 "configure"
7390 #include "confdefs.h"
7393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7394 { (eval echo configure:7395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7396 if test -z "$ac_err"; then
7398 eval "ac_cv_header_$ac_safe=yes"
7401 echo "configure: failed program was:" >&5
7402 cat conftest.$ac_ext >&5
7404 eval "ac_cv_header_$ac_safe=no"
7408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7409 echo "$ac_t""yes" 1>&6
7410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7411 cat >> confdefs.h <<EOF
7412 #define $ac_tr_hdr 1
7415 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7416 echo "configure:7417: checking for a52_free in -la52" >&5
7417 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7419 echo $ac_n "(cached) $ac_c" 1>&6
7421 ac_save_LIBS="$LIBS"
7422 LIBS="-la52 -lm $LIBS"
7423 cat > conftest.$ac_ext <<EOF
7424 #line 7425 "configure"
7425 #include "confdefs.h"
7426 /* Override any gcc2 internal prototype to avoid an error. */
7427 /* We use char because int might match the return type of a gcc2
7428 builtin and then its argument prototype would still apply. */
7435 if { (eval echo configure:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7437 eval "ac_cv_lib_$ac_lib_var=yes"
7439 echo "configure: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7442 eval "ac_cv_lib_$ac_lib_var=no"
7445 LIBS="$ac_save_LIBS"
7448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7449 echo "$ac_t""yes" 1>&6
7451 BUILTINS="${BUILTINS} codec/a52"
7452 a52_LDFLAGS="${a52_LDFLAGS} ${test_LDFLAGS} -la52 -lm"
7453 a52_CFLAGS="${a52_CFLAGS} ${test_CFLAGS}"
7456 echo "$ac_t""no" 1>&6
7458 if test "x${enable_dvbpsi}" != "x"
7460 { echo "configure: error: Could not find a52 on your system: you may get it from http://liba52.sf.net" 1>&2; exit 1; }
7467 echo "$ac_t""no" 1>&6
7471 CPPFLAGS="${save_CPPFLAGS}"
7472 LDFLAGS="${save_LDFLAGS}"
7476 # Check whether --enable-cinepak or --disable-cinepak was given.
7477 if test "${enable_cinepak+set}" = set; then
7478 enableval="$enable_cinepak"
7482 if test "x${enable_cinepak}" != "xno"
7484 PLUGINS="${PLUGINS} codec/cinepak/cinepak"
7487 # Check whether --enable-vorbis or --disable-vorbis was given.
7488 if test "${enable_vorbis+set}" = set; then
7489 enableval="$enable_vorbis"
7493 if test "x${enable_vorbis}" != "xno"
7495 for ac_hdr in ogg/ogg.h
7497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7499 echo "configure:7500: checking for $ac_hdr" >&5
7500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7503 cat > conftest.$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7509 { (eval echo configure:7510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7511 if test -z "$ac_err"; then
7513 eval "ac_cv_header_$ac_safe=yes"
7516 echo "configure: failed program was:" >&5
7517 cat conftest.$ac_ext >&5
7519 eval "ac_cv_header_$ac_safe=no"
7523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7524 echo "$ac_t""yes" 1>&6
7525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7526 cat >> confdefs.h <<EOF
7527 #define $ac_tr_hdr 1
7530 #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis"
7531 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7534 echo "$ac_t""no" 1>&6
7540 # Check whether --enable-dv or --disable-dv was given.
7541 if test "${enable_dv+set}" = set; then
7542 enableval="$enable_dv"
7546 if test "x${enable_dv}" = "xyes"
7548 for ac_hdr in libdv/dv.h
7550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7552 echo "configure:7553: checking for $ac_hdr" >&5
7553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7554 echo $ac_n "(cached) $ac_c" 1>&6
7556 cat > conftest.$ac_ext <<EOF
7557 #line 7558 "configure"
7558 #include "confdefs.h"
7561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7562 { (eval echo configure:7563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7564 if test -z "$ac_err"; then
7566 eval "ac_cv_header_$ac_safe=yes"
7569 echo "configure: failed program was:" >&5
7570 cat conftest.$ac_ext >&5
7572 eval "ac_cv_header_$ac_safe=no"
7576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7577 echo "$ac_t""yes" 1>&6
7578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7579 cat >> confdefs.h <<EOF
7580 #define $ac_tr_hdr 1
7583 BUILTINS="${BUILTINS} codec/dv/dv"
7584 dv_LDFLAGS="${dv_LDFLAGS} -ldv"
7587 echo "$ac_t""no" 1>&6
7594 # Check whether --with- or --without- was given.
7595 if test "${with_+set}" = set; then
7601 # Check whether --enable-x11 or --disable-x11 was given.
7602 if test "${enable_x11+set}" = set; then
7603 enableval="$enable_x11"
7607 if test "x${enable_x11}" != "xno" &&
7608 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7609 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7610 for ac_hdr in X11/Xlib.h
7612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7614 echo "configure:7615: checking for $ac_hdr" >&5
7615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7616 echo $ac_n "(cached) $ac_c" 1>&6
7618 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7624 { (eval echo configure:7625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7626 if test -z "$ac_err"; then
7628 eval "ac_cv_header_$ac_safe=yes"
7631 echo "configure: failed program was:" >&5
7632 cat conftest.$ac_ext >&5
7634 eval "ac_cv_header_$ac_safe=no"
7638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7639 echo "$ac_t""yes" 1>&6
7640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7641 cat >> confdefs.h <<EOF
7642 #define $ac_tr_hdr 1
7645 PLUGINS="${PLUGINS} video_output/x11/x11"
7646 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7647 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7650 echo "$ac_t""no" 1>&6
7654 CPPFLAGS="${save_CPPFLAGS}"
7657 # Check whether --enable-xvideo or --disable-xvideo was given.
7658 if test "${enable_xvideo+set}" = set; then
7659 enableval="$enable_xvideo"
7663 if test "x${enable_xvideo}" != "xno" &&
7664 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7665 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7666 for ac_hdr in X11/extensions/Xv.h
7668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7670 echo "configure:7671: checking for $ac_hdr" >&5
7671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7672 echo $ac_n "(cached) $ac_c" 1>&6
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7680 { (eval echo configure:7681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7682 if test -z "$ac_err"; then
7684 eval "ac_cv_header_$ac_safe=yes"
7687 echo "configure: failed program was:" >&5
7688 cat conftest.$ac_ext >&5
7690 eval "ac_cv_header_$ac_safe=no"
7694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7695 echo "$ac_t""yes" 1>&6
7696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7697 cat >> confdefs.h <<EOF
7698 #define $ac_tr_hdr 1
7701 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7702 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7703 echo "configure:7704: checking for XvPutImage in -lXv_pic" >&5
7704 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7706 echo $ac_n "(cached) $ac_c" 1>&6
7708 ac_save_LIBS="$LIBS"
7709 LIBS="-lXv_pic $LIBS"
7710 cat > conftest.$ac_ext <<EOF
7711 #line 7712 "configure"
7712 #include "confdefs.h"
7713 /* Override any gcc2 internal prototype to avoid an error. */
7714 /* We use char because int might match the return type of a gcc2
7715 builtin and then its argument prototype would still apply. */
7722 if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7724 eval "ac_cv_lib_$ac_lib_var=yes"
7726 echo "configure: failed program was:" >&5
7727 cat conftest.$ac_ext >&5
7729 eval "ac_cv_lib_$ac_lib_var=no"
7732 LIBS="$ac_save_LIBS"
7735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7736 echo "$ac_t""yes" 1>&6
7737 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7738 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7739 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7740 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7742 echo "$ac_t""no" 1>&6
7743 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7744 echo "configure:7745: checking for XvPutImage in -lXv" >&5
7745 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7747 echo $ac_n "(cached) $ac_c" 1>&6
7749 ac_save_LIBS="$LIBS"
7751 cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7754 /* Override any gcc2 internal prototype to avoid an error. */
7755 /* We use char because int might match the return type of a gcc2
7756 builtin and then its argument prototype would still apply. */
7763 if { (eval echo configure:7764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7765 eval "ac_cv_lib_$ac_lib_var=yes"
7767 echo "configure: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7770 eval "ac_cv_lib_$ac_lib_var=no"
7773 LIBS="$ac_save_LIBS"
7776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7777 echo "$ac_t""yes" 1>&6
7778 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7779 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7780 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7781 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7783 echo "$ac_t""no" 1>&6
7784 # Otherwise... well, do nothing.
7792 CFLAGS="${save_CFLAGS}"
7794 CPPFLAGS="${save_CPPFLAGS}"
7796 echo "$ac_t""no" 1>&6
7802 # Check whether --enable-sdl or --disable-sdl was given.
7803 if test "${enable_sdl+set}" = set; then
7804 enableval="$enable_sdl"
7808 if test "x${enable_sdl}" != "xno"
7811 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7812 if test "${with_sdl_config_path+set}" = set; then
7813 withval="$with_sdl_config_path"
7814 if test "x${with_sdl_config_path}" != "xno"
7816 SDL_PATH="${with_sdl_config_path}:${PATH}"
7820 # Extract the first word of "sdl12-config", so it can be a program name with args.
7821 set dummy sdl12-config; ac_word=$2
7822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7823 echo "configure:7824: checking for $ac_word" >&5
7824 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7825 echo $ac_n "(cached) $ac_c" 1>&6
7827 case "$SDL12_CONFIG" in
7829 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7832 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7836 ac_dummy="${SDL_PATH}"
7837 for ac_dir in $ac_dummy; do
7838 test -z "$ac_dir" && ac_dir=.
7839 if test -f $ac_dir/$ac_word; then
7840 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7845 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7849 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7850 if test -n "$SDL12_CONFIG"; then
7851 echo "$ac_t""$SDL12_CONFIG" 1>&6
7853 echo "$ac_t""no" 1>&6
7856 SDL_CONFIG="${SDL12_CONFIG}"
7857 SDL_HEADER="SDL12/SDL.h"
7858 if test "x${SDL_CONFIG}" = "xno"
7860 # Extract the first word of "sdl11-config", so it can be a program name with args.
7861 set dummy sdl11-config; ac_word=$2
7862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7863 echo "configure:7864: checking for $ac_word" >&5
7864 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6
7867 case "$SDL11_CONFIG" in
7869 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7872 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7876 ac_dummy="${SDL_PATH}"
7877 for ac_dir in $ac_dummy; do
7878 test -z "$ac_dir" && ac_dir=.
7879 if test -f $ac_dir/$ac_word; then
7880 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7885 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7889 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7890 if test -n "$SDL11_CONFIG"; then
7891 echo "$ac_t""$SDL11_CONFIG" 1>&6
7893 echo "$ac_t""no" 1>&6
7896 SDL_CONFIG=${SDL11_CONFIG}
7897 SDL_HEADER="SDL11/SDL.h"
7899 if test "x${SDL_CONFIG}" = "xno"
7901 # Extract the first word of "sdl-config", so it can be a program name with args.
7902 set dummy sdl-config; ac_word=$2
7903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7904 echo "configure:7905: checking for $ac_word" >&5
7905 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7908 case "$SDL_CONFIG" in
7910 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7913 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7917 ac_dummy="${SDL_PATH}"
7918 for ac_dir in $ac_dummy; do
7919 test -z "$ac_dir" && ac_dir=.
7920 if test -f $ac_dir/$ac_word; then
7921 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7926 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7930 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7931 if test -n "$SDL_CONFIG"; then
7932 echo "$ac_t""$SDL_CONFIG" 1>&6
7934 echo "$ac_t""no" 1>&6
7937 SDL_HEADER="SDL/SDL.h"
7939 if test "x${SDL_CONFIG}" != "xno"
7941 PLUGINS="${PLUGINS} video_output/sdl audio_output/sdl"
7942 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7943 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7944 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7945 for ac_hdr in ${SDL_HEADER}
7947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7949 echo "configure:7950: checking for $ac_hdr" >&5
7950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7951 echo $ac_n "(cached) $ac_c" 1>&6
7953 cat > conftest.$ac_ext <<EOF
7954 #line 7955 "configure"
7955 #include "confdefs.h"
7958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7959 { (eval echo configure:7960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7961 if test -z "$ac_err"; then
7963 eval "ac_cv_header_$ac_safe=yes"
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7969 eval "ac_cv_header_$ac_safe=no"
7973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7976 cat >> confdefs.h <<EOF
7977 #define $ac_tr_hdr 1
7979 cat >> confdefs.h <<EOF
7980 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7984 echo "$ac_t""no" 1>&6
7985 { echo "configure: error: The development package for SDL is not installed.
7986 Please install it and try again. Alternatively you can also configure with
7987 --disable-sdl." 1>&2; exit 1; }
7992 CPPFLAGS="${save_CPPFLAGS}"
7993 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7995 { echo "configure: error: The development package for SDL is not installed.
7996 Please install it and try again. Alternatively you can also configure with
7997 --disable-sdl." 1>&2; exit 1; }
7999 elif test "x${enable_sdl}" = "xyes"
8001 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
8002 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
8007 # Check whether --enable-directx or --disable-directx was given.
8008 if test "${enable_directx+set}" = set; then
8009 enableval="$enable_directx"
8013 if test "x${enable_directx}" != "xno"
8015 if test "x${SYS}" = "xmingw32"
8017 # Check whether --with-directx or --without-directx was given.
8018 if test "${with_directx+set}" = set; then
8019 withval="$with_directx"
8023 if test "x${with_directx}" = "x"
8025 for ac_hdr in ddraw.h
8027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8029 echo "configure:8030: checking for $ac_hdr" >&5
8030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8033 cat > conftest.$ac_ext <<EOF
8034 #line 8035 "configure"
8035 #include "confdefs.h"
8038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8039 { (eval echo configure:8040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8041 if test -z "$ac_err"; then
8043 eval "ac_cv_header_$ac_safe=yes"
8046 echo "configure: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8049 eval "ac_cv_header_$ac_safe=no"
8053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8054 echo "$ac_t""yes" 1>&6
8055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8056 cat >> confdefs.h <<EOF
8057 #define $ac_tr_hdr 1
8059 PLUGINS="${PLUGINS} video_output/directx/directx"
8060 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8062 echo "$ac_t""no" 1>&6
8067 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
8068 echo "configure:8069: checking for directX headers in ${with_directx}" >&5
8069 if test -f ${with_directx}/ddraw.h
8071 PLUGINS="${PLUGINS} video_output/directx/directx"
8072 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8073 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
8074 echo "$ac_t""yes" 1>&6
8076 echo "$ac_t""no" 1>&6
8077 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
8083 # Check whether --enable-fb or --disable-fb was given.
8084 if test "${enable_fb+set}" = set; then
8085 enableval="$enable_fb"
8089 if test "x${enable_fb}" != "xno"
8091 for ac_hdr in linux/fb.h
8093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8095 echo "configure:8096: checking for $ac_hdr" >&5
8096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8105 { (eval echo configure:8106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8107 if test -z "$ac_err"; then
8109 eval "ac_cv_header_$ac_safe=yes"
8112 echo "configure: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8115 eval "ac_cv_header_$ac_safe=no"
8119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8120 echo "$ac_t""yes" 1>&6
8121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8122 cat >> confdefs.h <<EOF
8123 #define $ac_tr_hdr 1
8126 PLUGINS="${PLUGINS} video_output/fb"
8129 echo "$ac_t""no" 1>&6
8135 # Check whether --enable-mga or --disable-mga was given.
8136 if test "${enable_mga+set}" = set; then
8137 enableval="$enable_mga"
8138 if test "x${enable_mga}" = "xyes"
8140 PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga"
8145 # Check whether --enable-ggi or --disable-ggi was given.
8146 if test "${enable_ggi+set}" = set; then
8147 enableval="$enable_ggi"
8151 if test "x${enable_ggi}" = "xyes"
8153 PLUGINS="${PLUGINS} video_output/ggi"
8154 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
8155 # Check whether --with-ggi or --without-ggi was given.
8156 if test "${with_ggi+set}" = set; then
8158 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
8160 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
8161 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
8167 # Check whether --enable-glide or --disable-glide was given.
8168 if test "${enable_glide+set}" = set; then
8169 enableval="$enable_glide"
8173 if test "x${enable_glide}" = "xyes"
8175 PLUGINS="${PLUGINS} video_output/glide"
8176 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
8177 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
8178 # Check whether --with-glide or --without-glide was given.
8179 if test "${with_glide+set}" = set; then
8180 withval="$with_glide"
8181 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
8183 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
8184 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
8190 # Check whether --enable-aa or --disable-aa was given.
8191 if test "${enable_aa+set}" = set; then
8192 enableval="$enable_aa"
8196 if test "x${enable_aa}" = "xyes"
8198 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
8199 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
8200 echo "configure:8201: checking for aalib.h" >&5
8201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8202 echo $ac_n "(cached) $ac_c" 1>&6
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8210 { (eval echo configure:8211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8212 if test -z "$ac_err"; then
8214 eval "ac_cv_header_$ac_safe=yes"
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8220 eval "ac_cv_header_$ac_safe=no"
8224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8225 echo "$ac_t""yes" 1>&6
8228 echo "$ac_t""no" 1>&6
8232 if test "x${have_aa}" = "xtrue"
8234 PLUGINS="${PLUGINS} video_output/aa"
8235 aa_LDFLAGS="${aa_LDFLAGS} -laa"
8240 # Check whether --with- or --without- was given.
8241 if test "${with_+set}" = set; then
8247 # Check whether --enable-oss or --disable-oss was given.
8248 if test "${enable_oss+set}" = set; then
8249 enableval="$enable_oss"
8254 if test "x${enable_oss}" != "xno" &&
8255 (test "x${SYS}" != "xmingw32" || test "x${enable_oss}" = "xyes")
8257 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
8259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8261 echo "configure:8262: checking for $ac_hdr" >&5
8262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8263 echo $ac_n "(cached) $ac_c" 1>&6
8265 cat > conftest.$ac_ext <<EOF
8266 #line 8267 "configure"
8267 #include "confdefs.h"
8270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8271 { (eval echo configure:8272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8273 if test -z "$ac_err"; then
8275 eval "ac_cv_header_$ac_safe=yes"
8278 echo "configure: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8281 eval "ac_cv_header_$ac_safe=no"
8285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8286 echo "$ac_t""yes" 1>&6
8287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8288 cat >> confdefs.h <<EOF
8289 #define $ac_tr_hdr 1
8292 PLUGINS="${PLUGINS} audio_output/oss"
8293 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
8294 echo "configure:8295: checking for main in -lossaudio" >&5
8295 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
8296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8299 ac_save_LIBS="$LIBS"
8300 LIBS="-lossaudio $LIBS"
8301 cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8309 if { (eval echo configure:8310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8311 eval "ac_cv_lib_$ac_lib_var=yes"
8313 echo "configure: failed program was:" >&5
8314 cat conftest.$ac_ext >&5
8316 eval "ac_cv_lib_$ac_lib_var=no"
8319 LIBS="$ac_save_LIBS"
8322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8323 echo "$ac_t""yes" 1>&6
8324 oss_LDFLAGS="${oss_LDFLAGS} -lossaudio"
8326 echo "$ac_t""no" 1>&6
8331 echo "$ac_t""no" 1>&6
8337 # Check whether --enable-esd or --disable-esd was given.
8338 if test "${enable_esd+set}" = set; then
8339 enableval="$enable_esd"
8340 if test "x${enable_esd}" = "xyes"
8342 # Extract the first word of "esd-config", so it can be a program name with args.
8343 set dummy esd-config; ac_word=$2
8344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8345 echo "configure:8346: checking for $ac_word" >&5
8346 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
8347 echo $ac_n "(cached) $ac_c" 1>&6
8349 case "$ESD_CONFIG" in
8351 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
8354 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
8357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8359 for ac_dir in $ac_dummy; do
8360 test -z "$ac_dir" && ac_dir=.
8361 if test -f $ac_dir/$ac_word; then
8362 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
8367 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
8371 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
8372 if test -n "$ESD_CONFIG"; then
8373 echo "$ac_t""$ESD_CONFIG" 1>&6
8375 echo "$ac_t""no" 1>&6
8378 if test "x${ESD_CONFIG}" != "xno"
8380 PLUGINS="${PLUGINS} audio_output/esd"
8381 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
8382 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
8388 # Check whether --enable-arts or --disable-arts was given.
8389 if test "${enable_arts+set}" = set; then
8390 enableval="$enable_arts"
8391 if test "x${enable_arts}" = "xyes"
8393 # Extract the first word of "artsc-config", so it can be a program name with args.
8394 set dummy artsc-config; ac_word=$2
8395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8396 echo "configure:8397: checking for $ac_word" >&5
8397 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
8398 echo $ac_n "(cached) $ac_c" 1>&6
8400 case "$ARTS_CONFIG" in
8402 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8405 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8410 for ac_dir in $ac_dummy; do
8411 test -z "$ac_dir" && ac_dir=.
8412 if test -f $ac_dir/$ac_word; then
8413 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8418 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8422 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8423 if test -n "$ARTS_CONFIG"; then
8424 echo "$ac_t""$ARTS_CONFIG" 1>&6
8426 echo "$ac_t""no" 1>&6
8429 if test "x${ARTS_CONFIG}" != "xno"
8431 PLUGINS="${PLUGINS} audio_output/arts"
8432 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8433 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8439 # Check whether --enable-alsa or --disable-alsa was given.
8440 if test "${enable_alsa+set}" = set; then
8441 enableval="$enable_alsa"
8442 if test "x${enable_alsa}" = "xyes"
8444 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8445 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8446 echo "configure:8447: checking for alsa/asoundlib.h" >&5
8447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8448 echo $ac_n "(cached) $ac_c" 1>&6
8450 cat > conftest.$ac_ext <<EOF
8451 #line 8452 "configure"
8452 #include "confdefs.h"
8453 #include <alsa/asoundlib.h>
8455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8456 { (eval echo configure:8457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8458 if test -z "$ac_err"; then
8460 eval "ac_cv_header_$ac_safe=yes"
8463 echo "configure: failed program was:" >&5
8464 cat conftest.$ac_ext >&5
8466 eval "ac_cv_header_$ac_safe=no"
8470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8471 echo "$ac_t""yes" 1>&6
8472 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8473 echo "configure:8474: checking for main in -lasound" >&5
8474 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8476 echo $ac_n "(cached) $ac_c" 1>&6
8478 ac_save_LIBS="$LIBS"
8479 LIBS="-lasound $LIBS"
8480 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8488 if { (eval echo configure:8489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8490 eval "ac_cv_lib_$ac_lib_var=yes"
8492 echo "configure: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8495 eval "ac_cv_lib_$ac_lib_var=no"
8498 LIBS="$ac_save_LIBS"
8501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8502 echo "$ac_t""yes" 1>&6
8505 echo "$ac_t""no" 1>&6
8510 echo "$ac_t""no" 1>&6
8514 if test "x${have_alsa}" = "xtrue"
8516 PLUGINS="${PLUGINS} audio_output/alsa"
8517 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8523 # Check whether --enable-waveout or --disable-waveout was given.
8524 if test "${enable_waveout+set}" = set; then
8525 enableval="$enable_waveout"
8529 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8531 PLUGINS="${PLUGINS} audio_output/waveout"
8532 waveout_LDFLAGS="-lwinmm"
8536 # Check whether --with- or --without- was given.
8537 if test "${with_+set}" = set; then
8543 if test "x${SYS}" = "xbeos"
8545 PLUGINS="${PLUGINS} gui/beos/beos"
8548 # Check whether --enable-gtk or --disable-gtk was given.
8549 if test "${enable_gtk+set}" = set; then
8550 enableval="$enable_gtk"
8554 if test "x${enable_gtk}" != "xno"
8557 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8558 if test "${with_gtk_config_path+set}" = set; then
8559 withval="$with_gtk_config_path"
8560 if test "x${with_gtk_config_path}" != "xno"
8562 GTK_PATH="${with_gtk_config_path}:${PATH}"
8566 # look for gtk-config
8567 # Extract the first word of "gtk12-config", so it can be a program name with args.
8568 set dummy gtk12-config; ac_word=$2
8569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8570 echo "configure:8571: checking for $ac_word" >&5
8571 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8574 case "$GTK12_CONFIG" in
8576 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8579 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8583 ac_dummy="${GTK_PATH}"
8584 for ac_dir in $ac_dummy; do
8585 test -z "$ac_dir" && ac_dir=.
8586 if test -f $ac_dir/$ac_word; then
8587 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8592 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8596 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8597 if test -n "$GTK12_CONFIG"; then
8598 echo "$ac_t""$GTK12_CONFIG" 1>&6
8600 echo "$ac_t""no" 1>&6
8603 GTK_CONFIG=${GTK12_CONFIG}
8604 if test "x${GTK_CONFIG}" = "xno"
8606 # Extract the first word of "gtk-config", so it can be a program name with args.
8607 set dummy gtk-config; ac_word=$2
8608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8609 echo "configure:8610: checking for $ac_word" >&5
8610 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8611 echo $ac_n "(cached) $ac_c" 1>&6
8613 case "$GTK_CONFIG" in
8615 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8618 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8622 ac_dummy="${GTK_PATH}"
8623 for ac_dir in $ac_dummy; do
8624 test -z "$ac_dir" && ac_dir=.
8625 if test -f $ac_dir/$ac_word; then
8626 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8631 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8635 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8636 if test -n "$GTK_CONFIG"; then
8637 echo "$ac_t""$GTK_CONFIG" 1>&6
8639 echo "$ac_t""no" 1>&6
8643 if test "x${GTK_CONFIG}" != "xno"
8645 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8647 { 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; }
8649 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk gthread`"
8650 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk gthread | sed 's,-rdynamic,,'`"
8651 # now look for the gtk.h header
8652 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8653 ac_cv_gtk_headers=yes
8654 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8658 echo "configure:8659: checking for $ac_hdr" >&5
8659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8662 cat > conftest.$ac_ext <<EOF
8663 #line 8664 "configure"
8664 #include "confdefs.h"
8667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8668 { (eval echo configure:8669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8670 if test -z "$ac_err"; then
8672 eval "ac_cv_header_$ac_safe=yes"
8675 echo "configure: failed program was:" >&5
8676 cat conftest.$ac_ext >&5
8678 eval "ac_cv_header_$ac_safe=no"
8682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8683 echo "$ac_t""yes" 1>&6
8684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8685 cat >> confdefs.h <<EOF
8686 #define $ac_tr_hdr 1
8690 echo "$ac_t""no" 1>&6
8691 ac_cv_gtk_headers=no
8692 echo "Cannot find gtk development headers."
8697 if test "x${ac_cv_gtk_headers}" = "xyes"
8699 PLUGINS="${PLUGINS} gui/gtk/gtk"
8701 ALIASES="${ALIASES} gvlc"
8703 CPPFLAGS="${save_CPPFLAGS}"
8707 # Check whether --enable-familiar or --disable-familiar was given.
8708 if test "${enable_familiar+set}" = set; then
8709 enableval="$enable_familiar"
8713 if test "x${enable_familiar}" = "xyes"
8716 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8717 if test "${with_gtk_config_path+set}" = set; then
8718 withval="$with_gtk_config_path"
8719 if test "x${with_gtk_config_path}" != "xno"
8721 GTK_PATH="${with_gtk_config_path}:${PATH}"
8725 # look for gtk-config
8726 # Extract the first word of "gtk12-config", so it can be a program name with args.
8727 set dummy gtk12-config; ac_word=$2
8728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8729 echo "configure:8730: checking for $ac_word" >&5
8730 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8733 case "$GTK12_CONFIG" in
8735 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8738 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8742 ac_dummy="${GTK_PATH}"
8743 for ac_dir in $ac_dummy; do
8744 test -z "$ac_dir" && ac_dir=.
8745 if test -f $ac_dir/$ac_word; then
8746 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8751 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8755 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8756 if test -n "$GTK12_CONFIG"; then
8757 echo "$ac_t""$GTK12_CONFIG" 1>&6
8759 echo "$ac_t""no" 1>&6
8762 GTK_CONFIG=${GTK12_CONFIG}
8763 if test "x${GTK_CONFIG}" = "xno"
8765 # Extract the first word of "gtk-config", so it can be a program name with args.
8766 set dummy gtk-config; ac_word=$2
8767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8768 echo "configure:8769: checking for $ac_word" >&5
8769 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8770 echo $ac_n "(cached) $ac_c" 1>&6
8772 case "$GTK_CONFIG" in
8774 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8777 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8781 ac_dummy="${GTK_PATH}"
8782 for ac_dir in $ac_dummy; do
8783 test -z "$ac_dir" && ac_dir=.
8784 if test -f $ac_dir/$ac_word; then
8785 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8790 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8794 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8795 if test -n "$GTK_CONFIG"; then
8796 echo "$ac_t""$GTK_CONFIG" 1>&6
8798 echo "$ac_t""no" 1>&6
8802 if test "x${GTK_CONFIG}" != "xno"
8804 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8806 { 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; }
8808 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk gthread`"
8809 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk gthread | sed 's,-rdynamic,,'`"
8810 # now look for the gtk.h header
8811 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8812 ac_cv_gtk_headers=yes
8813 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8817 echo "configure:8818: checking for $ac_hdr" >&5
8818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8819 echo $ac_n "(cached) $ac_c" 1>&6
8821 cat > conftest.$ac_ext <<EOF
8822 #line 8823 "configure"
8823 #include "confdefs.h"
8826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8827 { (eval echo configure:8828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8829 if test -z "$ac_err"; then
8831 eval "ac_cv_header_$ac_safe=yes"
8834 echo "configure: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8837 eval "ac_cv_header_$ac_safe=no"
8841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8842 echo "$ac_t""yes" 1>&6
8843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8844 cat >> confdefs.h <<EOF
8845 #define $ac_tr_hdr 1
8849 echo "$ac_t""no" 1>&6
8850 ac_cv_gtk_headers=no
8851 echo "Cannot find gtk development headers."
8856 if test "x${ac_cv_gtk_headers}" = "xyes"
8858 PLUGINS="${PLUGINS} gui/familiar/familiar"
8861 CPPFLAGS="${save_CPPFLAGS}"
8865 # Check whether --enable-gnome or --disable-gnome was given.
8866 if test "${enable_gnome+set}" = set; then
8867 enableval="$enable_gnome"
8868 if test "x${enable_gnome}" = "xyes"; then
8869 # look for gnome-config
8870 # Extract the first word of "gnome-config", so it can be a program name with args.
8871 set dummy gnome-config; ac_word=$2
8872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8873 echo "configure:8874: checking for $ac_word" >&5
8874 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8875 echo $ac_n "(cached) $ac_c" 1>&6
8877 case "$GNOME_CONFIG" in
8879 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8882 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8887 for ac_dir in $ac_dummy; do
8888 test -z "$ac_dir" && ac_dir=.
8889 if test -f $ac_dir/$ac_word; then
8890 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8895 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8899 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8900 if test -n "$GNOME_CONFIG"; then
8901 echo "$ac_t""$GNOME_CONFIG" 1>&6
8903 echo "$ac_t""no" 1>&6
8906 if test -x ${GNOME_CONFIG}
8908 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8909 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8911 # now look for the gnome.h header
8912 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8913 for ac_hdr in gnome.h
8915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8917 echo "configure:8918: checking for $ac_hdr" >&5
8918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6
8921 cat > conftest.$ac_ext <<EOF
8922 #line 8923 "configure"
8923 #include "confdefs.h"
8926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8927 { (eval echo configure:8928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8929 if test -z "$ac_err"; then
8931 eval "ac_cv_header_$ac_safe=yes"
8934 echo "configure: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8937 eval "ac_cv_header_$ac_safe=no"
8941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8942 echo "$ac_t""yes" 1>&6
8943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8944 cat >> confdefs.h <<EOF
8945 #define $ac_tr_hdr 1
8948 PLUGINS="${PLUGINS} gui/gtk/gnome"
8950 ALIASES="${ALIASES} gnome-vlc"
8953 echo "$ac_t""no" 1>&6
8954 { echo "configure: error: Can't find gnome headers. Please install the gnome
8955 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8960 CPPFLAGS="${save_CPPFLAGS}"
8965 # Check whether --enable-qt or --disable-qt was given.
8966 if test "${enable_qt+set}" = set; then
8967 enableval="$enable_qt"
8968 if test "x${enable_qt}" = "xyes"; then
8969 PLUGINS="${PLUGINS} gui/qt/qt"
8970 ALIASES="${ALIASES} qvlc"
8971 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8972 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8973 if test -x ${QTDIR}/bin/moc
8975 MOC=${QTDIR}/bin/moc
8983 # Check whether --enable-kde or --disable-kde was given.
8984 if test "${enable_kde+set}" = set; then
8985 enableval="$enable_kde"
8986 if test "x${enable_kde}" = "xyes"; then
8987 PLUGINS="${PLUGINS} gui/kde/kde"
8988 ALIASES="${ALIASES} kvlc"
8989 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8990 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8991 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8992 if test -x ${QTDIR}/bin/moc
8994 MOC=${QTDIR}/bin/moc
9002 # Check whether --enable-qte or --disable-qte was given.
9003 if test "${enable_qte+set}" = set; then
9004 enableval="$enable_qte"
9005 if test "x${enable_qte}" = "xyes"; then
9006 PLUGINS="${PLUGINS} gui/qte/qte"
9007 qte_LDFLAGS="${qte_LDFLAGS} -lqte -L${QTEDIR}/lib"
9008 qte_CFLAGS="${qte_CFLAGS} -I/usr/include/qte -I${QTEDIR}/include"
9009 if test -x ${QTEDIR}/bin/moc
9011 MOC=${QTEDIR}/bin/moc
9020 # Check whether --enable-macosx or --disable-macosx was given.
9021 if test "${enable_macosx+set}" = set; then
9022 enableval="$enable_macosx"
9023 if test "x${enable_macosx}" = "xyes"
9025 BUILTINS="${BUILTINS} gui/macosx/macosx"
9026 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9029 for ac_hdr in Cocoa/Cocoa.h
9031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9033 echo "configure:9034: checking for $ac_hdr" >&5
9034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9037 cat > conftest.$ac_ext <<EOF
9038 #line 9039 "configure"
9039 #include "confdefs.h"
9042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9043 { (eval echo configure:9044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9045 if test -z "$ac_err"; then
9047 eval "ac_cv_header_$ac_safe=yes"
9050 echo "configure: failed program was:" >&5
9051 cat conftest.$ac_ext >&5
9053 eval "ac_cv_header_$ac_safe=no"
9057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9058 echo "$ac_t""yes" 1>&6
9059 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9060 cat >> confdefs.h <<EOF
9061 #define $ac_tr_hdr 1
9063 BUILTINS="${BUILTINS} gui/macosx/macosx"
9064 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9067 echo "$ac_t""no" 1>&6
9074 # Check whether --enable-qnx or --disable-qnx was given.
9075 if test "${enable_qnx+set}" = set; then
9076 enableval="$enable_qnx"
9080 if test "x${enable_qnx}" != "xno"
9084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9086 echo "configure:9087: checking for $ac_hdr" >&5
9087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9088 echo $ac_n "(cached) $ac_c" 1>&6
9090 cat > conftest.$ac_ext <<EOF
9091 #line 9092 "configure"
9092 #include "confdefs.h"
9095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9096 { (eval echo configure:9097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9098 if test -z "$ac_err"; then
9100 eval "ac_cv_header_$ac_safe=yes"
9103 echo "configure: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9106 eval "ac_cv_header_$ac_safe=no"
9110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9111 echo "$ac_t""yes" 1>&6
9112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9113 cat >> confdefs.h <<EOF
9114 #define $ac_tr_hdr 1
9117 PLUGINS="${PLUGINS} gui/qnx/qnx"
9118 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
9121 echo "$ac_t""no" 1>&6
9127 # Check whether --enable-intfwin or --disable-intfwin was given.
9128 if test "${enable_intfwin+set}" = set; then
9129 enableval="$enable_intfwin"
9130 if test "x${enable_intfwin}" != "xno"
9132 # Check whether --with-bcbuilder or --without-bcbuilder was given.
9133 if test "${with_bcbuilder+set}" = set; then
9134 withval="$with_bcbuilder"
9138 if test "x${with_bcbuilder}" != "x"
9140 BCBUILDER="${with_bcbuilder}"
9142 PLUGINS="${PLUGINS} gui/win32/win32"
9147 # Check whether --enable-ncurses or --disable-ncurses was given.
9148 if test "${enable_ncurses+set}" = set; then
9149 enableval="$enable_ncurses"
9150 if test "x${enable_ncurses}" = "xyes"; then
9151 PLUGINS="${PLUGINS} gui/ncurses/ncurses"
9152 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
9157 # Check whether --enable-xosd or --disable-xosd was given.
9158 if test "${enable_xosd+set}" = set; then
9159 enableval="$enable_xosd"
9163 if test "x${enable_xosd}" = "xyes"
9165 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
9166 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
9167 echo "configure:9168: checking for xosd.h" >&5
9168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
9171 cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9177 { (eval echo configure:9178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9179 if test -z "$ac_err"; then
9181 eval "ac_cv_header_$ac_safe=yes"
9184 echo "configure: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9187 eval "ac_cv_header_$ac_safe=no"
9191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9192 echo "$ac_t""yes" 1>&6
9195 echo "$ac_t""no" 1>&6
9199 cat > conftest.$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9204 void foo() { xosd_init("foo","bar",12,XOSD_top,2,12,42); }
9207 if { (eval echo configure:9208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9213 cat >> confdefs.h <<\EOF
9214 #define HAVE_OLD_XOSD_H 1
9219 if test "x${have_xosd}" = "xtrue"
9221 PLUGINS="${PLUGINS} visualization/xosd/xosd"
9222 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
9226 # Check whether --enable-lirc or --disable-lirc was given.
9227 if test "${enable_lirc+set}" = set; then
9228 enableval="$enable_lirc"
9232 if test "x${enable_lirc}" = "xyes"
9234 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
9235 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
9236 echo "configure:9237: checking for lirc/lirc_client.h" >&5
9237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9238 echo $ac_n "(cached) $ac_c" 1>&6
9240 cat > conftest.$ac_ext <<EOF
9241 #line 9242 "configure"
9242 #include "confdefs.h"
9243 #include <lirc/lirc_client.h>
9245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9246 { (eval echo configure:9247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9248 if test -z "$ac_err"; then
9250 eval "ac_cv_header_$ac_safe=yes"
9253 echo "configure: failed program was:" >&5
9254 cat conftest.$ac_ext >&5
9256 eval "ac_cv_header_$ac_safe=no"
9260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9261 echo "$ac_t""yes" 1>&6
9262 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
9263 echo "configure:9264: checking for lirc_init in -llirc_client" >&5
9264 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
9265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9266 echo $ac_n "(cached) $ac_c" 1>&6
9268 ac_save_LIBS="$LIBS"
9269 LIBS="-llirc_client $LIBS"
9270 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure"
9272 #include "confdefs.h"
9273 /* Override any gcc2 internal prototype to avoid an error. */
9274 /* We use char because int might match the return type of a gcc2
9275 builtin and then its argument prototype would still apply. */
9282 if { (eval echo configure:9283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9284 eval "ac_cv_lib_$ac_lib_var=yes"
9286 echo "configure: failed program was:" >&5
9287 cat conftest.$ac_ext >&5
9289 eval "ac_cv_lib_$ac_lib_var=no"
9292 LIBS="$ac_save_LIBS"
9295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9296 echo "$ac_t""yes" 1>&6
9299 echo "$ac_t""no" 1>&6
9304 echo "$ac_t""no" 1>&6
9308 if test "x${have_lirc}" = "xtrue"
9310 PLUGINS="${PLUGINS} control/lirc/lirc"
9311 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
9315 # Check whether --with- or --without- was given.
9316 if test "${with_+set}" = set; then
9322 # Check whether --with-words or --without-words was given.
9323 if test "${with_words+set}" = set; then
9324 withval="$with_words"
9328 case "x${with_words}" in
9330 ac_cv_c_bigendian=yes
9333 ac_cv_c_bigendian=no
9336 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
9337 echo "configure:9338: checking whether the byte order is big-endian" >&5
9338 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9339 echo $ac_n "(cached) $ac_c" 1>&6
9341 ac_cv_c_bigendian="unknown"
9342 cat >conftest.c <<EOF
9343 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
9344 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
9345 void _a(void) { char*s = (char*)am; s = (char *)ai; }
9346 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
9347 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
9348 void _e(void) { char*s = (char*)em; s = (char*)ei; }
9349 int main(void) { _a(); _e(); return 0; }
9352 if test -f conftest.c
9354 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
9355 && test -f conftest.o
9357 if test "`strings conftest.o | grep BIGenDianSyS`"
9359 ac_cv_c_bigendian="yes"
9361 if test "`strings conftest.o | grep LiTTleEnDian`"
9363 ac_cv_c_bigendian="no"
9370 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9371 if test "x${ac_cv_c_bigendian}" = "xunknown"
9373 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
9377 if test "${ac_cv_c_bigendian}" = "yes"
9379 cat >> confdefs.h <<\EOF
9380 #define WORDS_BIGENDIAN 1
9388 # Check whether --enable-gprof or --disable-gprof was given.
9389 if test "${enable_gprof+set}" = set; then
9390 enableval="$enable_gprof"
9391 if test "x${enable_gprof}" = "xyes"
9401 # Check whether --enable-cprof or --disable-cprof was given.
9402 if test "${enable_cprof+set}" = set; then
9403 enableval="$enable_cprof"
9404 if test "x${enable_cprof}" = "xyes"
9406 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
9414 # Check whether --enable-pth or --disable-pth was given.
9415 if test "${enable_pth+set}" = set; then
9416 enableval="$enable_pth"
9417 if test "x${enable_pth}" = "xyes"; then
9418 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
9419 echo "configure:9420: checking for pth_init in -lpth" >&5
9420 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
9421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9424 ac_save_LIBS="$LIBS"
9426 cat > conftest.$ac_ext <<EOF
9427 #line 9428 "configure"
9428 #include "confdefs.h"
9429 /* Override any gcc2 internal prototype to avoid an error. */
9430 /* We use char because int might match the return type of a gcc2
9431 builtin and then its argument prototype would still apply. */
9438 if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9440 eval "ac_cv_lib_$ac_lib_var=yes"
9442 echo "configure: failed program was:" >&5
9443 cat conftest.$ac_ext >&5
9445 eval "ac_cv_lib_$ac_lib_var=no"
9448 LIBS="$ac_save_LIBS"
9451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9452 echo "$ac_t""yes" 1>&6
9453 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9455 cat >> confdefs.h <<EOF
9456 #define $ac_tr_lib 1
9462 echo "$ac_t""no" 1>&6
9465 cat > conftest.$ac_ext <<EOF
9466 #line 9467 "configure"
9467 #include "confdefs.h"
9470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9471 egrep "pth_init" >/dev/null 2>&1; then
9474 cat >> confdefs.h <<\EOF
9475 #define PTH_INIT_IN_PTH_H 1
9487 # Check whether --enable-st or --disable-st was given.
9488 if test "${enable_st+set}" = set; then
9489 enableval="$enable_st"
9490 if test "x${enable_st}" = "xyes"; then
9491 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9492 echo "configure:9493: checking for st_init in -lst" >&5
9493 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9495 echo $ac_n "(cached) $ac_c" 1>&6
9497 ac_save_LIBS="$LIBS"
9499 cat > conftest.$ac_ext <<EOF
9500 #line 9501 "configure"
9501 #include "confdefs.h"
9502 /* Override any gcc2 internal prototype to avoid an error. */
9503 /* We use char because int might match the return type of a gcc2
9504 builtin and then its argument prototype would still apply. */
9511 if { (eval echo configure:9512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9513 eval "ac_cv_lib_$ac_lib_var=yes"
9515 echo "configure: failed program was:" >&5
9516 cat conftest.$ac_ext >&5
9518 eval "ac_cv_lib_$ac_lib_var=no"
9521 LIBS="$ac_save_LIBS"
9524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9525 echo "$ac_t""yes" 1>&6
9526 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9528 cat >> confdefs.h <<EOF
9529 #define $ac_tr_lib 1
9535 echo "$ac_t""no" 1>&6
9538 cat > conftest.$ac_ext <<EOF
9539 #line 9540 "configure"
9540 #include "confdefs.h"
9543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9544 egrep "st_init" >/dev/null 2>&1; then
9547 cat >> confdefs.h <<\EOF
9548 #define ST_INIT_IN_ST_H 1
9560 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9561 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9564 # Check whether --enable-mozilla or --disable-mozilla was given.
9565 if test "${enable_mozilla+set}" = set; then
9566 enableval="$enable_mozilla"
9570 if test "x${enable_mozilla}" = "xyes"
9572 # Extract the first word of "mozilla-config", so it can be a program name with args.
9573 set dummy mozilla-config; ac_word=$2
9574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9575 echo "configure:9576: checking for $ac_word" >&5
9576 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9577 echo $ac_n "(cached) $ac_c" 1>&6
9579 case "$MOZILLA_CONFIG" in
9581 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9584 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9589 for ac_dir in $ac_dummy; do
9590 test -z "$ac_dir" && ac_dir=.
9591 if test -f $ac_dir/$ac_word; then
9592 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9597 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9601 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9602 if test -n "$MOZILLA_CONFIG"; then
9603 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9605 echo "$ac_t""no" 1>&6
9608 if test "x${MOZILLA_CONFIG}" != "xno"
9610 if test "x${SYS}" != "xmingw32"; then
9611 LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9612 echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9613 echo "configure:9614: checking for XtStrings in -lXt" >&5
9614 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9618 ac_save_LIBS="$LIBS"
9620 cat > conftest.$ac_ext <<EOF
9621 #line 9622 "configure"
9622 #include "confdefs.h"
9623 /* Override any gcc2 internal prototype to avoid an error. */
9624 /* We use char because int might match the return type of a gcc2
9625 builtin and then its argument prototype would still apply. */
9632 if { (eval echo configure:9633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9634 eval "ac_cv_lib_$ac_lib_var=yes"
9636 echo "configure: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9639 eval "ac_cv_lib_$ac_lib_var=no"
9642 LIBS="$ac_save_LIBS"
9645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9646 echo "$ac_t""yes" 1>&6
9648 mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9651 echo "$ac_t""no" 1>&6
9654 LDFLAGS="${save_LDFLAGS}"
9657 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9658 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9662 if test "x${NEED_GTK_MAIN}" != "xno"
9664 PLUGINS="${PLUGINS} misc/gtk_main"
9665 gtk_main_CFLAGS="${gtk_main_CFLAGS} ${gtk_CFLAGS} ${familiar_CFLAGS} ${gnome_CFLAGS}"
9666 gtk_main_LDFLAGS="${gtk_main_LDFLAGS} ${gtk_LDFLAGS} ${familiar_LDFLAGS} ${gnome_LDFLAGS}"
9669 # Check whether --enable-plugins or --disable-plugins was given.
9670 if test "${enable_plugins+set}" = set; then
9671 enableval="$enable_plugins"
9672 if test "x${enable_plugins}" = "xno"
9674 BUILTINS="${BUILTINS} ${PLUGINS}"
9680 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9682 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9684 BUILTINS="${BUILTINS} ${PLUGINS}"
9688 cat >> confdefs.h <<EOF
9689 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9692 cat >> confdefs.h <<EOF
9693 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9696 cat >> confdefs.h <<EOF
9697 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9701 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9702 cat >> confdefs.h <<EOF
9703 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9706 cat >> confdefs.h <<EOF
9707 #define MODULE_SYMBOL ${VLC_SYMBOL}
9711 DATA_PATH="${ac_tool_prefix}/share/videolan"
9713 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9716 CPPFLAGS="${save_CPPFLAGS}"
9717 CFLAGS="${save_CFLAGS}"
9718 LDFLAGS="${save_LDFLAGS}"
9720 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9721 for i in `echo ${BUILTINS} | sed -e 's#[^ ]*/##g'` ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9838 cat > confcache <<\EOF
9839 # This file is a shell script that caches the results of configure
9840 # tests run on this system so they can be shared between configure
9841 # scripts and configure runs. It is not useful on other systems.
9842 # If it contains results you don't want to keep, you may remove or edit it.
9844 # By default, configure uses ./config.cache as the cache file,
9845 # creating it if it does not exist already. You can give configure
9846 # the --cache-file=FILE option to use a different cache file; that is
9847 # what configure does when it calls configure scripts in
9848 # subdirectories, so they share the cache.
9849 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9850 # config.status only pays attention to the cache file if you give it the
9851 # --recheck option to rerun configure.
9854 # The following way of writing the cache mishandles newlines in values,
9855 # but we know of no workaround that is simple, portable, and efficient.
9856 # So, don't put newlines in cache variables' values.
9857 # Ultrix sh set writes to stderr and can't be redirected directly,
9858 # and sets the high bit in the cache file unless we assign to the vars.
9860 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9862 # `set' does not quote correctly, so add quotes (double-quote substitution
9863 # turns \\\\ into \\, and sed turns \\ into \).
9865 -e "s/'/'\\\\''/g" \
9866 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9869 # `set' quotes correctly as required by POSIX, so do not add quotes.
9870 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9873 if cmp -s $cache_file confcache; then
9876 if test -w $cache_file; then
9877 echo "updating cache $cache_file"
9878 cat confcache > $cache_file
9880 echo "not updating unwritable cache $cache_file"
9885 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9888 # Let make expand exec_prefix.
9889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9891 # Any assignment to VPATH causes Sun make to only execute
9892 # the first set of double-colon rules, so remove it if not needed.
9893 # If there is a colon in the path, we need to keep it.
9894 if test "x$srcdir" = x.; then
9895 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9898 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9900 DEFS=-DHAVE_CONFIG_H
9902 # Without the "./", some shells look in PATH for config.status.
9903 : ${CONFIG_STATUS=./config.status}
9905 echo creating $CONFIG_STATUS
9906 rm -f $CONFIG_STATUS
9907 cat > $CONFIG_STATUS <<EOF
9909 # Generated automatically by configure.
9910 # Run this file to recreate the current configuration.
9911 # This directory was configured as follows,
9912 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9914 # $0 $ac_configure_args
9916 # Compiler output produced by configure, useful for debugging
9917 # configure, is in ./config.log if it exists.
9919 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9922 case "\$ac_option" in
9923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9924 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9925 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9926 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9927 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9929 -help | --help | --hel | --he | --h)
9930 echo "\$ac_cs_usage"; exit 0 ;;
9931 *) echo "\$ac_cs_usage"; exit 1 ;;
9935 ac_given_srcdir=$srcdir
9936 ac_given_INSTALL="$INSTALL"
9938 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
9940 cat >> $CONFIG_STATUS <<EOF
9942 # Protect against being on the right side of a sed subst in config.status.
9943 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9944 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9948 s%@CFLAGS@%$CFLAGS%g
9949 s%@CPPFLAGS@%$CPPFLAGS%g
9950 s%@CXXFLAGS@%$CXXFLAGS%g
9951 s%@FFLAGS@%$FFLAGS%g
9953 s%@LDFLAGS@%$LDFLAGS%g
9955 s%@exec_prefix@%$exec_prefix%g
9956 s%@prefix@%$prefix%g
9957 s%@program_transform_name@%$program_transform_name%g
9958 s%@bindir@%$bindir%g
9959 s%@sbindir@%$sbindir%g
9960 s%@libexecdir@%$libexecdir%g
9961 s%@datadir@%$datadir%g
9962 s%@sysconfdir@%$sysconfdir%g
9963 s%@sharedstatedir@%$sharedstatedir%g
9964 s%@localstatedir@%$localstatedir%g
9965 s%@libdir@%$libdir%g
9966 s%@includedir@%$includedir%g
9967 s%@oldincludedir@%$oldincludedir%g
9968 s%@infodir@%$infodir%g
9969 s%@mandir@%$mandir%g
9971 s%@host_alias@%$host_alias%g
9972 s%@host_cpu@%$host_cpu%g
9973 s%@host_vendor@%$host_vendor%g
9974 s%@host_os@%$host_os%g
9975 s%@target@%$target%g
9976 s%@target_alias@%$target_alias%g
9977 s%@target_cpu@%$target_cpu%g
9978 s%@target_vendor@%$target_vendor%g
9979 s%@target_os@%$target_os%g
9981 s%@build_alias@%$build_alias%g
9982 s%@build_cpu@%$build_cpu%g
9983 s%@build_vendor@%$build_vendor%g
9984 s%@build_os@%$build_os%g
9985 s%@SET_MAKE@%$SET_MAKE%g
9988 s%@RANLIB@%$RANLIB%g
9991 s%@ALLOCA@%$ALLOCA%g
9992 s%@GLIBC21@%$GLIBC21%g
9993 s%@LIBICONV@%$LIBICONV%g
9994 s%@USE_NLS@%$USE_NLS%g
9995 s%@MSGFMT@%$MSGFMT%g
9996 s%@GMSGFMT@%$GMSGFMT%g
9997 s%@XGETTEXT@%$XGETTEXT%g
9998 s%@INTLBISON@%$INTLBISON%g
9999 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
10000 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10001 s%@CATALOGS@%$CATALOGS%g
10002 s%@CATOBJEXT@%$CATOBJEXT%g
10003 s%@GMOFILES@%$GMOFILES%g
10004 s%@INTLLIBS@%$INTLLIBS%g
10005 s%@INTLOBJS@%$INTLOBJS%g
10006 s%@POFILES@%$POFILES%g
10008 s%@DATADIRNAME@%$DATADIRNAME%g
10009 s%@INSTOBJEXT@%$INSTOBJEXT%g
10010 s%@GENCAT@%$GENCAT%g
10011 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10012 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
10013 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10014 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10015 s%@INSTALL_DATA@%$INSTALL_DATA%g
10016 s%@WINDRES@%$WINDRES%g
10017 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
10018 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
10019 s%@SDL_CONFIG@%$SDL_CONFIG%g
10020 s%@ESD_CONFIG@%$ESD_CONFIG%g
10021 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
10022 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
10023 s%@GTK_CONFIG@%$GTK_CONFIG%g
10024 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
10025 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
10026 s%@DATA_PATH@%$DATA_PATH%g
10027 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
10028 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
10031 s%@PLUGINS@%$PLUGINS%g
10032 s%@BUILTINS@%$BUILTINS%g
10033 s%@ALIASES@%$ALIASES%g
10038 s%@OPTIMS@%$OPTIMS%g
10039 s%@TUNING@%$TUNING%g
10040 s%@RELEASE@%$RELEASE%g
10042 s%@BCBUILDER@%$BCBUILDER%g
10043 s%@PACKAGE@%$PACKAGE%g
10044 s%@VERSION@%$VERSION%g
10045 s%@NEED_GETOPT@%$NEED_GETOPT%g
10046 s%@MOZILLA@%$MOZILLA%g
10047 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
10048 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
10049 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
10050 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
10051 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
10052 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
10053 s%@a52_CFLAGS@%$a52_CFLAGS%g
10054 s%@arts_CFLAGS@%$arts_CFLAGS%g
10055 s%@i420_yuy2_mmx_CFLAGS@%$i420_yuy2_mmx_CFLAGS%g
10056 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
10057 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
10058 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
10059 s%@ts_dvbpsi_CFLAGS@%$ts_dvbpsi_CFLAGS%g
10060 s%@directx_CFLAGS@%$directx_CFLAGS%g
10061 s%@esd_CFLAGS@%$esd_CFLAGS%g
10062 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
10063 s%@faad_CFLAGS@%$faad_CFLAGS%g
10064 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
10065 s%@glide_CFLAGS@%$glide_CFLAGS%g
10066 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
10067 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
10068 s%@gtk_main_CFLAGS@%$gtk_main_CFLAGS%g
10069 s%@kde_CFLAGS@%$kde_CFLAGS%g
10070 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
10071 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
10072 s%@mad_CFLAGS@%$mad_CFLAGS%g
10073 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
10074 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
10075 s%@qt_CFLAGS@%$qt_CFLAGS%g
10076 s%@qte_CFLAGS@%$qte_CFLAGS%g
10077 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
10078 s%@x11_CFLAGS@%$x11_CFLAGS%g
10079 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
10080 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
10081 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
10082 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
10083 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
10084 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
10085 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
10086 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
10087 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
10088 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
10089 s%@i420_rgb_LDFLAGS@%$i420_rgb_LDFLAGS%g
10090 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
10091 s%@dv_LDFLAGS@%$dv_LDFLAGS%g
10092 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
10093 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
10094 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
10095 s%@ts_dvbpsi_LDFLAGS@%$ts_dvbpsi_LDFLAGS%g
10096 s%@audio_LDFLAGS@%$audio_LDFLAGS%g
10097 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
10098 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
10099 s%@distort_LDFLAGS@%$distort_LDFLAGS%g
10100 s%@faad_LDFLAGS@%$faad_LDFLAGS%g
10101 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
10102 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
10103 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
10104 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
10105 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
10106 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
10107 s%@gtk_main_LDFLAGS@%$gtk_main_LDFLAGS%g
10108 s%@http_LDFLAGS@%$http_LDFLAGS%g
10109 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
10110 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
10111 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
10112 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
10113 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
10114 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
10115 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
10116 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
10117 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
10118 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
10119 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
10120 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
10121 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
10122 s%@oss_LDFLAGS@%$oss_LDFLAGS%g
10123 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
10124 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
10125 s%@qte_LDFLAGS@%$qte_LDFLAGS%g
10126 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
10127 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
10128 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
10129 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
10130 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
10131 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
10132 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
10133 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
10138 cat >> $CONFIG_STATUS <<\EOF
10140 # Split the substitutions into bite-sized pieces for seds with
10141 # small command number limits, like on Digital OSF/1 and HP-UX.
10142 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10143 ac_file=1 # Number of current file.
10144 ac_beg=1 # First line for current file.
10145 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10148 while $ac_more_lines; do
10149 if test $ac_beg -gt 1; then
10150 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10152 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10154 if test ! -s conftest.s$ac_file; then
10155 ac_more_lines=false
10156 rm -f conftest.s$ac_file
10158 if test -z "$ac_sed_cmds"; then
10159 ac_sed_cmds="sed -f conftest.s$ac_file"
10161 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10163 ac_file=`expr $ac_file + 1`
10165 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10168 if test -z "$ac_sed_cmds"; then
10173 cat >> $CONFIG_STATUS <<EOF
10175 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
10177 cat >> $CONFIG_STATUS <<\EOF
10178 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10179 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10181 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10182 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10183 *) ac_file_in="${ac_file}.in" ;;
10186 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10188 # Remove last slash and all that follows it. Not all systems have dirname.
10189 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10190 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10191 # The file is in a subdirectory.
10192 test ! -d "$ac_dir" && mkdir "$ac_dir"
10193 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10194 # A "../" for each directory in $ac_dir_suffix.
10195 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10197 ac_dir_suffix= ac_dots=
10200 case "$ac_given_srcdir" in
10202 if test -z "$ac_dots"; then top_srcdir=.
10203 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10204 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10205 *) # Relative path.
10206 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10207 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10210 case "$ac_given_INSTALL" in
10211 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10212 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10215 echo creating "$ac_file"
10217 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10219 *Makefile*) ac_comsub="1i\\
10220 # $configure_input" ;;
10224 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10226 s%@configure_input@%$configure_input%g
10227 s%@srcdir@%$srcdir%g
10228 s%@top_srcdir@%$top_srcdir%g
10229 s%@INSTALL@%$INSTALL%g
10230 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10234 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10235 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10237 # ac_d sets the value in "#define NAME VALUE" lines.
10238 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10239 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10242 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10243 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10244 ac_uB='\([ ]\)%\1#\2define\3'
10247 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10248 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10249 ac_eB='$%\1#\2define\3'
10253 if test "${CONFIG_HEADERS+set}" != set; then
10255 cat >> $CONFIG_STATUS <<EOF
10256 CONFIG_HEADERS="include/defs.h"
10258 cat >> $CONFIG_STATUS <<\EOF
10260 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10261 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10263 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10264 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10265 *) ac_file_in="${ac_file}.in" ;;
10268 echo creating $ac_file
10270 rm -f conftest.frag conftest.in conftest.out
10271 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10272 cat $ac_file_inputs > conftest.in
10276 # Transform confdefs.h into a sed script conftest.vals that substitutes
10277 # the proper values into config.h.in to produce config.h. And first:
10278 # Protect against being on the right side of a sed subst in config.status.
10279 # Protect against being in an unquoted here document in config.status.
10280 rm -f conftest.vals
10281 cat > conftest.hdr <<\EOF
10284 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10288 sed -n -f conftest.hdr confdefs.h > conftest.vals
10291 # This sed command replaces #undef with comments. This is necessary, for
10292 # example, in the case of _POSIX_SOURCE, which is predefined and required
10293 # on some systems where configure will not decide to define it.
10294 cat >> conftest.vals <<\EOF
10295 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10298 # Break up conftest.vals because some shells have a limit on
10299 # the size of here documents, and old seds have small limits too.
10301 rm -f conftest.tail
10304 ac_lines=`grep -c . conftest.vals`
10305 # grep -c gives empty output for an empty file on some AIX systems.
10306 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10307 # Write a limited-size here document to conftest.frag.
10308 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10309 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10311 sed -f conftest.frag conftest.in > conftest.out
10313 mv conftest.out conftest.in
10314 ' >> $CONFIG_STATUS
10315 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10316 rm -f conftest.vals
10317 mv conftest.tail conftest.vals
10319 rm -f conftest.vals
10321 cat >> $CONFIG_STATUS <<\EOF
10322 rm -f conftest.frag conftest.h
10323 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10324 cat conftest.in >> conftest.h
10326 if cmp -s $ac_file conftest.h 2>/dev/null; then
10327 echo "$ac_file is unchanged"
10330 # Remove last slash and all that follows it. Not all systems have dirname.
10331 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10332 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10333 # The file is in a subdirectory.
10334 test ! -d "$ac_dir" && mkdir "$ac_dir"
10337 mv conftest.h $ac_file
10342 cat >> $CONFIG_STATUS <<EOF
10346 cat >> $CONFIG_STATUS <<\EOF
10347 for ac_file in $CONFIG_FILES; do
10348 # Support "outfile[:infile[:infile...]]"
10350 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10352 # PO directories have a Makefile.in generated from Makefile.in.in.
10353 case "$ac_file" in */Makefile.in)
10354 # Adjust a relative srcdir.
10355 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10356 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10357 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10358 # In autoconf-2.13 it is called $ac_given_srcdir.
10359 # In autoconf-2.50 it is called $srcdir.
10360 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10361 case "$ac_given_srcdir" in
10362 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10363 /*) top_srcdir="$ac_given_srcdir" ;;
10364 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10366 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10367 rm -f "$ac_dir/POTFILES"
10368 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10369 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10370 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10371 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10379 chmod +x $CONFIG_STATUS
10380 rm -fr confdefs* $ac_clean_files
10381 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10383 chmod a+x vlc-config
10387 --------------------
10388 vlc version : ${VERSION}
10390 architecture : ${ARCH}
10391 optimizations : ${OPTIMS}
10393 debug mode : ${DEBUG}
10394 release : ${RELEASE}
10395 profiling : ${PROFILING}
10396 need builtin getopt : ${NEED_GETOPT}
10397 modules : (see Makefile.config)
10398 mozilla plugin : ${MOZILLA}
10399 vlc aliases :${ALIASES}
10401 You may now tune Makefile.config and Makefile.opts at your convenience, for
10402 instance to choose which modules get compiled as plugins, or tune CFLAGS.
10404 To build vlc and its plugins, type \`${VLC_MAKE}'.