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-a52 AC3 support with liba52 (default enabled)"
76 --with-a52-tree=PATH a52dec tree for static linking "
78 --enable-vorbis Ogg/Vorbis decoder support (default enabled)"
82 --enable-x11 X11 support (default enabled)"
84 --enable-xvideo XVideo support (default enabled)"
86 --enable-sdl SDL support (default enabled)"
88 --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
90 --enable-directx Win32 DirectX support (default enabled on Win32)"
92 --with-directx=PATH Win32 DirectX headers"
94 --enable-fb Linux framebuffer support (default enabled on Linux)"
96 --enable-mga Linux kernel Matrox support (default disabled)"
98 --enable-ggi GGI support (default disabled)"
100 --with-ggi=PATH path to libggi"
102 --enable-glide Glide (3dfx) support (default disabled)"
104 --with-glide=PATH path to libglide"
106 --enable-aa aalib output (default disabled)"
110 --enable-dsp Linux /dev/dsp support (enabled on Linux)"
112 --enable-esd Esound library support (default disabled)"
114 --enable-arts aRts sound server (default disabled)"
116 --enable-alsa ALSA sound support for Linux (default disabled)"
118 --enable-waveout Win32 waveOut module (default enabled on Win32)"
122 --enable-gtk Gtk+ support (default enabled)"
124 --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
126 --enable-gnome Gnome interface support (default disabled)"
128 --enable-qt Qt interface support (default disabled)"
130 --enable-kde KDE interface support (default disabled)"
132 --enable-macosx MacOS X support (default enabled on MacOS X)"
134 --enable-qnx QNX RTOS support (default enabled on QNX RTOS)"
136 --enable-intfwin Win32 interface support (default disabled)"
138 --with-bcbuilder=PATH Borland C++ Builder installation path"
140 --enable-ncurses ncurses interface support (default disabled)"
142 --enable-xosd xosd interface support (default disabled)"
144 --enable-lirc lirc support (default disabled)"
148 --with-words=endianness set endianness (big or little)"
150 --enable-gprof gprof profiling (default disabled)"
152 --enable-cprof cprof profiling (default disabled)"
154 --enable-pth GNU Pth support (default disabled)"
156 --enable-st State Threads (default disabled)"
158 --disable-plugins make all plug-ins built-in (default plug-ins enabled)"
160 # Initialize some variables set by options.
161 # The variables have the same names as the options, with
162 # dashes changed to underlines.
164 cache_file=./config.cache
173 program_transform_name=s,x,x,
181 bindir='${exec_prefix}/bin'
182 sbindir='${exec_prefix}/sbin'
183 libexecdir='${exec_prefix}/libexec'
184 datadir='${prefix}/share'
185 sysconfdir='${prefix}/etc'
186 sharedstatedir='${prefix}/com'
187 localstatedir='${prefix}/var'
188 libdir='${exec_prefix}/lib'
189 includedir='${prefix}/include'
190 oldincludedir='/usr/include'
191 infodir='${prefix}/info'
192 mandir='${prefix}/man'
194 # Initialize some other variables.
197 SHELL=${CONFIG_SHELL-/bin/sh}
198 # Maximum number of lines to put in a shell here document.
205 # If the previous option needs an argument, assign it.
206 if test -n "$ac_prev"; then
207 eval "$ac_prev=\$ac_option"
213 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
217 # Accept the important Cygnus configure options, so we can diagnose typos.
221 -bindir | --bindir | --bindi | --bind | --bin | --bi)
223 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
224 bindir="$ac_optarg" ;;
226 -build | --build | --buil | --bui | --bu)
228 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
229 build="$ac_optarg" ;;
231 -cache-file | --cache-file | --cache-fil | --cache-fi \
232 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
233 ac_prev=cache_file ;;
234 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
235 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
236 cache_file="$ac_optarg" ;;
238 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
240 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
242 datadir="$ac_optarg" ;;
244 -disable-* | --disable-*)
245 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
246 # Reject names that are not valid shell variable names.
247 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
248 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
250 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
251 eval "enable_${ac_feature}=no" ;;
253 -enable-* | --enable-*)
254 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
255 # Reject names that are not valid shell variable names.
256 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
257 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
259 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
264 eval "enable_${ac_feature}='$ac_optarg'" ;;
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix="$ac_optarg" ;;
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he)
280 # Omit some internal or obsolete options to make the list less imposing.
281 # This message is too long to be a string in the A/UX 3.1 sh.
283 Usage: configure [options] [host]
284 Options: [defaults in brackets after descriptions]
286 --cache-file=FILE cache test results in FILE
287 --help print this message
288 --no-create do not create output files
289 --quiet, --silent do not print \`checking...' messages
290 --version print the version of autoconf that created configure
291 Directory and file names:
292 --prefix=PREFIX install architecture-independent files in PREFIX
294 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
296 --bindir=DIR user executables in DIR [EPREFIX/bin]
297 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
298 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
299 --datadir=DIR read-only architecture-independent data in DIR
301 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
302 --sharedstatedir=DIR modifiable architecture-independent data in DIR
304 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
305 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
306 --includedir=DIR C header files in DIR [PREFIX/include]
307 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
308 --infodir=DIR info documentation in DIR [PREFIX/info]
309 --mandir=DIR man documentation in DIR [PREFIX/man]
310 --srcdir=DIR find the sources in DIR [configure dir or ..]
311 --program-prefix=PREFIX prepend PREFIX to installed program names
312 --program-suffix=SUFFIX append SUFFIX to installed program names
313 --program-transform-name=PROGRAM
314 run sed PROGRAM on installed program names
318 --build=BUILD configure for building on BUILD [BUILD=HOST]
319 --host=HOST configure for HOST [guessed]
320 --target=TARGET configure for TARGET [TARGET=HOST]
321 Features and packages:
322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
324 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
325 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
326 --x-includes=DIR X include files are in DIR
327 --x-libraries=DIR X library files are in DIR
329 if test -n "$ac_help"; then
330 echo "--enable and --with options recognized:$ac_help"
334 -host | --host | --hos | --ho)
336 -host=* | --host=* | --hos=* | --ho=*)
339 -includedir | --includedir | --includedi | --included | --include \
340 | --includ | --inclu | --incl | --inc)
341 ac_prev=includedir ;;
342 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
343 | --includ=* | --inclu=* | --incl=* | --inc=*)
344 includedir="$ac_optarg" ;;
346 -infodir | --infodir | --infodi | --infod | --info | --inf)
348 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
349 infodir="$ac_optarg" ;;
351 -libdir | --libdir | --libdi | --libd)
353 -libdir=* | --libdir=* | --libdi=* | --libd=*)
354 libdir="$ac_optarg" ;;
356 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
357 | --libexe | --libex | --libe)
358 ac_prev=libexecdir ;;
359 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
360 | --libexe=* | --libex=* | --libe=*)
361 libexecdir="$ac_optarg" ;;
363 -localstatedir | --localstatedir | --localstatedi | --localstated \
364 | --localstate | --localstat | --localsta | --localst \
365 | --locals | --local | --loca | --loc | --lo)
366 ac_prev=localstatedir ;;
367 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
368 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
369 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
370 localstatedir="$ac_optarg" ;;
372 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
374 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
375 mandir="$ac_optarg" ;;
378 # Obsolete; use --without-fp.
381 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
385 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
386 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
389 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
390 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
391 | --oldin | --oldi | --old | --ol | --o)
392 ac_prev=oldincludedir ;;
393 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
394 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
395 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
396 oldincludedir="$ac_optarg" ;;
398 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
400 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
401 prefix="$ac_optarg" ;;
403 -program-prefix | --program-prefix | --program-prefi | --program-pref \
404 | --program-pre | --program-pr | --program-p)
405 ac_prev=program_prefix ;;
406 -program-prefix=* | --program-prefix=* | --program-prefi=* \
407 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
408 program_prefix="$ac_optarg" ;;
410 -program-suffix | --program-suffix | --program-suffi | --program-suff \
411 | --program-suf | --program-su | --program-s)
412 ac_prev=program_suffix ;;
413 -program-suffix=* | --program-suffix=* | --program-suffi=* \
414 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
415 program_suffix="$ac_optarg" ;;
417 -program-transform-name | --program-transform-name \
418 | --program-transform-nam | --program-transform-na \
419 | --program-transform-n | --program-transform- \
420 | --program-transform | --program-transfor \
421 | --program-transfo | --program-transf \
422 | --program-trans | --program-tran \
423 | --progr-tra | --program-tr | --program-t)
424 ac_prev=program_transform_name ;;
425 -program-transform-name=* | --program-transform-name=* \
426 | --program-transform-nam=* | --program-transform-na=* \
427 | --program-transform-n=* | --program-transform-=* \
428 | --program-transform=* | --program-transfor=* \
429 | --program-transfo=* | --program-transf=* \
430 | --program-trans=* | --program-tran=* \
431 | --progr-tra=* | --program-tr=* | --program-t=*)
432 program_transform_name="$ac_optarg" ;;
434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
435 | -silent | --silent | --silen | --sile | --sil)
438 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
440 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
442 sbindir="$ac_optarg" ;;
444 -sharedstatedir | --sharedstatedir | --sharedstatedi \
445 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
446 | --sharedst | --shareds | --shared | --share | --shar \
448 ac_prev=sharedstatedir ;;
449 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
450 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
451 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
453 sharedstatedir="$ac_optarg" ;;
455 -site | --site | --sit)
457 -site=* | --site=* | --sit=*)
460 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
462 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
463 srcdir="$ac_optarg" ;;
465 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
466 | --syscon | --sysco | --sysc | --sys | --sy)
467 ac_prev=sysconfdir ;;
468 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
469 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
470 sysconfdir="$ac_optarg" ;;
472 -target | --target | --targe | --targ | --tar | --ta | --t)
474 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
475 target="$ac_optarg" ;;
477 -v | -verbose | --verbose | --verbos | --verbo | --verb)
480 -version | --version | --versio | --versi | --vers)
481 echo "configure generated by autoconf version 2.13"
485 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
486 # Reject names that are not valid shell variable names.
487 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
488 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
490 ac_package=`echo $ac_package| sed 's/-/_/g'`
495 eval "with_${ac_package}='$ac_optarg'" ;;
497 -without-* | --without-*)
498 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
499 # Reject names that are not valid shell variable names.
500 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
501 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
503 ac_package=`echo $ac_package| sed 's/-/_/g'`
504 eval "with_${ac_package}=no" ;;
507 # Obsolete; use --with-x.
510 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
511 | --x-incl | --x-inc | --x-in | --x-i)
512 ac_prev=x_includes ;;
513 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
514 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
515 x_includes="$ac_optarg" ;;
517 -x-libraries | --x-libraries | --x-librarie | --x-librari \
518 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
519 ac_prev=x_libraries ;;
520 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
521 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
522 x_libraries="$ac_optarg" ;;
524 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
528 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
529 echo "configure: warning: $ac_option: invalid host type" 1>&2
531 if test "x$nonopt" != xNONE; then
532 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
540 if test -n "$ac_prev"; then
541 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
544 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
546 # File descriptor usage:
549 # 2 errors and warnings
550 # 3 some systems may open it to /dev/tty
551 # 4 used on the Kubota Titan
552 # 6 checking for... messages and results
553 # 5 compiler messages saved in config.log
554 if test "$silent" = yes; then
562 This file contains any messages produced by compilers while
563 running configure, to aid debugging if configure makes a mistake.
566 # Strip out --no-create and --no-recursion so they do not pile up.
567 # Also quote any args containing shell metacharacters.
572 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
573 | --no-cr | --no-c) ;;
574 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
575 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
576 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
577 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
578 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
583 # Only set these to C if already set. These must not be set unconditionally
584 # because not all systems understand e.g. LANG=C (notably SCO).
585 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
586 # Non-C LC_CTYPE values break the ctype check.
587 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
588 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
589 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
590 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
592 # confdefs.h avoids OS command line length limits that DEFS can exceed.
593 rm -rf conftest* confdefs.h
594 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
597 # A filename unique to this package, relative to the directory that
598 # configure is in, which we can look for to find out if srcdir is correct.
599 ac_unique_file=include/main.h
601 # Find the source files, if location was not specified.
602 if test -z "$srcdir"; then
603 ac_srcdir_defaulted=yes
604 # Try the directory containing this script, then its parent.
606 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
607 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
609 if test ! -r $srcdir/$ac_unique_file; then
613 ac_srcdir_defaulted=no
615 if test ! -r $srcdir/$ac_unique_file; then
616 if test "$ac_srcdir_defaulted" = yes; then
617 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
619 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
622 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
624 # Prefer explicitly selected file to automatically selected ones.
625 if test -z "$CONFIG_SITE"; then
626 if test "x$prefix" != xNONE; then
627 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
629 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
632 for ac_site_file in $CONFIG_SITE; do
633 if test -r "$ac_site_file"; then
634 echo "loading site script $ac_site_file"
639 if test -r "$cache_file"; then
640 echo "loading cache $cache_file"
643 echo "creating cache $cache_file"
648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
649 ac_cpp='$CPP $CPPFLAGS'
650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
652 cross_compiling=$ac_cv_prog_cc_cross
656 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
657 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
658 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
665 ac_n= ac_c='\c' ac_t=
671 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
672 if test -f $ac_dir/install-sh; then
674 ac_install_sh="$ac_aux_dir/install-sh -c"
676 elif test -f $ac_dir/install.sh; then
678 ac_install_sh="$ac_aux_dir/install.sh -c"
682 if test -z "$ac_aux_dir"; then
683 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
685 ac_config_guess=$ac_aux_dir/config.guess
686 ac_config_sub=$ac_aux_dir/config.sub
687 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
690 # Do some error checking and defaulting for the host and target type.
692 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
695 # 1. You are not allowed to specify --host, --target, and nonopt at the
697 # 2. Host defaults to nonopt.
698 # 3. If nonopt is not specified, then host defaults to the current host,
699 # as determined by config.guess.
700 # 4. Target and build default to nonopt.
701 # 5. If nonopt is not specified, then target and build default to host.
703 # The aliases save the names the user supplied, while $host etc.
704 # will get canonicalized.
705 case $host---$target---$nonopt in
706 NONE---*---* | *---NONE---* | *---*---NONE) ;;
707 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
711 # Make sure we can run config.sub.
712 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
713 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
716 echo $ac_n "checking host system type""... $ac_c" 1>&6
717 echo "configure:718: checking host system type" >&5
720 case "$host_alias" in
724 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
725 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
727 *) host_alias=$nonopt ;;
731 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
732 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
733 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
734 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
735 echo "$ac_t""$host" 1>&6
737 echo $ac_n "checking target system type""... $ac_c" 1>&6
738 echo "configure:739: checking target system type" >&5
741 case "$target_alias" in
744 NONE) target_alias=$host_alias ;;
745 *) target_alias=$nonopt ;;
749 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
750 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
751 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
752 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
753 echo "$ac_t""$target" 1>&6
755 echo $ac_n "checking build system type""... $ac_c" 1>&6
756 echo "configure:757: checking build system type" >&5
759 case "$build_alias" in
762 NONE) build_alias=$host_alias ;;
763 *) build_alias=$nonopt ;;
767 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
768 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
769 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
770 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
771 echo "$ac_t""$build" 1>&6
773 test "$host_alias" != "$target_alias" &&
774 test "$program_prefix$program_suffix$program_transform_name" = \
776 program_prefix=${target_alias}-
779 CONFIGURE_LINE="$0 $*"
785 save_CPPFLAGS="${CPPFLAGS}"
786 save_CFLAGS="${CFLAGS}"
787 save_LDFLAGS="${LDFLAGS}"
789 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
790 echo "configure:791: checking whether ${MAKE-make} sets \${MAKE}" >&5
791 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
792 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 cat > conftestmake <<\EOF
797 @echo 'ac_maketemp="${MAKE}"'
799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
800 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
801 if test -n "$ac_maketemp"; then
802 eval ac_cv_prog_make_${ac_make}_set=yes
804 eval ac_cv_prog_make_${ac_make}_set=no
808 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
809 echo "$ac_t""yes" 1>&6
812 echo "$ac_t""no" 1>&6
813 SET_MAKE="MAKE=${MAKE-make}"
816 # Extract the first word of "gcc", so it can be a program name with args.
817 set dummy gcc; ac_word=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 if test -n "$CC"; then
824 ac_cv_prog_CC="$CC" # Let the user override the test.
826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
828 for ac_dir in $ac_dummy; do
829 test -z "$ac_dir" && ac_dir=.
830 if test -f $ac_dir/$ac_word; then
839 if test -n "$CC"; then
840 echo "$ac_t""$CC" 1>&6
842 echo "$ac_t""no" 1>&6
845 if test -z "$CC"; then
846 # Extract the first word of "cc", so it can be a program name with args.
847 set dummy cc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
859 for ac_dir in $ac_dummy; do
860 test -z "$ac_dir" && ac_dir=.
861 if test -f $ac_dir/$ac_word; then
862 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
871 if test $ac_prog_rejected = yes; then
872 # We found a bogon in the path, so make sure we never use it.
873 set dummy $ac_cv_prog_CC
875 if test $# -gt 0; then
876 # We chose a different compiler from the bogus one.
877 # However, it has the same basename, so the bogon will be chosen
878 # first if we set CC to just the basename; use the full file name.
880 set dummy "$ac_dir/$ac_word" "$@"
888 if test -n "$CC"; then
889 echo "$ac_t""$CC" 1>&6
891 echo "$ac_t""no" 1>&6
894 if test -z "$CC"; then
897 # Extract the first word of "cl", so it can be a program name with args.
898 set dummy cl; ac_word=$2
899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
900 echo "configure:901: checking for $ac_word" >&5
901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 if test -n "$CC"; then
905 ac_cv_prog_CC="$CC" # Let the user override the test.
907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
909 for ac_dir in $ac_dummy; do
910 test -z "$ac_dir" && ac_dir=.
911 if test -f $ac_dir/$ac_word; then
920 if test -n "$CC"; then
921 echo "$ac_t""$CC" 1>&6
923 echo "$ac_t""no" 1>&6
928 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
931 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
932 echo "configure:933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
936 ac_cpp='$CPP $CPPFLAGS'
937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
939 cross_compiling=$ac_cv_prog_cc_cross
941 cat > conftest.$ac_ext << EOF
943 #line 944 "configure"
944 #include "confdefs.h"
948 if { (eval echo configure:949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
949 ac_cv_prog_cc_works=yes
950 # If we can't run a trivial program, we are probably using a cross compiler.
951 if (./conftest; exit) 2>/dev/null; then
952 ac_cv_prog_cc_cross=no
954 ac_cv_prog_cc_cross=yes
957 echo "configure: failed program was:" >&5
958 cat conftest.$ac_ext >&5
959 ac_cv_prog_cc_works=no
963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
964 ac_cpp='$CPP $CPPFLAGS'
965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
967 cross_compiling=$ac_cv_prog_cc_cross
969 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
970 if test $ac_cv_prog_cc_works = no; then
971 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
973 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
974 echo "configure:975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
975 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
976 cross_compiling=$ac_cv_prog_cc_cross
978 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
979 echo "configure:980: checking whether we are using GNU C" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 cat > conftest.c <<EOF
988 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
995 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
997 if test $ac_cv_prog_gcc = yes; then
1003 ac_test_CFLAGS="${CFLAGS+set}"
1004 ac_save_CFLAGS="$CFLAGS"
1006 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether ${CC-cc} accepts -g" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 echo 'void f(){}' > conftest.c
1012 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1021 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1022 if test "$ac_test_CFLAGS" = set; then
1023 CFLAGS="$ac_save_CFLAGS"
1024 elif test $ac_cv_prog_cc_g = yes; then
1025 if test "$GCC" = yes; then
1031 if test "$GCC" = yes; then
1038 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1039 echo "configure:1040: checking how to run the C preprocessor" >&5
1040 # On Suns, sometimes $CPP names a directory.
1041 if test -n "$CPP" && test -d "$CPP"; then
1044 if test -z "$CPP"; then
1045 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 # This must be in double quotes, not single quotes, because CPP may get
1049 # substituted into the Makefile and "${CC-cc}" will confuse make.
1051 # On the NeXT, cc -E runs the code through the compiler's parser,
1052 # not just through cpp.
1053 cat > conftest.$ac_ext <<EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1060 { (eval echo configure:1061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1062 if test -z "$ac_err"; then
1066 echo "configure: failed program was:" >&5
1067 cat conftest.$ac_ext >&5
1069 CPP="${CC-cc} -E -traditional-cpp"
1070 cat > conftest.$ac_ext <<EOF
1071 #line 1072 "configure"
1072 #include "confdefs.h"
1076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1077 { (eval echo configure:1078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1079 if test -z "$ac_err"; then
1083 echo "configure: failed program was:" >&5
1084 cat conftest.$ac_ext >&5
1086 CPP="${CC-cc} -nologo -E"
1087 cat > conftest.$ac_ext <<EOF
1088 #line 1089 "configure"
1089 #include "confdefs.h"
1093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1094 { (eval echo configure:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1096 if test -z "$ac_err"; then
1100 echo "configure: failed program was:" >&5
1101 cat conftest.$ac_ext >&5
1110 ac_cv_prog_CPP="$CPP"
1112 CPP="$ac_cv_prog_CPP"
1114 ac_cv_prog_CPP="$CPP"
1116 echo "$ac_t""$CPP" 1>&6
1119 if test $host != $build; then
1120 ac_tool_prefix=${host_alias}-
1125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128 echo "configure:1129: checking for $ac_word" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 if test -n "$RANLIB"; then
1133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1137 for ac_dir in $ac_dummy; do
1138 test -z "$ac_dir" && ac_dir=.
1139 if test -f $ac_dir/$ac_word; then
1140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1147 RANLIB="$ac_cv_prog_RANLIB"
1148 if test -n "$RANLIB"; then
1149 echo "$ac_t""$RANLIB" 1>&6
1151 echo "$ac_t""no" 1>&6
1155 if test -z "$ac_cv_prog_RANLIB"; then
1156 if test -n "$ac_tool_prefix"; then
1157 # Extract the first word of "ranlib", so it can be a program name with args.
1158 set dummy ranlib; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$RANLIB"; then
1165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 for ac_dir in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir=.
1171 if test -f $ac_dir/$ac_word; then
1172 ac_cv_prog_RANLIB="ranlib"
1177 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1180 RANLIB="$ac_cv_prog_RANLIB"
1181 if test -n "$RANLIB"; then
1182 echo "$ac_t""$RANLIB" 1>&6
1184 echo "$ac_t""no" 1>&6
1192 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1193 set dummy ${ac_tool_prefix}strip; ac_word=$2
1194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1195 echo "configure:1196: checking for $ac_word" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1199 if test -n "$STRIP"; then
1200 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1204 for ac_dir in $ac_dummy; do
1205 test -z "$ac_dir" && ac_dir=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1214 STRIP="$ac_cv_prog_STRIP"
1215 if test -n "$STRIP"; then
1216 echo "$ac_t""$STRIP" 1>&6
1218 echo "$ac_t""no" 1>&6
1222 if test -z "$ac_cv_prog_STRIP"; then
1223 if test -n "$ac_tool_prefix"; then
1224 # Extract the first word of "strip", so it can be a program name with args.
1225 set dummy strip; ac_word=$2
1226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1227 echo "configure:1228: checking for $ac_word" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 if test -n "$STRIP"; then
1232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1236 for ac_dir in $ac_dummy; do
1237 test -z "$ac_dir" && ac_dir=.
1238 if test -f $ac_dir/$ac_word; then
1239 ac_cv_prog_STRIP="strip"
1244 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1247 STRIP="$ac_cv_prog_STRIP"
1248 if test -n "$STRIP"; then
1249 echo "$ac_t""$STRIP" 1>&6
1251 echo "$ac_t""no" 1>&6
1260 # Extract the first word of "gmake", so it can be a program name with args.
1261 set dummy gmake; ac_word=$2
1262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1263 echo "configure:1264: checking for $ac_word" >&5
1264 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1269 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1272 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1277 for ac_dir in $ac_dummy; do
1278 test -z "$ac_dir" && ac_dir=.
1279 if test -f $ac_dir/$ac_word; then
1280 ac_cv_path_GMAKE="$ac_dir/$ac_word"
1285 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1289 GMAKE="$ac_cv_path_GMAKE"
1290 if test -n "$GMAKE"; then
1291 echo "$ac_t""$GMAKE" 1>&6
1293 echo "$ac_t""no" 1>&6
1296 if test "x$GMAKE" = "xno"; then
1297 echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether GNU make is installed" >&5
1299 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if make --version | grep -q -i gnu; then
1305 echo "This software needs you to install GNU make to compile properly."
1306 echo "You can get it from http://www.gnu.org/."
1311 echo "$ac_t""$ac_cv_gmake" 1>&6
1317 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
1319 cat >> confdefs.h <<EOF
1320 #define VLC_PACKAGE "$PACKAGE"
1323 cat >> confdefs.h <<EOF
1324 #define VLC_VERSION "$VERSION"
1327 # Extract the first word of "ranlib", so it can be a program name with args.
1328 set dummy ranlib; ac_word=$2
1329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1330 echo "configure:1331: checking for $ac_word" >&5
1331 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 if test -n "$RANLIB"; then
1335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1339 for ac_dir in $ac_dummy; do
1340 test -z "$ac_dir" && ac_dir=.
1341 if test -f $ac_dir/$ac_word; then
1342 ac_cv_prog_RANLIB="ranlib"
1347 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1350 RANLIB="$ac_cv_prog_RANLIB"
1351 if test -n "$RANLIB"; then
1352 echo "$ac_t""$RANLIB" 1>&6
1354 echo "$ac_t""no" 1>&6
1358 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1359 echo "configure:1360: checking for strerror in -lcposix" >&5
1360 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 ac_save_LIBS="$LIBS"
1365 LIBS="-lcposix $LIBS"
1366 cat > conftest.$ac_ext <<EOF
1367 #line 1368 "configure"
1368 #include "confdefs.h"
1369 /* Override any gcc2 internal prototype to avoid an error. */
1370 /* We use char because int might match the return type of a gcc2
1371 builtin and then its argument prototype would still apply. */
1378 if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1380 eval "ac_cv_lib_$ac_lib_var=yes"
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1385 eval "ac_cv_lib_$ac_lib_var=no"
1388 LIBS="$ac_save_LIBS"
1391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1392 echo "$ac_t""yes" 1>&6
1393 LIBS="$LIBS -lcposix"
1395 echo "$ac_t""no" 1>&6
1400 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1401 echo "configure:1402: checking for ANSI C header files" >&5
1402 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1414 { (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1416 if test -z "$ac_err"; then
1418 ac_cv_header_stdc=yes
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1424 ac_cv_header_stdc=no
1428 if test $ac_cv_header_stdc = yes; then
1429 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1436 egrep "memchr" >/dev/null 2>&1; then
1440 ac_cv_header_stdc=no
1446 if test $ac_cv_header_stdc = yes; then
1447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1448 cat > conftest.$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1454 egrep "free" >/dev/null 2>&1; then
1458 ac_cv_header_stdc=no
1464 if test $ac_cv_header_stdc = yes; then
1465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1466 if test "$cross_compiling" = yes; then
1469 cat > conftest.$ac_ext <<EOF
1470 #line 1471 "configure"
1471 #include "confdefs.h"
1473 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1474 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1476 int main () { int i; for (i = 0; i < 256; i++)
1477 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1481 if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1488 ac_cv_header_stdc=no
1496 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1497 if test $ac_cv_header_stdc = yes; then
1498 cat >> confdefs.h <<\EOF
1499 #define STDC_HEADERS 1
1504 echo $ac_n "checking for working const""... $ac_c" 1>&6
1505 echo "configure:1506: checking for working const" >&5
1506 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1515 /* Ultrix mips cc rejects this. */
1516 typedef int charset[2]; const charset x;
1517 /* SunOS 4.1.1 cc rejects this. */
1518 char const *const *ccp;
1520 /* NEC SVR4.0.2 mips cc rejects this. */
1521 struct point {int x, y;};
1522 static struct point const zero = {0,0};
1523 /* AIX XL C 1.02.0.0 rejects this.
1524 It does not let you subtract one const X* pointer from another in an arm
1525 of an if-expression whose if-part is not a constant expression */
1526 const char *g = "string";
1527 ccp = &g + (g ? g-g : 0);
1528 /* HPUX 7.0 cc rejects these. */
1531 ccp = (char const *const *) p;
1532 { /* SCO 3.2v4 cc rejects this. */
1534 char const *s = 0 ? (char *) 0 : (char const *) 0;
1538 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1540 const int *foo = &x[0];
1543 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1544 typedef const int *iptr;
1548 { /* AIX XL C 1.02.0.0 rejects this saying
1549 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1550 struct s { int j; const int *ap[3]; };
1551 struct s *b; b->j = 5;
1553 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1559 if { (eval echo configure:1560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1571 echo "$ac_t""$ac_cv_c_const" 1>&6
1572 if test $ac_cv_c_const = no; then
1573 cat >> confdefs.h <<\EOF
1579 echo $ac_n "checking for inline""... $ac_c" 1>&6
1580 echo "configure:1581: checking for inline" >&5
1581 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1585 for ac_kw in inline __inline__ __inline; do
1586 cat > conftest.$ac_ext <<EOF
1587 #line 1588 "configure"
1588 #include "confdefs.h"
1594 if { (eval echo configure:1595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1596 ac_cv_c_inline=$ac_kw; break
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1606 echo "$ac_t""$ac_cv_c_inline" 1>&6
1607 case "$ac_cv_c_inline" in
1609 no) cat >> confdefs.h <<\EOF
1613 *) cat >> confdefs.h <<EOF
1614 #define inline $ac_cv_c_inline
1619 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1620 echo "configure:1621: checking for off_t" >&5
1621 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 #include <sys/types.h>
1633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1634 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1636 ac_cv_type_off_t=yes
1644 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1645 if test $ac_cv_type_off_t = no; then
1646 cat >> confdefs.h <<\EOF
1652 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1653 echo "configure:1654: checking for size_t" >&5
1654 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 #include <sys/types.h>
1666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1667 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1669 ac_cv_type_size_t=yes
1672 ac_cv_type_size_t=no
1677 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1678 if test $ac_cv_type_size_t = no; then
1679 cat >> confdefs.h <<\EOF
1680 #define size_t unsigned
1685 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1686 # for constant arguments. Useless!
1687 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1688 echo "configure:1689: checking for working alloca.h" >&5
1689 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1697 char *p = alloca(2 * sizeof(int));
1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1702 ac_cv_header_alloca_h=yes
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 ac_cv_header_alloca_h=no
1712 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1713 if test $ac_cv_header_alloca_h = yes; then
1714 cat >> confdefs.h <<\EOF
1715 #define HAVE_ALLOCA_H 1
1720 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1721 echo "configure:1722: checking for alloca" >&5
1722 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1730 # define alloca __builtin_alloca
1733 # include <malloc.h>
1734 # define alloca _alloca
1737 # include <alloca.h>
1742 # ifndef alloca /* predefined by HP cc +Olibcalls */
1751 char *p = (char *) alloca(1);
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756 ac_cv_func_alloca_works=yes
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1761 ac_cv_func_alloca_works=no
1766 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1767 if test $ac_cv_func_alloca_works = yes; then
1768 cat >> confdefs.h <<\EOF
1769 #define HAVE_ALLOCA 1
1774 if test $ac_cv_func_alloca_works = no; then
1775 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1776 # that cause trouble. Some versions do not even contain alloca or
1777 # contain a buggy version. If you still want to use their alloca,
1778 # use ar to extract alloca.o from them instead of compiling alloca.c.
1779 ALLOCA=alloca.${ac_objext}
1780 cat >> confdefs.h <<\EOF
1785 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1786 echo "configure:1787: checking whether alloca needs Cray hooks" >&5
1787 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1793 #if defined(CRAY) && ! defined(CRAY2)
1800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1801 egrep "webecray" >/dev/null 2>&1; then
1812 echo "$ac_t""$ac_cv_os_cray" 1>&6
1813 if test $ac_cv_os_cray = yes; then
1814 for ac_func in _getb67 GETB67 getb67; do
1815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1816 echo "configure:1817: checking for $ac_func" >&5
1817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823 /* System header to define __stub macros and hopefully few prototypes,
1824 which can conflict with char $ac_func(); below. */
1826 /* Override any gcc2 internal prototype to avoid an error. */
1827 /* We use char because int might match the return type of a gcc2
1828 builtin and then its argument prototype would still apply. */
1833 /* The GNU C library defines this for functions which it implements
1834 to always fail with ENOSYS. Some functions are actually named
1835 something starting with __ and the normal name is an alias. */
1836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1844 if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1846 eval "ac_cv_func_$ac_func=yes"
1848 echo "configure: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1851 eval "ac_cv_func_$ac_func=no"
1856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1857 echo "$ac_t""yes" 1>&6
1858 cat >> confdefs.h <<EOF
1859 #define CRAY_STACKSEG_END $ac_func
1864 echo "$ac_t""no" 1>&6
1870 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1871 echo "configure:1872: checking stack direction for C alloca" >&5
1872 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 if test "$cross_compiling" = yes; then
1876 ac_cv_c_stack_direction=0
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 find_stack_direction ()
1883 static char *addr = 0;
1888 return find_stack_direction ();
1891 return (&dummy > addr) ? 1 : -1;
1895 exit (find_stack_direction() < 0);
1898 if { (eval echo configure:1899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1900 ac_cv_c_stack_direction=1
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1905 ac_cv_c_stack_direction=-1
1912 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1913 cat >> confdefs.h <<EOF
1914 #define STACK_DIRECTION $ac_cv_c_stack_direction
1919 for ac_hdr in unistd.h
1921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1923 echo "configure:1924: checking for $ac_hdr" >&5
1924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1933 { (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1935 if test -z "$ac_err"; then
1937 eval "ac_cv_header_$ac_safe=yes"
1940 echo "configure: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1943 eval "ac_cv_header_$ac_safe=no"
1947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1948 echo "$ac_t""yes" 1>&6
1949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1950 cat >> confdefs.h <<EOF
1951 #define $ac_tr_hdr 1
1955 echo "$ac_t""no" 1>&6
1959 for ac_func in getpagesize
1961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_func" >&5
1963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 cat > conftest.$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1969 /* System header to define __stub macros and hopefully few prototypes,
1970 which can conflict with char $ac_func(); below. */
1972 /* Override any gcc2 internal prototype to avoid an error. */
1973 /* We use char because int might match the return type of a gcc2
1974 builtin and then its argument prototype would still apply. */
1979 /* The GNU C library defines this for functions which it implements
1980 to always fail with ENOSYS. Some functions are actually named
1981 something starting with __ and the normal name is an alias. */
1982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1990 if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1992 eval "ac_cv_func_$ac_func=yes"
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1997 eval "ac_cv_func_$ac_func=no"
2002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2003 echo "$ac_t""yes" 1>&6
2004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2005 cat >> confdefs.h <<EOF
2006 #define $ac_tr_func 1
2010 echo "$ac_t""no" 1>&6
2014 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2015 echo "configure:2016: checking for working mmap" >&5
2016 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 if test "$cross_compiling" = yes; then
2020 ac_cv_func_mmap_fixed_mapped=no
2022 cat > conftest.$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2026 /* Thanks to Mike Haertel and Jim Avera for this test.
2027 Here is a matrix of mmap possibilities:
2028 mmap private not fixed
2029 mmap private fixed at somewhere currently unmapped
2030 mmap private fixed at somewhere already mapped
2031 mmap shared not fixed
2032 mmap shared fixed at somewhere currently unmapped
2033 mmap shared fixed at somewhere already mapped
2034 For private mappings, we should verify that changes cannot be read()
2035 back from the file, nor mmap's back from the file at a different
2036 address. (There have been systems where private was not correctly
2037 implemented like the infamous i386 svr4.0, and systems where the
2038 VM page cache was not coherent with the filesystem buffer cache
2039 like early versions of FreeBSD and possibly contemporary NetBSD.)
2040 For shared mappings, we should conversely verify that changes get
2041 propogated back to all the places they're supposed to be.
2043 Grep wants private fixed already mapped.
2044 The main things grep needs to know about mmap are:
2045 * does it exist and is it safe to write into the mmap'd area
2046 * how to use it (BSD variants) */
2047 #include <sys/types.h>
2049 #include <sys/mman.h>
2051 /* This mess was copied from the GNU getpagesize.h. */
2052 #ifndef HAVE_GETPAGESIZE
2053 # ifdef HAVE_UNISTD_H
2054 # include <unistd.h>
2057 /* Assume that all systems that can run configure have sys/param.h. */
2058 # ifndef HAVE_SYS_PARAM_H
2059 # define HAVE_SYS_PARAM_H 1
2062 # ifdef _SC_PAGESIZE
2063 # define getpagesize() sysconf(_SC_PAGESIZE)
2064 # else /* no _SC_PAGESIZE */
2065 # ifdef HAVE_SYS_PARAM_H
2066 # include <sys/param.h>
2067 # ifdef EXEC_PAGESIZE
2068 # define getpagesize() EXEC_PAGESIZE
2069 # else /* no EXEC_PAGESIZE */
2071 # define getpagesize() NBPG * CLSIZE
2074 # endif /* no CLSIZE */
2075 # else /* no NBPG */
2077 # define getpagesize() NBPC
2078 # else /* no NBPC */
2080 # define getpagesize() PAGESIZE
2081 # endif /* PAGESIZE */
2082 # endif /* no NBPC */
2083 # endif /* no NBPG */
2084 # endif /* no EXEC_PAGESIZE */
2085 # else /* no HAVE_SYS_PARAM_H */
2086 # define getpagesize() 8192 /* punt totally */
2087 # endif /* no HAVE_SYS_PARAM_H */
2088 # endif /* no _SC_PAGESIZE */
2090 #endif /* no HAVE_GETPAGESIZE */
2093 extern "C" { void *malloc(unsigned); }
2101 char *data, *data2, *data3;
2105 pagesize = getpagesize();
2108 * First, make a file with some known garbage in it.
2110 data = malloc(pagesize);
2113 for (i = 0; i < pagesize; ++i)
2114 *(data + i) = rand();
2116 fd = creat("conftestmmap", 0600);
2119 if (write(fd, data, pagesize) != pagesize)
2124 * Next, try to mmap the file at a fixed address which
2125 * already has something else allocated at it. If we can,
2126 * also make sure that we see the same garbage.
2128 fd = open("conftestmmap", O_RDWR);
2131 data2 = malloc(2 * pagesize);
2134 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2135 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2136 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2138 for (i = 0; i < pagesize; ++i)
2139 if (*(data + i) != *(data2 + i))
2143 * Finally, make sure that changes to the mapped area
2144 * do not percolate back to the file as seen by read().
2145 * (This is a bug on some variants of i386 svr4.0.)
2147 for (i = 0; i < pagesize; ++i)
2148 *(data2 + i) = *(data2 + i) + 1;
2149 data3 = malloc(pagesize);
2152 if (read(fd, data3, pagesize) != pagesize)
2154 for (i = 0; i < pagesize; ++i)
2155 if (*(data + i) != *(data3 + i))
2158 unlink("conftestmmap");
2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2165 ac_cv_func_mmap_fixed_mapped=yes
2167 echo "configure: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2170 ac_cv_func_mmap_fixed_mapped=no
2177 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2178 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2179 cat >> confdefs.h <<\EOF
2186 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2187 echo "configure:2188: checking whether we are using the GNU C Library 2.1 or newer" >&5
2188 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2195 #include <features.h>
2196 #ifdef __GNU_LIBRARY__
2197 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2204 egrep "Lucky GNU user" >/dev/null 2>&1; then
2206 ac_cv_gnu_library_2_1=yes
2209 ac_cv_gnu_library_2_1=no
2217 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2219 GLIBC21="$ac_cv_gnu_library_2_1"
2223 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2224 stdlib.h string.h unistd.h sys/param.h
2226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_hdr" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then
2242 eval "ac_cv_header_$ac_safe=yes"
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2248 eval "ac_cv_header_$ac_safe=no"
2252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2255 cat >> confdefs.h <<EOF
2256 #define $ac_tr_hdr 1
2260 echo "$ac_t""no" 1>&6
2264 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2265 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2266 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_func" >&5
2270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 /* System header to define __stub macros and hopefully few prototypes,
2277 which can conflict with char $ac_func(); below. */
2279 /* Override any gcc2 internal prototype to avoid an error. */
2280 /* We use char because int might match the return type of a gcc2
2281 builtin and then its argument prototype would still apply. */
2286 /* The GNU C library defines this for functions which it implements
2287 to always fail with ENOSYS. Some functions are actually named
2288 something starting with __ and the normal name is an alias. */
2289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2299 eval "ac_cv_func_$ac_func=yes"
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2304 eval "ac_cv_func_$ac_func=no"
2309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2310 echo "$ac_t""yes" 1>&6
2311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2312 cat >> confdefs.h <<EOF
2313 #define $ac_tr_func 1
2317 echo "$ac_t""no" 1>&6
2324 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2325 if test "${with_libiconv_prefix+set}" = set; then
2326 withval="$with_libiconv_prefix"
2328 for dir in `echo "$withval" | tr : ' '`; do
2329 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2330 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2336 echo $ac_n "checking for iconv""... $ac_c" 1>&6
2337 echo "configure:2338: checking for iconv" >&5
2338 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2342 am_cv_func_iconv="no, consider installing GNU libiconv"
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2350 iconv_t cd = iconv_open("","");
2351 iconv(cd,NULL,NULL,NULL,NULL);
2355 if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2357 am_cv_func_iconv=yes
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2363 if test "$am_cv_func_iconv" != yes; then
2364 am_save_LIBS="$LIBS"
2365 LIBS="$LIBS -liconv"
2366 cat > conftest.$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2372 iconv_t cd = iconv_open("","");
2373 iconv(cd,NULL,NULL,NULL,NULL);
2377 if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2380 am_cv_func_iconv=yes
2382 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2386 LIBS="$am_save_LIBS"
2391 echo "$ac_t""$am_cv_func_iconv" 1>&6
2392 if test "$am_cv_func_iconv" = yes; then
2393 cat >> confdefs.h <<\EOF
2394 #define HAVE_ICONV 1
2397 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2398 echo "configure:2399: checking for iconv declaration" >&5
2399 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2413 #if defined(__STDC__) || defined(__cplusplus)
2414 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2423 if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2425 am_cv_proto_iconv_arg1=""
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2430 am_cv_proto_iconv_arg1="const"
2433 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);"
2436 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2437 echo "$ac_t""${ac_t:-
2438 }$am_cv_proto_iconv" 1>&6
2439 cat >> confdefs.h <<EOF
2440 #define ICONV_CONST $am_cv_proto_iconv_arg1
2445 if test "$am_cv_lib_iconv" = yes; then
2451 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2452 echo "configure:2453: checking for nl_langinfo and CODESET" >&5
2453 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2459 #include <langinfo.h>
2461 char* cs = nl_langinfo(CODESET);
2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2466 am_cv_langinfo_codeset=yes
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2471 am_cv_langinfo_codeset=no
2477 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2478 if test $am_cv_langinfo_codeset = yes; then
2479 cat >> confdefs.h <<\EOF
2480 #define HAVE_LANGINFO_CODESET 1
2485 if test $ac_cv_header_locale_h = yes; then
2486 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2487 echo "configure:2488: checking for LC_MESSAGES" >&5
2488 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 cat > conftest.$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2501 am_cv_val_LC_MESSAGES=yes
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2506 am_cv_val_LC_MESSAGES=no
2511 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2512 if test $am_cv_val_LC_MESSAGES = yes; then
2513 cat >> confdefs.h <<\EOF
2514 #define HAVE_LC_MESSAGES 1
2519 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2520 echo "configure:2521: checking whether NLS is requested" >&5
2521 # Check whether --enable-nls or --disable-nls was given.
2522 if test "${enable_nls+set}" = set; then
2523 enableval="$enable_nls"
2529 echo "$ac_t""$USE_NLS" 1>&6
2532 BUILD_INCLUDED_LIBINTL=no
2533 USE_INCLUDED_LIBINTL=no
2536 if test "$USE_NLS" = "yes"; then
2537 cat >> confdefs.h <<\EOF
2538 #define ENABLE_NLS 1
2541 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2542 echo "configure:2543: checking whether included gettext is requested" >&5
2543 # Check whether --with-included-gettext or --without-included-gettext was given.
2544 if test "${with_included_gettext+set}" = set; then
2545 withval="$with_included_gettext"
2546 nls_cv_force_use_gnu_gettext=$withval
2548 nls_cv_force_use_gnu_gettext=no
2551 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2553 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2554 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2560 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2561 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2562 echo "configure:2563: checking for libintl.h" >&5
2563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2569 #include <libintl.h>
2571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2572 { (eval echo configure:2573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2574 if test -z "$ac_err"; then
2576 eval "ac_cv_header_$ac_safe=yes"
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2582 eval "ac_cv_header_$ac_safe=no"
2586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2589 echo "configure:2590: checking for GNU gettext in libc" >&5
2590 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2596 #include <libintl.h>
2597 extern int _nl_msg_cat_cntr;
2599 bindtextdomain ("", "");
2600 return (int) gettext ("") + _nl_msg_cat_cntr
2603 if { (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2605 gt_cv_func_gnugettext1_libc=yes
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2610 gt_cv_func_gnugettext1_libc=no
2615 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2617 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2618 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2619 echo "configure:2620: checking for GNU gettext in libintl" >&5
2620 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 gt_save_LIBS="$LIBS"
2624 LIBS="$LIBS -lintl $LIBICONV"
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 #include <libintl.h>
2629 extern int _nl_msg_cat_cntr;
2631 bindtextdomain ("", "");
2632 return (int) gettext ("") + _nl_msg_cat_cntr
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2637 gt_cv_func_gnugettext1_libintl=yes
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 gt_cv_func_gnugettext1_libintl=no
2645 LIBS="$gt_save_LIBS"
2648 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2651 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2652 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2653 && test "$PACKAGE" != gettext; }; then
2654 cat >> confdefs.h <<\EOF
2655 #define HAVE_GETTEXT 1
2659 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2660 INTLLIBS="-lintl $LIBICONV"
2663 gt_save_LIBS="$LIBS"
2664 LIBS="$LIBS $INTLLIBS"
2665 for ac_func in dcgettext
2667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2668 echo "configure:2669: checking for $ac_func" >&5
2669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 /* System header to define __stub macros and hopefully few prototypes,
2676 which can conflict with char $ac_func(); below. */
2678 /* Override any gcc2 internal prototype to avoid an error. */
2679 /* We use char because int might match the return type of a gcc2
2680 builtin and then its argument prototype would still apply. */
2685 /* The GNU C library defines this for functions which it implements
2686 to always fail with ENOSYS. Some functions are actually named
2687 something starting with __ and the normal name is an alias. */
2688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2696 if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2698 eval "ac_cv_func_$ac_func=yes"
2700 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2703 eval "ac_cv_func_$ac_func=no"
2708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2709 echo "$ac_t""yes" 1>&6
2710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2711 cat >> confdefs.h <<EOF
2712 #define $ac_tr_func 1
2716 echo "$ac_t""no" 1>&6
2720 LIBS="$gt_save_LIBS"
2722 # Extract the first word of "msgfmt", so it can be a program name with args.
2723 set dummy msgfmt; ac_word=$2
2724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2725 echo "configure:2726: checking for $ac_word" >&5
2726 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2731 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2735 for ac_dir in $PATH; do
2736 test -z "$ac_dir" && ac_dir=.
2737 if test -f $ac_dir/$ac_word; then
2738 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2739 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2745 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2749 MSGFMT="$ac_cv_path_MSGFMT"
2750 if test "$MSGFMT" != ":"; then
2751 echo "$ac_t""$MSGFMT" 1>&6
2753 echo "$ac_t""no" 1>&6
2756 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2757 set dummy gmsgfmt; ac_word=$2
2758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2759 echo "configure:2760: checking for $ac_word" >&5
2760 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2765 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2768 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2773 for ac_dir in $ac_dummy; do
2774 test -z "$ac_dir" && ac_dir=.
2775 if test -f $ac_dir/$ac_word; then
2776 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2781 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2785 GMSGFMT="$ac_cv_path_GMSGFMT"
2786 if test -n "$GMSGFMT"; then
2787 echo "$ac_t""$GMSGFMT" 1>&6
2789 echo "$ac_t""no" 1>&6
2793 # Extract the first word of "xgettext", so it can be a program name with args.
2794 set dummy xgettext; ac_word=$2
2795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2796 echo "configure:2797: checking for $ac_word" >&5
2797 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2802 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2806 for ac_dir in $PATH; do
2807 test -z "$ac_dir" && ac_dir=.
2808 if test -f $ac_dir/$ac_word; then
2809 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2810 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2816 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2820 XGETTEXT="$ac_cv_path_XGETTEXT"
2821 if test "$XGETTEXT" != ":"; then
2822 echo "$ac_t""$XGETTEXT" 1>&6
2824 echo "$ac_t""no" 1>&6
2832 echo "$ac_t""no" 1>&6
2836 if test "$CATOBJEXT" = "NONE"; then
2837 nls_cv_use_gnu_gettext=yes
2841 if test "$nls_cv_use_gnu_gettext" = "yes"; then
2842 INTLOBJS="\$(GETTOBJS)"
2843 # Extract the first word of "msgfmt", so it can be a program name with args.
2844 set dummy msgfmt; ac_word=$2
2845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2846 echo "configure:2847: checking for $ac_word" >&5
2847 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2852 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2856 for ac_dir in $PATH; do
2857 test -z "$ac_dir" && ac_dir=.
2858 if test -f $ac_dir/$ac_word; then
2859 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2860 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2866 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2870 MSGFMT="$ac_cv_path_MSGFMT"
2871 if test "$MSGFMT" != ":"; then
2872 echo "$ac_t""$MSGFMT" 1>&6
2874 echo "$ac_t""no" 1>&6
2877 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2878 set dummy gmsgfmt; ac_word=$2
2879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2880 echo "configure:2881: checking for $ac_word" >&5
2881 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2886 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2889 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2894 for ac_dir in $ac_dummy; do
2895 test -z "$ac_dir" && ac_dir=.
2896 if test -f $ac_dir/$ac_word; then
2897 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2902 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2906 GMSGFMT="$ac_cv_path_GMSGFMT"
2907 if test -n "$GMSGFMT"; then
2908 echo "$ac_t""$GMSGFMT" 1>&6
2910 echo "$ac_t""no" 1>&6
2913 # Extract the first word of "xgettext", so it can be a program name with args.
2914 set dummy xgettext; ac_word=$2
2915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_word" >&5
2917 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2922 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2926 for ac_dir in $PATH; do
2927 test -z "$ac_dir" && ac_dir=.
2928 if test -f $ac_dir/$ac_word; then
2929 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2930 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2936 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2940 XGETTEXT="$ac_cv_path_XGETTEXT"
2941 if test "$XGETTEXT" != ":"; then
2942 echo "$ac_t""$XGETTEXT" 1>&6
2944 echo "$ac_t""no" 1>&6
2948 BUILD_INCLUDED_LIBINTL=yes
2949 USE_INCLUDED_LIBINTL=yes
2951 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2952 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2955 if test "$GMSGFMT" != ":"; then
2956 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2959 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2964 if test "$XGETTEXT" != ":"; then
2965 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2968 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2978 if test "$PACKAGE" = gettext; then
2979 BUILD_INCLUDED_LIBINTL=yes
2982 for ac_prog in bison
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_word" >&5
2988 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 if test -n "$INTLBISON"; then
2992 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2996 for ac_dir in $ac_dummy; do
2997 test -z "$ac_dir" && ac_dir=.
2998 if test -f $ac_dir/$ac_word; then
2999 ac_cv_prog_INTLBISON="$ac_prog"
3006 INTLBISON="$ac_cv_prog_INTLBISON"
3007 if test -n "$INTLBISON"; then
3008 echo "$ac_t""$INTLBISON" 1>&6
3010 echo "$ac_t""no" 1>&6
3013 test -n "$INTLBISON" && break
3016 if test -z "$INTLBISON"; then
3019 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3020 echo "configure:3021: checking version of bison" >&5
3021 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3022 case $ac_prog_version in
3023 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3024 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3025 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3026 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3028 echo "$ac_t""$ac_prog_version" 1>&6
3030 if test $ac_verc_fail = yes; then
3034 for lang in $ALL_LINGUAS; do
3035 GMOFILES="$GMOFILES $lang.gmo"
3036 POFILES="$POFILES $lang.po"
3050 nls_cv_header_libgt=
3062 if test "x$CATOBJEXT" != "x"; then
3063 if test "x$ALL_LINGUAS" = "x"; then
3066 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3067 echo "configure:3068: checking for catalogs to be installed" >&5
3069 for presentlang in $ALL_LINGUAS; do
3071 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3072 # Use the presentlang catalog if desiredlang is
3073 # a. equal to presentlang, or
3074 # b. a variant of presentlang (because in this case,
3075 # presentlang can be used as a fallback for messages
3076 # which are not translated in the desiredlang catalog).
3077 case "$desiredlang" in
3078 "$presentlang"*) useit=yes;;
3081 if test $useit = yes; then
3082 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3085 LINGUAS=$NEW_LINGUAS
3086 echo "$ac_t""$LINGUAS" 1>&6
3089 if test -n "$LINGUAS"; then
3090 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3095 if test -n "$ac_aux_dir"; then
3096 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3098 if test -z "$MKINSTALLDIRS"; then
3099 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3103 INTL_LIBTOOL_SUFFIX_PREFIX=
3107 # Find a good install program. We prefer a C program (faster),
3108 # so one script is as good as another. But avoid the broken or
3109 # incompatible versions:
3110 # SysV /etc/install, /usr/sbin/install
3111 # SunOS /usr/etc/install
3112 # IRIX /sbin/install
3114 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3115 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3116 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3117 # ./install, which can be erroneously created by make from ./install.sh.
3118 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3119 echo "configure:3120: checking for a BSD compatible install" >&5
3120 if test -z "$INSTALL"; then
3121 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3125 for ac_dir in $PATH; do
3126 # Account for people who put trailing slashes in PATH elements.
3128 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3130 # OSF1 and SCO ODT 3.0 have their own names for install.
3131 # Don't use installbsd from OSF since it installs stuff as root
3133 for ac_prog in ginstall scoinst install; do
3134 if test -f $ac_dir/$ac_prog; then
3135 if test $ac_prog = install &&
3136 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3137 # AIX install. It has an incompatible calling convention.
3140 ac_cv_path_install="$ac_dir/$ac_prog -c"
3151 if test "${ac_cv_path_install+set}" = set; then
3152 INSTALL="$ac_cv_path_install"
3154 # As a last resort, use the slow shell script. We don't cache a
3155 # path for INSTALL within a source directory, because that will
3156 # break other packages using the cache if that directory is
3157 # removed, or if the path is relative.
3158 INSTALL="$ac_install_sh"
3161 echo "$ac_t""$INSTALL" 1>&6
3163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3164 # It thinks the first close brace ends the variable substitution.
3165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3172 vlc_LDFLAGS="${LDFLAGS}"
3174 case x"${target_os}" in
3183 save_CFLAGS="${save_CFLAGS} -pthread"
3184 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3185 vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3189 save_CFLAGS="${save_CFLAGS} -pthread"
3193 save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
3197 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3198 set dummy ${ac_tool_prefix}windres; ac_word=$2
3199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3200 echo "configure:3201: checking for $ac_word" >&5
3201 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 if test -n "$WINDRES"; then
3205 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3209 for ac_dir in $ac_dummy; do
3210 test -z "$ac_dir" && ac_dir=.
3211 if test -f $ac_dir/$ac_word; then
3212 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3219 WINDRES="$ac_cv_prog_WINDRES"
3220 if test -n "$WINDRES"; then
3221 echo "$ac_t""$WINDRES" 1>&6
3223 echo "$ac_t""no" 1>&6
3227 if test -z "$ac_cv_prog_WINDRES"; then
3228 if test -n "$ac_tool_prefix"; then
3229 # Extract the first word of "windres", so it can be a program name with args.
3230 set dummy windres; ac_word=$2
3231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_word" >&5
3233 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 if test -n "$WINDRES"; then
3237 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3241 for ac_dir in $ac_dummy; do
3242 test -z "$ac_dir" && ac_dir=.
3243 if test -f $ac_dir/$ac_word; then
3244 ac_cv_prog_WINDRES="windres"
3249 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3252 WINDRES="$ac_cv_prog_WINDRES"
3253 if test -n "$WINDRES"; then
3254 echo "$ac_t""$WINDRES" 1>&6
3256 echo "$ac_t""no" 1>&6
3264 save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
3265 vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3266 vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3267 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3268 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3269 http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3270 rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3274 x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3275 xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3279 save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
3280 vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3281 plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3282 beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3283 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3290 if test x"${SYS}" = xmingw32
3292 plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3294 plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3297 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
3299 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
3301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3302 echo "configure:3303: checking for $ac_func" >&5
3303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3309 /* System header to define __stub macros and hopefully few prototypes,
3310 which can conflict with char $ac_func(); below. */
3312 /* Override any gcc2 internal prototype to avoid an error. */
3313 /* We use char because int might match the return type of a gcc2
3314 builtin and then its argument prototype would still apply. */
3319 /* The GNU C library defines this for functions which it implements
3320 to always fail with ENOSYS. Some functions are actually named
3321 something starting with __ and the normal name is an alias. */
3322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3330 if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3332 eval "ac_cv_func_$ac_func=yes"
3334 echo "configure: failed program was:" >&5
3335 cat conftest.$ac_ext >&5
3337 eval "ac_cv_func_$ac_func=no"
3342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3343 echo "$ac_t""yes" 1>&6
3344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3345 cat >> confdefs.h <<EOF
3346 #define $ac_tr_func 1
3350 echo "$ac_t""no" 1>&6
3355 echo $ac_n "checking for connect""... $ac_c" 1>&6
3356 echo "configure:3357: checking for connect" >&5
3357 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 /* System header to define __stub macros and hopefully few prototypes,
3364 which can conflict with char connect(); below. */
3366 /* Override any gcc2 internal prototype to avoid an error. */
3367 /* We use char because int might match the return type of a gcc2
3368 builtin and then its argument prototype would still apply. */
3373 /* The GNU C library defines this for functions which it implements
3374 to always fail with ENOSYS. Some functions are actually named
3375 something starting with __ and the normal name is an alias. */
3376 #if defined (__stub_connect) || defined (__stub___connect)
3384 if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3386 eval "ac_cv_func_connect=yes"
3388 echo "configure: failed program was:" >&5
3389 cat conftest.$ac_ext >&5
3391 eval "ac_cv_func_connect=no"
3396 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3397 echo "$ac_t""yes" 1>&6
3400 echo "$ac_t""no" 1>&6
3402 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3403 echo "configure:3404: checking for connect in -lsocket" >&5
3404 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 ac_save_LIBS="$LIBS"
3409 LIBS="-lsocket $LIBS"
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* Override any gcc2 internal prototype to avoid an error. */
3414 /* We use char because int might match the return type of a gcc2
3415 builtin and then its argument prototype would still apply. */
3422 if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3424 eval "ac_cv_lib_$ac_lib_var=yes"
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3429 eval "ac_cv_lib_$ac_lib_var=no"
3432 LIBS="$ac_save_LIBS"
3435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3436 echo "$ac_t""yes" 1>&6
3437 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3438 vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3441 echo "$ac_t""no" 1>&6
3446 echo $ac_n "checking for send""... $ac_c" 1>&6
3447 echo "configure:3448: checking for send" >&5
3448 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* System header to define __stub macros and hopefully few prototypes,
3455 which can conflict with char send(); below. */
3457 /* Override any gcc2 internal prototype to avoid an error. */
3458 /* We use char because int might match the return type of a gcc2
3459 builtin and then its argument prototype would still apply. */
3464 /* The GNU C library defines this for functions which it implements
3465 to always fail with ENOSYS. Some functions are actually named
3466 something starting with __ and the normal name is an alias. */
3467 #if defined (__stub_send) || defined (__stub___send)
3475 if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3477 eval "ac_cv_func_send=yes"
3479 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3482 eval "ac_cv_func_send=no"
3487 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3491 echo "$ac_t""no" 1>&6
3493 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3494 echo "configure:3495: checking for send in -lsocket" >&5
3495 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 ac_save_LIBS="$LIBS"
3500 LIBS="-lsocket $LIBS"
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 /* Override any gcc2 internal prototype to avoid an error. */
3505 /* We use char because int might match the return type of a gcc2
3506 builtin and then its argument prototype would still apply. */
3513 if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3515 eval "ac_cv_lib_$ac_lib_var=yes"
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3520 eval "ac_cv_lib_$ac_lib_var=no"
3523 LIBS="$ac_save_LIBS"
3526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3528 http_LDFLAGS="${http_LDFLAGS} -lsocket"
3531 echo "$ac_t""no" 1>&6
3536 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3537 echo "configure:3538: checking for gethostbyname" >&5
3538 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 /* System header to define __stub macros and hopefully few prototypes,
3545 which can conflict with char gethostbyname(); below. */
3547 /* Override any gcc2 internal prototype to avoid an error. */
3548 /* We use char because int might match the return type of a gcc2
3549 builtin and then its argument prototype would still apply. */
3550 char gethostbyname();
3554 /* The GNU C library defines this for functions which it implements
3555 to always fail with ENOSYS. Some functions are actually named
3556 something starting with __ and the normal name is an alias. */
3557 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3565 if { (eval echo configure:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3567 eval "ac_cv_func_gethostbyname=yes"
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3572 eval "ac_cv_func_gethostbyname=no"
3577 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3578 echo "$ac_t""yes" 1>&6
3581 echo "$ac_t""no" 1>&6
3583 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3584 echo "configure:3585: checking for gethostbyname in -lnsl" >&5
3585 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 ac_save_LIBS="$LIBS"
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 /* Override any gcc2 internal prototype to avoid an error. */
3595 /* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3597 char gethostbyname();
3603 if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3605 eval "ac_cv_lib_$ac_lib_var=yes"
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3610 eval "ac_cv_lib_$ac_lib_var=no"
3613 LIBS="$ac_save_LIBS"
3616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3617 echo "$ac_t""yes" 1>&6
3618 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3620 echo "$ac_t""no" 1>&6
3626 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3627 echo "configure:3628: checking for gethostbyname" >&5
3628 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 /* System header to define __stub macros and hopefully few prototypes,
3635 which can conflict with char gethostbyname(); below. */
3637 /* Override any gcc2 internal prototype to avoid an error. */
3638 /* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3640 char gethostbyname();
3644 /* The GNU C library defines this for functions which it implements
3645 to always fail with ENOSYS. Some functions are actually named
3646 something starting with __ and the normal name is an alias. */
3647 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3655 if { (eval echo configure:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3657 eval "ac_cv_func_gethostbyname=yes"
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3662 eval "ac_cv_func_gethostbyname=no"
3667 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3668 echo "$ac_t""yes" 1>&6
3671 echo "$ac_t""no" 1>&6
3673 echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3674 echo "configure:3675: checking for gethostbyname in -lbind" >&5
3675 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 ac_save_LIBS="$LIBS"
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 /* Override any gcc2 internal prototype to avoid an error. */
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3687 char gethostbyname();
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3695 eval "ac_cv_lib_$ac_lib_var=yes"
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3700 eval "ac_cv_lib_$ac_lib_var=no"
3703 LIBS="$ac_save_LIBS"
3706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3710 echo "$ac_t""no" 1>&6
3716 for ac_func in nanosleep
3718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3719 echo "configure:3720: checking for $ac_func" >&5
3720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3723 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 /* System header to define __stub macros and hopefully few prototypes,
3727 which can conflict with char $ac_func(); below. */
3729 /* Override any gcc2 internal prototype to avoid an error. */
3730 /* We use char because int might match the return type of a gcc2
3731 builtin and then its argument prototype would still apply. */
3736 /* The GNU C library defines this for functions which it implements
3737 to always fail with ENOSYS. Some functions are actually named
3738 something starting with __ and the normal name is an alias. */
3739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3747 if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3749 eval "ac_cv_func_$ac_func=yes"
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3754 eval "ac_cv_func_$ac_func=no"
3759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3760 echo "$ac_t""yes" 1>&6
3761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3762 cat >> confdefs.h <<EOF
3763 #define $ac_tr_func 1
3767 echo "$ac_t""no" 1>&6
3768 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3769 echo "configure:3770: checking for nanosleep in -lrt" >&5
3770 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 ac_save_LIBS="$LIBS"
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 /* Override any gcc2 internal prototype to avoid an error. */
3780 /* We use char because int might match the return type of a gcc2
3781 builtin and then its argument prototype would still apply. */
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3790 eval "ac_cv_lib_$ac_lib_var=yes"
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3795 eval "ac_cv_lib_$ac_lib_var=no"
3798 LIBS="$ac_save_LIBS"
3801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3802 echo "$ac_t""yes" 1>&6
3803 vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3805 echo "$ac_t""no" 1>&6
3806 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3807 echo "configure:3808: checking for nanosleep in -lposix4" >&5
3808 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 ac_save_LIBS="$LIBS"
3813 LIBS="-lposix4 $LIBS"
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 /* We use char because int might match the return type of a gcc2
3819 builtin and then its argument prototype would still apply. */
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 eval "ac_cv_lib_$ac_lib_var=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 eval "ac_cv_lib_$ac_lib_var=no"
3836 LIBS="$ac_save_LIBS"
3839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
3843 echo "$ac_t""no" 1>&6
3853 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3854 echo "configure:3855: checking for inet_aton" >&5
3855 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 /* System header to define __stub macros and hopefully few prototypes,
3862 which can conflict with char inet_aton(); below. */
3864 /* Override any gcc2 internal prototype to avoid an error. */
3865 /* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */
3871 /* The GNU C library defines this for functions which it implements
3872 to always fail with ENOSYS. Some functions are actually named
3873 something starting with __ and the normal name is an alias. */
3874 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 eval "ac_cv_func_inet_aton=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 eval "ac_cv_func_inet_aton=no"
3894 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3895 echo "$ac_t""yes" 1>&6
3898 echo "$ac_t""no" 1>&6
3900 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3901 echo "configure:3902: checking for inet_aton in -lresolv" >&5
3902 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 ac_save_LIBS="$LIBS"
3907 LIBS="-lresolv $LIBS"
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3911 /* Override any gcc2 internal prototype to avoid an error. */
3912 /* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3920 if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3922 eval "ac_cv_lib_$ac_lib_var=yes"
3924 echo "configure: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3927 eval "ac_cv_lib_$ac_lib_var=no"
3930 LIBS="$ac_save_LIBS"
3933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3934 echo "$ac_t""yes" 1>&6
3935 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
3937 echo "$ac_t""no" 1>&6
3943 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3944 echo "configure:3945: checking for textdomain" >&5
3945 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3951 /* System header to define __stub macros and hopefully few prototypes,
3952 which can conflict with char textdomain(); below. */
3954 /* Override any gcc2 internal prototype to avoid an error. */
3955 /* We use char because int might match the return type of a gcc2
3956 builtin and then its argument prototype would still apply. */
3961 /* The GNU C library defines this for functions which it implements
3962 to always fail with ENOSYS. Some functions are actually named
3963 something starting with __ and the normal name is an alias. */
3964 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3974 eval "ac_cv_func_textdomain=yes"
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3979 eval "ac_cv_func_textdomain=no"
3984 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3988 echo "$ac_t""no" 1>&6
3990 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3991 echo "configure:3992: checking for textdomain in -lintl" >&5
3992 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 ac_save_LIBS="$LIBS"
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4010 if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4012 eval "ac_cv_lib_$ac_lib_var=yes"
4014 echo "configure: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4017 eval "ac_cv_lib_$ac_lib_var=no"
4020 LIBS="$ac_save_LIBS"
4023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4025 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4026 plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4028 echo "$ac_t""no" 1>&6
4036 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4037 echo "configure:4037: checking for getopt_long" >&5
4038 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 cat > conftest.$ac_ext <<EOF
4042 #line 4042 "configure"
4043 #include "confdefs.h"
4044 /* System header to define __stub macros and hopefully few prototypes,
4045 which can conflict with char getopt_long(); below. */
4047 /* Override any gcc2 internal prototype to avoid an error. */
4048 /* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4054 /* The GNU C library defines this for functions which it implements
4055 to always fail with ENOSYS. Some functions are actually named
4056 something starting with __ and the normal name is an alias. */
4057 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4065 if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4067 eval "ac_cv_func_getopt_long=yes"
4069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
4072 eval "ac_cv_func_getopt_long=no"
4077 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4078 echo "$ac_t""yes" 1>&6
4079 cat >> confdefs.h <<\EOF
4080 #define HAVE_GETOPT_LONG 1
4084 echo "$ac_t""no" 1>&6
4085 # FreeBSD has a gnugetopt library for this:
4086 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4087 echo "configure:4087: checking for getopt_long in -lgnugetopt" >&5
4088 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 ac_save_LIBS="$LIBS"
4093 LIBS="-lgnugetopt $LIBS"
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4095 "configure"
4096 #include "confdefs.h"
4097 /* Override any gcc2 internal prototype to avoid an error. */
4098 /* We use char because int might match the return type of a gcc2
4099 builtin and then its argument prototype would still apply. */
4106 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4108 eval "ac_cv_lib_$ac_lib_var=yes"
4110 echo "configure: failed program was:" >&5
4111 cat conftest.$ac_ext >&5
4113 eval "ac_cv_lib_$ac_lib_var=no"
4116 LIBS="$ac_save_LIBS"
4119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4120 echo "$ac_t""yes" 1>&6
4121 cat >> confdefs.h <<\EOF
4122 #define HAVE_GETOPT_LONG 1
4124 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4126 echo "$ac_t""no" 1>&6
4133 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4134 echo "configure:4134: checking return type of signal handlers" >&5
4135 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 cat > conftest.$ac_ext <<EOF
4139 #line 4139 "configure"
4140 #include "confdefs.h"
4141 #include <sys/types.h>
4147 extern "C" void (*signal (int, void (*)(int)))(int);
4149 void (*signal ()) ();
4156 if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4158 ac_cv_type_signal=void
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4163 ac_cv_type_signal=int
4168 echo "$ac_t""$ac_cv_type_signal" 1>&6
4169 cat >> confdefs.h <<EOF
4170 #define RETSIGTYPE $ac_cv_type_signal
4174 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4175 echo "configure:4175: checking for dlopen in -ldl" >&5
4176 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4180 ac_save_LIBS="$LIBS"
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4183 "configure"
4184 #include "confdefs.h"
4185 /* Override any gcc2 internal prototype to avoid an error. */
4186 /* We use char because int might match the return type of a gcc2
4187 builtin and then its argument prototype would still apply. */
4194 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 eval "ac_cv_lib_$ac_lib_var=yes"
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4201 eval "ac_cv_lib_$ac_lib_var=no"
4204 LIBS="$ac_save_LIBS"
4207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4208 echo "$ac_t""yes" 1>&6
4209 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4211 echo "$ac_t""no" 1>&6
4214 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4215 echo "configure:4215: checking for cos in -lm" >&5
4216 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4220 ac_save_LIBS="$LIBS"
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4223 "configure"
4224 #include "confdefs.h"
4225 /* Override any gcc2 internal prototype to avoid an error. */
4226 /* We use char because int might match the return type of a gcc2
4227 builtin and then its argument prototype would still apply. */
4234 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4236 eval "ac_cv_lib_$ac_lib_var=yes"
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4241 eval "ac_cv_lib_$ac_lib_var=no"
4244 LIBS="$ac_save_LIBS"
4247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4248 echo "$ac_t""yes" 1>&6
4249 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4250 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4252 echo "$ac_t""no" 1>&6
4255 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4256 echo "configure:4256: checking for pow in -lm" >&5
4257 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 ac_save_LIBS="$LIBS"
4263 cat > conftest.$ac_ext <<EOF
4264 #line 4264 "configure"
4265 #include "confdefs.h"
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4275 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4282 eval "ac_cv_lib_$ac_lib_var=no"
4285 LIBS="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4290 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4291 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4292 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4293 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4294 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4297 echo "$ac_t""no" 1>&6
4302 if test "x${THREAD_LIB}" = xerror; then
4303 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4304 echo "configure:4304: checking for pthread_attr_init in -lpthread" >&5
4305 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 ac_save_LIBS="$LIBS"
4310 LIBS="-lpthread $LIBS"
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4312 "configure"
4313 #include "confdefs.h"
4314 /* Override any gcc2 internal prototype to avoid an error. */
4315 /* We use char because int might match the return type of a gcc2
4316 builtin and then its argument prototype would still apply. */
4317 char pthread_attr_init();
4323 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4325 eval "ac_cv_lib_$ac_lib_var=yes"
4327 echo "configure: failed program was:" >&5
4328 cat conftest.$ac_ext >&5
4330 eval "ac_cv_lib_$ac_lib_var=no"
4333 LIBS="$ac_save_LIBS"
4336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4337 echo "$ac_t""yes" 1>&6
4338 THREAD_LIB="-lpthread"
4340 echo "$ac_t""no" 1>&6
4344 if test "x${THREAD_LIB}" = xerror; then
4345 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4346 echo "configure:4346: checking for pthread_attr_init in -lpthreads" >&5
4347 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4351 ac_save_LIBS="$LIBS"
4352 LIBS="-lpthreads $LIBS"
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4354 "configure"
4355 #include "confdefs.h"
4356 /* Override any gcc2 internal prototype to avoid an error. */
4357 /* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4359 char pthread_attr_init();
4365 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4367 eval "ac_cv_lib_$ac_lib_var=yes"
4369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4372 eval "ac_cv_lib_$ac_lib_var=no"
4375 LIBS="$ac_save_LIBS"
4378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4379 echo "$ac_t""yes" 1>&6
4380 THREAD_LIB="-lpthreads"
4382 echo "$ac_t""no" 1>&6
4386 if test "x${THREAD_LIB}" = xerror; then
4387 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4388 echo "configure:4388: checking for pthread_attr_init in -lc_r" >&5
4389 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 ac_save_LIBS="$LIBS"
4395 cat > conftest.$ac_ext <<EOF
4396 #line 4396 "configure"
4397 #include "confdefs.h"
4398 /* Override any gcc2 internal prototype to avoid an error. */
4399 /* We use char because int might match the return type of a gcc2
4400 builtin and then its argument prototype would still apply. */
4401 char pthread_attr_init();
4407 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4409 eval "ac_cv_lib_$ac_lib_var=yes"
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4414 eval "ac_cv_lib_$ac_lib_var=no"
4417 LIBS="$ac_save_LIBS"
4420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4421 echo "$ac_t""yes" 1>&6
4424 echo "$ac_t""no" 1>&6
4428 if test "x${THREAD_LIB}" = xerror; then
4429 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4430 echo "configure:4430: checking for pthread_attr_init" >&5
4431 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 cat > conftest.$ac_ext <<EOF
4435 #line 4435 "configure"
4436 #include "confdefs.h"
4437 /* System header to define __stub macros and hopefully few prototypes,
4438 which can conflict with char pthread_attr_init(); below. */
4440 /* Override any gcc2 internal prototype to avoid an error. */
4441 /* We use char because int might match the return type of a gcc2
4442 builtin and then its argument prototype would still apply. */
4443 char pthread_attr_init();
4447 /* The GNU C library defines this for functions which it implements
4448 to always fail with ENOSYS. Some functions are actually named
4449 something starting with __ and the normal name is an alias. */
4450 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4453 pthread_attr_init();
4458 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4460 eval "ac_cv_func_pthread_attr_init=yes"
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4465 eval "ac_cv_func_pthread_attr_init=no"
4470 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4474 echo "$ac_t""no" 1>&6
4480 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4481 echo "configure:4481: checking for cthread_fork in -lthreads" >&5
4482 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 ac_save_LIBS="$LIBS"
4487 LIBS="-lthreads $LIBS"
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4489 "configure"
4490 #include "confdefs.h"
4491 /* Override any gcc2 internal prototype to avoid an error. */
4492 /* We use char because int might match the return type of a gcc2
4493 builtin and then its argument prototype would still apply. */
4494 char cthread_fork();
4500 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4502 eval "ac_cv_lib_$ac_lib_var=yes"
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4507 eval "ac_cv_lib_$ac_lib_var=no"
4510 LIBS="$ac_save_LIBS"
4513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 THREAD_LIB="-lthreads"
4517 echo "$ac_t""no" 1>&6
4521 cat > conftest.$ac_ext <<EOF
4522 #line 4522 "configure"
4523 #include "confdefs.h"
4524 #include <pthread.h>
4526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4527 egrep "pthread_cond_t" >/dev/null 2>&1; then
4530 cat >> confdefs.h <<\EOF
4531 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4537 cat > conftest.$ac_ext <<EOF
4538 #line 4538 "configure"
4539 #include "confdefs.h"
4540 #include <pthread.h>
4542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4543 egrep "pthread_once" >/dev/null 2>&1; then
4546 cat >> confdefs.h <<\EOF
4547 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4553 cat > conftest.$ac_ext <<EOF
4554 #line 4554 "configure"
4555 #include "confdefs.h"
4556 #include <strings.h>
4558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4559 egrep "strncasecmp" >/dev/null 2>&1; then
4562 cat >> confdefs.h <<\EOF
4563 #define STRNCASECMP_IN_STRINGS_H 1
4570 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4574 echo "configure:4574: checking for $ac_hdr" >&5
4575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4579 "configure"
4580 #include "confdefs.h"
4583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4584 { (eval echo configure:4584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4586 if test -z "$ac_err"; then
4588 eval "ac_cv_header_$ac_safe=yes"
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4594 eval "ac_cv_header_$ac_safe=no"
4598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4601 cat >> confdefs.h <<EOF
4602 #define $ac_tr_hdr 1
4606 echo "$ac_t""no" 1>&6
4610 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.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:4614: 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 4619 "configure"
4620 #include "confdefs.h"
4623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4624 { (eval echo configure:4624: \"$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 dlfcn.h image.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:4654: 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 4659 "configure"
4660 #include "confdefs.h"
4663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4664 { (eval echo configure:4664: \"$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 arpa/inet.h net/if.h netinet/in.h sys/socket.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:4694: 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 4699 "configure"
4700 #include "confdefs.h"
4703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4704 { (eval echo configure:4704: \"$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 machine/param.h sys/shm.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:4734: 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 4739 "configure"
4740 #include "confdefs.h"
4743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4744 { (eval echo configure:4744: \"$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 linux/version.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:4774: 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 4779 "configure"
4780 #include "confdefs.h"
4783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4784 { (eval echo configure:4784: \"$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
4811 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4812 echo "configure:4812: checking whether time.h and sys/time.h may both be included" >&5
4813 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4817 "configure"
4818 #include "confdefs.h"
4819 #include <sys/types.h>
4820 #include <sys/time.h>
4826 if { (eval echo configure:4826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4828 ac_cv_header_time=yes
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 ac_cv_header_time=no
4838 echo "$ac_t""$ac_cv_header_time" 1>&6
4839 if test $ac_cv_header_time = yes; then
4840 cat >> confdefs.h <<\EOF
4841 #define TIME_WITH_SYS_TIME 1
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4848 "configure"
4849 #include "confdefs.h"
4852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4853 egrep "nanosleep" >/dev/null 2>&1; then
4856 cat >> confdefs.h <<\EOF
4857 #define HAVE_DECL_NANOSLEEP 1
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4866 "configure"
4867 #include "confdefs.h"
4868 #include <sys/time.h>
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871 egrep "timespec" >/dev/null 2>&1; then
4874 cat >> confdefs.h <<\EOF
4875 #define HAVE_STRUCT_TIMESPEC 1
4883 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4887 echo "configure:4887: checking for $ac_hdr" >&5
4888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4892 "configure"
4893 #include "confdefs.h"
4896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4897 { (eval echo configure:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4899 if test -z "$ac_err"; then
4901 eval "ac_cv_header_$ac_safe=yes"
4904 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5
4907 eval "ac_cv_header_$ac_safe=no"
4911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4912 echo "$ac_t""yes" 1>&6
4913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4914 cat >> confdefs.h <<EOF
4915 #define $ac_tr_hdr 1
4919 echo "$ac_t""no" 1>&6
4924 if test x$SYS != xmingw32
4926 if test x$x_includes = xNONE; then
4927 x_includes=/usr/X11R6/include
4929 if test x$x_libraries = xNONE; then
4930 x_libraries=/usr/X11R6/lib
4932 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4933 for ac_hdr in X11/extensions/dpms.h
4935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4937 echo "configure:4937: checking for $ac_hdr" >&5
4938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4941 cat > conftest.$ac_ext <<EOF
4942 #line 4942 "configure"
4943 #include "confdefs.h"
4946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4947 { (eval echo configure:4947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4949 if test -z "$ac_err"; then
4951 eval "ac_cv_header_$ac_safe=yes"
4954 echo "configure: failed program was:" >&5
4955 cat conftest.$ac_ext >&5
4957 eval "ac_cv_header_$ac_safe=no"
4961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4962 echo "$ac_t""yes" 1>&6
4963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4964 cat >> confdefs.h <<EOF
4965 #define $ac_tr_hdr 1
4968 cat > conftest.$ac_ext <<EOF
4969 #line 4969 "configure"
4970 #include "confdefs.h"
4971 #include <X11/extensions/dpms.h>
4973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4974 egrep "DPMSInfo" >/dev/null 2>&1; then
4977 cat >> confdefs.h <<\EOF
4978 #define DPMSINFO_IN_DPMS_H 1
4987 echo "$ac_t""no" 1>&6
4991 CPPFLAGS="$save_CPPFLAGS"
4994 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4995 echo "configure:4995: checking for ntohl in sys/param.h" >&5
4996 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 CFLAGS="${save_CFLAGS} -Wall -Werror"
5000 cat > conftest.$ac_ext <<EOF
5001 #line 5001 "configure"
5002 #include "confdefs.h"
5003 #include <sys/param.h>
5005 void foo() { int meuh; ntohl(meuh); }
5008 if { (eval echo configure:5008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5010 ac_cv_c_ntohl_sys_param_h=yes
5012 echo "configure: failed program was:" >&5
5013 cat conftest.$ac_ext >&5
5015 ac_cv_c_ntohl_sys_param_h=no
5020 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5021 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5022 cat >> confdefs.h <<\EOF
5023 #define NTOHL_IN_SYS_PARAM_H 1
5028 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5029 echo "configure:5029: checking if \$CC accepts -finline-limit" >&5
5030 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5033 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5034 cat > conftest.$ac_ext <<EOF
5035 #line 5035 "configure"
5036 #include "confdefs.h"
5042 if { (eval echo configure:5042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5044 ac_cv_c_inline_limit=yes
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5049 ac_cv_c_inline_limit=no
5054 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5055 if test x"$ac_cv_c_inline_limit" != x"no"; then
5056 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5059 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5060 echo "configure:5060: checking if \$CC accepts -Wall -Winline" >&5
5061 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5064 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5065 cat > conftest.$ac_ext <<EOF
5066 #line 5066 "configure"
5067 #include "confdefs.h"
5073 if { (eval echo configure:5073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5075 ac_cv_c_Wall_Winline=yes
5077 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5080 ac_cv_c_Wall_Winline=no
5085 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5086 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5087 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"
5089 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5090 echo "configure:5090: checking if \$CC accepts -wall -winline" >&5
5091 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5094 CFLAGS="-wall -winline ${save_CFLAGS}"
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5096 "configure"
5097 #include "confdefs.h"
5103 if { (eval echo configure:5103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5105 ac_cv_c_wall_winline=yes
5107 echo "configure: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5110 ac_cv_c_wall_winline=no
5115 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5116 if test x"$ac_cv_c_wall_winline" != x"no"; then
5117 save_CFLAGS="-wall -winline ${save_CFLAGS}"
5121 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5122 echo "configure:5122: checking if \$CC accepts -pipe" >&5
5123 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5126 CFLAGS="${save_CFLAGS} -pipe"
5127 cat > conftest.$ac_ext <<EOF
5128 #line 5128 "configure"
5129 #include "confdefs.h"
5135 if { (eval echo configure:5135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5139 echo "configure: failed program was:" >&5
5140 cat conftest.$ac_ext >&5
5147 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5148 if test x"$ac_cv_c_pipe" != x"no"; then
5149 save_CFLAGS="${save_CFLAGS} -pipe"
5152 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5153 echo "configure:5153: checking if \$CC accepts -O3" >&5
5154 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5157 CFLAGS="${save_CFLAGS} -O3"
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5159 "configure"
5160 #include "confdefs.h"
5166 if { (eval echo configure:5166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5170 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5178 echo "$ac_t""$ac_cv_c_o3" 1>&6
5179 if test x"$ac_cv_c_o3" != x"no"; then
5180 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5182 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5183 echo "configure:5183: checking if \$CC accepts -O2" >&5
5184 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5187 CFLAGS="${save_CFLAGS} -O2"
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5189 "configure"
5190 #include "confdefs.h"
5196 if { (eval echo configure:5196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5208 echo "$ac_t""$ac_cv_c_o2" 1>&6
5209 if test x"$ac_cv_c_o2" != x"no"; then
5210 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5212 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5213 echo "configure:5213: checking if \$CC accepts -O" >&5
5214 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5217 CFLAGS="${save_CFLAGS} -O"
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5219 "configure"
5220 #include "confdefs.h"
5226 if { (eval echo configure:5226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5230 echo "configure: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5238 echo "$ac_t""$ac_cv_c_o" 1>&6
5239 if test x"$ac_cv_c_o" != x"no"; then
5240 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5245 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5246 echo "configure:5246: checking if \$CC accepts -ffast-math" >&5
5247 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5250 CFLAGS="${save_CFLAGS} -ffast-math"
5251 cat > conftest.$ac_ext <<EOF
5252 #line 5252 "configure"
5253 #include "confdefs.h"
5259 if { (eval echo configure:5259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5261 ac_cv_c_fast_math=yes
5263 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5266 ac_cv_c_fast_math=no
5271 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5272 if test x"$ac_cv_c_fast_math" != x"no"; then
5273 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5276 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5277 echo "configure:5277: checking if \$CC accepts -funroll-loops" >&5
5278 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5281 CFLAGS="${save_CFLAGS} -funroll-loops"
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5283 "configure"
5284 #include "confdefs.h"
5290 if { (eval echo configure:5290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5292 ac_cv_c_unroll_loops=yes
5294 echo "configure: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5297 ac_cv_c_unroll_loops=no
5302 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5303 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5304 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5307 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5308 echo "configure:5308: checking if \$CC accepts -fomit-frame-pointer" >&5
5309 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5310 echo $ac_n "(cached) $ac_c" 1>&6
5312 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5313 cat > conftest.$ac_ext <<EOF
5314 #line 5314 "configure"
5315 #include "confdefs.h"
5321 if { (eval echo configure:5321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5323 ac_cv_c_omit_frame_pointer=yes
5325 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5328 ac_cv_c_omit_frame_pointer=no
5333 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5334 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5335 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5336 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5337 chroma_i420_yuy2_mmx_CFLAGS="${chroma_i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5340 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5341 echo "configure:5341: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5342 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5346 cat > conftest.$ac_ext <<EOF
5347 #line 5347 "configure"
5348 #include "confdefs.h"
5354 if { (eval echo configure:5354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5366 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5367 if test x"$ac_cv_ld_darwin" != x"no"; then
5368 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5371 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5372 echo "configure:5372: checking if \$CC accepts -shared" >&5
5373 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5374 echo $ac_n "(cached) $ac_c" 1>&6
5376 CFLAGS="${save_CFLAGS} -shared"
5377 cat > conftest.$ac_ext <<EOF
5378 #line 5378 "configure"
5379 #include "confdefs.h"
5385 if { (eval echo configure:5385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5387 ac_cv_ld_plugins=yes
5389 echo "configure: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5397 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5398 if test x"$ac_cv_ld_plugins" != x"no"; then
5399 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5402 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5403 echo "configure:5403: checking for variadic cpp macros" >&5
5404 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5407 CFLAGS="${save_CFLAGS}"
5408 cat > conftest.$ac_ext <<EOF
5409 #line 5409 "configure"
5410 #include "confdefs.h"
5412 #define a(b,c...) printf(b,##c)
5414 a("foo");a("%s","bar");a("%s%s","baz","quux");
5417 if { (eval echo configure:5417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5419 ac_cv_cpp_variadic_macros=yes
5421 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5
5424 ac_cv_cpp_variadic_macros=no
5429 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5430 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5431 cat >> confdefs.h <<\EOF
5432 #define HAVE_VARIADIC_MACROS 1
5437 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5438 echo "configure:5438: checking __attribute__ ((aligned ())) support" >&5
5439 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5442 ac_cv_c_attribute_aligned=0
5443 CFLAGS="${save_CFLAGS} -Werror"
5444 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5445 cat > conftest.$ac_ext <<EOF
5446 #line 5446 "configure"
5447 #include "confdefs.h"
5450 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5453 if { (eval echo configure:5453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5455 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5457 echo "configure: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5464 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5465 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5466 cat >> confdefs.h <<EOF
5467 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5472 case x"${target_cpu}" in
5477 ARCH="${target_cpu}"
5481 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
5482 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"
5484 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5485 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5486 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5487 SSE_MODULES="imdctsse downmixsse"
5488 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5490 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5491 echo "configure:5491: checking if \$CC groks MMX inline assembly" >&5
5492 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6
5495 CFLAGS="${save_CFLAGS}"
5496 cat > conftest.$ac_ext <<EOF
5497 #line 5497 "configure"
5498 #include "confdefs.h"
5501 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5504 if { (eval echo configure:5504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5506 ac_cv_mmx_inline=yes
5508 echo "configure: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5516 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5517 if test x"$ac_cv_mmx_inline" != x"no"; then
5518 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5521 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5522 echo "configure:5522: checking if \$CC groks MMX EXT inline assembly" >&5
5523 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5526 CFLAGS="${save_CFLAGS}"
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5528 "configure"
5529 #include "confdefs.h"
5532 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5535 if { (eval echo configure:5535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5537 ac_cv_mmxext_inline=yes
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5542 ac_cv_mmxext_inline=no
5547 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5548 if test x"$ac_cv_mmxext_inline" != x"no"; then
5549 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5552 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5553 echo "configure:5553: checking if \$CC groks 3D Now! inline assembly" >&5
5554 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 CFLAGS="${save_CFLAGS}"
5558 cat > conftest.$ac_ext <<EOF
5559 #line 5559 "configure"
5560 #include "confdefs.h"
5563 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5566 if { (eval echo configure:5566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5568 ac_cv_3dnow_inline=yes
5570 echo "configure: failed program was:" >&5
5571 cat conftest.$ac_ext >&5
5573 ac_cv_3dnow_inline=no
5578 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5579 if test x"$ac_cv_3dnow_inline" != x"no"; then
5580 cat >> confdefs.h <<\EOF
5581 #define CAN_COMPILE_3DNOW 1
5584 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5587 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5588 echo "configure:5588: checking if \$CC groks SSE inline assembly" >&5
5589 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5590 echo $ac_n "(cached) $ac_c" 1>&6
5592 CFLAGS="${save_CFLAGS}"
5593 cat > conftest.$ac_ext <<EOF
5594 #line 5594 "configure"
5595 #include "confdefs.h"
5598 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5601 if { (eval echo configure:5601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5603 ac_cv_sse_inline=yes
5605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5613 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5614 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5615 cat >> confdefs.h <<\EOF
5616 #define CAN_COMPILE_SSE 1
5619 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5622 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5623 # we should be able to remove this test with future versions of mingw32
5624 if test x$SYS != xmingw32; then
5625 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5626 echo "configure:5626: checking if \$CC groks AltiVec inline assembly" >&5
5627 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5628 echo $ac_n "(cached) $ac_c" 1>&6
5630 CFLAGS="${save_CFLAGS}"
5631 cat > conftest.$ac_ext <<EOF
5632 #line 5632 "configure"
5633 #include "confdefs.h"
5636 asm volatile("vperm 0,1,2,3");
5639 if { (eval echo configure:5639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5641 ac_cv_altivec_inline=yes
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5646 CFLAGS="$save_CFLAGS -Wa,-m7400"
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5648 "configure"
5649 #include "confdefs.h"
5652 asm volatile("vperm 0,1,2,3");
5655 if { (eval echo configure:5655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5657 ac_cv_altivec_inline="-Wa,-m7400"
5659 echo "configure: failed program was:" >&5
5660 cat conftest.$ac_ext >&5
5662 ac_cv_altivec_inline=no
5670 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5671 if test x"$ac_cv_altivec_inline" != x"no"; then
5672 cat >> confdefs.h <<\EOF
5673 #define CAN_COMPILE_ALTIVEC 1
5676 if test x"$ac_cv_altivec_inline" != x"yes"; then
5677 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5678 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5679 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5680 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5682 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5685 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5686 echo "configure:5686: checking if \$CC groks AltiVec C extensions" >&5
5687 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5690 CFLAGS="$save_CFLAGS -faltivec"
5692 cat > conftest.$ac_ext <<EOF
5693 #line 5693 "configure"
5694 #include "confdefs.h"
5697 vec_mtvscr((vector unsigned int)(0));
5700 if { (eval echo configure:5700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5702 ac_cv_c_altivec=-faltivec
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5709 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5710 cat > conftest.$ac_ext <<EOF
5711 #line 5711 "configure"
5712 #include "confdefs.h"
5715 vec_mtvscr((vector unsigned int)(0));
5718 if { (eval echo configure:5718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5720 ac_cv_c_altivec="-fvec"
5722 echo "configure: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5734 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5735 if test x"$ac_cv_c_altivec" != x"no"; then
5736 cat >> confdefs.h <<\EOF
5737 #define CAN_COMPILE_C_ALTIVEC 1
5740 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5741 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5742 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5743 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5744 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5747 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5748 echo "configure:5748: checking if linker needs -framework vecLib" >&5
5749 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5750 echo $ac_n "(cached) $ac_c" 1>&6
5752 LDFLAGS="$vlc_LDFLAGS -framework vecLib"
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5754 "configure"
5755 #include "confdefs.h"
5761 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 ac_cv_ld_altivec=yes
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5774 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5775 if test x"$ac_cv_ld_altivec" != x"no"; then
5776 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5777 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5778 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5779 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5784 # Check whether --with- or --without- was given.
5785 if test "${with_+set}" = set; then
5790 # Check whether --with- or --without- was given.
5791 if test "${with_+set}" = set; then
5797 # Check whether --with-tuning or --without-tuning was given.
5798 if test "${with_tuning+set}" = set; then
5799 withval="$with_tuning"
5803 if test "x$with_tuning" != "x"; then
5804 TUNING="$with_tuning"
5806 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5808 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5812 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5815 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5818 # Check whether --enable-optimizations or --disable-optimizations was given.
5819 if test "${enable_optimizations+set}" = set; then
5820 enableval="$enable_optimizations"
5821 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5827 # Check whether --enable-altivec or --disable-altivec was given.
5828 if test "${enable_altivec+set}" = set; then
5829 enableval="$enable_altivec"
5830 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5831 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5833 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5834 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5839 # Check whether --enable-debug or --disable-debug was given.
5840 if test "${enable_debug+set}" = set; then
5841 enableval="$enable_debug"
5842 if test x$enable_debug = xyes; then DEBUG=1; fi
5847 # Check whether --enable-release or --disable-release was given.
5848 if test "${enable_release+set}" = set; then
5849 enableval="$enable_release"
5850 if test x$enable_release = xyes; then RELEASE=1; fi
5852 VERSION="${VERSION}_`date +%Y-%m-%d`"
5857 # Check whether --with- or --without- was given.
5858 if test "${with_+set}" = set; then
5864 # Check whether --enable-dvd or --disable-dvd was given.
5865 if test "${enable_dvd+set}" = set; then
5866 enableval="$enable_dvd"
5870 if test "x$enable_dvd" != "xno"
5872 # Check whether --with-dvdcss or --without-dvdcss was given.
5873 if test "${with_dvdcss+set}" = set; then
5874 withval="$with_dvdcss"
5878 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5879 if test "${with_dvdcss_tree+set}" = set; then
5880 withval="$with_dvdcss_tree"
5884 case "x$with_dvdcss" in
5886 if test "x$with_dvdcss_tree" = x
5888 for ac_hdr in dvdcss/dvdcss.h
5890 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5891 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5892 echo "configure:5892: checking for $ac_hdr" >&5
5893 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5897 "configure"
5898 #include "confdefs.h"
5901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5902 { (eval echo configure:5902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5904 if test -z "$ac_err"; then
5906 eval "ac_cv_header_$ac_safe=yes"
5909 echo "configure: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5912 eval "ac_cv_header_$ac_safe=no"
5916 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5917 echo "$ac_t""yes" 1>&6
5918 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5919 cat >> confdefs.h <<EOF
5920 #define $ac_tr_hdr 1
5922 PLUGINS="${PLUGINS} dvd"
5923 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5925 echo "$ac_t""no" 1>&6
5926 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
5927 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5932 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5933 echo "configure:5933: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5934 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5935 if test "x$real_dvdcss_tree" = x
5937 echo "$ac_t""no" 1>&6
5938 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5940 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5942 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5943 BUILTINS="${BUILTINS} dvd"
5944 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5945 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5947 echo "$ac_t""no" 1>&6
5948 { 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; }
5953 PLUGINS="${PLUGINS} dvd"
5954 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5955 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5958 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5959 echo "configure:5959: checking for dvdcss headers in ${with_dvdcss}" >&5
5960 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5962 echo "$ac_t""yes" 1>&6
5963 PLUGINS="${PLUGINS} dvd"
5964 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5965 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5967 echo "$ac_t""no" 1>&6
5968 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5974 # Check whether --enable-dvdread or --disable-dvdread was given.
5975 if test "${enable_dvdread+set}" = set; then
5976 enableval="$enable_dvdread"
5980 if test "x$enable_dvdread" != "xno"
5982 # Check whether --with-dvdread or --without-dvdread was given.
5983 if test "${with_dvdread+set}" = set; then
5984 withval="$with_dvdread"
5988 if test "x$with_dvdread" = x
5993 test_LDFLAGS="-L${with_dvdread}/lib"
5994 test_CFLAGS="-I${with_dvdread}/include"
5996 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5997 for ac_hdr in dvdread/dvd_reader.h
5999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6001 echo "configure:6001: checking for $ac_hdr" >&5
6002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6003 echo $ac_n "(cached) $ac_c" 1>&6
6005 cat > conftest.$ac_ext <<EOF
6006 #line 6006 "configure"
6007 #include "confdefs.h"
6010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6011 { (eval echo configure:6011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6013 if test -z "$ac_err"; then
6015 eval "ac_cv_header_$ac_safe=yes"
6018 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6021 eval "ac_cv_header_$ac_safe=no"
6025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6026 echo "$ac_t""yes" 1>&6
6027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6028 cat >> confdefs.h <<EOF
6029 #define $ac_tr_hdr 1
6032 CFLAGS="${save_CFLAGS}"
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6034 "configure"
6035 #include "confdefs.h"
6036 #include <dvdread/dvd_reader.h>
6038 void foo() { int i=DVD_VIDEO_LB_LEN; }
6041 if { (eval echo configure:6041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6044 PLUGINS="${PLUGINS} dvdread"
6045 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6046 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6049 echo "configure: failed program was:" >&5
6050 cat conftest.$ac_ext >&5
6053 if test "x$enable_dvdread" != x
6055 { 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; }
6062 echo "$ac_t""no" 1>&6
6063 if test "x$enable_dvdread" != x
6065 if test "x$with_dvdread" != x
6067 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6069 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6076 CPPFLAGS="$save_CPPFLAGS"
6079 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6080 if test "${enable_dvbpsi+set}" = set; then
6081 enableval="$enable_dvbpsi"
6085 if test "x$enable_dvbpsi" != "xno"
6087 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6088 if test "${with_dvbpsi+set}" = set; then
6089 withval="$with_dvbpsi"
6093 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6094 if test "${with_dvbpsi+set}" = set; then
6095 withval="$with_dvbpsi"
6099 case "x$with_dvbpsi" in
6101 if test "x$with_dvbpsi_tree" = x
6103 for ac_hdr in dvbpsi/dr.h
6105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6107 echo "configure:6107: checking for $ac_hdr" >&5
6108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6109 echo $ac_n "(cached) $ac_c" 1>&6
6111 cat > conftest.$ac_ext <<EOF
6112 #line 6112 "configure"
6113 #include "confdefs.h"
6116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6117 { (eval echo configure:6117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6119 if test -z "$ac_err"; then
6121 eval "ac_cv_header_$ac_safe=yes"
6124 echo "configure: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6127 eval "ac_cv_header_$ac_safe=no"
6131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6132 echo "$ac_t""yes" 1>&6
6133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6134 cat >> confdefs.h <<EOF
6135 #define $ac_tr_hdr 1
6137 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6138 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6140 echo "$ac_t""no" 1>&6
6145 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6146 echo "configure:6146: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6147 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6148 if test "x$real_dvbpsi_tree" = x
6150 echo "$ac_t""no" 1>&6
6151 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6153 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6155 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6156 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6157 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6158 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6160 echo "$ac_t""no" 1>&6
6161 { 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; }
6168 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6169 echo "configure:6169: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6170 if test "x$with_dvbpsi" = x
6175 test_LDFLAGS="-L${with_dvbpsi}/lib"
6176 test_CFLAGS="-I${with_dvbpsi}/include"
6178 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6179 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6180 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6181 echo "configure:6181: checking for dvbpsi/dr.h" >&5
6182 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6183 echo $ac_n "(cached) $ac_c" 1>&6
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6186 "configure"
6187 #include "confdefs.h"
6188 #include <dvbpsi/dr.h>
6190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6191 { (eval echo configure:6191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6193 if test -z "$ac_err"; then
6195 eval "ac_cv_header_$ac_safe=yes"
6198 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6201 eval "ac_cv_header_$ac_safe=no"
6205 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6206 echo "$ac_t""yes" 1>&6
6208 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6209 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6210 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6213 echo "$ac_t""no" 1>&6
6215 if test "x$enable_dvbpsi" != x
6217 { 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; }
6222 CPPFLAGS="$save_CPPFLAGS"
6227 # Check whether --enable-vcd or --disable-vcd was given.
6228 if test "${enable_vcd+set}" = set; then
6229 enableval="$enable_vcd"
6234 if test x$enable_vcd != xno
6236 cat > conftest.$ac_ext <<EOF
6237 #line 6237 "configure"
6238 #include "confdefs.h"
6239 #include <linux/cdrom.h>
6241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6242 egrep "cdrom_msf0" >/dev/null 2>&1; then
6245 PLUGINS="${PLUGINS} vcd"
6251 cat > conftest.$ac_ext <<EOF
6252 #line 6252 "configure"
6253 #include "confdefs.h"
6254 #include <sys/cdio.h>
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257 egrep "ioc_toc_header " >/dev/null 2>&1; then
6260 PLUGINS="${PLUGINS} vcd"
6261 cat >> confdefs.h <<\EOF
6262 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6270 if test "x${SYS}" = "xbsdi"
6272 PLUGINS="${PLUGINS} vcd"
6275 if test "x${SYS}" = "xdarwin"
6277 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6278 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6282 # Check whether --enable-satellite or --disable-satellite was given.
6283 if test "${enable_satellite+set}" = set; then
6284 enableval="$enable_satellite"
6285 if test x$enable_satellite = xyes
6287 PLUGINS="${PLUGINS} satellite"
6292 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
6294 CFLAGS="$save_CFLAGS"
6295 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6296 echo "configure:6296: checking for inet_pton" >&5
6297 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6298 echo $ac_n "(cached) $ac_c" 1>&6
6300 cat > conftest.$ac_ext <<EOF
6301 #line 6301 "configure"
6302 #include "confdefs.h"
6303 /* System header to define __stub macros and hopefully few prototypes,
6304 which can conflict with char inet_pton(); below. */
6306 /* Override any gcc2 internal prototype to avoid an error. */
6307 /* We use char because int might match the return type of a gcc2
6308 builtin and then its argument prototype would still apply. */
6313 /* The GNU C library defines this for functions which it implements
6314 to always fail with ENOSYS. Some functions are actually named
6315 something starting with __ and the normal name is an alias. */
6316 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6324 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6326 eval "ac_cv_func_inet_pton=yes"
6328 echo "configure: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6331 eval "ac_cv_func_inet_pton=no"
6336 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6337 echo "$ac_t""yes" 1>&6
6338 PLUGINS="${PLUGINS} ipv6"
6340 echo "$ac_t""no" 1>&6
6342 echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6343 echo "configure:6343: checking for inet_pton in -lresolv" >&5
6344 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6348 ac_save_LIBS="$LIBS"
6349 LIBS="-lresolv $LIBS"
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6351 "configure"
6352 #include "confdefs.h"
6353 /* Override any gcc2 internal prototype to avoid an error. */
6354 /* We use char because int might match the return type of a gcc2
6355 builtin and then its argument prototype would still apply. */
6362 if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6364 eval "ac_cv_lib_$ac_lib_var=yes"
6366 echo "configure: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6369 eval "ac_cv_lib_$ac_lib_var=no"
6372 LIBS="$ac_save_LIBS"
6375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6376 echo "$ac_t""yes" 1>&6
6377 PLUGINS="${PLUGINS} ipv6"
6378 ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6380 echo "$ac_t""no" 1>&6
6387 if test "x$SYS" = "xmingw32"
6389 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6390 echo "configure:6390: checking for getaddrinfo in ws2tcpip.h" >&5
6391 cat > conftest.$ac_ext <<EOF
6392 #line 6392 "configure"
6393 #include "confdefs.h"
6394 #include <ws2tcpip.h>
6396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6397 egrep "addrinfo" >/dev/null 2>&1; then
6399 echo "$ac_t""yes" 1>&6
6400 PLUGINS="${PLUGINS} ipv6"
6403 echo "$ac_t""no" 1>&6
6409 # Check whether --enable-avi or --disable-avi was given.
6410 if test "${enable_avi+set}" = set; then
6411 enableval="$enable_avi"
6415 if test x$enable_avi != xno
6417 PLUGINS="${PLUGINS} avi"
6421 # Check whether --with- or --without- was given.
6422 if test "${with_+set}" = set; then
6428 # Check whether --enable-mad or --disable-mad was given.
6429 if test "${enable_mad+set}" = set; then
6430 enableval="$enable_mad"
6434 if test x$enable_mad = xyes
6436 # Check whether --with-mad or --without-mad was given.
6437 if test "${with_mad+set}" = set; then
6442 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6444 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6445 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6448 # Check whether --with-mad-tree or --without-mad-tree was given.
6449 if test "${with_mad_tree+set}" = set; then
6450 withval="$with_mad_tree"
6454 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6456 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6457 if test "x$real_mad_tree" = x
6459 echo "$ac_t""no" 1>&6
6460 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6462 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6463 echo "configure:6463: checking for mad.h in ${real_mad_tree}/libmad" >&5
6464 if test -f ${real_mad_tree}/libmad/mad.h
6466 echo "$ac_t""yes" 1>&6
6467 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6468 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6469 save_LDFLAGS=$LDFLAGS
6470 LDFLAGS=$mad_LDFLAGS
6471 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6472 echo "configure:6472: checking for mad_bit_init in -lmad" >&5
6473 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6475 echo $ac_n "(cached) $ac_c" 1>&6
6477 ac_save_LIBS="$LIBS"
6479 cat > conftest.$ac_ext <<EOF
6480 #line 6480 "configure"
6481 #include "confdefs.h"
6482 /* Override any gcc2 internal prototype to avoid an error. */
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6485 char mad_bit_init();
6491 if { (eval echo configure:6491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6493 eval "ac_cv_lib_$ac_lib_var=yes"
6495 echo "configure: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6498 eval "ac_cv_lib_$ac_lib_var=no"
6501 LIBS="$ac_save_LIBS"
6504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6505 echo "$ac_t""yes" 1>&6
6507 BUILTINS="${BUILTINS} mad"
6508 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6511 echo "$ac_t""no" 1>&6
6512 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6516 LDFLAGS=$save_LDFLAGS
6518 echo "$ac_t""no" 1>&6
6519 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6522 CFLAGS="$vlc_CFLAGS $mad_CFLAGS"
6523 LDFLAGS="$vlc_LDFLAGS $mad_LDFLAGS"
6526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6528 echo "configure:6528: checking for $ac_hdr" >&5
6529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6530 echo $ac_n "(cached) $ac_c" 1>&6
6532 cat > conftest.$ac_ext <<EOF
6533 #line 6533 "configure"
6534 #include "confdefs.h"
6537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6538 { (eval echo configure:6538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6540 if test -z "$ac_err"; then
6542 eval "ac_cv_header_$ac_safe=yes"
6545 echo "configure: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6548 eval "ac_cv_header_$ac_safe=no"
6552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6553 echo "$ac_t""yes" 1>&6
6554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6555 cat >> confdefs.h <<EOF
6556 #define $ac_tr_hdr 1
6560 echo "$ac_t""no" 1>&6
6561 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6565 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6566 echo "configure:6566: checking for mad_bit_init in -lmad" >&5
6567 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6571 ac_save_LIBS="$LIBS"
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6574 "configure"
6575 #include "confdefs.h"
6576 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6579 char mad_bit_init();
6585 if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6587 eval "ac_cv_lib_$ac_lib_var=yes"
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6592 eval "ac_cv_lib_$ac_lib_var=no"
6595 LIBS="$ac_save_LIBS"
6598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6599 echo "$ac_t""yes" 1>&6
6601 PLUGINS="${PLUGINS} mad"
6602 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6604 echo "$ac_t""no" 1>&6
6605 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6611 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6612 if test "${enable_ffmpeg+set}" = set; then
6613 enableval="$enable_ffmpeg"
6617 if test "x$enable_ffmpeg" = "xyes"
6619 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6620 if test "${with_ffmpeg+set}" = set; then
6621 withval="$with_ffmpeg"
6625 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6627 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6628 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6631 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6632 if test "${with_ffmpeg_tree+set}" = set; then
6633 withval="$with_ffmpeg_tree"
6637 if test "x$with_ffmpeg_tree" != "x"
6639 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6640 echo "configure:6640: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6641 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6642 if test "x$real_ffmpeg_tree" = x
6644 echo "$ac_t""no" 1>&6
6645 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6647 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6649 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6650 BUILTINS="${BUILTINS} ffmpeg"
6651 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6652 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6654 echo "$ac_t""no" 1>&6
6655 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6659 save_LDFLAGS=$LDFLAGS
6660 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6661 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm"
6662 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6663 echo "configure:6663: checking for avcodec_init in -lavcodec" >&5
6664 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6666 echo $ac_n "(cached) $ac_c" 1>&6
6668 ac_save_LIBS="$LIBS"
6669 LIBS="-lavcodec $LIBS"
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6671 "configure"
6672 #include "confdefs.h"
6673 /* Override any gcc2 internal prototype to avoid an error. */
6674 /* We use char because int might match the return type of a gcc2
6675 builtin and then its argument prototype would still apply. */
6676 char avcodec_init();
6682 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6684 eval "ac_cv_lib_$ac_lib_var=yes"
6686 echo "configure: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6689 eval "ac_cv_lib_$ac_lib_var=no"
6692 LIBS="$ac_save_LIBS"
6695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6696 echo "$ac_t""yes" 1>&6
6698 BUILTINS="${BUILTINS} ffmpeg"
6699 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6701 echo "$ac_t""no" 1>&6
6702 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6706 LDFLAGS=$save_LDFLAGS
6711 if test x$SYS = xbeos
6713 PLUGINS="${PLUGINS} beos"
6716 # Check whether --enable-a52 or --disable-a52 was given.
6717 if test "${enable_a52+set}" = set; then
6718 enableval="$enable_a52"
6722 if test "x$enable_a52" != "xno"
6724 # Check whether --with-a52-tree or --without-a52-tree was given.
6725 if test "${with_a52_tree+set}" = set; then
6726 withval="$with_a52_tree"
6730 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6732 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6733 if test "x$real_a52_tree" = x
6735 echo "$ac_t""no" 1>&6
6736 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6738 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6739 echo "configure:6739: checking for a52.h in ${real_a52_tree}/include" >&5
6740 if test -f ${real_a52_tree}/include/a52.h
6742 echo "$ac_t""yes" 1>&6
6743 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6744 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6745 save_LDFLAGS=$LDFLAGS
6746 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6747 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6748 echo "configure:6748: checking for a52_free in -la52" >&5
6749 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6751 echo $ac_n "(cached) $ac_c" 1>&6
6753 ac_save_LIBS="$LIBS"
6754 LIBS="-la52 -lm $LIBS"
6755 cat > conftest.$ac_ext <<EOF
6756 #line 6756 "configure"
6757 #include "confdefs.h"
6758 /* Override any gcc2 internal prototype to avoid an error. */
6759 /* We use char because int might match the return type of a gcc2
6760 builtin and then its argument prototype would still apply. */
6767 if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6769 eval "ac_cv_lib_$ac_lib_var=yes"
6771 echo "configure: failed program was:" >&5
6772 cat conftest.$ac_ext >&5
6774 eval "ac_cv_lib_$ac_lib_var=no"
6777 LIBS="$ac_save_LIBS"
6780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6781 echo "$ac_t""yes" 1>&6
6783 BUILTINS="${BUILTINS} a52"
6784 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6785 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6788 echo "$ac_t""no" 1>&6
6790 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6792 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6794 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6799 LDFLAGS=$save_LDFLAGS
6801 echo "$ac_t""no" 1>&6
6802 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6804 else for ac_hdr in a52dec/a52.h
6806 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6807 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6808 echo "configure:6808: checking for $ac_hdr" >&5
6809 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6810 echo $ac_n "(cached) $ac_c" 1>&6
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6813 "configure"
6814 #include "confdefs.h"
6817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6818 { (eval echo configure:6818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6820 if test -z "$ac_err"; then
6822 eval "ac_cv_header_$ac_safe=yes"
6825 echo "configure: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6828 eval "ac_cv_header_$ac_safe=no"
6832 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6833 echo "$ac_t""yes" 1>&6
6834 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6835 cat >> confdefs.h <<EOF
6836 #define $ac_tr_hdr 1
6839 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6840 echo "configure:6840: checking for a52_free in -la52" >&5
6841 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6843 echo $ac_n "(cached) $ac_c" 1>&6
6845 ac_save_LIBS="$LIBS"
6846 LIBS="-la52 -lm $LIBS"
6847 cat > conftest.$ac_ext <<EOF
6848 #line 6848 "configure"
6849 #include "confdefs.h"
6850 /* Override any gcc2 internal prototype to avoid an error. */
6851 /* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6859 if { (eval echo configure:6859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6861 eval "ac_cv_lib_$ac_lib_var=yes"
6863 echo "configure: failed program was:" >&5
6864 cat conftest.$ac_ext >&5
6866 eval "ac_cv_lib_$ac_lib_var=no"
6869 LIBS="$ac_save_LIBS"
6872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6873 echo "$ac_t""yes" 1>&6
6875 BUILTINS="${BUILTINS} a52"
6876 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6877 a52_CFLAGS="${a52_CFLAGS}"
6880 echo "$ac_t""no" 1>&6
6885 echo "$ac_t""no" 1>&6
6892 # Check whether --enable-vorbis or --disable-vorbis was given.
6893 if test "${enable_vorbis+set}" = set; then
6894 enableval="$enable_vorbis"
6898 if test "x$enable_vorbis" != "xno"
6900 for ac_hdr in ogg/ogg.h
6902 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6904 echo "configure:6904: checking for $ac_hdr" >&5
6905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6906 echo $ac_n "(cached) $ac_c" 1>&6
6908 cat > conftest.$ac_ext <<EOF
6909 #line 6909 "configure"
6910 #include "confdefs.h"
6913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6914 { (eval echo configure:6914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6916 if test -z "$ac_err"; then
6918 eval "ac_cv_header_$ac_safe=yes"
6921 echo "configure: failed program was:" >&5
6922 cat conftest.$ac_ext >&5
6924 eval "ac_cv_header_$ac_safe=no"
6928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6929 echo "$ac_t""yes" 1>&6
6930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6931 cat >> confdefs.h <<EOF
6932 #define $ac_tr_hdr 1
6935 #PLUGINS="${PLUGINS} vorbis"
6936 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6939 echo "$ac_t""no" 1>&6
6946 # Check whether --with- or --without- was given.
6947 if test "${with_+set}" = set; then
6953 # Check whether --enable-x11 or --disable-x11 was given.
6954 if test "${enable_x11+set}" = set; then
6955 enableval="$enable_x11"
6959 if test x$enable_x11 != xno &&
6960 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6961 if test x$x_includes = xNONE; then
6962 x_includes=/usr/X11R6/include
6964 if test x$x_libraries = xNONE; then
6965 x_libraries=/usr/X11R6/lib
6967 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6968 for ac_hdr in X11/Xlib.h
6970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6972 echo "configure:6972: checking for $ac_hdr" >&5
6973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6974 echo $ac_n "(cached) $ac_c" 1>&6
6976 cat > conftest.$ac_ext <<EOF
6977 #line 6977 "configure"
6978 #include "confdefs.h"
6981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6982 { (eval echo configure:6982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6984 if test -z "$ac_err"; then
6986 eval "ac_cv_header_$ac_safe=yes"
6989 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6992 eval "ac_cv_header_$ac_safe=no"
6996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6997 echo "$ac_t""yes" 1>&6
6998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6999 cat >> confdefs.h <<EOF
7000 #define $ac_tr_hdr 1
7003 PLUGINS="${PLUGINS} x11"
7004 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
7005 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
7008 echo "$ac_t""no" 1>&6
7012 CPPFLAGS="$save_CPPFLAGS"
7015 # Check whether --enable-xvideo or --disable-xvideo was given.
7016 if test "${enable_xvideo+set}" = set; then
7017 enableval="$enable_xvideo"
7021 if test x$enable_xvideo != xno &&
7022 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
7023 if test x$x_includes = xNONE; then
7024 x_includes=/usr/X11R6/include
7026 if test x$x_libraries = xNONE; then
7027 x_libraries=/usr/X11R6/lib
7029 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
7030 for ac_hdr in X11/extensions/Xv.h
7032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7034 echo "configure:7034: checking for $ac_hdr" >&5
7035 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7036 echo $ac_n "(cached) $ac_c" 1>&6
7038 cat > conftest.$ac_ext <<EOF
7039 #line 7039 "configure"
7040 #include "confdefs.h"
7043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7044 { (eval echo configure:7044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7046 if test -z "$ac_err"; then
7048 eval "ac_cv_header_$ac_safe=yes"
7051 echo "configure: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7054 eval "ac_cv_header_$ac_safe=no"
7058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7059 echo "$ac_t""yes" 1>&6
7060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7061 cat >> confdefs.h <<EOF
7062 #define $ac_tr_hdr 1
7065 CFLAGS="$save_CFLAGS -L$x_libraries -lX11 -lXext"
7066 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7067 echo "configure:7067: checking for XvSetPortAttribute in -lXv_pic" >&5
7068 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7070 echo $ac_n "(cached) $ac_c" 1>&6
7072 ac_save_LIBS="$LIBS"
7073 LIBS="-lXv_pic $LIBS"
7074 cat > conftest.$ac_ext <<EOF
7075 #line 7075 "configure"
7076 #include "confdefs.h"
7077 /* Override any gcc2 internal prototype to avoid an error. */
7078 /* We use char because int might match the return type of a gcc2
7079 builtin and then its argument prototype would still apply. */
7080 char XvSetPortAttribute();
7083 XvSetPortAttribute()
7086 if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7088 eval "ac_cv_lib_$ac_lib_var=yes"
7090 echo "configure: failed program was:" >&5
7091 cat conftest.$ac_ext >&5
7093 eval "ac_cv_lib_$ac_lib_var=no"
7096 LIBS="$ac_save_LIBS"
7099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7100 echo "$ac_t""yes" 1>&6
7101 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7102 PLUGINS="${PLUGINS} xvideo"
7103 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
7104 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7106 echo "$ac_t""no" 1>&6
7107 # We don't have Xv_pic, let's make xvideo.a as builtin
7108 BUILTINS="${BUILTINS} xvideo"
7109 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
7110 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7114 CPPFLAGS="$save_CPPFLAGS"
7116 echo "$ac_t""no" 1>&6
7122 # Check whether --enable-sdl or --disable-sdl was given.
7123 if test "${enable_sdl+set}" = set; then
7124 enableval="$enable_sdl"
7128 if test "x$enable_sdl" != "xno"
7131 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7132 if test "${with_sdl_config_path+set}" = set; then
7133 withval="$with_sdl_config_path"
7134 if test "x$with_sdl_config_path" != "xno"
7136 SDL_PATH="$with_sdl_config_path:$PATH"
7140 # Extract the first word of "sdl12-config", so it can be a program name with args.
7141 set dummy sdl12-config; ac_word=$2
7142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7143 echo "configure:7143: checking for $ac_word" >&5
7144 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7147 case "$SDL12_CONFIG" in
7149 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7152 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7156 ac_dummy="$SDL_PATH"
7157 for ac_dir in $ac_dummy; do
7158 test -z "$ac_dir" && ac_dir=.
7159 if test -f $ac_dir/$ac_word; then
7160 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7165 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7169 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7170 if test -n "$SDL12_CONFIG"; then
7171 echo "$ac_t""$SDL12_CONFIG" 1>&6
7173 echo "$ac_t""no" 1>&6
7176 SDL_CONFIG=${SDL12_CONFIG}
7177 SDL_HEADER="SDL12/SDL.h"
7178 if test x${SDL_CONFIG} = xno
7180 # Extract the first word of "sdl11-config", so it can be a program name with args.
7181 set dummy sdl11-config; ac_word=$2
7182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7183 echo "configure:7183: checking for $ac_word" >&5
7184 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7185 echo $ac_n "(cached) $ac_c" 1>&6
7187 case "$SDL11_CONFIG" in
7189 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7192 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7196 ac_dummy="$SDL_PATH"
7197 for ac_dir in $ac_dummy; do
7198 test -z "$ac_dir" && ac_dir=.
7199 if test -f $ac_dir/$ac_word; then
7200 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7205 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7209 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7210 if test -n "$SDL11_CONFIG"; then
7211 echo "$ac_t""$SDL11_CONFIG" 1>&6
7213 echo "$ac_t""no" 1>&6
7216 SDL_CONFIG=${SDL11_CONFIG}
7217 SDL_HEADER="SDL11/SDL.h"
7219 if test x${SDL_CONFIG} = xno
7221 # Extract the first word of "sdl-config", so it can be a program name with args.
7222 set dummy sdl-config; ac_word=$2
7223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7224 echo "configure:7224: checking for $ac_word" >&5
7225 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7228 case "$SDL_CONFIG" in
7230 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7233 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7237 ac_dummy="$SDL_PATH"
7238 for ac_dir in $ac_dummy; do
7239 test -z "$ac_dir" && ac_dir=.
7240 if test -f $ac_dir/$ac_word; then
7241 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7246 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7250 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7251 if test -n "$SDL_CONFIG"; then
7252 echo "$ac_t""$SDL_CONFIG" 1>&6
7254 echo "$ac_t""no" 1>&6
7257 SDL_HEADER="SDL/SDL.h"
7259 if test x${SDL_CONFIG} != xno
7261 PLUGINS="${PLUGINS} sdl"
7262 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7263 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7264 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7265 for ac_hdr in ${SDL_HEADER}
7267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7269 echo "configure:7269: checking for $ac_hdr" >&5
7270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7273 cat > conftest.$ac_ext <<EOF
7274 #line 7274 "configure"
7275 #include "confdefs.h"
7278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7279 { (eval echo configure:7279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7281 if test -z "$ac_err"; then
7283 eval "ac_cv_header_$ac_safe=yes"
7286 echo "configure: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7289 eval "ac_cv_header_$ac_safe=no"
7293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7294 echo "$ac_t""yes" 1>&6
7295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7296 cat >> confdefs.h <<EOF
7297 #define $ac_tr_hdr 1
7299 cat >> confdefs.h <<EOF
7300 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7304 echo "$ac_t""no" 1>&6
7305 { echo "configure: error: The development package for SDL is not installed.
7306 Please install it and try again. Alternatively you can also configure with
7307 --disable-sdl." 1>&2; exit 1; }
7312 CPPFLAGS="$save_CPPFLAGS"
7313 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7315 { echo "configure: error: The development package for SDL is not installed.
7316 Please install it and try again. Alternatively you can also configure with
7317 --disable-sdl." 1>&2; exit 1; }
7319 elif test "x$enable_sdl" = "xyes"
7321 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7322 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7327 # Check whether --enable-directx or --disable-directx was given.
7328 if test "${enable_directx+set}" = set; then
7329 enableval="$enable_directx"
7333 if test "x$enable_directx" != "xno"
7335 if test x$SYS = xmingw32
7337 # Check whether --with-directx or --without-directx was given.
7338 if test "${with_directx+set}" = set; then
7339 withval="$with_directx"
7343 if test "x$with_directx" = "x"
7345 for ac_hdr in ddraw.h
7347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7349 echo "configure:7349: checking for $ac_hdr" >&5
7350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7351 echo $ac_n "(cached) $ac_c" 1>&6
7353 cat > conftest.$ac_ext <<EOF
7354 #line 7354 "configure"
7355 #include "confdefs.h"
7358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7359 { (eval echo configure:7359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7361 if test -z "$ac_err"; then
7363 eval "ac_cv_header_$ac_safe=yes"
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 eval "ac_cv_header_$ac_safe=no"
7373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7374 echo "$ac_t""yes" 1>&6
7375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7376 cat >> confdefs.h <<EOF
7377 #define $ac_tr_hdr 1
7379 PLUGINS="${PLUGINS} directx"
7380 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7382 echo "$ac_t""no" 1>&6
7387 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7388 echo "configure:7388: checking for directX headers in ${with_directx}" >&5
7389 if test -f ${with_directx}/ddraw.h
7391 PLUGINS="${PLUGINS} directx"
7392 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7393 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7394 echo "$ac_t""yes" 1>&6
7396 echo "$ac_t""no" 1>&6
7397 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7403 # Check whether --enable-fb or --disable-fb was given.
7404 if test "${enable_fb+set}" = set; then
7405 enableval="$enable_fb"
7409 if test x$enable_fb != xno
7411 for ac_hdr in linux/fb.h
7413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7415 echo "configure:7415: checking for $ac_hdr" >&5
7416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7419 cat > conftest.$ac_ext <<EOF
7420 #line 7420 "configure"
7421 #include "confdefs.h"
7424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7425 { (eval echo configure:7425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7427 if test -z "$ac_err"; then
7429 eval "ac_cv_header_$ac_safe=yes"
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7435 eval "ac_cv_header_$ac_safe=no"
7439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7440 echo "$ac_t""yes" 1>&6
7441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7442 cat >> confdefs.h <<EOF
7443 #define $ac_tr_hdr 1
7446 PLUGINS="${PLUGINS} fb"
7449 echo "$ac_t""no" 1>&6
7455 # Check whether --enable-mga or --disable-mga was given.
7456 if test "${enable_mga+set}" = set; then
7457 enableval="$enable_mga"
7458 if test x$enable_mga = xyes
7460 PLUGINS="${PLUGINS} mga xmga"
7465 # Check whether --enable-ggi or --disable-ggi was given.
7466 if test "${enable_ggi+set}" = set; then
7467 enableval="$enable_ggi"
7471 if test x$enable_ggi = xyes
7473 PLUGINS="${PLUGINS} ggi"
7474 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7475 # Check whether --with-ggi or --without-ggi was given.
7476 if test "${with_ggi+set}" = set; then
7478 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7480 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7481 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7487 # Check whether --enable-glide or --disable-glide was given.
7488 if test "${enable_glide+set}" = set; then
7489 enableval="$enable_glide"
7493 if test x$enable_glide = xyes
7495 PLUGINS="${PLUGINS} glide"
7496 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7497 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7498 # Check whether --with-glide or --without-glide was given.
7499 if test "${with_glide+set}" = set; then
7500 withval="$with_glide"
7501 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7503 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7504 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7510 # Check whether --enable-aa or --disable-aa was given.
7511 if test "${enable_aa+set}" = set; then
7512 enableval="$enable_aa"
7516 if test x$enable_aa = xyes
7518 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7519 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7520 echo "configure:7520: checking for aalib.h" >&5
7521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7522 echo $ac_n "(cached) $ac_c" 1>&6
7524 cat > conftest.$ac_ext <<EOF
7525 #line 7525 "configure"
7526 #include "confdefs.h"
7529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7530 { (eval echo configure:7530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7532 if test -z "$ac_err"; then
7534 eval "ac_cv_header_$ac_safe=yes"
7537 echo "configure: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7540 eval "ac_cv_header_$ac_safe=no"
7544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7545 echo "$ac_t""yes" 1>&6
7548 echo "$ac_t""no" 1>&6
7552 if test x$have_aa = xtrue
7554 PLUGINS="${PLUGINS} aa"
7555 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7560 # Check whether --with- or --without- was given.
7561 if test "${with_+set}" = set; then
7567 # Check whether --enable-dsp or --disable-dsp was given.
7568 if test "${enable_dsp+set}" = set; then
7569 enableval="$enable_dsp"
7574 if test x$enable_dsp != xno &&
7575 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7577 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7581 echo "configure:7581: checking for $ac_hdr" >&5
7582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7583 echo $ac_n "(cached) $ac_c" 1>&6
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7586 "configure"
7587 #include "confdefs.h"
7590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7591 { (eval echo configure:7591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7593 if test -z "$ac_err"; then
7595 eval "ac_cv_header_$ac_safe=yes"
7598 echo "configure: failed program was:" >&5
7599 cat conftest.$ac_ext >&5
7601 eval "ac_cv_header_$ac_safe=no"
7605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7606 echo "$ac_t""yes" 1>&6
7607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7608 cat >> confdefs.h <<EOF
7609 #define $ac_tr_hdr 1
7612 PLUGINS="${PLUGINS} dsp"
7613 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7614 echo "configure:7614: checking for main in -lossaudio" >&5
7615 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 ac_save_LIBS="$LIBS"
7620 LIBS="-lossaudio $LIBS"
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7622 "configure"
7623 #include "confdefs.h"
7629 if { (eval echo configure:7629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7631 eval "ac_cv_lib_$ac_lib_var=yes"
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7636 eval "ac_cv_lib_$ac_lib_var=no"
7639 LIBS="$ac_save_LIBS"
7642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7643 echo "$ac_t""yes" 1>&6
7644 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7646 echo "$ac_t""no" 1>&6
7651 echo "$ac_t""no" 1>&6
7657 # Check whether --enable-esd or --disable-esd was given.
7658 if test "${enable_esd+set}" = set; then
7659 enableval="$enable_esd"
7660 if test x$enable_esd = xyes
7662 # Extract the first word of "esd-config", so it can be a program name with args.
7663 set dummy esd-config; ac_word=$2
7664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7665 echo "configure:7665: checking for $ac_word" >&5
7666 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7667 echo $ac_n "(cached) $ac_c" 1>&6
7669 case "$ESD_CONFIG" in
7671 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7674 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7679 for ac_dir in $ac_dummy; do
7680 test -z "$ac_dir" && ac_dir=.
7681 if test -f $ac_dir/$ac_word; then
7682 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7687 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7691 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7692 if test -n "$ESD_CONFIG"; then
7693 echo "$ac_t""$ESD_CONFIG" 1>&6
7695 echo "$ac_t""no" 1>&6
7698 if test x${ESD_CONFIG} != xno
7700 PLUGINS="${PLUGINS} esd"
7701 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7702 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7708 # Check whether --enable-arts or --disable-arts was given.
7709 if test "${enable_arts+set}" = set; then
7710 enableval="$enable_arts"
7711 if test x$enable_arts = xyes
7713 # Extract the first word of "artsc-config", so it can be a program name with args.
7714 set dummy artsc-config; ac_word=$2
7715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7716 echo "configure:7716: checking for $ac_word" >&5
7717 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7718 echo $ac_n "(cached) $ac_c" 1>&6
7720 case "$ARTS_CONFIG" in
7722 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7725 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7730 for ac_dir in $ac_dummy; do
7731 test -z "$ac_dir" && ac_dir=.
7732 if test -f $ac_dir/$ac_word; then
7733 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7738 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7742 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7743 if test -n "$ARTS_CONFIG"; then
7744 echo "$ac_t""$ARTS_CONFIG" 1>&6
7746 echo "$ac_t""no" 1>&6
7749 if test x${ARTS_CONFIG} != xno
7751 PLUGINS="${PLUGINS} arts"
7752 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7753 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7759 # Check whether --enable-alsa or --disable-alsa was given.
7760 if test "${enable_alsa+set}" = set; then
7761 enableval="$enable_alsa"
7762 if test x$enable_alsa = xyes
7764 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7765 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7766 echo "configure:7766: checking for alsa/asoundlib.h" >&5
7767 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7768 echo $ac_n "(cached) $ac_c" 1>&6
7770 cat > conftest.$ac_ext <<EOF
7771 #line 7771 "configure"
7772 #include "confdefs.h"
7773 #include <alsa/asoundlib.h>
7775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7776 { (eval echo configure:7776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7778 if test -z "$ac_err"; then
7780 eval "ac_cv_header_$ac_safe=yes"
7783 echo "configure: failed program was:" >&5
7784 cat conftest.$ac_ext >&5
7786 eval "ac_cv_header_$ac_safe=no"
7790 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7791 echo "$ac_t""yes" 1>&6
7792 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7793 echo "configure:7793: checking for main in -lasound" >&5
7794 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7798 ac_save_LIBS="$LIBS"
7799 LIBS="-lasound $LIBS"
7800 cat > conftest.$ac_ext <<EOF
7801 #line 7801 "configure"
7802 #include "confdefs.h"
7808 if { (eval echo configure:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7810 eval "ac_cv_lib_$ac_lib_var=yes"
7812 echo "configure: failed program was:" >&5
7813 cat conftest.$ac_ext >&5
7815 eval "ac_cv_lib_$ac_lib_var=no"
7818 LIBS="$ac_save_LIBS"
7821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7822 echo "$ac_t""yes" 1>&6
7825 echo "$ac_t""no" 1>&6
7830 echo "$ac_t""no" 1>&6
7834 if test x$have_alsa = xtrue
7836 PLUGINS="${PLUGINS} alsa"
7837 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7843 # Check whether --enable-waveout or --disable-waveout was given.
7844 if test "${enable_waveout+set}" = set; then
7845 enableval="$enable_waveout"
7849 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7851 PLUGINS="${PLUGINS} waveout"
7852 waveout_LDFLAGS="-lwinmm"
7856 # Check whether --with- or --without- was given.
7857 if test "${with_+set}" = set; then
7863 # Check whether --enable-gtk or --disable-gtk was given.
7864 if test "${enable_gtk+set}" = set; then
7865 enableval="$enable_gtk"
7869 if test x$enable_gtk != xno
7872 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7873 if test "${with_gtk_config_path+set}" = set; then
7874 withval="$with_gtk_config_path"
7875 if test "x$with_gtk_config_path" != "xno"
7877 GTK_PATH="$with_gtk_config_path:$PATH"
7881 # look for gtk-config
7882 # Extract the first word of "gtk12-config", so it can be a program name with args.
7883 set dummy gtk12-config; ac_word=$2
7884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7885 echo "configure:7885: checking for $ac_word" >&5
7886 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7889 case "$GTK12_CONFIG" in
7891 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7894 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7898 ac_dummy="$GTK_PATH"
7899 for ac_dir in $ac_dummy; do
7900 test -z "$ac_dir" && ac_dir=.
7901 if test -f $ac_dir/$ac_word; then
7902 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7907 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7911 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7912 if test -n "$GTK12_CONFIG"; then
7913 echo "$ac_t""$GTK12_CONFIG" 1>&6
7915 echo "$ac_t""no" 1>&6
7918 GTK_CONFIG=${GTK12_CONFIG}
7919 if test x${GTK_CONFIG} = xno
7921 # Extract the first word of "gtk-config", so it can be a program name with args.
7922 set dummy gtk-config; ac_word=$2
7923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7924 echo "configure:7924: checking for $ac_word" >&5
7925 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 case "$GTK_CONFIG" in
7930 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7933 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7937 ac_dummy="$GTK_PATH"
7938 for ac_dir in $ac_dummy; do
7939 test -z "$ac_dir" && ac_dir=.
7940 if test -f $ac_dir/$ac_word; then
7941 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7946 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7950 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7951 if test -n "$GTK_CONFIG"; then
7952 echo "$ac_t""$GTK_CONFIG" 1>&6
7954 echo "$ac_t""no" 1>&6
7958 if test x${GTK_CONFIG} != xno
7960 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7962 { 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; }
7964 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7965 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7966 # now look for the gtk.h header
7967 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7968 ac_cv_gtk_headers=yes
7969 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7973 echo "configure:7973: checking for $ac_hdr" >&5
7974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7977 cat > conftest.$ac_ext <<EOF
7978 #line 7978 "configure"
7979 #include "confdefs.h"
7982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7983 { (eval echo configure:7983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7985 if test -z "$ac_err"; then
7987 eval "ac_cv_header_$ac_safe=yes"
7990 echo "configure: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7993 eval "ac_cv_header_$ac_safe=no"
7997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7998 echo "$ac_t""yes" 1>&6
7999 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8000 cat >> confdefs.h <<EOF
8001 #define $ac_tr_hdr 1
8005 echo "$ac_t""no" 1>&6
8006 ac_cv_gtk_headers=no
8007 echo "Cannot find gtk development headers."
8012 if test "x$ac_cv_gtk_headers" = xyes
8014 PLUGINS="${PLUGINS} gtk"
8015 ALIASES="${ALIASES} gvlc"
8017 CPPFLAGS="$save_CPPFLAGS"
8021 # Check whether --enable-gnome or --disable-gnome was given.
8022 if test "${enable_gnome+set}" = set; then
8023 enableval="$enable_gnome"
8024 if test x$enable_gnome = xyes; then
8025 # look for gnome-config
8026 # Extract the first word of "gnome-config", so it can be a program name with args.
8027 set dummy gnome-config; ac_word=$2
8028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8029 echo "configure:8029: checking for $ac_word" >&5
8030 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8033 case "$GNOME_CONFIG" in
8035 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8038 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8043 for ac_dir in $ac_dummy; do
8044 test -z "$ac_dir" && ac_dir=.
8045 if test -f $ac_dir/$ac_word; then
8046 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8051 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8055 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8056 if test -n "$GNOME_CONFIG"; then
8057 echo "$ac_t""$GNOME_CONFIG" 1>&6
8059 echo "$ac_t""no" 1>&6
8062 if test -x ${GNOME_CONFIG}
8064 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8065 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8067 # now look for the gnome.h header
8068 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
8069 for ac_hdr in gnome.h
8071 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8072 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8073 echo "configure:8073: checking for $ac_hdr" >&5
8074 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6
8077 cat > conftest.$ac_ext <<EOF
8078 #line 8078 "configure"
8079 #include "confdefs.h"
8082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8083 { (eval echo configure:8083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8085 if test -z "$ac_err"; then
8087 eval "ac_cv_header_$ac_safe=yes"
8090 echo "configure: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8093 eval "ac_cv_header_$ac_safe=no"
8097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8098 echo "$ac_t""yes" 1>&6
8099 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8100 cat >> confdefs.h <<EOF
8101 #define $ac_tr_hdr 1
8104 PLUGINS="${PLUGINS} gnome"
8105 ALIASES="${ALIASES} gnome-vlc"
8108 echo "$ac_t""no" 1>&6
8109 { echo "configure: error: Can't find gnome headers. Please install the gnome
8110 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8115 CPPFLAGS="$save_CPPFLAGS"
8120 # Check whether --enable-qt or --disable-qt was given.
8121 if test "${enable_qt+set}" = set; then
8122 enableval="$enable_qt"
8123 if test x$enable_qt = xyes; then
8124 PLUGINS="${PLUGINS} qt"
8125 ALIASES="${ALIASES} qvlc"
8126 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8127 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8128 if test -x ${QTDIR}/bin/moc
8130 MOC=${QTDIR}/bin/moc
8138 # Check whether --enable-kde or --disable-kde was given.
8139 if test "${enable_kde+set}" = set; then
8140 enableval="$enable_kde"
8141 if test x$enable_kde = xyes; then
8142 PLUGINS="${PLUGINS} kde"
8143 ALIASES="${ALIASES} kvlc"
8144 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8145 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8146 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8147 if test -x ${QTDIR}/bin/moc
8149 MOC=${QTDIR}/bin/moc
8157 # Check whether --enable-macosx or --disable-macosx was given.
8158 if test "${enable_macosx+set}" = set; then
8159 enableval="$enable_macosx"
8160 if test x$enable_macosx = xyes
8162 BUILTINS="${BUILTINS} macosx"
8163 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8166 for ac_hdr in Cocoa/Cocoa.h
8168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8170 echo "configure:8170: checking for $ac_hdr" >&5
8171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8174 cat > conftest.$ac_ext <<EOF
8175 #line 8175 "configure"
8176 #include "confdefs.h"
8179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8180 { (eval echo configure:8180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8182 if test -z "$ac_err"; then
8184 eval "ac_cv_header_$ac_safe=yes"
8187 echo "configure: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8190 eval "ac_cv_header_$ac_safe=no"
8194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8195 echo "$ac_t""yes" 1>&6
8196 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8197 cat >> confdefs.h <<EOF
8198 #define $ac_tr_hdr 1
8200 BUILTINS="${BUILTINS} macosx"
8201 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8204 echo "$ac_t""no" 1>&6
8211 # Check whether --enable-qnx or --disable-qnx was given.
8212 if test "${enable_qnx+set}" = set; then
8213 enableval="$enable_qnx"
8217 if test x$enable_qnx != xno
8221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8223 echo "configure:8223: checking for $ac_hdr" >&5
8224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8225 echo $ac_n "(cached) $ac_c" 1>&6
8227 cat > conftest.$ac_ext <<EOF
8228 #line 8228 "configure"
8229 #include "confdefs.h"
8232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8233 { (eval echo configure:8233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8235 if test -z "$ac_err"; then
8237 eval "ac_cv_header_$ac_safe=yes"
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8243 eval "ac_cv_header_$ac_safe=no"
8247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8248 echo "$ac_t""yes" 1>&6
8249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8250 cat >> confdefs.h <<EOF
8251 #define $ac_tr_hdr 1
8254 PLUGINS="${PLUGINS} qnx"
8255 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8258 echo "$ac_t""no" 1>&6
8264 # Check whether --enable-intfwin or --disable-intfwin was given.
8265 if test "${enable_intfwin+set}" = set; then
8266 enableval="$enable_intfwin"
8267 if test "x$enable_intfwin" != "xno"
8269 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8270 if test "${with_bcbuilder+set}" = set; then
8271 withval="$with_bcbuilder"
8275 if test "x$with_bcbuilder" != "x"
8277 BCBUILDER="$with_bcbuilder"
8279 PLUGINS="${PLUGINS} intfwin"
8284 # Check whether --enable-ncurses or --disable-ncurses was given.
8285 if test "${enable_ncurses+set}" = set; then
8286 enableval="$enable_ncurses"
8287 if test x$enable_ncurses = xyes; then
8288 PLUGINS="${PLUGINS} ncurses"
8289 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8294 # Check whether --enable-xosd or --disable-xosd was given.
8295 if test "${enable_xosd+set}" = set; then
8296 enableval="$enable_xosd"
8300 if test x$enable_xosd = xyes
8302 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8303 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8304 echo "configure:8304: checking for xosd.h" >&5
8305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8306 echo $ac_n "(cached) $ac_c" 1>&6
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8309 "configure"
8310 #include "confdefs.h"
8313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8314 { (eval echo configure:8314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8316 if test -z "$ac_err"; then
8318 eval "ac_cv_header_$ac_safe=yes"
8321 echo "configure: failed program was:" >&5
8322 cat conftest.$ac_ext >&5
8324 eval "ac_cv_header_$ac_safe=no"
8328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8329 echo "$ac_t""yes" 1>&6
8332 echo "$ac_t""no" 1>&6
8336 if test x$have_xosd = xtrue
8338 PLUGINS="${PLUGINS} xosd"
8339 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8343 # Check whether --enable-lirc or --disable-lirc was given.
8344 if test "${enable_lirc+set}" = set; then
8345 enableval="$enable_lirc"
8349 if test x$enable_lirc = xyes
8351 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8352 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8353 echo "configure:8353: checking for lirc/lirc_client.h" >&5
8354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8358 "configure"
8359 #include "confdefs.h"
8360 #include <lirc/lirc_client.h>
8362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8363 { (eval echo configure:8363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8365 if test -z "$ac_err"; then
8367 eval "ac_cv_header_$ac_safe=yes"
8370 echo "configure: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8373 eval "ac_cv_header_$ac_safe=no"
8377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8378 echo "$ac_t""yes" 1>&6
8379 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8380 echo "configure:8380: checking for lirc_init in -llirc_client" >&5
8381 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8383 echo $ac_n "(cached) $ac_c" 1>&6
8385 ac_save_LIBS="$LIBS"
8386 LIBS="-llirc_client $LIBS"
8387 cat > conftest.$ac_ext <<EOF
8388 #line 8388 "configure"
8389 #include "confdefs.h"
8390 /* Override any gcc2 internal prototype to avoid an error. */
8391 /* We use char because int might match the return type of a gcc2
8392 builtin and then its argument prototype would still apply. */
8399 if { (eval echo configure:8399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8401 eval "ac_cv_lib_$ac_lib_var=yes"
8403 echo "configure: failed program was:" >&5
8404 cat conftest.$ac_ext >&5
8406 eval "ac_cv_lib_$ac_lib_var=no"
8409 LIBS="$ac_save_LIBS"
8412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8413 echo "$ac_t""yes" 1>&6
8416 echo "$ac_t""no" 1>&6
8421 echo "$ac_t""no" 1>&6
8425 if test x$have_lirc = xtrue
8427 PLUGINS="${PLUGINS} lirc"
8428 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8432 # Check whether --with- or --without- was given.
8433 if test "${with_+set}" = set; then
8439 # Check whether --with-words or --without-words was given.
8440 if test "${with_words+set}" = set; then
8441 withval="$with_words"
8445 case "x$with_words" in
8447 ac_cv_c_bigendian=yes
8450 ac_cv_c_bigendian=no
8453 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8454 echo "configure:8454: checking whether the byte order is big-endian" >&5
8455 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6
8458 ac_cv_c_bigendian=unknown
8459 cat >conftest.c <<EOF
8460 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8461 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8462 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8463 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8464 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8465 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8466 int main(void) { _a(); _e(); return 0; }
8469 if test -f conftest.c
8471 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8472 && test -f conftest.o
8474 if test "`strings conftest.o | grep BIGenDianSyS`"
8476 ac_cv_c_bigendian=yes
8478 if test "`strings conftest.o | grep LiTTleEnDian`"
8480 ac_cv_c_bigendian=no
8487 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8488 if test x$ac_cv_c_bigendian = xunknown
8490 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8494 if test $ac_cv_c_bigendian = yes
8496 cat >> confdefs.h <<\EOF
8497 #define WORDS_BIGENDIAN 1
8505 # Check whether --enable-gprof or --disable-gprof was given.
8506 if test "${enable_gprof+set}" = set; then
8507 enableval="$enable_gprof"
8508 if test "x$enable_gprof" = "xyes"
8518 # Check whether --enable-cprof or --disable-cprof was given.
8519 if test "${enable_cprof+set}" = set; then
8520 enableval="$enable_cprof"
8521 if test "x$enable_cprof" = "xyes"
8523 LDFLAGS="${LDFLAGS} -lcprof"
8531 # Check whether --enable-pth or --disable-pth was given.
8532 if test "${enable_pth+set}" = set; then
8533 enableval="$enable_pth"
8534 if test "x$enable_pth" = "xyes"; then
8535 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8536 echo "configure:8536: checking for pth_init in -lpth" >&5
8537 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8538 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8539 echo $ac_n "(cached) $ac_c" 1>&6
8541 ac_save_LIBS="$LIBS"
8543 cat > conftest.$ac_ext <<EOF
8544 #line 8544 "configure"
8545 #include "confdefs.h"
8546 /* Override any gcc2 internal prototype to avoid an error. */
8547 /* We use char because int might match the return type of a gcc2
8548 builtin and then its argument prototype would still apply. */
8555 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8557 eval "ac_cv_lib_$ac_lib_var=yes"
8559 echo "configure: failed program was:" >&5
8560 cat conftest.$ac_ext >&5
8562 eval "ac_cv_lib_$ac_lib_var=no"
8565 LIBS="$ac_save_LIBS"
8568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8569 echo "$ac_t""yes" 1>&6
8570 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8571 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8572 cat >> confdefs.h <<EOF
8573 #define $ac_tr_lib 1
8579 echo "$ac_t""no" 1>&6
8582 cat > conftest.$ac_ext <<EOF
8583 #line 8583 "configure"
8584 #include "confdefs.h"
8587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8588 egrep "pth_init" >/dev/null 2>&1; then
8591 cat >> confdefs.h <<\EOF
8592 #define PTH_INIT_IN_PTH_H 1
8604 # Check whether --enable-st or --disable-st was given.
8605 if test "${enable_st+set}" = set; then
8606 enableval="$enable_st"
8607 if test "x$enable_st" = "xyes"; then
8608 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8609 echo "configure:8609: checking for st_init in -lst" >&5
8610 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8612 echo $ac_n "(cached) $ac_c" 1>&6
8614 ac_save_LIBS="$LIBS"
8616 cat > conftest.$ac_ext <<EOF
8617 #line 8617 "configure"
8618 #include "confdefs.h"
8619 /* Override any gcc2 internal prototype to avoid an error. */
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8628 if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8630 eval "ac_cv_lib_$ac_lib_var=yes"
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8635 eval "ac_cv_lib_$ac_lib_var=no"
8638 LIBS="$ac_save_LIBS"
8641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8642 echo "$ac_t""yes" 1>&6
8643 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8644 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8645 cat >> confdefs.h <<EOF
8646 #define $ac_tr_lib 1
8652 echo "$ac_t""no" 1>&6
8655 cat > conftest.$ac_ext <<EOF
8656 #line 8656 "configure"
8657 #include "confdefs.h"
8660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8661 egrep "st_init" >/dev/null 2>&1; then
8664 cat >> confdefs.h <<\EOF
8665 #define ST_INIT_IN_ST_H 1
8677 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
8678 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
8680 # Check whether --enable-plugins or --disable-plugins was given.
8681 if test "${enable_plugins+set}" = set; then
8682 enableval="$enable_plugins"
8683 if test x$enable_plugins = xno
8685 BUILTINS="${BUILTINS} ${PLUGINS}"
8691 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8693 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8695 BUILTINS="${BUILTINS} ${PLUGINS}"
8699 cat >> confdefs.h <<EOF
8700 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8703 cat >> confdefs.h <<EOF
8704 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8707 cat >> confdefs.h <<EOF
8708 #define CONFIGURE_LINE "$CONFIGURE_LINE"
8712 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8713 cat >> confdefs.h <<EOF
8714 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8717 cat >> confdefs.h <<EOF
8718 #define MODULE_SYMBOL $VLC_SYMBOL
8722 DATA_PATH="${ac_tool_prefix}/share/videolan"
8724 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8727 CPPFLAGS="${save_CPPFLAGS}"
8728 CFLAGS="${save_CFLAGS}"
8729 LDFLAGS="${save_LDFLAGS}"
8829 cat > confcache <<\EOF
8830 # This file is a shell script that caches the results of configure
8831 # tests run on this system so they can be shared between configure
8832 # scripts and configure runs. It is not useful on other systems.
8833 # If it contains results you don't want to keep, you may remove or edit it.
8835 # By default, configure uses ./config.cache as the cache file,
8836 # creating it if it does not exist already. You can give configure
8837 # the --cache-file=FILE option to use a different cache file; that is
8838 # what configure does when it calls configure scripts in
8839 # subdirectories, so they share the cache.
8840 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8841 # config.status only pays attention to the cache file if you give it the
8842 # --recheck option to rerun configure.
8845 # The following way of writing the cache mishandles newlines in values,
8846 # but we know of no workaround that is simple, portable, and efficient.
8847 # So, don't put newlines in cache variables' values.
8848 # Ultrix sh set writes to stderr and can't be redirected directly,
8849 # and sets the high bit in the cache file unless we assign to the vars.
8851 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8853 # `set' does not quote correctly, so add quotes (double-quote substitution
8854 # turns \\\\ into \\, and sed turns \\ into \).
8856 -e "s/'/'\\\\''/g" \
8857 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8860 # `set' quotes correctly as required by POSIX, so do not add quotes.
8861 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8864 if cmp -s $cache_file confcache; then
8867 if test -w $cache_file; then
8868 echo "updating cache $cache_file"
8869 cat confcache > $cache_file
8871 echo "not updating unwritable cache $cache_file"
8876 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8878 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8879 # Let make expand exec_prefix.
8880 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8882 # Any assignment to VPATH causes Sun make to only execute
8883 # the first set of double-colon rules, so remove it if not needed.
8884 # If there is a colon in the path, we need to keep it.
8885 if test "x$srcdir" = x.; then
8886 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8889 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8891 DEFS=-DHAVE_CONFIG_H
8893 # Without the "./", some shells look in PATH for config.status.
8894 : ${CONFIG_STATUS=./config.status}
8896 echo creating $CONFIG_STATUS
8897 rm -f $CONFIG_STATUS
8898 cat > $CONFIG_STATUS <<EOF
8900 # Generated automatically by configure.
8901 # Run this file to recreate the current configuration.
8902 # This directory was configured as follows,
8903 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8905 # $0 $ac_configure_args
8907 # Compiler output produced by configure, useful for debugging
8908 # configure, is in ./config.log if it exists.
8910 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8913 case "\$ac_option" in
8914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8915 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8916 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8917 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8918 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8920 -help | --help | --hel | --he | --h)
8921 echo "\$ac_cs_usage"; exit 0 ;;
8922 *) echo "\$ac_cs_usage"; exit 1 ;;
8926 ac_given_srcdir=$srcdir
8927 ac_given_INSTALL="$INSTALL"
8929 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8931 cat >> $CONFIG_STATUS <<EOF
8933 # Protect against being on the right side of a sed subst in config.status.
8934 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8935 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8939 s%@CFLAGS@%$CFLAGS%g
8940 s%@CPPFLAGS@%$CPPFLAGS%g
8941 s%@CXXFLAGS@%$CXXFLAGS%g
8942 s%@FFLAGS@%$FFLAGS%g
8944 s%@LDFLAGS@%$LDFLAGS%g
8946 s%@exec_prefix@%$exec_prefix%g
8947 s%@prefix@%$prefix%g
8948 s%@program_transform_name@%$program_transform_name%g
8949 s%@bindir@%$bindir%g
8950 s%@sbindir@%$sbindir%g
8951 s%@libexecdir@%$libexecdir%g
8952 s%@datadir@%$datadir%g
8953 s%@sysconfdir@%$sysconfdir%g
8954 s%@sharedstatedir@%$sharedstatedir%g
8955 s%@localstatedir@%$localstatedir%g
8956 s%@libdir@%$libdir%g
8957 s%@includedir@%$includedir%g
8958 s%@oldincludedir@%$oldincludedir%g
8959 s%@infodir@%$infodir%g
8960 s%@mandir@%$mandir%g
8962 s%@host_alias@%$host_alias%g
8963 s%@host_cpu@%$host_cpu%g
8964 s%@host_vendor@%$host_vendor%g
8965 s%@host_os@%$host_os%g
8966 s%@target@%$target%g
8967 s%@target_alias@%$target_alias%g
8968 s%@target_cpu@%$target_cpu%g
8969 s%@target_vendor@%$target_vendor%g
8970 s%@target_os@%$target_os%g
8972 s%@build_alias@%$build_alias%g
8973 s%@build_cpu@%$build_cpu%g
8974 s%@build_vendor@%$build_vendor%g
8975 s%@build_os@%$build_os%g
8976 s%@SET_MAKE@%$SET_MAKE%g
8979 s%@RANLIB@%$RANLIB%g
8982 s%@ALLOCA@%$ALLOCA%g
8983 s%@GLIBC21@%$GLIBC21%g
8984 s%@LIBICONV@%$LIBICONV%g
8985 s%@USE_NLS@%$USE_NLS%g
8986 s%@MSGFMT@%$MSGFMT%g
8987 s%@GMSGFMT@%$GMSGFMT%g
8988 s%@XGETTEXT@%$XGETTEXT%g
8989 s%@INTLBISON@%$INTLBISON%g
8990 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8991 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8992 s%@CATALOGS@%$CATALOGS%g
8993 s%@CATOBJEXT@%$CATOBJEXT%g
8994 s%@GMOFILES@%$GMOFILES%g
8995 s%@INTLLIBS@%$INTLLIBS%g
8996 s%@INTLOBJS@%$INTLOBJS%g
8997 s%@POFILES@%$POFILES%g
8999 s%@DATADIRNAME@%$DATADIRNAME%g
9000 s%@INSTOBJEXT@%$INSTOBJEXT%g
9001 s%@GENCAT@%$GENCAT%g
9002 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9003 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9004 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9005 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9006 s%@INSTALL_DATA@%$INSTALL_DATA%g
9007 s%@WINDRES@%$WINDRES%g
9008 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9009 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9010 s%@SDL_CONFIG@%$SDL_CONFIG%g
9011 s%@ESD_CONFIG@%$ESD_CONFIG%g
9012 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9013 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9014 s%@GTK_CONFIG@%$GTK_CONFIG%g
9015 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9016 s%@DATA_PATH@%$DATA_PATH%g
9017 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9020 s%@PLUGINS@%$PLUGINS%g
9021 s%@BUILTINS@%$BUILTINS%g
9022 s%@ALIASES@%$ALIASES%g
9027 s%@OPTIMS@%$OPTIMS%g
9028 s%@TUNING@%$TUNING%g
9029 s%@RELEASE@%$RELEASE%g
9031 s%@BCBUILDER@%$BCBUILDER%g
9032 s%@PACKAGE@%$PACKAGE%g
9033 s%@VERSION@%$VERSION%g
9034 s%@NEED_GETOPT@%$NEED_GETOPT%g
9035 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9036 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9037 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9038 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9039 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9040 s%@a52_CFLAGS@%$a52_CFLAGS%g
9041 s%@arts_CFLAGS@%$arts_CFLAGS%g
9042 s%@chroma_i420_yuy2_mmx_CFLAGS@%$chroma_i420_yuy2_mmx_CFLAGS%g
9043 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9044 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9045 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
9046 s%@directx_CFLAGS@%$directx_CFLAGS%g
9047 s%@esd_CFLAGS@%$esd_CFLAGS%g
9048 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9049 s%@glide_CFLAGS@%$glide_CFLAGS%g
9050 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9051 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9052 s%@kde_CFLAGS@%$kde_CFLAGS%g
9053 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9054 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9055 s%@mad_CFLAGS@%$mad_CFLAGS%g
9056 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9057 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9058 s%@qt_CFLAGS@%$qt_CFLAGS%g
9059 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9060 s%@x11_CFLAGS@%$x11_CFLAGS%g
9061 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9062 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9063 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9064 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9065 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9066 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9067 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9068 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9069 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9070 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
9071 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9072 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9073 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9074 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9075 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
9076 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9077 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
9078 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9079 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9080 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9081 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9082 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9083 s%@http_LDFLAGS@%$http_LDFLAGS%g
9084 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9085 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9086 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9087 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9088 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9089 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9090 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9091 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9092 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9093 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9094 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9095 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9096 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9097 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9098 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9099 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9100 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9101 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9102 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9103 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9104 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9105 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9106 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9111 cat >> $CONFIG_STATUS <<\EOF
9113 # Split the substitutions into bite-sized pieces for seds with
9114 # small command number limits, like on Digital OSF/1 and HP-UX.
9115 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9116 ac_file=1 # Number of current file.
9117 ac_beg=1 # First line for current file.
9118 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9121 while $ac_more_lines; do
9122 if test $ac_beg -gt 1; then
9123 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9125 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9127 if test ! -s conftest.s$ac_file; then
9129 rm -f conftest.s$ac_file
9131 if test -z "$ac_sed_cmds"; then
9132 ac_sed_cmds="sed -f conftest.s$ac_file"
9134 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9136 ac_file=`expr $ac_file + 1`
9138 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9141 if test -z "$ac_sed_cmds"; then
9146 cat >> $CONFIG_STATUS <<EOF
9148 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
9150 cat >> $CONFIG_STATUS <<\EOF
9151 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9152 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9154 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9155 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9156 *) ac_file_in="${ac_file}.in" ;;
9159 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9161 # Remove last slash and all that follows it. Not all systems have dirname.
9162 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9163 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9164 # The file is in a subdirectory.
9165 test ! -d "$ac_dir" && mkdir "$ac_dir"
9166 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9167 # A "../" for each directory in $ac_dir_suffix.
9168 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9170 ac_dir_suffix= ac_dots=
9173 case "$ac_given_srcdir" in
9175 if test -z "$ac_dots"; then top_srcdir=.
9176 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9177 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9179 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9180 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9183 case "$ac_given_INSTALL" in
9184 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9185 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9188 echo creating "$ac_file"
9190 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9192 *Makefile*) ac_comsub="1i\\
9193 # $configure_input" ;;
9197 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9199 s%@configure_input@%$configure_input%g
9200 s%@srcdir@%$srcdir%g
9201 s%@top_srcdir@%$top_srcdir%g
9202 s%@INSTALL@%$INSTALL%g
9203 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9207 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9208 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9210 # ac_d sets the value in "#define NAME VALUE" lines.
9211 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9212 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9215 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9216 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9217 ac_uB='\([ ]\)%\1#\2define\3'
9220 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9221 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9222 ac_eB='$%\1#\2define\3'
9226 if test "${CONFIG_HEADERS+set}" != set; then
9228 cat >> $CONFIG_STATUS <<EOF
9229 CONFIG_HEADERS="include/defs.h"
9231 cat >> $CONFIG_STATUS <<\EOF
9233 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9234 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9236 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9237 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9238 *) ac_file_in="${ac_file}.in" ;;
9241 echo creating $ac_file
9243 rm -f conftest.frag conftest.in conftest.out
9244 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9245 cat $ac_file_inputs > conftest.in
9249 # Transform confdefs.h into a sed script conftest.vals that substitutes
9250 # the proper values into config.h.in to produce config.h. And first:
9251 # Protect against being on the right side of a sed subst in config.status.
9252 # Protect against being in an unquoted here document in config.status.
9254 cat > conftest.hdr <<\EOF
9257 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9261 sed -n -f conftest.hdr confdefs.h > conftest.vals
9264 # This sed command replaces #undef with comments. This is necessary, for
9265 # example, in the case of _POSIX_SOURCE, which is predefined and required
9266 # on some systems where configure will not decide to define it.
9267 cat >> conftest.vals <<\EOF
9268 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9271 # Break up conftest.vals because some shells have a limit on
9272 # the size of here documents, and old seds have small limits too.
9277 ac_lines=`grep -c . conftest.vals`
9278 # grep -c gives empty output for an empty file on some AIX systems.
9279 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9280 # Write a limited-size here document to conftest.frag.
9281 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9282 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9284 sed -f conftest.frag conftest.in > conftest.out
9286 mv conftest.out conftest.in
9288 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9290 mv conftest.tail conftest.vals
9294 cat >> $CONFIG_STATUS <<\EOF
9295 rm -f conftest.frag conftest.h
9296 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9297 cat conftest.in >> conftest.h
9299 if cmp -s $ac_file conftest.h 2>/dev/null; then
9300 echo "$ac_file is unchanged"
9303 # Remove last slash and all that follows it. Not all systems have dirname.
9304 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9305 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9306 # The file is in a subdirectory.
9307 test ! -d "$ac_dir" && mkdir "$ac_dir"
9310 mv conftest.h $ac_file
9315 cat >> $CONFIG_STATUS <<EOF
9319 cat >> $CONFIG_STATUS <<\EOF
9320 for ac_file in $CONFIG_FILES; do
9321 # Support "outfile[:infile[:infile...]]"
9323 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9325 # PO directories have a Makefile.in generated from Makefile.in.in.
9326 case "$ac_file" in */Makefile.in)
9327 # Adjust a relative srcdir.
9328 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9329 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9330 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9331 # In autoconf-2.13 it is called $ac_given_srcdir.
9332 # In autoconf-2.50 it is called $srcdir.
9333 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9334 case "$ac_given_srcdir" in
9335 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9336 /*) top_srcdir="$ac_given_srcdir" ;;
9337 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9339 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9340 rm -f "$ac_dir/POTFILES"
9341 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9342 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9343 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9344 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9352 chmod +x $CONFIG_STATUS
9353 rm -fr confdefs* $ac_clean_files
9354 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9359 --------------------
9360 vlc version : ${VERSION}
9362 architecture : ${ARCH}
9363 optimizations : ${OPTIMS}
9365 debug mode : ${DEBUG}
9366 release : ${RELEASE}
9367 profiling : ${PROFILING}
9368 need builtin getopt : ${NEED_GETOPT}
9369 built-in modules :${BUILTINS}
9370 plug-in modules :${PLUGINS}
9371 vlc aliases :${ALIASES}
9373 You may now tune Makefile.opts at your convenience, for instance to choose
9374 which modules get compiled as plugins.
9376 To build vlc and its plugins, type \`$VLC_MAKE'.