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-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
60 --enable-satellite satellite card support (default disabled)"
62 --enable-avi AVI demux module (default enabled)"
66 --enable-mad libmad module (default disabled)"
68 --with-mad=PATH path to libmad"
70 --with-mad-tree=PATH mad tree for static linking"
72 --enable-ffmpeg ffmpeg codec (default disabled)"
74 --with-ffmpeg=PATH path to ffmpeg installation"
76 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
78 --enable-mp4 MP4 demux module (default disabled)"
80 --enable-a52 AC3 support with liba52 (default enabled)"
82 --with-a52-tree=PATH a52dec tree for static linking "
84 --enable-cinepak Cinepak decoder (default enabled)"
86 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
90 --enable-x11 X11 support (default enabled)"
92 --enable-xvideo XVideo support (default enabled)"
94 --enable-sdl SDL support (default enabled)"
96 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
98 --enable-directx Win32 DirectX support (default enabled on Win32)"
100 --with-directx=PATH Win32 DirectX headers"
102 --enable-fb Linux framebuffer support (default enabled on Linux)"
104 --enable-mga Linux kernel Matrox support (default disabled)"
106 --enable-ggi GGI support (default disabled)"
108 --with-ggi=PATH path to libggi"
110 --enable-glide Glide (3dfx) support (default disabled)"
112 --with-glide=PATH path to libglide"
114 --enable-aa aalib output (default disabled)"
118 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
120 --enable-esd Esound library support (default disabled)"
122 --enable-arts aRts sound server (default disabled)"
124 --enable-alsa ALSA sound support for Linux (default disabled)"
126 --enable-waveout Win32 waveOut module (default enabled on Win32)"
130 --enable-gtk Gtk+ support (default enabled)"
132 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
134 --enable-familiar Familiar Gtk+ support (default disabled)"
136 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
138 --enable-gnome Gnome interface support (default disabled)"
140 --enable-qt Qt interface support (default disabled)"
142 --enable-kde KDE interface support (default disabled)"
144 --enable-macosx MacOS X support (default enabled on MacOS X)"
146 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
148 --enable-intfwin Win32 interface support (default disabled)"
150 --with-bcbuilder=PATH Borland C++ Builder installation path"
152 --enable-ncurses ncurses interface support (default disabled)"
154 --enable-xosd xosd interface support (default disabled)"
156 --enable-lirc lirc support (default disabled)"
160 --with-words=endianness set endianness (big or little)"
162 --enable-gprof gprof profiling (default disabled)"
164 --enable-cprof cprof profiling (default disabled)"
166 --enable-pth GNU Pth support (default disabled)"
168 --enable-st State Threads (default disabled)"
170 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
172 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
174 # Initialize some variables set by options.
175 # The variables have the same names as the options, with
176 # dashes changed to underlines.
178 cache_file=./config.cache
187 program_transform_name=s,x,x,
195 bindir='${exec_prefix}/bin'
196 sbindir='${exec_prefix}/sbin'
197 libexecdir='${exec_prefix}/libexec'
198 datadir='${prefix}/share'
199 sysconfdir='${prefix}/etc'
200 sharedstatedir='${prefix}/com'
201 localstatedir='${prefix}/var'
202 libdir='${exec_prefix}/lib'
203 includedir='${prefix}/include'
204 oldincludedir='/usr/include'
205 infodir='${prefix}/info'
206 mandir='${prefix}/man'
208 # Initialize some other variables.
211 SHELL=${CONFIG_SHELL-/bin/sh}
212 # Maximum number of lines to put in a shell here document.
219 # If the previous option needs an argument, assign it.
220 if test -n "$ac_prev"; then
221 eval "$ac_prev=\$ac_option"
227 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
231 # Accept the important Cygnus configure options, so we can diagnose typos.
235 -bindir | --bindir | --bindi | --bind | --bin | --bi)
237 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
238 bindir="$ac_optarg" ;;
240 -build | --build | --buil | --bui | --bu)
242 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
243 build="$ac_optarg" ;;
245 -cache-file | --cache-file | --cache-fil | --cache-fi \
246 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
247 ac_prev=cache_file ;;
248 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
249 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
250 cache_file="$ac_optarg" ;;
252 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
254 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
256 datadir="$ac_optarg" ;;
258 -disable-* | --disable-*)
259 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
260 # Reject names that are not valid shell variable names.
261 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
262 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
264 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
265 eval "enable_${ac_feature}=no" ;;
267 -enable-* | --enable-*)
268 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
269 # Reject names that are not valid shell variable names.
270 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
271 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
273 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
278 eval "enable_${ac_feature}='$ac_optarg'" ;;
280 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
281 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
282 | --exec | --exe | --ex)
283 ac_prev=exec_prefix ;;
284 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
285 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
286 | --exec=* | --exe=* | --ex=*)
287 exec_prefix="$ac_optarg" ;;
289 -gas | --gas | --ga | --g)
290 # Obsolete; use --with-gas.
293 -help | --help | --hel | --he)
294 # Omit some internal or obsolete options to make the list less imposing.
295 # This message is too long to be a string in the A/UX 3.1 sh.
297 Usage: configure [options] [host]
298 Options: [defaults in brackets after descriptions]
300 --cache-file=FILE cache test results in FILE
301 --help print this message
302 --no-create do not create output files
303 --quiet, --silent do not print \`checking...' messages
304 --version print the version of autoconf that created configure
305 Directory and file names:
306 --prefix=PREFIX install architecture-independent files in PREFIX
308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
310 --bindir=DIR user executables in DIR [EPREFIX/bin]
311 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
312 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
313 --datadir=DIR read-only architecture-independent data in DIR
315 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
316 --sharedstatedir=DIR modifiable architecture-independent data in DIR
318 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
319 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
320 --includedir=DIR C header files in DIR [PREFIX/include]
321 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
322 --infodir=DIR info documentation in DIR [PREFIX/info]
323 --mandir=DIR man documentation in DIR [PREFIX/man]
324 --srcdir=DIR find the sources in DIR [configure dir or ..]
325 --program-prefix=PREFIX prepend PREFIX to installed program names
326 --program-suffix=SUFFIX append SUFFIX to installed program names
327 --program-transform-name=PROGRAM
328 run sed PROGRAM on installed program names
332 --build=BUILD configure for building on BUILD [BUILD=HOST]
333 --host=HOST configure for HOST [guessed]
334 --target=TARGET configure for TARGET [TARGET=HOST]
335 Features and packages:
336 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
337 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
338 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
339 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
340 --x-includes=DIR X include files are in DIR
341 --x-libraries=DIR X library files are in DIR
343 if test -n "$ac_help"; then
344 echo "--enable and --with options recognized:$ac_help"
348 -host | --host | --hos | --ho)
350 -host=* | --host=* | --hos=* | --ho=*)
353 -includedir | --includedir | --includedi | --included | --include \
354 | --includ | --inclu | --incl | --inc)
355 ac_prev=includedir ;;
356 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
357 | --includ=* | --inclu=* | --incl=* | --inc=*)
358 includedir="$ac_optarg" ;;
360 -infodir | --infodir | --infodi | --infod | --info | --inf)
362 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
363 infodir="$ac_optarg" ;;
365 -libdir | --libdir | --libdi | --libd)
367 -libdir=* | --libdir=* | --libdi=* | --libd=*)
368 libdir="$ac_optarg" ;;
370 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
371 | --libexe | --libex | --libe)
372 ac_prev=libexecdir ;;
373 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
374 | --libexe=* | --libex=* | --libe=*)
375 libexecdir="$ac_optarg" ;;
377 -localstatedir | --localstatedir | --localstatedi | --localstated \
378 | --localstate | --localstat | --localsta | --localst \
379 | --locals | --local | --loca | --loc | --lo)
380 ac_prev=localstatedir ;;
381 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
382 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
383 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
384 localstatedir="$ac_optarg" ;;
386 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
388 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
389 mandir="$ac_optarg" ;;
392 # Obsolete; use --without-fp.
395 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
399 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
400 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
403 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
404 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
405 | --oldin | --oldi | --old | --ol | --o)
406 ac_prev=oldincludedir ;;
407 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
408 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
409 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
410 oldincludedir="$ac_optarg" ;;
412 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
414 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
415 prefix="$ac_optarg" ;;
417 -program-prefix | --program-prefix | --program-prefi | --program-pref \
418 | --program-pre | --program-pr | --program-p)
419 ac_prev=program_prefix ;;
420 -program-prefix=* | --program-prefix=* | --program-prefi=* \
421 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
422 program_prefix="$ac_optarg" ;;
424 -program-suffix | --program-suffix | --program-suffi | --program-suff \
425 | --program-suf | --program-su | --program-s)
426 ac_prev=program_suffix ;;
427 -program-suffix=* | --program-suffix=* | --program-suffi=* \
428 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
429 program_suffix="$ac_optarg" ;;
431 -program-transform-name | --program-transform-name \
432 | --program-transform-nam | --program-transform-na \
433 | --program-transform-n | --program-transform- \
434 | --program-transform | --program-transfor \
435 | --program-transfo | --program-transf \
436 | --program-trans | --program-tran \
437 | --progr-tra | --program-tr | --program-t)
438 ac_prev=program_transform_name ;;
439 -program-transform-name=* | --program-transform-name=* \
440 | --program-transform-nam=* | --program-transform-na=* \
441 | --program-transform-n=* | --program-transform-=* \
442 | --program-transform=* | --program-transfor=* \
443 | --program-transfo=* | --program-transf=* \
444 | --program-trans=* | --program-tran=* \
445 | --progr-tra=* | --program-tr=* | --program-t=*)
446 program_transform_name="$ac_optarg" ;;
448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
449 | -silent | --silent | --silen | --sile | --sil)
452 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
454 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
456 sbindir="$ac_optarg" ;;
458 -sharedstatedir | --sharedstatedir | --sharedstatedi \
459 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
460 | --sharedst | --shareds | --shared | --share | --shar \
462 ac_prev=sharedstatedir ;;
463 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
464 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
465 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
467 sharedstatedir="$ac_optarg" ;;
469 -site | --site | --sit)
471 -site=* | --site=* | --sit=*)
474 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
476 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
477 srcdir="$ac_optarg" ;;
479 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
480 | --syscon | --sysco | --sysc | --sys | --sy)
481 ac_prev=sysconfdir ;;
482 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
483 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
484 sysconfdir="$ac_optarg" ;;
486 -target | --target | --targe | --targ | --tar | --ta | --t)
488 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
489 target="$ac_optarg" ;;
491 -v | -verbose | --verbose | --verbos | --verbo | --verb)
494 -version | --version | --versio | --versi | --vers)
495 echo "configure generated by autoconf version 2.13"
499 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
500 # Reject names that are not valid shell variable names.
501 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
502 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
504 ac_package=`echo $ac_package| sed 's/-/_/g'`
509 eval "with_${ac_package}='$ac_optarg'" ;;
511 -without-* | --without-*)
512 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
513 # Reject names that are not valid shell variable names.
514 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
515 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
517 ac_package=`echo $ac_package| sed 's/-/_/g'`
518 eval "with_${ac_package}=no" ;;
521 # Obsolete; use --with-x.
524 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
525 | --x-incl | --x-inc | --x-in | --x-i)
526 ac_prev=x_includes ;;
527 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
528 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
529 x_includes="$ac_optarg" ;;
531 -x-libraries | --x-libraries | --x-librarie | --x-librari \
532 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
533 ac_prev=x_libraries ;;
534 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
535 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
536 x_libraries="$ac_optarg" ;;
538 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
542 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
543 echo "configure: warning: $ac_option: invalid host type" 1>&2
545 if test "x$nonopt" != xNONE; then
546 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
554 if test -n "$ac_prev"; then
555 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
558 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
560 # File descriptor usage:
563 # 2 errors and warnings
564 # 3 some systems may open it to /dev/tty
565 # 4 used on the Kubota Titan
566 # 6 checking for... messages and results
567 # 5 compiler messages saved in config.log
568 if test "$silent" = yes; then
576 This file contains any messages produced by compilers while
577 running configure, to aid debugging if configure makes a mistake.
580 # Strip out --no-create and --no-recursion so they do not pile up.
581 # Also quote any args containing shell metacharacters.
586 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
587 | --no-cr | --no-c) ;;
588 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
589 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
590 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
591 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
592 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
597 # Only set these to C if already set. These must not be set unconditionally
598 # because not all systems understand e.g. LANG=C (notably SCO).
599 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
600 # Non-C LC_CTYPE values break the ctype check.
601 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
602 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
603 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
604 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
606 # confdefs.h avoids OS command line length limits that DEFS can exceed.
607 rm -rf conftest* confdefs.h
608 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
611 # A filename unique to this package, relative to the directory that
612 # configure is in, which we can look for to find out if srcdir is correct.
613 ac_unique_file=include/main.h
615 # Find the source files, if location was not specified.
616 if test -z "$srcdir"; then
617 ac_srcdir_defaulted=yes
618 # Try the directory containing this script, then its parent.
620 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
621 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
623 if test ! -r $srcdir/$ac_unique_file; then
627 ac_srcdir_defaulted=no
629 if test ! -r $srcdir/$ac_unique_file; then
630 if test "$ac_srcdir_defaulted" = yes; then
631 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
633 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
636 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
638 # Prefer explicitly selected file to automatically selected ones.
639 if test -z "$CONFIG_SITE"; then
640 if test "x$prefix" != xNONE; then
641 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
643 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
646 for ac_site_file in $CONFIG_SITE; do
647 if test -r "$ac_site_file"; then
648 echo "loading site script $ac_site_file"
653 if test -r "$cache_file"; then
654 echo "loading cache $cache_file"
657 echo "creating cache $cache_file"
662 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
663 ac_cpp='$CPP $CPPFLAGS'
664 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
665 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
666 cross_compiling=$ac_cv_prog_cc_cross
670 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
671 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
672 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
679 ac_n= ac_c='\c' ac_t=
685 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
686 if test -f $ac_dir/install-sh; then
688 ac_install_sh="$ac_aux_dir/install-sh -c"
690 elif test -f $ac_dir/install.sh; then
692 ac_install_sh="$ac_aux_dir/install.sh -c"
696 if test -z "$ac_aux_dir"; then
697 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
699 ac_config_guess=$ac_aux_dir/config.guess
700 ac_config_sub=$ac_aux_dir/config.sub
701 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
704 # Do some error checking and defaulting for the host and target type.
706 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
709 # 1. You are not allowed to specify --host, --target, and nonopt at the
711 # 2. Host defaults to nonopt.
712 # 3. If nonopt is not specified, then host defaults to the current host,
713 # as determined by config.guess.
714 # 4. Target and build default to nonopt.
715 # 5. If nonopt is not specified, then target and build default to host.
717 # The aliases save the names the user supplied, while $host etc.
718 # will get canonicalized.
719 case $host---$target---$nonopt in
720 NONE---*---* | *---NONE---* | *---*---NONE) ;;
721 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
725 # Make sure we can run config.sub.
726 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
727 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
730 echo $ac_n "checking host system type""... $ac_c" 1>&6
731 echo "configure:732: checking host system type" >&5
734 case "$host_alias" in
738 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
739 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
741 *) host_alias=$nonopt ;;
745 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
746 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
749 echo "$ac_t""$host" 1>&6
751 echo $ac_n "checking target system type""... $ac_c" 1>&6
752 echo "configure:753: checking target system type" >&5
755 case "$target_alias" in
758 NONE) target_alias=$host_alias ;;
759 *) target_alias=$nonopt ;;
763 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
764 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
765 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
766 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
767 echo "$ac_t""$target" 1>&6
769 echo $ac_n "checking build system type""... $ac_c" 1>&6
770 echo "configure:771: checking build system type" >&5
773 case "$build_alias" in
776 NONE) build_alias=$host_alias ;;
777 *) build_alias=$nonopt ;;
781 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
782 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
783 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
784 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
785 echo "$ac_t""$build" 1>&6
787 test "$host_alias" != "$target_alias" &&
788 test "$program_prefix$program_suffix$program_transform_name" = \
790 program_prefix=${target_alias}-
793 CONFIGURE_LINE="$0 $*"
799 save_CPPFLAGS="${CPPFLAGS}"
800 save_CFLAGS="${CFLAGS}"
801 save_LDFLAGS="${LDFLAGS}"
803 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${MAKE-make} sets \${MAKE}" >&5
805 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
806 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 cat > conftestmake <<\EOF
811 @echo 'ac_maketemp="${MAKE}"'
813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
814 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
815 if test -n "$ac_maketemp"; then
816 eval ac_cv_prog_make_${ac_make}_set=yes
818 eval ac_cv_prog_make_${ac_make}_set=no
822 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
823 echo "$ac_t""yes" 1>&6
826 echo "$ac_t""no" 1>&6
827 SET_MAKE="MAKE=${MAKE-make}"
830 # Extract the first word of "gcc", so it can be a program name with args.
831 set dummy gcc; ac_word=$2
832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
833 echo "configure:834: checking for $ac_word" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 if test -n "$CC"; then
838 ac_cv_prog_CC="$CC" # Let the user override the test.
840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
842 for ac_dir in $ac_dummy; do
843 test -z "$ac_dir" && ac_dir=.
844 if test -f $ac_dir/$ac_word; then
853 if test -n "$CC"; then
854 echo "$ac_t""$CC" 1>&6
856 echo "$ac_t""no" 1>&6
859 if test -z "$CC"; then
860 # Extract the first word of "cc", so it can be a program name with args.
861 set dummy cc; ac_word=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 if test -n "$CC"; then
868 ac_cv_prog_CC="$CC" # Let the user override the test.
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
873 for ac_dir in $ac_dummy; do
874 test -z "$ac_dir" && ac_dir=.
875 if test -f $ac_dir/$ac_word; then
876 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
885 if test $ac_prog_rejected = yes; then
886 # We found a bogon in the path, so make sure we never use it.
887 set dummy $ac_cv_prog_CC
889 if test $# -gt 0; then
890 # We chose a different compiler from the bogus one.
891 # However, it has the same basename, so the bogon will be chosen
892 # first if we set CC to just the basename; use the full file name.
894 set dummy "$ac_dir/$ac_word" "$@"
902 if test -n "$CC"; then
903 echo "$ac_t""$CC" 1>&6
905 echo "$ac_t""no" 1>&6
908 if test -z "$CC"; then
911 # Extract the first word of "cl", so it can be a program name with args.
912 set dummy cl; ac_word=$2
913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
914 echo "configure:915: checking for $ac_word" >&5
915 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
918 if test -n "$CC"; then
919 ac_cv_prog_CC="$CC" # Let the user override the test.
921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
923 for ac_dir in $ac_dummy; do
924 test -z "$ac_dir" && ac_dir=.
925 if test -f $ac_dir/$ac_word; then
934 if test -n "$CC"; then
935 echo "$ac_t""$CC" 1>&6
937 echo "$ac_t""no" 1>&6
942 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
945 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
946 echo "configure:947: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950 ac_cpp='$CPP $CPPFLAGS'
951 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953 cross_compiling=$ac_cv_prog_cc_cross
955 cat > conftest.$ac_ext << EOF
957 #line 958 "configure"
958 #include "confdefs.h"
962 if { (eval echo configure:963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
963 ac_cv_prog_cc_works=yes
964 # If we can't run a trivial program, we are probably using a cross compiler.
965 if (./conftest; exit) 2>/dev/null; then
966 ac_cv_prog_cc_cross=no
968 ac_cv_prog_cc_cross=yes
971 echo "configure: failed program was:" >&5
972 cat conftest.$ac_ext >&5
973 ac_cv_prog_cc_works=no
977 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
978 ac_cpp='$CPP $CPPFLAGS'
979 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
980 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
981 cross_compiling=$ac_cv_prog_cc_cross
983 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
984 if test $ac_cv_prog_cc_works = no; then
985 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
987 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
988 echo "configure:989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
989 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
990 cross_compiling=$ac_cv_prog_cc_cross
992 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
993 echo "configure:994: checking whether we are using GNU C" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 cat > conftest.c <<EOF
1002 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1009 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1011 if test $ac_cv_prog_gcc = yes; then
1017 ac_test_CFLAGS="${CFLAGS+set}"
1018 ac_save_CFLAGS="$CFLAGS"
1020 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1021 echo "configure:1022: checking whether ${CC-cc} accepts -g" >&5
1022 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 echo 'void f(){}' > conftest.c
1026 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1035 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1036 if test "$ac_test_CFLAGS" = set; then
1037 CFLAGS="$ac_save_CFLAGS"
1038 elif test $ac_cv_prog_cc_g = yes; then
1039 if test "$GCC" = yes; then
1045 if test "$GCC" = yes; then
1052 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1053 echo "configure:1054: checking how to run the C preprocessor" >&5
1054 # On Suns, sometimes $CPP names a directory.
1055 if test -n "$CPP" && test -d "$CPP"; then
1058 if test -z "$CPP"; then
1059 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 # This must be in double quotes, not single quotes, because CPP may get
1063 # substituted into the Makefile and "${CC-cc}" will confuse make.
1065 # On the NeXT, cc -E runs the code through the compiler's parser,
1066 # not just through cpp.
1067 cat > conftest.$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1074 { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1076 if test -z "$ac_err"; then
1080 echo "configure: failed program was:" >&5
1081 cat conftest.$ac_ext >&5
1083 CPP="${CC-cc} -E -traditional-cpp"
1084 cat > conftest.$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1091 { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1093 if test -z "$ac_err"; then
1097 echo "configure: failed program was:" >&5
1098 cat conftest.$ac_ext >&5
1100 CPP="${CC-cc} -nologo -E"
1101 cat > conftest.$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1108 { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1110 if test -z "$ac_err"; then
1114 echo "configure: failed program was:" >&5
1115 cat conftest.$ac_ext >&5
1124 ac_cv_prog_CPP="$CPP"
1126 CPP="$ac_cv_prog_CPP"
1128 ac_cv_prog_CPP="$CPP"
1130 echo "$ac_t""$CPP" 1>&6
1133 if test $host != $build; then
1134 ac_tool_prefix=${host_alias}-
1139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142 echo "configure:1143: checking for $ac_word" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 if test -n "$RANLIB"; then
1147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1151 for ac_dir in $ac_dummy; do
1152 test -z "$ac_dir" && ac_dir=.
1153 if test -f $ac_dir/$ac_word; then
1154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1161 RANLIB="$ac_cv_prog_RANLIB"
1162 if test -n "$RANLIB"; then
1163 echo "$ac_t""$RANLIB" 1>&6
1165 echo "$ac_t""no" 1>&6
1169 if test -z "$ac_cv_prog_RANLIB"; then
1170 if test -n "$ac_tool_prefix"; then
1171 # Extract the first word of "ranlib", so it can be a program name with args.
1172 set dummy ranlib; ac_word=$2
1173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1174 echo "configure:1175: checking for $ac_word" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 if test -n "$RANLIB"; then
1179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1183 for ac_dir in $ac_dummy; do
1184 test -z "$ac_dir" && ac_dir=.
1185 if test -f $ac_dir/$ac_word; then
1186 ac_cv_prog_RANLIB="ranlib"
1191 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1194 RANLIB="$ac_cv_prog_RANLIB"
1195 if test -n "$RANLIB"; then
1196 echo "$ac_t""$RANLIB" 1>&6
1198 echo "$ac_t""no" 1>&6
1206 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1207 set dummy ${ac_tool_prefix}strip; ac_word=$2
1208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1209 echo "configure:1210: checking for $ac_word" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 if test -n "$STRIP"; then
1214 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1218 for ac_dir in $ac_dummy; do
1219 test -z "$ac_dir" && ac_dir=.
1220 if test -f $ac_dir/$ac_word; then
1221 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1228 STRIP="$ac_cv_prog_STRIP"
1229 if test -n "$STRIP"; then
1230 echo "$ac_t""$STRIP" 1>&6
1232 echo "$ac_t""no" 1>&6
1236 if test -z "$ac_cv_prog_STRIP"; then
1237 if test -n "$ac_tool_prefix"; then
1238 # Extract the first word of "strip", so it can be a program name with args.
1239 set dummy strip; ac_word=$2
1240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1241 echo "configure:1242: checking for $ac_word" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 if test -n "$STRIP"; then
1246 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1250 for ac_dir in $ac_dummy; do
1251 test -z "$ac_dir" && ac_dir=.
1252 if test -f $ac_dir/$ac_word; then
1253 ac_cv_prog_STRIP="strip"
1258 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1261 STRIP="$ac_cv_prog_STRIP"
1262 if test -n "$STRIP"; then
1263 echo "$ac_t""$STRIP" 1>&6
1265 echo "$ac_t""no" 1>&6
1274 # Extract the first word of "gmake", so it can be a program name with args.
1275 set dummy gmake; ac_word=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_word" >&5
1278 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1283 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1286 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 for ac_dir in $ac_dummy; do
1292 test -z "$ac_dir" && ac_dir=.
1293 if test -f $ac_dir/$ac_word; then
1294 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1299 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1303 GMAKE="$ac_cv_path_GMAKE"
1304 if test -n "$GMAKE"; then
1305 echo "$ac_t""$GMAKE" 1>&6
1307 echo "$ac_t""no" 1>&6
1310 if test "x${GMAKE}" = "xno"; then
1311 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1312 echo "configure:1313: checking whether GNU make is installed" >&5
1313 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 if make --version | grep -q -i gnu; then
1319 echo "This software needs you to install GNU make to compile properly."
1320 echo "You can get it from http://www.gnu.org/."
1325 echo "$ac_t""$ac_cv_gmake" 1>&6
1331 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1333 cat >> confdefs.h <<EOF
1334 #define VLC_PACKAGE "${PACKAGE}"
1337 cat >> confdefs.h <<EOF
1338 #define VLC_VERSION "${VERSION}"
1341 # Extract the first word of "ranlib", so it can be a program name with args.
1342 set dummy ranlib; ac_word=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 if test -n "$RANLIB"; then
1349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1353 for ac_dir in $ac_dummy; do
1354 test -z "$ac_dir" && ac_dir=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_prog_RANLIB="ranlib"
1361 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1364 RANLIB="$ac_cv_prog_RANLIB"
1365 if test -n "$RANLIB"; then
1366 echo "$ac_t""$RANLIB" 1>&6
1368 echo "$ac_t""no" 1>&6
1372 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1373 echo "configure:1374: checking for strerror in -lcposix" >&5
1374 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 ac_save_LIBS="$LIBS"
1379 LIBS="-lcposix $LIBS"
1380 cat > conftest.$ac_ext <<EOF
1381 #line 1382 "configure"
1382 #include "confdefs.h"
1383 /* Override any gcc2 internal prototype to avoid an error. */
1384 /* We use char because int might match the return type of a gcc2
1385 builtin and then its argument prototype would still apply. */
1392 if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1394 eval "ac_cv_lib_$ac_lib_var=yes"
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1399 eval "ac_cv_lib_$ac_lib_var=no"
1402 LIBS="$ac_save_LIBS"
1405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1406 echo "$ac_t""yes" 1>&6
1407 LIBS="$LIBS -lcposix"
1409 echo "$ac_t""no" 1>&6
1414 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1415 echo "configure:1416: checking for ANSI C header files" >&5
1416 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1428 { (eval echo configure:1429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1430 if test -z "$ac_err"; then
1432 ac_cv_header_stdc=yes
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1438 ac_cv_header_stdc=no
1442 if test $ac_cv_header_stdc = yes; then
1443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1444 cat > conftest.$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1450 egrep "memchr" >/dev/null 2>&1; then
1454 ac_cv_header_stdc=no
1460 if test $ac_cv_header_stdc = yes; then
1461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1468 egrep "free" >/dev/null 2>&1; then
1472 ac_cv_header_stdc=no
1478 if test $ac_cv_header_stdc = yes; then
1479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1480 if test "$cross_compiling" = yes; then
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1487 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1488 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1490 int main () { int i; for (i = 0; i < 256; i++)
1491 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1502 ac_cv_header_stdc=no
1510 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1511 if test $ac_cv_header_stdc = yes; then
1512 cat >> confdefs.h <<\EOF
1513 #define STDC_HEADERS 1
1518 echo $ac_n "checking for working const""... $ac_c" 1>&6
1519 echo "configure:1520: checking for working const" >&5
1520 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1529 /* Ultrix mips cc rejects this. */
1530 typedef int charset[2]; const charset x;
1531 /* SunOS 4.1.1 cc rejects this. */
1532 char const *const *ccp;
1534 /* NEC SVR4.0.2 mips cc rejects this. */
1535 struct point {int x, y;};
1536 static struct point const zero = {0,0};
1537 /* AIX XL C 1.02.0.0 rejects this.
1538 It does not let you subtract one const X* pointer from another in an arm
1539 of an if-expression whose if-part is not a constant expression */
1540 const char *g = "string";
1541 ccp = &g + (g ? g-g : 0);
1542 /* HPUX 7.0 cc rejects these. */
1545 ccp = (char const *const *) p;
1546 { /* SCO 3.2v4 cc rejects this. */
1548 char const *s = 0 ? (char *) 0 : (char const *) 0;
1552 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1554 const int *foo = &x[0];
1557 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1558 typedef const int *iptr;
1562 { /* AIX XL C 1.02.0.0 rejects this saying
1563 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1564 struct s { int j; const int *ap[3]; };
1565 struct s *b; b->j = 5;
1567 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1573 if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1585 echo "$ac_t""$ac_cv_c_const" 1>&6
1586 if test $ac_cv_c_const = no; then
1587 cat >> confdefs.h <<\EOF
1593 echo $ac_n "checking for inline""... $ac_c" 1>&6
1594 echo "configure:1595: checking for inline" >&5
1595 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1599 for ac_kw in inline __inline__ __inline; do
1600 cat > conftest.$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1608 if { (eval echo configure:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 ac_cv_c_inline=$ac_kw; break
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1620 echo "$ac_t""$ac_cv_c_inline" 1>&6
1621 case "$ac_cv_c_inline" in
1623 no) cat >> confdefs.h <<\EOF
1627 *) cat >> confdefs.h <<EOF
1628 #define inline $ac_cv_c_inline
1633 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1634 echo "configure:1635: checking for off_t" >&5
1635 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 #include <sys/types.h>
1647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1648 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1650 ac_cv_type_off_t=yes
1658 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1659 if test $ac_cv_type_off_t = no; then
1660 cat >> confdefs.h <<\EOF
1666 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1667 echo "configure:1668: checking for size_t" >&5
1668 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 cat > conftest.$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1674 #include <sys/types.h>
1680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1681 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1683 ac_cv_type_size_t=yes
1686 ac_cv_type_size_t=no
1691 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1692 if test $ac_cv_type_size_t = no; then
1693 cat >> confdefs.h <<\EOF
1694 #define size_t unsigned
1699 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1700 # for constant arguments. Useless!
1701 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1702 echo "configure:1703: checking for working alloca.h" >&5
1703 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 cat > conftest.$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1711 char *p = alloca(2 * sizeof(int));
1714 if { (eval echo configure:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1716 ac_cv_header_alloca_h=yes
1718 echo "configure: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1721 ac_cv_header_alloca_h=no
1726 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1727 if test $ac_cv_header_alloca_h = yes; then
1728 cat >> confdefs.h <<\EOF
1729 #define HAVE_ALLOCA_H 1
1734 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1735 echo "configure:1736: checking for alloca" >&5
1736 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1744 # define alloca __builtin_alloca
1747 # include <malloc.h>
1748 # define alloca _alloca
1751 # include <alloca.h>
1756 # ifndef alloca /* predefined by HP cc +Olibcalls */
1765 char *p = (char *) alloca(1);
1768 if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1770 ac_cv_func_alloca_works=yes
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 ac_cv_func_alloca_works=no
1780 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1781 if test $ac_cv_func_alloca_works = yes; then
1782 cat >> confdefs.h <<\EOF
1783 #define HAVE_ALLOCA 1
1788 if test $ac_cv_func_alloca_works = no; then
1789 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1790 # that cause trouble. Some versions do not even contain alloca or
1791 # contain a buggy version. If you still want to use their alloca,
1792 # use ar to extract alloca.o from them instead of compiling alloca.c.
1793 ALLOCA=alloca.${ac_objext}
1794 cat >> confdefs.h <<\EOF
1799 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1800 echo "configure:1801: checking whether alloca needs Cray hooks" >&5
1801 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 #if defined(CRAY) && ! defined(CRAY2)
1814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1815 egrep "webecray" >/dev/null 2>&1; then
1826 echo "$ac_t""$ac_cv_os_cray" 1>&6
1827 if test $ac_cv_os_cray = yes; then
1828 for ac_func in _getb67 GETB67 getb67; do
1829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1830 echo "configure:1831: checking for $ac_func" >&5
1831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 /* System header to define __stub macros and hopefully few prototypes,
1838 which can conflict with char $ac_func(); below. */
1840 /* Override any gcc2 internal prototype to avoid an error. */
1841 /* We use char because int might match the return type of a gcc2
1842 builtin and then its argument prototype would still apply. */
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1858 if { (eval echo configure:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1860 eval "ac_cv_func_$ac_func=yes"
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1865 eval "ac_cv_func_$ac_func=no"
1870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1871 echo "$ac_t""yes" 1>&6
1872 cat >> confdefs.h <<EOF
1873 #define CRAY_STACKSEG_END $ac_func
1878 echo "$ac_t""no" 1>&6
1884 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1885 echo "configure:1886: checking stack direction for C alloca" >&5
1886 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1889 if test "$cross_compiling" = yes; then
1890 ac_cv_c_stack_direction=0
1892 cat > conftest.$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1895 find_stack_direction ()
1897 static char *addr = 0;
1902 return find_stack_direction ();
1905 return (&dummy > addr) ? 1 : -1;
1909 exit (find_stack_direction() < 0);
1912 if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1914 ac_cv_c_stack_direction=1
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1919 ac_cv_c_stack_direction=-1
1926 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1927 cat >> confdefs.h <<EOF
1928 #define STACK_DIRECTION $ac_cv_c_stack_direction
1933 for ac_hdr in unistd.h
1935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1937 echo "configure:1938: checking for $ac_hdr" >&5
1938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1947 { (eval echo configure:1948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1949 if test -z "$ac_err"; then
1951 eval "ac_cv_header_$ac_safe=yes"
1954 echo "configure: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1957 eval "ac_cv_header_$ac_safe=no"
1961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1962 echo "$ac_t""yes" 1>&6
1963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1964 cat >> confdefs.h <<EOF
1965 #define $ac_tr_hdr 1
1969 echo "$ac_t""no" 1>&6
1973 for ac_func in getpagesize
1975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1976 echo "configure:1977: checking for $ac_func" >&5
1977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 cat > conftest.$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1983 /* System header to define __stub macros and hopefully few prototypes,
1984 which can conflict with char $ac_func(); below. */
1986 /* Override any gcc2 internal prototype to avoid an error. */
1987 /* We use char because int might match the return type of a gcc2
1988 builtin and then its argument prototype would still apply. */
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2006 eval "ac_cv_func_$ac_func=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_func_$ac_func=no"
2016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2017 echo "$ac_t""yes" 1>&6
2018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2019 cat >> confdefs.h <<EOF
2020 #define $ac_tr_func 1
2024 echo "$ac_t""no" 1>&6
2028 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2029 echo "configure:2030: checking for working mmap" >&5
2030 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 if test "$cross_compiling" = yes; then
2034 ac_cv_func_mmap_fixed_mapped=no
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2040 /* Thanks to Mike Haertel and Jim Avera for this test.
2041 Here is a matrix of mmap possibilities:
2042 mmap private not fixed
2043 mmap private fixed at somewhere currently unmapped
2044 mmap private fixed at somewhere already mapped
2045 mmap shared not fixed
2046 mmap shared fixed at somewhere currently unmapped
2047 mmap shared fixed at somewhere already mapped
2048 For private mappings, we should verify that changes cannot be read()
2049 back from the file, nor mmap's back from the file at a different
2050 address. (There have been systems where private was not correctly
2051 implemented like the infamous i386 svr4.0, and systems where the
2052 VM page cache was not coherent with the filesystem buffer cache
2053 like early versions of FreeBSD and possibly contemporary NetBSD.)
2054 For shared mappings, we should conversely verify that changes get
2055 propogated back to all the places they're supposed to be.
2057 Grep wants private fixed already mapped.
2058 The main things grep needs to know about mmap are:
2059 * does it exist and is it safe to write into the mmap'd area
2060 * how to use it (BSD variants) */
2061 #include <sys/types.h>
2063 #include <sys/mman.h>
2065 /* This mess was copied from the GNU getpagesize.h. */
2066 #ifndef HAVE_GETPAGESIZE
2067 # ifdef HAVE_UNISTD_H
2068 # include <unistd.h>
2071 /* Assume that all systems that can run configure have sys/param.h. */
2072 # ifndef HAVE_SYS_PARAM_H
2073 # define HAVE_SYS_PARAM_H 1
2076 # ifdef _SC_PAGESIZE
2077 # define getpagesize() sysconf(_SC_PAGESIZE)
2078 # else /* no _SC_PAGESIZE */
2079 # ifdef HAVE_SYS_PARAM_H
2080 # include <sys/param.h>
2081 # ifdef EXEC_PAGESIZE
2082 # define getpagesize() EXEC_PAGESIZE
2083 # else /* no EXEC_PAGESIZE */
2085 # define getpagesize() NBPG * CLSIZE
2088 # endif /* no CLSIZE */
2089 # else /* no NBPG */
2091 # define getpagesize() NBPC
2092 # else /* no NBPC */
2094 # define getpagesize() PAGESIZE
2095 # endif /* PAGESIZE */
2096 # endif /* no NBPC */
2097 # endif /* no NBPG */
2098 # endif /* no EXEC_PAGESIZE */
2099 # else /* no HAVE_SYS_PARAM_H */
2100 # define getpagesize() 8192 /* punt totally */
2101 # endif /* no HAVE_SYS_PARAM_H */
2102 # endif /* no _SC_PAGESIZE */
2104 #endif /* no HAVE_GETPAGESIZE */
2107 extern "C" { void *malloc(unsigned); }
2115 char *data, *data2, *data3;
2119 pagesize = getpagesize();
2122 * First, make a file with some known garbage in it.
2124 data = malloc(pagesize);
2127 for (i = 0; i < pagesize; ++i)
2128 *(data + i) = rand();
2130 fd = creat("conftestmmap", 0600);
2133 if (write(fd, data, pagesize) != pagesize)
2138 * Next, try to mmap the file at a fixed address which
2139 * already has something else allocated at it. If we can,
2140 * also make sure that we see the same garbage.
2142 fd = open("conftestmmap", O_RDWR);
2145 data2 = malloc(2 * pagesize);
2148 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2149 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2150 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2152 for (i = 0; i < pagesize; ++i)
2153 if (*(data + i) != *(data2 + i))
2157 * Finally, make sure that changes to the mapped area
2158 * do not percolate back to the file as seen by read().
2159 * (This is a bug on some variants of i386 svr4.0.)
2161 for (i = 0; i < pagesize; ++i)
2162 *(data2 + i) = *(data2 + i) + 1;
2163 data3 = malloc(pagesize);
2166 if (read(fd, data3, pagesize) != pagesize)
2168 for (i = 0; i < pagesize; ++i)
2169 if (*(data + i) != *(data3 + i))
2172 unlink("conftestmmap");
2177 if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2179 ac_cv_func_mmap_fixed_mapped=yes
2181 echo "configure: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2184 ac_cv_func_mmap_fixed_mapped=no
2191 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2192 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2193 cat >> confdefs.h <<\EOF
2200 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2201 echo "configure:2202: checking whether we are using the GNU C Library 2.1 or newer" >&5
2202 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2209 #include <features.h>
2210 #ifdef __GNU_LIBRARY__
2211 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2218 egrep "Lucky GNU user" >/dev/null 2>&1; then
2220 ac_cv_gnu_library_2_1=yes
2223 ac_cv_gnu_library_2_1=no
2231 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2233 GLIBC21="$ac_cv_gnu_library_2_1"
2237 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2238 stdlib.h string.h unistd.h sys/param.h
2240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2242 echo "configure:2243: checking for $ac_hdr" >&5
2243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2252 { (eval echo configure:2253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2254 if test -z "$ac_err"; then
2256 eval "ac_cv_header_$ac_safe=yes"
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2262 eval "ac_cv_header_$ac_safe=no"
2266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2267 echo "$ac_t""yes" 1>&6
2268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2269 cat >> confdefs.h <<EOF
2270 #define $ac_tr_hdr 1
2274 echo "$ac_t""no" 1>&6
2278 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2279 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2280 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2283 echo "configure:2284: checking for $ac_func" >&5
2284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 /* System header to define __stub macros and hopefully few prototypes,
2291 which can conflict with char $ac_func(); below. */
2293 /* Override any gcc2 internal prototype to avoid an error. */
2294 /* We use char because int might match the return type of a gcc2
2295 builtin and then its argument prototype would still apply. */
2300 /* The GNU C library defines this for functions which it implements
2301 to always fail with ENOSYS. Some functions are actually named
2302 something starting with __ and the normal name is an alias. */
2303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2313 eval "ac_cv_func_$ac_func=yes"
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 eval "ac_cv_func_$ac_func=no"
2323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2326 cat >> confdefs.h <<EOF
2327 #define $ac_tr_func 1
2331 echo "$ac_t""no" 1>&6
2338 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2339 if test "${with_libiconv_prefix+set}" = set; then
2340 withval="$with_libiconv_prefix"
2342 for dir in `echo "$withval" | tr : ' '`; do
2343 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2344 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2350 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2351 echo "configure:2352: checking for iconv" >&5
2352 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2356 am_cv_func_iconv="no, consider installing GNU libiconv"
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2364 iconv_t cd = iconv_open("","");
2365 iconv(cd,NULL,NULL,NULL,NULL);
2369 if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2371 am_cv_func_iconv=yes
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2377 if test "$am_cv_func_iconv" != yes; then
2378 am_save_LIBS="$LIBS"
2379 LIBS="$LIBS -liconv"
2380 cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure"
2382 #include "confdefs.h"
2386 iconv_t cd = iconv_open("","");
2387 iconv(cd,NULL,NULL,NULL,NULL);
2391 if { (eval echo configure:2392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2394 am_cv_func_iconv=yes
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2400 LIBS="$am_save_LIBS"
2405 echo "$ac_t""$am_cv_func_iconv" 1>&6
2406 if test "$am_cv_func_iconv" = yes; then
2407 cat >> confdefs.h <<\EOF
2408 #define HAVE_ICONV 1
2411 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2412 echo "configure:2413: checking for iconv declaration" >&5
2413 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2427 #if defined(__STDC__) || defined(__cplusplus)
2428 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2437 if { (eval echo configure:2438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2439 am_cv_proto_iconv_arg1=""
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 am_cv_proto_iconv_arg1="const"
2447 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);"
2450 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2451 echo "$ac_t""${ac_t:-
2452 }$am_cv_proto_iconv" 1>&6
2453 cat >> confdefs.h <<EOF
2454 #define ICONV_CONST $am_cv_proto_iconv_arg1
2459 if test "$am_cv_lib_iconv" = yes; then
2465 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2466 echo "configure:2467: checking for nl_langinfo and CODESET" >&5
2467 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #include <langinfo.h>
2475 char* cs = nl_langinfo(CODESET);
2478 if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2480 am_cv_langinfo_codeset=yes
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 am_cv_langinfo_codeset=no
2491 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2492 if test $am_cv_langinfo_codeset = yes; then
2493 cat >> confdefs.h <<\EOF
2494 #define HAVE_LANGINFO_CODESET 1
2499 if test $ac_cv_header_locale_h = yes; then
2500 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2501 echo "configure:2502: checking for LC_MESSAGES" >&5
2502 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2513 if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2515 am_cv_val_LC_MESSAGES=yes
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 am_cv_val_LC_MESSAGES=no
2525 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2526 if test $am_cv_val_LC_MESSAGES = yes; then
2527 cat >> confdefs.h <<\EOF
2528 #define HAVE_LC_MESSAGES 1
2533 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2534 echo "configure:2535: checking whether NLS is requested" >&5
2535 # Check whether --enable-nls or --disable-nls was given.
2536 if test "${enable_nls+set}" = set; then
2537 enableval="$enable_nls"
2543 echo "$ac_t""$USE_NLS" 1>&6
2546 BUILD_INCLUDED_LIBINTL=no
2547 USE_INCLUDED_LIBINTL=no
2550 if test "$USE_NLS" = "yes"; then
2551 cat >> confdefs.h <<\EOF
2552 #define ENABLE_NLS 1
2555 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2556 echo "configure:2557: checking whether included gettext is requested" >&5
2557 # Check whether --with-included-gettext or --without-included-gettext was given.
2558 if test "${with_included_gettext+set}" = set; then
2559 withval="$with_included_gettext"
2560 nls_cv_force_use_gnu_gettext=$withval
2562 nls_cv_force_use_gnu_gettext=no
2565 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2567 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2568 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2574 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2575 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2576 echo "configure:2577: checking for libintl.h" >&5
2577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 cat > conftest.$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 #include <libintl.h>
2585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2586 { (eval echo configure:2587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2588 if test -z "$ac_err"; then
2590 eval "ac_cv_header_$ac_safe=yes"
2593 echo "configure: failed program was:" >&5
2594 cat conftest.$ac_ext >&5
2596 eval "ac_cv_header_$ac_safe=no"
2600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2602 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2603 echo "configure:2604: checking for GNU gettext in libc" >&5
2604 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 #include <libintl.h>
2611 extern int _nl_msg_cat_cntr;
2613 bindtextdomain ("", "");
2614 return (int) gettext ("") + _nl_msg_cat_cntr
2617 if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2619 gt_cv_func_gnugettext1_libc=yes
2621 echo "configure: failed program was:" >&5
2622 cat conftest.$ac_ext >&5
2624 gt_cv_func_gnugettext1_libc=no
2629 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2631 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2632 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2633 echo "configure:2634: checking for GNU gettext in libintl" >&5
2634 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2637 gt_save_LIBS="$LIBS"
2638 LIBS="$LIBS -lintl $LIBICONV"
2639 cat > conftest.$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2642 #include <libintl.h>
2643 extern int _nl_msg_cat_cntr;
2645 bindtextdomain ("", "");
2646 return (int) gettext ("") + _nl_msg_cat_cntr
2649 if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2651 gt_cv_func_gnugettext1_libintl=yes
2653 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2656 gt_cv_func_gnugettext1_libintl=no
2659 LIBS="$gt_save_LIBS"
2662 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2665 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2666 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2667 && test "$PACKAGE" != gettext; }; then
2668 cat >> confdefs.h <<\EOF
2669 #define HAVE_GETTEXT 1
2673 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2674 INTLLIBS="-lintl $LIBICONV"
2677 gt_save_LIBS="$LIBS"
2678 LIBS="$LIBS $INTLLIBS"
2679 for ac_func in dcgettext
2681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2682 echo "configure:2683: checking for $ac_func" >&5
2683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 /* System header to define __stub macros and hopefully few prototypes,
2690 which can conflict with char $ac_func(); below. */
2692 /* Override any gcc2 internal prototype to avoid an error. */
2693 /* We use char because int might match the return type of a gcc2
2694 builtin and then its argument prototype would still apply. */
2699 /* The GNU C library defines this for functions which it implements
2700 to always fail with ENOSYS. Some functions are actually named
2701 something starting with __ and the normal name is an alias. */
2702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2710 if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2712 eval "ac_cv_func_$ac_func=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2717 eval "ac_cv_func_$ac_func=no"
2722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2723 echo "$ac_t""yes" 1>&6
2724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2725 cat >> confdefs.h <<EOF
2726 #define $ac_tr_func 1
2730 echo "$ac_t""no" 1>&6
2734 LIBS="$gt_save_LIBS"
2736 # Extract the first word of "msgfmt", so it can be a program name with args.
2737 set dummy msgfmt; ac_word=$2
2738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_word" >&5
2740 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2745 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2749 for ac_dir in $PATH; do
2750 test -z "$ac_dir" && ac_dir=.
2751 if test -f $ac_dir/$ac_word; then
2752 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2753 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2759 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2763 MSGFMT="$ac_cv_path_MSGFMT"
2764 if test "$MSGFMT" != ":"; then
2765 echo "$ac_t""$MSGFMT" 1>&6
2767 echo "$ac_t""no" 1>&6
2770 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2771 set dummy gmsgfmt; ac_word=$2
2772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2773 echo "configure:2774: checking for $ac_word" >&5
2774 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2779 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2782 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2787 for ac_dir in $ac_dummy; do
2788 test -z "$ac_dir" && ac_dir=.
2789 if test -f $ac_dir/$ac_word; then
2790 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2795 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2799 GMSGFMT="$ac_cv_path_GMSGFMT"
2800 if test -n "$GMSGFMT"; then
2801 echo "$ac_t""$GMSGFMT" 1>&6
2803 echo "$ac_t""no" 1>&6
2807 # Extract the first word of "xgettext", so it can be a program name with args.
2808 set dummy xgettext; ac_word=$2
2809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2810 echo "configure:2811: checking for $ac_word" >&5
2811 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2816 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2820 for ac_dir in $PATH; do
2821 test -z "$ac_dir" && ac_dir=.
2822 if test -f $ac_dir/$ac_word; then
2823 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2824 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2830 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2834 XGETTEXT="$ac_cv_path_XGETTEXT"
2835 if test "$XGETTEXT" != ":"; then
2836 echo "$ac_t""$XGETTEXT" 1>&6
2838 echo "$ac_t""no" 1>&6
2846 echo "$ac_t""no" 1>&6
2850 if test "$CATOBJEXT" = "NONE"; then
2851 nls_cv_use_gnu_gettext=yes
2855 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2856 INTLOBJS="\$(GETTOBJS)"
2857 # Extract the first word of "msgfmt", so it can be a program name with args.
2858 set dummy msgfmt; ac_word=$2
2859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2860 echo "configure:2861: checking for $ac_word" >&5
2861 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2866 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2870 for ac_dir in $PATH; do
2871 test -z "$ac_dir" && ac_dir=.
2872 if test -f $ac_dir/$ac_word; then
2873 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2874 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2880 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2884 MSGFMT="$ac_cv_path_MSGFMT"
2885 if test "$MSGFMT" != ":"; then
2886 echo "$ac_t""$MSGFMT" 1>&6
2888 echo "$ac_t""no" 1>&6
2891 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2892 set dummy gmsgfmt; ac_word=$2
2893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2894 echo "configure:2895: checking for $ac_word" >&5
2895 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2900 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2903 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2908 for ac_dir in $ac_dummy; do
2909 test -z "$ac_dir" && ac_dir=.
2910 if test -f $ac_dir/$ac_word; then
2911 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2916 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2920 GMSGFMT="$ac_cv_path_GMSGFMT"
2921 if test -n "$GMSGFMT"; then
2922 echo "$ac_t""$GMSGFMT" 1>&6
2924 echo "$ac_t""no" 1>&6
2927 # Extract the first word of "xgettext", so it can be a program name with args.
2928 set dummy xgettext; ac_word=$2
2929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2930 echo "configure:2931: checking for $ac_word" >&5
2931 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2936 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2940 for ac_dir in $PATH; do
2941 test -z "$ac_dir" && ac_dir=.
2942 if test -f $ac_dir/$ac_word; then
2943 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2944 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2954 XGETTEXT="$ac_cv_path_XGETTEXT"
2955 if test "$XGETTEXT" != ":"; then
2956 echo "$ac_t""$XGETTEXT" 1>&6
2958 echo "$ac_t""no" 1>&6
2962 BUILD_INCLUDED_LIBINTL=yes
2963 USE_INCLUDED_LIBINTL=yes
2965 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2966 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2969 if test "$GMSGFMT" != ":"; then
2970 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2973 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2978 if test "$XGETTEXT" != ":"; then
2979 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2982 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2992 if test "$PACKAGE" = gettext; then
2993 BUILD_INCLUDED_LIBINTL=yes
2996 for ac_prog in bison
2998 # Extract the first word of "$ac_prog", so it can be a program name with args.
2999 set dummy $ac_prog; ac_word=$2
3000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3001 echo "configure:3002: checking for $ac_word" >&5
3002 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 if test -n "$INTLBISON"; then
3006 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3010 for ac_dir in $ac_dummy; do
3011 test -z "$ac_dir" && ac_dir=.
3012 if test -f $ac_dir/$ac_word; then
3013 ac_cv_prog_INTLBISON="$ac_prog"
3020 INTLBISON="$ac_cv_prog_INTLBISON"
3021 if test -n "$INTLBISON"; then
3022 echo "$ac_t""$INTLBISON" 1>&6
3024 echo "$ac_t""no" 1>&6
3027 test -n "$INTLBISON" && break
3030 if test -z "$INTLBISON"; then
3033 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3034 echo "configure:3035: checking version of bison" >&5
3035 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3036 case $ac_prog_version in
3037 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3038 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3039 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3040 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3042 echo "$ac_t""$ac_prog_version" 1>&6
3044 if test $ac_verc_fail = yes; then
3048 for lang in $ALL_LINGUAS; do
3049 GMOFILES="$GMOFILES $lang.gmo"
3050 POFILES="$POFILES $lang.po"
3064 nls_cv_header_libgt=
3076 if test "x$CATOBJEXT" != "x"; then
3077 if test "x$ALL_LINGUAS" = "x"; then
3080 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3081 echo "configure:3082: checking for catalogs to be installed" >&5
3083 for presentlang in $ALL_LINGUAS; do
3085 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3086 # Use the presentlang catalog if desiredlang is
3087 # a. equal to presentlang, or
3088 # b. a variant of presentlang (because in this case,
3089 # presentlang can be used as a fallback for messages
3090 # which are not translated in the desiredlang catalog).
3091 case "$desiredlang" in
3092 "$presentlang"*) useit=yes;;
3095 if test $useit = yes; then
3096 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3099 LINGUAS=$NEW_LINGUAS
3100 echo "$ac_t""$LINGUAS" 1>&6
3103 if test -n "$LINGUAS"; then
3104 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3109 if test -n "$ac_aux_dir"; then
3110 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3112 if test -z "$MKINSTALLDIRS"; then
3113 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3117 INTL_LIBTOOL_SUFFIX_PREFIX=
3121 # Find a good install program. We prefer a C program (faster),
3122 # so one script is as good as another. But avoid the broken or
3123 # incompatible versions:
3124 # SysV /etc/install, /usr/sbin/install
3125 # SunOS /usr/etc/install
3126 # IRIX /sbin/install
3128 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3129 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3130 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3131 # ./install, which can be erroneously created by make from ./install.sh.
3132 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3133 echo "configure:3134: checking for a BSD compatible install" >&5
3134 if test -z "$INSTALL"; then
3135 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3138 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3139 for ac_dir in $PATH; do
3140 # Account for people who put trailing slashes in PATH elements.
3142 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3144 # OSF1 and SCO ODT 3.0 have their own names for install.
3145 # Don't use installbsd from OSF since it installs stuff as root
3147 for ac_prog in ginstall scoinst install; do
3148 if test -f $ac_dir/$ac_prog; then
3149 if test $ac_prog = install &&
3150 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3151 # AIX install. It has an incompatible calling convention.
3154 ac_cv_path_install="$ac_dir/$ac_prog -c"
3165 if test "${ac_cv_path_install+set}" = set; then
3166 INSTALL="$ac_cv_path_install"
3168 # As a last resort, use the slow shell script. We don't cache a
3169 # path for INSTALL within a source directory, because that will
3170 # break other packages using the cache if that directory is
3171 # removed, or if the path is relative.
3172 INSTALL="$ac_install_sh"
3175 echo "$ac_t""$INSTALL" 1>&6
3177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3178 # It thinks the first close brace ends the variable substitution.
3179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3186 vlc_LDFLAGS="${LDFLAGS}"
3188 case "x${target_os}" in
3197 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3198 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3199 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3203 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3207 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3208 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3212 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3213 set dummy ${ac_tool_prefix}windres; ac_word=$2
3214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3215 echo "configure:3216: checking for $ac_word" >&5
3216 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 if test -n "$WINDRES"; then
3220 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3224 for ac_dir in $ac_dummy; do
3225 test -z "$ac_dir" && ac_dir=.
3226 if test -f $ac_dir/$ac_word; then
3227 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3234 WINDRES="$ac_cv_prog_WINDRES"
3235 if test -n "$WINDRES"; then
3236 echo "$ac_t""$WINDRES" 1>&6
3238 echo "$ac_t""no" 1>&6
3242 if test -z "$ac_cv_prog_WINDRES"; then
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "windres", so it can be a program name with args.
3245 set dummy windres; ac_word=$2
3246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3247 echo "configure:3248: checking for $ac_word" >&5
3248 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3251 if test -n "$WINDRES"; then
3252 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3256 for ac_dir in $ac_dummy; do
3257 test -z "$ac_dir" && ac_dir=.
3258 if test -f $ac_dir/$ac_word; then
3259 ac_cv_prog_WINDRES="windres"
3264 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3267 WINDRES="$ac_cv_prog_WINDRES"
3268 if test -n "$WINDRES"; then
3269 echo "$ac_t""$WINDRES" 1>&6
3271 echo "$ac_t""no" 1>&6
3279 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3280 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3281 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3282 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3283 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3284 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3285 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3289 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3290 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3297 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3298 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3299 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3300 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3301 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3308 if test "x${SYS}" = "xmingw32"
3310 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3312 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3313 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3316 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3318 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3321 echo "configure:3322: checking for $ac_func" >&5
3322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 /* System header to define __stub macros and hopefully few prototypes,
3329 which can conflict with char $ac_func(); below. */
3331 /* Override any gcc2 internal prototype to avoid an error. */
3332 /* We use char because int might match the return type of a gcc2
3333 builtin and then its argument prototype would still apply. */
3338 /* The GNU C library defines this for functions which it implements
3339 to always fail with ENOSYS. Some functions are actually named
3340 something starting with __ and the normal name is an alias. */
3341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3349 if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3351 eval "ac_cv_func_$ac_func=yes"
3353 echo "configure: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3356 eval "ac_cv_func_$ac_func=no"
3361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3362 echo "$ac_t""yes" 1>&6
3363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3364 cat >> confdefs.h <<EOF
3365 #define $ac_tr_func 1
3369 echo "$ac_t""no" 1>&6
3374 echo $ac_n "checking for connect""... $ac_c" 1>&6
3375 echo "configure:3376: checking for connect" >&5
3376 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 /* System header to define __stub macros and hopefully few prototypes,
3383 which can conflict with char connect(); below. */
3385 /* Override any gcc2 internal prototype to avoid an error. */
3386 /* We use char because int might match the return type of a gcc2
3387 builtin and then its argument prototype would still apply. */
3392 /* The GNU C library defines this for functions which it implements
3393 to always fail with ENOSYS. Some functions are actually named
3394 something starting with __ and the normal name is an alias. */
3395 #if defined (__stub_connect) || defined (__stub___connect)
3403 if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3405 eval "ac_cv_func_connect=yes"
3407 echo "configure: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3410 eval "ac_cv_func_connect=no"
3415 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3416 echo "$ac_t""yes" 1>&6
3419 echo "$ac_t""no" 1>&6
3421 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3422 echo "configure:3423: checking for connect in -lsocket" >&5
3423 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 ac_save_LIBS="$LIBS"
3428 LIBS="-lsocket $LIBS"
3429 cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 /* Override any gcc2 internal prototype to avoid an error. */
3433 /* We use char because int might match the return type of a gcc2
3434 builtin and then its argument prototype would still apply. */
3441 if { (eval echo configure:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3443 eval "ac_cv_lib_$ac_lib_var=yes"
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3448 eval "ac_cv_lib_$ac_lib_var=no"
3451 LIBS="$ac_save_LIBS"
3454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3455 echo "$ac_t""yes" 1>&6
3456 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3457 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3460 echo "$ac_t""no" 1>&6
3465 echo $ac_n "checking for send""... $ac_c" 1>&6
3466 echo "configure:3467: checking for send" >&5
3467 if eval "test \"`echo '$''{'ac_cv_func_send'+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 send(); 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_send) || defined (__stub___send)
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_send=yes"
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3501 eval "ac_cv_func_send=no"
3506 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3507 echo "$ac_t""yes" 1>&6
3510 echo "$ac_t""no" 1>&6
3512 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3513 echo "configure:3514: checking for send in -lsocket" >&5
3514 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 ac_save_LIBS="$LIBS"
3519 LIBS="-lsocket $LIBS"
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* Override any gcc2 internal prototype to avoid an error. */
3524 /* We use char because int might match the return type of a gcc2
3525 builtin and then its argument prototype would still apply. */
3532 if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3534 eval "ac_cv_lib_$ac_lib_var=yes"
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3539 eval "ac_cv_lib_$ac_lib_var=no"
3542 LIBS="$ac_save_LIBS"
3545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3547 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3550 echo "$ac_t""no" 1>&6
3555 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3556 echo "configure:3557: checking for gethostbyname" >&5
3557 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 /* System header to define __stub macros and hopefully few prototypes,
3564 which can conflict with char gethostbyname(); below. */
3566 /* Override any gcc2 internal prototype to avoid an error. */
3567 /* We use char because int might match the return type of a gcc2
3568 builtin and then its argument prototype would still apply. */
3569 char gethostbyname();
3573 /* The GNU C library defines this for functions which it implements
3574 to always fail with ENOSYS. Some functions are actually named
3575 something starting with __ and the normal name is an alias. */
3576 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3584 if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3586 eval "ac_cv_func_gethostbyname=yes"
3588 echo "configure: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3591 eval "ac_cv_func_gethostbyname=no"
3596 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3597 echo "$ac_t""yes" 1>&6
3600 echo "$ac_t""no" 1>&6
3602 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3603 echo "configure:3604: checking for gethostbyname in -lnsl" >&5
3604 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3608 ac_save_LIBS="$LIBS"
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 /* Override any gcc2 internal prototype to avoid an error. */
3614 /* We use char because int might match the return type of a gcc2
3615 builtin and then its argument prototype would still apply. */
3616 char gethostbyname();
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3624 eval "ac_cv_lib_$ac_lib_var=yes"
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3629 eval "ac_cv_lib_$ac_lib_var=no"
3632 LIBS="$ac_save_LIBS"
3635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6
3637 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3639 echo "$ac_t""no" 1>&6
3645 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3646 echo "configure:3647: checking for gethostbyname" >&5
3647 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 /* System header to define __stub macros and hopefully few prototypes,
3654 which can conflict with char gethostbyname(); below. */
3656 /* Override any gcc2 internal prototype to avoid an error. */
3657 /* We use char because int might match the return type of a gcc2
3658 builtin and then its argument prototype would still apply. */
3659 char gethostbyname();
3663 /* The GNU C library defines this for functions which it implements
3664 to always fail with ENOSYS. Some functions are actually named
3665 something starting with __ and the normal name is an alias. */
3666 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3674 if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3676 eval "ac_cv_func_gethostbyname=yes"
3678 echo "configure: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3681 eval "ac_cv_func_gethostbyname=no"
3686 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3687 echo "$ac_t""yes" 1>&6
3690 echo "$ac_t""no" 1>&6
3692 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3693 echo "configure:3694: checking for gethostbyname in -lbind" >&5
3694 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 ac_save_LIBS="$LIBS"
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 /* Override any gcc2 internal prototype to avoid an error. */
3704 /* We use char because int might match the return type of a gcc2
3705 builtin and then its argument prototype would still apply. */
3706 char gethostbyname();
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3714 eval "ac_cv_lib_$ac_lib_var=yes"
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3719 eval "ac_cv_lib_$ac_lib_var=no"
3722 LIBS="$ac_save_LIBS"
3725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3726 echo "$ac_t""yes" 1>&6
3727 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3729 echo "$ac_t""no" 1>&6
3736 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3737 echo "configure:3738: checking for nanosleep" >&5
3738 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 /* System header to define __stub macros and hopefully few prototypes,
3745 which can conflict with char nanosleep(); below. */
3747 /* Override any gcc2 internal prototype to avoid an error. */
3748 /* We use char because int might match the return type of a gcc2
3749 builtin and then its argument prototype would still apply. */
3754 /* The GNU C library defines this for functions which it implements
3755 to always fail with ENOSYS. Some functions are actually named
3756 something starting with __ and the normal name is an alias. */
3757 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3765 if { (eval echo configure:3766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3767 eval "ac_cv_func_nanosleep=yes"
3769 echo "configure: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3772 eval "ac_cv_func_nanosleep=no"
3777 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3781 echo "$ac_t""no" 1>&6
3783 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3784 echo "configure:3785: checking for nanosleep in -lrt" >&5
3785 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3789 ac_save_LIBS="$LIBS"
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 /* Override any gcc2 internal prototype to avoid an error. */
3795 /* We use char because int might match the return type of a gcc2
3796 builtin and then its argument prototype would still apply. */
3803 if { (eval echo configure:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3805 eval "ac_cv_lib_$ac_lib_var=yes"
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3810 eval "ac_cv_lib_$ac_lib_var=no"
3813 LIBS="$ac_save_LIBS"
3816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3817 echo "$ac_t""yes" 1>&6
3818 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3820 echo "$ac_t""no" 1>&6
3821 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3822 echo "configure:3823: checking for nanosleep in -lposix4" >&5
3823 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3827 ac_save_LIBS="$LIBS"
3828 LIBS="-lposix4 $LIBS"
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3832 /* Override any gcc2 internal prototype to avoid an error. */
3833 /* We use char because int might match the return type of a gcc2
3834 builtin and then its argument prototype would still apply. */
3841 if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3843 eval "ac_cv_lib_$ac_lib_var=yes"
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3848 eval "ac_cv_lib_$ac_lib_var=no"
3851 LIBS="$ac_save_LIBS"
3854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3855 echo "$ac_t""yes" 1>&6
3856 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3858 echo "$ac_t""no" 1>&6
3867 if test x$have_nanosleep = x1; then
3868 cat >> confdefs.h <<\EOF
3869 #define HAVE_NANOSLEEP 1
3874 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
3875 echo "configure:3876: checking for sem_init in -lrt" >&5
3876 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
3877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3880 ac_save_LIBS="$LIBS"
3882 cat > conftest.$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3885 /* Override any gcc2 internal prototype to avoid an error. */
3886 /* We use char because int might match the return type of a gcc2
3887 builtin and then its argument prototype would still apply. */
3894 if { (eval echo configure:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3896 eval "ac_cv_lib_$ac_lib_var=yes"
3898 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3901 eval "ac_cv_lib_$ac_lib_var=no"
3904 LIBS="$ac_save_LIBS"
3907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3908 echo "$ac_t""yes" 1>&6
3909 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3911 echo "$ac_t""no" 1>&6
3915 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3916 echo "configure:3917: checking for inet_aton" >&5
3917 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3923 /* System header to define __stub macros and hopefully few prototypes,
3924 which can conflict with char inet_aton(); below. */
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3933 /* The GNU C library defines this for functions which it implements
3934 to always fail with ENOSYS. Some functions are actually named
3935 something starting with __ and the normal name is an alias. */
3936 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3944 if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3946 eval "ac_cv_func_inet_aton=yes"
3948 echo "configure: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3951 eval "ac_cv_func_inet_aton=no"
3956 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3957 echo "$ac_t""yes" 1>&6
3960 echo "$ac_t""no" 1>&6
3962 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3963 echo "configure:3964: checking for inet_aton in -lresolv" >&5
3964 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3968 ac_save_LIBS="$LIBS"
3969 LIBS="-lresolv $LIBS"
3970 cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 /* Override any gcc2 internal prototype to avoid an error. */
3974 /* We use char because int might match the return type of a gcc2
3975 builtin and then its argument prototype would still apply. */
3982 if { (eval echo configure:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3984 eval "ac_cv_lib_$ac_lib_var=yes"
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3989 eval "ac_cv_lib_$ac_lib_var=no"
3992 LIBS="$ac_save_LIBS"
3995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3996 echo "$ac_t""yes" 1>&6
3997 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3999 echo "$ac_t""no" 1>&6
4005 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4006 echo "configure:4007: checking for textdomain" >&5
4007 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4010 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4013 /* System header to define __stub macros and hopefully few prototypes,
4014 which can conflict with char textdomain(); below. */
4016 /* Override any gcc2 internal prototype to avoid an error. */
4017 /* We use char because int might match the return type of a gcc2
4018 builtin and then its argument prototype would still apply. */
4023 /* The GNU C library defines this for functions which it implements
4024 to always fail with ENOSYS. Some functions are actually named
4025 something starting with __ and the normal name is an alias. */
4026 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4034 if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4036 eval "ac_cv_func_textdomain=yes"
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4041 eval "ac_cv_func_textdomain=no"
4046 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4047 echo "$ac_t""yes" 1>&6
4050 echo "$ac_t""no" 1>&6
4052 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4053 echo "configure:4054: checking for textdomain in -lintl" >&5
4054 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4058 ac_save_LIBS="$LIBS"
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 /* Override any gcc2 internal prototype to avoid an error. */
4064 /* We use char because int might match the return type of a gcc2
4065 builtin and then its argument prototype would still apply. */
4072 if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4074 eval "ac_cv_lib_$ac_lib_var=yes"
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 eval "ac_cv_lib_$ac_lib_var=no"
4082 LIBS="$ac_save_LIBS"
4085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4086 echo "$ac_t""yes" 1>&6
4087 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4088 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4091 echo "$ac_t""no" 1>&6
4099 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4100 echo "configure:4101: checking for getopt_long" >&5
4101 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 /* System header to define __stub macros and hopefully few prototypes,
4108 which can conflict with char getopt_long(); below. */
4110 /* Override any gcc2 internal prototype to avoid an error. */
4111 /* We use char because int might match the return type of a gcc2
4112 builtin and then its argument prototype would still apply. */
4117 /* The GNU C library defines this for functions which it implements
4118 to always fail with ENOSYS. Some functions are actually named
4119 something starting with __ and the normal name is an alias. */
4120 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4128 if { (eval echo configure:4129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4130 eval "ac_cv_func_getopt_long=yes"
4132 echo "configure: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4135 eval "ac_cv_func_getopt_long=no"
4140 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4141 echo "$ac_t""yes" 1>&6
4142 cat >> confdefs.h <<\EOF
4143 #define HAVE_GETOPT_LONG 1
4147 echo "$ac_t""no" 1>&6
4148 # FreeBSD has a gnugetopt library for this:
4149 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4150 echo "configure:4151: checking for getopt_long in -lgnugetopt" >&5
4151 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4155 ac_save_LIBS="$LIBS"
4156 LIBS="-lgnugetopt $LIBS"
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 /* Override any gcc2 internal prototype to avoid an error. */
4161 /* We use char because int might match the return type of a gcc2
4162 builtin and then its argument prototype would still apply. */
4169 if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4171 eval "ac_cv_lib_$ac_lib_var=yes"
4173 echo "configure: failed program was:" >&5
4174 cat conftest.$ac_ext >&5
4176 eval "ac_cv_lib_$ac_lib_var=no"
4179 LIBS="$ac_save_LIBS"
4182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4183 echo "$ac_t""yes" 1>&6
4184 cat >> confdefs.h <<\EOF
4185 #define HAVE_GETOPT_LONG 1
4187 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4189 echo "$ac_t""no" 1>&6
4196 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4197 echo "configure:4198: checking return type of signal handlers" >&5
4198 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4201 cat > conftest.$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4204 #include <sys/types.h>
4210 extern "C" void (*signal (int, void (*)(int)))(int);
4212 void (*signal ()) ();
4219 if { (eval echo configure:4220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4221 ac_cv_type_signal=void
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 ac_cv_type_signal=int
4231 echo "$ac_t""$ac_cv_type_signal" 1>&6
4232 cat >> confdefs.h <<EOF
4233 #define RETSIGTYPE $ac_cv_type_signal
4237 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4238 echo "configure:4239: checking for dlopen in -ldl" >&5
4239 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 ac_save_LIBS="$LIBS"
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4259 eval "ac_cv_lib_$ac_lib_var=yes"
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4264 eval "ac_cv_lib_$ac_lib_var=no"
4267 LIBS="$ac_save_LIBS"
4270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4271 echo "$ac_t""yes" 1>&6
4272 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4274 echo "$ac_t""no" 1>&6
4277 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4278 echo "configure:4279: checking for cos in -lm" >&5
4279 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4283 ac_save_LIBS="$LIBS"
4285 cat > conftest.$ac_ext <<EOF
4286 #line 4287 "configure"
4287 #include "confdefs.h"
4288 /* Override any gcc2 internal prototype to avoid an error. */
4289 /* We use char because int might match the return type of a gcc2
4290 builtin and then its argument prototype would still apply. */
4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4299 eval "ac_cv_lib_$ac_lib_var=yes"
4301 echo "configure: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4304 eval "ac_cv_lib_$ac_lib_var=no"
4307 LIBS="$ac_save_LIBS"
4310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4311 echo "$ac_t""yes" 1>&6
4312 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4313 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4315 echo "$ac_t""no" 1>&6
4318 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4319 echo "configure:4320: checking for pow in -lm" >&5
4320 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4324 ac_save_LIBS="$LIBS"
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4329 /* Override any gcc2 internal prototype to avoid an error. */
4330 /* We use char because int might match the return type of a gcc2
4331 builtin and then its argument prototype would still apply. */
4338 if { (eval echo configure:4339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4340 eval "ac_cv_lib_$ac_lib_var=yes"
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4345 eval "ac_cv_lib_$ac_lib_var=no"
4348 LIBS="$ac_save_LIBS"
4351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4352 echo "$ac_t""yes" 1>&6
4353 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4354 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4355 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4356 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4357 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4360 echo "$ac_t""no" 1>&6
4365 if test "x${THREAD_LIB}" = "xerror"; then
4366 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4367 echo "configure:4368: checking for main in -lpthread" >&5
4368 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 ac_save_LIBS="$LIBS"
4373 LIBS="-lpthread $LIBS"
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4382 if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4384 eval "ac_cv_lib_$ac_lib_var=yes"
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4389 eval "ac_cv_lib_$ac_lib_var=no"
4392 LIBS="$ac_save_LIBS"
4395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4397 THREAD_LIB="-lpthread"
4399 echo "$ac_t""no" 1>&6
4403 if test "x${THREAD_LIB}" = "xerror"; then
4404 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4405 echo "configure:4406: checking for main in -lpthreads" >&5
4406 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 ac_save_LIBS="$LIBS"
4411 LIBS="-lpthreads $LIBS"
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4422 eval "ac_cv_lib_$ac_lib_var=yes"
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4427 eval "ac_cv_lib_$ac_lib_var=no"
4430 LIBS="$ac_save_LIBS"
4433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4434 echo "$ac_t""yes" 1>&6
4435 THREAD_LIB="-lpthreads"
4437 echo "$ac_t""no" 1>&6
4441 if test "x${THREAD_LIB}" = "xerror"; then
4442 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4443 echo "configure:4444: checking for main in -lc_r" >&5
4444 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4448 ac_save_LIBS="$LIBS"
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4458 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4460 eval "ac_cv_lib_$ac_lib_var=yes"
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4465 eval "ac_cv_lib_$ac_lib_var=no"
4468 LIBS="$ac_save_LIBS"
4471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4475 echo "$ac_t""no" 1>&6
4479 if test "x${THREAD_LIB}" = "xerror"; then
4480 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4481 echo "configure:4482: checking for pthread_mutex_lock" >&5
4482 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 /* System header to define __stub macros and hopefully few prototypes,
4489 which can conflict with char pthread_mutex_lock(); below. */
4491 /* Override any gcc2 internal prototype to avoid an error. */
4492 /* We use char because int might match the return type of a gcc2
4493 builtin and then its argument prototype would still apply. */
4494 char pthread_mutex_lock();
4498 /* The GNU C library defines this for functions which it implements
4499 to always fail with ENOSYS. Some functions are actually named
4500 something starting with __ and the normal name is an alias. */
4501 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4504 pthread_mutex_lock();
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4511 eval "ac_cv_func_pthread_mutex_lock=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_func_pthread_mutex_lock=no"
4521 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4525 echo "$ac_t""no" 1>&6
4531 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4532 echo "configure:4533: checking for cthread_fork in -lthreads" >&5
4533 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4534 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4537 ac_save_LIBS="$LIBS"
4538 LIBS="-lthreads $LIBS"
4539 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4542 /* Override any gcc2 internal prototype to avoid an error. */
4543 /* We use char because int might match the return type of a gcc2
4544 builtin and then its argument prototype would still apply. */
4545 char cthread_fork();
4551 if { (eval echo configure:4552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4553 eval "ac_cv_lib_$ac_lib_var=yes"
4555 echo "configure: failed program was:" >&5
4556 cat conftest.$ac_ext >&5
4558 eval "ac_cv_lib_$ac_lib_var=no"
4561 LIBS="$ac_save_LIBS"
4564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4565 echo "$ac_t""yes" 1>&6
4566 THREAD_LIB="-lthreads"
4568 echo "$ac_t""no" 1>&6
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 #include <pthread.h>
4577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4578 egrep "pthread_cond_t" >/dev/null 2>&1; then
4581 cat >> confdefs.h <<\EOF
4582 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4588 cat > conftest.$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4591 #include <pthread.h>
4593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4594 egrep "pthread_once" >/dev/null 2>&1; then
4597 cat >> confdefs.h <<\EOF
4598 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 #include <strings.h>
4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610 egrep "strncasecmp" >/dev/null 2>&1; then
4613 cat >> confdefs.h <<\EOF
4614 #define STRNCASECMP_IN_STRINGS_H 1
4621 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4625 echo "configure:4626: checking for $ac_hdr" >&5
4626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4635 { (eval echo configure:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4637 if test -z "$ac_err"; then
4639 eval "ac_cv_header_$ac_safe=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 eval "ac_cv_header_$ac_safe=no"
4649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4652 cat >> confdefs.h <<EOF
4653 #define $ac_tr_hdr 1
4657 echo "$ac_t""no" 1>&6
4661 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4665 echo "configure:4666: checking for $ac_hdr" >&5
4666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4675 { (eval echo configure:4676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4677 if test -z "$ac_err"; then
4679 eval "ac_cv_header_$ac_safe=yes"
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4685 eval "ac_cv_header_$ac_safe=no"
4689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4690 echo "$ac_t""yes" 1>&6
4691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4692 cat >> confdefs.h <<EOF
4693 #define $ac_tr_hdr 1
4697 echo "$ac_t""no" 1>&6
4701 for ac_hdr in dlfcn.h image.h
4703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4705 echo "configure:4706: checking for $ac_hdr" >&5
4706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4707 echo $ac_n "(cached) $ac_c" 1>&6
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4715 { (eval echo configure:4716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4717 if test -z "$ac_err"; then
4719 eval "ac_cv_header_$ac_safe=yes"
4722 echo "configure: failed program was:" >&5
4723 cat conftest.$ac_ext >&5
4725 eval "ac_cv_header_$ac_safe=no"
4729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4730 echo "$ac_t""yes" 1>&6
4731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4732 cat >> confdefs.h <<EOF
4733 #define $ac_tr_hdr 1
4737 echo "$ac_t""no" 1>&6
4741 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4745 echo "configure:4746: checking for $ac_hdr" >&5
4746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4747 echo $ac_n "(cached) $ac_c" 1>&6
4749 cat > conftest.$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4755 { (eval echo configure:4756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4757 if test -z "$ac_err"; then
4759 eval "ac_cv_header_$ac_safe=yes"
4762 echo "configure: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4765 eval "ac_cv_header_$ac_safe=no"
4769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4770 echo "$ac_t""yes" 1>&6
4771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4772 cat >> confdefs.h <<EOF
4773 #define $ac_tr_hdr 1
4777 echo "$ac_t""no" 1>&6
4781 for ac_hdr in machine/param.h sys/shm.h
4783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4785 echo "configure:4786: checking for $ac_hdr" >&5
4786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4795 { (eval echo configure:4796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4797 if test -z "$ac_err"; then
4799 eval "ac_cv_header_$ac_safe=yes"
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4805 eval "ac_cv_header_$ac_safe=no"
4809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4810 echo "$ac_t""yes" 1>&6
4811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4812 cat >> confdefs.h <<EOF
4813 #define $ac_tr_hdr 1
4817 echo "$ac_t""no" 1>&6
4821 for ac_hdr in linux/version.h
4823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4825 echo "configure:4826: checking for $ac_hdr" >&5
4826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 cat > conftest.$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4835 { (eval echo configure:4836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4837 if test -z "$ac_err"; then
4839 eval "ac_cv_header_$ac_safe=yes"
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4845 eval "ac_cv_header_$ac_safe=no"
4849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4850 echo "$ac_t""yes" 1>&6
4851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4852 cat >> confdefs.h <<EOF
4853 #define $ac_tr_hdr 1
4857 echo "$ac_t""no" 1>&6
4862 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4863 echo "configure:4864: checking whether time.h and sys/time.h may both be included" >&5
4864 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 #include <sys/types.h>
4871 #include <sys/time.h>
4877 if { (eval echo configure:4878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4879 ac_cv_header_time=yes
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4884 ac_cv_header_time=no
4889 echo "$ac_t""$ac_cv_header_time" 1>&6
4890 if test $ac_cv_header_time = yes; then
4891 cat >> confdefs.h <<\EOF
4892 #define TIME_WITH_SYS_TIME 1
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4904 egrep "nanosleep" >/dev/null 2>&1; then
4907 cat >> confdefs.h <<\EOF
4908 #define HAVE_DECL_NANOSLEEP 1
4916 cat > conftest.$ac_ext <<EOF
4917 #line 4918 "configure"
4918 #include "confdefs.h"
4919 #include <sys/time.h>
4921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4922 egrep "timespec" >/dev/null 2>&1; then
4925 cat >> confdefs.h <<\EOF
4926 #define HAVE_STRUCT_TIMESPEC 1
4934 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4938 echo "configure:4939: checking for $ac_hdr" >&5
4939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4948 { (eval echo configure:4949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4950 if test -z "$ac_err"; then
4952 eval "ac_cv_header_$ac_safe=yes"
4955 echo "configure: failed program was:" >&5
4956 cat conftest.$ac_ext >&5
4958 eval "ac_cv_header_$ac_safe=no"
4962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4963 echo "$ac_t""yes" 1>&6
4964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4965 cat >> confdefs.h <<EOF
4966 #define $ac_tr_hdr 1
4970 echo "$ac_t""no" 1>&6
4975 if test "x${x_includes}" = "xNONE"; then
4976 x_includes="/usr/X11R6/include"
4978 if test "x${x_libraries}" = "xNONE"; then
4979 x_libraries="/usr/X11R6/lib"
4982 if test "x${SYS}" != "xmingw32"
4984 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
4985 for ac_hdr in X11/extensions/dpms.h
4987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4989 echo "configure:4990: checking for $ac_hdr" >&5
4990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4991 echo $ac_n "(cached) $ac_c" 1>&6
4993 cat > conftest.$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4999 { (eval echo configure:5000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5001 if test -z "$ac_err"; then
5003 eval "ac_cv_header_$ac_safe=yes"
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5009 eval "ac_cv_header_$ac_safe=no"
5013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5016 cat >> confdefs.h <<EOF
5017 #define $ac_tr_hdr 1
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 #include <X11/extensions/dpms.h>
5025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026 egrep "DPMSInfo" >/dev/null 2>&1; then
5029 cat >> confdefs.h <<\EOF
5030 #define DPMSINFO_IN_DPMS_H 1
5039 echo "$ac_t""no" 1>&6
5043 CPPFLAGS="${save_CPPFLAGS}"
5046 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5047 echo "configure:5048: checking for ntohl in sys/param.h" >&5
5048 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5049 echo $ac_n "(cached) $ac_c" 1>&6
5051 CFLAGS="${save_CFLAGS} -Wall -Werror"
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055 #include <sys/param.h>
5057 void foo() { int meuh; ntohl(meuh); }
5060 if { (eval echo configure:5061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5062 ac_cv_c_ntohl_sys_param_h=yes
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 ac_cv_c_ntohl_sys_param_h=no
5072 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5073 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5074 cat >> confdefs.h <<\EOF
5075 #define NTOHL_IN_SYS_PARAM_H 1
5080 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5081 echo "configure:5082: checking if \$CC accepts -finline-limit" >&5
5082 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5094 if { (eval echo configure:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5096 ac_cv_c_inline_limit=yes
5098 echo "configure: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5101 ac_cv_c_inline_limit=no
5106 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5107 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5108 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5111 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5112 echo "configure:5113: checking if \$CC accepts -Wall -Winline" >&5
5113 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5116 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5117 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5125 if { (eval echo configure:5126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5127 ac_cv_c_Wall_Winline=yes
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5132 ac_cv_c_Wall_Winline=no
5137 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5138 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5139 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5141 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5142 echo "configure:5143: checking if \$CC accepts -wall -winline" >&5
5143 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 CFLAGS="-wall -winline ${save_CFLAGS}"
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5155 if { (eval echo configure:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5157 ac_cv_c_wall_winline=yes
5159 echo "configure: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5162 ac_cv_c_wall_winline=no
5167 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5168 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5169 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5173 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5174 echo "configure:5175: checking if \$CC accepts -pipe" >&5
5175 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5178 CFLAGS="${save_CFLAGS} -pipe"
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5187 if { (eval echo configure:5188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5199 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5200 if test "x${ac_cv_c_pipe}" != "xno"; then
5201 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5204 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5205 echo "configure:5206: checking if \$CC accepts -O3" >&5
5206 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5209 CFLAGS="${save_CFLAGS} -O3"
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5218 if { (eval echo configure:5219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5222 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5
5230 echo "$ac_t""$ac_cv_c_o3" 1>&6
5231 if test "x${ac_cv_c_o3}" != "xno"; then
5232 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5234 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5235 echo "configure:5236: checking if \$CC accepts -O2" >&5
5236 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5237 echo $ac_n "(cached) $ac_c" 1>&6
5239 CFLAGS="${save_CFLAGS} -O2"
5240 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5248 if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5260 echo "$ac_t""$ac_cv_c_o2" 1>&6
5261 if test "x${ac_cv_c_o2}" != "xno"; then
5262 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5264 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5265 echo "configure:5266: checking if \$CC accepts -O" >&5
5266 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 CFLAGS="${save_CFLAGS} -O"
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5278 if { (eval echo configure:5279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5290 echo "$ac_t""$ac_cv_c_o" 1>&6
5291 if test "x${ac_cv_c_o}" != "xno"; then
5292 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5297 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5298 echo "configure:5299: checking if \$CC accepts -ffast-math" >&5
5299 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 CFLAGS="${save_CFLAGS} -ffast-math"
5303 cat > conftest.$ac_ext <<EOF
5304 #line 5305 "configure"
5305 #include "confdefs.h"
5311 if { (eval echo configure:5312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5313 ac_cv_c_fast_math=yes
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5318 ac_cv_c_fast_math=no
5323 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5324 if test "x${ac_cv_c_fast_math}" != "xno"; then
5325 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5328 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5329 echo "configure:5330: checking if \$CC accepts -funroll-loops" >&5
5330 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5333 CFLAGS="${save_CFLAGS} -funroll-loops"
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5342 if { (eval echo configure:5343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5344 ac_cv_c_unroll_loops=yes
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5349 ac_cv_c_unroll_loops=no
5354 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5355 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5356 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5359 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5360 echo "configure:5361: checking if \$CC accepts -fomit-frame-pointer" >&5
5361 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5362 echo $ac_n "(cached) $ac_c" 1>&6
5364 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5365 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure"
5367 #include "confdefs.h"
5373 if { (eval echo configure:5374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5375 ac_cv_c_omit_frame_pointer=yes
5377 echo "configure: failed program was:" >&5
5378 cat conftest.$ac_ext >&5
5380 ac_cv_c_omit_frame_pointer=no
5385 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5386 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5387 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5388 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5389 i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5392 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5393 echo "configure:5394: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5394 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5406 if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5418 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5419 if test "x${ac_cv_ld_darwin}" != "xno"; then
5420 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5423 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5424 echo "configure:5425: checking if \$CC accepts -shared" >&5
5425 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5428 CFLAGS="${save_CFLAGS} -shared"
5429 cat > conftest.$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5437 if { (eval echo configure:5438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5439 ac_cv_ld_plugins=yes
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5449 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5450 if test "x${ac_cv_ld_plugins}" != "xno"; then
5451 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5454 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5455 echo "configure:5456: checking for variadic cpp macros" >&5
5456 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5459 CFLAGS="${save_CFLAGS}"
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5464 #define a(b,c...) printf(b,##c)
5466 a("foo");a("%s","bar");a("%s%s","baz","quux");
5469 if { (eval echo configure:5470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5471 ac_cv_cpp_variadic_macros=yes
5473 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 ac_cv_cpp_variadic_macros=no
5481 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5482 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5483 cat >> confdefs.h <<\EOF
5484 #define HAVE_VARIADIC_MACROS 1
5489 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5490 echo "configure:5491: checking __attribute__ ((aligned ())) support" >&5
5491 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5492 echo $ac_n "(cached) $ac_c" 1>&6
5494 ac_cv_c_attribute_aligned=0
5495 CFLAGS="${save_CFLAGS} -Werror"
5496 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5502 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5505 if { (eval echo configure:5506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5507 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5514 CFLAGS="${save_CFLAGS}"
5517 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5518 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5519 cat >> confdefs.h <<EOF
5520 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5525 case "x${target_cpu}" in
5530 ARCH="${target_cpu}"
5534 BUILTINS="${BUILTINS}"
5535 PLUGINS="${PLUGINS} misc/dummy/dummy misc/null/null"
5536 PLUGINS="${PLUGINS} control/rc/rc misc/logger/logger access/file access/udp access/http misc/network/ipv4 misc/memcpy/memcpy"
5537 PLUGINS="${PLUGINS} demux/mpeg/es demux/mpeg/audio demux/mpeg/ps demux/mpeg/ts"
5538 PLUGINS="${PLUGINS} codec/mpeg_video/idct/idct codec/mpeg_video/idct/idctclassic codec/mpeg_video/motion/motion codec/a52old/imdct/imdct codec/a52old/downmix/downmix codec/mpeg_audio/mpeg_audio codec/a52old/a52old codec/mpeg_video/mpeg_video codec/lpcm/lpcm codec/spdif/spdif codec/spudec/spudec"
5539 PLUGINS="${PLUGINS} video_filter/deinterlace/deinterlace video_filter/invert video_filter/wall video_filter/transform video_filter/distort video_filter/clone video_filter/crop"
5540 PLUGINS="${PLUGINS} visualization/scope/scope"
5541 PLUGINS="${PLUGINS} video_chroma/i420_rgb video_chroma/i420_yuy2 video_chroma/i422_yuy2 video_chroma/i420_ymga"
5543 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"
5544 MMXEXT_MODULES="misc/memcpy/memcpymmxext codec/mpeg_video/idct/idctmmxext codec/mpeg_video/motion/motionmmxext"
5545 THREEDNOW_MODULES="misc/memcpy/memcpy3dn codec/a52old/imdct/imdct3dn codec/a52old/downmix/downmix3dn"
5546 SSE_MODULES="codec/a52old/imdct/imdctsse codec/a52old/downmix/downmixsse"
5547 ALTIVEC_MODULES="codec/mpeg_video/idct/idctaltivec codec/mpeg_video/motion/motionaltivec misc/memcpy/memcpyaltivec"
5549 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5550 echo "configure:5551: checking if \$CC groks MMX inline assembly" >&5
5551 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5554 CFLAGS="${save_CFLAGS}"
5555 cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure"
5557 #include "confdefs.h"
5560 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5563 if { (eval echo configure:5564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5565 ac_cv_mmx_inline=yes
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5575 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5576 if test "x${ac_cv_mmx_inline}" != "xno"; then
5577 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5580 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5581 echo "configure:5582: checking if \$CC groks MMX EXT inline assembly" >&5
5582 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5583 echo $ac_n "(cached) $ac_c" 1>&6
5585 CFLAGS="${save_CFLAGS}"
5586 cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5591 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5594 if { (eval echo configure:5595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5596 ac_cv_mmxext_inline=yes
5598 echo "configure: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5601 ac_cv_mmxext_inline=no
5606 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5607 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5608 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5611 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5612 echo "configure:5613: checking if \$CC groks 3D Now! inline assembly" >&5
5613 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 CFLAGS="${save_CFLAGS}"
5617 cat > conftest.$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5622 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5625 if { (eval echo configure:5626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5627 ac_cv_3dnow_inline=yes
5629 echo "configure: failed program was:" >&5
5630 cat conftest.$ac_ext >&5
5632 ac_cv_3dnow_inline=no
5637 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5638 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5639 cat >> confdefs.h <<\EOF
5640 #define CAN_COMPILE_3DNOW 1
5643 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5646 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5647 echo "configure:5648: checking if \$CC groks SSE inline assembly" >&5
5648 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5651 CFLAGS="${save_CFLAGS}"
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5657 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5660 if { (eval echo configure:5661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5662 ac_cv_sse_inline=yes
5664 echo "configure: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5672 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5673 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5674 cat >> confdefs.h <<\EOF
5675 #define CAN_COMPILE_SSE 1
5678 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5681 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5682 # we should be able to remove this test with future versions of mingw32
5683 if test "x${SYS}" != "xmingw32"; then
5684 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5685 echo "configure:5686: checking if \$CC groks AltiVec inline assembly" >&5
5686 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5689 CFLAGS="${save_CFLAGS}"
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5695 asm volatile("vperm 0,1,2,3");
5698 if { (eval echo configure:5699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5700 ac_cv_altivec_inline=yes
5702 echo "configure: failed program was:" >&5
5703 cat conftest.$ac_ext >&5
5705 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5711 asm volatile("vperm 0,1,2,3");
5714 if { (eval echo configure:5715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5716 ac_cv_altivec_inline="-Wa,-m7400"
5718 echo "configure: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5721 ac_cv_altivec_inline=no
5729 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5730 if test "x${ac_cv_altivec_inline}" != "xno"; then
5731 cat >> confdefs.h <<\EOF
5732 #define CAN_COMPILE_ALTIVEC 1
5735 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5736 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5737 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5738 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5739 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5741 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5744 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5745 echo "configure:5746: checking if \$CC groks AltiVec C extensions" >&5
5746 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5749 CFLAGS="${save_CFLAGS} -faltivec"
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5756 vec_mtvscr((vector unsigned int)(0));
5759 if { (eval echo configure:5760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5761 ac_cv_c_altivec=-faltivec
5763 echo "configure: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5768 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure"
5771 #include "confdefs.h"
5774 vec_mtvscr((vector unsigned int)(0));
5777 if { (eval echo configure:5778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5779 ac_cv_c_altivec="-fvec"
5781 echo "configure: failed program was:" >&5
5782 cat conftest.$ac_ext >&5
5790 CFLAGS="${save_CFLAGS}"
5793 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5794 if test "x${ac_cv_c_altivec}" != "xno"; then
5795 cat >> confdefs.h <<\EOF
5796 #define CAN_COMPILE_C_ALTIVEC 1
5799 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5800 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5801 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5802 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5803 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5806 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5807 echo "configure:5808: checking if linker needs -framework vecLib" >&5
5808 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5809 echo $ac_n "(cached) $ac_c" 1>&6
5811 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5820 if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5822 ac_cv_ld_altivec=yes
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5830 LDFLAGS="${save_LDFLAGS}"
5834 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5835 if test "x${ac_cv_ld_altivec}" != "xno"; then
5836 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5837 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5838 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5839 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5844 # Check whether --with- or --without- was given.
5845 if test "${with_+set}" = set; then
5850 # Check whether --with- or --without- was given.
5851 if test "${with_+set}" = set; then
5857 # Check whether --with-tuning or --without-tuning was given.
5858 if test "${with_tuning+set}" = set; then
5859 withval="$with_tuning"
5863 if test "x${with_tuning}" != "x"; then
5864 TUNING="${with_tuning}"
5866 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
5868 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
5872 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
5875 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5878 # Check whether --enable-optimizations or --disable-optimizations was given.
5879 if test "${enable_optimizations+set}" = set; then
5880 enableval="$enable_optimizations"
5881 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
5887 # Check whether --enable-altivec or --disable-altivec was given.
5888 if test "${enable_altivec+set}" = set; then
5889 enableval="$enable_altivec"
5890 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
5891 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5893 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
5894 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5899 # Check whether --enable-debug or --disable-debug was given.
5900 if test "${enable_debug+set}" = set; then
5901 enableval="$enable_debug"
5902 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
5907 # Check whether --enable-release or --disable-release was given.
5908 if test "${enable_release+set}" = set; then
5909 enableval="$enable_release"
5910 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
5912 VERSION="${VERSION}_`date +%Y-%m-%d`"
5917 # Check whether --with- or --without- was given.
5918 if test "${with_+set}" = set; then
5924 # Check whether --enable-dvd or --disable-dvd was given.
5925 if test "${enable_dvd+set}" = set; then
5926 enableval="$enable_dvd"
5930 if test "x${enable_dvd}" != "xno"
5932 # Check whether --with-dvdcss or --without-dvdcss was given.
5933 if test "${with_dvdcss+set}" = set; then
5934 withval="$with_dvdcss"
5938 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5939 if test "${with_dvdcss_tree+set}" = set; then
5940 withval="$with_dvdcss_tree"
5944 case "x${with_dvdcss}" in
5946 if test "x${with_dvdcss_tree}" = x
5948 for ac_hdr in dvdcss/dvdcss.h
5950 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5952 echo "configure:5953: checking for $ac_hdr" >&5
5953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5954 echo $ac_n "(cached) $ac_c" 1>&6
5956 cat > conftest.$ac_ext <<EOF
5957 #line 5958 "configure"
5958 #include "confdefs.h"
5961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5962 { (eval echo configure:5963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5964 if test -z "$ac_err"; then
5966 eval "ac_cv_header_$ac_safe=yes"
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5972 eval "ac_cv_header_$ac_safe=no"
5976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5977 echo "$ac_t""yes" 1>&6
5978 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5979 cat >> confdefs.h <<EOF
5980 #define $ac_tr_hdr 1
5982 PLUGINS="${PLUGINS} access/dvd/dvd"
5983 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5985 echo "$ac_t""no" 1>&6
5986 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
5987 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5992 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5993 echo "configure:5994: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5994 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5995 if test "x${real_dvdcss_tree}" = "x"
5997 echo "$ac_t""no" 1>&6
5998 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6000 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6002 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6003 BUILTINS="${BUILTINS} access/dvd/dvd"
6004 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6005 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6007 echo "$ac_t""no" 1>&6
6008 { 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; }
6013 PLUGINS="${PLUGINS} access/dvd/dvd"
6014 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6015 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6018 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6019 echo "configure:6020: checking for dvdcss headers in ${with_dvdcss}" >&5
6020 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6022 echo "$ac_t""yes" 1>&6
6023 PLUGINS="${PLUGINS} access/dvd/dvd"
6024 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6025 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6027 echo "$ac_t""no" 1>&6
6028 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6034 # Check whether --enable-dvdread or --disable-dvdread was given.
6035 if test "${enable_dvdread+set}" = set; then
6036 enableval="$enable_dvdread"
6040 if test "x${enable_dvdread}" != "xno"
6042 # Check whether --with-dvdread or --without-dvdread was given.
6043 if test "${with_dvdread+set}" = set; then
6044 withval="$with_dvdread"
6048 if test "x${with_dvdread}" = "x"
6053 test_LDFLAGS="-L${with_dvdread}/lib"
6054 test_CFLAGS="-I${with_dvdread}/include"
6056 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6057 for ac_hdr in dvdread/dvd_reader.h
6059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6061 echo "configure:6062: checking for $ac_hdr" >&5
6062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6065 cat > conftest.$ac_ext <<EOF
6066 #line 6067 "configure"
6067 #include "confdefs.h"
6070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6071 { (eval echo configure:6072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6073 if test -z "$ac_err"; then
6075 eval "ac_cv_header_$ac_safe=yes"
6078 echo "configure: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6081 eval "ac_cv_header_$ac_safe=no"
6085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6086 echo "$ac_t""yes" 1>&6
6087 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6088 cat >> confdefs.h <<EOF
6089 #define $ac_tr_hdr 1
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095 #include <dvdread/dvd_reader.h>
6097 void foo() { int i=DVD_VIDEO_LB_LEN; }
6100 if { (eval echo configure:6101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6103 PLUGINS="${PLUGINS} access/dvdread/dvdread"
6104 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6105 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6112 if test "x${enable_dvdread}" != "x"
6114 { 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; }
6121 echo "$ac_t""no" 1>&6
6122 if test "x${enable_dvdread}" != "x"
6124 if test "x${with_dvdread}" != "x"
6126 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6128 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6135 CPPFLAGS="$save_CPPFLAGS"
6138 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6139 if test "${enable_dvdplay+set}" = set; then
6140 enableval="$enable_dvdplay"
6144 if test "x$enable_dvdplay" != "xno"
6146 # Check whether --with-dvdplay or --without-dvdplay was given.
6147 if test "${with_dvdplay+set}" = set; then
6148 withval="$with_dvdplay"
6152 if test "x$with_dvdplay" = x
6157 test_LDFLAGS="-L${with_dvdplay}/lib"
6158 test_CFLAGS="-I${with_dvdplay}/include"
6160 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6161 for ac_hdr in dvdplay/dvdplay.h
6163 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6164 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6165 echo "configure:6166: checking for $ac_hdr" >&5
6166 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6169 cat > conftest.$ac_ext <<EOF
6170 #line 6171 "configure"
6171 #include "confdefs.h"
6174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6175 { (eval echo configure:6176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6177 if test -z "$ac_err"; then
6179 eval "ac_cv_header_$ac_safe=yes"
6182 echo "configure: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6185 eval "ac_cv_header_$ac_safe=no"
6189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6190 echo "$ac_t""yes" 1>&6
6191 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6192 cat >> confdefs.h <<EOF
6193 #define $ac_tr_hdr 1
6196 PLUGINS="${PLUGINS} access/dvdplay/dvdplay"
6197 dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6198 dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6201 echo "$ac_t""no" 1>&6
6202 if test "x$enable_dvdplay" != x
6204 if test "x$with_dvdplay" != x
6206 { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6208 { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6215 CPPFLAGS="${save_CPPFLAGS}"
6219 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6220 if test "${enable_dvbpsi+set}" = set; then
6221 enableval="$enable_dvbpsi"
6225 if test "x${enable_dvbpsi}" != "xno"
6227 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6228 if test "${with_dvbpsi+set}" = set; then
6229 withval="$with_dvbpsi"
6233 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6234 if test "${with_dvbpsi+set}" = set; then
6235 withval="$with_dvbpsi"
6239 case "x${with_dvbpsi}" in
6241 if test "x${with_dvbpsi_tree}" = "x"
6243 for ac_hdr in dvbpsi/dr.h
6245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6247 echo "configure:6248: checking for $ac_hdr" >&5
6248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6251 cat > conftest.$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6257 { (eval echo configure:6258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6259 if test -z "$ac_err"; then
6261 eval "ac_cv_header_$ac_safe=yes"
6264 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6267 eval "ac_cv_header_$ac_safe=no"
6271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6272 echo "$ac_t""yes" 1>&6
6273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6274 cat >> confdefs.h <<EOF
6275 #define $ac_tr_hdr 1
6277 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6278 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} -ldvbpsi"
6280 echo "$ac_t""no" 1>&6
6285 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6286 echo "configure:6287: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6287 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6288 if test "x${real_dvbpsi_tree}" = "x"
6290 echo "$ac_t""no" 1>&6
6291 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6293 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6295 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6296 BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi"
6297 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6298 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6300 echo "$ac_t""no" 1>&6
6301 { 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; }
6308 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6309 echo "configure:6310: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6310 if test "x${with_dvbpsi}" = "x"
6315 test_LDFLAGS="-L${with_dvbpsi}/lib"
6316 test_CFLAGS="-I${with_dvbpsi}/include"
6318 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6319 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6320 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6321 echo "configure:6322: checking for dvbpsi/dr.h" >&5
6322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6
6325 cat > conftest.$ac_ext <<EOF
6326 #line 6327 "configure"
6327 #include "confdefs.h"
6328 #include <dvbpsi/dr.h>
6330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6331 { (eval echo configure:6332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6333 if test -z "$ac_err"; then
6335 eval "ac_cv_header_$ac_safe=yes"
6338 echo "configure: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6341 eval "ac_cv_header_$ac_safe=no"
6345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6346 echo "$ac_t""yes" 1>&6
6348 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6349 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6350 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6353 echo "$ac_t""no" 1>&6
6355 if test "x${enable_dvbpsi}" != "x"
6357 { 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; }
6362 CPPFLAGS="${save_CPPFLAGS}"
6367 # Check whether --enable-vcd or --disable-vcd was given.
6368 if test "${enable_vcd+set}" = set; then
6369 enableval="$enable_vcd"
6374 if test "x${enable_vcd}" != "xno"
6376 cat > conftest.$ac_ext <<EOF
6377 #line 6378 "configure"
6378 #include "confdefs.h"
6379 #include <linux/cdrom.h>
6381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6382 egrep "cdrom_msf0" >/dev/null 2>&1; then
6385 PLUGINS="${PLUGINS} access/vcd/vcd"
6391 cat > conftest.$ac_ext <<EOF
6392 #line 6393 "configure"
6393 #include "confdefs.h"
6394 #include <sys/cdio.h>
6396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6397 egrep "ioc_toc_header " >/dev/null 2>&1; then
6400 PLUGINS="${PLUGINS} access/vcd/vcd"
6401 cat >> confdefs.h <<\EOF
6402 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6410 if test "x${SYS}" = "xbsdi"
6412 PLUGINS="${PLUGINS} access/vcd/vcd"
6415 if test "x${SYS}" = "xdarwin"
6417 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6418 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6422 # Check whether --enable-satellite or --disable-satellite was given.
6423 if test "${enable_satellite+set}" = set; then
6424 enableval="$enable_satellite"
6425 if test "x${enable_satellite}" = "xyes"
6427 PLUGINS="${PLUGINS} access/satellite/satellite"
6432 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6435 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6436 echo "configure:6437: checking for inet_pton" >&5
6437 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6438 echo $ac_n "(cached) $ac_c" 1>&6
6440 cat > conftest.$ac_ext <<EOF
6441 #line 6442 "configure"
6442 #include "confdefs.h"
6443 /* System header to define __stub macros and hopefully few prototypes,
6444 which can conflict with char inet_pton(); below. */
6446 /* Override any gcc2 internal prototype to avoid an error. */
6447 /* We use char because int might match the return type of a gcc2
6448 builtin and then its argument prototype would still apply. */
6453 /* The GNU C library defines this for functions which it implements
6454 to always fail with ENOSYS. Some functions are actually named
6455 something starting with __ and the normal name is an alias. */
6456 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6464 if { (eval echo configure:6465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466 eval "ac_cv_func_inet_pton=yes"
6468 echo "configure: failed program was:" >&5
6469 cat conftest.$ac_ext >&5
6471 eval "ac_cv_func_inet_pton=no"
6476 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6477 echo "$ac_t""yes" 1>&6
6480 echo "$ac_t""no" 1>&6
6482 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6483 echo "configure:6484: checking for inet_pton in -lresolv" >&5
6484 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6488 ac_save_LIBS="$LIBS"
6489 LIBS="-lresolv $LIBS"
6490 cat > conftest.$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6493 /* Override any gcc2 internal prototype to avoid an error. */
6494 /* We use char because int might match the return type of a gcc2
6495 builtin and then its argument prototype would still apply. */
6502 if { (eval echo configure:6503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6504 eval "ac_cv_lib_$ac_lib_var=yes"
6506 echo "configure: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6509 eval "ac_cv_lib_$ac_lib_var=no"
6512 LIBS="$ac_save_LIBS"
6515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6516 echo "$ac_t""yes" 1>&6
6518 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6520 echo "$ac_t""no" 1>&6
6526 echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6527 echo "configure:6528: checking for sockaddr_in6 in netinet/in.h" >&5
6528 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6531 #include <netinet/in.h>
6533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6534 egrep "sockaddr_in6" >/dev/null 2>&1; then
6536 echo "$ac_t""yes" 1>&6
6539 echo "$ac_t""no" 1>&6; have_ipv6=0
6543 if test x$have_ipv6 = x1; then
6544 PLUGINS="${PLUGINS} misc/network/ipv6"
6547 if test "x${SYS}" = "xmingw32"
6549 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6550 echo "configure:6551: checking for getaddrinfo in ws2tcpip.h" >&5
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 #include <ws2tcpip.h>
6556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557 egrep "addrinfo" >/dev/null 2>&1; then
6559 echo "$ac_t""yes" 1>&6
6560 PLUGINS="${PLUGINS} misc/network/ipv6"
6563 echo "$ac_t""no" 1>&6
6569 # Check whether --enable-avi or --disable-avi was given.
6570 if test "${enable_avi+set}" = set; then
6571 enableval="$enable_avi"
6575 if test "x${enable_avi}" != "xno"
6577 PLUGINS="${PLUGINS} demux/avi/avi"
6581 # Check whether --with- or --without- was given.
6582 if test "${with_+set}" = set; then
6588 # Check whether --enable-mad or --disable-mad was given.
6589 if test "${enable_mad+set}" = set; then
6590 enableval="$enable_mad"
6594 if test "x${enable_mad}" = "xyes"
6596 # Check whether --with-mad or --without-mad was given.
6597 if test "${with_mad+set}" = set; then
6602 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6604 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6605 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6608 # Check whether --with-mad-tree or --without-mad-tree was given.
6609 if test "${with_mad_tree+set}" = set; then
6610 withval="$with_mad_tree"
6614 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6616 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6617 if test "x${real_mad_tree}" = "x"
6619 echo "$ac_t""no" 1>&6
6620 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6622 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6623 echo "configure:6624: checking for mad.h in ${real_mad_tree}/libmad" >&5
6624 if test -f ${real_mad_tree}/libmad/mad.h
6626 echo "$ac_t""yes" 1>&6
6627 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6628 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6629 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6630 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6631 echo "configure:6632: checking for mad_bit_init in -lmad" >&5
6632 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 ac_save_LIBS="$LIBS"
6638 cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6641 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6644 char mad_bit_init();
6650 if { (eval echo configure:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6652 eval "ac_cv_lib_$ac_lib_var=yes"
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6657 eval "ac_cv_lib_$ac_lib_var=no"
6660 LIBS="$ac_save_LIBS"
6663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6664 echo "$ac_t""yes" 1>&6
6666 BUILTINS="${BUILTINS} codec/mad/mad"
6667 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6670 echo "$ac_t""no" 1>&6
6671 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6675 LDFLAGS="${save_LDFLAGS}"
6677 echo "$ac_t""no" 1>&6
6678 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6681 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6682 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6687 echo "configure:6688: checking for $ac_hdr" >&5
6688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6689 echo $ac_n "(cached) $ac_c" 1>&6
6691 cat > conftest.$ac_ext <<EOF
6692 #line 6693 "configure"
6693 #include "confdefs.h"
6696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6697 { (eval echo configure:6698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6699 if test -z "$ac_err"; then
6701 eval "ac_cv_header_$ac_safe=yes"
6704 echo "configure: failed program was:" >&5
6705 cat conftest.$ac_ext >&5
6707 eval "ac_cv_header_$ac_safe=no"
6711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6712 echo "$ac_t""yes" 1>&6
6713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6714 cat >> confdefs.h <<EOF
6715 #define $ac_tr_hdr 1
6719 echo "$ac_t""no" 1>&6
6720 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6724 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6725 echo "configure:6726: checking for mad_bit_init in -lmad" >&5
6726 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 ac_save_LIBS="$LIBS"
6732 cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 /* Override any gcc2 internal prototype to avoid an error. */
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6738 char mad_bit_init();
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6746 eval "ac_cv_lib_$ac_lib_var=yes"
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6751 eval "ac_cv_lib_$ac_lib_var=no"
6754 LIBS="$ac_save_LIBS"
6757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6758 echo "$ac_t""yes" 1>&6
6760 PLUGINS="${PLUGINS} codec/mad/mad"
6761 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6763 echo "$ac_t""no" 1>&6
6764 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6767 CFLAGS="${save_CFLAGS}"
6768 LDFLAGS="${save_LDFLAGS}"
6772 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6773 if test "${enable_ffmpeg+set}" = set; then
6774 enableval="$enable_ffmpeg"
6778 if test "x${enable_ffmpeg}" = "xyes"
6780 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6781 if test "${with_ffmpeg+set}" = set; then
6782 withval="$with_ffmpeg"
6786 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6788 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6789 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6792 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6793 if test "${with_ffmpeg_tree+set}" = set; then
6794 withval="$with_ffmpeg_tree"
6798 if test "x${with_ffmpeg_tree}" != "x"
6800 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6801 echo "configure:6802: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6802 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6803 if test "x${real_ffmpeg_tree}" = x
6805 echo "$ac_t""no" 1>&6
6806 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6808 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6810 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6811 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
6812 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6813 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6815 echo "$ac_t""no" 1>&6
6816 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6819 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
6820 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
6821 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6822 echo "configure:6823: checking for avcodec_init in -lavcodec" >&5
6823 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6827 ac_save_LIBS="$LIBS"
6828 LIBS="-lavcodec $LIBS"
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6835 char avcodec_init();
6841 if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6843 eval "ac_cv_lib_$ac_lib_var=yes"
6845 echo "configure: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6848 eval "ac_cv_lib_$ac_lib_var=no"
6851 LIBS="$ac_save_LIBS"
6854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6855 echo "$ac_t""yes" 1>&6
6857 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
6858 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6860 echo "$ac_t""no" 1>&6
6861 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6864 LDFLAGS="${save_LDFLAGS}"
6865 CFLAGS="${save_CFLAGS}"
6869 # Check whether --enable-mp4 or --disable-mp4 was given.
6870 if test "${enable_mp4+set}" = set; then
6871 enableval="$enable_mp4"
6875 if test "x${enable_mp4}" = "xyes"
6877 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
6878 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
6879 echo "configure:6880: checking for zlib.h" >&5
6880 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6889 { (eval echo configure:6890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6891 if test -z "$ac_err"; then
6893 eval "ac_cv_header_$ac_safe=yes"
6896 echo "configure: failed program was:" >&5
6897 cat conftest.$ac_ext >&5
6899 eval "ac_cv_header_$ac_safe=no"
6903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6904 echo "$ac_t""yes" 1>&6
6905 echo $ac_n "checking for inflateEnd in -lz""... $ac_c" 1>&6
6906 echo "configure:6907: checking for inflateEnd in -lz" >&5
6907 ac_lib_var=`echo z'_'inflateEnd | sed 'y%./+-%__p_%'`
6908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6911 ac_save_LIBS="$LIBS"
6913 cat > conftest.$ac_ext <<EOF
6914 #line 6915 "configure"
6915 #include "confdefs.h"
6916 /* Override any gcc2 internal prototype to avoid an error. */
6917 /* We use char because int might match the return type of a gcc2
6918 builtin and then its argument prototype would still apply. */
6925 if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6927 eval "ac_cv_lib_$ac_lib_var=yes"
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 eval "ac_cv_lib_$ac_lib_var=no"
6935 LIBS="$ac_save_LIBS"
6938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6939 echo "$ac_t""yes" 1>&6
6940 PLUGINS="${PLUGINS} demux/mp4/mp4"
6941 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
6943 echo "$ac_t""no" 1>&6
6944 { echo "configure: error: cannot find zlib library..." 1>&2; exit 1; }
6948 echo "$ac_t""no" 1>&6
6949 { echo "configure: error: cannot find zlib header..." 1>&2; exit 1; }
6954 if test "x${SYS}" = "xbeos"
6956 PLUGINS="${PLUGINS} gui/beos/beos"
6959 # Check whether --enable-a52 or --disable-a52 was given.
6960 if test "${enable_a52+set}" = set; then
6961 enableval="$enable_a52"
6965 if test "x${enable_a52}" != "xno"
6967 # Check whether --with-a52-tree or --without-a52-tree was given.
6968 if test "${with_a52_tree+set}" = set; then
6969 withval="$with_a52_tree"
6973 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
6975 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6976 if test "x${real_a52_tree}" = "x"
6978 echo "$ac_t""no" 1>&6
6979 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6981 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6982 echo "configure:6983: checking for a52.h in ${real_a52_tree}/include" >&5
6983 if test -f ${real_a52_tree}/include/a52.h
6985 echo "$ac_t""yes" 1>&6
6986 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6987 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6988 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
6989 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6990 echo "configure:6991: checking for a52_free in -la52" >&5
6991 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6993 echo $ac_n "(cached) $ac_c" 1>&6
6995 ac_save_LIBS="$LIBS"
6996 LIBS="-la52 -lm $LIBS"
6997 cat > conftest.$ac_ext <<EOF
6998 #line 6999 "configure"
6999 #include "confdefs.h"
7000 /* Override any gcc2 internal prototype to avoid an error. */
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7011 eval "ac_cv_lib_$ac_lib_var=yes"
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7016 eval "ac_cv_lib_$ac_lib_var=no"
7019 LIBS="$ac_save_LIBS"
7022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7023 echo "$ac_t""yes" 1>&6
7025 BUILTINS="${BUILTINS} codec/a52/a52"
7026 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7027 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7030 echo "$ac_t""no" 1>&6
7032 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7034 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7036 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7041 LDFLAGS="${save_LDFLAGS}"
7043 echo "$ac_t""no" 1>&6
7044 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7046 else for ac_hdr in a52dec/a52.h
7048 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7050 echo "configure:7051: checking for $ac_hdr" >&5
7051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7054 cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7060 { (eval echo configure:7061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7062 if test -z "$ac_err"; then
7064 eval "ac_cv_header_$ac_safe=yes"
7067 echo "configure: failed program was:" >&5
7068 cat conftest.$ac_ext >&5
7070 eval "ac_cv_header_$ac_safe=no"
7074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7075 echo "$ac_t""yes" 1>&6
7076 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7077 cat >> confdefs.h <<EOF
7078 #define $ac_tr_hdr 1
7081 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7082 echo "configure:7083: checking for a52_free in -la52" >&5
7083 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7087 ac_save_LIBS="$LIBS"
7088 LIBS="-la52 -lm $LIBS"
7089 cat > conftest.$ac_ext <<EOF
7090 #line 7091 "configure"
7091 #include "confdefs.h"
7092 /* Override any gcc2 internal prototype to avoid an error. */
7093 /* We use char because int might match the return type of a gcc2
7094 builtin and then its argument prototype would still apply. */
7101 if { (eval echo configure:7102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7103 eval "ac_cv_lib_$ac_lib_var=yes"
7105 echo "configure: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7108 eval "ac_cv_lib_$ac_lib_var=no"
7111 LIBS="$ac_save_LIBS"
7114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7115 echo "$ac_t""yes" 1>&6
7117 BUILTINS="${BUILTINS} codec/a52/a52"
7118 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7119 a52_CFLAGS="${a52_CFLAGS}"
7122 echo "$ac_t""no" 1>&6
7127 echo "$ac_t""no" 1>&6
7134 # Check whether --enable-cinepak or --disable-cinepak was given.
7135 if test "${enable_cinepak+set}" = set; then
7136 enableval="$enable_cinepak"
7140 if test "x${enable_cinepak}" != "xno"
7142 PLUGINS="${PLUGINS} codec/cinepak/cinepak"
7145 # Check whether --enable-vorbis or --disable-vorbis was given.
7146 if test "${enable_vorbis+set}" = set; then
7147 enableval="$enable_vorbis"
7151 if test "x${enable_vorbis}" != "xno"
7153 for ac_hdr in ogg/ogg.h
7155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7157 echo "configure:7158: checking for $ac_hdr" >&5
7158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7159 echo $ac_n "(cached) $ac_c" 1>&6
7161 cat > conftest.$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7167 { (eval echo configure:7168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7169 if test -z "$ac_err"; then
7171 eval "ac_cv_header_$ac_safe=yes"
7174 echo "configure: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7177 eval "ac_cv_header_$ac_safe=no"
7181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7182 echo "$ac_t""yes" 1>&6
7183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7184 cat >> confdefs.h <<EOF
7185 #define $ac_tr_hdr 1
7188 #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis"
7189 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7192 echo "$ac_t""no" 1>&6
7199 # Check whether --with- or --without- was given.
7200 if test "${with_+set}" = set; then
7206 # Check whether --enable-x11 or --disable-x11 was given.
7207 if test "${enable_x11+set}" = set; then
7208 enableval="$enable_x11"
7212 if test "x${enable_x11}" != "xno" &&
7213 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7214 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7215 for ac_hdr in X11/Xlib.h
7217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7219 echo "configure:7220: checking for $ac_hdr" >&5
7220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7221 echo $ac_n "(cached) $ac_c" 1>&6
7223 cat > conftest.$ac_ext <<EOF
7224 #line 7225 "configure"
7225 #include "confdefs.h"
7228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7229 { (eval echo configure:7230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7231 if test -z "$ac_err"; then
7233 eval "ac_cv_header_$ac_safe=yes"
7236 echo "configure: failed program was:" >&5
7237 cat conftest.$ac_ext >&5
7239 eval "ac_cv_header_$ac_safe=no"
7243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7244 echo "$ac_t""yes" 1>&6
7245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7246 cat >> confdefs.h <<EOF
7247 #define $ac_tr_hdr 1
7250 PLUGINS="${PLUGINS} video_output/x11/x11"
7251 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7252 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7255 echo "$ac_t""no" 1>&6
7259 CPPFLAGS="${save_CPPFLAGS}"
7262 # Check whether --enable-xvideo or --disable-xvideo was given.
7263 if test "${enable_xvideo+set}" = set; then
7264 enableval="$enable_xvideo"
7268 if test "x${enable_xvideo}" != "xno" &&
7269 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7270 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7271 for ac_hdr in X11/extensions/Xv.h
7273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7275 echo "configure:7276: checking for $ac_hdr" >&5
7276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7277 echo $ac_n "(cached) $ac_c" 1>&6
7279 cat > conftest.$ac_ext <<EOF
7280 #line 7281 "configure"
7281 #include "confdefs.h"
7284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7285 { (eval echo configure:7286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7287 if test -z "$ac_err"; then
7289 eval "ac_cv_header_$ac_safe=yes"
7292 echo "configure: failed program was:" >&5
7293 cat conftest.$ac_ext >&5
7295 eval "ac_cv_header_$ac_safe=no"
7299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7300 echo "$ac_t""yes" 1>&6
7301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7302 cat >> confdefs.h <<EOF
7303 #define $ac_tr_hdr 1
7306 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7307 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7308 echo "configure:7309: checking for XvPutImage in -lXv_pic" >&5
7309 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7311 echo $ac_n "(cached) $ac_c" 1>&6
7313 ac_save_LIBS="$LIBS"
7314 LIBS="-lXv_pic $LIBS"
7315 cat > conftest.$ac_ext <<EOF
7316 #line 7317 "configure"
7317 #include "confdefs.h"
7318 /* Override any gcc2 internal prototype to avoid an error. */
7319 /* We use char because int might match the return type of a gcc2
7320 builtin and then its argument prototype would still apply. */
7327 if { (eval echo configure:7328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7329 eval "ac_cv_lib_$ac_lib_var=yes"
7331 echo "configure: failed program was:" >&5
7332 cat conftest.$ac_ext >&5
7334 eval "ac_cv_lib_$ac_lib_var=no"
7337 LIBS="$ac_save_LIBS"
7340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7341 echo "$ac_t""yes" 1>&6
7342 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7343 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7344 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7345 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7347 echo "$ac_t""no" 1>&6
7348 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7349 echo "configure:7350: checking for XvPutImage in -lXv" >&5
7350 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7352 echo $ac_n "(cached) $ac_c" 1>&6
7354 ac_save_LIBS="$LIBS"
7356 cat > conftest.$ac_ext <<EOF
7357 #line 7358 "configure"
7358 #include "confdefs.h"
7359 /* Override any gcc2 internal prototype to avoid an error. */
7360 /* We use char because int might match the return type of a gcc2
7361 builtin and then its argument prototype would still apply. */
7368 if { (eval echo configure:7369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7370 eval "ac_cv_lib_$ac_lib_var=yes"
7372 echo "configure: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7375 eval "ac_cv_lib_$ac_lib_var=no"
7378 LIBS="$ac_save_LIBS"
7381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7382 echo "$ac_t""yes" 1>&6
7383 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7384 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7385 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7386 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7388 echo "$ac_t""no" 1>&6
7389 # Otherwise... well, do nothing.
7397 CFLAGS="${save_CFLAGS}"
7399 CPPFLAGS="${save_CPPFLAGS}"
7401 echo "$ac_t""no" 1>&6
7407 # Check whether --enable-sdl or --disable-sdl was given.
7408 if test "${enable_sdl+set}" = set; then
7409 enableval="$enable_sdl"
7413 if test "x${enable_sdl}" != "xno"
7416 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7417 if test "${with_sdl_config_path+set}" = set; then
7418 withval="$with_sdl_config_path"
7419 if test "x${with_sdl_config_path}" != "xno"
7421 SDL_PATH="${with_sdl_config_path}:${PATH}"
7425 # Extract the first word of "sdl12-config", so it can be a program name with args.
7426 set dummy sdl12-config; ac_word=$2
7427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7428 echo "configure:7429: checking for $ac_word" >&5
7429 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7432 case "$SDL12_CONFIG" in
7434 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7437 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7441 ac_dummy="${SDL_PATH}"
7442 for ac_dir in $ac_dummy; do
7443 test -z "$ac_dir" && ac_dir=.
7444 if test -f $ac_dir/$ac_word; then
7445 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7450 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7454 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7455 if test -n "$SDL12_CONFIG"; then
7456 echo "$ac_t""$SDL12_CONFIG" 1>&6
7458 echo "$ac_t""no" 1>&6
7461 SDL_CONFIG="${SDL12_CONFIG}"
7462 SDL_HEADER="SDL12/SDL.h"
7463 if test "x${SDL_CONFIG}" = "xno"
7465 # Extract the first word of "sdl11-config", so it can be a program name with args.
7466 set dummy sdl11-config; ac_word=$2
7467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_word" >&5
7469 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7470 echo $ac_n "(cached) $ac_c" 1>&6
7472 case "$SDL11_CONFIG" in
7474 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7477 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7481 ac_dummy="${SDL_PATH}"
7482 for ac_dir in $ac_dummy; do
7483 test -z "$ac_dir" && ac_dir=.
7484 if test -f $ac_dir/$ac_word; then
7485 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7490 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7494 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7495 if test -n "$SDL11_CONFIG"; then
7496 echo "$ac_t""$SDL11_CONFIG" 1>&6
7498 echo "$ac_t""no" 1>&6
7501 SDL_CONFIG=${SDL11_CONFIG}
7502 SDL_HEADER="SDL11/SDL.h"
7504 if test "x${SDL_CONFIG}" = "xno"
7506 # Extract the first word of "sdl-config", so it can be a program name with args.
7507 set dummy sdl-config; ac_word=$2
7508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7509 echo "configure:7510: checking for $ac_word" >&5
7510 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7513 case "$SDL_CONFIG" in
7515 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7518 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7522 ac_dummy="${SDL_PATH}"
7523 for ac_dir in $ac_dummy; do
7524 test -z "$ac_dir" && ac_dir=.
7525 if test -f $ac_dir/$ac_word; then
7526 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7531 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7535 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7536 if test -n "$SDL_CONFIG"; then
7537 echo "$ac_t""$SDL_CONFIG" 1>&6
7539 echo "$ac_t""no" 1>&6
7542 SDL_HEADER="SDL/SDL.h"
7544 if test "x${SDL_CONFIG}" != "xno"
7546 PLUGINS="${PLUGINS} video_output/sdl/sdl"
7547 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7548 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7549 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7550 for ac_hdr in ${SDL_HEADER}
7552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7553 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7554 echo "configure:7555: checking for $ac_hdr" >&5
7555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7558 cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7564 { (eval echo configure:7565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7566 if test -z "$ac_err"; then
7568 eval "ac_cv_header_$ac_safe=yes"
7571 echo "configure: failed program was:" >&5
7572 cat conftest.$ac_ext >&5
7574 eval "ac_cv_header_$ac_safe=no"
7578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7579 echo "$ac_t""yes" 1>&6
7580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7581 cat >> confdefs.h <<EOF
7582 #define $ac_tr_hdr 1
7584 cat >> confdefs.h <<EOF
7585 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7589 echo "$ac_t""no" 1>&6
7590 { echo "configure: error: The development package for SDL is not installed.
7591 Please install it and try again. Alternatively you can also configure with
7592 --disable-sdl." 1>&2; exit 1; }
7597 CPPFLAGS="${save_CPPFLAGS}"
7598 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7600 { echo "configure: error: The development package for SDL is not installed.
7601 Please install it and try again. Alternatively you can also configure with
7602 --disable-sdl." 1>&2; exit 1; }
7604 elif test "x${enable_sdl}" = "xyes"
7606 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7607 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7612 # Check whether --enable-directx or --disable-directx was given.
7613 if test "${enable_directx+set}" = set; then
7614 enableval="$enable_directx"
7618 if test "x${enable_directx}" != "xno"
7620 if test "x${SYS}" = "xmingw32"
7622 # Check whether --with-directx or --without-directx was given.
7623 if test "${with_directx+set}" = set; then
7624 withval="$with_directx"
7628 if test "x${with_directx}" = "x"
7630 for ac_hdr in ddraw.h
7632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7634 echo "configure:7635: checking for $ac_hdr" >&5
7635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7636 echo $ac_n "(cached) $ac_c" 1>&6
7638 cat > conftest.$ac_ext <<EOF
7639 #line 7640 "configure"
7640 #include "confdefs.h"
7643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7644 { (eval echo configure:7645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7646 if test -z "$ac_err"; then
7648 eval "ac_cv_header_$ac_safe=yes"
7651 echo "configure: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7654 eval "ac_cv_header_$ac_safe=no"
7658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7659 echo "$ac_t""yes" 1>&6
7660 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7661 cat >> confdefs.h <<EOF
7662 #define $ac_tr_hdr 1
7664 PLUGINS="${PLUGINS} video_output/directx/directx"
7665 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7667 echo "$ac_t""no" 1>&6
7672 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7673 echo "configure:7674: checking for directX headers in ${with_directx}" >&5
7674 if test -f ${with_directx}/ddraw.h
7676 PLUGINS="${PLUGINS} video_output/directx/directx"
7677 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7678 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7679 echo "$ac_t""yes" 1>&6
7681 echo "$ac_t""no" 1>&6
7682 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7688 # Check whether --enable-fb or --disable-fb was given.
7689 if test "${enable_fb+set}" = set; then
7690 enableval="$enable_fb"
7694 if test "x${enable_fb}" != "xno"
7696 for ac_hdr in linux/fb.h
7698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7700 echo "configure:7701: checking for $ac_hdr" >&5
7701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7702 echo $ac_n "(cached) $ac_c" 1>&6
7704 cat > conftest.$ac_ext <<EOF
7705 #line 7706 "configure"
7706 #include "confdefs.h"
7709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7710 { (eval echo configure:7711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7712 if test -z "$ac_err"; then
7714 eval "ac_cv_header_$ac_safe=yes"
7717 echo "configure: failed program was:" >&5
7718 cat conftest.$ac_ext >&5
7720 eval "ac_cv_header_$ac_safe=no"
7724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7725 echo "$ac_t""yes" 1>&6
7726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7727 cat >> confdefs.h <<EOF
7728 #define $ac_tr_hdr 1
7731 PLUGINS="${PLUGINS} video_output/fb/fb"
7734 echo "$ac_t""no" 1>&6
7740 # Check whether --enable-mga or --disable-mga was given.
7741 if test "${enable_mga+set}" = set; then
7742 enableval="$enable_mga"
7743 if test "x${enable_mga}" = "xyes"
7745 PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga"
7750 # Check whether --enable-ggi or --disable-ggi was given.
7751 if test "${enable_ggi+set}" = set; then
7752 enableval="$enable_ggi"
7756 if test "x${enable_ggi}" = "xyes"
7758 PLUGINS="${PLUGINS} video_output/ggi/ggi"
7759 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7760 # Check whether --with-ggi or --without-ggi was given.
7761 if test "${with_ggi+set}" = set; then
7763 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
7765 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
7766 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
7772 # Check whether --enable-glide or --disable-glide was given.
7773 if test "${enable_glide+set}" = set; then
7774 enableval="$enable_glide"
7778 if test "x${enable_glide}" = "xyes"
7780 PLUGINS="${PLUGINS} video_output/glide/glide"
7781 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7782 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7783 # Check whether --with-glide or --without-glide was given.
7784 if test "${with_glide+set}" = set; then
7785 withval="$with_glide"
7786 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
7788 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
7789 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
7795 # Check whether --enable-aa or --disable-aa was given.
7796 if test "${enable_aa+set}" = set; then
7797 enableval="$enable_aa"
7801 if test "x${enable_aa}" = "xyes"
7803 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7804 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7805 echo "configure:7806: checking for aalib.h" >&5
7806 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7807 echo $ac_n "(cached) $ac_c" 1>&6
7809 cat > conftest.$ac_ext <<EOF
7810 #line 7811 "configure"
7811 #include "confdefs.h"
7814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7815 { (eval echo configure:7816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7817 if test -z "$ac_err"; then
7819 eval "ac_cv_header_$ac_safe=yes"
7822 echo "configure: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7825 eval "ac_cv_header_$ac_safe=no"
7829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7830 echo "$ac_t""yes" 1>&6
7833 echo "$ac_t""no" 1>&6
7837 if test "x${have_aa}" = "xtrue"
7839 PLUGINS="${PLUGINS} video_output/aa/aa"
7840 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7845 # Check whether --with- or --without- was given.
7846 if test "${with_+set}" = set; then
7852 # Check whether --enable-dsp or --disable-dsp was given.
7853 if test "${enable_dsp+set}" = set; then
7854 enableval="$enable_dsp"
7859 if test "x${enable_dsp}" != "xno" &&
7860 (test "x${SYS}" != "xmingw32" || test "x${enable_dsp}" = "xyes")
7862 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7864 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7866 echo "configure:7867: checking for $ac_hdr" >&5
7867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7868 echo $ac_n "(cached) $ac_c" 1>&6
7870 cat > conftest.$ac_ext <<EOF
7871 #line 7872 "configure"
7872 #include "confdefs.h"
7875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7876 { (eval echo configure:7877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7878 if test -z "$ac_err"; then
7880 eval "ac_cv_header_$ac_safe=yes"
7883 echo "configure: failed program was:" >&5
7884 cat conftest.$ac_ext >&5
7886 eval "ac_cv_header_$ac_safe=no"
7890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7891 echo "$ac_t""yes" 1>&6
7892 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7893 cat >> confdefs.h <<EOF
7894 #define $ac_tr_hdr 1
7897 PLUGINS="${PLUGINS} audio_output/dsp/dsp"
7898 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7899 echo "configure:7900: checking for main in -lossaudio" >&5
7900 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7904 ac_save_LIBS="$LIBS"
7905 LIBS="-lossaudio $LIBS"
7906 cat > conftest.$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7914 if { (eval echo configure:7915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7916 eval "ac_cv_lib_$ac_lib_var=yes"
7918 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7921 eval "ac_cv_lib_$ac_lib_var=no"
7924 LIBS="$ac_save_LIBS"
7927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7928 echo "$ac_t""yes" 1>&6
7929 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7931 echo "$ac_t""no" 1>&6
7936 echo "$ac_t""no" 1>&6
7942 # Check whether --enable-esd or --disable-esd was given.
7943 if test "${enable_esd+set}" = set; then
7944 enableval="$enable_esd"
7945 if test "x${enable_esd}" = "xyes"
7947 # Extract the first word of "esd-config", so it can be a program name with args.
7948 set dummy esd-config; ac_word=$2
7949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7950 echo "configure:7951: checking for $ac_word" >&5
7951 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7952 echo $ac_n "(cached) $ac_c" 1>&6
7954 case "$ESD_CONFIG" in
7956 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7959 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7964 for ac_dir in $ac_dummy; do
7965 test -z "$ac_dir" && ac_dir=.
7966 if test -f $ac_dir/$ac_word; then
7967 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7972 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7976 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7977 if test -n "$ESD_CONFIG"; then
7978 echo "$ac_t""$ESD_CONFIG" 1>&6
7980 echo "$ac_t""no" 1>&6
7983 if test "x${ESD_CONFIG}" != "xno"
7985 PLUGINS="${PLUGINS} audio_output/esd/esd"
7986 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7987 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7993 # Check whether --enable-arts or --disable-arts was given.
7994 if test "${enable_arts+set}" = set; then
7995 enableval="$enable_arts"
7996 if test "x${enable_arts}" = "xyes"
7998 # Extract the first word of "artsc-config", so it can be a program name with args.
7999 set dummy artsc-config; ac_word=$2
8000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8001 echo "configure:8002: checking for $ac_word" >&5
8002 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
8003 echo $ac_n "(cached) $ac_c" 1>&6
8005 case "$ARTS_CONFIG" in
8007 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8010 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8015 for ac_dir in $ac_dummy; do
8016 test -z "$ac_dir" && ac_dir=.
8017 if test -f $ac_dir/$ac_word; then
8018 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8023 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8027 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8028 if test -n "$ARTS_CONFIG"; then
8029 echo "$ac_t""$ARTS_CONFIG" 1>&6
8031 echo "$ac_t""no" 1>&6
8034 if test "x${ARTS_CONFIG}" != "xno"
8036 PLUGINS="${PLUGINS} audio_output/arts/arts"
8037 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8038 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8044 # Check whether --enable-alsa or --disable-alsa was given.
8045 if test "${enable_alsa+set}" = set; then
8046 enableval="$enable_alsa"
8047 if test "x${enable_alsa}" = "xyes"
8049 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8050 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8051 echo "configure:8052: checking for alsa/asoundlib.h" >&5
8052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8053 echo $ac_n "(cached) $ac_c" 1>&6
8055 cat > conftest.$ac_ext <<EOF
8056 #line 8057 "configure"
8057 #include "confdefs.h"
8058 #include <alsa/asoundlib.h>
8060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8061 { (eval echo configure:8062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8063 if test -z "$ac_err"; then
8065 eval "ac_cv_header_$ac_safe=yes"
8068 echo "configure: failed program was:" >&5
8069 cat conftest.$ac_ext >&5
8071 eval "ac_cv_header_$ac_safe=no"
8075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8076 echo "$ac_t""yes" 1>&6
8077 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8078 echo "configure:8079: checking for main in -lasound" >&5
8079 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8081 echo $ac_n "(cached) $ac_c" 1>&6
8083 ac_save_LIBS="$LIBS"
8084 LIBS="-lasound $LIBS"
8085 cat > conftest.$ac_ext <<EOF
8086 #line 8087 "configure"
8087 #include "confdefs.h"
8093 if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8095 eval "ac_cv_lib_$ac_lib_var=yes"
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8100 eval "ac_cv_lib_$ac_lib_var=no"
8103 LIBS="$ac_save_LIBS"
8106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8107 echo "$ac_t""yes" 1>&6
8110 echo "$ac_t""no" 1>&6
8115 echo "$ac_t""no" 1>&6
8119 if test "x${have_alsa}" = "xtrue"
8121 PLUGINS="${PLUGINS} audio_output/alsa/alsa"
8122 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8128 # Check whether --enable-waveout or --disable-waveout was given.
8129 if test "${enable_waveout+set}" = set; then
8130 enableval="$enable_waveout"
8134 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8136 PLUGINS="${PLUGINS} audio_output/waveout/waveout"
8137 waveout_LDFLAGS="-lwinmm"
8141 # Check whether --with- or --without- was given.
8142 if test "${with_+set}" = set; then
8148 # Check whether --enable-gtk or --disable-gtk was given.
8149 if test "${enable_gtk+set}" = set; then
8150 enableval="$enable_gtk"
8154 if test "x${enable_gtk}" != "xno"
8157 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8158 if test "${with_gtk_config_path+set}" = set; then
8159 withval="$with_gtk_config_path"
8160 if test "x${with_gtk_config_path}" != "xno"
8162 GTK_PATH="${with_gtk_config_path}:${PATH}"
8166 # look for gtk-config
8167 # Extract the first word of "gtk12-config", so it can be a program name with args.
8168 set dummy gtk12-config; ac_word=$2
8169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8170 echo "configure:8171: checking for $ac_word" >&5
8171 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8174 case "$GTK12_CONFIG" in
8176 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8179 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8183 ac_dummy="${GTK_PATH}"
8184 for ac_dir in $ac_dummy; do
8185 test -z "$ac_dir" && ac_dir=.
8186 if test -f $ac_dir/$ac_word; then
8187 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8192 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8196 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8197 if test -n "$GTK12_CONFIG"; then
8198 echo "$ac_t""$GTK12_CONFIG" 1>&6
8200 echo "$ac_t""no" 1>&6
8203 GTK_CONFIG=${GTK12_CONFIG}
8204 if test "x${GTK_CONFIG}" = "xno"
8206 # Extract the first word of "gtk-config", so it can be a program name with args.
8207 set dummy gtk-config; ac_word=$2
8208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8209 echo "configure:8210: checking for $ac_word" >&5
8210 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8211 echo $ac_n "(cached) $ac_c" 1>&6
8213 case "$GTK_CONFIG" in
8215 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8218 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8222 ac_dummy="${GTK_PATH}"
8223 for ac_dir in $ac_dummy; do
8224 test -z "$ac_dir" && ac_dir=.
8225 if test -f $ac_dir/$ac_word; then
8226 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8231 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8235 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8236 if test -n "$GTK_CONFIG"; then
8237 echo "$ac_t""$GTK_CONFIG" 1>&6
8239 echo "$ac_t""no" 1>&6
8243 if test "x${GTK_CONFIG}" != "xno"
8245 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8247 { 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; }
8249 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8250 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8251 # now look for the gtk.h header
8252 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8253 ac_cv_gtk_headers=yes
8254 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8258 echo "configure:8259: checking for $ac_hdr" >&5
8259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8260 echo $ac_n "(cached) $ac_c" 1>&6
8262 cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure"
8264 #include "confdefs.h"
8267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8268 { (eval echo configure:8269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8270 if test -z "$ac_err"; then
8272 eval "ac_cv_header_$ac_safe=yes"
8275 echo "configure: failed program was:" >&5
8276 cat conftest.$ac_ext >&5
8278 eval "ac_cv_header_$ac_safe=no"
8282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8283 echo "$ac_t""yes" 1>&6
8284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8285 cat >> confdefs.h <<EOF
8286 #define $ac_tr_hdr 1
8290 echo "$ac_t""no" 1>&6
8291 ac_cv_gtk_headers=no
8292 echo "Cannot find gtk development headers."
8297 if test "x${ac_cv_gtk_headers}" = "xyes"
8299 PLUGINS="${PLUGINS} gui/gtk/gtk"
8300 ALIASES="${ALIASES} gvlc"
8302 CPPFLAGS="${save_CPPFLAGS}"
8306 # Check whether --enable-familiar or --disable-familiar was given.
8307 if test "${enable_familiar+set}" = set; then
8308 enableval="$enable_familiar"
8312 if test "x${enable_familiar}" = "xyes"
8315 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8316 if test "${with_gtk_config_path+set}" = set; then
8317 withval="$with_gtk_config_path"
8318 if test "x${with_gtk_config_path}" != "xno"
8320 GTK_PATH="${with_gtk_config_path}:${PATH}"
8324 # look for gtk-config
8325 # Extract the first word of "gtk12-config", so it can be a program name with args.
8326 set dummy gtk12-config; ac_word=$2
8327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8328 echo "configure:8329: checking for $ac_word" >&5
8329 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8330 echo $ac_n "(cached) $ac_c" 1>&6
8332 case "$GTK12_CONFIG" in
8334 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8337 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8341 ac_dummy="${GTK_PATH}"
8342 for ac_dir in $ac_dummy; do
8343 test -z "$ac_dir" && ac_dir=.
8344 if test -f $ac_dir/$ac_word; then
8345 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8350 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8354 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8355 if test -n "$GTK12_CONFIG"; then
8356 echo "$ac_t""$GTK12_CONFIG" 1>&6
8358 echo "$ac_t""no" 1>&6
8361 GTK_CONFIG=${GTK12_CONFIG}
8362 if test "x${GTK_CONFIG}" = "xno"
8364 # Extract the first word of "gtk-config", so it can be a program name with args.
8365 set dummy gtk-config; ac_word=$2
8366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8367 echo "configure:8368: checking for $ac_word" >&5
8368 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8369 echo $ac_n "(cached) $ac_c" 1>&6
8371 case "$GTK_CONFIG" in
8373 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8376 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8380 ac_dummy="${GTK_PATH}"
8381 for ac_dir in $ac_dummy; do
8382 test -z "$ac_dir" && ac_dir=.
8383 if test -f $ac_dir/$ac_word; then
8384 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8389 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8393 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8394 if test -n "$GTK_CONFIG"; then
8395 echo "$ac_t""$GTK_CONFIG" 1>&6
8397 echo "$ac_t""no" 1>&6
8401 if test "x${GTK_CONFIG}" != "xno"
8403 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8405 { 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; }
8407 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8408 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8409 # now look for the gtk.h header
8410 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8411 ac_cv_gtk_headers=yes
8412 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8416 echo "configure:8417: checking for $ac_hdr" >&5
8417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8418 echo $ac_n "(cached) $ac_c" 1>&6
8420 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8426 { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8428 if test -z "$ac_err"; then
8430 eval "ac_cv_header_$ac_safe=yes"
8433 echo "configure: failed program was:" >&5
8434 cat conftest.$ac_ext >&5
8436 eval "ac_cv_header_$ac_safe=no"
8440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8441 echo "$ac_t""yes" 1>&6
8442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8443 cat >> confdefs.h <<EOF
8444 #define $ac_tr_hdr 1
8448 echo "$ac_t""no" 1>&6
8449 ac_cv_gtk_headers=no
8450 echo "Cannot find gtk development headers."
8455 if test "x${ac_cv_gtk_headers}" = "xyes"
8457 PLUGINS="${PLUGINS} gui/familiar/familiar"
8459 CPPFLAGS="${save_CPPFLAGS}"
8463 # Check whether --enable-gnome or --disable-gnome was given.
8464 if test "${enable_gnome+set}" = set; then
8465 enableval="$enable_gnome"
8466 if test "x${enable_gnome}" = "xyes"; then
8467 # look for gnome-config
8468 # Extract the first word of "gnome-config", so it can be a program name with args.
8469 set dummy gnome-config; ac_word=$2
8470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8471 echo "configure:8472: checking for $ac_word" >&5
8472 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8475 case "$GNOME_CONFIG" in
8477 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8480 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8485 for ac_dir in $ac_dummy; do
8486 test -z "$ac_dir" && ac_dir=.
8487 if test -f $ac_dir/$ac_word; then
8488 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8493 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8497 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8498 if test -n "$GNOME_CONFIG"; then
8499 echo "$ac_t""$GNOME_CONFIG" 1>&6
8501 echo "$ac_t""no" 1>&6
8504 if test -x ${GNOME_CONFIG}
8506 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8507 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8509 # now look for the gnome.h header
8510 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8511 for ac_hdr in gnome.h
8513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8515 echo "configure:8516: checking for $ac_hdr" >&5
8516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
8519 cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure"
8521 #include "confdefs.h"
8524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8525 { (eval echo configure:8526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8527 if test -z "$ac_err"; then
8529 eval "ac_cv_header_$ac_safe=yes"
8532 echo "configure: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8535 eval "ac_cv_header_$ac_safe=no"
8539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8540 echo "$ac_t""yes" 1>&6
8541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8542 cat >> confdefs.h <<EOF
8543 #define $ac_tr_hdr 1
8546 PLUGINS="${PLUGINS} gui/gtk/gnome"
8547 ALIASES="${ALIASES} gnome-vlc"
8550 echo "$ac_t""no" 1>&6
8551 { echo "configure: error: Can't find gnome headers. Please install the gnome
8552 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8557 CPPFLAGS="${save_CPPFLAGS}"
8562 # Check whether --enable-qt or --disable-qt was given.
8563 if test "${enable_qt+set}" = set; then
8564 enableval="$enable_qt"
8565 if test "x${enable_qt}" = "xyes"; then
8566 PLUGINS="${PLUGINS} gui/qt/qt"
8567 ALIASES="${ALIASES} qvlc"
8568 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8569 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8570 if test -x ${QTDIR}/bin/moc
8572 MOC=${QTDIR}/bin/moc
8580 # Check whether --enable-kde or --disable-kde was given.
8581 if test "${enable_kde+set}" = set; then
8582 enableval="$enable_kde"
8583 if test "x${enable_kde}" = "xyes"; then
8584 PLUGINS="${PLUGINS} gui/kde/kde"
8585 ALIASES="${ALIASES} kvlc"
8586 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8587 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8588 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8589 if test -x ${QTDIR}/bin/moc
8591 MOC=${QTDIR}/bin/moc
8599 # Check whether --enable-macosx or --disable-macosx was given.
8600 if test "${enable_macosx+set}" = set; then
8601 enableval="$enable_macosx"
8602 if test "x${enable_macosx}" = "xyes"
8604 BUILTINS="${BUILTINS} gui/macosx/macosx"
8605 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8608 for ac_hdr in Cocoa/Cocoa.h
8610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8612 echo "configure:8613: checking for $ac_hdr" >&5
8613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8614 echo $ac_n "(cached) $ac_c" 1>&6
8616 cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8622 { (eval echo configure:8623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8624 if test -z "$ac_err"; then
8626 eval "ac_cv_header_$ac_safe=yes"
8629 echo "configure: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8632 eval "ac_cv_header_$ac_safe=no"
8636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8637 echo "$ac_t""yes" 1>&6
8638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8639 cat >> confdefs.h <<EOF
8640 #define $ac_tr_hdr 1
8642 BUILTINS="${BUILTINS} gui/macosx/macosx"
8643 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8646 echo "$ac_t""no" 1>&6
8653 # Check whether --enable-qnx or --disable-qnx was given.
8654 if test "${enable_qnx+set}" = set; then
8655 enableval="$enable_qnx"
8659 if test "x${enable_qnx}" != "xno"
8663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8665 echo "configure:8666: checking for $ac_hdr" >&5
8666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8667 echo $ac_n "(cached) $ac_c" 1>&6
8669 cat > conftest.$ac_ext <<EOF
8670 #line 8671 "configure"
8671 #include "confdefs.h"
8674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8675 { (eval echo configure:8676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8677 if test -z "$ac_err"; then
8679 eval "ac_cv_header_$ac_safe=yes"
8682 echo "configure: failed program was:" >&5
8683 cat conftest.$ac_ext >&5
8685 eval "ac_cv_header_$ac_safe=no"
8689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8690 echo "$ac_t""yes" 1>&6
8691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8692 cat >> confdefs.h <<EOF
8693 #define $ac_tr_hdr 1
8696 PLUGINS="${PLUGINS} gui/qnx/qnx"
8697 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8700 echo "$ac_t""no" 1>&6
8706 # Check whether --enable-intfwin or --disable-intfwin was given.
8707 if test "${enable_intfwin+set}" = set; then
8708 enableval="$enable_intfwin"
8709 if test "x${enable_intfwin}" != "xno"
8711 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8712 if test "${with_bcbuilder+set}" = set; then
8713 withval="$with_bcbuilder"
8717 if test "x${with_bcbuilder}" != "x"
8719 BCBUILDER="${with_bcbuilder}"
8721 PLUGINS="${PLUGINS} gui/win32/win32"
8726 # Check whether --enable-ncurses or --disable-ncurses was given.
8727 if test "${enable_ncurses+set}" = set; then
8728 enableval="$enable_ncurses"
8729 if test "x${enable_ncurses}" = "xyes"; then
8730 PLUGINS="${PLUGINS} gui/ncurses/ncurses"
8731 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8736 # Check whether --enable-xosd or --disable-xosd was given.
8737 if test "${enable_xosd+set}" = set; then
8738 enableval="$enable_xosd"
8742 if test "x${enable_xosd}" = "xyes"
8744 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8745 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8746 echo "configure:8747: checking for xosd.h" >&5
8747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8748 echo $ac_n "(cached) $ac_c" 1>&6
8750 cat > conftest.$ac_ext <<EOF
8751 #line 8752 "configure"
8752 #include "confdefs.h"
8755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8756 { (eval echo configure:8757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8758 if test -z "$ac_err"; then
8760 eval "ac_cv_header_$ac_safe=yes"
8763 echo "configure: failed program was:" >&5
8764 cat conftest.$ac_ext >&5
8766 eval "ac_cv_header_$ac_safe=no"
8770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8771 echo "$ac_t""yes" 1>&6
8774 echo "$ac_t""no" 1>&6
8778 if test "x${have_xosd}" = "xtrue"
8780 PLUGINS="${PLUGINS} visualization/xosd/xosd"
8781 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8785 # Check whether --enable-lirc or --disable-lirc was given.
8786 if test "${enable_lirc+set}" = set; then
8787 enableval="$enable_lirc"
8791 if test "x${enable_lirc}" = "xyes"
8793 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8794 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8795 echo "configure:8796: checking for lirc/lirc_client.h" >&5
8796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8797 echo $ac_n "(cached) $ac_c" 1>&6
8799 cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 #include <lirc/lirc_client.h>
8804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8805 { (eval echo configure:8806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8807 if test -z "$ac_err"; then
8809 eval "ac_cv_header_$ac_safe=yes"
8812 echo "configure: failed program was:" >&5
8813 cat conftest.$ac_ext >&5
8815 eval "ac_cv_header_$ac_safe=no"
8819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8820 echo "$ac_t""yes" 1>&6
8821 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8822 echo "configure:8823: checking for lirc_init in -llirc_client" >&5
8823 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8825 echo $ac_n "(cached) $ac_c" 1>&6
8827 ac_save_LIBS="$LIBS"
8828 LIBS="-llirc_client $LIBS"
8829 cat > conftest.$ac_ext <<EOF
8830 #line 8831 "configure"
8831 #include "confdefs.h"
8832 /* Override any gcc2 internal prototype to avoid an error. */
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8841 if { (eval echo configure:8842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8843 eval "ac_cv_lib_$ac_lib_var=yes"
8845 echo "configure: failed program was:" >&5
8846 cat conftest.$ac_ext >&5
8848 eval "ac_cv_lib_$ac_lib_var=no"
8851 LIBS="$ac_save_LIBS"
8854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8855 echo "$ac_t""yes" 1>&6
8858 echo "$ac_t""no" 1>&6
8863 echo "$ac_t""no" 1>&6
8867 if test "x${have_lirc}" = "xtrue"
8869 PLUGINS="${PLUGINS} control/lirc/lirc"
8870 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8874 # Check whether --with- or --without- was given.
8875 if test "${with_+set}" = set; then
8881 # Check whether --with-words or --without-words was given.
8882 if test "${with_words+set}" = set; then
8883 withval="$with_words"
8887 case "x${with_words}" in
8889 ac_cv_c_bigendian=yes
8892 ac_cv_c_bigendian=no
8895 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8896 echo "configure:8897: checking whether the byte order is big-endian" >&5
8897 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8898 echo $ac_n "(cached) $ac_c" 1>&6
8900 ac_cv_c_bigendian="unknown"
8901 cat >conftest.c <<EOF
8902 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8903 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8904 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8905 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8906 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8907 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8908 int main(void) { _a(); _e(); return 0; }
8911 if test -f conftest.c
8913 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8914 && test -f conftest.o
8916 if test "`strings conftest.o | grep BIGenDianSyS`"
8918 ac_cv_c_bigendian="yes"
8920 if test "`strings conftest.o | grep LiTTleEnDian`"
8922 ac_cv_c_bigendian="no"
8929 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8930 if test "x${ac_cv_c_bigendian}" = "xunknown"
8932 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8936 if test "${ac_cv_c_bigendian}" = "yes"
8938 cat >> confdefs.h <<\EOF
8939 #define WORDS_BIGENDIAN 1
8947 # Check whether --enable-gprof or --disable-gprof was given.
8948 if test "${enable_gprof+set}" = set; then
8949 enableval="$enable_gprof"
8950 if test "x${enable_gprof}" = "xyes"
8960 # Check whether --enable-cprof or --disable-cprof was given.
8961 if test "${enable_cprof+set}" = set; then
8962 enableval="$enable_cprof"
8963 if test "x${enable_cprof}" = "xyes"
8965 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
8973 # Check whether --enable-pth or --disable-pth was given.
8974 if test "${enable_pth+set}" = set; then
8975 enableval="$enable_pth"
8976 if test "x${enable_pth}" = "xyes"; then
8977 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8978 echo "configure:8979: checking for pth_init in -lpth" >&5
8979 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8981 echo $ac_n "(cached) $ac_c" 1>&6
8983 ac_save_LIBS="$LIBS"
8985 cat > conftest.$ac_ext <<EOF
8986 #line 8987 "configure"
8987 #include "confdefs.h"
8988 /* Override any gcc2 internal prototype to avoid an error. */
8989 /* We use char because int might match the return type of a gcc2
8990 builtin and then its argument prototype would still apply. */
8997 if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8999 eval "ac_cv_lib_$ac_lib_var=yes"
9001 echo "configure: failed program was:" >&5
9002 cat conftest.$ac_ext >&5
9004 eval "ac_cv_lib_$ac_lib_var=no"
9007 LIBS="$ac_save_LIBS"
9010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9011 echo "$ac_t""yes" 1>&6
9012 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9014 cat >> confdefs.h <<EOF
9015 #define $ac_tr_lib 1
9021 echo "$ac_t""no" 1>&6
9024 cat > conftest.$ac_ext <<EOF
9025 #line 9026 "configure"
9026 #include "confdefs.h"
9029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9030 egrep "pth_init" >/dev/null 2>&1; then
9033 cat >> confdefs.h <<\EOF
9034 #define PTH_INIT_IN_PTH_H 1
9046 # Check whether --enable-st or --disable-st was given.
9047 if test "${enable_st+set}" = set; then
9048 enableval="$enable_st"
9049 if test "x${enable_st}" = "xyes"; then
9050 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9051 echo "configure:9052: checking for st_init in -lst" >&5
9052 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9054 echo $ac_n "(cached) $ac_c" 1>&6
9056 ac_save_LIBS="$LIBS"
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 /* Override any gcc2 internal prototype to avoid an error. */
9062 /* We use char because int might match the return type of a gcc2
9063 builtin and then its argument prototype would still apply. */
9070 if { (eval echo configure:9071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9072 eval "ac_cv_lib_$ac_lib_var=yes"
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9077 eval "ac_cv_lib_$ac_lib_var=no"
9080 LIBS="$ac_save_LIBS"
9083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9084 echo "$ac_t""yes" 1>&6
9085 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9086 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9087 cat >> confdefs.h <<EOF
9088 #define $ac_tr_lib 1
9094 echo "$ac_t""no" 1>&6
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9103 egrep "st_init" >/dev/null 2>&1; then
9106 cat >> confdefs.h <<\EOF
9107 #define ST_INIT_IN_ST_H 1
9119 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9120 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9123 # Check whether --enable-mozilla or --disable-mozilla was given.
9124 if test "${enable_mozilla+set}" = set; then
9125 enableval="$enable_mozilla"
9129 if test "x${enable_mozilla}" = "xyes"
9131 # Extract the first word of "mozilla-config", so it can be a program name with args.
9132 set dummy mozilla-config; ac_word=$2
9133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9134 echo "configure:9135: checking for $ac_word" >&5
9135 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9136 echo $ac_n "(cached) $ac_c" 1>&6
9138 case "$MOZILLA_CONFIG" in
9140 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9143 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9148 for ac_dir in $ac_dummy; do
9149 test -z "$ac_dir" && ac_dir=.
9150 if test -f $ac_dir/$ac_word; then
9151 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9156 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9160 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9161 if test -n "$MOZILLA_CONFIG"; then
9162 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9164 echo "$ac_t""no" 1>&6
9167 if test "x${MOZILLA_CONFIG}" != "xno"
9169 if test "x${SYS}" != "xmingw32"; then
9170 LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9171 echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9172 echo "configure:9173: checking for XtStrings in -lXt" >&5
9173 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9177 ac_save_LIBS="$LIBS"
9179 cat > conftest.$ac_ext <<EOF
9180 #line 9181 "configure"
9181 #include "confdefs.h"
9182 /* Override any gcc2 internal prototype to avoid an error. */
9183 /* We use char because int might match the return type of a gcc2
9184 builtin and then its argument prototype would still apply. */
9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9193 eval "ac_cv_lib_$ac_lib_var=yes"
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9198 eval "ac_cv_lib_$ac_lib_var=no"
9201 LIBS="$ac_save_LIBS"
9204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9205 echo "$ac_t""yes" 1>&6
9207 mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9210 echo "$ac_t""no" 1>&6
9213 LDFLAGS="${save_LDFLAGS}"
9216 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9217 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9221 # Check whether --enable-plugins or --disable-plugins was given.
9222 if test "${enable_plugins+set}" = set; then
9223 enableval="$enable_plugins"
9224 if test "x${enable_plugins}" = "xno"
9226 BUILTINS="${BUILTINS} ${PLUGINS}"
9232 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9234 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9236 BUILTINS="${BUILTINS} ${PLUGINS}"
9240 cat >> confdefs.h <<EOF
9241 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9244 cat >> confdefs.h <<EOF
9245 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9248 cat >> confdefs.h <<EOF
9249 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9253 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9254 cat >> confdefs.h <<EOF
9255 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9258 cat >> confdefs.h <<EOF
9259 #define MODULE_SYMBOL ${VLC_SYMBOL}
9263 DATA_PATH="${ac_tool_prefix}/share/videolan"
9265 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9268 CPPFLAGS="${save_CPPFLAGS}"
9269 CFLAGS="${save_CFLAGS}"
9270 LDFLAGS="${save_LDFLAGS}"
9272 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9273 for i in ${BUILTINS} ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9382 cat > confcache <<\EOF
9383 # This file is a shell script that caches the results of configure
9384 # tests run on this system so they can be shared between configure
9385 # scripts and configure runs. It is not useful on other systems.
9386 # If it contains results you don't want to keep, you may remove or edit it.
9388 # By default, configure uses ./config.cache as the cache file,
9389 # creating it if it does not exist already. You can give configure
9390 # the --cache-file=FILE option to use a different cache file; that is
9391 # what configure does when it calls configure scripts in
9392 # subdirectories, so they share the cache.
9393 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9394 # config.status only pays attention to the cache file if you give it the
9395 # --recheck option to rerun configure.
9398 # The following way of writing the cache mishandles newlines in values,
9399 # but we know of no workaround that is simple, portable, and efficient.
9400 # So, don't put newlines in cache variables' values.
9401 # Ultrix sh set writes to stderr and can't be redirected directly,
9402 # and sets the high bit in the cache file unless we assign to the vars.
9404 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9406 # `set' does not quote correctly, so add quotes (double-quote substitution
9407 # turns \\\\ into \\, and sed turns \\ into \).
9409 -e "s/'/'\\\\''/g" \
9410 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9413 # `set' quotes correctly as required by POSIX, so do not add quotes.
9414 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9417 if cmp -s $cache_file confcache; then
9420 if test -w $cache_file; then
9421 echo "updating cache $cache_file"
9422 cat confcache > $cache_file
9424 echo "not updating unwritable cache $cache_file"
9429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9432 # Let make expand exec_prefix.
9433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9435 # Any assignment to VPATH causes Sun make to only execute
9436 # the first set of double-colon rules, so remove it if not needed.
9437 # If there is a colon in the path, we need to keep it.
9438 if test "x$srcdir" = x.; then
9439 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9442 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9444 DEFS=-DHAVE_CONFIG_H
9446 # Without the "./", some shells look in PATH for config.status.
9447 : ${CONFIG_STATUS=./config.status}
9449 echo creating $CONFIG_STATUS
9450 rm -f $CONFIG_STATUS
9451 cat > $CONFIG_STATUS <<EOF
9453 # Generated automatically by configure.
9454 # Run this file to recreate the current configuration.
9455 # This directory was configured as follows,
9456 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9458 # $0 $ac_configure_args
9460 # Compiler output produced by configure, useful for debugging
9461 # configure, is in ./config.log if it exists.
9463 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9466 case "\$ac_option" in
9467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9468 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9469 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9470 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9471 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9473 -help | --help | --hel | --he | --h)
9474 echo "\$ac_cs_usage"; exit 0 ;;
9475 *) echo "\$ac_cs_usage"; exit 1 ;;
9479 ac_given_srcdir=$srcdir
9480 ac_given_INSTALL="$INSTALL"
9482 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
9484 cat >> $CONFIG_STATUS <<EOF
9486 # Protect against being on the right side of a sed subst in config.status.
9487 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9488 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9492 s%@CFLAGS@%$CFLAGS%g
9493 s%@CPPFLAGS@%$CPPFLAGS%g
9494 s%@CXXFLAGS@%$CXXFLAGS%g
9495 s%@FFLAGS@%$FFLAGS%g
9497 s%@LDFLAGS@%$LDFLAGS%g
9499 s%@exec_prefix@%$exec_prefix%g
9500 s%@prefix@%$prefix%g
9501 s%@program_transform_name@%$program_transform_name%g
9502 s%@bindir@%$bindir%g
9503 s%@sbindir@%$sbindir%g
9504 s%@libexecdir@%$libexecdir%g
9505 s%@datadir@%$datadir%g
9506 s%@sysconfdir@%$sysconfdir%g
9507 s%@sharedstatedir@%$sharedstatedir%g
9508 s%@localstatedir@%$localstatedir%g
9509 s%@libdir@%$libdir%g
9510 s%@includedir@%$includedir%g
9511 s%@oldincludedir@%$oldincludedir%g
9512 s%@infodir@%$infodir%g
9513 s%@mandir@%$mandir%g
9515 s%@host_alias@%$host_alias%g
9516 s%@host_cpu@%$host_cpu%g
9517 s%@host_vendor@%$host_vendor%g
9518 s%@host_os@%$host_os%g
9519 s%@target@%$target%g
9520 s%@target_alias@%$target_alias%g
9521 s%@target_cpu@%$target_cpu%g
9522 s%@target_vendor@%$target_vendor%g
9523 s%@target_os@%$target_os%g
9525 s%@build_alias@%$build_alias%g
9526 s%@build_cpu@%$build_cpu%g
9527 s%@build_vendor@%$build_vendor%g
9528 s%@build_os@%$build_os%g
9529 s%@SET_MAKE@%$SET_MAKE%g
9532 s%@RANLIB@%$RANLIB%g
9535 s%@ALLOCA@%$ALLOCA%g
9536 s%@GLIBC21@%$GLIBC21%g
9537 s%@LIBICONV@%$LIBICONV%g
9538 s%@USE_NLS@%$USE_NLS%g
9539 s%@MSGFMT@%$MSGFMT%g
9540 s%@GMSGFMT@%$GMSGFMT%g
9541 s%@XGETTEXT@%$XGETTEXT%g
9542 s%@INTLBISON@%$INTLBISON%g
9543 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9544 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9545 s%@CATALOGS@%$CATALOGS%g
9546 s%@CATOBJEXT@%$CATOBJEXT%g
9547 s%@GMOFILES@%$GMOFILES%g
9548 s%@INTLLIBS@%$INTLLIBS%g
9549 s%@INTLOBJS@%$INTLOBJS%g
9550 s%@POFILES@%$POFILES%g
9552 s%@DATADIRNAME@%$DATADIRNAME%g
9553 s%@INSTOBJEXT@%$INSTOBJEXT%g
9554 s%@GENCAT@%$GENCAT%g
9555 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9556 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9557 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9558 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9559 s%@INSTALL_DATA@%$INSTALL_DATA%g
9560 s%@WINDRES@%$WINDRES%g
9561 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9562 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9563 s%@SDL_CONFIG@%$SDL_CONFIG%g
9564 s%@ESD_CONFIG@%$ESD_CONFIG%g
9565 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9566 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9567 s%@GTK_CONFIG@%$GTK_CONFIG%g
9568 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9569 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9570 s%@DATA_PATH@%$DATA_PATH%g
9571 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9572 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
9575 s%@PLUGINS@%$PLUGINS%g
9576 s%@BUILTINS@%$BUILTINS%g
9577 s%@ALIASES@%$ALIASES%g
9582 s%@OPTIMS@%$OPTIMS%g
9583 s%@TUNING@%$TUNING%g
9584 s%@RELEASE@%$RELEASE%g
9586 s%@BCBUILDER@%$BCBUILDER%g
9587 s%@PACKAGE@%$PACKAGE%g
9588 s%@VERSION@%$VERSION%g
9589 s%@NEED_GETOPT@%$NEED_GETOPT%g
9590 s%@MOZILLA@%$MOZILLA%g
9591 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9592 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9593 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9594 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9595 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9596 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
9597 s%@a52_CFLAGS@%$a52_CFLAGS%g
9598 s%@arts_CFLAGS@%$arts_CFLAGS%g
9599 s%@i420_yuy2_mmx_CFLAGS@%$i420_yuy2_mmx_CFLAGS%g
9600 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9601 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9602 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
9603 s%@ts_dvbpsi_CFLAGS@%$ts_dvbpsi_CFLAGS%g
9604 s%@directx_CFLAGS@%$directx_CFLAGS%g
9605 s%@esd_CFLAGS@%$esd_CFLAGS%g
9606 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
9607 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9608 s%@glide_CFLAGS@%$glide_CFLAGS%g
9609 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9610 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9611 s%@kde_CFLAGS@%$kde_CFLAGS%g
9612 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9613 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9614 s%@mad_CFLAGS@%$mad_CFLAGS%g
9615 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9616 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9617 s%@qt_CFLAGS@%$qt_CFLAGS%g
9618 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9619 s%@x11_CFLAGS@%$x11_CFLAGS%g
9620 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9621 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9622 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9623 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9624 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
9625 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9626 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9627 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9628 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9629 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9630 s%@i420_rgb_LDFLAGS@%$i420_rgb_LDFLAGS%g
9631 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9632 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9633 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9634 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9635 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
9636 s%@ts_dvbpsi_LDFLAGS@%$ts_dvbpsi_LDFLAGS%g
9637 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9638 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
9639 s%@distort_LDFLAGS@%$distort_LDFLAGS%g
9640 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9641 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
9642 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9643 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9644 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9645 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9646 s%@http_LDFLAGS@%$http_LDFLAGS%g
9647 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9648 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9649 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9650 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9651 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9652 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9653 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9654 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9655 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9656 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9657 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9658 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9659 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9660 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9661 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9662 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9663 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9664 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9665 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9666 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9667 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9668 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9669 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9674 cat >> $CONFIG_STATUS <<\EOF
9676 # Split the substitutions into bite-sized pieces for seds with
9677 # small command number limits, like on Digital OSF/1 and HP-UX.
9678 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9679 ac_file=1 # Number of current file.
9680 ac_beg=1 # First line for current file.
9681 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9684 while $ac_more_lines; do
9685 if test $ac_beg -gt 1; then
9686 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9688 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9690 if test ! -s conftest.s$ac_file; then
9692 rm -f conftest.s$ac_file
9694 if test -z "$ac_sed_cmds"; then
9695 ac_sed_cmds="sed -f conftest.s$ac_file"
9697 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9699 ac_file=`expr $ac_file + 1`
9701 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9704 if test -z "$ac_sed_cmds"; then
9709 cat >> $CONFIG_STATUS <<EOF
9711 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
9713 cat >> $CONFIG_STATUS <<\EOF
9714 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9717 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9718 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9719 *) ac_file_in="${ac_file}.in" ;;
9722 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9724 # Remove last slash and all that follows it. Not all systems have dirname.
9725 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9726 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9727 # The file is in a subdirectory.
9728 test ! -d "$ac_dir" && mkdir "$ac_dir"
9729 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9730 # A "../" for each directory in $ac_dir_suffix.
9731 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9733 ac_dir_suffix= ac_dots=
9736 case "$ac_given_srcdir" in
9738 if test -z "$ac_dots"; then top_srcdir=.
9739 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9740 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9742 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9743 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9746 case "$ac_given_INSTALL" in
9747 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9748 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9751 echo creating "$ac_file"
9753 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9755 *Makefile*) ac_comsub="1i\\
9756 # $configure_input" ;;
9760 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9762 s%@configure_input@%$configure_input%g
9763 s%@srcdir@%$srcdir%g
9764 s%@top_srcdir@%$top_srcdir%g
9765 s%@INSTALL@%$INSTALL%g
9766 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9770 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9771 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9773 # ac_d sets the value in "#define NAME VALUE" lines.
9774 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9775 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9778 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9779 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9780 ac_uB='\([ ]\)%\1#\2define\3'
9783 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9784 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9785 ac_eB='$%\1#\2define\3'
9789 if test "${CONFIG_HEADERS+set}" != set; then
9791 cat >> $CONFIG_STATUS <<EOF
9792 CONFIG_HEADERS="include/defs.h"
9794 cat >> $CONFIG_STATUS <<\EOF
9796 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9797 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9799 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9800 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9801 *) ac_file_in="${ac_file}.in" ;;
9804 echo creating $ac_file
9806 rm -f conftest.frag conftest.in conftest.out
9807 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9808 cat $ac_file_inputs > conftest.in
9812 # Transform confdefs.h into a sed script conftest.vals that substitutes
9813 # the proper values into config.h.in to produce config.h. And first:
9814 # Protect against being on the right side of a sed subst in config.status.
9815 # Protect against being in an unquoted here document in config.status.
9817 cat > conftest.hdr <<\EOF
9820 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9824 sed -n -f conftest.hdr confdefs.h > conftest.vals
9827 # This sed command replaces #undef with comments. This is necessary, for
9828 # example, in the case of _POSIX_SOURCE, which is predefined and required
9829 # on some systems where configure will not decide to define it.
9830 cat >> conftest.vals <<\EOF
9831 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9834 # Break up conftest.vals because some shells have a limit on
9835 # the size of here documents, and old seds have small limits too.
9840 ac_lines=`grep -c . conftest.vals`
9841 # grep -c gives empty output for an empty file on some AIX systems.
9842 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9843 # Write a limited-size here document to conftest.frag.
9844 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9845 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9847 sed -f conftest.frag conftest.in > conftest.out
9849 mv conftest.out conftest.in
9851 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9853 mv conftest.tail conftest.vals
9857 cat >> $CONFIG_STATUS <<\EOF
9858 rm -f conftest.frag conftest.h
9859 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9860 cat conftest.in >> conftest.h
9862 if cmp -s $ac_file conftest.h 2>/dev/null; then
9863 echo "$ac_file is unchanged"
9866 # Remove last slash and all that follows it. Not all systems have dirname.
9867 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9868 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9869 # The file is in a subdirectory.
9870 test ! -d "$ac_dir" && mkdir "$ac_dir"
9873 mv conftest.h $ac_file
9878 cat >> $CONFIG_STATUS <<EOF
9882 cat >> $CONFIG_STATUS <<\EOF
9883 for ac_file in $CONFIG_FILES; do
9884 # Support "outfile[:infile[:infile...]]"
9886 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9888 # PO directories have a Makefile.in generated from Makefile.in.in.
9889 case "$ac_file" in */Makefile.in)
9890 # Adjust a relative srcdir.
9891 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9892 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9893 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9894 # In autoconf-2.13 it is called $ac_given_srcdir.
9895 # In autoconf-2.50 it is called $srcdir.
9896 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9897 case "$ac_given_srcdir" in
9898 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9899 /*) top_srcdir="$ac_given_srcdir" ;;
9900 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9902 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9903 rm -f "$ac_dir/POTFILES"
9904 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9905 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9906 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9907 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9915 chmod +x $CONFIG_STATUS
9916 rm -fr confdefs* $ac_clean_files
9917 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9919 chmod a+x vlc-config
9923 --------------------
9924 vlc version : ${VERSION}
9926 architecture : ${ARCH}
9927 optimizations : ${OPTIMS}
9929 debug mode : ${DEBUG}
9930 release : ${RELEASE}
9931 profiling : ${PROFILING}
9932 need builtin getopt : ${NEED_GETOPT}
9933 built-in modules :${BUILTINS}
9934 plug-in modules :${PLUGINS}
9935 mozilla plugin : ${MOZILLA}
9936 vlc aliases :${ALIASES}
9938 You may now tune Makefile.opts at your convenience, for instance to choose
9939 which modules get compiled as plugins.
9941 To build vlc and its plugins, type \`${VLC_MAKE}'.