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 and libraries"
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
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"
4027 echo "$ac_t""no" 1>&6
4035 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4036 echo "configure:4037: checking for getopt_long" >&5
4037 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4043 /* System header to define __stub macros and hopefully few prototypes,
4044 which can conflict with char getopt_long(); below. */
4046 /* Override any gcc2 internal prototype to avoid an error. */
4047 /* We use char because int might match the return type of a gcc2
4048 builtin and then its argument prototype would still apply. */
4053 /* The GNU C library defines this for functions which it implements
4054 to always fail with ENOSYS. Some functions are actually named
4055 something starting with __ and the normal name is an alias. */
4056 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4064 if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4066 eval "ac_cv_func_getopt_long=yes"
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4071 eval "ac_cv_func_getopt_long=no"
4076 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4077 echo "$ac_t""yes" 1>&6
4078 cat >> confdefs.h <<\EOF
4079 #define HAVE_GETOPT_LONG 1
4083 echo "$ac_t""no" 1>&6
4084 # FreeBSD has a gnugetopt library for this:
4085 echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4086 echo "configure:4087: checking for getopt_long in -lgnugetopt" >&5
4087 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4091 ac_save_LIBS="$LIBS"
4092 LIBS="-lgnugetopt $LIBS"
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4107 eval "ac_cv_lib_$ac_lib_var=yes"
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4112 eval "ac_cv_lib_$ac_lib_var=no"
4115 LIBS="$ac_save_LIBS"
4118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 cat >> confdefs.h <<\EOF
4121 #define HAVE_GETOPT_LONG 1
4123 vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4125 echo "$ac_t""no" 1>&6
4132 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4133 echo "configure:4134: checking return type of signal handlers" >&5
4134 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <sys/types.h>
4146 extern "C" void (*signal (int, void (*)(int)))(int);
4148 void (*signal ()) ();
4155 if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4157 ac_cv_type_signal=void
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 ac_cv_type_signal=int
4167 echo "$ac_t""$ac_cv_type_signal" 1>&6
4168 cat >> confdefs.h <<EOF
4169 #define RETSIGTYPE $ac_cv_type_signal
4173 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4174 echo "configure:4175: checking for dlopen in -ldl" >&5
4175 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4179 ac_save_LIBS="$LIBS"
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 /* Override any gcc2 internal prototype to avoid an error. */
4185 /* We use char because int might match the return type of a gcc2
4186 builtin and then its argument prototype would still apply. */
4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4195 eval "ac_cv_lib_$ac_lib_var=yes"
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4200 eval "ac_cv_lib_$ac_lib_var=no"
4203 LIBS="$ac_save_LIBS"
4206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4207 echo "$ac_t""yes" 1>&6
4208 vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4210 echo "$ac_t""no" 1>&6
4213 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4214 echo "configure:4215: checking for cos in -lm" >&5
4215 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4217 echo $ac_n "(cached) $ac_c" 1>&6
4219 ac_save_LIBS="$LIBS"
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 /* Override any gcc2 internal prototype to avoid an error. */
4225 /* We use char because int might match the return type of a gcc2
4226 builtin and then its argument prototype would still apply. */
4233 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4235 eval "ac_cv_lib_$ac_lib_var=yes"
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 eval "ac_cv_lib_$ac_lib_var=no"
4243 LIBS="$ac_save_LIBS"
4246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4247 echo "$ac_t""yes" 1>&6
4248 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4249 filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4251 echo "$ac_t""no" 1>&6
4254 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4255 echo "configure:4256: checking for pow in -lm" >&5
4256 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 ac_save_LIBS="$LIBS"
4262 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4265 /* Override any gcc2 internal prototype to avoid an error. */
4266 /* We use char because int might match the return type of a gcc2
4267 builtin and then its argument prototype would still apply. */
4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4276 eval "ac_cv_lib_$ac_lib_var=yes"
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4281 eval "ac_cv_lib_$ac_lib_var=no"
4284 LIBS="$ac_save_LIBS"
4287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4288 echo "$ac_t""yes" 1>&6
4289 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4290 imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4291 imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4292 imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4293 chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4296 echo "$ac_t""no" 1>&6
4301 if test "x${THREAD_LIB}" = xerror; then
4302 echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4303 echo "configure:4304: checking for pthread_attr_init in -lpthread" >&5
4304 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 ac_save_LIBS="$LIBS"
4309 LIBS="-lpthread $LIBS"
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 /* Override any gcc2 internal prototype to avoid an error. */
4314 /* We use char because int might match the return type of a gcc2
4315 builtin and then its argument prototype would still apply. */
4316 char pthread_attr_init();
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4324 eval "ac_cv_lib_$ac_lib_var=yes"
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4329 eval "ac_cv_lib_$ac_lib_var=no"
4332 LIBS="$ac_save_LIBS"
4335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4336 echo "$ac_t""yes" 1>&6
4337 THREAD_LIB="-lpthread"
4339 echo "$ac_t""no" 1>&6
4343 if test "x${THREAD_LIB}" = xerror; then
4344 echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4345 echo "configure:4346: checking for pthread_attr_init in -lpthreads" >&5
4346 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 ac_save_LIBS="$LIBS"
4351 LIBS="-lpthreads $LIBS"
4352 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 /* Override any gcc2 internal prototype to avoid an error. */
4356 /* We use char because int might match the return type of a gcc2
4357 builtin and then its argument prototype would still apply. */
4358 char pthread_attr_init();
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4366 eval "ac_cv_lib_$ac_lib_var=yes"
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 eval "ac_cv_lib_$ac_lib_var=no"
4374 LIBS="$ac_save_LIBS"
4377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4378 echo "$ac_t""yes" 1>&6
4379 THREAD_LIB="-lpthreads"
4381 echo "$ac_t""no" 1>&6
4385 if test "x${THREAD_LIB}" = xerror; then
4386 echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4387 echo "configure:4388: checking for pthread_attr_init in -lc_r" >&5
4388 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4392 ac_save_LIBS="$LIBS"
4394 cat > conftest.$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4397 /* Override any gcc2 internal prototype to avoid an error. */
4398 /* We use char because int might match the return type of a gcc2
4399 builtin and then its argument prototype would still apply. */
4400 char pthread_attr_init();
4406 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4408 eval "ac_cv_lib_$ac_lib_var=yes"
4410 echo "configure: failed program was:" >&5
4411 cat conftest.$ac_ext >&5
4413 eval "ac_cv_lib_$ac_lib_var=no"
4416 LIBS="$ac_save_LIBS"
4419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4420 echo "$ac_t""yes" 1>&6
4423 echo "$ac_t""no" 1>&6
4427 if test "x${THREAD_LIB}" = xerror; then
4428 echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4429 echo "configure:4430: checking for pthread_attr_init" >&5
4430 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4433 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4436 /* System header to define __stub macros and hopefully few prototypes,
4437 which can conflict with char pthread_attr_init(); below. */
4439 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4442 char pthread_attr_init();
4446 /* The GNU C library defines this for functions which it implements
4447 to always fail with ENOSYS. Some functions are actually named
4448 something starting with __ and the normal name is an alias. */
4449 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4452 pthread_attr_init();
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4459 eval "ac_cv_func_pthread_attr_init=yes"
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4464 eval "ac_cv_func_pthread_attr_init=no"
4469 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4470 echo "$ac_t""yes" 1>&6
4473 echo "$ac_t""no" 1>&6
4479 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4480 echo "configure:4481: checking for cthread_fork in -lthreads" >&5
4481 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 ac_save_LIBS="$LIBS"
4486 LIBS="-lthreads $LIBS"
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4493 char cthread_fork();
4499 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501 eval "ac_cv_lib_$ac_lib_var=yes"
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 eval "ac_cv_lib_$ac_lib_var=no"
4509 LIBS="$ac_save_LIBS"
4512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4513 echo "$ac_t""yes" 1>&6
4514 THREAD_LIB="-lthreads"
4516 echo "$ac_t""no" 1>&6
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 #include <pthread.h>
4525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4526 egrep "pthread_cond_t" >/dev/null 2>&1; then
4529 cat >> confdefs.h <<\EOF
4530 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 #include <pthread.h>
4541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4542 egrep "pthread_once" >/dev/null 2>&1; then
4545 cat >> confdefs.h <<\EOF
4546 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 #include <strings.h>
4557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4558 egrep "strncasecmp" >/dev/null 2>&1; then
4561 cat >> confdefs.h <<\EOF
4562 #define STRNCASECMP_IN_STRINGS_H 1
4569 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4573 echo "configure:4574: checking for $ac_hdr" >&5
4574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4583 { (eval echo configure:4584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4585 if test -z "$ac_err"; then
4587 eval "ac_cv_header_$ac_safe=yes"
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4593 eval "ac_cv_header_$ac_safe=no"
4597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6
4599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4600 cat >> confdefs.h <<EOF
4601 #define $ac_tr_hdr 1
4605 echo "$ac_t""no" 1>&6
4609 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4613 echo "configure:4614: checking for $ac_hdr" >&5
4614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4615 echo $ac_n "(cached) $ac_c" 1>&6
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4623 { (eval echo configure:4624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4625 if test -z "$ac_err"; then
4627 eval "ac_cv_header_$ac_safe=yes"
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4633 eval "ac_cv_header_$ac_safe=no"
4637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4638 echo "$ac_t""yes" 1>&6
4639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4640 cat >> confdefs.h <<EOF
4641 #define $ac_tr_hdr 1
4645 echo "$ac_t""no" 1>&6
4649 for ac_hdr in dlfcn.h image.h
4651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4653 echo "configure:4654: checking for $ac_hdr" >&5
4654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4663 { (eval echo configure:4664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4665 if test -z "$ac_err"; then
4667 eval "ac_cv_header_$ac_safe=yes"
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 eval "ac_cv_header_$ac_safe=no"
4677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4678 echo "$ac_t""yes" 1>&6
4679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4680 cat >> confdefs.h <<EOF
4681 #define $ac_tr_hdr 1
4685 echo "$ac_t""no" 1>&6
4689 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4693 echo "configure:4694: checking for $ac_hdr" >&5
4694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4703 { (eval echo configure:4704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4705 if test -z "$ac_err"; then
4707 eval "ac_cv_header_$ac_safe=yes"
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 eval "ac_cv_header_$ac_safe=no"
4717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4718 echo "$ac_t""yes" 1>&6
4719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4720 cat >> confdefs.h <<EOF
4721 #define $ac_tr_hdr 1
4725 echo "$ac_t""no" 1>&6
4729 for ac_hdr in machine/param.h sys/shm.h
4731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4733 echo "configure:4734: checking for $ac_hdr" >&5
4734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4743 { (eval echo configure:4744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4745 if test -z "$ac_err"; then
4747 eval "ac_cv_header_$ac_safe=yes"
4750 echo "configure: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4753 eval "ac_cv_header_$ac_safe=no"
4757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4758 echo "$ac_t""yes" 1>&6
4759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4760 cat >> confdefs.h <<EOF
4761 #define $ac_tr_hdr 1
4765 echo "$ac_t""no" 1>&6
4769 for ac_hdr in linux/version.h
4771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4773 echo "configure:4774: checking for $ac_hdr" >&5
4774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4783 { (eval echo configure:4784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4785 if test -z "$ac_err"; then
4787 eval "ac_cv_header_$ac_safe=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4793 eval "ac_cv_header_$ac_safe=no"
4797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4800 cat >> confdefs.h <<EOF
4801 #define $ac_tr_hdr 1
4805 echo "$ac_t""no" 1>&6
4810 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4811 echo "configure:4812: checking whether time.h and sys/time.h may both be included" >&5
4812 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4815 cat > conftest.$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4818 #include <sys/types.h>
4819 #include <sys/time.h>
4825 if { (eval echo configure:4826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4827 ac_cv_header_time=yes
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4832 ac_cv_header_time=no
4837 echo "$ac_t""$ac_cv_header_time" 1>&6
4838 if test $ac_cv_header_time = yes; then
4839 cat >> confdefs.h <<\EOF
4840 #define TIME_WITH_SYS_TIME 1
4846 cat > conftest.$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4852 egrep "nanosleep" >/dev/null 2>&1; then
4855 cat >> confdefs.h <<\EOF
4856 #define HAVE_DECL_NANOSLEEP 1
4864 cat > conftest.$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4867 #include <sys/time.h>
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 egrep "timespec" >/dev/null 2>&1; then
4873 cat >> confdefs.h <<\EOF
4874 #define HAVE_STRUCT_TIMESPEC 1
4882 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4884 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4886 echo "configure:4887: checking for $ac_hdr" >&5
4887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4896 { (eval echo configure:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4898 if test -z "$ac_err"; then
4900 eval "ac_cv_header_$ac_safe=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4906 eval "ac_cv_header_$ac_safe=no"
4910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4913 cat >> confdefs.h <<EOF
4914 #define $ac_tr_hdr 1
4918 echo "$ac_t""no" 1>&6
4923 if test x$SYS != xmingw32
4925 if test x$x_includes = xNONE; then
4926 x_includes=/usr/X11R6/include
4928 if test x$x_libraries = xNONE; then
4929 x_libraries=/usr/X11R6/lib
4931 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
4932 for ac_hdr in X11/extensions/dpms.h
4934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4936 echo "configure:4937: checking for $ac_hdr" >&5
4937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 cat > conftest.$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4946 { (eval echo configure:4947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4948 if test -z "$ac_err"; then
4950 eval "ac_cv_header_$ac_safe=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 eval "ac_cv_header_$ac_safe=no"
4960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4963 cat >> confdefs.h <<EOF
4964 #define $ac_tr_hdr 1
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 #include <X11/extensions/dpms.h>
4972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4973 egrep "DPMSInfo" >/dev/null 2>&1; then
4976 cat >> confdefs.h <<\EOF
4977 #define DPMSINFO_IN_DPMS_H 1
4986 echo "$ac_t""no" 1>&6
4990 CPPFLAGS="$save_CPPFLAGS"
4993 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4994 echo "configure:4995: checking for ntohl in sys/param.h" >&5
4995 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 CFLAGS="${save_CFLAGS} -Wall -Werror"
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5002 #include <sys/param.h>
5004 void foo() { int meuh; ntohl(meuh); }
5007 if { (eval echo configure:5008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5009 ac_cv_c_ntohl_sys_param_h=yes
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 ac_cv_c_ntohl_sys_param_h=no
5019 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5020 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5021 cat >> confdefs.h <<\EOF
5022 #define NTOHL_IN_SYS_PARAM_H 1
5027 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5028 echo "configure:5029: checking if \$CC accepts -finline-limit" >&5
5029 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5030 echo $ac_n "(cached) $ac_c" 1>&6
5032 CFLAGS="${save_CFLAGS} -finline-limit-30000"
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5041 if { (eval echo configure:5042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5043 ac_cv_c_inline_limit=yes
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5048 ac_cv_c_inline_limit=no
5053 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5054 if test x"$ac_cv_c_inline_limit" != x"no"; then
5055 save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5058 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5059 echo "configure:5060: checking if \$CC accepts -Wall -Winline" >&5
5060 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5063 CFLAGS="-Wall -Winline ${save_CFLAGS}"
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5072 if { (eval echo configure:5073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5074 ac_cv_c_Wall_Winline=yes
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5079 ac_cv_c_Wall_Winline=no
5084 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5085 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5086 save_CFLAGS="-Wall -Winline ${save_CFLAGS}"
5088 echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5089 echo "configure:5090: checking if \$CC accepts -wall -winline" >&5
5090 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5093 CFLAGS="-wall -winline ${save_CFLAGS}"
5094 cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5102 if { (eval echo configure:5103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5104 ac_cv_c_wall_winline=yes
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5109 ac_cv_c_wall_winline=no
5114 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5115 if test x"$ac_cv_c_wall_winline" != x"no"; then
5116 save_CFLAGS="-wall -winline ${save_CFLAGS}"
5120 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5121 echo "configure:5122: checking if \$CC accepts -pipe" >&5
5122 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 CFLAGS="${save_CFLAGS} -pipe"
5126 cat > conftest.$ac_ext <<EOF
5127 #line 5128 "configure"
5128 #include "confdefs.h"
5134 if { (eval echo configure:5135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5146 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5147 if test x"$ac_cv_c_pipe" != x"no"; then
5148 save_CFLAGS="${save_CFLAGS} -pipe"
5151 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5152 echo "configure:5153: checking if \$CC accepts -O3" >&5
5153 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5156 CFLAGS="${save_CFLAGS} -O3"
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5165 if { (eval echo configure:5166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5169 echo "configure: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5177 echo "$ac_t""$ac_cv_c_o3" 1>&6
5178 if test x"$ac_cv_c_o3" != x"no"; then
5179 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5181 echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5182 echo "configure:5183: checking if \$CC accepts -O2" >&5
5183 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5186 CFLAGS="${save_CFLAGS} -O2"
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5195 if { (eval echo configure:5196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5207 echo "$ac_t""$ac_cv_c_o2" 1>&6
5208 if test x"$ac_cv_c_o2" != x"no"; then
5209 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5211 echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5212 echo "configure:5213: checking if \$CC accepts -O" >&5
5213 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 CFLAGS="${save_CFLAGS} -O"
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5225 if { (eval echo configure:5226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5229 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5237 echo "$ac_t""$ac_cv_c_o" 1>&6
5238 if test x"$ac_cv_c_o" != x"no"; then
5239 CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5244 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5245 echo "configure:5246: checking if \$CC accepts -ffast-math" >&5
5246 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5247 echo $ac_n "(cached) $ac_c" 1>&6
5249 CFLAGS="${save_CFLAGS} -ffast-math"
5250 cat > conftest.$ac_ext <<EOF
5251 #line 5252 "configure"
5252 #include "confdefs.h"
5258 if { (eval echo configure:5259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5260 ac_cv_c_fast_math=yes
5262 echo "configure: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5265 ac_cv_c_fast_math=no
5270 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5271 if test x"$ac_cv_c_fast_math" != x"no"; then
5272 CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5275 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5276 echo "configure:5277: checking if \$CC accepts -funroll-loops" >&5
5277 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 CFLAGS="${save_CFLAGS} -funroll-loops"
5281 cat > conftest.$ac_ext <<EOF
5282 #line 5283 "configure"
5283 #include "confdefs.h"
5289 if { (eval echo configure:5290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5291 ac_cv_c_unroll_loops=yes
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5296 ac_cv_c_unroll_loops=no
5301 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5302 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5303 CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5306 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5307 echo "configure:5308: checking if \$CC accepts -fomit-frame-pointer" >&5
5308 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5311 CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5312 cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5320 if { (eval echo configure:5321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5322 ac_cv_c_omit_frame_pointer=yes
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5327 ac_cv_c_omit_frame_pointer=no
5332 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5333 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5334 CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5335 # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5336 chroma_i420_yuy2_mmx_CFLAGS="${chroma_i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5339 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5340 echo "configure:5341: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5341 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5344 CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5353 if { (eval echo configure:5354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5365 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5366 if test x"$ac_cv_ld_darwin" != x"no"; then
5367 plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5370 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5371 echo "configure:5372: checking if \$CC accepts -shared" >&5
5372 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5375 CFLAGS="${save_CFLAGS} -shared"
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5384 if { (eval echo configure:5385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5386 ac_cv_ld_plugins=yes
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5396 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5397 if test x"$ac_cv_ld_plugins" != x"no"; then
5398 plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5401 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5402 echo "configure:5403: checking for variadic cpp macros" >&5
5403 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5404 echo $ac_n "(cached) $ac_c" 1>&6
5406 CFLAGS="${save_CFLAGS}"
5407 cat > conftest.$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5411 #define a(b,c...) printf(b,##c)
5413 a("foo");a("%s","bar");a("%s%s","baz","quux");
5416 if { (eval echo configure:5417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5418 ac_cv_cpp_variadic_macros=yes
5420 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5423 ac_cv_cpp_variadic_macros=no
5428 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5429 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
5430 cat >> confdefs.h <<\EOF
5431 #define HAVE_VARIADIC_MACROS 1
5436 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5437 echo "configure:5438: checking __attribute__ ((aligned ())) support" >&5
5438 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5439 echo $ac_n "(cached) $ac_c" 1>&6
5441 ac_cv_c_attribute_aligned=0
5442 CFLAGS="${save_CFLAGS} -Werror"
5443 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5444 cat > conftest.$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5449 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5452 if { (eval echo configure:5453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5454 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5456 echo "configure: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5463 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5464 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5465 cat >> confdefs.h <<EOF
5466 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5471 case x"${target_cpu}" in
5476 ARCH="${target_cpu}"
5480 BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix mpeg_adec ac3_adec mpeg_vdec"
5481 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"
5483 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5484 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5485 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5486 SSE_MODULES="imdctsse downmixsse"
5487 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
5489 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5490 echo "configure:5491: checking if \$CC groks MMX inline assembly" >&5
5491 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5492 echo $ac_n "(cached) $ac_c" 1>&6
5494 CFLAGS="${save_CFLAGS}"
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5500 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5503 if { (eval echo configure:5504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5505 ac_cv_mmx_inline=yes
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5515 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5516 if test x"$ac_cv_mmx_inline" != x"no"; then
5517 ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5520 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5521 echo "configure:5522: checking if \$CC groks MMX EXT inline assembly" >&5
5522 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5525 CFLAGS="${save_CFLAGS}"
5526 cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5531 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5534 if { (eval echo configure:5535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5536 ac_cv_mmxext_inline=yes
5538 echo "configure: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5541 ac_cv_mmxext_inline=no
5546 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5547 if test x"$ac_cv_mmxext_inline" != x"no"; then
5548 ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5551 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5552 echo "configure:5553: checking if \$CC groks 3D Now! inline assembly" >&5
5553 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5556 CFLAGS="${save_CFLAGS}"
5557 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5562 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5565 if { (eval echo configure:5566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5567 ac_cv_3dnow_inline=yes
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5572 ac_cv_3dnow_inline=no
5577 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5578 if test x"$ac_cv_3dnow_inline" != x"no"; then
5579 cat >> confdefs.h <<\EOF
5580 #define CAN_COMPILE_3DNOW 1
5583 ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5586 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5587 echo "configure:5588: checking if \$CC groks SSE inline assembly" >&5
5588 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5591 CFLAGS="${save_CFLAGS}"
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5597 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5600 if { (eval echo configure:5601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5602 ac_cv_sse_inline=yes
5604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5612 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5613 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
5614 cat >> confdefs.h <<\EOF
5615 #define CAN_COMPILE_SSE 1
5618 ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5621 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5622 # we should be able to remove this test with future versions of mingw32
5623 if test x$SYS != xmingw32; then
5624 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5625 echo "configure:5626: checking if \$CC groks AltiVec inline assembly" >&5
5626 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5629 CFLAGS="${save_CFLAGS}"
5630 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure"
5632 #include "confdefs.h"
5635 asm volatile("vperm 0,1,2,3");
5638 if { (eval echo configure:5639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5640 ac_cv_altivec_inline=yes
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5645 CFLAGS="$save_CFLAGS -Wa,-m7400"
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5651 asm volatile("vperm 0,1,2,3");
5654 if { (eval echo configure:5655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5656 ac_cv_altivec_inline="-Wa,-m7400"
5658 echo "configure: failed program was:" >&5
5659 cat conftest.$ac_ext >&5
5661 ac_cv_altivec_inline=no
5669 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5670 if test x"$ac_cv_altivec_inline" != x"no"; then
5671 cat >> confdefs.h <<\EOF
5672 #define CAN_COMPILE_ALTIVEC 1
5675 if test x"$ac_cv_altivec_inline" != x"yes"; then
5676 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
5677 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
5678 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
5679 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
5681 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5684 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5685 echo "configure:5686: checking if \$CC groks AltiVec C extensions" >&5
5686 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5689 CFLAGS="$save_CFLAGS -faltivec"
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5696 vec_mtvscr((vector unsigned int)(0));
5699 if { (eval echo configure:5700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5701 ac_cv_c_altivec=-faltivec
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5708 CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
5709 cat > conftest.$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5714 vec_mtvscr((vector unsigned int)(0));
5717 if { (eval echo configure:5718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5719 ac_cv_c_altivec="-fvec"
5721 echo "configure: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5733 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5734 if test x"$ac_cv_c_altivec" != x"no"; then
5735 cat >> confdefs.h <<\EOF
5736 #define CAN_COMPILE_C_ALTIVEC 1
5739 idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
5740 motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
5741 memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
5742 vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
5743 ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5746 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5747 echo "configure:5748: checking if linker needs -framework vecLib" >&5
5748 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 LDFLAGS="$vlc_LDFLAGS -framework vecLib"
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5762 ac_cv_ld_altivec=yes
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5773 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5774 if test x"$ac_cv_ld_altivec" != x"no"; then
5775 idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5776 motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5777 memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5778 vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5783 # Check whether --with- or --without- was given.
5784 if test "${with_+set}" = set; then
5789 # Check whether --with- or --without- was given.
5790 if test "${with_+set}" = set; then
5796 # Check whether --with-tuning or --without-tuning was given.
5797 if test "${with_tuning+set}" = set; then
5798 withval="$with_tuning"
5802 if test "x$with_tuning" != "x"; then
5803 TUNING="$with_tuning"
5805 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5807 if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5811 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5814 PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5817 # Check whether --enable-optimizations or --disable-optimizations was given.
5818 if test "${enable_optimizations+set}" = set; then
5819 enableval="$enable_optimizations"
5820 if test x$enable_optimizations = xno; then OPTIMS=0; fi
5826 # Check whether --enable-altivec or --disable-altivec was given.
5827 if test "${enable_altivec+set}" = set; then
5828 enableval="$enable_altivec"
5829 if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
5830 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5832 if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5833 BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
5838 # Check whether --enable-debug or --disable-debug was given.
5839 if test "${enable_debug+set}" = set; then
5840 enableval="$enable_debug"
5841 if test x$enable_debug = xyes; then DEBUG=1; fi
5846 # Check whether --enable-release or --disable-release was given.
5847 if test "${enable_release+set}" = set; then
5848 enableval="$enable_release"
5849 if test x$enable_release = xyes; then RELEASE=1; fi
5851 VERSION="${VERSION}_`date +%Y-%m-%d`"
5856 # Check whether --with- or --without- was given.
5857 if test "${with_+set}" = set; then
5863 # Check whether --enable-dvd or --disable-dvd was given.
5864 if test "${enable_dvd+set}" = set; then
5865 enableval="$enable_dvd"
5869 if test "x$enable_dvd" != "xno"
5871 # Check whether --with-dvdcss or --without-dvdcss was given.
5872 if test "${with_dvdcss+set}" = set; then
5873 withval="$with_dvdcss"
5877 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5878 if test "${with_dvdcss_tree+set}" = set; then
5879 withval="$with_dvdcss_tree"
5883 case "x$with_dvdcss" in
5885 if test "x$with_dvdcss_tree" = x
5887 for ac_hdr in dvdcss/dvdcss.h
5889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5891 echo "configure:5892: checking for $ac_hdr" >&5
5892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure"
5897 #include "confdefs.h"
5900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5901 { (eval echo configure:5902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5903 if test -z "$ac_err"; then
5905 eval "ac_cv_header_$ac_safe=yes"
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5911 eval "ac_cv_header_$ac_safe=no"
5915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5916 echo "$ac_t""yes" 1>&6
5917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5918 cat >> confdefs.h <<EOF
5919 #define $ac_tr_hdr 1
5921 PLUGINS="${PLUGINS} dvd"
5922 dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
5924 echo "$ac_t""no" 1>&6
5925 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
5926 { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; }
5931 echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5932 echo "configure:5933: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5933 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5934 if test "x$real_dvdcss_tree" = x
5936 echo "$ac_t""no" 1>&6
5937 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5939 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5941 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5942 BUILTINS="${BUILTINS} dvd"
5943 dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5944 dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
5946 echo "$ac_t""no" 1>&6
5947 { 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; }
5952 PLUGINS="${PLUGINS} dvd"
5953 dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
5954 dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
5957 echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5958 echo "configure:5959: checking for dvdcss headers in ${with_dvdcss}" >&5
5959 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5961 echo "$ac_t""yes" 1>&6
5962 PLUGINS="${PLUGINS} dvd"
5963 dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
5964 dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
5966 echo "$ac_t""no" 1>&6
5967 { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5973 # Check whether --enable-dvdread or --disable-dvdread was given.
5974 if test "${enable_dvdread+set}" = set; then
5975 enableval="$enable_dvdread"
5979 if test "x$enable_dvdread" != "xno"
5981 # Check whether --with-dvdread or --without-dvdread was given.
5982 if test "${with_dvdread+set}" = set; then
5983 withval="$with_dvdread"
5987 if test "x$with_dvdread" = x
5992 test_LDFLAGS="-L${with_dvdread}/lib"
5993 test_CFLAGS="-I${with_dvdread}/include"
5995 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
5996 for ac_hdr in dvdread/dvd_reader.h
5998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_hdr" >&5
6001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6004 cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure"
6006 #include "confdefs.h"
6009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6010 { (eval echo configure:6011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6012 if test -z "$ac_err"; then
6014 eval "ac_cv_header_$ac_safe=yes"
6017 echo "configure: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6020 eval "ac_cv_header_$ac_safe=no"
6024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6027 cat >> confdefs.h <<EOF
6028 #define $ac_tr_hdr 1
6031 CFLAGS="${save_CFLAGS}"
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 #include <dvdread/dvd_reader.h>
6037 void foo() { int i=DVD_VIDEO_LB_LEN; }
6040 if { (eval echo configure:6041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6043 PLUGINS="${PLUGINS} dvdread"
6044 dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6045 dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6048 echo "configure: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6052 if test "x$enable_dvdread" != x
6054 { 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; }
6061 echo "$ac_t""no" 1>&6
6062 if test "x$enable_dvdread" != x
6064 if test "x$with_dvdread" != x
6066 { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6068 { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6075 CPPFLAGS="$save_CPPFLAGS"
6078 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6079 if test "${enable_dvbpsi+set}" = set; then
6080 enableval="$enable_dvbpsi"
6084 if test "x$enable_dvbpsi" != "xno"
6086 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6087 if test "${with_dvbpsi+set}" = set; then
6088 withval="$with_dvbpsi"
6092 # Check whether --with-dvbpsi or --without-dvbpsi was given.
6093 if test "${with_dvbpsi+set}" = set; then
6094 withval="$with_dvbpsi"
6098 case "x$with_dvbpsi" in
6100 if test "x$with_dvbpsi_tree" = x
6102 for ac_hdr in dvbpsi/dr.h
6104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6106 echo "configure:6107: checking for $ac_hdr" >&5
6107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
6110 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6116 { (eval echo configure:6117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6118 if test -z "$ac_err"; then
6120 eval "ac_cv_header_$ac_safe=yes"
6123 echo "configure: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6126 eval "ac_cv_header_$ac_safe=no"
6130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6131 echo "$ac_t""yes" 1>&6
6132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6133 cat >> confdefs.h <<EOF
6134 #define $ac_tr_hdr 1
6136 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6137 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
6139 echo "$ac_t""no" 1>&6
6144 echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6145 echo "configure:6146: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6146 real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6147 if test "x$real_dvbpsi_tree" = x
6149 echo "$ac_t""no" 1>&6
6150 { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6152 if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6154 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6155 BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
6156 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6157 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6159 echo "$ac_t""no" 1>&6
6160 { 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; }
6167 echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6168 echo "configure:6169: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6169 if test "x$with_dvbpsi" = x
6174 test_LDFLAGS="-L${with_dvbpsi}/lib"
6175 test_CFLAGS="-I${with_dvbpsi}/include"
6177 CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6178 ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6179 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6180 echo "configure:6181: checking for dvbpsi/dr.h" >&5
6181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6182 echo $ac_n "(cached) $ac_c" 1>&6
6184 cat > conftest.$ac_ext <<EOF
6185 #line 6186 "configure"
6186 #include "confdefs.h"
6187 #include <dvbpsi/dr.h>
6189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6190 { (eval echo configure:6191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6192 if test -z "$ac_err"; then
6194 eval "ac_cv_header_$ac_safe=yes"
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 eval "ac_cv_header_$ac_safe=no"
6204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6205 echo "$ac_t""yes" 1>&6
6207 PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
6208 mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6209 mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6212 echo "$ac_t""no" 1>&6
6214 if test "x$enable_dvbpsi" != x
6216 { 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; }
6221 CPPFLAGS="$save_CPPFLAGS"
6226 # Check whether --enable-vcd or --disable-vcd was given.
6227 if test "${enable_vcd+set}" = set; then
6228 enableval="$enable_vcd"
6233 if test x$enable_vcd != xno
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6238 #include <linux/cdrom.h>
6240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241 egrep "cdrom_msf0" >/dev/null 2>&1; then
6244 PLUGINS="${PLUGINS} vcd"
6250 cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253 #include <sys/cdio.h>
6255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6256 egrep "ioc_toc_header " >/dev/null 2>&1; then
6259 PLUGINS="${PLUGINS} vcd"
6260 cat >> confdefs.h <<\EOF
6261 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6269 if test "x${SYS}" = "xbsdi"
6271 PLUGINS="${PLUGINS} vcd"
6274 if test "x${SYS}" = "xdarwin"
6276 # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6277 vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
6281 # Check whether --enable-satellite or --disable-satellite was given.
6282 if test "${enable_satellite+set}" = set; then
6283 enableval="$enable_satellite"
6284 if test x$enable_satellite = xyes
6286 PLUGINS="${PLUGINS} satellite"
6291 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
6293 CFLAGS="$save_CFLAGS"
6294 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6295 echo "configure:6296: checking for inet_pton" >&5
6296 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 /* System header to define __stub macros and hopefully few prototypes,
6303 which can conflict with char inet_pton(); below. */
6305 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6325 eval "ac_cv_func_inet_pton=yes"
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6330 eval "ac_cv_func_inet_pton=no"
6335 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6336 echo "$ac_t""yes" 1>&6
6337 PLUGINS="${PLUGINS} ipv6"
6339 echo "$ac_t""no" 1>&6
6343 if test "x$SYS" = "xmingw32"
6345 echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6346 echo "configure:6347: checking for getaddrinfo in ws2tcpip.h" >&5
6347 cat > conftest.$ac_ext <<EOF
6348 #line 6349 "configure"
6349 #include "confdefs.h"
6350 #include <ws2tcpip.h>
6352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6353 egrep "addrinfo" >/dev/null 2>&1; then
6355 echo "$ac_t""yes" 1>&6
6356 PLUGINS="${PLUGINS} ipv6"
6359 echo "$ac_t""no" 1>&6
6365 # Check whether --enable-avi or --disable-avi was given.
6366 if test "${enable_avi+set}" = set; then
6367 enableval="$enable_avi"
6371 if test x$enable_avi != xno
6373 PLUGINS="${PLUGINS} avi"
6377 # Check whether --with- or --without- was given.
6378 if test "${with_+set}" = set; then
6384 # Check whether --enable-mad or --disable-mad was given.
6385 if test "${enable_mad+set}" = set; then
6386 enableval="$enable_mad"
6390 if test x$enable_mad = xyes
6392 # Check whether --with-mad or --without-mad was given.
6393 if test "${with_mad+set}" = set; then
6398 if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6400 mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6401 mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6404 # Check whether --with-mad-tree or --without-mad-tree was given.
6405 if test "${with_mad_tree+set}" = set; then
6406 withval="$with_mad_tree"
6410 if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6412 real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6413 if test "x$real_mad_tree" = x
6415 echo "$ac_t""no" 1>&6
6416 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6418 echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6419 echo "configure:6420: checking for mad.h in ${real_mad_tree}/libmad" >&5
6420 if test -f ${real_mad_tree}/libmad/mad.h
6422 echo "$ac_t""yes" 1>&6
6423 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6424 mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6425 save_LDFLAGS=$LDFLAGS
6426 LDFLAGS=$mad_LDFLAGS
6427 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6428 echo "configure:6429: checking for mad_bit_init in -lmad" >&5
6429 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6433 ac_save_LIBS="$LIBS"
6435 cat > conftest.$ac_ext <<EOF
6436 #line 6437 "configure"
6437 #include "confdefs.h"
6438 /* Override any gcc2 internal prototype to avoid an error. */
6439 /* We use char because int might match the return type of a gcc2
6440 builtin and then its argument prototype would still apply. */
6441 char mad_bit_init();
6447 if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6449 eval "ac_cv_lib_$ac_lib_var=yes"
6451 echo "configure: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6454 eval "ac_cv_lib_$ac_lib_var=no"
6457 LIBS="$ac_save_LIBS"
6460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6461 echo "$ac_t""yes" 1>&6
6463 BUILTINS="${BUILTINS} mad"
6464 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6467 echo "$ac_t""no" 1>&6
6468 { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6472 LDFLAGS=$save_LDFLAGS
6474 echo "$ac_t""no" 1>&6
6475 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6478 CFLAGS="$vlc_CFLAGS $mad_CFLAGS"
6479 LDFLAGS="$vlc_LDFLAGS $mad_LDFLAGS"
6482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6484 echo "configure:6485: checking for $ac_hdr" >&5
6485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6494 { (eval echo configure:6495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6496 if test -z "$ac_err"; then
6498 eval "ac_cv_header_$ac_safe=yes"
6501 echo "configure: failed program was:" >&5
6502 cat conftest.$ac_ext >&5
6504 eval "ac_cv_header_$ac_safe=no"
6508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6509 echo "$ac_t""yes" 1>&6
6510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6511 cat >> confdefs.h <<EOF
6512 #define $ac_tr_hdr 1
6516 echo "$ac_t""no" 1>&6
6517 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; }
6521 echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6522 echo "configure:6523: checking for mad_bit_init in -lmad" >&5
6523 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6527 ac_save_LIBS="$LIBS"
6529 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* Override any gcc2 internal prototype to avoid an error. */
6533 /* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */
6535 char mad_bit_init();
6541 if { (eval echo configure:6542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6543 eval "ac_cv_lib_$ac_lib_var=yes"
6545 echo "configure: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6548 eval "ac_cv_lib_$ac_lib_var=no"
6551 LIBS="$ac_save_LIBS"
6554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6557 PLUGINS="${PLUGINS} mad"
6558 mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6560 echo "$ac_t""no" 1>&6
6561 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; }
6567 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6568 if test "${enable_ffmpeg+set}" = set; then
6569 enableval="$enable_ffmpeg"
6573 if test "x$enable_ffmpeg" = "xyes"
6575 # Check whether --with-ffmpeg or --without-ffmpeg was given.
6576 if test "${with_ffmpeg+set}" = set; then
6577 withval="$with_ffmpeg"
6581 if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6583 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6584 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6587 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6588 if test "${with_ffmpeg_tree+set}" = set; then
6589 withval="$with_ffmpeg_tree"
6593 if test "x$with_ffmpeg_tree" != "x"
6595 echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6596 echo "configure:6597: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6597 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6598 if test "x$real_ffmpeg_tree" = x
6600 echo "$ac_t""no" 1>&6
6601 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6603 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6605 echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6606 BUILTINS="${BUILTINS} ffmpeg"
6607 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6608 ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6610 echo "$ac_t""no" 1>&6
6611 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6615 save_LDFLAGS=$LDFLAGS
6616 CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6617 LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm"
6618 echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6619 echo "configure:6620: checking for avcodec_init in -lavcodec" >&5
6620 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6622 echo $ac_n "(cached) $ac_c" 1>&6
6624 ac_save_LIBS="$LIBS"
6625 LIBS="-lavcodec $LIBS"
6626 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6629 /* Override any gcc2 internal prototype to avoid an error. */
6630 /* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6632 char avcodec_init();
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6640 eval "ac_cv_lib_$ac_lib_var=yes"
6642 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6645 eval "ac_cv_lib_$ac_lib_var=no"
6648 LIBS="$ac_save_LIBS"
6651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6652 echo "$ac_t""yes" 1>&6
6654 BUILTINS="${BUILTINS} ffmpeg"
6655 ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm"
6657 echo "$ac_t""no" 1>&6
6658 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; }
6662 LDFLAGS=$save_LDFLAGS
6667 if test x$SYS = xbeos
6669 PLUGINS="${PLUGINS} beos"
6672 # Check whether --enable-a52 or --disable-a52 was given.
6673 if test "${enable_a52+set}" = set; then
6674 enableval="$enable_a52"
6678 if test "x$enable_a52" != "xno"
6680 # Check whether --with-a52-tree or --without-a52-tree was given.
6681 if test "${with_a52_tree+set}" = set; then
6682 withval="$with_a52_tree"
6686 if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6688 real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6689 if test "x$real_a52_tree" = x
6691 echo "$ac_t""no" 1>&6
6692 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6694 echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6695 echo "configure:6696: checking for a52.h in ${real_a52_tree}/include" >&5
6696 if test -f ${real_a52_tree}/include/a52.h
6698 echo "$ac_t""yes" 1>&6
6699 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6700 a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6701 save_LDFLAGS=$LDFLAGS
6702 LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6703 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6704 echo "configure:6705: checking for a52_free in -la52" >&5
6705 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6707 echo $ac_n "(cached) $ac_c" 1>&6
6709 ac_save_LIBS="$LIBS"
6710 LIBS="-la52 -lm $LIBS"
6711 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure"
6713 #include "confdefs.h"
6714 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6723 if { (eval echo configure:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6725 eval "ac_cv_lib_$ac_lib_var=yes"
6727 echo "configure: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6730 eval "ac_cv_lib_$ac_lib_var=no"
6733 LIBS="$ac_save_LIBS"
6736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6737 echo "$ac_t""yes" 1>&6
6739 BUILTINS="${BUILTINS} a52"
6740 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6741 a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6744 echo "$ac_t""no" 1>&6
6746 if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6748 { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6750 { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6755 LDFLAGS=$save_LDFLAGS
6757 echo "$ac_t""no" 1>&6
6758 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6760 else for ac_hdr in a52dec/a52.h
6762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6764 echo "configure:6765: checking for $ac_hdr" >&5
6765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6768 cat > conftest.$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6774 { (eval echo configure:6775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6776 if test -z "$ac_err"; then
6778 eval "ac_cv_header_$ac_safe=yes"
6781 echo "configure: failed program was:" >&5
6782 cat conftest.$ac_ext >&5
6784 eval "ac_cv_header_$ac_safe=no"
6788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6789 echo "$ac_t""yes" 1>&6
6790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6791 cat >> confdefs.h <<EOF
6792 #define $ac_tr_hdr 1
6795 echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6796 echo "configure:6797: checking for a52_free in -la52" >&5
6797 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6799 echo $ac_n "(cached) $ac_c" 1>&6
6801 ac_save_LIBS="$LIBS"
6802 LIBS="-la52 -lm $LIBS"
6803 cat > conftest.$ac_ext <<EOF
6804 #line 6805 "configure"
6805 #include "confdefs.h"
6806 /* Override any gcc2 internal prototype to avoid an error. */
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6815 if { (eval echo configure:6816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6817 eval "ac_cv_lib_$ac_lib_var=yes"
6819 echo "configure: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6822 eval "ac_cv_lib_$ac_lib_var=no"
6825 LIBS="$ac_save_LIBS"
6828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6829 echo "$ac_t""yes" 1>&6
6831 BUILTINS="${BUILTINS} a52"
6832 a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6833 a52_CFLAGS="${a52_CFLAGS}"
6836 echo "$ac_t""no" 1>&6
6841 echo "$ac_t""no" 1>&6
6848 # Check whether --enable-vorbis or --disable-vorbis was given.
6849 if test "${enable_vorbis+set}" = set; then
6850 enableval="$enable_vorbis"
6854 if test "x$enable_vorbis" != "xno"
6856 for ac_hdr in ogg/ogg.h
6858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6860 echo "configure:6861: checking for $ac_hdr" >&5
6861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6870 { (eval echo configure:6871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6872 if test -z "$ac_err"; then
6874 eval "ac_cv_header_$ac_safe=yes"
6877 echo "configure: failed program was:" >&5
6878 cat conftest.$ac_ext >&5
6880 eval "ac_cv_header_$ac_safe=no"
6884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6885 echo "$ac_t""yes" 1>&6
6886 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6887 cat >> confdefs.h <<EOF
6888 #define $ac_tr_hdr 1
6891 #PLUGINS="${PLUGINS} vorbis"
6892 vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6895 echo "$ac_t""no" 1>&6
6902 # Check whether --with- or --without- was given.
6903 if test "${with_+set}" = set; then
6909 # Check whether --enable-x11 or --disable-x11 was given.
6910 if test "${enable_x11+set}" = set; then
6911 enableval="$enable_x11"
6915 if test x$enable_x11 != xno &&
6916 (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6917 if test x$x_includes = xNONE; then
6918 x_includes=/usr/X11R6/include
6920 if test x$x_libraries = xNONE; then
6921 x_libraries=/usr/X11R6/lib
6923 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6924 for ac_hdr in X11/Xlib.h
6926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6928 echo "configure:6929: checking for $ac_hdr" >&5
6929 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6930 echo $ac_n "(cached) $ac_c" 1>&6
6932 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6938 { (eval echo configure:6939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6940 if test -z "$ac_err"; then
6942 eval "ac_cv_header_$ac_safe=yes"
6945 echo "configure: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6948 eval "ac_cv_header_$ac_safe=no"
6952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6953 echo "$ac_t""yes" 1>&6
6954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6955 cat >> confdefs.h <<EOF
6956 #define $ac_tr_hdr 1
6959 PLUGINS="${PLUGINS} x11"
6960 x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
6961 x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
6964 echo "$ac_t""no" 1>&6
6968 CPPFLAGS="$save_CPPFLAGS"
6971 # Check whether --enable-xvideo or --disable-xvideo was given.
6972 if test "${enable_xvideo+set}" = set; then
6973 enableval="$enable_xvideo"
6977 if test x$enable_xvideo != xno &&
6978 (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6979 if test x$x_includes = xNONE; then
6980 x_includes=/usr/X11R6/include
6982 if test x$x_libraries = xNONE; then
6983 x_libraries=/usr/X11R6/lib
6985 CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6986 for ac_hdr in X11/extensions/Xv.h
6988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6990 echo "configure:6991: checking for $ac_hdr" >&5
6991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6992 echo $ac_n "(cached) $ac_c" 1>&6
6994 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7000 { (eval echo configure:7001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7002 if test -z "$ac_err"; then
7004 eval "ac_cv_header_$ac_safe=yes"
7007 echo "configure: failed program was:" >&5
7008 cat conftest.$ac_ext >&5
7010 eval "ac_cv_header_$ac_safe=no"
7014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7015 echo "$ac_t""yes" 1>&6
7016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7017 cat >> confdefs.h <<EOF
7018 #define $ac_tr_hdr 1
7021 CFLAGS="$save_CFLAGS -L$x_libraries -lX11 -lXext"
7022 echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7023 echo "configure:7024: checking for XvSetPortAttribute in -lXv_pic" >&5
7024 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7028 ac_save_LIBS="$LIBS"
7029 LIBS="-lXv_pic $LIBS"
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7036 char XvSetPortAttribute();
7039 XvSetPortAttribute()
7042 if { (eval echo configure:7043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7044 eval "ac_cv_lib_$ac_lib_var=yes"
7046 echo "configure: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7049 eval "ac_cv_lib_$ac_lib_var=no"
7052 LIBS="$ac_save_LIBS"
7055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7056 echo "$ac_t""yes" 1>&6
7057 # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7058 PLUGINS="${PLUGINS} xvideo"
7059 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
7060 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7062 echo "$ac_t""no" 1>&6
7063 # We don't have Xv_pic, let's make xvideo.a as builtin
7064 BUILTINS="${BUILTINS} xvideo"
7065 xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
7066 xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7070 CPPFLAGS="$save_CPPFLAGS"
7072 echo "$ac_t""no" 1>&6
7078 # Check whether --enable-sdl or --disable-sdl was given.
7079 if test "${enable_sdl+set}" = set; then
7080 enableval="$enable_sdl"
7084 if test "x$enable_sdl" != "xno"
7087 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7088 if test "${with_sdl_config_path+set}" = set; then
7089 withval="$with_sdl_config_path"
7090 if test "x$with_sdl_config_path" != "xno"
7092 SDL_PATH="$with_sdl_config_path:$PATH"
7096 # Extract the first word of "sdl12-config", so it can be a program name with args.
7097 set dummy sdl12-config; ac_word=$2
7098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7099 echo "configure:7100: checking for $ac_word" >&5
7100 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7101 echo $ac_n "(cached) $ac_c" 1>&6
7103 case "$SDL12_CONFIG" in
7105 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7108 ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7112 ac_dummy="$SDL_PATH"
7113 for ac_dir in $ac_dummy; do
7114 test -z "$ac_dir" && ac_dir=.
7115 if test -f $ac_dir/$ac_word; then
7116 ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7121 test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7125 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7126 if test -n "$SDL12_CONFIG"; then
7127 echo "$ac_t""$SDL12_CONFIG" 1>&6
7129 echo "$ac_t""no" 1>&6
7132 SDL_CONFIG=${SDL12_CONFIG}
7133 SDL_HEADER="SDL12/SDL.h"
7134 if test x${SDL_CONFIG} = xno
7136 # Extract the first word of "sdl11-config", so it can be a program name with args.
7137 set dummy sdl11-config; ac_word=$2
7138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7139 echo "configure:7140: checking for $ac_word" >&5
7140 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 case "$SDL11_CONFIG" in
7145 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7148 ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7152 ac_dummy="$SDL_PATH"
7153 for ac_dir in $ac_dummy; do
7154 test -z "$ac_dir" && ac_dir=.
7155 if test -f $ac_dir/$ac_word; then
7156 ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7161 test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7165 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7166 if test -n "$SDL11_CONFIG"; then
7167 echo "$ac_t""$SDL11_CONFIG" 1>&6
7169 echo "$ac_t""no" 1>&6
7172 SDL_CONFIG=${SDL11_CONFIG}
7173 SDL_HEADER="SDL11/SDL.h"
7175 if test x${SDL_CONFIG} = xno
7177 # Extract the first word of "sdl-config", so it can be a program name with args.
7178 set dummy sdl-config; ac_word=$2
7179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7180 echo "configure:7181: checking for $ac_word" >&5
7181 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7182 echo $ac_n "(cached) $ac_c" 1>&6
7184 case "$SDL_CONFIG" in
7186 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7189 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7193 ac_dummy="$SDL_PATH"
7194 for ac_dir in $ac_dummy; do
7195 test -z "$ac_dir" && ac_dir=.
7196 if test -f $ac_dir/$ac_word; then
7197 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7202 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7206 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7207 if test -n "$SDL_CONFIG"; then
7208 echo "$ac_t""$SDL_CONFIG" 1>&6
7210 echo "$ac_t""no" 1>&6
7213 SDL_HEADER="SDL/SDL.h"
7215 if test x${SDL_CONFIG} != xno
7217 PLUGINS="${PLUGINS} sdl"
7218 sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7219 sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7220 CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7221 for ac_hdr in ${SDL_HEADER}
7223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7225 echo "configure:7226: checking for $ac_hdr" >&5
7226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7227 echo $ac_n "(cached) $ac_c" 1>&6
7229 cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7235 { (eval echo configure:7236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7237 if test -z "$ac_err"; then
7239 eval "ac_cv_header_$ac_safe=yes"
7242 echo "configure: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7245 eval "ac_cv_header_$ac_safe=no"
7249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7250 echo "$ac_t""yes" 1>&6
7251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7252 cat >> confdefs.h <<EOF
7253 #define $ac_tr_hdr 1
7255 cat >> confdefs.h <<EOF
7256 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7260 echo "$ac_t""no" 1>&6
7261 { echo "configure: error: The development package for SDL is not installed.
7262 Please install it and try again. Alternatively you can also configure with
7263 --disable-sdl." 1>&2; exit 1; }
7268 CPPFLAGS="$save_CPPFLAGS"
7269 if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7271 { echo "configure: error: The development package for SDL is not installed.
7272 Please install it and try again. Alternatively you can also configure with
7273 --disable-sdl." 1>&2; exit 1; }
7275 elif test "x$enable_sdl" = "xyes"
7277 { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7278 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7283 # Check whether --enable-directx or --disable-directx was given.
7284 if test "${enable_directx+set}" = set; then
7285 enableval="$enable_directx"
7289 if test "x$enable_directx" != "xno"
7291 if test x$SYS = xmingw32
7293 # Check whether --with-directx or --without-directx was given.
7294 if test "${with_directx+set}" = set; then
7295 withval="$with_directx"
7299 if test "x$with_directx" = "x"
7301 for ac_hdr in ddraw.h
7303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7305 echo "configure:7306: checking for $ac_hdr" >&5
7306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7309 cat > conftest.$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7315 { (eval echo configure:7316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7317 if test -z "$ac_err"; then
7319 eval "ac_cv_header_$ac_safe=yes"
7322 echo "configure: failed program was:" >&5
7323 cat conftest.$ac_ext >&5
7325 eval "ac_cv_header_$ac_safe=no"
7329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7332 cat >> confdefs.h <<EOF
7333 #define $ac_tr_hdr 1
7335 PLUGINS="${PLUGINS} directx"
7336 directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7338 echo "$ac_t""no" 1>&6
7343 echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7344 echo "configure:7345: checking for directX headers in ${with_directx}" >&5
7345 if test -f ${with_directx}/ddraw.h
7347 PLUGINS="${PLUGINS} directx"
7348 directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
7349 directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7350 echo "$ac_t""yes" 1>&6
7352 echo "$ac_t""no" 1>&6
7353 { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7359 # Check whether --enable-fb or --disable-fb was given.
7360 if test "${enable_fb+set}" = set; then
7361 enableval="$enable_fb"
7365 if test x$enable_fb != xno
7367 for ac_hdr in linux/fb.h
7369 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7370 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7371 echo "configure:7372: checking for $ac_hdr" >&5
7372 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7373 echo $ac_n "(cached) $ac_c" 1>&6
7375 cat > conftest.$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7381 { (eval echo configure:7382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7383 if test -z "$ac_err"; then
7385 eval "ac_cv_header_$ac_safe=yes"
7388 echo "configure: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7391 eval "ac_cv_header_$ac_safe=no"
7395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7396 echo "$ac_t""yes" 1>&6
7397 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7398 cat >> confdefs.h <<EOF
7399 #define $ac_tr_hdr 1
7402 PLUGINS="${PLUGINS} fb"
7405 echo "$ac_t""no" 1>&6
7411 # Check whether --enable-mga or --disable-mga was given.
7412 if test "${enable_mga+set}" = set; then
7413 enableval="$enable_mga"
7414 if test x$enable_mga = xyes
7416 PLUGINS="${PLUGINS} mga xmga"
7421 # Check whether --enable-ggi or --disable-ggi was given.
7422 if test "${enable_ggi+set}" = set; then
7423 enableval="$enable_ggi"
7427 if test x$enable_ggi = xyes
7429 PLUGINS="${PLUGINS} ggi"
7430 ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7431 # Check whether --with-ggi or --without-ggi was given.
7432 if test "${with_ggi+set}" = set; then
7434 if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7436 CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7437 ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7443 # Check whether --enable-glide or --disable-glide was given.
7444 if test "${enable_glide+set}" = set; then
7445 enableval="$enable_glide"
7449 if test x$enable_glide = xyes
7451 PLUGINS="${PLUGINS} glide"
7452 glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7453 glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7454 # Check whether --with-glide or --without-glide was given.
7455 if test "${with_glide+set}" = set; then
7456 withval="$with_glide"
7457 if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7459 glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7460 glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7466 # Check whether --enable-aa or --disable-aa was given.
7467 if test "${enable_aa+set}" = set; then
7468 enableval="$enable_aa"
7472 if test x$enable_aa = xyes
7474 ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7475 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7476 echo "configure:7477: checking for aalib.h" >&5
7477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7478 echo $ac_n "(cached) $ac_c" 1>&6
7480 cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7486 { (eval echo configure:7487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7488 if test -z "$ac_err"; then
7490 eval "ac_cv_header_$ac_safe=yes"
7493 echo "configure: failed program was:" >&5
7494 cat conftest.$ac_ext >&5
7496 eval "ac_cv_header_$ac_safe=no"
7500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7501 echo "$ac_t""yes" 1>&6
7504 echo "$ac_t""no" 1>&6
7508 if test x$have_aa = xtrue
7510 PLUGINS="${PLUGINS} aa"
7511 aa_LDFLAGS="${aa_LDFLAGS} -laa"
7516 # Check whether --with- or --without- was given.
7517 if test "${with_+set}" = set; then
7523 # Check whether --enable-dsp or --disable-dsp was given.
7524 if test "${enable_dsp+set}" = set; then
7525 enableval="$enable_dsp"
7530 if test x$enable_dsp != xno &&
7531 (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7533 for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7537 echo "configure:7538: checking for $ac_hdr" >&5
7538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7539 echo $ac_n "(cached) $ac_c" 1>&6
7541 cat > conftest.$ac_ext <<EOF
7542 #line 7543 "configure"
7543 #include "confdefs.h"
7546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7547 { (eval echo configure:7548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7549 if test -z "$ac_err"; then
7551 eval "ac_cv_header_$ac_safe=yes"
7554 echo "configure: failed program was:" >&5
7555 cat conftest.$ac_ext >&5
7557 eval "ac_cv_header_$ac_safe=no"
7561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7562 echo "$ac_t""yes" 1>&6
7563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7564 cat >> confdefs.h <<EOF
7565 #define $ac_tr_hdr 1
7568 PLUGINS="${PLUGINS} dsp"
7569 echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7570 echo "configure:7571: checking for main in -lossaudio" >&5
7571 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7573 echo $ac_n "(cached) $ac_c" 1>&6
7575 ac_save_LIBS="$LIBS"
7576 LIBS="-lossaudio $LIBS"
7577 cat > conftest.$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7585 if { (eval echo configure:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7587 eval "ac_cv_lib_$ac_lib_var=yes"
7589 echo "configure: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7592 eval "ac_cv_lib_$ac_lib_var=no"
7595 LIBS="$ac_save_LIBS"
7598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7599 echo "$ac_t""yes" 1>&6
7600 dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7602 echo "$ac_t""no" 1>&6
7607 echo "$ac_t""no" 1>&6
7613 # Check whether --enable-esd or --disable-esd was given.
7614 if test "${enable_esd+set}" = set; then
7615 enableval="$enable_esd"
7616 if test x$enable_esd = xyes
7618 # Extract the first word of "esd-config", so it can be a program name with args.
7619 set dummy esd-config; ac_word=$2
7620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7621 echo "configure:7622: checking for $ac_word" >&5
7622 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7623 echo $ac_n "(cached) $ac_c" 1>&6
7625 case "$ESD_CONFIG" in
7627 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7630 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7635 for ac_dir in $ac_dummy; do
7636 test -z "$ac_dir" && ac_dir=.
7637 if test -f $ac_dir/$ac_word; then
7638 ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7643 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7647 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7648 if test -n "$ESD_CONFIG"; then
7649 echo "$ac_t""$ESD_CONFIG" 1>&6
7651 echo "$ac_t""no" 1>&6
7654 if test x${ESD_CONFIG} != xno
7656 PLUGINS="${PLUGINS} esd"
7657 esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7658 esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7664 # Check whether --enable-arts or --disable-arts was given.
7665 if test "${enable_arts+set}" = set; then
7666 enableval="$enable_arts"
7667 if test x$enable_arts = xyes
7669 # Extract the first word of "artsc-config", so it can be a program name with args.
7670 set dummy artsc-config; ac_word=$2
7671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7672 echo "configure:7673: checking for $ac_word" >&5
7673 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7676 case "$ARTS_CONFIG" in
7678 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7681 ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7686 for ac_dir in $ac_dummy; do
7687 test -z "$ac_dir" && ac_dir=.
7688 if test -f $ac_dir/$ac_word; then
7689 ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7694 test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7698 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7699 if test -n "$ARTS_CONFIG"; then
7700 echo "$ac_t""$ARTS_CONFIG" 1>&6
7702 echo "$ac_t""no" 1>&6
7705 if test x${ARTS_CONFIG} != xno
7707 PLUGINS="${PLUGINS} arts"
7708 arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7709 arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7715 # Check whether --enable-alsa or --disable-alsa was given.
7716 if test "${enable_alsa+set}" = set; then
7717 enableval="$enable_alsa"
7718 if test x$enable_alsa = xyes
7720 ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7721 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7722 echo "configure:7723: checking for alsa/asoundlib.h" >&5
7723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7724 echo $ac_n "(cached) $ac_c" 1>&6
7726 cat > conftest.$ac_ext <<EOF
7727 #line 7728 "configure"
7728 #include "confdefs.h"
7729 #include <alsa/asoundlib.h>
7731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7732 { (eval echo configure:7733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7734 if test -z "$ac_err"; then
7736 eval "ac_cv_header_$ac_safe=yes"
7739 echo "configure: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7742 eval "ac_cv_header_$ac_safe=no"
7746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7747 echo "$ac_t""yes" 1>&6
7748 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7749 echo "configure:7750: checking for main in -lasound" >&5
7750 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7752 echo $ac_n "(cached) $ac_c" 1>&6
7754 ac_save_LIBS="$LIBS"
7755 LIBS="-lasound $LIBS"
7756 cat > conftest.$ac_ext <<EOF
7757 #line 7758 "configure"
7758 #include "confdefs.h"
7764 if { (eval echo configure:7765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7766 eval "ac_cv_lib_$ac_lib_var=yes"
7768 echo "configure: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7771 eval "ac_cv_lib_$ac_lib_var=no"
7774 LIBS="$ac_save_LIBS"
7777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7778 echo "$ac_t""yes" 1>&6
7781 echo "$ac_t""no" 1>&6
7786 echo "$ac_t""no" 1>&6
7790 if test x$have_alsa = xtrue
7792 PLUGINS="${PLUGINS} alsa"
7793 alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7799 # Check whether --enable-waveout or --disable-waveout was given.
7800 if test "${enable_waveout+set}" = set; then
7801 enableval="$enable_waveout"
7805 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7807 PLUGINS="${PLUGINS} waveout"
7808 waveout_LDFLAGS="-lwinmm"
7812 # Check whether --with- or --without- was given.
7813 if test "${with_+set}" = set; then
7819 # Check whether --enable-gtk or --disable-gtk was given.
7820 if test "${enable_gtk+set}" = set; then
7821 enableval="$enable_gtk"
7825 if test x$enable_gtk != xno
7828 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7829 if test "${with_gtk_config_path+set}" = set; then
7830 withval="$with_gtk_config_path"
7831 if test "x$with_gtk_config_path" != "xno"
7833 GTK_PATH="$with_gtk_config_path:$PATH"
7837 # look for gtk-config
7838 # Extract the first word of "gtk12-config", so it can be a program name with args.
7839 set dummy gtk12-config; ac_word=$2
7840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7841 echo "configure:7842: checking for $ac_word" >&5
7842 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7843 echo $ac_n "(cached) $ac_c" 1>&6
7845 case "$GTK12_CONFIG" in
7847 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7850 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7854 ac_dummy="$GTK_PATH"
7855 for ac_dir in $ac_dummy; do
7856 test -z "$ac_dir" && ac_dir=.
7857 if test -f $ac_dir/$ac_word; then
7858 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7863 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7867 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7868 if test -n "$GTK12_CONFIG"; then
7869 echo "$ac_t""$GTK12_CONFIG" 1>&6
7871 echo "$ac_t""no" 1>&6
7874 GTK_CONFIG=${GTK12_CONFIG}
7875 if test x${GTK_CONFIG} = xno
7877 # Extract the first word of "gtk-config", so it can be a program name with args.
7878 set dummy gtk-config; ac_word=$2
7879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7880 echo "configure:7881: checking for $ac_word" >&5
7881 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7884 case "$GTK_CONFIG" in
7886 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7889 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7893 ac_dummy="$GTK_PATH"
7894 for ac_dir in $ac_dummy; do
7895 test -z "$ac_dir" && ac_dir=.
7896 if test -f $ac_dir/$ac_word; then
7897 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7902 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7906 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7907 if test -n "$GTK_CONFIG"; then
7908 echo "$ac_t""$GTK_CONFIG" 1>&6
7910 echo "$ac_t""no" 1>&6
7914 if test x${GTK_CONFIG} != xno
7916 if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7918 { 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; }
7920 gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7921 gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7922 # now look for the gtk.h header
7923 CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7924 ac_cv_gtk_headers=yes
7925 for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7929 echo "configure:7930: checking for $ac_hdr" >&5
7930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7931 echo $ac_n "(cached) $ac_c" 1>&6
7933 cat > conftest.$ac_ext <<EOF
7934 #line 7935 "configure"
7935 #include "confdefs.h"
7938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7939 { (eval echo configure:7940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7941 if test -z "$ac_err"; then
7943 eval "ac_cv_header_$ac_safe=yes"
7946 echo "configure: failed program was:" >&5
7947 cat conftest.$ac_ext >&5
7949 eval "ac_cv_header_$ac_safe=no"
7953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7954 echo "$ac_t""yes" 1>&6
7955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7956 cat >> confdefs.h <<EOF
7957 #define $ac_tr_hdr 1
7961 echo "$ac_t""no" 1>&6
7962 ac_cv_gtk_headers=no
7963 echo "Cannot find gtk development headers."
7968 if test "x$ac_cv_gtk_headers" = xyes
7970 PLUGINS="${PLUGINS} gtk"
7971 ALIASES="${ALIASES} gvlc"
7973 CPPFLAGS="$save_CPPFLAGS"
7977 # Check whether --enable-gnome or --disable-gnome was given.
7978 if test "${enable_gnome+set}" = set; then
7979 enableval="$enable_gnome"
7980 if test x$enable_gnome = xyes; then
7981 # look for gnome-config
7982 # Extract the first word of "gnome-config", so it can be a program name with args.
7983 set dummy gnome-config; ac_word=$2
7984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7985 echo "configure:7986: checking for $ac_word" >&5
7986 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6
7989 case "$GNOME_CONFIG" in
7991 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7994 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7999 for ac_dir in $ac_dummy; do
8000 test -z "$ac_dir" && ac_dir=.
8001 if test -f $ac_dir/$ac_word; then
8002 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8007 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8011 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8012 if test -n "$GNOME_CONFIG"; then
8013 echo "$ac_t""$GNOME_CONFIG" 1>&6
8015 echo "$ac_t""no" 1>&6
8018 if test -x ${GNOME_CONFIG}
8020 gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8021 gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8023 # now look for the gnome.h header
8024 CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
8025 for ac_hdr in gnome.h
8027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8029 echo "configure:8030: checking for $ac_hdr" >&5
8030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8033 cat > conftest.$ac_ext <<EOF
8034 #line 8035 "configure"
8035 #include "confdefs.h"
8038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8039 { (eval echo configure:8040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8041 if test -z "$ac_err"; then
8043 eval "ac_cv_header_$ac_safe=yes"
8046 echo "configure: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8049 eval "ac_cv_header_$ac_safe=no"
8053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8054 echo "$ac_t""yes" 1>&6
8055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8056 cat >> confdefs.h <<EOF
8057 #define $ac_tr_hdr 1
8060 PLUGINS="${PLUGINS} gnome"
8061 ALIASES="${ALIASES} gnome-vlc"
8064 echo "$ac_t""no" 1>&6
8065 { echo "configure: error: Can't find gnome headers. Please install the gnome
8066 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8071 CPPFLAGS="$save_CPPFLAGS"
8076 # Check whether --enable-qt or --disable-qt was given.
8077 if test "${enable_qt+set}" = set; then
8078 enableval="$enable_qt"
8079 if test x$enable_qt = xyes; then
8080 PLUGINS="${PLUGINS} qt"
8081 ALIASES="${ALIASES} qvlc"
8082 qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8083 qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8084 if test -x ${QTDIR}/bin/moc
8086 MOC=${QTDIR}/bin/moc
8094 # Check whether --enable-kde or --disable-kde was given.
8095 if test "${enable_kde+set}" = set; then
8096 enableval="$enable_kde"
8097 if test x$enable_kde = xyes; then
8098 PLUGINS="${PLUGINS} kde"
8099 ALIASES="${ALIASES} kvlc"
8100 kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8101 kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8102 kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8103 if test -x ${QTDIR}/bin/moc
8105 MOC=${QTDIR}/bin/moc
8113 # Check whether --enable-macosx or --disable-macosx was given.
8114 if test "${enable_macosx+set}" = set; then
8115 enableval="$enable_macosx"
8116 if test x$enable_macosx = xyes
8118 BUILTINS="${BUILTINS} macosx"
8119 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8122 for ac_hdr in Cocoa/Cocoa.h
8124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8126 echo "configure:8127: checking for $ac_hdr" >&5
8127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8128 echo $ac_n "(cached) $ac_c" 1>&6
8130 cat > conftest.$ac_ext <<EOF
8131 #line 8132 "configure"
8132 #include "confdefs.h"
8135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8136 { (eval echo configure:8137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8138 if test -z "$ac_err"; then
8140 eval "ac_cv_header_$ac_safe=yes"
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8146 eval "ac_cv_header_$ac_safe=no"
8150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8152 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8153 cat >> confdefs.h <<EOF
8154 #define $ac_tr_hdr 1
8156 BUILTINS="${BUILTINS} macosx"
8157 macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8160 echo "$ac_t""no" 1>&6
8167 # Check whether --enable-qnx or --disable-qnx was given.
8168 if test "${enable_qnx+set}" = set; then
8169 enableval="$enable_qnx"
8173 if test x$enable_qnx != xno
8177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8179 echo "configure:8180: checking for $ac_hdr" >&5
8180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8181 echo $ac_n "(cached) $ac_c" 1>&6
8183 cat > conftest.$ac_ext <<EOF
8184 #line 8185 "configure"
8185 #include "confdefs.h"
8188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8189 { (eval echo configure:8190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8191 if test -z "$ac_err"; then
8193 eval "ac_cv_header_$ac_safe=yes"
8196 echo "configure: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8199 eval "ac_cv_header_$ac_safe=no"
8203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8204 echo "$ac_t""yes" 1>&6
8205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8206 cat >> confdefs.h <<EOF
8207 #define $ac_tr_hdr 1
8210 PLUGINS="${PLUGINS} qnx"
8211 qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8214 echo "$ac_t""no" 1>&6
8220 # Check whether --enable-intfwin or --disable-intfwin was given.
8221 if test "${enable_intfwin+set}" = set; then
8222 enableval="$enable_intfwin"
8223 if test "x$enable_intfwin" != "xno"
8225 # Check whether --with-bcbuilder or --without-bcbuilder was given.
8226 if test "${with_bcbuilder+set}" = set; then
8227 withval="$with_bcbuilder"
8231 if test "x$with_bcbuilder" != "x"
8233 BCBUILDER="$with_bcbuilder"
8235 PLUGINS="${PLUGINS} intfwin"
8240 # Check whether --enable-ncurses or --disable-ncurses was given.
8241 if test "${enable_ncurses+set}" = set; then
8242 enableval="$enable_ncurses"
8243 if test x$enable_ncurses = xyes; then
8244 PLUGINS="${PLUGINS} ncurses"
8245 ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8250 # Check whether --enable-xosd or --disable-xosd was given.
8251 if test "${enable_xosd+set}" = set; then
8252 enableval="$enable_xosd"
8256 if test x$enable_xosd = xyes
8258 ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8259 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8260 echo "configure:8261: checking for xosd.h" >&5
8261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8262 echo $ac_n "(cached) $ac_c" 1>&6
8264 cat > conftest.$ac_ext <<EOF
8265 #line 8266 "configure"
8266 #include "confdefs.h"
8269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8270 { (eval echo configure:8271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8272 if test -z "$ac_err"; then
8274 eval "ac_cv_header_$ac_safe=yes"
8277 echo "configure: failed program was:" >&5
8278 cat conftest.$ac_ext >&5
8280 eval "ac_cv_header_$ac_safe=no"
8284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8285 echo "$ac_t""yes" 1>&6
8286 echo $ac_n "checking for xosd_init in -lxosd""... $ac_c" 1>&6
8287 echo "configure:8288: checking for xosd_init in -lxosd" >&5
8288 ac_lib_var=`echo xosd'_'xosd_init | sed 'y%./+-%__p_%'`
8289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8290 echo $ac_n "(cached) $ac_c" 1>&6
8292 ac_save_LIBS="$LIBS"
8294 cat > conftest.$ac_ext <<EOF
8295 #line 8296 "configure"
8296 #include "confdefs.h"
8297 /* Override any gcc2 internal prototype to avoid an error. */
8298 /* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8306 if { (eval echo configure:8307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8308 eval "ac_cv_lib_$ac_lib_var=yes"
8310 echo "configure: failed program was:" >&5
8311 cat conftest.$ac_ext >&5
8313 eval "ac_cv_lib_$ac_lib_var=no"
8316 LIBS="$ac_save_LIBS"
8319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8320 echo "$ac_t""yes" 1>&6
8323 echo "$ac_t""no" 1>&6
8328 echo "$ac_t""no" 1>&6
8332 if test x$have_xosd = xtrue
8334 PLUGINS="${PLUGINS} xosd"
8335 xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8339 # Check whether --enable-lirc or --disable-lirc was given.
8340 if test "${enable_lirc+set}" = set; then
8341 enableval="$enable_lirc"
8345 if test x$enable_lirc = xyes
8347 ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8348 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8349 echo "configure:8350: checking for lirc/lirc_client.h" >&5
8350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8353 cat > conftest.$ac_ext <<EOF
8354 #line 8355 "configure"
8355 #include "confdefs.h"
8356 #include <lirc/lirc_client.h>
8358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8359 { (eval echo configure:8360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8361 if test -z "$ac_err"; then
8363 eval "ac_cv_header_$ac_safe=yes"
8366 echo "configure: failed program was:" >&5
8367 cat conftest.$ac_ext >&5
8369 eval "ac_cv_header_$ac_safe=no"
8373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8374 echo "$ac_t""yes" 1>&6
8375 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8376 echo "configure:8377: checking for lirc_init in -llirc_client" >&5
8377 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8381 ac_save_LIBS="$LIBS"
8382 LIBS="-llirc_client $LIBS"
8383 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure"
8385 #include "confdefs.h"
8386 /* Override any gcc2 internal prototype to avoid an error. */
8387 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8395 if { (eval echo configure:8396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8397 eval "ac_cv_lib_$ac_lib_var=yes"
8399 echo "configure: failed program was:" >&5
8400 cat conftest.$ac_ext >&5
8402 eval "ac_cv_lib_$ac_lib_var=no"
8405 LIBS="$ac_save_LIBS"
8408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8409 echo "$ac_t""yes" 1>&6
8412 echo "$ac_t""no" 1>&6
8417 echo "$ac_t""no" 1>&6
8421 if test x$have_lirc = xtrue
8423 PLUGINS="${PLUGINS} lirc"
8424 lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8428 # Check whether --with- or --without- was given.
8429 if test "${with_+set}" = set; then
8435 # Check whether --with-words or --without-words was given.
8436 if test "${with_words+set}" = set; then
8437 withval="$with_words"
8441 case "x$with_words" in
8443 ac_cv_c_bigendian=yes
8446 ac_cv_c_bigendian=no
8449 echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8450 echo "configure:8451: checking whether the byte order is big-endian" >&5
8451 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8452 echo $ac_n "(cached) $ac_c" 1>&6
8454 ac_cv_c_bigendian=unknown
8455 cat >conftest.c <<EOF
8456 short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8457 short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8458 void _a(void) { char*s = (char*)am; s = (char *)ai; }
8459 short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8460 short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8461 void _e(void) { char*s = (char*)em; s = (char*)ei; }
8462 int main(void) { _a(); _e(); return 0; }
8465 if test -f conftest.c
8467 if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8468 && test -f conftest.o
8470 if test "`strings conftest.o | grep BIGenDianSyS`"
8472 ac_cv_c_bigendian=yes
8474 if test "`strings conftest.o | grep LiTTleEnDian`"
8476 ac_cv_c_bigendian=no
8483 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8484 if test x$ac_cv_c_bigendian = xunknown
8486 { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8490 if test $ac_cv_c_bigendian = yes
8492 cat >> confdefs.h <<\EOF
8493 #define WORDS_BIGENDIAN 1
8501 # Check whether --enable-gprof or --disable-gprof was given.
8502 if test "${enable_gprof+set}" = set; then
8503 enableval="$enable_gprof"
8504 if test "x$enable_gprof" = "xyes"
8514 # Check whether --enable-cprof or --disable-cprof was given.
8515 if test "${enable_cprof+set}" = set; then
8516 enableval="$enable_cprof"
8517 if test "x$enable_cprof" = "xyes"
8519 LDFLAGS="${LDFLAGS} -lcprof"
8527 # Check whether --enable-pth or --disable-pth was given.
8528 if test "${enable_pth+set}" = set; then
8529 enableval="$enable_pth"
8530 if test "x$enable_pth" = "xyes"; then
8531 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8532 echo "configure:8533: checking for pth_init in -lpth" >&5
8533 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8534 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8535 echo $ac_n "(cached) $ac_c" 1>&6
8537 ac_save_LIBS="$LIBS"
8539 cat > conftest.$ac_ext <<EOF
8540 #line 8541 "configure"
8541 #include "confdefs.h"
8542 /* Override any gcc2 internal prototype to avoid an error. */
8543 /* We use char because int might match the return type of a gcc2
8544 builtin and then its argument prototype would still apply. */
8551 if { (eval echo configure:8552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8553 eval "ac_cv_lib_$ac_lib_var=yes"
8555 echo "configure: failed program was:" >&5
8556 cat conftest.$ac_ext >&5
8558 eval "ac_cv_lib_$ac_lib_var=no"
8561 LIBS="$ac_save_LIBS"
8564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8565 echo "$ac_t""yes" 1>&6
8566 ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8567 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8568 cat >> confdefs.h <<EOF
8569 #define $ac_tr_lib 1
8575 echo "$ac_t""no" 1>&6
8578 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8584 egrep "pth_init" >/dev/null 2>&1; then
8587 cat >> confdefs.h <<\EOF
8588 #define PTH_INIT_IN_PTH_H 1
8600 # Check whether --enable-st or --disable-st was given.
8601 if test "${enable_st+set}" = set; then
8602 enableval="$enable_st"
8603 if test "x$enable_st" = "xyes"; then
8604 echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8605 echo "configure:8606: checking for st_init in -lst" >&5
8606 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8608 echo $ac_n "(cached) $ac_c" 1>&6
8610 ac_save_LIBS="$LIBS"
8612 cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure"
8614 #include "confdefs.h"
8615 /* Override any gcc2 internal prototype to avoid an error. */
8616 /* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8624 if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8626 eval "ac_cv_lib_$ac_lib_var=yes"
8628 echo "configure: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8631 eval "ac_cv_lib_$ac_lib_var=no"
8634 LIBS="$ac_save_LIBS"
8637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8638 echo "$ac_t""yes" 1>&6
8639 ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8641 cat >> confdefs.h <<EOF
8642 #define $ac_tr_lib 1
8648 echo "$ac_t""no" 1>&6
8651 cat > conftest.$ac_ext <<EOF
8652 #line 8653 "configure"
8653 #include "confdefs.h"
8656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8657 egrep "st_init" >/dev/null 2>&1; then
8660 cat >> confdefs.h <<\EOF
8661 #define ST_INIT_IN_ST_H 1
8673 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
8674 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
8676 # Check whether --enable-plugins or --disable-plugins was given.
8677 if test "${enable_plugins+set}" = set; then
8678 enableval="$enable_plugins"
8679 if test x$enable_plugins = xno
8681 BUILTINS="${BUILTINS} ${PLUGINS}"
8687 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8689 echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8691 BUILTINS="${BUILTINS} ${PLUGINS}"
8695 cat >> confdefs.h <<EOF
8696 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8699 cat >> confdefs.h <<EOF
8700 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8703 cat >> confdefs.h <<EOF
8704 #define CONFIGURE_LINE "$CONFIGURE_LINE"
8708 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8709 cat >> confdefs.h <<EOF
8710 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8713 cat >> confdefs.h <<EOF
8714 #define MODULE_SYMBOL $VLC_SYMBOL
8718 DATA_PATH="${ac_tool_prefix}/share/videolan"
8720 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8723 CPPFLAGS="${save_CPPFLAGS}"
8724 CFLAGS="${save_CFLAGS}"
8725 LDFLAGS="${save_LDFLAGS}"
8825 cat > confcache <<\EOF
8826 # This file is a shell script that caches the results of configure
8827 # tests run on this system so they can be shared between configure
8828 # scripts and configure runs. It is not useful on other systems.
8829 # If it contains results you don't want to keep, you may remove or edit it.
8831 # By default, configure uses ./config.cache as the cache file,
8832 # creating it if it does not exist already. You can give configure
8833 # the --cache-file=FILE option to use a different cache file; that is
8834 # what configure does when it calls configure scripts in
8835 # subdirectories, so they share the cache.
8836 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8837 # config.status only pays attention to the cache file if you give it the
8838 # --recheck option to rerun configure.
8841 # The following way of writing the cache mishandles newlines in values,
8842 # but we know of no workaround that is simple, portable, and efficient.
8843 # So, don't put newlines in cache variables' values.
8844 # Ultrix sh set writes to stderr and can't be redirected directly,
8845 # and sets the high bit in the cache file unless we assign to the vars.
8847 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8849 # `set' does not quote correctly, so add quotes (double-quote substitution
8850 # turns \\\\ into \\, and sed turns \\ into \).
8852 -e "s/'/'\\\\''/g" \
8853 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8856 # `set' quotes correctly as required by POSIX, so do not add quotes.
8857 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8860 if cmp -s $cache_file confcache; then
8863 if test -w $cache_file; then
8864 echo "updating cache $cache_file"
8865 cat confcache > $cache_file
8867 echo "not updating unwritable cache $cache_file"
8872 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8874 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8875 # Let make expand exec_prefix.
8876 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8878 # Any assignment to VPATH causes Sun make to only execute
8879 # the first set of double-colon rules, so remove it if not needed.
8880 # If there is a colon in the path, we need to keep it.
8881 if test "x$srcdir" = x.; then
8882 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8885 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8887 DEFS=-DHAVE_CONFIG_H
8889 # Without the "./", some shells look in PATH for config.status.
8890 : ${CONFIG_STATUS=./config.status}
8892 echo creating $CONFIG_STATUS
8893 rm -f $CONFIG_STATUS
8894 cat > $CONFIG_STATUS <<EOF
8896 # Generated automatically by configure.
8897 # Run this file to recreate the current configuration.
8898 # This directory was configured as follows,
8899 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8901 # $0 $ac_configure_args
8903 # Compiler output produced by configure, useful for debugging
8904 # configure, is in ./config.log if it exists.
8906 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8909 case "\$ac_option" in
8910 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8911 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8912 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8913 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8914 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8916 -help | --help | --hel | --he | --h)
8917 echo "\$ac_cs_usage"; exit 0 ;;
8918 *) echo "\$ac_cs_usage"; exit 1 ;;
8922 ac_given_srcdir=$srcdir
8923 ac_given_INSTALL="$INSTALL"
8925 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8927 cat >> $CONFIG_STATUS <<EOF
8929 # Protect against being on the right side of a sed subst in config.status.
8930 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8931 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8935 s%@CFLAGS@%$CFLAGS%g
8936 s%@CPPFLAGS@%$CPPFLAGS%g
8937 s%@CXXFLAGS@%$CXXFLAGS%g
8938 s%@FFLAGS@%$FFLAGS%g
8940 s%@LDFLAGS@%$LDFLAGS%g
8942 s%@exec_prefix@%$exec_prefix%g
8943 s%@prefix@%$prefix%g
8944 s%@program_transform_name@%$program_transform_name%g
8945 s%@bindir@%$bindir%g
8946 s%@sbindir@%$sbindir%g
8947 s%@libexecdir@%$libexecdir%g
8948 s%@datadir@%$datadir%g
8949 s%@sysconfdir@%$sysconfdir%g
8950 s%@sharedstatedir@%$sharedstatedir%g
8951 s%@localstatedir@%$localstatedir%g
8952 s%@libdir@%$libdir%g
8953 s%@includedir@%$includedir%g
8954 s%@oldincludedir@%$oldincludedir%g
8955 s%@infodir@%$infodir%g
8956 s%@mandir@%$mandir%g
8958 s%@host_alias@%$host_alias%g
8959 s%@host_cpu@%$host_cpu%g
8960 s%@host_vendor@%$host_vendor%g
8961 s%@host_os@%$host_os%g
8962 s%@target@%$target%g
8963 s%@target_alias@%$target_alias%g
8964 s%@target_cpu@%$target_cpu%g
8965 s%@target_vendor@%$target_vendor%g
8966 s%@target_os@%$target_os%g
8968 s%@build_alias@%$build_alias%g
8969 s%@build_cpu@%$build_cpu%g
8970 s%@build_vendor@%$build_vendor%g
8971 s%@build_os@%$build_os%g
8972 s%@SET_MAKE@%$SET_MAKE%g
8975 s%@RANLIB@%$RANLIB%g
8978 s%@ALLOCA@%$ALLOCA%g
8979 s%@GLIBC21@%$GLIBC21%g
8980 s%@LIBICONV@%$LIBICONV%g
8981 s%@USE_NLS@%$USE_NLS%g
8982 s%@MSGFMT@%$MSGFMT%g
8983 s%@GMSGFMT@%$GMSGFMT%g
8984 s%@XGETTEXT@%$XGETTEXT%g
8985 s%@INTLBISON@%$INTLBISON%g
8986 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8987 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8988 s%@CATALOGS@%$CATALOGS%g
8989 s%@CATOBJEXT@%$CATOBJEXT%g
8990 s%@GMOFILES@%$GMOFILES%g
8991 s%@INTLLIBS@%$INTLLIBS%g
8992 s%@INTLOBJS@%$INTLOBJS%g
8993 s%@POFILES@%$POFILES%g
8995 s%@DATADIRNAME@%$DATADIRNAME%g
8996 s%@INSTOBJEXT@%$INSTOBJEXT%g
8997 s%@GENCAT@%$GENCAT%g
8998 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8999 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9000 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9001 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9002 s%@INSTALL_DATA@%$INSTALL_DATA%g
9003 s%@WINDRES@%$WINDRES%g
9004 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9005 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9006 s%@SDL_CONFIG@%$SDL_CONFIG%g
9007 s%@ESD_CONFIG@%$ESD_CONFIG%g
9008 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9009 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9010 s%@GTK_CONFIG@%$GTK_CONFIG%g
9011 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9012 s%@DATA_PATH@%$DATA_PATH%g
9013 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9016 s%@PLUGINS@%$PLUGINS%g
9017 s%@BUILTINS@%$BUILTINS%g
9018 s%@ALIASES@%$ALIASES%g
9023 s%@OPTIMS@%$OPTIMS%g
9024 s%@TUNING@%$TUNING%g
9025 s%@RELEASE@%$RELEASE%g
9027 s%@BCBUILDER@%$BCBUILDER%g
9028 s%@PACKAGE@%$PACKAGE%g
9029 s%@VERSION@%$VERSION%g
9030 s%@NEED_GETOPT@%$NEED_GETOPT%g
9031 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9032 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9033 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9034 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9035 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9036 s%@a52_CFLAGS@%$a52_CFLAGS%g
9037 s%@arts_CFLAGS@%$arts_CFLAGS%g
9038 s%@chroma_i420_yuy2_mmx_CFLAGS@%$chroma_i420_yuy2_mmx_CFLAGS%g
9039 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9040 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9041 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
9042 s%@directx_CFLAGS@%$directx_CFLAGS%g
9043 s%@esd_CFLAGS@%$esd_CFLAGS%g
9044 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9045 s%@glide_CFLAGS@%$glide_CFLAGS%g
9046 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9047 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9048 s%@kde_CFLAGS@%$kde_CFLAGS%g
9049 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9050 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9051 s%@mad_CFLAGS@%$mad_CFLAGS%g
9052 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9053 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9054 s%@qt_CFLAGS@%$qt_CFLAGS%g
9055 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9056 s%@x11_CFLAGS@%$x11_CFLAGS%g
9057 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9058 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9059 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9060 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9061 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9062 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9063 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9064 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9065 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9066 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
9067 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9068 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9069 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9070 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9071 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
9072 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9073 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
9074 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9075 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9076 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9077 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9078 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9079 s%@http_LDFLAGS@%$http_LDFLAGS%g
9080 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9081 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9082 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9083 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9084 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9085 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9086 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9087 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9088 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9089 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9090 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9091 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9092 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9093 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9094 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9095 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9096 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9097 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9098 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9099 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9100 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9101 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9102 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9107 cat >> $CONFIG_STATUS <<\EOF
9109 # Split the substitutions into bite-sized pieces for seds with
9110 # small command number limits, like on Digital OSF/1 and HP-UX.
9111 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9112 ac_file=1 # Number of current file.
9113 ac_beg=1 # First line for current file.
9114 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9117 while $ac_more_lines; do
9118 if test $ac_beg -gt 1; then
9119 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9121 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9123 if test ! -s conftest.s$ac_file; then
9125 rm -f conftest.s$ac_file
9127 if test -z "$ac_sed_cmds"; then
9128 ac_sed_cmds="sed -f conftest.s$ac_file"
9130 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9132 ac_file=`expr $ac_file + 1`
9134 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9137 if test -z "$ac_sed_cmds"; then
9142 cat >> $CONFIG_STATUS <<EOF
9144 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
9146 cat >> $CONFIG_STATUS <<\EOF
9147 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9148 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9150 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9151 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9152 *) ac_file_in="${ac_file}.in" ;;
9155 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9157 # Remove last slash and all that follows it. Not all systems have dirname.
9158 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9159 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9160 # The file is in a subdirectory.
9161 test ! -d "$ac_dir" && mkdir "$ac_dir"
9162 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9163 # A "../" for each directory in $ac_dir_suffix.
9164 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9166 ac_dir_suffix= ac_dots=
9169 case "$ac_given_srcdir" in
9171 if test -z "$ac_dots"; then top_srcdir=.
9172 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9173 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9175 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9176 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9179 case "$ac_given_INSTALL" in
9180 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9181 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9184 echo creating "$ac_file"
9186 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9188 *Makefile*) ac_comsub="1i\\
9189 # $configure_input" ;;
9193 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9195 s%@configure_input@%$configure_input%g
9196 s%@srcdir@%$srcdir%g
9197 s%@top_srcdir@%$top_srcdir%g
9198 s%@INSTALL@%$INSTALL%g
9199 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9203 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9204 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9206 # ac_d sets the value in "#define NAME VALUE" lines.
9207 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9208 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9211 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9212 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9213 ac_uB='\([ ]\)%\1#\2define\3'
9216 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9217 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9218 ac_eB='$%\1#\2define\3'
9222 if test "${CONFIG_HEADERS+set}" != set; then
9224 cat >> $CONFIG_STATUS <<EOF
9225 CONFIG_HEADERS="include/defs.h"
9227 cat >> $CONFIG_STATUS <<\EOF
9229 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9232 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9233 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9234 *) ac_file_in="${ac_file}.in" ;;
9237 echo creating $ac_file
9239 rm -f conftest.frag conftest.in conftest.out
9240 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9241 cat $ac_file_inputs > conftest.in
9245 # Transform confdefs.h into a sed script conftest.vals that substitutes
9246 # the proper values into config.h.in to produce config.h. And first:
9247 # Protect against being on the right side of a sed subst in config.status.
9248 # Protect against being in an unquoted here document in config.status.
9250 cat > conftest.hdr <<\EOF
9253 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9257 sed -n -f conftest.hdr confdefs.h > conftest.vals
9260 # This sed command replaces #undef with comments. This is necessary, for
9261 # example, in the case of _POSIX_SOURCE, which is predefined and required
9262 # on some systems where configure will not decide to define it.
9263 cat >> conftest.vals <<\EOF
9264 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9267 # Break up conftest.vals because some shells have a limit on
9268 # the size of here documents, and old seds have small limits too.
9273 ac_lines=`grep -c . conftest.vals`
9274 # grep -c gives empty output for an empty file on some AIX systems.
9275 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9276 # Write a limited-size here document to conftest.frag.
9277 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9278 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9280 sed -f conftest.frag conftest.in > conftest.out
9282 mv conftest.out conftest.in
9284 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9286 mv conftest.tail conftest.vals
9290 cat >> $CONFIG_STATUS <<\EOF
9291 rm -f conftest.frag conftest.h
9292 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9293 cat conftest.in >> conftest.h
9295 if cmp -s $ac_file conftest.h 2>/dev/null; then
9296 echo "$ac_file is unchanged"
9299 # Remove last slash and all that follows it. Not all systems have dirname.
9300 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9301 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9302 # The file is in a subdirectory.
9303 test ! -d "$ac_dir" && mkdir "$ac_dir"
9306 mv conftest.h $ac_file
9311 cat >> $CONFIG_STATUS <<EOF
9315 cat >> $CONFIG_STATUS <<\EOF
9316 for ac_file in $CONFIG_FILES; do
9317 # Support "outfile[:infile[:infile...]]"
9319 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9321 # PO directories have a Makefile.in generated from Makefile.in.in.
9322 case "$ac_file" in */Makefile.in)
9323 # Adjust a relative srcdir.
9324 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9325 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9326 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9327 # In autoconf-2.13 it is called $ac_given_srcdir.
9328 # In autoconf-2.50 it is called $srcdir.
9329 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9330 case "$ac_given_srcdir" in
9331 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9332 /*) top_srcdir="$ac_given_srcdir" ;;
9333 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9335 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9336 rm -f "$ac_dir/POTFILES"
9337 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9338 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9339 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9340 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9348 chmod +x $CONFIG_STATUS
9349 rm -fr confdefs* $ac_clean_files
9350 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9355 --------------------
9356 vlc version : ${VERSION}
9358 architecture : ${ARCH}
9359 optimizations : ${OPTIMS}
9361 debug mode : ${DEBUG}
9362 release : ${RELEASE}
9363 profiling : ${PROFILING}
9364 need builtin getopt : ${NEED_GETOPT}
9365 built-in modules :${BUILTINS}
9366 plug-in modules :${PLUGINS}
9367 vlc aliases :${ALIASES}
9369 You may now tune Makefile.opts at your convenience, for instance to choose
9370 which modules get compiled as plugins.
9372 To build vlc and its plugins, type \`$VLC_MAKE'.