3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
17 --disable-nls do not use Native Language Support"
19 --with-included-gettext use the GNU gettext library included here"
23 Optimization options:"
25 --with-tuning=ARCH enable special tuning for an architecture
26 (default i686 on IA-32 and 750 on PPC)"
28 --disable-optimizations disable compiler optimizations (default enabled)"
30 --disable-altivec disable AltiVec optimizations (default enabled on PPC)"
32 --enable-debug debug mode (default disabled)"
34 --enable-release activate extra optimizations (default disabled)"
38 --enable-dvd DVD input module (default enabled)"
40 --with-dvdcss=PATH libdvdcss headers and libraries"
42 --with-dvdcss-tree=PATH libdvdcss tree for static linking"
44 --enable-dvdread dvdread input module (default disabled)"
46 --with-dvdread=PATH libdvdread headers and libraries"
48 --enable-dvdplay dvdplay input module (default disabled)"
50 --with-dvdplay=PATH libdvdplay headers and libraries"
52 --enable-dvbpsi dvbpsi ts demux module (default disabled)"
54 --with-dvbpsi=PATH libdvbpsi headers and libraries"
56 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
58 --enable-v4l Video4Linux input support (default disabled)"
60 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
62 --enable-satellite satellite card support (default disabled)"
64 --enable-avi AVI demux module (default enabled)"
68 --enable-mad libmad module (default disabled)"
70 --with-mad=PATH path to libmad"
72 --with-mad-tree=PATH mad tree for static linking"
74 --enable-ffmpeg ffmpeg codec (default disabled)"
76 --with-ffmpeg=PATH path to ffmpeg installation"
78 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
80 --enable-mp4 MP4 demux module (default disabled)"
82 --enable-a52 A/52 support with liba52 (default enabled)"
84 --with-a52=PATH a52 headers and libraries"
86 --with-a52-tree=PATH a52dec tree for static linking "
88 --enable-cinepak Cinepak decoder (default enabled)"
90 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
92 --enable-dv DV decoder support (default disabled)"
96 --enable-x11 X11 support (default enabled)"
98 --enable-xvideo XVideo support (default enabled)"
100 --enable-sdl SDL support (default enabled)"
102 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
104 --enable-directx Win32 DirectX support (default enabled on Win32)"
106 --with-directx=PATH Win32 DirectX headers"
108 --enable-fb Linux framebuffer support (default enabled on Linux)"
110 --enable-mga Linux kernel Matrox support (default disabled)"
112 --enable-ggi GGI support (default disabled)"
114 --with-ggi=PATH path to libggi"
116 --enable-glide Glide (3dfx) support (default disabled)"
118 --with-glide=PATH path to libglide"
120 --enable-aa aalib output (default disabled)"
124 --enable-oss Linux OSS /dev/dsp support (enabled on Linux)"
126 --enable-esd Esound library support (default disabled)"
128 --enable-arts aRts sound server (default disabled)"
130 --enable-alsa ALSA sound support for Linux (default disabled)"
132 --enable-waveout Win32 waveOut module (default enabled on Win32)"
136 --enable-gtk Gtk+ support (default enabled)"
138 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
140 --enable-familiar Familiar Gtk+ support (default disabled)"
142 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
144 --enable-gnome Gnome interface support (default disabled)"
146 --enable-qt Qt interface support (default disabled)"
148 --enable-kde KDE interface support (default disabled)"
150 --enable-macosx MacOS X support (default enabled on MacOS X)"
152 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
154 --enable-intfwin Win32 interface support (default disabled)"
156 --with-bcbuilder=PATH Borland C++ Builder installation path"
158 --enable-ncurses ncurses interface support (default disabled)"
160 --enable-xosd xosd interface support (default disabled)"
162 --enable-lirc lirc support (default disabled)"
166 --with-words=endianness set endianness (big or little)"
168 --enable-gprof gprof profiling (default disabled)"
170 --enable-cprof cprof profiling (default disabled)"
172 --enable-pth GNU Pth support (default disabled)"
174 --enable-st State Threads (default disabled)"
176 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
178 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
180 # Initialize some variables set by options.
181 # The variables have the same names as the options, with
182 # dashes changed to underlines.
184 cache_file=./config.cache
193 program_transform_name=s,x,x,
201 bindir='${exec_prefix}/bin'
202 sbindir='${exec_prefix}/sbin'
203 libexecdir='${exec_prefix}/libexec'
204 datadir='${prefix}/share'
205 sysconfdir='${prefix}/etc'
206 sharedstatedir='${prefix}/com'
207 localstatedir='${prefix}/var'
208 libdir='${exec_prefix}/lib'
209 includedir='${prefix}/include'
210 oldincludedir='/usr/include'
211 infodir='${prefix}/info'
212 mandir='${prefix}/man'
214 # Initialize some other variables.
217 SHELL=${CONFIG_SHELL-/bin/sh}
218 # Maximum number of lines to put in a shell here document.
225 # If the previous option needs an argument, assign it.
226 if test -n "$ac_prev"; then
227 eval "$ac_prev=\$ac_option"
233 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
237 # Accept the important Cygnus configure options, so we can diagnose typos.
241 -bindir | --bindir | --bindi | --bind | --bin | --bi)
243 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
244 bindir="$ac_optarg" ;;
246 -build | --build | --buil | --bui | --bu)
248 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
249 build="$ac_optarg" ;;
251 -cache-file | --cache-file | --cache-fil | --cache-fi \
252 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
253 ac_prev=cache_file ;;
254 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
255 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
256 cache_file="$ac_optarg" ;;
258 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
260 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
262 datadir="$ac_optarg" ;;
264 -disable-* | --disable-*)
265 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
266 # Reject names that are not valid shell variable names.
267 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
268 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
270 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
271 eval "enable_${ac_feature}=no" ;;
273 -enable-* | --enable-*)
274 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
275 # Reject names that are not valid shell variable names.
276 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
277 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
279 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
284 eval "enable_${ac_feature}='$ac_optarg'" ;;
286 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
287 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
288 | --exec | --exe | --ex)
289 ac_prev=exec_prefix ;;
290 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
291 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
292 | --exec=* | --exe=* | --ex=*)
293 exec_prefix="$ac_optarg" ;;
295 -gas | --gas | --ga | --g)
296 # Obsolete; use --with-gas.
299 -help | --help | --hel | --he)
300 # Omit some internal or obsolete options to make the list less imposing.
301 # This message is too long to be a string in the A/UX 3.1 sh.
303 Usage: configure [options] [host]
304 Options: [defaults in brackets after descriptions]
306 --cache-file=FILE cache test results in FILE
307 --help print this message
308 --no-create do not create output files
309 --quiet, --silent do not print \`checking...' messages
310 --version print the version of autoconf that created configure
311 Directory and file names:
312 --prefix=PREFIX install architecture-independent files in PREFIX
314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
316 --bindir=DIR user executables in DIR [EPREFIX/bin]
317 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
318 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
319 --datadir=DIR read-only architecture-independent data in DIR
321 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
322 --sharedstatedir=DIR modifiable architecture-independent data in DIR
324 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
325 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
326 --includedir=DIR C header files in DIR [PREFIX/include]
327 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
328 --infodir=DIR info documentation in DIR [PREFIX/info]
329 --mandir=DIR man documentation in DIR [PREFIX/man]
330 --srcdir=DIR find the sources in DIR [configure dir or ..]
331 --program-prefix=PREFIX prepend PREFIX to installed program names
332 --program-suffix=SUFFIX append SUFFIX to installed program names
333 --program-transform-name=PROGRAM
334 run sed PROGRAM on installed program names
338 --build=BUILD configure for building on BUILD [BUILD=HOST]
339 --host=HOST configure for HOST [guessed]
340 --target=TARGET configure for TARGET [TARGET=HOST]
341 Features and packages:
342 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
343 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
344 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
345 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
346 --x-includes=DIR X include files are in DIR
347 --x-libraries=DIR X library files are in DIR
349 if test -n "$ac_help"; then
350 echo "--enable and --with options recognized:$ac_help"
354 -host | --host | --hos | --ho)
356 -host=* | --host=* | --hos=* | --ho=*)
359 -includedir | --includedir | --includedi | --included | --include \
360 | --includ | --inclu | --incl | --inc)
361 ac_prev=includedir ;;
362 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
363 | --includ=* | --inclu=* | --incl=* | --inc=*)
364 includedir="$ac_optarg" ;;
366 -infodir | --infodir | --infodi | --infod | --info | --inf)
368 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
369 infodir="$ac_optarg" ;;
371 -libdir | --libdir | --libdi | --libd)
373 -libdir=* | --libdir=* | --libdi=* | --libd=*)
374 libdir="$ac_optarg" ;;
376 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
377 | --libexe | --libex | --libe)
378 ac_prev=libexecdir ;;
379 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
380 | --libexe=* | --libex=* | --libe=*)
381 libexecdir="$ac_optarg" ;;
383 -localstatedir | --localstatedir | --localstatedi | --localstated \
384 | --localstate | --localstat | --localsta | --localst \
385 | --locals | --local | --loca | --loc | --lo)
386 ac_prev=localstatedir ;;
387 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
388 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
389 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
390 localstatedir="$ac_optarg" ;;
392 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
394 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
395 mandir="$ac_optarg" ;;
398 # Obsolete; use --without-fp.
401 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
405 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
406 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
409 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
410 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
411 | --oldin | --oldi | --old | --ol | --o)
412 ac_prev=oldincludedir ;;
413 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
414 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
415 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
416 oldincludedir="$ac_optarg" ;;
418 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
420 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
421 prefix="$ac_optarg" ;;
423 -program-prefix | --program-prefix | --program-prefi | --program-pref \
424 | --program-pre | --program-pr | --program-p)
425 ac_prev=program_prefix ;;
426 -program-prefix=* | --program-prefix=* | --program-prefi=* \
427 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
428 program_prefix="$ac_optarg" ;;
430 -program-suffix | --program-suffix | --program-suffi | --program-suff \
431 | --program-suf | --program-su | --program-s)
432 ac_prev=program_suffix ;;
433 -program-suffix=* | --program-suffix=* | --program-suffi=* \
434 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
435 program_suffix="$ac_optarg" ;;
437 -program-transform-name | --program-transform-name \
438 | --program-transform-nam | --program-transform-na \
439 | --program-transform-n | --program-transform- \
440 | --program-transform | --program-transfor \
441 | --program-transfo | --program-transf \
442 | --program-trans | --program-tran \
443 | --progr-tra | --program-tr | --program-t)
444 ac_prev=program_transform_name ;;
445 -program-transform-name=* | --program-transform-name=* \
446 | --program-transform-nam=* | --program-transform-na=* \
447 | --program-transform-n=* | --program-transform-=* \
448 | --program-transform=* | --program-transfor=* \
449 | --program-transfo=* | --program-transf=* \
450 | --program-trans=* | --program-tran=* \
451 | --progr-tra=* | --program-tr=* | --program-t=*)
452 program_transform_name="$ac_optarg" ;;
454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
455 | -silent | --silent | --silen | --sile | --sil)
458 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
460 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
462 sbindir="$ac_optarg" ;;
464 -sharedstatedir | --sharedstatedir | --sharedstatedi \
465 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
466 | --sharedst | --shareds | --shared | --share | --shar \
468 ac_prev=sharedstatedir ;;
469 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
470 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
471 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
473 sharedstatedir="$ac_optarg" ;;
475 -site | --site | --sit)
477 -site=* | --site=* | --sit=*)
480 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
482 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
483 srcdir="$ac_optarg" ;;
485 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
486 | --syscon | --sysco | --sysc | --sys | --sy)
487 ac_prev=sysconfdir ;;
488 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
489 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
490 sysconfdir="$ac_optarg" ;;
492 -target | --target | --targe | --targ | --tar | --ta | --t)
494 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
495 target="$ac_optarg" ;;
497 -v | -verbose | --verbose | --verbos | --verbo | --verb)
500 -version | --version | --versio | --versi | --vers)
501 echo "configure generated by autoconf version 2.13"
505 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
506 # Reject names that are not valid shell variable names.
507 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
508 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
510 ac_package=`echo $ac_package| sed 's/-/_/g'`
515 eval "with_${ac_package}='$ac_optarg'" ;;
517 -without-* | --without-*)
518 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
519 # Reject names that are not valid shell variable names.
520 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
521 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
523 ac_package=`echo $ac_package| sed 's/-/_/g'`
524 eval "with_${ac_package}=no" ;;
527 # Obsolete; use --with-x.
530 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
531 | --x-incl | --x-inc | --x-in | --x-i)
532 ac_prev=x_includes ;;
533 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
534 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
535 x_includes="$ac_optarg" ;;
537 -x-libraries | --x-libraries | --x-librarie | --x-librari \
538 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
539 ac_prev=x_libraries ;;
540 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
541 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
542 x_libraries="$ac_optarg" ;;
544 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
548 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
549 echo "configure: warning: $ac_option: invalid host type" 1>&2
551 if test "x$nonopt" != xNONE; then
552 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
560 if test -n "$ac_prev"; then
561 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
564 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
566 # File descriptor usage:
569 # 2 errors and warnings
570 # 3 some systems may open it to /dev/tty
571 # 4 used on the Kubota Titan
572 # 6 checking for... messages and results
573 # 5 compiler messages saved in config.log
574 if test "$silent" = yes; then
582 This file contains any messages produced by compilers while
583 running configure, to aid debugging if configure makes a mistake.
586 # Strip out --no-create and --no-recursion so they do not pile up.
587 # Also quote any args containing shell metacharacters.
592 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
593 | --no-cr | --no-c) ;;
594 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
595 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
596 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
597 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
598 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
603 # Only set these to C if already set. These must not be set unconditionally
604 # because not all systems understand e.g. LANG=C (notably SCO).
605 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
606 # Non-C LC_CTYPE values break the ctype check.
607 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
608 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
609 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
610 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
612 # confdefs.h avoids OS command line length limits that DEFS can exceed.
613 rm -rf conftest* confdefs.h
614 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
617 # A filename unique to this package, relative to the directory that
618 # configure is in, which we can look for to find out if srcdir is correct.
619 ac_unique_file=include/main.h
621 # Find the source files, if location was not specified.
622 if test -z "$srcdir"; then
623 ac_srcdir_defaulted=yes
624 # Try the directory containing this script, then its parent.
626 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
627 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
629 if test ! -r $srcdir/$ac_unique_file; then
633 ac_srcdir_defaulted=no
635 if test ! -r $srcdir/$ac_unique_file; then
636 if test "$ac_srcdir_defaulted" = yes; then
637 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
639 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
642 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
644 # Prefer explicitly selected file to automatically selected ones.
645 if test -z "$CONFIG_SITE"; then
646 if test "x$prefix" != xNONE; then
647 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
649 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
652 for ac_site_file in $CONFIG_SITE; do
653 if test -r "$ac_site_file"; then
654 echo "loading site script $ac_site_file"
659 if test -r "$cache_file"; then
660 echo "loading cache $cache_file"
663 echo "creating cache $cache_file"
668 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
669 ac_cpp='$CPP $CPPFLAGS'
670 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
671 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
672 cross_compiling=$ac_cv_prog_cc_cross
676 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
677 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
678 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
685 ac_n= ac_c='\c' ac_t=
691 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
692 if test -f $ac_dir/install-sh; then
694 ac_install_sh="$ac_aux_dir/install-sh -c"
696 elif test -f $ac_dir/install.sh; then
698 ac_install_sh="$ac_aux_dir/install.sh -c"
702 if test -z "$ac_aux_dir"; then
703 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
705 ac_config_guess=$ac_aux_dir/config.guess
706 ac_config_sub=$ac_aux_dir/config.sub
707 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
710 # Do some error checking and defaulting for the host and target type.
712 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
715 # 1. You are not allowed to specify --host, --target, and nonopt at the
717 # 2. Host defaults to nonopt.
718 # 3. If nonopt is not specified, then host defaults to the current host,
719 # as determined by config.guess.
720 # 4. Target and build default to nonopt.
721 # 5. If nonopt is not specified, then target and build default to host.
723 # The aliases save the names the user supplied, while $host etc.
724 # will get canonicalized.
725 case $host---$target---$nonopt in
726 NONE---*---* | *---NONE---* | *---*---NONE) ;;
727 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
731 # Make sure we can run config.sub.
732 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
733 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
736 echo $ac_n "checking host system type""... $ac_c" 1>&6
737 echo "configure:738: checking host system type" >&5
740 case "$host_alias" in
744 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
745 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
747 *) host_alias=$nonopt ;;
751 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
752 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
753 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
754 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
755 echo "$ac_t""$host" 1>&6
757 echo $ac_n "checking target system type""... $ac_c" 1>&6
758 echo "configure:759: checking target system type" >&5
761 case "$target_alias" in
764 NONE) target_alias=$host_alias ;;
765 *) target_alias=$nonopt ;;
769 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
770 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
771 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
772 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
773 echo "$ac_t""$target" 1>&6
775 echo $ac_n "checking build system type""... $ac_c" 1>&6
776 echo "configure:777: checking build system type" >&5
779 case "$build_alias" in
782 NONE) build_alias=$host_alias ;;
783 *) build_alias=$nonopt ;;
787 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
788 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
789 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
790 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
791 echo "$ac_t""$build" 1>&6
793 test "$host_alias" != "$target_alias" &&
794 test "$program_prefix$program_suffix$program_transform_name" = \
796 program_prefix=${target_alias}-
799 CONFIGURE_LINE="$0 $*"
805 save_CPPFLAGS="${CPPFLAGS}"
806 save_CFLAGS="${CFLAGS}"
807 save_LDFLAGS="${LDFLAGS}"
809 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
810 echo "configure:811: checking whether ${MAKE-make} sets \${MAKE}" >&5
811 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
812 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 cat > conftestmake <<\EOF
817 @echo 'ac_maketemp="${MAKE}"'
819 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
820 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
821 if test -n "$ac_maketemp"; then
822 eval ac_cv_prog_make_${ac_make}_set=yes
824 eval ac_cv_prog_make_${ac_make}_set=no
828 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
829 echo "$ac_t""yes" 1>&6
832 echo "$ac_t""no" 1>&6
833 SET_MAKE="MAKE=${MAKE-make}"
836 # Extract the first word of "gcc", so it can be a program name with args.
837 set dummy gcc; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$CC"; then
844 ac_cv_prog_CC="$CC" # Let the user override the test.
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
848 for ac_dir in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir=.
850 if test -f $ac_dir/$ac_word; then
859 if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
862 echo "$ac_t""no" 1>&6
865 if test -z "$CC"; then
866 # Extract the first word of "cc", so it can be a program name with args.
867 set dummy cc; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$CC"; then
874 ac_cv_prog_CC="$CC" # Let the user override the test.
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
879 for ac_dir in $ac_dummy; do
880 test -z "$ac_dir" && ac_dir=.
881 if test -f $ac_dir/$ac_word; then
882 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
891 if test $ac_prog_rejected = yes; then
892 # We found a bogon in the path, so make sure we never use it.
893 set dummy $ac_cv_prog_CC
895 if test $# -gt 0; then
896 # We chose a different compiler from the bogus one.
897 # However, it has the same basename, so the bogon will be chosen
898 # first if we set CC to just the basename; use the full file name.
900 set dummy "$ac_dir/$ac_word" "$@"
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
914 if test -z "$CC"; then
917 # Extract the first word of "cl", so it can be a program name with args.
918 set dummy cl; ac_word=$2
919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
920 echo "configure:921: checking for $ac_word" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 if test -n "$CC"; then
925 ac_cv_prog_CC="$CC" # Let the user override the test.
927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
929 for ac_dir in $ac_dummy; do
930 test -z "$ac_dir" && ac_dir=.
931 if test -f $ac_dir/$ac_word; then
940 if test -n "$CC"; then
941 echo "$ac_t""$CC" 1>&6
943 echo "$ac_t""no" 1>&6
948 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
952 echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling=$ac_cv_prog_cc_cross
961 cat > conftest.$ac_ext << EOF
963 #line 964 "configure"
964 #include "confdefs.h"
968 if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
969 ac_cv_prog_cc_works=yes
970 # If we can't run a trivial program, we are probably using a cross compiler.
971 if (./conftest; exit) 2>/dev/null; then
972 ac_cv_prog_cc_cross=no
974 ac_cv_prog_cc_cross=yes
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
979 ac_cv_prog_cc_works=no
983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984 ac_cpp='$CPP $CPPFLAGS'
985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987 cross_compiling=$ac_cv_prog_cc_cross
989 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
990 if test $ac_cv_prog_cc_works = no; then
991 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
994 echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
995 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
996 cross_compiling=$ac_cv_prog_cc_cross
998 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
999 echo "configure:1000: checking whether we are using GNU C" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 cat > conftest.c <<EOF
1008 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1015 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1017 if test $ac_cv_prog_gcc = yes; then
1023 ac_test_CFLAGS="${CFLAGS+set}"
1024 ac_save_CFLAGS="$CFLAGS"
1026 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether ${CC-cc} accepts -g" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 echo 'void f(){}' > conftest.c
1032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1041 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1042 if test "$ac_test_CFLAGS" = set; then
1043 CFLAGS="$ac_save_CFLAGS"
1044 elif test $ac_cv_prog_cc_g = yes; then
1045 if test "$GCC" = yes; then
1051 if test "$GCC" = yes; then
1058 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1059 echo "configure:1060: checking how to run the C preprocessor" >&5
1060 # On Suns, sometimes $CPP names a directory.
1061 if test -n "$CPP" && test -d "$CPP"; then
1064 if test -z "$CPP"; then
1065 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 # This must be in double quotes, not single quotes, because CPP may get
1069 # substituted into the Makefile and "${CC-cc}" will confuse make.
1071 # On the NeXT, cc -E runs the code through the compiler's parser,
1072 # not just through cpp.
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1080 { (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1082 if test -z "$ac_err"; then
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1089 CPP="${CC-cc} -E -traditional-cpp"
1090 cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1097 { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1099 if test -z "$ac_err"; then
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1106 CPP="${CC-cc} -nologo -E"
1107 cat > conftest.$ac_ext <<EOF
1108 #line 1109 "configure"
1109 #include "confdefs.h"
1113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1114 { (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1116 if test -z "$ac_err"; then
1120 echo "configure: failed program was:" >&5
1121 cat conftest.$ac_ext >&5
1130 ac_cv_prog_CPP="$CPP"
1132 CPP="$ac_cv_prog_CPP"
1134 ac_cv_prog_CPP="$CPP"
1136 echo "$ac_t""$CPP" 1>&6
1139 if test $host != $build; then
1140 ac_tool_prefix=${host_alias}-
1145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$RANLIB"; then
1153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1157 for ac_dir in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1167 RANLIB="$ac_cv_prog_RANLIB"
1168 if test -n "$RANLIB"; then
1169 echo "$ac_t""$RANLIB" 1>&6
1171 echo "$ac_t""no" 1>&6
1175 if test -z "$ac_cv_prog_RANLIB"; then
1176 if test -n "$ac_tool_prefix"; then
1177 # Extract the first word of "ranlib", so it can be a program name with args.
1178 set dummy ranlib; ac_word=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test -n "$RANLIB"; then
1185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1189 for ac_dir in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir=.
1191 if test -f $ac_dir/$ac_word; then
1192 ac_cv_prog_RANLIB="ranlib"
1197 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1200 RANLIB="$ac_cv_prog_RANLIB"
1201 if test -n "$RANLIB"; then
1202 echo "$ac_t""$RANLIB" 1>&6
1204 echo "$ac_t""no" 1>&6
1212 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1213 set dummy ${ac_tool_prefix}strip; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test -n "$STRIP"; then
1220 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1224 for ac_dir in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/$ac_word; then
1227 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1234 STRIP="$ac_cv_prog_STRIP"
1235 if test -n "$STRIP"; then
1236 echo "$ac_t""$STRIP" 1>&6
1238 echo "$ac_t""no" 1>&6
1242 if test -z "$ac_cv_prog_STRIP"; then
1243 if test -n "$ac_tool_prefix"; then
1244 # Extract the first word of "strip", so it can be a program name with args.
1245 set dummy strip; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 if test -n "$STRIP"; then
1252 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1256 for ac_dir in $ac_dummy; do
1257 test -z "$ac_dir" && ac_dir=.
1258 if test -f $ac_dir/$ac_word; then
1259 ac_cv_prog_STRIP="strip"
1264 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1267 STRIP="$ac_cv_prog_STRIP"
1268 if test -n "$STRIP"; then
1269 echo "$ac_t""$STRIP" 1>&6
1271 echo "$ac_t""no" 1>&6
1280 # Extract the first word of "gmake", so it can be a program name with args.
1281 set dummy gmake; ac_word=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1289 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1292 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1297 for ac_dir in $ac_dummy; do
1298 test -z "$ac_dir" && ac_dir=.
1299 if test -f $ac_dir/$ac_word; then
1300 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1305 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1309 GMAKE="$ac_cv_path_GMAKE"
1310 if test -n "$GMAKE"; then
1311 echo "$ac_t""$GMAKE" 1>&6
1313 echo "$ac_t""no" 1>&6
1316 if test "x${GMAKE}" = "xno"; then
1317 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1318 echo "configure:1319: checking whether GNU make is installed" >&5
1319 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if make --version | grep -q -i gnu; then
1325 echo "This software needs you to install GNU make to compile properly."
1326 echo "You can get it from http://www.gnu.org/."
1331 echo "$ac_t""$ac_cv_gmake" 1>&6
1337 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1339 cat >> confdefs.h <<EOF
1340 #define VLC_PACKAGE "${PACKAGE}"
1343 cat >> confdefs.h <<EOF
1344 #define VLC_VERSION "${VERSION}"
1347 # Extract the first word of "ranlib", so it can be a program name with args.
1348 set dummy ranlib; ac_word=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 if test -n "$RANLIB"; then
1355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1359 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_RANLIB="ranlib"
1367 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1370 RANLIB="$ac_cv_prog_RANLIB"
1371 if test -n "$RANLIB"; then
1372 echo "$ac_t""$RANLIB" 1>&6
1374 echo "$ac_t""no" 1>&6
1378 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1379 echo "configure:1380: checking for strerror in -lcposix" >&5
1380 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 ac_save_LIBS="$LIBS"
1385 LIBS="-lcposix $LIBS"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 /* Override any gcc2 internal prototype to avoid an error. */
1390 /* We use char because int might match the return type of a gcc2
1391 builtin and then its argument prototype would still apply. */
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1400 eval "ac_cv_lib_$ac_lib_var=yes"
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1405 eval "ac_cv_lib_$ac_lib_var=no"
1408 LIBS="$ac_save_LIBS"
1411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1413 LIBS="$LIBS -lcposix"
1415 echo "$ac_t""no" 1>&6
1420 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1421 echo "configure:1422: checking for ANSI C header files" >&5
1422 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1434 { (eval echo configure:1435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1436 if test -z "$ac_err"; then
1438 ac_cv_header_stdc=yes
1441 echo "configure: failed program was:" >&5
1442 cat conftest.$ac_ext >&5
1444 ac_cv_header_stdc=no
1448 if test $ac_cv_header_stdc = yes; then
1449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1456 egrep "memchr" >/dev/null 2>&1; then
1460 ac_cv_header_stdc=no
1466 if test $ac_cv_header_stdc = yes; then
1467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1468 cat > conftest.$ac_ext <<EOF
1469 #line 1470 "configure"
1470 #include "confdefs.h"
1473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1474 egrep "free" >/dev/null 2>&1; then
1478 ac_cv_header_stdc=no
1484 if test $ac_cv_header_stdc = yes; then
1485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1486 if test "$cross_compiling" = yes; then
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1493 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1494 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1496 int main () { int i; for (i = 0; i < 256; i++)
1497 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1501 if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1508 ac_cv_header_stdc=no
1516 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1517 if test $ac_cv_header_stdc = yes; then
1518 cat >> confdefs.h <<\EOF
1519 #define STDC_HEADERS 1
1524 echo $ac_n "checking for working const""... $ac_c" 1>&6
1525 echo "configure:1526: checking for working const" >&5
1526 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1535 /* Ultrix mips cc rejects this. */
1536 typedef int charset[2]; const charset x;
1537 /* SunOS 4.1.1 cc rejects this. */
1538 char const *const *ccp;
1540 /* NEC SVR4.0.2 mips cc rejects this. */
1541 struct point {int x, y;};
1542 static struct point const zero = {0,0};
1543 /* AIX XL C 1.02.0.0 rejects this.
1544 It does not let you subtract one const X* pointer from another in an arm
1545 of an if-expression whose if-part is not a constant expression */
1546 const char *g = "string";
1547 ccp = &g + (g ? g-g : 0);
1548 /* HPUX 7.0 cc rejects these. */
1551 ccp = (char const *const *) p;
1552 { /* SCO 3.2v4 cc rejects this. */
1554 char const *s = 0 ? (char *) 0 : (char const *) 0;
1558 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1560 const int *foo = &x[0];
1563 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1564 typedef const int *iptr;
1568 { /* AIX XL C 1.02.0.0 rejects this saying
1569 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1570 struct s { int j; const int *ap[3]; };
1571 struct s *b; b->j = 5;
1573 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1579 if { (eval echo configure:1580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1591 echo "$ac_t""$ac_cv_c_const" 1>&6
1592 if test $ac_cv_c_const = no; then
1593 cat >> confdefs.h <<\EOF
1599 echo $ac_n "checking for inline""... $ac_c" 1>&6
1600 echo "configure:1601: checking for inline" >&5
1601 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1605 for ac_kw in inline __inline__ __inline; do
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1614 if { (eval echo configure:1615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1616 ac_cv_c_inline=$ac_kw; break
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1626 echo "$ac_t""$ac_cv_c_inline" 1>&6
1627 case "$ac_cv_c_inline" in
1629 no) cat >> confdefs.h <<\EOF
1633 *) cat >> confdefs.h <<EOF
1634 #define inline $ac_cv_c_inline
1639 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1640 echo "configure:1641: checking for off_t" >&5
1641 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1647 #include <sys/types.h>
1653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1654 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1656 ac_cv_type_off_t=yes
1664 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1665 if test $ac_cv_type_off_t = no; then
1666 cat >> confdefs.h <<\EOF
1672 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1673 echo "configure:1674: checking for size_t" >&5
1674 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1680 #include <sys/types.h>
1686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1687 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1689 ac_cv_type_size_t=yes
1692 ac_cv_type_size_t=no
1697 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1698 if test $ac_cv_type_size_t = no; then
1699 cat >> confdefs.h <<\EOF
1700 #define size_t unsigned
1705 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1706 # for constant arguments. Useless!
1707 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1708 echo "configure:1709: checking for working alloca.h" >&5
1709 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1717 char *p = alloca(2 * sizeof(int));
1720 if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1722 ac_cv_header_alloca_h=yes
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1727 ac_cv_header_alloca_h=no
1732 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1733 if test $ac_cv_header_alloca_h = yes; then
1734 cat >> confdefs.h <<\EOF
1735 #define HAVE_ALLOCA_H 1
1740 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1741 echo "configure:1742: checking for alloca" >&5
1742 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1745 cat > conftest.$ac_ext <<EOF
1746 #line 1747 "configure"
1747 #include "confdefs.h"
1750 # define alloca __builtin_alloca
1753 # include <malloc.h>
1754 # define alloca _alloca
1757 # include <alloca.h>
1762 # ifndef alloca /* predefined by HP cc +Olibcalls */
1771 char *p = (char *) alloca(1);
1774 if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1776 ac_cv_func_alloca_works=yes
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1781 ac_cv_func_alloca_works=no
1786 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1787 if test $ac_cv_func_alloca_works = yes; then
1788 cat >> confdefs.h <<\EOF
1789 #define HAVE_ALLOCA 1
1794 if test $ac_cv_func_alloca_works = no; then
1795 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1796 # that cause trouble. Some versions do not even contain alloca or
1797 # contain a buggy version. If you still want to use their alloca,
1798 # use ar to extract alloca.o from them instead of compiling alloca.c.
1799 ALLOCA=alloca.${ac_objext}
1800 cat >> confdefs.h <<\EOF
1805 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1806 echo "configure:1807: checking whether alloca needs Cray hooks" >&5
1807 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1813 #if defined(CRAY) && ! defined(CRAY2)
1820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1821 egrep "webecray" >/dev/null 2>&1; then
1832 echo "$ac_t""$ac_cv_os_cray" 1>&6
1833 if test $ac_cv_os_cray = yes; then
1834 for ac_func in _getb67 GETB67 getb67; do
1835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_func" >&5
1837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $ac_func(); below. */
1846 /* Override any gcc2 internal prototype to avoid an error. */
1847 /* We use char because int might match the return type of a gcc2
1848 builtin and then its argument prototype would still apply. */
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1864 if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1866 eval "ac_cv_func_$ac_func=yes"
1868 echo "configure: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1871 eval "ac_cv_func_$ac_func=no"
1876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1877 echo "$ac_t""yes" 1>&6
1878 cat >> confdefs.h <<EOF
1879 #define CRAY_STACKSEG_END $ac_func
1884 echo "$ac_t""no" 1>&6
1890 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1891 echo "configure:1892: checking stack direction for C alloca" >&5
1892 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 if test "$cross_compiling" = yes; then
1896 ac_cv_c_stack_direction=0
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 find_stack_direction ()
1903 static char *addr = 0;
1908 return find_stack_direction ();
1911 return (&dummy > addr) ? 1 : -1;
1915 exit (find_stack_direction() < 0);
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1920 ac_cv_c_stack_direction=1
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 ac_cv_c_stack_direction=-1
1932 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1933 cat >> confdefs.h <<EOF
1934 #define STACK_DIRECTION $ac_cv_c_stack_direction
1939 for ac_hdr in unistd.h
1941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1943 echo "configure:1944: checking for $ac_hdr" >&5
1944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1953 { (eval echo configure:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1955 if test -z "$ac_err"; then
1957 eval "ac_cv_header_$ac_safe=yes"
1960 echo "configure: failed program was:" >&5
1961 cat conftest.$ac_ext >&5
1963 eval "ac_cv_header_$ac_safe=no"
1967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1968 echo "$ac_t""yes" 1>&6
1969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1970 cat >> confdefs.h <<EOF
1971 #define $ac_tr_hdr 1
1975 echo "$ac_t""no" 1>&6
1979 for ac_func in getpagesize
1981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1982 echo "configure:1983: checking for $ac_func" >&5
1983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 /* System header to define __stub macros and hopefully few prototypes,
1990 which can conflict with char $ac_func(); below. */
1992 /* Override any gcc2 internal prototype to avoid an error. */
1993 /* We use char because int might match the return type of a gcc2
1994 builtin and then its argument prototype would still apply. */
1999 /* The GNU C library defines this for functions which it implements
2000 to always fail with ENOSYS. Some functions are actually named
2001 something starting with __ and the normal name is an alias. */
2002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2010 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2012 eval "ac_cv_func_$ac_func=yes"
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 eval "ac_cv_func_$ac_func=no"
2022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2023 echo "$ac_t""yes" 1>&6
2024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2025 cat >> confdefs.h <<EOF
2026 #define $ac_tr_func 1
2030 echo "$ac_t""no" 1>&6
2034 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2035 echo "configure:2036: checking for working mmap" >&5
2036 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 if test "$cross_compiling" = yes; then
2040 ac_cv_func_mmap_fixed_mapped=no
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2046 /* Thanks to Mike Haertel and Jim Avera for this test.
2047 Here is a matrix of mmap possibilities:
2048 mmap private not fixed
2049 mmap private fixed at somewhere currently unmapped
2050 mmap private fixed at somewhere already mapped
2051 mmap shared not fixed
2052 mmap shared fixed at somewhere currently unmapped
2053 mmap shared fixed at somewhere already mapped
2054 For private mappings, we should verify that changes cannot be read()
2055 back from the file, nor mmap's back from the file at a different
2056 address. (There have been systems where private was not correctly
2057 implemented like the infamous i386 svr4.0, and systems where the
2058 VM page cache was not coherent with the filesystem buffer cache
2059 like early versions of FreeBSD and possibly contemporary NetBSD.)
2060 For shared mappings, we should conversely verify that changes get
2061 propogated back to all the places they're supposed to be.
2063 Grep wants private fixed already mapped.
2064 The main things grep needs to know about mmap are:
2065 * does it exist and is it safe to write into the mmap'd area
2066 * how to use it (BSD variants) */
2067 #include <sys/types.h>
2069 #include <sys/mman.h>
2071 /* This mess was copied from the GNU getpagesize.h. */
2072 #ifndef HAVE_GETPAGESIZE
2073 # ifdef HAVE_UNISTD_H
2074 # include <unistd.h>
2077 /* Assume that all systems that can run configure have sys/param.h. */
2078 # ifndef HAVE_SYS_PARAM_H
2079 # define HAVE_SYS_PARAM_H 1
2082 # ifdef _SC_PAGESIZE
2083 # define getpagesize() sysconf(_SC_PAGESIZE)
2084 # else /* no _SC_PAGESIZE */
2085 # ifdef HAVE_SYS_PARAM_H
2086 # include <sys/param.h>
2087 # ifdef EXEC_PAGESIZE
2088 # define getpagesize() EXEC_PAGESIZE
2089 # else /* no EXEC_PAGESIZE */
2091 # define getpagesize() NBPG * CLSIZE
2094 # endif /* no CLSIZE */
2095 # else /* no NBPG */
2097 # define getpagesize() NBPC
2098 # else /* no NBPC */
2100 # define getpagesize() PAGESIZE
2101 # endif /* PAGESIZE */
2102 # endif /* no NBPC */
2103 # endif /* no NBPG */
2104 # endif /* no EXEC_PAGESIZE */
2105 # else /* no HAVE_SYS_PARAM_H */
2106 # define getpagesize() 8192 /* punt totally */
2107 # endif /* no HAVE_SYS_PARAM_H */
2108 # endif /* no _SC_PAGESIZE */
2110 #endif /* no HAVE_GETPAGESIZE */
2113 extern "C" { void *malloc(unsigned); }
2121 char *data, *data2, *data3;
2125 pagesize = getpagesize();
2128 * First, make a file with some known garbage in it.
2130 data = malloc(pagesize);
2133 for (i = 0; i < pagesize; ++i)
2134 *(data + i) = rand();
2136 fd = creat("conftestmmap", 0600);
2139 if (write(fd, data, pagesize) != pagesize)
2144 * Next, try to mmap the file at a fixed address which
2145 * already has something else allocated at it. If we can,
2146 * also make sure that we see the same garbage.
2148 fd = open("conftestmmap", O_RDWR);
2151 data2 = malloc(2 * pagesize);
2154 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2155 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2158 for (i = 0; i < pagesize; ++i)
2159 if (*(data + i) != *(data2 + i))
2163 * Finally, make sure that changes to the mapped area
2164 * do not percolate back to the file as seen by read().
2165 * (This is a bug on some variants of i386 svr4.0.)
2167 for (i = 0; i < pagesize; ++i)
2168 *(data2 + i) = *(data2 + i) + 1;
2169 data3 = malloc(pagesize);
2172 if (read(fd, data3, pagesize) != pagesize)
2174 for (i = 0; i < pagesize; ++i)
2175 if (*(data + i) != *(data3 + i))
2178 unlink("conftestmmap");
2183 if { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2185 ac_cv_func_mmap_fixed_mapped=yes
2187 echo "configure: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2190 ac_cv_func_mmap_fixed_mapped=no
2197 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2198 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2199 cat >> confdefs.h <<\EOF
2206 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2207 echo "configure:2208: checking whether we are using the GNU C Library 2.1 or newer" >&5
2208 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 cat > conftest.$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2215 #include <features.h>
2216 #ifdef __GNU_LIBRARY__
2217 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2224 egrep "Lucky GNU user" >/dev/null 2>&1; then
2226 ac_cv_gnu_library_2_1=yes
2229 ac_cv_gnu_library_2_1=no
2237 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2239 GLIBC21="$ac_cv_gnu_library_2_1"
2243 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2244 stdlib.h string.h unistd.h sys/param.h
2246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2248 echo "configure:2249: checking for $ac_hdr" >&5
2249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2258 { (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2260 if test -z "$ac_err"; then
2262 eval "ac_cv_header_$ac_safe=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2268 eval "ac_cv_header_$ac_safe=no"
2272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2273 echo "$ac_t""yes" 1>&6
2274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2275 cat >> confdefs.h <<EOF
2276 #define $ac_tr_hdr 1
2280 echo "$ac_t""no" 1>&6
2284 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2285 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2286 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_func" >&5
2290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 /* System header to define __stub macros and hopefully few prototypes,
2297 which can conflict with char $ac_func(); below. */
2299 /* Override any gcc2 internal prototype to avoid an error. */
2300 /* We use char because int might match the return type of a gcc2
2301 builtin and then its argument prototype would still apply. */
2306 /* The GNU C library defines this for functions which it implements
2307 to always fail with ENOSYS. Some functions are actually named
2308 something starting with __ and the normal name is an alias. */
2309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2319 eval "ac_cv_func_$ac_func=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 eval "ac_cv_func_$ac_func=no"
2329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2330 echo "$ac_t""yes" 1>&6
2331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2332 cat >> confdefs.h <<EOF
2333 #define $ac_tr_func 1
2337 echo "$ac_t""no" 1>&6
2344 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2345 if test "${with_libiconv_prefix+set}" = set; then
2346 withval="$with_libiconv_prefix"
2348 for dir in `echo "$withval" | tr : ' '`; do
2349 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2350 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2356 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2357 echo "configure:2358: checking for iconv" >&5
2358 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2362 am_cv_func_iconv="no, consider installing GNU libiconv"
2364 cat > conftest.$ac_ext <<EOF
2365 #line 2366 "configure"
2366 #include "confdefs.h"
2370 iconv_t cd = iconv_open("","");
2371 iconv(cd,NULL,NULL,NULL,NULL);
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2377 am_cv_func_iconv=yes
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2383 if test "$am_cv_func_iconv" != yes; then
2384 am_save_LIBS="$LIBS"
2385 LIBS="$LIBS -liconv"
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2392 iconv_t cd = iconv_open("","");
2393 iconv(cd,NULL,NULL,NULL,NULL);
2397 if { (eval echo configure:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2400 am_cv_func_iconv=yes
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2406 LIBS="$am_save_LIBS"
2411 echo "$ac_t""$am_cv_func_iconv" 1>&6
2412 if test "$am_cv_func_iconv" = yes; then
2413 cat >> confdefs.h <<\EOF
2414 #define HAVE_ICONV 1
2417 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2418 echo "configure:2419: checking for iconv declaration" >&5
2419 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2433 #if defined(__STDC__) || defined(__cplusplus)
2434 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2443 if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2445 am_cv_proto_iconv_arg1=""
2447 echo "configure: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2450 am_cv_proto_iconv_arg1="const"
2453 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);"
2456 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2457 echo "$ac_t""${ac_t:-
2458 }$am_cv_proto_iconv" 1>&6
2459 cat >> confdefs.h <<EOF
2460 #define ICONV_CONST $am_cv_proto_iconv_arg1
2465 if test "$am_cv_lib_iconv" = yes; then
2471 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2472 echo "configure:2473: checking for nl_langinfo and CODESET" >&5
2473 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2479 #include <langinfo.h>
2481 char* cs = nl_langinfo(CODESET);
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2486 am_cv_langinfo_codeset=yes
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 am_cv_langinfo_codeset=no
2497 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2498 if test $am_cv_langinfo_codeset = yes; then
2499 cat >> confdefs.h <<\EOF
2500 #define HAVE_LANGINFO_CODESET 1
2505 if test $ac_cv_header_locale_h = yes; then
2506 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2507 echo "configure:2508: checking for LC_MESSAGES" >&5
2508 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2519 if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2521 am_cv_val_LC_MESSAGES=yes
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2526 am_cv_val_LC_MESSAGES=no
2531 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2532 if test $am_cv_val_LC_MESSAGES = yes; then
2533 cat >> confdefs.h <<\EOF
2534 #define HAVE_LC_MESSAGES 1
2539 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2540 echo "configure:2541: checking whether NLS is requested" >&5
2541 # Check whether --enable-nls or --disable-nls was given.
2542 if test "${enable_nls+set}" = set; then
2543 enableval="$enable_nls"
2549 echo "$ac_t""$USE_NLS" 1>&6
2552 BUILD_INCLUDED_LIBINTL=no
2553 USE_INCLUDED_LIBINTL=no
2556 if test "$USE_NLS" = "yes"; then
2557 cat >> confdefs.h <<\EOF
2558 #define ENABLE_NLS 1
2561 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2562 echo "configure:2563: checking whether included gettext is requested" >&5
2563 # Check whether --with-included-gettext or --without-included-gettext was given.
2564 if test "${with_included_gettext+set}" = set; then
2565 withval="$with_included_gettext"
2566 nls_cv_force_use_gnu_gettext=$withval
2568 nls_cv_force_use_gnu_gettext=no
2571 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2573 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2574 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2580 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2581 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2582 echo "configure:2583: checking for libintl.h" >&5
2583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 #include <libintl.h>
2591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2592 { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2594 if test -z "$ac_err"; then
2596 eval "ac_cv_header_$ac_safe=yes"
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2602 eval "ac_cv_header_$ac_safe=no"
2606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2609 echo "configure:2610: checking for GNU gettext in libc" >&5
2610 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2616 #include <libintl.h>
2617 extern int _nl_msg_cat_cntr;
2619 bindtextdomain ("", "");
2620 return (int) gettext ("") + _nl_msg_cat_cntr
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2625 gt_cv_func_gnugettext1_libc=yes
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2630 gt_cv_func_gnugettext1_libc=no
2635 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2637 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2638 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2639 echo "configure:2640: checking for GNU gettext in libintl" >&5
2640 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 gt_save_LIBS="$LIBS"
2644 LIBS="$LIBS -lintl $LIBICONV"
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 #include <libintl.h>
2649 extern int _nl_msg_cat_cntr;
2651 bindtextdomain ("", "");
2652 return (int) gettext ("") + _nl_msg_cat_cntr
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2657 gt_cv_func_gnugettext1_libintl=yes
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2662 gt_cv_func_gnugettext1_libintl=no
2665 LIBS="$gt_save_LIBS"
2668 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2671 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2672 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2673 && test "$PACKAGE" != gettext; }; then
2674 cat >> confdefs.h <<\EOF
2675 #define HAVE_GETTEXT 1
2679 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2680 INTLLIBS="-lintl $LIBICONV"
2683 gt_save_LIBS="$LIBS"
2684 LIBS="$LIBS $INTLLIBS"
2685 for ac_func in dcgettext
2687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2688 echo "configure:2689: checking for $ac_func" >&5
2689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 cat > conftest.$ac_ext <<EOF
2693 #line 2694 "configure"
2694 #include "confdefs.h"
2695 /* System header to define __stub macros and hopefully few prototypes,
2696 which can conflict with char $ac_func(); below. */
2698 /* Override any gcc2 internal prototype to avoid an error. */
2699 /* We use char because int might match the return type of a gcc2
2700 builtin and then its argument prototype would still apply. */
2705 /* The GNU C library defines this for functions which it implements
2706 to always fail with ENOSYS. Some functions are actually named
2707 something starting with __ and the normal name is an alias. */
2708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2718 eval "ac_cv_func_$ac_func=yes"
2720 echo "configure: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2723 eval "ac_cv_func_$ac_func=no"
2728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2729 echo "$ac_t""yes" 1>&6
2730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2731 cat >> confdefs.h <<EOF
2732 #define $ac_tr_func 1
2736 echo "$ac_t""no" 1>&6
2740 LIBS="$gt_save_LIBS"
2742 # Extract the first word of "msgfmt", so it can be a program name with args.
2743 set dummy msgfmt; ac_word=$2
2744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2745 echo "configure:2746: checking for $ac_word" >&5
2746 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2751 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2755 for ac_dir in $PATH; do
2756 test -z "$ac_dir" && ac_dir=.
2757 if test -f $ac_dir/$ac_word; then
2758 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2759 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2765 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2769 MSGFMT="$ac_cv_path_MSGFMT"
2770 if test "$MSGFMT" != ":"; then
2771 echo "$ac_t""$MSGFMT" 1>&6
2773 echo "$ac_t""no" 1>&6
2776 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2777 set dummy gmsgfmt; ac_word=$2
2778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_word" >&5
2780 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2785 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2788 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2793 for ac_dir in $ac_dummy; do
2794 test -z "$ac_dir" && ac_dir=.
2795 if test -f $ac_dir/$ac_word; then
2796 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2801 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2805 GMSGFMT="$ac_cv_path_GMSGFMT"
2806 if test -n "$GMSGFMT"; then
2807 echo "$ac_t""$GMSGFMT" 1>&6
2809 echo "$ac_t""no" 1>&6
2813 # Extract the first word of "xgettext", so it can be a program name with args.
2814 set dummy xgettext; ac_word=$2
2815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_word" >&5
2817 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2822 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2826 for ac_dir in $PATH; do
2827 test -z "$ac_dir" && ac_dir=.
2828 if test -f $ac_dir/$ac_word; then
2829 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2830 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2836 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2840 XGETTEXT="$ac_cv_path_XGETTEXT"
2841 if test "$XGETTEXT" != ":"; then
2842 echo "$ac_t""$XGETTEXT" 1>&6
2844 echo "$ac_t""no" 1>&6
2852 echo "$ac_t""no" 1>&6
2856 if test "$CATOBJEXT" = "NONE"; then
2857 nls_cv_use_gnu_gettext=yes
2861 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2862 INTLOBJS="\$(GETTOBJS)"
2863 # Extract the first word of "msgfmt", so it can be a program name with args.
2864 set dummy msgfmt; ac_word=$2
2865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2866 echo "configure:2867: checking for $ac_word" >&5
2867 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2872 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2876 for ac_dir in $PATH; do
2877 test -z "$ac_dir" && ac_dir=.
2878 if test -f $ac_dir/$ac_word; then
2879 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2880 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2886 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2890 MSGFMT="$ac_cv_path_MSGFMT"
2891 if test "$MSGFMT" != ":"; then
2892 echo "$ac_t""$MSGFMT" 1>&6
2894 echo "$ac_t""no" 1>&6
2897 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2898 set dummy gmsgfmt; ac_word=$2
2899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2900 echo "configure:2901: checking for $ac_word" >&5
2901 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2906 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2909 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2914 for ac_dir in $ac_dummy; do
2915 test -z "$ac_dir" && ac_dir=.
2916 if test -f $ac_dir/$ac_word; then
2917 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2922 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2926 GMSGFMT="$ac_cv_path_GMSGFMT"
2927 if test -n "$GMSGFMT"; then
2928 echo "$ac_t""$GMSGFMT" 1>&6
2930 echo "$ac_t""no" 1>&6
2933 # Extract the first word of "xgettext", so it can be a program name with args.
2934 set dummy xgettext; ac_word=$2
2935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2936 echo "configure:2937: checking for $ac_word" >&5
2937 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2942 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2946 for ac_dir in $PATH; do
2947 test -z "$ac_dir" && ac_dir=.
2948 if test -f $ac_dir/$ac_word; then
2949 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2950 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2956 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2960 XGETTEXT="$ac_cv_path_XGETTEXT"
2961 if test "$XGETTEXT" != ":"; then
2962 echo "$ac_t""$XGETTEXT" 1>&6
2964 echo "$ac_t""no" 1>&6
2968 BUILD_INCLUDED_LIBINTL=yes
2969 USE_INCLUDED_LIBINTL=yes
2971 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2972 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2975 if test "$GMSGFMT" != ":"; then
2976 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2979 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2984 if test "$XGETTEXT" != ":"; then
2985 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2988 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2998 if test "$PACKAGE" = gettext; then
2999 BUILD_INCLUDED_LIBINTL=yes
3002 for ac_prog in bison
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005 set dummy $ac_prog; ac_word=$2
3006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3007 echo "configure:3008: checking for $ac_word" >&5
3008 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 if test -n "$INTLBISON"; then
3012 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3016 for ac_dir in $ac_dummy; do
3017 test -z "$ac_dir" && ac_dir=.
3018 if test -f $ac_dir/$ac_word; then
3019 ac_cv_prog_INTLBISON="$ac_prog"
3026 INTLBISON="$ac_cv_prog_INTLBISON"
3027 if test -n "$INTLBISON"; then
3028 echo "$ac_t""$INTLBISON" 1>&6
3030 echo "$ac_t""no" 1>&6
3033 test -n "$INTLBISON" && break
3036 if test -z "$INTLBISON"; then
3039 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3040 echo "configure:3041: checking version of bison" >&5
3041 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3042 case $ac_prog_version in
3043 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3044 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3045 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3046 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3048 echo "$ac_t""$ac_prog_version" 1>&6
3050 if test $ac_verc_fail = yes; then
3054 for lang in $ALL_LINGUAS; do
3055 GMOFILES="$GMOFILES $lang.gmo"
3056 POFILES="$POFILES $lang.po"
3070 nls_cv_header_libgt=
3082 if test "x$CATOBJEXT" != "x"; then
3083 if test "x$ALL_LINGUAS" = "x"; then
3086 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3087 echo "configure:3088: checking for catalogs to be installed" >&5
3089 for presentlang in $ALL_LINGUAS; do
3091 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3092 # Use the presentlang catalog if desiredlang is
3093 # a. equal to presentlang, or
3094 # b. a variant of presentlang (because in this case,
3095 # presentlang can be used as a fallback for messages
3096 # which are not translated in the desiredlang catalog).
3097 case "$desiredlang" in
3098 "$presentlang"*) useit=yes;;
3101 if test $useit = yes; then
3102 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3105 LINGUAS=$NEW_LINGUAS
3106 echo "$ac_t""$LINGUAS" 1>&6
3109 if test -n "$LINGUAS"; then
3110 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3115 if test -n "$ac_aux_dir"; then
3116 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3118 if test -z "$MKINSTALLDIRS"; then
3119 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3123 INTL_LIBTOOL_SUFFIX_PREFIX=
3127 # Find a good install program. We prefer a C program (faster),
3128 # so one script is as good as another. But avoid the broken or
3129 # incompatible versions:
3130 # SysV /etc/install, /usr/sbin/install
3131 # SunOS /usr/etc/install
3132 # IRIX /sbin/install
3134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3137 # ./install, which can be erroneously created by make from ./install.sh.
3138 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3139 echo "configure:3140: checking for a BSD compatible install" >&5
3140 if test -z "$INSTALL"; then
3141 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3145 for ac_dir in $PATH; do
3146 # Account for people who put trailing slashes in PATH elements.
3148 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3150 # OSF1 and SCO ODT 3.0 have their own names for install.
3151 # Don't use installbsd from OSF since it installs stuff as root
3153 for ac_prog in ginstall scoinst install; do
3154 if test -f $ac_dir/$ac_prog; then
3155 if test $ac_prog = install &&
3156 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3157 # AIX install. It has an incompatible calling convention.
3160 ac_cv_path_install="$ac_dir/$ac_prog -c"
3171 if test "${ac_cv_path_install+set}" = set; then
3172 INSTALL="$ac_cv_path_install"
3174 # As a last resort, use the slow shell script. We don't cache a
3175 # path for INSTALL within a source directory, because that will
3176 # break other packages using the cache if that directory is
3177 # removed, or if the path is relative.
3178 INSTALL="$ac_install_sh"
3181 echo "$ac_t""$INSTALL" 1>&6
3183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3184 # It thinks the first close brace ends the variable substitution.
3185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3192 echo $ac_n "checking for working const""... $ac_c" 1>&6
3193 echo "configure:3194: checking for working const" >&5
3194 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3203 /* Ultrix mips cc rejects this. */
3204 typedef int charset[2]; const charset x;
3205 /* SunOS 4.1.1 cc rejects this. */
3206 char const *const *ccp;
3208 /* NEC SVR4.0.2 mips cc rejects this. */
3209 struct point {int x, y;};
3210 static struct point const zero = {0,0};
3211 /* AIX XL C 1.02.0.0 rejects this.
3212 It does not let you subtract one const X* pointer from another in an arm
3213 of an if-expression whose if-part is not a constant expression */
3214 const char *g = "string";
3215 ccp = &g + (g ? g-g : 0);
3216 /* HPUX 7.0 cc rejects these. */
3219 ccp = (char const *const *) p;
3220 { /* SCO 3.2v4 cc rejects this. */
3222 char const *s = 0 ? (char *) 0 : (char const *) 0;
3226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3228 const int *foo = &x[0];
3231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3232 typedef const int *iptr;
3236 { /* AIX XL C 1.02.0.0 rejects this saying
3237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3238 struct s { int j; const int *ap[3]; };
3239 struct s *b; b->j = 5;
3241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3247 if { (eval echo configure:3248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3251 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5
3259 echo "$ac_t""$ac_cv_c_const" 1>&6
3260 if test $ac_cv_c_const = no; then
3261 cat >> confdefs.h <<\EOF
3267 echo $ac_n "checking for inline""... $ac_c" 1>&6
3268 echo "configure:3269: checking for inline" >&5
3269 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3273 for ac_kw in inline __inline__ __inline; do
3274 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3282 if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3284 ac_cv_c_inline=$ac_kw; break
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3294 echo "$ac_t""$ac_cv_c_inline" 1>&6
3295 case "$ac_cv_c_inline" in
3297 no) cat >> confdefs.h <<\EOF
3301 *) cat >> confdefs.h <<EOF
3302 #define inline $ac_cv_c_inline
3308 vlc_LDFLAGS="${LDFLAGS}"
3310 case "x${target_os}" in
3319 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3320 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3321 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3325 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3329 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3330 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3334 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}windres; ac_word=$2
3336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_word" >&5
3338 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 if test -n "$WINDRES"; then
3342 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3346 for ac_dir in $ac_dummy; do
3347 test -z "$ac_dir" && ac_dir=.
3348 if test -f $ac_dir/$ac_word; then
3349 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3356 WINDRES="$ac_cv_prog_WINDRES"
3357 if test -n "$WINDRES"; then
3358 echo "$ac_t""$WINDRES" 1>&6
3360 echo "$ac_t""no" 1>&6
3364 if test -z "$ac_cv_prog_WINDRES"; then
3365 if test -n "$ac_tool_prefix"; then
3366 # Extract the first word of "windres", so it can be a program name with args.
3367 set dummy windres; ac_word=$2
3368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3369 echo "configure:3370: checking for $ac_word" >&5
3370 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 if test -n "$WINDRES"; then
3374 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3378 for ac_dir in $ac_dummy; do
3379 test -z "$ac_dir" && ac_dir=.
3380 if test -f $ac_dir/$ac_word; then
3381 ac_cv_prog_WINDRES="windres"
3386 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3389 WINDRES="$ac_cv_prog_WINDRES"
3390 if test -n "$WINDRES"; then
3391 echo "$ac_t""$WINDRES" 1>&6
3393 echo "$ac_t""no" 1>&6
3401 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3402 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3403 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3404 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3405 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3406 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3407 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3411 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3412 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3419 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3420 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3421 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3422 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3423 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3430 if test "x${SYS}" = "xmingw32"
3432 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3434 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3435 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3438 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3440 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3443 echo "configure:3444: checking for $ac_func" >&5
3444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 cat > conftest.$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3450 /* System header to define __stub macros and hopefully few prototypes,
3451 which can conflict with char $ac_func(); below. */
3453 /* Override any gcc2 internal prototype to avoid an error. */
3454 /* We use char because int might match the return type of a gcc2
3455 builtin and then its argument prototype would still apply. */
3460 /* The GNU C library defines this for functions which it implements
3461 to always fail with ENOSYS. Some functions are actually named
3462 something starting with __ and the normal name is an alias. */
3463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3471 if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3473 eval "ac_cv_func_$ac_func=yes"
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3478 eval "ac_cv_func_$ac_func=no"
3483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3484 echo "$ac_t""yes" 1>&6
3485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3486 cat >> confdefs.h <<EOF
3487 #define $ac_tr_func 1
3491 echo "$ac_t""no" 1>&6
3496 echo $ac_n "checking for connect""... $ac_c" 1>&6
3497 echo "configure:3498: checking for connect" >&5
3498 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 /* System header to define __stub macros and hopefully few prototypes,
3505 which can conflict with char connect(); below. */
3507 /* Override any gcc2 internal prototype to avoid an error. */
3508 /* We use char because int might match the return type of a gcc2
3509 builtin and then its argument prototype would still apply. */
3514 /* The GNU C library defines this for functions which it implements
3515 to always fail with ENOSYS. Some functions are actually named
3516 something starting with __ and the normal name is an alias. */
3517 #if defined (__stub_connect) || defined (__stub___connect)
3525 if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3527 eval "ac_cv_func_connect=yes"
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3532 eval "ac_cv_func_connect=no"
3537 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3538 echo "$ac_t""yes" 1>&6
3541 echo "$ac_t""no" 1>&6
3543 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3544 echo "configure:3545: checking for connect in -lsocket" >&5
3545 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3549 ac_save_LIBS="$LIBS"
3550 LIBS="-lsocket $LIBS"
3551 cat > conftest.$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3554 /* Override any gcc2 internal prototype to avoid an error. */
3555 /* We use char because int might match the return type of a gcc2
3556 builtin and then its argument prototype would still apply. */
3563 if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3565 eval "ac_cv_lib_$ac_lib_var=yes"
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3570 eval "ac_cv_lib_$ac_lib_var=no"
3573 LIBS="$ac_save_LIBS"
3576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3577 echo "$ac_t""yes" 1>&6
3578 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3579 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3582 echo "$ac_t""no" 1>&6
3587 echo $ac_n "checking for send""... $ac_c" 1>&6
3588 echo "configure:3589: checking for send" >&5
3589 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 /* System header to define __stub macros and hopefully few prototypes,
3596 which can conflict with char send(); below. */
3598 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3605 /* The GNU C library defines this for functions which it implements
3606 to always fail with ENOSYS. Some functions are actually named
3607 something starting with __ and the normal name is an alias. */
3608 #if defined (__stub_send) || defined (__stub___send)
3616 if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3618 eval "ac_cv_func_send=yes"
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 eval "ac_cv_func_send=no"
3628 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3629 echo "$ac_t""yes" 1>&6
3632 echo "$ac_t""no" 1>&6
3634 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3635 echo "configure:3636: checking for send in -lsocket" >&5
3636 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3637 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 ac_save_LIBS="$LIBS"
3641 LIBS="-lsocket $LIBS"
3642 cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3645 /* Override any gcc2 internal prototype to avoid an error. */
3646 /* We use char because int might match the return type of a gcc2
3647 builtin and then its argument prototype would still apply. */
3654 if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3656 eval "ac_cv_lib_$ac_lib_var=yes"
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3661 eval "ac_cv_lib_$ac_lib_var=no"
3664 LIBS="$ac_save_LIBS"
3667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3668 echo "$ac_t""yes" 1>&6
3669 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3672 echo "$ac_t""no" 1>&6
3677 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3678 echo "configure:3679: checking for gethostbyname" >&5
3679 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3682 cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 /* System header to define __stub macros and hopefully few prototypes,
3686 which can conflict with char gethostbyname(); below. */
3688 /* Override any gcc2 internal prototype to avoid an error. */
3689 /* We use char because int might match the return type of a gcc2
3690 builtin and then its argument prototype would still apply. */
3691 char gethostbyname();
3695 /* The GNU C library defines this for functions which it implements
3696 to always fail with ENOSYS. Some functions are actually named
3697 something starting with __ and the normal name is an alias. */
3698 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3706 if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3708 eval "ac_cv_func_gethostbyname=yes"
3710 echo "configure: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3713 eval "ac_cv_func_gethostbyname=no"
3718 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3719 echo "$ac_t""yes" 1>&6
3722 echo "$ac_t""no" 1>&6
3724 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3725 echo "configure:3726: checking for gethostbyname in -lnsl" >&5
3726 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 ac_save_LIBS="$LIBS"
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 /* Override any gcc2 internal prototype to avoid an error. */
3736 /* We use char because int might match the return type of a gcc2
3737 builtin and then its argument prototype would still apply. */
3738 char gethostbyname();
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3746 eval "ac_cv_lib_$ac_lib_var=yes"
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3751 eval "ac_cv_lib_$ac_lib_var=no"
3754 LIBS="$ac_save_LIBS"
3757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3759 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3761 echo "$ac_t""no" 1>&6
3767 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3768 echo "configure:3769: checking for gethostbyname" >&5
3769 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3772 cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775 /* System header to define __stub macros and hopefully few prototypes,
3776 which can conflict with char gethostbyname(); below. */
3778 /* Override any gcc2 internal prototype to avoid an error. */
3779 /* We use char because int might match the return type of a gcc2
3780 builtin and then its argument prototype would still apply. */
3781 char gethostbyname();
3785 /* The GNU C library defines this for functions which it implements
3786 to always fail with ENOSYS. Some functions are actually named
3787 something starting with __ and the normal name is an alias. */
3788 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3796 if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3798 eval "ac_cv_func_gethostbyname=yes"
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3803 eval "ac_cv_func_gethostbyname=no"
3808 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3812 echo "$ac_t""no" 1>&6
3814 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3815 echo "configure:3816: checking for gethostbyname in -lbind" >&5
3816 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 ac_save_LIBS="$LIBS"
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 /* Override any gcc2 internal prototype to avoid an error. */
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3828 char gethostbyname();
3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3836 eval "ac_cv_lib_$ac_lib_var=yes"
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3841 eval "ac_cv_lib_$ac_lib_var=no"
3844 LIBS="$ac_save_LIBS"
3847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3848 echo "$ac_t""yes" 1>&6
3849 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3851 echo "$ac_t""no" 1>&6
3858 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3859 echo "configure:3860: checking for nanosleep" >&5
3860 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3863 cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3866 /* System header to define __stub macros and hopefully few prototypes,
3867 which can conflict with char nanosleep(); below. */
3869 /* Override any gcc2 internal prototype to avoid an error. */
3870 /* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */
3876 /* The GNU C library defines this for functions which it implements
3877 to always fail with ENOSYS. Some functions are actually named
3878 something starting with __ and the normal name is an alias. */
3879 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3887 if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3889 eval "ac_cv_func_nanosleep=yes"
3891 echo "configure: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3894 eval "ac_cv_func_nanosleep=no"
3899 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3900 echo "$ac_t""yes" 1>&6
3903 echo "$ac_t""no" 1>&6
3905 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3906 echo "configure:3907: checking for nanosleep in -lrt" >&5
3907 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3911 ac_save_LIBS="$LIBS"
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3916 /* Override any gcc2 internal prototype to avoid an error. */
3917 /* We use char because int might match the return type of a gcc2
3918 builtin and then its argument prototype would still apply. */
3925 if { (eval echo configure:3926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3927 eval "ac_cv_lib_$ac_lib_var=yes"
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 eval "ac_cv_lib_$ac_lib_var=no"
3935 LIBS="$ac_save_LIBS"
3938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3939 echo "$ac_t""yes" 1>&6
3940 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3942 echo "$ac_t""no" 1>&6
3943 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3944 echo "configure:3945: checking for nanosleep in -lposix4" >&5
3945 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3947 echo $ac_n "(cached) $ac_c" 1>&6
3949 ac_save_LIBS="$LIBS"
3950 LIBS="-lposix4 $LIBS"
3951 cat > conftest.$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3954 /* Override any gcc2 internal prototype to avoid an error. */
3955 /* We use char because int might match the return type of a gcc2
3956 builtin and then its argument prototype would still apply. */
3963 if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3965 eval "ac_cv_lib_$ac_lib_var=yes"
3967 echo "configure: failed program was:" >&5
3968 cat conftest.$ac_ext >&5
3970 eval "ac_cv_lib_$ac_lib_var=no"
3973 LIBS="$ac_save_LIBS"
3976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3977 echo "$ac_t""yes" 1>&6
3978 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3980 echo "$ac_t""no" 1>&6
3989 if test x$have_nanosleep = x1; then
3990 cat >> confdefs.h <<\EOF
3991 #define HAVE_NANOSLEEP 1
3996 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
3997 echo "configure:3998: checking for sem_init in -lrt" >&5
3998 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
3999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4002 ac_save_LIBS="$LIBS"
4004 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4007 /* Override any gcc2 internal prototype to avoid an error. */
4008 /* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4016 if { (eval echo configure:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4018 eval "ac_cv_lib_$ac_lib_var=yes"
4020 echo "configure: failed program was:" >&5
4021 cat conftest.$ac_ext >&5
4023 eval "ac_cv_lib_$ac_lib_var=no"
4026 LIBS="$ac_save_LIBS"
4029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4030 echo "$ac_t""yes" 1>&6
4031 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
4033 echo "$ac_t""no" 1>&6
4037 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
4038 echo "configure:4039: checking for inet_aton" >&5
4039 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 /* System header to define __stub macros and hopefully few prototypes,
4046 which can conflict with char inet_aton(); below. */
4048 /* Override any gcc2 internal prototype to avoid an error. */
4049 /* We use char because int might match the return type of a gcc2
4050 builtin and then its argument prototype would still apply. */
4055 /* The GNU C library defines this for functions which it implements
4056 to always fail with ENOSYS. Some functions are actually named
4057 something starting with __ and the normal name is an alias. */
4058 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
4066 if { (eval echo configure:4067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4068 eval "ac_cv_func_inet_aton=yes"
4070 echo "configure: failed program was:" >&5
4071 cat conftest.$ac_ext >&5
4073 eval "ac_cv_func_inet_aton=no"
4078 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
4079 echo "$ac_t""yes" 1>&6
4082 echo "$ac_t""no" 1>&6
4084 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
4085 echo "configure:4086: checking for inet_aton in -lresolv" >&5
4086 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
4087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 ac_save_LIBS="$LIBS"
4091 LIBS="-lresolv $LIBS"
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 /* Override any gcc2 internal prototype to avoid an error. */
4096 /* We use char because int might match the return type of a gcc2
4097 builtin and then its argument prototype would still apply. */
4104 if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4106 eval "ac_cv_lib_$ac_lib_var=yes"
4108 echo "configure: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4111 eval "ac_cv_lib_$ac_lib_var=no"
4114 LIBS="$ac_save_LIBS"
4117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4118 echo "$ac_t""yes" 1>&6
4119 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
4121 echo "$ac_t""no" 1>&6
4127 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4128 echo "configure:4129: checking for textdomain" >&5
4129 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135 /* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char textdomain(); below. */
4138 /* Override any gcc2 internal prototype to avoid an error. */
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4145 /* The GNU C library defines this for functions which it implements
4146 to always fail with ENOSYS. Some functions are actually named
4147 something starting with __ and the normal name is an alias. */
4148 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4156 if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4158 eval "ac_cv_func_textdomain=yes"
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4163 eval "ac_cv_func_textdomain=no"
4168 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4169 echo "$ac_t""yes" 1>&6
4172 echo "$ac_t""no" 1>&6
4174 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4175 echo "configure:4176: checking for textdomain in -lintl" >&5
4176 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4180 ac_save_LIBS="$LIBS"
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 /* Override any gcc2 internal prototype to avoid an error. */
4186 /* We use char because int might match the return type of a gcc2
4187 builtin and then its argument prototype would still apply. */
4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 eval "ac_cv_lib_$ac_lib_var=yes"
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4201 eval "ac_cv_lib_$ac_lib_var=no"
4204 LIBS="$ac_save_LIBS"
4207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4208 echo "$ac_t""yes" 1>&6
4209 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4210 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4213 echo "$ac_t""no" 1>&6
4221 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4222 echo "configure:4223: checking for getopt_long" >&5
4223 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 /* System header to define __stub macros and hopefully few prototypes,
4230 which can conflict with char getopt_long(); below. */
4232 /* Override any gcc2 internal prototype to avoid an error. */
4233 /* We use char because int might match the return type of a gcc2
4234 builtin and then its argument prototype would still apply. */
4239 /* The GNU C library defines this for functions which it implements
4240 to always fail with ENOSYS. Some functions are actually named
4241 something starting with __ and the normal name is an alias. */
4242 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4252 eval "ac_cv_func_getopt_long=yes"
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4257 eval "ac_cv_func_getopt_long=no"
4262 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4263 echo "$ac_t""yes" 1>&6
4264 cat >> confdefs.h <<\EOF
4265 #define HAVE_GETOPT_LONG 1
4269 echo "$ac_t""no" 1>&6
4270 # FreeBSD has a gnugetopt library for this:
4271 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4272 echo "configure:4273: checking for getopt_long in -lgnugetopt" >&5
4273 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4277 ac_save_LIBS="$LIBS"
4278 LIBS="-lgnugetopt $LIBS"
4279 cat > conftest.$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4282 /* Override any gcc2 internal prototype to avoid an error. */
4283 /* We use char because int might match the return type of a gcc2
4284 builtin and then its argument prototype would still apply. */
4291 if { (eval echo configure:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4293 eval "ac_cv_lib_$ac_lib_var=yes"
4295 echo "configure: failed program was:" >&5
4296 cat conftest.$ac_ext >&5
4298 eval "ac_cv_lib_$ac_lib_var=no"
4301 LIBS="$ac_save_LIBS"
4304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4305 echo "$ac_t""yes" 1>&6
4306 cat >> confdefs.h <<\EOF
4307 #define HAVE_GETOPT_LONG 1
4309 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4311 echo "$ac_t""no" 1>&6
4318 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4319 echo "configure:4320: checking return type of signal handlers" >&5
4320 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #include <sys/types.h>
4332 extern "C" void (*signal (int, void (*)(int)))(int);
4334 void (*signal ()) ();
4341 if { (eval echo configure:4342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4343 ac_cv_type_signal=void
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 ac_cv_type_signal=int
4353 echo "$ac_t""$ac_cv_type_signal" 1>&6
4354 cat >> confdefs.h <<EOF
4355 #define RETSIGTYPE $ac_cv_type_signal
4359 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4360 echo "configure:4361: checking for dlopen in -ldl" >&5
4361 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4365 ac_save_LIBS="$LIBS"
4367 cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4370 /* Override any gcc2 internal prototype to avoid an error. */
4371 /* We use char because int might match the return type of a gcc2
4372 builtin and then its argument prototype would still apply. */
4379 if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4381 eval "ac_cv_lib_$ac_lib_var=yes"
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4386 eval "ac_cv_lib_$ac_lib_var=no"
4389 LIBS="$ac_save_LIBS"
4392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4393 echo "$ac_t""yes" 1>&6
4394 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4396 echo "$ac_t""no" 1>&6
4399 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4400 echo "configure:4401: checking for cos in -lm" >&5
4401 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 ac_save_LIBS="$LIBS"
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 /* Override any gcc2 internal prototype to avoid an error. */
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4419 if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4421 eval "ac_cv_lib_$ac_lib_var=yes"
4423 echo "configure: failed program was:" >&5
4424 cat conftest.$ac_ext >&5
4426 eval "ac_cv_lib_$ac_lib_var=no"
4429 LIBS="$ac_save_LIBS"
4432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4434 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4435 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4437 echo "$ac_t""no" 1>&6
4440 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4441 echo "configure:4442: checking for pow in -lm" >&5
4442 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4446 ac_save_LIBS="$LIBS"
4448 cat > conftest.$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4451 /* Override any gcc2 internal prototype to avoid an error. */
4452 /* We use char because int might match the return type of a gcc2
4453 builtin and then its argument prototype would still apply. */
4460 if { (eval echo configure:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4462 eval "ac_cv_lib_$ac_lib_var=yes"
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4467 eval "ac_cv_lib_$ac_lib_var=no"
4470 LIBS="$ac_save_LIBS"
4473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
4475 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4476 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4477 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4478 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4479 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4482 echo "$ac_t""no" 1>&6
4487 if test "x${THREAD_LIB}" = "xerror"; then
4488 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4489 echo "configure:4490: checking for main in -lpthread" >&5
4490 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 ac_save_LIBS="$LIBS"
4495 LIBS="-lpthread $LIBS"
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4506 eval "ac_cv_lib_$ac_lib_var=yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 eval "ac_cv_lib_$ac_lib_var=no"
4514 LIBS="$ac_save_LIBS"
4517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4518 echo "$ac_t""yes" 1>&6
4519 THREAD_LIB="-lpthread"
4521 echo "$ac_t""no" 1>&6
4525 if test "x${THREAD_LIB}" = "xerror"; then
4526 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4527 echo "configure:4528: checking for main in -lpthreads" >&5
4528 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 ac_save_LIBS="$LIBS"
4533 LIBS="-lpthreads $LIBS"
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4544 eval "ac_cv_lib_$ac_lib_var=yes"
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4549 eval "ac_cv_lib_$ac_lib_var=no"
4552 LIBS="$ac_save_LIBS"
4555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4556 echo "$ac_t""yes" 1>&6
4557 THREAD_LIB="-lpthreads"
4559 echo "$ac_t""no" 1>&6
4563 if test "x${THREAD_LIB}" = "xerror"; then
4564 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4565 echo "configure:4566: checking for main in -lc_r" >&5
4566 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 ac_save_LIBS="$LIBS"
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4580 if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4582 eval "ac_cv_lib_$ac_lib_var=yes"
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4587 eval "ac_cv_lib_$ac_lib_var=no"
4590 LIBS="$ac_save_LIBS"
4593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4594 echo "$ac_t""yes" 1>&6
4597 echo "$ac_t""no" 1>&6
4601 if test "x${THREAD_LIB}" = "xerror"; then
4602 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4603 echo "configure:4604: checking for pthread_mutex_lock" >&5
4604 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4607 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 /* System header to define __stub macros and hopefully few prototypes,
4611 which can conflict with char pthread_mutex_lock(); below. */
4613 /* Override any gcc2 internal prototype to avoid an error. */
4614 /* We use char because int might match the return type of a gcc2
4615 builtin and then its argument prototype would still apply. */
4616 char pthread_mutex_lock();
4620 /* The GNU C library defines this for functions which it implements
4621 to always fail with ENOSYS. Some functions are actually named
4622 something starting with __ and the normal name is an alias. */
4623 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4626 pthread_mutex_lock();
4631 if { (eval echo configure:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4633 eval "ac_cv_func_pthread_mutex_lock=yes"
4635 echo "configure: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4638 eval "ac_cv_func_pthread_mutex_lock=no"
4643 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4644 echo "$ac_t""yes" 1>&6
4647 echo "$ac_t""no" 1>&6
4653 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4654 echo "configure:4655: checking for cthread_fork in -lthreads" >&5
4655 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4659 ac_save_LIBS="$LIBS"
4660 LIBS="-lthreads $LIBS"
4661 cat > conftest.$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4664 /* Override any gcc2 internal prototype to avoid an error. */
4665 /* We use char because int might match the return type of a gcc2
4666 builtin and then its argument prototype would still apply. */
4667 char cthread_fork();
4673 if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 eval "ac_cv_lib_$ac_lib_var=yes"
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4680 eval "ac_cv_lib_$ac_lib_var=no"
4683 LIBS="$ac_save_LIBS"
4686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4687 echo "$ac_t""yes" 1>&6
4688 THREAD_LIB="-lthreads"
4690 echo "$ac_t""no" 1>&6
4694 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4697 #include <pthread.h>
4699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4700 egrep "pthread_cond_t" >/dev/null 2>&1; then
4703 cat >> confdefs.h <<\EOF
4704 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4710 cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713 #include <pthread.h>
4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4716 egrep "pthread_once" >/dev/null 2>&1; then
4719 cat >> confdefs.h <<\EOF
4720 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 #include <strings.h>
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732 egrep "strncasecmp" >/dev/null 2>&1; then
4735 cat >> confdefs.h <<\EOF
4736 #define STRNCASECMP_IN_STRINGS_H 1
4743 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4747 echo "configure:4748: checking for $ac_hdr" >&5
4748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4749 echo $ac_n "(cached) $ac_c" 1>&6
4751 cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4757 { (eval echo configure:4758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4759 if test -z "$ac_err"; then
4761 eval "ac_cv_header_$ac_safe=yes"
4764 echo "configure: failed program was:" >&5
4765 cat conftest.$ac_ext >&5
4767 eval "ac_cv_header_$ac_safe=no"
4771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4772 echo "$ac_t""yes" 1>&6
4773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4774 cat >> confdefs.h <<EOF
4775 #define $ac_tr_hdr 1
4779 echo "$ac_t""no" 1>&6
4783 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4787 echo "configure:4788: checking for $ac_hdr" >&5
4788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4797 { (eval echo configure:4798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4799 if test -z "$ac_err"; then
4801 eval "ac_cv_header_$ac_safe=yes"
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4807 eval "ac_cv_header_$ac_safe=no"
4811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4812 echo "$ac_t""yes" 1>&6
4813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4814 cat >> confdefs.h <<EOF
4815 #define $ac_tr_hdr 1
4819 echo "$ac_t""no" 1>&6
4823 for ac_hdr in dlfcn.h image.h
4825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4827 echo "configure:4828: checking for $ac_hdr" >&5
4828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4837 { (eval echo configure:4838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4839 if test -z "$ac_err"; then
4841 eval "ac_cv_header_$ac_safe=yes"
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4847 eval "ac_cv_header_$ac_safe=no"
4851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4852 echo "$ac_t""yes" 1>&6
4853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4854 cat >> confdefs.h <<EOF
4855 #define $ac_tr_hdr 1
4859 echo "$ac_t""no" 1>&6
4863 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4867 echo "configure:4868: checking for $ac_hdr" >&5
4868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4877 { (eval echo configure:4878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4879 if test -z "$ac_err"; then
4881 eval "ac_cv_header_$ac_safe=yes"
4884 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4887 eval "ac_cv_header_$ac_safe=no"
4891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4892 echo "$ac_t""yes" 1>&6
4893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4894 cat >> confdefs.h <<EOF
4895 #define $ac_tr_hdr 1
4899 echo "$ac_t""no" 1>&6
4903 for ac_hdr in machine/param.h sys/shm.h
4905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4907 echo "configure:4908: checking for $ac_hdr" >&5
4908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4917 { (eval echo configure:4918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4919 if test -z "$ac_err"; then
4921 eval "ac_cv_header_$ac_safe=yes"
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4927 eval "ac_cv_header_$ac_safe=no"
4931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4932 echo "$ac_t""yes" 1>&6
4933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4934 cat >> confdefs.h <<EOF
4935 #define $ac_tr_hdr 1
4939 echo "$ac_t""no" 1>&6
4943 for ac_hdr in linux/version.h
4945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4947 echo "configure:4948: checking for $ac_hdr" >&5
4948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4951 cat > conftest.$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4957 { (eval echo configure:4958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4959 if test -z "$ac_err"; then
4961 eval "ac_cv_header_$ac_safe=yes"
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4967 eval "ac_cv_header_$ac_safe=no"
4971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4972 echo "$ac_t""yes" 1>&6
4973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4974 cat >> confdefs.h <<EOF
4975 #define $ac_tr_hdr 1
4979 echo "$ac_t""no" 1>&6
4984 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4985 echo "configure:4986: checking whether time.h and sys/time.h may both be included" >&5
4986 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4992 #include <sys/types.h>
4993 #include <sys/time.h>
4999 if { (eval echo configure:5000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5001 ac_cv_header_time=yes
5003 echo "configure: failed program was:" >&5
5004 cat conftest.$ac_ext >&5
5006 ac_cv_header_time=no
5011 echo "$ac_t""$ac_cv_header_time" 1>&6
5012 if test $ac_cv_header_time = yes; then
5013 cat >> confdefs.h <<\EOF
5014 #define TIME_WITH_SYS_TIME 1
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026 egrep "nanosleep" >/dev/null 2>&1; then
5029 cat >> confdefs.h <<\EOF
5030 #define HAVE_DECL_NANOSLEEP 1
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5041 #include <sys/time.h>
5043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5044 egrep "timespec" >/dev/null 2>&1; then
5047 cat >> confdefs.h <<\EOF
5048 #define HAVE_STRUCT_TIMESPEC 1
5056 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
5058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5060 echo "configure:5061: checking for $ac_hdr" >&5
5061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5070 { (eval echo configure:5071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5072 if test -z "$ac_err"; then
5074 eval "ac_cv_header_$ac_safe=yes"
5077 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5080 eval "ac_cv_header_$ac_safe=no"
5084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5085 echo "$ac_t""yes" 1>&6
5086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5087 cat >> confdefs.h <<EOF
5088 #define $ac_tr_hdr 1
5092 echo "$ac_t""no" 1>&6
5097 if test "x${x_includes}" = "xNONE"; then
5098 x_includes="/usr/X11R6/include"
5100 if test "x${x_libraries}" = "xNONE"; then
5101 x_libraries="/usr/X11R6/lib"
5104 if test "x${SYS}" != "xmingw32"
5106 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
5107 for ac_hdr in X11/extensions/dpms.h
5109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5111 echo "configure:5112: checking for $ac_hdr" >&5
5112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5115 cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5121 { (eval echo configure:5122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5123 if test -z "$ac_err"; then
5125 eval "ac_cv_header_$ac_safe=yes"
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5131 eval "ac_cv_header_$ac_safe=no"
5135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5136 echo "$ac_t""yes" 1>&6
5137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5138 cat >> confdefs.h <<EOF
5139 #define $ac_tr_hdr 1
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5145 #include <X11/extensions/dpms.h>
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148 egrep "DPMSInfo" >/dev/null 2>&1; then
5151 cat >> confdefs.h <<\EOF
5152 #define DPMSINFO_IN_DPMS_H 1
5161 echo "$ac_t""no" 1>&6
5165 CPPFLAGS="${save_CPPFLAGS}"
5168 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5169 echo "configure:5170: checking for ntohl in sys/param.h" >&5
5170 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5173 CFLAGS="${save_CFLAGS} -Wall -Werror"
5174 cat > conftest.$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5177 #include <sys/param.h>
5179 void foo() { int meuh; ntohl(meuh); }
5182 if { (eval echo configure:5183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5184 ac_cv_c_ntohl_sys_param_h=yes
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5189 ac_cv_c_ntohl_sys_param_h=no
5194 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5195 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5196 cat >> confdefs.h <<\EOF
5197 #define NTOHL_IN_SYS_PARAM_H 1
5202 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5203 echo "configure:5204: checking if \$CC accepts -finline-limit" >&5
5204 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5207 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5208 cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5216 if { (eval echo configure:5217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5218 ac_cv_c_inline_limit=yes
5220 echo "configure: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5223 ac_cv_c_inline_limit=no
5228 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5229 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5230 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5233 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5234 echo "configure:5235: checking if \$CC accepts -Wall -Winline" >&5
5235 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5239 cat > conftest.$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5247 if { (eval echo configure:5248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5249 ac_cv_c_Wall_Winline=yes
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5254 ac_cv_c_Wall_Winline=no
5259 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5260 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5261 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5263 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5264 echo "configure:5265: checking if \$CC accepts -wall -winline" >&5
5265 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
5268 CFLAGS="-wall -winline ${save_CFLAGS}"
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5277 if { (eval echo configure:5278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5279 ac_cv_c_wall_winline=yes
5281 echo "configure: failed program was:" >&5
5282 cat conftest.$ac_ext >&5
5284 ac_cv_c_wall_winline=no
5289 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5290 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5291 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5295 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5296 echo "configure:5297: checking if \$CC accepts -pipe" >&5
5297 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5300 CFLAGS="${save_CFLAGS} -pipe"
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5309 if { (eval echo configure:5310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5313 echo "configure: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5321 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5322 if test "x${ac_cv_c_pipe}" != "xno"; then
5323 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5326 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5327 echo "configure:5328: checking if \$CC accepts -O3" >&5
5328 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5329 echo $ac_n "(cached) $ac_c" 1>&6
5331 CFLAGS="${save_CFLAGS} -O3"
5332 cat > conftest.$ac_ext <<EOF
5333 #line 5334 "configure"
5334 #include "confdefs.h"
5340 if { (eval echo configure:5341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5344 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5
5352 echo "$ac_t""$ac_cv_c_o3" 1>&6
5353 if test "x${ac_cv_c_o3}" != "xno"; then
5354 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5356 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5357 echo "configure:5358: checking if \$CC accepts -O2" >&5
5358 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5359 echo $ac_n "(cached) $ac_c" 1>&6
5361 CFLAGS="${save_CFLAGS} -O2"
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5370 if { (eval echo configure:5371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5374 echo "configure: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5382 echo "$ac_t""$ac_cv_c_o2" 1>&6
5383 if test "x${ac_cv_c_o2}" != "xno"; then
5384 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5386 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5387 echo "configure:5388: checking if \$CC accepts -O" >&5
5388 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5389 echo $ac_n "(cached) $ac_c" 1>&6
5391 CFLAGS="${save_CFLAGS} -O"
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5400 if { (eval echo configure:5401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5412 echo "$ac_t""$ac_cv_c_o" 1>&6
5413 if test "x${ac_cv_c_o}" != "xno"; then
5414 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5419 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5420 echo "configure:5421: checking if \$CC accepts -ffast-math" >&5
5421 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5424 CFLAGS="${save_CFLAGS} -ffast-math"
5425 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5433 if { (eval echo configure:5434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5435 ac_cv_c_fast_math=yes
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 ac_cv_c_fast_math=no
5445 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5446 if test "x${ac_cv_c_fast_math}" != "xno"; then
5447 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5450 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5451 echo "configure:5452: checking if \$CC accepts -funroll-loops" >&5
5452 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5455 CFLAGS="${save_CFLAGS} -funroll-loops"
5456 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5464 if { (eval echo configure:5465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5466 ac_cv_c_unroll_loops=yes
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5471 ac_cv_c_unroll_loops=no
5476 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5477 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5478 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5481 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5482 echo "configure:5483: checking if \$CC accepts -fomit-frame-pointer" >&5
5483 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5486 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5495 if { (eval echo configure:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5497 ac_cv_c_omit_frame_pointer=yes
5499 echo "configure: failed program was:" >&5
5500 cat conftest.$ac_ext >&5
5502 ac_cv_c_omit_frame_pointer=no
5507 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5508 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5509 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5510 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5511 i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5514 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5515 echo "configure:5516: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5516 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5517 echo $ac_n "(cached) $ac_c" 1>&6
5519 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5520 cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5528 if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5540 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5541 if test "x${ac_cv_ld_darwin}" != "xno"; then
5542 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5545 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5546 echo "configure:5547: checking if \$CC accepts -shared" >&5
5547 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6
5550 CFLAGS="${save_CFLAGS} -shared"
5551 cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure"
5553 #include "confdefs.h"
5559 if { (eval echo configure:5560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5561 ac_cv_ld_plugins=yes
5563 echo "configure: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5571 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5572 if test "x${ac_cv_ld_plugins}" != "xno"; then
5573 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5576 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5577 echo "configure:5578: checking for variadic cpp macros" >&5
5578 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5581 CFLAGS="${save_CFLAGS}"
5582 cat > conftest.$ac_ext <<EOF
5583 #line 5584 "configure"
5584 #include "confdefs.h"
5586 #define a(b,c...) printf(b,##c)
5588 a("foo");a("%s","bar");a("%s%s","baz","quux");
5591 if { (eval echo configure:5592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5593 ac_cv_cpp_variadic_macros=yes
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5598 ac_cv_cpp_variadic_macros=no
5603 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5604 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5605 cat >> confdefs.h <<\EOF
5606 #define HAVE_VARIADIC_MACROS 1
5611 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5612 echo "configure:5613: checking __attribute__ ((aligned ())) support" >&5
5613 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 ac_cv_c_attribute_aligned=0
5617 CFLAGS="${save_CFLAGS} -Werror"
5618 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5619 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure"
5621 #include "confdefs.h"
5624 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5627 if { (eval echo configure:5628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5629 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5636 CFLAGS="${save_CFLAGS}"
5639 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5640 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5641 cat >> confdefs.h <<EOF
5642 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5647 case "x${target_cpu}" in
5652 ARCH="${target_cpu}"
5656 BUILTINS="${BUILTINS}"
5657 PLUGINS="${PLUGINS} misc/dummy/dummy misc/null/null"
5658 PLUGINS="${PLUGINS} control/rc/rc misc/logger/logger access/file access/udp access/http misc/network/ipv4 misc/memcpy/memcpy"
5659 PLUGINS="${PLUGINS} demux/mpeg/es demux/mpeg/audio demux/mpeg/mpeg_system demux/mpeg/ps demux/mpeg/ts"
5660 PLUGINS="${PLUGINS} codec/mpeg_video/idct/idct codec/mpeg_video/idct/idctclassic codec/mpeg_video/motion/motion codec/mpeg_video/mpeg_video codec/spudec/spudec"
5661 #PLUGINS="${PLUGINS} codec/a52old/imdct/imdct codec/a52old/downmix/downmix codec/mpeg_audio/mpeg_audio codec/a52old/a52old codec/lpcm/lpcm codec/spdif/spdif"
5662 PLUGINS="${PLUGINS} video_filter/deinterlace/deinterlace video_filter/invert video_filter/wall video_filter/transform video_filter/distort video_filter/clone video_filter/crop"
5663 PLUGINS="${PLUGINS} audio_filter/converter/float32tos16"
5664 PLUGINS="${PLUGINS} audio_filter/resampler/trivial"
5665 PLUGINS="${PLUGINS} audio_mixer/trivial"
5666 PLUGINS="${PLUGINS} audio_output/file"
5667 #PLUGINS="${PLUGINS} visualization/scope/scope"
5668 PLUGINS="${PLUGINS} video_chroma/i420_rgb video_chroma/i420_yuy2 video_chroma/i422_yuy2 video_chroma/i420_ymga"
5670 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"
5671 MMXEXT_MODULES="misc/memcpy/memcpymmxext codec/mpeg_video/idct/idctmmxext codec/mpeg_video/motion/motionmmxext"
5672 THREEDNOW_MODULES="misc/memcpy/memcpy3dn codec/a52old/imdct/imdct3dn codec/a52old/downmix/downmix3dn"
5673 SSE_MODULES="codec/a52old/imdct/imdctsse codec/a52old/downmix/downmixsse"
5674 ALTIVEC_MODULES="codec/mpeg_video/idct/idctaltivec codec/mpeg_video/motion/motionaltivec misc/memcpy/memcpyaltivec"
5676 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5677 echo "configure:5678: checking if \$CC groks MMX inline assembly" >&5
5678 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5681 CFLAGS="${save_CFLAGS}"
5682 cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5687 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5690 if { (eval echo configure:5691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5692 ac_cv_mmx_inline=yes
5694 echo "configure: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5702 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5703 if test "x${ac_cv_mmx_inline}" != "xno"; then
5704 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5707 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5708 echo "configure:5709: checking if \$CC groks MMX EXT inline assembly" >&5
5709 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5710 echo $ac_n "(cached) $ac_c" 1>&6
5712 CFLAGS="${save_CFLAGS}"
5713 cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5718 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5721 if { (eval echo configure:5722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5723 ac_cv_mmxext_inline=yes
5725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5728 ac_cv_mmxext_inline=no
5733 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5734 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5735 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5738 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5739 echo "configure:5740: checking if \$CC groks 3D Now! inline assembly" >&5
5740 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5743 CFLAGS="${save_CFLAGS}"
5744 cat > conftest.$ac_ext <<EOF
5745 #line 5746 "configure"
5746 #include "confdefs.h"
5749 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5752 if { (eval echo configure:5753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5754 ac_cv_3dnow_inline=yes
5756 echo "configure: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5759 ac_cv_3dnow_inline=no
5764 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5765 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5766 cat >> confdefs.h <<\EOF
5767 #define CAN_COMPILE_3DNOW 1
5770 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5773 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5774 echo "configure:5775: checking if \$CC groks SSE inline assembly" >&5
5775 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5776 echo $ac_n "(cached) $ac_c" 1>&6
5778 CFLAGS="${save_CFLAGS}"
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5784 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5787 if { (eval echo configure:5788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5789 ac_cv_sse_inline=yes
5791 echo "configure: failed program was:" >&5
5792 cat conftest.$ac_ext >&5
5799 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5800 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5801 cat >> confdefs.h <<\EOF
5802 #define CAN_COMPILE_SSE 1
5805 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5808 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5809 # we should be able to remove this test with future versions of mingw32
5810 if test "x${SYS}" != "xmingw32"; then
5811 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5812 echo "configure:5813: checking if \$CC groks AltiVec inline assembly" >&5
5813 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5816 CFLAGS="${save_CFLAGS}"
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5822 asm volatile("vperm 0,1,2,3");
5825 if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5827 ac_cv_altivec_inline=yes
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5832 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5833 cat > conftest.$ac_ext <<EOF
5834 #line 5835 "configure"
5835 #include "confdefs.h"
5838 asm volatile("vperm 0,1,2,3");
5841 if { (eval echo configure:5842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5843 ac_cv_altivec_inline="-Wa,-m7400"
5845 echo "configure: failed program was:" >&5
5846 cat conftest.$ac_ext >&5
5848 ac_cv_altivec_inline=no
5856 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5857 if test "x${ac_cv_altivec_inline}" != "xno"; then
5858 cat >> confdefs.h <<\EOF
5859 #define CAN_COMPILE_ALTIVEC 1
5862 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5863 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5864 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5865 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5866 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5868 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5871 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5872 echo "configure:5873: checking if \$CC groks AltiVec C extensions" >&5
5873 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5874 echo $ac_n "(cached) $ac_c" 1>&6
5876 CFLAGS="${save_CFLAGS} -faltivec"
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5883 vec_mtvscr((vector unsigned int)(0));
5886 if { (eval echo configure:5887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5888 ac_cv_c_altivec=-faltivec
5890 echo "configure: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5895 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5901 vec_mtvscr((vector unsigned int)(0));
5904 if { (eval echo configure:5905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5906 ac_cv_c_altivec="-fvec"
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5917 CFLAGS="${save_CFLAGS}"
5920 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5921 if test "x${ac_cv_c_altivec}" != "xno"; then
5922 cat >> confdefs.h <<\EOF
5923 #define CAN_COMPILE_C_ALTIVEC 1
5926 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5927 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5928 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5929 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5930 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5933 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5934 echo "configure:5935: checking if linker needs -framework vecLib" >&5
5935 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5939 cat > conftest.$ac_ext <<EOF
5940 #line 5941 "configure"
5941 #include "confdefs.h"
5947 if { (eval echo configure:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5949 ac_cv_ld_altivec=yes
5951 echo "configure: failed program was:" >&5
5952 cat conftest.$ac_ext >&5
5957 LDFLAGS="${save_LDFLAGS}"
5961 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5962 if test "x${ac_cv_ld_altivec}" != "xno"; then
5963 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5964 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5965 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5966 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5971 # Check whether --with- or --without- was given.
5972 if test "${with_+set}" = set; then
5977 # Check whether --with- or --without- was given.
5978 if test "${with_+set}" = set; then
5984 # Check whether --with-tuning or --without-tuning was given.
5985 if test "${with_tuning+set}" = set; then
5986 withval="$with_tuning"
5990 if test "x${with_tuning}" != "x"; then
5991 TUNING="${with_tuning}"
5993 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
5995 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
5999 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
6002 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
6005 # Check whether --enable-optimizations or --disable-optimizations was given.
6006 if test "${enable_optimizations+set}" = set; then
6007 enableval="$enable_optimizations"
6008 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
6014 # Check whether --enable-altivec or --disable-altivec was given.
6015 if test "${enable_altivec+set}" = set; then
6016 enableval="$enable_altivec"
6017 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
6018 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6020 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
6021 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
6026 # Check whether --enable-debug or --disable-debug was given.
6027 if test "${enable_debug+set}" = set; then
6028 enableval="$enable_debug"
6029 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
6034 # Check whether --enable-release or --disable-release was given.
6035 if test "${enable_release+set}" = set; then
6036 enableval="$enable_release"
6037 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
6039 VERSION="${VERSION}_`date +%Y-%m-%d`"
6044 # Check whether --with- or --without- was given.
6045 if test "${with_+set}" = set; then
6051 # Check whether --enable-dvd or --disable-dvd was given.
6052 if test "${enable_dvd+set}" = set; then
6053 enableval="$enable_dvd"
6057 if test "x${enable_dvd}" != "xno"
6059 # Check whether --with-dvdcss or --without-dvdcss was given.
6060 if test "${with_dvdcss+set}" = set; then
6061 withval="$with_dvdcss"
6065 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
6066 if test "${with_dvdcss_tree+set}" = set; then
6067 withval="$with_dvdcss_tree"
6071 case "x${with_dvdcss}" in
6073 if test "x${with_dvdcss_tree}" = x
6075 for ac_hdr in dvdcss/dvdcss.h
6077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6079 echo "configure:6080: checking for $ac_hdr" >&5
6080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6089 { (eval echo configure:6090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6091 if test -z "$ac_err"; then
6093 eval "ac_cv_header_$ac_safe=yes"
6096 echo "configure: failed program was:" >&5
6097 cat conftest.$ac_ext >&5
6099 eval "ac_cv_header_$ac_safe=no"
6103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6104 echo "$ac_t""yes" 1>&6
6105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6106 cat >> confdefs.h <<EOF
6107 #define $ac_tr_hdr 1
6109 PLUGINS="${PLUGINS} access/dvd/dvd"
6110 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
6112 echo "$ac_t""no" 1>&6
6113 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
6114 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
6119 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
6120 echo "configure:6121: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
6121 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6122 if test "x${real_dvdcss_tree}" = "x"
6124 echo "$ac_t""no" 1>&6
6125 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6127 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6129 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6130 BUILTINS="${BUILTINS} access/dvd/dvd"
6131 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6132 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6134 echo "$ac_t""no" 1>&6
6135 { 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; }
6140 PLUGINS="${PLUGINS} access/dvd/dvd"
6141 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6142 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6145 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6146 echo "configure:6147: checking for dvdcss headers in ${with_dvdcss}" >&5
6147 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6149 echo "$ac_t""yes" 1>&6
6150 PLUGINS="${PLUGINS} access/dvd/dvd"
6151 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6152 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6154 echo "$ac_t""no" 1>&6
6155 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6161 # Check whether --enable-dvdread or --disable-dvdread was given.
6162 if test "${enable_dvdread+set}" = set; then
6163 enableval="$enable_dvdread"
6167 if test "x${enable_dvdread}" != "xno"
6169 # Check whether --with-dvdread or --without-dvdread was given.
6170 if test "${with_dvdread+set}" = set; then
6171 withval="$with_dvdread"
6175 if test "x${with_dvdread}" = "x"
6180 test_LDFLAGS="-L${with_dvdread}/lib"
6181 test_CFLAGS="-I${with_dvdread}/include"
6183 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6184 for ac_hdr in dvdread/dvd_reader.h
6186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6188 echo "configure:6189: checking for $ac_hdr" >&5
6189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6192 cat > conftest.$ac_ext <<EOF
6193 #line 6194 "configure"
6194 #include "confdefs.h"
6197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6198 { (eval echo configure:6199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6200 if test -z "$ac_err"; then
6202 eval "ac_cv_header_$ac_safe=yes"
6205 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6208 eval "ac_cv_header_$ac_safe=no"
6212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6213 echo "$ac_t""yes" 1>&6
6214 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6215 cat >> confdefs.h <<EOF
6216 #define $ac_tr_hdr 1
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6222 #include <dvdread/dvd_reader.h>
6224 void foo() { int i=DVD_VIDEO_LB_LEN; }
6227 if { (eval echo configure:6228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6230 PLUGINS="${PLUGINS} access/dvdread/dvdread"
6231 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6232 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6235 echo "configure: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6239 if test "x${enable_dvdread}" != "x"
6241 { 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; }
6248 echo "$ac_t""no" 1>&6
6249 if test "x${enable_dvdread}" != "x"
6251 if test "x${with_dvdread}" != "x"
6253 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6255 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6262 CPPFLAGS="$save_CPPFLAGS"
6265 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6266 if test "${enable_dvdplay+set}" = set; then
6267 enableval="$enable_dvdplay"
6271 if test "x$enable_dvdplay" != "xno"
6273 # Check whether --with-dvdplay or --without-dvdplay was given.
6274 if test "${with_dvdplay+set}" = set; then
6275 withval="$with_dvdplay"
6279 if test "x$with_dvdplay" = x
6284 test_LDFLAGS="-L${with_dvdplay}/lib"
6285 test_CFLAGS="-I${with_dvdplay}/include"
6287 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6288 for ac_hdr in dvdplay/dvdplay.h
6290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6292 echo "configure:6293: checking for $ac_hdr" >&5
6293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6294 echo $ac_n "(cached) $ac_c" 1>&6
6296 cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6302 { (eval echo configure:6303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6304 if test -z "$ac_err"; then
6306 eval "ac_cv_header_$ac_safe=yes"
6309 echo "configure: failed program was:" >&5
6310 cat conftest.$ac_ext >&5
6312 eval "ac_cv_header_$ac_safe=no"
6316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6317 echo "$ac_t""yes" 1>&6
6318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6319 cat >> confdefs.h <<EOF
6320 #define $ac_tr_hdr 1
6323 PLUGINS="${PLUGINS} access/dvdplay/dvdplay"
6324 dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6325 dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6328 echo "$ac_t""no" 1>&6
6329 if test "x$enable_dvdplay" != x
6331 if test "x$with_dvdplay" != x
6333 { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6335 { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6342 CPPFLAGS="${save_CPPFLAGS}"
6346 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6347 if test "${enable_dvbpsi+set}" = set; then
6348 enableval="$enable_dvbpsi"
6352 if test "x${enable_dvbpsi}" != "xno"
6354 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6355 if test "${with_dvbpsi+set}" = set; then
6356 withval="$with_dvbpsi"
6360 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6361 if test "${with_dvbpsi+set}" = set; then
6362 withval="$with_dvbpsi"
6366 case "x${with_dvbpsi}" in
6368 if test "x${with_dvbpsi_tree}" = "x"
6370 for ac_hdr in dvbpsi/dr.h
6372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6374 echo "configure:6375: checking for $ac_hdr" >&5
6375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6376 echo $ac_n "(cached) $ac_c" 1>&6
6378 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6384 { (eval echo configure:6385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6386 if test -z "$ac_err"; then
6388 eval "ac_cv_header_$ac_safe=yes"
6391 echo "configure: failed program was:" >&5
6392 cat conftest.$ac_ext >&5
6394 eval "ac_cv_header_$ac_safe=no"
6398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6399 echo "$ac_t""yes" 1>&6
6400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6401 cat >> confdefs.h <<EOF
6402 #define $ac_tr_hdr 1
6404 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6405 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} -ldvbpsi"
6407 echo "$ac_t""no" 1>&6
6412 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6413 echo "configure:6414: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6414 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6415 if test "x${real_dvbpsi_tree}" = "x"
6417 echo "$ac_t""no" 1>&6
6418 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6420 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6422 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6423 BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi"
6424 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6425 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6427 echo "$ac_t""no" 1>&6
6428 { 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; }
6435 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6436 echo "configure:6437: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6437 if test "x${with_dvbpsi}" = "x"
6442 test_LDFLAGS="-L${with_dvbpsi}/lib"
6443 test_CFLAGS="-I${with_dvbpsi}/include"
6445 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6446 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6447 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6448 echo "configure:6449: checking for dvbpsi/dr.h" >&5
6449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6450 echo $ac_n "(cached) $ac_c" 1>&6
6452 cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6455 #include <dvbpsi/dr.h>
6457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6458 { (eval echo configure:6459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6460 if test -z "$ac_err"; then
6462 eval "ac_cv_header_$ac_safe=yes"
6465 echo "configure: failed program was:" >&5
6466 cat conftest.$ac_ext >&5
6468 eval "ac_cv_header_$ac_safe=no"
6472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6473 echo "$ac_t""yes" 1>&6
6475 PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6476 ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6477 ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6480 echo "$ac_t""no" 1>&6
6482 if test "x${enable_dvbpsi}" != "x"
6484 { 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; }
6489 CPPFLAGS="${save_CPPFLAGS}"
6494 # Check whether --enable-v4l or --disable-v4l was given.
6495 if test "${enable_v4l+set}" = set; then
6496 enableval="$enable_v4l"
6500 if test "x${enable_v4l}" = "xyes"
6502 for ac_hdr in libv4l/v4l.h
6504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6506 echo "configure:6507: checking for $ac_hdr" >&5
6507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6508 echo $ac_n "(cached) $ac_c" 1>&6
6510 cat > conftest.$ac_ext <<EOF
6511 #line 6512 "configure"
6512 #include "confdefs.h"
6515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6516 { (eval echo configure:6517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6518 if test -z "$ac_err"; then
6520 eval "ac_cv_header_$ac_safe=yes"
6523 echo "configure: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6526 eval "ac_cv_header_$ac_safe=no"
6530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6531 echo "$ac_t""yes" 1>&6
6532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6533 cat >> confdefs.h <<EOF
6534 #define $ac_tr_hdr 1
6537 PLUGINS="${PLUGINS} access/v4l/v4l"
6540 echo "$ac_t""no" 1>&6
6546 # Check whether --enable-vcd or --disable-vcd was given.
6547 if test "${enable_vcd+set}" = set; then
6548 enableval="$enable_vcd"
6553 if test "x${enable_vcd}" != "xno"
6555 cat > conftest.$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 #include <linux/cdrom.h>
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561 egrep "cdrom_msf0" >/dev/null 2>&1; then
6564 PLUGINS="${PLUGINS} access/vcd/vcd"
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 #include <sys/cdio.h>
6575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6576 egrep "ioc_toc_header " >/dev/null 2>&1; then
6579 PLUGINS="${PLUGINS} access/vcd/vcd"
6580 cat >> confdefs.h <<\EOF
6581 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6589 if test "x${SYS}" = "xbsdi"
6591 PLUGINS="${PLUGINS} access/vcd/vcd"
6594 if test "x${SYS}" = "xdarwin"
6596 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6597 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6601 # Check whether --enable-satellite or --disable-satellite was given.
6602 if test "${enable_satellite+set}" = set; then
6603 enableval="$enable_satellite"
6604 if test "x${enable_satellite}" = "xyes"
6606 PLUGINS="${PLUGINS} access/satellite/satellite"
6611 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6614 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6615 echo "configure:6616: checking for inet_pton" >&5
6616 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6617 echo $ac_n "(cached) $ac_c" 1>&6
6619 cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* System header to define __stub macros and hopefully few prototypes,
6623 which can conflict with char inet_pton(); below. */
6625 /* Override any gcc2 internal prototype to avoid an error. */
6626 /* We use char because int might match the return type of a gcc2
6627 builtin and then its argument prototype would still apply. */
6632 /* The GNU C library defines this for functions which it implements
6633 to always fail with ENOSYS. Some functions are actually named
6634 something starting with __ and the normal name is an alias. */
6635 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6643 if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6645 eval "ac_cv_func_inet_pton=yes"
6647 echo "configure: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6650 eval "ac_cv_func_inet_pton=no"
6655 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6656 echo "$ac_t""yes" 1>&6
6659 echo "$ac_t""no" 1>&6
6661 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6662 echo "configure:6663: checking for inet_pton in -lresolv" >&5
6663 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 ac_save_LIBS="$LIBS"
6668 LIBS="-lresolv $LIBS"
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* Override any gcc2 internal prototype to avoid an error. */
6673 /* We use char because int might match the return type of a gcc2
6674 builtin and then its argument prototype would still apply. */
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6683 eval "ac_cv_lib_$ac_lib_var=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 eval "ac_cv_lib_$ac_lib_var=no"
6691 LIBS="$ac_save_LIBS"
6694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6697 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6699 echo "$ac_t""no" 1>&6
6705 echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6706 echo "configure:6707: checking for sockaddr_in6 in netinet/in.h" >&5
6707 cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6710 #include <netinet/in.h>
6712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6713 egrep "sockaddr_in6" >/dev/null 2>&1; then
6715 echo "$ac_t""yes" 1>&6
6718 echo "$ac_t""no" 1>&6; have_ipv6=0
6722 if test x$have_ipv6 = x1; then
6723 PLUGINS="${PLUGINS} misc/network/ipv6"
6726 if test "x${SYS}" = "xmingw32"
6728 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6729 echo "configure:6730: checking for getaddrinfo in ws2tcpip.h" >&5
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 #include <ws2tcpip.h>
6735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736 egrep "addrinfo" >/dev/null 2>&1; then
6738 echo "$ac_t""yes" 1>&6
6739 PLUGINS="${PLUGINS} misc/network/ipv6"
6742 echo "$ac_t""no" 1>&6
6748 # Check whether --enable-avi or --disable-avi was given.
6749 if test "${enable_avi+set}" = set; then
6750 enableval="$enable_avi"
6754 if test "x${enable_avi}" != "xno"
6756 PLUGINS="${PLUGINS} demux/avi/avi"
6760 # Check whether --with- or --without- was given.
6761 if test "${with_+set}" = set; then
6767 # Check whether --enable-mad or --disable-mad was given.
6768 if test "${enable_mad+set}" = set; then
6769 enableval="$enable_mad"
6773 if test "x${enable_mad}" = "xyes"
6775 # Check whether --with-mad or --without-mad was given.
6776 if test "${with_mad+set}" = set; then
6781 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6783 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6784 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6787 # Check whether --with-mad-tree or --without-mad-tree was given.
6788 if test "${with_mad_tree+set}" = set; then
6789 withval="$with_mad_tree"
6793 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6795 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6796 if test "x${real_mad_tree}" = "x"
6798 echo "$ac_t""no" 1>&6
6799 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6801 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6802 echo "configure:6803: checking for mad.h in ${real_mad_tree}/libmad" >&5
6803 if test -f ${real_mad_tree}/libmad/mad.h
6805 echo "$ac_t""yes" 1>&6
6806 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6807 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6808 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6809 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6810 echo "configure:6811: checking for mad_bit_init in -lmad" >&5
6811 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6815 ac_save_LIBS="$LIBS"
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6823 char mad_bit_init();
6829 if { (eval echo configure:6830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6831 eval "ac_cv_lib_$ac_lib_var=yes"
6833 echo "configure: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6836 eval "ac_cv_lib_$ac_lib_var=no"
6839 LIBS="$ac_save_LIBS"
6842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6845 #BUILTINS="${BUILTINS} codec/mad/mad"
6846 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6849 echo "$ac_t""no" 1>&6
6850 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6854 LDFLAGS="${save_LDFLAGS}"
6856 echo "$ac_t""no" 1>&6
6857 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6860 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6861 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6864 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6866 echo "configure:6867: checking for $ac_hdr" >&5
6867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6876 { (eval echo configure:6877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6878 if test -z "$ac_err"; then
6880 eval "ac_cv_header_$ac_safe=yes"
6883 echo "configure: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6886 eval "ac_cv_header_$ac_safe=no"
6890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6891 echo "$ac_t""yes" 1>&6
6892 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6893 cat >> confdefs.h <<EOF
6894 #define $ac_tr_hdr 1
6898 echo "$ac_t""no" 1>&6
6899 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6903 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6904 echo "configure:6905: checking for mad_bit_init in -lmad" >&5
6905 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6907 echo $ac_n "(cached) $ac_c" 1>&6
6909 ac_save_LIBS="$LIBS"
6911 cat > conftest.$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6914 /* Override any gcc2 internal prototype to avoid an error. */
6915 /* We use char because int might match the return type of a gcc2
6916 builtin and then its argument prototype would still apply. */
6917 char mad_bit_init();
6923 if { (eval echo configure:6924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6925 eval "ac_cv_lib_$ac_lib_var=yes"
6927 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6930 eval "ac_cv_lib_$ac_lib_var=no"
6933 LIBS="$ac_save_LIBS"
6936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6937 echo "$ac_t""yes" 1>&6
6939 #PLUGINS="${PLUGINS} codec/mad/mad"
6940 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6942 echo "$ac_t""no" 1>&6
6943 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6946 CFLAGS="${save_CFLAGS}"
6947 LDFLAGS="${save_LDFLAGS}"
6951 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6952 if test "${enable_ffmpeg+set}" = set; then
6953 enableval="$enable_ffmpeg"
6957 if test "x${enable_ffmpeg}" = "xyes"
6959 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6960 if test "${with_ffmpeg+set}" = set; then
6961 withval="$with_ffmpeg"
6965 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6967 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6968 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6971 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_c"
6972 if test "x${ac_cv_mmx_inline}" != "xno"; then
6973 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmx"
6976 if test "x${ac_cv_mmxext_inline}" != "xno"; then
6977 PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmxext"
6981 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6982 if test "${with_ffmpeg_tree+set}" = set; then
6983 withval="$with_ffmpeg_tree"
6987 if test "x${with_ffmpeg_tree}" != "x"
6989 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6990 echo "configure:6991: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6991 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6992 if test "x${real_ffmpeg_tree}" = x
6994 echo "$ac_t""no" 1>&6
6995 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6997 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6999 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
7000 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7001 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
7002 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
7004 echo "$ac_t""no" 1>&6
7005 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
7008 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
7009 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
7010 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
7011 echo "configure:7012: checking for avcodec_init in -lavcodec" >&5
7012 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
7013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7014 echo $ac_n "(cached) $ac_c" 1>&6
7016 ac_save_LIBS="$LIBS"
7017 LIBS="-lavcodec $LIBS"
7018 cat > conftest.$ac_ext <<EOF
7019 #line 7020 "configure"
7020 #include "confdefs.h"
7021 /* Override any gcc2 internal prototype to avoid an error. */
7022 /* We use char because int might match the return type of a gcc2
7023 builtin and then its argument prototype would still apply. */
7024 char avcodec_init();
7030 if { (eval echo configure:7031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7032 eval "ac_cv_lib_$ac_lib_var=yes"
7034 echo "configure: failed program was:" >&5
7035 cat conftest.$ac_ext >&5
7037 eval "ac_cv_lib_$ac_lib_var=no"
7040 LIBS="$ac_save_LIBS"
7043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7044 echo "$ac_t""yes" 1>&6
7046 BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
7047 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
7049 echo "$ac_t""no" 1>&6
7050 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
7053 LDFLAGS="${save_LDFLAGS}"
7054 CFLAGS="${save_CFLAGS}"
7058 # Check whether --enable-mp4 or --disable-mp4 was given.
7059 if test "${enable_mp4+set}" = set; then
7060 enableval="$enable_mp4"
7064 if test "x${enable_mp4}" = "xyes"
7066 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
7067 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
7068 echo "configure:7069: checking for zlib.h" >&5
7069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7070 echo $ac_n "(cached) $ac_c" 1>&6
7072 cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure"
7074 #include "confdefs.h"
7077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7078 { (eval echo configure:7079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7080 if test -z "$ac_err"; then
7082 eval "ac_cv_header_$ac_safe=yes"
7085 echo "configure: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7088 eval "ac_cv_header_$ac_safe=no"
7092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7093 echo "$ac_t""yes" 1>&6
7094 echo $ac_n "checking for inflateEnd in -lz""... $ac_c" 1>&6
7095 echo "configure:7096: checking for inflateEnd in -lz" >&5
7096 ac_lib_var=`echo z'_'inflateEnd | sed 'y%./+-%__p_%'`
7097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7098 echo $ac_n "(cached) $ac_c" 1>&6
7100 ac_save_LIBS="$LIBS"
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 /* Override any gcc2 internal prototype to avoid an error. */
7106 /* We use char because int might match the return type of a gcc2
7107 builtin and then its argument prototype would still apply. */
7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7116 eval "ac_cv_lib_$ac_lib_var=yes"
7118 echo "configure: failed program was:" >&5
7119 cat conftest.$ac_ext >&5
7121 eval "ac_cv_lib_$ac_lib_var=no"
7124 LIBS="$ac_save_LIBS"
7127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7128 echo "$ac_t""yes" 1>&6
7129 PLUGINS="${PLUGINS} demux/mp4/mp4"
7130 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
7132 echo "$ac_t""no" 1>&6
7133 { echo "configure: error: cannot find zlib library..." 1>&2; exit 1; }
7137 echo "$ac_t""no" 1>&6
7138 { echo "configure: error: cannot find zlib header..." 1>&2; exit 1; }
7143 # Check whether --enable-a52 or --disable-a52 was given.
7144 if test "${enable_a52+set}" = set; then
7145 enableval="$enable_a52"
7149 if test "x${enable_a52}" != "xno"
7151 # Check whether --with-a52 or --without-a52 was given.
7152 if test "${with_a52+set}" = set; then
7157 # Check whether --with-a52-tree or --without-a52-tree was given.
7158 if test "${with_a52_tree+set}" = set; then
7159 withval="$with_a52_tree"
7163 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
7165 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
7166 if test "x${real_a52_tree}" = "x"
7168 echo "$ac_t""no" 1>&6
7169 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
7171 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
7172 echo "configure:7173: checking for a52.h in ${real_a52_tree}/include" >&5
7173 if test -f ${real_a52_tree}/include/a52.h
7175 echo "$ac_t""yes" 1>&6
7176 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
7177 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
7178 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
7179 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7180 echo "configure:7181: checking for a52_free in -la52" >&5
7181 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7183 echo $ac_n "(cached) $ac_c" 1>&6
7185 ac_save_LIBS="$LIBS"
7186 LIBS="-la52 -lm $LIBS"
7187 cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7190 /* Override any gcc2 internal prototype to avoid an error. */
7191 /* We use char because int might match the return type of a gcc2
7192 builtin and then its argument prototype would still apply. */
7199 if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7201 eval "ac_cv_lib_$ac_lib_var=yes"
7203 echo "configure: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7206 eval "ac_cv_lib_$ac_lib_var=no"
7209 LIBS="$ac_save_LIBS"
7212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7213 echo "$ac_t""yes" 1>&6
7215 BUILTINS="${BUILTINS} codec/a52/a52"
7216 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7217 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7220 echo "$ac_t""no" 1>&6
7222 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7224 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7226 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7231 LDFLAGS="${save_LDFLAGS}"
7233 echo "$ac_t""no" 1>&6
7234 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7237 if test "x${with_a52}" = "x"
7242 test_LDFLAGS="-L${with_a52}/lib"
7243 test_CFLAGS="-I${with_a52}/include"
7245 save_CPPFLAGS="${CPPFLAGS}"
7246 save_LDFLAGS="${LDFLAGS}"
7247 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
7248 LDFLAGS="${save_LDFLAGS} ${test_LDFLAGS}"
7249 for ac_hdr in a52dec/a52.h
7251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7253 echo "configure:7254: checking for $ac_hdr" >&5
7254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7257 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7263 { (eval echo configure:7264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7265 if test -z "$ac_err"; then
7267 eval "ac_cv_header_$ac_safe=yes"
7270 echo "configure: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7273 eval "ac_cv_header_$ac_safe=no"
7277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7278 echo "$ac_t""yes" 1>&6
7279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7280 cat >> confdefs.h <<EOF
7281 #define $ac_tr_hdr 1
7284 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7285 echo "configure:7286: checking for a52_free in -la52" >&5
7286 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7290 ac_save_LIBS="$LIBS"
7291 LIBS="-la52 -lm $LIBS"
7292 cat > conftest.$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7295 /* Override any gcc2 internal prototype to avoid an error. */
7296 /* We use char because int might match the return type of a gcc2
7297 builtin and then its argument prototype would still apply. */
7304 if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7306 eval "ac_cv_lib_$ac_lib_var=yes"
7308 echo "configure: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7311 eval "ac_cv_lib_$ac_lib_var=no"
7314 LIBS="$ac_save_LIBS"
7317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7318 echo "$ac_t""yes" 1>&6
7320 BUILTINS="${BUILTINS} codec/a52/a52"
7321 a52_LDFLAGS="${a52_LDFLAGS} ${test_LDFLAGS} -la52 -lm"
7322 a52_CFLAGS="${a52_CFLAGS} ${test_CFLAGS}"
7325 echo "$ac_t""no" 1>&6
7327 if test "x${enable_dvbpsi}" != "x"
7329 { echo "configure: error: Could not find a52 on your system: you may get it from http://liba52.sf.net" 1>&2; exit 1; }
7336 echo "$ac_t""no" 1>&6
7340 CPPFLAGS="${save_CPPFLAGS}"
7341 LDFLAGS="${save_LDFLAGS}"
7345 # Check whether --enable-cinepak or --disable-cinepak was given.
7346 if test "${enable_cinepak+set}" = set; then
7347 enableval="$enable_cinepak"
7351 if test "x${enable_cinepak}" != "xno"
7353 PLUGINS="${PLUGINS} codec/cinepak/cinepak"
7356 # Check whether --enable-vorbis or --disable-vorbis was given.
7357 if test "${enable_vorbis+set}" = set; then
7358 enableval="$enable_vorbis"
7362 if test "x${enable_vorbis}" != "xno"
7364 for ac_hdr in ogg/ogg.h
7366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7368 echo "configure:7369: checking for $ac_hdr" >&5
7369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 cat > conftest.$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7378 { (eval echo configure:7379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7380 if test -z "$ac_err"; then
7382 eval "ac_cv_header_$ac_safe=yes"
7385 echo "configure: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7388 eval "ac_cv_header_$ac_safe=no"
7392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7393 echo "$ac_t""yes" 1>&6
7394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7395 cat >> confdefs.h <<EOF
7396 #define $ac_tr_hdr 1
7399 #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis"
7400 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7403 echo "$ac_t""no" 1>&6
7409 # Check whether --enable-dv or --disable-dv was given.
7410 if test "${enable_dv+set}" = set; then
7411 enableval="$enable_dv"
7415 if test "x${enable_dv}" = "xyes"
7417 for ac_hdr in libdv/dv.h
7419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7421 echo "configure:7422: checking for $ac_hdr" >&5
7422 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7423 echo $ac_n "(cached) $ac_c" 1>&6
7425 cat > conftest.$ac_ext <<EOF
7426 #line 7427 "configure"
7427 #include "confdefs.h"
7430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7431 { (eval echo configure:7432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7433 if test -z "$ac_err"; then
7435 eval "ac_cv_header_$ac_safe=yes"
7438 echo "configure: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7441 eval "ac_cv_header_$ac_safe=no"
7445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7446 echo "$ac_t""yes" 1>&6
7447 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7448 cat >> confdefs.h <<EOF
7449 #define $ac_tr_hdr 1
7452 BUILTINS="${BUILTINS} codec/dv/dv"
7453 dv_LDFLAGS="${dv_LDFLAGS} -ldv"
7456 echo "$ac_t""no" 1>&6
7463 # Check whether --with- or --without- was given.
7464 if test "${with_+set}" = set; then
7470 # Check whether --enable-x11 or --disable-x11 was given.
7471 if test "${enable_x11+set}" = set; then
7472 enableval="$enable_x11"
7476 if test "x${enable_x11}" != "xno" &&
7477 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7478 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7479 for ac_hdr in X11/Xlib.h
7481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7483 echo "configure:7484: checking for $ac_hdr" >&5
7484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7487 cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7493 { (eval echo configure:7494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7495 if test -z "$ac_err"; then
7497 eval "ac_cv_header_$ac_safe=yes"
7500 echo "configure: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7503 eval "ac_cv_header_$ac_safe=no"
7507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7508 echo "$ac_t""yes" 1>&6
7509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7510 cat >> confdefs.h <<EOF
7511 #define $ac_tr_hdr 1
7514 PLUGINS="${PLUGINS} video_output/x11/x11"
7515 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7516 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7519 echo "$ac_t""no" 1>&6
7523 CPPFLAGS="${save_CPPFLAGS}"
7526 # Check whether --enable-xvideo or --disable-xvideo was given.
7527 if test "${enable_xvideo+set}" = set; then
7528 enableval="$enable_xvideo"
7532 if test "x${enable_xvideo}" != "xno" &&
7533 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7534 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7535 for ac_hdr in X11/extensions/Xv.h
7537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7539 echo "configure:7540: checking for $ac_hdr" >&5
7540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7541 echo $ac_n "(cached) $ac_c" 1>&6
7543 cat > conftest.$ac_ext <<EOF
7544 #line 7545 "configure"
7545 #include "confdefs.h"
7548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7549 { (eval echo configure:7550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7551 if test -z "$ac_err"; then
7553 eval "ac_cv_header_$ac_safe=yes"
7556 echo "configure: failed program was:" >&5
7557 cat conftest.$ac_ext >&5
7559 eval "ac_cv_header_$ac_safe=no"
7563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7564 echo "$ac_t""yes" 1>&6
7565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7566 cat >> confdefs.h <<EOF
7567 #define $ac_tr_hdr 1
7570 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7571 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7572 echo "configure:7573: checking for XvPutImage in -lXv_pic" >&5
7573 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7577 ac_save_LIBS="$LIBS"
7578 LIBS="-lXv_pic $LIBS"
7579 cat > conftest.$ac_ext <<EOF
7580 #line 7581 "configure"
7581 #include "confdefs.h"
7582 /* Override any gcc2 internal prototype to avoid an error. */
7583 /* We use char because int might match the return type of a gcc2
7584 builtin and then its argument prototype would still apply. */
7591 if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7593 eval "ac_cv_lib_$ac_lib_var=yes"
7595 echo "configure: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7598 eval "ac_cv_lib_$ac_lib_var=no"
7601 LIBS="$ac_save_LIBS"
7604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7605 echo "$ac_t""yes" 1>&6
7606 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7607 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7608 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7609 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7611 echo "$ac_t""no" 1>&6
7612 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7613 echo "configure:7614: checking for XvPutImage in -lXv" >&5
7614 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7616 echo $ac_n "(cached) $ac_c" 1>&6
7618 ac_save_LIBS="$LIBS"
7620 cat > conftest.$ac_ext <<EOF
7621 #line 7622 "configure"
7622 #include "confdefs.h"
7623 /* Override any gcc2 internal prototype to avoid an error. */
7624 /* We use char because int might match the return type of a gcc2
7625 builtin and then its argument prototype would still apply. */
7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7634 eval "ac_cv_lib_$ac_lib_var=yes"
7636 echo "configure: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7639 eval "ac_cv_lib_$ac_lib_var=no"
7642 LIBS="$ac_save_LIBS"
7645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7646 echo "$ac_t""yes" 1>&6
7647 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7648 PLUGINS="${PLUGINS} video_output/x11/xvideo"
7649 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7650 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7652 echo "$ac_t""no" 1>&6
7653 # Otherwise... well, do nothing.
7661 CFLAGS="${save_CFLAGS}"
7663 CPPFLAGS="${save_CPPFLAGS}"
7665 echo "$ac_t""no" 1>&6
7671 # Check whether --enable-sdl or --disable-sdl was given.
7672 if test "${enable_sdl+set}" = set; then
7673 enableval="$enable_sdl"
7677 if test "x${enable_sdl}" != "xno"
7680 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7681 if test "${with_sdl_config_path+set}" = set; then
7682 withval="$with_sdl_config_path"
7683 if test "x${with_sdl_config_path}" != "xno"
7685 SDL_PATH="${with_sdl_config_path}:${PATH}"
7689 # Extract the first word of "sdl12-config", so it can be a program name with args.
7690 set dummy sdl12-config; ac_word=$2
7691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7692 echo "configure:7693: checking for $ac_word" >&5
7693 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7694 echo $ac_n "(cached) $ac_c" 1>&6
7696 case "$SDL12_CONFIG" in
7698 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7701 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7705 ac_dummy="${SDL_PATH}"
7706 for ac_dir in $ac_dummy; do
7707 test -z "$ac_dir" && ac_dir=.
7708 if test -f $ac_dir/$ac_word; then
7709 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7714 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7718 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7719 if test -n "$SDL12_CONFIG"; then
7720 echo "$ac_t""$SDL12_CONFIG" 1>&6
7722 echo "$ac_t""no" 1>&6
7725 SDL_CONFIG="${SDL12_CONFIG}"
7726 SDL_HEADER="SDL12/SDL.h"
7727 if test "x${SDL_CONFIG}" = "xno"
7729 # Extract the first word of "sdl11-config", so it can be a program name with args.
7730 set dummy sdl11-config; ac_word=$2
7731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7732 echo "configure:7733: checking for $ac_word" >&5
7733 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7734 echo $ac_n "(cached) $ac_c" 1>&6
7736 case "$SDL11_CONFIG" in
7738 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7741 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7745 ac_dummy="${SDL_PATH}"
7746 for ac_dir in $ac_dummy; do
7747 test -z "$ac_dir" && ac_dir=.
7748 if test -f $ac_dir/$ac_word; then
7749 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7754 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7758 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7759 if test -n "$SDL11_CONFIG"; then
7760 echo "$ac_t""$SDL11_CONFIG" 1>&6
7762 echo "$ac_t""no" 1>&6
7765 SDL_CONFIG=${SDL11_CONFIG}
7766 SDL_HEADER="SDL11/SDL.h"
7768 if test "x${SDL_CONFIG}" = "xno"
7770 # Extract the first word of "sdl-config", so it can be a program name with args.
7771 set dummy sdl-config; ac_word=$2
7772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7773 echo "configure:7774: checking for $ac_word" >&5
7774 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7777 case "$SDL_CONFIG" in
7779 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7782 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7786 ac_dummy="${SDL_PATH}"
7787 for ac_dir in $ac_dummy; do
7788 test -z "$ac_dir" && ac_dir=.
7789 if test -f $ac_dir/$ac_word; then
7790 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7795 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7799 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7800 if test -n "$SDL_CONFIG"; then
7801 echo "$ac_t""$SDL_CONFIG" 1>&6
7803 echo "$ac_t""no" 1>&6
7806 SDL_HEADER="SDL/SDL.h"
7808 if test "x${SDL_CONFIG}" != "xno"
7810 PLUGINS="${PLUGINS} video_output/sdl/sdl"
7811 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7812 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7813 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7814 for ac_hdr in ${SDL_HEADER}
7816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7818 echo "configure:7819: checking for $ac_hdr" >&5
7819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7828 { (eval echo configure:7829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7830 if test -z "$ac_err"; then
7832 eval "ac_cv_header_$ac_safe=yes"
7835 echo "configure: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7838 eval "ac_cv_header_$ac_safe=no"
7842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7843 echo "$ac_t""yes" 1>&6
7844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7845 cat >> confdefs.h <<EOF
7846 #define $ac_tr_hdr 1
7848 cat >> confdefs.h <<EOF
7849 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7853 echo "$ac_t""no" 1>&6
7854 { echo "configure: error: The development package for SDL is not installed.
7855 Please install it and try again. Alternatively you can also configure with
7856 --disable-sdl." 1>&2; exit 1; }
7861 CPPFLAGS="${save_CPPFLAGS}"
7862 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7864 { echo "configure: error: The development package for SDL is not installed.
7865 Please install it and try again. Alternatively you can also configure with
7866 --disable-sdl." 1>&2; exit 1; }
7868 elif test "x${enable_sdl}" = "xyes"
7870 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7871 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7876 # Check whether --enable-directx or --disable-directx was given.
7877 if test "${enable_directx+set}" = set; then
7878 enableval="$enable_directx"
7882 if test "x${enable_directx}" != "xno"
7884 if test "x${SYS}" = "xmingw32"
7886 # Check whether --with-directx or --without-directx was given.
7887 if test "${with_directx+set}" = set; then
7888 withval="$with_directx"
7892 if test "x${with_directx}" = "x"
7894 for ac_hdr in ddraw.h
7896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7898 echo "configure:7899: checking for $ac_hdr" >&5
7899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7902 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7908 { (eval echo configure:7909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7910 if test -z "$ac_err"; then
7912 eval "ac_cv_header_$ac_safe=yes"
7915 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7918 eval "ac_cv_header_$ac_safe=no"
7922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7923 echo "$ac_t""yes" 1>&6
7924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7925 cat >> confdefs.h <<EOF
7926 #define $ac_tr_hdr 1
7928 PLUGINS="${PLUGINS} video_output/directx/directx"
7929 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7931 echo "$ac_t""no" 1>&6
7936 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7937 echo "configure:7938: checking for directX headers in ${with_directx}" >&5
7938 if test -f ${with_directx}/ddraw.h
7940 PLUGINS="${PLUGINS} video_output/directx/directx"
7941 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7942 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7943 echo "$ac_t""yes" 1>&6
7945 echo "$ac_t""no" 1>&6
7946 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7952 # Check whether --enable-fb or --disable-fb was given.
7953 if test "${enable_fb+set}" = set; then
7954 enableval="$enable_fb"
7958 if test "x${enable_fb}" != "xno"
7960 for ac_hdr in linux/fb.h
7962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7964 echo "configure:7965: checking for $ac_hdr" >&5
7965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7968 cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure"
7970 #include "confdefs.h"
7973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7974 { (eval echo configure:7975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7976 if test -z "$ac_err"; then
7978 eval "ac_cv_header_$ac_safe=yes"
7981 echo "configure: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7984 eval "ac_cv_header_$ac_safe=no"
7988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7989 echo "$ac_t""yes" 1>&6
7990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7991 cat >> confdefs.h <<EOF
7992 #define $ac_tr_hdr 1
7995 PLUGINS="${PLUGINS} video_output/fb/fb"
7998 echo "$ac_t""no" 1>&6
8004 # Check whether --enable-mga or --disable-mga was given.
8005 if test "${enable_mga+set}" = set; then
8006 enableval="$enable_mga"
8007 if test "x${enable_mga}" = "xyes"
8009 PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga"
8014 # Check whether --enable-ggi or --disable-ggi was given.
8015 if test "${enable_ggi+set}" = set; then
8016 enableval="$enable_ggi"
8020 if test "x${enable_ggi}" = "xyes"
8022 PLUGINS="${PLUGINS} video_output/ggi/ggi"
8023 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
8024 # Check whether --with-ggi or --without-ggi was given.
8025 if test "${with_ggi+set}" = set; then
8027 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
8029 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
8030 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
8036 # Check whether --enable-glide or --disable-glide was given.
8037 if test "${enable_glide+set}" = set; then
8038 enableval="$enable_glide"
8042 if test "x${enable_glide}" = "xyes"
8044 PLUGINS="${PLUGINS} video_output/glide/glide"
8045 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
8046 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
8047 # Check whether --with-glide or --without-glide was given.
8048 if test "${with_glide+set}" = set; then
8049 withval="$with_glide"
8050 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
8052 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
8053 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
8059 # Check whether --enable-aa or --disable-aa was given.
8060 if test "${enable_aa+set}" = set; then
8061 enableval="$enable_aa"
8065 if test "x${enable_aa}" = "xyes"
8067 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
8068 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
8069 echo "configure:8070: checking for aalib.h" >&5
8070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8073 cat > conftest.$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8079 { (eval echo configure:8080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8081 if test -z "$ac_err"; then
8083 eval "ac_cv_header_$ac_safe=yes"
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8089 eval "ac_cv_header_$ac_safe=no"
8093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8094 echo "$ac_t""yes" 1>&6
8097 echo "$ac_t""no" 1>&6
8101 if test "x${have_aa}" = "xtrue"
8103 PLUGINS="${PLUGINS} video_output/aa/aa"
8104 aa_LDFLAGS="${aa_LDFLAGS} -laa"
8109 # Check whether --with- or --without- was given.
8110 if test "${with_+set}" = set; then
8116 # Check whether --enable-oss or --disable-oss was given.
8117 if test "${enable_oss+set}" = set; then
8118 enableval="$enable_oss"
8123 if test "x${enable_oss}" != "xno" &&
8124 (test "x${SYS}" != "xmingw32" || test "x${enable_oss}" = "xyes")
8126 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
8128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8130 echo "configure:8131: checking for $ac_hdr" >&5
8131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8132 echo $ac_n "(cached) $ac_c" 1>&6
8134 cat > conftest.$ac_ext <<EOF
8135 #line 8136 "configure"
8136 #include "confdefs.h"
8139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8140 { (eval echo configure:8141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8142 if test -z "$ac_err"; then
8144 eval "ac_cv_header_$ac_safe=yes"
8147 echo "configure: failed program was:" >&5
8148 cat conftest.$ac_ext >&5
8150 eval "ac_cv_header_$ac_safe=no"
8154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8157 cat >> confdefs.h <<EOF
8158 #define $ac_tr_hdr 1
8161 PLUGINS="${PLUGINS} audio_output/oss"
8162 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
8163 echo "configure:8164: checking for main in -lossaudio" >&5
8164 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
8165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8168 ac_save_LIBS="$LIBS"
8169 LIBS="-lossaudio $LIBS"
8170 cat > conftest.$ac_ext <<EOF
8171 #line 8172 "configure"
8172 #include "confdefs.h"
8178 if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8180 eval "ac_cv_lib_$ac_lib_var=yes"
8182 echo "configure: failed program was:" >&5
8183 cat conftest.$ac_ext >&5
8185 eval "ac_cv_lib_$ac_lib_var=no"
8188 LIBS="$ac_save_LIBS"
8191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8192 echo "$ac_t""yes" 1>&6
8193 oss_LDFLAGS="${oss_LDFLAGS} -lossaudio"
8195 echo "$ac_t""no" 1>&6
8200 echo "$ac_t""no" 1>&6
8206 # Check whether --enable-esd or --disable-esd was given.
8207 if test "${enable_esd+set}" = set; then
8208 enableval="$enable_esd"
8209 if test "x${enable_esd}" = "xyes"
8211 # Extract the first word of "esd-config", so it can be a program name with args.
8212 set dummy esd-config; ac_word=$2
8213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8214 echo "configure:8215: checking for $ac_word" >&5
8215 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
8216 echo $ac_n "(cached) $ac_c" 1>&6
8218 case "$ESD_CONFIG" in
8220 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
8223 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
8226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8228 for ac_dir in $ac_dummy; do
8229 test -z "$ac_dir" && ac_dir=.
8230 if test -f $ac_dir/$ac_word; then
8231 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
8236 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
8240 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
8241 if test -n "$ESD_CONFIG"; then
8242 echo "$ac_t""$ESD_CONFIG" 1>&6
8244 echo "$ac_t""no" 1>&6
8247 if test "x${ESD_CONFIG}" != "xno"
8249 #PLUGINS="${PLUGINS} audio_output/esd"
8250 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
8251 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
8257 # Check whether --enable-arts or --disable-arts was given.
8258 if test "${enable_arts+set}" = set; then
8259 enableval="$enable_arts"
8260 if test "x${enable_arts}" = "xyes"
8262 # Extract the first word of "artsc-config", so it can be a program name with args.
8263 set dummy artsc-config; ac_word=$2
8264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8265 echo "configure:8266: checking for $ac_word" >&5
8266 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
8267 echo $ac_n "(cached) $ac_c" 1>&6
8269 case "$ARTS_CONFIG" in
8271 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8274 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8279 for ac_dir in $ac_dummy; do
8280 test -z "$ac_dir" && ac_dir=.
8281 if test -f $ac_dir/$ac_word; then
8282 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8287 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8291 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8292 if test -n "$ARTS_CONFIG"; then
8293 echo "$ac_t""$ARTS_CONFIG" 1>&6
8295 echo "$ac_t""no" 1>&6
8298 if test "x${ARTS_CONFIG}" != "xno"
8300 #PLUGINS="${PLUGINS} audio_output/arts"
8301 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8302 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8308 # Check whether --enable-alsa or --disable-alsa was given.
8309 if test "${enable_alsa+set}" = set; then
8310 enableval="$enable_alsa"
8311 if test "x${enable_alsa}" = "xyes"
8313 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8314 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8315 echo "configure:8316: checking for alsa/asoundlib.h" >&5
8316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8317 echo $ac_n "(cached) $ac_c" 1>&6
8319 cat > conftest.$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8322 #include <alsa/asoundlib.h>
8324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8325 { (eval echo configure:8326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8327 if test -z "$ac_err"; then
8329 eval "ac_cv_header_$ac_safe=yes"
8332 echo "configure: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8335 eval "ac_cv_header_$ac_safe=no"
8339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8340 echo "$ac_t""yes" 1>&6
8341 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8342 echo "configure:8343: checking for main in -lasound" >&5
8343 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8347 ac_save_LIBS="$LIBS"
8348 LIBS="-lasound $LIBS"
8349 cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8357 if { (eval echo configure:8358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8359 eval "ac_cv_lib_$ac_lib_var=yes"
8361 echo "configure: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8364 eval "ac_cv_lib_$ac_lib_var=no"
8367 LIBS="$ac_save_LIBS"
8370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8371 echo "$ac_t""yes" 1>&6
8374 echo "$ac_t""no" 1>&6
8379 echo "$ac_t""no" 1>&6
8383 if test "x${have_alsa}" = "xtrue"
8385 #PLUGINS="${PLUGINS} audio_output/alsa"
8386 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8392 # Check whether --enable-waveout or --disable-waveout was given.
8393 if test "${enable_waveout+set}" = set; then
8394 enableval="$enable_waveout"
8398 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8400 #PLUGINS="${PLUGINS} audio_output/waveout"
8401 waveout_LDFLAGS="-lwinmm"
8405 # Check whether --with- or --without- was given.
8406 if test "${with_+set}" = set; then
8412 if test "x${SYS}" = "xbeos"
8414 PLUGINS="${PLUGINS} gui/beos/beos"
8417 # Check whether --enable-gtk or --disable-gtk was given.
8418 if test "${enable_gtk+set}" = set; then
8419 enableval="$enable_gtk"
8423 if test "x${enable_gtk}" != "xno"
8426 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8427 if test "${with_gtk_config_path+set}" = set; then
8428 withval="$with_gtk_config_path"
8429 if test "x${with_gtk_config_path}" != "xno"
8431 GTK_PATH="${with_gtk_config_path}:${PATH}"
8435 # look for gtk-config
8436 # Extract the first word of "gtk12-config", so it can be a program name with args.
8437 set dummy gtk12-config; ac_word=$2
8438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8439 echo "configure:8440: checking for $ac_word" >&5
8440 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8441 echo $ac_n "(cached) $ac_c" 1>&6
8443 case "$GTK12_CONFIG" in
8445 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8448 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8452 ac_dummy="${GTK_PATH}"
8453 for ac_dir in $ac_dummy; do
8454 test -z "$ac_dir" && ac_dir=.
8455 if test -f $ac_dir/$ac_word; then
8456 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8461 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8465 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8466 if test -n "$GTK12_CONFIG"; then
8467 echo "$ac_t""$GTK12_CONFIG" 1>&6
8469 echo "$ac_t""no" 1>&6
8472 GTK_CONFIG=${GTK12_CONFIG}
8473 if test "x${GTK_CONFIG}" = "xno"
8475 # Extract the first word of "gtk-config", so it can be a program name with args.
8476 set dummy gtk-config; ac_word=$2
8477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8478 echo "configure:8479: checking for $ac_word" >&5
8479 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8480 echo $ac_n "(cached) $ac_c" 1>&6
8482 case "$GTK_CONFIG" in
8484 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8487 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8491 ac_dummy="${GTK_PATH}"
8492 for ac_dir in $ac_dummy; do
8493 test -z "$ac_dir" && ac_dir=.
8494 if test -f $ac_dir/$ac_word; then
8495 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8500 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8504 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8505 if test -n "$GTK_CONFIG"; then
8506 echo "$ac_t""$GTK_CONFIG" 1>&6
8508 echo "$ac_t""no" 1>&6
8512 if test "x${GTK_CONFIG}" != "xno"
8514 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8516 { 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; }
8518 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8519 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8520 # now look for the gtk.h header
8521 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8522 ac_cv_gtk_headers=yes
8523 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8527 echo "configure:8528: checking for $ac_hdr" >&5
8528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8529 echo $ac_n "(cached) $ac_c" 1>&6
8531 cat > conftest.$ac_ext <<EOF
8532 #line 8533 "configure"
8533 #include "confdefs.h"
8536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8537 { (eval echo configure:8538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8539 if test -z "$ac_err"; then
8541 eval "ac_cv_header_$ac_safe=yes"
8544 echo "configure: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8547 eval "ac_cv_header_$ac_safe=no"
8551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8552 echo "$ac_t""yes" 1>&6
8553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8554 cat >> confdefs.h <<EOF
8555 #define $ac_tr_hdr 1
8559 echo "$ac_t""no" 1>&6
8560 ac_cv_gtk_headers=no
8561 echo "Cannot find gtk development headers."
8566 if test "x${ac_cv_gtk_headers}" = "xyes"
8568 PLUGINS="${PLUGINS} gui/gtk/gtk"
8569 ALIASES="${ALIASES} gvlc"
8571 CPPFLAGS="${save_CPPFLAGS}"
8575 # Check whether --enable-familiar or --disable-familiar was given.
8576 if test "${enable_familiar+set}" = set; then
8577 enableval="$enable_familiar"
8581 if test "x${enable_familiar}" = "xyes"
8584 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8585 if test "${with_gtk_config_path+set}" = set; then
8586 withval="$with_gtk_config_path"
8587 if test "x${with_gtk_config_path}" != "xno"
8589 GTK_PATH="${with_gtk_config_path}:${PATH}"
8593 # look for gtk-config
8594 # Extract the first word of "gtk12-config", so it can be a program name with args.
8595 set dummy gtk12-config; ac_word=$2
8596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8597 echo "configure:8598: checking for $ac_word" >&5
8598 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8599 echo $ac_n "(cached) $ac_c" 1>&6
8601 case "$GTK12_CONFIG" in
8603 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8606 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8610 ac_dummy="${GTK_PATH}"
8611 for ac_dir in $ac_dummy; do
8612 test -z "$ac_dir" && ac_dir=.
8613 if test -f $ac_dir/$ac_word; then
8614 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8619 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8623 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8624 if test -n "$GTK12_CONFIG"; then
8625 echo "$ac_t""$GTK12_CONFIG" 1>&6
8627 echo "$ac_t""no" 1>&6
8630 GTK_CONFIG=${GTK12_CONFIG}
8631 if test "x${GTK_CONFIG}" = "xno"
8633 # Extract the first word of "gtk-config", so it can be a program name with args.
8634 set dummy gtk-config; ac_word=$2
8635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8636 echo "configure:8637: checking for $ac_word" >&5
8637 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8638 echo $ac_n "(cached) $ac_c" 1>&6
8640 case "$GTK_CONFIG" in
8642 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8645 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8649 ac_dummy="${GTK_PATH}"
8650 for ac_dir in $ac_dummy; do
8651 test -z "$ac_dir" && ac_dir=.
8652 if test -f $ac_dir/$ac_word; then
8653 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8658 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8662 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8663 if test -n "$GTK_CONFIG"; then
8664 echo "$ac_t""$GTK_CONFIG" 1>&6
8666 echo "$ac_t""no" 1>&6
8670 if test "x${GTK_CONFIG}" != "xno"
8672 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8674 { 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; }
8676 familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8677 familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8678 # now look for the gtk.h header
8679 CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8680 ac_cv_gtk_headers=yes
8681 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8685 echo "configure:8686: checking for $ac_hdr" >&5
8686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8687 echo $ac_n "(cached) $ac_c" 1>&6
8689 cat > conftest.$ac_ext <<EOF
8690 #line 8691 "configure"
8691 #include "confdefs.h"
8694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8695 { (eval echo configure:8696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8697 if test -z "$ac_err"; then
8699 eval "ac_cv_header_$ac_safe=yes"
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8705 eval "ac_cv_header_$ac_safe=no"
8709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8710 echo "$ac_t""yes" 1>&6
8711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8712 cat >> confdefs.h <<EOF
8713 #define $ac_tr_hdr 1
8717 echo "$ac_t""no" 1>&6
8718 ac_cv_gtk_headers=no
8719 echo "Cannot find gtk development headers."
8724 if test "x${ac_cv_gtk_headers}" = "xyes"
8726 PLUGINS="${PLUGINS} gui/familiar/familiar"
8728 CPPFLAGS="${save_CPPFLAGS}"
8732 # Check whether --enable-gnome or --disable-gnome was given.
8733 if test "${enable_gnome+set}" = set; then
8734 enableval="$enable_gnome"
8735 if test "x${enable_gnome}" = "xyes"; then
8736 # look for gnome-config
8737 # Extract the first word of "gnome-config", so it can be a program name with args.
8738 set dummy gnome-config; ac_word=$2
8739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8740 echo "configure:8741: checking for $ac_word" >&5
8741 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8742 echo $ac_n "(cached) $ac_c" 1>&6
8744 case "$GNOME_CONFIG" in
8746 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8749 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8754 for ac_dir in $ac_dummy; do
8755 test -z "$ac_dir" && ac_dir=.
8756 if test -f $ac_dir/$ac_word; then
8757 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8762 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8766 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8767 if test -n "$GNOME_CONFIG"; then
8768 echo "$ac_t""$GNOME_CONFIG" 1>&6
8770 echo "$ac_t""no" 1>&6
8773 if test -x ${GNOME_CONFIG}
8775 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8776 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8778 # now look for the gnome.h header
8779 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8780 for ac_hdr in gnome.h
8782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8784 echo "configure:8785: checking for $ac_hdr" >&5
8785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8794 { (eval echo configure:8795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8796 if test -z "$ac_err"; then
8798 eval "ac_cv_header_$ac_safe=yes"
8801 echo "configure: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8804 eval "ac_cv_header_$ac_safe=no"
8808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8809 echo "$ac_t""yes" 1>&6
8810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8811 cat >> confdefs.h <<EOF
8812 #define $ac_tr_hdr 1
8815 PLUGINS="${PLUGINS} gui/gtk/gnome"
8816 ALIASES="${ALIASES} gnome-vlc"
8819 echo "$ac_t""no" 1>&6
8820 { echo "configure: error: Can't find gnome headers. Please install the gnome
8821 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8826 CPPFLAGS="${save_CPPFLAGS}"
8831 # Check whether --enable-qt or --disable-qt was given.
8832 if test "${enable_qt+set}" = set; then
8833 enableval="$enable_qt"
8834 if test "x${enable_qt}" = "xyes"; then
8835 PLUGINS="${PLUGINS} gui/qt/qt"
8836 ALIASES="${ALIASES} qvlc"
8837 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8838 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8839 if test -x ${QTDIR}/bin/moc
8841 MOC=${QTDIR}/bin/moc
8849 # Check whether --enable-kde or --disable-kde was given.
8850 if test "${enable_kde+set}" = set; then
8851 enableval="$enable_kde"
8852 if test "x${enable_kde}" = "xyes"; then
8853 PLUGINS="${PLUGINS} gui/kde/kde"
8854 ALIASES="${ALIASES} kvlc"
8855 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8856 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8857 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8858 if test -x ${QTDIR}/bin/moc
8860 MOC=${QTDIR}/bin/moc
8868 # Check whether --enable-macosx or --disable-macosx was given.
8869 if test "${enable_macosx+set}" = set; then
8870 enableval="$enable_macosx"
8871 if test "x${enable_macosx}" = "xyes"
8873 BUILTINS="${BUILTINS} gui/macosx/macosx"
8874 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8877 for ac_hdr in Cocoa/Cocoa.h
8879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8881 echo "configure:8882: checking for $ac_hdr" >&5
8882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8883 echo $ac_n "(cached) $ac_c" 1>&6
8885 cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8891 { (eval echo configure:8892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8893 if test -z "$ac_err"; then
8895 eval "ac_cv_header_$ac_safe=yes"
8898 echo "configure: failed program was:" >&5
8899 cat conftest.$ac_ext >&5
8901 eval "ac_cv_header_$ac_safe=no"
8905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8906 echo "$ac_t""yes" 1>&6
8907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8908 cat >> confdefs.h <<EOF
8909 #define $ac_tr_hdr 1
8911 BUILTINS="${BUILTINS} gui/macosx/macosx"
8912 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8915 echo "$ac_t""no" 1>&6
8922 # Check whether --enable-qnx or --disable-qnx was given.
8923 if test "${enable_qnx+set}" = set; then
8924 enableval="$enable_qnx"
8928 if test "x${enable_qnx}" != "xno"
8932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8934 echo "configure:8935: checking for $ac_hdr" >&5
8935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8944 { (eval echo configure:8945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8946 if test -z "$ac_err"; then
8948 eval "ac_cv_header_$ac_safe=yes"
8951 echo "configure: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8954 eval "ac_cv_header_$ac_safe=no"
8958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8959 echo "$ac_t""yes" 1>&6
8960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8961 cat >> confdefs.h <<EOF
8962 #define $ac_tr_hdr 1
8965 PLUGINS="${PLUGINS} gui/qnx/qnx"
8966 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8969 echo "$ac_t""no" 1>&6
8975 # Check whether --enable-intfwin or --disable-intfwin was given.
8976 if test "${enable_intfwin+set}" = set; then
8977 enableval="$enable_intfwin"
8978 if test "x${enable_intfwin}" != "xno"
8980 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8981 if test "${with_bcbuilder+set}" = set; then
8982 withval="$with_bcbuilder"
8986 if test "x${with_bcbuilder}" != "x"
8988 BCBUILDER="${with_bcbuilder}"
8990 PLUGINS="${PLUGINS} gui/win32/win32"
8995 # Check whether --enable-ncurses or --disable-ncurses was given.
8996 if test "${enable_ncurses+set}" = set; then
8997 enableval="$enable_ncurses"
8998 if test "x${enable_ncurses}" = "xyes"; then
8999 PLUGINS="${PLUGINS} gui/ncurses/ncurses"
9000 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
9005 # Check whether --enable-xosd or --disable-xosd was given.
9006 if test "${enable_xosd+set}" = set; then
9007 enableval="$enable_xosd"
9011 if test "x${enable_xosd}" = "xyes"
9013 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
9014 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
9015 echo "configure:9016: checking for xosd.h" >&5
9016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9017 echo $ac_n "(cached) $ac_c" 1>&6
9019 cat > conftest.$ac_ext <<EOF
9020 #line 9021 "configure"
9021 #include "confdefs.h"
9024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9025 { (eval echo configure:9026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9027 if test -z "$ac_err"; then
9029 eval "ac_cv_header_$ac_safe=yes"
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9035 eval "ac_cv_header_$ac_safe=no"
9039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9040 echo "$ac_t""yes" 1>&6
9043 echo "$ac_t""no" 1>&6
9047 if test "x${have_xosd}" = "xtrue"
9049 PLUGINS="${PLUGINS} visualization/xosd/xosd"
9050 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
9054 # Check whether --enable-lirc or --disable-lirc was given.
9055 if test "${enable_lirc+set}" = set; then
9056 enableval="$enable_lirc"
9060 if test "x${enable_lirc}" = "xyes"
9062 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
9063 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
9064 echo "configure:9065: checking for lirc/lirc_client.h" >&5
9065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9068 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9071 #include <lirc/lirc_client.h>
9073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9074 { (eval echo configure:9075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9076 if test -z "$ac_err"; then
9078 eval "ac_cv_header_$ac_safe=yes"
9081 echo "configure: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9084 eval "ac_cv_header_$ac_safe=no"
9088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9089 echo "$ac_t""yes" 1>&6
9090 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
9091 echo "configure:9092: checking for lirc_init in -llirc_client" >&5
9092 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
9093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9094 echo $ac_n "(cached) $ac_c" 1>&6
9096 ac_save_LIBS="$LIBS"
9097 LIBS="-llirc_client $LIBS"
9098 cat > conftest.$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9101 /* Override any gcc2 internal prototype to avoid an error. */
9102 /* We use char because int might match the return type of a gcc2
9103 builtin and then its argument prototype would still apply. */
9110 if { (eval echo configure:9111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9112 eval "ac_cv_lib_$ac_lib_var=yes"
9114 echo "configure: failed program was:" >&5
9115 cat conftest.$ac_ext >&5
9117 eval "ac_cv_lib_$ac_lib_var=no"
9120 LIBS="$ac_save_LIBS"
9123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9124 echo "$ac_t""yes" 1>&6
9127 echo "$ac_t""no" 1>&6
9132 echo "$ac_t""no" 1>&6
9136 if test "x${have_lirc}" = "xtrue"
9138 PLUGINS="${PLUGINS} control/lirc/lirc"
9139 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
9143 # Check whether --with- or --without- was given.
9144 if test "${with_+set}" = set; then
9150 # Check whether --with-words or --without-words was given.
9151 if test "${with_words+set}" = set; then
9152 withval="$with_words"
9156 case "x${with_words}" in
9158 ac_cv_c_bigendian=yes
9161 ac_cv_c_bigendian=no
9164 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
9165 echo "configure:9166: checking whether the byte order is big-endian" >&5
9166 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9167 echo $ac_n "(cached) $ac_c" 1>&6
9169 ac_cv_c_bigendian="unknown"
9170 cat >conftest.c <<EOF
9171 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
9172 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
9173 void _a(void) { char*s = (char*)am; s = (char *)ai; }
9174 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
9175 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
9176 void _e(void) { char*s = (char*)em; s = (char*)ei; }
9177 int main(void) { _a(); _e(); return 0; }
9180 if test -f conftest.c
9182 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
9183 && test -f conftest.o
9185 if test "`strings conftest.o | grep BIGenDianSyS`"
9187 ac_cv_c_bigendian="yes"
9189 if test "`strings conftest.o | grep LiTTleEnDian`"
9191 ac_cv_c_bigendian="no"
9198 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9199 if test "x${ac_cv_c_bigendian}" = "xunknown"
9201 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
9205 if test "${ac_cv_c_bigendian}" = "yes"
9207 cat >> confdefs.h <<\EOF
9208 #define WORDS_BIGENDIAN 1
9216 # Check whether --enable-gprof or --disable-gprof was given.
9217 if test "${enable_gprof+set}" = set; then
9218 enableval="$enable_gprof"
9219 if test "x${enable_gprof}" = "xyes"
9229 # Check whether --enable-cprof or --disable-cprof was given.
9230 if test "${enable_cprof+set}" = set; then
9231 enableval="$enable_cprof"
9232 if test "x${enable_cprof}" = "xyes"
9234 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
9242 # Check whether --enable-pth or --disable-pth was given.
9243 if test "${enable_pth+set}" = set; then
9244 enableval="$enable_pth"
9245 if test "x${enable_pth}" = "xyes"; then
9246 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
9247 echo "configure:9248: checking for pth_init in -lpth" >&5
9248 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
9249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9250 echo $ac_n "(cached) $ac_c" 1>&6
9252 ac_save_LIBS="$LIBS"
9254 cat > conftest.$ac_ext <<EOF
9255 #line 9256 "configure"
9256 #include "confdefs.h"
9257 /* Override any gcc2 internal prototype to avoid an error. */
9258 /* We use char because int might match the return type of a gcc2
9259 builtin and then its argument prototype would still apply. */
9266 if { (eval echo configure:9267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9268 eval "ac_cv_lib_$ac_lib_var=yes"
9270 echo "configure: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9273 eval "ac_cv_lib_$ac_lib_var=no"
9276 LIBS="$ac_save_LIBS"
9279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9280 echo "$ac_t""yes" 1>&6
9281 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9282 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9283 cat >> confdefs.h <<EOF
9284 #define $ac_tr_lib 1
9290 echo "$ac_t""no" 1>&6
9293 cat > conftest.$ac_ext <<EOF
9294 #line 9295 "configure"
9295 #include "confdefs.h"
9298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9299 egrep "pth_init" >/dev/null 2>&1; then
9302 cat >> confdefs.h <<\EOF
9303 #define PTH_INIT_IN_PTH_H 1
9315 # Check whether --enable-st or --disable-st was given.
9316 if test "${enable_st+set}" = set; then
9317 enableval="$enable_st"
9318 if test "x${enable_st}" = "xyes"; then
9319 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9320 echo "configure:9321: checking for st_init in -lst" >&5
9321 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9323 echo $ac_n "(cached) $ac_c" 1>&6
9325 ac_save_LIBS="$LIBS"
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9330 /* Override any gcc2 internal prototype to avoid an error. */
9331 /* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */
9339 if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9341 eval "ac_cv_lib_$ac_lib_var=yes"
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9346 eval "ac_cv_lib_$ac_lib_var=no"
9349 LIBS="$ac_save_LIBS"
9352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9353 echo "$ac_t""yes" 1>&6
9354 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9355 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9356 cat >> confdefs.h <<EOF
9357 #define $ac_tr_lib 1
9363 echo "$ac_t""no" 1>&6
9366 cat > conftest.$ac_ext <<EOF
9367 #line 9368 "configure"
9368 #include "confdefs.h"
9371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9372 egrep "st_init" >/dev/null 2>&1; then
9375 cat >> confdefs.h <<\EOF
9376 #define ST_INIT_IN_ST_H 1
9388 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9389 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9392 # Check whether --enable-mozilla or --disable-mozilla was given.
9393 if test "${enable_mozilla+set}" = set; then
9394 enableval="$enable_mozilla"
9398 if test "x${enable_mozilla}" = "xyes"
9400 # Extract the first word of "mozilla-config", so it can be a program name with args.
9401 set dummy mozilla-config; ac_word=$2
9402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9403 echo "configure:9404: checking for $ac_word" >&5
9404 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9405 echo $ac_n "(cached) $ac_c" 1>&6
9407 case "$MOZILLA_CONFIG" in
9409 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9412 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9417 for ac_dir in $ac_dummy; do
9418 test -z "$ac_dir" && ac_dir=.
9419 if test -f $ac_dir/$ac_word; then
9420 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9425 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9429 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9430 if test -n "$MOZILLA_CONFIG"; then
9431 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9433 echo "$ac_t""no" 1>&6
9436 if test "x${MOZILLA_CONFIG}" != "xno"
9438 if test "x${SYS}" != "xmingw32"; then
9439 LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9440 echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9441 echo "configure:9442: checking for XtStrings in -lXt" >&5
9442 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9444 echo $ac_n "(cached) $ac_c" 1>&6
9446 ac_save_LIBS="$LIBS"
9448 cat > conftest.$ac_ext <<EOF
9449 #line 9450 "configure"
9450 #include "confdefs.h"
9451 /* Override any gcc2 internal prototype to avoid an error. */
9452 /* We use char because int might match the return type of a gcc2
9453 builtin and then its argument prototype would still apply. */
9460 if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9462 eval "ac_cv_lib_$ac_lib_var=yes"
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9467 eval "ac_cv_lib_$ac_lib_var=no"
9470 LIBS="$ac_save_LIBS"
9473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9474 echo "$ac_t""yes" 1>&6
9476 mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9479 echo "$ac_t""no" 1>&6
9482 LDFLAGS="${save_LDFLAGS}"
9485 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9486 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9490 # Check whether --enable-plugins or --disable-plugins was given.
9491 if test "${enable_plugins+set}" = set; then
9492 enableval="$enable_plugins"
9493 if test "x${enable_plugins}" = "xno"
9495 BUILTINS="${BUILTINS} ${PLUGINS}"
9501 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9503 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9505 BUILTINS="${BUILTINS} ${PLUGINS}"
9509 cat >> confdefs.h <<EOF
9510 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9513 cat >> confdefs.h <<EOF
9514 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9517 cat >> confdefs.h <<EOF
9518 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9522 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9523 cat >> confdefs.h <<EOF
9524 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9527 cat >> confdefs.h <<EOF
9528 #define MODULE_SYMBOL ${VLC_SYMBOL}
9532 DATA_PATH="${ac_tool_prefix}/share/videolan"
9534 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9537 CPPFLAGS="${save_CPPFLAGS}"
9538 CFLAGS="${save_CFLAGS}"
9539 LDFLAGS="${save_LDFLAGS}"
9541 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9542 for i in `echo ${BUILTINS} | sed -e 's#[^ ]*/##g'` ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9652 cat > confcache <<\EOF
9653 # This file is a shell script that caches the results of configure
9654 # tests run on this system so they can be shared between configure
9655 # scripts and configure runs. It is not useful on other systems.
9656 # If it contains results you don't want to keep, you may remove or edit it.
9658 # By default, configure uses ./config.cache as the cache file,
9659 # creating it if it does not exist already. You can give configure
9660 # the --cache-file=FILE option to use a different cache file; that is
9661 # what configure does when it calls configure scripts in
9662 # subdirectories, so they share the cache.
9663 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9664 # config.status only pays attention to the cache file if you give it the
9665 # --recheck option to rerun configure.
9668 # The following way of writing the cache mishandles newlines in values,
9669 # but we know of no workaround that is simple, portable, and efficient.
9670 # So, don't put newlines in cache variables' values.
9671 # Ultrix sh set writes to stderr and can't be redirected directly,
9672 # and sets the high bit in the cache file unless we assign to the vars.
9674 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9676 # `set' does not quote correctly, so add quotes (double-quote substitution
9677 # turns \\\\ into \\, and sed turns \\ into \).
9679 -e "s/'/'\\\\''/g" \
9680 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9683 # `set' quotes correctly as required by POSIX, so do not add quotes.
9684 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9687 if cmp -s $cache_file confcache; then
9690 if test -w $cache_file; then
9691 echo "updating cache $cache_file"
9692 cat confcache > $cache_file
9694 echo "not updating unwritable cache $cache_file"
9699 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9701 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9702 # Let make expand exec_prefix.
9703 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9705 # Any assignment to VPATH causes Sun make to only execute
9706 # the first set of double-colon rules, so remove it if not needed.
9707 # If there is a colon in the path, we need to keep it.
9708 if test "x$srcdir" = x.; then
9709 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9712 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9714 DEFS=-DHAVE_CONFIG_H
9716 # Without the "./", some shells look in PATH for config.status.
9717 : ${CONFIG_STATUS=./config.status}
9719 echo creating $CONFIG_STATUS
9720 rm -f $CONFIG_STATUS
9721 cat > $CONFIG_STATUS <<EOF
9723 # Generated automatically by configure.
9724 # Run this file to recreate the current configuration.
9725 # This directory was configured as follows,
9726 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9728 # $0 $ac_configure_args
9730 # Compiler output produced by configure, useful for debugging
9731 # configure, is in ./config.log if it exists.
9733 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9736 case "\$ac_option" in
9737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9738 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9739 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9740 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9741 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9743 -help | --help | --hel | --he | --h)
9744 echo "\$ac_cs_usage"; exit 0 ;;
9745 *) echo "\$ac_cs_usage"; exit 1 ;;
9749 ac_given_srcdir=$srcdir
9750 ac_given_INSTALL="$INSTALL"
9752 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
9754 cat >> $CONFIG_STATUS <<EOF
9756 # Protect against being on the right side of a sed subst in config.status.
9757 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9758 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9762 s%@CFLAGS@%$CFLAGS%g
9763 s%@CPPFLAGS@%$CPPFLAGS%g
9764 s%@CXXFLAGS@%$CXXFLAGS%g
9765 s%@FFLAGS@%$FFLAGS%g
9767 s%@LDFLAGS@%$LDFLAGS%g
9769 s%@exec_prefix@%$exec_prefix%g
9770 s%@prefix@%$prefix%g
9771 s%@program_transform_name@%$program_transform_name%g
9772 s%@bindir@%$bindir%g
9773 s%@sbindir@%$sbindir%g
9774 s%@libexecdir@%$libexecdir%g
9775 s%@datadir@%$datadir%g
9776 s%@sysconfdir@%$sysconfdir%g
9777 s%@sharedstatedir@%$sharedstatedir%g
9778 s%@localstatedir@%$localstatedir%g
9779 s%@libdir@%$libdir%g
9780 s%@includedir@%$includedir%g
9781 s%@oldincludedir@%$oldincludedir%g
9782 s%@infodir@%$infodir%g
9783 s%@mandir@%$mandir%g
9785 s%@host_alias@%$host_alias%g
9786 s%@host_cpu@%$host_cpu%g
9787 s%@host_vendor@%$host_vendor%g
9788 s%@host_os@%$host_os%g
9789 s%@target@%$target%g
9790 s%@target_alias@%$target_alias%g
9791 s%@target_cpu@%$target_cpu%g
9792 s%@target_vendor@%$target_vendor%g
9793 s%@target_os@%$target_os%g
9795 s%@build_alias@%$build_alias%g
9796 s%@build_cpu@%$build_cpu%g
9797 s%@build_vendor@%$build_vendor%g
9798 s%@build_os@%$build_os%g
9799 s%@SET_MAKE@%$SET_MAKE%g
9802 s%@RANLIB@%$RANLIB%g
9805 s%@ALLOCA@%$ALLOCA%g
9806 s%@GLIBC21@%$GLIBC21%g
9807 s%@LIBICONV@%$LIBICONV%g
9808 s%@USE_NLS@%$USE_NLS%g
9809 s%@MSGFMT@%$MSGFMT%g
9810 s%@GMSGFMT@%$GMSGFMT%g
9811 s%@XGETTEXT@%$XGETTEXT%g
9812 s%@INTLBISON@%$INTLBISON%g
9813 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9814 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9815 s%@CATALOGS@%$CATALOGS%g
9816 s%@CATOBJEXT@%$CATOBJEXT%g
9817 s%@GMOFILES@%$GMOFILES%g
9818 s%@INTLLIBS@%$INTLLIBS%g
9819 s%@INTLOBJS@%$INTLOBJS%g
9820 s%@POFILES@%$POFILES%g
9822 s%@DATADIRNAME@%$DATADIRNAME%g
9823 s%@INSTOBJEXT@%$INSTOBJEXT%g
9824 s%@GENCAT@%$GENCAT%g
9825 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9826 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9827 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9828 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9829 s%@INSTALL_DATA@%$INSTALL_DATA%g
9830 s%@WINDRES@%$WINDRES%g
9831 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9832 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9833 s%@SDL_CONFIG@%$SDL_CONFIG%g
9834 s%@ESD_CONFIG@%$ESD_CONFIG%g
9835 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9836 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9837 s%@GTK_CONFIG@%$GTK_CONFIG%g
9838 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9839 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9840 s%@DATA_PATH@%$DATA_PATH%g
9841 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9842 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
9845 s%@PLUGINS@%$PLUGINS%g
9846 s%@BUILTINS@%$BUILTINS%g
9847 s%@ALIASES@%$ALIASES%g
9852 s%@OPTIMS@%$OPTIMS%g
9853 s%@TUNING@%$TUNING%g
9854 s%@RELEASE@%$RELEASE%g
9856 s%@BCBUILDER@%$BCBUILDER%g
9857 s%@PACKAGE@%$PACKAGE%g
9858 s%@VERSION@%$VERSION%g
9859 s%@NEED_GETOPT@%$NEED_GETOPT%g
9860 s%@MOZILLA@%$MOZILLA%g
9861 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9862 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9863 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9864 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9865 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9866 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
9867 s%@a52_CFLAGS@%$a52_CFLAGS%g
9868 s%@arts_CFLAGS@%$arts_CFLAGS%g
9869 s%@i420_yuy2_mmx_CFLAGS@%$i420_yuy2_mmx_CFLAGS%g
9870 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9871 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9872 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
9873 s%@ts_dvbpsi_CFLAGS@%$ts_dvbpsi_CFLAGS%g
9874 s%@directx_CFLAGS@%$directx_CFLAGS%g
9875 s%@esd_CFLAGS@%$esd_CFLAGS%g
9876 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
9877 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9878 s%@glide_CFLAGS@%$glide_CFLAGS%g
9879 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9880 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9881 s%@kde_CFLAGS@%$kde_CFLAGS%g
9882 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9883 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9884 s%@mad_CFLAGS@%$mad_CFLAGS%g
9885 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9886 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9887 s%@qt_CFLAGS@%$qt_CFLAGS%g
9888 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9889 s%@x11_CFLAGS@%$x11_CFLAGS%g
9890 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9891 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9892 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9893 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9894 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
9895 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9896 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9897 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9898 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9899 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9900 s%@i420_rgb_LDFLAGS@%$i420_rgb_LDFLAGS%g
9901 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9902 s%@dv_LDFLAGS@%$dv_LDFLAGS%g
9903 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9904 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9905 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
9906 s%@ts_dvbpsi_LDFLAGS@%$ts_dvbpsi_LDFLAGS%g
9907 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9908 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
9909 s%@distort_LDFLAGS@%$distort_LDFLAGS%g
9910 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9911 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
9912 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9913 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9914 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9915 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9916 s%@http_LDFLAGS@%$http_LDFLAGS%g
9917 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9918 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9919 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9920 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9921 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9922 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9923 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9924 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9925 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9926 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9927 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9928 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9929 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9930 s%@oss_LDFLAGS@%$oss_LDFLAGS%g
9931 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9932 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9933 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9934 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9935 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9936 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9937 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9938 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9939 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9940 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9945 cat >> $CONFIG_STATUS <<\EOF
9947 # Split the substitutions into bite-sized pieces for seds with
9948 # small command number limits, like on Digital OSF/1 and HP-UX.
9949 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9950 ac_file=1 # Number of current file.
9951 ac_beg=1 # First line for current file.
9952 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9955 while $ac_more_lines; do
9956 if test $ac_beg -gt 1; then
9957 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9959 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9961 if test ! -s conftest.s$ac_file; then
9963 rm -f conftest.s$ac_file
9965 if test -z "$ac_sed_cmds"; then
9966 ac_sed_cmds="sed -f conftest.s$ac_file"
9968 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9970 ac_file=`expr $ac_file + 1`
9972 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9975 if test -z "$ac_sed_cmds"; then
9980 cat >> $CONFIG_STATUS <<EOF
9982 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
9984 cat >> $CONFIG_STATUS <<\EOF
9985 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9986 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9988 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9989 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9990 *) ac_file_in="${ac_file}.in" ;;
9993 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9995 # Remove last slash and all that follows it. Not all systems have dirname.
9996 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9997 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9998 # The file is in a subdirectory.
9999 test ! -d "$ac_dir" && mkdir "$ac_dir"
10000 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10001 # A "../" for each directory in $ac_dir_suffix.
10002 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10004 ac_dir_suffix= ac_dots=
10007 case "$ac_given_srcdir" in
10009 if test -z "$ac_dots"; then top_srcdir=.
10010 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10011 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10012 *) # Relative path.
10013 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10014 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10017 case "$ac_given_INSTALL" in
10018 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10019 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10022 echo creating "$ac_file"
10024 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10026 *Makefile*) ac_comsub="1i\\
10027 # $configure_input" ;;
10031 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10033 s%@configure_input@%$configure_input%g
10034 s%@srcdir@%$srcdir%g
10035 s%@top_srcdir@%$top_srcdir%g
10036 s%@INSTALL@%$INSTALL%g
10037 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10041 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10042 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10044 # ac_d sets the value in "#define NAME VALUE" lines.
10045 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10046 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10049 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10050 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10051 ac_uB='\([ ]\)%\1#\2define\3'
10054 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10055 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10056 ac_eB='$%\1#\2define\3'
10060 if test "${CONFIG_HEADERS+set}" != set; then
10062 cat >> $CONFIG_STATUS <<EOF
10063 CONFIG_HEADERS="include/defs.h"
10065 cat >> $CONFIG_STATUS <<\EOF
10067 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10068 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10070 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10071 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10072 *) ac_file_in="${ac_file}.in" ;;
10075 echo creating $ac_file
10077 rm -f conftest.frag conftest.in conftest.out
10078 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10079 cat $ac_file_inputs > conftest.in
10083 # Transform confdefs.h into a sed script conftest.vals that substitutes
10084 # the proper values into config.h.in to produce config.h. And first:
10085 # Protect against being on the right side of a sed subst in config.status.
10086 # Protect against being in an unquoted here document in config.status.
10087 rm -f conftest.vals
10088 cat > conftest.hdr <<\EOF
10091 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10095 sed -n -f conftest.hdr confdefs.h > conftest.vals
10098 # This sed command replaces #undef with comments. This is necessary, for
10099 # example, in the case of _POSIX_SOURCE, which is predefined and required
10100 # on some systems where configure will not decide to define it.
10101 cat >> conftest.vals <<\EOF
10102 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10105 # Break up conftest.vals because some shells have a limit on
10106 # the size of here documents, and old seds have small limits too.
10108 rm -f conftest.tail
10111 ac_lines=`grep -c . conftest.vals`
10112 # grep -c gives empty output for an empty file on some AIX systems.
10113 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10114 # Write a limited-size here document to conftest.frag.
10115 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10116 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10118 sed -f conftest.frag conftest.in > conftest.out
10120 mv conftest.out conftest.in
10121 ' >> $CONFIG_STATUS
10122 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10123 rm -f conftest.vals
10124 mv conftest.tail conftest.vals
10126 rm -f conftest.vals
10128 cat >> $CONFIG_STATUS <<\EOF
10129 rm -f conftest.frag conftest.h
10130 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10131 cat conftest.in >> conftest.h
10133 if cmp -s $ac_file conftest.h 2>/dev/null; then
10134 echo "$ac_file is unchanged"
10137 # Remove last slash and all that follows it. Not all systems have dirname.
10138 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10139 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10140 # The file is in a subdirectory.
10141 test ! -d "$ac_dir" && mkdir "$ac_dir"
10144 mv conftest.h $ac_file
10149 cat >> $CONFIG_STATUS <<EOF
10153 cat >> $CONFIG_STATUS <<\EOF
10154 for ac_file in $CONFIG_FILES; do
10155 # Support "outfile[:infile[:infile...]]"
10157 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10159 # PO directories have a Makefile.in generated from Makefile.in.in.
10160 case "$ac_file" in */Makefile.in)
10161 # Adjust a relative srcdir.
10162 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10163 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10164 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10165 # In autoconf-2.13 it is called $ac_given_srcdir.
10166 # In autoconf-2.50 it is called $srcdir.
10167 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10168 case "$ac_given_srcdir" in
10169 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10170 /*) top_srcdir="$ac_given_srcdir" ;;
10171 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10173 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10174 rm -f "$ac_dir/POTFILES"
10175 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10176 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10177 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10178 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10186 chmod +x $CONFIG_STATUS
10187 rm -fr confdefs* $ac_clean_files
10188 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10190 chmod a+x vlc-config
10194 --------------------
10195 vlc version : ${VERSION}
10197 architecture : ${ARCH}
10198 optimizations : ${OPTIMS}
10200 debug mode : ${DEBUG}
10201 release : ${RELEASE}
10202 profiling : ${PROFILING}
10203 need builtin getopt : ${NEED_GETOPT}
10204 built-in modules :${BUILTINS}
10205 plug-in modules :${PLUGINS}
10206 mozilla plugin : ${MOZILLA}
10207 vlc aliases :${ALIASES}
10209 You may now tune Makefile.opts at your convenience, for instance to choose
10210 which modules get compiled as plugins.
10212 To build vlc and its plugins, type \`${VLC_MAKE}'.