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 stdlib.h unistd.h sys/stat.h sys/types.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 #if HAVE_SYS_TYPES_H
2082 # include <sys/types.h>
2086 # include <stdlib.h>
2090 # include <sys/stat.h>
2094 # include <unistd.h>
2097 /* This mess was copied from the GNU getpagesize.h. */
2098 #ifndef HAVE_GETPAGESIZE
2100 /* Assume that all systems that can run configure have sys/param.h. */
2101 # ifndef HAVE_SYS_PARAM_H
2102 # define HAVE_SYS_PARAM_H 1
2105 # ifdef _SC_PAGESIZE
2106 # define getpagesize() sysconf(_SC_PAGESIZE)
2107 # else /* no _SC_PAGESIZE */
2108 # ifdef HAVE_SYS_PARAM_H
2109 # include <sys/param.h>
2110 # ifdef EXEC_PAGESIZE
2111 # define getpagesize() EXEC_PAGESIZE
2112 # else /* no EXEC_PAGESIZE */
2114 # define getpagesize() NBPG * CLSIZE
2117 # endif /* no CLSIZE */
2118 # else /* no NBPG */
2120 # define getpagesize() NBPC
2121 # else /* no NBPC */
2123 # define getpagesize() PAGESIZE
2124 # endif /* PAGESIZE */
2125 # endif /* no NBPC */
2126 # endif /* no NBPG */
2127 # endif /* no EXEC_PAGESIZE */
2128 # else /* no HAVE_SYS_PARAM_H */
2129 # define getpagesize() 8192 /* punt totally */
2130 # endif /* no HAVE_SYS_PARAM_H */
2131 # endif /* no _SC_PAGESIZE */
2133 #endif /* no HAVE_GETPAGESIZE */
2136 extern "C" { void *malloc(unsigned); }
2144 char *data, *data2, *data3;
2148 pagesize = getpagesize();
2151 * First, make a file with some known garbage in it.
2153 data = malloc(pagesize);
2156 for (i = 0; i < pagesize; ++i)
2157 *(data + i) = rand();
2159 fd = creat("conftestmmap", 0600);
2162 if (write(fd, data, pagesize) != pagesize)
2167 * Next, try to mmap the file at a fixed address which
2168 * already has something else allocated at it. If we can,
2169 * also make sure that we see the same garbage.
2171 fd = open("conftestmmap", O_RDWR);
2174 data2 = malloc(2 * pagesize);
2177 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2178 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2179 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2181 for (i = 0; i < pagesize; ++i)
2182 if (*(data + i) != *(data2 + i))
2186 * Finally, make sure that changes to the mapped area
2187 * do not percolate back to the file as seen by read().
2188 * (This is a bug on some variants of i386 svr4.0.)
2190 for (i = 0; i < pagesize; ++i)
2191 *(data2 + i) = *(data2 + i) + 1;
2192 data3 = malloc(pagesize);
2195 if (read(fd, data3, pagesize) != pagesize)
2197 for (i = 0; i < pagesize; ++i)
2198 if (*(data + i) != *(data3 + i))
2201 unlink("conftestmmap");
2206 if { (eval echo configure:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2208 ac_cv_func_mmap_fixed_mapped=yes
2210 echo "configure: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2213 ac_cv_func_mmap_fixed_mapped=no
2220 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2221 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2222 cat >> confdefs.h <<\EOF
2229 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2230 echo "configure:2231: checking whether we are using the GNU C Library 2.1 or newer" >&5
2231 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2238 #include <features.h>
2239 #ifdef __GNU_LIBRARY__
2240 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2247 egrep "Lucky GNU user" >/dev/null 2>&1; then
2249 ac_cv_gnu_library_2_1=yes
2252 ac_cv_gnu_library_2_1=no
2260 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2262 GLIBC21="$ac_cv_gnu_library_2_1"
2266 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2267 stdlib.h string.h unistd.h sys/param.h
2269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2271 echo "configure:2272: checking for $ac_hdr" >&5
2272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2281 { (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2283 if test -z "$ac_err"; then
2285 eval "ac_cv_header_$ac_safe=yes"
2288 echo "configure: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2291 eval "ac_cv_header_$ac_safe=no"
2295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2296 echo "$ac_t""yes" 1>&6
2297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2298 cat >> confdefs.h <<EOF
2299 #define $ac_tr_hdr 1
2303 echo "$ac_t""no" 1>&6
2307 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2308 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2309 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2312 echo "configure:2313: checking for $ac_func" >&5
2313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319 /* System header to define __stub macros and hopefully few prototypes,
2320 which can conflict with char $ac_func(); below. */
2322 /* Override any gcc2 internal prototype to avoid an error. */
2323 /* We use char because int might match the return type of a gcc2
2324 builtin and then its argument prototype would still apply. */
2329 /* The GNU C library defines this for functions which it implements
2330 to always fail with ENOSYS. Some functions are actually named
2331 something starting with __ and the normal name is an alias. */
2332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2340 if { (eval echo configure:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2342 eval "ac_cv_func_$ac_func=yes"
2344 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2347 eval "ac_cv_func_$ac_func=no"
2352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2353 echo "$ac_t""yes" 1>&6
2354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2355 cat >> confdefs.h <<EOF
2356 #define $ac_tr_func 1
2360 echo "$ac_t""no" 1>&6
2367 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2368 if test "${with_libiconv_prefix+set}" = set; then
2369 withval="$with_libiconv_prefix"
2371 for dir in `echo "$withval" | tr : ' '`; do
2372 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2373 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2379 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2380 echo "configure:2381: checking for iconv" >&5
2381 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2385 am_cv_func_iconv="no, consider installing GNU libiconv"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2393 iconv_t cd = iconv_open("","");
2394 iconv(cd,NULL,NULL,NULL,NULL);
2398 if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2400 am_cv_func_iconv=yes
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2406 if test "$am_cv_func_iconv" != yes; then
2407 am_save_LIBS="$LIBS"
2408 LIBS="$LIBS -liconv"
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2415 iconv_t cd = iconv_open("","");
2416 iconv(cd,NULL,NULL,NULL,NULL);
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2423 am_cv_func_iconv=yes
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2429 LIBS="$am_save_LIBS"
2434 echo "$ac_t""$am_cv_func_iconv" 1>&6
2435 if test "$am_cv_func_iconv" = yes; then
2436 cat >> confdefs.h <<\EOF
2437 #define HAVE_ICONV 1
2440 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2441 echo "configure:2442: checking for iconv declaration" >&5
2442 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2456 #if defined(__STDC__) || defined(__cplusplus)
2457 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2466 if { (eval echo configure:2467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2468 am_cv_proto_iconv_arg1=""
2470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2473 am_cv_proto_iconv_arg1="const"
2476 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);"
2479 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2480 echo "$ac_t""${ac_t:-
2481 }$am_cv_proto_iconv" 1>&6
2482 cat >> confdefs.h <<EOF
2483 #define ICONV_CONST $am_cv_proto_iconv_arg1
2488 if test "$am_cv_lib_iconv" = yes; then
2494 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2495 echo "configure:2496: checking for nl_langinfo and CODESET" >&5
2496 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2502 #include <langinfo.h>
2504 char* cs = nl_langinfo(CODESET);
2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2509 am_cv_langinfo_codeset=yes
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 am_cv_langinfo_codeset=no
2520 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2521 if test $am_cv_langinfo_codeset = yes; then
2522 cat >> confdefs.h <<\EOF
2523 #define HAVE_LANGINFO_CODESET 1
2528 if test $ac_cv_header_locale_h = yes; then
2529 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2530 echo "configure:2531: checking for LC_MESSAGES" >&5
2531 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2542 if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2544 am_cv_val_LC_MESSAGES=yes
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2549 am_cv_val_LC_MESSAGES=no
2554 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2555 if test $am_cv_val_LC_MESSAGES = yes; then
2556 cat >> confdefs.h <<\EOF
2557 #define HAVE_LC_MESSAGES 1
2562 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2563 echo "configure:2564: checking whether NLS is requested" >&5
2564 # Check whether --enable-nls or --disable-nls was given.
2565 if test "${enable_nls+set}" = set; then
2566 enableval="$enable_nls"
2572 echo "$ac_t""$USE_NLS" 1>&6
2575 BUILD_INCLUDED_LIBINTL=no
2576 USE_INCLUDED_LIBINTL=no
2579 if test "$USE_NLS" = "yes"; then
2580 cat >> confdefs.h <<\EOF
2581 #define ENABLE_NLS 1
2584 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2585 echo "configure:2586: checking whether included gettext is requested" >&5
2586 # Check whether --with-included-gettext or --without-included-gettext was given.
2587 if test "${with_included_gettext+set}" = set; then
2588 withval="$with_included_gettext"
2589 nls_cv_force_use_gnu_gettext=$withval
2591 nls_cv_force_use_gnu_gettext=no
2594 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2596 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2597 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2603 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2604 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2605 echo "configure:2606: checking for libintl.h" >&5
2606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 cat > conftest.$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2612 #include <libintl.h>
2614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2615 { (eval echo configure:2616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2617 if test -z "$ac_err"; then
2619 eval "ac_cv_header_$ac_safe=yes"
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2625 eval "ac_cv_header_$ac_safe=no"
2629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2630 echo "$ac_t""yes" 1>&6
2631 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2632 echo "configure:2633: checking for GNU gettext in libc" >&5
2633 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2639 #include <libintl.h>
2640 extern int _nl_msg_cat_cntr;
2642 bindtextdomain ("", "");
2643 return (int) gettext ("") + _nl_msg_cat_cntr
2646 if { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2648 gt_cv_func_gnugettext1_libc=yes
2650 echo "configure: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2653 gt_cv_func_gnugettext1_libc=no
2658 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2660 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2661 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2662 echo "configure:2663: checking for GNU gettext in libintl" >&5
2663 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 gt_save_LIBS="$LIBS"
2667 LIBS="$LIBS -lintl $LIBICONV"
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 #include <libintl.h>
2672 extern int _nl_msg_cat_cntr;
2674 bindtextdomain ("", "");
2675 return (int) gettext ("") + _nl_msg_cat_cntr
2678 if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2680 gt_cv_func_gnugettext1_libintl=yes
2682 echo "configure: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2685 gt_cv_func_gnugettext1_libintl=no
2688 LIBS="$gt_save_LIBS"
2691 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2694 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2695 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2696 && test "$PACKAGE" != gettext; }; then
2697 cat >> confdefs.h <<\EOF
2698 #define HAVE_GETTEXT 1
2702 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2703 INTLLIBS="-lintl $LIBICONV"
2706 gt_save_LIBS="$LIBS"
2707 LIBS="$LIBS $INTLLIBS"
2708 for ac_func in dcgettext
2710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_func" >&5
2712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 /* System header to define __stub macros and hopefully few prototypes,
2719 which can conflict with char $ac_func(); below. */
2721 /* Override any gcc2 internal prototype to avoid an error. */
2722 /* We use char because int might match the return type of a gcc2
2723 builtin and then its argument prototype would still apply. */
2728 /* The GNU C library defines this for functions which it implements
2729 to always fail with ENOSYS. Some functions are actually named
2730 something starting with __ and the normal name is an alias. */
2731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2739 if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2741 eval "ac_cv_func_$ac_func=yes"
2743 echo "configure: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
2746 eval "ac_cv_func_$ac_func=no"
2751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2754 cat >> confdefs.h <<EOF
2755 #define $ac_tr_func 1
2759 echo "$ac_t""no" 1>&6
2763 LIBS="$gt_save_LIBS"
2765 # Extract the first word of "msgfmt", so it can be a program name with args.
2766 set dummy msgfmt; ac_word=$2
2767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2768 echo "configure:2769: checking for $ac_word" >&5
2769 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2774 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2778 for ac_dir in $PATH; do
2779 test -z "$ac_dir" && ac_dir=.
2780 if test -f $ac_dir/$ac_word; then
2781 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2782 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2788 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2792 MSGFMT="$ac_cv_path_MSGFMT"
2793 if test "$MSGFMT" != ":"; then
2794 echo "$ac_t""$MSGFMT" 1>&6
2796 echo "$ac_t""no" 1>&6
2799 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2800 set dummy gmsgfmt; ac_word=$2
2801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2802 echo "configure:2803: checking for $ac_word" >&5
2803 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2808 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2811 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2816 for ac_dir in $ac_dummy; do
2817 test -z "$ac_dir" && ac_dir=.
2818 if test -f $ac_dir/$ac_word; then
2819 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2824 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2828 GMSGFMT="$ac_cv_path_GMSGFMT"
2829 if test -n "$GMSGFMT"; then
2830 echo "$ac_t""$GMSGFMT" 1>&6
2832 echo "$ac_t""no" 1>&6
2836 # Extract the first word of "xgettext", so it can be a program name with args.
2837 set dummy xgettext; ac_word=$2
2838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2839 echo "configure:2840: checking for $ac_word" >&5
2840 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2845 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2849 for ac_dir in $PATH; do
2850 test -z "$ac_dir" && ac_dir=.
2851 if test -f $ac_dir/$ac_word; then
2852 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2853 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2859 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2863 XGETTEXT="$ac_cv_path_XGETTEXT"
2864 if test "$XGETTEXT" != ":"; then
2865 echo "$ac_t""$XGETTEXT" 1>&6
2867 echo "$ac_t""no" 1>&6
2875 echo "$ac_t""no" 1>&6
2879 if test "$CATOBJEXT" = "NONE"; then
2880 nls_cv_use_gnu_gettext=yes
2884 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2885 INTLOBJS="\$(GETTOBJS)"
2886 # Extract the first word of "msgfmt", so it can be a program name with args.
2887 set dummy msgfmt; ac_word=$2
2888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2889 echo "configure:2890: checking for $ac_word" >&5
2890 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2895 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2899 for ac_dir in $PATH; do
2900 test -z "$ac_dir" && ac_dir=.
2901 if test -f $ac_dir/$ac_word; then
2902 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2903 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2909 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2913 MSGFMT="$ac_cv_path_MSGFMT"
2914 if test "$MSGFMT" != ":"; then
2915 echo "$ac_t""$MSGFMT" 1>&6
2917 echo "$ac_t""no" 1>&6
2920 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2921 set dummy gmsgfmt; ac_word=$2
2922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2923 echo "configure:2924: checking for $ac_word" >&5
2924 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2929 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2932 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2937 for ac_dir in $ac_dummy; do
2938 test -z "$ac_dir" && ac_dir=.
2939 if test -f $ac_dir/$ac_word; then
2940 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2945 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2949 GMSGFMT="$ac_cv_path_GMSGFMT"
2950 if test -n "$GMSGFMT"; then
2951 echo "$ac_t""$GMSGFMT" 1>&6
2953 echo "$ac_t""no" 1>&6
2956 # Extract the first word of "xgettext", so it can be a program name with args.
2957 set dummy xgettext; ac_word=$2
2958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2959 echo "configure:2960: checking for $ac_word" >&5
2960 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2965 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2969 for ac_dir in $PATH; do
2970 test -z "$ac_dir" && ac_dir=.
2971 if test -f $ac_dir/$ac_word; then
2972 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2973 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2979 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2983 XGETTEXT="$ac_cv_path_XGETTEXT"
2984 if test "$XGETTEXT" != ":"; then
2985 echo "$ac_t""$XGETTEXT" 1>&6
2987 echo "$ac_t""no" 1>&6
2991 BUILD_INCLUDED_LIBINTL=yes
2992 USE_INCLUDED_LIBINTL=yes
2994 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2995 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2998 if test "$GMSGFMT" != ":"; then
2999 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
3002 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
3007 if test "$XGETTEXT" != ":"; then
3008 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
3011 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3021 if test "$PACKAGE" = gettext; then
3022 BUILD_INCLUDED_LIBINTL=yes
3025 for ac_prog in bison
3027 # Extract the first word of "$ac_prog", so it can be a program name with args.
3028 set dummy $ac_prog; ac_word=$2
3029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_word" >&5
3031 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 if test -n "$INTLBISON"; then
3035 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3039 for ac_dir in $ac_dummy; do
3040 test -z "$ac_dir" && ac_dir=.
3041 if test -f $ac_dir/$ac_word; then
3042 ac_cv_prog_INTLBISON="$ac_prog"
3049 INTLBISON="$ac_cv_prog_INTLBISON"
3050 if test -n "$INTLBISON"; then
3051 echo "$ac_t""$INTLBISON" 1>&6
3053 echo "$ac_t""no" 1>&6
3056 test -n "$INTLBISON" && break
3059 if test -z "$INTLBISON"; then
3062 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3063 echo "configure:3064: checking version of bison" >&5
3064 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3065 case $ac_prog_version in
3066 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3067 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3068 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3069 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3071 echo "$ac_t""$ac_prog_version" 1>&6
3073 if test $ac_verc_fail = yes; then
3077 for lang in $ALL_LINGUAS; do
3078 GMOFILES="$GMOFILES $lang.gmo"
3079 POFILES="$POFILES $lang.po"
3093 nls_cv_header_libgt=
3105 if test "x$CATOBJEXT" != "x"; then
3106 if test "x$ALL_LINGUAS" = "x"; then
3109 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3110 echo "configure:3111: checking for catalogs to be installed" >&5
3112 for presentlang in $ALL_LINGUAS; do
3114 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3115 # Use the presentlang catalog if desiredlang is
3116 # a. equal to presentlang, or
3117 # b. a variant of presentlang (because in this case,
3118 # presentlang can be used as a fallback for messages
3119 # which are not translated in the desiredlang catalog).
3120 case "$desiredlang" in
3121 "$presentlang"*) useit=yes;;
3124 if test $useit = yes; then
3125 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3128 LINGUAS=$NEW_LINGUAS
3129 echo "$ac_t""$LINGUAS" 1>&6
3132 if test -n "$LINGUAS"; then
3133 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3138 if test -n "$ac_aux_dir"; then
3139 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3141 if test -z "$MKINSTALLDIRS"; then
3142 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3146 INTL_LIBTOOL_SUFFIX_PREFIX=
3150 # Find a good install program. We prefer a C program (faster),
3151 # so one script is as good as another. But avoid the broken or
3152 # incompatible versions:
3153 # SysV /etc/install, /usr/sbin/install
3154 # SunOS /usr/etc/install
3155 # IRIX /sbin/install
3157 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3158 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3159 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3160 # ./install, which can be erroneously created by make from ./install.sh.
3161 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3162 echo "configure:3163: checking for a BSD compatible install" >&5
3163 if test -z "$INSTALL"; then
3164 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3168 for ac_dir in $PATH; do
3169 # Account for people who put trailing slashes in PATH elements.
3171 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3173 # OSF1 and SCO ODT 3.0 have their own names for install.
3174 # Don't use installbsd from OSF since it installs stuff as root
3176 for ac_prog in ginstall scoinst install; do
3177 if test -f $ac_dir/$ac_prog; then
3178 if test $ac_prog = install &&
3179 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3180 # AIX install. It has an incompatible calling convention.
3183 ac_cv_path_install="$ac_dir/$ac_prog -c"
3194 if test "${ac_cv_path_install+set}" = set; then
3195 INSTALL="$ac_cv_path_install"
3197 # As a last resort, use the slow shell script. We don't cache a
3198 # path for INSTALL within a source directory, because that will
3199 # break other packages using the cache if that directory is
3200 # removed, or if the path is relative.
3201 INSTALL="$ac_install_sh"
3204 echo "$ac_t""$INSTALL" 1>&6
3206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3207 # It thinks the first close brace ends the variable substitution.
3208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3215 echo $ac_n "checking for working const""... $ac_c" 1>&6
3216 echo "configure:3217: checking for working const" >&5
3217 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3226 /* Ultrix mips cc rejects this. */
3227 typedef int charset[2]; const charset x;
3228 /* SunOS 4.1.1 cc rejects this. */
3229 char const *const *ccp;
3231 /* NEC SVR4.0.2 mips cc rejects this. */
3232 struct point {int x, y;};
3233 static struct point const zero = {0,0};
3234 /* AIX XL C 1.02.0.0 rejects this.
3235 It does not let you subtract one const X* pointer from another in an arm
3236 of an if-expression whose if-part is not a constant expression */
3237 const char *g = "string";
3238 ccp = &g + (g ? g-g : 0);
3239 /* HPUX 7.0 cc rejects these. */
3242 ccp = (char const *const *) p;
3243 { /* SCO 3.2v4 cc rejects this. */
3245 char const *s = 0 ? (char *) 0 : (char const *) 0;
3249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3251 const int *foo = &x[0];
3254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3255 typedef const int *iptr;
3259 { /* AIX XL C 1.02.0.0 rejects this saying
3260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3261 struct s { int j; const int *ap[3]; };
3262 struct s *b; b->j = 5;
3264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3270 if { (eval echo configure:3271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3282 echo "$ac_t""$ac_cv_c_const" 1>&6
3283 if test $ac_cv_c_const = no; then
3284 cat >> confdefs.h <<\EOF
3290 echo $ac_n "checking for inline""... $ac_c" 1>&6
3291 echo "configure:3292: checking for inline" >&5
3292 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3296 for ac_kw in inline __inline__ __inline; do
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3305 if { (eval echo configure:3306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3307 ac_cv_c_inline=$ac_kw; break
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3317 echo "$ac_t""$ac_cv_c_inline" 1>&6
3318 case "$ac_cv_c_inline" in
3320 no) cat >> confdefs.h <<\EOF
3324 *) cat >> confdefs.h <<EOF
3325 #define inline $ac_cv_c_inline
3331 vlc_LDFLAGS="${LDFLAGS}"
3333 case "x${target_os}" in
3342 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3343 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3344 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3348 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3352 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3353 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3357 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}windres; ac_word=$2
3359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_word" >&5
3361 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 if test -n "$WINDRES"; then
3365 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3369 for ac_dir in $ac_dummy; do
3370 test -z "$ac_dir" && ac_dir=.
3371 if test -f $ac_dir/$ac_word; then
3372 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3379 WINDRES="$ac_cv_prog_WINDRES"
3380 if test -n "$WINDRES"; then
3381 echo "$ac_t""$WINDRES" 1>&6
3383 echo "$ac_t""no" 1>&6
3387 if test -z "$ac_cv_prog_WINDRES"; then
3388 if test -n "$ac_tool_prefix"; then
3389 # Extract the first word of "windres", so it can be a program name with args.
3390 set dummy windres; ac_word=$2
3391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3392 echo "configure:3393: checking for $ac_word" >&5
3393 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 if test -n "$WINDRES"; then
3397 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3401 for ac_dir in $ac_dummy; do
3402 test -z "$ac_dir" && ac_dir=.
3403 if test -f $ac_dir/$ac_word; then
3404 ac_cv_prog_WINDRES="windres"
3409 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3412 WINDRES="$ac_cv_prog_WINDRES"
3413 if test -n "$WINDRES"; then
3414 echo "$ac_t""$WINDRES" 1>&6
3416 echo "$ac_t""no" 1>&6
3424 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3425 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3426 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3427 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3428 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3429 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3430 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3434 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3435 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3442 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3443 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3444 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3445 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3446 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3453 if test "x${SYS}" = "xmingw32"
3455 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3457 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3458 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3461 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3463 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3466 echo "configure:3467: checking for $ac_func" >&5
3467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 /* System header to define __stub macros and hopefully few prototypes,
3474 which can conflict with char $ac_func(); below. */
3476 /* Override any gcc2 internal prototype to avoid an error. */
3477 /* We use char because int might match the return type of a gcc2
3478 builtin and then its argument prototype would still apply. */
3483 /* The GNU C library defines this for functions which it implements
3484 to always fail with ENOSYS. Some functions are actually named
3485 something starting with __ and the normal name is an alias. */
3486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3494 if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3496 eval "ac_cv_func_$ac_func=yes"
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3501 eval "ac_cv_func_$ac_func=no"
3506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3507 echo "$ac_t""yes" 1>&6
3508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3509 cat >> confdefs.h <<EOF
3510 #define $ac_tr_func 1
3514 echo "$ac_t""no" 1>&6
3519 echo $ac_n "checking for connect""... $ac_c" 1>&6
3520 echo "configure:3521: checking for connect" >&5
3521 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3524 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 /* System header to define __stub macros and hopefully few prototypes,
3528 which can conflict with char connect(); below. */
3530 /* Override any gcc2 internal prototype to avoid an error. */
3531 /* We use char because int might match the return type of a gcc2
3532 builtin and then its argument prototype would still apply. */
3537 /* The GNU C library defines this for functions which it implements
3538 to always fail with ENOSYS. Some functions are actually named
3539 something starting with __ and the normal name is an alias. */
3540 #if defined (__stub_connect) || defined (__stub___connect)
3548 if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3550 eval "ac_cv_func_connect=yes"
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3555 eval "ac_cv_func_connect=no"
3560 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3561 echo "$ac_t""yes" 1>&6
3564 echo "$ac_t""no" 1>&6
3566 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3567 echo "configure:3568: checking for connect in -lsocket" >&5
3568 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3572 ac_save_LIBS="$LIBS"
3573 LIBS="-lsocket $LIBS"
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 /* Override any gcc2 internal prototype to avoid an error. */
3578 /* We use char because int might match the return type of a gcc2
3579 builtin and then its argument prototype would still apply. */
3586 if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3588 eval "ac_cv_lib_$ac_lib_var=yes"
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3593 eval "ac_cv_lib_$ac_lib_var=no"
3596 LIBS="$ac_save_LIBS"
3599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3600 echo "$ac_t""yes" 1>&6
3601 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3602 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3605 echo "$ac_t""no" 1>&6
3610 echo $ac_n "checking for send""... $ac_c" 1>&6
3611 echo "configure:3612: checking for send" >&5
3612 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3615 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 /* System header to define __stub macros and hopefully few prototypes,
3619 which can conflict with char send(); below. */
3621 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3628 /* The GNU C library defines this for functions which it implements
3629 to always fail with ENOSYS. Some functions are actually named
3630 something starting with __ and the normal name is an alias. */
3631 #if defined (__stub_send) || defined (__stub___send)
3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3641 eval "ac_cv_func_send=yes"
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3646 eval "ac_cv_func_send=no"
3651 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3652 echo "$ac_t""yes" 1>&6
3655 echo "$ac_t""no" 1>&6
3657 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3658 echo "configure:3659: checking for send in -lsocket" >&5
3659 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 ac_save_LIBS="$LIBS"
3664 LIBS="-lsocket $LIBS"
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3677 if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3679 eval "ac_cv_lib_$ac_lib_var=yes"
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 eval "ac_cv_lib_$ac_lib_var=no"
3687 LIBS="$ac_save_LIBS"
3690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3691 echo "$ac_t""yes" 1>&6
3692 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3695 echo "$ac_t""no" 1>&6
3700 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3701 echo "configure:3702: checking for gethostbyname" >&5
3702 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* System header to define __stub macros and hopefully few prototypes,
3709 which can conflict with char gethostbyname(); below. */
3711 /* Override any gcc2 internal prototype to avoid an error. */
3712 /* We use char because int might match the return type of a gcc2
3713 builtin and then its argument prototype would still apply. */
3714 char gethostbyname();
3718 /* The GNU C library defines this for functions which it implements
3719 to always fail with ENOSYS. Some functions are actually named
3720 something starting with __ and the normal name is an alias. */
3721 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3731 eval "ac_cv_func_gethostbyname=yes"
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3736 eval "ac_cv_func_gethostbyname=no"
3741 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3745 echo "$ac_t""no" 1>&6
3747 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3748 echo "configure:3749: checking for gethostbyname in -lnsl" >&5
3749 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3751 echo $ac_n "(cached) $ac_c" 1>&6
3753 ac_save_LIBS="$LIBS"
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 /* Override any gcc2 internal prototype to avoid an error. */
3759 /* We use char because int might match the return type of a gcc2
3760 builtin and then its argument prototype would still apply. */
3761 char gethostbyname();
3767 if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3769 eval "ac_cv_lib_$ac_lib_var=yes"
3771 echo "configure: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3774 eval "ac_cv_lib_$ac_lib_var=no"
3777 LIBS="$ac_save_LIBS"
3780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3781 echo "$ac_t""yes" 1>&6
3782 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3784 echo "$ac_t""no" 1>&6
3790 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3791 echo "configure:3792: checking for gethostbyname" >&5
3792 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 /* System header to define __stub macros and hopefully few prototypes,
3799 which can conflict with char gethostbyname(); below. */
3801 /* Override any gcc2 internal prototype to avoid an error. */
3802 /* We use char because int might match the return type of a gcc2
3803 builtin and then its argument prototype would still apply. */
3804 char gethostbyname();
3808 /* The GNU C library defines this for functions which it implements
3809 to always fail with ENOSYS. Some functions are actually named
3810 something starting with __ and the normal name is an alias. */
3811 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3819 if { (eval echo configure:3820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3821 eval "ac_cv_func_gethostbyname=yes"
3823 echo "configure: failed program was:" >&5
3824 cat conftest.$ac_ext >&5
3826 eval "ac_cv_func_gethostbyname=no"
3831 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3832 echo "$ac_t""yes" 1>&6
3835 echo "$ac_t""no" 1>&6
3837 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3838 echo "configure:3839: checking for gethostbyname in -lbind" >&5
3839 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3841 echo $ac_n "(cached) $ac_c" 1>&6
3843 ac_save_LIBS="$LIBS"
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848 /* Override any gcc2 internal prototype to avoid an error. */
3849 /* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3851 char gethostbyname();
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3859 eval "ac_cv_lib_$ac_lib_var=yes"
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3864 eval "ac_cv_lib_$ac_lib_var=no"
3867 LIBS="$ac_save_LIBS"
3870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3871 echo "$ac_t""yes" 1>&6
3872 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3874 echo "$ac_t""no" 1>&6
3881 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3882 echo "configure:3883: checking for nanosleep" >&5
3883 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3886 cat > conftest.$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* System header to define __stub macros and hopefully few prototypes,
3890 which can conflict with char nanosleep(); below. */
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 /* We use char because int might match the return type of a gcc2
3894 builtin and then its argument prototype would still apply. */
3899 /* The GNU C library defines this for functions which it implements
3900 to always fail with ENOSYS. Some functions are actually named
3901 something starting with __ and the normal name is an alias. */
3902 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3912 eval "ac_cv_func_nanosleep=yes"
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3917 eval "ac_cv_func_nanosleep=no"
3922 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3926 echo "$ac_t""no" 1>&6
3928 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3929 echo "configure:3930: checking for nanosleep in -lrt" >&5
3930 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3934 ac_save_LIBS="$LIBS"
3936 cat > conftest.$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3939 /* Override any gcc2 internal prototype to avoid an error. */
3940 /* We use char because int might match the return type of a gcc2
3941 builtin and then its argument prototype would still apply. */
3948 if { (eval echo configure:3949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3950 eval "ac_cv_lib_$ac_lib_var=yes"
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3955 eval "ac_cv_lib_$ac_lib_var=no"
3958 LIBS="$ac_save_LIBS"
3961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
3963 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3965 echo "$ac_t""no" 1>&6
3966 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3967 echo "configure:3968: checking for nanosleep in -lposix4" >&5
3968 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3972 ac_save_LIBS="$LIBS"
3973 LIBS="-lposix4 $LIBS"
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 /* Override any gcc2 internal prototype to avoid an error. */
3978 /* We use char because int might match the return type of a gcc2
3979 builtin and then its argument prototype would still apply. */
3986 if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3988 eval "ac_cv_lib_$ac_lib_var=yes"
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3993 eval "ac_cv_lib_$ac_lib_var=no"
3996 LIBS="$ac_save_LIBS"
3999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4000 echo "$ac_t""yes" 1>&6
4001 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
4003 echo "$ac_t""no" 1>&6
4012 if test x$have_nanosleep = x1; then
4013 cat >> confdefs.h <<\EOF
4014 #define HAVE_NANOSLEEP 1
4019 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
4020 echo "configure:4021: checking for sem_init in -lrt" >&5
4021 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
4022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 ac_save_LIBS="$LIBS"
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4030 /* Override any gcc2 internal prototype to avoid an error. */
4031 /* We use char because int might match the return type of a gcc2
4032 builtin and then its argument prototype would still apply. */
4039 if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4041 eval "ac_cv_lib_$ac_lib_var=yes"
4043 echo "configure: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4046 eval "ac_cv_lib_$ac_lib_var=no"
4049 LIBS="$ac_save_LIBS"
4052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4053 echo "$ac_t""yes" 1>&6
4054 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
4056 echo "$ac_t""no" 1>&6
4060 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
4061 echo "configure:4062: checking for inet_aton" >&5
4062 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 /* System header to define __stub macros and hopefully few prototypes,
4069 which can conflict with char inet_aton(); below. */
4071 /* Override any gcc2 internal prototype to avoid an error. */
4072 /* We use char because int might match the return type of a gcc2
4073 builtin and then its argument prototype would still apply. */
4078 /* The GNU C library defines this for functions which it implements
4079 to always fail with ENOSYS. Some functions are actually named
4080 something starting with __ and the normal name is an alias. */
4081 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
4089 if { (eval echo configure:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4091 eval "ac_cv_func_inet_aton=yes"
4093 echo "configure: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4096 eval "ac_cv_func_inet_aton=no"
4101 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
4102 echo "$ac_t""yes" 1>&6
4105 echo "$ac_t""no" 1>&6
4107 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
4108 echo "configure:4109: checking for inet_aton in -lresolv" >&5
4109 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
4110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4113 ac_save_LIBS="$LIBS"
4114 LIBS="-lresolv $LIBS"
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 /* Override any gcc2 internal prototype to avoid an error. */
4119 /* We use char because int might match the return type of a gcc2
4120 builtin and then its argument prototype would still apply. */
4127 if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4129 eval "ac_cv_lib_$ac_lib_var=yes"
4131 echo "configure: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4134 eval "ac_cv_lib_$ac_lib_var=no"
4137 LIBS="$ac_save_LIBS"
4140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4141 echo "$ac_t""yes" 1>&6
4142 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
4144 echo "$ac_t""no" 1>&6
4150 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4151 echo "configure:4152: checking for textdomain" >&5
4152 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4158 /* System header to define __stub macros and hopefully few prototypes,
4159 which can conflict with char textdomain(); below. */
4161 /* Override any gcc2 internal prototype to avoid an error. */
4162 /* We use char because int might match the return type of a gcc2
4163 builtin and then its argument prototype would still apply. */
4168 /* The GNU C library defines this for functions which it implements
4169 to always fail with ENOSYS. Some functions are actually named
4170 something starting with __ and the normal name is an alias. */
4171 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4179 if { (eval echo configure:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4181 eval "ac_cv_func_textdomain=yes"
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 eval "ac_cv_func_textdomain=no"
4191 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
4195 echo "$ac_t""no" 1>&6
4197 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4198 echo "configure:4199: checking for textdomain in -lintl" >&5
4199 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4203 ac_save_LIBS="$LIBS"
4205 cat > conftest.$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4208 /* Override any gcc2 internal prototype to avoid an error. */
4209 /* We use char because int might match the return type of a gcc2
4210 builtin and then its argument prototype would still apply. */
4217 if { (eval echo configure:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4219 eval "ac_cv_lib_$ac_lib_var=yes"
4221 echo "configure: failed program was:" >&5
4222 cat conftest.$ac_ext >&5
4224 eval "ac_cv_lib_$ac_lib_var=no"
4227 LIBS="$ac_save_LIBS"
4230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4231 echo "$ac_t""yes" 1>&6
4232 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4233 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4236 echo "$ac_t""no" 1>&6
4244 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4245 echo "configure:4246: checking for getopt_long" >&5
4246 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 /* System header to define __stub macros and hopefully few prototypes,
4253 which can conflict with char getopt_long(); below. */
4255 /* Override any gcc2 internal prototype to avoid an error. */
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4262 /* The GNU C library defines this for functions which it implements
4263 to always fail with ENOSYS. Some functions are actually named
4264 something starting with __ and the normal name is an alias. */
4265 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4275 eval "ac_cv_func_getopt_long=yes"
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4280 eval "ac_cv_func_getopt_long=no"
4285 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4287 cat >> confdefs.h <<\EOF
4288 #define HAVE_GETOPT_LONG 1
4292 echo "$ac_t""no" 1>&6
4293 # FreeBSD has a gnugetopt library for this:
4294 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4295 echo "configure:4296: checking for getopt_long in -lgnugetopt" >&5
4296 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
4300 ac_save_LIBS="$LIBS"
4301 LIBS="-lgnugetopt $LIBS"
4302 cat > conftest.$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4305 /* Override any gcc2 internal prototype to avoid an error. */
4306 /* We use char because int might match the return type of a gcc2
4307 builtin and then its argument prototype would still apply. */
4314 if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4316 eval "ac_cv_lib_$ac_lib_var=yes"
4318 echo "configure: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4321 eval "ac_cv_lib_$ac_lib_var=no"
4324 LIBS="$ac_save_LIBS"
4327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4328 echo "$ac_t""yes" 1>&6
4329 cat >> confdefs.h <<\EOF
4330 #define HAVE_GETOPT_LONG 1
4332 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4334 echo "$ac_t""no" 1>&6
4341 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4342 echo "configure:4343: checking return type of signal handlers" >&5
4343 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 #include <sys/types.h>
4355 extern "C" void (*signal (int, void (*)(int)))(int);
4357 void (*signal ()) ();
4364 if { (eval echo configure:4365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4366 ac_cv_type_signal=void
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 ac_cv_type_signal=int
4376 echo "$ac_t""$ac_cv_type_signal" 1>&6
4377 cat >> confdefs.h <<EOF
4378 #define RETSIGTYPE $ac_cv_type_signal
4382 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4383 echo "configure:4384: checking for dlopen in -ldl" >&5
4384 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4388 ac_save_LIBS="$LIBS"
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* Override any gcc2 internal prototype to avoid an error. */
4394 /* We use char because int might match the return type of a gcc2
4395 builtin and then its argument prototype would still apply. */
4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4404 eval "ac_cv_lib_$ac_lib_var=yes"
4406 echo "configure: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4409 eval "ac_cv_lib_$ac_lib_var=no"
4412 LIBS="$ac_save_LIBS"
4415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4416 echo "$ac_t""yes" 1>&6
4417 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4419 echo "$ac_t""no" 1>&6
4422 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4423 echo "configure:4424: checking for cos in -lm" >&5
4424 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 ac_save_LIBS="$LIBS"
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4433 /* Override any gcc2 internal prototype to avoid an error. */
4434 /* We use char because int might match the return type of a gcc2
4435 builtin and then its argument prototype would still apply. */
4442 if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4444 eval "ac_cv_lib_$ac_lib_var=yes"
4446 echo "configure: failed program was:" >&5
4447 cat conftest.$ac_ext >&5
4449 eval "ac_cv_lib_$ac_lib_var=no"
4452 LIBS="$ac_save_LIBS"
4455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4457 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4458 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4460 echo "$ac_t""no" 1>&6
4463 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4464 echo "configure:4465: checking for pow in -lm" >&5
4465 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 ac_save_LIBS="$LIBS"
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4474 /* Override any gcc2 internal prototype to avoid an error. */
4475 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4485 eval "ac_cv_lib_$ac_lib_var=yes"
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4490 eval "ac_cv_lib_$ac_lib_var=no"
4493 LIBS="$ac_save_LIBS"
4496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4499 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4500 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4501 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4502 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4505 echo "$ac_t""no" 1>&6
4510 if test "x${THREAD_LIB}" = "xerror"; then
4511 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4512 echo "configure:4513: checking for main in -lpthread" >&5
4513 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4517 ac_save_LIBS="$LIBS"
4518 LIBS="-lpthread $LIBS"
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4529 eval "ac_cv_lib_$ac_lib_var=yes"
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4534 eval "ac_cv_lib_$ac_lib_var=no"
4537 LIBS="$ac_save_LIBS"
4540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4541 echo "$ac_t""yes" 1>&6
4542 THREAD_LIB="-lpthread"
4544 echo "$ac_t""no" 1>&6
4548 if test "x${THREAD_LIB}" = "xerror"; then
4549 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4550 echo "configure:4551: checking for main in -lpthreads" >&5
4551 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 ac_save_LIBS="$LIBS"
4556 LIBS="-lpthreads $LIBS"
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4565 if { (eval echo configure:4566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4567 eval "ac_cv_lib_$ac_lib_var=yes"
4569 echo "configure: failed program was:" >&5
4570 cat conftest.$ac_ext >&5
4572 eval "ac_cv_lib_$ac_lib_var=no"
4575 LIBS="$ac_save_LIBS"
4578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4579 echo "$ac_t""yes" 1>&6
4580 THREAD_LIB="-lpthreads"
4582 echo "$ac_t""no" 1>&6
4586 if test "x${THREAD_LIB}" = "xerror"; then
4587 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4588 echo "configure:4589: checking for main in -lc_r" >&5
4589 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4593 ac_save_LIBS="$LIBS"
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4603 if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4605 eval "ac_cv_lib_$ac_lib_var=yes"
4607 echo "configure: failed program was:" >&5
4608 cat conftest.$ac_ext >&5
4610 eval "ac_cv_lib_$ac_lib_var=no"
4613 LIBS="$ac_save_LIBS"
4616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4617 echo "$ac_t""yes" 1>&6
4620 echo "$ac_t""no" 1>&6
4624 if test "x${THREAD_LIB}" = "xerror"; then
4625 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4626 echo "configure:4627: checking for pthread_mutex_lock" >&5
4627 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 /* System header to define __stub macros and hopefully few prototypes,
4634 which can conflict with char pthread_mutex_lock(); below. */
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4639 char pthread_mutex_lock();
4643 /* The GNU C library defines this for functions which it implements
4644 to always fail with ENOSYS. Some functions are actually named
4645 something starting with __ and the normal name is an alias. */
4646 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4649 pthread_mutex_lock();
4654 if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4656 eval "ac_cv_func_pthread_mutex_lock=yes"
4658 echo "configure: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
4661 eval "ac_cv_func_pthread_mutex_lock=no"
4666 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4667 echo "$ac_t""yes" 1>&6
4670 echo "$ac_t""no" 1>&6
4676 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4677 echo "configure:4678: checking for cthread_fork in -lthreads" >&5
4678 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 ac_save_LIBS="$LIBS"
4683 LIBS="-lthreads $LIBS"
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4687 /* Override any gcc2 internal prototype to avoid an error. */
4688 /* We use char because int might match the return type of a gcc2
4689 builtin and then its argument prototype would still apply. */
4690 char cthread_fork();
4696 if { (eval echo configure:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4698 eval "ac_cv_lib_$ac_lib_var=yes"
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4703 eval "ac_cv_lib_$ac_lib_var=no"
4706 LIBS="$ac_save_LIBS"
4709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4711 THREAD_LIB="-lthreads"
4713 echo "$ac_t""no" 1>&6
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4720 #include <pthread.h>
4722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4723 egrep "pthread_cond_t" >/dev/null 2>&1; then
4726 cat >> confdefs.h <<\EOF
4727 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 #include <pthread.h>
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739 egrep "pthread_once" >/dev/null 2>&1; then
4742 cat >> confdefs.h <<\EOF
4743 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4749 cat > conftest.$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4752 #include <strings.h>
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 egrep "strncasecmp" >/dev/null 2>&1; then
4758 cat >> confdefs.h <<\EOF
4759 #define STRNCASECMP_IN_STRINGS_H 1
4766 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4770 echo "configure:4771: checking for $ac_hdr" >&5
4771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4780 { (eval echo configure:4781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4782 if test -z "$ac_err"; then
4784 eval "ac_cv_header_$ac_safe=yes"
4787 echo "configure: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4790 eval "ac_cv_header_$ac_safe=no"
4794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4797 cat >> confdefs.h <<EOF
4798 #define $ac_tr_hdr 1
4802 echo "$ac_t""no" 1>&6
4806 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4810 echo "configure:4811: checking for $ac_hdr" >&5
4811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4820 { (eval echo configure:4821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4822 if test -z "$ac_err"; then
4824 eval "ac_cv_header_$ac_safe=yes"
4827 echo "configure: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4830 eval "ac_cv_header_$ac_safe=no"
4834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4835 echo "$ac_t""yes" 1>&6
4836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4837 cat >> confdefs.h <<EOF
4838 #define $ac_tr_hdr 1
4842 echo "$ac_t""no" 1>&6
4846 for ac_hdr in dlfcn.h image.h
4848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4850 echo "configure:4851: checking for $ac_hdr" >&5
4851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4860 { (eval echo configure:4861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4862 if test -z "$ac_err"; then
4864 eval "ac_cv_header_$ac_safe=yes"
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4870 eval "ac_cv_header_$ac_safe=no"
4874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4875 echo "$ac_t""yes" 1>&6
4876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4877 cat >> confdefs.h <<EOF
4878 #define $ac_tr_hdr 1
4882 echo "$ac_t""no" 1>&6
4886 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4888 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4890 echo "configure:4891: checking for $ac_hdr" >&5
4891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4900 { (eval echo configure:4901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4902 if test -z "$ac_err"; then
4904 eval "ac_cv_header_$ac_safe=yes"
4907 echo "configure: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 eval "ac_cv_header_$ac_safe=no"
4914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4917 cat >> confdefs.h <<EOF
4918 #define $ac_tr_hdr 1
4922 echo "$ac_t""no" 1>&6
4926 for ac_hdr in machine/param.h sys/shm.h
4928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4930 echo "configure:4931: checking for $ac_hdr" >&5
4931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4934 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4940 { (eval echo configure:4941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4942 if test -z "$ac_err"; then
4944 eval "ac_cv_header_$ac_safe=yes"
4947 echo "configure: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4950 eval "ac_cv_header_$ac_safe=no"
4954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4955 echo "$ac_t""yes" 1>&6
4956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4957 cat >> confdefs.h <<EOF
4958 #define $ac_tr_hdr 1
4962 echo "$ac_t""no" 1>&6
4966 for ac_hdr in linux/version.h
4968 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4969 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4970 echo "configure:4971: checking for $ac_hdr" >&5
4971 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4974 cat > conftest.$ac_ext <<EOF
4975 #line 4976 "configure"
4976 #include "confdefs.h"
4979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4980 { (eval echo configure:4981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4982 if test -z "$ac_err"; then
4984 eval "ac_cv_header_$ac_safe=yes"
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4990 eval "ac_cv_header_$ac_safe=no"
4994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4995 echo "$ac_t""yes" 1>&6
4996 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4997 cat >> confdefs.h <<EOF
4998 #define $ac_tr_hdr 1
5002 echo "$ac_t""no" 1>&6
5007 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5008 echo "configure:5009: checking whether time.h and sys/time.h may both be included" >&5
5009 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5015 #include <sys/types.h>
5016 #include <sys/time.h>
5022 if { (eval echo configure:5023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5024 ac_cv_header_time=yes
5026 echo "configure: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5029 ac_cv_header_time=no
5034 echo "$ac_t""$ac_cv_header_time" 1>&6
5035 if test $ac_cv_header_time = yes; then
5036 cat >> confdefs.h <<\EOF
5037 #define TIME_WITH_SYS_TIME 1
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5049 egrep "nanosleep" >/dev/null 2>&1; then
5052 cat >> confdefs.h <<\EOF
5053 #define HAVE_DECL_NANOSLEEP 1
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5064 #include <sys/time.h>
5066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5067 egrep "timespec" >/dev/null 2>&1; then
5070 cat >> confdefs.h <<\EOF
5071 #define HAVE_STRUCT_TIMESPEC 1
5079 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
5081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5083 echo "configure:5084: checking for $ac_hdr" >&5
5084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5085 echo $ac_n "(cached) $ac_c" 1>&6
5087 cat > conftest.$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5093 { (eval echo configure:5094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5095 if test -z "$ac_err"; then
5097 eval "ac_cv_header_$ac_safe=yes"
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 eval "ac_cv_header_$ac_safe=no"
5107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5108 echo "$ac_t""yes" 1>&6
5109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5110 cat >> confdefs.h <<EOF
5111 #define $ac_tr_hdr 1
5115 echo "$ac_t""no" 1>&6
5120 if test "x${x_includes}" = "xNONE"; then
5121 x_includes="/usr/X11R6/include"
5123 if test "x${x_libraries}" = "xNONE"; then
5124 x_libraries="/usr/X11R6/lib"
5127 if test "x${SYS}" != "xmingw32"
5129 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
5130 for ac_hdr in X11/extensions/dpms.h
5132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5134 echo "configure:5135: checking for $ac_hdr" >&5
5135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5144 { (eval echo configure:5145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5146 if test -z "$ac_err"; then
5148 eval "ac_cv_header_$ac_safe=yes"
5151 echo "configure: failed program was:" >&5
5152 cat conftest.$ac_ext >&5
5154 eval "ac_cv_header_$ac_safe=no"
5158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5159 echo "$ac_t""yes" 1>&6
5160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5161 cat >> confdefs.h <<EOF
5162 #define $ac_tr_hdr 1
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168 #include <X11/extensions/dpms.h>
5170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5171 egrep "DPMSInfo" >/dev/null 2>&1; then
5174 cat >> confdefs.h <<\EOF
5175 #define DPMSINFO_IN_DPMS_H 1
5184 echo "$ac_t""no" 1>&6
5188 CPPFLAGS="${save_CPPFLAGS}"
5191 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5192 echo "configure:5193: checking for ntohl in sys/param.h" >&5
5193 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 CFLAGS="${save_CFLAGS} -Wall -Werror"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 #include <sys/param.h>
5202 void foo() { int meuh; ntohl(meuh); }
5205 if { (eval echo configure:5206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5207 ac_cv_c_ntohl_sys_param_h=yes
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5212 ac_cv_c_ntohl_sys_param_h=no
5217 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5218 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5219 cat >> confdefs.h <<\EOF
5220 #define NTOHL_IN_SYS_PARAM_H 1
5225 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5226 echo "configure:5227: checking if \$CC accepts -finline-limit" >&5
5227 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5230 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5231 cat > conftest.$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5239 if { (eval echo configure:5240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5241 ac_cv_c_inline_limit=yes
5243 echo "configure: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5246 ac_cv_c_inline_limit=no
5251 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5252 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5253 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5256 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5257 echo "configure:5258: checking if \$CC accepts -Wall -Winline" >&5
5258 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5270 if { (eval echo configure:5271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5272 ac_cv_c_Wall_Winline=yes
5274 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5277 ac_cv_c_Wall_Winline=no
5282 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5283 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5284 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5286 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5287 echo "configure:5288: checking if \$CC accepts -wall -winline" >&5
5288 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5289 echo $ac_n "(cached) $ac_c" 1>&6
5291 CFLAGS="-wall -winline ${save_CFLAGS}"
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5300 if { (eval echo configure:5301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5302 ac_cv_c_wall_winline=yes
5304 echo "configure: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5307 ac_cv_c_wall_winline=no
5312 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5313 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5314 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5318 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5319 echo "configure:5320: checking if \$CC accepts -pipe" >&5
5320 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 CFLAGS="${save_CFLAGS} -pipe"
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5332 if { (eval echo configure:5333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5336 echo "configure: failed program was:" >&5
5337 cat conftest.$ac_ext >&5
5344 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5345 if test "x${ac_cv_c_pipe}" != "xno"; then
5346 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5349 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5350 echo "configure:5351: checking if \$CC accepts -O3" >&5
5351 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 CFLAGS="${save_CFLAGS} -O3"
5355 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5363 if { (eval echo configure:5364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5367 echo "configure: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5375 echo "$ac_t""$ac_cv_c_o3" 1>&6
5376 if test "x${ac_cv_c_o3}" != "xno"; then
5377 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5379 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5380 echo "configure:5381: checking if \$CC accepts -O2" >&5
5381 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 CFLAGS="${save_CFLAGS} -O2"
5385 cat > conftest.$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5393 if { (eval echo configure:5394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5405 echo "$ac_t""$ac_cv_c_o2" 1>&6
5406 if test "x${ac_cv_c_o2}" != "xno"; then
5407 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5409 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5410 echo "configure:5411: checking if \$CC accepts -O" >&5
5411 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5412 echo $ac_n "(cached) $ac_c" 1>&6
5414 CFLAGS="${save_CFLAGS} -O"
5415 cat > conftest.$ac_ext <<EOF
5416 #line 5417 "configure"
5417 #include "confdefs.h"
5423 if { (eval echo configure:5424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5427 echo "configure: failed program was:" >&5
5428 cat conftest.$ac_ext >&5
5435 echo "$ac_t""$ac_cv_c_o" 1>&6
5436 if test "x${ac_cv_c_o}" != "xno"; then
5437 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5442 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5443 echo "configure:5444: checking if \$CC accepts -ffast-math" >&5
5444 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5447 CFLAGS="${save_CFLAGS} -ffast-math"
5448 cat > conftest.$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5456 if { (eval echo configure:5457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5458 ac_cv_c_fast_math=yes
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5463 ac_cv_c_fast_math=no
5468 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5469 if test "x${ac_cv_c_fast_math}" != "xno"; then
5470 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5473 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5474 echo "configure:5475: checking if \$CC accepts -funroll-loops" >&5
5475 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5478 CFLAGS="${save_CFLAGS} -funroll-loops"
5479 cat > conftest.$ac_ext <<EOF
5480 #line 5481 "configure"
5481 #include "confdefs.h"
5487 if { (eval echo configure:5488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5489 ac_cv_c_unroll_loops=yes
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5494 ac_cv_c_unroll_loops=no
5499 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5500 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5501 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5504 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5505 echo "configure:5506: checking if \$CC accepts -fomit-frame-pointer" >&5
5506 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5507 echo $ac_n "(cached) $ac_c" 1>&6
5509 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5518 if { (eval echo configure:5519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5520 ac_cv_c_omit_frame_pointer=yes
5522 echo "configure: failed program was:" >&5
5523 cat conftest.$ac_ext >&5
5525 ac_cv_c_omit_frame_pointer=no
5530 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5531 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5532 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5533 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5534 i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5537 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5538 echo "configure:5539: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5539 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5543 cat > conftest.$ac_ext <<EOF
5544 #line 5545 "configure"
5545 #include "confdefs.h"
5551 if { (eval echo configure:5552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5555 echo "configure: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5563 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5564 if test "x${ac_cv_ld_darwin}" != "xno"; then
5565 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5568 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5569 echo "configure:5570: checking if \$CC accepts -shared" >&5
5570 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5571 echo $ac_n "(cached) $ac_c" 1>&6
5573 CFLAGS="${save_CFLAGS} -shared"
5574 cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5582 if { (eval echo configure:5583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5584 ac_cv_ld_plugins=yes
5586 echo "configure: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5594 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5595 if test "x${ac_cv_ld_plugins}" != "xno"; then
5596 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5599 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5600 echo "configure:5601: checking for variadic cpp macros" >&5
5601 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5604 CFLAGS="${save_CFLAGS}"
5605 cat > conftest.$ac_ext <<EOF
5606 #line 5607 "configure"
5607 #include "confdefs.h"
5609 #define a(b,c...) printf(b,##c)
5611 a("foo");a("%s","bar");a("%s%s","baz","quux");
5614 if { (eval echo configure:5615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5616 ac_cv_cpp_variadic_macros=yes
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5621 ac_cv_cpp_variadic_macros=no
5626 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5627 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5628 cat >> confdefs.h <<\EOF
5629 #define HAVE_VARIADIC_MACROS 1
5634 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5635 echo "configure:5636: checking __attribute__ ((aligned ())) support" >&5
5636 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5637 echo $ac_n "(cached) $ac_c" 1>&6
5639 ac_cv_c_attribute_aligned=0
5640 CFLAGS="${save_CFLAGS} -Werror"
5641 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5642 cat > conftest.$ac_ext <<EOF
5643 #line 5644 "configure"
5644 #include "confdefs.h"
5647 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5650 if { (eval echo configure:5651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5652 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5654 echo "configure: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5659 CFLAGS="${save_CFLAGS}"
5662 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5663 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5664 cat >> confdefs.h <<EOF
5665 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5670 case "x${target_cpu}" in
5675 ARCH="${target_cpu}"
5679 BUILTINS="${BUILTINS}"
5680 PLUGINS="${PLUGINS} misc/dummy/dummy misc/null/null"
5681 PLUGINS="${PLUGINS} control/rc/rc misc/logger/logger access/file access/udp access/http misc/network/ipv4 misc/memcpy/memcpy"
5682 PLUGINS="${PLUGINS} demux/mpeg/es demux/mpeg/audio demux/mpeg/mpeg_system demux/mpeg/ps demux/mpeg/ts"
5683 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"
5684 #PLUGINS="${PLUGINS} codec/a52old/imdct/imdct codec/a52old/downmix/downmix codec/mpeg_audio/mpeg_audio codec/a52old/a52old codec/lpcm/lpcm"
5685 PLUGINS="${PLUGINS} video_filter/deinterlace/deinterlace video_filter/invert video_filter/wall video_filter/transform video_filter/distort video_filter/clone video_filter/crop"
5686 PLUGINS="${PLUGINS} audio_filter/converter/float32tos16 audio_filter/converter/a52tospdif audio_filter/converter/fixed32tos16 audio_filter/converter/fixed32tofloat32"
5687 PLUGINS="${PLUGINS} audio_filter/resampler/trivial"
5688 PLUGINS="${PLUGINS} audio_mixer/trivial audio_mixer/spdif"
5689 PLUGINS="${PLUGINS} audio_output/file"
5690 #PLUGINS="${PLUGINS} visualization/scope/scope"
5691 PLUGINS="${PLUGINS} video_chroma/i420_rgb video_chroma/i420_yuy2 video_chroma/i422_yuy2 video_chroma/i420_ymga"
5693 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"
5694 MMXEXT_MODULES="misc/memcpy/memcpymmxext codec/mpeg_video/idct/idctmmxext codec/mpeg_video/motion/motionmmxext"
5695 THREEDNOW_MODULES="misc/memcpy/memcpy3dn codec/a52old/imdct/imdct3dn codec/a52old/downmix/downmix3dn"
5696 SSE_MODULES="codec/a52old/imdct/imdctsse codec/a52old/downmix/downmixsse"
5697 ALTIVEC_MODULES="codec/mpeg_video/idct/idctaltivec codec/mpeg_video/motion/motionaltivec misc/memcpy/memcpyaltivec"
5699 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5700 echo "configure:5701: checking if \$CC groks MMX inline assembly" >&5
5701 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5702 echo $ac_n "(cached) $ac_c" 1>&6
5704 CFLAGS="${save_CFLAGS}"
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5710 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5713 if { (eval echo configure:5714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5715 ac_cv_mmx_inline=yes
5717 echo "configure: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5725 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5726 if test "x${ac_cv_mmx_inline}" != "xno"; then
5727 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5730 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5731 echo "configure:5732: checking if \$CC groks MMX EXT inline assembly" >&5
5732 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5735 CFLAGS="${save_CFLAGS}"
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5741 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5744 if { (eval echo configure:5745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5746 ac_cv_mmxext_inline=yes
5748 echo "configure: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5751 ac_cv_mmxext_inline=no
5756 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5757 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5758 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5761 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5762 echo "configure:5763: checking if \$CC groks 3D Now! inline assembly" >&5
5763 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5766 CFLAGS="${save_CFLAGS}"
5767 cat > conftest.$ac_ext <<EOF
5768 #line 5769 "configure"
5769 #include "confdefs.h"
5772 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5775 if { (eval echo configure:5776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5777 ac_cv_3dnow_inline=yes
5779 echo "configure: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5782 ac_cv_3dnow_inline=no
5787 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5788 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5789 cat >> confdefs.h <<\EOF
5790 #define CAN_COMPILE_3DNOW 1
5793 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5796 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5797 echo "configure:5798: checking if \$CC groks SSE inline assembly" >&5
5798 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5801 CFLAGS="${save_CFLAGS}"
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5807 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5810 if { (eval echo configure:5811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5812 ac_cv_sse_inline=yes
5814 echo "configure: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5822 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5823 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5824 cat >> confdefs.h <<\EOF
5825 #define CAN_COMPILE_SSE 1
5828 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5831 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5832 # we should be able to remove this test with future versions of mingw32
5833 if test "x${SYS}" != "xmingw32"; then
5834 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5835 echo "configure:5836: checking if \$CC groks AltiVec inline assembly" >&5
5836 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5839 CFLAGS="${save_CFLAGS}"
5840 cat > conftest.$ac_ext <<EOF
5841 #line 5842 "configure"
5842 #include "confdefs.h"
5845 asm volatile("vperm 0,1,2,3");
5848 if { (eval echo configure:5849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5850 ac_cv_altivec_inline=yes
5852 echo "configure: failed program was:" >&5
5853 cat conftest.$ac_ext >&5
5855 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5861 asm volatile("vperm 0,1,2,3");
5864 if { (eval echo configure:5865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5866 ac_cv_altivec_inline="-Wa,-m7400"
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5871 ac_cv_altivec_inline=no
5879 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5880 if test "x${ac_cv_altivec_inline}" != "xno"; then
5881 cat >> confdefs.h <<\EOF
5882 #define CAN_COMPILE_ALTIVEC 1
5885 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5886 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5887 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5888 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5889 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5891 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5894 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5895 echo "configure:5896: checking if \$CC groks AltiVec C extensions" >&5
5896 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5897 echo $ac_n "(cached) $ac_c" 1>&6
5899 CFLAGS="${save_CFLAGS} -faltivec"
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5906 vec_mtvscr((vector unsigned int)(0));
5909 if { (eval echo configure:5910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5911 ac_cv_c_altivec=-faltivec
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5918 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5924 vec_mtvscr((vector unsigned int)(0));
5927 if { (eval echo configure:5928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5929 ac_cv_c_altivec="-fvec"
5931 echo "configure: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5940 CFLAGS="${save_CFLAGS}"
5943 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5944 if test "x${ac_cv_c_altivec}" != "xno"; then
5945 cat >> confdefs.h <<\EOF
5946 #define CAN_COMPILE_C_ALTIVEC 1
5949 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5950 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5951 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5952 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5953 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5956 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5957 echo "configure:5958: checking if linker needs -framework vecLib" >&5
5958 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5959 echo $ac_n "(cached) $ac_c" 1>&6
5961 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5962 cat > conftest.$ac_ext <<EOF
5963 #line 5964 "configure"
5964 #include "confdefs.h"
5970 if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5972 ac_cv_ld_altivec=yes
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5980 LDFLAGS="${save_LDFLAGS}"
5984 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5985 if test "x${ac_cv_ld_altivec}" != "xno"; then
5986 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5987 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5988 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5989 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5994 # Check whether --with- or --without- was given.
5995 if test "${with_+set}" = set; then
6000 # Check whether --with- or --without- was given.
6001 if test "${with_+set}" = set; then
6007 # Check whether --with-tuning or --without-tuning was given.
6008 if test "${with_tuning+set}" = set; then
6009 withval="$with_tuning"
6013 if test "x${with_tuning}" != "x"; then
6014 TUNING="${with_tuning}"
6016 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
6018 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
6022 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
6025 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
6028 # Check whether --enable-optimizations or --disable-optimizations was given.
6029 if test "${enable_optimizations+set}" = set; then
6030 enableval="$enable_optimizations"
6031 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
6037 # Check whether --enable-altivec or --disable-altivec was given.
6038 if test "${enable_altivec+set}" = set; then
6039 enableval="$enable_altivec"
6040 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
6041 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6043 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
6044 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6049 # Check whether --enable-debug or --disable-debug was given.
6050 if test "${enable_debug+set}" = set; then
6051 enableval="$enable_debug"
6052 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
6057 # Check whether --enable-release or --disable-release was given.
6058 if test "${enable_release+set}" = set; then
6059 enableval="$enable_release"
6060 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
6062 VERSION="${VERSION}_`date +%Y-%m-%d`"
6067 # Check whether --with- or --without- was given.
6068 if test "${with_+set}" = set; then
6074 # Check whether --enable-dvd or --disable-dvd was given.
6075 if test "${enable_dvd+set}" = set; then
6076 enableval="$enable_dvd"
6080 if test "x${enable_dvd}" != "xno"
6082 # Check whether --with-dvdcss or --without-dvdcss was given.
6083 if test "${with_dvdcss+set}" = set; then
6084 withval="$with_dvdcss"
6088 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
6089 if test "${with_dvdcss_tree+set}" = set; then
6090 withval="$with_dvdcss_tree"
6094 case "x${with_dvdcss}" in
6096 if test "x${with_dvdcss_tree}" = x
6098 for ac_hdr in dvdcss/dvdcss.h
6100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6102 echo "configure:6103: checking for $ac_hdr" >&5
6103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6104 echo $ac_n "(cached) $ac_c" 1>&6
6106 cat > conftest.$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6112 { (eval echo configure:6113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6114 if test -z "$ac_err"; then
6116 eval "ac_cv_header_$ac_safe=yes"
6119 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6122 eval "ac_cv_header_$ac_safe=no"
6126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6129 cat >> confdefs.h <<EOF
6130 #define $ac_tr_hdr 1
6132 PLUGINS="${PLUGINS} access/dvd/dvd"
6133 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
6135 echo "$ac_t""no" 1>&6
6136 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
6137 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
6142 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
6143 echo "configure:6144: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
6144 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6145 if test "x${real_dvdcss_tree}" = "x"
6147 echo "$ac_t""no" 1>&6
6148 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6150 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6152 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6153 BUILTINS="${BUILTINS} access/dvd/dvd"
6154 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6155 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6157 echo "$ac_t""no" 1>&6
6158 { 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; }
6163 PLUGINS="${PLUGINS} access/dvd/dvd"
6164 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6165 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6168 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6169 echo "configure:6170: checking for dvdcss headers in ${with_dvdcss}" >&5
6170 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6172 echo "$ac_t""yes" 1>&6
6173 PLUGINS="${PLUGINS} access/dvd/dvd"
6174 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6175 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6177 echo "$ac_t""no" 1>&6
6178 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6184 # Check whether --enable-dvdread or --disable-dvdread was given.
6185 if test "${enable_dvdread+set}" = set; then
6186 enableval="$enable_dvdread"
6190 if test "x${enable_dvdread}" != "xno"
6192 # Check whether --with-dvdread or --without-dvdread was given.
6193 if test "${with_dvdread+set}" = set; then
6194 withval="$with_dvdread"
6198 if test "x${with_dvdread}" = "x"
6203 test_LDFLAGS="-L${with_dvdread}/lib"
6204 test_CFLAGS="-I${with_dvdread}/include"
6206 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6207 for ac_hdr in dvdread/dvd_reader.h
6209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6211 echo "configure:6212: checking for $ac_hdr" >&5
6212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6213 echo $ac_n "(cached) $ac_c" 1>&6
6215 cat > conftest.$ac_ext <<EOF
6216 #line 6217 "configure"
6217 #include "confdefs.h"
6220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6221 { (eval echo configure:6222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6223 if test -z "$ac_err"; then
6225 eval "ac_cv_header_$ac_safe=yes"
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6231 eval "ac_cv_header_$ac_safe=no"
6235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6236 echo "$ac_t""yes" 1>&6
6237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6238 cat >> confdefs.h <<EOF
6239 #define $ac_tr_hdr 1
6242 cat > conftest.$ac_ext <<EOF
6243 #line 6244 "configure"
6244 #include "confdefs.h"
6245 #include <dvdread/dvd_reader.h>
6247 void foo() { int i=DVD_VIDEO_LB_LEN; }
6250 if { (eval echo configure:6251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6253 PLUGINS="${PLUGINS} access/dvdread/dvdread"
6254 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6255 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6258 echo "configure: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6262 if test "x${enable_dvdread}" != "x"
6264 { 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; }
6271 echo "$ac_t""no" 1>&6
6272 if test "x${enable_dvdread}" != "x"
6274 if test "x${with_dvdread}" != "x"
6276 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6278 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6285 CPPFLAGS="$save_CPPFLAGS"
6288 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6289 if test "${enable_dvdplay+set}" = set; then
6290 enableval="$enable_dvdplay"
6294 if test "x$enable_dvdplay" != "xno"
6296 # Check whether --with-dvdplay or --without-dvdplay was given.
6297 if test "${with_dvdplay+set}" = set; then
6298 withval="$with_dvdplay"
6302 if test "x$with_dvdplay" = x
6307 test_LDFLAGS="-L${with_dvdplay}/lib"
6308 test_CFLAGS="-I${with_dvdplay}/include"
6310 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6311 for ac_hdr in dvdplay/dvdplay.h
6313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6315 echo "configure:6316: checking for $ac_hdr" >&5
6316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6317 echo $ac_n "(cached) $ac_c" 1>&6
6319 cat > conftest.$ac_ext <<EOF
6320 #line 6321 "configure"
6321 #include "confdefs.h"
6324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6325 { (eval echo configure:6326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6327 if test -z "$ac_err"; then
6329 eval "ac_cv_header_$ac_safe=yes"
6332 echo "configure: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6335 eval "ac_cv_header_$ac_safe=no"
6339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6340 echo "$ac_t""yes" 1>&6
6341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6342 cat >> confdefs.h <<EOF
6343 #define $ac_tr_hdr 1
6346 PLUGINS="${PLUGINS} access/dvdplay/dvdplay"
6347 dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6348 dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6351 echo "$ac_t""no" 1>&6
6352 if test "x$enable_dvdplay" != x
6354 if test "x$with_dvdplay" != x
6356 { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6358 { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6365 CPPFLAGS="${save_CPPFLAGS}"
6369 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6370 if test "${enable_dvbpsi+set}" = set; then
6371 enableval="$enable_dvbpsi"
6375 if test "x${enable_dvbpsi}" != "xno"
6377 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6378 if test "${with_dvbpsi+set}" = set; then
6379 withval="$with_dvbpsi"
6383 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6384 if test "${with_dvbpsi+set}" = set; then
6385 withval="$with_dvbpsi"
6389 case "x${with_dvbpsi}" in
6391 if test "x${with_dvbpsi_tree}" = "x"
6393 for ac_hdr in dvbpsi/dr.h
6395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6397 echo "configure:6398: checking for $ac_hdr" >&5
6398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6407 { (eval echo configure:6408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6409 if test -z "$ac_err"; then
6411 eval "ac_cv_header_$ac_safe=yes"
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6417 eval "ac_cv_header_$ac_safe=no"
6421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6422 echo "$ac_t""yes" 1>&6
6423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6424 cat >> confdefs.h <<EOF
6425 #define $ac_tr_hdr 1
6427 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6428 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} -ldvbpsi"
6430 echo "$ac_t""no" 1>&6
6435 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6436 echo "configure:6437: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6437 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6438 if test "x${real_dvbpsi_tree}" = "x"
6440 echo "$ac_t""no" 1>&6
6441 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6443 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6445 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6446 BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi"
6447 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6448 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6450 echo "$ac_t""no" 1>&6
6451 { 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; }
6458 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6459 echo "configure:6460: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6460 if test "x${with_dvbpsi}" = "x"
6465 test_LDFLAGS="-L${with_dvbpsi}/lib"
6466 test_CFLAGS="-I${with_dvbpsi}/include"
6468 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6469 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6470 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6471 echo "configure:6472: checking for dvbpsi/dr.h" >&5
6472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6473 echo $ac_n "(cached) $ac_c" 1>&6
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 #include <dvbpsi/dr.h>
6480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6481 { (eval echo configure:6482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6483 if test -z "$ac_err"; then
6485 eval "ac_cv_header_$ac_safe=yes"
6488 echo "configure: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6491 eval "ac_cv_header_$ac_safe=no"
6495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6496 echo "$ac_t""yes" 1>&6
6498 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6499 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6500 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6503 echo "$ac_t""no" 1>&6
6505 if test "x${enable_dvbpsi}" != "x"
6507 { 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; }
6512 CPPFLAGS="${save_CPPFLAGS}"
6517 # Check whether --enable-v4l or --disable-v4l was given.
6518 if test "${enable_v4l+set}" = set; then
6519 enableval="$enable_v4l"
6523 if test "x${enable_v4l}" = "xyes"
6525 for ac_hdr in libv4l/v4l.h
6527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6529 echo "configure:6530: checking for $ac_hdr" >&5
6530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6533 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6539 { (eval echo configure:6540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6541 if test -z "$ac_err"; then
6543 eval "ac_cv_header_$ac_safe=yes"
6546 echo "configure: failed program was:" >&5
6547 cat conftest.$ac_ext >&5
6549 eval "ac_cv_header_$ac_safe=no"
6553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6554 echo "$ac_t""yes" 1>&6
6555 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6556 cat >> confdefs.h <<EOF
6557 #define $ac_tr_hdr 1
6560 PLUGINS="${PLUGINS} access/v4l/v4l"
6563 echo "$ac_t""no" 1>&6
6569 # Check whether --enable-vcd or --disable-vcd was given.
6570 if test "${enable_vcd+set}" = set; then
6571 enableval="$enable_vcd"
6576 if test "x${enable_vcd}" != "xno"
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6581 #include <linux/cdrom.h>
6583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6584 egrep "cdrom_msf0" >/dev/null 2>&1; then
6587 PLUGINS="${PLUGINS} access/vcd/vcd"
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 #include <sys/cdio.h>
6598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6599 egrep "ioc_toc_header " >/dev/null 2>&1; then
6602 PLUGINS="${PLUGINS} access/vcd/vcd"
6603 cat >> confdefs.h <<\EOF
6604 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6612 if test "x${SYS}" = "xbsdi"
6614 PLUGINS="${PLUGINS} access/vcd/vcd"
6617 if test "x${SYS}" = "xdarwin"
6619 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6620 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6624 # Check whether --enable-satellite or --disable-satellite was given.
6625 if test "${enable_satellite+set}" = set; then
6626 enableval="$enable_satellite"
6627 if test "x${enable_satellite}" = "xyes"
6629 PLUGINS="${PLUGINS} access/satellite/satellite"
6634 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6637 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6638 echo "configure:6639: checking for inet_pton" >&5
6639 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 /* System header to define __stub macros and hopefully few prototypes,
6646 which can conflict with char inet_pton(); below. */
6648 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668 eval "ac_cv_func_inet_pton=yes"
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6673 eval "ac_cv_func_inet_pton=no"
6678 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6679 echo "$ac_t""yes" 1>&6
6682 echo "$ac_t""no" 1>&6
6684 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6685 echo "configure:6686: checking for inet_pton in -lresolv" >&5
6686 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6688 echo $ac_n "(cached) $ac_c" 1>&6
6690 ac_save_LIBS="$LIBS"
6691 LIBS="-lresolv $LIBS"
6692 cat > conftest.$ac_ext <<EOF
6693 #line 6694 "configure"
6694 #include "confdefs.h"
6695 /* Override any gcc2 internal prototype to avoid an error. */
6696 /* We use char because int might match the return type of a gcc2
6697 builtin and then its argument prototype would still apply. */
6704 if { (eval echo configure:6705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6706 eval "ac_cv_lib_$ac_lib_var=yes"
6708 echo "configure: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6711 eval "ac_cv_lib_$ac_lib_var=no"
6714 LIBS="$ac_save_LIBS"
6717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6718 echo "$ac_t""yes" 1>&6
6720 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6722 echo "$ac_t""no" 1>&6
6728 echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6729 echo "configure:6730: checking for sockaddr_in6 in netinet/in.h" >&5
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 #include <netinet/in.h>
6735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736 egrep "sockaddr_in6" >/dev/null 2>&1; then
6738 echo "$ac_t""yes" 1>&6
6741 echo "$ac_t""no" 1>&6; have_ipv6=0
6745 if test x$have_ipv6 = x1; then
6746 PLUGINS="${PLUGINS} misc/network/ipv6"
6749 if test "x${SYS}" = "xmingw32"
6751 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6752 echo "configure:6753: checking for getaddrinfo in ws2tcpip.h" >&5
6753 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure"
6755 #include "confdefs.h"
6756 #include <ws2tcpip.h>
6758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6759 egrep "addrinfo" >/dev/null 2>&1; then
6761 echo "$ac_t""yes" 1>&6
6762 PLUGINS="${PLUGINS} misc/network/ipv6"
6765 echo "$ac_t""no" 1>&6
6771 # Check whether --enable-avi or --disable-avi was given.
6772 if test "${enable_avi+set}" = set; then
6773 enableval="$enable_avi"
6777 if test "x${enable_avi}" != "xno"
6779 PLUGINS="${PLUGINS} demux/avi/avi"
6782 # Check whether --enable-aac or --disable-aac was given.
6783 if test "${enable_aac+set}" = set; then
6784 enableval="$enable_aac"
6788 if test "x${enable_aac}" != "xno"
6790 PLUGINS="${PLUGINS} demux/aac/aac"
6794 # Check whether --with- or --without- was given.
6795 if test "${with_+set}" = set; then
6801 # Check whether --enable-mad or --disable-mad was given.
6802 if test "${enable_mad+set}" = set; then
6803 enableval="$enable_mad"
6807 if test "x${enable_mad}" = "xyes"
6809 # Check whether --with-mad or --without-mad was given.
6810 if test "${with_mad+set}" = set; then
6815 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6817 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6818 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6821 # Check whether --with-mad-tree or --without-mad-tree was given.
6822 if test "${with_mad_tree+set}" = set; then
6823 withval="$with_mad_tree"
6827 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6829 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6830 if test "x${real_mad_tree}" = "x"
6832 echo "$ac_t""no" 1>&6
6833 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6835 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6836 echo "configure:6837: checking for mad.h in ${real_mad_tree}/libmad" >&5
6837 if test -f ${real_mad_tree}/libmad/mad.h
6839 echo "$ac_t""yes" 1>&6
6840 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6841 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6842 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6843 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6844 echo "configure:6845: checking for mad_bit_init in -lmad" >&5
6845 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6847 echo $ac_n "(cached) $ac_c" 1>&6
6849 ac_save_LIBS="$LIBS"
6851 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6854 /* Override any gcc2 internal prototype to avoid an error. */
6855 /* We use char because int might match the return type of a gcc2
6856 builtin and then its argument prototype would still apply. */
6857 char mad_bit_init();
6863 if { (eval echo configure:6864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6865 eval "ac_cv_lib_$ac_lib_var=yes"
6867 echo "configure: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6870 eval "ac_cv_lib_$ac_lib_var=no"
6873 LIBS="$ac_save_LIBS"
6876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6877 echo "$ac_t""yes" 1>&6
6879 BUILTINS="${BUILTINS} codec/mad/mad"
6880 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6883 echo "$ac_t""no" 1>&6
6884 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6888 LDFLAGS="${save_LDFLAGS}"
6890 echo "$ac_t""no" 1>&6
6891 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6894 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6895 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6900 echo "configure:6901: checking for $ac_hdr" >&5
6901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 cat > conftest.$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6910 { (eval echo configure:6911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6912 if test -z "$ac_err"; then
6914 eval "ac_cv_header_$ac_safe=yes"
6917 echo "configure: failed program was:" >&5
6918 cat conftest.$ac_ext >&5
6920 eval "ac_cv_header_$ac_safe=no"
6924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6925 echo "$ac_t""yes" 1>&6
6926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6927 cat >> confdefs.h <<EOF
6928 #define $ac_tr_hdr 1
6932 echo "$ac_t""no" 1>&6
6933 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6937 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6938 echo "configure:6939: checking for mad_bit_init in -lmad" >&5
6939 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6941 echo $ac_n "(cached) $ac_c" 1>&6
6943 ac_save_LIBS="$LIBS"
6945 cat > conftest.$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6948 /* Override any gcc2 internal prototype to avoid an error. */
6949 /* We use char because int might match the return type of a gcc2
6950 builtin and then its argument prototype would still apply. */
6951 char mad_bit_init();
6957 if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6959 eval "ac_cv_lib_$ac_lib_var=yes"
6961 echo "configure: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6964 eval "ac_cv_lib_$ac_lib_var=no"
6967 LIBS="$ac_save_LIBS"
6970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6971 echo "$ac_t""yes" 1>&6
6973 PLUGINS="${PLUGINS} codec/mad/mad"
6974 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6976 echo "$ac_t""no" 1>&6
6977 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6980 CFLAGS="${save_CFLAGS}"
6981 LDFLAGS="${save_LDFLAGS}"
6985 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6986 if test "${enable_ffmpeg+set}" = set; then
6987 enableval="$enable_ffmpeg"
6991 if test "x${enable_ffmpeg}" = "xyes"
6993 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6994 if test "${with_ffmpeg+set}" = set; then
6995 withval="$with_ffmpeg"
6999 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
7001 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
7002 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
7005 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_c"
7006 if test "x${ac_cv_mmx_inline}" != "xno"; then
7007 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmx"
7010 if test "x${ac_cv_mmxext_inline}" != "xno"; then
7011 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmxext"
7015 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
7016 if test "${with_ffmpeg_tree+set}" = set; then
7017 withval="$with_ffmpeg_tree"
7021 if test "x${with_ffmpeg_tree}" != "x"
7023 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
7024 echo "configure:7025: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
7025 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
7026 if test "x${real_ffmpeg_tree}" = x
7028 echo "$ac_t""no" 1>&6
7029 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
7031 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
7033 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
7034 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7035 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
7036 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
7038 echo "$ac_t""no" 1>&6
7039 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
7042 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
7043 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
7044 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
7045 echo "configure:7046: checking for avcodec_init in -lavcodec" >&5
7046 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
7047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7048 echo $ac_n "(cached) $ac_c" 1>&6
7050 ac_save_LIBS="$LIBS"
7051 LIBS="-lavcodec $LIBS"
7052 cat > conftest.$ac_ext <<EOF
7053 #line 7054 "configure"
7054 #include "confdefs.h"
7055 /* Override any gcc2 internal prototype to avoid an error. */
7056 /* We use char because int might match the return type of a gcc2
7057 builtin and then its argument prototype would still apply. */
7058 char avcodec_init();
7064 if { (eval echo configure:7065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7066 eval "ac_cv_lib_$ac_lib_var=yes"
7068 echo "configure: failed program was:" >&5
7069 cat conftest.$ac_ext >&5
7071 eval "ac_cv_lib_$ac_lib_var=no"
7074 LIBS="$ac_save_LIBS"
7077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7078 echo "$ac_t""yes" 1>&6
7080 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7081 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
7083 echo "$ac_t""no" 1>&6
7084 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
7087 LDFLAGS="${save_LDFLAGS}"
7088 CFLAGS="${save_CFLAGS}"
7092 # Check whether --enable-faad or --disable-faad was given.
7093 if test "${enable_faad+set}" = set; then
7094 enableval="$enable_faad"
7098 if test "x${enable_faad}" = "xyes"
7100 # Check whether --with-faad or --without-faad was given.
7101 if test "${with_faad+set}" = set; then
7102 withval="$with_faad"
7106 if test "x${with_faad}" != "xno" -a "x${with_faad}" != "x"
7108 faad_CFLAGS="${faad_CFLAGS} -I${with_faad}/include"
7109 faad_LDFLAGS="${faad_LDFLAGS} -L${with_faad}/lib"
7111 faad_LDFLAGS="${faad_LDFLAGS} -lm"
7113 # Check whether --with-faad-tree or --without-faad-tree was given.
7114 if test "${with_faad_tree+set}" = set; then
7115 withval="$with_faad_tree"
7119 if test "x${with_faad_tree}" != "x"
7121 echo $ac_n "checking for libfaad.a in ${with_faad_tree}""... $ac_c" 1>&6
7122 echo "configure:7123: checking for libfaad.a in ${with_faad_tree}" >&5
7123 real_faad_tree="`cd ${with_faad_tree} 2>/dev/null && pwd`"
7124 if test "x${real_faad_tree}" = x
7126 echo "$ac_t""no" 1>&6
7127 { echo "configure: error: cannot cd to ${with_faad_tree}" 1>&2; exit 1; }
7129 if test -f "${real_faad_tree}/libfaad/.libs/libfaad.a"
7131 echo "$ac_t""${real_faad_tree}/libfaad/.libs/libfaad.a" 1>&6
7132 BUILTINS="${BUILTINS} codec/faad/faad"
7133 faad_LDFLAGS="${faad_LDFLAGS} ${real_faad_tree}/libfaad/.libs/libfaad.a"
7134 faad_CFLAGS="${faad_CFLAGS} -I${real_faad_tree}/include"
7136 echo "$ac_t""no" 1>&6
7137 { 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; }
7140 CFLAGS="${save_CFLAGS} ${faad_CFLAGS}"
7141 LDFLAGS="${save_LDFLAGS} ${faad_LDFLAGS}"
7142 for ac_hdr in faad.h
7144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7146 echo "configure:7147: checking for $ac_hdr" >&5
7147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7148 echo $ac_n "(cached) $ac_c" 1>&6
7150 cat > conftest.$ac_ext <<EOF
7151 #line 7152 "configure"
7152 #include "confdefs.h"
7155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7156 { (eval echo configure:7157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7158 if test -z "$ac_err"; then
7160 eval "ac_cv_header_$ac_safe=yes"
7163 echo "configure: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7166 eval "ac_cv_header_$ac_safe=no"
7170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7171 echo "$ac_t""yes" 1>&6
7172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7173 cat >> confdefs.h <<EOF
7174 #define $ac_tr_hdr 1
7178 echo "$ac_t""no" 1>&6
7179 { echo "configure: error: Cannot find development headers for libfaad..." 1>&2; exit 1; }
7183 echo $ac_n "checking for faacDecOpen in -lfaad""... $ac_c" 1>&6
7184 echo "configure:7185: checking for faacDecOpen in -lfaad" >&5
7185 ac_lib_var=`echo faad'_'faacDecOpen | sed 'y%./+-%__p_%'`
7186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7189 ac_save_LIBS="$LIBS"
7191 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7194 /* Override any gcc2 internal prototype to avoid an error. */
7195 /* We use char because int might match the return type of a gcc2
7196 builtin and then its argument prototype would still apply. */
7203 if { (eval echo configure:7204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7205 eval "ac_cv_lib_$ac_lib_var=yes"
7207 echo "configure: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7210 eval "ac_cv_lib_$ac_lib_var=no"
7213 LIBS="$ac_save_LIBS"
7216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7217 echo "$ac_t""yes" 1>&6
7219 PLUGINS="${PLUGINS} codec/faad/faad"
7220 faad_LDFLAGS="${faad_LDFLAGS} -lfaad"
7222 echo "$ac_t""no" 1>&6
7223 { echo "configure: error: Cannot find libfaad library..." 1>&2; exit 1; }
7226 LDFLAGS="${save_LDFLAGS}"
7227 CFLAGS="${save_CFLAGS}"
7233 # Check whether --enable-mp4 or --disable-mp4 was given.
7234 if test "${enable_mp4+set}" = set; then
7235 enableval="$enable_mp4"
7239 if test "x${enable_mp4}" != "xno"
7242 PLUGINS="${PLUGINS} demux/mp4/mp4"
7243 for ac_hdr in zlib.h
7245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7247 echo "configure:7248: checking for $ac_hdr" >&5
7248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7249 echo $ac_n "(cached) $ac_c" 1>&6
7251 cat > conftest.$ac_ext <<EOF
7252 #line 7253 "configure"
7253 #include "confdefs.h"
7256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7257 { (eval echo configure:7258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7259 if test -z "$ac_err"; then
7261 eval "ac_cv_header_$ac_safe=yes"
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7267 eval "ac_cv_header_$ac_safe=no"
7271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7272 echo "$ac_t""yes" 1>&6
7273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7274 cat >> confdefs.h <<EOF
7275 #define $ac_tr_hdr 1
7277 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
7279 echo "$ac_t""no" 1>&6
7285 # Check whether --enable-a52 or --disable-a52 was given.
7286 if test "${enable_a52+set}" = set; then
7287 enableval="$enable_a52"
7291 if test "x${enable_a52}" != "xno"
7293 # Check whether --with-a52 or --without-a52 was given.
7294 if test "${with_a52+set}" = set; then
7299 # Check whether --with-a52-tree or --without-a52-tree was given.
7300 if test "${with_a52_tree+set}" = set; then
7301 withval="$with_a52_tree"
7305 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
7307 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
7308 if test "x${real_a52_tree}" = "x"
7310 echo "$ac_t""no" 1>&6
7311 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
7313 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
7314 echo "configure:7315: checking for a52.h in ${real_a52_tree}/include" >&5
7315 if test -f ${real_a52_tree}/include/a52.h
7317 echo "$ac_t""yes" 1>&6
7318 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
7319 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
7320 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
7321 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7322 echo "configure:7323: checking for a52_free in -la52" >&5
7323 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7325 echo $ac_n "(cached) $ac_c" 1>&6
7327 ac_save_LIBS="$LIBS"
7328 LIBS="-la52 -lm $LIBS"
7329 cat > conftest.$ac_ext <<EOF
7330 #line 7331 "configure"
7331 #include "confdefs.h"
7332 /* Override any gcc2 internal prototype to avoid an error. */
7333 /* We use char because int might match the return type of a gcc2
7334 builtin and then its argument prototype would still apply. */
7341 if { (eval echo configure:7342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7343 eval "ac_cv_lib_$ac_lib_var=yes"
7345 echo "configure: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7348 eval "ac_cv_lib_$ac_lib_var=no"
7351 LIBS="$ac_save_LIBS"
7354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7355 echo "$ac_t""yes" 1>&6
7357 BUILTINS="${BUILTINS} codec/a52"
7358 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7359 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7362 echo "$ac_t""no" 1>&6
7364 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7366 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7368 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7373 LDFLAGS="${save_LDFLAGS}"
7375 echo "$ac_t""no" 1>&6
7376 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7379 if test "x${with_a52}" = "x"
7384 test_LDFLAGS="-L${with_a52}/lib"
7385 test_CFLAGS="-I${with_a52}/include"
7387 save_CPPFLAGS="${CPPFLAGS}"
7388 save_LDFLAGS="${LDFLAGS}"
7389 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
7390 LDFLAGS="${save_LDFLAGS} ${test_LDFLAGS}"
7391 for ac_hdr in a52dec/a52.h
7393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7395 echo "configure:7396: checking for $ac_hdr" >&5
7396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7397 echo $ac_n "(cached) $ac_c" 1>&6
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7405 { (eval echo configure:7406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7407 if test -z "$ac_err"; then
7409 eval "ac_cv_header_$ac_safe=yes"
7412 echo "configure: failed program was:" >&5
7413 cat conftest.$ac_ext >&5
7415 eval "ac_cv_header_$ac_safe=no"
7419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7420 echo "$ac_t""yes" 1>&6
7421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7422 cat >> confdefs.h <<EOF
7423 #define $ac_tr_hdr 1
7426 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7427 echo "configure:7428: checking for a52_free in -la52" >&5
7428 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7432 ac_save_LIBS="$LIBS"
7433 LIBS="-la52 -lm $LIBS"
7434 cat > conftest.$ac_ext <<EOF
7435 #line 7436 "configure"
7436 #include "confdefs.h"
7437 /* Override any gcc2 internal prototype to avoid an error. */
7438 /* We use char because int might match the return type of a gcc2
7439 builtin and then its argument prototype would still apply. */
7446 if { (eval echo configure:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7448 eval "ac_cv_lib_$ac_lib_var=yes"
7450 echo "configure: failed program was:" >&5
7451 cat conftest.$ac_ext >&5
7453 eval "ac_cv_lib_$ac_lib_var=no"
7456 LIBS="$ac_save_LIBS"
7459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7460 echo "$ac_t""yes" 1>&6
7462 BUILTINS="${BUILTINS} codec/a52"
7463 a52_LDFLAGS="${a52_LDFLAGS} ${test_LDFLAGS} -la52 -lm"
7464 a52_CFLAGS="${a52_CFLAGS} ${test_CFLAGS}"
7467 echo "$ac_t""no" 1>&6
7469 if test "x${enable_dvbpsi}" != "x"
7471 { echo "configure: error: Could not find a52 on your system: you may get it from http://liba52.sf.net" 1>&2; exit 1; }
7478 echo "$ac_t""no" 1>&6
7482 CPPFLAGS="${save_CPPFLAGS}"
7483 LDFLAGS="${save_LDFLAGS}"
7487 # Check whether --enable-cinepak or --disable-cinepak was given.
7488 if test "${enable_cinepak+set}" = set; then
7489 enableval="$enable_cinepak"
7493 if test "x${enable_cinepak}" != "xno"
7495 PLUGINS="${PLUGINS} codec/cinepak/cinepak"
7498 # Check whether --enable-vorbis or --disable-vorbis was given.
7499 if test "${enable_vorbis+set}" = set; then
7500 enableval="$enable_vorbis"
7504 if test "x${enable_vorbis}" != "xno"
7506 for ac_hdr in ogg/ogg.h
7508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7510 echo "configure:7511: checking for $ac_hdr" >&5
7511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7520 { (eval echo configure:7521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7522 if test -z "$ac_err"; then
7524 eval "ac_cv_header_$ac_safe=yes"
7527 echo "configure: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7530 eval "ac_cv_header_$ac_safe=no"
7534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7535 echo "$ac_t""yes" 1>&6
7536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7537 cat >> confdefs.h <<EOF
7538 #define $ac_tr_hdr 1
7541 #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis"
7542 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7545 echo "$ac_t""no" 1>&6
7551 # Check whether --enable-dv or --disable-dv was given.
7552 if test "${enable_dv+set}" = set; then
7553 enableval="$enable_dv"
7557 if test "x${enable_dv}" = "xyes"
7559 for ac_hdr in libdv/dv.h
7561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7563 echo "configure:7564: checking for $ac_hdr" >&5
7564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7573 { (eval echo configure:7574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7575 if test -z "$ac_err"; then
7577 eval "ac_cv_header_$ac_safe=yes"
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7583 eval "ac_cv_header_$ac_safe=no"
7587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7588 echo "$ac_t""yes" 1>&6
7589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7590 cat >> confdefs.h <<EOF
7591 #define $ac_tr_hdr 1
7594 BUILTINS="${BUILTINS} codec/dv/dv"
7595 dv_LDFLAGS="${dv_LDFLAGS} -ldv"
7598 echo "$ac_t""no" 1>&6
7605 # Check whether --with- or --without- was given.
7606 if test "${with_+set}" = set; then
7612 # Check whether --enable-x11 or --disable-x11 was given.
7613 if test "${enable_x11+set}" = set; then
7614 enableval="$enable_x11"
7618 if test "x${enable_x11}" != "xno" &&
7619 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7620 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7621 for ac_hdr in X11/Xlib.h
7623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7625 echo "configure:7626: checking for $ac_hdr" >&5
7626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7627 echo $ac_n "(cached) $ac_c" 1>&6
7629 cat > conftest.$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7635 { (eval echo configure:7636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7637 if test -z "$ac_err"; then
7639 eval "ac_cv_header_$ac_safe=yes"
7642 echo "configure: failed program was:" >&5
7643 cat conftest.$ac_ext >&5
7645 eval "ac_cv_header_$ac_safe=no"
7649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7652 cat >> confdefs.h <<EOF
7653 #define $ac_tr_hdr 1
7656 PLUGINS="${PLUGINS} video_output/x11/x11"
7657 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7658 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7661 echo "$ac_t""no" 1>&6
7665 CPPFLAGS="${save_CPPFLAGS}"
7668 # Check whether --enable-xvideo or --disable-xvideo was given.
7669 if test "${enable_xvideo+set}" = set; then
7670 enableval="$enable_xvideo"
7674 if test "x${enable_xvideo}" != "xno" &&
7675 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7676 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7677 for ac_hdr in X11/extensions/Xv.h
7679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7681 echo "configure:7682: checking for $ac_hdr" >&5
7682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7683 echo $ac_n "(cached) $ac_c" 1>&6
7685 cat > conftest.$ac_ext <<EOF
7686 #line 7687 "configure"
7687 #include "confdefs.h"
7690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7691 { (eval echo configure:7692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7693 if test -z "$ac_err"; then
7695 eval "ac_cv_header_$ac_safe=yes"
7698 echo "configure: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7701 eval "ac_cv_header_$ac_safe=no"
7705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7706 echo "$ac_t""yes" 1>&6
7707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7708 cat >> confdefs.h <<EOF
7709 #define $ac_tr_hdr 1
7712 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7713 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7714 echo "configure:7715: checking for XvPutImage in -lXv_pic" >&5
7715 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7716 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7717 echo $ac_n "(cached) $ac_c" 1>&6
7719 ac_save_LIBS="$LIBS"
7720 LIBS="-lXv_pic $LIBS"
7721 cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 /* Override any gcc2 internal prototype to avoid an error. */
7725 /* We use char because int might match the return type of a gcc2
7726 builtin and then its argument prototype would still apply. */
7733 if { (eval echo configure:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7735 eval "ac_cv_lib_$ac_lib_var=yes"
7737 echo "configure: failed program was:" >&5
7738 cat conftest.$ac_ext >&5
7740 eval "ac_cv_lib_$ac_lib_var=no"
7743 LIBS="$ac_save_LIBS"
7746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7747 echo "$ac_t""yes" 1>&6
7748 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7749 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7750 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7751 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7753 echo "$ac_t""no" 1>&6
7754 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7755 echo "configure:7756: checking for XvPutImage in -lXv" >&5
7756 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7758 echo $ac_n "(cached) $ac_c" 1>&6
7760 ac_save_LIBS="$LIBS"
7762 cat > conftest.$ac_ext <<EOF
7763 #line 7764 "configure"
7764 #include "confdefs.h"
7765 /* Override any gcc2 internal prototype to avoid an error. */
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7774 if { (eval echo configure:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7776 eval "ac_cv_lib_$ac_lib_var=yes"
7778 echo "configure: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7781 eval "ac_cv_lib_$ac_lib_var=no"
7784 LIBS="$ac_save_LIBS"
7787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7788 echo "$ac_t""yes" 1>&6
7789 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7790 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7791 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7792 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7794 echo "$ac_t""no" 1>&6
7795 # Otherwise... well, do nothing.
7803 CFLAGS="${save_CFLAGS}"
7805 CPPFLAGS="${save_CPPFLAGS}"
7807 echo "$ac_t""no" 1>&6
7813 # Check whether --enable-sdl or --disable-sdl was given.
7814 if test "${enable_sdl+set}" = set; then
7815 enableval="$enable_sdl"
7819 if test "x${enable_sdl}" != "xno"
7822 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7823 if test "${with_sdl_config_path+set}" = set; then
7824 withval="$with_sdl_config_path"
7825 if test "x${with_sdl_config_path}" != "xno"
7827 SDL_PATH="${with_sdl_config_path}:${PATH}"
7831 # Extract the first word of "sdl12-config", so it can be a program name with args.
7832 set dummy sdl12-config; ac_word=$2
7833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7834 echo "configure:7835: checking for $ac_word" >&5
7835 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7838 case "$SDL12_CONFIG" in
7840 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7843 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7847 ac_dummy="${SDL_PATH}"
7848 for ac_dir in $ac_dummy; do
7849 test -z "$ac_dir" && ac_dir=.
7850 if test -f $ac_dir/$ac_word; then
7851 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7856 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7860 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7861 if test -n "$SDL12_CONFIG"; then
7862 echo "$ac_t""$SDL12_CONFIG" 1>&6
7864 echo "$ac_t""no" 1>&6
7867 SDL_CONFIG="${SDL12_CONFIG}"
7868 SDL_HEADER="SDL12/SDL.h"
7869 if test "x${SDL_CONFIG}" = "xno"
7871 # Extract the first word of "sdl11-config", so it can be a program name with args.
7872 set dummy sdl11-config; ac_word=$2
7873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7874 echo "configure:7875: checking for $ac_word" >&5
7875 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7876 echo $ac_n "(cached) $ac_c" 1>&6
7878 case "$SDL11_CONFIG" in
7880 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7883 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7887 ac_dummy="${SDL_PATH}"
7888 for ac_dir in $ac_dummy; do
7889 test -z "$ac_dir" && ac_dir=.
7890 if test -f $ac_dir/$ac_word; then
7891 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7896 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7900 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7901 if test -n "$SDL11_CONFIG"; then
7902 echo "$ac_t""$SDL11_CONFIG" 1>&6
7904 echo "$ac_t""no" 1>&6
7907 SDL_CONFIG=${SDL11_CONFIG}
7908 SDL_HEADER="SDL11/SDL.h"
7910 if test "x${SDL_CONFIG}" = "xno"
7912 # Extract the first word of "sdl-config", so it can be a program name with args.
7913 set dummy sdl-config; ac_word=$2
7914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7915 echo "configure:7916: checking for $ac_word" >&5
7916 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7917 echo $ac_n "(cached) $ac_c" 1>&6
7919 case "$SDL_CONFIG" in
7921 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7924 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7928 ac_dummy="${SDL_PATH}"
7929 for ac_dir in $ac_dummy; do
7930 test -z "$ac_dir" && ac_dir=.
7931 if test -f $ac_dir/$ac_word; then
7932 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7937 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7941 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7942 if test -n "$SDL_CONFIG"; then
7943 echo "$ac_t""$SDL_CONFIG" 1>&6
7945 echo "$ac_t""no" 1>&6
7948 SDL_HEADER="SDL/SDL.h"
7950 if test "x${SDL_CONFIG}" != "xno"
7952 PLUGINS="${PLUGINS} video_output/sdl/sdl"
7953 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7954 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7955 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7956 for ac_hdr in ${SDL_HEADER}
7958 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7960 echo "configure:7961: checking for $ac_hdr" >&5
7961 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7962 echo $ac_n "(cached) $ac_c" 1>&6
7964 cat > conftest.$ac_ext <<EOF
7965 #line 7966 "configure"
7966 #include "confdefs.h"
7969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7970 { (eval echo configure:7971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7972 if test -z "$ac_err"; then
7974 eval "ac_cv_header_$ac_safe=yes"
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 eval "ac_cv_header_$ac_safe=no"
7984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7985 echo "$ac_t""yes" 1>&6
7986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7987 cat >> confdefs.h <<EOF
7988 #define $ac_tr_hdr 1
7990 cat >> confdefs.h <<EOF
7991 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7995 echo "$ac_t""no" 1>&6
7996 { echo "configure: error: The development package for SDL is not installed.
7997 Please install it and try again. Alternatively you can also configure with
7998 --disable-sdl." 1>&2; exit 1; }
8003 CPPFLAGS="${save_CPPFLAGS}"
8004 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
8006 { echo "configure: error: The development package for SDL is not installed.
8007 Please install it and try again. Alternatively you can also configure with
8008 --disable-sdl." 1>&2; exit 1; }
8010 elif test "x${enable_sdl}" = "xyes"
8012 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
8013 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
8018 # Check whether --enable-directx or --disable-directx was given.
8019 if test "${enable_directx+set}" = set; then
8020 enableval="$enable_directx"
8024 if test "x${enable_directx}" != "xno"
8026 if test "x${SYS}" = "xmingw32"
8028 # Check whether --with-directx or --without-directx was given.
8029 if test "${with_directx+set}" = set; then
8030 withval="$with_directx"
8034 if test "x${with_directx}" = "x"
8036 for ac_hdr in ddraw.h
8038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8040 echo "configure:8041: checking for $ac_hdr" >&5
8041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8042 echo $ac_n "(cached) $ac_c" 1>&6
8044 cat > conftest.$ac_ext <<EOF
8045 #line 8046 "configure"
8046 #include "confdefs.h"
8049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8050 { (eval echo configure:8051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8052 if test -z "$ac_err"; then
8054 eval "ac_cv_header_$ac_safe=yes"
8057 echo "configure: failed program was:" >&5
8058 cat conftest.$ac_ext >&5
8060 eval "ac_cv_header_$ac_safe=no"
8064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8065 echo "$ac_t""yes" 1>&6
8066 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8067 cat >> confdefs.h <<EOF
8068 #define $ac_tr_hdr 1
8070 PLUGINS="${PLUGINS} video_output/directx/directx"
8071 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8073 echo "$ac_t""no" 1>&6
8078 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
8079 echo "configure:8080: checking for directX headers in ${with_directx}" >&5
8080 if test -f ${with_directx}/ddraw.h
8082 PLUGINS="${PLUGINS} video_output/directx/directx"
8083 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
8084 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
8085 echo "$ac_t""yes" 1>&6
8087 echo "$ac_t""no" 1>&6
8088 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
8094 # Check whether --enable-fb or --disable-fb was given.
8095 if test "${enable_fb+set}" = set; then
8096 enableval="$enable_fb"
8100 if test "x${enable_fb}" != "xno"
8102 for ac_hdr in linux/fb.h
8104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8106 echo "configure:8107: checking for $ac_hdr" >&5
8107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8110 cat > conftest.$ac_ext <<EOF
8111 #line 8112 "configure"
8112 #include "confdefs.h"
8115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8116 { (eval echo configure:8117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8118 if test -z "$ac_err"; then
8120 eval "ac_cv_header_$ac_safe=yes"
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8126 eval "ac_cv_header_$ac_safe=no"
8130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8131 echo "$ac_t""yes" 1>&6
8132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8133 cat >> confdefs.h <<EOF
8134 #define $ac_tr_hdr 1
8137 PLUGINS="${PLUGINS} video_output/fb/fb"
8140 echo "$ac_t""no" 1>&6
8146 # Check whether --enable-mga or --disable-mga was given.
8147 if test "${enable_mga+set}" = set; then
8148 enableval="$enable_mga"
8149 if test "x${enable_mga}" = "xyes"
8151 PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga"
8156 # Check whether --enable-ggi or --disable-ggi was given.
8157 if test "${enable_ggi+set}" = set; then
8158 enableval="$enable_ggi"
8162 if test "x${enable_ggi}" = "xyes"
8164 PLUGINS="${PLUGINS} video_output/ggi/ggi"
8165 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
8166 # Check whether --with-ggi or --without-ggi was given.
8167 if test "${with_ggi+set}" = set; then
8169 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
8171 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
8172 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
8178 # Check whether --enable-glide or --disable-glide was given.
8179 if test "${enable_glide+set}" = set; then
8180 enableval="$enable_glide"
8184 if test "x${enable_glide}" = "xyes"
8186 PLUGINS="${PLUGINS} video_output/glide/glide"
8187 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
8188 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
8189 # Check whether --with-glide or --without-glide was given.
8190 if test "${with_glide+set}" = set; then
8191 withval="$with_glide"
8192 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
8194 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
8195 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
8201 # Check whether --enable-aa or --disable-aa was given.
8202 if test "${enable_aa+set}" = set; then
8203 enableval="$enable_aa"
8207 if test "x${enable_aa}" = "xyes"
8209 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
8210 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
8211 echo "configure:8212: checking for aalib.h" >&5
8212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8213 echo $ac_n "(cached) $ac_c" 1>&6
8215 cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8221 { (eval echo configure:8222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8223 if test -z "$ac_err"; then
8225 eval "ac_cv_header_$ac_safe=yes"
8228 echo "configure: failed program was:" >&5
8229 cat conftest.$ac_ext >&5
8231 eval "ac_cv_header_$ac_safe=no"
8235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8236 echo "$ac_t""yes" 1>&6
8239 echo "$ac_t""no" 1>&6
8243 if test "x${have_aa}" = "xtrue"
8245 PLUGINS="${PLUGINS} video_output/aa/aa"
8246 aa_LDFLAGS="${aa_LDFLAGS} -laa"
8251 # Check whether --with- or --without- was given.
8252 if test "${with_+set}" = set; then
8258 # Check whether --enable-oss or --disable-oss was given.
8259 if test "${enable_oss+set}" = set; then
8260 enableval="$enable_oss"
8265 if test "x${enable_oss}" != "xno" &&
8266 (test "x${SYS}" != "xmingw32" || test "x${enable_oss}" = "xyes")
8268 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
8270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8272 echo "configure:8273: checking for $ac_hdr" >&5
8273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8274 echo $ac_n "(cached) $ac_c" 1>&6
8276 cat > conftest.$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8282 { (eval echo configure:8283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8284 if test -z "$ac_err"; then
8286 eval "ac_cv_header_$ac_safe=yes"
8289 echo "configure: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8292 eval "ac_cv_header_$ac_safe=no"
8296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8297 echo "$ac_t""yes" 1>&6
8298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8299 cat >> confdefs.h <<EOF
8300 #define $ac_tr_hdr 1
8303 PLUGINS="${PLUGINS} audio_output/oss"
8304 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
8305 echo "configure:8306: checking for main in -lossaudio" >&5
8306 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
8307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8308 echo $ac_n "(cached) $ac_c" 1>&6
8310 ac_save_LIBS="$LIBS"
8311 LIBS="-lossaudio $LIBS"
8312 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8320 if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8322 eval "ac_cv_lib_$ac_lib_var=yes"
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8327 eval "ac_cv_lib_$ac_lib_var=no"
8330 LIBS="$ac_save_LIBS"
8333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8334 echo "$ac_t""yes" 1>&6
8335 oss_LDFLAGS="${oss_LDFLAGS} -lossaudio"
8337 echo "$ac_t""no" 1>&6
8342 echo "$ac_t""no" 1>&6
8348 # Check whether --enable-esd or --disable-esd was given.
8349 if test "${enable_esd+set}" = set; then
8350 enableval="$enable_esd"
8351 if test "x${enable_esd}" = "xyes"
8353 # Extract the first word of "esd-config", so it can be a program name with args.
8354 set dummy esd-config; ac_word=$2
8355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8356 echo "configure:8357: checking for $ac_word" >&5
8357 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8360 case "$ESD_CONFIG" in
8362 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
8365 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
8368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8370 for ac_dir in $ac_dummy; do
8371 test -z "$ac_dir" && ac_dir=.
8372 if test -f $ac_dir/$ac_word; then
8373 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
8378 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
8382 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
8383 if test -n "$ESD_CONFIG"; then
8384 echo "$ac_t""$ESD_CONFIG" 1>&6
8386 echo "$ac_t""no" 1>&6
8389 if test "x${ESD_CONFIG}" != "xno"
8391 #PLUGINS="${PLUGINS} audio_output/esd"
8392 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
8393 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
8399 # Check whether --enable-arts or --disable-arts was given.
8400 if test "${enable_arts+set}" = set; then
8401 enableval="$enable_arts"
8402 if test "x${enable_arts}" = "xyes"
8404 # Extract the first word of "artsc-config", so it can be a program name with args.
8405 set dummy artsc-config; ac_word=$2
8406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8407 echo "configure:8408: checking for $ac_word" >&5
8408 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
8409 echo $ac_n "(cached) $ac_c" 1>&6
8411 case "$ARTS_CONFIG" in
8413 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8416 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8421 for ac_dir in $ac_dummy; do
8422 test -z "$ac_dir" && ac_dir=.
8423 if test -f $ac_dir/$ac_word; then
8424 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8429 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8433 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8434 if test -n "$ARTS_CONFIG"; then
8435 echo "$ac_t""$ARTS_CONFIG" 1>&6
8437 echo "$ac_t""no" 1>&6
8440 if test "x${ARTS_CONFIG}" != "xno"
8442 #PLUGINS="${PLUGINS} audio_output/arts"
8443 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8444 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8450 # Check whether --enable-alsa or --disable-alsa was given.
8451 if test "${enable_alsa+set}" = set; then
8452 enableval="$enable_alsa"
8453 if test "x${enable_alsa}" = "xyes"
8455 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8456 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8457 echo "configure:8458: checking for alsa/asoundlib.h" >&5
8458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8459 echo $ac_n "(cached) $ac_c" 1>&6
8461 cat > conftest.$ac_ext <<EOF
8462 #line 8463 "configure"
8463 #include "confdefs.h"
8464 #include <alsa/asoundlib.h>
8466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8467 { (eval echo configure:8468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8469 if test -z "$ac_err"; then
8471 eval "ac_cv_header_$ac_safe=yes"
8474 echo "configure: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8477 eval "ac_cv_header_$ac_safe=no"
8481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8482 echo "$ac_t""yes" 1>&6
8483 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8484 echo "configure:8485: checking for main in -lasound" >&5
8485 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8487 echo $ac_n "(cached) $ac_c" 1>&6
8489 ac_save_LIBS="$LIBS"
8490 LIBS="-lasound $LIBS"
8491 cat > conftest.$ac_ext <<EOF
8492 #line 8493 "configure"
8493 #include "confdefs.h"
8499 if { (eval echo configure:8500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8501 eval "ac_cv_lib_$ac_lib_var=yes"
8503 echo "configure: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8506 eval "ac_cv_lib_$ac_lib_var=no"
8509 LIBS="$ac_save_LIBS"
8512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8513 echo "$ac_t""yes" 1>&6
8516 echo "$ac_t""no" 1>&6
8521 echo "$ac_t""no" 1>&6
8525 if test "x${have_alsa}" = "xtrue"
8527 #PLUGINS="${PLUGINS} audio_output/alsa"
8528 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8534 # Check whether --enable-waveout or --disable-waveout was given.
8535 if test "${enable_waveout+set}" = set; then
8536 enableval="$enable_waveout"
8540 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8542 PLUGINS="${PLUGINS} audio_output/waveout"
8543 waveout_LDFLAGS="-lwinmm"
8547 # Check whether --with- or --without- was given.
8548 if test "${with_+set}" = set; then
8554 if test "x${SYS}" = "xbeos"
8556 PLUGINS="${PLUGINS} gui/beos/beos"
8559 # Check whether --enable-gtk or --disable-gtk was given.
8560 if test "${enable_gtk+set}" = set; then
8561 enableval="$enable_gtk"
8565 if test "x${enable_gtk}" != "xno"
8568 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8569 if test "${with_gtk_config_path+set}" = set; then
8570 withval="$with_gtk_config_path"
8571 if test "x${with_gtk_config_path}" != "xno"
8573 GTK_PATH="${with_gtk_config_path}:${PATH}"
8577 # look for gtk-config
8578 # Extract the first word of "gtk12-config", so it can be a program name with args.
8579 set dummy gtk12-config; ac_word=$2
8580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8581 echo "configure:8582: checking for $ac_word" >&5
8582 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8585 case "$GTK12_CONFIG" in
8587 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8590 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8594 ac_dummy="${GTK_PATH}"
8595 for ac_dir in $ac_dummy; do
8596 test -z "$ac_dir" && ac_dir=.
8597 if test -f $ac_dir/$ac_word; then
8598 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8603 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8607 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8608 if test -n "$GTK12_CONFIG"; then
8609 echo "$ac_t""$GTK12_CONFIG" 1>&6
8611 echo "$ac_t""no" 1>&6
8614 GTK_CONFIG=${GTK12_CONFIG}
8615 if test "x${GTK_CONFIG}" = "xno"
8617 # Extract the first word of "gtk-config", so it can be a program name with args.
8618 set dummy gtk-config; ac_word=$2
8619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8620 echo "configure:8621: checking for $ac_word" >&5
8621 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8624 case "$GTK_CONFIG" in
8626 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8629 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8633 ac_dummy="${GTK_PATH}"
8634 for ac_dir in $ac_dummy; do
8635 test -z "$ac_dir" && ac_dir=.
8636 if test -f $ac_dir/$ac_word; then
8637 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8642 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8646 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8647 if test -n "$GTK_CONFIG"; then
8648 echo "$ac_t""$GTK_CONFIG" 1>&6
8650 echo "$ac_t""no" 1>&6
8654 if test "x${GTK_CONFIG}" != "xno"
8656 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8658 { 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; }
8660 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8661 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8662 # now look for the gtk.h header
8663 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8664 ac_cv_gtk_headers=yes
8665 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8669 echo "configure:8670: checking for $ac_hdr" >&5
8670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8671 echo $ac_n "(cached) $ac_c" 1>&6
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8679 { (eval echo configure:8680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8681 if test -z "$ac_err"; then
8683 eval "ac_cv_header_$ac_safe=yes"
8686 echo "configure: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 eval "ac_cv_header_$ac_safe=no"
8693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8694 echo "$ac_t""yes" 1>&6
8695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8696 cat >> confdefs.h <<EOF
8697 #define $ac_tr_hdr 1
8701 echo "$ac_t""no" 1>&6
8702 ac_cv_gtk_headers=no
8703 echo "Cannot find gtk development headers."
8708 if test "x${ac_cv_gtk_headers}" = "xyes"
8710 PLUGINS="${PLUGINS} gui/gtk/gtk"
8711 ALIASES="${ALIASES} gvlc"
8713 CPPFLAGS="${save_CPPFLAGS}"
8717 # Check whether --enable-familiar or --disable-familiar was given.
8718 if test "${enable_familiar+set}" = set; then
8719 enableval="$enable_familiar"
8723 if test "x${enable_familiar}" = "xyes"
8726 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8727 if test "${with_gtk_config_path+set}" = set; then
8728 withval="$with_gtk_config_path"
8729 if test "x${with_gtk_config_path}" != "xno"
8731 GTK_PATH="${with_gtk_config_path}:${PATH}"
8735 # look for gtk-config
8736 # Extract the first word of "gtk12-config", so it can be a program name with args.
8737 set dummy gtk12-config; ac_word=$2
8738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8739 echo "configure:8740: checking for $ac_word" >&5
8740 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8741 echo $ac_n "(cached) $ac_c" 1>&6
8743 case "$GTK12_CONFIG" in
8745 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8748 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8752 ac_dummy="${GTK_PATH}"
8753 for ac_dir in $ac_dummy; do
8754 test -z "$ac_dir" && ac_dir=.
8755 if test -f $ac_dir/$ac_word; then
8756 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8761 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8765 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8766 if test -n "$GTK12_CONFIG"; then
8767 echo "$ac_t""$GTK12_CONFIG" 1>&6
8769 echo "$ac_t""no" 1>&6
8772 GTK_CONFIG=${GTK12_CONFIG}
8773 if test "x${GTK_CONFIG}" = "xno"
8775 # Extract the first word of "gtk-config", so it can be a program name with args.
8776 set dummy gtk-config; ac_word=$2
8777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8778 echo "configure:8779: checking for $ac_word" >&5
8779 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8782 case "$GTK_CONFIG" in
8784 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8787 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8791 ac_dummy="${GTK_PATH}"
8792 for ac_dir in $ac_dummy; do
8793 test -z "$ac_dir" && ac_dir=.
8794 if test -f $ac_dir/$ac_word; then
8795 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8800 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8804 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8805 if test -n "$GTK_CONFIG"; then
8806 echo "$ac_t""$GTK_CONFIG" 1>&6
8808 echo "$ac_t""no" 1>&6
8812 if test "x${GTK_CONFIG}" != "xno"
8814 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8816 { 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; }
8818 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8819 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8820 # now look for the gtk.h header
8821 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8822 ac_cv_gtk_headers=yes
8823 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8827 echo "configure:8828: checking for $ac_hdr" >&5
8828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8829 echo $ac_n "(cached) $ac_c" 1>&6
8831 cat > conftest.$ac_ext <<EOF
8832 #line 8833 "configure"
8833 #include "confdefs.h"
8836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8837 { (eval echo configure:8838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8839 if test -z "$ac_err"; then
8841 eval "ac_cv_header_$ac_safe=yes"
8844 echo "configure: failed program was:" >&5
8845 cat conftest.$ac_ext >&5
8847 eval "ac_cv_header_$ac_safe=no"
8851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8852 echo "$ac_t""yes" 1>&6
8853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8854 cat >> confdefs.h <<EOF
8855 #define $ac_tr_hdr 1
8859 echo "$ac_t""no" 1>&6
8860 ac_cv_gtk_headers=no
8861 echo "Cannot find gtk development headers."
8866 if test "x${ac_cv_gtk_headers}" = "xyes"
8868 PLUGINS="${PLUGINS} gui/familiar/familiar"
8870 CPPFLAGS="${save_CPPFLAGS}"
8874 # Check whether --enable-gnome or --disable-gnome was given.
8875 if test "${enable_gnome+set}" = set; then
8876 enableval="$enable_gnome"
8877 if test "x${enable_gnome}" = "xyes"; then
8878 # look for gnome-config
8879 # Extract the first word of "gnome-config", so it can be a program name with args.
8880 set dummy gnome-config; ac_word=$2
8881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8882 echo "configure:8883: checking for $ac_word" >&5
8883 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8884 echo $ac_n "(cached) $ac_c" 1>&6
8886 case "$GNOME_CONFIG" in
8888 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8891 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8896 for ac_dir in $ac_dummy; do
8897 test -z "$ac_dir" && ac_dir=.
8898 if test -f $ac_dir/$ac_word; then
8899 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8904 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8908 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8909 if test -n "$GNOME_CONFIG"; then
8910 echo "$ac_t""$GNOME_CONFIG" 1>&6
8912 echo "$ac_t""no" 1>&6
8915 if test -x ${GNOME_CONFIG}
8917 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8918 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8920 # now look for the gnome.h header
8921 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8922 for ac_hdr in gnome.h
8924 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8925 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8926 echo "configure:8927: checking for $ac_hdr" >&5
8927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8928 echo $ac_n "(cached) $ac_c" 1>&6
8930 cat > conftest.$ac_ext <<EOF
8931 #line 8932 "configure"
8932 #include "confdefs.h"
8935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8936 { (eval echo configure:8937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8938 if test -z "$ac_err"; then
8940 eval "ac_cv_header_$ac_safe=yes"
8943 echo "configure: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8946 eval "ac_cv_header_$ac_safe=no"
8950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8951 echo "$ac_t""yes" 1>&6
8952 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8953 cat >> confdefs.h <<EOF
8954 #define $ac_tr_hdr 1
8957 PLUGINS="${PLUGINS} gui/gtk/gnome"
8958 ALIASES="${ALIASES} gnome-vlc"
8961 echo "$ac_t""no" 1>&6
8962 { echo "configure: error: Can't find gnome headers. Please install the gnome
8963 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8968 CPPFLAGS="${save_CPPFLAGS}"
8973 # Check whether --enable-qt or --disable-qt was given.
8974 if test "${enable_qt+set}" = set; then
8975 enableval="$enable_qt"
8976 if test "x${enable_qt}" = "xyes"; then
8977 PLUGINS="${PLUGINS} gui/qt/qt"
8978 ALIASES="${ALIASES} qvlc"
8979 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8980 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8981 if test -x ${QTDIR}/bin/moc
8983 MOC=${QTDIR}/bin/moc
8991 # Check whether --enable-kde or --disable-kde was given.
8992 if test "${enable_kde+set}" = set; then
8993 enableval="$enable_kde"
8994 if test "x${enable_kde}" = "xyes"; then
8995 PLUGINS="${PLUGINS} gui/kde/kde"
8996 ALIASES="${ALIASES} kvlc"
8997 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8998 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8999 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
9000 if test -x ${QTDIR}/bin/moc
9002 MOC=${QTDIR}/bin/moc
9010 # Check whether --enable-qte or --disable-qte was given.
9011 if test "${enable_qte+set}" = set; then
9012 enableval="$enable_qte"
9013 if test "x${enable_qte}" = "xyes"; then
9014 PLUGINS="${PLUGINS} gui/qte/qte"
9015 qte_LDFLAGS="${qte_LDFLAGS} -lqte -L${QTEDIR}/lib"
9016 qte_CFLAGS="${qte_CFLAGS} -I/usr/include/qte -I${QTEDIR}/include"
9017 if test -x ${QTEDIR}/bin/moc
9019 MOC=${QTEDIR}/bin/moc
9028 # Check whether --enable-macosx or --disable-macosx was given.
9029 if test "${enable_macosx+set}" = set; then
9030 enableval="$enable_macosx"
9031 if test "x${enable_macosx}" = "xyes"
9033 BUILTINS="${BUILTINS} gui/macosx/macosx"
9034 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9037 for ac_hdr in Cocoa/Cocoa.h
9039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9041 echo "configure:9042: checking for $ac_hdr" >&5
9042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9043 echo $ac_n "(cached) $ac_c" 1>&6
9045 cat > conftest.$ac_ext <<EOF
9046 #line 9047 "configure"
9047 #include "confdefs.h"
9050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9051 { (eval echo configure:9052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9053 if test -z "$ac_err"; then
9055 eval "ac_cv_header_$ac_safe=yes"
9058 echo "configure: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9061 eval "ac_cv_header_$ac_safe=no"
9065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9066 echo "$ac_t""yes" 1>&6
9067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9068 cat >> confdefs.h <<EOF
9069 #define $ac_tr_hdr 1
9071 BUILTINS="${BUILTINS} gui/macosx/macosx"
9072 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
9075 echo "$ac_t""no" 1>&6
9082 # Check whether --enable-qnx or --disable-qnx was given.
9083 if test "${enable_qnx+set}" = set; then
9084 enableval="$enable_qnx"
9088 if test "x${enable_qnx}" != "xno"
9092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9094 echo "configure:9095: checking for $ac_hdr" >&5
9095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9098 cat > conftest.$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9104 { (eval echo configure:9105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9106 if test -z "$ac_err"; then
9108 eval "ac_cv_header_$ac_safe=yes"
9111 echo "configure: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9114 eval "ac_cv_header_$ac_safe=no"
9118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9119 echo "$ac_t""yes" 1>&6
9120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9121 cat >> confdefs.h <<EOF
9122 #define $ac_tr_hdr 1
9125 PLUGINS="${PLUGINS} gui/qnx/qnx"
9126 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
9129 echo "$ac_t""no" 1>&6
9135 # Check whether --enable-intfwin or --disable-intfwin was given.
9136 if test "${enable_intfwin+set}" = set; then
9137 enableval="$enable_intfwin"
9138 if test "x${enable_intfwin}" != "xno"
9140 # Check whether --with-bcbuilder or --without-bcbuilder was given.
9141 if test "${with_bcbuilder+set}" = set; then
9142 withval="$with_bcbuilder"
9146 if test "x${with_bcbuilder}" != "x"
9148 BCBUILDER="${with_bcbuilder}"
9150 PLUGINS="${PLUGINS} gui/win32/win32"
9155 # Check whether --enable-ncurses or --disable-ncurses was given.
9156 if test "${enable_ncurses+set}" = set; then
9157 enableval="$enable_ncurses"
9158 if test "x${enable_ncurses}" = "xyes"; then
9159 PLUGINS="${PLUGINS} gui/ncurses/ncurses"
9160 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
9165 # Check whether --enable-xosd or --disable-xosd was given.
9166 if test "${enable_xosd+set}" = set; then
9167 enableval="$enable_xosd"
9171 if test "x${enable_xosd}" = "xyes"
9173 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
9174 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
9175 echo "configure:9176: checking for xosd.h" >&5
9176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9179 cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9185 { (eval echo configure:9186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9187 if test -z "$ac_err"; then
9189 eval "ac_cv_header_$ac_safe=yes"
9192 echo "configure: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9195 eval "ac_cv_header_$ac_safe=no"
9199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9200 echo "$ac_t""yes" 1>&6
9203 echo "$ac_t""no" 1>&6
9207 if test "x${have_xosd}" = "xtrue"
9209 PLUGINS="${PLUGINS} visualization/xosd/xosd"
9210 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
9214 # Check whether --enable-lirc or --disable-lirc was given.
9215 if test "${enable_lirc+set}" = set; then
9216 enableval="$enable_lirc"
9220 if test "x${enable_lirc}" = "xyes"
9222 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
9223 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
9224 echo "configure:9225: checking for lirc/lirc_client.h" >&5
9225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9226 echo $ac_n "(cached) $ac_c" 1>&6
9228 cat > conftest.$ac_ext <<EOF
9229 #line 9230 "configure"
9230 #include "confdefs.h"
9231 #include <lirc/lirc_client.h>
9233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9234 { (eval echo configure:9235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9236 if test -z "$ac_err"; then
9238 eval "ac_cv_header_$ac_safe=yes"
9241 echo "configure: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9244 eval "ac_cv_header_$ac_safe=no"
9248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9249 echo "$ac_t""yes" 1>&6
9250 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
9251 echo "configure:9252: checking for lirc_init in -llirc_client" >&5
9252 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
9253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9256 ac_save_LIBS="$LIBS"
9257 LIBS="-llirc_client $LIBS"
9258 cat > conftest.$ac_ext <<EOF
9259 #line 9260 "configure"
9260 #include "confdefs.h"
9261 /* Override any gcc2 internal prototype to avoid an error. */
9262 /* We use char because int might match the return type of a gcc2
9263 builtin and then its argument prototype would still apply. */
9270 if { (eval echo configure:9271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9272 eval "ac_cv_lib_$ac_lib_var=yes"
9274 echo "configure: failed program was:" >&5
9275 cat conftest.$ac_ext >&5
9277 eval "ac_cv_lib_$ac_lib_var=no"
9280 LIBS="$ac_save_LIBS"
9283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9284 echo "$ac_t""yes" 1>&6
9287 echo "$ac_t""no" 1>&6
9292 echo "$ac_t""no" 1>&6
9296 if test "x${have_lirc}" = "xtrue"
9298 PLUGINS="${PLUGINS} control/lirc/lirc"
9299 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
9303 # Check whether --with- or --without- was given.
9304 if test "${with_+set}" = set; then
9310 # Check whether --with-words or --without-words was given.
9311 if test "${with_words+set}" = set; then
9312 withval="$with_words"
9316 case "x${with_words}" in
9318 ac_cv_c_bigendian=yes
9321 ac_cv_c_bigendian=no
9324 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
9325 echo "configure:9326: checking whether the byte order is big-endian" >&5
9326 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9329 ac_cv_c_bigendian="unknown"
9330 cat >conftest.c <<EOF
9331 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
9332 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
9333 void _a(void) { char*s = (char*)am; s = (char *)ai; }
9334 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
9335 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
9336 void _e(void) { char*s = (char*)em; s = (char*)ei; }
9337 int main(void) { _a(); _e(); return 0; }
9340 if test -f conftest.c
9342 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
9343 && test -f conftest.o
9345 if test "`strings conftest.o | grep BIGenDianSyS`"
9347 ac_cv_c_bigendian="yes"
9349 if test "`strings conftest.o | grep LiTTleEnDian`"
9351 ac_cv_c_bigendian="no"
9358 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9359 if test "x${ac_cv_c_bigendian}" = "xunknown"
9361 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
9365 if test "${ac_cv_c_bigendian}" = "yes"
9367 cat >> confdefs.h <<\EOF
9368 #define WORDS_BIGENDIAN 1
9376 # Check whether --enable-gprof or --disable-gprof was given.
9377 if test "${enable_gprof+set}" = set; then
9378 enableval="$enable_gprof"
9379 if test "x${enable_gprof}" = "xyes"
9389 # Check whether --enable-cprof or --disable-cprof was given.
9390 if test "${enable_cprof+set}" = set; then
9391 enableval="$enable_cprof"
9392 if test "x${enable_cprof}" = "xyes"
9394 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
9402 # Check whether --enable-pth or --disable-pth was given.
9403 if test "${enable_pth+set}" = set; then
9404 enableval="$enable_pth"
9405 if test "x${enable_pth}" = "xyes"; then
9406 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
9407 echo "configure:9408: checking for pth_init in -lpth" >&5
9408 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
9409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9412 ac_save_LIBS="$LIBS"
9414 cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure"
9416 #include "confdefs.h"
9417 /* Override any gcc2 internal prototype to avoid an error. */
9418 /* We use char because int might match the return type of a gcc2
9419 builtin and then its argument prototype would still apply. */
9426 if { (eval echo configure:9427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9428 eval "ac_cv_lib_$ac_lib_var=yes"
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9433 eval "ac_cv_lib_$ac_lib_var=no"
9436 LIBS="$ac_save_LIBS"
9439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9440 echo "$ac_t""yes" 1>&6
9441 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9442 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9443 cat >> confdefs.h <<EOF
9444 #define $ac_tr_lib 1
9450 echo "$ac_t""no" 1>&6
9453 cat > conftest.$ac_ext <<EOF
9454 #line 9455 "configure"
9455 #include "confdefs.h"
9458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9459 egrep "pth_init" >/dev/null 2>&1; then
9462 cat >> confdefs.h <<\EOF
9463 #define PTH_INIT_IN_PTH_H 1
9475 # Check whether --enable-st or --disable-st was given.
9476 if test "${enable_st+set}" = set; then
9477 enableval="$enable_st"
9478 if test "x${enable_st}" = "xyes"; then
9479 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9480 echo "configure:9481: checking for st_init in -lst" >&5
9481 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9483 echo $ac_n "(cached) $ac_c" 1>&6
9485 ac_save_LIBS="$LIBS"
9487 cat > conftest.$ac_ext <<EOF
9488 #line 9489 "configure"
9489 #include "confdefs.h"
9490 /* Override any gcc2 internal prototype to avoid an error. */
9491 /* We use char because int might match the return type of a gcc2
9492 builtin and then its argument prototype would still apply. */
9499 if { (eval echo configure:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9501 eval "ac_cv_lib_$ac_lib_var=yes"
9503 echo "configure: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9506 eval "ac_cv_lib_$ac_lib_var=no"
9509 LIBS="$ac_save_LIBS"
9512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9513 echo "$ac_t""yes" 1>&6
9514 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9516 cat >> confdefs.h <<EOF
9517 #define $ac_tr_lib 1
9523 echo "$ac_t""no" 1>&6
9526 cat > conftest.$ac_ext <<EOF
9527 #line 9528 "configure"
9528 #include "confdefs.h"
9531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9532 egrep "st_init" >/dev/null 2>&1; then
9535 cat >> confdefs.h <<\EOF
9536 #define ST_INIT_IN_ST_H 1
9548 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9549 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9552 # Check whether --enable-mozilla or --disable-mozilla was given.
9553 if test "${enable_mozilla+set}" = set; then
9554 enableval="$enable_mozilla"
9558 if test "x${enable_mozilla}" = "xyes"
9560 # Extract the first word of "mozilla-config", so it can be a program name with args.
9561 set dummy mozilla-config; ac_word=$2
9562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9563 echo "configure:9564: checking for $ac_word" >&5
9564 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9567 case "$MOZILLA_CONFIG" in
9569 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9572 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9577 for ac_dir in $ac_dummy; do
9578 test -z "$ac_dir" && ac_dir=.
9579 if test -f $ac_dir/$ac_word; then
9580 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9585 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9589 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9590 if test -n "$MOZILLA_CONFIG"; then
9591 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9593 echo "$ac_t""no" 1>&6
9596 if test "x${MOZILLA_CONFIG}" != "xno"
9598 if test "x${SYS}" != "xmingw32"; then
9599 LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9600 echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9601 echo "configure:9602: checking for XtStrings in -lXt" >&5
9602 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9604 echo $ac_n "(cached) $ac_c" 1>&6
9606 ac_save_LIBS="$LIBS"
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9611 /* Override any gcc2 internal prototype to avoid an error. */
9612 /* We use char because int might match the return type of a gcc2
9613 builtin and then its argument prototype would still apply. */
9620 if { (eval echo configure:9621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9622 eval "ac_cv_lib_$ac_lib_var=yes"
9624 echo "configure: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9627 eval "ac_cv_lib_$ac_lib_var=no"
9630 LIBS="$ac_save_LIBS"
9633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9634 echo "$ac_t""yes" 1>&6
9636 mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9639 echo "$ac_t""no" 1>&6
9642 LDFLAGS="${save_LDFLAGS}"
9645 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9646 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9650 # Check whether --enable-plugins or --disable-plugins was given.
9651 if test "${enable_plugins+set}" = set; then
9652 enableval="$enable_plugins"
9653 if test "x${enable_plugins}" = "xno"
9655 BUILTINS="${BUILTINS} ${PLUGINS}"
9661 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9663 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9665 BUILTINS="${BUILTINS} ${PLUGINS}"
9669 cat >> confdefs.h <<EOF
9670 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9673 cat >> confdefs.h <<EOF
9674 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9677 cat >> confdefs.h <<EOF
9678 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9682 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9683 cat >> confdefs.h <<EOF
9684 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9687 cat >> confdefs.h <<EOF
9688 #define MODULE_SYMBOL ${VLC_SYMBOL}
9692 DATA_PATH="${ac_tool_prefix}/share/videolan"
9694 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9697 CPPFLAGS="${save_CPPFLAGS}"
9698 CFLAGS="${save_CFLAGS}"
9699 LDFLAGS="${save_LDFLAGS}"
9701 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9702 for i in `echo ${BUILTINS} | sed -e 's#[^ ]*/##g'` ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9816 cat > confcache <<\EOF
9817 # This file is a shell script that caches the results of configure
9818 # tests run on this system so they can be shared between configure
9819 # scripts and configure runs. It is not useful on other systems.
9820 # If it contains results you don't want to keep, you may remove or edit it.
9822 # By default, configure uses ./config.cache as the cache file,
9823 # creating it if it does not exist already. You can give configure
9824 # the --cache-file=FILE option to use a different cache file; that is
9825 # what configure does when it calls configure scripts in
9826 # subdirectories, so they share the cache.
9827 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9828 # config.status only pays attention to the cache file if you give it the
9829 # --recheck option to rerun configure.
9832 # The following way of writing the cache mishandles newlines in values,
9833 # but we know of no workaround that is simple, portable, and efficient.
9834 # So, don't put newlines in cache variables' values.
9835 # Ultrix sh set writes to stderr and can't be redirected directly,
9836 # and sets the high bit in the cache file unless we assign to the vars.
9838 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9840 # `set' does not quote correctly, so add quotes (double-quote substitution
9841 # turns \\\\ into \\, and sed turns \\ into \).
9843 -e "s/'/'\\\\''/g" \
9844 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9847 # `set' quotes correctly as required by POSIX, so do not add quotes.
9848 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9851 if cmp -s $cache_file confcache; then
9854 if test -w $cache_file; then
9855 echo "updating cache $cache_file"
9856 cat confcache > $cache_file
9858 echo "not updating unwritable cache $cache_file"
9863 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9865 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9866 # Let make expand exec_prefix.
9867 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9869 # Any assignment to VPATH causes Sun make to only execute
9870 # the first set of double-colon rules, so remove it if not needed.
9871 # If there is a colon in the path, we need to keep it.
9872 if test "x$srcdir" = x.; then
9873 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9876 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9878 DEFS=-DHAVE_CONFIG_H
9880 # Without the "./", some shells look in PATH for config.status.
9881 : ${CONFIG_STATUS=./config.status}
9883 echo creating $CONFIG_STATUS
9884 rm -f $CONFIG_STATUS
9885 cat > $CONFIG_STATUS <<EOF
9887 # Generated automatically by configure.
9888 # Run this file to recreate the current configuration.
9889 # This directory was configured as follows,
9890 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9892 # $0 $ac_configure_args
9894 # Compiler output produced by configure, useful for debugging
9895 # configure, is in ./config.log if it exists.
9897 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9900 case "\$ac_option" in
9901 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9902 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9903 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9904 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9905 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9907 -help | --help | --hel | --he | --h)
9908 echo "\$ac_cs_usage"; exit 0 ;;
9909 *) echo "\$ac_cs_usage"; exit 1 ;;
9913 ac_given_srcdir=$srcdir
9914 ac_given_INSTALL="$INSTALL"
9916 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
9918 cat >> $CONFIG_STATUS <<EOF
9920 # Protect against being on the right side of a sed subst in config.status.
9921 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9922 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9926 s%@CFLAGS@%$CFLAGS%g
9927 s%@CPPFLAGS@%$CPPFLAGS%g
9928 s%@CXXFLAGS@%$CXXFLAGS%g
9929 s%@FFLAGS@%$FFLAGS%g
9931 s%@LDFLAGS@%$LDFLAGS%g
9933 s%@exec_prefix@%$exec_prefix%g
9934 s%@prefix@%$prefix%g
9935 s%@program_transform_name@%$program_transform_name%g
9936 s%@bindir@%$bindir%g
9937 s%@sbindir@%$sbindir%g
9938 s%@libexecdir@%$libexecdir%g
9939 s%@datadir@%$datadir%g
9940 s%@sysconfdir@%$sysconfdir%g
9941 s%@sharedstatedir@%$sharedstatedir%g
9942 s%@localstatedir@%$localstatedir%g
9943 s%@libdir@%$libdir%g
9944 s%@includedir@%$includedir%g
9945 s%@oldincludedir@%$oldincludedir%g
9946 s%@infodir@%$infodir%g
9947 s%@mandir@%$mandir%g
9949 s%@host_alias@%$host_alias%g
9950 s%@host_cpu@%$host_cpu%g
9951 s%@host_vendor@%$host_vendor%g
9952 s%@host_os@%$host_os%g
9953 s%@target@%$target%g
9954 s%@target_alias@%$target_alias%g
9955 s%@target_cpu@%$target_cpu%g
9956 s%@target_vendor@%$target_vendor%g
9957 s%@target_os@%$target_os%g
9959 s%@build_alias@%$build_alias%g
9960 s%@build_cpu@%$build_cpu%g
9961 s%@build_vendor@%$build_vendor%g
9962 s%@build_os@%$build_os%g
9963 s%@SET_MAKE@%$SET_MAKE%g
9966 s%@RANLIB@%$RANLIB%g
9969 s%@ALLOCA@%$ALLOCA%g
9970 s%@GLIBC21@%$GLIBC21%g
9971 s%@LIBICONV@%$LIBICONV%g
9972 s%@USE_NLS@%$USE_NLS%g
9973 s%@MSGFMT@%$MSGFMT%g
9974 s%@GMSGFMT@%$GMSGFMT%g
9975 s%@XGETTEXT@%$XGETTEXT%g
9976 s%@INTLBISON@%$INTLBISON%g
9977 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9978 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9979 s%@CATALOGS@%$CATALOGS%g
9980 s%@CATOBJEXT@%$CATOBJEXT%g
9981 s%@GMOFILES@%$GMOFILES%g
9982 s%@INTLLIBS@%$INTLLIBS%g
9983 s%@INTLOBJS@%$INTLOBJS%g
9984 s%@POFILES@%$POFILES%g
9986 s%@DATADIRNAME@%$DATADIRNAME%g
9987 s%@INSTOBJEXT@%$INSTOBJEXT%g
9988 s%@GENCAT@%$GENCAT%g
9989 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9990 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9991 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9992 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9993 s%@INSTALL_DATA@%$INSTALL_DATA%g
9994 s%@WINDRES@%$WINDRES%g
9995 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9996 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9997 s%@SDL_CONFIG@%$SDL_CONFIG%g
9998 s%@ESD_CONFIG@%$ESD_CONFIG%g
9999 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
10000 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
10001 s%@GTK_CONFIG@%$GTK_CONFIG%g
10002 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
10003 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
10004 s%@DATA_PATH@%$DATA_PATH%g
10005 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
10006 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
10009 s%@PLUGINS@%$PLUGINS%g
10010 s%@BUILTINS@%$BUILTINS%g
10011 s%@ALIASES@%$ALIASES%g
10016 s%@OPTIMS@%$OPTIMS%g
10017 s%@TUNING@%$TUNING%g
10018 s%@RELEASE@%$RELEASE%g
10020 s%@BCBUILDER@%$BCBUILDER%g
10021 s%@PACKAGE@%$PACKAGE%g
10022 s%@VERSION@%$VERSION%g
10023 s%@NEED_GETOPT@%$NEED_GETOPT%g
10024 s%@MOZILLA@%$MOZILLA%g
10025 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
10026 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
10027 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
10028 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
10029 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
10030 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
10031 s%@a52_CFLAGS@%$a52_CFLAGS%g
10032 s%@arts_CFLAGS@%$arts_CFLAGS%g
10033 s%@i420_yuy2_mmx_CFLAGS@%$i420_yuy2_mmx_CFLAGS%g
10034 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
10035 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
10036 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
10037 s%@ts_dvbpsi_CFLAGS@%$ts_dvbpsi_CFLAGS%g
10038 s%@directx_CFLAGS@%$directx_CFLAGS%g
10039 s%@esd_CFLAGS@%$esd_CFLAGS%g
10040 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
10041 s%@faad_CFLAGS@%$faad_CFLAGS%g
10042 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
10043 s%@glide_CFLAGS@%$glide_CFLAGS%g
10044 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
10045 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
10046 s%@kde_CFLAGS@%$kde_CFLAGS%g
10047 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
10048 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
10049 s%@mad_CFLAGS@%$mad_CFLAGS%g
10050 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
10051 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
10052 s%@qt_CFLAGS@%$qt_CFLAGS%g
10053 s%@qte_CFLAGS@%$qte_CFLAGS%g
10054 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
10055 s%@x11_CFLAGS@%$x11_CFLAGS%g
10056 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
10057 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
10058 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
10059 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
10060 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
10061 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
10062 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
10063 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
10064 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
10065 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
10066 s%@i420_rgb_LDFLAGS@%$i420_rgb_LDFLAGS%g
10067 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
10068 s%@dv_LDFLAGS@%$dv_LDFLAGS%g
10069 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
10070 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
10071 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
10072 s%@ts_dvbpsi_LDFLAGS@%$ts_dvbpsi_LDFLAGS%g
10073 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
10074 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
10075 s%@distort_LDFLAGS@%$distort_LDFLAGS%g
10076 s%@faad_LDFLAGS@%$faad_LDFLAGS%g
10077 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
10078 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
10079 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
10080 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
10081 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
10082 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
10083 s%@http_LDFLAGS@%$http_LDFLAGS%g
10084 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
10085 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
10086 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
10087 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
10088 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
10089 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
10090 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
10091 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
10092 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
10093 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
10094 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
10095 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
10096 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
10097 s%@oss_LDFLAGS@%$oss_LDFLAGS%g
10098 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
10099 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
10100 s%@qte_LDFLAGS@%$qte_LDFLAGS%g
10101 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
10102 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
10103 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
10104 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
10105 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
10106 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
10107 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
10108 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
10113 cat >> $CONFIG_STATUS <<\EOF
10115 # Split the substitutions into bite-sized pieces for seds with
10116 # small command number limits, like on Digital OSF/1 and HP-UX.
10117 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10118 ac_file=1 # Number of current file.
10119 ac_beg=1 # First line for current file.
10120 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10123 while $ac_more_lines; do
10124 if test $ac_beg -gt 1; then
10125 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10127 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10129 if test ! -s conftest.s$ac_file; then
10130 ac_more_lines=false
10131 rm -f conftest.s$ac_file
10133 if test -z "$ac_sed_cmds"; then
10134 ac_sed_cmds="sed -f conftest.s$ac_file"
10136 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10138 ac_file=`expr $ac_file + 1`
10140 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10143 if test -z "$ac_sed_cmds"; then
10148 cat >> $CONFIG_STATUS <<EOF
10150 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
10152 cat >> $CONFIG_STATUS <<\EOF
10153 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10154 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10156 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10157 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10158 *) ac_file_in="${ac_file}.in" ;;
10161 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10163 # Remove last slash and all that follows it. Not all systems have dirname.
10164 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10165 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10166 # The file is in a subdirectory.
10167 test ! -d "$ac_dir" && mkdir "$ac_dir"
10168 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10169 # A "../" for each directory in $ac_dir_suffix.
10170 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10172 ac_dir_suffix= ac_dots=
10175 case "$ac_given_srcdir" in
10177 if test -z "$ac_dots"; then top_srcdir=.
10178 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10179 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10180 *) # Relative path.
10181 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10182 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10185 case "$ac_given_INSTALL" in
10186 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10187 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10190 echo creating "$ac_file"
10192 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10194 *Makefile*) ac_comsub="1i\\
10195 # $configure_input" ;;
10199 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10201 s%@configure_input@%$configure_input%g
10202 s%@srcdir@%$srcdir%g
10203 s%@top_srcdir@%$top_srcdir%g
10204 s%@INSTALL@%$INSTALL%g
10205 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10209 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10210 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10212 # ac_d sets the value in "#define NAME VALUE" lines.
10213 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10214 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10217 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10218 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10219 ac_uB='\([ ]\)%\1#\2define\3'
10222 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10223 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10224 ac_eB='$%\1#\2define\3'
10228 if test "${CONFIG_HEADERS+set}" != set; then
10230 cat >> $CONFIG_STATUS <<EOF
10231 CONFIG_HEADERS="include/defs.h"
10233 cat >> $CONFIG_STATUS <<\EOF
10235 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10236 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10238 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10239 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10240 *) ac_file_in="${ac_file}.in" ;;
10243 echo creating $ac_file
10245 rm -f conftest.frag conftest.in conftest.out
10246 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10247 cat $ac_file_inputs > conftest.in
10251 # Transform confdefs.h into a sed script conftest.vals that substitutes
10252 # the proper values into config.h.in to produce config.h. And first:
10253 # Protect against being on the right side of a sed subst in config.status.
10254 # Protect against being in an unquoted here document in config.status.
10255 rm -f conftest.vals
10256 cat > conftest.hdr <<\EOF
10259 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10263 sed -n -f conftest.hdr confdefs.h > conftest.vals
10266 # This sed command replaces #undef with comments. This is necessary, for
10267 # example, in the case of _POSIX_SOURCE, which is predefined and required
10268 # on some systems where configure will not decide to define it.
10269 cat >> conftest.vals <<\EOF
10270 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10273 # Break up conftest.vals because some shells have a limit on
10274 # the size of here documents, and old seds have small limits too.
10276 rm -f conftest.tail
10279 ac_lines=`grep -c . conftest.vals`
10280 # grep -c gives empty output for an empty file on some AIX systems.
10281 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10282 # Write a limited-size here document to conftest.frag.
10283 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10284 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10286 sed -f conftest.frag conftest.in > conftest.out
10288 mv conftest.out conftest.in
10289 ' >> $CONFIG_STATUS
10290 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10291 rm -f conftest.vals
10292 mv conftest.tail conftest.vals
10294 rm -f conftest.vals
10296 cat >> $CONFIG_STATUS <<\EOF
10297 rm -f conftest.frag conftest.h
10298 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10299 cat conftest.in >> conftest.h
10301 if cmp -s $ac_file conftest.h 2>/dev/null; then
10302 echo "$ac_file is unchanged"
10305 # Remove last slash and all that follows it. Not all systems have dirname.
10306 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10307 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10308 # The file is in a subdirectory.
10309 test ! -d "$ac_dir" && mkdir "$ac_dir"
10312 mv conftest.h $ac_file
10317 cat >> $CONFIG_STATUS <<EOF
10321 cat >> $CONFIG_STATUS <<\EOF
10322 for ac_file in $CONFIG_FILES; do
10323 # Support "outfile[:infile[:infile...]]"
10325 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10327 # PO directories have a Makefile.in generated from Makefile.in.in.
10328 case "$ac_file" in */Makefile.in)
10329 # Adjust a relative srcdir.
10330 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10331 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10332 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10333 # In autoconf-2.13 it is called $ac_given_srcdir.
10334 # In autoconf-2.50 it is called $srcdir.
10335 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10336 case "$ac_given_srcdir" in
10337 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10338 /*) top_srcdir="$ac_given_srcdir" ;;
10339 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10341 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10342 rm -f "$ac_dir/POTFILES"
10343 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10344 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10345 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10346 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10354 chmod +x $CONFIG_STATUS
10355 rm -fr confdefs* $ac_clean_files
10356 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10358 chmod a+x vlc-config
10362 --------------------
10363 vlc version : ${VERSION}
10365 architecture : ${ARCH}
10366 optimizations : ${OPTIMS}
10368 debug mode : ${DEBUG}
10369 release : ${RELEASE}
10370 profiling : ${PROFILING}
10371 need builtin getopt : ${NEED_GETOPT}
10372 built-in modules :${BUILTINS}
10373 plug-in modules :${PLUGINS}
10374 mozilla plugin : ${MOZILLA}
10375 vlc aliases :${ALIASES}
10377 You may now tune Makefile.opts at your convenience, for instance to choose
10378 which modules get compiled as plugins.
10380 To build vlc and its plugins, type \`${VLC_MAKE}'.