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-dvbpsi dvbpsi ts demux module (default disabled)"
50 --with-dvbpsi=PATH libdvbpsi headers and libraries"
52 --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
54 --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)"
56 --enable-satellite satellite card support (default disabled)"
58 --enable-avi AVI demux module (default enabled)"
62 --enable-mad libmad module (default disabled)"
64 --with-mad=PATH path to libmad"
66 --with-mad-tree=PATH mad tree for static linking"
68 --enable-ffmpeg ffmpeg codec (default disabled)"
70 --with-ffmpeg=PATH path to ffmpeg installation"
72 --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
74 --enable-mp4 MP4 demux module (default disabled)"
76 --enable-a52 AC3 support with liba52 (default enabled)"
78 --with-a52-tree=PATH a52dec tree for static linking "
80 --enable-cinepak Cinepak decoder (default enabled)"
82 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
86 --enable-x11 X11 support (default enabled)"
88 --enable-xvideo XVideo support (default enabled)"
90 --enable-sdl SDL support (default enabled)"
92 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
94 --enable-directx Win32 DirectX support (default enabled on Win32)"
96 --with-directx=PATH Win32 DirectX headers"
98 --enable-fb Linux framebuffer support (default enabled on Linux)"
100 --enable-mga Linux kernel Matrox support (default disabled)"
102 --enable-ggi GGI support (default disabled)"
104 --with-ggi=PATH path to libggi"
106 --enable-glide Glide (3dfx) support (default disabled)"
108 --with-glide=PATH path to libglide"
110 --enable-aa aalib output (default disabled)"
114 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
116 --enable-esd Esound library support (default disabled)"
118 --enable-arts aRts sound server (default disabled)"
120 --enable-alsa ALSA sound support for Linux (default disabled)"
122 --enable-waveout Win32 waveOut module (default enabled on Win32)"
126 --enable-gtk Gtk+ support (default enabled)"
128 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
130 --enable-gnome Gnome interface support (default disabled)"
132 --enable-qt Qt interface support (default disabled)"
134 --enable-kde KDE interface support (default disabled)"
136 --enable-macosx MacOS X support (default enabled on MacOS X)"
138 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
140 --enable-intfwin Win32 interface support (default disabled)"
142 --with-bcbuilder=PATH Borland C++ Builder installation path"
144 --enable-ncurses ncurses interface support (default disabled)"
146 --enable-xosd xosd interface support (default disabled)"
148 --enable-lirc lirc support (default disabled)"
152 --with-words=endianness set endianness (big or little)"
154 --enable-gprof gprof profiling (default disabled)"
156 --enable-cprof cprof profiling (default disabled)"
158 --enable-pth GNU Pth support (default disabled)"
160 --enable-st State Threads (default disabled)"
162 --enable-mozilla build a vlc-based Mozilla plugin (default disabled)"
164 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
166 # Initialize some variables set by options.
167 # The variables have the same names as the options, with
168 # dashes changed to underlines.
170 cache_file=./config.cache
179 program_transform_name=s,x,x,
187 bindir='${exec_prefix}/bin'
188 sbindir='${exec_prefix}/sbin'
189 libexecdir='${exec_prefix}/libexec'
190 datadir='${prefix}/share'
191 sysconfdir='${prefix}/etc'
192 sharedstatedir='${prefix}/com'
193 localstatedir='${prefix}/var'
194 libdir='${exec_prefix}/lib'
195 includedir='${prefix}/include'
196 oldincludedir='/usr/include'
197 infodir='${prefix}/info'
198 mandir='${prefix}/man'
200 # Initialize some other variables.
203 SHELL=${CONFIG_SHELL-/bin/sh}
204 # Maximum number of lines to put in a shell here document.
211 # If the previous option needs an argument, assign it.
212 if test -n "$ac_prev"; then
213 eval "$ac_prev=\$ac_option"
219 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
223 # Accept the important Cygnus configure options, so we can diagnose typos.
227 -bindir | --bindir | --bindi | --bind | --bin | --bi)
229 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
230 bindir="$ac_optarg" ;;
232 -build | --build | --buil | --bui | --bu)
234 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
235 build="$ac_optarg" ;;
237 -cache-file | --cache-file | --cache-fil | --cache-fi \
238 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
239 ac_prev=cache_file ;;
240 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
241 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
242 cache_file="$ac_optarg" ;;
244 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
246 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
248 datadir="$ac_optarg" ;;
250 -disable-* | --disable-*)
251 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
252 # Reject names that are not valid shell variable names.
253 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
254 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
256 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
257 eval "enable_${ac_feature}=no" ;;
259 -enable-* | --enable-*)
260 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
261 # Reject names that are not valid shell variable names.
262 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
263 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
265 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
270 eval "enable_${ac_feature}='$ac_optarg'" ;;
272 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
273 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
274 | --exec | --exe | --ex)
275 ac_prev=exec_prefix ;;
276 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
277 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
278 | --exec=* | --exe=* | --ex=*)
279 exec_prefix="$ac_optarg" ;;
281 -gas | --gas | --ga | --g)
282 # Obsolete; use --with-gas.
285 -help | --help | --hel | --he)
286 # Omit some internal or obsolete options to make the list less imposing.
287 # This message is too long to be a string in the A/UX 3.1 sh.
289 Usage: configure [options] [host]
290 Options: [defaults in brackets after descriptions]
292 --cache-file=FILE cache test results in FILE
293 --help print this message
294 --no-create do not create output files
295 --quiet, --silent do not print \`checking...' messages
296 --version print the version of autoconf that created configure
297 Directory and file names:
298 --prefix=PREFIX install architecture-independent files in PREFIX
300 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
302 --bindir=DIR user executables in DIR [EPREFIX/bin]
303 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
304 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
305 --datadir=DIR read-only architecture-independent data in DIR
307 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
308 --sharedstatedir=DIR modifiable architecture-independent data in DIR
310 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
311 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
312 --includedir=DIR C header files in DIR [PREFIX/include]
313 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
314 --infodir=DIR info documentation in DIR [PREFIX/info]
315 --mandir=DIR man documentation in DIR [PREFIX/man]
316 --srcdir=DIR find the sources in DIR [configure dir or ..]
317 --program-prefix=PREFIX prepend PREFIX to installed program names
318 --program-suffix=SUFFIX append SUFFIX to installed program names
319 --program-transform-name=PROGRAM
320 run sed PROGRAM on installed program names
324 --build=BUILD configure for building on BUILD [BUILD=HOST]
325 --host=HOST configure for HOST [guessed]
326 --target=TARGET configure for TARGET [TARGET=HOST]
327 Features and packages:
328 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
329 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
330 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
331 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
332 --x-includes=DIR X include files are in DIR
333 --x-libraries=DIR X library files are in DIR
335 if test -n "$ac_help"; then
336 echo "--enable and --with options recognized:$ac_help"
340 -host | --host | --hos | --ho)
342 -host=* | --host=* | --hos=* | --ho=*)
345 -includedir | --includedir | --includedi | --included | --include \
346 | --includ | --inclu | --incl | --inc)
347 ac_prev=includedir ;;
348 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
349 | --includ=* | --inclu=* | --incl=* | --inc=*)
350 includedir="$ac_optarg" ;;
352 -infodir | --infodir | --infodi | --infod | --info | --inf)
354 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
355 infodir="$ac_optarg" ;;
357 -libdir | --libdir | --libdi | --libd)
359 -libdir=* | --libdir=* | --libdi=* | --libd=*)
360 libdir="$ac_optarg" ;;
362 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
363 | --libexe | --libex | --libe)
364 ac_prev=libexecdir ;;
365 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
366 | --libexe=* | --libex=* | --libe=*)
367 libexecdir="$ac_optarg" ;;
369 -localstatedir | --localstatedir | --localstatedi | --localstated \
370 | --localstate | --localstat | --localsta | --localst \
371 | --locals | --local | --loca | --loc | --lo)
372 ac_prev=localstatedir ;;
373 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
374 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
375 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
376 localstatedir="$ac_optarg" ;;
378 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
380 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
381 mandir="$ac_optarg" ;;
384 # Obsolete; use --without-fp.
387 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
391 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
392 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
395 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
396 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
397 | --oldin | --oldi | --old | --ol | --o)
398 ac_prev=oldincludedir ;;
399 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
400 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
401 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
402 oldincludedir="$ac_optarg" ;;
404 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
406 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
407 prefix="$ac_optarg" ;;
409 -program-prefix | --program-prefix | --program-prefi | --program-pref \
410 | --program-pre | --program-pr | --program-p)
411 ac_prev=program_prefix ;;
412 -program-prefix=* | --program-prefix=* | --program-prefi=* \
413 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
414 program_prefix="$ac_optarg" ;;
416 -program-suffix | --program-suffix | --program-suffi | --program-suff \
417 | --program-suf | --program-su | --program-s)
418 ac_prev=program_suffix ;;
419 -program-suffix=* | --program-suffix=* | --program-suffi=* \
420 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
421 program_suffix="$ac_optarg" ;;
423 -program-transform-name | --program-transform-name \
424 | --program-transform-nam | --program-transform-na \
425 | --program-transform-n | --program-transform- \
426 | --program-transform | --program-transfor \
427 | --program-transfo | --program-transf \
428 | --program-trans | --program-tran \
429 | --progr-tra | --program-tr | --program-t)
430 ac_prev=program_transform_name ;;
431 -program-transform-name=* | --program-transform-name=* \
432 | --program-transform-nam=* | --program-transform-na=* \
433 | --program-transform-n=* | --program-transform-=* \
434 | --program-transform=* | --program-transfor=* \
435 | --program-transfo=* | --program-transf=* \
436 | --program-trans=* | --program-tran=* \
437 | --progr-tra=* | --program-tr=* | --program-t=*)
438 program_transform_name="$ac_optarg" ;;
440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
441 | -silent | --silent | --silen | --sile | --sil)
444 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
446 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
448 sbindir="$ac_optarg" ;;
450 -sharedstatedir | --sharedstatedir | --sharedstatedi \
451 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
452 | --sharedst | --shareds | --shared | --share | --shar \
454 ac_prev=sharedstatedir ;;
455 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
456 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
457 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
459 sharedstatedir="$ac_optarg" ;;
461 -site | --site | --sit)
463 -site=* | --site=* | --sit=*)
466 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
468 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
469 srcdir="$ac_optarg" ;;
471 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
472 | --syscon | --sysco | --sysc | --sys | --sy)
473 ac_prev=sysconfdir ;;
474 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
475 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
476 sysconfdir="$ac_optarg" ;;
478 -target | --target | --targe | --targ | --tar | --ta | --t)
480 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
481 target="$ac_optarg" ;;
483 -v | -verbose | --verbose | --verbos | --verbo | --verb)
486 -version | --version | --versio | --versi | --vers)
487 echo "configure generated by autoconf version 2.13"
491 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
492 # Reject names that are not valid shell variable names.
493 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
494 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
496 ac_package=`echo $ac_package| sed 's/-/_/g'`
501 eval "with_${ac_package}='$ac_optarg'" ;;
503 -without-* | --without-*)
504 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
505 # Reject names that are not valid shell variable names.
506 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
507 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
509 ac_package=`echo $ac_package| sed 's/-/_/g'`
510 eval "with_${ac_package}=no" ;;
513 # Obsolete; use --with-x.
516 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
517 | --x-incl | --x-inc | --x-in | --x-i)
518 ac_prev=x_includes ;;
519 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
520 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
521 x_includes="$ac_optarg" ;;
523 -x-libraries | --x-libraries | --x-librarie | --x-librari \
524 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
525 ac_prev=x_libraries ;;
526 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
527 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
528 x_libraries="$ac_optarg" ;;
530 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
534 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
535 echo "configure: warning: $ac_option: invalid host type" 1>&2
537 if test "x$nonopt" != xNONE; then
538 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
546 if test -n "$ac_prev"; then
547 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
550 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
552 # File descriptor usage:
555 # 2 errors and warnings
556 # 3 some systems may open it to /dev/tty
557 # 4 used on the Kubota Titan
558 # 6 checking for... messages and results
559 # 5 compiler messages saved in config.log
560 if test "$silent" = yes; then
568 This file contains any messages produced by compilers while
569 running configure, to aid debugging if configure makes a mistake.
572 # Strip out --no-create and --no-recursion so they do not pile up.
573 # Also quote any args containing shell metacharacters.
578 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
579 | --no-cr | --no-c) ;;
580 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
581 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
582 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
583 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
584 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
589 # Only set these to C if already set. These must not be set unconditionally
590 # because not all systems understand e.g. LANG=C (notably SCO).
591 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
592 # Non-C LC_CTYPE values break the ctype check.
593 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
594 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
595 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
596 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
598 # confdefs.h avoids OS command line length limits that DEFS can exceed.
599 rm -rf conftest* confdefs.h
600 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
603 # A filename unique to this package, relative to the directory that
604 # configure is in, which we can look for to find out if srcdir is correct.
605 ac_unique_file=include/main.h
607 # Find the source files, if location was not specified.
608 if test -z "$srcdir"; then
609 ac_srcdir_defaulted=yes
610 # Try the directory containing this script, then its parent.
612 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
613 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
615 if test ! -r $srcdir/$ac_unique_file; then
619 ac_srcdir_defaulted=no
621 if test ! -r $srcdir/$ac_unique_file; then
622 if test "$ac_srcdir_defaulted" = yes; then
623 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
625 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
628 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
630 # Prefer explicitly selected file to automatically selected ones.
631 if test -z "$CONFIG_SITE"; then
632 if test "x$prefix" != xNONE; then
633 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
635 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
638 for ac_site_file in $CONFIG_SITE; do
639 if test -r "$ac_site_file"; then
640 echo "loading site script $ac_site_file"
645 if test -r "$cache_file"; then
646 echo "loading cache $cache_file"
649 echo "creating cache $cache_file"
654 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
655 ac_cpp='$CPP $CPPFLAGS'
656 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
657 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
658 cross_compiling=$ac_cv_prog_cc_cross
662 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
663 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
664 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
671 ac_n= ac_c='\c' ac_t=
677 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
678 if test -f $ac_dir/install-sh; then
680 ac_install_sh="$ac_aux_dir/install-sh -c"
682 elif test -f $ac_dir/install.sh; then
684 ac_install_sh="$ac_aux_dir/install.sh -c"
688 if test -z "$ac_aux_dir"; then
689 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
691 ac_config_guess=$ac_aux_dir/config.guess
692 ac_config_sub=$ac_aux_dir/config.sub
693 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
696 # Do some error checking and defaulting for the host and target type.
698 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
701 # 1. You are not allowed to specify --host, --target, and nonopt at the
703 # 2. Host defaults to nonopt.
704 # 3. If nonopt is not specified, then host defaults to the current host,
705 # as determined by config.guess.
706 # 4. Target and build default to nonopt.
707 # 5. If nonopt is not specified, then target and build default to host.
709 # The aliases save the names the user supplied, while $host etc.
710 # will get canonicalized.
711 case $host---$target---$nonopt in
712 NONE---*---* | *---NONE---* | *---*---NONE) ;;
713 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
717 # Make sure we can run config.sub.
718 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
719 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
722 echo $ac_n "checking host system type""... $ac_c" 1>&6
723 echo "configure:724: checking host system type" >&5
726 case "$host_alias" in
730 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
731 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
733 *) host_alias=$nonopt ;;
737 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
738 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
739 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
740 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
741 echo "$ac_t""$host" 1>&6
743 echo $ac_n "checking target system type""... $ac_c" 1>&6
744 echo "configure:745: checking target system type" >&5
747 case "$target_alias" in
750 NONE) target_alias=$host_alias ;;
751 *) target_alias=$nonopt ;;
755 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
756 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
757 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
758 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
759 echo "$ac_t""$target" 1>&6
761 echo $ac_n "checking build system type""... $ac_c" 1>&6
762 echo "configure:763: checking build system type" >&5
765 case "$build_alias" in
768 NONE) build_alias=$host_alias ;;
769 *) build_alias=$nonopt ;;
773 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
774 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
777 echo "$ac_t""$build" 1>&6
779 test "$host_alias" != "$target_alias" &&
780 test "$program_prefix$program_suffix$program_transform_name" = \
782 program_prefix=${target_alias}-
785 CONFIGURE_LINE="$0 $*"
791 save_CPPFLAGS="${CPPFLAGS}"
792 save_CFLAGS="${CFLAGS}"
793 save_LDFLAGS="${LDFLAGS}"
795 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
796 echo "configure:797: checking whether ${MAKE-make} sets \${MAKE}" >&5
797 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
798 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 cat > conftestmake <<\EOF
803 @echo 'ac_maketemp="${MAKE}"'
805 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
806 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
807 if test -n "$ac_maketemp"; then
808 eval ac_cv_prog_make_${ac_make}_set=yes
810 eval ac_cv_prog_make_${ac_make}_set=no
814 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
815 echo "$ac_t""yes" 1>&6
818 echo "$ac_t""no" 1>&6
819 SET_MAKE="MAKE=${MAKE-make}"
822 # Extract the first word of "gcc", so it can be a program name with args.
823 set dummy gcc; ac_word=$2
824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
825 echo "configure:826: checking for $ac_word" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 if test -n "$CC"; then
830 ac_cv_prog_CC="$CC" # Let the user override the test.
832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
834 for ac_dir in $ac_dummy; do
835 test -z "$ac_dir" && ac_dir=.
836 if test -f $ac_dir/$ac_word; then
845 if test -n "$CC"; then
846 echo "$ac_t""$CC" 1>&6
848 echo "$ac_t""no" 1>&6
851 if test -z "$CC"; then
852 # Extract the first word of "cc", so it can be a program name with args.
853 set dummy cc; ac_word=$2
854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
855 echo "configure:856: checking for $ac_word" >&5
856 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 if test -n "$CC"; then
860 ac_cv_prog_CC="$CC" # Let the user override the test.
862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
865 for ac_dir in $ac_dummy; do
866 test -z "$ac_dir" && ac_dir=.
867 if test -f $ac_dir/$ac_word; then
868 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
877 if test $ac_prog_rejected = yes; then
878 # We found a bogon in the path, so make sure we never use it.
879 set dummy $ac_cv_prog_CC
881 if test $# -gt 0; then
882 # We chose a different compiler from the bogus one.
883 # However, it has the same basename, so the bogon will be chosen
884 # first if we set CC to just the basename; use the full file name.
886 set dummy "$ac_dir/$ac_word" "$@"
894 if test -n "$CC"; then
895 echo "$ac_t""$CC" 1>&6
897 echo "$ac_t""no" 1>&6
900 if test -z "$CC"; then
903 # Extract the first word of "cl", so it can be a program name with args.
904 set dummy cl; ac_word=$2
905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
906 echo "configure:907: checking for $ac_word" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
910 if test -n "$CC"; then
911 ac_cv_prog_CC="$CC" # Let the user override the test.
913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
915 for ac_dir in $ac_dummy; do
916 test -z "$ac_dir" && ac_dir=.
917 if test -f $ac_dir/$ac_word; then
926 if test -n "$CC"; then
927 echo "$ac_t""$CC" 1>&6
929 echo "$ac_t""no" 1>&6
934 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
938 echo "configure:939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
942 ac_cpp='$CPP $CPPFLAGS'
943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
945 cross_compiling=$ac_cv_prog_cc_cross
947 cat > conftest.$ac_ext << EOF
949 #line 950 "configure"
950 #include "confdefs.h"
954 if { (eval echo configure:955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
955 ac_cv_prog_cc_works=yes
956 # If we can't run a trivial program, we are probably using a cross compiler.
957 if (./conftest; exit) 2>/dev/null; then
958 ac_cv_prog_cc_cross=no
960 ac_cv_prog_cc_cross=yes
963 echo "configure: failed program was:" >&5
964 cat conftest.$ac_ext >&5
965 ac_cv_prog_cc_works=no
969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
970 ac_cpp='$CPP $CPPFLAGS'
971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
973 cross_compiling=$ac_cv_prog_cc_cross
975 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
976 if test $ac_cv_prog_cc_works = no; then
977 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
979 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
980 echo "configure:981: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
981 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
982 cross_compiling=$ac_cv_prog_cc_cross
984 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
985 echo "configure:986: checking whether we are using GNU C" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 cat > conftest.c <<EOF
994 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1001 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1003 if test $ac_cv_prog_gcc = yes; then
1009 ac_test_CFLAGS="${CFLAGS+set}"
1010 ac_save_CFLAGS="$CFLAGS"
1012 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether ${CC-cc} accepts -g" >&5
1014 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 echo 'void f(){}' > conftest.c
1018 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1027 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1028 if test "$ac_test_CFLAGS" = set; then
1029 CFLAGS="$ac_save_CFLAGS"
1030 elif test $ac_cv_prog_cc_g = yes; then
1031 if test "$GCC" = yes; then
1037 if test "$GCC" = yes; then
1044 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1045 echo "configure:1046: checking how to run the C preprocessor" >&5
1046 # On Suns, sometimes $CPP names a directory.
1047 if test -n "$CPP" && test -d "$CPP"; then
1050 if test -z "$CPP"; then
1051 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 # This must be in double quotes, not single quotes, because CPP may get
1055 # substituted into the Makefile and "${CC-cc}" will confuse make.
1057 # On the NeXT, cc -E runs the code through the compiler's parser,
1058 # not just through cpp.
1059 cat > conftest.$ac_ext <<EOF
1060 #line 1061 "configure"
1061 #include "confdefs.h"
1065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1066 { (eval echo configure:1067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1068 if test -z "$ac_err"; then
1072 echo "configure: failed program was:" >&5
1073 cat conftest.$ac_ext >&5
1075 CPP="${CC-cc} -E -traditional-cpp"
1076 cat > conftest.$ac_ext <<EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1083 { (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1085 if test -z "$ac_err"; then
1089 echo "configure: failed program was:" >&5
1090 cat conftest.$ac_ext >&5
1092 CPP="${CC-cc} -nologo -E"
1093 cat > conftest.$ac_ext <<EOF
1094 #line 1095 "configure"
1095 #include "confdefs.h"
1099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1100 { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1102 if test -z "$ac_err"; then
1106 echo "configure: failed program was:" >&5
1107 cat conftest.$ac_ext >&5
1116 ac_cv_prog_CPP="$CPP"
1118 CPP="$ac_cv_prog_CPP"
1120 ac_cv_prog_CPP="$CPP"
1122 echo "$ac_t""$CPP" 1>&6
1125 if test $host != $build; then
1126 ac_tool_prefix=${host_alias}-
1131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134 echo "configure:1135: checking for $ac_word" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 if test -n "$RANLIB"; then
1139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1143 for ac_dir in $ac_dummy; do
1144 test -z "$ac_dir" && ac_dir=.
1145 if test -f $ac_dir/$ac_word; then
1146 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1153 RANLIB="$ac_cv_prog_RANLIB"
1154 if test -n "$RANLIB"; then
1155 echo "$ac_t""$RANLIB" 1>&6
1157 echo "$ac_t""no" 1>&6
1161 if test -z "$ac_cv_prog_RANLIB"; then
1162 if test -n "$ac_tool_prefix"; then
1163 # Extract the first word of "ranlib", so it can be a program name with args.
1164 set dummy ranlib; ac_word=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 if test -n "$RANLIB"; then
1171 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1175 for ac_dir in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir=.
1177 if test -f $ac_dir/$ac_word; then
1178 ac_cv_prog_RANLIB="ranlib"
1183 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1186 RANLIB="$ac_cv_prog_RANLIB"
1187 if test -n "$RANLIB"; then
1188 echo "$ac_t""$RANLIB" 1>&6
1190 echo "$ac_t""no" 1>&6
1198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1199 set dummy ${ac_tool_prefix}strip; ac_word=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$STRIP"; then
1206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1210 for ac_dir in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1220 STRIP="$ac_cv_prog_STRIP"
1221 if test -n "$STRIP"; then
1222 echo "$ac_t""$STRIP" 1>&6
1224 echo "$ac_t""no" 1>&6
1228 if test -z "$ac_cv_prog_STRIP"; then
1229 if test -n "$ac_tool_prefix"; then
1230 # Extract the first word of "strip", so it can be a program name with args.
1231 set dummy strip; ac_word=$2
1232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1233 echo "configure:1234: checking for $ac_word" >&5
1234 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 if test -n "$STRIP"; then
1238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1242 for ac_dir in $ac_dummy; do
1243 test -z "$ac_dir" && ac_dir=.
1244 if test -f $ac_dir/$ac_word; then
1245 ac_cv_prog_STRIP="strip"
1250 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1253 STRIP="$ac_cv_prog_STRIP"
1254 if test -n "$STRIP"; then
1255 echo "$ac_t""$STRIP" 1>&6
1257 echo "$ac_t""no" 1>&6
1266 # Extract the first word of "gmake", so it can be a program name with args.
1267 set dummy gmake; ac_word=$2
1268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1269 echo "configure:1270: checking for $ac_word" >&5
1270 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1275 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1278 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1283 for ac_dir in $ac_dummy; do
1284 test -z "$ac_dir" && ac_dir=.
1285 if test -f $ac_dir/$ac_word; then
1286 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1291 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1295 GMAKE="$ac_cv_path_GMAKE"
1296 if test -n "$GMAKE"; then
1297 echo "$ac_t""$GMAKE" 1>&6
1299 echo "$ac_t""no" 1>&6
1302 if test "x${GMAKE}" = "xno"; then
1303 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1304 echo "configure:1305: checking whether GNU make is installed" >&5
1305 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 if make --version | grep -q -i gnu; then
1311 echo "This software needs you to install GNU make to compile properly."
1312 echo "You can get it from http://www.gnu.org/."
1317 echo "$ac_t""$ac_cv_gmake" 1>&6
1323 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
1325 cat >> confdefs.h <<EOF
1326 #define VLC_PACKAGE "${PACKAGE}"
1329 cat >> confdefs.h <<EOF
1330 #define VLC_VERSION "${VERSION}"
1333 # Extract the first word of "ranlib", so it can be a program name with args.
1334 set dummy ranlib; ac_word=$2
1335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1336 echo "configure:1337: checking for $ac_word" >&5
1337 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 if test -n "$RANLIB"; then
1341 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1345 for ac_dir in $ac_dummy; do
1346 test -z "$ac_dir" && ac_dir=.
1347 if test -f $ac_dir/$ac_word; then
1348 ac_cv_prog_RANLIB="ranlib"
1353 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1356 RANLIB="$ac_cv_prog_RANLIB"
1357 if test -n "$RANLIB"; then
1358 echo "$ac_t""$RANLIB" 1>&6
1360 echo "$ac_t""no" 1>&6
1364 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1365 echo "configure:1366: checking for strerror in -lcposix" >&5
1366 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 ac_save_LIBS="$LIBS"
1371 LIBS="-lcposix $LIBS"
1372 cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1375 /* Override any gcc2 internal prototype to avoid an error. */
1376 /* We use char because int might match the return type of a gcc2
1377 builtin and then its argument prototype would still apply. */
1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1386 eval "ac_cv_lib_$ac_lib_var=yes"
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1391 eval "ac_cv_lib_$ac_lib_var=no"
1394 LIBS="$ac_save_LIBS"
1397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1398 echo "$ac_t""yes" 1>&6
1399 LIBS="$LIBS -lcposix"
1401 echo "$ac_t""no" 1>&6
1406 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1407 echo "configure:1408: checking for ANSI C header files" >&5
1408 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1420 { (eval echo configure:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1422 if test -z "$ac_err"; then
1424 ac_cv_header_stdc=yes
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1430 ac_cv_header_stdc=no
1434 if test $ac_cv_header_stdc = yes; then
1435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1436 cat > conftest.$ac_ext <<EOF
1437 #line 1438 "configure"
1438 #include "confdefs.h"
1441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1442 egrep "memchr" >/dev/null 2>&1; then
1446 ac_cv_header_stdc=no
1452 if test $ac_cv_header_stdc = yes; then
1453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1454 cat > conftest.$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1460 egrep "free" >/dev/null 2>&1; then
1464 ac_cv_header_stdc=no
1470 if test $ac_cv_header_stdc = yes; then
1471 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1472 if test "$cross_compiling" = yes; then
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1479 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1480 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1482 int main () { int i; for (i = 0; i < 256; i++)
1483 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1494 ac_cv_header_stdc=no
1502 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1503 if test $ac_cv_header_stdc = yes; then
1504 cat >> confdefs.h <<\EOF
1505 #define STDC_HEADERS 1
1510 echo $ac_n "checking for working const""... $ac_c" 1>&6
1511 echo "configure:1512: checking for working const" >&5
1512 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 cat > conftest.$ac_ext <<EOF
1516 #line 1517 "configure"
1517 #include "confdefs.h"
1521 /* Ultrix mips cc rejects this. */
1522 typedef int charset[2]; const charset x;
1523 /* SunOS 4.1.1 cc rejects this. */
1524 char const *const *ccp;
1526 /* NEC SVR4.0.2 mips cc rejects this. */
1527 struct point {int x, y;};
1528 static struct point const zero = {0,0};
1529 /* AIX XL C 1.02.0.0 rejects this.
1530 It does not let you subtract one const X* pointer from another in an arm
1531 of an if-expression whose if-part is not a constant expression */
1532 const char *g = "string";
1533 ccp = &g + (g ? g-g : 0);
1534 /* HPUX 7.0 cc rejects these. */
1537 ccp = (char const *const *) p;
1538 { /* SCO 3.2v4 cc rejects this. */
1540 char const *s = 0 ? (char *) 0 : (char const *) 0;
1544 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1546 const int *foo = &x[0];
1549 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1550 typedef const int *iptr;
1554 { /* AIX XL C 1.02.0.0 rejects this saying
1555 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1556 struct s { int j; const int *ap[3]; };
1557 struct s *b; b->j = 5;
1559 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1565 if { (eval echo configure:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1577 echo "$ac_t""$ac_cv_c_const" 1>&6
1578 if test $ac_cv_c_const = no; then
1579 cat >> confdefs.h <<\EOF
1585 echo $ac_n "checking for inline""... $ac_c" 1>&6
1586 echo "configure:1587: checking for inline" >&5
1587 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1591 for ac_kw in inline __inline__ __inline; do
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1600 if { (eval echo configure:1601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1602 ac_cv_c_inline=$ac_kw; break
1604 echo "configure: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1612 echo "$ac_t""$ac_cv_c_inline" 1>&6
1613 case "$ac_cv_c_inline" in
1615 no) cat >> confdefs.h <<\EOF
1619 *) cat >> confdefs.h <<EOF
1620 #define inline $ac_cv_c_inline
1625 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1626 echo "configure:1627: checking for off_t" >&5
1627 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 #include <sys/types.h>
1639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1640 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1642 ac_cv_type_off_t=yes
1650 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1651 if test $ac_cv_type_off_t = no; then
1652 cat >> confdefs.h <<\EOF
1658 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1659 echo "configure:1660: checking for size_t" >&5
1660 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1666 #include <sys/types.h>
1672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1673 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1675 ac_cv_type_size_t=yes
1678 ac_cv_type_size_t=no
1683 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1684 if test $ac_cv_type_size_t = no; then
1685 cat >> confdefs.h <<\EOF
1686 #define size_t unsigned
1691 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1692 # for constant arguments. Useless!
1693 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1694 echo "configure:1695: checking for working alloca.h" >&5
1695 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1703 char *p = alloca(2 * sizeof(int));
1706 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1708 ac_cv_header_alloca_h=yes
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1713 ac_cv_header_alloca_h=no
1718 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1719 if test $ac_cv_header_alloca_h = yes; then
1720 cat >> confdefs.h <<\EOF
1721 #define HAVE_ALLOCA_H 1
1726 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1727 echo "configure:1728: checking for alloca" >&5
1728 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1736 # define alloca __builtin_alloca
1739 # include <malloc.h>
1740 # define alloca _alloca
1743 # include <alloca.h>
1748 # ifndef alloca /* predefined by HP cc +Olibcalls */
1757 char *p = (char *) alloca(1);
1760 if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1762 ac_cv_func_alloca_works=yes
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1767 ac_cv_func_alloca_works=no
1772 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1773 if test $ac_cv_func_alloca_works = yes; then
1774 cat >> confdefs.h <<\EOF
1775 #define HAVE_ALLOCA 1
1780 if test $ac_cv_func_alloca_works = no; then
1781 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1782 # that cause trouble. Some versions do not even contain alloca or
1783 # contain a buggy version. If you still want to use their alloca,
1784 # use ar to extract alloca.o from them instead of compiling alloca.c.
1785 ALLOCA=alloca.${ac_objext}
1786 cat >> confdefs.h <<\EOF
1791 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1792 echo "configure:1793: checking whether alloca needs Cray hooks" >&5
1793 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 cat > conftest.$ac_ext <<EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1799 #if defined(CRAY) && ! defined(CRAY2)
1806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1807 egrep "webecray" >/dev/null 2>&1; then
1818 echo "$ac_t""$ac_cv_os_cray" 1>&6
1819 if test $ac_cv_os_cray = yes; then
1820 for ac_func in _getb67 GETB67 getb67; do
1821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1822 echo "configure:1823: checking for $ac_func" >&5
1823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $ac_func(); below. */
1832 /* Override any gcc2 internal prototype to avoid an error. */
1833 /* We use char because int might match the return type of a gcc2
1834 builtin and then its argument prototype would still apply. */
1839 /* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1850 if { (eval echo configure:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1852 eval "ac_cv_func_$ac_func=yes"
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1857 eval "ac_cv_func_$ac_func=no"
1862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1863 echo "$ac_t""yes" 1>&6
1864 cat >> confdefs.h <<EOF
1865 #define CRAY_STACKSEG_END $ac_func
1870 echo "$ac_t""no" 1>&6
1876 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1877 echo "configure:1878: checking stack direction for C alloca" >&5
1878 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 if test "$cross_compiling" = yes; then
1882 ac_cv_c_stack_direction=0
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 find_stack_direction ()
1889 static char *addr = 0;
1894 return find_stack_direction ();
1897 return (&dummy > addr) ? 1 : -1;
1901 exit (find_stack_direction() < 0);
1904 if { (eval echo configure:1905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1906 ac_cv_c_stack_direction=1
1908 echo "configure: failed program was:" >&5
1909 cat conftest.$ac_ext >&5
1911 ac_cv_c_stack_direction=-1
1918 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1919 cat >> confdefs.h <<EOF
1920 #define STACK_DIRECTION $ac_cv_c_stack_direction
1925 for ac_hdr in unistd.h
1927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1929 echo "configure:1930: checking for $ac_hdr" >&5
1930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 cat > conftest.$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1939 { (eval echo configure:1940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1941 if test -z "$ac_err"; then
1943 eval "ac_cv_header_$ac_safe=yes"
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1949 eval "ac_cv_header_$ac_safe=no"
1953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1954 echo "$ac_t""yes" 1>&6
1955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1956 cat >> confdefs.h <<EOF
1957 #define $ac_tr_hdr 1
1961 echo "$ac_t""no" 1>&6
1965 for ac_func in getpagesize
1967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1968 echo "configure:1969: checking for $ac_func" >&5
1969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975 /* System header to define __stub macros and hopefully few prototypes,
1976 which can conflict with char $ac_func(); below. */
1978 /* Override any gcc2 internal prototype to avoid an error. */
1979 /* We use char because int might match the return type of a gcc2
1980 builtin and then its argument prototype would still apply. */
1985 /* The GNU C library defines this for functions which it implements
1986 to always fail with ENOSYS. Some functions are actually named
1987 something starting with __ and the normal name is an alias. */
1988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1996 if { (eval echo configure:1997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1998 eval "ac_cv_func_$ac_func=yes"
2000 echo "configure: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2003 eval "ac_cv_func_$ac_func=no"
2008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2011 cat >> confdefs.h <<EOF
2012 #define $ac_tr_func 1
2016 echo "$ac_t""no" 1>&6
2020 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2021 echo "configure:2022: checking for working mmap" >&5
2022 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 if test "$cross_compiling" = yes; then
2026 ac_cv_func_mmap_fixed_mapped=no
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2032 /* Thanks to Mike Haertel and Jim Avera for this test.
2033 Here is a matrix of mmap possibilities:
2034 mmap private not fixed
2035 mmap private fixed at somewhere currently unmapped
2036 mmap private fixed at somewhere already mapped
2037 mmap shared not fixed
2038 mmap shared fixed at somewhere currently unmapped
2039 mmap shared fixed at somewhere already mapped
2040 For private mappings, we should verify that changes cannot be read()
2041 back from the file, nor mmap's back from the file at a different
2042 address. (There have been systems where private was not correctly
2043 implemented like the infamous i386 svr4.0, and systems where the
2044 VM page cache was not coherent with the filesystem buffer cache
2045 like early versions of FreeBSD and possibly contemporary NetBSD.)
2046 For shared mappings, we should conversely verify that changes get
2047 propogated back to all the places they're supposed to be.
2049 Grep wants private fixed already mapped.
2050 The main things grep needs to know about mmap are:
2051 * does it exist and is it safe to write into the mmap'd area
2052 * how to use it (BSD variants) */
2053 #include <sys/types.h>
2055 #include <sys/mman.h>
2057 /* This mess was copied from the GNU getpagesize.h. */
2058 #ifndef HAVE_GETPAGESIZE
2059 # ifdef HAVE_UNISTD_H
2060 # include <unistd.h>
2063 /* Assume that all systems that can run configure have sys/param.h. */
2064 # ifndef HAVE_SYS_PARAM_H
2065 # define HAVE_SYS_PARAM_H 1
2068 # ifdef _SC_PAGESIZE
2069 # define getpagesize() sysconf(_SC_PAGESIZE)
2070 # else /* no _SC_PAGESIZE */
2071 # ifdef HAVE_SYS_PARAM_H
2072 # include <sys/param.h>
2073 # ifdef EXEC_PAGESIZE
2074 # define getpagesize() EXEC_PAGESIZE
2075 # else /* no EXEC_PAGESIZE */
2077 # define getpagesize() NBPG * CLSIZE
2080 # endif /* no CLSIZE */
2081 # else /* no NBPG */
2083 # define getpagesize() NBPC
2084 # else /* no NBPC */
2086 # define getpagesize() PAGESIZE
2087 # endif /* PAGESIZE */
2088 # endif /* no NBPC */
2089 # endif /* no NBPG */
2090 # endif /* no EXEC_PAGESIZE */
2091 # else /* no HAVE_SYS_PARAM_H */
2092 # define getpagesize() 8192 /* punt totally */
2093 # endif /* no HAVE_SYS_PARAM_H */
2094 # endif /* no _SC_PAGESIZE */
2096 #endif /* no HAVE_GETPAGESIZE */
2099 extern "C" { void *malloc(unsigned); }
2107 char *data, *data2, *data3;
2111 pagesize = getpagesize();
2114 * First, make a file with some known garbage in it.
2116 data = malloc(pagesize);
2119 for (i = 0; i < pagesize; ++i)
2120 *(data + i) = rand();
2122 fd = creat("conftestmmap", 0600);
2125 if (write(fd, data, pagesize) != pagesize)
2130 * Next, try to mmap the file at a fixed address which
2131 * already has something else allocated at it. If we can,
2132 * also make sure that we see the same garbage.
2134 fd = open("conftestmmap", O_RDWR);
2137 data2 = malloc(2 * pagesize);
2140 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2141 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2142 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2144 for (i = 0; i < pagesize; ++i)
2145 if (*(data + i) != *(data2 + i))
2149 * Finally, make sure that changes to the mapped area
2150 * do not percolate back to the file as seen by read().
2151 * (This is a bug on some variants of i386 svr4.0.)
2153 for (i = 0; i < pagesize; ++i)
2154 *(data2 + i) = *(data2 + i) + 1;
2155 data3 = malloc(pagesize);
2158 if (read(fd, data3, pagesize) != pagesize)
2160 for (i = 0; i < pagesize; ++i)
2161 if (*(data + i) != *(data3 + i))
2164 unlink("conftestmmap");
2169 if { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2171 ac_cv_func_mmap_fixed_mapped=yes
2173 echo "configure: failed program was:" >&5
2174 cat conftest.$ac_ext >&5
2176 ac_cv_func_mmap_fixed_mapped=no
2183 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2184 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2185 cat >> confdefs.h <<\EOF
2192 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2193 echo "configure:2194: checking whether we are using the GNU C Library 2.1 or newer" >&5
2194 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2197 cat > conftest.$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2201 #include <features.h>
2202 #ifdef __GNU_LIBRARY__
2203 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2210 egrep "Lucky GNU user" >/dev/null 2>&1; then
2212 ac_cv_gnu_library_2_1=yes
2215 ac_cv_gnu_library_2_1=no
2223 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2225 GLIBC21="$ac_cv_gnu_library_2_1"
2229 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2230 stdlib.h string.h unistd.h sys/param.h
2232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_hdr" >&5
2235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2244 { (eval echo configure:2245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2246 if test -z "$ac_err"; then
2248 eval "ac_cv_header_$ac_safe=yes"
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2254 eval "ac_cv_header_$ac_safe=no"
2258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2261 cat >> confdefs.h <<EOF
2262 #define $ac_tr_hdr 1
2266 echo "$ac_t""no" 1>&6
2270 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2271 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2272 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2275 echo "configure:2276: checking for $ac_func" >&5
2276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 cat > conftest.$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2282 /* System header to define __stub macros and hopefully few prototypes,
2283 which can conflict with char $ac_func(); below. */
2285 /* Override any gcc2 internal prototype to avoid an error. */
2286 /* We use char because int might match the return type of a gcc2
2287 builtin and then its argument prototype would still apply. */
2292 /* The GNU C library defines this for functions which it implements
2293 to always fail with ENOSYS. Some functions are actually named
2294 something starting with __ and the normal name is an alias. */
2295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2303 if { (eval echo configure:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2305 eval "ac_cv_func_$ac_func=yes"
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2310 eval "ac_cv_func_$ac_func=no"
2315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2316 echo "$ac_t""yes" 1>&6
2317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2318 cat >> confdefs.h <<EOF
2319 #define $ac_tr_func 1
2323 echo "$ac_t""no" 1>&6
2330 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2331 if test "${with_libiconv_prefix+set}" = set; then
2332 withval="$with_libiconv_prefix"
2334 for dir in `echo "$withval" | tr : ' '`; do
2335 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2336 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2342 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2343 echo "configure:2344: checking for iconv" >&5
2344 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2348 am_cv_func_iconv="no, consider installing GNU libiconv"
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2356 iconv_t cd = iconv_open("","");
2357 iconv(cd,NULL,NULL,NULL,NULL);
2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2363 am_cv_func_iconv=yes
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2369 if test "$am_cv_func_iconv" != yes; then
2370 am_save_LIBS="$LIBS"
2371 LIBS="$LIBS -liconv"
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2378 iconv_t cd = iconv_open("","");
2379 iconv(cd,NULL,NULL,NULL,NULL);
2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2386 am_cv_func_iconv=yes
2388 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2392 LIBS="$am_save_LIBS"
2397 echo "$ac_t""$am_cv_func_iconv" 1>&6
2398 if test "$am_cv_func_iconv" = yes; then
2399 cat >> confdefs.h <<\EOF
2400 #define HAVE_ICONV 1
2403 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2404 echo "configure:2405: checking for iconv declaration" >&5
2405 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2419 #if defined(__STDC__) || defined(__cplusplus)
2420 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2429 if { (eval echo configure:2430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2431 am_cv_proto_iconv_arg1=""
2433 echo "configure: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2436 am_cv_proto_iconv_arg1="const"
2439 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);"
2442 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2443 echo "$ac_t""${ac_t:-
2444 }$am_cv_proto_iconv" 1>&6
2445 cat >> confdefs.h <<EOF
2446 #define ICONV_CONST $am_cv_proto_iconv_arg1
2451 if test "$am_cv_lib_iconv" = yes; then
2457 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2458 echo "configure:2459: checking for nl_langinfo and CODESET" >&5
2459 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 #include <langinfo.h>
2467 char* cs = nl_langinfo(CODESET);
2470 if { (eval echo configure:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2472 am_cv_langinfo_codeset=yes
2474 echo "configure: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2477 am_cv_langinfo_codeset=no
2483 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2484 if test $am_cv_langinfo_codeset = yes; then
2485 cat >> confdefs.h <<\EOF
2486 #define HAVE_LANGINFO_CODESET 1
2491 if test $ac_cv_header_locale_h = yes; then
2492 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2493 echo "configure:2494: checking for LC_MESSAGES" >&5
2494 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2497 cat > conftest.$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2507 am_cv_val_LC_MESSAGES=yes
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2512 am_cv_val_LC_MESSAGES=no
2517 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2518 if test $am_cv_val_LC_MESSAGES = yes; then
2519 cat >> confdefs.h <<\EOF
2520 #define HAVE_LC_MESSAGES 1
2525 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2526 echo "configure:2527: checking whether NLS is requested" >&5
2527 # Check whether --enable-nls or --disable-nls was given.
2528 if test "${enable_nls+set}" = set; then
2529 enableval="$enable_nls"
2535 echo "$ac_t""$USE_NLS" 1>&6
2538 BUILD_INCLUDED_LIBINTL=no
2539 USE_INCLUDED_LIBINTL=no
2542 if test "$USE_NLS" = "yes"; then
2543 cat >> confdefs.h <<\EOF
2544 #define ENABLE_NLS 1
2547 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether included gettext is requested" >&5
2549 # Check whether --with-included-gettext or --without-included-gettext was given.
2550 if test "${with_included_gettext+set}" = set; then
2551 withval="$with_included_gettext"
2552 nls_cv_force_use_gnu_gettext=$withval
2554 nls_cv_force_use_gnu_gettext=no
2557 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2559 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2560 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2566 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2567 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2568 echo "configure:2569: checking for libintl.h" >&5
2569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 cat > conftest.$ac_ext <<EOF
2573 #line 2574 "configure"
2574 #include "confdefs.h"
2575 #include <libintl.h>
2577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2578 { (eval echo configure:2579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2580 if test -z "$ac_err"; then
2582 eval "ac_cv_header_$ac_safe=yes"
2585 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2588 eval "ac_cv_header_$ac_safe=no"
2592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2593 echo "$ac_t""yes" 1>&6
2594 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2595 echo "configure:2596: checking for GNU gettext in libc" >&5
2596 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2599 cat > conftest.$ac_ext <<EOF
2600 #line 2601 "configure"
2601 #include "confdefs.h"
2602 #include <libintl.h>
2603 extern int _nl_msg_cat_cntr;
2605 bindtextdomain ("", "");
2606 return (int) gettext ("") + _nl_msg_cat_cntr
2609 if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2611 gt_cv_func_gnugettext1_libc=yes
2613 echo "configure: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2616 gt_cv_func_gnugettext1_libc=no
2621 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2623 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2624 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2625 echo "configure:2626: checking for GNU gettext in libintl" >&5
2626 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 gt_save_LIBS="$LIBS"
2630 LIBS="$LIBS -lintl $LIBICONV"
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 #include <libintl.h>
2635 extern int _nl_msg_cat_cntr;
2637 bindtextdomain ("", "");
2638 return (int) gettext ("") + _nl_msg_cat_cntr
2641 if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2643 gt_cv_func_gnugettext1_libintl=yes
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2648 gt_cv_func_gnugettext1_libintl=no
2651 LIBS="$gt_save_LIBS"
2654 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2657 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2658 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2659 && test "$PACKAGE" != gettext; }; then
2660 cat >> confdefs.h <<\EOF
2661 #define HAVE_GETTEXT 1
2665 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2666 INTLLIBS="-lintl $LIBICONV"
2669 gt_save_LIBS="$LIBS"
2670 LIBS="$LIBS $INTLLIBS"
2671 for ac_func in dcgettext
2673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $ac_func" >&5
2675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 /* System header to define __stub macros and hopefully few prototypes,
2682 which can conflict with char $ac_func(); below. */
2684 /* Override any gcc2 internal prototype to avoid an error. */
2685 /* We use char because int might match the return type of a gcc2
2686 builtin and then its argument prototype would still apply. */
2691 /* The GNU C library defines this for functions which it implements
2692 to always fail with ENOSYS. Some functions are actually named
2693 something starting with __ and the normal name is an alias. */
2694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2704 eval "ac_cv_func_$ac_func=yes"
2706 echo "configure: failed program was:" >&5
2707 cat conftest.$ac_ext >&5
2709 eval "ac_cv_func_$ac_func=no"
2714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2715 echo "$ac_t""yes" 1>&6
2716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2717 cat >> confdefs.h <<EOF
2718 #define $ac_tr_func 1
2722 echo "$ac_t""no" 1>&6
2726 LIBS="$gt_save_LIBS"
2728 # Extract the first word of "msgfmt", so it can be a program name with args.
2729 set dummy msgfmt; ac_word=$2
2730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2731 echo "configure:2732: checking for $ac_word" >&5
2732 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2737 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2741 for ac_dir in $PATH; do
2742 test -z "$ac_dir" && ac_dir=.
2743 if test -f $ac_dir/$ac_word; then
2744 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2745 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2751 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2755 MSGFMT="$ac_cv_path_MSGFMT"
2756 if test "$MSGFMT" != ":"; then
2757 echo "$ac_t""$MSGFMT" 1>&6
2759 echo "$ac_t""no" 1>&6
2762 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2763 set dummy gmsgfmt; ac_word=$2
2764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2765 echo "configure:2766: checking for $ac_word" >&5
2766 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2771 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2774 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2779 for ac_dir in $ac_dummy; do
2780 test -z "$ac_dir" && ac_dir=.
2781 if test -f $ac_dir/$ac_word; then
2782 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2787 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2791 GMSGFMT="$ac_cv_path_GMSGFMT"
2792 if test -n "$GMSGFMT"; then
2793 echo "$ac_t""$GMSGFMT" 1>&6
2795 echo "$ac_t""no" 1>&6
2799 # Extract the first word of "xgettext", so it can be a program name with args.
2800 set dummy xgettext; ac_word=$2
2801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2802 echo "configure:2803: checking for $ac_word" >&5
2803 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2808 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2812 for ac_dir in $PATH; do
2813 test -z "$ac_dir" && ac_dir=.
2814 if test -f $ac_dir/$ac_word; then
2815 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2816 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2822 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2826 XGETTEXT="$ac_cv_path_XGETTEXT"
2827 if test "$XGETTEXT" != ":"; then
2828 echo "$ac_t""$XGETTEXT" 1>&6
2830 echo "$ac_t""no" 1>&6
2838 echo "$ac_t""no" 1>&6
2842 if test "$CATOBJEXT" = "NONE"; then
2843 nls_cv_use_gnu_gettext=yes
2847 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2848 INTLOBJS="\$(GETTOBJS)"
2849 # Extract the first word of "msgfmt", so it can be a program name with args.
2850 set dummy msgfmt; ac_word=$2
2851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2852 echo "configure:2853: checking for $ac_word" >&5
2853 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2858 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2862 for ac_dir in $PATH; do
2863 test -z "$ac_dir" && ac_dir=.
2864 if test -f $ac_dir/$ac_word; then
2865 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2866 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2872 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2876 MSGFMT="$ac_cv_path_MSGFMT"
2877 if test "$MSGFMT" != ":"; then
2878 echo "$ac_t""$MSGFMT" 1>&6
2880 echo "$ac_t""no" 1>&6
2883 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2884 set dummy gmsgfmt; ac_word=$2
2885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2886 echo "configure:2887: checking for $ac_word" >&5
2887 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2892 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2895 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2900 for ac_dir in $ac_dummy; do
2901 test -z "$ac_dir" && ac_dir=.
2902 if test -f $ac_dir/$ac_word; then
2903 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2908 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2912 GMSGFMT="$ac_cv_path_GMSGFMT"
2913 if test -n "$GMSGFMT"; then
2914 echo "$ac_t""$GMSGFMT" 1>&6
2916 echo "$ac_t""no" 1>&6
2919 # Extract the first word of "xgettext", so it can be a program name with args.
2920 set dummy xgettext; ac_word=$2
2921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2922 echo "configure:2923: checking for $ac_word" >&5
2923 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2928 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2932 for ac_dir in $PATH; do
2933 test -z "$ac_dir" && ac_dir=.
2934 if test -f $ac_dir/$ac_word; then
2935 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2936 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2942 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2946 XGETTEXT="$ac_cv_path_XGETTEXT"
2947 if test "$XGETTEXT" != ":"; then
2948 echo "$ac_t""$XGETTEXT" 1>&6
2950 echo "$ac_t""no" 1>&6
2954 BUILD_INCLUDED_LIBINTL=yes
2955 USE_INCLUDED_LIBINTL=yes
2957 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2958 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2961 if test "$GMSGFMT" != ":"; then
2962 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2965 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2970 if test "$XGETTEXT" != ":"; then
2971 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2974 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2984 if test "$PACKAGE" = gettext; then
2985 BUILD_INCLUDED_LIBINTL=yes
2988 for ac_prog in bison
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2993 echo "configure:2994: checking for $ac_word" >&5
2994 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 if test -n "$INTLBISON"; then
2998 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3002 for ac_dir in $ac_dummy; do
3003 test -z "$ac_dir" && ac_dir=.
3004 if test -f $ac_dir/$ac_word; then
3005 ac_cv_prog_INTLBISON="$ac_prog"
3012 INTLBISON="$ac_cv_prog_INTLBISON"
3013 if test -n "$INTLBISON"; then
3014 echo "$ac_t""$INTLBISON" 1>&6
3016 echo "$ac_t""no" 1>&6
3019 test -n "$INTLBISON" && break
3022 if test -z "$INTLBISON"; then
3025 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3026 echo "configure:3027: checking version of bison" >&5
3027 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3028 case $ac_prog_version in
3029 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3030 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3031 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3032 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3034 echo "$ac_t""$ac_prog_version" 1>&6
3036 if test $ac_verc_fail = yes; then
3040 for lang in $ALL_LINGUAS; do
3041 GMOFILES="$GMOFILES $lang.gmo"
3042 POFILES="$POFILES $lang.po"
3056 nls_cv_header_libgt=
3068 if test "x$CATOBJEXT" != "x"; then
3069 if test "x$ALL_LINGUAS" = "x"; then
3072 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3073 echo "configure:3074: checking for catalogs to be installed" >&5
3075 for presentlang in $ALL_LINGUAS; do
3077 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3078 # Use the presentlang catalog if desiredlang is
3079 # a. equal to presentlang, or
3080 # b. a variant of presentlang (because in this case,
3081 # presentlang can be used as a fallback for messages
3082 # which are not translated in the desiredlang catalog).
3083 case "$desiredlang" in
3084 "$presentlang"*) useit=yes;;
3087 if test $useit = yes; then
3088 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3091 LINGUAS=$NEW_LINGUAS
3092 echo "$ac_t""$LINGUAS" 1>&6
3095 if test -n "$LINGUAS"; then
3096 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3101 if test -n "$ac_aux_dir"; then
3102 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3104 if test -z "$MKINSTALLDIRS"; then
3105 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3109 INTL_LIBTOOL_SUFFIX_PREFIX=
3113 # Find a good install program. We prefer a C program (faster),
3114 # so one script is as good as another. But avoid the broken or
3115 # incompatible versions:
3116 # SysV /etc/install, /usr/sbin/install
3117 # SunOS /usr/etc/install
3118 # IRIX /sbin/install
3120 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3121 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3122 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3123 # ./install, which can be erroneously created by make from ./install.sh.
3124 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3125 echo "configure:3126: checking for a BSD compatible install" >&5
3126 if test -z "$INSTALL"; then
3127 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3131 for ac_dir in $PATH; do
3132 # Account for people who put trailing slashes in PATH elements.
3134 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3136 # OSF1 and SCO ODT 3.0 have their own names for install.
3137 # Don't use installbsd from OSF since it installs stuff as root
3139 for ac_prog in ginstall scoinst install; do
3140 if test -f $ac_dir/$ac_prog; then
3141 if test $ac_prog = install &&
3142 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3143 # AIX install. It has an incompatible calling convention.
3146 ac_cv_path_install="$ac_dir/$ac_prog -c"
3157 if test "${ac_cv_path_install+set}" = set; then
3158 INSTALL="$ac_cv_path_install"
3160 # As a last resort, use the slow shell script. We don't cache a
3161 # path for INSTALL within a source directory, because that will
3162 # break other packages using the cache if that directory is
3163 # removed, or if the path is relative.
3164 INSTALL="$ac_install_sh"
3167 echo "$ac_t""$INSTALL" 1>&6
3169 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3170 # It thinks the first close brace ends the variable substitution.
3171 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3173 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3175 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3178 vlc_LDFLAGS="${LDFLAGS}"
3180 case "x${target_os}" in
3189 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3190 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3191 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3195 save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3199 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3200 vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3204 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3205 set dummy ${ac_tool_prefix}windres; ac_word=$2
3206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3207 echo "configure:3208: checking for $ac_word" >&5
3208 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 if test -n "$WINDRES"; then
3212 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3216 for ac_dir in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir=.
3218 if test -f $ac_dir/$ac_word; then
3219 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3226 WINDRES="$ac_cv_prog_WINDRES"
3227 if test -n "$WINDRES"; then
3228 echo "$ac_t""$WINDRES" 1>&6
3230 echo "$ac_t""no" 1>&6
3234 if test -z "$ac_cv_prog_WINDRES"; then
3235 if test -n "$ac_tool_prefix"; then
3236 # Extract the first word of "windres", so it can be a program name with args.
3237 set dummy windres; ac_word=$2
3238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3239 echo "configure:3240: checking for $ac_word" >&5
3240 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 if test -n "$WINDRES"; then
3244 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3248 for ac_dir in $ac_dummy; do
3249 test -z "$ac_dir" && ac_dir=.
3250 if test -f $ac_dir/$ac_word; then
3251 ac_cv_prog_WINDRES="windres"
3256 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3259 WINDRES="$ac_cv_prog_WINDRES"
3260 if test -n "$WINDRES"; then
3261 echo "$ac_t""$WINDRES" 1>&6
3263 echo "$ac_t""no" 1>&6
3271 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3272 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3273 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3274 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3275 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3276 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3277 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3281 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3282 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3286 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3287 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3288 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3289 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3290 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3297 if test "x${SYS}" = "xmingw32"
3299 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3301 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3302 plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3305 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3307 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3310 echo "configure:3311: checking for $ac_func" >&5
3311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 /* System header to define __stub macros and hopefully few prototypes,
3318 which can conflict with char $ac_func(); below. */
3320 /* Override any gcc2 internal prototype to avoid an error. */
3321 /* We use char because int might match the return type of a gcc2
3322 builtin and then its argument prototype would still apply. */
3327 /* The GNU C library defines this for functions which it implements
3328 to always fail with ENOSYS. Some functions are actually named
3329 something starting with __ and the normal name is an alias. */
3330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3338 if { (eval echo configure:3339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3340 eval "ac_cv_func_$ac_func=yes"
3342 echo "configure: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3345 eval "ac_cv_func_$ac_func=no"
3350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3351 echo "$ac_t""yes" 1>&6
3352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3353 cat >> confdefs.h <<EOF
3354 #define $ac_tr_func 1
3358 echo "$ac_t""no" 1>&6
3363 echo $ac_n "checking for connect""... $ac_c" 1>&6
3364 echo "configure:3365: checking for connect" >&5
3365 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 /* System header to define __stub macros and hopefully few prototypes,
3372 which can conflict with char connect(); below. */
3374 /* Override any gcc2 internal prototype to avoid an error. */
3375 /* We use char because int might match the return type of a gcc2
3376 builtin and then its argument prototype would still apply. */
3381 /* The GNU C library defines this for functions which it implements
3382 to always fail with ENOSYS. Some functions are actually named
3383 something starting with __ and the normal name is an alias. */
3384 #if defined (__stub_connect) || defined (__stub___connect)
3392 if { (eval echo configure:3393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3394 eval "ac_cv_func_connect=yes"
3396 echo "configure: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3399 eval "ac_cv_func_connect=no"
3404 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3405 echo "$ac_t""yes" 1>&6
3408 echo "$ac_t""no" 1>&6
3410 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3411 echo "configure:3412: checking for connect in -lsocket" >&5
3412 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3416 ac_save_LIBS="$LIBS"
3417 LIBS="-lsocket $LIBS"
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3421 /* Override any gcc2 internal prototype to avoid an error. */
3422 /* We use char because int might match the return type of a gcc2
3423 builtin and then its argument prototype would still apply. */
3430 if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3432 eval "ac_cv_lib_$ac_lib_var=yes"
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3437 eval "ac_cv_lib_$ac_lib_var=no"
3440 LIBS="$ac_save_LIBS"
3443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3444 echo "$ac_t""yes" 1>&6
3445 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3446 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3449 echo "$ac_t""no" 1>&6
3454 echo $ac_n "checking for send""... $ac_c" 1>&6
3455 echo "configure:3456: checking for send" >&5
3456 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* System header to define __stub macros and hopefully few prototypes,
3463 which can conflict with char send(); below. */
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3472 /* The GNU C library defines this for functions which it implements
3473 to always fail with ENOSYS. Some functions are actually named
3474 something starting with __ and the normal name is an alias. */
3475 #if defined (__stub_send) || defined (__stub___send)
3483 if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3485 eval "ac_cv_func_send=yes"
3487 echo "configure: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3490 eval "ac_cv_func_send=no"
3495 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3499 echo "$ac_t""no" 1>&6
3501 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3502 echo "configure:3503: checking for send in -lsocket" >&5
3503 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 ac_save_LIBS="$LIBS"
3508 LIBS="-lsocket $LIBS"
3509 cat > conftest.$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 /* Override any gcc2 internal prototype to avoid an error. */
3513 /* We use char because int might match the return type of a gcc2
3514 builtin and then its argument prototype would still apply. */
3521 if { (eval echo configure:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3523 eval "ac_cv_lib_$ac_lib_var=yes"
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3528 eval "ac_cv_lib_$ac_lib_var=no"
3531 LIBS="$ac_save_LIBS"
3534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3535 echo "$ac_t""yes" 1>&6
3536 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3539 echo "$ac_t""no" 1>&6
3544 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3545 echo "configure:3546: checking for gethostbyname" >&5
3546 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 /* System header to define __stub macros and hopefully few prototypes,
3553 which can conflict with char gethostbyname(); below. */
3555 /* Override any gcc2 internal prototype to avoid an error. */
3556 /* We use char because int might match the return type of a gcc2
3557 builtin and then its argument prototype would still apply. */
3558 char gethostbyname();
3562 /* The GNU C library defines this for functions which it implements
3563 to always fail with ENOSYS. Some functions are actually named
3564 something starting with __ and the normal name is an alias. */
3565 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3573 if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3575 eval "ac_cv_func_gethostbyname=yes"
3577 echo "configure: failed program was:" >&5
3578 cat conftest.$ac_ext >&5
3580 eval "ac_cv_func_gethostbyname=no"
3585 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3586 echo "$ac_t""yes" 1>&6
3589 echo "$ac_t""no" 1>&6
3591 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3592 echo "configure:3593: checking for gethostbyname in -lnsl" >&5
3593 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 ac_save_LIBS="$LIBS"
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 /* Override any gcc2 internal prototype to avoid an error. */
3603 /* We use char because int might match the return type of a gcc2
3604 builtin and then its argument prototype would still apply. */
3605 char gethostbyname();
3611 if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3613 eval "ac_cv_lib_$ac_lib_var=yes"
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3618 eval "ac_cv_lib_$ac_lib_var=no"
3621 LIBS="$ac_save_LIBS"
3624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3625 echo "$ac_t""yes" 1>&6
3626 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3628 echo "$ac_t""no" 1>&6
3634 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3635 echo "configure:3636: checking for gethostbyname" >&5
3636 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 /* System header to define __stub macros and hopefully few prototypes,
3643 which can conflict with char gethostbyname(); below. */
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. */
3648 char gethostbyname();
3652 /* The GNU C library defines this for functions which it implements
3653 to always fail with ENOSYS. Some functions are actually named
3654 something starting with __ and the normal name is an alias. */
3655 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3665 eval "ac_cv_func_gethostbyname=yes"
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3670 eval "ac_cv_func_gethostbyname=no"
3675 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3679 echo "$ac_t""no" 1>&6
3681 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3682 echo "configure:3683: checking for gethostbyname in -lbind" >&5
3683 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 ac_save_LIBS="$LIBS"
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 /* Override any gcc2 internal prototype to avoid an error. */
3693 /* We use char because int might match the return type of a gcc2
3694 builtin and then its argument prototype would still apply. */
3695 char gethostbyname();
3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3703 eval "ac_cv_lib_$ac_lib_var=yes"
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3708 eval "ac_cv_lib_$ac_lib_var=no"
3711 LIBS="$ac_save_LIBS"
3714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3715 echo "$ac_t""yes" 1>&6
3716 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3718 echo "$ac_t""no" 1>&6
3725 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3726 echo "configure:3727: checking for nanosleep" >&5
3727 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 cat > conftest.$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 /* System header to define __stub macros and hopefully few prototypes,
3734 which can conflict with char nanosleep(); below. */
3736 /* Override any gcc2 internal prototype to avoid an error. */
3737 /* We use char because int might match the return type of a gcc2
3738 builtin and then its argument prototype would still apply. */
3743 /* The GNU C library defines this for functions which it implements
3744 to always fail with ENOSYS. Some functions are actually named
3745 something starting with __ and the normal name is an alias. */
3746 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3754 if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3756 eval "ac_cv_func_nanosleep=yes"
3758 echo "configure: failed program was:" >&5
3759 cat conftest.$ac_ext >&5
3761 eval "ac_cv_func_nanosleep=no"
3766 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3767 echo "$ac_t""yes" 1>&6
3770 echo "$ac_t""no" 1>&6
3772 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3773 echo "configure:3774: checking for nanosleep in -lrt" >&5
3774 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3778 ac_save_LIBS="$LIBS"
3780 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 /* Override any gcc2 internal prototype to avoid an error. */
3784 /* We use char because int might match the return type of a gcc2
3785 builtin and then its argument prototype would still apply. */
3792 if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3794 eval "ac_cv_lib_$ac_lib_var=yes"
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3799 eval "ac_cv_lib_$ac_lib_var=no"
3802 LIBS="$ac_save_LIBS"
3805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3806 echo "$ac_t""yes" 1>&6
3807 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3809 echo "$ac_t""no" 1>&6
3810 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3811 echo "configure:3812: checking for nanosleep in -lposix4" >&5
3812 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 ac_save_LIBS="$LIBS"
3817 LIBS="-lposix4 $LIBS"
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 /* Override any gcc2 internal prototype to avoid an error. */
3822 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3830 if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3832 eval "ac_cv_lib_$ac_lib_var=yes"
3834 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3837 eval "ac_cv_lib_$ac_lib_var=no"
3840 LIBS="$ac_save_LIBS"
3843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3844 echo "$ac_t""yes" 1>&6
3845 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3847 echo "$ac_t""no" 1>&6
3856 if test x$have_nanosleep = x1; then
3857 cat >> confdefs.h <<\EOF
3858 #define HAVE_NANOSLEEP 1
3863 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
3864 echo "configure:3865: checking for sem_init in -lrt" >&5
3865 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
3866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 ac_save_LIBS="$LIBS"
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3885 eval "ac_cv_lib_$ac_lib_var=yes"
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3890 eval "ac_cv_lib_$ac_lib_var=no"
3893 LIBS="$ac_save_LIBS"
3896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3898 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3900 echo "$ac_t""no" 1>&6
3904 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3905 echo "configure:3906: checking for inet_aton" >&5
3906 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3912 /* System header to define __stub macros and hopefully few prototypes,
3913 which can conflict with char inet_aton(); below. */
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3922 /* The GNU C library defines this for functions which it implements
3923 to always fail with ENOSYS. Some functions are actually named
3924 something starting with __ and the normal name is an alias. */
3925 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3935 eval "ac_cv_func_inet_aton=yes"
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3940 eval "ac_cv_func_inet_aton=no"
3945 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3946 echo "$ac_t""yes" 1>&6
3949 echo "$ac_t""no" 1>&6
3951 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3952 echo "configure:3953: checking for inet_aton in -lresolv" >&5
3953 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 ac_save_LIBS="$LIBS"
3958 LIBS="-lresolv $LIBS"
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3973 eval "ac_cv_lib_$ac_lib_var=yes"
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3978 eval "ac_cv_lib_$ac_lib_var=no"
3981 LIBS="$ac_save_LIBS"
3984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3986 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3988 echo "$ac_t""no" 1>&6
3994 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3995 echo "configure:3996: checking for textdomain" >&5
3996 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4002 /* System header to define __stub macros and hopefully few prototypes,
4003 which can conflict with char textdomain(); below. */
4005 /* Override any gcc2 internal prototype to avoid an error. */
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4012 /* The GNU C library defines this for functions which it implements
4013 to always fail with ENOSYS. Some functions are actually named
4014 something starting with __ and the normal name is an alias. */
4015 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4025 eval "ac_cv_func_textdomain=yes"
4027 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
4030 eval "ac_cv_func_textdomain=no"
4035 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4039 echo "$ac_t""no" 1>&6
4041 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4042 echo "configure:4043: checking for textdomain in -lintl" >&5
4043 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 ac_save_LIBS="$LIBS"
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 /* Override any gcc2 internal prototype to avoid an error. */
4053 /* We use char because int might match the return type of a gcc2
4054 builtin and then its argument prototype would still apply. */
4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4063 eval "ac_cv_lib_$ac_lib_var=yes"
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4068 eval "ac_cv_lib_$ac_lib_var=no"
4071 LIBS="$ac_save_LIBS"
4074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4077 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4080 echo "$ac_t""no" 1>&6
4088 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4089 echo "configure:4090: checking for getopt_long" >&5
4090 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* System header to define __stub macros and hopefully few prototypes,
4097 which can conflict with char getopt_long(); below. */
4099 /* Override any gcc2 internal prototype to avoid an error. */
4100 /* We use char because int might match the return type of a gcc2
4101 builtin and then its argument prototype would still apply. */
4106 /* The GNU C library defines this for functions which it implements
4107 to always fail with ENOSYS. Some functions are actually named
4108 something starting with __ and the normal name is an alias. */
4109 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4117 if { (eval echo configure:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4119 eval "ac_cv_func_getopt_long=yes"
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4124 eval "ac_cv_func_getopt_long=no"
4129 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4130 echo "$ac_t""yes" 1>&6
4131 cat >> confdefs.h <<\EOF
4132 #define HAVE_GETOPT_LONG 1
4136 echo "$ac_t""no" 1>&6
4137 # FreeBSD has a gnugetopt library for this:
4138 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4139 echo "configure:4140: checking for getopt_long in -lgnugetopt" >&5
4140 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4144 ac_save_LIBS="$LIBS"
4145 LIBS="-lgnugetopt $LIBS"
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 /* Override any gcc2 internal prototype to avoid an error. */
4150 /* We use char because int might match the return type of a gcc2
4151 builtin and then its argument prototype would still apply. */
4158 if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4160 eval "ac_cv_lib_$ac_lib_var=yes"
4162 echo "configure: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4165 eval "ac_cv_lib_$ac_lib_var=no"
4168 LIBS="$ac_save_LIBS"
4171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4172 echo "$ac_t""yes" 1>&6
4173 cat >> confdefs.h <<\EOF
4174 #define HAVE_GETOPT_LONG 1
4176 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4178 echo "$ac_t""no" 1>&6
4185 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4186 echo "configure:4187: checking return type of signal handlers" >&5
4187 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 #include <sys/types.h>
4199 extern "C" void (*signal (int, void (*)(int)))(int);
4201 void (*signal ()) ();
4208 if { (eval echo configure:4209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4210 ac_cv_type_signal=void
4212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4215 ac_cv_type_signal=int
4220 echo "$ac_t""$ac_cv_type_signal" 1>&6
4221 cat >> confdefs.h <<EOF
4222 #define RETSIGTYPE $ac_cv_type_signal
4226 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4227 echo "configure:4228: checking for dlopen in -ldl" >&5
4228 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4232 ac_save_LIBS="$LIBS"
4234 cat > conftest.$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4237 /* Override any gcc2 internal prototype to avoid an error. */
4238 /* We use char because int might match the return type of a gcc2
4239 builtin and then its argument prototype would still apply. */
4246 if { (eval echo configure:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4248 eval "ac_cv_lib_$ac_lib_var=yes"
4250 echo "configure: failed program was:" >&5
4251 cat conftest.$ac_ext >&5
4253 eval "ac_cv_lib_$ac_lib_var=no"
4256 LIBS="$ac_save_LIBS"
4259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4260 echo "$ac_t""yes" 1>&6
4261 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4263 echo "$ac_t""no" 1>&6
4266 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4267 echo "configure:4268: checking for cos in -lm" >&5
4268 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 ac_save_LIBS="$LIBS"
4274 cat > conftest.$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4277 /* Override any gcc2 internal prototype to avoid an error. */
4278 /* We use char because int might match the return type of a gcc2
4279 builtin and then its argument prototype would still apply. */
4286 if { (eval echo configure:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4288 eval "ac_cv_lib_$ac_lib_var=yes"
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4293 eval "ac_cv_lib_$ac_lib_var=no"
4296 LIBS="$ac_save_LIBS"
4299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4300 echo "$ac_t""yes" 1>&6
4301 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4302 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4304 echo "$ac_t""no" 1>&6
4307 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4308 echo "configure:4309: checking for pow in -lm" >&5
4309 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4313 ac_save_LIBS="$LIBS"
4315 cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4318 /* Override any gcc2 internal prototype to avoid an error. */
4319 /* We use char because int might match the return type of a gcc2
4320 builtin and then its argument prototype would still apply. */
4327 if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4329 eval "ac_cv_lib_$ac_lib_var=yes"
4331 echo "configure: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4334 eval "ac_cv_lib_$ac_lib_var=no"
4337 LIBS="$ac_save_LIBS"
4340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4341 echo "$ac_t""yes" 1>&6
4342 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4343 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4344 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4345 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4346 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4349 echo "$ac_t""no" 1>&6
4354 if test "x${THREAD_LIB}" = "xerror"; then
4355 echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4356 echo "configure:4357: checking for main in -lpthread" >&5
4357 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4361 ac_save_LIBS="$LIBS"
4362 LIBS="-lpthread $LIBS"
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4371 if { (eval echo configure:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4373 eval "ac_cv_lib_$ac_lib_var=yes"
4375 echo "configure: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4378 eval "ac_cv_lib_$ac_lib_var=no"
4381 LIBS="$ac_save_LIBS"
4384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4385 echo "$ac_t""yes" 1>&6
4386 THREAD_LIB="-lpthread"
4388 echo "$ac_t""no" 1>&6
4392 if test "x${THREAD_LIB}" = "xerror"; then
4393 echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4394 echo "configure:4395: checking for main in -lpthreads" >&5
4395 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4399 ac_save_LIBS="$LIBS"
4400 LIBS="-lpthreads $LIBS"
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4411 eval "ac_cv_lib_$ac_lib_var=yes"
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4416 eval "ac_cv_lib_$ac_lib_var=no"
4419 LIBS="$ac_save_LIBS"
4422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4423 echo "$ac_t""yes" 1>&6
4424 THREAD_LIB="-lpthreads"
4426 echo "$ac_t""no" 1>&6
4430 if test "x${THREAD_LIB}" = "xerror"; then
4431 echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4432 echo "configure:4433: checking for main in -lc_r" >&5
4433 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 ac_save_LIBS="$LIBS"
4439 cat > conftest.$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4447 if { (eval echo configure:4448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4449 eval "ac_cv_lib_$ac_lib_var=yes"
4451 echo "configure: failed program was:" >&5
4452 cat conftest.$ac_ext >&5
4454 eval "ac_cv_lib_$ac_lib_var=no"
4457 LIBS="$ac_save_LIBS"
4460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4461 echo "$ac_t""yes" 1>&6
4464 echo "$ac_t""no" 1>&6
4468 if test "x${THREAD_LIB}" = "xerror"; then
4469 echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4470 echo "configure:4471: checking for pthread_mutex_lock" >&5
4471 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4474 cat > conftest.$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4477 /* System header to define __stub macros and hopefully few prototypes,
4478 which can conflict with char pthread_mutex_lock(); below. */
4480 /* Override any gcc2 internal prototype to avoid an error. */
4481 /* We use char because int might match the return type of a gcc2
4482 builtin and then its argument prototype would still apply. */
4483 char pthread_mutex_lock();
4487 /* The GNU C library defines this for functions which it implements
4488 to always fail with ENOSYS. Some functions are actually named
4489 something starting with __ and the normal name is an alias. */
4490 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4493 pthread_mutex_lock();
4498 if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4500 eval "ac_cv_func_pthread_mutex_lock=yes"
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 eval "ac_cv_func_pthread_mutex_lock=no"
4510 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4514 echo "$ac_t""no" 1>&6
4520 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4521 echo "configure:4522: checking for cthread_fork in -lthreads" >&5
4522 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4524 echo $ac_n "(cached) $ac_c" 1>&6
4526 ac_save_LIBS="$LIBS"
4527 LIBS="-lthreads $LIBS"
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4531 /* Override any gcc2 internal prototype to avoid an error. */
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4534 char cthread_fork();
4540 if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4542 eval "ac_cv_lib_$ac_lib_var=yes"
4544 echo "configure: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4547 eval "ac_cv_lib_$ac_lib_var=no"
4550 LIBS="$ac_save_LIBS"
4553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4554 echo "$ac_t""yes" 1>&6
4555 THREAD_LIB="-lthreads"
4557 echo "$ac_t""no" 1>&6
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 #include <pthread.h>
4566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4567 egrep "pthread_cond_t" >/dev/null 2>&1; then
4570 cat >> confdefs.h <<\EOF
4571 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4580 #include <pthread.h>
4582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4583 egrep "pthread_once" >/dev/null 2>&1; then
4586 cat >> confdefs.h <<\EOF
4587 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 #include <strings.h>
4598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 egrep "strncasecmp" >/dev/null 2>&1; then
4602 cat >> confdefs.h <<\EOF
4603 #define STRNCASECMP_IN_STRINGS_H 1
4610 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4614 echo "configure:4615: checking for $ac_hdr" >&5
4615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 cat > conftest.$ac_ext <<EOF
4619 #line 4620 "configure"
4620 #include "confdefs.h"
4623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4624 { (eval echo configure:4625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4626 if test -z "$ac_err"; then
4628 eval "ac_cv_header_$ac_safe=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4634 eval "ac_cv_header_$ac_safe=no"
4638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4641 cat >> confdefs.h <<EOF
4642 #define $ac_tr_hdr 1
4646 echo "$ac_t""no" 1>&6
4650 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4654 echo "configure:4655: checking for $ac_hdr" >&5
4655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4664 { (eval echo configure:4665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4666 if test -z "$ac_err"; then
4668 eval "ac_cv_header_$ac_safe=yes"
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4674 eval "ac_cv_header_$ac_safe=no"
4678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4679 echo "$ac_t""yes" 1>&6
4680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4681 cat >> confdefs.h <<EOF
4682 #define $ac_tr_hdr 1
4686 echo "$ac_t""no" 1>&6
4690 for ac_hdr in dlfcn.h image.h
4692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4694 echo "configure:4695: checking for $ac_hdr" >&5
4695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4704 { (eval echo configure:4705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4706 if test -z "$ac_err"; then
4708 eval "ac_cv_header_$ac_safe=yes"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4714 eval "ac_cv_header_$ac_safe=no"
4718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4721 cat >> confdefs.h <<EOF
4722 #define $ac_tr_hdr 1
4726 echo "$ac_t""no" 1>&6
4730 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_hdr" >&5
4735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4744 { (eval echo configure:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4746 if test -z "$ac_err"; then
4748 eval "ac_cv_header_$ac_safe=yes"
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4754 eval "ac_cv_header_$ac_safe=no"
4758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4759 echo "$ac_t""yes" 1>&6
4760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4761 cat >> confdefs.h <<EOF
4762 #define $ac_tr_hdr 1
4766 echo "$ac_t""no" 1>&6
4770 for ac_hdr in machine/param.h sys/shm.h
4772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_hdr" >&5
4775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4784 { (eval echo configure:4785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4786 if test -z "$ac_err"; then
4788 eval "ac_cv_header_$ac_safe=yes"
4791 echo "configure: failed program was:" >&5
4792 cat conftest.$ac_ext >&5
4794 eval "ac_cv_header_$ac_safe=no"
4798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4801 cat >> confdefs.h <<EOF
4802 #define $ac_tr_hdr 1
4806 echo "$ac_t""no" 1>&6
4810 for ac_hdr in linux/version.h
4812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4814 echo "configure:4815: checking for $ac_hdr" >&5
4815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4816 echo $ac_n "(cached) $ac_c" 1>&6
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4824 { (eval echo configure:4825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4826 if test -z "$ac_err"; then
4828 eval "ac_cv_header_$ac_safe=yes"
4831 echo "configure: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4834 eval "ac_cv_header_$ac_safe=no"
4838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4839 echo "$ac_t""yes" 1>&6
4840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4841 cat >> confdefs.h <<EOF
4842 #define $ac_tr_hdr 1
4846 echo "$ac_t""no" 1>&6
4851 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4852 echo "configure:4853: checking whether time.h and sys/time.h may both be included" >&5
4853 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4854 echo $ac_n "(cached) $ac_c" 1>&6
4856 cat > conftest.$ac_ext <<EOF
4857 #line 4858 "configure"
4858 #include "confdefs.h"
4859 #include <sys/types.h>
4860 #include <sys/time.h>
4866 if { (eval echo configure:4867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4868 ac_cv_header_time=yes
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 ac_cv_header_time=no
4878 echo "$ac_t""$ac_cv_header_time" 1>&6
4879 if test $ac_cv_header_time = yes; then
4880 cat >> confdefs.h <<\EOF
4881 #define TIME_WITH_SYS_TIME 1
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4893 egrep "nanosleep" >/dev/null 2>&1; then
4896 cat >> confdefs.h <<\EOF
4897 #define HAVE_DECL_NANOSLEEP 1
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 #include <sys/time.h>
4910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4911 egrep "timespec" >/dev/null 2>&1; then
4914 cat >> confdefs.h <<\EOF
4915 #define HAVE_STRUCT_TIMESPEC 1
4923 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4927 echo "configure:4928: checking for $ac_hdr" >&5
4928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4931 cat > conftest.$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4937 { (eval echo configure:4938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4939 if test -z "$ac_err"; then
4941 eval "ac_cv_header_$ac_safe=yes"
4944 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4947 eval "ac_cv_header_$ac_safe=no"
4951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4952 echo "$ac_t""yes" 1>&6
4953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4954 cat >> confdefs.h <<EOF
4955 #define $ac_tr_hdr 1
4959 echo "$ac_t""no" 1>&6
4964 if test "x${x_includes}" = "xNONE"; then
4965 x_includes="/usr/X11R6/include"
4967 if test "x${x_libraries}" = "xNONE"; then
4968 x_libraries="/usr/X11R6/lib"
4971 if test "x${SYS}" != "xmingw32"
4973 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
4974 for ac_hdr in X11/extensions/dpms.h
4976 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4977 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4978 echo "configure:4979: checking for $ac_hdr" >&5
4979 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4982 cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4988 { (eval echo configure:4989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4990 if test -z "$ac_err"; then
4992 eval "ac_cv_header_$ac_safe=yes"
4995 echo "configure: failed program was:" >&5
4996 cat conftest.$ac_ext >&5
4998 eval "ac_cv_header_$ac_safe=no"
5002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5003 echo "$ac_t""yes" 1>&6
5004 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5005 cat >> confdefs.h <<EOF
5006 #define $ac_tr_hdr 1
5009 cat > conftest.$ac_ext <<EOF
5010 #line 5011 "configure"
5011 #include "confdefs.h"
5012 #include <X11/extensions/dpms.h>
5014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015 egrep "DPMSInfo" >/dev/null 2>&1; then
5018 cat >> confdefs.h <<\EOF
5019 #define DPMSINFO_IN_DPMS_H 1
5028 echo "$ac_t""no" 1>&6
5032 CPPFLAGS="${save_CPPFLAGS}"
5035 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5036 echo "configure:5037: checking for ntohl in sys/param.h" >&5
5037 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 CFLAGS="${save_CFLAGS} -Wall -Werror"
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 #include <sys/param.h>
5046 void foo() { int meuh; ntohl(meuh); }
5049 if { (eval echo configure:5050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5051 ac_cv_c_ntohl_sys_param_h=yes
5053 echo "configure: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5056 ac_cv_c_ntohl_sys_param_h=no
5061 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5062 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5063 cat >> confdefs.h <<\EOF
5064 #define NTOHL_IN_SYS_PARAM_H 1
5069 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5070 echo "configure:5071: checking if \$CC accepts -finline-limit" >&5
5071 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5083 if { (eval echo configure:5084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5085 ac_cv_c_inline_limit=yes
5087 echo "configure: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5090 ac_cv_c_inline_limit=no
5095 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5096 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5097 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5100 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5101 echo "configure:5102: checking if \$CC accepts -Wall -Winline" >&5
5102 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5105 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5114 if { (eval echo configure:5115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5116 ac_cv_c_Wall_Winline=yes
5118 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5121 ac_cv_c_Wall_Winline=no
5126 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5127 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5128 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5130 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5131 echo "configure:5132: checking if \$CC accepts -wall -winline" >&5
5132 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5133 echo $ac_n "(cached) $ac_c" 1>&6
5135 CFLAGS="-wall -winline ${save_CFLAGS}"
5136 cat > conftest.$ac_ext <<EOF
5137 #line 5138 "configure"
5138 #include "confdefs.h"
5144 if { (eval echo configure:5145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5146 ac_cv_c_wall_winline=yes
5148 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5151 ac_cv_c_wall_winline=no
5156 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5157 if test "x${ac_cv_c_wall_winline}" != "xno"; then
5158 save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5162 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5163 echo "configure:5164: checking if \$CC accepts -pipe" >&5
5164 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5167 CFLAGS="${save_CFLAGS} -pipe"
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5176 if { (eval echo configure:5177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5188 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5189 if test "x${ac_cv_c_pipe}" != "xno"; then
5190 save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5193 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5194 echo "configure:5195: checking if \$CC accepts -O3" >&5
5195 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5196 echo $ac_n "(cached) $ac_c" 1>&6
5198 CFLAGS="${save_CFLAGS} -O3"
5199 cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5207 if { (eval echo configure:5208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5211 echo "configure: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5219 echo "$ac_t""$ac_cv_c_o3" 1>&6
5220 if test "x${ac_cv_c_o3}" != "xno"; then
5221 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5223 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5224 echo "configure:5225: checking if \$CC accepts -O2" >&5
5225 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5226 echo $ac_n "(cached) $ac_c" 1>&6
5228 CFLAGS="${save_CFLAGS} -O2"
5229 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5237 if { (eval echo configure:5238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5249 echo "$ac_t""$ac_cv_c_o2" 1>&6
5250 if test "x${ac_cv_c_o2}" != "xno"; then
5251 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5253 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5254 echo "configure:5255: checking if \$CC accepts -O" >&5
5255 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5256 echo $ac_n "(cached) $ac_c" 1>&6
5258 CFLAGS="${save_CFLAGS} -O"
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5267 if { (eval echo configure:5268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5279 echo "$ac_t""$ac_cv_c_o" 1>&6
5280 if test "x${ac_cv_c_o}" != "xno"; then
5281 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5286 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5287 echo "configure:5288: checking if \$CC accepts -ffast-math" >&5
5288 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5289 echo $ac_n "(cached) $ac_c" 1>&6
5291 CFLAGS="${save_CFLAGS} -ffast-math"
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5300 if { (eval echo configure:5301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5302 ac_cv_c_fast_math=yes
5304 echo "configure: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5307 ac_cv_c_fast_math=no
5312 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5313 if test "x${ac_cv_c_fast_math}" != "xno"; then
5314 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5317 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5318 echo "configure:5319: checking if \$CC accepts -funroll-loops" >&5
5319 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 CFLAGS="${save_CFLAGS} -funroll-loops"
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5331 if { (eval echo configure:5332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5333 ac_cv_c_unroll_loops=yes
5335 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5338 ac_cv_c_unroll_loops=no
5343 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5344 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5345 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5348 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5349 echo "configure:5350: checking if \$CC accepts -fomit-frame-pointer" >&5
5350 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5354 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5362 if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5364 ac_cv_c_omit_frame_pointer=yes
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5369 ac_cv_c_omit_frame_pointer=no
5374 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5375 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5376 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5377 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5378 chroma_i420_yuy2_mmx_CFLAGS="${chroma_i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5381 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5382 echo "configure:5383: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5383 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5384 echo $ac_n "(cached) $ac_c" 1>&6
5386 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5387 cat > conftest.$ac_ext <<EOF
5388 #line 5389 "configure"
5389 #include "confdefs.h"
5395 if { (eval echo configure:5396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5399 echo "configure: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5407 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5408 if test "x${ac_cv_ld_darwin}" != "xno"; then
5409 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5412 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5413 echo "configure:5414: checking if \$CC accepts -shared" >&5
5414 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 CFLAGS="${save_CFLAGS} -shared"
5418 cat > conftest.$ac_ext <<EOF
5419 #line 5420 "configure"
5420 #include "confdefs.h"
5426 if { (eval echo configure:5427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5428 ac_cv_ld_plugins=yes
5430 echo "configure: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5438 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5439 if test "x${ac_cv_ld_plugins}" != "xno"; then
5440 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5443 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5444 echo "configure:5445: checking for variadic cpp macros" >&5
5445 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5446 echo $ac_n "(cached) $ac_c" 1>&6
5448 CFLAGS="${save_CFLAGS}"
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5453 #define a(b,c...) printf(b,##c)
5455 a("foo");a("%s","bar");a("%s%s","baz","quux");
5458 if { (eval echo configure:5459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5460 ac_cv_cpp_variadic_macros=yes
5462 echo "configure: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5465 ac_cv_cpp_variadic_macros=no
5470 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5471 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5472 cat >> confdefs.h <<\EOF
5473 #define HAVE_VARIADIC_MACROS 1
5478 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5479 echo "configure:5480: checking __attribute__ ((aligned ())) support" >&5
5480 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5483 ac_cv_c_attribute_aligned=0
5484 CFLAGS="${save_CFLAGS} -Werror"
5485 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5486 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5491 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5494 if { (eval echo configure:5495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5496 ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5503 CFLAGS="${save_CFLAGS}"
5506 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5507 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5508 cat >> confdefs.h <<EOF
5509 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5514 case "x${target_cpu}" in
5519 ARCH="${target_cpu}"
5523 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
5524 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_audio mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga"
5526 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5527 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5528 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5529 SSE_MODULES="imdctsse downmixsse"
5530 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5532 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5533 echo "configure:5534: checking if \$CC groks MMX inline assembly" >&5
5534 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 CFLAGS="${save_CFLAGS}"
5538 cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5543 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5546 if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5548 ac_cv_mmx_inline=yes
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5558 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5559 if test "x${ac_cv_mmx_inline}" != "xno"; then
5560 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5563 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5564 echo "configure:5565: checking if \$CC groks MMX EXT inline assembly" >&5
5565 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5568 CFLAGS="${save_CFLAGS}"
5569 cat > conftest.$ac_ext <<EOF
5570 #line 5571 "configure"
5571 #include "confdefs.h"
5574 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5577 if { (eval echo configure:5578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5579 ac_cv_mmxext_inline=yes
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5584 ac_cv_mmxext_inline=no
5589 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5590 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5591 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5594 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5595 echo "configure:5596: checking if \$CC groks 3D Now! inline assembly" >&5
5596 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5599 CFLAGS="${save_CFLAGS}"
5600 cat > conftest.$ac_ext <<EOF
5601 #line 5602 "configure"
5602 #include "confdefs.h"
5605 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5608 if { (eval echo configure:5609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5610 ac_cv_3dnow_inline=yes
5612 echo "configure: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5615 ac_cv_3dnow_inline=no
5620 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5621 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5622 cat >> confdefs.h <<\EOF
5623 #define CAN_COMPILE_3DNOW 1
5626 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5629 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5630 echo "configure:5631: checking if \$CC groks SSE inline assembly" >&5
5631 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5632 echo $ac_n "(cached) $ac_c" 1>&6
5634 CFLAGS="${save_CFLAGS}"
5635 cat > conftest.$ac_ext <<EOF
5636 #line 5637 "configure"
5637 #include "confdefs.h"
5640 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5643 if { (eval echo configure:5644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5645 ac_cv_sse_inline=yes
5647 echo "configure: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5655 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5656 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5657 cat >> confdefs.h <<\EOF
5658 #define CAN_COMPILE_SSE 1
5661 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5664 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5665 # we should be able to remove this test with future versions of mingw32
5666 if test "x${SYS}" != "xmingw32"; then
5667 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5668 echo "configure:5669: checking if \$CC groks AltiVec inline assembly" >&5
5669 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5672 CFLAGS="${save_CFLAGS}"
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5678 asm volatile("vperm 0,1,2,3");
5681 if { (eval echo configure:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5683 ac_cv_altivec_inline=yes
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5688 CFLAGS="${save_CFLAGS} -Wa,-m7400"
5689 cat > conftest.$ac_ext <<EOF
5690 #line 5691 "configure"
5691 #include "confdefs.h"
5694 asm volatile("vperm 0,1,2,3");
5697 if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5699 ac_cv_altivec_inline="-Wa,-m7400"
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5704 ac_cv_altivec_inline=no
5712 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5713 if test "x${ac_cv_altivec_inline}" != "xno"; then
5714 cat >> confdefs.h <<\EOF
5715 #define CAN_COMPILE_ALTIVEC 1
5718 if test "x${ac_cv_altivec_inline}" != "xyes"; then
5719 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5720 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5721 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5722 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5724 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5727 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5728 echo "configure:5729: checking if \$CC groks AltiVec C extensions" >&5
5729 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5730 echo $ac_n "(cached) $ac_c" 1>&6
5732 CFLAGS="${save_CFLAGS} -faltivec"
5734 cat > conftest.$ac_ext <<EOF
5735 #line 5736 "configure"
5736 #include "confdefs.h"
5739 vec_mtvscr((vector unsigned int)(0));
5742 if { (eval echo configure:5743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5744 ac_cv_c_altivec=-faltivec
5746 echo "configure: failed program was:" >&5
5747 cat conftest.$ac_ext >&5
5751 CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5757 vec_mtvscr((vector unsigned int)(0));
5760 if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5762 ac_cv_c_altivec="-fvec"
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5773 CFLAGS="${save_CFLAGS}"
5776 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5777 if test "x${ac_cv_c_altivec}" != "xno"; then
5778 cat >> confdefs.h <<\EOF
5779 #define CAN_COMPILE_C_ALTIVEC 1
5782 idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5783 motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5784 memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5785 vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5786 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5789 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5790 echo "configure:5791: checking if linker needs -framework vecLib" >&5
5791 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5794 LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5795 cat > conftest.$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5803 if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5805 ac_cv_ld_altivec=yes
5807 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5
5813 LDFLAGS="${save_LDFLAGS}"
5817 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5818 if test "x${ac_cv_ld_altivec}" != "xno"; then
5819 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5820 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5821 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5822 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5827 # Check whether --with- or --without- was given.
5828 if test "${with_+set}" = set; then
5833 # Check whether --with- or --without- was given.
5834 if test "${with_+set}" = set; then
5840 # Check whether --with-tuning or --without-tuning was given.
5841 if test "${with_tuning+set}" = set; then
5842 withval="$with_tuning"
5846 if test "x${with_tuning}" != "x"; then
5847 TUNING="${with_tuning}"
5849 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
5851 if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
5855 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
5858 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5861 # Check whether --enable-optimizations or --disable-optimizations was given.
5862 if test "${enable_optimizations+set}" = set; then
5863 enableval="$enable_optimizations"
5864 if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi
5870 # Check whether --enable-altivec or --disable-altivec was given.
5871 if test "${enable_altivec+set}" = set; then
5872 enableval="$enable_altivec"
5873 if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
5874 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5876 if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
5877 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5882 # Check whether --enable-debug or --disable-debug was given.
5883 if test "${enable_debug+set}" = set; then
5884 enableval="$enable_debug"
5885 if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi
5890 # Check whether --enable-release or --disable-release was given.
5891 if test "${enable_release+set}" = set; then
5892 enableval="$enable_release"
5893 if test "x${enable_release}" = "xyes"; then RELEASE=1; fi
5895 VERSION="${VERSION}_`date +%Y-%m-%d`"
5900 # Check whether --with- or --without- was given.
5901 if test "${with_+set}" = set; then
5907 # Check whether --enable-dvd or --disable-dvd was given.
5908 if test "${enable_dvd+set}" = set; then
5909 enableval="$enable_dvd"
5913 if test "x${enable_dvd}" != "xno"
5915 # Check whether --with-dvdcss or --without-dvdcss was given.
5916 if test "${with_dvdcss+set}" = set; then
5917 withval="$with_dvdcss"
5921 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5922 if test "${with_dvdcss_tree+set}" = set; then
5923 withval="$with_dvdcss_tree"
5927 case "x${with_dvdcss}" in
5929 if test "x${with_dvdcss_tree}" = x
5931 for ac_hdr in dvdcss/dvdcss.h
5933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5935 echo "configure:5936: checking for $ac_hdr" >&5
5936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5937 echo $ac_n "(cached) $ac_c" 1>&6
5939 cat > conftest.$ac_ext <<EOF
5940 #line 5941 "configure"
5941 #include "confdefs.h"
5944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5945 { (eval echo configure:5946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5947 if test -z "$ac_err"; then
5949 eval "ac_cv_header_$ac_safe=yes"
5952 echo "configure: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5955 eval "ac_cv_header_$ac_safe=no"
5959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5960 echo "$ac_t""yes" 1>&6
5961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5962 cat >> confdefs.h <<EOF
5963 #define $ac_tr_hdr 1
5965 PLUGINS="${PLUGINS} dvd"
5966 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5968 echo "$ac_t""no" 1>&6
5969 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
5970 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5975 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5976 echo "configure:5977: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5977 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5978 if test "x${real_dvdcss_tree}" = "x"
5980 echo "$ac_t""no" 1>&6
5981 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5983 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5985 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5986 BUILTINS="${BUILTINS} dvd"
5987 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5988 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5990 echo "$ac_t""no" 1>&6
5991 { 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; }
5996 PLUGINS="${PLUGINS} dvd"
5997 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5998 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6001 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6002 echo "configure:6003: checking for dvdcss headers in ${with_dvdcss}" >&5
6003 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6005 echo "$ac_t""yes" 1>&6
6006 PLUGINS="${PLUGINS} dvd"
6007 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6008 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6010 echo "$ac_t""no" 1>&6
6011 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6017 # Check whether --enable-dvdread or --disable-dvdread was given.
6018 if test "${enable_dvdread+set}" = set; then
6019 enableval="$enable_dvdread"
6023 if test "x${enable_dvdread}" != "xno"
6025 # Check whether --with-dvdread or --without-dvdread was given.
6026 if test "${with_dvdread+set}" = set; then
6027 withval="$with_dvdread"
6031 if test "x${with_dvdread}" = "x"
6036 test_LDFLAGS="-L${with_dvdread}/lib"
6037 test_CFLAGS="-I${with_dvdread}/include"
6039 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6040 for ac_hdr in dvdread/dvd_reader.h
6042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6044 echo "configure:6045: checking for $ac_hdr" >&5
6045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6046 echo $ac_n "(cached) $ac_c" 1>&6
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054 { (eval echo configure:6055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6056 if test -z "$ac_err"; then
6058 eval "ac_cv_header_$ac_safe=yes"
6061 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6064 eval "ac_cv_header_$ac_safe=no"
6068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6069 echo "$ac_t""yes" 1>&6
6070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6071 cat >> confdefs.h <<EOF
6072 #define $ac_tr_hdr 1
6075 cat > conftest.$ac_ext <<EOF
6076 #line 6077 "configure"
6077 #include "confdefs.h"
6078 #include <dvdread/dvd_reader.h>
6080 void foo() { int i=DVD_VIDEO_LB_LEN; }
6083 if { (eval echo configure:6084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6086 PLUGINS="${PLUGINS} dvdread"
6087 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6088 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6091 echo "configure: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6095 if test "x${enable_dvdread}" != "x"
6097 { 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; }
6104 echo "$ac_t""no" 1>&6
6105 if test "x${enable_dvdread}" != "x"
6107 if test "x${with_dvdread}" != "x"
6109 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6111 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6118 CPPFLAGS="${save_CPPFLAGS}"
6121 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6122 if test "${enable_dvbpsi+set}" = set; then
6123 enableval="$enable_dvbpsi"
6127 if test "x${enable_dvbpsi}" != "xno"
6129 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6130 if test "${with_dvbpsi+set}" = set; then
6131 withval="$with_dvbpsi"
6135 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6136 if test "${with_dvbpsi+set}" = set; then
6137 withval="$with_dvbpsi"
6141 case "x${with_dvbpsi}" in
6143 if test "x${with_dvbpsi_tree}" = "x"
6145 for ac_hdr in dvbpsi/dr.h
6147 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6149 echo "configure:6150: checking for $ac_hdr" >&5
6150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6153 cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6159 { (eval echo configure:6160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6161 if test -z "$ac_err"; then
6163 eval "ac_cv_header_$ac_safe=yes"
6166 echo "configure: failed program was:" >&5
6167 cat conftest.$ac_ext >&5
6169 eval "ac_cv_header_$ac_safe=no"
6173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6174 echo "$ac_t""yes" 1>&6
6175 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6176 cat >> confdefs.h <<EOF
6177 #define $ac_tr_hdr 1
6179 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6180 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6182 echo "$ac_t""no" 1>&6
6187 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6188 echo "configure:6189: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6189 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6190 if test "x${real_dvbpsi_tree}" = "x"
6192 echo "$ac_t""no" 1>&6
6193 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6195 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6197 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6198 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6199 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6200 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6202 echo "$ac_t""no" 1>&6
6203 { 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; }
6210 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6211 echo "configure:6212: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6212 if test "x${with_dvbpsi}" = "x"
6217 test_LDFLAGS="-L${with_dvbpsi}/lib"
6218 test_CFLAGS="-I${with_dvbpsi}/include"
6220 CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6221 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6222 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6223 echo "configure:6224: checking for dvbpsi/dr.h" >&5
6224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6225 echo $ac_n "(cached) $ac_c" 1>&6
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 #include <dvbpsi/dr.h>
6232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6233 { (eval echo configure:6234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6235 if test -z "$ac_err"; then
6237 eval "ac_cv_header_$ac_safe=yes"
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6243 eval "ac_cv_header_$ac_safe=no"
6247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6248 echo "$ac_t""yes" 1>&6
6250 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6251 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6252 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6255 echo "$ac_t""no" 1>&6
6257 if test "x${enable_dvbpsi}" != "x"
6259 { 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; }
6264 CPPFLAGS="${save_CPPFLAGS}"
6269 # Check whether --enable-vcd or --disable-vcd was given.
6270 if test "${enable_vcd+set}" = set; then
6271 enableval="$enable_vcd"
6276 if test "x${enable_vcd}" != "xno"
6278 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure"
6280 #include "confdefs.h"
6281 #include <linux/cdrom.h>
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 egrep "cdrom_msf0" >/dev/null 2>&1; then
6287 PLUGINS="${PLUGINS} vcd"
6293 cat > conftest.$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 #include <sys/cdio.h>
6298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299 egrep "ioc_toc_header " >/dev/null 2>&1; then
6302 PLUGINS="${PLUGINS} vcd"
6303 cat >> confdefs.h <<\EOF
6304 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6312 if test "x${SYS}" = "xbsdi"
6314 PLUGINS="${PLUGINS} vcd"
6317 if test "x${SYS}" = "xdarwin"
6319 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6320 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6324 # Check whether --enable-satellite or --disable-satellite was given.
6325 if test "${enable_satellite+set}" = set; then
6326 enableval="$enable_satellite"
6327 if test "x${enable_satellite}" = "xyes"
6329 PLUGINS="${PLUGINS} satellite"
6334 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6336 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6337 echo "configure:6338: checking for inet_pton" >&5
6338 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6344 /* System header to define __stub macros and hopefully few prototypes,
6345 which can conflict with char inet_pton(); below. */
6347 /* Override any gcc2 internal prototype to avoid an error. */
6348 /* We use char because int might match the return type of a gcc2
6349 builtin and then its argument prototype would still apply. */
6354 /* The GNU C library defines this for functions which it implements
6355 to always fail with ENOSYS. Some functions are actually named
6356 something starting with __ and the normal name is an alias. */
6357 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6365 if { (eval echo configure:6366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6367 eval "ac_cv_func_inet_pton=yes"
6369 echo "configure: failed program was:" >&5
6370 cat conftest.$ac_ext >&5
6372 eval "ac_cv_func_inet_pton=no"
6377 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6378 echo "$ac_t""yes" 1>&6
6379 PLUGINS="${PLUGINS} ipv6"
6381 echo "$ac_t""no" 1>&6
6383 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6384 echo "configure:6385: checking for inet_pton in -lresolv" >&5
6385 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6389 ac_save_LIBS="$LIBS"
6390 LIBS="-lresolv $LIBS"
6391 cat > conftest.$ac_ext <<EOF
6392 #line 6393 "configure"
6393 #include "confdefs.h"
6394 /* Override any gcc2 internal prototype to avoid an error. */
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6403 if { (eval echo configure:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6405 eval "ac_cv_lib_$ac_lib_var=yes"
6407 echo "configure: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6410 eval "ac_cv_lib_$ac_lib_var=no"
6413 LIBS="$ac_save_LIBS"
6416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6417 echo "$ac_t""yes" 1>&6
6418 PLUGINS="${PLUGINS} ipv6"
6419 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6421 echo "$ac_t""no" 1>&6
6428 if test "x${SYS}" = "xmingw32"
6430 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6431 echo "configure:6432: checking for getaddrinfo in ws2tcpip.h" >&5
6432 cat > conftest.$ac_ext <<EOF
6433 #line 6434 "configure"
6434 #include "confdefs.h"
6435 #include <ws2tcpip.h>
6437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438 egrep "addrinfo" >/dev/null 2>&1; then
6440 echo "$ac_t""yes" 1>&6
6441 PLUGINS="${PLUGINS} ipv6"
6444 echo "$ac_t""no" 1>&6
6450 # Check whether --enable-avi or --disable-avi was given.
6451 if test "${enable_avi+set}" = set; then
6452 enableval="$enable_avi"
6456 if test "x${enable_avi}" != "xno"
6458 PLUGINS="${PLUGINS} avi"
6462 # Check whether --with- or --without- was given.
6463 if test "${with_+set}" = set; then
6469 # Check whether --enable-mad or --disable-mad was given.
6470 if test "${enable_mad+set}" = set; then
6471 enableval="$enable_mad"
6475 if test "x${enable_mad}" = "xyes"
6477 # Check whether --with-mad or --without-mad was given.
6478 if test "${with_mad+set}" = set; then
6483 if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6485 mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6486 mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6489 # Check whether --with-mad-tree or --without-mad-tree was given.
6490 if test "${with_mad_tree+set}" = set; then
6491 withval="$with_mad_tree"
6495 if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6497 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6498 if test "x${real_mad_tree}" = "x"
6500 echo "$ac_t""no" 1>&6
6501 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6503 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6504 echo "configure:6505: checking for mad.h in ${real_mad_tree}/libmad" >&5
6505 if test -f ${real_mad_tree}/libmad/mad.h
6507 echo "$ac_t""yes" 1>&6
6508 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6509 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6510 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6511 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6512 echo "configure:6513: checking for mad_bit_init in -lmad" >&5
6513 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6515 echo $ac_n "(cached) $ac_c" 1>&6
6517 ac_save_LIBS="$LIBS"
6519 cat > conftest.$ac_ext <<EOF
6520 #line 6521 "configure"
6521 #include "confdefs.h"
6522 /* Override any gcc2 internal prototype to avoid an error. */
6523 /* We use char because int might match the return type of a gcc2
6524 builtin and then its argument prototype would still apply. */
6525 char mad_bit_init();
6531 if { (eval echo configure:6532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533 eval "ac_cv_lib_$ac_lib_var=yes"
6535 echo "configure: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6538 eval "ac_cv_lib_$ac_lib_var=no"
6541 LIBS="$ac_save_LIBS"
6544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6545 echo "$ac_t""yes" 1>&6
6547 BUILTINS="${BUILTINS} mad"
6548 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6551 echo "$ac_t""no" 1>&6
6552 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6556 LDFLAGS="${save_LDFLAGS}"
6558 echo "$ac_t""no" 1>&6
6559 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6562 CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6563 LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6568 echo "configure:6569: checking for $ac_hdr" >&5
6569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6572 cat > conftest.$ac_ext <<EOF
6573 #line 6574 "configure"
6574 #include "confdefs.h"
6577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6578 { (eval echo configure:6579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6580 if test -z "$ac_err"; then
6582 eval "ac_cv_header_$ac_safe=yes"
6585 echo "configure: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6588 eval "ac_cv_header_$ac_safe=no"
6592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6593 echo "$ac_t""yes" 1>&6
6594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6595 cat >> confdefs.h <<EOF
6596 #define $ac_tr_hdr 1
6600 echo "$ac_t""no" 1>&6
6601 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6605 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6606 echo "configure:6607: checking for mad_bit_init in -lmad" >&5
6607 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6609 echo $ac_n "(cached) $ac_c" 1>&6
6611 ac_save_LIBS="$LIBS"
6613 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6619 char mad_bit_init();
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6627 eval "ac_cv_lib_$ac_lib_var=yes"
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6632 eval "ac_cv_lib_$ac_lib_var=no"
6635 LIBS="$ac_save_LIBS"
6638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6639 echo "$ac_t""yes" 1>&6
6641 PLUGINS="${PLUGINS} mad"
6642 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6644 echo "$ac_t""no" 1>&6
6645 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6648 CFLAGS="${save_CFLAGS}"
6649 LDFLAGS="${save_LDFLAGS}"
6653 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6654 if test "${enable_ffmpeg+set}" = set; then
6655 enableval="$enable_ffmpeg"
6659 if test "x${enable_ffmpeg}" = "xyes"
6661 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6662 if test "${with_ffmpeg+set}" = set; then
6663 withval="$with_ffmpeg"
6667 if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6669 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6670 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6673 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6674 if test "${with_ffmpeg_tree+set}" = set; then
6675 withval="$with_ffmpeg_tree"
6679 if test "x${with_ffmpeg_tree}" != "x"
6681 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6682 echo "configure:6683: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6683 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6684 if test "x${real_ffmpeg_tree}" = x
6686 echo "$ac_t""no" 1>&6
6687 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6689 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6691 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6692 BUILTINS="${BUILTINS} ffmpeg"
6693 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6694 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6696 echo "$ac_t""no" 1>&6
6697 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6700 CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
6701 LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
6702 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6703 echo "configure:6704: checking for avcodec_init in -lavcodec" >&5
6704 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 ac_save_LIBS="$LIBS"
6709 LIBS="-lavcodec $LIBS"
6710 cat > conftest.$ac_ext <<EOF
6711 #line 6712 "configure"
6712 #include "confdefs.h"
6713 /* Override any gcc2 internal prototype to avoid an error. */
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6716 char avcodec_init();
6722 if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6724 eval "ac_cv_lib_$ac_lib_var=yes"
6726 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6729 eval "ac_cv_lib_$ac_lib_var=no"
6732 LIBS="$ac_save_LIBS"
6735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6738 BUILTINS="${BUILTINS} ffmpeg"
6739 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6741 echo "$ac_t""no" 1>&6
6742 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6745 LDFLAGS="${save_LDFLAGS}"
6746 CFLAGS="${save_CFLAGS}"
6750 # Check whether --enable-mp4 or --disable-mp4 was given.
6751 if test "${enable_mp4+set}" = set; then
6752 enableval="$enable_mp4"
6756 if test "x${enable_mp4}" = "xyes"
6758 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
6759 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
6760 echo "configure:6761: checking for zlib.h" >&5
6761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6764 cat > conftest.$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6770 { (eval echo configure:6771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6772 if test -z "$ac_err"; then
6774 eval "ac_cv_header_$ac_safe=yes"
6777 echo "configure: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6780 eval "ac_cv_header_$ac_safe=no"
6784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 echo $ac_n "checking for inflateEnd in -lz""... $ac_c" 1>&6
6787 echo "configure:6788: checking for inflateEnd in -lz" >&5
6788 ac_lib_var=`echo z'_'inflateEnd | sed 'y%./+-%__p_%'`
6789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6792 ac_save_LIBS="$LIBS"
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808 eval "ac_cv_lib_$ac_lib_var=yes"
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 eval "ac_cv_lib_$ac_lib_var=no"
6816 LIBS="$ac_save_LIBS"
6819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 PLUGINS="${PLUGINS} mp4"
6822 mp4_LDFLAGS="${mp4_LDFLAGS} -lz"
6824 echo "$ac_t""no" 1>&6
6825 { echo "configure: error: cannot find zlib library..." 1>&2; exit 1; }
6829 echo "$ac_t""no" 1>&6
6830 { echo "configure: error: cannot find zlib header..." 1>&2; exit 1; }
6835 if test "x${SYS}" = "xbeos"
6837 PLUGINS="${PLUGINS} beos"
6840 # Check whether --enable-a52 or --disable-a52 was given.
6841 if test "${enable_a52+set}" = set; then
6842 enableval="$enable_a52"
6846 if test "x${enable_a52}" != "xno"
6848 # Check whether --with-a52-tree or --without-a52-tree was given.
6849 if test "${with_a52_tree+set}" = set; then
6850 withval="$with_a52_tree"
6854 if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
6856 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6857 if test "x${real_a52_tree}" = "x"
6859 echo "$ac_t""no" 1>&6
6860 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6862 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6863 echo "configure:6864: checking for a52.h in ${real_a52_tree}/include" >&5
6864 if test -f ${real_a52_tree}/include/a52.h
6866 echo "$ac_t""yes" 1>&6
6867 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6868 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6869 LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
6870 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6871 echo "configure:6872: checking for a52_free in -la52" >&5
6872 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6874 echo $ac_n "(cached) $ac_c" 1>&6
6876 ac_save_LIBS="$LIBS"
6877 LIBS="-la52 -lm $LIBS"
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6892 eval "ac_cv_lib_$ac_lib_var=yes"
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6897 eval "ac_cv_lib_$ac_lib_var=no"
6900 LIBS="$ac_save_LIBS"
6903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6904 echo "$ac_t""yes" 1>&6
6906 BUILTINS="${BUILTINS} a52"
6907 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6908 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6911 echo "$ac_t""no" 1>&6
6913 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6915 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6917 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6922 LDFLAGS="${save_LDFLAGS}"
6924 echo "$ac_t""no" 1>&6
6925 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6927 else for ac_hdr in a52dec/a52.h
6929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6931 echo "configure:6932: checking for $ac_hdr" >&5
6932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6933 echo $ac_n "(cached) $ac_c" 1>&6
6935 cat > conftest.$ac_ext <<EOF
6936 #line 6937 "configure"
6937 #include "confdefs.h"
6940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6941 { (eval echo configure:6942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6943 if test -z "$ac_err"; then
6945 eval "ac_cv_header_$ac_safe=yes"
6948 echo "configure: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 eval "ac_cv_header_$ac_safe=no"
6955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6956 echo "$ac_t""yes" 1>&6
6957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6958 cat >> confdefs.h <<EOF
6959 #define $ac_tr_hdr 1
6962 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6963 echo "configure:6964: checking for a52_free in -la52" >&5
6964 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6968 ac_save_LIBS="$LIBS"
6969 LIBS="-la52 -lm $LIBS"
6970 cat > conftest.$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6973 /* Override any gcc2 internal prototype to avoid an error. */
6974 /* We use char because int might match the return type of a gcc2
6975 builtin and then its argument prototype would still apply. */
6982 if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6984 eval "ac_cv_lib_$ac_lib_var=yes"
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6989 eval "ac_cv_lib_$ac_lib_var=no"
6992 LIBS="$ac_save_LIBS"
6995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6998 BUILTINS="${BUILTINS} a52"
6999 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7000 a52_CFLAGS="${a52_CFLAGS}"
7003 echo "$ac_t""no" 1>&6
7008 echo "$ac_t""no" 1>&6
7015 # Check whether --enable-cinepak or --disable-cinepak was given.
7016 if test "${enable_cinepak+set}" = set; then
7017 enableval="$enable_cinepak"
7021 if test "x${enable_cinepak}" != "xno"
7023 PLUGINS="${PLUGINS} cinepak"
7026 # Check whether --enable-vorbis or --disable-vorbis was given.
7027 if test "${enable_vorbis+set}" = set; then
7028 enableval="$enable_vorbis"
7032 if test "x${enable_vorbis}" != "xno"
7034 for ac_hdr in ogg/ogg.h
7036 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7038 echo "configure:7039: checking for $ac_hdr" >&5
7039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7040 echo $ac_n "(cached) $ac_c" 1>&6
7042 cat > conftest.$ac_ext <<EOF
7043 #line 7044 "configure"
7044 #include "confdefs.h"
7047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7048 { (eval echo configure:7049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7050 if test -z "$ac_err"; then
7052 eval "ac_cv_header_$ac_safe=yes"
7055 echo "configure: failed program was:" >&5
7056 cat conftest.$ac_ext >&5
7058 eval "ac_cv_header_$ac_safe=no"
7062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7063 echo "$ac_t""yes" 1>&6
7064 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7065 cat >> confdefs.h <<EOF
7066 #define $ac_tr_hdr 1
7069 #PLUGINS="${PLUGINS} vorbis"
7070 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7073 echo "$ac_t""no" 1>&6
7080 # Check whether --with- or --without- was given.
7081 if test "${with_+set}" = set; then
7087 # Check whether --enable-x11 or --disable-x11 was given.
7088 if test "${enable_x11+set}" = set; then
7089 enableval="$enable_x11"
7093 if test "x${enable_x11}" != "xno" &&
7094 (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7095 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7096 for ac_hdr in X11/Xlib.h
7098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7100 echo "configure:7101: checking for $ac_hdr" >&5
7101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7102 echo $ac_n "(cached) $ac_c" 1>&6
7104 cat > conftest.$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7110 { (eval echo configure:7111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7112 if test -z "$ac_err"; then
7114 eval "ac_cv_header_$ac_safe=yes"
7117 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5
7120 eval "ac_cv_header_$ac_safe=no"
7124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7125 echo "$ac_t""yes" 1>&6
7126 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7127 cat >> confdefs.h <<EOF
7128 #define $ac_tr_hdr 1
7131 PLUGINS="${PLUGINS} x11"
7132 x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7133 x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7136 echo "$ac_t""no" 1>&6
7140 CPPFLAGS="${save_CPPFLAGS}"
7143 # Check whether --enable-xvideo or --disable-xvideo was given.
7144 if test "${enable_xvideo+set}" = set; then
7145 enableval="$enable_xvideo"
7149 if test "x${enable_xvideo}" != "xno" &&
7150 (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7151 CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7152 for ac_hdr in X11/extensions/Xv.h
7154 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7155 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7156 echo "configure:7157: checking for $ac_hdr" >&5
7157 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7158 echo $ac_n "(cached) $ac_c" 1>&6
7160 cat > conftest.$ac_ext <<EOF
7161 #line 7162 "configure"
7162 #include "confdefs.h"
7165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7166 { (eval echo configure:7167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7168 if test -z "$ac_err"; then
7170 eval "ac_cv_header_$ac_safe=yes"
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7176 eval "ac_cv_header_$ac_safe=no"
7180 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7181 echo "$ac_t""yes" 1>&6
7182 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7183 cat >> confdefs.h <<EOF
7184 #define $ac_tr_hdr 1
7187 CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7188 echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7189 echo "configure:7190: checking for XvPutImage in -lXv_pic" >&5
7190 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7194 ac_save_LIBS="$LIBS"
7195 LIBS="-lXv_pic $LIBS"
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7199 /* Override any gcc2 internal prototype to avoid an error. */
7200 /* We use char because int might match the return type of a gcc2
7201 builtin and then its argument prototype would still apply. */
7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7210 eval "ac_cv_lib_$ac_lib_var=yes"
7212 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7215 eval "ac_cv_lib_$ac_lib_var=no"
7218 LIBS="$ac_save_LIBS"
7221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7222 echo "$ac_t""yes" 1>&6
7223 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7224 PLUGINS="${PLUGINS} xvideo"
7225 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7226 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7228 echo "$ac_t""no" 1>&6
7229 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7230 echo "configure:7231: checking for XvPutImage in -lXv" >&5
7231 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7233 echo $ac_n "(cached) $ac_c" 1>&6
7235 ac_save_LIBS="$LIBS"
7237 cat > conftest.$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 /* Override any gcc2 internal prototype to avoid an error. */
7241 /* We use char because int might match the return type of a gcc2
7242 builtin and then its argument prototype would still apply. */
7249 if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7251 eval "ac_cv_lib_$ac_lib_var=yes"
7253 echo "configure: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7256 eval "ac_cv_lib_$ac_lib_var=no"
7259 LIBS="$ac_save_LIBS"
7262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7263 echo "$ac_t""yes" 1>&6
7264 # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7265 PLUGINS="${PLUGINS} xvideo"
7266 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7267 xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7269 echo "$ac_t""no" 1>&6
7270 # Otherwise... well, do nothing.
7277 CFLAGS="${save_CFLAGS}"
7279 CPPFLAGS="${save_CPPFLAGS}"
7281 echo "$ac_t""no" 1>&6
7287 # Check whether --enable-sdl or --disable-sdl was given.
7288 if test "${enable_sdl+set}" = set; then
7289 enableval="$enable_sdl"
7293 if test "x${enable_sdl}" != "xno"
7296 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7297 if test "${with_sdl_config_path+set}" = set; then
7298 withval="$with_sdl_config_path"
7299 if test "x${with_sdl_config_path}" != "xno"
7301 SDL_PATH="${with_sdl_config_path}:${PATH}"
7305 # Extract the first word of "sdl12-config", so it can be a program name with args.
7306 set dummy sdl12-config; ac_word=$2
7307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7308 echo "configure:7309: checking for $ac_word" >&5
7309 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7312 case "$SDL12_CONFIG" in
7314 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7317 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7321 ac_dummy="${SDL_PATH}"
7322 for ac_dir in $ac_dummy; do
7323 test -z "$ac_dir" && ac_dir=.
7324 if test -f $ac_dir/$ac_word; then
7325 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7330 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7334 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7335 if test -n "$SDL12_CONFIG"; then
7336 echo "$ac_t""$SDL12_CONFIG" 1>&6
7338 echo "$ac_t""no" 1>&6
7341 SDL_CONFIG="${SDL12_CONFIG}"
7342 SDL_HEADER="SDL12/SDL.h"
7343 if test "x${SDL_CONFIG}" = "xno"
7345 # Extract the first word of "sdl11-config", so it can be a program name with args.
7346 set dummy sdl11-config; ac_word=$2
7347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7348 echo "configure:7349: checking for $ac_word" >&5
7349 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7352 case "$SDL11_CONFIG" in
7354 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7357 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7361 ac_dummy="${SDL_PATH}"
7362 for ac_dir in $ac_dummy; do
7363 test -z "$ac_dir" && ac_dir=.
7364 if test -f $ac_dir/$ac_word; then
7365 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7370 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7374 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7375 if test -n "$SDL11_CONFIG"; then
7376 echo "$ac_t""$SDL11_CONFIG" 1>&6
7378 echo "$ac_t""no" 1>&6
7381 SDL_CONFIG=${SDL11_CONFIG}
7382 SDL_HEADER="SDL11/SDL.h"
7384 if test "x${SDL_CONFIG}" = "xno"
7386 # Extract the first word of "sdl-config", so it can be a program name with args.
7387 set dummy sdl-config; ac_word=$2
7388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7389 echo "configure:7390: checking for $ac_word" >&5
7390 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7391 echo $ac_n "(cached) $ac_c" 1>&6
7393 case "$SDL_CONFIG" in
7395 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7398 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7402 ac_dummy="${SDL_PATH}"
7403 for ac_dir in $ac_dummy; do
7404 test -z "$ac_dir" && ac_dir=.
7405 if test -f $ac_dir/$ac_word; then
7406 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7411 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7415 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7416 if test -n "$SDL_CONFIG"; then
7417 echo "$ac_t""$SDL_CONFIG" 1>&6
7419 echo "$ac_t""no" 1>&6
7422 SDL_HEADER="SDL/SDL.h"
7424 if test "x${SDL_CONFIG}" != "xno"
7426 PLUGINS="${PLUGINS} sdl"
7427 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7428 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7429 CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7430 for ac_hdr in ${SDL_HEADER}
7432 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7434 echo "configure:7435: checking for $ac_hdr" >&5
7435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7444 { (eval echo configure:7445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7446 if test -z "$ac_err"; then
7448 eval "ac_cv_header_$ac_safe=yes"
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7454 eval "ac_cv_header_$ac_safe=no"
7458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7459 echo "$ac_t""yes" 1>&6
7460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7461 cat >> confdefs.h <<EOF
7462 #define $ac_tr_hdr 1
7464 cat >> confdefs.h <<EOF
7465 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7469 echo "$ac_t""no" 1>&6
7470 { echo "configure: error: The development package for SDL is not installed.
7471 Please install it and try again. Alternatively you can also configure with
7472 --disable-sdl." 1>&2; exit 1; }
7477 CPPFLAGS="${save_CPPFLAGS}"
7478 if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7480 { echo "configure: error: The development package for SDL is not installed.
7481 Please install it and try again. Alternatively you can also configure with
7482 --disable-sdl." 1>&2; exit 1; }
7484 elif test "x${enable_sdl}" = "xyes"
7486 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7487 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7492 # Check whether --enable-directx or --disable-directx was given.
7493 if test "${enable_directx+set}" = set; then
7494 enableval="$enable_directx"
7498 if test "x${enable_directx}" != "xno"
7500 if test "x${SYS}" = "xmingw32"
7502 # Check whether --with-directx or --without-directx was given.
7503 if test "${with_directx+set}" = set; then
7504 withval="$with_directx"
7508 if test "x${with_directx}" = "x"
7510 for ac_hdr in ddraw.h
7512 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7514 echo "configure:7515: checking for $ac_hdr" >&5
7515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7516 echo $ac_n "(cached) $ac_c" 1>&6
7518 cat > conftest.$ac_ext <<EOF
7519 #line 7520 "configure"
7520 #include "confdefs.h"
7523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7524 { (eval echo configure:7525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7526 if test -z "$ac_err"; then
7528 eval "ac_cv_header_$ac_safe=yes"
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7534 eval "ac_cv_header_$ac_safe=no"
7538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7539 echo "$ac_t""yes" 1>&6
7540 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7541 cat >> confdefs.h <<EOF
7542 #define $ac_tr_hdr 1
7544 PLUGINS="${PLUGINS} directx"
7545 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7547 echo "$ac_t""no" 1>&6
7552 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7553 echo "configure:7554: checking for directX headers in ${with_directx}" >&5
7554 if test -f ${with_directx}/ddraw.h
7556 PLUGINS="${PLUGINS} directx"
7557 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7558 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7559 echo "$ac_t""yes" 1>&6
7561 echo "$ac_t""no" 1>&6
7562 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7568 # Check whether --enable-fb or --disable-fb was given.
7569 if test "${enable_fb+set}" = set; then
7570 enableval="$enable_fb"
7574 if test "x${enable_fb}" != "xno"
7576 for ac_hdr in linux/fb.h
7578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7580 echo "configure:7581: checking for $ac_hdr" >&5
7581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7582 echo $ac_n "(cached) $ac_c" 1>&6
7584 cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7590 { (eval echo configure:7591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7592 if test -z "$ac_err"; then
7594 eval "ac_cv_header_$ac_safe=yes"
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7600 eval "ac_cv_header_$ac_safe=no"
7604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7605 echo "$ac_t""yes" 1>&6
7606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7607 cat >> confdefs.h <<EOF
7608 #define $ac_tr_hdr 1
7611 PLUGINS="${PLUGINS} fb"
7614 echo "$ac_t""no" 1>&6
7620 # Check whether --enable-mga or --disable-mga was given.
7621 if test "${enable_mga+set}" = set; then
7622 enableval="$enable_mga"
7623 if test "x${enable_mga}" = "xyes"
7625 PLUGINS="${PLUGINS} mga xmga"
7630 # Check whether --enable-ggi or --disable-ggi was given.
7631 if test "${enable_ggi+set}" = set; then
7632 enableval="$enable_ggi"
7636 if test "x${enable_ggi}" = "xyes"
7638 PLUGINS="${PLUGINS} ggi"
7639 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7640 # Check whether --with-ggi or --without-ggi was given.
7641 if test "${with_ggi+set}" = set; then
7643 if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
7645 CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
7646 ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
7652 # Check whether --enable-glide or --disable-glide was given.
7653 if test "${enable_glide+set}" = set; then
7654 enableval="$enable_glide"
7658 if test "x${enable_glide}" = "xyes"
7660 PLUGINS="${PLUGINS} glide"
7661 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7662 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7663 # Check whether --with-glide or --without-glide was given.
7664 if test "${with_glide+set}" = set; then
7665 withval="$with_glide"
7666 if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
7668 glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
7669 glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
7675 # Check whether --enable-aa or --disable-aa was given.
7676 if test "${enable_aa+set}" = set; then
7677 enableval="$enable_aa"
7681 if test "x${enable_aa}" = "xyes"
7683 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7684 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7685 echo "configure:7686: checking for aalib.h" >&5
7686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7687 echo $ac_n "(cached) $ac_c" 1>&6
7689 cat > conftest.$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7695 { (eval echo configure:7696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7697 if test -z "$ac_err"; then
7699 eval "ac_cv_header_$ac_safe=yes"
7702 echo "configure: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7705 eval "ac_cv_header_$ac_safe=no"
7709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7710 echo "$ac_t""yes" 1>&6
7713 echo "$ac_t""no" 1>&6
7717 if test "x${have_aa}" = "xtrue"
7719 PLUGINS="${PLUGINS} aa"
7720 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7725 # Check whether --with- or --without- was given.
7726 if test "${with_+set}" = set; then
7732 # Check whether --enable-dsp or --disable-dsp was given.
7733 if test "${enable_dsp+set}" = set; then
7734 enableval="$enable_dsp"
7739 if test "x${enable_dsp}" != "xno" &&
7740 (test "x${SYS}" != "xmingw32" || test "x${enable_dsp}" = "xyes")
7742 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7746 echo "configure:7747: checking for $ac_hdr" >&5
7747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7748 echo $ac_n "(cached) $ac_c" 1>&6
7750 cat > conftest.$ac_ext <<EOF
7751 #line 7752 "configure"
7752 #include "confdefs.h"
7755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7756 { (eval echo configure:7757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7758 if test -z "$ac_err"; then
7760 eval "ac_cv_header_$ac_safe=yes"
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7766 eval "ac_cv_header_$ac_safe=no"
7770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7771 echo "$ac_t""yes" 1>&6
7772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7773 cat >> confdefs.h <<EOF
7774 #define $ac_tr_hdr 1
7777 PLUGINS="${PLUGINS} dsp"
7778 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7779 echo "configure:7780: checking for main in -lossaudio" >&5
7780 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7782 echo $ac_n "(cached) $ac_c" 1>&6
7784 ac_save_LIBS="$LIBS"
7785 LIBS="-lossaudio $LIBS"
7786 cat > conftest.$ac_ext <<EOF
7787 #line 7788 "configure"
7788 #include "confdefs.h"
7794 if { (eval echo configure:7795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7796 eval "ac_cv_lib_$ac_lib_var=yes"
7798 echo "configure: failed program was:" >&5
7799 cat conftest.$ac_ext >&5
7801 eval "ac_cv_lib_$ac_lib_var=no"
7804 LIBS="$ac_save_LIBS"
7807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7808 echo "$ac_t""yes" 1>&6
7809 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7811 echo "$ac_t""no" 1>&6
7816 echo "$ac_t""no" 1>&6
7822 # Check whether --enable-esd or --disable-esd was given.
7823 if test "${enable_esd+set}" = set; then
7824 enableval="$enable_esd"
7825 if test "x${enable_esd}" = "xyes"
7827 # Extract the first word of "esd-config", so it can be a program name with args.
7828 set dummy esd-config; ac_word=$2
7829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7830 echo "configure:7831: checking for $ac_word" >&5
7831 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7832 echo $ac_n "(cached) $ac_c" 1>&6
7834 case "$ESD_CONFIG" in
7836 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7839 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7844 for ac_dir in $ac_dummy; do
7845 test -z "$ac_dir" && ac_dir=.
7846 if test -f $ac_dir/$ac_word; then
7847 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7852 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7856 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7857 if test -n "$ESD_CONFIG"; then
7858 echo "$ac_t""$ESD_CONFIG" 1>&6
7860 echo "$ac_t""no" 1>&6
7863 if test "x${ESD_CONFIG}" != "xno"
7865 PLUGINS="${PLUGINS} esd"
7866 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7867 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7873 # Check whether --enable-arts or --disable-arts was given.
7874 if test "${enable_arts+set}" = set; then
7875 enableval="$enable_arts"
7876 if test "x${enable_arts}" = "xyes"
7878 # Extract the first word of "artsc-config", so it can be a program name with args.
7879 set dummy artsc-config; ac_word=$2
7880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7881 echo "configure:7882: checking for $ac_word" >&5
7882 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7883 echo $ac_n "(cached) $ac_c" 1>&6
7885 case "$ARTS_CONFIG" in
7887 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7890 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7895 for ac_dir in $ac_dummy; do
7896 test -z "$ac_dir" && ac_dir=.
7897 if test -f $ac_dir/$ac_word; then
7898 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7903 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7907 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7908 if test -n "$ARTS_CONFIG"; then
7909 echo "$ac_t""$ARTS_CONFIG" 1>&6
7911 echo "$ac_t""no" 1>&6
7914 if test "x${ARTS_CONFIG}" != "xno"
7916 PLUGINS="${PLUGINS} arts"
7917 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7918 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7924 # Check whether --enable-alsa or --disable-alsa was given.
7925 if test "${enable_alsa+set}" = set; then
7926 enableval="$enable_alsa"
7927 if test "x${enable_alsa}" = "xyes"
7929 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7930 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7931 echo "configure:7932: checking for alsa/asoundlib.h" >&5
7932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
7935 cat > conftest.$ac_ext <<EOF
7936 #line 7937 "configure"
7937 #include "confdefs.h"
7938 #include <alsa/asoundlib.h>
7940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7941 { (eval echo configure:7942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7943 if test -z "$ac_err"; then
7945 eval "ac_cv_header_$ac_safe=yes"
7948 echo "configure: failed program was:" >&5
7949 cat conftest.$ac_ext >&5
7951 eval "ac_cv_header_$ac_safe=no"
7955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7956 echo "$ac_t""yes" 1>&6
7957 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7958 echo "configure:7959: checking for main in -lasound" >&5
7959 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
7963 ac_save_LIBS="$LIBS"
7964 LIBS="-lasound $LIBS"
7965 cat > conftest.$ac_ext <<EOF
7966 #line 7967 "configure"
7967 #include "confdefs.h"
7973 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7975 eval "ac_cv_lib_$ac_lib_var=yes"
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 eval "ac_cv_lib_$ac_lib_var=no"
7983 LIBS="$ac_save_LIBS"
7986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7987 echo "$ac_t""yes" 1>&6
7990 echo "$ac_t""no" 1>&6
7995 echo "$ac_t""no" 1>&6
7999 if test "x${have_alsa}" = "xtrue"
8001 PLUGINS="${PLUGINS} alsa"
8002 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8008 # Check whether --enable-waveout or --disable-waveout was given.
8009 if test "${enable_waveout+set}" = set; then
8010 enableval="$enable_waveout"
8014 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8016 PLUGINS="${PLUGINS} waveout"
8017 waveout_LDFLAGS="-lwinmm"
8021 # Check whether --with- or --without- was given.
8022 if test "${with_+set}" = set; then
8028 # Check whether --enable-gtk or --disable-gtk was given.
8029 if test "${enable_gtk+set}" = set; then
8030 enableval="$enable_gtk"
8034 if test "x${enable_gtk}" != "xno"
8037 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8038 if test "${with_gtk_config_path+set}" = set; then
8039 withval="$with_gtk_config_path"
8040 if test "x${with_gtk_config_path}" != "xno"
8042 GTK_PATH="${with_gtk_config_path}:${PATH}"
8046 # look for gtk-config
8047 # Extract the first word of "gtk12-config", so it can be a program name with args.
8048 set dummy gtk12-config; ac_word=$2
8049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8050 echo "configure:8051: checking for $ac_word" >&5
8051 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8054 case "$GTK12_CONFIG" in
8056 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8059 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8063 ac_dummy="${GTK_PATH}"
8064 for ac_dir in $ac_dummy; do
8065 test -z "$ac_dir" && ac_dir=.
8066 if test -f $ac_dir/$ac_word; then
8067 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8072 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8076 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8077 if test -n "$GTK12_CONFIG"; then
8078 echo "$ac_t""$GTK12_CONFIG" 1>&6
8080 echo "$ac_t""no" 1>&6
8083 GTK_CONFIG=${GTK12_CONFIG}
8084 if test "x${GTK_CONFIG}" = "xno"
8086 # Extract the first word of "gtk-config", so it can be a program name with args.
8087 set dummy gtk-config; ac_word=$2
8088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8089 echo "configure:8090: checking for $ac_word" >&5
8090 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8091 echo $ac_n "(cached) $ac_c" 1>&6
8093 case "$GTK_CONFIG" in
8095 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8098 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8102 ac_dummy="${GTK_PATH}"
8103 for ac_dir in $ac_dummy; do
8104 test -z "$ac_dir" && ac_dir=.
8105 if test -f $ac_dir/$ac_word; then
8106 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8111 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8115 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8116 if test -n "$GTK_CONFIG"; then
8117 echo "$ac_t""$GTK_CONFIG" 1>&6
8119 echo "$ac_t""no" 1>&6
8123 if test "x${GTK_CONFIG}" != "xno"
8125 if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8127 { 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; }
8129 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8130 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8131 # now look for the gtk.h header
8132 CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8133 ac_cv_gtk_headers=yes
8134 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8138 echo "configure:8139: checking for $ac_hdr" >&5
8139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8140 echo $ac_n "(cached) $ac_c" 1>&6
8142 cat > conftest.$ac_ext <<EOF
8143 #line 8144 "configure"
8144 #include "confdefs.h"
8147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8148 { (eval echo configure:8149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8150 if test -z "$ac_err"; then
8152 eval "ac_cv_header_$ac_safe=yes"
8155 echo "configure: failed program was:" >&5
8156 cat conftest.$ac_ext >&5
8158 eval "ac_cv_header_$ac_safe=no"
8162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8163 echo "$ac_t""yes" 1>&6
8164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8165 cat >> confdefs.h <<EOF
8166 #define $ac_tr_hdr 1
8170 echo "$ac_t""no" 1>&6
8171 ac_cv_gtk_headers=no
8172 echo "Cannot find gtk development headers."
8177 if test "x${ac_cv_gtk_headers}" = "xyes"
8179 PLUGINS="${PLUGINS} gtk"
8180 ALIASES="${ALIASES} gvlc"
8182 CPPFLAGS="${save_CPPFLAGS}"
8186 # Check whether --enable-gnome or --disable-gnome was given.
8187 if test "${enable_gnome+set}" = set; then
8188 enableval="$enable_gnome"
8189 if test "x${enable_gnome}" = "xyes"; then
8190 # look for gnome-config
8191 # Extract the first word of "gnome-config", so it can be a program name with args.
8192 set dummy gnome-config; ac_word=$2
8193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8194 echo "configure:8195: checking for $ac_word" >&5
8195 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8196 echo $ac_n "(cached) $ac_c" 1>&6
8198 case "$GNOME_CONFIG" in
8200 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8203 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8208 for ac_dir in $ac_dummy; do
8209 test -z "$ac_dir" && ac_dir=.
8210 if test -f $ac_dir/$ac_word; then
8211 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8216 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8220 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8221 if test -n "$GNOME_CONFIG"; then
8222 echo "$ac_t""$GNOME_CONFIG" 1>&6
8224 echo "$ac_t""no" 1>&6
8227 if test -x ${GNOME_CONFIG}
8229 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8230 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8232 # now look for the gnome.h header
8233 CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8234 for ac_hdr in gnome.h
8236 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8237 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8238 echo "configure:8239: checking for $ac_hdr" >&5
8239 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8242 cat > conftest.$ac_ext <<EOF
8243 #line 8244 "configure"
8244 #include "confdefs.h"
8247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8248 { (eval echo configure:8249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8250 if test -z "$ac_err"; then
8252 eval "ac_cv_header_$ac_safe=yes"
8255 echo "configure: failed program was:" >&5
8256 cat conftest.$ac_ext >&5
8258 eval "ac_cv_header_$ac_safe=no"
8262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8263 echo "$ac_t""yes" 1>&6
8264 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8265 cat >> confdefs.h <<EOF
8266 #define $ac_tr_hdr 1
8269 PLUGINS="${PLUGINS} gnome"
8270 ALIASES="${ALIASES} gnome-vlc"
8273 echo "$ac_t""no" 1>&6
8274 { echo "configure: error: Can't find gnome headers. Please install the gnome
8275 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8280 CPPFLAGS="${save_CPPFLAGS}"
8285 # Check whether --enable-qt or --disable-qt was given.
8286 if test "${enable_qt+set}" = set; then
8287 enableval="$enable_qt"
8288 if test "x${enable_qt}" = "xyes"; then
8289 PLUGINS="${PLUGINS} qt"
8290 ALIASES="${ALIASES} qvlc"
8291 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8292 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8293 if test -x ${QTDIR}/bin/moc
8295 MOC=${QTDIR}/bin/moc
8303 # Check whether --enable-kde or --disable-kde was given.
8304 if test "${enable_kde+set}" = set; then
8305 enableval="$enable_kde"
8306 if test "x${enable_kde}" = "xyes"; then
8307 PLUGINS="${PLUGINS} kde"
8308 ALIASES="${ALIASES} kvlc"
8309 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8310 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8311 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8312 if test -x ${QTDIR}/bin/moc
8314 MOC=${QTDIR}/bin/moc
8322 # Check whether --enable-macosx or --disable-macosx was given.
8323 if test "${enable_macosx+set}" = set; then
8324 enableval="$enable_macosx"
8325 if test "x${enable_macosx}" = "xyes"
8327 BUILTINS="${BUILTINS} macosx"
8328 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8331 for ac_hdr in Cocoa/Cocoa.h
8333 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8334 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8335 echo "configure:8336: checking for $ac_hdr" >&5
8336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8339 cat > conftest.$ac_ext <<EOF
8340 #line 8341 "configure"
8341 #include "confdefs.h"
8344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8345 { (eval echo configure:8346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8347 if test -z "$ac_err"; then
8349 eval "ac_cv_header_$ac_safe=yes"
8352 echo "configure: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8355 eval "ac_cv_header_$ac_safe=no"
8359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8360 echo "$ac_t""yes" 1>&6
8361 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8362 cat >> confdefs.h <<EOF
8363 #define $ac_tr_hdr 1
8365 BUILTINS="${BUILTINS} macosx"
8366 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8369 echo "$ac_t""no" 1>&6
8376 # Check whether --enable-qnx or --disable-qnx was given.
8377 if test "${enable_qnx+set}" = set; then
8378 enableval="$enable_qnx"
8382 if test "x${enable_qnx}" != "xno"
8386 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8388 echo "configure:8389: checking for $ac_hdr" >&5
8389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8392 cat > conftest.$ac_ext <<EOF
8393 #line 8394 "configure"
8394 #include "confdefs.h"
8397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8398 { (eval echo configure:8399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8400 if test -z "$ac_err"; then
8402 eval "ac_cv_header_$ac_safe=yes"
8405 echo "configure: failed program was:" >&5
8406 cat conftest.$ac_ext >&5
8408 eval "ac_cv_header_$ac_safe=no"
8412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8413 echo "$ac_t""yes" 1>&6
8414 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8415 cat >> confdefs.h <<EOF
8416 #define $ac_tr_hdr 1
8419 PLUGINS="${PLUGINS} qnx"
8420 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8423 echo "$ac_t""no" 1>&6
8429 # Check whether --enable-intfwin or --disable-intfwin was given.
8430 if test "${enable_intfwin+set}" = set; then
8431 enableval="$enable_intfwin"
8432 if test "x${enable_intfwin}" != "xno"
8434 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8435 if test "${with_bcbuilder+set}" = set; then
8436 withval="$with_bcbuilder"
8440 if test "x${with_bcbuilder}" != "x"
8442 BCBUILDER="${with_bcbuilder}"
8444 PLUGINS="${PLUGINS} intfwin"
8449 # Check whether --enable-ncurses or --disable-ncurses was given.
8450 if test "${enable_ncurses+set}" = set; then
8451 enableval="$enable_ncurses"
8452 if test "x${enable_ncurses}" = "xyes"; then
8453 PLUGINS="${PLUGINS} ncurses"
8454 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8459 # Check whether --enable-xosd or --disable-xosd was given.
8460 if test "${enable_xosd+set}" = set; then
8461 enableval="$enable_xosd"
8465 if test "x${enable_xosd}" = "xyes"
8467 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8468 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8469 echo "configure:8470: checking for xosd.h" >&5
8470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8471 echo $ac_n "(cached) $ac_c" 1>&6
8473 cat > conftest.$ac_ext <<EOF
8474 #line 8475 "configure"
8475 #include "confdefs.h"
8478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8479 { (eval echo configure:8480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8481 if test -z "$ac_err"; then
8483 eval "ac_cv_header_$ac_safe=yes"
8486 echo "configure: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8489 eval "ac_cv_header_$ac_safe=no"
8493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8494 echo "$ac_t""yes" 1>&6
8497 echo "$ac_t""no" 1>&6
8501 if test "x${have_xosd}" = "xtrue"
8503 PLUGINS="${PLUGINS} xosd"
8504 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8508 # Check whether --enable-lirc or --disable-lirc was given.
8509 if test "${enable_lirc+set}" = set; then
8510 enableval="$enable_lirc"
8514 if test "x${enable_lirc}" = "xyes"
8516 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8517 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8518 echo "configure:8519: checking for lirc/lirc_client.h" >&5
8519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8520 echo $ac_n "(cached) $ac_c" 1>&6
8522 cat > conftest.$ac_ext <<EOF
8523 #line 8524 "configure"
8524 #include "confdefs.h"
8525 #include <lirc/lirc_client.h>
8527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8528 { (eval echo configure:8529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8530 if test -z "$ac_err"; then
8532 eval "ac_cv_header_$ac_safe=yes"
8535 echo "configure: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8538 eval "ac_cv_header_$ac_safe=no"
8542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8543 echo "$ac_t""yes" 1>&6
8544 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8545 echo "configure:8546: checking for lirc_init in -llirc_client" >&5
8546 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8548 echo $ac_n "(cached) $ac_c" 1>&6
8550 ac_save_LIBS="$LIBS"
8551 LIBS="-llirc_client $LIBS"
8552 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8555 /* Override any gcc2 internal prototype to avoid an error. */
8556 /* We use char because int might match the return type of a gcc2
8557 builtin and then its argument prototype would still apply. */
8564 if { (eval echo configure:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8566 eval "ac_cv_lib_$ac_lib_var=yes"
8568 echo "configure: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8571 eval "ac_cv_lib_$ac_lib_var=no"
8574 LIBS="$ac_save_LIBS"
8577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8578 echo "$ac_t""yes" 1>&6
8581 echo "$ac_t""no" 1>&6
8586 echo "$ac_t""no" 1>&6
8590 if test "x${have_lirc}" = "xtrue"
8592 PLUGINS="${PLUGINS} lirc"
8593 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8597 # Check whether --with- or --without- was given.
8598 if test "${with_+set}" = set; then
8604 # Check whether --with-words or --without-words was given.
8605 if test "${with_words+set}" = set; then
8606 withval="$with_words"
8610 case "x${with_words}" in
8612 ac_cv_c_bigendian=yes
8615 ac_cv_c_bigendian=no
8618 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8619 echo "configure:8620: checking whether the byte order is big-endian" >&5
8620 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8623 ac_cv_c_bigendian="unknown"
8624 cat >conftest.c <<EOF
8625 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8626 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8627 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8628 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8629 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8630 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8631 int main(void) { _a(); _e(); return 0; }
8634 if test -f conftest.c
8636 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8637 && test -f conftest.o
8639 if test "`strings conftest.o | grep BIGenDianSyS`"
8641 ac_cv_c_bigendian="yes"
8643 if test "`strings conftest.o | grep LiTTleEnDian`"
8645 ac_cv_c_bigendian="no"
8652 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8653 if test "x${ac_cv_c_bigendian}" = "xunknown"
8655 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8659 if test "${ac_cv_c_bigendian}" = "yes"
8661 cat >> confdefs.h <<\EOF
8662 #define WORDS_BIGENDIAN 1
8670 # Check whether --enable-gprof or --disable-gprof was given.
8671 if test "${enable_gprof+set}" = set; then
8672 enableval="$enable_gprof"
8673 if test "x${enable_gprof}" = "xyes"
8683 # Check whether --enable-cprof or --disable-cprof was given.
8684 if test "${enable_cprof+set}" = set; then
8685 enableval="$enable_cprof"
8686 if test "x${enable_cprof}" = "xyes"
8688 save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
8696 # Check whether --enable-pth or --disable-pth was given.
8697 if test "${enable_pth+set}" = set; then
8698 enableval="$enable_pth"
8699 if test "x${enable_pth}" = "xyes"; then
8700 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8701 echo "configure:8702: checking for pth_init in -lpth" >&5
8702 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8706 ac_save_LIBS="$LIBS"
8708 cat > conftest.$ac_ext <<EOF
8709 #line 8710 "configure"
8710 #include "confdefs.h"
8711 /* Override any gcc2 internal prototype to avoid an error. */
8712 /* We use char because int might match the return type of a gcc2
8713 builtin and then its argument prototype would still apply. */
8720 if { (eval echo configure:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8722 eval "ac_cv_lib_$ac_lib_var=yes"
8724 echo "configure: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8727 eval "ac_cv_lib_$ac_lib_var=no"
8730 LIBS="$ac_save_LIBS"
8733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8734 echo "$ac_t""yes" 1>&6
8735 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8736 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8737 cat >> confdefs.h <<EOF
8738 #define $ac_tr_lib 1
8744 echo "$ac_t""no" 1>&6
8747 cat > conftest.$ac_ext <<EOF
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8753 egrep "pth_init" >/dev/null 2>&1; then
8756 cat >> confdefs.h <<\EOF
8757 #define PTH_INIT_IN_PTH_H 1
8769 # Check whether --enable-st or --disable-st was given.
8770 if test "${enable_st+set}" = set; then
8771 enableval="$enable_st"
8772 if test "x${enable_st}" = "xyes"; then
8773 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8774 echo "configure:8775: checking for st_init in -lst" >&5
8775 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8779 ac_save_LIBS="$LIBS"
8781 cat > conftest.$ac_ext <<EOF
8782 #line 8783 "configure"
8783 #include "confdefs.h"
8784 /* Override any gcc2 internal prototype to avoid an error. */
8785 /* We use char because int might match the return type of a gcc2
8786 builtin and then its argument prototype would still apply. */
8793 if { (eval echo configure:8794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8795 eval "ac_cv_lib_$ac_lib_var=yes"
8797 echo "configure: failed program was:" >&5
8798 cat conftest.$ac_ext >&5
8800 eval "ac_cv_lib_$ac_lib_var=no"
8803 LIBS="$ac_save_LIBS"
8806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8807 echo "$ac_t""yes" 1>&6
8808 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8809 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8810 cat >> confdefs.h <<EOF
8811 #define $ac_tr_lib 1
8817 echo "$ac_t""no" 1>&6
8820 cat > conftest.$ac_ext <<EOF
8821 #line 8822 "configure"
8822 #include "confdefs.h"
8825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8826 egrep "st_init" >/dev/null 2>&1; then
8829 cat >> confdefs.h <<\EOF
8830 #define ST_INIT_IN_ST_H 1
8842 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
8843 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
8846 # Check whether --enable-mozilla or --disable-mozilla was given.
8847 if test "${enable_mozilla+set}" = set; then
8848 enableval="$enable_mozilla"
8852 if test "x${enable_mozilla}" = "xyes"
8854 # Extract the first word of "mozilla-config", so it can be a program name with args.
8855 set dummy mozilla-config; ac_word=$2
8856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8857 echo "configure:8858: checking for $ac_word" >&5
8858 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
8859 echo $ac_n "(cached) $ac_c" 1>&6
8861 case "$MOZILLA_CONFIG" in
8863 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
8866 ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
8869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8871 for ac_dir in $ac_dummy; do
8872 test -z "$ac_dir" && ac_dir=.
8873 if test -f $ac_dir/$ac_word; then
8874 ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
8879 test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
8883 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
8884 if test -n "$MOZILLA_CONFIG"; then
8885 echo "$ac_t""$MOZILLA_CONFIG" 1>&6
8887 echo "$ac_t""no" 1>&6
8890 if test "x${MOZILLA_CONFIG}" != "xno"
8893 mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
8894 mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs `"
8898 # Check whether --enable-plugins or --disable-plugins was given.
8899 if test "${enable_plugins+set}" = set; then
8900 enableval="$enable_plugins"
8901 if test "x${enable_plugins}" = "xno"
8903 BUILTINS="${BUILTINS} ${PLUGINS}"
8909 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
8911 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8913 BUILTINS="${BUILTINS} ${PLUGINS}"
8917 cat >> confdefs.h <<EOF
8918 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
8921 cat >> confdefs.h <<EOF
8922 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
8925 cat >> confdefs.h <<EOF
8926 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
8930 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8931 cat >> confdefs.h <<EOF
8932 #define MODULE_SUFFIX "__MODULE_${VLC_SYMBOL}"
8935 cat >> confdefs.h <<EOF
8936 #define MODULE_SYMBOL ${VLC_SYMBOL}
8940 DATA_PATH="${ac_tool_prefix}/share/videolan"
8942 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8945 CPPFLAGS="${save_CPPFLAGS}"
8946 CFLAGS="${save_CFLAGS}"
8947 LDFLAGS="${save_LDFLAGS}"
8949 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
8950 for i in ${BUILTINS} ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} `eval echo '$'{${i}_LDFLAGS}`" ; done
9055 cat > confcache <<\EOF
9056 # This file is a shell script that caches the results of configure
9057 # tests run on this system so they can be shared between configure
9058 # scripts and configure runs. It is not useful on other systems.
9059 # If it contains results you don't want to keep, you may remove or edit it.
9061 # By default, configure uses ./config.cache as the cache file,
9062 # creating it if it does not exist already. You can give configure
9063 # the --cache-file=FILE option to use a different cache file; that is
9064 # what configure does when it calls configure scripts in
9065 # subdirectories, so they share the cache.
9066 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9067 # config.status only pays attention to the cache file if you give it the
9068 # --recheck option to rerun configure.
9071 # The following way of writing the cache mishandles newlines in values,
9072 # but we know of no workaround that is simple, portable, and efficient.
9073 # So, don't put newlines in cache variables' values.
9074 # Ultrix sh set writes to stderr and can't be redirected directly,
9075 # and sets the high bit in the cache file unless we assign to the vars.
9077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9079 # `set' does not quote correctly, so add quotes (double-quote substitution
9080 # turns \\\\ into \\, and sed turns \\ into \).
9082 -e "s/'/'\\\\''/g" \
9083 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9086 # `set' quotes correctly as required by POSIX, so do not add quotes.
9087 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9090 if cmp -s $cache_file confcache; then
9093 if test -w $cache_file; then
9094 echo "updating cache $cache_file"
9095 cat confcache > $cache_file
9097 echo "not updating unwritable cache $cache_file"
9102 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9105 # Let make expand exec_prefix.
9106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9108 # Any assignment to VPATH causes Sun make to only execute
9109 # the first set of double-colon rules, so remove it if not needed.
9110 # If there is a colon in the path, we need to keep it.
9111 if test "x$srcdir" = x.; then
9112 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9115 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9117 DEFS=-DHAVE_CONFIG_H
9119 # Without the "./", some shells look in PATH for config.status.
9120 : ${CONFIG_STATUS=./config.status}
9122 echo creating $CONFIG_STATUS
9123 rm -f $CONFIG_STATUS
9124 cat > $CONFIG_STATUS <<EOF
9126 # Generated automatically by configure.
9127 # Run this file to recreate the current configuration.
9128 # This directory was configured as follows,
9129 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9131 # $0 $ac_configure_args
9133 # Compiler output produced by configure, useful for debugging
9134 # configure, is in ./config.log if it exists.
9136 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9139 case "\$ac_option" in
9140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9141 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9142 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9143 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9144 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9146 -help | --help | --hel | --he | --h)
9147 echo "\$ac_cs_usage"; exit 0 ;;
9148 *) echo "\$ac_cs_usage"; exit 1 ;;
9152 ac_given_srcdir=$srcdir
9153 ac_given_INSTALL="$INSTALL"
9155 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
9157 cat >> $CONFIG_STATUS <<EOF
9159 # Protect against being on the right side of a sed subst in config.status.
9160 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9161 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9165 s%@CFLAGS@%$CFLAGS%g
9166 s%@CPPFLAGS@%$CPPFLAGS%g
9167 s%@CXXFLAGS@%$CXXFLAGS%g
9168 s%@FFLAGS@%$FFLAGS%g
9170 s%@LDFLAGS@%$LDFLAGS%g
9172 s%@exec_prefix@%$exec_prefix%g
9173 s%@prefix@%$prefix%g
9174 s%@program_transform_name@%$program_transform_name%g
9175 s%@bindir@%$bindir%g
9176 s%@sbindir@%$sbindir%g
9177 s%@libexecdir@%$libexecdir%g
9178 s%@datadir@%$datadir%g
9179 s%@sysconfdir@%$sysconfdir%g
9180 s%@sharedstatedir@%$sharedstatedir%g
9181 s%@localstatedir@%$localstatedir%g
9182 s%@libdir@%$libdir%g
9183 s%@includedir@%$includedir%g
9184 s%@oldincludedir@%$oldincludedir%g
9185 s%@infodir@%$infodir%g
9186 s%@mandir@%$mandir%g
9188 s%@host_alias@%$host_alias%g
9189 s%@host_cpu@%$host_cpu%g
9190 s%@host_vendor@%$host_vendor%g
9191 s%@host_os@%$host_os%g
9192 s%@target@%$target%g
9193 s%@target_alias@%$target_alias%g
9194 s%@target_cpu@%$target_cpu%g
9195 s%@target_vendor@%$target_vendor%g
9196 s%@target_os@%$target_os%g
9198 s%@build_alias@%$build_alias%g
9199 s%@build_cpu@%$build_cpu%g
9200 s%@build_vendor@%$build_vendor%g
9201 s%@build_os@%$build_os%g
9202 s%@SET_MAKE@%$SET_MAKE%g
9205 s%@RANLIB@%$RANLIB%g
9208 s%@ALLOCA@%$ALLOCA%g
9209 s%@GLIBC21@%$GLIBC21%g
9210 s%@LIBICONV@%$LIBICONV%g
9211 s%@USE_NLS@%$USE_NLS%g
9212 s%@MSGFMT@%$MSGFMT%g
9213 s%@GMSGFMT@%$GMSGFMT%g
9214 s%@XGETTEXT@%$XGETTEXT%g
9215 s%@INTLBISON@%$INTLBISON%g
9216 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9217 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9218 s%@CATALOGS@%$CATALOGS%g
9219 s%@CATOBJEXT@%$CATOBJEXT%g
9220 s%@GMOFILES@%$GMOFILES%g
9221 s%@INTLLIBS@%$INTLLIBS%g
9222 s%@INTLOBJS@%$INTLOBJS%g
9223 s%@POFILES@%$POFILES%g
9225 s%@DATADIRNAME@%$DATADIRNAME%g
9226 s%@INSTOBJEXT@%$INSTOBJEXT%g
9227 s%@GENCAT@%$GENCAT%g
9228 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9229 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9230 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9231 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9232 s%@INSTALL_DATA@%$INSTALL_DATA%g
9233 s%@WINDRES@%$WINDRES%g
9234 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9235 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9236 s%@SDL_CONFIG@%$SDL_CONFIG%g
9237 s%@ESD_CONFIG@%$ESD_CONFIG%g
9238 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9239 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9240 s%@GTK_CONFIG@%$GTK_CONFIG%g
9241 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9242 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9243 s%@DATA_PATH@%$DATA_PATH%g
9244 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9245 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
9248 s%@PLUGINS@%$PLUGINS%g
9249 s%@BUILTINS@%$BUILTINS%g
9250 s%@ALIASES@%$ALIASES%g
9255 s%@OPTIMS@%$OPTIMS%g
9256 s%@TUNING@%$TUNING%g
9257 s%@RELEASE@%$RELEASE%g
9259 s%@BCBUILDER@%$BCBUILDER%g
9260 s%@PACKAGE@%$PACKAGE%g
9261 s%@VERSION@%$VERSION%g
9262 s%@NEED_GETOPT@%$NEED_GETOPT%g
9263 s%@MOZILLA@%$MOZILLA%g
9264 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9265 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9266 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9267 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9268 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9269 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
9270 s%@a52_CFLAGS@%$a52_CFLAGS%g
9271 s%@arts_CFLAGS@%$arts_CFLAGS%g
9272 s%@chroma_i420_yuy2_mmx_CFLAGS@%$chroma_i420_yuy2_mmx_CFLAGS%g
9273 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9274 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9275 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
9276 s%@directx_CFLAGS@%$directx_CFLAGS%g
9277 s%@esd_CFLAGS@%$esd_CFLAGS%g
9278 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9279 s%@glide_CFLAGS@%$glide_CFLAGS%g
9280 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9281 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9282 s%@kde_CFLAGS@%$kde_CFLAGS%g
9283 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9284 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9285 s%@mad_CFLAGS@%$mad_CFLAGS%g
9286 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9287 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9288 s%@qt_CFLAGS@%$qt_CFLAGS%g
9289 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9290 s%@x11_CFLAGS@%$x11_CFLAGS%g
9291 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9292 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9293 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9294 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9295 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
9296 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9297 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9298 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9299 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9300 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9301 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
9302 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9303 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9304 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9305 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9306 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
9307 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9308 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
9309 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9310 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
9311 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9312 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9313 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9314 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9315 s%@http_LDFLAGS@%$http_LDFLAGS%g
9316 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9317 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9318 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9319 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9320 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9321 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9322 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9323 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9324 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9325 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9326 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9327 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9328 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9329 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9330 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9331 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9332 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9333 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9334 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9335 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9336 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9337 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9338 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9343 cat >> $CONFIG_STATUS <<\EOF
9345 # Split the substitutions into bite-sized pieces for seds with
9346 # small command number limits, like on Digital OSF/1 and HP-UX.
9347 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9348 ac_file=1 # Number of current file.
9349 ac_beg=1 # First line for current file.
9350 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9353 while $ac_more_lines; do
9354 if test $ac_beg -gt 1; then
9355 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9357 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9359 if test ! -s conftest.s$ac_file; then
9361 rm -f conftest.s$ac_file
9363 if test -z "$ac_sed_cmds"; then
9364 ac_sed_cmds="sed -f conftest.s$ac_file"
9366 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9368 ac_file=`expr $ac_file + 1`
9370 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9373 if test -z "$ac_sed_cmds"; then
9378 cat >> $CONFIG_STATUS <<EOF
9380 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
9382 cat >> $CONFIG_STATUS <<\EOF
9383 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9384 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9386 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9387 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9388 *) ac_file_in="${ac_file}.in" ;;
9391 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9393 # Remove last slash and all that follows it. Not all systems have dirname.
9394 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9395 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9396 # The file is in a subdirectory.
9397 test ! -d "$ac_dir" && mkdir "$ac_dir"
9398 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9399 # A "../" for each directory in $ac_dir_suffix.
9400 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9402 ac_dir_suffix= ac_dots=
9405 case "$ac_given_srcdir" in
9407 if test -z "$ac_dots"; then top_srcdir=.
9408 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9409 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9411 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9412 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9415 case "$ac_given_INSTALL" in
9416 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9417 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9420 echo creating "$ac_file"
9422 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9424 *Makefile*) ac_comsub="1i\\
9425 # $configure_input" ;;
9429 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9431 s%@configure_input@%$configure_input%g
9432 s%@srcdir@%$srcdir%g
9433 s%@top_srcdir@%$top_srcdir%g
9434 s%@INSTALL@%$INSTALL%g
9435 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9439 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9440 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9442 # ac_d sets the value in "#define NAME VALUE" lines.
9443 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9444 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9447 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9448 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9449 ac_uB='\([ ]\)%\1#\2define\3'
9452 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9453 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9454 ac_eB='$%\1#\2define\3'
9458 if test "${CONFIG_HEADERS+set}" != set; then
9460 cat >> $CONFIG_STATUS <<EOF
9461 CONFIG_HEADERS="include/defs.h"
9463 cat >> $CONFIG_STATUS <<\EOF
9465 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9466 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9468 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9469 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9470 *) ac_file_in="${ac_file}.in" ;;
9473 echo creating $ac_file
9475 rm -f conftest.frag conftest.in conftest.out
9476 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9477 cat $ac_file_inputs > conftest.in
9481 # Transform confdefs.h into a sed script conftest.vals that substitutes
9482 # the proper values into config.h.in to produce config.h. And first:
9483 # Protect against being on the right side of a sed subst in config.status.
9484 # Protect against being in an unquoted here document in config.status.
9486 cat > conftest.hdr <<\EOF
9489 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9493 sed -n -f conftest.hdr confdefs.h > conftest.vals
9496 # This sed command replaces #undef with comments. This is necessary, for
9497 # example, in the case of _POSIX_SOURCE, which is predefined and required
9498 # on some systems where configure will not decide to define it.
9499 cat >> conftest.vals <<\EOF
9500 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9503 # Break up conftest.vals because some shells have a limit on
9504 # the size of here documents, and old seds have small limits too.
9509 ac_lines=`grep -c . conftest.vals`
9510 # grep -c gives empty output for an empty file on some AIX systems.
9511 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9512 # Write a limited-size here document to conftest.frag.
9513 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9514 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9516 sed -f conftest.frag conftest.in > conftest.out
9518 mv conftest.out conftest.in
9520 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9522 mv conftest.tail conftest.vals
9526 cat >> $CONFIG_STATUS <<\EOF
9527 rm -f conftest.frag conftest.h
9528 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9529 cat conftest.in >> conftest.h
9531 if cmp -s $ac_file conftest.h 2>/dev/null; then
9532 echo "$ac_file is unchanged"
9535 # Remove last slash and all that follows it. Not all systems have dirname.
9536 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9537 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9538 # The file is in a subdirectory.
9539 test ! -d "$ac_dir" && mkdir "$ac_dir"
9542 mv conftest.h $ac_file
9547 cat >> $CONFIG_STATUS <<EOF
9551 cat >> $CONFIG_STATUS <<\EOF
9552 for ac_file in $CONFIG_FILES; do
9553 # Support "outfile[:infile[:infile...]]"
9555 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9557 # PO directories have a Makefile.in generated from Makefile.in.in.
9558 case "$ac_file" in */Makefile.in)
9559 # Adjust a relative srcdir.
9560 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9561 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9562 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9563 # In autoconf-2.13 it is called $ac_given_srcdir.
9564 # In autoconf-2.50 it is called $srcdir.
9565 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9566 case "$ac_given_srcdir" in
9567 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9568 /*) top_srcdir="$ac_given_srcdir" ;;
9569 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9571 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9572 rm -f "$ac_dir/POTFILES"
9573 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9574 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9575 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9576 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9584 chmod +x $CONFIG_STATUS
9585 rm -fr confdefs* $ac_clean_files
9586 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9588 chmod a+x vlc-config
9592 --------------------
9593 vlc version : ${VERSION}
9595 architecture : ${ARCH}
9596 optimizations : ${OPTIMS}
9598 debug mode : ${DEBUG}
9599 release : ${RELEASE}
9600 profiling : ${PROFILING}
9601 need builtin getopt : ${NEED_GETOPT}
9602 built-in modules :${BUILTINS}
9603 plug-in modules :${PLUGINS}
9604 mozilla plugin : ${MOZILLA}
9605 vlc aliases :${ALIASES}
9607 You may now tune Makefile.opts at your convenience, for instance to choose
9608 which modules get compiled as plugins.
9610 To build vlc and its plugins, type \`${VLC_MAKE}'.